Build 574548stable
Module 140667
6,255 characters · in no known chunkDependencies
Source Raw
function(e){!function(t){"use strict";var n,i=Object.prototype,r=i.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag",u=t.regeneratorRuntime;if(u){e.exports=u;return}function c(e,t,i,r){var s,a,o,l,u=Object.create((t&&t.prototype instanceof p?t:p).prototype);return s=e,a=i,o=new R(r||[]),l=_,u._invoke=function(e,t){if(l===h)throw Error("Generator is already running");if(l===f){if("throw"===e)throw t;return b()}for(o.method=e,o.arg=t;;){var i=o.delegate;if(i){var r=function e(t,i){var r=t.iterator[i.method];if(n===r){if(i.delegate=null,"throw"===i.method){if(t.iterator.return&&(i.method="return",i.arg=n,e(t,i),"throw"===i.method))return E;i.method="throw",i.arg=TypeError("The iterator does not provide a 'throw' method")}return E}var s=d(r,t.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,E;var a=s.arg;return a?a.done?(i[t.resultName]=a.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=n),i.delegate=null,E):a:(i.method="throw",i.arg=TypeError("iterator result is not an object"),i.delegate=null,E)}(i,o);if(r){if(r===E)continue;return r}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(l===_)throw l=f,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);l=h;var u=d(s,a,o);if("normal"===u.type){if(l=o.done?f:"suspendedYield",u.arg===E)continue;return{value:u.arg,done:o.done}}"throw"===u.type&&(l=f,o.method="throw",o.arg=u.arg)}},u}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}(u=t.regeneratorRuntime=e.exports).wrap=c;var _="suspendedStart",h="executing",f="completed",E={};function p(){}function m(){}function g(){}var A={};A[a]=function(){return this};var I=Object.getPrototypeOf,T=I&&I(I(v([])));T&&T!==i&&r.call(T,a)&&(A=T);var S=g.prototype=p.prototype=Object.create(A);function N(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function C(e){var t;this._invoke=function(n,i){function s(){return new Promise(function(t,s){!function t(n,i,s,a){var o=d(e[n],e,i);if("throw"===o.type)a(o.arg);else{var l=o.arg,u=l.value;return u&&"object"==typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,s,a)},function(e){t("throw",e,s,a)}):Promise.resolve(u).then(function(e){l.value=e,s(l)},function(e){return t("throw",e,s,a)})}}(n,i,t,s)})}return t=t?t.then(s,s):s()}}function y(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(y,this),this.reset(!0)}function v(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,s=function t(){for(;++i<e.length;)if(r.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=n,t.done=!0,t};return s.next=s}}return{next:b}}function b(){return{value:n,done:!0}}m.prototype=S.constructor=g,g.constructor=m,g[l]=m.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(S),e},u.awrap=function(e){return{__await:e}},N(C.prototype),C.prototype[o]=function(){return this},u.AsyncIterator=C,u.async=function(e,t,n,i){var r=new C(c(e,t,n,i));return u.isGeneratorFunction(t)?r:r.next().then(function(e){return e.done?e.value:r.next()})},N(S),S[l]="Generator",S[a]=function(){return this},S.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},u.values=v,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(i,r){return o.type="throw",o.arg=e,t.next=i,r&&(t.method="next",t.arg=n),!!r}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);else if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else if(u){if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else throw Error("try statement without catch or finally")}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var s=i;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return(a.type=e,a.arg=t,s)?(this.method="next",this.next=s.finallyLoc,E):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),E},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),E}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:v(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=n),E}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())}