This repository has been archived on 2023-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
mightyscape-1.1-deprecated/extensions/fablabchemnitz/papercraft/openjscad/node_modules/most/dist/most.min.js

2 lines
43 KiB
JavaScript
Raw Normal View History

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.most={})}(this,function(t){"use strict";function e(t){this.source=t}function n(t,e){if(t<0)throw new TypeError("n must be >= 0");var n=e.length;return 0===t||0===n?e:t>=n?[]:function(t,e,n){for(var i=new Array(n),r=0;r<n;++r)i[r]=e[t+r];return i}(t,e,n-t)}function i(t){return n(1,t)}function r(t,e){for(var n=e.length,i=new Array(n),r=0;r<n;++r)i[r]=t(e[r]);return i}function o(t,e,n){if(e<0)throw new TypeError("i must be >= 0");for(var i=n.length,r=new Array(i),o=0;o<i;++o)r[o]=e===o?t:n[o];return r}function s(t,e){if(t<0)throw new TypeError("i must be >= 0");var n=e.length;return 0===n||t>=n?e:1===n?[]:function(t,e,n){var i,r=new Array(n);for(i=0;i<t;++i)r[i]=e[i];for(i=t;i<n;++i)r[i]=e[i+1];return r}(t,e,n-1)}function u(t,e){for(var n=0,i=e.length;n<i;++n)if(t===e[n])return n;return-1}function h(t,e){this._dispose=t,this._data=e}function p(){this.disposable=void 0,this.disposed=!1,this._resolve=void 0;var t=this;this.result=new Promise(function(e){t._resolve=e})}function c(t,e,n){var i=y(e);return function(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}(i)?i.catch(function(e){n.error(t,e)}):i}function f(t,e){return w(new h(t,e))}function a(){return new h(Qn,void 0)}function d(t){return f(l,t)}function l(t){return Promise.all(Kn(y,t))}function y(t){try{return t.dispose()}catch(t){return Promise.reject(t)}}function v(){return new p}function w(t){return new h(k,function(t){return{disposed:!1,disposable:t,value:void 0}}(t))}function k(t){return t.disposed||(t.disposed=!0,t.value=y(t.disposable),t.disposable=void 0),t.value}function m(t){setTimeout(function(){throw t},0)}function _(t,e,n){this._run=t,this.value=e,this.sink=n,this.active=!0}function b(t,e,n){n.error(t,e)}function g(t,e,n){n.event(t,e)}function x(t,e,n){n.end(t,e)}function E(t){return new e(new A(t))}function A(t){this.value=t}function T(t,e,n){n.event(t,e),n.end(t,void 0)}function P(){return Xn}function M(){}function R(t){return t.dispose()}function I(){}function W(t){this.array=t}function L(t,e,n){for(var i=0,r=e.length;i<r&&this.active;++i)n.event(t,e[i]);this.active&&n.end(t)}function C(t){this.iterable=t}function N(t,e,n){for(var i=e.next();!i.done&&this.active;)n.event(t,i.value),i=e.next();n.end(t,i.value)}function S(t,e,n){try{n.event(t,e)}catch(e){n.error(t,e)}}function q(t,e,n){try{n.end(t,e)}catch(e){n.error(t,e)}}function B(t){this.observable=t}function j(t,e){this.sink=t,this.scheduler=e}function D(t){return t.unsubscribe()}function V(t){if(t instanceof e)return t;var n=function(t){var e=null;if(t){var n=t[ti];if("function"==typeof n&&(!(e=n.call(t))||"function"!=typeof e.subscribe))throw new TypeError("invalid observable "+e)}return e}(t);if(null!=n)return function(t){return new e(new B(t))}(n);if(Array.isArray(t)||function(t){return null!=t&&"number"==typeof t.length&&"function"!=typeof t}(t))return function(t){return new e(new W(t))}(t);if(function(t){return"function"==typeof t[Zn]}(t))return function(t){return new e(new C(t))}(t);throw new TypeError("from(x) must be observable, iterable, or array-like: "+t)}function U(t,e){this.period=t,this.value=e}function z(t,e,n,i){this.time=t,this.period=e,this.task=n,this.scheduler=i,this.active=!0}function O(t){return Promise.resolve(t).then(F)}function F(t){try{return t.run()}catch(e){return t.error(e)}}function G(t,e){this.timer=t,this.timeline=e,this._timer=null,this._nextArrival=1/0;var n=this;this._runReadyTasksBound=function(){n._runReadyTasks(n.now())}}function H(){}function J(t){this.f=t,this.active=!0}function K(){this.tasks=[]}function Q(t,e){var n=e.length;if(0!==n){var i=Y(t.time,e);i>=n?e.push(Z(t.time,[t])):t.time===e[i].time?e[i].events.push(t):e.splice(i,0,Z(t.time,[t]))}else e.push(Z(t.time,[t]))}function X(t,e){e.events=function(t,e){for(var n=e.length,i=new Array(n),r=0,o=void 0,s=0;s<n;++s)t(o=e[s])||(i[r]=o,++r);return i.length=r,i}(t,e.events)}function Y(t,e){for(var n,i,r=0,o=e.length;r<o;){if(n=Math.floor((r+o)/2),i=e[n