Mid-Simulator/node_modules/stacktrace-gps/dist/stacktrace-gps-with-polyfills.min.js

2 lines
30 KiB
JavaScript
Raw Normal View History

2022-04-18 01:14:39 +00:00
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.ES6Promise=n()}(this,function(){"use strict";function c(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,n=void 0,o=void 0,a=function(e,n){p[r]=e,p[r+1]=n,2===(r+=2)&&(o?o(g):v())};var e="undefined"!=typeof window?window:void 0,i=e||{},s=i.MutationObserver||i.WebKitMutationObserver,u="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),l="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var e=setTimeout;return function(){return e(g,1)}}var p=new Array(1e3);function g(){for(var e=0;e<r;e+=2){(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0}r=0}var h,m,d,_,v=void 0;function y(e,n){var t=arguments,r=this,o=new this.constructor(C);void 0===o[w]&&k(o);var i,s=r._state;return s?(i=t[s-1],a(function(){return D(s,o,i,r._result)})):x(r,o,e,n),o}function b(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var n=new this(C);return P(n,e),n}v=u?function(){return process.nextTick(g)}:s?(m=0,d=new s(g),_=document.createTextNode(""),d.observe(_,{characterData:!0}),function(){_.data=m=++m%2}):l?((h=new MessageChannel).port1.onmessage=g,function(){return h.port2.postMessage(0)}):(void 0===e&&"function"==typeof require?function(){try{var e=require("vertx");return n=e.runOnLoop||e.runOnContext,function(){n(g)}}catch(e){return f()}}:f)();var w=Math.random().toString(36).substring(16);function C(){}var A=void 0,O=1,E=2,M=new G;function S(e){try{return e.then}catch(e){return M.error=e,M}}function L(e,r,o){a(function(n){var t=!1,e=function(e,n,t,r){try{e.call(n,t,r)}catch(e){return e}}(o,r,function(e){t||(t=!0,(r!==e?P:j)(n,e))},function(e){t||(t=!0,T(n,e))},n._label);!t&&e&&(t=!0,T(n,e))},e)}function N(e,n,t){var r,o;n.constructor===e.constructor&&t===y&&n.constructor.resolve===b?(r=e,(o=n)._state===O?j(r,o._result):o._state===E?T(r,o._result):x(o,void 0,function(e){return P(r,e)},function(e){return T(r,e)})):t===M?T(e,M.error):void 0===t?j(e,n):c(t)?L(e,n,t):j(e,n)}function P(e,n){var t;e===n?T(e,new TypeError("You cannot resolve a promise with itself")):"function"==typeof(t=n)||"object"==typeof t&&null!==t?N(e,n,S(n)):j(e,n)}function R(e){e._onerror&&e._onerror(e._result),F(e)}function j(e,n){e._state===A&&(e._result=n,e._state=O,0!==e._subscribers.length&&a(F,e))}function T(e,n){e._state===A&&(e._state=E,e._result=n,a(R,e))}function x(e,n,t,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=n,o[i+O]=t,o[i+E]=r,0===i&&e._state&&a(F,e)}function F(e){var n=e._subscribers,t=e._state;if(0!==n.length){for(var r=void 0,o=void 0,i=e._result,s=0;s<n.length;s+=3)r=n[s],o=n[s+t],r?D(t,r,o,i):o(i);e._subscribers.length=0}}function G(){this.error=null}var B=new G;function D(e,n,t,r){var o=c(t),i=void 0,s=void 0,a=void 0,u=void 0;if(o){if((i=function(e,n){try{return e(n)}catch(e){return B.error=e,B}}(t,r))===B?(u=!0,s=i.error,i=null):a=!0,n===i)return void T(n,new TypeError("A promises callback cannot return that same promise."))}else i=r,a=!0;n._state!==A||(o&&a?P(n,i):u?T(n,s):e===O?j(n,i):e===E&&T(n,i))}var U=0;function k(e){e[w]=U++,e._state=void 0,e._result=void 0,e._subscribers=[]}function I(e,n){this._instanceConstructor=e,this.promise=new e(C),this.promise[w]||k(this.promise),t(n)?(this._input=n,this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?j(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&j(this.promise,this._result))):T(this.promise,new Error("Array Methods must be provided an Array"))}function $(e){this[w]=U++,this._result=this._state=void 0,this._subscribers=[],C!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof $?function(n,e){try{e(function(e){P(n,e)},function(e){T(n,e)})}catch(e)
//# sourceMappingURL=stacktrace-gps-polyfilled.min.js.map