You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
2.5 MiB
17 lines
2.5 MiB
2 years ago
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Babel={})}(this,(function(e){"use strict";var t=Object.freeze({__proto__:null,get version(){return mM},get types(){return pu},get DEFAULT_EXTENSIONS(){return RM},get OptionManager(){return bM},get Plugin(){return vM},get File(){return oI},get buildExternalHelpers(){return _I},get resolvePlugin(){return KI},get resolvePreset(){return HI},get getEnv(){return XI},get tokTypes(){return jE},get traverse(){return xT},get template(){return Yj},get createConfigItem(){return ZB},get createConfigItemSync(){return $B},get createConfigItemAsync(){return QB},get loadPartialConfig(){return HB},get loadPartialConfigSync(){return zB},get loadPartialConfigAsync(){return qB},get loadOptions(){return XB},get loadOptionsSync(){return YB},get loadOptionsAsync(){return JB},get transform(){return aM},get transformSync(){return nM},get transformAsync(){return sM},get transformFile(){return iM},get transformFileSync(){return oM},get transformFileAsync(){return dM},get transformFromAst(){return lM},get transformFromAstSync(){return uM},get transformFromAstAsync(){return pM},get parse(){return fM},get parseSync(){return hM},get parseAsync(){return yM}});function r(){
|
||
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||
|
r=function(){return e};var e={},t=Object.prototype,a=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},s=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function c(e,t,r,a){var n=t&&t.prototype instanceof p?t:p,s=Object.create(n.prototype),i=new w(a||[]);return s._invoke=function(e,t,r){var a="suspendedStart";return function(n,s){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===n)throw s;return T()}for(r.method=n,r.arg=s;;){var i=r.delegate;if(i){var o=x(i,r);if(o){if(o===u)continue;return o}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===a)throw a="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a="executing";var d=l(e,t,r);if("normal"===d.type){if(a=r.done?"completed":"suspendedYield",d.arg===u)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(a="completed",r.method="throw",r.arg=d.arg)}}}(e,r,i),s}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function p(){}function g(){}function f(){}var h={};d(h,s,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(S([])));m&&m!==t&&a.call(m,s)&&(h=m);var R=f.prototype=p.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function v(e,t){function r(n,s,i,o){var d=l(e[n],e,s);if("throw"!==d.type){var c=d.arg,u=c.value;return u&&"object"==typeof u&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,i,o)}),(function(e){r("throw",e,i,o)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,o)}))}o(d.arg)}var n;this._invoke=function(e,a){function s(){return new t((function(t,n){r(e,a,t,n)}))}return n=n?n.then(s,s):s()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var a=l(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,u;var n=a.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(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 j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(a.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:T}}function T(){return{value:void 0,done:!0}}return g.prototype=f,d(R,"constructor",f),d(f,"constructor",g),g.displayName=d(f,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,d(e,o,"GeneratorFunction")),e.prototype=Object.create(R),e},e.awrap=function(e){return{__await:e}},b(v.prototype),d(v.prototype,i,(function(){return this})),e.AsyncIterator=v,e.async=function(t,r,a,n,s){void 0===s&&(s=Promise);var i=new v(c(t,r,a,n),s);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(R),d(R,o,"Generator"),d(R,s,(function(){return this})),d(R,"toString",(function(){return"[object Generator]"})),e.keys=funct
|
||
|
/*!
|
||
|
* The buffer module from node.js, for the browser.
|
||
|
*
|
||
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
|
* @license MIT
|
||
|
*/function kA(e,t){if(e===t)return 0;for(var r=e.length,a=t.length,n=0,s=Math.min(r,a);n<s;++n)if(e[n]!==t[n]){r=e[n],a=t[n];break}return r<a?-1:a<r?1:0}function CA(e){return er.Buffer&&"function"==typeof er.Buffer.isBuffer?er.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var IA=SA,_A=Object.prototype.hasOwnProperty,DA=Array.prototype.slice,OA="foo"===function(){}.name;function NA(e){return Object.prototype.toString.call(e)}function BA(e){return!CA(e)&&("function"==typeof er.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var LA=bA.exports=WA,MA=/\s*function\s+([^\(\s]*)\s*/;function FA(e){if(IA.isFunction(e)){if(OA)return e.name;var t=e.toString().match(MA);return t&&t[1]}}function UA(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function GA(e){if(OA||!IA.isFunction(e))return IA.inspect(e);var t=FA(e);return"[Function"+(t?": "+t:"")+"]"}function VA(e,t,r,a,n){throw new LA.AssertionError({message:r,actual:e,expected:t,operator:a,stackStartFunction:n})}function WA(e,t){e||VA(e,!0,t,"==",LA.ok)}function KA(e,t,r,a){if(e===t)return!0;if(CA(e)&&CA(t))return 0===kA(e,t);if(IA.isDate(e)&&IA.isDate(t))return e.getTime()===t.getTime();if(IA.isRegExp(e)&&IA.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(BA(e)&&BA(t)&&NA(e)===NA(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===kA(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(CA(e)!==CA(t))return!1;var n=(a=a||{actual:[],expected:[]}).actual.indexOf(e);return-1!==n&&n===a.expected.indexOf(t)||(a.actual.push(e),a.expected.push(t),function(e,t,r,a){if(null==e||null==t)return!1;if(IA.isPrimitive(e)||IA.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var n=HA(e),s=HA(t);if(n&&!s||!n&&s)return!1;if(n)return KA(e=DA.call(e),t=DA.call(t),r);var i,o,d=XA(e),c=XA(t);if(d.length!==c.length)return!1;for(d.sort(),c.sort(),o=d.length-1;o>=0;o--)if(d[o]!==c[o])return!1;for(o=d.length-1;o>=0;o--)if(!KA(e[i=d[o]],t[i],r,a))return!1;return!0}(e,t,r,a))}return r?e===t:e==t}function HA(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function zA(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function qA(e,t,r,a){var n;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(a=r,r=null),n=function(e){var t;try{e()}catch(e){t=e}return t}(t),a=(r&&r.name?" ("+r.name+").":".")+(a?" "+a:"."),e&&!n&&VA(n,r,"Missing expected exception"+a);var s="string"==typeof a,i=!e&&n&&!r;if((!e&&IA.isError(n)&&s&&zA(n,r)||i)&&VA(n,r,"Got unwanted exception"+a),e&&n&&r&&!zA(n,r)||!e&&n)throw n}LA.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return UA(GA(e.actual),128)+" "+e.operator+" "+UA(GA(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||VA;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var a=r.stack,n=FA(t),s=a.indexOf("\n"+n);if(s>=0){var i=a.indexOf("\n",s+1);a=a.substring(i+1)}this.stack=a}}},IA.inherits(LA.AssertionError,Error),LA.fail=VA,LA.ok=WA,LA.equal=function(e,t,r){e!=t&&VA(e,t,r,"==",LA.equal)},LA.notEqual=function(e,t,r){e==t&&VA(e,t,r,"!=",LA.notEqual)},LA.deepEqual=function(e,t,r){KA(e,t,!1)||VA(e,t,r,"deepEqual",LA.deepEqual)},LA.deepStrictEqual=function(e,t,r){KA(e,t,!0)||VA(e,t,r,"deepStrictEqual",LA.deepStrictEqual)},LA.notDeepEqual=function(e,t,r){KA(e,t,!1)&&VA(e,t,r,"notDeepEqual",LA.notDeepEqual)},LA.notDeepStrictEqual=function e(t,r,a){KA(t,r,!0)&&VA(t,r,a,"notDeepStrictEqual",e)},LA.strictEqual=function(e,t,
|
||
|
/*!
|
||
|
* The buffer module from node.js, for the browser.
|
||
|
*
|
||
|
* @author Feross Aboukhadijeh <https://feross.org>
|
||
|
* @license MIT
|
||
|
*/
|
||
|
(function(e){var t=lL,r=bL;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;var a=2147483647;function n(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=s.prototype,t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return i(e,t,r)}function i(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|u(e,t),a=n(r),i=a.write(e,t);i!==r&&(a=a.slice(0,i));return a}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var a;a=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return a.__proto__=s.prototype,a}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var a=e.valueOf&&e.valueOf();if(null!=a&&a!==e)return s.from(a,t,r);var i=function(e){if(s.isBuffer(e)){var t=0|l(e.length),r=n(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||U(e.length)?n(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return o(e),n(e<0?0:0|l(e))}function c(e){for(var t=e.length<0?0:0|l(e.length),r=n(t),a=0;a<t;a+=1)r[a]=255&e[a];return r}function l(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function u(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,a=arguments.length>2&&!0===arguments[2];if(!a&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(n)return a?-1:B(e).length;t=(""+t).toLowerCase(),n=!0}}function p(e,t,r){var a=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return j(this,t,r);case"ascii":return S(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return E(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,r);default:if(a)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function g(e,t,r){var a=e[t];e[t]=e[r],e[r]=a}function f(e,t,r,a,n){if(0===e.length)return-1;if("string"==typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),U(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return-1;r=e.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof t&&(t=s.from(t,a)),s.isBuffer(t))return 0===t.length?-1:h(e,t,r,a,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.i
|