1 line
8.2 KiB
JavaScript
1 line
8.2 KiB
JavaScript
!function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},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=1)}({1:function(t,n,e){t.exports=e("sV/x")},"3Cgm":function(t,n,e){"use strict";(function(n){function e(t){u.length||(i(),f=!0),u[u.length]=t}function r(){for(;c<u.length;){var t=c;if(c+=1,u[t].call(),c>s){for(var n=0,e=u.length-c;n<e;n++)u[n]=u[n+c];u.length-=c,c=0}}u.length=0,c=0,f=!1}function o(t){return function(){function n(){clearTimeout(e),clearInterval(r),t()}var e=setTimeout(n,0),r=setInterval(n,50)}}t.exports=e;var i,u=[],f=!1,c=0,s=1024,a=void 0!==n?n:self,l=a.MutationObserver||a.WebKitMutationObserver;i="function"==typeof l?function(t){var n=1,e=new l(t),r=document.createTextNode("");return e.observe(r,{characterData:!0}),function(){n=-n,r.data=n}}(r):o(r),e.requestFlush=i,e.makeRequestCallFromTimer=o}).call(n,e("DuR2"))},"A/Xc":function(t,n,e){"use strict";t.exports=e("JhQ5")},DuR2:function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},IYKl:function(t,n,e){"use strict";function r(){if(c.length)throw c.shift()}function o(t){var n;n=f.length?f.pop():new i,n.task=t,u(n)}function i(){this.task=null}var u=e("3Cgm"),f=[],c=[],s=u.makeRequestCallFromTimer(r);t.exports=o,i.prototype.call=function(){try{this.task.call()}catch(t){o.onerror?o.onerror(t):(c.push(t),s())}finally{this.task=null,f[f.length]=this}}},JhQ5:function(t,n,e){"use strict";t.exports=e("se3Y"),e("vxXX"),e("tuGe"),e("Nq5S"),e("PGhS"),e("YQ0A")},Nq5S:function(t,n,e){"use strict";function r(t){var n=new o(o._61);return n._65=1,n._55=t,n}var o=e("se3Y");t.exports=o;var i=r(!0),u=r(!1),f=r(null),c=r(void 0),s=r(0),a=r("");o.resolve=function(t){if(t instanceof o)return t;if(null===t)return f;if(void 0===t)return c;if(!0===t)return i;if(!1===t)return u;if(0===t)return s;if(""===t)return a;if("object"==typeof t||"function"==typeof t)try{var n=t.then;if("function"==typeof n)return new o(n.bind(t))}catch(t){return new o(function(n,e){e(t)})}return r(t)},o.all=function(t){var n=Array.prototype.slice.call(t);return new o(function(t,e){function r(u,f){if(f&&("object"==typeof f||"function"==typeof f)){if(f instanceof o&&f.then===o.prototype.then){for(;3===f._65;)f=f._55;return 1===f._65?r(u,f._55):(2===f._65&&e(f._55),void f.then(function(t){r(u,t)},e))}var c=f.then;if("function"==typeof c){return void new o(c.bind(f)).then(function(t){r(u,t)},e)}}n[u]=f,0==--i&&t(n)}if(0===n.length)return t([]);for(var i=n.length,u=0;u<n.length;u++)r(u,n[u])})},o.reject=function(t){return new o(function(n,e){e(t)})},o.race=function(t){return new o(function(n,e){t.forEach(function(t){o.resolve(t).then(n,e)})})},o.prototype.catch=function(t){return this.then(null,t)}},PGhS:function(t,n,e){"use strict";function r(t,n){for(var e=[],r=0;r<n;r++)e.push("a"+r);var o=["return function ("+e.join(",")+") {","var self = this;","return new Promise(function (rs, rj) {","var res = fn.call(",["self"].concat(e).concat([f]).join(","),");","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],o)(i,t)}function o(t){for(var n=Math.max(t.length-1,3),e=[],r=0;r<n;r++)e.push("a"+r);var o=["return function ("+e.join(",")+") {","var self = this;","var args;","var argLength = arguments.length;","if (arguments.length > "+n+") {","args = new Array(arguments.length + 1);","for (var i = 0; i < arguments.length; i++) {","args[i] = arguments[i];","}","}","return new Promise(function (rs, rj) {","var cb = "+f+";","var res;","switch (argLength) {",e.concat(["extra"]).map(function(t,n){return"case "+n+":res = fn.call("+["self"].concat(e.slice(0,n)).concat("cb").join(",")+");break;"}).join(""),"default:","args[argLength] = cb;","res = fn.apply(self, args);","}","if (res &&",'(typeof res === "object" || typeof res === "function") &&','typeof res.then === "function"',") {rs(res);}","});","};"].join("");return Function(["Promise","fn"],o)(i,t)}var i=e("se3Y"),u=e("IYKl");t.exports=i,i.denodeify=function(t,n){return"number"==typeof n&&n!==1/0?r(t,n):o(t)};var f="function (err, res) {if (err) { rj(err); } else { rs(res); }}";i.nodeify=function(t){return function(){var n=Array.prototype.slice.call(arguments),e="function"==typeof n[n.length-1]?n.pop():null,r=this;try{return t.apply(this,arguments).nodeify(e,r)}catch(t){if(null===e||void 0===e)return new i(function(n,e){e(t)});u(function(){e.call(r,t)})}}},i.prototype.nodeify=function(t,n){if("function"!=typeof t)return this;this.then(function(e){u(function(){t.call(n,null,e)})},function(e){u(function(){t.call(n,e)})})}},YQ0A:function(t,n,e){"use strict";var r=e("se3Y");t.exports=r,r.enableSynchronous=function(){r.prototype.isPending=function(){return 0==this.getState()},r.prototype.isFulfilled=function(){return 1==this.getState()},r.prototype.isRejected=function(){return 2==this.getState()},r.prototype.getValue=function(){if(3===this._65)return this._55.getValue();if(!this.isFulfilled())throw new Error("Cannot get a value of an unfulfilled promise.");return this._55},r.prototype.getReason=function(){if(3===this._65)return this._55.getReason();if(!this.isRejected())throw new Error("Cannot get a rejection reason of a non-rejected promise.");return this._55},r.prototype.getState=function(){return 3===this._65?this._55.getState():-1===this._65||-2===this._65?0:this._65}},r.disableSynchronous=function(){r.prototype.isPending=void 0,r.prototype.isFulfilled=void 0,r.prototype.isRejected=void 0,r.prototype.getValue=void 0,r.prototype.getReason=void 0,r.prototype.getState=void 0}},"sV/x":function(t,n,e){e("A/Xc")},se3Y:function(t,n,e){"use strict";function r(){}function o(t){try{return t.then}catch(t){return g=t,d}}function i(t,n){try{return t(n)}catch(t){return g=t,d}}function u(t,n,e){try{t(n,e)}catch(t){return g=t,d}}function f(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("Promise constructor's argument is not a function");this._40=0,this._65=0,this._55=null,this._72=null,t!==r&&y(t,this)}function c(t,n,e){return new t.constructor(function(o,i){var u=new f(r);u.then(o,i),s(t,new v(n,e,u))})}function s(t,n){for(;3===t._65;)t=t._55;if(f._37&&f._37(t),0===t._65)return 0===t._40?(t._40=1,void(t._72=n)):1===t._40?(t._40=2,void(t._72=[t._72,n])):void t._72.push(n);a(t,n)}function a(t,n){_(function(){var e=1===t._65?n.onFulfilled:n.onRejected;if(null===e)return void(1===t._65?l(n.promise,t._55):h(n.promise,t._55));var r=i(e,t._55);r===d?h(n.promise,g):l(n.promise,r)})}function l(t,n){if(n===t)return h(t,new TypeError("A promise cannot be resolved with itself."));if(n&&("object"==typeof n||"function"==typeof n)){var e=o(n);if(e===d)return h(t,g);if(e===t.then&&n instanceof f)return t._65=3,t._55=n,void p(t);if("function"==typeof e)return void y(e.bind(n),t)}t._65=1,t._55=n,p(t)}function h(t,n){t._65=2,t._55=n,f._87&&f._87(t,n),p(t)}function p(t){if(1===t._40&&(s(t,t._72),t._72=null),2===t._40){for(var n=0;n<t._72.length;n++)s(t,t._72[n]);t._72=null}}function v(t,n,e){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.promise=e}function y(t,n){var e=!1,r=u(t,function(t){e||(e=!0,l(n,t))},function(t){e||(e=!0,h(n,t))});e||r!==d||(e=!0,h(n,g))}var _=e("3Cgm"),g=null,d={};t.exports=f,f._37=null,f._87=null,f._61=r,f.prototype.then=function(t,n){if(this.constructor!==f)return c(this,t,n);var e=new f(r);return s(this,new v(t,n,e)),e}},tuGe:function(t,n,e){"use strict";var r=e("se3Y");t.exports=r,r.prototype.finally=function(t){return this.then(function(n){return r.resolve(t()).then(function(){return n})},function(n){return r.resolve(t()).then(function(){throw n})})}},vxXX:function(t,n,e){"use strict";var r=e("se3Y");t.exports=r,r.prototype.done=function(t,n){(arguments.length?this.then.apply(this,arguments):this).then(null,function(t){setTimeout(function(){throw t},0)})}}}); |