parallel-es
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -1,3 +0,3 @@ | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["parallel-es"]=n():t["parallel-es"]=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.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=171)}(function(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))switch(typeof t[n]){case"function":break;case"object":t[n]=function(n){var e=n.slice(1),r=t[n[0]];return function(t,n,i){r.apply(this,[t,n,i].concat(e))}}(t[n]);break;default:t[n]=t[t[n]]}return 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 i=e(79),o=r(i);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,o.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(33)("wks"),i=e(23),o=e(4).Symbol,u="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("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(14);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(5),i=e(52),o=e(39),u=Object.defineProperty;n.f=e(7)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)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){t.exports=!e(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(4),i=e(2),o=e(17),u=e(9),a="prototype",s=function(t,n,e){var c,f,l,h=t&s.F,d=t&s.G,v=t&s.S,p=t&s.P,y=t&s.B,m=t&s.W,k=d?i:i[n]||(i[n]={}),g=k[a],b=d?r:v?r[n]:(r[n]||{})[a];d&&(e=n);for(c in e)f=!h&&b&&void 0!==b[c],f&&c in k||(l=f?b[c]:e[c],k[c]=d&&"function"!=typeof b[c]?e[c]:y&&f?o(l,r):m&&b[c]==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):p&&"function"==typeof l?o(Function.call,l):l,p&&((k.virtual||(k.virtual={}))[c]=l,t&s.R&&g&&!g[c]&&u(g,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n,e){var r=e(6),i=e(19);t.exports=e(7)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(53),i=e(25);t.exports=function(t){return r(i(t))}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n,e){i()(this,t),this.func=n,this.params=e}return u()(t,null,[{key:"create",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}},{key:"createUnchecked",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}}]),t}()},function(t,n,e){t.exports={default:e(85),__esModule:!0}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports={}},function(t,n,e){var r=e(35);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,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){"use strict";function r(t,n){return{_______isFunctionId:!0,identifier:t+"-"+n}}function i(t){return!!t&&t._______isFunctionId===!0}n.a=r,n.b=i},function(t,n,e){var r=e(57),i=e(32);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){var r=e(6).f,i=e(11),o=e(3)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},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";var r=e(20);e.d(n,"a",function(){return i});var i={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){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports=!0},function(t,n,e){var r=e(33)("keys"),i=e(23);t.exports=function(t){return r[t]||(r[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(25);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";var r=e(97)(!0);e(43)(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){var r=e(14),i=e(4).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(4),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(49),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(121),h=e(120);e.d(n,"a",function(){return d});var d=function(){function t(n){var e=this;s()(this,t),this.nextHandlers=[];var r=function(t,n,r){return e._next(t,n,r)},i=function(t){return e.reject(t)},o=function(t){return e.resolve(t)};n(r,o,i),this.promise=new u.a(function(t,n){e.resolve=t,e.reject=n})}return f()(t,[{key:"subscribe",value:function(t,n,e){return this.nextHandlers.push(t),(n||e)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"_next",value:function(t,n,e){var r=!0,o=!1,u=void 0;try{for(var a,s=i()(this.nextHandlers);!(r=(a=s.next()).done);r=!0){var c=a.value;c.apply(void 0,arguments)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}}}],[{key:"transform",value:function(n,e){var r=void 0,i=void 0,o=void 0,u=new t(function(t,n,e){r=t,i=n,o=e});return n.subscribe(r,o,function(t){return i(e(t))}),u}},{key:"fromTasks",value:function(t,n,e){return 0===t.length?new h.a(n):new l.a(t,n,e)}}]),t}()},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(5),i=e(94),o=e(32),u=e(27)("IE_PROTO"),a=function(){},s="prototype",c=function(){var t,n=e(31)("iframe"),r=o.length,i="<",u=">";for(n.style.display="none",e(51).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(i+"script"+u+"document.F=Object"+i+"/script"+u),t.close(),c=t.F;r--;)delete c[s][o[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a[s]=r(t),e=new a,a[s]=null,e[u]=t):e=c(),void 0===n?e:i(e,n)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(28),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){var r=e(14);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(50),i=e(3)("iterator"),o=e(16);t.exports=e(2).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){e(101);for(var r=e(4),i=e(9),o=e(16),u=e(3)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var c=a[s],f=r[c],l=f&&f.prototype;l&&!l[u]&&i(l,u,c),o[c]=o.Array}},function(t,n,e){"use strict";var r=e(70),i=(e.n(r),e(64)),o=(e.n(i),e(67)),u=(e.n(o),e(68)),a=(e.n(u),e(46)),s=e(71),c=(e.n(s),e(69)),f=(e.n(c),e(72));e.n(f);e.o(r,"IParallel")&&e.d(n,"a",function(){return r.IParallel}),e.o(i,"IParallelChain")&&e.d(n,"b",function(){return i.IParallelChain}),e.o(o,"IParallelTaskEnvironment")&&e.d(n,"c",function(){return o.IParallelTaskEnvironment}),e.o(o,"IParallelEnvironment")&&e.d(n,"d",function(){return o.IParallelEnvironment}),e.o(u,"IParallelJob")&&e.d(n,"e",function(){return u.IParallelJob}),e.d(n,"f",function(){return a.IParallelOptions}),e.d(n,"g",function(){return a.IDefaultInitializedParallelOptions}),e.o(s,"IParallelJobScheduler")&&e.d(n,"h",function(){return s.IParallelJobScheduler}),e.o(c,"IParallelOperation")&&e.d(n,"i",function(){return c.IParallelOperation}),e.o(c,"ISerializedParallelOperation")&&e.d(n,"j",function(){return c.ISerializedParallelOperation}),e.o(f,"IParallelStream")&&e.d(n,"k",function(){return f.IParallelStream})},function(t,n,e){"use strict";var r=e(26),i=e(8),o=e(59),u=e(9),a=e(11),s=e(16),c=e(91),f=e(22),l=e(56),h=e(3)("iterator"),d=!([].keys&&"next"in[].keys()),v="@@iterator",p="keys",y="values",m=function(){return this};t.exports=function(t,n,e,k,g,b,_){c(e,n,k);var w,x,O,P=function(t){if(!d&&t in E)return E[t];switch(t){case p:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",I=g==y,T=!1,E=t.prototype,j=E[h]||E[v]||g&&E[g],M=j||P(g),F=g?I?P("entries"):M:void 0,C="Array"==n?E.entries||j:j;if(C&&(O=l(C.call(new t)),O!==Object.prototype&&(f(O,S,!0),r||a(O,h)||u(O,h,m))),I&&j&&j.name!==y&&(T=!0,M=function(){return j.call(this)}),r&&!_||!d&&!T&&E[h]||u(E,h,M),s[n]=M,s[S]=m,g)if(w={values:I?M:P(y),keys:b?M:P(p),entries:F},_)for(x in w)x in E||o(E,x,w[x]);else i(i.P+i.F*(d||T),n,w);return w}},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n){i()(this,t),this.functionRegistry=n}return u()(t,[{key:"serializeFunctionCall",value:function(t){var n=this.functionRegistry.getOrSetId(t.func);return{______serializedFunctionCall:!0,functionId:n,parameters:t.params}}}]),t}()},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){"number"==typeof t.maxDegreeOfParallelism&&(t.maxDegreeOfParallelism=Math.floor(t.maxDegreeOfParallelism));var n=!0,e=!1,r=void 0;try{for(var i,a=o()(u);!(n=(i=a.next()).done);n=!0){var s=i.value,c=t[s];if("undefined"!=typeof c&&("number"!=typeof c||c<=0))throw new Error("Illegal parallel options: "+s+" ("+c+") must be number greater than zero")}}catch(t){e=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(e)throw r}}if("undefined"!=typeof t.minValuesPerTask&&"undefined"!=typeof t.maxValuesPerTask&&t.minValuesPerTask>t.maxValuesPerTask)throw new Error("Illegal parallel options: minValuesPerTask ("+t.minValuesPerTask+") must be equal or less than maxValuesPerTask ("+t.maxValuesPerTask+").")}var i=e(13),o=e.n(i);n.a=r;var u=["maxValuesPerTask","minValuesPerTask","maxConcurrencyLevel","maxDegreeOfParallelism"]},function(t,n,e){"use strict";function r(t){if(0===t.length)return[];var n=u()(t),e=n[0],r=n.slice(1);return Array.prototype.concat.apply(e,r)}function i(t,n){var e=t.length;t.length+=n.length;for(var r=0;r<n.length;++r)t[e+r]=n[r];return t}var o=e(82),u=e.n(o),a=e(13);e.n(a);n.b=r,n.a=i},function(t,n,e){t.exports={default:e(139),__esModule:!0}},function(t,n,e){t.exports={default:e(141),__esModule:!0}},function(t,n,e){var r=e(18),i=e(3)("toStringTag"),o="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),i))?e:o?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){t.exports=e(4).document&&document.documentElement},function(t,n,e){t.exports=!e(7)&&!e(15)(function(){return 7!=Object.defineProperty(e(31)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(18);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(37),i=e(19),o=e(10),u=e(39),a=e(11),s=e(52),c=Object.getOwnPropertyDescriptor;n.f=e(7)?c:function(t,n){if(t=o(t),n=u(n,!0),s)try{return c(t,n)}catch(t){}if(a(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(11),i=e(29),o=e(27)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(11),i=e(10),o=e(88)(!1),u=e(27)("IE_PROTO");t.exports=function(t,n){var e,a=i(t),s=0,c=[];for(e in a)e!=u&&r(a,e)&&c.push(e);for(;n.length>s;)r(a,e=n[s++])&&(~o(c,e)||c.push(e));return c}},function(t,n,e){var r=e(8),i=e(2),o=e(15);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",u)}},function(t,n,e){t.exports=e(9)},function(t,n,e){var r=e(4),i=e(2),o=e(26),u=e(61),a=e(6).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(3)},function(t,n,e){"use strict";var r=e(42),i=e(73),o=(e.n(i),e(74)),u=(e.n(o),e(63)),a=(e.n(u),e(20)),s=e(12),c=e(45),f=e(44),l=e(75),h=(e.n(l),e(42));e.d(n,"a",function(){return r.a}),e.o(i,"ITaskDefinition")&&e.d(n,"b",function(){return i.ITaskDefinition}),e.o(o,"ITask")&&e.d(n,"c",function(){return o.ITask}),e.o(u,"IFunctionDefinition")&&e.d(n,"d",function(){return u.IFunctionDefinition}),e.d(n,"e",function(){return a.IFunctionId}),e.d(n,"f",function(){return a.b}),e.d(n,"g",function(){return s.a}),e.d(n,"h",function(){return c.ISerializedFunctionCall}),e.d(n,"i",function(){return c.a}),e.d(n,"j",function(){return f.a}),e.o(l,"IThreadPool")&&e.d(n,"k",function(){return l.IThreadPool}),e.d(n,"l",function(){return h.b}),e.d(n,"m",function(){return h.c}),e.d(n,"n",function(){return h.d}),e.d(n,"o",function(){return h.e}),e.d(n,"p",function(){return h.f}),e.d(n,"q",function(){return h.g}),e.d(n,"r",function(){return h.h}),e.d(n,"s",function(){return h.i}),e.d(n,"t",function(){return h.j}),e.d(n,"u",function(){return h.k})},function(t,n){},function(t,n){},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(112);e.d(n,"a",function(){return s});var s=function(){function t(n,e,r){i()(this,t),this.options=e,this.environment=r,this.stream=n}return u()(t,[{key:"resolve",value:function(){return this}},{key:"chainOperation",value:function(t){return new a.a(this.stream,this.options,this.environment,[t])}},{key:"addEnvironment",value:function(t){return new a.a(this.stream,this.options,this.environment.add(t))}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(24),s=e(12);e.d(n,"a",function(){return c});var c=function(){function t(n){i()(this,t),this.collection=n}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*t,i=r+n;return e.serializeFunctionCall(s.a.createUnchecked(a.a.TO_ITERATOR,this.collection.slice(r,i)))}},{key:"length",get:function(){return this.collection.length}}]),t}()},64,64,function(t,n){},64,64,64,63,63,64,function(t,n,e){"use strict";function r(t){return{type:d.InitializeWorker,workerId:t}}function i(t){return{task:t,type:d.ScheduleTask}}function o(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return{functions:t,missingFunctions:e,type:d.FunctionResponse}}function u(){return{type:d.Stop}}function a(t){return t.type===d.FunctionRequest}function s(t){return t.type===d.WorkerResult}function c(t){return t.type===d.FunctionExecutionError}var f=e(125),l=(e.n(f),e(128)),h=(e.n(l),e(13));e.n(h);n.e=r,n.f=i,n.d=o,n.g=u,n.a=a,n.b=s,n.c=c;var d;!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"}(d||(d={}))},function(t,n,e){t.exports={default:e(133),__esModule:!0}},function(t,n,e){t.exports={default:e(135),__esModule:!0}},function(t,n,e){t.exports={default:e(86),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(129),o=r(i),u=e(126),a=r(u),s=e(84),c=r(s);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,c.default)(n)));t.prototype=(0,a.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(o.default?(0,o.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 i=e(84),o=r(i);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,o.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(77),o=r(i);n.default=function(t){return Array.isArray(t)?t:(0,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(77),o=r(i);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,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(131),o=r(i),u=e(130),a=r(u),s="function"==typeof a.default&&"symbol"==typeof o.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"===s(o.default)?function(t){return"undefined"==typeof t?"undefined":s(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"==typeof t?"undefined":s(t)}},function(t,n,e){e(41),e(30),t.exports=e(100)},function(t,n,e){e(102);var r=e(2).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n){t.exports=function(){}},function(t,n,e){var r=e(10),i=e(38),o=e(99);t.exports=function(t){return function(n,e,u){var a,s=r(n),c=i(s.length),f=o(u,c);if(t&&e!=e){for(;c>f;)if(a=s[f++],a!=a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){var r=e(16),i=e(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){var r=e(5);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){"use strict";var r=e(36),i=e(19),o=e(22),u={};e(9)(u,e(3)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n,e){var r=e(3)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(6),i=e(5),o=e(21);t.exports=e(7)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),a=u.length,s=0;a>s;)r.f(t,e=u[s++],n[e]);return t}},function(t,n,e){var r=e(10),i=e(96).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,n,e){var r=e(57),i=e(32).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(28),i=e(25);t.exports=function(t){return function(n,e){var o,u,a=String(i(n)),s=r(e),c=a.length;return s<0||s>=c?t?"":void 0:(o=a.charCodeAt(s),o<55296||o>56319||s+1===c||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):o:t?a.slice(s,s+2):(o-55296<<10)+(u-56320)+65536)}}},function(t,n,e){var r,i,o,u=e(17),a=e(148),s=e(51),c=e(31),f=e(4),l=f.process,h=f.setImmediate,d=f.clearImmediate,v=f.MessageChannel,p=0,y={},m="onreadystatechange",k=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},g=function(t){k.call(t.data)};h&&d||(h=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return y[++p]=function(){a("function"==typeof t?t:Function(t),n)},r(p),p},d=function(t){delete y[t]},"process"==e(18)(l)?r=function(t){l.nextTick(u(k,t,1))}:v?(i=new v,o=i.port2,i.port1.onmessage=g,r=u(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",g,!1)):r=m in c("script")?function(t){s.appendChild(c("script"))[m]=function(){s.removeChild(this),k.call(t)}}:function(t){setTimeout(u(k,t,1),0)}),t.exports={set:h,clear:d}},function(t,n,e){var r=e(28),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(5),i=e(40);t.exports=e(2).getIterator=function(t){var n=i(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(87),i=e(93),o=e(16),u=e(10);t.exports=e(43)(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,i(1)):"keys"==n?i(0,e):"values"==n?i(0,t[e]):i(0,[e,t[e]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(8);r(r.S+r.F*!e(7),"Object",{defineProperty:e(6).f})},69,function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(111);e.d(n,"a",function(){return c});var s=e(169),c=function(){function t(n){i()(this,t),this.functionLookupTable=n}return u()(t,[{key:"spawn",value:function(){if(!window.Worker)throw new Error("Missing Web Worker support");var t=new s,n=new a.a(t,this.functionLookupTable);return n.initialize(),n}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(124),s=e(20),c=e(123);e.d(n,"a",function(){return f});var f=function(){function t(){i()(this,t),this.ids=new a.a,this.definitions=new a.a,this.lastId=0}return u()(t,[{key:"getOrSetId",value:function(t){if(e.i(s.b)(t))return t;var n=t.toString(),r=this.ids.get(n);return"undefined"==typeof r&&(r=e.i(s.a)("dynamic",++this.lastId),this.initDefinition(t,r)),r}},{key:"getDefinition",value:function(t){return this.definitions.get(t.identifier)}},{key:"initDefinition",value:function(t,n){var r=t.toString(),i=e.i(c.a)(t),o=r.substring(r.indexOf("(")+1,r.indexOf(")")).split(","),u=r.substring(r.indexOf("{")+1,r.lastIndexOf("}")).trim(),a={argumentNames:o.map(function(t){return t.trim()}),body:u,id:n,name:i?i:void 0};this.ids.set(r,n),this.definitions.set(n.identifier,a)}}]),t}()},function(t,n,e){"use strict";function r(t){function n(n){if(n){if(n.hasOwnProperty("threadPool")&&"undefined"==typeof n.threadPool)throw new Error("The thread pool is mandatory and cannot be unset");if(n.hasOwnProperty("functionCallSerializer")&&"undefined"==typeof n.functionCallSerializer)throw new Error("The function call serializer is mandatory and cannot be unset");if(n.hasOwnProperty("maxConcurrencyLevel")&&"number"!=typeof n.maxConcurrencyLevel)throw new Error("The maxConcurrencyLevel is mandatory and has to be a number");e.i(u.a)(n)}return o()({},t,n)}return{defaultOptions:function(e){return e?void(t=n(e)):o()({},t)},from:function(t,r){return e.i(f.a)(new a.a(t),n(r))},range:function(t,r,i,o){var u=s.a.create(t,r,i);return e.i(f.a)(u,n(o))},times:function(t,r,i,o){return i?e.i(f.a)(c.a.create(t,r),n(o),i):e.i(f.a)(c.a.create(t,r),n(o))},run:function(n){for(var r=void 0,i=arguments.length,o=Array(i>1?i-1:0),u=1;u<i;u++)o[u-1]=arguments[u];r=e.i(l.b)(n)?h.a.create(n,o):h.a.create(n,o);var a=t.functionCallSerializer.serializeFunctionCall(r),s={main:a,usedFunctionIds:[a.functionId]};return t.threadPool.run(s)}}}var i=e(78),o=e.n(i),u=e(46),a=e(66),s=e(116),c=e(117),f=e(113),l=e(20),h=e(12);e.d(n,"a",function(){return r})},function(t,n,e){"use strict";var r=e(48),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(81),f=e.n(c),l=e(80),h=e.n(l),d=e(119);e.d(n,"a",function(){return v});var v=function(t){function n(){return u()(this,n),f()(this,(n.__proto__||i()(n)).apply(this,arguments))}return h()(n,t),s()(n,[{key:"getScheduling",value:function(t,n){var e=void 0;e=n.maxDegreeOfParallelism?n.maxDegreeOfParallelism:4*n.maxConcurrencyLevel;var r=t/e;return n.minValuesPerTask&&(r=Math.min(Math.max(r,n.minValuesPerTask),t)),n.maxValuesPerTask&&(r=Math.min(r,n.maxValuesPerTask)),{numberOfTasks:0===r?0:Math.round(t/r),valuesPerTask:Math.ceil(r)}}}]),n}(d.a)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(122);e.d(n,"a",function(){return s});var s=function(){function t(n,e){i()(this,t),this.workerThreadFactory=n,this.workers=[],this.idleWorkers=[],this.queue=[],this.concurrencyLimit=e.maxConcurrencyLevel}return u()(t,[{key:"run",value:function(t){var n=new a.a(t);return this.queue.unshift(n),this.schedulePendingTasks(),n}},{key:"schedulePendingTasks",value:function(){for(;this.queue.length;){var t=void 0;if(0===this.idleWorkers.length&&this.workers.length<this.concurrencyLimit?(t=this.workerThreadFactory.spawn(),this.workers.push(t)):this.idleWorkers.length>0&&(t=this.idleWorkers.pop()),!t)return;var n=this.queue.pop();this.runTaskOnWorker(n,t)}}},{key:"runTaskOnWorker",value:function(t,n){var e=this;t.isCancellationRequested?(t.resolveCancelled(),this.releaseWorker(n)):n.run(t.definition,function(r,i){r?t.reject(r):t.resolve(i),e.releaseWorker(n)})}},{key:"releaseWorker",value:function(t){this.idleWorkers.push(t),this.schedulePendingTasks()}}]),t}()},function(t,n,e){"use strict";var r=e(106),i=e(108),o=e(107),u=e(105),a=e(44),s=e(104),c=e(62);e.d(n,"IParallel",function(){return c.a}),e.d(n,"ITaskDefinition",function(){return c.b}),e.d(n,"ITask",function(){return c.c}),e.d(n,"IFunctionDefinition",function(){return c.d}),e.d(n,"IFunctionId",function(){return c.e}),e.d(n,"isFunctionId",function(){return c.f}),e.d(n,"FunctionCall",function(){return c.g}),e.d(n,"ISerializedFunctionCall",function(){return c.h}),e.d(n,"isSerializedFunctionCall",function(){return c.i}),e.d(n,"FunctionCallSerializer",function(){return c.j}),e.d(n,"IThreadPool",function(){return c.k}),e.d(n,"IParallelChain",function(){return c.l}),e.d(n,"IParallelTaskEnvironment",function(){return c.m}),e.d(n,"IParallelEnvironment",function(){return c.n}),e.d(n,"IParallelJob",function(){return c.o}),e.d(n,"IParallelOptions",function(){return c.p}),e.d(n,"IDefaultInitializedParallelOptions",function(){return c.q}),e.d(n,"IParallelJobScheduler",function(){return c.r}),e.d(n,"IParallelOperation",function(){return c.s}),e.d(n,"ISerializedParallelOperation",function(){return c.t}),e.d(n,"IParallelStream",function(){return c.u});var f=new u.a,l=window.navigator.hardwareConcurrency||4,h=new a.a(f),d=new i.a(new s.a(f),{maxConcurrencyLevel:l}),v=e.i(r.a)({functionCallSerializer:h,maxConcurrencyLevel:l,scheduler:new o.a,threadPool:d});n.default=v},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(48),u=e.n(o),a=e(81),s=e.n(a),c=e(132),f=e.n(c),l=e(80),h=e.n(l),d=e(0),v=e.n(d),p=e(1),y=e.n(p),m=e(76);e.d(n,"a",function(){return k}),e.d(n,"b",function(){return g});var k=function(){function t(n){v()(this,t),this.name=n}return y()(t,[{key:"onMessage",value:function(t){throw new Error("Browser worker thread in state '"+this.name+"' cannot handle the received message ("+t.data.type+").")}},{key:"onError",value:function(t){console.error("Processing error on worker slave",t.error)}}]),t}(),g=function(t){function n(t,e,r){v()(this,n);var i=s()(this,(n.__proto__||u()(n)).call(this,"executing"));return i.callback=t,i.functionRegistry=e,i.worker=r,i}return h()(n,t),y()(n,[{key:"onMessage",value:function(t){var r=t.data;e.i(m.a)(r)?this.handleFunctionRequest(r):e.i(m.b)(r)?this.callback(void 0,r.result):e.i(m.c)(r)?this.callback(r.error,void 0):f()(n.prototype.__proto__||u()(n.prototype),"onMessage",this).call(this,t)}},{key:"onError",value:function(t){this.callback(t.error,void 0)}},{key:"handleFunctionRequest",value:function(t){var n=[],e=[],r=!0,o=!1,u=void 0;try{for(var a,s=i()(t.functionIds);!(r=(a=s.next()).done);r=!0){var c=a.value,f=this.functionRegistry.getDefinition(c);f?e.push(f):n.push(c)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}this.worker.postMessage(m.d.apply(void 0,[e].concat(n)))}}]),n}(k)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(76),s=e(110);e.d(n,"a",function(){return f});var c=0,f=function(){function t(n,e){i()(this,t),this.worker=n,this.functionLookupTable=e,this.id=++c,this.state=new s.a("default"),this.stopped=!1;var r=this;this.worker.addEventListener("message",function(){r.onWorkerMessage.apply(r,arguments)}),this.worker.addEventListener("error",function(){r.onError.apply(r,arguments)})}return u()(t,[{key:"initialize",value:function(){if("default"!==this.state.name)throw new Error("The browser worker thread can only be initialized if in state default but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.e)(this.id)),this.state=new s.a("idle")}},{key:"run",value:function(t,n){var r=this;if("idle"!==this.state.name)throw new Error("The browser worker thread can only execute a new task if in state idle but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.f)(t));var i=function(t,e){r.stopped?r.state=new s.a("stopped"):r.state=new s.a("idle"),n(t,e)};this.state=new s.b(i,this.functionLookupTable,this.worker)}},{key:"stop",value:function(){this.stopped||(this.sendMessage(e.i(a.g)()),this.stopped=!0,"executing"!==this.state.name&&(this.state=new s.a("stopped")))}},{key:"toString",value:function(){return"BrowserWorkerThread { id: "+this.id+", state: "+this.state.name}},{key:"onWorkerMessage",value:function(t){this.state.onMessage(t)}},{key:"onError",value:function(t){this.state.onError(t),this.state=new s.a("errored")}},{key:"sendMessage",value:function(t){this.worker.postMessage(t)}}]),t}()},function(t,n,e){"use strict";var r=e(83),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(65),f=e(66),l=e(47),h=e(34);e.d(n,"a",function(){return d});var d=function(){function t(n,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];u()(this,t),this.previousStream=n,this.options=e, | ||
this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function t(){var n=this,e=void 0,t=void 0,r=void 0,i=new h.a(function(n,i,o){e=n,t=i,r=o});return this.previousStream.then(function(i){var o=n.options.scheduler.schedule({environment:n.environment,generator:new f.a(i),operations:n.operations,options:n.options}),u=h.a.fromTasks(o,[],l.a);u.subscribe(e,r,t)},r),new c.a(i,this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.previousStream,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.previousStream,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";function r(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=void 0;e instanceof Array?(a=void 0,r=e):a=e;var s=new o.a(new i.a(t,n,u.a.of(),r));return a?s.inEnvironment(a):s}var i=e(115),o=e(114),u=e(118);n.a=r},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(82),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(24),h=e(12),d=e(34);e.d(n,"a",function(){return v});var v=function(){function t(n){s()(this,t),this.state=n}return f()(t,[{key:"inEnvironment",value:function(n){var e=void 0;if("function"==typeof n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e=h.a.createUnchecked.apply(h.a,[n].concat(i))}else e=n;return new t(this.state.addEnvironment(e))}},{key:"map",value:function(t){return this._chain(h.a.createUnchecked(l.a.MAP),h.a.createUnchecked(t))}},{key:"reduce",value:function(t,n,e){var r=e||n,o=this._chain(h.a.createUnchecked(l.a.REDUCE,t),h.a.createUnchecked(n)).resolveChain();return d.a.transform(o,function(n){if(0===n.length)return t;var e=u()(n),o=e[0],a=e.slice(1),s=o,c=!0,f=!1,l=void 0;try{for(var h,d=i()(a);!(c=(h=d.next()).done);c=!0){var v=h.value;s=r(s,v)}}catch(t){f=!0,l=t}finally{try{!c&&d.return&&d.return()}finally{if(f)throw l}}return s})}},{key:"filter",value:function(t){return this._chain(h.a.createUnchecked(l.a.FILTER),h.a.createUnchecked(t))}},{key:"subscribe",value:function(t,n,e){return this.resolveChain().subscribe(t,n,e)}},{key:"then",value:function(t,n){return this.resolveChain().then(t,n)}},{key:"catch",value:function(t){return this.resolveChain().catch(t)}},{key:"resolveChain",value:function(){var t=this.state=this.state.resolve();return t.stream}},{key:"_chain",value:function(n,e){var r={iterator:n,iteratee:e};return new t(this.state.chainOperation(r))}}]),t}()},function(t,n,e){"use strict";var r=e(83),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(65),f=e(34),l=e(47);e.d(n,"a",function(){return h});var h=function(){function t(n,e,r,i){u()(this,t),this.generator=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function(){var t=this.options.scheduler.schedule({environment:this.environment,generator:this.generator,operations:this.operations,options:this.options});return new c.a(f.a.fromTasks(t,[],l.a),this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.generator,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.generator,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(24),s=e(12);e.d(n,"a",function(){return c});var c=function(){function t(n,e,r){i()(this,t),this.start=n,this.end=e,this.step=r}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*this.step,i=this.start+t*r,o=Math.min(i+r,this.end);return e.serializeFunctionCall(s.a.createUnchecked(a.a.RANGE,i,o,this.step))}},{key:"length",get:function(){return Math.ceil((this.end-this.start)/this.step)}}],[{key:"create",value:function(n,e,r){if("undefined"==typeof e&&(e=n,n=0),"undefined"==typeof r&&(r=e<n?-1:1),0===r)throw new Error("Step size of zero is not allowed");return new t(n,e,r)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(24),s=e(12),c=e(20);e.d(n,"a",function(){return f});var f=function(){function t(n,e){i()(this,t),this.times=n,this.iteratee=e}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=t*n,i=Math.min(r+n,this.times),o=e.serializeFunctionCall(this.iteratee);return e.serializeFunctionCall(s.a.create(a.a.TIMES,r,i,o))}},{key:"length",get:function(){return this.times}}],[{key:"create",value:function(n,r){var i=void 0;return i=e.i(c.b)(r)||"function"==typeof r?s.a.createUnchecked(r):s.a.create(a.a.IDENTITY,r),new t(n,i)}}]),t}()},function(t,n,e){"use strict";var r=e(78),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(12);e.d(n,"a",function(){return f});var f=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u()(this,t),this.environments=n}return s()(t,[{key:"add",value:function(n){var e=this.environments.slice();return n instanceof c.a||!(this.environments.length>0)||this.environments[this.environments.length-1]instanceof c.a?e.push(n):e[e.length-1]=i()({},e[e.length-1],n),new t(e)}},{key:"toJSON",value:function(t){return this.environments.map(function(n){return n instanceof c.a?t.serializeFunctionCall(n):n})}}],[{key:"of",value:function(n){var e=t.EMPTY;return n?e.add(n):e}}]),t}();f.EMPTY=new f},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(12),s=e(24),c=e(47),f=e(45);e.d(n,"a",function(){return l});var l=function(){function t(){i()(this,t)}return u()(t,[{key:"schedule",value:function(t){var n=this.getTaskDefinitions(t);return n.map(function(n){return t.options.threadPool.run(n)})}},{key:"getTaskDefinitions",value:function(t){var n=this.getScheduling(t.generator.length,t.options),r=t.options.functionCallSerializer,i=t.environment.toJSON(r),o=this.serializeOperations(t.operations,r),u=[s.a.PARALLEL_JOB_EXECUTOR].concat(e.i(c.b)(o.map(function(t){return[t.iteratee.functionId,t.iterator.functionId]})));i.forEach(function(t){e.i(f.a)(t)&&u.push(t.functionId)});for(var l=[],h=0;h<n.numberOfTasks;++h){var d=t.generator.serializeSlice(h,n.valuesPerTask,r),v={environments:i,generator:d,operations:o,taskIndex:h,valuesPerTask:n.valuesPerTask},p={main:r.serializeFunctionCall(a.a.createUnchecked(s.a.PARALLEL_JOB_EXECUTOR,v)),taskIndex:h,usedFunctionIds:[d.functionId].concat(u),valuesPerTask:n.valuesPerTask};l.push(p)}return l}},{key:"serializeOperations",value:function(t,n){return t.map(function(t){return{iteratee:n.serializeFunctionCall(t.iteratee),iterator:n.serializeFunctionCall(t.iterator)}})}}]),t}()},function(t,n,e){"use strict";var r=e(49),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){u()(this,t),this.promise=i.a.resolve(n)}return s()(t,[{key:"subscribe",value:function(t,n,e){return(e||n)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}}]),t}()},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(34);e.d(n,"a",function(){return f});var f=function(){function t(n,e,r){var o=this;u()(this,t),this.failed=!1,this.nextSubResultIndex=0,this.tasks=n,this.joiner=r,this.endResult=e,this.pending=n.length,this.subResults=new Array(this.tasks.length),this.innerStream=new c.a(function(t,n,e){o.next=t,o.resolve=n,o.reject=e});var a=!0,s=!1,f=void 0;try{for(var l,h=i()(n);!(a=(l=h.next()).done);a=!0){var d=l.value;this.registerTaskHandler(d)}}catch(t){s=!0,f=t}finally{try{!a&&h.return&&h.return()}finally{if(s)throw f}}}return s()(t,[{key:"subscribe",value:function(t,n,e){return this.innerStream.subscribe(t,n,e),this}},{key:"then",value:function(t,n){return this.innerStream.then(t,n)}},{key:"catch",value:function(t){return this.innerStream.catch(t)}},{key:"registerTaskHandler",value:function(t){var n=this;t.then(function(e){return n._taskCompleted(e,t.definition)},function(t){return n._taskFailed(t)})}},{key:"_taskCompleted",value:function(t,n){if(0===this.pending)throw new Error("Stream already resolved but taskCompleted called one more time");--this.pending,this.tasks[n.taskIndex]=void 0,this.subResults[n.taskIndex]=t,this.failed||(this.next(t,n.taskIndex,n.valuesPerTask),this.nextSubResultIndex===n.taskIndex&&this.joinSubResults(),0===this.pending&&(this.resolve(this.endResult),this.endResult=void 0))}},{key:"joinSubResults",value:function(){for(;this.nextSubResultIndex<this.subResults.length&&"undefined"!=typeof this.subResults[this.nextSubResultIndex];){var t=this.subResults[this.nextSubResultIndex];this.subResults[this.nextSubResultIndex]=void 0,this.endResult=this.joiner.apply(void 0,[this.endResult,t]),++this.nextSubResultIndex}}},{key:"_taskFailed",value:function(t){if(this.failed!==!0){this.failed=!0;for(var n=0;n<this.tasks.length;++n){var e=this.tasks[n];"undefined"!=typeof e&&e.cancel()}this.reject(t)}}}]),t}()},function(t,n,e){"use strict";var r=e(49),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){var e=this;u()(this,t),this.definition=n,this.isCancellationRequested=!1,this.isCanceled=!1,this.promise=new i.a(function(t,n){e.resolvePromise=t,e.rejectPromise=n})}return s()(t,[{key:"resolve",value:function(t){this.isCancellationRequested?this.resolveCancelled():this.resolvePromise(t)}},{key:"resolveCancelled",value:function(){this.isCanceled=!0,this.reject("Task has been canceled")}},{key:"reject",value:function(t){this.rejectPromise(t)}},{key:"then",value:function(t,n){return n?this.promise.then(t,n):this.promise.then(t)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"cancel",value:function(){this.isCancellationRequested=!0}}]),t}()},function(t,n,e){"use strict";function r(t){if(t.hasOwnProperty("name"))return t.name;var n=t.toString();return n.substring(n.indexOf("function")+9,n.indexOf("(")).trim()}n.a=r},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(){i()(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(134),__esModule:!0}},function(t,n,e){t.exports={default:e(136),__esModule:!0}},function(t,n,e){t.exports={default:e(137),__esModule:!0}},function(t,n,e){t.exports={default:e(138),__esModule:!0}},function(t,n,e){t.exports={default:e(140),__esModule:!0}},function(t,n,e){t.exports={default:e(142),__esModule:!0}},function(t,n,e){t.exports={default:e(143),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(48),o=r(i),u=e(127),a=r(u);n.default=function t(n,e,r){null===n&&(n=Function.prototype);var i=(0,a.default)(n,e);if(void 0===i){var u=(0,o.default)(n);return null===u?void 0:t(u,e,r)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(r)}},function(t,n,e){e(30),e(158),t.exports=e(2).Array.from},function(t,n,e){var r=e(2),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,n,e){e(159),t.exports=e(2).Object.assign},function(t,n,e){e(160);var r=e(2).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){e(161);var r=e(2).Object;t.exports=function(t,n){return r.getOwnPropertyDescriptor(t,n)}},function(t,n,e){e(162);var r=e(2).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(163),t.exports=e(2).Object.getPrototypeOf},function(t,n,e){e(164),t.exports=e(2).Object.setPrototypeOf},function(t,n,e){e(103),e(30),e(41),e(165),t.exports=e(2).Promise},function(t,n,e){e(166),e(103),e(167),e(168),t.exports=e(2).Symbol},function(t,n,e){e(30),e(41),t.exports=e(61).f("iterator")},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){"use strict";var r=e(6),i=e(19);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(21),i=e(55),o=e(37);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,a=e(t),s=o.f,c=0;a.length>c;)s.call(t,u=a[c++])&&n.push(u);return n}},function(t,n,e){var r=e(17),i=e(90),o=e(89),u=e(5),a=e(38),s=e(40),c={},f={},n=t.exports=function(t,n,e,l,h){var d,v,p,y,m=h?function(){return t}:s(t),k=r(e,l,n?2:1),g=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=a(t.length);d>g;g++)if(y=n?k(u(v=t[g])[0],v[1]):k(t[g]),y===c||y===f)return y}else for(p=m.call(t);!(v=p.next()).done;)if(y=i(p,k,v.value,n),y===c||y===f)return y};n.BREAK=c,n.RETURN=f},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(21),i=e(10);t.exports=function(t,n){for(var e,o=i(t),u=r(o),a=u.length,s=0;a>s;)if(o[e=u[s++]]===n)return e}},function(t,n,e){var r=e(23)("meta"),i=e(14),o=e(11),u=e(6).f,a=0,s=Object.isExtensible||function(){return!0},c=!e(15)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!s(t))return"F";if(!n)return"E";f(t)}return t[r].i},h=function(t,n){if(!o(t,r)){if(!s(t))return!0;if(!n)return!1;f(t)}return t[r].w},d=function(t){return c&&v.NEED&&s(t)&&!o(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:d}},function(t,n,e){var r=e(4),i=e(98).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,s="process"==e(18)(u);t.exports=function(){var t,n,e,c=function(){var r,i;for(s&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(s)e=function(){u.nextTick(c)};else if(o){var f=!0,l=document.createTextNode("");new o(c).observe(l,{characterData:!0}),e=function(){l.data=f=!f}}else if(a&&a.resolve){var h=a.resolve();e=function(){h.then(c)}}else e=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};n&&(n.next=i),t||(t=i,e()),n=i}}},function(t,n,e){"use strict";var r=e(21),i=e(55),o=e(37),u=e(29),a=e(53),s=Object.assign;t.exports=!s||e(15)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=u(t),s=arguments.length,c=1,f=i.f,l=o.f;s>c;)for(var h,d=a(arguments[c++]),v=f?r(d).concat(f(d)):r(d),p=v.length,y=0;p>y;)l.call(d,h=v[y++])&&(e[h]=d[h]);return e}:s},function(t,n,e){var r=e(9);t.exports=function(t,n,e){for(var i in n)e&&t[i]?t[i]=n[i]:r(t,i,n[i]);return t}},function(t,n,e){var r=e(14),i=e(5),o=function(t,n){if(i(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(17)(Function.call,e(54).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},function(t,n,e){"use strict";var r=e(4),i=e(2),o=e(6),u=e(7),a=e(3)("species");t.exports=function(t){var n="function"==typeof i[t]?i[t]:r[t];u&&n&&!n[a]&&o.f(n,a,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(5),i=e(35),o=e(3)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[o])?n:i(e)}},function(t,n,e){"use strict";var r=e(17),i=e(8),o=e(29),u=e(90),a=e(89),s=e(38),c=e(145),f=e(40);i(i.S+i.F*!e(92)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,i,l,h=o(t),d="function"==typeof this?this:Array,v=arguments.length,p=v>1?arguments[1]:void 0,y=void 0!==p,m=0,k=f(h);if(y&&(p=r(p,v>2?arguments[2]:void 0,2)),void 0==k||d==Array&&a(k))for(n=s(h.length),e=new d(n);n>m;m++)c(e,m,y?p(h[m],m):h[m]);else for(l=k.call(h),e=new d;!(i=l.next()).done;m++)c(e,m,y?u(l,p,[i.value,m],!0):i.value);return e.length=m,e}})},function(t,n,e){var r=e(8);r(r.S+r.F,"Object",{assign:e(153)})},function(t,n,e){var r=e(8);r(r.S,"Object",{create:e(36)})},function(t,n,e){var r=e(10),i=e(54).f;e(58)("getOwnPropertyDescriptor",function(){return function(t,n){return i(r(t),n)}})},function(t,n,e){e(58)("getOwnPropertyNames",function(){return e(95).f})},function(t,n,e){var r=e(29),i=e(56);e(58)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,n,e){var r=e(8);r(r.S,"Object",{setPrototypeOf:e(155).set})},function(t,n,e){"use strict";var r,i,o,u=e(26),a=e(4),s=e(17),c=e(50),f=e(8),l=e(14),h=e(35),d=e(144),v=e(147),p=e(157),y=e(98).set,m=e(152)(),k="Promise",g=a.TypeError,b=a.process,_=a[k],b=a.process,w="process"==c(b),x=function(){},O=!!function(){try{var t=_.resolve(1),n=(t.constructor={})[e(3)("species")]=function(t){t(x,x)};return(w||"function"==typeof PromiseRejectionEvent)&&t.then(x)instanceof n}catch(t){}}(),P=function(t,n){return t===n||t===_&&n===o},S=function(t){var n;return!(!l(t)||"function"!=typeof(n=t.then))&&n},I=function(t){return P(_,t)?new T(t):new i(t)},T=i=function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw g("Bad Promise constructor");n=t,e=r}),this.resolve=h(n),this.reject=h(e)},E=function(t){try{t()}catch(t){return{error:t}}},j=function(t,n){if(!t._n){t._n=!0;var e=t._c;m(function(){for(var r=t._v,i=1==t._s,o=0,u=function(n){var e,o,u=i?n.ok:n.fail,a=n.resolve,s=n.reject,c=n.domain;try{u?(i||(2==t._h&&C(t),t._h=1),u===!0?e=r:(c&&c.enter(),e=u(r),c&&c.exit()),e===n.promise?s(g("Promise-chain cycle")):(o=S(e))?o.call(e,a,s):a(e)):s(r)}catch(t){s(t)}};e.length>o;)u(e[o++]);t._c=[],t._n=!1,n&&!t._h&&M(t)})}},M=function(t){y.call(a,function(){var n,e,r,i=t._v;if(F(t)&&(n=E(function(){w?b.emit("unhandledRejection",i,t):(e=a.onunhandledrejection)?e({promise:t,reason:i}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=w||F(t)?2:1),t._a=void 0,n)throw n.error})},F=function(t){if(1==t._h)return!1;for(var n,e=t._a||t._c,r=0;e.length>r;)if(n=e[r++],n.fail||!F(n.promise))return!1;return!0},C=function(t){y.call(a,function(){var n;w?b.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},R=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),j(n,!0))},A=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw g("Promise can't be resolved itself");(n=S(t))?m(function(){var r={_w:e,_d:!1};try{n.call(t,s(A,r,1),s(R,r,1))}catch(t){R.call(r,t)}}):(e._v=t,e._s=1,j(e,!1))}catch(t){R.call({_w:e,_d:!1},t)}}};O||(_=function(t){d(this,_,k,"_h"),h(t),r.call(this);try{t(s(A,this,1),s(R,this,1))}catch(t){R.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e(154)(_.prototype,{then:function(t,n){var e=I(p(this,_));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=w?b.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&j(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),T=function(){var t=new r;this.promise=t,this.resolve=s(A,t,1),this.reject=s(R,t,1)}),f(f.G+f.W+f.F*!O,{Promise:_}),e(22)(_,k),e(156)(k),o=e(2)[k],f(f.S+f.F*!O,k,{reject:function(t){var n=I(this),e=n.reject;return e(t),n.promise}}),f(f.S+f.F*(u||!O),k,{resolve:function(t){if(t instanceof _&&P(t.constructor,this))return t;var n=I(this),e=n.resolve;return e(t),n.promise}}),f(f.S+f.F*!(O&&e(92)(function(t){_.all(t).catch(x)})),k,{all:function(t){var n=this,e=I(n),r=e.resolve,i=e.reject,o=E(function(){var e=[],o=0,u=1;v(t,!1,function(t){var a=o++,s=!1;e.push(void 0),u++,n.resolve(t).then(function(t){s||(s=!0,e[a]=t,--u||r(e))},i)}),--u||r(e)});return o&&i(o.error),e.promise},race:function(t){var n=this,e=I(n),r=e.reject,i=E(function(){v(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return i&&r(i.error),e.promise}})},function(t,n,e){"use strict";var r=e(4),i=e(11),o=e(7),u=e(8),a=e(59),s=e(151).KEY,c=e(15),f=e(33),l=e(22),h=e(23),d=e(3),v=e(61),p=e(60),y=e(150),m=e(146),k=e(149),g=e(5),b=e(10),_=e(39),w=e(19),x=e(36),O=e(95),P=e(54),S=e(6),I=e(21),T=P.f,E=S.f,j=O.f,M=r.Symbol,F=r.JSON,C=F&&F.stringify,R="prototype",A=d("_hidden"),z=d("toPrimitive"),L={}.propertyIsEnumerable,D=f("symbol-registry"),W=f("symbols"),N=f("op-symbols"),U=Object[R],J="function"==typeof M,q=r.QObject,V=!q||!q[R]||!q[R].findChild,B=o&&c(function(){return 7!=x(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=T(U,n);r&&delete U[n],E(t,n,e),r&&t!==U&&E(U,n,r)}:E,K=function(t){var n=W[t]=x(M[R]);return n._k=t,n},G=J&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},H=function(t,n,e){return t===U&&H(N,n,e),g(t),n=_(n,!0),g(e),i(W,n)?(e.enumerable?(i(t,A)&&t[A][n]&&(t[A][n]=!1),e=x(e,{enumerable:w(0,!1)})):(i(t,A)||E(t,A,w(1,{})),t[A][n]=!0),B(t,n,e)):E(t,n,e)},Y=function(t,n){g(t);for(var e,r=m(n=b(n)),i=0,o=r.length;o>i;)H(t,e=r[i++],n[e]);return t},X=function(t,n){return void 0===n?x(t):Y(x(t),n)},Q=function(t){var n=L.call(this,t=_(t,!0));return!(this===U&&i(W,t)&&!i(N,t))&&(!(n||!i(this,t)||!i(W,t)||i(this,A)&&this[A][t])||n)},Z=function(t,n){if(t=b(t),n=_(n,!0),t!==U||!i(W,n)||i(N,n)){var e=T(t,n);return!e||!i(W,n)||i(t,A)&&t[A][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=j(b(t)),r=[],o=0;e.length>o;)i(W,n=e[o++])||n==A||n==s||r.push(n);return r},tt=function(t){for(var n,e=t===U,r=j(e?N:b(t)),o=[],u=0;r.length>u;)!i(W,n=r[u++])||e&&!i(U,n)||o.push(W[n]);return o};J||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===U&&n.call(N,e),i(this,A)&&i(this[A],t)&&(this[A][t]=!1),B(this,t,w(1,e))};return o&&V&&B(U,t,{configurable:!0,set:n}),K(t)},a(M[R],"toString",function(){return this._k}),P.f=Z,S.f=H,e(96).f=O.f=$,e(37).f=Q,e(55).f=tt,o&&!e(26)&&a(U,"propertyIsEnumerable",Q,!0),v.f=function(t){return K(d(t))}),u(u.G+u.W+u.F*!J,{Symbol:M});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var nt=I(d.store),et=0;nt.length>et;)p(nt[et++]);u(u.S+u.F*!J,"Symbol",{for:function(t){return i(D,t+="")?D[t]:D[t]=M(t)},keyFor:function(t){if(G(t))return y(D,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){V=!0},useSimple:function(){V=!1}}),u(u.S+u.F*!J,"Object",{create:X,defineProperty:H,defineProperties:Y,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),F&&u(u.S+u.F*(!J||c(function(){var t=M();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!G(t)){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return n=r[1],"function"==typeof n&&(e=n),!e&&k(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!G(n))return n}),r[1]=n,C.apply(F,r)}}}),M[R][z]||e(9)(M[R],z,M[R].valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(60)("asyncIterator")},function(t,n,e){e(60)("observable")},function(t,n,e){t.exports=function(){return new Worker(e.p+"worker-slave.parallel.js")}},,function(t,n,e){var r=e(109).default;t.exports=r}]))}); | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["parallel-es"]=n():t["parallel-es"]=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.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=171)}(function(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))switch(typeof t[n]){case"function":break;case"object":t[n]=function(n){var e=n.slice(1),r=t[n[0]];return function(t,n,i){r.apply(this,[t,n,i].concat(e))}}(t[n]);break;default:t[n]=t[t[n]]}return 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 i=e(79),o=r(i);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,o.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(33)("wks"),i=e(23),o=e(4).Symbol,u="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("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(14);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(5),i=e(52),o=e(39),u=Object.defineProperty;n.f=e(7)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)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){t.exports=!e(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(4),i=e(2),o=e(17),u=e(9),a="prototype",s=function(t,n,e){var c,f,l,h=t&s.F,d=t&s.G,v=t&s.S,p=t&s.P,y=t&s.B,m=t&s.W,k=d?i:i[n]||(i[n]={}),g=k[a],b=d?r:v?r[n]:(r[n]||{})[a];d&&(e=n);for(c in e)f=!h&&b&&void 0!==b[c],f&&c in k||(l=f?b[c]:e[c],k[c]=d&&"function"!=typeof b[c]?e[c]:y&&f?o(l,r):m&&b[c]==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):p&&"function"==typeof l?o(Function.call,l):l,p&&((k.virtual||(k.virtual={}))[c]=l,t&s.R&&g&&!g[c]&&u(g,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n,e){var r=e(6),i=e(19);t.exports=e(7)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(53),i=e(25);t.exports=function(t){return r(i(t))}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n,e){i()(this,t),this.func=n,this.params=e}return u()(t,null,[{key:"create",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}},{key:"createUnchecked",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}}]),t}()},function(t,n,e){t.exports={default:e(85),__esModule:!0}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports={}},function(t,n,e){var r=e(35);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,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){"use strict";function r(t,n){return{_______isFunctionId:!0,identifier:t+"-"+n}}function i(t){return!!t&&t._______isFunctionId===!0}n.a=r,n.b=i},function(t,n,e){var r=e(57),i=e(32);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){var r=e(6).f,i=e(11),o=e(3)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},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";var r=e(20);e.d(n,"a",function(){return i});var i={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){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports=!0},function(t,n,e){var r=e(33)("keys"),i=e(23);t.exports=function(t){return r[t]||(r[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(25);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";var r=e(97)(!0);e(43)(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){var r=e(14),i=e(4).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(4),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(49),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(121),h=e(120);e.d(n,"a",function(){return d});var d=function(){function t(n){var e=this;s()(this,t),this.nextHandlers=[];var r=function(t,n,r){return e._next(t,n,r)},i=function(t){return e.reject(t)},o=function(t){return e.resolve(t)};n(r,o,i),this.promise=new u.a(function(t,n){e.resolve=t,e.reject=n})}return f()(t,[{key:"subscribe",value:function(t,n,e){return this.nextHandlers.push(t),(n||e)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"_next",value:function(t,n,e){var r=!0,o=!1,u=void 0;try{for(var a,s=i()(this.nextHandlers);!(r=(a=s.next()).done);r=!0){var c=a.value;c.apply(void 0,arguments)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}}}],[{key:"transform",value:function(n,e){var r=void 0,i=void 0,o=void 0,u=new t(function(t,n,e){r=t,i=n,o=e});return n.subscribe(r,o,function(t){return i(e(t))}),u}},{key:"fromTasks",value:function(t,n,e){return 0===t.length?new h.a(n):new l.a(t,n,e)}}]),t}()},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(5),i=e(94),o=e(32),u=e(27)("IE_PROTO"),a=function(){},s="prototype",c=function(){var t,n=e(31)("iframe"),r=o.length,i="<",u=">";for(n.style.display="none",e(51).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(i+"script"+u+"document.F=Object"+i+"/script"+u),t.close(),c=t.F;r--;)delete c[s][o[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a[s]=r(t),e=new a,a[s]=null,e[u]=t):e=c(),void 0===n?e:i(e,n)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(28),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){var r=e(14);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(50),i=e(3)("iterator"),o=e(16);t.exports=e(2).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){e(101);for(var r=e(4),i=e(9),o=e(16),u=e(3)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var c=a[s],f=r[c],l=f&&f.prototype;l&&!l[u]&&i(l,u,c),o[c]=o.Array}},function(t,n,e){"use strict";var r=e(70),i=(e.n(r),e(64)),o=(e.n(i),e(67)),u=(e.n(o),e(68)),a=(e.n(u),e(46)),s=e(71),c=(e.n(s),e(69)),f=(e.n(c),e(72));e.n(f);e.o(r,"IParallel")&&e.d(n,"a",function(){return r.IParallel}),e.o(i,"IParallelChain")&&e.d(n,"b",function(){return i.IParallelChain}),e.o(o,"IParallelTaskEnvironment")&&e.d(n,"c",function(){return o.IParallelTaskEnvironment}),e.o(o,"IParallelEnvironment")&&e.d(n,"d",function(){return o.IParallelEnvironment}),e.o(u,"IParallelJob")&&e.d(n,"e",function(){return u.IParallelJob}),e.d(n,"f",function(){return a.IParallelOptions}),e.d(n,"g",function(){return a.IDefaultInitializedParallelOptions}),e.o(s,"IParallelJobScheduler")&&e.d(n,"h",function(){return s.IParallelJobScheduler}),e.o(c,"IParallelOperation")&&e.d(n,"i",function(){return c.IParallelOperation}),e.o(c,"ISerializedParallelOperation")&&e.d(n,"j",function(){return c.ISerializedParallelOperation}),e.o(f,"IParallelStream")&&e.d(n,"k",function(){return f.IParallelStream})},function(t,n,e){"use strict";var r=e(26),i=e(8),o=e(59),u=e(9),a=e(11),s=e(16),c=e(91),f=e(22),l=e(56),h=e(3)("iterator"),d=!([].keys&&"next"in[].keys()),v="@@iterator",p="keys",y="values",m=function(){return this};t.exports=function(t,n,e,k,g,b,_){c(e,n,k);var w,x,O,P=function(t){if(!d&&t in E)return E[t];switch(t){case p:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",I=g==y,T=!1,E=t.prototype,j=E[h]||E[v]||g&&E[g],M=j||P(g),F=g?I?P("entries"):M:void 0,R="Array"==n?E.entries||j:j;if(R&&(O=l(R.call(new t)),O!==Object.prototype&&(f(O,S,!0),r||a(O,h)||u(O,h,m))),I&&j&&j.name!==y&&(T=!0,M=function(){return j.call(this)}),r&&!_||!d&&!T&&E[h]||u(E,h,M),s[n]=M,s[S]=m,g)if(w={values:I?M:P(y),keys:b?M:P(p),entries:F},_)for(x in w)x in E||o(E,x,w[x]);else i(i.P+i.F*(d||T),n,w);return w}},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n){i()(this,t),this.functionRegistry=n}return u()(t,[{key:"serializeFunctionCall",value:function(t){var n=this.functionRegistry.getOrSetId(t.func);return{______serializedFunctionCall:!0,functionId:n,parameters:t.params}}}]),t}()},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){var n=!0,e=!1,r=void 0;try{for(var i,a=o()(u);!(n=(i=a.next()).done);n=!0){var s=i.value,c=t[s];if("undefined"!=typeof c&&("number"!=typeof c||c<=0||c%1!==0))throw new Error("Illegal parallel options: "+s+" ("+c+") has to be an integer greater than zero")}}catch(t){e=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(e)throw r}}if("undefined"!=typeof t.minValuesPerTask&&"undefined"!=typeof t.maxValuesPerTask&&t.minValuesPerTask>t.maxValuesPerTask)throw new Error("Illegal parallel options: minValuesPerTask ("+t.minValuesPerTask+") must be equal or less than maxValuesPerTask ("+t.maxValuesPerTask+").")}var i=e(13),o=e.n(i);n.a=r;var u=["maxValuesPerTask","minValuesPerTask","maxDegreeOfParallelism"]},function(t,n,e){"use strict";function r(t){if(0===t.length)return[];var n=u()(t),e=n[0],r=n.slice(1);return Array.prototype.concat.apply(e,r)}function i(t,n){var e=t.length;t.length+=n.length;for(var r=0;r<n.length;++r)t[e+r]=n[r];return t}var o=e(82),u=e.n(o),a=e(13);e.n(a);n.b=r,n.a=i},function(t,n,e){t.exports={default:e(139),__esModule:!0}},function(t,n,e){t.exports={default:e(141),__esModule:!0}},function(t,n,e){var r=e(18),i=e(3)("toStringTag"),o="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),i))?e:o?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){t.exports=e(4).document&&document.documentElement},function(t,n,e){t.exports=!e(7)&&!e(15)(function(){return 7!=Object.defineProperty(e(31)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(18);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(37),i=e(19),o=e(10),u=e(39),a=e(11),s=e(52),c=Object.getOwnPropertyDescriptor;n.f=e(7)?c:function(t,n){if(t=o(t),n=u(n,!0),s)try{return c(t,n)}catch(t){}if(a(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(11),i=e(29),o=e(27)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(11),i=e(10),o=e(88)(!1),u=e(27)("IE_PROTO");t.exports=function(t,n){var e,a=i(t),s=0,c=[];for(e in a)e!=u&&r(a,e)&&c.push(e);for(;n.length>s;)r(a,e=n[s++])&&(~o(c,e)||c.push(e));return c}},function(t,n,e){var r=e(8),i=e(2),o=e(15);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",u)}},function(t,n,e){t.exports=e(9)},function(t,n,e){var r=e(4),i=e(2),o=e(26),u=e(61),a=e(6).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(3)},function(t,n,e){"use strict";var r=e(42),i=e(73),o=(e.n(i),e(74)),u=(e.n(o),e(63)),a=(e.n(u),e(20)),s=e(12),c=e(45),f=e(44),l=e(75),h=(e.n(l),e(42));e.d(n,"a",function(){return r.a}),e.o(i,"ITaskDefinition")&&e.d(n,"b",function(){return i.ITaskDefinition}),e.o(o,"ITask")&&e.d(n,"c",function(){return o.ITask}),e.o(u,"IFunctionDefinition")&&e.d(n,"d",function(){return u.IFunctionDefinition}),e.d(n,"e",function(){return a.IFunctionId}),e.d(n,"f",function(){return a.b}),e.d(n,"g",function(){return s.a}),e.d(n,"h",function(){return c.ISerializedFunctionCall}),e.d(n,"i",function(){return c.a}),e.d(n,"j",function(){return f.a}),e.o(l,"IThreadPool")&&e.d(n,"k",function(){return l.IThreadPool}),e.d(n,"l",function(){return h.b}),e.d(n,"m",function(){return h.c}),e.d(n,"n",function(){return h.d}),e.d(n,"o",function(){return h.e}),e.d(n,"p",function(){return h.f}),e.d(n,"q",function(){return h.g}),e.d(n,"r",function(){return h.h}),e.d(n,"s",function(){return h.i}),e.d(n,"t",function(){return h.j}),e.d(n,"u",function(){return h.k})},function(t,n){},function(t,n){},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(112);e.d(n,"a",function(){return s});var s=function(){function t(n,e,r){i()(this,t),this.options=e,this.environment=r,this.stream=n}return u()(t,[{key:"resolve",value:function(){return this}},{key:"chainOperation",value:function(t){return new a.a(this.stream,this.options,this.environment,[t])}},{key:"addEnvironment",value:function(t){return new a.a(this.stream,this.options,this.environment.add(t))}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(24),s=e(12);e.d(n,"a",function(){return c});var c=function(){function t(n){i()(this,t),this.collection=n}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*t,i=r+n;return e.serializeFunctionCall(s.a.createUnchecked(a.a.TO_ITERATOR,this.collection.slice(r,i)))}},{key:"length",get:function(){return this.collection.length}}]),t}()},64,64,function(t,n){},64,64,64,63,63,64,function(t,n,e){"use strict";function r(t){return{type:d.InitializeWorker,workerId:t}}function i(t){return{task:t,type:d.ScheduleTask}}function o(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return{functions:t,missingFunctions:e,type:d.FunctionResponse}}function u(){return{type:d.Stop}}function a(t){return t.type===d.FunctionRequest}function s(t){return t.type===d.WorkerResult}function c(t){return t.type===d.FunctionExecutionError}var f=e(125),l=(e.n(f),e(128)),h=(e.n(l),e(13));e.n(h);n.e=r,n.f=i,n.d=o,n.g=u,n.a=a,n.b=s,n.c=c;var d;!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"}(d||(d={}))},function(t,n,e){t.exports={default:e(133),__esModule:!0}},function(t,n,e){t.exports={default:e(135),__esModule:!0}},function(t,n,e){t.exports={default:e(86),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(129),o=r(i),u=e(126),a=r(u),s=e(84),c=r(s);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,c.default)(n)));t.prototype=(0,a.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(o.default?(0,o.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 i=e(84),o=r(i);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,o.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(77),o=r(i);n.default=function(t){return Array.isArray(t)?t:(0,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(77),o=r(i);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,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(131),o=r(i),u=e(130),a=r(u),s="function"==typeof a.default&&"symbol"==typeof o.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"===s(o.default)?function(t){return"undefined"==typeof t?"undefined":s(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"==typeof t?"undefined":s(t)}},function(t,n,e){e(41),e(30),t.exports=e(100)},function(t,n,e){e(102);var r=e(2).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n){t.exports=function(){}},function(t,n,e){var r=e(10),i=e(38),o=e(99);t.exports=function(t){return function(n,e,u){var a,s=r(n),c=i(s.length),f=o(u,c);if(t&&e!=e){for(;c>f;)if(a=s[f++],a!=a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){var r=e(16),i=e(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){var r=e(5);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){"use strict";var r=e(36),i=e(19),o=e(22),u={};e(9)(u,e(3)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n,e){var r=e(3)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(6),i=e(5),o=e(21);t.exports=e(7)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),a=u.length,s=0;a>s;)r.f(t,e=u[s++],n[e]);return t}},function(t,n,e){var r=e(10),i=e(96).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,n,e){var r=e(57),i=e(32).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(28),i=e(25);t.exports=function(t){return function(n,e){var o,u,a=String(i(n)),s=r(e),c=a.length;return s<0||s>=c?t?"":void 0:(o=a.charCodeAt(s),o<55296||o>56319||s+1===c||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):o:t?a.slice(s,s+2):(o-55296<<10)+(u-56320)+65536)}}},function(t,n,e){var r,i,o,u=e(17),a=e(148),s=e(51),c=e(31),f=e(4),l=f.process,h=f.setImmediate,d=f.clearImmediate,v=f.MessageChannel,p=0,y={},m="onreadystatechange",k=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},g=function(t){k.call(t.data)};h&&d||(h=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return y[++p]=function(){a("function"==typeof t?t:Function(t),n)},r(p),p},d=function(t){delete y[t]},"process"==e(18)(l)?r=function(t){l.nextTick(u(k,t,1))}:v?(i=new v,o=i.port2,i.port1.onmessage=g,r=u(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",g,!1)):r=m in c("script")?function(t){s.appendChild(c("script"))[m]=function(){s.removeChild(this),k.call(t)}}:function(t){setTimeout(u(k,t,1),0)}),t.exports={set:h,clear:d}},function(t,n,e){var r=e(28),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(5),i=e(40);t.exports=e(2).getIterator=function(t){var n=i(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(87),i=e(93),o=e(16),u=e(10);t.exports=e(43)(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,i(1)):"keys"==n?i(0,e):"values"==n?i(0,t[e]):i(0,[e,t[e]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(8);r(r.S+r.F*!e(7),"Object",{defineProperty:e(6).f})},69,function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(111);e.d(n,"a",function(){return c});var s=e(169),c=function(){function t(n){i()(this,t),this.functionLookupTable=n}return u()(t,[{key:"spawn",value:function(){if(!window.Worker)throw new Error("Missing Web Worker support");var t=new s,n=new a.a(t,this.functionLookupTable);return n.initialize(),n}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(124),s=e(20),c=e(123);e.d(n,"a",function(){return f});var f=function(){function t(){i()(this,t),this.ids=new a.a,this.definitions=new a.a,this.lastId=0}return u()(t,[{key:"getOrSetId",value:function(t){if(e.i(s.b)(t))return t;var n=t.toString(),r=this.ids.get(n);return"undefined"==typeof r&&(r=e.i(s.a)("dynamic",++this.lastId),this.initDefinition(t,r)),r}},{key:"getDefinition",value:function(t){return this.definitions.get(t.identifier)}},{key:"initDefinition",value:function(t,n){var r=t.toString(),i=e.i(c.a)(t),o=r.substring(r.indexOf("(")+1,r.indexOf(")")).split(","),u=r.substring(r.indexOf("{")+1,r.lastIndexOf("}")).trim(),a={argumentNames:o.map(function(t){return t.trim()}),body:u,id:n,name:i?i:void 0};this.ids.set(r,n),this.definitions.set(n.identifier,a)}}]),t}()},function(t,n,e){"use strict";function r(t){function n(n){if(n){if(n.hasOwnProperty("threadPool")&&"undefined"==typeof n.threadPool)throw new Error("The thread pool is mandatory and cannot be unset");if(n.hasOwnProperty("functionCallSerializer")&&"undefined"==typeof n.functionCallSerializer)throw new Error("The function call serializer is mandatory and cannot be unset");e.i(u.a)(n)}return o()({},t,n)}return{defaultOptions:function(e){return e?void(t=n(e)):o()({},t)},from:function(t,r){return e.i(f.a)(new a.a(t),n(r))},range:function(t,r,i,o){var u=s.a.create(t,r,i);return e.i(f.a)(u,n(o))},times:function(t,r,i,o){return i?e.i(f.a)(c.a.create(t,r),n(o),i):e.i(f.a)(c.a.create(t,r),n(o))},run:function(n){for(var r=void 0,i=arguments.length,o=Array(i>1?i-1:0),u=1;u<i;u++)o[u-1]=arguments[u];r=e.i(l.b)(n)?h.a.create(n,o):h.a.create(n,o);var a=t.functionCallSerializer.serializeFunctionCall(r),s={main:a,usedFunctionIds:[a.functionId]};return t.threadPool.run(s)}}}var i=e(78),o=e.n(i),u=e(46),a=e(66),s=e(116),c=e(117),f=e(113),l=e(20),h=e(12);e.d(n,"a",function(){return r})},function(t,n,e){"use strict";var r=e(48),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(81),f=e.n(c),l=e(80),h=e.n(l),d=e(119);e.d(n,"a",function(){return v});var v=function(t){function n(){return u()(this,n),f()(this,(n.__proto__||i()(n)).apply(this,arguments))}return h()(n,t),s()(n,[{key:"getScheduling",value:function(t,n){var e=void 0;e=n.maxDegreeOfParallelism?n.maxDegreeOfParallelism:4*n.threadPool.maxThreads;var r=t/e;return n.minValuesPerTask&&(r=Math.min(Math.max(r,n.minValuesPerTask),t)),n.maxValuesPerTask&&(r=Math.min(r,n.maxValuesPerTask)),{numberOfTasks:0===r?0:Math.round(t/r),valuesPerTask:Math.ceil(r)}}}]),n}(d.a)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(122);e.d(n,"a",function(){return s});var s=function(){function t(n,e){i()(this,t),this.workerThreadFactory=n,this.workers=[],this.idleWorkers=[],this.queue=[],this.maxThreadsLimit=e.maxConcurrencyLevel}return u()(t,[{key:"run",value:function(t){var n=new a.a(t);return this.queue.unshift(n),this.schedulePendingTasks(),n}},{key:"schedulePendingTasks",value:function(){for(;this.queue.length;){var t=void 0;if(0===this.idleWorkers.length&&this.workers.length<this.maxThreadsLimit?(t=this.workerThreadFactory.spawn(),this.workers.push(t)):this.idleWorkers.length>0&&(t=this.idleWorkers.pop()),!t)return;var n=this.queue.pop();this.runTaskOnWorker(n,t)}}},{key:"runTaskOnWorker",value:function(t,n){var e=this;t.isCancellationRequested?(t.resolveCancelled(),this.releaseWorker(n)):n.run(t.definition,function(r,i){r?t.reject(r):t.resolve(i),e.releaseWorker(n)})}},{key:"releaseWorker",value:function(t){this.idleWorkers.push(t),this.schedulePendingTasks()}},{key:"maxThreads",get:function(){return this.maxThreadsLimit},set:function(t){if("number"!=typeof t||t%1!==0||t<=0)throw new Error("The maxThreads limit ("+t+") has to be a positive integer larger than zero.");this.maxThreadsLimit=t}}]),t}()},function(t,n,e){"use strict";var r=e(106),i=e(108),o=e(107),u=e(105),a=e(44),s=e(104),c=e(62);e.d(n,"IParallel",function(){return c.a}),e.d(n,"ITaskDefinition",function(){return c.b}),e.d(n,"ITask",function(){return c.c}),e.d(n,"IFunctionDefinition",function(){return c.d}),e.d(n,"IFunctionId",function(){return c.e}),e.d(n,"isFunctionId",function(){return c.f}),e.d(n,"FunctionCall",function(){return c.g}),e.d(n,"ISerializedFunctionCall",function(){return c.h}),e.d(n,"isSerializedFunctionCall",function(){return c.i}),e.d(n,"FunctionCallSerializer",function(){return c.j}),e.d(n,"IThreadPool",function(){return c.k}),e.d(n,"IParallelChain",function(){return c.l}),e.d(n,"IParallelTaskEnvironment",function(){return c.m}),e.d(n,"IParallelEnvironment",function(){return c.n}),e.d(n,"IParallelJob",function(){return c.o}),e.d(n,"IParallelOptions",function(){return c.p}),e.d(n,"IDefaultInitializedParallelOptions",function(){return c.q}),e.d(n,"IParallelJobScheduler",function(){return c.r}),e.d(n,"IParallelOperation",function(){return c.s}),e.d(n,"ISerializedParallelOperation",function(){return c.t}),e.d(n,"IParallelStream",function(){return c.u});var f=new u.a,l=window.navigator.hardwareConcurrency||4,h=new a.a(f),d=new i.a(new s.a(f),{maxConcurrencyLevel:l}),v=e.i(r.a)({functionCallSerializer:h,scheduler:new o.a,threadPool:d});n.default=v},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(48),u=e.n(o),a=e(81),s=e.n(a),c=e(132),f=e.n(c),l=e(80),h=e.n(l),d=e(0),v=e.n(d),p=e(1),y=e.n(p),m=e(76);e.d(n,"a",function(){return k}),e.d(n,"b",function(){return g});var k=function(){function t(n){v()(this,t),this.name=n}return y()(t,[{key:"onMessage",value:function(t){throw new Error("Browser worker thread in state '"+this.name+"' cannot handle the received message ("+t.data.type+").")}},{key:"onError",value:function(t){console.error("Processing error on worker slave",t.error)}}]),t}(),g=function(t){function n(t,e,r){v()(this,n);var i=s()(this,(n.__proto__||u()(n)).call(this,"executing"));return i.callback=t,i.functionRegistry=e,i.worker=r,i}return h()(n,t),y()(n,[{key:"onMessage",value:function(t){var r=t.data;e.i(m.a)(r)?this.handleFunctionRequest(r):e.i(m.b)(r)?this.callback(void 0,r.result):e.i(m.c)(r)?this.callback(r.error,void 0):f()(n.prototype.__proto__||u()(n.prototype),"onMessage",this).call(this,t)}},{key:"onError",value:function(t){this.callback(t.error,void 0)}},{key:"handleFunctionRequest",value:function(t){var n=[],e=[],r=!0,o=!1,u=void 0;try{for(var a,s=i()(t.functionIds);!(r=(a=s.next()).done);r=!0){var c=a.value,f=this.functionRegistry.getDefinition(c);f?e.push(f):n.push(c)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}this.worker.postMessage(m.d.apply(void 0,[e].concat(n)))}}]),n}(k)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(76),s=e(110);e.d(n,"a",function(){return f});var c=0,f=function(){function t(n,e){i()(this,t),this.worker=n,this.functionLookupTable=e,this.id=++c,this.state=new s.a("default"),this.stopped=!1;var r=this;this.worker.addEventListener("message",function(){r.onWorkerMessage.apply(r,arguments)}),this.worker.addEventListener("error",function(){r.onError.apply(r,arguments)})}return u()(t,[{key:"initialize",value:function(){if("default"!==this.state.name)throw new Error("The browser worker thread can only be initialized if in state default but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.e)(this.id)),this.state=new s.a("idle")}},{key:"run",value:function(t,n){var r=this;if("idle"!==this.state.name)throw new Error("The browser worker thread can only execute a new task if in state idle but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.f)(t));var i=function(t,e){r.stopped?r.state=new s.a("stopped"):r.state=new s.a("idle"),n(t,e)};this.state=new s.b(i,this.functionLookupTable,this.worker)}},{key:"stop",value:function(){this.stopped||(this.sendMessage(e.i(a.g)()),this.stopped=!0,"executing"!==this.state.name&&(this.state=new s.a("stopped")))}},{key:"toString",value:function(){return"BrowserWorkerThread { id: "+this.id+", state: "+this.state.name}},{key:"onWorkerMessage",value:function(t){this.state.onMessage(t)}},{key:"onError",value:function(t){this.state.onError(t),this.state=new s.a("errored")}},{key:"sendMessage",value:function(t){this.worker.postMessage(t)}}]),t}()},function(t,n,e){"use strict";var r=e(83),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(65),f=e(66),l=e(47),h=e(34);e.d(n,"a",function(){return d});var d=function(){function t(n,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];u()(this,t),this.previousStream=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{ | ||
key:"resolve",value:function t(){var n=this,e=void 0,t=void 0,r=void 0,i=new h.a(function(n,i,o){e=n,t=i,r=o});return this.previousStream.then(function(i){var o=n.options.scheduler.schedule({environment:n.environment,generator:new f.a(i),operations:n.operations,options:n.options}),u=h.a.fromTasks(o,[],l.a);u.subscribe(e,r,t)},r),new c.a(i,this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.previousStream,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.previousStream,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";function r(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=void 0;e instanceof Array?(a=void 0,r=e):a=e;var s=new o.a(new i.a(t,n,u.a.of(),r));return a?s.inEnvironment(a):s}var i=e(115),o=e(114),u=e(118);n.a=r},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(82),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(24),h=e(12),d=e(34);e.d(n,"a",function(){return v});var v=function(){function t(n){s()(this,t),this.state=n}return f()(t,[{key:"inEnvironment",value:function(n){var e=void 0;if("function"==typeof n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e=h.a.createUnchecked.apply(h.a,[n].concat(i))}else e=n;return new t(this.state.addEnvironment(e))}},{key:"map",value:function(t){return this._chain(h.a.createUnchecked(l.a.MAP),h.a.createUnchecked(t))}},{key:"reduce",value:function(t,n,e){var r=e||n,o=this._chain(h.a.createUnchecked(l.a.REDUCE,t),h.a.createUnchecked(n)).resolveChain();return d.a.transform(o,function(n){if(0===n.length)return t;var e=u()(n),o=e[0],a=e.slice(1),s=o,c=!0,f=!1,l=void 0;try{for(var h,d=i()(a);!(c=(h=d.next()).done);c=!0){var v=h.value;s=r(s,v)}}catch(t){f=!0,l=t}finally{try{!c&&d.return&&d.return()}finally{if(f)throw l}}return s})}},{key:"filter",value:function(t){return this._chain(h.a.createUnchecked(l.a.FILTER),h.a.createUnchecked(t))}},{key:"subscribe",value:function(t,n,e){return this.resolveChain().subscribe(t,n,e)}},{key:"then",value:function(t,n){return this.resolveChain().then(t,n)}},{key:"catch",value:function(t){return this.resolveChain().catch(t)}},{key:"resolveChain",value:function(){var t=this.state=this.state.resolve();return t.stream}},{key:"_chain",value:function(n,e){var r={iterator:n,iteratee:e};return new t(this.state.chainOperation(r))}}]),t}()},function(t,n,e){"use strict";var r=e(83),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(65),f=e(34),l=e(47);e.d(n,"a",function(){return h});var h=function(){function t(n,e,r,i){u()(this,t),this.generator=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function(){var t=this.options.scheduler.schedule({environment:this.environment,generator:this.generator,operations:this.operations,options:this.options});return new c.a(f.a.fromTasks(t,[],l.a),this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.generator,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.generator,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(24),s=e(12);e.d(n,"a",function(){return c});var c=function(){function t(n,e,r){i()(this,t),this.start=n,this.end=e,this.step=r}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*this.step,i=this.start+t*r,o=Math.min(i+r,this.end);return e.serializeFunctionCall(s.a.createUnchecked(a.a.RANGE,i,o,this.step))}},{key:"length",get:function(){return Math.ceil((this.end-this.start)/this.step)}}],[{key:"create",value:function(n,e,r){if("undefined"==typeof e&&(e=n,n=0),"undefined"==typeof r&&(r=e<n?-1:1),0===r)throw new Error("Step size of zero is not allowed");return new t(n,e,r)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(24),s=e(12),c=e(20);e.d(n,"a",function(){return f});var f=function(){function t(n,e){i()(this,t),this.times=n,this.iteratee=e}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=t*n,i=Math.min(r+n,this.times),o=e.serializeFunctionCall(this.iteratee);return e.serializeFunctionCall(s.a.create(a.a.TIMES,r,i,o))}},{key:"length",get:function(){return this.times}}],[{key:"create",value:function(n,r){var i=void 0;return i=e.i(c.b)(r)||"function"==typeof r?s.a.createUnchecked(r):s.a.create(a.a.IDENTITY,r),new t(n,i)}}]),t}()},function(t,n,e){"use strict";var r=e(78),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(12);e.d(n,"a",function(){return f});var f=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u()(this,t),this.environments=n}return s()(t,[{key:"add",value:function(n){var e=this.environments.slice();return n instanceof c.a||!(this.environments.length>0)||this.environments[this.environments.length-1]instanceof c.a?e.push(n):e[e.length-1]=i()({},e[e.length-1],n),new t(e)}},{key:"toJSON",value:function(t){return this.environments.map(function(n){return n instanceof c.a?t.serializeFunctionCall(n):n})}}],[{key:"of",value:function(n){var e=t.EMPTY;return n?e.add(n):e}}]),t}();f.EMPTY=new f},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(12),s=e(24),c=e(47),f=e(45);e.d(n,"a",function(){return l});var l=function(){function t(){i()(this,t)}return u()(t,[{key:"schedule",value:function(t){var n=this.getTaskDefinitions(t);return n.map(function(n){return t.options.threadPool.run(n)})}},{key:"getTaskDefinitions",value:function(t){var n=this.getScheduling(t.generator.length,t.options),r=t.options.functionCallSerializer,i=t.environment.toJSON(r),o=this.serializeOperations(t.operations,r),u=[s.a.PARALLEL_JOB_EXECUTOR].concat(e.i(c.b)(o.map(function(t){return[t.iteratee.functionId,t.iterator.functionId]})));i.forEach(function(t){e.i(f.a)(t)&&u.push(t.functionId)});for(var l=[],h=0;h<n.numberOfTasks;++h){var d=t.generator.serializeSlice(h,n.valuesPerTask,r),v={environments:i,generator:d,operations:o,taskIndex:h,valuesPerTask:n.valuesPerTask},p={main:r.serializeFunctionCall(a.a.createUnchecked(s.a.PARALLEL_JOB_EXECUTOR,v)),taskIndex:h,usedFunctionIds:[d.functionId].concat(u),valuesPerTask:n.valuesPerTask};l.push(p)}return l}},{key:"serializeOperations",value:function(t,n){return t.map(function(t){return{iteratee:n.serializeFunctionCall(t.iteratee),iterator:n.serializeFunctionCall(t.iterator)}})}}]),t}()},function(t,n,e){"use strict";var r=e(49),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){u()(this,t),this.promise=i.a.resolve(n)}return s()(t,[{key:"subscribe",value:function(t,n,e){return(e||n)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}}]),t}()},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(34);e.d(n,"a",function(){return f});var f=function(){function t(n,e,r){var o=this;u()(this,t),this.failed=!1,this.nextSubResultIndex=0,this.tasks=n,this.joiner=r,this.endResult=e,this.pending=n.length,this.subResults=new Array(this.tasks.length),this.innerStream=new c.a(function(t,n,e){o.next=t,o.resolve=n,o.reject=e});var a=!0,s=!1,f=void 0;try{for(var l,h=i()(n);!(a=(l=h.next()).done);a=!0){var d=l.value;this.registerTaskHandler(d)}}catch(t){s=!0,f=t}finally{try{!a&&h.return&&h.return()}finally{if(s)throw f}}}return s()(t,[{key:"subscribe",value:function(t,n,e){return this.innerStream.subscribe(t,n,e),this}},{key:"then",value:function(t,n){return this.innerStream.then(t,n)}},{key:"catch",value:function(t){return this.innerStream.catch(t)}},{key:"registerTaskHandler",value:function(t){var n=this;t.then(function(e){return n._taskCompleted(e,t.definition)},function(t){return n._taskFailed(t)})}},{key:"_taskCompleted",value:function(t,n){if(0===this.pending)throw new Error("Stream already resolved but taskCompleted called one more time");--this.pending,this.tasks[n.taskIndex]=void 0,this.subResults[n.taskIndex]=t,this.failed||(this.next(t,n.taskIndex,n.valuesPerTask),this.nextSubResultIndex===n.taskIndex&&this.joinSubResults(),0===this.pending&&(this.resolve(this.endResult),this.endResult=void 0))}},{key:"joinSubResults",value:function(){for(;this.nextSubResultIndex<this.subResults.length&&"undefined"!=typeof this.subResults[this.nextSubResultIndex];){var t=this.subResults[this.nextSubResultIndex];this.subResults[this.nextSubResultIndex]=void 0,this.endResult=this.joiner.apply(void 0,[this.endResult,t]),++this.nextSubResultIndex}}},{key:"_taskFailed",value:function(t){if(this.failed!==!0){this.failed=!0;for(var n=0;n<this.tasks.length;++n){var e=this.tasks[n];"undefined"!=typeof e&&e.cancel()}this.reject(t)}}}]),t}()},function(t,n,e){"use strict";var r=e(49),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){var e=this;u()(this,t),this.definition=n,this.isCancellationRequested=!1,this.isCanceled=!1,this.promise=new i.a(function(t,n){e.resolvePromise=t,e.rejectPromise=n})}return s()(t,[{key:"resolve",value:function(t){this.isCancellationRequested?this.resolveCancelled():this.resolvePromise(t)}},{key:"resolveCancelled",value:function(){this.isCanceled=!0,this.reject("Task has been canceled")}},{key:"reject",value:function(t){this.rejectPromise(t)}},{key:"then",value:function(t,n){return n?this.promise.then(t,n):this.promise.then(t)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"cancel",value:function(){this.isCancellationRequested=!0}}]),t}()},function(t,n,e){"use strict";function r(t){if(t.hasOwnProperty("name"))return t.name;var n=t.toString();return n.substring(n.indexOf("function")+9,n.indexOf("(")).trim()}n.a=r},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(){i()(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(134),__esModule:!0}},function(t,n,e){t.exports={default:e(136),__esModule:!0}},function(t,n,e){t.exports={default:e(137),__esModule:!0}},function(t,n,e){t.exports={default:e(138),__esModule:!0}},function(t,n,e){t.exports={default:e(140),__esModule:!0}},function(t,n,e){t.exports={default:e(142),__esModule:!0}},function(t,n,e){t.exports={default:e(143),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(48),o=r(i),u=e(127),a=r(u);n.default=function t(n,e,r){null===n&&(n=Function.prototype);var i=(0,a.default)(n,e);if(void 0===i){var u=(0,o.default)(n);return null===u?void 0:t(u,e,r)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(r)}},function(t,n,e){e(30),e(158),t.exports=e(2).Array.from},function(t,n,e){var r=e(2),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,n,e){e(159),t.exports=e(2).Object.assign},function(t,n,e){e(160);var r=e(2).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){e(161);var r=e(2).Object;t.exports=function(t,n){return r.getOwnPropertyDescriptor(t,n)}},function(t,n,e){e(162);var r=e(2).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(163),t.exports=e(2).Object.getPrototypeOf},function(t,n,e){e(164),t.exports=e(2).Object.setPrototypeOf},function(t,n,e){e(103),e(30),e(41),e(165),t.exports=e(2).Promise},function(t,n,e){e(166),e(103),e(167),e(168),t.exports=e(2).Symbol},function(t,n,e){e(30),e(41),t.exports=e(61).f("iterator")},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){"use strict";var r=e(6),i=e(19);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(21),i=e(55),o=e(37);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,a=e(t),s=o.f,c=0;a.length>c;)s.call(t,u=a[c++])&&n.push(u);return n}},function(t,n,e){var r=e(17),i=e(90),o=e(89),u=e(5),a=e(38),s=e(40),c={},f={},n=t.exports=function(t,n,e,l,h){var d,v,p,y,m=h?function(){return t}:s(t),k=r(e,l,n?2:1),g=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=a(t.length);d>g;g++)if(y=n?k(u(v=t[g])[0],v[1]):k(t[g]),y===c||y===f)return y}else for(p=m.call(t);!(v=p.next()).done;)if(y=i(p,k,v.value,n),y===c||y===f)return y};n.BREAK=c,n.RETURN=f},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(21),i=e(10);t.exports=function(t,n){for(var e,o=i(t),u=r(o),a=u.length,s=0;a>s;)if(o[e=u[s++]]===n)return e}},function(t,n,e){var r=e(23)("meta"),i=e(14),o=e(11),u=e(6).f,a=0,s=Object.isExtensible||function(){return!0},c=!e(15)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!s(t))return"F";if(!n)return"E";f(t)}return t[r].i},h=function(t,n){if(!o(t,r)){if(!s(t))return!0;if(!n)return!1;f(t)}return t[r].w},d=function(t){return c&&v.NEED&&s(t)&&!o(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:d}},function(t,n,e){var r=e(4),i=e(98).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,s="process"==e(18)(u);t.exports=function(){var t,n,e,c=function(){var r,i;for(s&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(s)e=function(){u.nextTick(c)};else if(o){var f=!0,l=document.createTextNode("");new o(c).observe(l,{characterData:!0}),e=function(){l.data=f=!f}}else if(a&&a.resolve){var h=a.resolve();e=function(){h.then(c)}}else e=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};n&&(n.next=i),t||(t=i,e()),n=i}}},function(t,n,e){"use strict";var r=e(21),i=e(55),o=e(37),u=e(29),a=e(53),s=Object.assign;t.exports=!s||e(15)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=u(t),s=arguments.length,c=1,f=i.f,l=o.f;s>c;)for(var h,d=a(arguments[c++]),v=f?r(d).concat(f(d)):r(d),p=v.length,y=0;p>y;)l.call(d,h=v[y++])&&(e[h]=d[h]);return e}:s},function(t,n,e){var r=e(9);t.exports=function(t,n,e){for(var i in n)e&&t[i]?t[i]=n[i]:r(t,i,n[i]);return t}},function(t,n,e){var r=e(14),i=e(5),o=function(t,n){if(i(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(17)(Function.call,e(54).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},function(t,n,e){"use strict";var r=e(4),i=e(2),o=e(6),u=e(7),a=e(3)("species");t.exports=function(t){var n="function"==typeof i[t]?i[t]:r[t];u&&n&&!n[a]&&o.f(n,a,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(5),i=e(35),o=e(3)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[o])?n:i(e)}},function(t,n,e){"use strict";var r=e(17),i=e(8),o=e(29),u=e(90),a=e(89),s=e(38),c=e(145),f=e(40);i(i.S+i.F*!e(92)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,i,l,h=o(t),d="function"==typeof this?this:Array,v=arguments.length,p=v>1?arguments[1]:void 0,y=void 0!==p,m=0,k=f(h);if(y&&(p=r(p,v>2?arguments[2]:void 0,2)),void 0==k||d==Array&&a(k))for(n=s(h.length),e=new d(n);n>m;m++)c(e,m,y?p(h[m],m):h[m]);else for(l=k.call(h),e=new d;!(i=l.next()).done;m++)c(e,m,y?u(l,p,[i.value,m],!0):i.value);return e.length=m,e}})},function(t,n,e){var r=e(8);r(r.S+r.F,"Object",{assign:e(153)})},function(t,n,e){var r=e(8);r(r.S,"Object",{create:e(36)})},function(t,n,e){var r=e(10),i=e(54).f;e(58)("getOwnPropertyDescriptor",function(){return function(t,n){return i(r(t),n)}})},function(t,n,e){e(58)("getOwnPropertyNames",function(){return e(95).f})},function(t,n,e){var r=e(29),i=e(56);e(58)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,n,e){var r=e(8);r(r.S,"Object",{setPrototypeOf:e(155).set})},function(t,n,e){"use strict";var r,i,o,u=e(26),a=e(4),s=e(17),c=e(50),f=e(8),l=e(14),h=e(35),d=e(144),v=e(147),p=e(157),y=e(98).set,m=e(152)(),k="Promise",g=a.TypeError,b=a.process,_=a[k],b=a.process,w="process"==c(b),x=function(){},O=!!function(){try{var t=_.resolve(1),n=(t.constructor={})[e(3)("species")]=function(t){t(x,x)};return(w||"function"==typeof PromiseRejectionEvent)&&t.then(x)instanceof n}catch(t){}}(),P=function(t,n){return t===n||t===_&&n===o},S=function(t){var n;return!(!l(t)||"function"!=typeof(n=t.then))&&n},I=function(t){return P(_,t)?new T(t):new i(t)},T=i=function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw g("Bad Promise constructor");n=t,e=r}),this.resolve=h(n),this.reject=h(e)},E=function(t){try{t()}catch(t){return{error:t}}},j=function(t,n){if(!t._n){t._n=!0;var e=t._c;m(function(){for(var r=t._v,i=1==t._s,o=0,u=function(n){var e,o,u=i?n.ok:n.fail,a=n.resolve,s=n.reject,c=n.domain;try{u?(i||(2==t._h&&R(t),t._h=1),u===!0?e=r:(c&&c.enter(),e=u(r),c&&c.exit()),e===n.promise?s(g("Promise-chain cycle")):(o=S(e))?o.call(e,a,s):a(e)):s(r)}catch(t){s(t)}};e.length>o;)u(e[o++]);t._c=[],t._n=!1,n&&!t._h&&M(t)})}},M=function(t){y.call(a,function(){var n,e,r,i=t._v;if(F(t)&&(n=E(function(){w?b.emit("unhandledRejection",i,t):(e=a.onunhandledrejection)?e({promise:t,reason:i}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=w||F(t)?2:1),t._a=void 0,n)throw n.error})},F=function(t){if(1==t._h)return!1;for(var n,e=t._a||t._c,r=0;e.length>r;)if(n=e[r++],n.fail||!F(n.promise))return!1;return!0},R=function(t){y.call(a,function(){var n;w?b.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},C=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),j(n,!0))},A=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw g("Promise can't be resolved itself");(n=S(t))?m(function(){var r={_w:e,_d:!1};try{n.call(t,s(A,r,1),s(C,r,1))}catch(t){C.call(r,t)}}):(e._v=t,e._s=1,j(e,!1))}catch(t){C.call({_w:e,_d:!1},t)}}};O||(_=function(t){d(this,_,k,"_h"),h(t),r.call(this);try{t(s(A,this,1),s(C,this,1))}catch(t){C.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e(154)(_.prototype,{then:function(t,n){var e=I(p(this,_));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=w?b.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&j(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),T=function(){var t=new r;this.promise=t,this.resolve=s(A,t,1),this.reject=s(C,t,1)}),f(f.G+f.W+f.F*!O,{Promise:_}),e(22)(_,k),e(156)(k),o=e(2)[k],f(f.S+f.F*!O,k,{reject:function(t){var n=I(this),e=n.reject;return e(t),n.promise}}),f(f.S+f.F*(u||!O),k,{resolve:function(t){if(t instanceof _&&P(t.constructor,this))return t;var n=I(this),e=n.resolve;return e(t),n.promise}}),f(f.S+f.F*!(O&&e(92)(function(t){_.all(t).catch(x)})),k,{all:function(t){var n=this,e=I(n),r=e.resolve,i=e.reject,o=E(function(){var e=[],o=0,u=1;v(t,!1,function(t){var a=o++,s=!1;e.push(void 0),u++,n.resolve(t).then(function(t){s||(s=!0,e[a]=t,--u||r(e))},i)}),--u||r(e)});return o&&i(o.error),e.promise},race:function(t){var n=this,e=I(n),r=e.reject,i=E(function(){v(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return i&&r(i.error),e.promise}})},function(t,n,e){"use strict";var r=e(4),i=e(11),o=e(7),u=e(8),a=e(59),s=e(151).KEY,c=e(15),f=e(33),l=e(22),h=e(23),d=e(3),v=e(61),p=e(60),y=e(150),m=e(146),k=e(149),g=e(5),b=e(10),_=e(39),w=e(19),x=e(36),O=e(95),P=e(54),S=e(6),I=e(21),T=P.f,E=S.f,j=O.f,M=r.Symbol,F=r.JSON,R=F&&F.stringify,C="prototype",A=d("_hidden"),z=d("toPrimitive"),L={}.propertyIsEnumerable,W=f("symbol-registry"),D=f("symbols"),N=f("op-symbols"),U=Object[C],J="function"==typeof M,q=r.QObject,V=!q||!q[C]||!q[C].findChild,B=o&&c(function(){return 7!=x(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=T(U,n);r&&delete U[n],E(t,n,e),r&&t!==U&&E(U,n,r)}:E,K=function(t){var n=D[t]=x(M[C]);return n._k=t,n},G=J&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},H=function(t,n,e){return t===U&&H(N,n,e),g(t),n=_(n,!0),g(e),i(D,n)?(e.enumerable?(i(t,A)&&t[A][n]&&(t[A][n]=!1),e=x(e,{enumerable:w(0,!1)})):(i(t,A)||E(t,A,w(1,{})),t[A][n]=!0),B(t,n,e)):E(t,n,e)},Y=function(t,n){g(t);for(var e,r=m(n=b(n)),i=0,o=r.length;o>i;)H(t,e=r[i++],n[e]);return t},X=function(t,n){return void 0===n?x(t):Y(x(t),n)},Q=function(t){var n=L.call(this,t=_(t,!0));return!(this===U&&i(D,t)&&!i(N,t))&&(!(n||!i(this,t)||!i(D,t)||i(this,A)&&this[A][t])||n)},Z=function(t,n){if(t=b(t),n=_(n,!0),t!==U||!i(D,n)||i(N,n)){var e=T(t,n);return!e||!i(D,n)||i(t,A)&&t[A][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=j(b(t)),r=[],o=0;e.length>o;)i(D,n=e[o++])||n==A||n==s||r.push(n);return r},tt=function(t){for(var n,e=t===U,r=j(e?N:b(t)),o=[],u=0;r.length>u;)!i(D,n=r[u++])||e&&!i(U,n)||o.push(D[n]);return o};J||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===U&&n.call(N,e),i(this,A)&&i(this[A],t)&&(this[A][t]=!1),B(this,t,w(1,e))};return o&&V&&B(U,t,{configurable:!0,set:n}),K(t)},a(M[C],"toString",function(){return this._k}),P.f=Z,S.f=H,e(96).f=O.f=$,e(37).f=Q,e(55).f=tt,o&&!e(26)&&a(U,"propertyIsEnumerable",Q,!0),v.f=function(t){return K(d(t))}),u(u.G+u.W+u.F*!J,{Symbol:M});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var nt=I(d.store),et=0;nt.length>et;)p(nt[et++]);u(u.S+u.F*!J,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=M(t)},keyFor:function(t){if(G(t))return y(W,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){V=!0},useSimple:function(){V=!1}}),u(u.S+u.F*!J,"Object",{create:X,defineProperty:H,defineProperties:Y,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),F&&u(u.S+u.F*(!J||c(function(){var t=M();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!G(t)){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return n=r[1],"function"==typeof n&&(e=n),!e&&k(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!G(n))return n}),r[1]=n,R.apply(F,r)}}}),M[C][z]||e(9)(M[C],z,M[C].valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(60)("asyncIterator")},function(t,n,e){e(60)("observable")},function(t,n,e){t.exports=function(){return new Worker(e.p+"worker-slave.parallel.js")}},,function(t,n,e){var r=e(109).default;t.exports=r}]))}); | ||
//# sourceMappingURL=browser-commonjs.parallel.js.map |
@@ -1,3 +0,3 @@ | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["parallel-es"]=n():t["parallel-es"]=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.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=109)}(function(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))switch(typeof t[n]){case"function":break;case"object":t[n]=function(n){var e=n.slice(1),r=t[n[0]];return function(t,n,i){r.apply(this,[t,n,i].concat(e))}}(t[n]);break;default:t[n]=t[t[n]]}return 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 i=e(79),o=r(i);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,o.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(33)("wks"),i=e(23),o=e(4).Symbol,u="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("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(14);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(5),i=e(52),o=e(39),u=Object.defineProperty;n.f=e(7)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)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){t.exports=!e(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(4),i=e(2),o=e(17),u=e(9),a="prototype",s=function(t,n,e){var c,f,l,h=t&s.F,d=t&s.G,v=t&s.S,p=t&s.P,y=t&s.B,m=t&s.W,k=d?i:i[n]||(i[n]={}),g=k[a],b=d?r:v?r[n]:(r[n]||{})[a];d&&(e=n);for(c in e)f=!h&&b&&void 0!==b[c],f&&c in k||(l=f?b[c]:e[c],k[c]=d&&"function"!=typeof b[c]?e[c]:y&&f?o(l,r):m&&b[c]==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):p&&"function"==typeof l?o(Function.call,l):l,p&&((k.virtual||(k.virtual={}))[c]=l,t&s.R&&g&&!g[c]&&u(g,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n,e){var r=e(6),i=e(19);t.exports=e(7)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(53),i=e(25);t.exports=function(t){return r(i(t))}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n,e){i()(this,t),this.func=n,this.params=e}return u()(t,null,[{key:"create",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}},{key:"createUnchecked",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}}]),t}()},function(t,n,e){t.exports={default:e(85),__esModule:!0}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports={}},function(t,n,e){var r=e(35);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,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){"use strict";function r(t,n){return{_______isFunctionId:!0,identifier:t+"-"+n}}function i(t){return!!t&&t._______isFunctionId===!0}n.a=r,n.b=i},function(t,n,e){var r=e(57),i=e(32);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){var r=e(6).f,i=e(11),o=e(3)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},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";var r=e(20);e.d(n,"a",function(){return i});var i={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){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports=!0},function(t,n,e){var r=e(33)("keys"),i=e(23);t.exports=function(t){return r[t]||(r[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(25);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";var r=e(97)(!0);e(43)(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){var r=e(14),i=e(4).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(4),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(49),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(121),h=e(120);e.d(n,"a",function(){return d});var d=function(){function t(n){var e=this;s()(this,t),this.nextHandlers=[];var r=function(t,n,r){return e._next(t,n,r)},i=function(t){return e.reject(t)},o=function(t){return e.resolve(t)};n(r,o,i),this.promise=new u.a(function(t,n){e.resolve=t,e.reject=n})}return f()(t,[{key:"subscribe",value:function(t,n,e){return this.nextHandlers.push(t),(n||e)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"_next",value:function(t,n,e){var r=!0,o=!1,u=void 0;try{for(var a,s=i()(this.nextHandlers);!(r=(a=s.next()).done);r=!0){var c=a.value;c.apply(void 0,arguments)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}}}],[{key:"transform",value:function(n,e){var r=void 0,i=void 0,o=void 0,u=new t(function(t,n,e){r=t,i=n,o=e});return n.subscribe(r,o,function(t){return i(e(t))}),u}},{key:"fromTasks",value:function(t,n,e){return 0===t.length?new h.a(n):new l.a(t,n,e)}}]),t}()},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(5),i=e(94),o=e(32),u=e(27)("IE_PROTO"),a=function(){},s="prototype",c=function(){var t,n=e(31)("iframe"),r=o.length,i="<",u=">";for(n.style.display="none",e(51).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(i+"script"+u+"document.F=Object"+i+"/script"+u),t.close(),c=t.F;r--;)delete c[s][o[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a[s]=r(t),e=new a,a[s]=null,e[u]=t):e=c(),void 0===n?e:i(e,n)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(28),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){var r=e(14);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(50),i=e(3)("iterator"),o=e(16);t.exports=e(2).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){e(101);for(var r=e(4),i=e(9),o=e(16),u=e(3)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var c=a[s],f=r[c],l=f&&f.prototype;l&&!l[u]&&i(l,u,c),o[c]=o.Array}},function(t,n,e){"use strict";var r=e(70),i=(e.n(r),e(64)),o=(e.n(i),e(67)),u=(e.n(o),e(68)),a=(e.n(u),e(46)),s=e(71),c=(e.n(s),e(69)),f=(e.n(c),e(72));e.n(f);e.o(r,"IParallel")&&e.d(n,"a",function(){return r.IParallel}),e.o(i,"IParallelChain")&&e.d(n,"b",function(){return i.IParallelChain}),e.o(o,"IParallelTaskEnvironment")&&e.d(n,"c",function(){return o.IParallelTaskEnvironment}),e.o(o,"IParallelEnvironment")&&e.d(n,"d",function(){return o.IParallelEnvironment}),e.o(u,"IParallelJob")&&e.d(n,"e",function(){return u.IParallelJob}),e.d(n,"f",function(){return a.IParallelOptions}),e.d(n,"g",function(){return a.IDefaultInitializedParallelOptions}),e.o(s,"IParallelJobScheduler")&&e.d(n,"h",function(){return s.IParallelJobScheduler}),e.o(c,"IParallelOperation")&&e.d(n,"i",function(){return c.IParallelOperation}),e.o(c,"ISerializedParallelOperation")&&e.d(n,"j",function(){return c.ISerializedParallelOperation}),e.o(f,"IParallelStream")&&e.d(n,"k",function(){return f.IParallelStream})},function(t,n,e){"use strict";var r=e(26),i=e(8),o=e(59),u=e(9),a=e(11),s=e(16),c=e(91),f=e(22),l=e(56),h=e(3)("iterator"),d=!([].keys&&"next"in[].keys()),v="@@iterator",p="keys",y="values",m=function(){return this};t.exports=function(t,n,e,k,g,b,_){c(e,n,k);var w,x,O,P=function(t){if(!d&&t in E)return E[t];switch(t){case p:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",I=g==y,T=!1,E=t.prototype,j=E[h]||E[v]||g&&E[g],M=j||P(g),F=g?I?P("entries"):M:void 0,C="Array"==n?E.entries||j:j;if(C&&(O=l(C.call(new t)),O!==Object.prototype&&(f(O,S,!0),r||a(O,h)||u(O,h,m))),I&&j&&j.name!==y&&(T=!0,M=function(){return j.call(this)}),r&&!_||!d&&!T&&E[h]||u(E,h,M),s[n]=M,s[S]=m,g)if(w={values:I?M:P(y),keys:b?M:P(p),entries:F},_)for(x in w)x in E||o(E,x,w[x]);else i(i.P+i.F*(d||T),n,w);return w}},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n){i()(this,t),this.functionRegistry=n}return u()(t,[{key:"serializeFunctionCall",value:function(t){var n=this.functionRegistry.getOrSetId(t.func);return{______serializedFunctionCall:!0,functionId:n,parameters:t.params}}}]),t}()},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){"number"==typeof t.maxDegreeOfParallelism&&(t.maxDegreeOfParallelism=Math.floor(t.maxDegreeOfParallelism));var n=!0,e=!1,r=void 0;try{for(var i,a=o()(u);!(n=(i=a.next()).done);n=!0){var s=i.value,c=t[s];if("undefined"!=typeof c&&("number"!=typeof c||c<=0))throw new Error("Illegal parallel options: "+s+" ("+c+") must be number greater than zero")}}catch(t){e=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(e)throw r}}if("undefined"!=typeof t.minValuesPerTask&&"undefined"!=typeof t.maxValuesPerTask&&t.minValuesPerTask>t.maxValuesPerTask)throw new Error("Illegal parallel options: minValuesPerTask ("+t.minValuesPerTask+") must be equal or less than maxValuesPerTask ("+t.maxValuesPerTask+").")}var i=e(13),o=e.n(i);n.a=r;var u=["maxValuesPerTask","minValuesPerTask","maxConcurrencyLevel","maxDegreeOfParallelism"]},function(t,n,e){"use strict";function r(t){if(0===t.length)return[];var n=u()(t),e=n[0],r=n.slice(1);return Array.prototype.concat.apply(e,r)}function i(t,n){var e=t.length;t.length+=n.length;for(var r=0;r<n.length;++r)t[e+r]=n[r];return t}var o=e(82),u=e.n(o),a=e(13);e.n(a);n.b=r,n.a=i},function(t,n,e){t.exports={default:e(139),__esModule:!0}},function(t,n,e){t.exports={default:e(141),__esModule:!0}},function(t,n,e){var r=e(18),i=e(3)("toStringTag"),o="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),i))?e:o?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){t.exports=e(4).document&&document.documentElement},function(t,n,e){t.exports=!e(7)&&!e(15)(function(){return 7!=Object.defineProperty(e(31)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(18);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(37),i=e(19),o=e(10),u=e(39),a=e(11),s=e(52),c=Object.getOwnPropertyDescriptor;n.f=e(7)?c:function(t,n){if(t=o(t),n=u(n,!0),s)try{return c(t,n)}catch(t){}if(a(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(11),i=e(29),o=e(27)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(11),i=e(10),o=e(88)(!1),u=e(27)("IE_PROTO");t.exports=function(t,n){var e,a=i(t),s=0,c=[];for(e in a)e!=u&&r(a,e)&&c.push(e);for(;n.length>s;)r(a,e=n[s++])&&(~o(c,e)||c.push(e));return c}},function(t,n,e){var r=e(8),i=e(2),o=e(15);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",u)}},function(t,n,e){t.exports=e(9)},function(t,n,e){var r=e(4),i=e(2),o=e(26),u=e(61),a=e(6).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(3)},function(t,n,e){"use strict";var r=e(42),i=e(73),o=(e.n(i),e(74)),u=(e.n(o),e(63)),a=(e.n(u),e(20)),s=e(12),c=e(45),f=e(44),l=e(75),h=(e.n(l),e(42));e.d(n,"a",function(){return r.a}),e.o(i,"ITaskDefinition")&&e.d(n,"b",function(){return i.ITaskDefinition}),e.o(o,"ITask")&&e.d(n,"c",function(){return o.ITask}),e.o(u,"IFunctionDefinition")&&e.d(n,"d",function(){return u.IFunctionDefinition}),e.d(n,"e",function(){return a.IFunctionId}),e.d(n,"f",function(){return a.b}),e.d(n,"g",function(){return s.a}),e.d(n,"h",function(){return c.ISerializedFunctionCall}),e.d(n,"i",function(){return c.a}),e.d(n,"j",function(){return f.a}),e.o(l,"IThreadPool")&&e.d(n,"k",function(){return l.IThreadPool}),e.d(n,"l",function(){return h.b}),e.d(n,"m",function(){return h.c}),e.d(n,"n",function(){return h.d}),e.d(n,"o",function(){return h.e}),e.d(n,"p",function(){return h.f}),e.d(n,"q",function(){return h.g}),e.d(n,"r",function(){return h.h}),e.d(n,"s",function(){return h.i}),e.d(n,"t",function(){return h.j}),e.d(n,"u",function(){return h.k})},function(t,n){},function(t,n){},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(112);e.d(n,"a",function(){return s});var s=function(){function t(n,e,r){i()(this,t),this.options=e,this.environment=r,this.stream=n}return u()(t,[{key:"resolve",value:function(){return this}},{key:"chainOperation",value:function(t){return new a.a(this.stream,this.options,this.environment,[t])}},{key:"addEnvironment",value:function(t){return new a.a(this.stream,this.options,this.environment.add(t))}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(24),s=e(12);e.d(n,"a",function(){return c});var c=function(){function t(n){i()(this,t),this.collection=n}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*t,i=r+n;return e.serializeFunctionCall(s.a.createUnchecked(a.a.TO_ITERATOR,this.collection.slice(r,i)))}},{key:"length",get:function(){return this.collection.length}}]),t}()},64,64,function(t,n){},64,64,64,63,63,64,function(t,n,e){"use strict";function r(t){return{type:d.InitializeWorker,workerId:t}}function i(t){return{task:t,type:d.ScheduleTask}}function o(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return{functions:t,missingFunctions:e,type:d.FunctionResponse}}function u(){return{type:d.Stop}}function a(t){return t.type===d.FunctionRequest}function s(t){return t.type===d.WorkerResult}function c(t){return t.type===d.FunctionExecutionError}var f=e(125),l=(e.n(f),e(128)),h=(e.n(l),e(13));e.n(h);n.e=r,n.f=i,n.d=o,n.g=u,n.a=a,n.b=s,n.c=c;var d;!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"}(d||(d={}))},function(t,n,e){t.exports={default:e(133),__esModule:!0}},function(t,n,e){t.exports={default:e(135),__esModule:!0}},function(t,n,e){t.exports={default:e(86),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(129),o=r(i),u=e(126),a=r(u),s=e(84),c=r(s);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,c.default)(n)));t.prototype=(0,a.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(o.default?(0,o.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 i=e(84),o=r(i);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,o.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(77),o=r(i);n.default=function(t){return Array.isArray(t)?t:(0,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(77),o=r(i);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,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(131),o=r(i),u=e(130),a=r(u),s="function"==typeof a.default&&"symbol"==typeof o.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"===s(o.default)?function(t){return"undefined"==typeof t?"undefined":s(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"==typeof t?"undefined":s(t)}},function(t,n,e){e(41),e(30),t.exports=e(100)},function(t,n,e){e(102);var r=e(2).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n){t.exports=function(){}},function(t,n,e){var r=e(10),i=e(38),o=e(99);t.exports=function(t){return function(n,e,u){var a,s=r(n),c=i(s.length),f=o(u,c);if(t&&e!=e){for(;c>f;)if(a=s[f++],a!=a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){var r=e(16),i=e(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){var r=e(5);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){"use strict";var r=e(36),i=e(19),o=e(22),u={};e(9)(u,e(3)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n,e){var r=e(3)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(6),i=e(5),o=e(21);t.exports=e(7)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),a=u.length,s=0;a>s;)r.f(t,e=u[s++],n[e]);return t}},function(t,n,e){var r=e(10),i=e(96).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,n,e){var r=e(57),i=e(32).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(28),i=e(25);t.exports=function(t){return function(n,e){var o,u,a=String(i(n)),s=r(e),c=a.length;return s<0||s>=c?t?"":void 0:(o=a.charCodeAt(s),o<55296||o>56319||s+1===c||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):o:t?a.slice(s,s+2):(o-55296<<10)+(u-56320)+65536)}}},function(t,n,e){var r,i,o,u=e(17),a=e(148),s=e(51),c=e(31),f=e(4),l=f.process,h=f.setImmediate,d=f.clearImmediate,v=f.MessageChannel,p=0,y={},m="onreadystatechange",k=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},g=function(t){k.call(t.data)};h&&d||(h=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return y[++p]=function(){a("function"==typeof t?t:Function(t),n)},r(p),p},d=function(t){delete y[t]},"process"==e(18)(l)?r=function(t){l.nextTick(u(k,t,1))}:v?(i=new v,o=i.port2,i.port1.onmessage=g,r=u(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",g,!1)):r=m in c("script")?function(t){s.appendChild(c("script"))[m]=function(){s.removeChild(this),k.call(t)}}:function(t){setTimeout(u(k,t,1),0)}),t.exports={set:h,clear:d}},function(t,n,e){var r=e(28),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(5),i=e(40);t.exports=e(2).getIterator=function(t){var n=i(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(87),i=e(93),o=e(16),u=e(10);t.exports=e(43)(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,i(1)):"keys"==n?i(0,e):"values"==n?i(0,t[e]):i(0,[e,t[e]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(8);r(r.S+r.F*!e(7),"Object",{defineProperty:e(6).f})},69,function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(111);e.d(n,"a",function(){return c});var s=e(169),c=function(){function t(n){i()(this,t),this.functionLookupTable=n}return u()(t,[{key:"spawn",value:function(){if(!window.Worker)throw new Error("Missing Web Worker support");var t=new s,n=new a.a(t,this.functionLookupTable);return n.initialize(),n}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(124),s=e(20),c=e(123);e.d(n,"a",function(){return f});var f=function(){function t(){i()(this,t),this.ids=new a.a,this.definitions=new a.a,this.lastId=0}return u()(t,[{key:"getOrSetId",value:function(t){if(e.i(s.b)(t))return t;var n=t.toString(),r=this.ids.get(n);return"undefined"==typeof r&&(r=e.i(s.a)("dynamic",++this.lastId),this.initDefinition(t,r)),r}},{key:"getDefinition",value:function(t){return this.definitions.get(t.identifier)}},{key:"initDefinition",value:function(t,n){var r=t.toString(),i=e.i(c.a)(t),o=r.substring(r.indexOf("(")+1,r.indexOf(")")).split(","),u=r.substring(r.indexOf("{")+1,r.lastIndexOf("}")).trim(),a={argumentNames:o.map(function(t){return t.trim()}),body:u,id:n,name:i?i:void 0};this.ids.set(r,n),this.definitions.set(n.identifier,a)}}]),t}()},function(t,n,e){"use strict";function r(t){function n(n){if(n){if(n.hasOwnProperty("threadPool")&&"undefined"==typeof n.threadPool)throw new Error("The thread pool is mandatory and cannot be unset");if(n.hasOwnProperty("functionCallSerializer")&&"undefined"==typeof n.functionCallSerializer)throw new Error("The function call serializer is mandatory and cannot be unset");if(n.hasOwnProperty("maxConcurrencyLevel")&&"number"!=typeof n.maxConcurrencyLevel)throw new Error("The maxConcurrencyLevel is mandatory and has to be a number");e.i(u.a)(n)}return o()({},t,n)}return{defaultOptions:function(e){return e?void(t=n(e)):o()({},t)},from:function(t,r){return e.i(f.a)(new a.a(t),n(r))},range:function(t,r,i,o){var u=s.a.create(t,r,i);return e.i(f.a)(u,n(o))},times:function(t,r,i,o){return i?e.i(f.a)(c.a.create(t,r),n(o),i):e.i(f.a)(c.a.create(t,r),n(o))},run:function(n){for(var r=void 0,i=arguments.length,o=Array(i>1?i-1:0),u=1;u<i;u++)o[u-1]=arguments[u];r=e.i(l.b)(n)?h.a.create(n,o):h.a.create(n,o);var a=t.functionCallSerializer.serializeFunctionCall(r),s={main:a,usedFunctionIds:[a.functionId]};return t.threadPool.run(s)}}}var i=e(78),o=e.n(i),u=e(46),a=e(66),s=e(116),c=e(117),f=e(113),l=e(20),h=e(12);e.d(n,"a",function(){return r})},function(t,n,e){"use strict";var r=e(48),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(81),f=e.n(c),l=e(80),h=e.n(l),d=e(119);e.d(n,"a",function(){return v});var v=function(t){function n(){return u()(this,n),f()(this,(n.__proto__||i()(n)).apply(this,arguments))}return h()(n,t),s()(n,[{key:"getScheduling",value:function(t,n){var e=void 0;e=n.maxDegreeOfParallelism?n.maxDegreeOfParallelism:4*n.maxConcurrencyLevel;var r=t/e;return n.minValuesPerTask&&(r=Math.min(Math.max(r,n.minValuesPerTask),t)),n.maxValuesPerTask&&(r=Math.min(r,n.maxValuesPerTask)),{numberOfTasks:0===r?0:Math.round(t/r),valuesPerTask:Math.ceil(r)}}}]),n}(d.a)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(122);e.d(n,"a",function(){return s});var s=function(){function t(n,e){i()(this,t),this.workerThreadFactory=n,this.workers=[],this.idleWorkers=[],this.queue=[],this.concurrencyLimit=e.maxConcurrencyLevel}return u()(t,[{key:"run",value:function(t){var n=new a.a(t);return this.queue.unshift(n),this.schedulePendingTasks(),n}},{key:"schedulePendingTasks",value:function(){for(;this.queue.length;){var t=void 0;if(0===this.idleWorkers.length&&this.workers.length<this.concurrencyLimit?(t=this.workerThreadFactory.spawn(),this.workers.push(t)):this.idleWorkers.length>0&&(t=this.idleWorkers.pop()),!t)return;var n=this.queue.pop();this.runTaskOnWorker(n,t)}}},{key:"runTaskOnWorker",value:function(t,n){var e=this;t.isCancellationRequested?(t.resolveCancelled(),this.releaseWorker(n)):n.run(t.definition,function(r,i){r?t.reject(r):t.resolve(i),e.releaseWorker(n)})}},{key:"releaseWorker",value:function(t){this.idleWorkers.push(t),this.schedulePendingTasks()}}]),t}()},function(t,n,e){"use strict";var r=e(106),i=e(108),o=e(107),u=e(105),a=e(44),s=e(104),c=e(62);e.d(n,"IParallel",function(){return c.a}),e.d(n,"ITaskDefinition",function(){return c.b}),e.d(n,"ITask",function(){return c.c}),e.d(n,"IFunctionDefinition",function(){return c.d}),e.d(n,"IFunctionId",function(){return c.e}),e.d(n,"isFunctionId",function(){return c.f}),e.d(n,"FunctionCall",function(){return c.g}),e.d(n,"ISerializedFunctionCall",function(){return c.h}),e.d(n,"isSerializedFunctionCall",function(){return c.i}),e.d(n,"FunctionCallSerializer",function(){return c.j}),e.d(n,"IThreadPool",function(){return c.k}),e.d(n,"IParallelChain",function(){return c.l}),e.d(n,"IParallelTaskEnvironment",function(){return c.m}),e.d(n,"IParallelEnvironment",function(){return c.n}),e.d(n,"IParallelJob",function(){return c.o}),e.d(n,"IParallelOptions",function(){return c.p}),e.d(n,"IDefaultInitializedParallelOptions",function(){return c.q}),e.d(n,"IParallelJobScheduler",function(){return c.r}),e.d(n,"IParallelOperation",function(){return c.s}),e.d(n,"ISerializedParallelOperation",function(){return c.t}),e.d(n,"IParallelStream",function(){return c.u});var f=new u.a,l=window.navigator.hardwareConcurrency||4,h=new a.a(f),d=new i.a(new s.a(f),{maxConcurrencyLevel:l}),v=e.i(r.a)({functionCallSerializer:h,maxConcurrencyLevel:l,scheduler:new o.a,threadPool:d});n.default=v},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(48),u=e.n(o),a=e(81),s=e.n(a),c=e(132),f=e.n(c),l=e(80),h=e.n(l),d=e(0),v=e.n(d),p=e(1),y=e.n(p),m=e(76);e.d(n,"a",function(){return k}),e.d(n,"b",function(){return g});var k=function(){function t(n){v()(this,t),this.name=n}return y()(t,[{key:"onMessage",value:function(t){throw new Error("Browser worker thread in state '"+this.name+"' cannot handle the received message ("+t.data.type+").")}},{key:"onError",value:function(t){console.error("Processing error on worker slave",t.error)}}]),t}(),g=function(t){function n(t,e,r){v()(this,n);var i=s()(this,(n.__proto__||u()(n)).call(this,"executing"));return i.callback=t,i.functionRegistry=e,i.worker=r,i}return h()(n,t),y()(n,[{key:"onMessage",value:function(t){var r=t.data;e.i(m.a)(r)?this.handleFunctionRequest(r):e.i(m.b)(r)?this.callback(void 0,r.result):e.i(m.c)(r)?this.callback(r.error,void 0):f()(n.prototype.__proto__||u()(n.prototype),"onMessage",this).call(this,t)}},{key:"onError",value:function(t){this.callback(t.error,void 0)}},{key:"handleFunctionRequest",value:function(t){var n=[],e=[],r=!0,o=!1,u=void 0;try{for(var a,s=i()(t.functionIds);!(r=(a=s.next()).done);r=!0){var c=a.value,f=this.functionRegistry.getDefinition(c);f?e.push(f):n.push(c)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}this.worker.postMessage(m.d.apply(void 0,[e].concat(n)))}}]),n}(k)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(76),s=e(110);e.d(n,"a",function(){return f});var c=0,f=function(){function t(n,e){i()(this,t),this.worker=n,this.functionLookupTable=e,this.id=++c,this.state=new s.a("default"),this.stopped=!1;var r=this;this.worker.addEventListener("message",function(){r.onWorkerMessage.apply(r,arguments)}),this.worker.addEventListener("error",function(){r.onError.apply(r,arguments)})}return u()(t,[{key:"initialize",value:function(){if("default"!==this.state.name)throw new Error("The browser worker thread can only be initialized if in state default but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.e)(this.id)),this.state=new s.a("idle")}},{key:"run",value:function(t,n){var r=this;if("idle"!==this.state.name)throw new Error("The browser worker thread can only execute a new task if in state idle but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.f)(t));var i=function(t,e){r.stopped?r.state=new s.a("stopped"):r.state=new s.a("idle"),n(t,e)};this.state=new s.b(i,this.functionLookupTable,this.worker)}},{key:"stop",value:function(){this.stopped||(this.sendMessage(e.i(a.g)()),this.stopped=!0,"executing"!==this.state.name&&(this.state=new s.a("stopped")))}},{key:"toString",value:function(){return"BrowserWorkerThread { id: "+this.id+", state: "+this.state.name}},{key:"onWorkerMessage",value:function(t){this.state.onMessage(t)}},{key:"onError",value:function(t){this.state.onError(t),this.state=new s.a("errored")}},{key:"sendMessage",value:function(t){this.worker.postMessage(t)}}]),t}()},function(t,n,e){"use strict";var r=e(83),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(65),f=e(66),l=e(47),h=e(34);e.d(n,"a",function(){return d});var d=function(){function t(n,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];u()(this,t),this.previousStream=n,this.options=e, | ||
this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function t(){var n=this,e=void 0,t=void 0,r=void 0,i=new h.a(function(n,i,o){e=n,t=i,r=o});return this.previousStream.then(function(i){var o=n.options.scheduler.schedule({environment:n.environment,generator:new f.a(i),operations:n.operations,options:n.options}),u=h.a.fromTasks(o,[],l.a);u.subscribe(e,r,t)},r),new c.a(i,this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.previousStream,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.previousStream,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";function r(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=void 0;e instanceof Array?(a=void 0,r=e):a=e;var s=new o.a(new i.a(t,n,u.a.of(),r));return a?s.inEnvironment(a):s}var i=e(115),o=e(114),u=e(118);n.a=r},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(82),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(24),h=e(12),d=e(34);e.d(n,"a",function(){return v});var v=function(){function t(n){s()(this,t),this.state=n}return f()(t,[{key:"inEnvironment",value:function(n){var e=void 0;if("function"==typeof n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e=h.a.createUnchecked.apply(h.a,[n].concat(i))}else e=n;return new t(this.state.addEnvironment(e))}},{key:"map",value:function(t){return this._chain(h.a.createUnchecked(l.a.MAP),h.a.createUnchecked(t))}},{key:"reduce",value:function(t,n,e){var r=e||n,o=this._chain(h.a.createUnchecked(l.a.REDUCE,t),h.a.createUnchecked(n)).resolveChain();return d.a.transform(o,function(n){if(0===n.length)return t;var e=u()(n),o=e[0],a=e.slice(1),s=o,c=!0,f=!1,l=void 0;try{for(var h,d=i()(a);!(c=(h=d.next()).done);c=!0){var v=h.value;s=r(s,v)}}catch(t){f=!0,l=t}finally{try{!c&&d.return&&d.return()}finally{if(f)throw l}}return s})}},{key:"filter",value:function(t){return this._chain(h.a.createUnchecked(l.a.FILTER),h.a.createUnchecked(t))}},{key:"subscribe",value:function(t,n,e){return this.resolveChain().subscribe(t,n,e)}},{key:"then",value:function(t,n){return this.resolveChain().then(t,n)}},{key:"catch",value:function(t){return this.resolveChain().catch(t)}},{key:"resolveChain",value:function(){var t=this.state=this.state.resolve();return t.stream}},{key:"_chain",value:function(n,e){var r={iterator:n,iteratee:e};return new t(this.state.chainOperation(r))}}]),t}()},function(t,n,e){"use strict";var r=e(83),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(65),f=e(34),l=e(47);e.d(n,"a",function(){return h});var h=function(){function t(n,e,r,i){u()(this,t),this.generator=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function(){var t=this.options.scheduler.schedule({environment:this.environment,generator:this.generator,operations:this.operations,options:this.options});return new c.a(f.a.fromTasks(t,[],l.a),this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.generator,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.generator,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(24),s=e(12);e.d(n,"a",function(){return c});var c=function(){function t(n,e,r){i()(this,t),this.start=n,this.end=e,this.step=r}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*this.step,i=this.start+t*r,o=Math.min(i+r,this.end);return e.serializeFunctionCall(s.a.createUnchecked(a.a.RANGE,i,o,this.step))}},{key:"length",get:function(){return Math.ceil((this.end-this.start)/this.step)}}],[{key:"create",value:function(n,e,r){if("undefined"==typeof e&&(e=n,n=0),"undefined"==typeof r&&(r=e<n?-1:1),0===r)throw new Error("Step size of zero is not allowed");return new t(n,e,r)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(24),s=e(12),c=e(20);e.d(n,"a",function(){return f});var f=function(){function t(n,e){i()(this,t),this.times=n,this.iteratee=e}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=t*n,i=Math.min(r+n,this.times),o=e.serializeFunctionCall(this.iteratee);return e.serializeFunctionCall(s.a.create(a.a.TIMES,r,i,o))}},{key:"length",get:function(){return this.times}}],[{key:"create",value:function(n,r){var i=void 0;return i=e.i(c.b)(r)||"function"==typeof r?s.a.createUnchecked(r):s.a.create(a.a.IDENTITY,r),new t(n,i)}}]),t}()},function(t,n,e){"use strict";var r=e(78),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(12);e.d(n,"a",function(){return f});var f=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u()(this,t),this.environments=n}return s()(t,[{key:"add",value:function(n){var e=this.environments.slice();return n instanceof c.a||!(this.environments.length>0)||this.environments[this.environments.length-1]instanceof c.a?e.push(n):e[e.length-1]=i()({},e[e.length-1],n),new t(e)}},{key:"toJSON",value:function(t){return this.environments.map(function(n){return n instanceof c.a?t.serializeFunctionCall(n):n})}}],[{key:"of",value:function(n){var e=t.EMPTY;return n?e.add(n):e}}]),t}();f.EMPTY=new f},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(12),s=e(24),c=e(47),f=e(45);e.d(n,"a",function(){return l});var l=function(){function t(){i()(this,t)}return u()(t,[{key:"schedule",value:function(t){var n=this.getTaskDefinitions(t);return n.map(function(n){return t.options.threadPool.run(n)})}},{key:"getTaskDefinitions",value:function(t){var n=this.getScheduling(t.generator.length,t.options),r=t.options.functionCallSerializer,i=t.environment.toJSON(r),o=this.serializeOperations(t.operations,r),u=[s.a.PARALLEL_JOB_EXECUTOR].concat(e.i(c.b)(o.map(function(t){return[t.iteratee.functionId,t.iterator.functionId]})));i.forEach(function(t){e.i(f.a)(t)&&u.push(t.functionId)});for(var l=[],h=0;h<n.numberOfTasks;++h){var d=t.generator.serializeSlice(h,n.valuesPerTask,r),v={environments:i,generator:d,operations:o,taskIndex:h,valuesPerTask:n.valuesPerTask},p={main:r.serializeFunctionCall(a.a.createUnchecked(s.a.PARALLEL_JOB_EXECUTOR,v)),taskIndex:h,usedFunctionIds:[d.functionId].concat(u),valuesPerTask:n.valuesPerTask};l.push(p)}return l}},{key:"serializeOperations",value:function(t,n){return t.map(function(t){return{iteratee:n.serializeFunctionCall(t.iteratee),iterator:n.serializeFunctionCall(t.iterator)}})}}]),t}()},function(t,n,e){"use strict";var r=e(49),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){u()(this,t),this.promise=i.a.resolve(n)}return s()(t,[{key:"subscribe",value:function(t,n,e){return(e||n)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}}]),t}()},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(34);e.d(n,"a",function(){return f});var f=function(){function t(n,e,r){var o=this;u()(this,t),this.failed=!1,this.nextSubResultIndex=0,this.tasks=n,this.joiner=r,this.endResult=e,this.pending=n.length,this.subResults=new Array(this.tasks.length),this.innerStream=new c.a(function(t,n,e){o.next=t,o.resolve=n,o.reject=e});var a=!0,s=!1,f=void 0;try{for(var l,h=i()(n);!(a=(l=h.next()).done);a=!0){var d=l.value;this.registerTaskHandler(d)}}catch(t){s=!0,f=t}finally{try{!a&&h.return&&h.return()}finally{if(s)throw f}}}return s()(t,[{key:"subscribe",value:function(t,n,e){return this.innerStream.subscribe(t,n,e),this}},{key:"then",value:function(t,n){return this.innerStream.then(t,n)}},{key:"catch",value:function(t){return this.innerStream.catch(t)}},{key:"registerTaskHandler",value:function(t){var n=this;t.then(function(e){return n._taskCompleted(e,t.definition)},function(t){return n._taskFailed(t)})}},{key:"_taskCompleted",value:function(t,n){if(0===this.pending)throw new Error("Stream already resolved but taskCompleted called one more time");--this.pending,this.tasks[n.taskIndex]=void 0,this.subResults[n.taskIndex]=t,this.failed||(this.next(t,n.taskIndex,n.valuesPerTask),this.nextSubResultIndex===n.taskIndex&&this.joinSubResults(),0===this.pending&&(this.resolve(this.endResult),this.endResult=void 0))}},{key:"joinSubResults",value:function(){for(;this.nextSubResultIndex<this.subResults.length&&"undefined"!=typeof this.subResults[this.nextSubResultIndex];){var t=this.subResults[this.nextSubResultIndex];this.subResults[this.nextSubResultIndex]=void 0,this.endResult=this.joiner.apply(void 0,[this.endResult,t]),++this.nextSubResultIndex}}},{key:"_taskFailed",value:function(t){if(this.failed!==!0){this.failed=!0;for(var n=0;n<this.tasks.length;++n){var e=this.tasks[n];"undefined"!=typeof e&&e.cancel()}this.reject(t)}}}]),t}()},function(t,n,e){"use strict";var r=e(49),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){var e=this;u()(this,t),this.definition=n,this.isCancellationRequested=!1,this.isCanceled=!1,this.promise=new i.a(function(t,n){e.resolvePromise=t,e.rejectPromise=n})}return s()(t,[{key:"resolve",value:function(t){this.isCancellationRequested?this.resolveCancelled():this.resolvePromise(t)}},{key:"resolveCancelled",value:function(){this.isCanceled=!0,this.reject("Task has been canceled")}},{key:"reject",value:function(t){this.rejectPromise(t)}},{key:"then",value:function(t,n){return n?this.promise.then(t,n):this.promise.then(t)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"cancel",value:function(){this.isCancellationRequested=!0}}]),t}()},function(t,n,e){"use strict";function r(t){if(t.hasOwnProperty("name"))return t.name;var n=t.toString();return n.substring(n.indexOf("function")+9,n.indexOf("(")).trim()}n.a=r},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(){i()(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(134),__esModule:!0}},function(t,n,e){t.exports={default:e(136),__esModule:!0}},function(t,n,e){t.exports={default:e(137),__esModule:!0}},function(t,n,e){t.exports={default:e(138),__esModule:!0}},function(t,n,e){t.exports={default:e(140),__esModule:!0}},function(t,n,e){t.exports={default:e(142),__esModule:!0}},function(t,n,e){t.exports={default:e(143),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(48),o=r(i),u=e(127),a=r(u);n.default=function t(n,e,r){null===n&&(n=Function.prototype);var i=(0,a.default)(n,e);if(void 0===i){var u=(0,o.default)(n);return null===u?void 0:t(u,e,r)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(r)}},function(t,n,e){e(30),e(158),t.exports=e(2).Array.from},function(t,n,e){var r=e(2),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,n,e){e(159),t.exports=e(2).Object.assign},function(t,n,e){e(160);var r=e(2).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){e(161);var r=e(2).Object;t.exports=function(t,n){return r.getOwnPropertyDescriptor(t,n)}},function(t,n,e){e(162);var r=e(2).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(163),t.exports=e(2).Object.getPrototypeOf},function(t,n,e){e(164),t.exports=e(2).Object.setPrototypeOf},function(t,n,e){e(103),e(30),e(41),e(165),t.exports=e(2).Promise},function(t,n,e){e(166),e(103),e(167),e(168),t.exports=e(2).Symbol},function(t,n,e){e(30),e(41),t.exports=e(61).f("iterator")},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){"use strict";var r=e(6),i=e(19);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(21),i=e(55),o=e(37);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,a=e(t),s=o.f,c=0;a.length>c;)s.call(t,u=a[c++])&&n.push(u);return n}},function(t,n,e){var r=e(17),i=e(90),o=e(89),u=e(5),a=e(38),s=e(40),c={},f={},n=t.exports=function(t,n,e,l,h){var d,v,p,y,m=h?function(){return t}:s(t),k=r(e,l,n?2:1),g=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=a(t.length);d>g;g++)if(y=n?k(u(v=t[g])[0],v[1]):k(t[g]),y===c||y===f)return y}else for(p=m.call(t);!(v=p.next()).done;)if(y=i(p,k,v.value,n),y===c||y===f)return y};n.BREAK=c,n.RETURN=f},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(21),i=e(10);t.exports=function(t,n){for(var e,o=i(t),u=r(o),a=u.length,s=0;a>s;)if(o[e=u[s++]]===n)return e}},function(t,n,e){var r=e(23)("meta"),i=e(14),o=e(11),u=e(6).f,a=0,s=Object.isExtensible||function(){return!0},c=!e(15)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!s(t))return"F";if(!n)return"E";f(t)}return t[r].i},h=function(t,n){if(!o(t,r)){if(!s(t))return!0;if(!n)return!1;f(t)}return t[r].w},d=function(t){return c&&v.NEED&&s(t)&&!o(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:d}},function(t,n,e){var r=e(4),i=e(98).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,s="process"==e(18)(u);t.exports=function(){var t,n,e,c=function(){var r,i;for(s&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(s)e=function(){u.nextTick(c)};else if(o){var f=!0,l=document.createTextNode("");new o(c).observe(l,{characterData:!0}),e=function(){l.data=f=!f}}else if(a&&a.resolve){var h=a.resolve();e=function(){h.then(c)}}else e=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};n&&(n.next=i),t||(t=i,e()),n=i}}},function(t,n,e){"use strict";var r=e(21),i=e(55),o=e(37),u=e(29),a=e(53),s=Object.assign;t.exports=!s||e(15)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=u(t),s=arguments.length,c=1,f=i.f,l=o.f;s>c;)for(var h,d=a(arguments[c++]),v=f?r(d).concat(f(d)):r(d),p=v.length,y=0;p>y;)l.call(d,h=v[y++])&&(e[h]=d[h]);return e}:s},function(t,n,e){var r=e(9);t.exports=function(t,n,e){for(var i in n)e&&t[i]?t[i]=n[i]:r(t,i,n[i]);return t}},function(t,n,e){var r=e(14),i=e(5),o=function(t,n){if(i(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(17)(Function.call,e(54).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},function(t,n,e){"use strict";var r=e(4),i=e(2),o=e(6),u=e(7),a=e(3)("species");t.exports=function(t){var n="function"==typeof i[t]?i[t]:r[t];u&&n&&!n[a]&&o.f(n,a,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(5),i=e(35),o=e(3)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[o])?n:i(e)}},function(t,n,e){"use strict";var r=e(17),i=e(8),o=e(29),u=e(90),a=e(89),s=e(38),c=e(145),f=e(40);i(i.S+i.F*!e(92)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,i,l,h=o(t),d="function"==typeof this?this:Array,v=arguments.length,p=v>1?arguments[1]:void 0,y=void 0!==p,m=0,k=f(h);if(y&&(p=r(p,v>2?arguments[2]:void 0,2)),void 0==k||d==Array&&a(k))for(n=s(h.length),e=new d(n);n>m;m++)c(e,m,y?p(h[m],m):h[m]);else for(l=k.call(h),e=new d;!(i=l.next()).done;m++)c(e,m,y?u(l,p,[i.value,m],!0):i.value);return e.length=m,e}})},function(t,n,e){var r=e(8);r(r.S+r.F,"Object",{assign:e(153)})},function(t,n,e){var r=e(8);r(r.S,"Object",{create:e(36)})},function(t,n,e){var r=e(10),i=e(54).f;e(58)("getOwnPropertyDescriptor",function(){return function(t,n){return i(r(t),n)}})},function(t,n,e){e(58)("getOwnPropertyNames",function(){return e(95).f})},function(t,n,e){var r=e(29),i=e(56);e(58)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,n,e){var r=e(8);r(r.S,"Object",{setPrototypeOf:e(155).set})},function(t,n,e){"use strict";var r,i,o,u=e(26),a=e(4),s=e(17),c=e(50),f=e(8),l=e(14),h=e(35),d=e(144),v=e(147),p=e(157),y=e(98).set,m=e(152)(),k="Promise",g=a.TypeError,b=a.process,_=a[k],b=a.process,w="process"==c(b),x=function(){},O=!!function(){try{var t=_.resolve(1),n=(t.constructor={})[e(3)("species")]=function(t){t(x,x)};return(w||"function"==typeof PromiseRejectionEvent)&&t.then(x)instanceof n}catch(t){}}(),P=function(t,n){return t===n||t===_&&n===o},S=function(t){var n;return!(!l(t)||"function"!=typeof(n=t.then))&&n},I=function(t){return P(_,t)?new T(t):new i(t)},T=i=function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw g("Bad Promise constructor");n=t,e=r}),this.resolve=h(n),this.reject=h(e)},E=function(t){try{t()}catch(t){return{error:t}}},j=function(t,n){if(!t._n){t._n=!0;var e=t._c;m(function(){for(var r=t._v,i=1==t._s,o=0,u=function(n){var e,o,u=i?n.ok:n.fail,a=n.resolve,s=n.reject,c=n.domain;try{u?(i||(2==t._h&&C(t),t._h=1),u===!0?e=r:(c&&c.enter(),e=u(r),c&&c.exit()),e===n.promise?s(g("Promise-chain cycle")):(o=S(e))?o.call(e,a,s):a(e)):s(r)}catch(t){s(t)}};e.length>o;)u(e[o++]);t._c=[],t._n=!1,n&&!t._h&&M(t)})}},M=function(t){y.call(a,function(){var n,e,r,i=t._v;if(F(t)&&(n=E(function(){w?b.emit("unhandledRejection",i,t):(e=a.onunhandledrejection)?e({promise:t,reason:i}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=w||F(t)?2:1),t._a=void 0,n)throw n.error})},F=function(t){if(1==t._h)return!1;for(var n,e=t._a||t._c,r=0;e.length>r;)if(n=e[r++],n.fail||!F(n.promise))return!1;return!0},C=function(t){y.call(a,function(){var n;w?b.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},R=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),j(n,!0))},A=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw g("Promise can't be resolved itself");(n=S(t))?m(function(){var r={_w:e,_d:!1};try{n.call(t,s(A,r,1),s(R,r,1))}catch(t){R.call(r,t)}}):(e._v=t,e._s=1,j(e,!1))}catch(t){R.call({_w:e,_d:!1},t)}}};O||(_=function(t){d(this,_,k,"_h"),h(t),r.call(this);try{t(s(A,this,1),s(R,this,1))}catch(t){R.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e(154)(_.prototype,{then:function(t,n){var e=I(p(this,_));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=w?b.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&j(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),T=function(){var t=new r;this.promise=t,this.resolve=s(A,t,1),this.reject=s(R,t,1)}),f(f.G+f.W+f.F*!O,{Promise:_}),e(22)(_,k),e(156)(k),o=e(2)[k],f(f.S+f.F*!O,k,{reject:function(t){var n=I(this),e=n.reject;return e(t),n.promise}}),f(f.S+f.F*(u||!O),k,{resolve:function(t){if(t instanceof _&&P(t.constructor,this))return t;var n=I(this),e=n.resolve;return e(t),n.promise}}),f(f.S+f.F*!(O&&e(92)(function(t){_.all(t).catch(x)})),k,{all:function(t){var n=this,e=I(n),r=e.resolve,i=e.reject,o=E(function(){var e=[],o=0,u=1;v(t,!1,function(t){var a=o++,s=!1;e.push(void 0),u++,n.resolve(t).then(function(t){s||(s=!0,e[a]=t,--u||r(e))},i)}),--u||r(e)});return o&&i(o.error),e.promise},race:function(t){var n=this,e=I(n),r=e.reject,i=E(function(){v(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return i&&r(i.error),e.promise}})},function(t,n,e){"use strict";var r=e(4),i=e(11),o=e(7),u=e(8),a=e(59),s=e(151).KEY,c=e(15),f=e(33),l=e(22),h=e(23),d=e(3),v=e(61),p=e(60),y=e(150),m=e(146),k=e(149),g=e(5),b=e(10),_=e(39),w=e(19),x=e(36),O=e(95),P=e(54),S=e(6),I=e(21),T=P.f,E=S.f,j=O.f,M=r.Symbol,F=r.JSON,C=F&&F.stringify,R="prototype",A=d("_hidden"),z=d("toPrimitive"),L={}.propertyIsEnumerable,D=f("symbol-registry"),W=f("symbols"),N=f("op-symbols"),U=Object[R],J="function"==typeof M,q=r.QObject,V=!q||!q[R]||!q[R].findChild,B=o&&c(function(){return 7!=x(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=T(U,n);r&&delete U[n],E(t,n,e),r&&t!==U&&E(U,n,r)}:E,K=function(t){var n=W[t]=x(M[R]);return n._k=t,n},G=J&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},H=function(t,n,e){return t===U&&H(N,n,e),g(t),n=_(n,!0),g(e),i(W,n)?(e.enumerable?(i(t,A)&&t[A][n]&&(t[A][n]=!1),e=x(e,{enumerable:w(0,!1)})):(i(t,A)||E(t,A,w(1,{})),t[A][n]=!0),B(t,n,e)):E(t,n,e)},Y=function(t,n){g(t);for(var e,r=m(n=b(n)),i=0,o=r.length;o>i;)H(t,e=r[i++],n[e]);return t},X=function(t,n){return void 0===n?x(t):Y(x(t),n)},Q=function(t){var n=L.call(this,t=_(t,!0));return!(this===U&&i(W,t)&&!i(N,t))&&(!(n||!i(this,t)||!i(W,t)||i(this,A)&&this[A][t])||n)},Z=function(t,n){if(t=b(t),n=_(n,!0),t!==U||!i(W,n)||i(N,n)){var e=T(t,n);return!e||!i(W,n)||i(t,A)&&t[A][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=j(b(t)),r=[],o=0;e.length>o;)i(W,n=e[o++])||n==A||n==s||r.push(n);return r},tt=function(t){for(var n,e=t===U,r=j(e?N:b(t)),o=[],u=0;r.length>u;)!i(W,n=r[u++])||e&&!i(U,n)||o.push(W[n]);return o};J||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===U&&n.call(N,e),i(this,A)&&i(this[A],t)&&(this[A][t]=!1),B(this,t,w(1,e))};return o&&V&&B(U,t,{configurable:!0,set:n}),K(t)},a(M[R],"toString",function(){return this._k}),P.f=Z,S.f=H,e(96).f=O.f=$,e(37).f=Q,e(55).f=tt,o&&!e(26)&&a(U,"propertyIsEnumerable",Q,!0),v.f=function(t){return K(d(t))}),u(u.G+u.W+u.F*!J,{Symbol:M});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var nt=I(d.store),et=0;nt.length>et;)p(nt[et++]);u(u.S+u.F*!J,"Symbol",{for:function(t){return i(D,t+="")?D[t]:D[t]=M(t)},keyFor:function(t){if(G(t))return y(D,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){V=!0},useSimple:function(){V=!1}}),u(u.S+u.F*!J,"Object",{create:X,defineProperty:H,defineProperties:Y,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),F&&u(u.S+u.F*(!J||c(function(){var t=M();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!G(t)){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return n=r[1],"function"==typeof n&&(e=n),!e&&k(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!G(n))return n}),r[1]=n,C.apply(F,r)}}}),M[R][z]||e(9)(M[R],z,M[R].valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(60)("asyncIterator")},function(t,n,e){e(60)("observable")},function(t,n,e){t.exports=function(){return new Worker(e.p+"worker-slave.parallel.js")}}]))}); | ||
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["parallel-es"]=n():t["parallel-es"]=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.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=109)}(function(t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))switch(typeof t[n]){case"function":break;case"object":t[n]=function(n){var e=n.slice(1),r=t[n[0]];return function(t,n,i){r.apply(this,[t,n,i].concat(e))}}(t[n]);break;default:t[n]=t[t[n]]}return 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 i=e(79),o=r(i);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,o.default)(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}()},function(t,n){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(33)("wks"),i=e(23),o=e(4).Symbol,u="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("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(14);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(5),i=e(52),o=e(39),u=Object.defineProperty;n.f=e(7)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)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){t.exports=!e(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(4),i=e(2),o=e(17),u=e(9),a="prototype",s=function(t,n,e){var c,f,l,h=t&s.F,d=t&s.G,v=t&s.S,p=t&s.P,y=t&s.B,m=t&s.W,k=d?i:i[n]||(i[n]={}),g=k[a],b=d?r:v?r[n]:(r[n]||{})[a];d&&(e=n);for(c in e)f=!h&&b&&void 0!==b[c],f&&c in k||(l=f?b[c]:e[c],k[c]=d&&"function"!=typeof b[c]?e[c]:y&&f?o(l,r):m&&b[c]==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):p&&"function"==typeof l?o(Function.call,l):l,p&&((k.virtual||(k.virtual={}))[c]=l,t&s.R&&g&&!g[c]&&u(g,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n,e){var r=e(6),i=e(19);t.exports=e(7)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(53),i=e(25);t.exports=function(t){return r(i(t))}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n,e){i()(this,t),this.func=n,this.params=e}return u()(t,null,[{key:"create",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}},{key:"createUnchecked",value:function(n){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(n,r)}}]),t}()},function(t,n,e){t.exports={default:e(85),__esModule:!0}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){t.exports={}},function(t,n,e){var r=e(35);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,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){"use strict";function r(t,n){return{_______isFunctionId:!0,identifier:t+"-"+n}}function i(t){return!!t&&t._______isFunctionId===!0}n.a=r,n.b=i},function(t,n,e){var r=e(57),i=e(32);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n,e){var r=e(6).f,i=e(11),o=e(3)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},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";var r=e(20);e.d(n,"a",function(){return i});var i={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){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports=!0},function(t,n,e){var r=e(33)("keys"),i=e(23);t.exports=function(t){return r[t]||(r[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(25);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";var r=e(97)(!0);e(43)(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){var r=e(14),i=e(4).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(4),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(49),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(121),h=e(120);e.d(n,"a",function(){return d});var d=function(){function t(n){var e=this;s()(this,t),this.nextHandlers=[];var r=function(t,n,r){return e._next(t,n,r)},i=function(t){return e.reject(t)},o=function(t){return e.resolve(t)};n(r,o,i),this.promise=new u.a(function(t,n){e.resolve=t,e.reject=n})}return f()(t,[{key:"subscribe",value:function(t,n,e){return this.nextHandlers.push(t),(n||e)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"_next",value:function(t,n,e){var r=!0,o=!1,u=void 0;try{for(var a,s=i()(this.nextHandlers);!(r=(a=s.next()).done);r=!0){var c=a.value;c.apply(void 0,arguments)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}}}],[{key:"transform",value:function(n,e){var r=void 0,i=void 0,o=void 0,u=new t(function(t,n,e){r=t,i=n,o=e});return n.subscribe(r,o,function(t){return i(e(t))}),u}},{key:"fromTasks",value:function(t,n,e){return 0===t.length?new h.a(n):new l.a(t,n,e)}}]),t}()},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(5),i=e(94),o=e(32),u=e(27)("IE_PROTO"),a=function(){},s="prototype",c=function(){var t,n=e(31)("iframe"),r=o.length,i="<",u=">";for(n.style.display="none",e(51).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(i+"script"+u+"document.F=Object"+i+"/script"+u),t.close(),c=t.F;r--;)delete c[s][o[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a[s]=r(t),e=new a,a[s]=null,e[u]=t):e=c(),void 0===n?e:i(e,n)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(28),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n,e){var r=e(14);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(50),i=e(3)("iterator"),o=e(16);t.exports=e(2).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){e(101);for(var r=e(4),i=e(9),o=e(16),u=e(3)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var c=a[s],f=r[c],l=f&&f.prototype;l&&!l[u]&&i(l,u,c),o[c]=o.Array}},function(t,n,e){"use strict";var r=e(70),i=(e.n(r),e(64)),o=(e.n(i),e(67)),u=(e.n(o),e(68)),a=(e.n(u),e(46)),s=e(71),c=(e.n(s),e(69)),f=(e.n(c),e(72));e.n(f);e.o(r,"IParallel")&&e.d(n,"a",function(){return r.IParallel}),e.o(i,"IParallelChain")&&e.d(n,"b",function(){return i.IParallelChain}),e.o(o,"IParallelTaskEnvironment")&&e.d(n,"c",function(){return o.IParallelTaskEnvironment}),e.o(o,"IParallelEnvironment")&&e.d(n,"d",function(){return o.IParallelEnvironment}),e.o(u,"IParallelJob")&&e.d(n,"e",function(){return u.IParallelJob}),e.d(n,"f",function(){return a.IParallelOptions}),e.d(n,"g",function(){return a.IDefaultInitializedParallelOptions}),e.o(s,"IParallelJobScheduler")&&e.d(n,"h",function(){return s.IParallelJobScheduler}),e.o(c,"IParallelOperation")&&e.d(n,"i",function(){return c.IParallelOperation}),e.o(c,"ISerializedParallelOperation")&&e.d(n,"j",function(){return c.ISerializedParallelOperation}),e.o(f,"IParallelStream")&&e.d(n,"k",function(){return f.IParallelStream})},function(t,n,e){"use strict";var r=e(26),i=e(8),o=e(59),u=e(9),a=e(11),s=e(16),c=e(91),f=e(22),l=e(56),h=e(3)("iterator"),d=!([].keys&&"next"in[].keys()),v="@@iterator",p="keys",y="values",m=function(){return this};t.exports=function(t,n,e,k,g,b,_){c(e,n,k);var w,x,O,P=function(t){if(!d&&t in E)return E[t];switch(t){case p:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},S=n+" Iterator",I=g==y,T=!1,E=t.prototype,j=E[h]||E[v]||g&&E[g],M=j||P(g),F=g?I?P("entries"):M:void 0,R="Array"==n?E.entries||j:j;if(R&&(O=l(R.call(new t)),O!==Object.prototype&&(f(O,S,!0),r||a(O,h)||u(O,h,m))),I&&j&&j.name!==y&&(T=!0,M=function(){return j.call(this)}),r&&!_||!d&&!T&&E[h]||u(E,h,M),s[n]=M,s[S]=m,g)if(w={values:I?M:P(y),keys:b?M:P(p),entries:F},_)for(x in w)x in E||o(E,x,w[x]);else i(i.P+i.F*(d||T),n,w);return w}},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(n){i()(this,t),this.functionRegistry=n}return u()(t,[{key:"serializeFunctionCall",value:function(t){var n=this.functionRegistry.getOrSetId(t.func);return{______serializedFunctionCall:!0,functionId:n,parameters:t.params}}}]),t}()},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){var n=!0,e=!1,r=void 0;try{for(var i,a=o()(u);!(n=(i=a.next()).done);n=!0){var s=i.value,c=t[s];if("undefined"!=typeof c&&("number"!=typeof c||c<=0||c%1!==0))throw new Error("Illegal parallel options: "+s+" ("+c+") has to be an integer greater than zero")}}catch(t){e=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(e)throw r}}if("undefined"!=typeof t.minValuesPerTask&&"undefined"!=typeof t.maxValuesPerTask&&t.minValuesPerTask>t.maxValuesPerTask)throw new Error("Illegal parallel options: minValuesPerTask ("+t.minValuesPerTask+") must be equal or less than maxValuesPerTask ("+t.maxValuesPerTask+").")}var i=e(13),o=e.n(i);n.a=r;var u=["maxValuesPerTask","minValuesPerTask","maxDegreeOfParallelism"]},function(t,n,e){"use strict";function r(t){if(0===t.length)return[];var n=u()(t),e=n[0],r=n.slice(1);return Array.prototype.concat.apply(e,r)}function i(t,n){var e=t.length;t.length+=n.length;for(var r=0;r<n.length;++r)t[e+r]=n[r];return t}var o=e(82),u=e.n(o),a=e(13);e.n(a);n.b=r,n.a=i},function(t,n,e){t.exports={default:e(139),__esModule:!0}},function(t,n,e){t.exports={default:e(141),__esModule:!0}},function(t,n,e){var r=e(18),i=e(3)("toStringTag"),o="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),i))?e:o?r(n):"Object"==(a=r(n))&&"function"==typeof n.callee?"Arguments":a}},function(t,n,e){t.exports=e(4).document&&document.documentElement},function(t,n,e){t.exports=!e(7)&&!e(15)(function(){return 7!=Object.defineProperty(e(31)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){var r=e(18);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(37),i=e(19),o=e(10),u=e(39),a=e(11),s=e(52),c=Object.getOwnPropertyDescriptor;n.f=e(7)?c:function(t,n){if(t=o(t),n=u(n,!0),s)try{return c(t,n)}catch(t){}if(a(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(11),i=e(29),o=e(27)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(11),i=e(10),o=e(88)(!1),u=e(27)("IE_PROTO");t.exports=function(t,n){var e,a=i(t),s=0,c=[];for(e in a)e!=u&&r(a,e)&&c.push(e);for(;n.length>s;)r(a,e=n[s++])&&(~o(c,e)||c.push(e));return c}},function(t,n,e){var r=e(8),i=e(2),o=e(15);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o(function(){e(1)}),"Object",u)}},function(t,n,e){t.exports=e(9)},function(t,n,e){var r=e(4),i=e(2),o=e(26),u=e(61),a=e(6).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){n.f=e(3)},function(t,n,e){"use strict";var r=e(42),i=e(73),o=(e.n(i),e(74)),u=(e.n(o),e(63)),a=(e.n(u),e(20)),s=e(12),c=e(45),f=e(44),l=e(75),h=(e.n(l),e(42));e.d(n,"a",function(){return r.a}),e.o(i,"ITaskDefinition")&&e.d(n,"b",function(){return i.ITaskDefinition}),e.o(o,"ITask")&&e.d(n,"c",function(){return o.ITask}),e.o(u,"IFunctionDefinition")&&e.d(n,"d",function(){return u.IFunctionDefinition}),e.d(n,"e",function(){return a.IFunctionId}),e.d(n,"f",function(){return a.b}),e.d(n,"g",function(){return s.a}),e.d(n,"h",function(){return c.ISerializedFunctionCall}),e.d(n,"i",function(){return c.a}),e.d(n,"j",function(){return f.a}),e.o(l,"IThreadPool")&&e.d(n,"k",function(){return l.IThreadPool}),e.d(n,"l",function(){return h.b}),e.d(n,"m",function(){return h.c}),e.d(n,"n",function(){return h.d}),e.d(n,"o",function(){return h.e}),e.d(n,"p",function(){return h.f}),e.d(n,"q",function(){return h.g}),e.d(n,"r",function(){return h.h}),e.d(n,"s",function(){return h.i}),e.d(n,"t",function(){return h.j}),e.d(n,"u",function(){return h.k})},function(t,n){},function(t,n){},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(112);e.d(n,"a",function(){return s});var s=function(){function t(n,e,r){i()(this,t),this.options=e,this.environment=r,this.stream=n}return u()(t,[{key:"resolve",value:function(){return this}},{key:"chainOperation",value:function(t){return new a.a(this.stream,this.options,this.environment,[t])}},{key:"addEnvironment",value:function(t){return new a.a(this.stream,this.options,this.environment.add(t))}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(24),s=e(12);e.d(n,"a",function(){return c});var c=function(){function t(n){i()(this,t),this.collection=n}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*t,i=r+n;return e.serializeFunctionCall(s.a.createUnchecked(a.a.TO_ITERATOR,this.collection.slice(r,i)))}},{key:"length",get:function(){return this.collection.length}}]),t}()},64,64,function(t,n){},64,64,64,63,63,64,function(t,n,e){"use strict";function r(t){return{type:d.InitializeWorker,workerId:t}}function i(t){return{task:t,type:d.ScheduleTask}}function o(t){for(var n=arguments.length,e=Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return{functions:t,missingFunctions:e,type:d.FunctionResponse}}function u(){return{type:d.Stop}}function a(t){return t.type===d.FunctionRequest}function s(t){return t.type===d.WorkerResult}function c(t){return t.type===d.FunctionExecutionError}var f=e(125),l=(e.n(f),e(128)),h=(e.n(l),e(13));e.n(h);n.e=r,n.f=i,n.d=o,n.g=u,n.a=a,n.b=s,n.c=c;var d;!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"}(d||(d={}))},function(t,n,e){t.exports={default:e(133),__esModule:!0}},function(t,n,e){t.exports={default:e(135),__esModule:!0}},function(t,n,e){t.exports={default:e(86),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(129),o=r(i),u=e(126),a=r(u),s=e(84),c=r(s);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,c.default)(n)));t.prototype=(0,a.default)(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(o.default?(0,o.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 i=e(84),o=r(i);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,o.default)(n))&&"function"!=typeof n?t:n}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(77),o=r(i);n.default=function(t){return Array.isArray(t)?t:(0,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(77),o=r(i);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,o.default)(t)}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(131),o=r(i),u=e(130),a=r(u),s="function"==typeof a.default&&"symbol"==typeof o.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"===s(o.default)?function(t){return"undefined"==typeof t?"undefined":s(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"==typeof t?"undefined":s(t)}},function(t,n,e){e(41),e(30),t.exports=e(100)},function(t,n,e){e(102);var r=e(2).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n){t.exports=function(){}},function(t,n,e){var r=e(10),i=e(38),o=e(99);t.exports=function(t){return function(n,e,u){var a,s=r(n),c=i(s.length),f=o(u,c);if(t&&e!=e){for(;c>f;)if(a=s[f++],a!=a)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){var r=e(16),i=e(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){var r=e(5);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){"use strict";var r=e(36),i=e(19),o=e(22),u={};e(9)(u,e(3)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n,e){var r=e(3)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){var r=e(6),i=e(5),o=e(21);t.exports=e(7)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),a=u.length,s=0;a>s;)r.f(t,e=u[s++],n[e]);return t}},function(t,n,e){var r=e(10),i=e(96).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,n,e){var r=e(57),i=e(32).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(28),i=e(25);t.exports=function(t){return function(n,e){var o,u,a=String(i(n)),s=r(e),c=a.length;return s<0||s>=c?t?"":void 0:(o=a.charCodeAt(s),o<55296||o>56319||s+1===c||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):o:t?a.slice(s,s+2):(o-55296<<10)+(u-56320)+65536)}}},function(t,n,e){var r,i,o,u=e(17),a=e(148),s=e(51),c=e(31),f=e(4),l=f.process,h=f.setImmediate,d=f.clearImmediate,v=f.MessageChannel,p=0,y={},m="onreadystatechange",k=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},g=function(t){k.call(t.data)};h&&d||(h=function(t){for(var n=[],e=1;arguments.length>e;)n.push(arguments[e++]);return y[++p]=function(){a("function"==typeof t?t:Function(t),n)},r(p),p},d=function(t){delete y[t]},"process"==e(18)(l)?r=function(t){l.nextTick(u(k,t,1))}:v?(i=new v,o=i.port2,i.port1.onmessage=g,r=u(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",g,!1)):r=m in c("script")?function(t){s.appendChild(c("script"))[m]=function(){s.removeChild(this),k.call(t)}}:function(t){setTimeout(u(k,t,1),0)}),t.exports={set:h,clear:d}},function(t,n,e){var r=e(28),i=Math.max,o=Math.min;t.exports=function(t,n){return t=r(t),t<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(5),i=e(40);t.exports=e(2).getIterator=function(t){var n=i(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(87),i=e(93),o=e(16),u=e(10);t.exports=e(43)(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,i(1)):"keys"==n?i(0,e):"values"==n?i(0,t[e]):i(0,[e,t[e]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n,e){var r=e(8);r(r.S+r.F*!e(7),"Object",{defineProperty:e(6).f})},69,function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(111);e.d(n,"a",function(){return c});var s=e(169),c=function(){function t(n){i()(this,t),this.functionLookupTable=n}return u()(t,[{key:"spawn",value:function(){if(!window.Worker)throw new Error("Missing Web Worker support");var t=new s,n=new a.a(t,this.functionLookupTable);return n.initialize(),n}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(124),s=e(20),c=e(123);e.d(n,"a",function(){return f});var f=function(){function t(){i()(this,t),this.ids=new a.a,this.definitions=new a.a,this.lastId=0}return u()(t,[{key:"getOrSetId",value:function(t){if(e.i(s.b)(t))return t;var n=t.toString(),r=this.ids.get(n);return"undefined"==typeof r&&(r=e.i(s.a)("dynamic",++this.lastId),this.initDefinition(t,r)),r}},{key:"getDefinition",value:function(t){return this.definitions.get(t.identifier)}},{key:"initDefinition",value:function(t,n){var r=t.toString(),i=e.i(c.a)(t),o=r.substring(r.indexOf("(")+1,r.indexOf(")")).split(","),u=r.substring(r.indexOf("{")+1,r.lastIndexOf("}")).trim(),a={argumentNames:o.map(function(t){return t.trim()}),body:u,id:n,name:i?i:void 0};this.ids.set(r,n),this.definitions.set(n.identifier,a)}}]),t}()},function(t,n,e){"use strict";function r(t){function n(n){if(n){if(n.hasOwnProperty("threadPool")&&"undefined"==typeof n.threadPool)throw new Error("The thread pool is mandatory and cannot be unset");if(n.hasOwnProperty("functionCallSerializer")&&"undefined"==typeof n.functionCallSerializer)throw new Error("The function call serializer is mandatory and cannot be unset");e.i(u.a)(n)}return o()({},t,n)}return{defaultOptions:function(e){return e?void(t=n(e)):o()({},t)},from:function(t,r){return e.i(f.a)(new a.a(t),n(r))},range:function(t,r,i,o){var u=s.a.create(t,r,i);return e.i(f.a)(u,n(o))},times:function(t,r,i,o){return i?e.i(f.a)(c.a.create(t,r),n(o),i):e.i(f.a)(c.a.create(t,r),n(o))},run:function(n){for(var r=void 0,i=arguments.length,o=Array(i>1?i-1:0),u=1;u<i;u++)o[u-1]=arguments[u];r=e.i(l.b)(n)?h.a.create(n,o):h.a.create(n,o);var a=t.functionCallSerializer.serializeFunctionCall(r),s={main:a,usedFunctionIds:[a.functionId]};return t.threadPool.run(s)}}}var i=e(78),o=e.n(i),u=e(46),a=e(66),s=e(116),c=e(117),f=e(113),l=e(20),h=e(12);e.d(n,"a",function(){return r})},function(t,n,e){"use strict";var r=e(48),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(81),f=e.n(c),l=e(80),h=e.n(l),d=e(119);e.d(n,"a",function(){return v});var v=function(t){function n(){return u()(this,n),f()(this,(n.__proto__||i()(n)).apply(this,arguments))}return h()(n,t),s()(n,[{key:"getScheduling",value:function(t,n){var e=void 0;e=n.maxDegreeOfParallelism?n.maxDegreeOfParallelism:4*n.threadPool.maxThreads;var r=t/e;return n.minValuesPerTask&&(r=Math.min(Math.max(r,n.minValuesPerTask),t)),n.maxValuesPerTask&&(r=Math.min(r,n.maxValuesPerTask)),{numberOfTasks:0===r?0:Math.round(t/r),valuesPerTask:Math.ceil(r)}}}]),n}(d.a)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(122);e.d(n,"a",function(){return s});var s=function(){function t(n,e){i()(this,t),this.workerThreadFactory=n,this.workers=[],this.idleWorkers=[],this.queue=[],this.maxThreadsLimit=e.maxConcurrencyLevel}return u()(t,[{key:"run",value:function(t){var n=new a.a(t);return this.queue.unshift(n),this.schedulePendingTasks(),n}},{key:"schedulePendingTasks",value:function(){for(;this.queue.length;){var t=void 0;if(0===this.idleWorkers.length&&this.workers.length<this.maxThreadsLimit?(t=this.workerThreadFactory.spawn(),this.workers.push(t)):this.idleWorkers.length>0&&(t=this.idleWorkers.pop()),!t)return;var n=this.queue.pop();this.runTaskOnWorker(n,t)}}},{key:"runTaskOnWorker",value:function(t,n){var e=this;t.isCancellationRequested?(t.resolveCancelled(),this.releaseWorker(n)):n.run(t.definition,function(r,i){r?t.reject(r):t.resolve(i),e.releaseWorker(n)})}},{key:"releaseWorker",value:function(t){this.idleWorkers.push(t),this.schedulePendingTasks()}},{key:"maxThreads",get:function(){return this.maxThreadsLimit},set:function(t){if("number"!=typeof t||t%1!==0||t<=0)throw new Error("The maxThreads limit ("+t+") has to be a positive integer larger than zero.");this.maxThreadsLimit=t}}]),t}()},function(t,n,e){"use strict";var r=e(106),i=e(108),o=e(107),u=e(105),a=e(44),s=e(104),c=e(62);e.d(n,"IParallel",function(){return c.a}),e.d(n,"ITaskDefinition",function(){return c.b}),e.d(n,"ITask",function(){return c.c}),e.d(n,"IFunctionDefinition",function(){return c.d}),e.d(n,"IFunctionId",function(){return c.e}),e.d(n,"isFunctionId",function(){return c.f}),e.d(n,"FunctionCall",function(){return c.g}),e.d(n,"ISerializedFunctionCall",function(){return c.h}),e.d(n,"isSerializedFunctionCall",function(){return c.i}),e.d(n,"FunctionCallSerializer",function(){return c.j}),e.d(n,"IThreadPool",function(){return c.k}),e.d(n,"IParallelChain",function(){return c.l}),e.d(n,"IParallelTaskEnvironment",function(){return c.m}),e.d(n,"IParallelEnvironment",function(){return c.n}),e.d(n,"IParallelJob",function(){return c.o}),e.d(n,"IParallelOptions",function(){return c.p}),e.d(n,"IDefaultInitializedParallelOptions",function(){return c.q}),e.d(n,"IParallelJobScheduler",function(){return c.r}),e.d(n,"IParallelOperation",function(){return c.s}),e.d(n,"ISerializedParallelOperation",function(){return c.t}),e.d(n,"IParallelStream",function(){return c.u});var f=new u.a,l=window.navigator.hardwareConcurrency||4,h=new a.a(f),d=new i.a(new s.a(f),{maxConcurrencyLevel:l}),v=e.i(r.a)({functionCallSerializer:h,scheduler:new o.a,threadPool:d});n.default=v},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(48),u=e.n(o),a=e(81),s=e.n(a),c=e(132),f=e.n(c),l=e(80),h=e.n(l),d=e(0),v=e.n(d),p=e(1),y=e.n(p),m=e(76);e.d(n,"a",function(){return k}),e.d(n,"b",function(){return g});var k=function(){function t(n){v()(this,t),this.name=n}return y()(t,[{key:"onMessage",value:function(t){throw new Error("Browser worker thread in state '"+this.name+"' cannot handle the received message ("+t.data.type+").")}},{key:"onError",value:function(t){console.error("Processing error on worker slave",t.error)}}]),t}(),g=function(t){function n(t,e,r){v()(this,n);var i=s()(this,(n.__proto__||u()(n)).call(this,"executing"));return i.callback=t,i.functionRegistry=e,i.worker=r,i}return h()(n,t),y()(n,[{key:"onMessage",value:function(t){var r=t.data;e.i(m.a)(r)?this.handleFunctionRequest(r):e.i(m.b)(r)?this.callback(void 0,r.result):e.i(m.c)(r)?this.callback(r.error,void 0):f()(n.prototype.__proto__||u()(n.prototype),"onMessage",this).call(this,t)}},{key:"onError",value:function(t){this.callback(t.error,void 0)}},{key:"handleFunctionRequest",value:function(t){var n=[],e=[],r=!0,o=!1,u=void 0;try{for(var a,s=i()(t.functionIds);!(r=(a=s.next()).done);r=!0){var c=a.value,f=this.functionRegistry.getDefinition(c);f?e.push(f):n.push(c)}}catch(t){o=!0,u=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw u}}this.worker.postMessage(m.d.apply(void 0,[e].concat(n)))}}]),n}(k)},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(76),s=e(110);e.d(n,"a",function(){return f});var c=0,f=function(){function t(n,e){i()(this,t),this.worker=n,this.functionLookupTable=e,this.id=++c,this.state=new s.a("default"),this.stopped=!1;var r=this;this.worker.addEventListener("message",function(){r.onWorkerMessage.apply(r,arguments)}),this.worker.addEventListener("error",function(){r.onError.apply(r,arguments)})}return u()(t,[{key:"initialize",value:function(){if("default"!==this.state.name)throw new Error("The browser worker thread can only be initialized if in state default but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.e)(this.id)),this.state=new s.a("idle")}},{key:"run",value:function(t,n){var r=this;if("idle"!==this.state.name)throw new Error("The browser worker thread can only execute a new task if in state idle but actual state is '"+this.state.name+"'.");this.sendMessage(e.i(a.f)(t));var i=function(t,e){r.stopped?r.state=new s.a("stopped"):r.state=new s.a("idle"),n(t,e)};this.state=new s.b(i,this.functionLookupTable,this.worker)}},{key:"stop",value:function(){this.stopped||(this.sendMessage(e.i(a.g)()),this.stopped=!0,"executing"!==this.state.name&&(this.state=new s.a("stopped")))}},{key:"toString",value:function(){return"BrowserWorkerThread { id: "+this.id+", state: "+this.state.name}},{key:"onWorkerMessage",value:function(t){this.state.onMessage(t)}},{key:"onError",value:function(t){this.state.onError(t),this.state=new s.a("errored")}},{key:"sendMessage",value:function(t){this.worker.postMessage(t)}}]),t}()},function(t,n,e){"use strict";var r=e(83),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(65),f=e(66),l=e(47),h=e(34);e.d(n,"a",function(){return d});var d=function(){function t(n,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];u()(this,t),this.previousStream=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{ | ||
key:"resolve",value:function t(){var n=this,e=void 0,t=void 0,r=void 0,i=new h.a(function(n,i,o){e=n,t=i,r=o});return this.previousStream.then(function(i){var o=n.options.scheduler.schedule({environment:n.environment,generator:new f.a(i),operations:n.operations,options:n.options}),u=h.a.fromTasks(o,[],l.a);u.subscribe(e,r,t)},r),new c.a(i,this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.previousStream,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.previousStream,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";function r(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=void 0;e instanceof Array?(a=void 0,r=e):a=e;var s=new o.a(new i.a(t,n,u.a.of(),r));return a?s.inEnvironment(a):s}var i=e(115),o=e(114),u=e(118);n.a=r},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(82),u=e.n(o),a=e(0),s=e.n(a),c=e(1),f=e.n(c),l=e(24),h=e(12),d=e(34);e.d(n,"a",function(){return v});var v=function(){function t(n){s()(this,t),this.state=n}return f()(t,[{key:"inEnvironment",value:function(n){var e=void 0;if("function"==typeof n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e=h.a.createUnchecked.apply(h.a,[n].concat(i))}else e=n;return new t(this.state.addEnvironment(e))}},{key:"map",value:function(t){return this._chain(h.a.createUnchecked(l.a.MAP),h.a.createUnchecked(t))}},{key:"reduce",value:function(t,n,e){var r=e||n,o=this._chain(h.a.createUnchecked(l.a.REDUCE,t),h.a.createUnchecked(n)).resolveChain();return d.a.transform(o,function(n){if(0===n.length)return t;var e=u()(n),o=e[0],a=e.slice(1),s=o,c=!0,f=!1,l=void 0;try{for(var h,d=i()(a);!(c=(h=d.next()).done);c=!0){var v=h.value;s=r(s,v)}}catch(t){f=!0,l=t}finally{try{!c&&d.return&&d.return()}finally{if(f)throw l}}return s})}},{key:"filter",value:function(t){return this._chain(h.a.createUnchecked(l.a.FILTER),h.a.createUnchecked(t))}},{key:"subscribe",value:function(t,n,e){return this.resolveChain().subscribe(t,n,e)}},{key:"then",value:function(t,n){return this.resolveChain().then(t,n)}},{key:"catch",value:function(t){return this.resolveChain().catch(t)}},{key:"resolveChain",value:function(){var t=this.state=this.state.resolve();return t.stream}},{key:"_chain",value:function(n,e){var r={iterator:n,iteratee:e};return new t(this.state.chainOperation(r))}}]),t}()},function(t,n,e){"use strict";var r=e(83),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(65),f=e(34),l=e(47);e.d(n,"a",function(){return h});var h=function(){function t(n,e,r,i){u()(this,t),this.generator=n,this.options=e,this.environment=r,this.operations=i}return s()(t,[{key:"resolve",value:function(){var t=this.options.scheduler.schedule({environment:this.environment,generator:this.generator,operations:this.operations,options:this.options});return new c.a(f.a.fromTasks(t,[],l.a),this.options,this.environment)}},{key:"chainOperation",value:function(n){return new t(this.generator,this.options,this.environment,[].concat(i()(this.operations),[n]))}},{key:"addEnvironment",value:function(n){return new t(this.generator,this.options,this.environment.add(n),this.operations)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(24),s=e(12);e.d(n,"a",function(){return c});var c=function(){function t(n,e,r){i()(this,t),this.start=n,this.end=e,this.step=r}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=n*this.step,i=this.start+t*r,o=Math.min(i+r,this.end);return e.serializeFunctionCall(s.a.createUnchecked(a.a.RANGE,i,o,this.step))}},{key:"length",get:function(){return Math.ceil((this.end-this.start)/this.step)}}],[{key:"create",value:function(n,e,r){if("undefined"==typeof e&&(e=n,n=0),"undefined"==typeof r&&(r=e<n?-1:1),0===r)throw new Error("Step size of zero is not allowed");return new t(n,e,r)}}]),t}()},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(24),s=e(12),c=e(20);e.d(n,"a",function(){return f});var f=function(){function t(n,e){i()(this,t),this.times=n,this.iteratee=e}return u()(t,[{key:"serializeSlice",value:function(t,n,e){var r=t*n,i=Math.min(r+n,this.times),o=e.serializeFunctionCall(this.iteratee);return e.serializeFunctionCall(s.a.create(a.a.TIMES,r,i,o))}},{key:"length",get:function(){return this.times}}],[{key:"create",value:function(n,r){var i=void 0;return i=e.i(c.b)(r)||"function"==typeof r?s.a.createUnchecked(r):s.a.create(a.a.IDENTITY,r),new t(n,i)}}]),t}()},function(t,n,e){"use strict";var r=e(78),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(12);e.d(n,"a",function(){return f});var f=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u()(this,t),this.environments=n}return s()(t,[{key:"add",value:function(n){var e=this.environments.slice();return n instanceof c.a||!(this.environments.length>0)||this.environments[this.environments.length-1]instanceof c.a?e.push(n):e[e.length-1]=i()({},e[e.length-1],n),new t(e)}},{key:"toJSON",value:function(t){return this.environments.map(function(n){return n instanceof c.a?t.serializeFunctionCall(n):n})}}],[{key:"of",value:function(n){var e=t.EMPTY;return n?e.add(n):e}}]),t}();f.EMPTY=new f},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o),a=e(12),s=e(24),c=e(47),f=e(45);e.d(n,"a",function(){return l});var l=function(){function t(){i()(this,t)}return u()(t,[{key:"schedule",value:function(t){var n=this.getTaskDefinitions(t);return n.map(function(n){return t.options.threadPool.run(n)})}},{key:"getTaskDefinitions",value:function(t){var n=this.getScheduling(t.generator.length,t.options),r=t.options.functionCallSerializer,i=t.environment.toJSON(r),o=this.serializeOperations(t.operations,r),u=[s.a.PARALLEL_JOB_EXECUTOR].concat(e.i(c.b)(o.map(function(t){return[t.iteratee.functionId,t.iterator.functionId]})));i.forEach(function(t){e.i(f.a)(t)&&u.push(t.functionId)});for(var l=[],h=0;h<n.numberOfTasks;++h){var d=t.generator.serializeSlice(h,n.valuesPerTask,r),v={environments:i,generator:d,operations:o,taskIndex:h,valuesPerTask:n.valuesPerTask},p={main:r.serializeFunctionCall(a.a.createUnchecked(s.a.PARALLEL_JOB_EXECUTOR,v)),taskIndex:h,usedFunctionIds:[d.functionId].concat(u),valuesPerTask:n.valuesPerTask};l.push(p)}return l}},{key:"serializeOperations",value:function(t,n){return t.map(function(t){return{iteratee:n.serializeFunctionCall(t.iteratee),iterator:n.serializeFunctionCall(t.iterator)}})}}]),t}()},function(t,n,e){"use strict";var r=e(49),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){u()(this,t),this.promise=i.a.resolve(n)}return s()(t,[{key:"subscribe",value:function(t,n,e){return(e||n)&&this.promise.then(e,n),this}},{key:"then",value:function(t,n){return this.promise.then(t,n)}},{key:"catch",value:function(t){return this.promise.catch(t)}}]),t}()},function(t,n,e){"use strict";var r=e(13),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a),c=e(34);e.d(n,"a",function(){return f});var f=function(){function t(n,e,r){var o=this;u()(this,t),this.failed=!1,this.nextSubResultIndex=0,this.tasks=n,this.joiner=r,this.endResult=e,this.pending=n.length,this.subResults=new Array(this.tasks.length),this.innerStream=new c.a(function(t,n,e){o.next=t,o.resolve=n,o.reject=e});var a=!0,s=!1,f=void 0;try{for(var l,h=i()(n);!(a=(l=h.next()).done);a=!0){var d=l.value;this.registerTaskHandler(d)}}catch(t){s=!0,f=t}finally{try{!a&&h.return&&h.return()}finally{if(s)throw f}}}return s()(t,[{key:"subscribe",value:function(t,n,e){return this.innerStream.subscribe(t,n,e),this}},{key:"then",value:function(t,n){return this.innerStream.then(t,n)}},{key:"catch",value:function(t){return this.innerStream.catch(t)}},{key:"registerTaskHandler",value:function(t){var n=this;t.then(function(e){return n._taskCompleted(e,t.definition)},function(t){return n._taskFailed(t)})}},{key:"_taskCompleted",value:function(t,n){if(0===this.pending)throw new Error("Stream already resolved but taskCompleted called one more time");--this.pending,this.tasks[n.taskIndex]=void 0,this.subResults[n.taskIndex]=t,this.failed||(this.next(t,n.taskIndex,n.valuesPerTask),this.nextSubResultIndex===n.taskIndex&&this.joinSubResults(),0===this.pending&&(this.resolve(this.endResult),this.endResult=void 0))}},{key:"joinSubResults",value:function(){for(;this.nextSubResultIndex<this.subResults.length&&"undefined"!=typeof this.subResults[this.nextSubResultIndex];){var t=this.subResults[this.nextSubResultIndex];this.subResults[this.nextSubResultIndex]=void 0,this.endResult=this.joiner.apply(void 0,[this.endResult,t]),++this.nextSubResultIndex}}},{key:"_taskFailed",value:function(t){if(this.failed!==!0){this.failed=!0;for(var n=0;n<this.tasks.length;++n){var e=this.tasks[n];"undefined"!=typeof e&&e.cancel()}this.reject(t)}}}]),t}()},function(t,n,e){"use strict";var r=e(49),i=e.n(r),o=e(0),u=e.n(o),a=e(1),s=e.n(a);e.d(n,"a",function(){return c});var c=function(){function t(n){var e=this;u()(this,t),this.definition=n,this.isCancellationRequested=!1,this.isCanceled=!1,this.promise=new i.a(function(t,n){e.resolvePromise=t,e.rejectPromise=n})}return s()(t,[{key:"resolve",value:function(t){this.isCancellationRequested?this.resolveCancelled():this.resolvePromise(t)}},{key:"resolveCancelled",value:function(){this.isCanceled=!0,this.reject("Task has been canceled")}},{key:"reject",value:function(t){this.rejectPromise(t)}},{key:"then",value:function(t,n){return n?this.promise.then(t,n):this.promise.then(t)}},{key:"catch",value:function(t){return this.promise.catch(t)}},{key:"cancel",value:function(){this.isCancellationRequested=!0}}]),t}()},function(t,n,e){"use strict";function r(t){if(t.hasOwnProperty("name"))return t.name;var n=t.toString();return n.substring(n.indexOf("function")+9,n.indexOf("(")).trim()}n.a=r},function(t,n,e){"use strict";var r=e(0),i=e.n(r),o=e(1),u=e.n(o);e.d(n,"a",function(){return a});var a=function(){function t(){i()(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(134),__esModule:!0}},function(t,n,e){t.exports={default:e(136),__esModule:!0}},function(t,n,e){t.exports={default:e(137),__esModule:!0}},function(t,n,e){t.exports={default:e(138),__esModule:!0}},function(t,n,e){t.exports={default:e(140),__esModule:!0}},function(t,n,e){t.exports={default:e(142),__esModule:!0}},function(t,n,e){t.exports={default:e(143),__esModule:!0}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=e(48),o=r(i),u=e(127),a=r(u);n.default=function t(n,e,r){null===n&&(n=Function.prototype);var i=(0,a.default)(n,e);if(void 0===i){var u=(0,o.default)(n);return null===u?void 0:t(u,e,r)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(r)}},function(t,n,e){e(30),e(158),t.exports=e(2).Array.from},function(t,n,e){var r=e(2),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,n,e){e(159),t.exports=e(2).Object.assign},function(t,n,e){e(160);var r=e(2).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){e(161);var r=e(2).Object;t.exports=function(t,n){return r.getOwnPropertyDescriptor(t,n)}},function(t,n,e){e(162);var r=e(2).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(163),t.exports=e(2).Object.getPrototypeOf},function(t,n,e){e(164),t.exports=e(2).Object.setPrototypeOf},function(t,n,e){e(103),e(30),e(41),e(165),t.exports=e(2).Promise},function(t,n,e){e(166),e(103),e(167),e(168),t.exports=e(2).Symbol},function(t,n,e){e(30),e(41),t.exports=e(61).f("iterator")},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){"use strict";var r=e(6),i=e(19);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(21),i=e(55),o=e(37);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,a=e(t),s=o.f,c=0;a.length>c;)s.call(t,u=a[c++])&&n.push(u);return n}},function(t,n,e){var r=e(17),i=e(90),o=e(89),u=e(5),a=e(38),s=e(40),c={},f={},n=t.exports=function(t,n,e,l,h){var d,v,p,y,m=h?function(){return t}:s(t),k=r(e,l,n?2:1),g=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=a(t.length);d>g;g++)if(y=n?k(u(v=t[g])[0],v[1]):k(t[g]),y===c||y===f)return y}else for(p=m.call(t);!(v=p.next()).done;)if(y=i(p,k,v.value,n),y===c||y===f)return y};n.BREAK=c,n.RETURN=f},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(21),i=e(10);t.exports=function(t,n){for(var e,o=i(t),u=r(o),a=u.length,s=0;a>s;)if(o[e=u[s++]]===n)return e}},function(t,n,e){var r=e(23)("meta"),i=e(14),o=e(11),u=e(6).f,a=0,s=Object.isExtensible||function(){return!0},c=!e(15)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!s(t))return"F";if(!n)return"E";f(t)}return t[r].i},h=function(t,n){if(!o(t,r)){if(!s(t))return!0;if(!n)return!1;f(t)}return t[r].w},d=function(t){return c&&v.NEED&&s(t)&&!o(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:d}},function(t,n,e){var r=e(4),i=e(98).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,s="process"==e(18)(u);t.exports=function(){var t,n,e,c=function(){var r,i;for(s&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?e():n=void 0,r}}n=void 0,r&&r.enter()};if(s)e=function(){u.nextTick(c)};else if(o){var f=!0,l=document.createTextNode("");new o(c).observe(l,{characterData:!0}),e=function(){l.data=f=!f}}else if(a&&a.resolve){var h=a.resolve();e=function(){h.then(c)}}else e=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};n&&(n.next=i),t||(t=i,e()),n=i}}},function(t,n,e){"use strict";var r=e(21),i=e(55),o=e(37),u=e(29),a=e(53),s=Object.assign;t.exports=!s||e(15)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=u(t),s=arguments.length,c=1,f=i.f,l=o.f;s>c;)for(var h,d=a(arguments[c++]),v=f?r(d).concat(f(d)):r(d),p=v.length,y=0;p>y;)l.call(d,h=v[y++])&&(e[h]=d[h]);return e}:s},function(t,n,e){var r=e(9);t.exports=function(t,n,e){for(var i in n)e&&t[i]?t[i]=n[i]:r(t,i,n[i]);return t}},function(t,n,e){var r=e(14),i=e(5),o=function(t,n){if(i(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(17)(Function.call,e(54).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},function(t,n,e){"use strict";var r=e(4),i=e(2),o=e(6),u=e(7),a=e(3)("species");t.exports=function(t){var n="function"==typeof i[t]?i[t]:r[t];u&&n&&!n[a]&&o.f(n,a,{configurable:!0,get:function(){return this}})}},function(t,n,e){var r=e(5),i=e(35),o=e(3)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[o])?n:i(e)}},function(t,n,e){"use strict";var r=e(17),i=e(8),o=e(29),u=e(90),a=e(89),s=e(38),c=e(145),f=e(40);i(i.S+i.F*!e(92)(function(t){Array.from(t)}),"Array",{from:function(t){var n,e,i,l,h=o(t),d="function"==typeof this?this:Array,v=arguments.length,p=v>1?arguments[1]:void 0,y=void 0!==p,m=0,k=f(h);if(y&&(p=r(p,v>2?arguments[2]:void 0,2)),void 0==k||d==Array&&a(k))for(n=s(h.length),e=new d(n);n>m;m++)c(e,m,y?p(h[m],m):h[m]);else for(l=k.call(h),e=new d;!(i=l.next()).done;m++)c(e,m,y?u(l,p,[i.value,m],!0):i.value);return e.length=m,e}})},function(t,n,e){var r=e(8);r(r.S+r.F,"Object",{assign:e(153)})},function(t,n,e){var r=e(8);r(r.S,"Object",{create:e(36)})},function(t,n,e){var r=e(10),i=e(54).f;e(58)("getOwnPropertyDescriptor",function(){return function(t,n){return i(r(t),n)}})},function(t,n,e){e(58)("getOwnPropertyNames",function(){return e(95).f})},function(t,n,e){var r=e(29),i=e(56);e(58)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,n,e){var r=e(8);r(r.S,"Object",{setPrototypeOf:e(155).set})},function(t,n,e){"use strict";var r,i,o,u=e(26),a=e(4),s=e(17),c=e(50),f=e(8),l=e(14),h=e(35),d=e(144),v=e(147),p=e(157),y=e(98).set,m=e(152)(),k="Promise",g=a.TypeError,b=a.process,_=a[k],b=a.process,w="process"==c(b),x=function(){},O=!!function(){try{var t=_.resolve(1),n=(t.constructor={})[e(3)("species")]=function(t){t(x,x)};return(w||"function"==typeof PromiseRejectionEvent)&&t.then(x)instanceof n}catch(t){}}(),P=function(t,n){return t===n||t===_&&n===o},S=function(t){var n;return!(!l(t)||"function"!=typeof(n=t.then))&&n},I=function(t){return P(_,t)?new T(t):new i(t)},T=i=function(t){var n,e;this.promise=new t(function(t,r){if(void 0!==n||void 0!==e)throw g("Bad Promise constructor");n=t,e=r}),this.resolve=h(n),this.reject=h(e)},E=function(t){try{t()}catch(t){return{error:t}}},j=function(t,n){if(!t._n){t._n=!0;var e=t._c;m(function(){for(var r=t._v,i=1==t._s,o=0,u=function(n){var e,o,u=i?n.ok:n.fail,a=n.resolve,s=n.reject,c=n.domain;try{u?(i||(2==t._h&&R(t),t._h=1),u===!0?e=r:(c&&c.enter(),e=u(r),c&&c.exit()),e===n.promise?s(g("Promise-chain cycle")):(o=S(e))?o.call(e,a,s):a(e)):s(r)}catch(t){s(t)}};e.length>o;)u(e[o++]);t._c=[],t._n=!1,n&&!t._h&&M(t)})}},M=function(t){y.call(a,function(){var n,e,r,i=t._v;if(F(t)&&(n=E(function(){w?b.emit("unhandledRejection",i,t):(e=a.onunhandledrejection)?e({promise:t,reason:i}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=w||F(t)?2:1),t._a=void 0,n)throw n.error})},F=function(t){if(1==t._h)return!1;for(var n,e=t._a||t._c,r=0;e.length>r;)if(n=e[r++],n.fail||!F(n.promise))return!1;return!0},R=function(t){y.call(a,function(){var n;w?b.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})})},C=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),j(n,!0))},A=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw g("Promise can't be resolved itself");(n=S(t))?m(function(){var r={_w:e,_d:!1};try{n.call(t,s(A,r,1),s(C,r,1))}catch(t){C.call(r,t)}}):(e._v=t,e._s=1,j(e,!1))}catch(t){C.call({_w:e,_d:!1},t)}}};O||(_=function(t){d(this,_,k,"_h"),h(t),r.call(this);try{t(s(A,this,1),s(C,this,1))}catch(t){C.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=e(154)(_.prototype,{then:function(t,n){var e=I(p(this,_));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=w?b.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&j(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),T=function(){var t=new r;this.promise=t,this.resolve=s(A,t,1),this.reject=s(C,t,1)}),f(f.G+f.W+f.F*!O,{Promise:_}),e(22)(_,k),e(156)(k),o=e(2)[k],f(f.S+f.F*!O,k,{reject:function(t){var n=I(this),e=n.reject;return e(t),n.promise}}),f(f.S+f.F*(u||!O),k,{resolve:function(t){if(t instanceof _&&P(t.constructor,this))return t;var n=I(this),e=n.resolve;return e(t),n.promise}}),f(f.S+f.F*!(O&&e(92)(function(t){_.all(t).catch(x)})),k,{all:function(t){var n=this,e=I(n),r=e.resolve,i=e.reject,o=E(function(){var e=[],o=0,u=1;v(t,!1,function(t){var a=o++,s=!1;e.push(void 0),u++,n.resolve(t).then(function(t){s||(s=!0,e[a]=t,--u||r(e))},i)}),--u||r(e)});return o&&i(o.error),e.promise},race:function(t){var n=this,e=I(n),r=e.reject,i=E(function(){v(t,!1,function(t){n.resolve(t).then(e.resolve,r)})});return i&&r(i.error),e.promise}})},function(t,n,e){"use strict";var r=e(4),i=e(11),o=e(7),u=e(8),a=e(59),s=e(151).KEY,c=e(15),f=e(33),l=e(22),h=e(23),d=e(3),v=e(61),p=e(60),y=e(150),m=e(146),k=e(149),g=e(5),b=e(10),_=e(39),w=e(19),x=e(36),O=e(95),P=e(54),S=e(6),I=e(21),T=P.f,E=S.f,j=O.f,M=r.Symbol,F=r.JSON,R=F&&F.stringify,C="prototype",A=d("_hidden"),z=d("toPrimitive"),L={}.propertyIsEnumerable,W=f("symbol-registry"),D=f("symbols"),N=f("op-symbols"),U=Object[C],J="function"==typeof M,q=r.QObject,V=!q||!q[C]||!q[C].findChild,B=o&&c(function(){return 7!=x(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=T(U,n);r&&delete U[n],E(t,n,e),r&&t!==U&&E(U,n,r)}:E,K=function(t){var n=D[t]=x(M[C]);return n._k=t,n},G=J&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},H=function(t,n,e){return t===U&&H(N,n,e),g(t),n=_(n,!0),g(e),i(D,n)?(e.enumerable?(i(t,A)&&t[A][n]&&(t[A][n]=!1),e=x(e,{enumerable:w(0,!1)})):(i(t,A)||E(t,A,w(1,{})),t[A][n]=!0),B(t,n,e)):E(t,n,e)},Y=function(t,n){g(t);for(var e,r=m(n=b(n)),i=0,o=r.length;o>i;)H(t,e=r[i++],n[e]);return t},X=function(t,n){return void 0===n?x(t):Y(x(t),n)},Q=function(t){var n=L.call(this,t=_(t,!0));return!(this===U&&i(D,t)&&!i(N,t))&&(!(n||!i(this,t)||!i(D,t)||i(this,A)&&this[A][t])||n)},Z=function(t,n){if(t=b(t),n=_(n,!0),t!==U||!i(D,n)||i(N,n)){var e=T(t,n);return!e||!i(D,n)||i(t,A)&&t[A][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=j(b(t)),r=[],o=0;e.length>o;)i(D,n=e[o++])||n==A||n==s||r.push(n);return r},tt=function(t){for(var n,e=t===U,r=j(e?N:b(t)),o=[],u=0;r.length>u;)!i(D,n=r[u++])||e&&!i(U,n)||o.push(D[n]);return o};J||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===U&&n.call(N,e),i(this,A)&&i(this[A],t)&&(this[A][t]=!1),B(this,t,w(1,e))};return o&&V&&B(U,t,{configurable:!0,set:n}),K(t)},a(M[C],"toString",function(){return this._k}),P.f=Z,S.f=H,e(96).f=O.f=$,e(37).f=Q,e(55).f=tt,o&&!e(26)&&a(U,"propertyIsEnumerable",Q,!0),v.f=function(t){return K(d(t))}),u(u.G+u.W+u.F*!J,{Symbol:M});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var nt=I(d.store),et=0;nt.length>et;)p(nt[et++]);u(u.S+u.F*!J,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=M(t)},keyFor:function(t){if(G(t))return y(W,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){V=!0},useSimple:function(){V=!1}}),u(u.S+u.F*!J,"Object",{create:X,defineProperty:H,defineProperties:Y,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt}),F&&u(u.S+u.F*(!J||c(function(){var t=M();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!G(t)){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return n=r[1],"function"==typeof n&&(e=n),!e&&k(n)||(n=function(t,n){if(e&&(n=e.call(this,t,n)),!G(n))return n}),r[1]=n,R.apply(F,r)}}}),M[C][z]||e(9)(M[C],z,M[C].valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){e(60)("asyncIterator")},function(t,n,e){e(60)("observable")},function(t,n,e){t.exports=function(){return new Worker(e.p+"worker-slave.parallel.js")}}]))}); | ||
//# sourceMappingURL=browser.parallel.js.map |
@@ -17,6 +17,2 @@ /** | ||
/** | ||
* Maximum number of workers that can run in parallel (without blocking each other) | ||
*/ | ||
maxConcurrencyLevel?: number; | ||
/** | ||
* The minimum number of values assigned to a single task before the work is split and assigned another task | ||
@@ -51,3 +47,2 @@ */ | ||
functionCallSerializer: FunctionCallSerializer; | ||
maxConcurrencyLevel: number; | ||
threadPool: IThreadPool; | ||
@@ -54,0 +49,0 @@ scheduler: IParallelJobScheduler; |
@@ -13,3 +13,4 @@ import { IThreadPool } from "./thread-pool"; | ||
private queue; | ||
private concurrencyLimit; | ||
private maxThreadsLimit; | ||
maxThreads: number; | ||
constructor(workerThreadFactory: IWorkerThreadFactory, options: { | ||
@@ -16,0 +17,0 @@ maxConcurrencyLevel: number; |
@@ -13,2 +13,8 @@ /** | ||
/** | ||
* Maximum number of threads that the thread pool should scheduled. Default initialized with the | ||
* number of the hardware concurrency supported by the hardware. | ||
* The value cannot be negative or 0 | ||
*/ | ||
maxThreads: number; | ||
/** | ||
* Schedules the passed in task definition onto an available worker or enqueues the task to be scheduled as soon as a worker gets available. | ||
@@ -15,0 +21,0 @@ * @param task the task to schedule |
@@ -329,11 +329,8 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/** needed, typedoc issue */ | ||
const greaterThanZeroOptions = ["maxValuesPerTask", "minValuesPerTask", "maxConcurrencyLevel", "maxDegreeOfParallelism"]; | ||
const greaterThanZeroOptions = ["maxValuesPerTask", "minValuesPerTask", "maxDegreeOfParallelism"]; | ||
function validateOptions(options) { | ||
if (typeof (options.maxDegreeOfParallelism) === "number") { | ||
options.maxDegreeOfParallelism = Math.floor(options.maxDegreeOfParallelism); | ||
} | ||
for (const optionName of greaterThanZeroOptions) { | ||
const optionValue = options[optionName]; | ||
if (typeof (optionValue) !== "undefined" && (typeof (optionValue) !== "number" || optionValue <= 0)) { | ||
throw new Error(`Illegal parallel options: ${optionName} (${optionValue}) must be number greater than zero`); | ||
if (typeof (optionValue) !== "undefined" && (typeof (optionValue) !== "number" || optionValue <= 0 || optionValue % 1 !== 0)) { | ||
throw new Error(`Illegal parallel options: ${optionName} (${optionValue}) has to be an integer greater than zero`); | ||
} | ||
@@ -340,0 +337,0 @@ } |
@@ -1,2 +0,2 @@ | ||
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["parallel-es"]=t():n["parallel-es"]=t()}(this,function(){return function(n){function t(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=n,t.c=r,t.i=function(n){return n},t.d=function(n,t,r){Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=170)}(function(n){for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t))switch(typeof n[t]){case"function":break;case"object":n[t]=function(t){var r=t.slice(1),e=n[t[0]];return function(n,t,o){e.apply(this,[n,t,o].concat(r))}}(n[t]);break;default:n[t]=n[n[t]]}return n}([function(n,t){"use strict";t.__esModule=!0,t.default=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}},function(n,t,r){"use strict";function e(n){return n&&n.__esModule?n:{default:n}}t.__esModule=!0;var o=r(79),i=e(o);t.default=function(){function n(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),(0,i.default)(n,e.key,e)}}return function(t,r,e){return r&&n(t.prototype,r),e&&n(t,e),t}}()},function(n,t){var r=n.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(n,t,r){var e=r(33)("wks"),o=r(23),i=r(4).Symbol,u="function"==typeof i,a=n.exports=function(n){return e[n]||(e[n]=u&&i[n]||(u?i:o)("Symbol."+n))};a.store=e},function(n,t){var r=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(n,t,r){var e=r(14);n.exports=function(n){if(!e(n))throw TypeError(n+" is not an object!");return n}},function(n,t,r){var e=r(5),o=r(52),i=r(39),u=Object.defineProperty;t.f=r(7)?Object.defineProperty:function(n,t,r){if(e(n),t=i(t,!0),e(r),o)try{return u(n,t,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(n[t]=r.value),n}},function(n,t,r){n.exports=!r(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(n,t,r){var e=r(4),o=r(2),i=r(17),u=r(9),a="prototype",c=function(n,t,r){var f,l,s,p=n&c.F,d=n&c.G,v=n&c.S,h=n&c.P,y=n&c.B,x=n&c.W,m=d?o:o[t]||(o[t]={}),P=m[a],b=d?e:v?e[t]:(e[t]||{})[a];d&&(r=t);for(f in r)l=!p&&b&&void 0!==b[f],l&&f in m||(s=l?b[f]:r[f],m[f]=d&&"function"!=typeof b[f]?r[f]:y&&l?i(s,e):x&&b[f]==s?function(n){var t=function(t,r,e){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,r)}return new n(t,r,e)}return n.apply(this,arguments)};return t[a]=n[a],t}(s):h&&"function"==typeof s?i(Function.call,s):s,h&&((m.virtual||(m.virtual={}))[f]=s,n&c.R&&P&&!P[f]&&u(P,f,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,n.exports=c},function(n,t,r){var e=r(6),o=r(19);n.exports=r(7)?function(n,t,r){return e.f(n,t,o(1,r))}:function(n,t,r){return n[t]=r,n}},function(n,t,r){var e=r(53),o=r(25);n.exports=function(n){return e(o(n))}},function(n,t){var r={}.hasOwnProperty;n.exports=function(n,t){return r.call(n,t)}},function(n,t,r){"use strict";var e=r(0),o=r.n(e),i=r(1),u=r.n(i);r.d(t,"a",function(){return a});var a=function(){function n(t,r){o()(this,n),this.func=t,this.params=r}return u()(n,null,[{key:"create",value:function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return new n(t,e)}},{key:"createUnchecked",value:function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return new n(t,e)}}]),n}()},function(n,t,r){n.exports={default:r(85),__esModule:!0}},function(n,t){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(n,t){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,t){n.exports={}},function(n,t,r){var e=r(35);n.exports=function(n,t,r){if(e(n),void 0===t)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,o){return n.call(t,r,e,o)}}return function(){return n.apply(t,arguments)}}},function(n,t){var r={}.toString;n.exports=function(n){return r.call(n).slice(8,-1)}},function(n,t){n.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},function(n,t,r){"use strict";function e(n,t){return{_______isFunctionId:!0,identifier:n+"-"+t}}function o(n){return!!n&&n._______isFunctionId===!0}t.a=e,t.b=o},function(n,t,r){var e=r(57),o=r(32);n.exports=Object.keys||function(n){return e(n,o)}},function(n,t,r){var e=r(6).f,o=r(11),i=r(3)("toStringTag");n.exports=function(n,t,r){n&&!o(n=r?n:n.prototype,i)&&e(n,i,{configurable:!0,value:t})}},function(n,t){var r=0,e=Math.random();n.exports=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++r+e).toString(36))}},,function(n,t){n.exports=function(n){if(void 0==n)throw TypeError("Can't call method on "+n);return n}},function(n,t){n.exports=!0},function(n,t,r){var e=r(33)("keys"),o=r(23);n.exports=function(n){return e[n]||(e[n]=o(n))}},function(n,t){var r=Math.ceil,e=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?e:r)(n)}},function(n,t,r){var e=r(25);n.exports=function(n){return Object(e(n))}},function(n,t,r){"use strict";var e=r(97)(!0);r(43)(String,"String",function(n){this._t=String(n),this._i=0},function(){var n,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(n=e(t,r),this._i+=n.length,{value:n,done:!1})})},function(n,t,r){var e=r(14),o=r(4).document,i=e(o)&&e(o.createElement);n.exports=function(n){return i?o.createElement(n):{}}},function(n,t){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,t,r){var e=r(4),o="__core-js_shared__",i=e[o]||(e[o]={});n.exports=function(n){return i[n]||(i[n]={})}},,function(n,t){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(n,t,r){var e=r(5),o=r(94),i=r(32),u=r(27)("IE_PROTO"),a=function(){},c="prototype",f=function(){var n,t=r(31)("iframe"),e=i.length,o="<",u=">";for(t.style.display="none",r(51).appendChild(t),t.src="javascript:",n=t.contentWindow.document,n.open(),n.write(o+"script"+u+"document.F=Object"+o+"/script"+u),n.close(),f=n.F;e--;)delete f[c][i[e]];return f()};n.exports=Object.create||function(n,t){var r;return null!==n?(a[c]=e(n),r=new a,a[c]=null,r[u]=n):r=f(),void 0===t?r:o(r,t)}},,function(n,t,r){var e=r(28),o=Math.min;n.exports=function(n){return n>0?o(e(n),9007199254740991):0}},function(n,t,r){var e=r(14);n.exports=function(n,t){if(!e(n))return n;var r,o;if(t&&"function"==typeof(r=n.toString)&&!e(o=r.call(n)))return o;if("function"==typeof(r=n.valueOf)&&!e(o=r.call(n)))return o;if(!t&&"function"==typeof(r=n.toString)&&!e(o=r.call(n)))return o;throw TypeError("Can't convert object to primitive value")}},function(n,t,r){var e=r(50),o=r(3)("iterator"),i=r(16);n.exports=r(2).getIteratorMethod=function(n){if(void 0!=n)return n[o]||n["@@iterator"]||i[e(n)]}},function(n,t,r){r(101);for(var e=r(4),o=r(9),i=r(16),u=r(3)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var f=a[c],l=e[f],s=l&&l.prototype;s&&!s[u]&&o(s,u,f),i[f]=i.Array}},function(n,t,r){"use strict";var e=r(70),o=(r.n(e),r(64)),i=(r.n(o),r(67)),u=(r.n(i),r(68)),a=(r.n(u),r(46)),c=r(71),f=(r.n(c),r(69)),l=(r.n(f),r(72));r.n(l);r.o(e,"IParallel")&&r.d(t,"a",function(){return e.IParallel}),r.o(o,"IParallelChain")&&r.d(t,"b",function(){return o.IParallelChain}),r.o(i,"IParallelTaskEnvironment")&&r.d(t,"c",function(){return i.IParallelTaskEnvironment}),r.o(i,"IParallelEnvironment")&&r.d(t,"d",function(){return i.IParallelEnvironment}),r.o(u,"IParallelJob")&&r.d(t,"e",function(){return u.IParallelJob}),r.d(t,"f",function(){return a.IParallelOptions}),r.d(t,"g",function(){return a.IDefaultInitializedParallelOptions}),r.o(c,"IParallelJobScheduler")&&r.d(t,"h",function(){return c.IParallelJobScheduler}),r.o(f,"IParallelOperation")&&r.d(t,"i",function(){return f.IParallelOperation}),r.o(f,"ISerializedParallelOperation")&&r.d(t,"j",function(){return f.ISerializedParallelOperation}),r.o(l,"IParallelStream")&&r.d(t,"k",function(){return l.IParallelStream})},function(n,t,r){"use strict";var e=r(26),o=r(8),i=r(59),u=r(9),a=r(11),c=r(16),f=r(91),l=r(22),s=r(56),p=r(3)("iterator"),d=!([].keys&&"next"in[].keys()),v="@@iterator",h="keys",y="values",x=function(){return this};n.exports=function(n,t,r,m,P,b,I){f(r,t,m);var _,g,O,w=function(n){if(!d&&n in T)return T[n];switch(n){case h:return function(){return new r(this,n)};case y:return function(){return new r(this,n)}}return function(){return new r(this,n)}},k=t+" Iterator",S=P==y,j=!1,T=n.prototype,F=T[p]||T[v]||P&&T[P],E=F||w(P),M=P?S?w("entries"):E:void 0,C="Array"==t?T.entries||F:F;if(C&&(O=s(C.call(new n)),O!==Object.prototype&&(l(O,k,!0),e||a(O,p)||u(O,p,x))),S&&F&&F.name!==y&&(j=!0,E=function(){return F.call(this)}),e&&!I||!d&&!j&&T[p]||u(T,p,E),c[t]=E,c[k]=x,P)if(_={values:S?E:w(y),keys:b?E:w(h),entries:M},I)for(g in _)g in T||i(T,g,_[g]);else o(o.P+o.F*(d||j),t,_);return _}},function(n,t,r){"use strict";var e=r(0),o=r.n(e),i=r(1),u=r.n(i);r.d(t,"a",function(){return a});var a=function(){function n(t){o()(this,n),this.functionRegistry=t}return u()(n,[{key:"serializeFunctionCall",value:function(n){var t=this.functionRegistry.getOrSetId(n.func);return{______serializedFunctionCall:!0,functionId:t,parameters:n.params}}}]),n}()},function(n,t,r){"use strict";function e(n){return!!n&&n.______serializedFunctionCall===!0}t.a=e},function(n,t,r){"use strict";function e(n){"number"==typeof n.maxDegreeOfParallelism&&(n.maxDegreeOfParallelism=Math.floor(n.maxDegreeOfParallelism));var t=!0,r=!1,e=void 0;try{for(var o,a=i()(u);!(t=(o=a.next()).done);t=!0){var c=o.value,f=n[c];if("undefined"!=typeof f&&("number"!=typeof f||f<=0))throw new Error("Illegal parallel options: "+c+" ("+f+") must be number greater than zero")}}catch(n){r=!0,e=n}finally{try{!t&&a.return&&a.return()}finally{if(r)throw e}}if("undefined"!=typeof n.minValuesPerTask&&"undefined"!=typeof n.maxValuesPerTask&&n.minValuesPerTask>n.maxValuesPerTask)throw new Error("Illegal parallel options: minValuesPerTask ("+n.minValuesPerTask+") must be equal or less than maxValuesPerTask ("+n.maxValuesPerTask+").")}var o=r(13),i=r.n(o);t.a=e;var u=["maxValuesPerTask","minValuesPerTask","maxConcurrencyLevel","maxDegreeOfParallelism"]},,,,function(n,t,r){var e=r(18),o=r(3)("toStringTag"),i="Arguments"==e(function(){return arguments}()),u=function(n,t){try{return n[t]}catch(n){}};n.exports=function(n){var t,r,a;return void 0===n?"Undefined":null===n?"Null":"string"==typeof(r=u(t=Object(n),o))?r:i?e(t):"Object"==(a=e(t))&&"function"==typeof t.callee?"Arguments":a}},function(n,t,r){n.exports=r(4).document&&document.documentElement},function(n,t,r){n.exports=!r(7)&&!r(15)(function(){return 7!=Object.defineProperty(r(31)("div"),"a",{get:function(){return 7}}).a})},function(n,t,r){var e=r(18);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==e(n)?n.split(""):Object(n)}},,,function(n,t,r){var e=r(11),o=r(29),i=r(27)("IE_PROTO"),u=Object.prototype;n.exports=Object.getPrototypeOf||function(n){return n=o(n),e(n,i)?n[i]:"function"==typeof n.constructor&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?u:null}},function(n,t,r){var e=r(11),o=r(10),i=r(88)(!1),u=r(27)("IE_PROTO");n.exports=function(n,t){var r,a=o(n),c=0,f=[];for(r in a)r!=u&&e(a,r)&&f.push(r);for(;t.length>c;)e(a,r=t[c++])&&(~i(f,r)||f.push(r));return f}},,function(n,t,r){n.exports=r(9)},,,function(n,t,r){"use strict";var e=r(42),o=r(73),i=(r.n(o),r(74)),u=(r.n(i),r(63)),a=(r.n(u),r(20)),c=r(12),f=r(45),l=r(44),s=r(75),p=(r.n(s),r(42));r.d(t,"a",function(){return e.a}),r.o(o,"ITaskDefinition")&&r.d(t,"b",function(){return o.ITaskDefinition}),r.o(i,"ITask")&&r.d(t,"c",function(){return i.ITask}),r.o(u,"IFunctionDefinition")&&r.d(t,"d",function(){return u.IFunctionDefinition}),r.d(t,"e",function(){return a.IFunctionId}),r.d(t,"f",function(){return a.b}),r.d(t,"g",function(){return c.a}),r.d(t,"h",function(){return f.ISerializedFunctionCall}),r.d(t,"i",function(){return f.a}),r.d(t,"j",function(){return l.a}),r.o(s,"IThreadPool")&&r.d(t,"k",function(){return s.IThreadPool}),r.d(t,"l",function(){return p.b}),r.d(t,"m",function(){return p.c}),r.d(t,"n",function(){return p.d}),r.d(t,"o",function(){return p.e}),r.d(t,"p",function(){return p.f}),r.d(t,"q",function(){return p.g}),r.d(t,"r",function(){return p.h}),r.d(t,"s",function(){return p.i}),r.d(t,"t",function(){return p.j}),r.d(t,"u",function(){return p.k})},function(n,t){},function(n,t){},,,64,64,function(n,t){},64,64,64,63,63,64,,,,function(n,t,r){n.exports={default:r(86),__esModule:!0}},,,,,,function(n,t,r){r(41),r(30),n.exports=r(100)},function(n,t,r){r(102);var e=r(2).Object;n.exports=function(n,t,r){return e.defineProperty(n,t,r)}},function(n,t){n.exports=function(){}},function(n,t,r){var e=r(10),o=r(38),i=r(99);n.exports=function(n){return function(t,r,u){var a,c=e(t),f=o(c.length),l=i(u,f);if(n&&r!=r){for(;f>l;)if(a=c[l++],a!=a)return!0}else for(;f>l;l++)if((n||l in c)&&c[l]===r)return n||l||0;return!n&&-1}}},,,function(n,t,r){"use strict";var e=r(36),o=r(19),i=r(22),u={};r(9)(u,r(3)("iterator"),function(){return this}),n.exports=function(n,t,r){n.prototype=e(u,{next:o(1,r)}),i(n,t+" Iterator")}},,function(n,t){n.exports=function(n,t){return{value:t,done:!!n}}},function(n,t,r){var e=r(6),o=r(5),i=r(21);n.exports=r(7)?Object.defineProperties:function(n,t){o(n);for(var r,u=i(t),a=u.length,c=0;a>c;)e.f(n,r=u[c++],t[r]);return n}},,,function(n,t,r){var e=r(28),o=r(25);n.exports=function(n){return function(t,r){var i,u,a=String(o(t)),c=e(r),f=a.length;return c<0||c>=f?n?"":void 0:(i=a.charCodeAt(c),i<55296||i>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?n?a.charAt(c):i:n?a.slice(c,c+2):(i-55296<<10)+(u-56320)+65536)}}},,function(n,t,r){var e=r(28),o=Math.max,i=Math.min;n.exports=function(n,t){return n=e(n),n<0?o(n+t,0):i(n,t)}},function(n,t,r){var e=r(5),o=r(40);n.exports=r(2).getIterator=function(n){var t=o(n);if("function"!=typeof t)throw TypeError(n+" is not iterable!");return e(t.call(n))}},function(n,t,r){"use strict";var e=r(87),o=r(93),i=r(16),u=r(10);n.exports=r(43)(Array,"Array",function(n,t){this._t=u(n),this._i=0,this._k=t},function(){var n=this._t,t=this._k,r=this._i++;return!n||r>=n.length?(this._t=void 0,o(1)):"keys"==t?o(0,r):"values"==t?o(0,n[r]):o(0,[r,n[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},function(n,t,r){var e=r(8);e(e.S+e.F*!r(7),"Object",{defineProperty:r(6).f})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,r){"use strict";var e=r(62);r.d(t,"IParallel",function(){return e.a}),r.d(t,"ITaskDefinition",function(){return e.b}),r.d(t,"ITask",function(){return e.c}),r.d(t,"IFunctionDefinition",function(){return e.d}),r.d(t,"IFunctionId",function(){return e.e}),r.d(t,"isFunctionId",function(){return e.f}),r.d(t,"FunctionCall",function(){return e.g}),r.d(t,"ISerializedFunctionCall",function(){return e.h}),r.d(t,"isSerializedFunctionCall",function(){return e.i}),r.d(t,"FunctionCallSerializer",function(){return e.j}),r.d(t,"IThreadPool",function(){return e.k}),r.d(t,"IParallelChain",function(){return e.l}),r.d(t,"IParallelTaskEnvironment",function(){return e.m}),r.d(t,"IParallelEnvironment",function(){return e.n}),r.d(t,"IParallelJob",function(){return e.o}),r.d(t,"IParallelOptions",function(){return e.p}),r.d(t,"IDefaultInitializedParallelOptions",function(){return e.q}),r.d(t,"IParallelJobScheduler",function(){return e.r}),r.d(t,"IParallelOperation",function(){return e.s}),r.d(t,"ISerializedParallelOperation",function(){return e.t}),r.d(t,"IParallelStream",function(){return e.u})}]))}); | ||
!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["parallel-es"]=t():n["parallel-es"]=t()}(this,function(){return function(n){function t(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=n,t.c=r,t.i=function(n){return n},t.d=function(n,t,r){Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=170)}(function(n){for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t))switch(typeof n[t]){case"function":break;case"object":n[t]=function(t){var r=t.slice(1),e=n[t[0]];return function(n,t,o){e.apply(this,[n,t,o].concat(r))}}(n[t]);break;default:n[t]=n[n[t]]}return n}([function(n,t){"use strict";t.__esModule=!0,t.default=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}},function(n,t,r){"use strict";function e(n){return n&&n.__esModule?n:{default:n}}t.__esModule=!0;var o=r(79),i=e(o);t.default=function(){function n(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),(0,i.default)(n,e.key,e)}}return function(t,r,e){return r&&n(t.prototype,r),e&&n(t,e),t}}()},function(n,t){var r=n.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(n,t,r){var e=r(33)("wks"),o=r(23),i=r(4).Symbol,u="function"==typeof i,a=n.exports=function(n){return e[n]||(e[n]=u&&i[n]||(u?i:o)("Symbol."+n))};a.store=e},function(n,t){var r=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(n,t,r){var e=r(14);n.exports=function(n){if(!e(n))throw TypeError(n+" is not an object!");return n}},function(n,t,r){var e=r(5),o=r(52),i=r(39),u=Object.defineProperty;t.f=r(7)?Object.defineProperty:function(n,t,r){if(e(n),t=i(t,!0),e(r),o)try{return u(n,t,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(n[t]=r.value),n}},function(n,t,r){n.exports=!r(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(n,t,r){var e=r(4),o=r(2),i=r(17),u=r(9),a="prototype",c=function(n,t,r){var f,l,s,p=n&c.F,d=n&c.G,v=n&c.S,h=n&c.P,y=n&c.B,x=n&c.W,I=d?o:o[t]||(o[t]={}),_=I[a],b=d?e:v?e[t]:(e[t]||{})[a];d&&(r=t);for(f in r)l=!p&&b&&void 0!==b[f],l&&f in I||(s=l?b[f]:r[f],I[f]=d&&"function"!=typeof b[f]?r[f]:y&&l?i(s,e):x&&b[f]==s?function(n){var t=function(t,r,e){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,r)}return new n(t,r,e)}return n.apply(this,arguments)};return t[a]=n[a],t}(s):h&&"function"==typeof s?i(Function.call,s):s,h&&((I.virtual||(I.virtual={}))[f]=s,n&c.R&&_&&!_[f]&&u(_,f,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,n.exports=c},function(n,t,r){var e=r(6),o=r(19);n.exports=r(7)?function(n,t,r){return e.f(n,t,o(1,r))}:function(n,t,r){return n[t]=r,n}},function(n,t,r){var e=r(53),o=r(25);n.exports=function(n){return e(o(n))}},function(n,t){var r={}.hasOwnProperty;n.exports=function(n,t){return r.call(n,t)}},function(n,t,r){"use strict";var e=r(0),o=r.n(e),i=r(1),u=r.n(i);r.d(t,"a",function(){return a});var a=function(){function n(t,r){o()(this,n),this.func=t,this.params=r}return u()(n,null,[{key:"create",value:function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return new n(t,e)}},{key:"createUnchecked",value:function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),o=1;o<r;o++)e[o-1]=arguments[o];return new n(t,e)}}]),n}()},function(n,t,r){n.exports={default:r(85),__esModule:!0}},function(n,t){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(n,t){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,t){n.exports={}},function(n,t,r){var e=r(35);n.exports=function(n,t,r){if(e(n),void 0===t)return n;switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,o){return n.call(t,r,e,o)}}return function(){return n.apply(t,arguments)}}},function(n,t){var r={}.toString;n.exports=function(n){return r.call(n).slice(8,-1)}},function(n,t){n.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},function(n,t,r){"use strict";function e(n,t){return{_______isFunctionId:!0,identifier:n+"-"+t}}function o(n){return!!n&&n._______isFunctionId===!0}t.a=e,t.b=o},function(n,t,r){var e=r(57),o=r(32);n.exports=Object.keys||function(n){return e(n,o)}},function(n,t,r){var e=r(6).f,o=r(11),i=r(3)("toStringTag");n.exports=function(n,t,r){n&&!o(n=r?n:n.prototype,i)&&e(n,i,{configurable:!0,value:t})}},function(n,t){var r=0,e=Math.random();n.exports=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++r+e).toString(36))}},,function(n,t){n.exports=function(n){if(void 0==n)throw TypeError("Can't call method on "+n);return n}},function(n,t){n.exports=!0},function(n,t,r){var e=r(33)("keys"),o=r(23);n.exports=function(n){return e[n]||(e[n]=o(n))}},function(n,t){var r=Math.ceil,e=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?e:r)(n)}},function(n,t,r){var e=r(25);n.exports=function(n){return Object(e(n))}},function(n,t,r){"use strict";var e=r(97)(!0);r(43)(String,"String",function(n){this._t=String(n),this._i=0},function(){var n,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(n=e(t,r),this._i+=n.length,{value:n,done:!1})})},function(n,t,r){var e=r(14),o=r(4).document,i=e(o)&&e(o.createElement);n.exports=function(n){return i?o.createElement(n):{}}},function(n,t){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,t,r){var e=r(4),o="__core-js_shared__",i=e[o]||(e[o]={});n.exports=function(n){return i[n]||(i[n]={})}},,function(n,t){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(n,t,r){var e=r(5),o=r(94),i=r(32),u=r(27)("IE_PROTO"),a=function(){},c="prototype",f=function(){var n,t=r(31)("iframe"),e=i.length,o="<",u=">";for(t.style.display="none",r(51).appendChild(t),t.src="javascript:",n=t.contentWindow.document,n.open(),n.write(o+"script"+u+"document.F=Object"+o+"/script"+u),n.close(),f=n.F;e--;)delete f[c][i[e]];return f()};n.exports=Object.create||function(n,t){var r;return null!==n?(a[c]=e(n),r=new a,a[c]=null,r[u]=n):r=f(),void 0===t?r:o(r,t)}},,function(n,t,r){var e=r(28),o=Math.min;n.exports=function(n){return n>0?o(e(n),9007199254740991):0}},function(n,t,r){var e=r(14);n.exports=function(n,t){if(!e(n))return n;var r,o;if(t&&"function"==typeof(r=n.toString)&&!e(o=r.call(n)))return o;if("function"==typeof(r=n.valueOf)&&!e(o=r.call(n)))return o;if(!t&&"function"==typeof(r=n.toString)&&!e(o=r.call(n)))return o;throw TypeError("Can't convert object to primitive value")}},function(n,t,r){var e=r(50),o=r(3)("iterator"),i=r(16);n.exports=r(2).getIteratorMethod=function(n){if(void 0!=n)return n[o]||n["@@iterator"]||i[e(n)]}},function(n,t,r){r(101);for(var e=r(4),o=r(9),i=r(16),u=r(3)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var f=a[c],l=e[f],s=l&&l.prototype;s&&!s[u]&&o(s,u,f),i[f]=i.Array}},function(n,t,r){"use strict";var e=r(70),o=(r.n(e),r(64)),i=(r.n(o),r(67)),u=(r.n(i),r(68)),a=(r.n(u),r(46)),c=r(71),f=(r.n(c),r(69)),l=(r.n(f),r(72));r.n(l);r.o(e,"IParallel")&&r.d(t,"a",function(){return e.IParallel}),r.o(o,"IParallelChain")&&r.d(t,"b",function(){return o.IParallelChain}),r.o(i,"IParallelTaskEnvironment")&&r.d(t,"c",function(){return i.IParallelTaskEnvironment}),r.o(i,"IParallelEnvironment")&&r.d(t,"d",function(){return i.IParallelEnvironment}),r.o(u,"IParallelJob")&&r.d(t,"e",function(){return u.IParallelJob}),r.d(t,"f",function(){return a.IParallelOptions}),r.d(t,"g",function(){return a.IDefaultInitializedParallelOptions}),r.o(c,"IParallelJobScheduler")&&r.d(t,"h",function(){return c.IParallelJobScheduler}),r.o(f,"IParallelOperation")&&r.d(t,"i",function(){return f.IParallelOperation}),r.o(f,"ISerializedParallelOperation")&&r.d(t,"j",function(){return f.ISerializedParallelOperation}),r.o(l,"IParallelStream")&&r.d(t,"k",function(){return l.IParallelStream})},function(n,t,r){"use strict";var e=r(26),o=r(8),i=r(59),u=r(9),a=r(11),c=r(16),f=r(91),l=r(22),s=r(56),p=r(3)("iterator"),d=!([].keys&&"next"in[].keys()),v="@@iterator",h="keys",y="values",x=function(){return this};n.exports=function(n,t,r,I,_,b,P){f(r,t,I);var m,g,O,w=function(n){if(!d&&n in T)return T[n];switch(n){case h:return function(){return new r(this,n)};case y:return function(){return new r(this,n)}}return function(){return new r(this,n)}},k=t+" Iterator",S=_==y,j=!1,T=n.prototype,F=T[p]||T[v]||_&&T[_],E=F||w(_),M=_?S?w("entries"):E:void 0,C="Array"==t?T.entries||F:F;if(C&&(O=s(C.call(new n)),O!==Object.prototype&&(l(O,k,!0),e||a(O,p)||u(O,p,x))),S&&F&&F.name!==y&&(j=!0,E=function(){return F.call(this)}),e&&!P||!d&&!j&&T[p]||u(T,p,E),c[t]=E,c[k]=x,_)if(m={values:S?E:w(y),keys:b?E:w(h),entries:M},P)for(g in m)g in T||i(T,g,m[g]);else o(o.P+o.F*(d||j),t,m);return m}},function(n,t,r){"use strict";var e=r(0),o=r.n(e),i=r(1),u=r.n(i);r.d(t,"a",function(){return a});var a=function(){function n(t){o()(this,n),this.functionRegistry=t}return u()(n,[{key:"serializeFunctionCall",value:function(n){var t=this.functionRegistry.getOrSetId(n.func);return{______serializedFunctionCall:!0,functionId:t,parameters:n.params}}}]),n}()},function(n,t,r){"use strict";function e(n){return!!n&&n.______serializedFunctionCall===!0}t.a=e},function(n,t,r){"use strict";function e(n){var t=!0,r=!1,e=void 0;try{for(var o,a=i()(u);!(t=(o=a.next()).done);t=!0){var c=o.value,f=n[c];if("undefined"!=typeof f&&("number"!=typeof f||f<=0||f%1!==0))throw new Error("Illegal parallel options: "+c+" ("+f+") has to be an integer greater than zero")}}catch(n){r=!0,e=n}finally{try{!t&&a.return&&a.return()}finally{if(r)throw e}}if("undefined"!=typeof n.minValuesPerTask&&"undefined"!=typeof n.maxValuesPerTask&&n.minValuesPerTask>n.maxValuesPerTask)throw new Error("Illegal parallel options: minValuesPerTask ("+n.minValuesPerTask+") must be equal or less than maxValuesPerTask ("+n.maxValuesPerTask+").")}var o=r(13),i=r.n(o);t.a=e;var u=["maxValuesPerTask","minValuesPerTask","maxDegreeOfParallelism"]},,,,function(n,t,r){var e=r(18),o=r(3)("toStringTag"),i="Arguments"==e(function(){return arguments}()),u=function(n,t){try{return n[t]}catch(n){}};n.exports=function(n){var t,r,a;return void 0===n?"Undefined":null===n?"Null":"string"==typeof(r=u(t=Object(n),o))?r:i?e(t):"Object"==(a=e(t))&&"function"==typeof t.callee?"Arguments":a}},function(n,t,r){n.exports=r(4).document&&document.documentElement},function(n,t,r){n.exports=!r(7)&&!r(15)(function(){return 7!=Object.defineProperty(r(31)("div"),"a",{get:function(){return 7}}).a})},function(n,t,r){var e=r(18);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==e(n)?n.split(""):Object(n)}},,,function(n,t,r){var e=r(11),o=r(29),i=r(27)("IE_PROTO"),u=Object.prototype;n.exports=Object.getPrototypeOf||function(n){return n=o(n),e(n,i)?n[i]:"function"==typeof n.constructor&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?u:null}},function(n,t,r){var e=r(11),o=r(10),i=r(88)(!1),u=r(27)("IE_PROTO");n.exports=function(n,t){var r,a=o(n),c=0,f=[];for(r in a)r!=u&&e(a,r)&&f.push(r);for(;t.length>c;)e(a,r=t[c++])&&(~i(f,r)||f.push(r));return f}},,function(n,t,r){n.exports=r(9)},,,function(n,t,r){"use strict";var e=r(42),o=r(73),i=(r.n(o),r(74)),u=(r.n(i),r(63)),a=(r.n(u),r(20)),c=r(12),f=r(45),l=r(44),s=r(75),p=(r.n(s),r(42));r.d(t,"a",function(){return e.a}),r.o(o,"ITaskDefinition")&&r.d(t,"b",function(){return o.ITaskDefinition}),r.o(i,"ITask")&&r.d(t,"c",function(){return i.ITask}),r.o(u,"IFunctionDefinition")&&r.d(t,"d",function(){return u.IFunctionDefinition}),r.d(t,"e",function(){return a.IFunctionId}),r.d(t,"f",function(){return a.b}),r.d(t,"g",function(){return c.a}),r.d(t,"h",function(){return f.ISerializedFunctionCall}),r.d(t,"i",function(){return f.a}),r.d(t,"j",function(){return l.a}),r.o(s,"IThreadPool")&&r.d(t,"k",function(){return s.IThreadPool}),r.d(t,"l",function(){return p.b}),r.d(t,"m",function(){return p.c}),r.d(t,"n",function(){return p.d}),r.d(t,"o",function(){return p.e}),r.d(t,"p",function(){return p.f}),r.d(t,"q",function(){return p.g}),r.d(t,"r",function(){return p.h}),r.d(t,"s",function(){return p.i}),r.d(t,"t",function(){return p.j}),r.d(t,"u",function(){return p.k})},function(n,t){},function(n,t){},,,64,64,function(n,t){},64,64,64,63,63,64,,,,function(n,t,r){n.exports={default:r(86),__esModule:!0}},,,,,,function(n,t,r){r(41),r(30),n.exports=r(100)},function(n,t,r){r(102);var e=r(2).Object;n.exports=function(n,t,r){return e.defineProperty(n,t,r)}},function(n,t){n.exports=function(){}},function(n,t,r){var e=r(10),o=r(38),i=r(99);n.exports=function(n){return function(t,r,u){var a,c=e(t),f=o(c.length),l=i(u,f);if(n&&r!=r){for(;f>l;)if(a=c[l++],a!=a)return!0}else for(;f>l;l++)if((n||l in c)&&c[l]===r)return n||l||0;return!n&&-1}}},,,function(n,t,r){"use strict";var e=r(36),o=r(19),i=r(22),u={};r(9)(u,r(3)("iterator"),function(){return this}),n.exports=function(n,t,r){n.prototype=e(u,{next:o(1,r)}),i(n,t+" Iterator")}},,function(n,t){n.exports=function(n,t){return{value:t,done:!!n}}},function(n,t,r){var e=r(6),o=r(5),i=r(21);n.exports=r(7)?Object.defineProperties:function(n,t){o(n);for(var r,u=i(t),a=u.length,c=0;a>c;)e.f(n,r=u[c++],t[r]);return n}},,,function(n,t,r){var e=r(28),o=r(25);n.exports=function(n){return function(t,r){var i,u,a=String(o(t)),c=e(r),f=a.length;return c<0||c>=f?n?"":void 0:(i=a.charCodeAt(c),i<55296||i>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?n?a.charAt(c):i:n?a.slice(c,c+2):(i-55296<<10)+(u-56320)+65536)}}},,function(n,t,r){var e=r(28),o=Math.max,i=Math.min;n.exports=function(n,t){return n=e(n),n<0?o(n+t,0):i(n,t)}},function(n,t,r){var e=r(5),o=r(40);n.exports=r(2).getIterator=function(n){var t=o(n);if("function"!=typeof t)throw TypeError(n+" is not iterable!");return e(t.call(n))}},function(n,t,r){"use strict";var e=r(87),o=r(93),i=r(16),u=r(10);n.exports=r(43)(Array,"Array",function(n,t){this._t=u(n),this._i=0,this._k=t},function(){var n=this._t,t=this._k,r=this._i++;return!n||r>=n.length?(this._t=void 0,o(1)):"keys"==t?o(0,r):"values"==t?o(0,n[r]):o(0,[r,n[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},function(n,t,r){var e=r(8);e(e.S+e.F*!r(7),"Object",{defineProperty:r(6).f})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,r){"use strict";var e=r(62);r.d(t,"IParallel",function(){return e.a}),r.d(t,"ITaskDefinition",function(){return e.b}),r.d(t,"ITask",function(){return e.c}),r.d(t,"IFunctionDefinition",function(){return e.d}),r.d(t,"IFunctionId",function(){return e.e}),r.d(t,"isFunctionId",function(){return e.f}),r.d(t,"FunctionCall",function(){return e.g}),r.d(t,"ISerializedFunctionCall",function(){return e.h}),r.d(t,"isSerializedFunctionCall",function(){return e.i}),r.d(t,"FunctionCallSerializer",function(){return e.j}),r.d(t,"IThreadPool",function(){return e.k}),r.d(t,"IParallelChain",function(){return e.l}),r.d(t,"IParallelTaskEnvironment",function(){return e.m}),r.d(t,"IParallelEnvironment",function(){return e.n}),r.d(t,"IParallelJob",function(){return e.o}),r.d(t,"IParallelOptions",function(){return e.p}),r.d(t,"IDefaultInitializedParallelOptions",function(){return e.q}),r.d(t,"IParallelJobScheduler",function(){return e.r}),r.d(t,"IParallelOperation",function(){return e.s}),r.d(t,"ISerializedParallelOperation",function(){return e.t}),r.d(t,"IParallelStream",function(){return e.u})}]))}); | ||
//# sourceMappingURL=node.parallel.js.map |
{ | ||
"name": "parallel-es", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Simple parallelization for EcmaScript", | ||
@@ -5,0 +5,0 @@ "main": "./dist/node.parallel.js", |
# parallel.es | ||
[](https://travis-ci.org/DatenMetzgerX/parallel.es) | ||
[](https://coveralls.io/github/DatenMetzgerX/parallel.es?branch=master) | ||
[](https://travis-ci.org/MichaReiser/parallel.es) | ||
[](https://coveralls.io/github/MichaReiser/parallel.es?branch=master) | ||
[](https://badge.fury.io/js/parallel-es) | ||
@@ -35,12 +35,12 @@ | ||
## Debugging Support | ||
The Library uses Function serialization and therefore debugging is not supported out of the box. However, there is a [webpack plugin](https://github.com/DatenMetzgerX/parallel-es-webpack-plugin) that rewrites your code in a way that allows debugging (at least in Chrome and Firefox Nightly). | ||
The Library uses Function serialization and therefore debugging is not supported out of the box. However, there is a [webpack plugin](https://github.com/MichaReiser/parallel-es-webpack-plugin) that rewrites your code in a way that allows debugging (at least in Chrome and Firefox Nightly). | ||
## Referencing Functions and Variables | ||
The library uses function serialization and therefore the outer scope is no longer available when the function is invoked in the worker thread. However, there is a [webpack plugin](https://github.com/DatenMetzgerX/parallel-es-webpack-plugin) that rewrites your code and allows you to use const variables from the outer scope or reference functions. | ||
The library uses function serialization and therefore the outer scope is no longer available when the function is invoked in the worker thread. However, there is a [webpack plugin](https://github.com/MichaReiser/parallel-es-webpack-plugin) that rewrites your code and allows you to use const variables from the outer scope or reference functions. | ||
## Documentation | ||
The [API Documentation](https://datenmetzgerx.github.io/parallel.es/artifacts/docs/interfaces/parallel.iparallel.html) is available online. The [wiki](../../wiki) describes the architecture and programing model in more detail. | ||
The [API Documentation](https://michareiser.github.io/parallel.es/artifacts/docs/interfaces/parallel.iparallel.html) is available online. The [wiki](../../wiki) describes the architecture and programing model in more detail. | ||
## Examples | ||
An example project using parallel-es and comparing it performance to related projects is [parallel-es-example](https://github.com/DatenMetzgerX/parallel-es-example). The examples are hosted [here](https://datenmetzgerx.github.io/parallel-es-example/). | ||
An example project using parallel-es and comparing it performance to related projects is [parallel-es-example](https://github.com/MichaReiser/parallel-es-example). The examples are hosted [here](https://michareiser.github.io/parallel-es-example/). | ||
@@ -47,0 +47,0 @@ ## Browsers support <sub><sup><sub><sub>made by @godban</sub></sub></sup></sub> |
@@ -27,3 +27,2 @@ /** | ||
functionCallSerializer, | ||
maxConcurrencyLevel, | ||
scheduler: new DefaultParallelScheduler(), | ||
@@ -30,0 +29,0 @@ threadPool |
@@ -24,6 +24,2 @@ import {IParallel} from "./parallel"; | ||
if (userOptions.hasOwnProperty("maxConcurrencyLevel") && typeof(userOptions.maxConcurrencyLevel) !== "number") { | ||
throw new Error("The maxConcurrencyLevel is mandatory and has to be a number"); | ||
} | ||
validateOptions(userOptions); | ||
@@ -30,0 +26,0 @@ } |
@@ -21,7 +21,2 @@ /** | ||
/** | ||
* Maximum number of workers that can run in parallel (without blocking each other) | ||
*/ | ||
maxConcurrencyLevel?: number; | ||
/** | ||
* The minimum number of values assigned to a single task before the work is split and assigned another task | ||
@@ -61,3 +56,2 @@ */ | ||
functionCallSerializer: FunctionCallSerializer; | ||
maxConcurrencyLevel: number; | ||
threadPool: IThreadPool; | ||
@@ -67,12 +61,8 @@ scheduler: IParallelJobScheduler; | ||
const greaterThanZeroOptions = ["maxValuesPerTask", "minValuesPerTask", "maxConcurrencyLevel", "maxDegreeOfParallelism"]; | ||
const greaterThanZeroOptions = ["maxValuesPerTask", "minValuesPerTask", "maxDegreeOfParallelism"]; | ||
export function validateOptions(options: IParallelOptions) { | ||
if (typeof (options.maxDegreeOfParallelism) === "number") { | ||
options.maxDegreeOfParallelism = Math.floor(options.maxDegreeOfParallelism); | ||
} | ||
for (const optionName of greaterThanZeroOptions) { | ||
const optionValue = (options as {[name: string]: number | undefined })[optionName]; | ||
if (typeof (optionValue) !== "undefined" && (typeof(optionValue) !== "number" || optionValue <= 0)) { | ||
throw new Error(`Illegal parallel options: ${optionName} (${optionValue}) must be number greater than zero`); | ||
if (typeof (optionValue) !== "undefined" && (typeof(optionValue) !== "number" || optionValue <= 0 || optionValue % 1 !== 0)) { | ||
throw new Error(`Illegal parallel options: ${optionName} (${optionValue}) has to be an integer greater than zero`); | ||
} | ||
@@ -79,0 +69,0 @@ } |
@@ -19,3 +19,3 @@ import {IDefaultInitializedParallelOptions} from "../parallel-options"; | ||
} else { | ||
maxDegreeOfParallelism = options.maxConcurrencyLevel * 4; | ||
maxDegreeOfParallelism = options.threadPool.maxThreads * 4; | ||
} | ||
@@ -22,0 +22,0 @@ |
@@ -15,6 +15,18 @@ import {IThreadPool} from "./thread-pool"; | ||
private queue: WorkerTask<any>[] = []; | ||
private concurrencyLimit: number; | ||
private maxThreadsLimit: number; | ||
public get maxThreads(): number { | ||
return this.maxThreadsLimit; | ||
} | ||
public set maxThreads(limit: number) { | ||
if (typeof (limit) !== "number" || limit % 1 !== 0 || limit <= 0) { | ||
throw new Error(`The maxThreads limit (${limit}) has to be a positive integer larger than zero.`); | ||
} | ||
this.maxThreadsLimit = limit; | ||
} | ||
constructor(private workerThreadFactory: IWorkerThreadFactory, options: { maxConcurrencyLevel: number }) { | ||
this.concurrencyLimit = options.maxConcurrencyLevel; | ||
this.maxThreadsLimit = options.maxConcurrencyLevel; | ||
} | ||
@@ -39,3 +51,3 @@ | ||
let worker: IWorkerThread | undefined; | ||
if (this.idleWorkers.length === 0 && this.workers.length < this.concurrencyLimit) { | ||
if (this.idleWorkers.length === 0 && this.workers.length < this.maxThreadsLimit) { | ||
worker = this.workerThreadFactory.spawn(); | ||
@@ -42,0 +54,0 @@ this.workers.push(worker); |
@@ -14,2 +14,8 @@ /** | ||
export interface IThreadPool { | ||
/** | ||
* Maximum number of threads that the thread pool should scheduled. Default initialized with the | ||
* number of the hardware concurrency supported by the hardware. | ||
* The value cannot be negative or 0 | ||
*/ | ||
maxThreads: number; | ||
@@ -16,0 +22,0 @@ /** |
@@ -24,3 +24,2 @@ import {DependentParallelChainState} from "../../../../src/common/parallel/chain/dependent-parallel-chain-state"; | ||
functionCallSerializer: undefined as any, | ||
maxConcurrencyLevel: 2, | ||
scheduler, | ||
@@ -27,0 +26,0 @@ threadPool: undefined as any |
@@ -21,3 +21,2 @@ import {IParallelGenerator} from "../../../../src/common/parallel/generator/parallel-generator"; | ||
functionCallSerializer: undefined as any, | ||
maxConcurrencyLevel: 2, | ||
scheduler: undefined as any, | ||
@@ -24,0 +23,0 @@ threadPool: undefined as any |
@@ -33,3 +33,2 @@ import {IParallelGenerator} from "../../../../src/common/parallel/generator/parallel-generator"; | ||
functionCallSerializer: undefined as any, | ||
maxConcurrencyLevel: 2, | ||
scheduler: undefined as any, | ||
@@ -36,0 +35,0 @@ threadPool: undefined as any |
@@ -24,3 +24,2 @@ import {IDefaultInitializedParallelOptions} from "../../../../src/common/parallel"; | ||
functionCallSerializer: undefined as any, | ||
maxConcurrencyLevel: 2, | ||
scheduler, | ||
@@ -27,0 +26,0 @@ threadPool: undefined as any |
@@ -18,3 +18,2 @@ import {ScheduledParallelChainState} from "../../../../src/common/parallel/chain/scheduled-parallel-chain-state"; | ||
functionCallSerializer: undefined as any, | ||
maxConcurrencyLevel: 2, | ||
scheduler: undefined as any, | ||
@@ -21,0 +20,0 @@ threadPool: undefined as any |
@@ -22,3 +22,2 @@ import {IParallel} from "../../../src/common/parallel/parallel"; | ||
const maxConcurrencyLevel = 2; | ||
let createParallelChainSpy: jasmine.Spy; | ||
@@ -37,3 +36,2 @@ let options: IDefaultInitializedParallelOptions; | ||
functionCallSerializer, | ||
maxConcurrencyLevel, | ||
threadPool, | ||
@@ -54,10 +52,2 @@ scheduler: undefined as any | ||
it("initializes the maxConcurrencyLevel from the configuration by default", function () { | ||
// act | ||
const defaultOptions = parallel.defaultOptions(); | ||
// assert | ||
expect(defaultOptions.maxConcurrencyLevel).toBe(maxConcurrencyLevel); | ||
}); | ||
it("initializes the thread pool to the thread pool from the configuration by default", function () { | ||
@@ -74,3 +64,2 @@ // act | ||
parallel.defaultOptions({ | ||
maxConcurrencyLevel: 8, | ||
minValuesPerTask: 1000 | ||
@@ -82,3 +71,2 @@ }); | ||
expect(defaultOptions.maxConcurrencyLevel).toBe(8); | ||
expect(defaultOptions.minValuesPerTask).toBe(1000); | ||
@@ -90,3 +78,2 @@ }); | ||
parallel.defaultOptions({ | ||
maxConcurrencyLevel: 8, | ||
minValuesPerTask: 1000 | ||
@@ -116,12 +103,2 @@ }); | ||
it("throws if maxConcurrencyLevel is not a number", function () { | ||
// act, assert | ||
expect(() => parallel.defaultOptions({ maxConcurrencyLevel: "test" } as any)).toThrowError("The maxConcurrencyLevel is mandatory and has to be a number"); | ||
}); | ||
it("throws if maxConcurrencyLevel is set to undefined", function () { | ||
// act, assert | ||
expect(() => parallel.defaultOptions({ maxConcurrencyLevel: undefined } as any)).toThrowError("The maxConcurrencyLevel is mandatory and has to be a number"); | ||
}); | ||
it("throws if the thread pool is set to undefined", function () { | ||
@@ -156,3 +133,2 @@ // act, assert | ||
functionCallSerializer, | ||
maxConcurrencyLevel, | ||
maxValuesPerTask: 2, | ||
@@ -183,3 +159,2 @@ threadPool, | ||
functionCallSerializer, | ||
maxConcurrencyLevel, | ||
maxValuesPerTask: 2, | ||
@@ -212,3 +187,2 @@ threadPool, | ||
functionCallSerializer, | ||
maxConcurrencyLevel, | ||
maxValuesPerTask: 2, | ||
@@ -215,0 +189,0 @@ threadPool, |
@@ -5,3 +5,2 @@ import {validateOptions} from "../../../src/common/parallel/parallel-options"; | ||
validateOptions({ | ||
maxConcurrencyLevel: 4, | ||
maxDegreeOfParallelism: 1, | ||
@@ -20,25 +19,19 @@ maxValuesPerTask: 4, | ||
it("ensures that maxDegreeOfParallelism is an int", function () { | ||
const options = ({ | ||
maxDegreeOfParallelism: 2.3 | ||
}); | ||
// act | ||
validateOptions(options); | ||
// assert | ||
expect(options.maxDegreeOfParallelism).toBe(2); | ||
}); | ||
for (const option of ["maxConcurrencyLevel", "maxDegreeOfParallelism", "maxValuesPerTask", "minValuesPerTask"]) { | ||
for (const option of ["maxDegreeOfParallelism", "maxValuesPerTask", "minValuesPerTask"]) { | ||
it(`throws if ${option} is not a number`, function () { | ||
expect(() => validateOptions({ | ||
[option]: "2" | ||
})).toThrowError(`Illegal parallel options: ${option} (2) must be number greater than zero`); | ||
})).toThrowError(`Illegal parallel options: ${option} (2) has to be an integer greater than zero`); | ||
}); | ||
it(`throws if ${option} is not an integer`, function () { | ||
expect(() => validateOptions({ | ||
[option]: 0.4 | ||
})).toThrowError(`Illegal parallel options: ${option} (0.4) has to be an integer greater than zero`); | ||
}); | ||
it(`throws if ${option} is zero`, function () { | ||
expect(() => validateOptions({ | ||
[option]: 0 | ||
})).toThrowError(`Illegal parallel options: ${option} (0) must be number greater than zero`); | ||
})).toThrowError(`Illegal parallel options: ${option} (0) has to be an integer greater than zero`); | ||
}); | ||
@@ -49,5 +42,5 @@ | ||
[option]: -3 | ||
})).toThrowError(`Illegal parallel options: ${option} (-3) must be number greater than zero`); | ||
})).toThrowError(`Illegal parallel options: ${option} (-3) has to be an integer greater than zero`); | ||
}); | ||
} | ||
}); |
@@ -37,2 +37,3 @@ import {IDefaultInitializedParallelOptions} from "../../../../src/common/parallel/parallel-options"; | ||
threadPool = { | ||
maxThreads: 2, | ||
run: threadPoolRunSpy | ||
@@ -43,3 +44,2 @@ }; | ||
functionCallSerializer: functionSerializer, | ||
maxConcurrencyLevel: 2, | ||
scheduler, | ||
@@ -46,0 +46,0 @@ threadPool |
@@ -12,5 +12,4 @@ import {IDefaultInitializedParallelOptions} from "../../../../src/common/parallel/parallel-options"; | ||
functionCallSerializer: undefined as any, | ||
maxConcurrencyLevel: 2, | ||
scheduler, | ||
threadPool: undefined as any | ||
threadPool: { maxThreads: 2 } as any | ||
}; | ||
@@ -25,3 +24,3 @@ }); | ||
// assert | ||
expect(scheduling.numberOfTasks).toBe(options.maxConcurrencyLevel * 4); | ||
expect(scheduling.numberOfTasks).toBe(8); | ||
}); | ||
@@ -28,0 +27,0 @@ |
@@ -0,1 +1,2 @@ | ||
import {ITask} from "../../../../src/common/task/task"; | ||
@@ -2,0 +3,0 @@ import {IParallelStream} from "../../../../src/common/parallel/stream/parallel-stream"; |
@@ -16,2 +16,28 @@ import {DefaultThreadPool} from "../../../src/common/thread-pool/default-thread-pool"; | ||
describe("maxThreads", function () { | ||
it("returns the maxConcurrencyLevel constructor argument by default", function () { | ||
expect(threadPool.maxThreads).toEqual(2); | ||
}); | ||
it("sets the maxThreads limit", function () { | ||
// act | ||
threadPool.maxThreads = 10; | ||
// assert | ||
expect(threadPool.maxThreads).toEqual(10); | ||
}); | ||
it("throws if the value is not a number", function () { | ||
expect(() => threadPool.maxThreads = undefined as any).toThrowError("The maxThreads limit (undefined) has to be a positive integer larger than zero."); | ||
}); | ||
it("throws if the value is not an int", function () { | ||
expect(() => threadPool.maxThreads = 2.1).toThrowError("The maxThreads limit (2.1) has to be a positive integer larger than zero."); | ||
}); | ||
it("throws if the value is negative", function () { | ||
expect(() => threadPool.maxThreads = -1).toThrowError("The maxThreads limit (-1) has to be a positive integer larger than zero."); | ||
}); | ||
}); | ||
describe("run", function () { | ||
@@ -18,0 +44,0 @@ let task: ITaskDefinition; |
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 too big to display
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
2563654
12039