mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 08:56:20 +00:00
2 lines
No EOL
8.7 KiB
JavaScript
2 lines
No EOL
8.7 KiB
JavaScript
var smalltalk=function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=9)}([function(t,n,r){(function(n,e){!function(n,r){t.exports=r()}(0,function(){"use strict";function t(t){var n=typeof t;return null!==t&&("object"===n||"function"===n)}function o(t){return"function"==typeof t}function i(t){H=t}function u(t){I=t}function s(){return void 0!==G?function(){G(a)}:c()}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t<B;t+=2){(0,Z[t])(Z[t+1]),Z[t]=void 0,Z[t+1]=void 0}B=0}function f(t,n){var r=arguments,e=this,o=new this.constructor(h);void 0===o[tt]&&k(o);var i=e._state;return i?function(){var t=r[i-1];I(function(){return S(i,o,t,e._result)})}():j(e,o,t,n),o}function l(t){var n=this;if(t&&"object"==typeof t&&t.constructor===n)return t;var r=new n(h);return b(r,t),r}function h(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function p(){return new TypeError("A promises callback cannot return that same promise.")}function d(t){try{return t.then}catch(t){return ot.error=t,ot}}function m(t,n,r,e){try{t.call(n,r,e)}catch(t){return t}}function _(t,n,r){I(function(t){var e=!1,o=m(r,n,function(r){e||(e=!0,n!==r?b(t,r):T(t,r))},function(n){e||(e=!0,A(t,n))},"Settle: "+(t._label||" unknown promise"));!e&&o&&(e=!0,A(t,o))},t)}function y(t,n){n._state===rt?T(t,n._result):n._state===et?A(t,n._result):j(n,void 0,function(n){return b(t,n)},function(n){return A(t,n)})}function w(t,n,r){n.constructor===t.constructor&&r===f&&n.constructor.resolve===l?y(t,n):r===ot?(A(t,ot.error),ot.error=null):void 0===r?T(t,n):o(r)?_(t,n,r):T(t,n)}function b(n,r){n===r?A(n,v()):t(r)?w(n,r,d(r)):T(n,r)}function g(t){t._onerror&&t._onerror(t._result),E(t)}function T(t,n){t._state===nt&&(t._result=n,t._state=rt,0!==t._subscribers.length&&I(E,t))}function A(t,n){t._state===nt&&(t._state=et,t._result=n,I(g,t))}function j(t,n,r,e){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=n,o[i+rt]=r,o[i+et]=e,0===i&&t._state&&I(E,t)}function E(t){var n=t._subscribers,r=t._state;if(0!==n.length){for(var e=void 0,o=void 0,i=t._result,u=0;u<n.length;u+=3)e=n[u],o=n[u+r],e?S(r,e,o,i):o(i);t._subscribers.length=0}}function P(){this.error=null}function x(t,n){try{return t(n)}catch(t){return it.error=t,it}}function S(t,n,r,e){var i=o(r),u=void 0,s=void 0,c=void 0,a=void 0;if(i){if(u=x(r,e),u===it?(a=!0,s=u.error,u.error=null):c=!0,n===u)return void A(n,p())}else u=e,c=!0;n._state!==nt||(i&&c?b(n,u):a?A(n,s):t===rt?T(n,u):t===et&&A(n,u))}function O(t,n){try{n(function(n){b(t,n)},function(n){A(t,n)})}catch(n){A(t,n)}}function M(){return ut++}function k(t){t[tt]=ut++,t._state=void 0,t._result=void 0,t._subscribers=[]}function C(t,n){this._instanceConstructor=t,this.promise=new t(h),this.promise[tt]||k(this.promise),z(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?T(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&T(this.promise,this._result))):A(this.promise,L())}function L(){return new Error("Array Methods must be provided an Array")}function F(t){return new C(this,t).promise}function Y(t){var n=this;return new n(z(t)?function(r,e){for(var o=t.length,i=0;i<o;i++)n.resolve(t[i]).then(r,e)}:function(t,n){return n(new TypeError("You must pass an array to race."))})}function D(t){var n=this,r=new n(h);return A(r,t),r}function K(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function N(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function U(t){this[tt]=M(),this._result=this._state=void 0,this._subscribers=[],h!==t&&("function"!=typeof t&&K(),this instanceof U?O(this,t):N())}function W(){var t=void 0;if(void 0!==e)t=e;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(t){}if("[object Promise]"===r&&!n.cast)return}t.Promise=U}var q=void 0;q=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var z=q,B=0,G=void 0,H=void 0,I=function(t,n){Z[B]=t,Z[B+1]=n,2===(B+=2)&&(H?H(a):$())},J="undefined"!=typeof window?window:void 0,Q=J||{},R=Q.MutationObserver||Q.WebKitMutationObserver,V="undefined"==typeof self&&void 0!==n&&"[object process]"==={}.toString.call(n),X="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Z=new Array(1e3),$=void 0;$=V?function(){return function(){return n.nextTick(a)}}():R?function(){var t=0,n=new R(a),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){r.data=t=++t%2}}():X?function(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}():void 0===J?function(){try{var t=r(3);return G=t.runOnLoop||t.runOnContext,s()}catch(t){return c()}}():c();var tt=Math.random().toString(36).substring(16),nt=void 0,rt=1,et=2,ot=new P,it=new P,ut=0;return C.prototype._enumerate=function(t){for(var n=0;this._state===nt&&n<t.length;n++)this._eachEntry(t[n],n)},C.prototype._eachEntry=function(t,n){var r=this._instanceConstructor,e=r.resolve;if(e===l){var o=d(t);if(o===f&&t._state!==nt)this._settledAt(t._state,n,t._result);else if("function"!=typeof o)this._remaining--,this._result[n]=t;else if(r===U){var i=new r(h);w(i,t,o),this._willSettleAt(i,n)}else this._willSettleAt(new r(function(n){return n(t)}),n)}else this._willSettleAt(e(t),n)},C.prototype._settledAt=function(t,n,r){var e=this.promise;e._state===nt&&(this._remaining--,t===et?A(e,r):this._result[n]=r),0===this._remaining&&T(e,this._result)},C.prototype._willSettleAt=function(t,n){var r=this;j(t,void 0,function(t){return r._settledAt(rt,n,t)},function(t){return r._settledAt(et,n,t)})},U.all=F,U.race=Y,U.resolve=l,U.reject=D,U._setScheduler=i,U._setAsap=u,U._asap=I,U.prototype={constructor:U,then:f,catch:function(t){return this.then(null,t)}},U.polyfill=W,U.Promise=U,U})}).call(n,r(1),r(2))},function(t,n){function r(){throw new Error("setTimeout has not been defined")}function e(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(n){try{return f.call(null,t,0)}catch(n){return f.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===e||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(n){try{return l.call(null,t)}catch(n){return l.call(this,t)}}}function u(){d&&v&&(d=!1,v.length?p=v.concat(p):m=-1,p.length&&s())}function s(){if(!d){var t=o(u);d=!0;for(var n=p.length;n;){for(v=p,p=[];++m<n;)v&&v[m].run();m=-1,n=p.length}v=null,d=!1,i(t)}}function c(t,n){this.fun=t,this.array=n}function a(){}var f,l,h=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(t){f=r}try{l="function"==typeof clearTimeout?clearTimeout:e}catch(t){l=e}}();var v,p=[],d=!1,m=-1;h.nextTick=function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];p.push(new c(t,n)),1!==p.length||d||o(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=a,h.addListener=a,h.once=a,h.off=a,h.removeListener=a,h.removeAllListeners=a,h.emit=a,h.prependListener=a,h.prependOnceListener=a,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,n){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n){},,,,,,function(t,n,r){"use strict";window.Promise=window.Promise||r(0),n.alert=function(t,n){return new Promise(function(t){alert(n),t()})},n.prompt=function(t,n,r,e){var o=e;return new Promise(function(t,e){var i=o&&!o.cancel,u=prompt(n,r);if(!i)return null!==u?t(u):void e()})},n.confirm=function(t,n,r){var e=r,o=e&&!e.cancel;return new Promise(function(t,r){var e=confirm(n);if(!o)return e?t():void r()})}}]);
|
|
//# sourceMappingURL=smalltalk.native.poly.min.js.map
|