mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 16:50:12 +01:00
462 lines
1.3 MiB
JavaScript
462 lines
1.3 MiB
JavaScript
|
|
"use strict";var L3=Object.create;var tu=Object.defineProperty;var j3=Object.getOwnPropertyDescriptor;var M3=Object.getOwnPropertyNames;var R3=Object.getPrototypeOf,q3=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),U3=(e,t)=>{for(var r in t)tu(e,r,{get:t[r],enumerable:!0})},oT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of M3(t))!q3.call(e,s)&&s!==r&&tu(e,s,{get:()=>t[s],enumerable:!(n=j3(t,s))||n.enumerable});return e};var ci=(e,t,r)=>(r=e!=null?L3(R3(e)):{},oT(t||!e||!e.__esModule?tu(r,"default",{value:e,enumerable:!0}):r,e)),V3=e=>oT(tu({},"__esModule",{value:!0}),e);var ru=x(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.default=$3;function $3(e,t){let r=Object.keys(t);for(let n of r)if(e[n]!==t[n])return!1;return!0}});var na=x(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.default=W3;var lT=new Set;function W3(e,t,r="",n=e){if(lT.has(n))return;lT.add(n);let{internal:s,trace:i}=K3(1,2);s||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
|
||
|
|
${i}`)}function K3(e,t){let{stackTraceLimit:r,prepareStackTrace:n}=Error,s;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){s=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=n,!s)return{internal:!1,trace:""};let i=s.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(i[1].getFileName()),trace:i.map(a=>` at ${a}`).join(`
|
||
|
|
`)}}});var Wt=x(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.isAccessor=uL;S.isAnyTypeAnnotation=Dk;S.isArgumentPlaceholder=r4;S.isArrayExpression=H3;S.isArrayPattern=WB;S.isArrayTypeAnnotation=wk;S.isArrowFunctionExpression=KB;S.isAssignmentExpression=G3;S.isAssignmentPattern=$B;S.isAwaitExpression=hk;S.isBigIntLiteral=yk;S.isBinary=N8;S.isBinaryExpression=X3;S.isBindExpression=n4;S.isBlock=k8;S.isBlockParent=B8;S.isBlockStatement=Q3;S.isBooleanLiteral=EB;S.isBooleanLiteralTypeAnnotation=_k;S.isBooleanTypeAnnotation=Ik;S.isBreakStatement=Z3;S.isCallExpression=eB;S.isCatchClause=tB;S.isClass=aL;S.isClassAccessorProperty=xk;S.isClassBody=HB;S.isClassDeclaration=XB;S.isClassExpression=GB;S.isClassImplements=Ok;S.isClassMethod=ak;S.isClassPrivateMethod=vk;S.isClassPrivateProperty=Sk;S.isClassProperty=Tk;S.isCompletionStatement=j8;S.isConditional=M8;S.isConditionalExpression=rB;S.isContinueStatement=nB;S.isDebuggerStatement=sB;S.isDecimalLiteral=u4;S.isDeclaration=G8;S.isDeclareClass=Bk;S.isDeclareExportAllDeclaration=Vk;S.isDeclareExportDeclaration=Uk;S.isDeclareFunction=kk;S.isDeclareInterface=Fk;S.isDeclareModule=Lk;S.isDeclareModuleExports=jk;S.isDeclareOpaqueType=Rk;S.isDeclareTypeAlias=Mk;S.isDeclareVariable=qk;S.isDeclaredPredicate=$k;S.isDecorator=s4;S.isDirective=J3;S.isDirectiveLiteral=z3;S.isDoExpression=i4;S.isDoWhileStatement=iB;S.isEmptyStatement=aB;S.isEmptyTypeAnnotation=eF;S.isEnumBody=yL;S.isEnumBooleanBody=wF;S.isEnumBooleanMember=OF;S.isEnumDeclaration=DF;S.isEnumDefaultedMember=FF;S.isEnumMember=gL;S.isEnumNumberBody=IF;S.isEnumNumberMember=BF;S.isEnumStringBody=_F;S.isEnumStringMember=kF;S.isEnumSymbolBody=NF;S.isExistsTypeAnnotation=Wk;S.isExportAllDeclaration=YB;S.isExportDeclaration=oL;S.isExportDefaultDeclaration=JB;S.isExportDefaultSpecifier=a4;S.isExportNamedDeclaration=zB;S.isExportNamespaceSpecifier=gk;S.isExportSpecifier=QB;S.isExpression=_8;S.isExpressionStatement=oB;S.isExpressionWrapper=U8;S.isFile=lB;S.isFlow=pL;S.isFlowBaseAnnotation=dL;S.isFlowDeclaration=hL;S.isFlowPredicate=mL;S.isFlowType=fL;S.isFor=V8;S.isForInStatement=uB;S.isForOfStatement=ZB;S.isForStatement=cB;S.isForXStatement=$8;S.isFunction=W8;S.isFunctionDeclaration=pB;S.isFunctionExpression=fB;S.isFunctionParameter=X8;S.isFunctionParent=K8;S.isFunctionTypeAnnotation=Kk;S.isFunctionTypeParam=Hk;S.isGenericTypeAnnotation=Gk;S.isIdentifier=dB;S.isIfStatement=hB;S.isImmutable=Z8;S.isImport=mk;S.isImportAttribute=Ck;S.isImportDeclaration=ek;S.isImportDefaultSpecifier=tk;S.isImportExpression=sk;S.isImportNamespaceSpecifier=rk;S.isImportOrExportDeclaration=uT;S.isImportSpecifier=nk;S.isIndexedAccessType=LF;S.isInferredPredicate=Xk;S.isInterfaceDeclaration=Jk;S.isInterfaceExtends=Yk;S.isInterfaceTypeAnnotation=zk;S.isInterpreterDirective=Y3;S.isIntersectionTypeAnnotation=Qk;S.isJSX=bL;S.isJSXAttribute=MF;S.isJSXClosingElement=RF;S.isJSXClosingFragment=QF;S.isJSXElement=qF;S.isJSXEmptyExpression=UF;S.isJSXExpressionContainer=VF;S.isJSXFragment=JF;S.isJSXIdentifier=WF;S.isJSXMemberExpression=KF;S.isJSXNamespacedName=HF;S.isJSXOpeningElement=GF;S.isJSXOpeningFragment=zF;S.isJSXSpreadAttribute=XF;S.isJSXSpreadChild=$F;S.isJSXText=YF;S.isLVal=J8;S.isLabeledStatement=mB;S.isLiteral=Q8;S.isLogicalExpression=xB;S.isLoop=R8;S.isMemberExpression=SB;S.isMetaProperty=ik;S.isMethod=tL;S.isMiscellaneous=EL;S.isMixedTypeAnnotation=Zk;S.isModuleDeclaration=wL;S.isModuleExpression=c4;S.isModuleSpecifier=lL;S.isNewExpression=vB;S.isNoop=ZF;S.isNullLiteral=bB;S.isNullLiteralTypeAnnotation=Nk;S.isNullableTypeAnnotation=tF;S.isNumberLiteral=PL;S.isNumberLiteralTypeAnnotation=rF;S.isNumberTypeAnnotation=nF;S.isNumericLiteral=gB;S.isObjectExpression=AB;S.isObjectMember=rL;S.isObjectMethod=CB;S.isObjectPattern=ok;S.isObjectProperty=DB;S.isObjectTypeAnnotation=sF;S.isObjectTypeCallProperty=aF;S.isObjectTypeIndexer=oF;S.isObjectTypeInternalSlot=iF;S.isObjectTypeProperty=lF;S.isObjectTypeSpreadProperty=uF;S.isOpaqueType=cF;S.isOptionalCallExpression=Ek;S.isOptionalIndexedAccessType=jF;S.isOptionalMemberExpression=bk;S.isParenthesizedExp
|
||
|
|
`,++r,m===13&&t.charCodeAt(r)===10&&++r,++s,p=n=r):i.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:n,curLine:s,containsInvalid:!!c}}function t6(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function r6(e,t,r,n,s,i){let a=!s;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:n}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
|
||
|
|
`);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=Ad(e,t,r,n,2,!1,a,i),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=AT(e,t,r,n,a,i),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);i.strictNumericEscape(t-1,r,n);default:if(l>=48&&l<=55){let u=t-1,p=/^[0-7]+/.exec(e.slice(u,t+2))[0],d=parseInt(p,8);d>255&&(p=p.slice(0,-1),d=parseInt(p,8)),t+=p.length-1;let m=e.charCodeAt(t);if(p!=="0"||m===56||m===57){if(s)return o(null);i.strictNumericEscape(u,r,n)}return o(String.fromCharCode(d))}return o(String.fromCharCode(l))}}function Ad(e,t,r,n,s,i,a,o){let l=t,u;return{n:u,pos:t}=PT(e,t,r,n,16,s,i,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,n):t=l-1),{code:u,pos:t}}function PT(e,t,r,n,s,i,a,o,l,u){let c=t,p=s===16?vT.hex:vT.decBinOct,d=s===16?iu.hex:s===10?iu.dec:s===8?iu.oct:iu.bin,m=!1,g=0;for(let f=0,b=i==null?1/0:i;f<b;++f){let T=e.charCodeAt(t),w;if(T===95&&o!=="bail"){let I=e.charCodeAt(t-1),N=e.charCodeAt(t+1);if(o){if(Number.isNaN(N)||!d(N)||p.has(I)||p.has(N)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,n)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if(T>=97?w=T-97+10:T>=65?w=T-65+10:ZL(T)?w=T-48:w=1/0,w>=s){if(w<=9&&u)return{n:null,pos:t};if(w<=9&&l.invalidDigit(t,r,n,s))w=0;else if(a)w=0,m=!0;else break}++t,g=g*s+w}return t===c||i!=null&&t-c!==i||m?{n:null,pos:t}:{n:g,pos:t}}function AT(e,t,r,n,s,i){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Ad(e,t,r,n,e.indexOf("}",t)-t,!0,s,i),++t,o!==null&&o>1114111)if(s)i.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:o,pos:t}=Ad(e,t,r,n,4,!1,s,i));return{code:o,pos:t}}});var oa=x(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.UPDATE_OPERATORS=He.UNARY_OPERATORS=He.STRING_UNARY_OPERATORS=He.STATEMENT_OR_BLOCK_KEYS=He.NUMBER_UNARY_OPERATORS=He.NUMBER_BINARY_OPERATORS=He.LOGICAL_OPERATORS=He.INHERIT_KEYS=He.FOR_INIT_KEYS=He.FLATTENABLE_KEYS=He.EQUALITY_BINARY_OPERATORS=He.COMPARISON_BINARY_OPERATORS=He.COMMENT_KEYS=He.BOOLEAN_UNARY_OPERATORS=He.BOOLEAN_NUMBER_BINARY_OPERATORS=He.BOOLEAN_BINARY_OPERATORS=He.BINARY_OPERATORS=He.ASSIGNMENT_OPERATORS=void 0;var Kxe=He.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],Hxe=He.FLATTENABLE_KEYS=["body","expressions"],Gxe=He.FOR_INIT_KEYS=["left","init"],Xxe=He.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],n6=He.LOGICAL_OPERATORS=["||","&&","??"],Yxe=He.UPDATE_OPERATORS=["++","--"],s6=He.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],i6=He.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],a6=He.COMPARISON_BINARY_OPERATORS=[...i6,"in","instanceof"],o6=He.BOOLEAN_BINARY_OPERATORS=[...a6,...s6],DT=He.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],Jxe=He.BINARY_OPERATORS=["+",...DT,...o6,"|>"],zxe=He.ASSIGNMENT_OPERATORS=["=","+=",...DT.map(e=>e+"="),...n6.map(e=>e+"=")],l6=He.BOOLEAN_UNARY_OPERATORS=["delete","!"],u6=He.NUMBER_UNARY_OPERATORS=["+","-","~"],c6=He.STRING_UNARY_OPERATORS=["typeof"],Qxe=He.UNARY_OPERATORS=["void","throw",...l6,...u6,...c6],Zxe=He.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};He.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),He.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var qn=x(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.allExpandedTypes=at.VISITOR_KEYS=at.NODE_PARENT_VALIDATIONS=at.NODE_FIELDS=at.FLIPPED_ALIAS_KEYS=at.DEPRECATED_KEYS=at.BUILDER_KEYS=at.ALIAS_KEYS=void 0;at.arrayOf=IT;at.arrayOfType=_T;at.assertEach=NT;at.assertNodeOrValueType=v6;at.assertNodeType=ou;at.assertOneOf=x6;at.assertOptionalChainStart=A6;at.assertShape=P6;at.assertValueType=Id;at.chain=OT;at.default=BT;at.defineAliasedType=w6;at.validate=wd;at.validateArrayOfType=T6;at.validateOptional=
|
||
|
|
${a.join(`
|
||
|
|
`)}`)}return r.shapeOf=e,r}function A6(){function e(t){var r;let n=t;for(;t;){let{type:s}=n;if(s==="OptionalCallExpression"){if(n.optional)return;n=n.callee;continue}if(s==="OptionalMemberExpression"){if(n.optional)return;n=n.object;continue}break}throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=n)==null?void 0:r.type}`)}return e}function OT(...e){function t(...r){for(let n of e)n(...r)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var C6=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),D6=new Set(["default","optional","deprecated","validate"]),Dd={};function w6(...e){return(t,r={})=>{let n=r.aliases;if(!n){var s;r.inherits&&(n=(s=Dd[r.inherits].aliases)==null?void 0:s.slice()),n!=null||(n=[]),r.aliases=n}let i=e.filter(a=>!n.includes(a));n.unshift(...i),BT(t,r)}}function BT(e,t={}){let r=t.inherits&&Dd[t.inherits]||{},n=t.fields;if(!n&&(n={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let u=r.fields[l],c=u.default;if(Array.isArray(c)?c.length>0:c&&typeof c=="object")throw new Error("field defaults can only be primitives or empty arrays currently");n[l]={default:Array.isArray(c)?[]:c,optional:u.optional,deprecated:u.deprecated,validate:u.validate}}}let s=t.visitor||r.visitor||[],i=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!C6.has(o))throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(m6[t.deprecatedAlias]=e);for(let o of s.concat(a))n[o]=n[o]||{};for(let o of Object.keys(n)){let l=n[o];l.default!==void 0&&!a.includes(o)&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=Id(au(l.default)));for(let u of Object.keys(l))if(!D6.has(u))throw new Error(`Unknown field key "${u}" on ${e}.${o}`)}p6[e]=t.visitor=s,h6[e]=t.builder=a,d6[e]=t.fields=n,f6[e]=t.aliases=i,i.forEach(o=>{Cd[o]=Cd[o]||[],Cd[o].push(e)}),t.validate&&(y6[e]=t.validate),Dd[e]=t}});var To=x(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.patternLikeCommon=vr.importAttributes=vr.functionTypeAnnotationCommon=vr.functionDeclarationCommon=vr.functionCommon=vr.classMethodOrPropertyCommon=vr.classMethodOrDeclareMethodCommon=void 0;var Nr=sa(),I6=aa(),kT=ia(),_6=CT(),la=oa(),D=qn(),oe=(0,D.defineAliasedType)("Standardized");oe("ArrayExpression",{fields:{elements:{validate:(0,D.arrayOf)((0,D.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});oe("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign((function(){let e=(0,D.assertOneOf)(...la.ASSIGNMENT_OPERATORS),t=(0,D.assertOneOf)("=");return function(r,n,s){((0,Nr.default)("Pattern",r.left)?t:e)(r,n,s)}})(),{oneOf:la.ASSIGNMENT_OPERATORS}):(0,D.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,D.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,D.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});oe("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,D.assertOneOf)(...la.BINARY_OPERATORS)},left:{validate:(function(){let e=(0,D.assertNodeType)("Expression"),t=(0,D.assertNodeType)("Expression","PrivateName");return Object.assign(function(n,s,i){(n.operator==="in"?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},right:{validate:(0,D.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});oe("InterpreterDirective",{builder:["valu
|
||
|
|
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});oe("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,D.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,D.assertNodeType)("Expression")}}});oe("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,D.assertNodeType)("Expression")}}});oe("Import",{aliases:["Expression"]});oe("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,D.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});oe("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,D.assertNodeType)("Identifier")}}});oe("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,D.assertNodeType)("Expression")},property:{validate:(function(){let e=(0,D.assertNodeType)("Identifier"),t=(0,D.assertNodeType)("Expression");return Object.assign(function(n,s,i){(n.computed?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","Identifier"]})})()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertValueType)("boolean"),(0,D.assertOptionalChainStart)()):(0,D.assertValueType)("boolean")}}});oe("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,D.assertNodeType)("Expression")},arguments:(0,D.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertValueType)("boolean"),(0,D.assertOptionalChainStart)()):(0,D.assertValueType)("boolean")},typeArguments:{validate:(0,D.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,D.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});oe("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},uu(),{value:{validate:(0,D.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,D.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,D.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,D.assertValueType)("boolean"),optional:!0},declare:{validate:(0,D.assertValueType)("boolean"),optional:!0},variance:{validate:(0,D.assertNodeType)("Variance"),optional:!0}})});oe("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},uu(),{key:{validate:(0,D.chain)((function(){let e=(0,D.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,D.assertNodeType)("Expression");return function(r,n,s){(r.computed?t:e)(r,n,s)}})(),(0,D.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,D.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,D.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,D.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,D.assertValueType)("boolean"),optional:!0},declare:{validate:(0,D.assertValueType)("boolean"),optional:!0},variance:{validate:(0,D.assertNodeType)("V
|
||
|
|
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Oe("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){let e=(0,Y.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,Y.assertOneOf)("-"),r=(0,Y.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function n(s,i,a){(0,F6.default)("UnaryExpression",a)?(t(a,"operator",a.operator),e(a,"argument",a.argument)):r(s,i,a)}return n.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],n})()}}});Oe("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,Y.validateType)("TSEntityName"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterInstantiation")}});Oe("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,Y.validateOptional)($r),id:(0,Y.validateType)("Identifier"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,Y.validateOptional)((0,Y.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,Y.validateType)("TSInterfaceBody")}});Oe("TSInterfaceBody",{visitor:["body"],fields:{body:(0,Y.validateArrayOfType)("TSTypeElement")}});Oe("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,Y.validateOptional)($r),id:(0,Y.validateType)("Identifier"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,Y.validateType)("TSType")}});Oe("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,Y.validateType)("Expression"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterInstantiation")}});var GT={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,Y.validateType)("Expression"),typeAnnotation:(0,Y.validateType)("TSType")}};Oe("TSAsExpression",GT);Oe("TSSatisfiesExpression",GT);Oe("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,Y.validateType)("TSType"),expression:(0,Y.validateType)("Expression")}});Oe("TSEnumBody",{visitor:["members"],fields:{members:(0,Y.validateArrayOfType)("TSEnumMember")}});Oe("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,Y.validateOptional)($r),const:(0,Y.validateOptional)($r),id:(0,Y.validateType)("Identifier"),members:(0,Y.validateArrayOfType)("TSEnumMember"),initializer:(0,Y.validateOptionalType)("Expression"),body:(0,Y.validateOptionalType)("TSEnumBody")}});Oe("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,Y.validateType)("Identifier","StringLiteral"),initializer:(0,Y.validateOptionalType)("Expression")}});Oe("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,Y.assertOneOf)("global","module","namespace")},declare:(0,Y.validateOptional)($r)},{global:(0,Y.validateOptional)($r)},{id:(0,Y.validateType)("Identifier","StringLiteral"),body:(0,Y.validateType)("TSModuleBlock","TSModuleDeclaration")})});Oe("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,Y.validateArrayOfType)("Statement")}});Oe("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,Y.validateType)("StringLiteral"),qualifier:(0,Y.validateOptionalType)("TSEntityName"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,Y.assertNodeType)("ObjectExpression"),optional:!0}}});Oe("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,Y.validate)($r)},{id:(0,Y.validateType)("Identifier"),moduleReference:(0,Y.validateType)("TSEntity
|
||
|
|
${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var ywe=ln.smart=hm(e=>e.length>1?e:e[0]),gwe=ln.statements=hm(e=>e),bwe=ln.statement=hm(e=>{if(e.length===0)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}),mG=ln.expression={code:e=>`(
|
||
|
|
${e}
|
||
|
|
)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(mG.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return hG(t),t.expression}},Ewe=ln.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}});var Au=x(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.merge=bG;wo.normalizeReplacements=TG;wo.validate=EG;var yG=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function gG(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function bG(e,t){let{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:n=e.placeholderPattern,preserveComments:s=e.preserveComments,syntacticPlaceholders:i=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:n,preserveComments:s,syntacticPlaceholders:i}}function EG(e){if(e!=null&&typeof e!="object")throw new Error("Unknown template options.");let t=e||{},{placeholderWhitelist:r,placeholderPattern:n,preserveComments:s,syntacticPlaceholders:i}=t,a=gG(t,yG);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(n!=null&&!(n instanceof RegExp)&&n!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(s!=null&&typeof s!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(i!=null&&typeof i!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(i===!0&&(r!=null||n!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:n==null?void 0:n,preserveComments:s==null?void 0:s,syntacticPlaceholders:i==null?void 0:i}}function TG(e){if(Array.isArray(e))return e.reduce((t,r,n)=>(t["$"+n]=r,t),{});if(typeof e=="object"||e==null)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}});var Ro=x(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});function xG(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Wn=class{constructor(t,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=n}},ga=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function Fr(e,t){let{line:r,column:n,index:s}=e;return new Wn(r,n+t,s+t)}var pS="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",SG={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:pS},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:pS}},fS={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},wu=e=>e.type==="UpdateExpression"?fS.UpdateExpression[`${e.prefix}`]:fS[e.type],vG={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSin
|
||
|
|
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
|
||
|
|
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${wu(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${wu(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${wu(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifi
|
||
|
|
`:`\r
|
||
|
|
`):s=String.fromCharCode(n),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(r){let n="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(O.UnterminatedString,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);if(i===r)break;i===38?(n+=this.input.slice(s,this.state.pos),n+=this.jsxReadEntity(),s=this.state.pos):ma(i)?(n+=this.input.slice(s,this.state.pos),n+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}n+=this.input.slice(s,this.state.pos++),this.finishToken(134,n)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let n=10;this.codePointAtPos(this.state.pos)===120&&(n=16,++this.state.pos);let s=this.readInt(n,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let n=0,s=!1;for(;n++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){let i=this.input.slice(r,this.state.pos),a=lX[i];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,n=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(ha(r)||r===45);this.finishToken(141,this.input.slice(n,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();return this.match(141)?r.name=this.state.value:Hm(this.state.type)?r.name=Ms(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,n=this.jsxParseIdentifier();if(!this.eat(14))return n;let s=this.startNodeAt(r);return s.namespace=n,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,n=this.jsxParseNamespacedName();if(n.type==="JSXNamespacedName")return n;for(;this.eat(16);){let s=this.startNodeAt(r);s.object=n,s.property=this.jsxParseIdentifier(),n=this.finishNode(s,"JSXMemberExpression")}return n}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(dt.brace),this.next(),r=this.jsxParseExpressionContainer(r,dt.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(gi.AttributeIsEmpty,r),r;case 143:case 134:return this.parseExprAtom();default:throw this.raise(gi.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(dt.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,n){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();r.expression=s}return this.setContext(n),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(dt.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(dt.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let n=this.startNodeAt(r);return this.eat(144)?this.finishNode(n,"JSXOpeningFragment"):(n.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(n))}jsxParseOpeningElementAfterName(r){let n=[];for(;!this.match(56)&&!this.match(144);)n.push(this.jsxParseAttribute());return r.attributes=n,r.selfClosing=this.eat(56),this.expect(144),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let n=this.startNodeAt(r);return this.eat(144)?this.finishNode(n,"JSXClosingFragment"):(n.name=this.jsxParseElementName(),this.expect(144),this.finishNode(n,"JSXClosingElement"))}jsxParseElementAt(r){let n=this.startNodeAt(r),s=[],i=this.jsxParseOpeningElementAt(r),a=null;if(!i.selfClosing){e:for(;;)switch(this.state.type){case
|
||
|
|
`,++r,m===13&&t.charCodeAt(r)===10&&++r,++s,p=n=r):i.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:n,curLine:s,containsInvalid:!!c}}function hX(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function mX(e,t,r,n,s,i){let a=!s;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:n}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
|
||
|
|
`);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=Im(e,t,r,n,2,!1,a,i),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=FS(e,t,r,n,a,i),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);i.strictNumericEscape(t-1,r,n);default:if(l>=48&&l<=55){let u=t-1,p=/^[0-7]+/.exec(e.slice(u,t+2))[0],d=parseInt(p,8);d>255&&(p=p.slice(0,-1),d=parseInt(p,8)),t+=p.length-1;let m=e.charCodeAt(t);if(p!=="0"||m===56||m===57){if(s)return o(null);i.strictNumericEscape(u,r,n)}return o(String.fromCharCode(d))}return o(String.fromCharCode(l))}}function Im(e,t,r,n,s,i,a,o){let l=t,u;return{n:u,pos:t}=kS(e,t,r,n,16,s,i,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,n):t=l-1),{code:u,pos:t}}function kS(e,t,r,n,s,i,a,o,l,u){let c=t,p=s===16?bS.hex:bS.decBinOct,d=s===16?Du.hex:s===10?Du.dec:s===8?Du.oct:Du.bin,m=!1,g=0;for(let f=0,b=i==null?1/0:i;f<b;++f){let T=e.charCodeAt(t),w;if(T===95&&o!=="bail"){let I=e.charCodeAt(t-1),N=e.charCodeAt(t+1);if(o){if(Number.isNaN(N)||!d(N)||p.has(I)||p.has(N)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,n)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if(T>=97?w=T-97+10:T>=65?w=T-65+10:dX(T)?w=T-48:w=1/0,w>=s){if(w<=9&&u)return{n:null,pos:t};if(w<=9&&l.invalidDigit(t,r,n,s))w=0;else if(a)w=0,m=!0;else break}++t,g=g*s+w}return t===c||i!=null&&t-c!==i||m?{n:null,pos:t}:{n:g,pos:t}}function FS(e,t,r,n,s,i){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Im(e,t,r,n,e.indexOf("}",t)-t,!0,s,i),++t,o!==null&&o>1114111)if(s)i.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:o,pos:t}=Im(e,t,r,n,4,!1,s,i));return{code:o,pos:t}}function No(e,t,r){return new Wn(r,e-t,e)}var yX=new Set([103,109,115,105,121,117,100,118]),Vn=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new ga(t.startLoc,t.endLoc)}},_m=class extends Dm{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(n,s,i,a)=>this.optionFlags&2048?(this.raise(O.InvalidDigit,No(n,s,i),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(O.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(O.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(O.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(O.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(n,s,i)=>{this.recordStrictModeErrors(O.StrictNumericEscape,No(n,s,i))},unterminated:(n,s,i)=>{throw this.raise(O.UnterminatedString,No(n-1,s,i))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(O.StrictNumericEscape),unterminated:(n,s,i)=>{throw this.raise(O.UnterminatedTemplate,No(n,s,i))}}),this.state=new wm,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new Vn(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;ret
|
||
|
|
`),cooked:i===null?null:i.slice(1,u)},o.tail=l,this.next();let p=this.finishNode(o,"TemplateElement");return this.resetEndLocation(p,Fr(this.state.lastTokEndLoc,u)),p}parseTemplate(t){let r=this.startNode(),n=this.parseTemplateElement(t),s=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(n=this.parseTemplateElement(t));return r.expressions=i,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,n,s){n&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(l);break}let c;r?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(s),a=this.checkProto(c,n,a,s)),n&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(O.InvalidRecordProperty,c),c.shorthand&&this.addExtra(c,"shorthand",!0),l.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=i;let u="ObjectExpression";return r?u="ObjectPattern":n&&(u="RecordExpression"),this.finishNode(l,u)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(O.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let n=this.startNode(),s=!1,i=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let l=this.state.containsEsc;if(this.parsePropertyName(n,t),!o&&!l&&this.maybeAsyncOrAccessorProp(n)){let{key:u}=n,c=u.name;c==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(u),o=this.eat(55),this.parsePropertyName(n)),(c==="get"||c==="set")&&(i=!0,this.resetPreviousNodeTrailingComments(u),n.kind=c,this.match(55)&&(o=!0,this.raise(O.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,s,!1,i,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let n=this.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t);s.length!==n&&this.raise(t.kind==="get"?O.BadGetterArity:O.BadSetterArity,t),t.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(O.BadSetterRestParameter,t)}parseObjectMethod(t,r,n,s,i){if(i){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(n||r||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,n,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,n,s){if(t.shorthand=!1,this.eat(14))return t.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),n)t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key));else if(this.match(29)){let i=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=i):this.raise(O.InvalidCoverInitializedName,i),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,r,n,s,i,a,o){let l=this.parseObjectMethod(t,n,s,i,a)||this.parseObjectProperty(t,r,i,o);return l||this.unexpected(),l}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.ke
|
||
|
|
`):r+=s;return r}var GS=!1,XS=/\r\n|[\n\r\u2028\u2029]/;function XX(e,t,r){let n=Object.assign({column:0,line:-1},e.start),s=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:a=3}=r||{},o=n.line,l=n.column,u=s.line,c=s.column,p=Math.max(o-(i+1),0),d=Math.min(t.length,u+a);o===-1&&(p=0),u===-1&&(d=t.length);let m=u-o,g={};if(m)for(let f=0;f<=m;f++){let b=f+o;if(!l)g[b]=!0;else if(f===0){let T=t[b-1].length;g[b]=[l,T-l+1]}else if(f===m)g[b]=[0,c];else{let T=t[b-f].length;g[b]=[0,T]}}else l===c?l?g[o]=[l,0]:g[o]=!0:g[o]=[l,c-l];return{start:p,end:d,markerLines:g}}function ZS(e,t,r={}){let n=r.forceColor||VX()&&r.highlightCode,s=JS(n),i=e.split(XS),{start:a,end:o,markerLines:l}=XX(t,i,r),u=t.start&&typeof t.start.column=="number",c=String(o).length,d=(n?QS(e):e).split(XS,o).slice(a,o).map((m,g)=>{let f=a+1+g,T=` ${` ${f}`.slice(-c)} |`,w=l[f],I=!l[f+1];if(w){let N="";if(Array.isArray(w)){let L=m.slice(0,Math.max(w[0]-1,0)).replace(/[^\t]/g," "),W=w[1]||1;N=[`
|
||
|
|
`,s.gutter(T.replace(/\d/g," "))," ",L,s.marker("^").repeat(W)].join(""),I&&r.message&&(N+=" "+s.message(r.message))}return[s.marker(">"),s.gutter(T),m.length>0?` ${m}`:"",N].join("")}else return` ${s.gutter(T)}${m.length>0?` ${m}`:""}`}).join(`
|
||
|
|
`);return r.message&&!u&&(d=`${" ".repeat(c+1)}${r.message}
|
||
|
|
${d}`),n?s.reset(d):d}function YX(e,t,r,n={}){if(!GS){GS=!0;let i="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(i,"DeprecationWarning");else{let a=new Error(i);a.name="DeprecationWarning",console.warn(new Error(i))}}return r=Math.max(r,0),ZS(e,{start:{column:r,line:t}},n)}qo.codeFrameColumns=ZS;qo.default=YX;qo.highlight=QS});var Qm=x(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.default=uY;var JX=Fe(),zX=Ro(),QX=Ta(),{isCallExpression:ZX,isExpressionStatement:eY,isFunction:tY,isIdentifier:rY,isJSXIdentifier:nY,isNewExpression:sY,isPlaceholder:Ru,isStatement:iY,isStringLiteral:ev,removePropertiesDeep:aY,traverse:oY}=JX,lY=/^[_$A-Z0-9]+$/;function uY(e,t,r){let{placeholderWhitelist:n,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:a}=r,o=fY(t,r.parser,a);aY(o,{preserveComments:i}),e.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:n,placeholderPattern:s,syntacticPlaceholders:a};return oY(o,cY,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function cY(e,t,r){var n;let s,i=r.syntactic.placeholders.length>0;if(Ru(e)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");s=e.name.name,i=!0}else{if(i||r.syntacticPlaceholders)return;if(rY(e)||nY(e))s=e.name;else if(ev(e))s=e.value;else return}if(i&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!i&&(r.placeholderPattern===!1||!(r.placeholderPattern||lY).test(s))&&!((n=r.placeholderWhitelist)!=null&&n.has(s)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],l;ev(e)||Ru(e,{expectedNode:"StringLiteral"})?l="string":sY(a)&&o==="arguments"||ZX(a)&&o==="arguments"||tY(a)&&o==="params"?l="param":eY(a)&&!Ru(e)?(l="statement",t=t.slice(0,-1)):iY(e)&&Ru(e)?l="statement":l="other";let{placeholders:u,placeholderNames:c}=i?r.syntactic:r.legacy;u.push({name:s,type:l,resolve:p=>pY(p,t),isDuplicate:c.has(s)}),c.add(s)}function pY(e,t){let r=e;for(let i=0;i<t.length-1;i++){let{key:a,index:o}=t[i];o===void 0?r=r[a]:r=r[a][o]}let{key:n,index:s}=t[t.length-1];return{parent:r,key:n,index:s}}function fY(e,t,r){let n=(t.plugins||[]).slice();r!==!1&&n.push("placeholders"),t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:n});try{return(0,zX.parse)(e,t)}catch(s){let i=s.loc;throw i&&(s.message+=`
|
||
|
|
`+(0,QX.codeFrameColumns)(e,{start:i}),s.code="BABEL_TEMPLATE_PARSE_ERROR"),s}}});var ry=x(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.default=bY;var dY=Fe(),{blockStatement:hY,cloneNode:ey,emptyStatement:mY,expressionStatement:Zm,identifier:qu,isStatement:tv,isStringLiteral:yY,stringLiteral:gY,validate:rv}=dY;function bY(e,t){let r=ey(e.ast);return t&&(e.placeholders.forEach(n=>{if(!hasOwnProperty.call(t,n.name)){let s=n.name;throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a
|
||
|
|
placeholder you may want to consider passing one of the following options to @babel/template:
|
||
|
|
- { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])}
|
||
|
|
- { placeholderPattern: /^${s}$/ }`)}}),Object.keys(t).forEach(n=>{if(!e.placeholderNames.has(n))throw new Error(`Unknown substitution "${n}" given`)})),e.placeholders.slice().reverse().forEach(n=>{try{var s;EY(n,r,(s=t&&t[n.name])!=null?s:null)}catch(i){throw i.message=`@babel/template placeholder "${n.name}": ${i.message}`,i}}),r}function EY(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(o=>ey(o)):typeof r=="object"&&(r=ey(r)));let{parent:n,key:s,index:i}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=gY(r)),!r||!yY(r))throw new Error("Expected string substitution")}else if(e.type==="statement")i===void 0?r?Array.isArray(r)?r=hY(r):typeof r=="string"?r=Zm(qu(r)):tv(r)||(r=Zm(r)):r=mY():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=qu(r)),tv(r)||(r=Zm(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=qu(r)),i===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=qu(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function a(o,l,u){let c=o[l];o[l]=u,(c.type==="Identifier"||c.type==="Placeholder")&&(c.typeAnnotation&&(u.typeAnnotation=c.typeAnnotation),c.optional&&(u.optional=c.optional),c.decorators&&(u.decorators=c.decorators))}if(i===void 0)rv(n,s,r),a(n,s,r);else{let o=n[s].slice();e.type==="statement"||e.type==="param"?r==null?o.splice(i,1):Array.isArray(r)?o.splice(i,1,...r):a(o,i,r):a(o,i,r),rv(n,s,o),n[s]=o}}});var nv=x(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.default=vY;var TY=Au(),xY=Qm(),SY=ry();function vY(e,t,r){t=e.code(t);let n;return s=>{let i=(0,TY.normalizeReplacements)(s);return n||(n=(0,xY.default)(e,t,r)),e.unwrap((0,SY.default)(n,i))}}});var sv=x(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});sy.default=DY;var PY=Au(),AY=Qm(),CY=ry();function DY(e,t,r){let{metadata:n,names:s}=wY(e,t,r);return i=>{let a={};return i.forEach((o,l)=>{a[s[l]]=o}),o=>{let l=(0,PY.normalizeReplacements)(o);return l&&Object.keys(l).forEach(u=>{if(hasOwnProperty.call(a,u))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,CY.default)(n,l?Object.assign(l,a):a))}}}function wY(e,t,r){let n="BABEL_TPL$",s=t.join("");do n="$$"+n;while(s.includes(n));let{names:i,code:a}=IY(t,n);return{metadata:(0,AY.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(i.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:i}}function IY(e,t){let r=[],n=e[0];for(let s=1;s<e.length;s++){let i=`${t}${s-1}`;r.push(i),n+=i+e[s]}return{names:r,code:n}}});var cv=x(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.default=uv;var Kn=Au(),iv=nv(),av=sv(),ov=(0,Kn.validate)({placeholderPattern:!1});function uv(e,t){let r=new WeakMap,n=new WeakMap,s=t||(0,Kn.validate)(null);return Object.assign((i,...a)=>{if(typeof i=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return lv((0,iv.default)(e,i,(0,Kn.merge)(s,(0,Kn.validate)(a[0]))))}else if(Array.isArray(i)){let o=r.get(i);return o||(o=(0,av.default)(e,i,s),r.set(i,o)),lv(o(a))}else if(typeof i=="object"&&i){if(a.length>0)throw new Error("Unexpected extra params.");return uv(e,(0,Kn.merge)(s,(0,Kn.validate)(i)))}throw new Error(`Unexpected template param ${typeof i}`)},{ast:(i,...a)=>{if(typeof i=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return(0,iv.default)(e,i,(0,Kn.merge)((0,Kn.merge)(s,(0,Kn.validate)(a[0])),ov))()}else if(Array.isArray(i)){let o=n.get(i);return o||(o=(0,av.default)(e,i,(0,Kn.merge)(s,ov)),n.set(i,o)),o(a)()}throw new Error(`Unexpected template param ${typeof i}`)}})}function lv(e){let t="";try{throw new Error}catch(r){r.stack&&(t=r.stack.split(`
|
||
|
|
`).slice(3).join(`
|
||
|
|
`))}return r=>{try{return e(r)}catch(n){throw n.stack+=`
|
||
|
|
=============
|
||
|
|
${t}`,n}}}});var $o=x(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.statements=Hr.statement=Hr.smart=Hr.program=Hr.expression=Hr.default=void 0;var Uo=cS(),Vo=cv(),ay=Hr.smart=(0,Vo.default)(Uo.smart),_Y=Hr.statement=(0,Vo.default)(Uo.statement),NY=Hr.statements=(0,Vo.default)(Uo.statements),OY=Hr.expression=(0,Vo.default)(Uo.expression),BY=Hr.program=(0,Vo.default)(Uo.program),jwe=Hr.default=Object.assign(ay.bind(void 0),{smart:ay,statement:_Y,statements:NY,expression:OY,program:BY,ast:ay.ast})});var pv=x(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.default=void 0;var kY=$o();function X(e,t,r){return Object.freeze({minVersion:e,ast:()=>kY.default.program.ast(t,{preserveComments:!0}),metadata:r})}var FY=Uu.default={__proto__:null,OverloadYield:X("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{},internal:!1}),applyDecoratedDescriptor:X("7.0.0-beta.0",'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach((function(i){a[i]=n[i]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce((function(r,n){return n(i,e,r)||r}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}',{globals:["Object"],locals:{_applyDecoratedDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_applyDecoratedDescriptor",dependencies:{},internal:!1}),applyDecs2311:X("7.24.0",'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a<t.length;a++)i=t[a].apply(o,r?[i]:[]);return r?i:o}}function b(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function applyDec(e,t,n,r,o,i,u,s,f,l,p){function d(e){if(!p(e))throw new TypeError("Attempted to access private element on non-instance")}var h=[].concat(t[0]),v=t[3],w=!u,D=1===o,S=3===o,j=4===o,E=2===o;function I(t,n,r){return function(o,i){return n&&(i=o,o=e),r&&r(o),P[t].call(o,i)}}if(!w){var P={},k=[],F=S?"get":j||D?"set":"value";if(f?(l||D?P={get:setFunctionName((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:P[F]=v,l||setFunctionName(P[F],r,E?"":F)):l||(P=Object.getOwnPropertyDescriptor(e,r)),!l&&!f){if((c=y[+s][r])&&7!=(c^o))throw Error("Decorating two elements with the same name ("+P[F].name+") is not supported yet");y[+s][r]=o<3?1:o}}for(var N=e,O=h.length-1;O>=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?function(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.get,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(nu
|
||
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
||
|
|
var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return define(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,c=0,u=e,G.n=r,a}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(define(t={},n,(function(){return this})),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,define(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(u,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",define(GeneratorFunctionPrototype,o,"GeneratorFunction"),define(u),define(u,o,"Generator"),define(u,n,(function(){return this})),define(u,"toString",(function(){return"[object Generator]"})),(_regenerator=function(){return{w:i,m:f}})()}`,{globals:["Symbol","Object","TypeError"],locals:{_regenerator:["body.0.id","body.0.body.body.9.argument.expressions.9.callee.left"]},exportBindingAssignments:["body.0.body.body.9.argument.expressions.9.callee"],exportName:"_regenerator",dependencies:{regeneratorDefine:["body.0.body.body.1.body.body.1.argument.expressions.0.callee","body.0.body.body.7.declarations.0.init.alternate.expressions.0.callee","body.0.body.body.8.body.body.0.argument.expressions.0.alternate.expressions.1.callee","body.0.body.body.9.argument.expressions.1.callee","body.0.body.body.9.argument.expressions.2.callee","body.0.body.body.9.argument.expressions.4.callee","body.0.body.body.9.argument.expressions.5.callee","body.0.body.body.9.argument.expressions.6.callee","body.0.body.body.9.argument.expressions.7.callee","body.0.body.body.9.argument.expressions.8.callee"]},internal:!1}),regeneratorAsync:X("7.27.0","function _regeneratorAsync(n,e,r,t,o){var a=asyncGen(n,e,r,t,o);return a.next().then((function(n){return n.done?n.value:a.next()}))}",{globals:[],locals:{_regeneratorAsync:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorAsync",dependencies:{regeneratorAsyncGen:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),regeneratorAsyncGen:X("7.27.0","function _regeneratorAsyncGen(r,e,t,o,n){return new regeneratorAsyncIterator(regenerator().w(r,e,t,o),n||Promise)}",{globals:["Promise"],locals:{_regeneratorAsyncGen:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorAsyncGen",dependencies:{regenerator:["body.0.body.body.0.argument.arguments.0.callee.object.callee"],regeneratorAsyncIterator:["body.0.body.body.0.argument.callee"]},internal:!1}),regeneratorAsyncIterator:X("7.27.0",'function AsyncIterator(t,e){function n(r,o,i,f){try{var c=t[r](o),u=c.value;return u instanceof OverloadYield?e.resolve(u.v).then((function(t){n("next",t,i,f)}),(function(t){n("throw",t,i,f)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){
|
||
|
|
`).join(`
|
||
|
|
`+i),e.push(s+"m+"+Xu.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=oJ()+t+" "+e[0]}function oJ(){return lr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function lJ(...e){return process.stderr.write(Gu.formatWithOptions(lr.inspectOpts,...e)+`
|
||
|
|
`)}function uJ(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function cJ(){return process.env.DEBUG}function pJ(e){e.inspectOpts={};let t=Object.keys(lr.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=lr.inspectOpts[t[r]]}Xu.exports=py()(lr);var{formatters:vv}=Xu.exports;vv.o=function(e){return this.inspectOpts.colors=this.useColors,Gu.inspect(e,this.inspectOpts).split(`
|
||
|
|
`).map(t=>t.trim()).join(" ")};vv.O=function(e){return this.inspectOpts.colors=this.useColors,Gu.inspect(e,this.inspectOpts)}});var Ti=x((fIe,dy)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?dy.exports=gv():dy.exports=Pv()});var my=x(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.isBindingIdentifier=kJ;rr.isBlockScoped=RJ;rr.isExpression=LJ;rr.isFlow=WJ;rr.isForAwaitStatement=GJ;rr.isGenerated=VJ;rr.isPure=$J;rr.isReferenced=MJ;rr.isReferencedIdentifier=OJ;rr.isReferencedMemberExpression=BJ;rr.isRestProperty=KJ;rr.isScope=jJ;rr.isSpreadProperty=HJ;rr.isStatement=FJ;rr.isUser=UJ;rr.isVar=qJ;var fJ=Fe(),{isBinding:dJ,isBlockScoped:hJ,isExportDeclaration:mJ,isExpression:yJ,isFlow:gJ,isForStatement:bJ,isForXStatement:EJ,isIdentifier:Av,isImportDeclaration:TJ,isImportSpecifier:xJ,isJSXIdentifier:SJ,isJSXMemberExpression:vJ,isMemberExpression:PJ,isRestElement:Cv,isReferenced:hy,isScope:AJ,isStatement:CJ,isVar:DJ,isVariableDeclaration:wJ,react:IJ,isForOfStatement:_J}=fJ,{isCompatTag:NJ}=IJ;function OJ(e){let{node:t,parent:r}=this;if(!Av(t,e)&&!vJ(r,e))if(SJ(t,e)){if(NJ(t.name))return!1}else return!1;return hy(t,r,this.parentPath.parent)}function BJ(){let{node:e,parent:t}=this;return PJ(e)&&hy(e,t)}function kJ(){let{node:e,parent:t}=this,r=this.parentPath.parent;return Av(e)&&dJ(e,t,r)}function FJ(){let{node:e,parent:t}=this;return CJ(e)?!(wJ(e)&&(EJ(t,{left:e})||bJ(t,{init:e}))):!1}function LJ(){return this.isIdentifier()?this.isReferencedIdentifier():yJ(this.node)}function jJ(){return AJ(this.node,this.parent)}function MJ(){return hy(this.node,this.parent)}function RJ(){return hJ(this.node)}function qJ(){return DJ(this.node)}function UJ(){return this.node&&!!this.node.loc}function VJ(){return!this.isUser()}function $J(e){return this.scope.isPure(this.node,e)}function WJ(){let{node:e}=this;return gJ(e)?!0:TJ(e)?e.importKind==="type"||e.importKind==="typeof":mJ(e)?e.exportKind==="type":xJ(e)?e.importKind==="type"||e.importKind==="typeof":!1}function KJ(){var e;return Cv(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function HJ(){var e;return Cv(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function GJ(){return _J(this.node,{await:!0})}rr.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},rr.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var Yu=x(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.environmentVisitor=tz;Si.explode=jv;Si.isExplodedVisitor=Lv;Si.merge=Rv;Si.verify=Mv;var Fv=cy(),XJ=my(),YJ=Fe(),Dv=Pn(),{DEPRECATED_KEYS:wv,DEPRECATED_ALIASES:Iv,FLIPPED_ALIAS_KEYS:_v,TYPES:JJ,__internal__deprecationWarning:Nv}=YJ;function zJ(e){return e in Fv}function Lv(e){return e==null?void 0:e._exploded}function jv(e){if(Lv(e))return e;e._exploded=!0;for(let t of Object.keys(e)){if(xi(t))continue;let r=t.split("|");if(r.length===1)continue;let n=e[t];delete e[t];for(let s of r)e[s]=n}Mv(e),delete e.__esModule,QJ(e),kv(e);for(let t of Object.keys(e)){if(xi(t)||!zJ(t))continue;let r=e[t];for(let s of Object.keys(r))r[s]=ZJ(t,r[s]);delete e[t];let n=Fv[t];if(n!==null)for(let s of n)e[s]?Wo(e[s],r):e[s]=r;else Wo(e,r)}for(let t of Object.keys(e)){if(xi(t))continue;let r=_v[t];if(t in wv){let s=wv[t];Nv(t,s,"Visitor "),r=[s]}else if(t in Iv){let s=Iv[t];Nv(t,s,"Visitor "),r=_v[s]}if(!r)continue;let n=e[t];delete e[t];for(let s of r){let i=e[s];i?Wo(i,n):e[s]=Object.assign({},n)}}for(let t of Object.keys(e))xi(t)||kv(e[t]);return e}function Mv(e){if(!e._verified){if(typeof e=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if((t==="enter"||t==="exit")&&Ov(t,e[t]),xi(t))continue;if(!JJ.includes(t))throw new Error(`You gave us a visitor for the node t
|
||
|
|
`),d=0;for(p!==0&&this._mark(c,a,o,l,u);p!==-1;)i.line++,i.column=0,d=p+1,d<s&&c!==void 0&&this._mark(++c,0,null,null,u),p=t.indexOf(`
|
||
|
|
`,d);i.column+=s-d}_mark(t,r,n,s,i){var a;(a=this._map)==null||a.mark(this._position,t,r,n,s,i)}removeTrailingNewline(){let t=this._queueCursor;t!==0&&this._queue[t-1].char===10&&this._queueCursor--}removeLastSemicolon(){let t=this._queueCursor;t!==0&&this._queue[t-1].char===59&&this._queueCursor--}getLastChar(){let t=this._queueCursor;return t!==0?this._queue[t-1].char:this._last}getNewlineCount(){let t=this._queueCursor,r=0;if(t===0)return this._last===10?1:0;for(let n=t-1;n>=0&&this._queue[n].char===10;n--)r++;return r===t&&this._last===10?r+1:r}endsWithCharAndNewline(){let t=this._queue,r=this._queueCursor;if(r!==0)return t[r-1].char!==10?void 0:r>1?t[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let n=t.identifierName,s=this._sourcePosition;n&&(this._canMarkIdName=!1,s.identifierName=n),r(),n&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",t)}source(t,r){this._map&&this._normalizePosition(t,r,0)}sourceWithOffset(t,r,n){this._map&&this._normalizePosition(t,r,n)}_normalizePosition(t,r,n){let s=r[t],i=this._sourcePosition;s&&(i.line=s.line,i.column=Math.max(s.column+n,0),i.filename=r.filename)}getCurrentColumn(){let t=this._queue,r=this._queueCursor,n=-1,s=0;for(let i=0;i<r;i++){let a=t[i];a.char===10&&(n=s),s+=a.repeat}return n===-1?this._position.column+s:s-1-n}getCurrentLine(){let t=0,r=this._queue;for(let n=0;n<this._queueCursor;n++)r[n].char===10&&t++;return this._position.line+t}};sc.default=Fy});var hP=x(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.nodes=void 0;var eQ=Fe(),{FLIPPED_ALIAS_KEYS:tQ,isArrayExpression:rQ,isAssignmentExpression:pP,isBinary:fP,isBlockStatement:nQ,isCallExpression:dP,isFunction:Ho,isIdentifier:ic,isLiteral:sQ,isMemberExpression:Ly,isObjectExpression:iQ,isOptionalCallExpression:aQ,isOptionalMemberExpression:oQ,isStringLiteral:lQ}=eQ;function Pa(e,t){return e&&(Ly(e)||oQ(e)?(Pa(e.object,t),e.computed&&Pa(e.property,t)):fP(e)||pP(e)?(Pa(e.left,t),Pa(e.right,t)):dP(e)||aQ(e)?(t.hasCall=!0,Pa(e.callee,t)):Ho(e)?t.hasFunction=!0:ic(e)&&(t.hasHelper=t.hasHelper||e.callee&&ns(e.callee))),t}function cP(e){return Pa(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function ns(e){return e?Ly(e)?ns(e.object)||ns(e.property):ic(e)?e.name==="require"||e.name.charCodeAt(0)===95:dP(e)?ns(e.callee):fP(e)||pP(e)?ic(e.left)&&ns(e.left)||ns(e.right):!1:!1}function uQ(e){return sQ(e)||iQ(e)||rQ(e)||ic(e)||Ly(e)}var Ci=ac.nodes={AssignmentExpression(e){let t=cP(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase(e,t){return(e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){if(Ho(e.left)||Ho(e.right))return 2},Literal(e){if(lQ(e)&&e.value==="use strict")return 2},CallExpression(e){if(Ho(e.callee)||ns(e))return 3},OptionalCallExpression(e){if(Ho(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){let r=e.declarations[t],n=ns(r.id)&&!uQ(r.init);if(!n&&r.init){let s=cP(r.init);n=ns(r.init)&&s.hasCall||s.hasFunction}if(n)return 3}},IfStatement(e){if(nQ(e.consequent))return 3}};Ci.ObjectProperty=Ci.ObjectTypeProperty=Ci.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1};Ci.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!((r=t.properties)!=null&&r.length))return 1};Ci.ObjectTypeIndexer=function(e,t){var r,n;if(t.indexers[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length))return 1};Ci.ObjectTypeInternalSlot=function(e,t){var r,n,s;if(t.internalSlots[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length)&&!((s=t.indexers)!=null&&s.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,t]){[e].concat(tQ[e]||[]).forEach(function(r){let n=t?3:0;Ci[r]=()=>n})})});var SP=x(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0
|
||
|
|
`,m,g=!0,f=t.numbers=="binary",b=t.numbers=="octal",T=t.numbers=="decimal",w=t.numbers=="hexadecimal";if(s&&e&&dte(e.toJSON)&&(e=e.toJSON()),!pte(e)){if(hte(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+qs(Array.from(e),t)+")");if(mte(e))return e.size==0?"new Set()":"new Set("+qs(Array.from(e),t)+")";if(ute(e))return e.length==0?"Buffer.from([])":"Buffer.from("+qs(Array.from(e),t)+")";if(lte(e))return m=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),p||r(),ote(e,N=>{g=!1,p&&(t.__inline2__=!1),m.push((a||p?"":l)+qs(N,t))}),g?"[]":p?"["+m.join(", ")+"]":"["+d+m.join(","+d)+d+(a?"":u)+"]";if(fte(e)||$y(e)){if(s)return JSON.stringify(Number(e));let N;if(T)N=String(e);else if(w){let L=e.toString(16);o||(L=L.toUpperCase()),N="0x"+L}else f?N="0b"+e.toString(2):b&&(N="0o"+e.toString(8));return $y(e)?N+"n":N}else return $y(e)?s?JSON.stringify(Number(e)):e+"n":cte(e)?(m=[],t.wrap=!0,r(),qP(e,(N,L)=>{g=!1,m.push((a?"":l)+qs(N,t)+":"+(a?"":" ")+qs(L,t))}),g?"{}":"{"+d+m.join(","+d)+d+(a?"":u)+"}"):s?JSON.stringify(e)||"null":String(e)}let I=t.escapeEverything?Tte:xte;return m=e.replace(I,(N,L,W,U,H,pe)=>{if(L){if(t.minimal)return L;let ce=L.charCodeAt(0),qe=L.charCodeAt(1);if(t.es6){let ze=(ce-55296)*1024+qe-56320+65536;return"\\u{"+Go(ze,o)+"}"}return pc(Go(ce,o))+pc(Go(qe,o))}if(W)return pc(Go(W.charCodeAt(0),o));if(N=="\0"&&!s&&!bte.test(pe.charAt(H+1)))return"\\0";if(U)return U==i||t.escapeEverything?"\\"+U:U;if(gte.test(N))return yte[N];if(t.minimal&&!Ete.test(N))return N;let Ee=Go(N.charCodeAt(0),o);return s||Ee.length>2?pc(Ee):"\\x"+("00"+Ee).slice(-2)}),i=="`"&&(m=m.replace(/\$\{/g,"\\${")),t.isScriptContext&&(m=m.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--")),t.wrap&&(m=i+m+i),m};qs.version="3.0.2";UP.exports=qs});var Ky=x(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.ArgumentPlaceholder=Cte;Nt.ArrayPattern=Nt.ArrayExpression=Nte;Nt.BigIntLiteral=Rte;Nt.BooleanLiteral=Fte;Nt.Identifier=Ate;Nt.NullLiteral=Lte;Nt.NumericLiteral=jte;Nt.ObjectPattern=Nt.ObjectExpression=wte;Nt.ObjectMethod=Ite;Nt.ObjectProperty=_te;Nt.PipelineBareFunction=Vte;Nt.PipelinePrimaryTopicReference=$te;Nt.PipelineTopicExpression=Ute;Nt.RecordExpression=Ote;Nt.RegExpLiteral=kte;Nt.SpreadElement=Nt.RestElement=Dte;Nt.StringLiteral=Mte;Nt.TopicReference=qte;Nt.TupleExpression=Bte;Nt.VoidPattern=Wte;Nt._getRawIdentifier=Pte;var Ste=Fe(),KP=VP(),{isAssignmentPattern:vte,isIdentifier:Wy}=Ste,$P=null,fc="";function Pte(e){if(e===$P)return fc;$P=e;let{name:t}=e,r=this.tokenMap.find(e,n=>n.value===t);return r?(fc=this._originalCode.slice(r.start,r.end),fc):fc=e.name}function Ate(e){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name),this.word(this.tokenMap?this._getRawIdentifier(e):e.name)}function Cte(){this.tokenChar(63)}function Dte(e){this.token("..."),this.print(e.argument)}function wte(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),r()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}function Ite(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)}function _te(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(vte(e.value)&&Wy(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&Wy(e.key)&&Wy(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)}function Nte(e){let t=e.elements,r=t.length;this.tokenChar(91);let n=this.enterDelimited();for(let s=0;s<t.length;s++){let i=t[s];i?(s>0&&this.space(),this.print(i),(s<r-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,s)):this.token(",",!1,s)}n(),this.tokenChar(93)}function Ote(e){let t=e.properties,r,n;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",n="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw
|
||
|
|
`)}if(this.format.concise)o=o.replace(/\n(?!$)/g,`
|
||
|
|
`);else{let c=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(c+=this._getIndent()),o=o.replace(/\n(?!$)/g,`
|
||
|
|
${" ".repeat(c)}`)}}}else n?o=`/*${t.value}*/`:o=`//${t.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){let{_printSemicolonBeforeNextToken:u,_printSemicolonBeforeNextNode:c}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",t.loc),this._append(o,s),this._printSemicolonBeforeNextNode=c,this._printSemicolonBeforeNextToken=u}else this.source("start",t.loc),this._append(o,s);!s&&!n&&this.newline(1,!0),i&&r!==3&&this.newline(1)}_printComments(t,r,n,s,i=0,a){let o=n.loc,l=r.length,u=!!o,c=u?o.start.line:0,p=u?o.end.line:0,d=0,m=0,g=this._noLineTerminator?function(){}:this.newline.bind(this);for(let f=0;f<l;f++){let b=r[f],T=this._shouldPrintComment(b,a);if(T===2){u=!1;break}if(u&&b.loc&&T===1){let w=b.loc.start.line,I=b.loc.end.line;if(t===0){let N=0;f===0?this._buf.hasContent()&&(b.type==="CommentLine"||w!==I)&&(N=m=1):N=w-d,d=I,g(N),this._printComment(b,1),f+1===l&&(g(Math.max(c-d,m)),d=c)}else if(t===1){let N=w-(f===0?c:d);d=I,g(N),this._printComment(b,1),f+1===l&&(g(Math.min(1,p-d)),d=p)}else{let N=w-(f===0?p-i:d);d=I,g(N),this._printComment(b,1)}}else{if(u=!1,T!==1)continue;if(l===1){let w=b.loc?b.loc.start.line===b.loc.end.line:!iA.test(b.value),I=w&&!Zse(n)&&!eie(s)&&!tie(s)&&!rie(n);t===0?this._printComment(b,I&&n.type!=="ObjectExpression"||w&&Qse(s,{body:n})?1:0):I&&t===2?this._printComment(b,1):this._printComment(b,0)}else t===1&&!(n.type==="ObjectExpression"&&n.properties.length>1)&&n.type!=="ClassBody"&&n.type!=="TSInterfaceBody"?this._printComment(b,f===0?2:f===l-1?3:0):this._printComment(b,0)}}t===2&&u&&d&&(this._lastCommentLine=d)}};Object.assign(Jo.prototype,Yse);(0,Jse.addDeprecatedGenerators)(Jo);var YIe=gc.default=Jo;function oie(e,t){this.token(",",!1,e),t||this.space()}});var bc=x(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.default=void 0;Ca.generate=cA;var oA=lP(),lA=aA();function uA(e,t,r){if(t.experimental_preserveFormat){if(typeof e!="string")throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&t.compact!=="auto")throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.")}let n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};{var s;n.decoratorsBeforeExport=t.decoratorsBeforeExport,n.jsescOption.json=t.jsonCompatibleStrings,n.recordAndTupleSyntaxType=(s=t.recordAndTupleSyntaxType)!=null?s:"hash"}n.minified?(n.compact=!0,n.shouldPrintComment=n.shouldPrintComment||(()=>n.comments)):n.shouldPrintComment=n.shouldPrintComment||(l=>n.comments||l.includes("@license")||l.includes("@preserve")),n.compact==="auto"&&(n.compact=typeof e=="string"&&e.length>5e5,n.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(n.compact||n.preserveFormat)&&(n.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:i,auxiliaryCommentAfter:a,shouldPrintComment:o}=n;return i&&!o(i)&&(n.auxiliaryCommentBefore=void 0),a&&!o(a)&&(n.auxilia
|
||
|
|
`+(0,Eoe.codeFrameColumns)(e,{start:{line:s.line,column:s.column+1}}),n.code="BABEL_REPLACE_SOURCE_ERROR"),n}let r=t.program.body[0].expression;return S0.default.removeProperties(r),this.replaceWith(r)}function Koe(e){if(wa.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof Toe.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!joe(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof t=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&QA(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=woe(t),r="expression"),this.isNodeType("Expression")&&Moe(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let n=this.node;return n&&(Boe(t,n),qoe(n)),ZA.call(this,t),this.type=t.type,wa.setScope.call(this),this.requeue(),[r?this.get(r):this]}function ZA(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?YA(this.parent,this.key,[e]):YA(this.parent,this.key,e),this.debug(`Replace with ${e==null?void 0:e.type}`),(t=(0,JA.getCachedPaths)(this))==null||t.set(e,this).delete(this.node),this.node=this.container[this.key]=e}function Hoe(e){wa.resync.call(this);let t=[],r=Cc(e,t);if(r){for(let d of t)this.scope.push({id:d});return this.replaceWith(r)[0].get("expressions")}let n=this.getFunctionParent(),s=n==null?void 0:n.node.async,i=n==null?void 0:n.node.generator,a=voe([],Aoe(e));this.replaceWith(Coe(a,[]));let o=this.get("callee");o.get("body").scope.hoistVariables(d=>this.scope.push({id:d}));let l=o.getCompletionRecords();for(let d of l){if(!d.isExpressionStatement())continue;let m=d.findParent(g=>g.isLoop());if(m){let g=m.getData("expressionReplacementReturnUid");g?g=_oe(g.name):(g=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",XA(P0(g))),m.setData("expressionReplacementReturnUid",g)),d.get("expression").replaceWith(zA("=",P0(g),d.node.expression))}else d.replaceWith(XA(d.node.expression))}o.arrowFunctionToExpression();let u=o,c=s&&S0.default.hasType(this.get("callee.body").node,"AwaitExpression",HA),p=i&&S0.default.hasType(this.get("callee.body").node,"YieldExpression",HA);return c&&(u.set("async",!0),p||this.replaceWith(Poe(this.node))),p&&(u.set("generator",!0),this.replaceWith(Voe(this.node,!0))),u.get("body.body")}function Cc(e,t){let r=[],n=!0;for(let s of e)if(GA(s)||(n=!1),QA(s))r.push(s);else if(Foe(s))r.push(s.expression);else if(Roe(s)){if(s.kind!=="var")return;for(let i of s.declarations){let a=Ioe(i);for(let o of Object.keys(a))t.push(P0(a[o]));i.init&&r.push(zA("=",i.id,i.init))}n=!0}else if(Loe(s)){let i=s.consequent?Cc([s.consequent],t):x0(),a=s.alternate?Cc([s.alternate],t):x0();if(!i||!a)return;r.push(Doe(s.test,i,a))}else if(koe(s)){let i=Cc(s.body,t);if(!i)return;r.push(i)}else if(GA(s))e.indexOf(s)===0&&(n=!0);else return;return n&&r.push(x0()),r.length===1?r[0]:Uoe(r)}function Goe(e){if(wa.resync.call(this),Array.isArray(e))if(Array.isArray(this.container)){e=v0._verifyNodeList.call(this,e);let t=v0._containerInsertAfter.call(this,e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var nC=x(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.evaluate=tle;Dc.evaluateTruthy=Zoe;var Xoe=["Number","String","Math"],Yoe=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],Joe=["random"];function eC(e){return Xoe.includes(e)}function zoe(e){return Yoe.includes(e)}funct
|
||
|
|
(function (${o}) {
|
||
|
|
function ${n}(${l}) {
|
||
|
|
return ${Ni(o)}.apply(this, arguments);
|
||
|
|
}
|
||
|
|
|
||
|
|
${Ni(n)}.toString = function () {
|
||
|
|
return ${Ni(o)}.toString();
|
||
|
|
}
|
||
|
|
|
||
|
|
return ${Ni(n)};
|
||
|
|
})(${lC(this.node)})
|
||
|
|
`;return this.replaceWith(u)[0].get("arguments.0")}function Wle(e){let t=e.params.findIndex(r=>xle(r)||Sle(r));return t===-1?e.params.length:t}});var gC=x(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt._guessExecutionStatusRelativeTo=pue;Kt._resolve=yC;Kt.canHaveVariableDeclarationOrExpression=nue;Kt.canSwapBetweenExpressionAndStatement=sue;Kt.getSource=lue;Kt.isCompletionRecord=iue;Kt.isConstantExpression=mue;Kt.isInStrictMode=yue;Kt.isNodeType=rue;Kt.isStatementOrBlock=aue;Kt.isStatic=tue;Kt.matchesPattern=eue;Kt.referencesImport=oue;Kt.resolve=hue;Kt.willIMaybeExecuteBefore=uue;var Kle=Fe(),{STATEMENT_OR_BLOCK_KEYS:Hle,VISITOR_KEYS:Gle,isBlockStatement:mC,isExpression:Xle,isIdentifier:Yle,isLiteral:Jle,isStringLiteral:zle,isType:Qle,matchesPattern:Zle}=Kle;function eue(e,t){return Zle(this.node,e,t)}Kt.has=function(t){var r;let n=(r=this.node)==null?void 0:r[t];return n&&Array.isArray(n)?!!n.length:!!n};function tue(){return this.scope.isStatic(this.node)}Kt.is=Kt.has,Kt.isnt=function(t){return!this.has(t)},Kt.equals=function(t,r){return this.node[t]===r};function rue(e){return Qle(this.type,e)}function nue(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function sue(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?mC(e):this.isBlockStatement()?Xle(e):!1}function iue(e){let t=this,r=!0;do{let{type:n,container:s}=t;if(!r&&(t.isFunction()||n==="StaticBlock"))return!!e;if(r=!1,Array.isArray(s)&&t.key!==s.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function aue(){return this.parentPath.isLabeledStatement()||mC(this.container)?!1:Hle.includes(this.key)}function oue(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?zle(this.node.property,{value:t}):this.node.property.name===t)){let i=this.get("object");return i.isReferencedIdentifier()&&i.referencesImport(e,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return!1;let n=r.path,s=n.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===e){if(!t)return!0}else return!1;return!!(n.isImportDefaultSpecifier()&&t==="default"||n.isImportNamespaceSpecifier()&&t==="*"||n.isImportSpecifier()&&Yle(n.node.imported,{name:t}))}function lue(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function uue(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function fC(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function cue(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return!1}}function dC(e,t){for(let r=0;r<t;r++){let n=e[r];if(cue(n.parent.type,n.parentKey))return!0}return!1}var hC=Symbol();function pue(e){return I0(this,e,new Map)}function I0(e,t,r){let n={this:fC(e),target:fC(t)};if(n.target.node!==n.this.node)return due(e,n.target,r);let s={target:t.getAncestry(),this:e.getAncestry()};if(s.target.includes(e))return"after";if(s.this.includes(t))return"before";let i,a={target:0,this:0};for(;!i&&a.this<s.this.length;){let c=s.this[a.this];a.target=s.target.indexOf(c),a.target>=0?i=c:a.this++}if(!i)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(dC(s.this,a.this-1)||dC(s.target,a.target-1))return"unknown";let o={this:s.this[a.this-1],target:s.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.t
|
||
|
|
(function() {
|
||
|
|
throw new Error('"' + '${e}' + '" is read-only.');
|
||
|
|
})()
|
||
|
|
`,jpe={ReferencedIdentifier(e){let{seen:t,buildImportReference:r,scope:n,imported:s,requeueInParent:i}=this;if(t.has(e.node))return;t.add(e.node);let a=e.node.name,o=s.get(a);if(o){if(kpe(e))throw e.buildCodeFrameError(`Cannot transform the imported binding "${a}" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`);let l=e.scope.getBinding(a);if(n.getBinding(a)!==l)return;let c=r(o,e.node);if(c.loc=e.node.loc,(e.parentPath.isCallExpression({callee:e.node})||e.parentPath.isOptionalCallExpression({callee:e.node})||e.parentPath.isTaggedTemplateExpression({tag:e.node}))&&ke.types.isMemberExpression(c))e.replaceWith(ke.types.sequenceExpression([ke.types.numericLiteral(0),c]));else if(e.isJSXIdentifier()&&ke.types.isMemberExpression(c)){let{object:p,property:d}=c;e.replaceWith(ke.types.jsxMemberExpression(ke.types.jsxIdentifier(p.name),ke.types.jsxIdentifier(d.name)))}else e.replaceWith(c);i(e),e.skip()}},UpdateExpression(e){let{scope:t,seen:r,imported:n,exported:s,requeueInParent:i,buildImportReference:a}=this;if(r.has(e.node))return;r.add(e.node);let o=e.get("argument");if(o.isMemberExpression())return;let l=e.node;if(o.isIdentifier()){let u=o.node.name;if(t.getBinding(u)!==e.scope.getBinding(u))return;let c=s.get(u),p=n.get(u);if((c==null?void 0:c.length)>0||p)if(p)e.replaceWith(ke.types.assignmentExpression(l.operator[0]+"=",a(p,o.node),Uc(u)));else if(l.prefix)e.replaceWith(Fi(this.metadata,c,ke.types.cloneNode(l),e.scope));else{let d=t.generateDeclaredUidIdentifier(u);e.replaceWith(ke.types.sequenceExpression([ke.types.assignmentExpression("=",ke.types.cloneNode(d),ke.types.cloneNode(l)),Fi(this.metadata,c,ke.types.identifier(u),e.scope),ke.types.cloneNode(d)]))}}i(e),e.skip()},AssignmentExpression:{exit(e){let{scope:t,seen:r,imported:n,exported:s,requeueInParent:i,buildImportReference:a}=this;if(r.has(e.node))return;r.add(e.node);let o=e.get("left");if(!o.isMemberExpression())if(o.isIdentifier()){let l=o.node.name;if(t.getBinding(l)!==e.scope.getBinding(l))return;let u=s.get(l),c=n.get(l);if((u==null?void 0:u.length)>0||c){let p=e.node;c&&(p.left=a(c,o.node),p.right=ke.types.sequenceExpression([p.right,Uc(l)]));let{operator:d}=p,m;d==="="?m=p:d==="&&="||d==="||="||d==="??="?m=ke.types.assignmentExpression("=",p.left,ke.types.logicalExpression(d.slice(0,-1),ke.types.cloneNode(p.left),p.right)):m=ke.types.assignmentExpression("=",p.left,ke.types.binaryExpression(d.slice(0,-1),ke.types.cloneNode(p.left),p.right)),e.replaceWith(Fi(this.metadata,u,m,e.scope)),i(e),e.skip()}}else{let l=o.getOuterBindingIdentifiers(),u=Object.keys(l).filter(d=>t.getBinding(d)===e.scope.getBinding(d)),c=u.find(d=>n.has(d));c&&(e.node.right=ke.types.sequenceExpression([e.node.right,Uc(c)]));let p=[];if(u.forEach(d=>{let m=s.get(d)||[];m.length>0&&p.push(Fi(this.metadata,m,ke.types.identifier(d),e.scope))}),p.length>0){let d=ke.types.sequenceExpression(p);e.parentPath.isExpressionStatement()&&(d=ke.types.expressionStatement(d),d._blockHoist=e.parentPath.node._blockHoist);let m=e.insertAfter(d)[0];i(m)}}}},ForXStatement(e){let{scope:t,node:r}=e,{left:n}=r,{exported:s,imported:i,scope:a}=this;if(!ke.types.isVariableDeclaration(n)){let o=!1,l,u=e.get("body").scope;for(let d of Object.keys(ke.types.getOuterBindingIdentifiers(n)))a.getBinding(d)===t.getBinding(d)&&(s.has(d)&&(o=!0,u.hasOwnBinding(d)&&u.rename(d)),i.has(d)&&!l&&(l=d));if(!o&&!l)return;e.ensureBlock();let c=e.get("body"),p=t.generateUidIdentifierBasedOnNode(n);e.get("left").replaceWith(ke.types.variableDeclaration("let",[ke.types.variableDeclarator(ke.types.cloneNode(p))])),t.registerDeclaration(e.get("left")),o&&c.unshiftContainer("body",ke.types.expressionStatement(ke.types.assignmentExpression("=",n,p))),l&&c.unshiftContainer("body",ke.types.expressionStatement(Uc(l)))}}}});var rg=x(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.default=Vpe;ja.hasExports=Rpe;ja.isSideEffectImport=qpe;ja.validateImportInteropOption=i2;var s2=require("path"),Mpe=ia();function Rpe(e){return e.hasExpor
|
||
|
|
Promise.resolve().then(() => ${n(s)})
|
||
|
|
`:n(s);let i=yr.types.isTemplateLiteral(s)?yr.types.identifier("specifier"):yr.types.templateLiteral([yr.types.templateElement({raw:""}),yr.types.templateElement({raw:""})],[yr.types.identifier("specifier")]);return t?yr.template.expression.ast`
|
||
|
|
(specifier =>
|
||
|
|
new Promise(r => r(${i}))
|
||
|
|
.then(s => ${n(yr.types.identifier("s"))})
|
||
|
|
)(${s})
|
||
|
|
`:r?yr.template.expression.ast`
|
||
|
|
(specifier =>
|
||
|
|
new Promise(r => r(${n(i)}))
|
||
|
|
)(${s})
|
||
|
|
`:yr.template.expression.ast`
|
||
|
|
(specifier => ${n(i)})(${s})
|
||
|
|
`}});var l2=x(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.default=sg;{let e=sg;Kc.default=sg=function(r,n){var s,i,a,o;return e(r,{moduleId:(s=n.moduleId)!=null?s:r.moduleId,moduleIds:(i=n.moduleIds)!=null?i:r.moduleIds,getModuleId:(a=n.getModuleId)!=null?a:r.getModuleId,moduleRoot:(o=n.moduleRoot)!=null?o:r.moduleRoot})}}function sg(e,t){let{filename:r,filenameRelative:n=r,sourceRoot:s=t.moduleRoot}=e,{moduleId:i,moduleIds:a=!!i,getModuleId:o,moduleRoot:l=s}=t;if(!a)return null;if(i!=null&&!o)return i;let u=l!=null?l+"/":"";if(n){let c=s!=null?new RegExp("^"+s+"/?"):"";u+=n.replace(c,"").replace(/\.\w*$/,"")}return u=u.replace(/\\/g,"/"),o&&o(u)||u}});var cl=x(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Object.defineProperty(Qr,"buildDynamicImport",{enumerable:!0,get:function(){return efe.buildDynamicImport}});Qr.buildNamespaceInitStatements=ife;Qr.ensureStatementsHoisted=nfe;Object.defineProperty(Qr,"getModuleName",{enumerable:!0,get:function(){return tfe.default}});Object.defineProperty(Qr,"hasExports",{enumerable:!0,get:function(){return ul.hasExports}});Object.defineProperty(Qr,"isModule",{enumerable:!0,get:function(){return u2.isModule}});Object.defineProperty(Qr,"isSideEffectImport",{enumerable:!0,get:function(){return ul.isSideEffectImport}});Qr.rewriteModuleStatementsAndPrepareHeader=rfe;Object.defineProperty(Qr,"rewriteThis",{enumerable:!0,get:function(){return c2.default}});Qr.wrapInterop=sfe;var Qpe=require("assert"),nt=vt(),u2=Z0(),c2=r2(),Zpe=n2(),ul=rg(),lg=o2(),efe=ng(),tfe=l2();Qr.getDynamicImportSource=ng().getDynamicImportSource;function rfe(e,{exportName:t,strict:r,allowTopLevelThis:n,strictMode:s,noInterop:i,importInterop:a=i?"none":"babel",lazy:o,getWrapperPayload:l=lg.toGetWrapperPayload(o!=null?o:!1),wrapReference:u=lg.wrapReference,esNamespaceOnly:c,filename:p,constantReexports:d=arguments[1].loose,enumerableModuleMeta:m=arguments[1].loose,noIncompleteNsImportDetection:g}){(0,ul.validateImportInteropOption)(a),Qpe((0,u2.isModule)(e),"Cannot process module statements in a script"),e.node.sourceType="script";let f=(0,ul.default)(e,t,{importInterop:a,initializeReexports:d,getWrapperPayload:l,esNamespaceOnly:c,filename:p});n||(0,c2.default)(e),(0,Zpe.default)(e,f,u),s!==!1&&(e.node.directives.some(I=>I.value.value==="use strict")||e.unshiftContainer("directives",nt.types.directive(nt.types.directiveLiteral("use strict"))));let b=[];(0,ul.hasExports)(f)&&!r&&b.push(afe(f,m));let T=lfe(e,f);return T&&(f.exportNameListName=T.name,b.push(T.statement)),b.push(...ufe(e,f,u,d,g)),{meta:f,headers:b}}function nfe(e){e.forEach(t=>{t._blockHoist=3})}function sfe(e,t,r){if(r==="none")return null;if(r==="node-namespace")return nt.types.callExpression(e.hub.addHelper("interopRequireWildcard"),[t,nt.types.booleanLiteral(!0)]);if(r==="node-default")return null;let n;if(r==="default")n="interopRequireDefault";else if(r==="namespace")n="interopRequireWildcard";else throw new Error(`Unknown interop: ${r}`);return nt.types.callExpression(e.hub.addHelper(n),[t])}function ife(e,t,r=!1,n=lg.wrapReference){var s;let i=[],a=nt.types.identifier(t.name);for(let l of t.importsNamespace)l!==t.name&&i.push(nt.template.statement`var NAME = SOURCE;`({NAME:l,SOURCE:nt.types.cloneNode(a)}));let o=(s=n(a,t.wrap))!=null?s:a;r&&i.push(...p2(e,t,!0,n));for(let l of t.reexportNamespace)i.push((nt.types.isIdentifier(o)?nt.template.statement`EXPORTS.NAME = NAMESPACE;`:nt.template.statement`
|
||
|
|
Object.defineProperty(EXPORTS, "NAME", {
|
||
|
|
enumerable: true,
|
||
|
|
get: function() {
|
||
|
|
return NAMESPACE;
|
||
|
|
}
|
||
|
|
});
|
||
|
|
`)({EXPORTS:e.exportName,NAME:l,NAMESPACE:nt.types.cloneNode(o)}));if(t.reexportAll){let l=ofe(e,nt.types.cloneNode(o),r);l.loc=t.reexportAll.loc,i.push(l)}return i}var ig={constant:({exports:e,exportName:t,namespaceImport:r})=>nt.template.statement.ast`
|
||
|
|
${e}.${t} = ${r};
|
||
|
|
`,constantComputed:({exports:e,exportName:t,namespaceImport:r})=>nt.template.statement.ast`
|
||
|
|
${e}["${t}"] = ${r};
|
||
|
|
`,spec:({exports:e,exportName:t,namespaceImport:r})=>nt.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, "${t}", {
|
||
|
|
enumerable: true,
|
||
|
|
get: function() {
|
||
|
|
return ${r};
|
||
|
|
},
|
||
|
|
});
|
||
|
|
`};function p2(e,t,r,n){var s;let i=nt.types.identifier(t.name);i=(s=n(i,t.wrap))!=null?s:i;let{stringSpecifiers:a}=e;return Array.from(t.reexports,([o,l])=>{let u=nt.types.cloneNode(i);l==="default"&&t.interop==="node-default"||(a.has(l)?u=nt.types.memberExpression(u,nt.types.stringLiteral(l),!0):u=nt.types.memberExpression(u,nt.types.identifier(l)));let c={exports:e.exportName,exportName:o,namespaceImport:u};return r||nt.types.isIdentifier(u)?a.has(o)?ig.constantComputed(c):ig.constant(c):ig.spec(c)})}function afe(e,t=!1){return(t?nt.template.statement`
|
||
|
|
EXPORTS.__esModule = true;
|
||
|
|
`:nt.template.statement`
|
||
|
|
Object.defineProperty(EXPORTS, "__esModule", {
|
||
|
|
value: true,
|
||
|
|
});
|
||
|
|
`)({EXPORTS:e.exportName})}function ofe(e,t,r){return(r?nt.template.statement`
|
||
|
|
Object.keys(NAMESPACE).forEach(function(key) {
|
||
|
|
if (key === "default" || key === "__esModule") return;
|
||
|
|
VERIFY_NAME_LIST;
|
||
|
|
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
|
||
|
|
|
||
|
|
EXPORTS[key] = NAMESPACE[key];
|
||
|
|
});
|
||
|
|
`:nt.template.statement`
|
||
|
|
Object.keys(NAMESPACE).forEach(function(key) {
|
||
|
|
if (key === "default" || key === "__esModule") return;
|
||
|
|
VERIFY_NAME_LIST;
|
||
|
|
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
|
||
|
|
|
||
|
|
Object.defineProperty(EXPORTS, key, {
|
||
|
|
enumerable: true,
|
||
|
|
get: function() {
|
||
|
|
return NAMESPACE[key];
|
||
|
|
},
|
||
|
|
});
|
||
|
|
});
|
||
|
|
`)({NAMESPACE:t,EXPORTS:e.exportName,VERIFY_NAME_LIST:e.exportNameListName?(0,nt.template)`
|
||
|
|
if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;
|
||
|
|
`({EXPORTS_LIST:e.exportNameListName}):null})}function lfe(e,t){let r=Object.create(null);for(let i of t.local.values())for(let a of i.names)r[a]=!0;let n=!1;for(let i of t.source.values()){for(let a of i.reexports.keys())r[a]=!0;for(let a of i.reexportNamespace)r[a]=!0;n=n||!!i.reexportAll}if(!n||Object.keys(r).length===0)return null;let s=e.scope.generateUidIdentifier("exportNames");return delete r.default,{name:s.name,statement:nt.types.variableDeclaration("var",[nt.types.variableDeclarator(s,nt.types.valueToNode(r))])}}function ufe(e,t,r,n=!1,s=!1){let i=[];for(let[o,l]of t.local)if(l.kind!=="import"){if(l.kind==="hoisted")i.push([l.names[0],og(t,l.names,nt.types.identifier(o))]);else if(!s)for(let u of l.names)i.push([u,null])}for(let o of t.source.values()){if(!n){let l=p2(t,o,!1,r),u=[...o.reexports.keys()];for(let c=0;c<l.length;c++)i.push([u[c],l[c]])}if(!s)for(let l of o.reexportNamespace)i.push([l,null])}i.sort(([o],[l])=>o<l?-1:l<o?1:0);let a=[];if(s)for(let[,o]of i)a.push(o);else for(let l=0;l<i.length;l+=100){let u=[];for(let c=0;c<100&&l+c<i.length;c++){let[p,d]=i[l+c];d!==null?(u.length>0&&(a.push(og(t,u,e.scope.buildUndefinedNode())),u=[]),a.push(d)):u.push(p)}u.length>0&&a.push(og(t,u,e.scope.buildUndefinedNode()))}return a}var ag={computed:({exports:e,name:t,value:r})=>nt.template.expression.ast`${e}["${t}"] = ${r}`,default:({exports:e,name:t,value:r})=>nt.template.expression.ast`${e}.${t} = ${r}`,define:({exports:e,name:t,value:r})=>nt.template.expression.ast`
|
||
|
|
Object.defineProperty(${e}, "${t}", {
|
||
|
|
enumerable: true,
|
||
|
|
value: void 0,
|
||
|
|
writable: true
|
||
|
|
})["${t}"] = ${r}`};function og(e,t,r){let{stringSpecifiers:n,exportName:s}=e;return nt.types.expressionStatement(t.reduce((i,a)=>{let o={exports:s,name:a,value:i};return a==="__proto__"?ag.define(o):n.has(a)?ag.computed(o):ag.default(o)},r))}});var d2=x(f2=>{f2.getModuleName=()=>cl().getModuleName});var cg=x(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.default=void 0;function Li(){let e=uy();return Li=function(){return e},e}function ug(){let e=zt();return ug=function(){return e},e}function h2(){let e=Ta();return h2=function(){return e},e}function m2(){let e=Fe();return m2=function(){return e},e}function Hc(){let e=ps();return Hc=function(){return e},e}var cfe=d2(),{cloneNode:pfe,interpreterDirective:ffe}=m2(),dfe={enter(e,t){let r=e.node.loc;r&&(t.loc=r,e.stop())}},Ma=class{constructor(t,{code:r,ast:n,inputMap:s}){this._map=new Map,this.opts=void 0,this.declarations={},this.path=void 0,this.ast=void 0,this.scope=void 0,this.metadata={},this.code="",this.inputMap=void 0,this.hub={file:this,getCode:()=>this.code,getScope:()=>this.scope,addHelper:this.addHelper.bind(this),buildError:this.buildCodeFrameError.bind(this)},this.opts=t,this.code=r,this.ast=n,this.inputMap=s,this.path=ug().NodePath.get({hub:this.hub,parentPath:null,parent:this.ast,container:this.ast,key:"program"}).setContext(),this.scope=this.path.scope}get shebang(){let{interpreter:t}=this.path.node;return t?t.value:""}set shebang(t){t?this.path.get("interpreter").replaceWith(ffe(t)):this.path.get("interpreter").remove()}set(t,r){if(t==="helpersNamespace")throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility.If you are using @babel/plugin-external-helpers you will need to use a newer version than the one you currently have installed. If you have your own implementation, you'll want to explore using 'helperGenerator' alongside 'file.availableHelper()'.");this._map.set(t,r)}get(t){return this._map.get(t)}has(t){return this._map.has(t)}availableHelper(t,r){if(Li().isInternal(t))return!1;let n;try{n=Li().minVersion(t)}catch(s){if(s.code!=="BABEL_HELPER_UNKNOWN")throw s;return!1}return typeof r!="string"?!0:(Hc().valid(r)&&(r=`^${r}`),!Hc().intersects(`<${n}`,r)&&!Hc().intersects(">=8.0.0",r))}addHelper(t){if(Li().isInternal(t))throw new Error("Cannot use internal helper "+t);return this._addHelper(t)}_addHelper(t){let r=this.declarations[t];if(r)return pfe(r);let n=this.get("helperGenerator");if(n){let u=n(t);if(u)return u}Li().minVersion(t);let s=this.declarations[t]=this.scope.generateUidIdentifier(t),i={};for(let u of Li().getDependencies(t))i[u]=this._addHelper(u);let{nodes:a,globals:o}=Li().get(t,u=>i[u],s.name,Object.keys(this.scope.getAllBindings()));o.forEach(u=>{this.path.scope.hasBinding(u,!0)&&this.path.scope.rename(u)}),a.forEach(u=>{u._compact=!0});let l=this.path.unshiftContainer("body",a);for(let u of l)u.isVariableDeclaration()&&this.scope.registerDeclaration(u);return s}buildCodeFrameError(t,r,n=SyntaxError){let s=t==null?void 0:t.loc;if(!s&&t){let i={loc:null};(0,ug().default)(t,dfe,this.scope,i),s=i.loc;let a="This is an error on an internal node. Probably an internal error.";s&&(a+=" Location has been estimated."),r+=` (${a})`}if(s){let{highlightCode:i=!0}=this.opts;r+=`
|
||
|
|
`+(0,h2().codeFrameColumns)(this.code,{start:{line:s.start.line,column:s.start.column+1},end:s.end&&s.start.line===s.end.line?{line:s.end.line,column:s.end.column+1}:void 0},{highlightCode:i})}return new n(r)}};Gc.default=Ma;Ma.prototype.addImport=function(){throw new Error("This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'.")},Ma.prototype.addTemplateObject=function(){throw new Error("This function has been moved into the template literal transform itself.")},Ma.prototype.getModuleName=function(){return cfe.getModuleName()(this.opts,this.opts)}});var T2=x(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.default=Ife;function pg(){let e=uy();return pg=function(){return e},e}function y2(){let e=bc();return y2=function(){return e},e}function g2(){let e=$o();return g2=function(){return e},e}function b2(){let e=Fe();return b2=function(){return e},e}var{arrayExpression:hfe,assignmentExpression:Xc,binaryExpression:mfe,blockStatement:yfe,callExpression:gfe,cloneNode:bfe,conditionalExpression:Efe,exportNamedDeclaration:Tfe,exportSpecifier:xfe,expressionStatement:fg,functionExpression:Sfe,identifier:gr,memberExpression:dg,objectExpression:hg,program:Yc,stringLiteral:E2,unaryExpression:vfe,variableDeclaration:mg,variableDeclarator:yg}=b2(),Pfe=e=>g2().default.statement`
|
||
|
|
(function (root, factory) {
|
||
|
|
if (typeof define === "function" && define.amd) {
|
||
|
|
define(AMD_ARGUMENTS, factory);
|
||
|
|
} else if (typeof exports === "object") {
|
||
|
|
factory(COMMON_ARGUMENTS);
|
||
|
|
} else {
|
||
|
|
factory(BROWSER_ARGUMENTS);
|
||
|
|
}
|
||
|
|
})(UMD_ROOT, function (FACTORY_PARAMETERS) {
|
||
|
|
FACTORY_BODY
|
||
|
|
});
|
||
|
|
`(e);function Afe(e){let t=gr("babelHelpers"),r=[],n=Sfe(null,[gr("global")],yfe(r)),s=Yc([fg(gfe(n,[Efe(mfe("===",vfe("typeof",gr("global")),E2("undefined")),gr("self"),gr("global"))]))]);return r.push(mg("var",[yg(t,Xc("=",dg(gr("global"),t),hg([])))])),Jc(r,t,e),s}function Cfe(e){let t=[],r=Jc(t,null,e);return t.unshift(Tfe(null,Object.keys(r).map(n=>xfe(bfe(r[n]),gr(n))))),Yc(t,[],"module")}function Dfe(e){let t=gr("babelHelpers"),r=[];return r.push(mg("var",[yg(t,gr("global"))])),Jc(r,t,e),Yc([Pfe({FACTORY_PARAMETERS:gr("global"),BROWSER_ARGUMENTS:Xc("=",dg(gr("root"),t),hg([])),COMMON_ARGUMENTS:gr("exports"),AMD_ARGUMENTS:hfe([E2("exports")]),FACTORY_BODY:r,UMD_ROOT:gr("this")})])}function wfe(e){let t=gr("babelHelpers"),r=[];r.push(mg("var",[yg(t,hg([]))]));let n=Yc(r);return Jc(r,t,e),r.push(fg(t)),n}function Jc(e,t,r){let n=i=>t?dg(t,gr(i)):gr(`_${i}`),s={};return pg().list.forEach(function(i){if(r&&!r.includes(i))return;let a=s[i]=n(i),{nodes:o}=pg().get(i,n,t?null:`_${i}`,[],t?(l,u,c)=>{c(p=>Xc("=",a,p)),l.body.push(fg(Xc("=",a,gr(u))))}:null);e.push(...o)}),s}function Ife(e,t="global"){let r,n={global:Afe,module:Cfe,umd:Dfe,var:wfe}[t];if(n)r=n(e);else throw new Error(`Unsupported output type ${t}`);return(0,y2().default)(r).code}});var Zr=x((V_e,w2)=>{"use strict";var S2=Symbol.for("gensync:v1:start"),v2=Symbol.for("gensync:v1:suspend"),_fe="GENSYNC_EXPECTED_START",Nfe="GENSYNC_EXPECTED_SUSPEND",P2="GENSYNC_OPTIONS_ERROR",x2="GENSYNC_RACE_NONEMPTY",Ofe="GENSYNC_ERRBACK_NO_CALLBACK";w2.exports=Object.assign(function(t){let r=t;return typeof t!="function"?r=kfe(t):r=Ffe(t),Object.assign(r,Bfe(r))},{all:bg({name:"all",arity:1,sync:function(e){return Array.from(e[0]).map(r=>Eg(r))},async:function(e,t,r){let n=Array.from(e[0]);if(n.length===0){Promise.resolve().then(()=>t([]));return}let s=0,i=n.map(()=>{});n.forEach((a,o)=>{zc(a,l=>{i[o]=l,s+=1,s===i.length&&t(i)},r)})}}),race:bg({name:"race",arity:1,sync:function(e){let t=Array.from(e[0]);if(t.length===0)throw ji("Must race at least 1 item",x2);return Eg(t[0])},async:function(e,t,r){let n=Array.from(e[0]);if(n.length===0)throw ji("Must race at least 1 item",x2);for(let s of n)zc(s,t,r)}})});function Bfe(e){return{sync:function(...r){return Eg(e.apply(this,r))},async:function(...r){return new Promise((n,s)=>{zc(e.apply(this,r),n,s)})},errback:function(...r){let n=r.pop();if(typeof n!="function")throw ji("Asynchronous function called without callback",Ofe);let s;try{s=e.apply(this,r)}catch(i){n(i);return}zc(s,i=>n(void 0,i),i=>n(i))}}}function pl(e,t,r,n){if(typeof r===e||n&&typeof r=="undefined")return;let s;throw n?s=`Expected opts.${t} to be either a ${e}, or undefined.`:s=`Expected opts.${t} to be a ${e}.`,ji(s,P2)}function ji(e,t){return Object.assign(new Error(e),{code:t})}function kfe({name:e,arity:t,sync:r,async:n,errback:s}){if(pl("string","name",e,!0),pl("number","arity",t,!0),pl("function","sync",r),pl("function","async",n,!0),pl("function","errback",s,!0),n&&s)throw ji("Expected one of either opts.async or opts.errback, but got _both_.",P2);if(typeof e!="string"){let i;s&&s.name&&s.name!=="errback"&&(i=s.name),n&&n.name&&n.name!=="async"&&(i=n.name.replace(/Async$/,"")),r&&r.name&&r.name!=="sync"&&(i=r.name.replace(/Sync$/,"")),typeof i=="string"&&(e=i)}return typeof t!="number"&&(t=r.length),bg({name:e,arity:t,sync:function(i){return r.apply(this,i)},async:function(i,a,o){n?n.apply(this,i).then(a,o):s?s.call(this,...i,(l,u)=>{l==null?a(u):o(l)}):a(r.apply(this,i))}})}function Ffe(e){return D2(e.name,e.length,function(...t){return e.apply(this,t)})}function bg({name:e,arity:t,sync:r,async:n}){return D2(e,t,function*(...s){let i=yield S2;if(!i)return r.call(this,s);let a;try{n.call(this,s,o=>{a||(a={value:o},i())},o=>{a||(a={err:o},i())})}catch(o){a={err:o},i()}if(yield v2,a.hasOwnProperty("err"))throw a.err;return a.value})}function Eg(e){let t;for(;!({value:t}=e.next()).done;)A2(t,e);return t}function zc(e,t,r){(function n(){try{let s;for(;!({value:s}=e.next()).done;){A2(s,e);let i=!0,a=!1,o=e.next(()=>{i?a=!0:n()});if(i=!1,Lfe(o,e),!a)return}retu
|
||
|
|
at ${t.join(`
|
||
|
|
at `)}`}});var qi=x(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.default=void 0;var H2=fs(),Cg=class extends Error{constructor(t,r){super(t),(0,H2.expectedError)(this),r&&(0,H2.injectVirtualStackFrame)(this,r)}};sp.default=Cg});var G2=x(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});wg.findPackageData=ude;function Va(){let e=require("path");return Va=function(){return e},e}var ade=Ag(),Dg=qi(),ode="package.json",lde=(0,ade.makeStaticFileCache)((e,t)=>{let r;try{r=JSON.parse(t)}catch(n){throw new Dg.default(`Error while parsing JSON - ${n.message}`,e)}if(!r)throw new Error(`${e}: No config detected`);if(typeof r!="object")throw new Dg.default(`Config returned typeof ${typeof r}`,e);if(Array.isArray(r))throw new Dg.default("Expected config object but found array",e);return{filepath:e,dirname:Va().dirname(e),options:r}});function*ude(e){let t=null,r=[],n=!0,s=Va().dirname(e);for(;!t&&Va().basename(s)!=="node_modules";){r.push(s),t=yield*lde(Va().join(s,ode));let i=Va().dirname(s);if(s===i){n=!1;break}s=i}return{filepath:e,directories:r,pkg:t,isPackage:n}}});var X2=x((rNe,ip)=>{ip.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;ip.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u21
|
||
|
|
`?(Xs++,Nn=0):e?Nn+=e.length:Nn++,e&&(op+=e.length),e}var z2={default(){switch(st){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
|
||
|
|
`:case"\r":case"\u2028":case"\u2029":Z();return;case"/":Z(),Ye="comment";return;case void 0:return Z(),Bt("eof")}if(ur.isSpaceSeparator(st)){Z();return}return z2[qr]()},comment(){switch(st){case"*":Z(),Ye="multiLineComment";return;case"/":Z(),Ye="singleLineComment";return}throw kt(Z())},multiLineComment(){switch(st){case"*":Z(),Ye="multiLineCommentAsterisk";return;case void 0:throw kt(Z())}Z()},multiLineCommentAsterisk(){switch(st){case"*":Z();return;case"/":Z(),Ye="default";return;case void 0:throw kt(Z())}Z(),Ye="multiLineComment"},singleLineComment(){switch(st){case`
|
||
|
|
`:case"\r":case"\u2028":case"\u2029":Z(),Ye="default";return;case void 0:return Z(),Bt("eof")}Z()},value(){switch(st){case"{":case"[":return Bt("punctuator",Z());case"n":return Z(),Ui("ull"),Bt("null",null);case"t":return Z(),Ui("rue"),Bt("boolean",!0);case"f":return Z(),Ui("alse"),Bt("boolean",!1);case"-":case"+":Z()==="-"&&(ds=-1),Ye="sign";return;case".":$e=Z(),Ye="decimalPointLeading";return;case"0":$e=Z(),Ye="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":$e=Z(),Ye="decimalInteger";return;case"I":return Z(),Ui("nfinity"),Bt("numeric",1/0);case"N":return Z(),Ui("aN"),Bt("numeric",NaN);case'"':case"'":dl=Z()==='"',$e="",Ye="string";return}throw kt(Z())},identifierNameStartEscape(){if(st!=="u")throw kt(Z());Z();let e=kg();switch(e){case"$":case"_":break;default:if(!ur.isIdStartChar(e))throw J2();break}$e+=e,Ye="identifierName"},identifierName(){switch(st){case"$":case"_":case"\u200C":case"\u200D":$e+=Z();return;case"\\":Z(),Ye="identifierNameEscape";return}if(ur.isIdContinueChar(st)){$e+=Z();return}return Bt("identifier",$e)},identifierNameEscape(){if(st!=="u")throw kt(Z());Z();let e=kg();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!ur.isIdContinueChar(e))throw J2();break}$e+=e,Ye="identifierName"},sign(){switch(st){case".":$e=Z(),Ye="decimalPointLeading";return;case"0":$e=Z(),Ye="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":$e=Z(),Ye="decimalInteger";return;case"I":return Z(),Ui("nfinity"),Bt("numeric",ds*(1/0));case"N":return Z(),Ui("aN"),Bt("numeric",NaN)}throw kt(Z())},zero(){switch(st){case".":$e+=Z(),Ye="decimalPoint";return;case"e":case"E":$e+=Z(),Ye="decimalExponent";return;case"x":case"X":$e+=Z(),Ye="hexadecimal";return}return Bt("numeric",ds*0)},decimalInteger(){switch(st){case".":$e+=Z(),Ye="decimalPoint";return;case"e":case"E":$e+=Z(),Ye="decimalExponent";return}if(ur.isDigit(st)){$e+=Z();return}return Bt("numeric",ds*Number($e))},decimalPointLeading(){if(ur.isDigit(st)){$e+=Z(),Ye="decimalFraction";return}throw kt(Z())},decimalPoint(){switch(st){case"e":case"E":$e+=Z(),Ye="decimalExponent";return}if(ur.isDigit(st)){$e+=Z(),Ye="decimalFraction";return}return Bt("numeric",ds*Number($e))},decimalFraction(){switch(st){case"e":case"E":$e+=Z(),Ye="decimalExponent";return}if(ur.isDigit(st)){$e+=Z();return}return Bt("numeric",ds*Number($e))},decimalExponent(){switch(st){case"+":case"-":$e+=Z(),Ye="decimalExponentSign";return}if(ur.isDigit(st)){$e+=Z(),Ye="decimalExponentInteger";return}throw kt(Z())},decimalExponentSign(){if(ur.isDigit(st)){$e+=Z(),Ye="decimalExponentInteger";return}throw kt(Z())},decimalExponentInteger(){if(ur.isDigit(st)){$e+=Z();return}return Bt("numeric",ds*Number($e))},hexadecimal(){if(ur.isHexDigit(st)){$e+=Z(),Ye="hexadecimalInteger";return}throw kt(Z())},hexadecimalInteger(){if(ur.isHexDigit(st)){$e+=Z();return}return Bt("numeric",ds*Number($e))},string(){switch(st){case"\\":Z(),$e+=pde();return;case'"':if(dl)return Z(),Bt("string",$e);$e+=Z();return;case"'":if(!dl)return Z(),Bt("string",$e);$e+=Z();return;case`
|
||
|
|
`:case"\r":throw kt(Z());case"\u2028":case"\u2029":hde(st);break;case void 0:throw kt(Z())}$e+=Z()},start(){switch(st){case"{":case"[":return Bt("punctuator",Z())}Ye="value"},beforePropertyName(){switch(st){case"$":case"_":$e=Z(),Ye="identifierName";return;case"\\":Z(),Ye="identifierNameStartEscape";return;case"}":return Bt("punctuator",Z());case'"':case"'":dl=Z()==='"',Ye="string";return}if(ur.isIdStartChar(st)){$e+=Z(),Ye="identifierName";return}throw kt(Z())},afterPropertyName(){if(st===":")return Bt("punctuator",Z());throw kt(Z())},beforePropertyValue(){Ye="value"},afterPropertyValue(){switch(st){case",":case"}":return Bt("punctuator",Z())}throw kt(Z())},beforeArrayValue(){if(st==="]")return Bt("punctuator",Z());Ye="value"},afterArrayValue(){switch(st){case",":case"]":return Bt("punctuator",Z())}throw kt(Z())},end(){throw kt(Z())}};function Bt(e,t){return{type:e,value:t,line:Xs,column:Nn}}function Ui(e){for(let t of e){if(ms()!==t)throw kt(Z());Z()}}function pde(){switch(ms()){case"b":return Z(),"\b";case"f":return Z(),"\f";case"n":return Z(),`
|
||
|
|
`;case"r":return Z(),"\r";case"t":return Z()," ";case"v":return Z(),"\v";case"0":if(Z(),ur.isDigit(ms()))throw kt(Z());return"\0";case"x":return Z(),fde();case"u":return Z(),kg();case`
|
||
|
|
`:case"\u2028":case"\u2029":return Z(),"";case"\r":return Z(),ms()===`
|
||
|
|
`&&Z(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw kt(Z());case void 0:throw kt(Z())}return Z()}function fde(){let e="",t=ms();if(!ur.isHexDigit(t)||(e+=Z(),t=ms(),!ur.isHexDigit(t)))throw kt(Z());return e+=Z(),String.fromCodePoint(parseInt(e,16))}function kg(){let e="",t=4;for(;t-- >0;){let r=ms();if(!ur.isHexDigit(r))throw kt(Z());e+=Z()}return String.fromCodePoint(parseInt(e,16))}var dde={start(){if(cr.type==="eof")throw Vi();Ng()},beforePropertyName(){switch(cr.type){case"identifier":case"string":Fg=cr.value,qr="afterPropertyName";return;case"punctuator":ap();return;case"eof":throw Vi()}},afterPropertyName(){if(cr.type==="eof")throw Vi();qr="beforePropertyValue"},beforePropertyValue(){if(cr.type==="eof")throw Vi();Ng()},beforeArrayValue(){if(cr.type==="eof")throw Vi();if(cr.type==="punctuator"&&cr.value==="]"){ap();return}Ng()},afterPropertyValue(){if(cr.type==="eof")throw Vi();switch(cr.value){case",":qr="beforePropertyName";return;case"}":ap()}},afterArrayValue(){if(cr.type==="eof")throw Vi();switch(cr.value){case",":qr="beforeArrayValue";return;case"]":ap()}},end(){}};function Ng(){let e;switch(cr.type){case"punctuator":switch(cr.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=cr.value;break}if(hl===void 0)hl=e;else{let t=hs[hs.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Fg,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")hs.push(e),Array.isArray(e)?qr="beforeArrayValue":qr="beforePropertyName";else{let t=hs[hs.length-1];t==null?qr="end":Array.isArray(t)?qr="afterArrayValue":qr="afterPropertyValue"}}function ap(){hs.pop();let e=hs[hs.length-1];e==null?qr="end":Array.isArray(e)?qr="afterArrayValue":qr="afterPropertyValue"}function kt(e){return lp(e===void 0?`JSON5: invalid end of input at ${Xs}:${Nn}`:`JSON5: invalid character '${Q2(e)}' at ${Xs}:${Nn}`)}function Vi(){return lp(`JSON5: invalid end of input at ${Xs}:${Nn}`)}function J2(){return Nn-=5,lp(`JSON5: invalid identifier character at ${Xs}:${Nn}`)}function hde(e){console.warn(`JSON5: '${Q2(e)}' in strings is not valid ECMAScript; consider escaping`)}function Q2(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function lp(e){let t=new SyntaxError(e);return t.lineNumber=Xs,t.columnNumber=Nn,t}});var rD=x((iNe,tD)=>{var Lg=_g();tD.exports=function(t,r,n){let s=[],i="",a,o,l="",u;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(n=r.space,u=r.quote,r=r.replacer),typeof r=="function")o=r;else if(Array.isArray(r)){a=[];for(let f of r){let b;typeof f=="string"?b=f:(typeof f=="number"||f instanceof String||f instanceof Number)&&(b=String(f)),b!==void 0&&a.indexOf(b)<0&&a.push(b)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),l=" ".substr(0,n)):typeof n=="string"&&(l=n.substr(0,10)),c("",{"":t});function c(f,b){let T=b[f];switch(T!=null&&(typeof T.toJSON5=="function"?T=T.toJSON5(f):typeof T.toJSON=="function"&&(T=T.toJSON(f))),o&&(T=o.call(b,f,T)),T instanceof Number?T=Number(T):T instanceof String?T=String(T):T instanceof Boolean&&(T=T.valueOf()),T){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof T=="string")return p(T,!1);if(typeof T=="number")return String(T);if(typeof T=="object")return Array.isArray(T)?g(T):d(T)}function p(f){let b={"'":.1,'"':.2},T={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},w="";for(let N=0;N<f.length;N++){let L=f[N];switch(L){case"'":case'"':b[L]++,w+=L;continue;case"\0":if(Lg.isDigit(f[N+1])){w+="\\x00";continue}}if(T[L]){w+=T[L];continue}if(L<" "){let W=L.charCodeAt(0).toString(16);w+="\\x"+("00"+W).substring(W.length);continue}w+=L}let I=u||Object.keys(b).
|
||
|
|
`+i;N=w.join(L),I=`{
|
||
|
|
`+i+N+`,
|
||
|
|
`+b+"}"}}return s.pop(),i=b,I}function m(f){if(f.length===0)return p(f,!0);let b=String.fromCodePoint(f.codePointAt(0));if(!Lg.isIdStartChar(b))return p(f,!0);for(let T=b.length;T<f.length;T++)if(!Lg.isIdContinueChar(String.fromCodePoint(f.codePointAt(T))))return p(f,!0);return f}function g(f){if(s.indexOf(f)>=0)throw TypeError("Converting circular structure to JSON5");s.push(f);let b=i;i=i+l;let T=[];for(let I=0;I<f.length;I++){let N=c(String(I),f);T.push(N!==void 0?N:"null")}let w;if(T.length===0)w="[]";else if(l==="")w="["+T.join(",")+"]";else{let I=`,
|
||
|
|
`+i,N=T.join(I);w=`[
|
||
|
|
`+i+N+`,
|
||
|
|
`+b+"]"}return s.pop(),i=b,w}}});var sD=x((aNe,nD)=>{var mde=eD(),yde=rD(),gde={parse:mde,stringify:yde};nD.exports=gde});var jg=x(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.makeConfigAPI=oD;ml.makePluginAPI=bde;ml.makePresetAPI=lD;function aD(){let e=ps();return aD=function(){return e},e}var up=vt(),iD=Ri();function oD(e){let t=n=>e.using(s=>n===void 0?s.envName:typeof n=="function"?(0,iD.assertSimpleType)(n(s.envName)):(Array.isArray(n)?n:[n]).some(i=>{if(typeof i!="string")throw new Error("Unexpected non-string value");return i===s.envName})),r=n=>e.using(s=>(0,iD.assertSimpleType)(n(s.caller)));return{version:up.version,cache:e.simple(),env:t,async:()=>!1,caller:r,assertVersion:Ede}}function lD(e,t){let r=()=>JSON.parse(e.using(s=>JSON.stringify(s.targets))),n=s=>{t.push(s)};return Object.assign({},oD(e),{targets:r,addExternalDependency:n})}function bde(e,t){let r=n=>e.using(s=>s.assumptions[n]);return Object.assign({},lD(e,t),{assumption:r})}function Ede(e){if(typeof e=="number"){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if(typeof e!="string")throw new Error("Expected string or integer value.");if(e==="*"||aD().satisfies(up.version,e))return;let t=Error.stackTraceLimit;typeof t=="number"&&t<25&&(Error.stackTraceLimit=25);let r=new Error(`Requires Babel "${e}", but was loaded with "${up.version}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);throw typeof t=="number"&&(Error.stackTraceLimit=t),Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:up.version,range:e})}});var pp=x(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.finalize=Tde;cp.flattenToSet=xde;function Tde(e){return Object.freeze(e)}function xde(e){let t=new Set,r=[e];for(;r.length>0;)for(let n of r.pop())Array.isArray(n)?r.push(n):t.add(n);return t}});var dp=x(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.default=void 0;var Sde=pp(),Mg=class{constructor(t,r,n,s=(0,Sde.finalize)([])){this.key=void 0,this.manipulateOptions=void 0,this.post=void 0,this.pre=void 0,this.visitor=void 0,this.parserOverride=void 0,this.generatorOverride=void 0,this.options=void 0,this.externalDependencies=void 0,this.key=t.name||n,this.manipulateOptions=t.manipulateOptions,this.post=t.post,this.pre=t.pre,this.visitor=t.visitor||{},this.parserOverride=t.parserOverride,this.generatorOverride=t.generatorOverride,this.options=r,this.externalDependencies=s}};fp.default=Mg});var cD=x(Rg=>{"use strict";Object.defineProperty(Rg,"__esModule",{value:!0});Rg.once=vde;var uD=Gs();function vde(e){let t,r,n=!1;return function*(){if(!t){if(r)return n=!0,yield*(0,uD.waitFor)(r);if(yield*(0,uD.isAsync)()){let s,i;r=new Promise((a,o)=>{s=a,i=o});try{t={ok:!0,value:yield*e()},r=null,n&&s(t.value)}catch(a){t={ok:!1,value:a},r=null,n&&i(a)}}else try{t={ok:!0,value:yield*e()}}catch(s){t={ok:!1,value:s}}}if(t.ok)return t.value;throw t.value}}});var pD=x((pNe,Pde)=>{Pde.exports=[{name:"nodejs",version:"0.2.0",date:"2011-08-26",lts:!1,security:!1,v8:"2.3.8.0"},{name:"nodejs",version:"0.3.0",date:"2011-08-26",lts:!1,security:!1,v8:"2.5.1.0"},{name:"nodejs",version:"0.4.0",date:"2011-08-26",lts:!1,security:!1,v8:"3.1.2.0"},{name:"nodejs",version:"0.5.0",date:"2011-08-26",lts:!1,security:!1,v8:"3.1.8.25"},{name:"nodejs",version:"0.6.0",date:"2011-11-04",lts:!1,security:!1,v8:"3.6.6.6"},{name:"nodejs",version:"0.7.0",date:"2012-01-17",lts:!1,security:!1,v8:"3.8.6.0"},{name:"nodejs",version:"0.8.0",date:"2012-06-22",lts:!1,security:!1,v8:"3.11.10.10"},{name:"nodejs",version:"0.9.0",date:"2012-07-20",lts:!1,security:!1,v8:"3.11.10.15"},{name:"nodejs",version:"0.10.0",date:"2013-03-11",lts:!1,security:!1,v8:"3.14.5.8"},{name:"nodejs",version:"0.11.0",date:"2013-03-28",lts:!1,security:!1,v8:"3.17.13.0"},{name:"nodejs",version:"0.12.0",dat
|
||
|
|
npx update-browserslist-db@latest
|
||
|
|
Why you should do it regularly: https://github.com/browserslist/update-db#readme`)}}},currentNode:function(){return"node "+process.versions.node},env:process.env}});var zD=x((CNe,JD)=>{var GD=/^\s+and\s+(.*)/i,XD=/^(?:,\s*|\s+or\s+)(.*)/i;function YD(e){return Array.isArray(e)?e.reduce(function(t,r){return t.concat(YD(r))},[]):[e]}function $de(e,t){for(var r=e.length,n=1;n<=r;n++){var s=e.substr(-n,n);if(t(s,n,r))return e.slice(0,-n)}return""}function Xg(e,t){var r={query:t};t.indexOf("not ")===0&&(r.not=!0,t=t.slice(4));for(var n in e){var s=e[n],i=t.match(s.regexp);if(i){r.type=n;for(var a=0;a<s.matches.length;a++)r[s.matches[a]]=i[a+1];return r}}return r.type="unknown",r}function Wde(e,t,r){var n;return $de(t,function(s,i,a){return GD.test(s)?(n=Xg(e,s.match(GD)[1]),n.compose="and",r.unshift(n),!0):XD.test(s)?(n=Xg(e,s.match(XD)[1]),n.compose="or",r.unshift(n),!0):i===a?(n=Xg(e,s.trim()),n.compose="or",r.unshift(n),!0):!1})}JD.exports=function(t,r){return Array.isArray(r)||(r=[r]),YD(r.map(function(n){var s=[];do n=Wde(t,n,s);while(n);return s}))}});var hw=x((DNe,dw)=>{var Kde=pD(),gs=vD().agents,Bn=AD(),Yg=CD(),xp=require("path"),Gr=$g(),pr=HD(),Hde=zD(),Gde=365.259641*24*60*60*1e3,iw="37",Xde=14;function aw(e,t){return(e+".").indexOf(t+".")===0}function Yde(e){var t=e.slice(1);return Ce.nodeVersions.some(function(r){return aw(r,t)})}function QD(e){return e.filter(function(t){return typeof t=="string"})}function yp(e){var t=e;return e.split(".").length===3&&(t=e.split(".").slice(0,-1).join(".")),t}function Js(e){return function(r){return e+" "+r}}function tb(e){return parseInt(e.split(".")[0])}function gp(e,t){if(e.length===0)return[];var r=ow(e.map(tb)),n=r[r.length-t];if(!n)return e;for(var s=[],i=e.length-1;i>=0&&!(n>tb(e[i]));i--)s.unshift(e[i]);return s}function ow(e){for(var t=[],r=0;r<e.length;r++)t.indexOf(e[r])===-1&&t.push(e[r]);return t}function Sp(e,t,r){for(var n in r)e[t+" "+n]=r[n]}function ZD(e,t){if(t=parseFloat(t),e===">")return function(n){return r(n)>t};return e===">="?function(n){return r(n)>=t}:e==="<"?function(n){return parseFloat(n)<t}:function(n){return parseFloat(n)<=t};function r(n){return parseFloat(n.split("-")[1]||n)}}function Jde(e,t){return t=t.split(".").map(zs),t[1]=t[1]||0,t[2]=t[2]||0,e===">"?function(r){return r=r.split(".").map(zs),gl(r,t)>0}:e===">="?function(r){return r=r.split(".").map(zs),gl(r,t)>=0}:e==="<"?function(r){return r=r.split(".").map(zs),gl(t,r)>0}:function(r){return r=r.split(".").map(zs),gl(t,r)>=0}}function zs(e){return parseInt(e)}function Tp(e,t){return e<t?-1:e>t?1:0}function gl(e,t){return Tp(parseInt(e[0]),parseInt(t[0]))||Tp(parseInt(e[1]||"0"),parseInt(t[1]||"0"))||Tp(parseInt(e[2]||"0"),parseInt(t[2]||"0"))}function ew(e,t){switch(t=t.split(".").map(zs),typeof t[1]=="undefined"&&(t[1]="x"),e){case"<=":return function(r){return r=r.split(".").map(zs),tw(r,t)<=0};case">=":default:return function(r){return r=r.split(".").map(zs),tw(r,t)>=0}}}function tw(e,t){return e[0]!==t[0]?e[0]<t[0]?-1:1:t[1]==="x"?0:e[1]!==t[1]?e[1]<t[1]?-1:1:0}function zde(e,t){return e.versions.indexOf(t)!==-1?t:Ce.versionAliases[e.name][t]?Ce.versionAliases[e.name][t]:!1}function bp(e,t){var r=zde(e,t);return r||(e.versions.length===1?e.versions[0]:!1)}function lw(e,t){return e=e/1e3,Object.keys(gs).reduce(function(r,n){var s=Qs(n,t);if(!s)return r;var i=Object.keys(s.releaseDate).filter(function(a){var o=s.releaseDate[a];return o!==null&&o>=e});return r.concat(i.map(Js(s.name)))},[])}function rw(e){return{name:e.name,versions:e.versions,released:e.released,releaseDate:e.releaseDate}}function Qs(e,t){if(e=e.toLowerCase(),e=Ce.aliases[e]||e,t.mobileToDesktop&&Ce.desktopNames[e]){var r=Ce.data[Ce.desktopNames[e]];if(e==="android")return Zde(rw(Ce.data[e]),r);var n=rw(r);return n.name=e,n}return Ce.data[e]}function nw(e,t){var r=t.indexOf(iw);return e.filter(function(n){return/^(?:[2-4]\.|[34]$)/.test(n)}).concat(t.slice(r))}function Qde(e){var t={};for(var r in e)t[r]=e[r];return t}function Zde(e,t){return e.released=nw(e.released,t.released),e.versions=nw(e.versions,t.versions),e
|
||
|
|
- Did you mean '${(0,nhe.findSuggestion)(s,n)}'?`))}validateBooleanOption(t,r,n){return r===void 0?n:(this.invariant(typeof r=="boolean",`'${t}' option must be a boolean.`),r)}validateStringOption(t,r,n){return r===void 0?n:(this.invariant(typeof r=="string",`'${t}' option must be a string.`),r)}invariant(t,r){if(!t)throw new Error(this.formatMessage(r))}formatMessage(t){return`${this.descriptor}: ${t}`}};vp.OptionValidator=ab});var Ap=x(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Object.defineProperty(Pp,"OptionValidator",{enumerable:!0,get:function(){return she.OptionValidator}});Object.defineProperty(Pp,"findSuggestion",{enumerable:!0,get:function(){return ihe.findSuggestion}});var she=yw(),ihe=ib()});var bw=x((NNe,gw)=>{"use strict";gw.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var Tw=x((ONe,Ew)=>{"use strict";Ew.exports=mt;mt.Node=$i;mt.create=mt;function mt(e){var t=this;if(t instanceof mt||(t=new mt),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(s){t.push(s)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}mt.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};mt.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};mt.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};mt.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)ohe(this,arguments[e]);return this.length};mt.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)lhe(this,arguments[e]);return this.length};mt.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};mt.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};mt.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};mt.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};mt.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};mt.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};mt.prototype.map=function(e,t){t=t||this;for(var r=new mt,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};mt.prototype.mapReverse=function(e,t){t=t||this;for(var r=new mt,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};mt.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;n!==null;s++)r=e(r,n.value,s),n=n.next;return r};mt.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;n!==null;s--)r=e(r,n.value,s),n=n.prev;return r};mt.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};mt.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};mt.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new mt;if
|
||
|
|
- Did you mean '${(0,Kw.findSuggestion)(r,t)}'?`));return e}function Xw(e){return typeof e=="string"||Array.isArray(e)&&e.every(t=>typeof t=="string")}function Nhe(e){return yb.invariant(e===void 0||Xw(e),`'${String(e)}' is not a valid browserslist query`),e}function Ohe(e){return e.reduce((t,r)=>{let[n,s]=r.split(" "),i=Hw.browserNameMap[n];if(!i)return t;try{let a=s.split("-")[0].toLowerCase(),o=(0,Fn.isUnreleasedVersion)(a,i);if(!t[i])return t[i]=o?a:(0,Fn.semverify)(a),t;let l=t[i],u=(0,Fn.isUnreleasedVersion)(l,i);if(u&&o)t[i]=(0,Fn.getLowestUnreleased)(l,a,i);else if(u)t[i]=(0,Fn.semverify)(a);else if(!u&&!o){let c=(0,Fn.semverify)(a);t[i]=(0,Fn.semverMin)(l,c)}}catch{}return t},{})}function Bhe(e){e.length&&(console.warn(`Warning, the following targets are using a decimal version:
|
||
|
|
`),e.forEach(({target:t,value:r})=>console.warn(` ${t}: ${r}`)),console.warn(`
|
||
|
|
We recommend using a string for minor/patch versions to avoid numbers like 6.10
|
||
|
|
getting parsed as 6.1, which can lead to unexpected behavior.
|
||
|
|
`))}function Yw(e,t){try{return(0,Fn.semverify)(t)}catch{throw new Error(yb.formatMessage(`'${t}' is not a valid value for 'targets.${e}'.`))}}function khe(e){return["node",e===!0||e==="current"?process.versions.node.split("-")[0]:Yw("node",e)]}function Fhe(e,t){let r=(0,Fn.isUnreleasedVersion)(t,e)?t.toLowerCase():Yw(e,t);return[e,r]}function Lhe(e){let t=Object.assign({},e);return delete t.esmodules,delete t.browsers,t}function jhe(e,t){let r=hb(e,{mobileToDesktop:!0,env:t});return Ohe(r)}var Ww=new Che({max:64});function Mhe(e,t){let r=typeof e=="string"?e:e.join()+t,n=Ww.get(r);return n||(n=jhe(e,t),Ww.set(r,n)),Object.assign({},n)}function Rhe(e={},t={}){var r,n;let{browsers:s,esmodules:i}=e,{configPath:a=".",onBrowserslistConfigFound:o}=t;Nhe(s);let l=Lhe(e),u=_he(l),p=!!s||Object.keys(u).length>0,d=!t.ignoreBrowserslistConfig&&!p;if(!s&&d){if(s=process.env.BROWSERSLIST,!s){let f=t.configFile||process.env.BROWSERSLIST_CONFIG||hb.findConfigFile(a);f!=null&&(o==null||o(f),s=hb.loadConfig({config:f,env:t.browserslistEnv}))}s==null&&(s=[])}if(i&&(i!=="intersect"||!((r=s)!=null&&r.length))&&(s=Object.keys(db).map(f=>`${f} >= ${db[f]}`).join(", "),i=!1),(n=s)!=null&&n.length){let f=Mhe(s,t.browserslistEnv);if(i==="intersect")for(let b of Object.keys(f))if(b!=="deno"&&b!=="ie"){let T=db[b==="opera_mobile"?"op_mob":b];if(T){let w=f[b];f[b]=(0,Fn.getHighestUnreleased)(w,(0,Fn.semverify)(T),b)}else delete f[b]}else delete f[b];u=Object.assign(f,u)}let m={},g=[];for(let f of Object.keys(u).sort()){let b=u[f];typeof b=="number"&&b%1!==0&&g.push({target:f,value:b});let[T,w]=f==="node"?khe(b):Fhe(f,b);w&&(m[T]=w)}return Bhe(g),m}});var bb=x(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.resolveBrowserslistConfigFile=qhe;Bp.resolveTargets=Uhe;function Jw(){let e=require("path");return Jw=function(){return e},e}function zw(){let e=gb();return zw=function(){return e},e}function qhe(e,t){return Jw().resolve(t,e)}function Uhe(e,t){let r=e.targets,n;typeof r=="string"||Array.isArray(r)?n={browsers:r}:r&&("esmodules"in r?n=Object.assign({},r,{esmodules:"intersect"}):n=r);let{browserslistConfigFile:s}=e,i,a=!1;return typeof s=="string"?i=s:a=s===!1,(0,zw().default)(n,{ignoreBrowserslistConfig:a,configFile:i,configPath:t,browserslistEnv:e.browserslistEnv})}});var Eb=x(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.createCachedDescriptors=Khe;Sl.createDescriptor=oI;Sl.createUncachedDescriptors=Hhe;function tI(){let e=Zr();return tI=function(){return e},e}var Qw=cD(),Zw=Pl(),Vhe=vl(),xl=Ri(),$he=bb();function Whe(e,t){var r,n,s,i;return e.name===t.name&&e.value===t.value&&e.options===t.options&&e.dirname===t.dirname&&e.alias===t.alias&&e.ownPass===t.ownPass&&((r=e.file)==null?void 0:r.request)===((n=t.file)==null?void 0:n.request)&&((s=e.file)==null?void 0:s.resolved)===((i=t.file)==null?void 0:i.resolved)}function*eI(e){return e}function rI(e,t){return typeof e.browserslistConfigFile=="string"&&(e.browserslistConfigFile=(0,$he.resolveBrowserslistConfigFile)(e.browserslistConfigFile,t)),e}function Khe(e,t,r){let{plugins:n,presets:s,passPerPreset:i}=t;return{options:rI(t,e),plugins:n?()=>Jhe(n,e)(r):()=>eI([]),presets:s?()=>Xhe(s,e)(r)(!!i):()=>eI([])}}function Hhe(e,t,r){return{options:rI(t,e),plugins:(0,Qw.once)(()=>iI(t.plugins||[],e,r)),presets:(0,Qw.once)(()=>sI(t.presets||[],e,r,!!t.passPerPreset))}}var Ghe=new WeakMap,Xhe=(0,xl.makeWeakCacheSync)((e,t)=>{let r=t.using(n=>n);return(0,xl.makeStrongCacheSync)(n=>(0,xl.makeStrongCache)(function*(s){return(yield*sI(e,r,n,s)).map(a=>nI(Ghe,a))}))}),Yhe=new WeakMap,Jhe=(0,xl.makeWeakCacheSync)((e,t)=>{let r=t.using(n=>n);return(0,xl.makeStrongCache)(function*(n){return(yield*iI(e,r,n)).map(i=>nI(Yhe,i))})}),zhe={};function nI(e,t){let{value:r,options:n=zhe}=t;if(n===!1)return t;let s=e.get(r);s||(s=new WeakMap,e.set(r,s));let i=s.get(n);if(i||(i=[],s.set(n,i)),!i.includes(t)){let a=i.filter(o=>Whe(o,t));if(a.length>0)return a[0];i.push(t)}return t}function*sI(e,t,r,n){return yield*aI("preset",e,t,r,n)}function*iI(e,t,r){return yield*aI("plugi
|
||
|
|
`))}n.add(r.name)}}});var vl=x(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.createConfigItem=eme;Al.createItemFromDescriptor=uI;Al.getItemDescriptor=tme;function lI(){let e=require("path");return lI=function(){return e},e}var Zhe=Eb();function uI(e){return new kp(e)}function*eme(e,{dirname:t=".",type:r}={}){let n=yield*(0,Zhe.createDescriptor)(e,lI().resolve(t),{type:r,alias:"programmatic item"});return uI(n)}var Tb=Symbol.for("@babel/core@7 - ConfigItem");function tme(e){if(e!=null&&e[Tb])return e._descriptor}var kp=class{constructor(t){this._descriptor=void 0,this[Tb]=!0,this.value=void 0,this.options=void 0,this.dirname=void 0,this.name=void 0,this.file=void 0,this._descriptor=t,Object.defineProperty(this,"_descriptor",{enumerable:!1}),Object.defineProperty(this,Tb,{enumerable:!1}),this.value=this._descriptor.value,this.options=this._descriptor.options,this.dirname=this._descriptor.dirname,this.name=this._descriptor.name,this.file=this._descriptor.file?{request:this._descriptor.file.request,resolved:this._descriptor.file.resolved}:void 0,Object.freeze(this)}};Object.freeze(kp.prototype)});var cI=x(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.default=void 0;var zNe=Fp.default={auxiliaryComment:{message:"Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"},blacklist:{message:"Put the specific transforms you want in the `plugins` option"},breakConfig:{message:"This is not a necessary option in Babel 6"},experimental:{message:"Put the specific transforms you want in the `plugins` option"},externalHelpers:{message:"Use the `external-helpers` plugin instead. Check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxPragma:{message:"use the `pragma` option in the `react-jsx` plugin. Check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"Specify the `loose` option for the relevant plugin you are using or use a preset that sets the option."},metadataUsedHelpers:{message:"Not required anymore as this is enabled by default"},modules:{message:"Use the corresponding module transform plugin in the `plugins` option. Check out http://babeljs.io/docs/plugins/#modules"},nonStandard:{message:"Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"Put the specific transforms you want in the `plugins` option"},sourceMapName:{message:"The `sourceMapName` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."},stage:{message:"Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"Put the specific transforms you want in the `plugins` option"},resolveModuleSource:{version:6,message:"Use `babel-plugin-module-resolver@3`'s 'resolvePath' options"},metadata:{version:6,message:"Generated plugin metadata is always included in the output result"},sourceMapTarget:{version:6,message:"The `sourceMapTarget` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."}}});var vb=x(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.access=en;Gt.assertArray=Sb;Gt.assertAssumptions=Tme;Gt.assertBabelrcSearch=mme;Gt.assertBoolean=xb;Gt.assertCallerMetadata=ome;Gt.assertCompact=ime;Gt.assertConfigApplicableTest=dme;Gt.assertConfigFileSearch=hme;Gt.assertFunction=cme;Gt.assertIgnoreList=pme;Gt.assertInputSourceMap=lme;Gt.assertObject=dI;Gt.assertPluginList=yme;Gt.assertRootMode=nme;Gt.assertSourceMaps=sme;Gt.assertSourceType=ame;Gt.assertString=ume;Gt.assertTargets=bme;Gt.msg=it;function Cl(){let e=gb();return Cl=function(){return e},e}var rme=Dl();function it(e){switch(e.type){case"root":return"";case"env":return`${it(e.parent)}.env["${e.name}"]`;case"overrides":return`${it(e.parent)}.overrides[${e.index}]`;case"option":return`${it(e.parent)}.${e.name}`;case"access":return`${it(e.parent)}[${JSON.stringify(e.name)}]`;default:throw new Error(`Assert
|
||
|
|
- Maybe you meant to use
|
||
|
|
"${r}s": [
|
||
|
|
["${s.file.request}", ${JSON.stringify(i.value,void 0,2)}]
|
||
|
|
]
|
||
|
|
To be a valid ${r}, its name and options should be wrapped in a pair of brackets`)}});var Ib=x(wb=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0});wb.default=Nme;function jp(){let e=require("path");return jp=function(){return e},e}var wl=`\\${jp().sep}`,Ab=`(?:${wl}|$)`,Cb=`[^${wl}]+`,Db=`(?:${Cb}${wl})`,xI=`(?:${Cb}${Ab})`,Ime=`${Db}*?`,_me=`${Db}*?${xI}?`;function TI(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function Nme(e,t){let r=jp().resolve(t,e).split(jp().sep);return new RegExp(["^",...r.map((n,s)=>{let i=s===r.length-1;return n==="**"?i?_me:Ime:n==="*"?i?xI:Db:n.indexOf("*.")===0?Cb+TI(n.slice(1))+(i?Ab:wl):TI(n)+(i?Ab:wl)})].join(""))}});var PI=x(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.ConfigPrinter=Ya.ChainFormatter=void 0;function vI(){let e=Zr();return vI=function(){return e},e}var Ome=Ya.ChainFormatter={Programmatic:0,Config:1},_b={title(e,t,r){let n="";return e===Ome.Programmatic?(n="programmatic options",t&&(n+=" from "+t)):n="config "+r,n},loc(e,t){let r="";return e!=null&&(r+=`.overrides[${e}]`),t!=null&&(r+=`.env["${t}"]`),r},*optionsAndDescriptors(e){let t=Object.assign({},e.options);delete t.overrides,delete t.env;let r=[...yield*e.plugins()];r.length&&(t.plugins=r.map(s=>SI(s)));let n=[...yield*e.presets()];return n.length&&(t.presets=[...n].map(s=>SI(s))),JSON.stringify(t,void 0,2)}};function SI(e){var t;let r=(t=e.file)==null?void 0:t.request;return r==null&&(typeof e.value=="object"?r=e.value:typeof e.value=="function"&&(r=`[Function: ${e.value.toString().slice(0,50)} ... ]`)),r==null&&(r="[Unknown]"),e.options===void 0?r:e.name==null?[r,e.options]:[r,e.options,e.name]}var Nb=class e{constructor(){this._stack=[]}configure(t,r,{callerName:n,filepath:s}){return t?(i,a,o)=>{this._stack.push({type:r,callerName:n,filepath:s,content:i,index:a,envName:o})}:()=>{}}static*format(t){let r=_b.title(t.type,t.callerName,t.filepath),n=_b.loc(t.index,t.envName);n&&(r+=` ${n}`);let s=yield*_b.optionsAndDescriptors(t.content);return`${r}
|
||
|
|
${s}`}*output(){return this._stack.length===0?"":(yield*vI().all(this._stack.map(r=>e.format(r)))).join(`
|
||
|
|
|
||
|
|
`)}};Ya.ConfigPrinter=Nb});var Ub=x(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.buildPresetChain=Fme;za.buildPresetChainWalker=void 0;za.buildRootChain=Ume;function DI(){let e=require("path");return DI=function(){return e},e}function wI(){let e=Ti();return wI=function(){return e},e}var Fb=Dl(),II=Ib(),_l=PI(),Bme=fs(),kme=qi(),Il=Pl(),ir=Ri(),mn=Eb(),AI=wI()("babel:config:config-chain");function*Fme(e,t){let r=yield*Lme(e,t);return r?{plugins:qp(r.plugins),presets:qp(r.presets),options:r.options.map(n=>_I(n)),files:new Set}:null}var Lme=za.buildPresetChainWalker=qb({root:e=>jme(e),env:(e,t)=>Mme(e)(t),overrides:(e,t)=>Rme(e)(t),overridesEnv:(e,t,r)=>qme(e)(t)(r),createLogger:()=>()=>{}}),jme=(0,ir.makeWeakCacheSync)(e=>Lb(e,e.alias,mn.createUncachedDescriptors)),Mme=(0,ir.makeWeakCacheSync)(e=>(0,ir.makeStrongCacheSync)(t=>jb(e,e.alias,mn.createUncachedDescriptors,t))),Rme=(0,ir.makeWeakCacheSync)(e=>(0,ir.makeStrongCacheSync)(t=>Mb(e,e.alias,mn.createUncachedDescriptors,t))),qme=(0,ir.makeWeakCacheSync)(e=>(0,ir.makeStrongCacheSync)(t=>(0,ir.makeStrongCacheSync)(r=>Rb(e,e.alias,mn.createUncachedDescriptors,t,r))));function*Ume(e,t){let r,n,s=new _l.ConfigPrinter,i=yield*Hme({options:e,dirname:t.cwd},t,void 0,s);if(!i)return null;let a=yield*s.output(),o;typeof e.configFile=="string"?o=yield*(0,Il.loadConfig)(e.configFile,t.cwd,t.envName,t.caller):e.configFile!==!1&&(o=yield*(0,Il.findRootConfig)(t.root,t.envName,t.caller));let{babelrc:l,babelrcRoots:u}=e,c=t.cwd,p=Rp(),d=new _l.ConfigPrinter;if(o){let w=$me(o),I=yield*Bb(w,t,void 0,d);if(!I)return null;r=yield*d.output(),l===void 0&&(l=w.options.babelrc),u===void 0&&(c=w.dirname,u=w.options.babelrcRoots),Ja(p,I)}let m,g,f=!1,b=Rp();if((l===!0||l===void 0)&&typeof t.filename=="string"){let w=yield*(0,Il.findPackageData)(t.filename);if(w&&Vme(t,w,u,c)){if({ignore:m,config:g}=yield*(0,Il.findRelativeConfig)(w,t.envName,t.caller),m&&b.files.add(m.filepath),m&&NI(t,m.ignore,null,m.dirname)&&(f=!0),g&&!f){let I=Wme(g),N=new _l.ConfigPrinter,L=yield*Bb(I,t,void 0,N);L?(n=yield*N.output(),Ja(b,L)):f=!0}g&&f&&b.files.add(g.filepath)}}t.showConfig&&console.log(`Babel configs on "${t.filename}" (ascending priority):
|
||
|
|
`+[r,n,a].filter(w=>!!w).join(`
|
||
|
|
|
||
|
|
`)+`
|
||
|
|
-----End Babel configs-----`);let T=Ja(Ja(Ja(Rp(),p),b),i);return{plugins:f?[]:qp(T.plugins),presets:f?[]:qp(T.presets),options:f?[]:T.options.map(w=>_I(w)),fileHandling:f?"ignored":"transpile",ignore:m||void 0,babelrc:g||void 0,config:o||void 0,files:T.files}}function Vme(e,t,r,n){if(typeof r=="boolean")return r;let s=e.root;if(r===void 0)return t.directories.includes(s);let i=r;return Array.isArray(i)||(i=[i]),i=i.map(a=>typeof a=="string"?DI().resolve(n,a):a),i.length===1&&i[0]===s?t.directories.includes(s):i.some(a=>(typeof a=="string"&&(a=(0,II.default)(a,n)),t.directories.some(o=>OI(a,n,o,e))))}var $me=(0,ir.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,Fb.validate)("configfile",e.options,e.filepath)})),Wme=(0,ir.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,Fb.validate)("babelrcfile",e.options,e.filepath)})),Kme=(0,ir.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,Fb.validate)("extendsfile",e.options,e.filepath)})),Hme=qb({root:e=>Lb(e,"base",mn.createCachedDescriptors),env:(e,t)=>jb(e,"base",mn.createCachedDescriptors,t),overrides:(e,t)=>Mb(e,"base",mn.createCachedDescriptors,t),overridesEnv:(e,t,r)=>Rb(e,"base",mn.createCachedDescriptors,t,r),createLogger:(e,t,r)=>Zme(e,t,r)}),Gme=qb({root:e=>Xme(e),env:(e,t)=>Yme(e)(t),overrides:(e,t)=>Jme(e)(t),overridesEnv:(e,t,r)=>zme(e)(t)(r),createLogger:(e,t,r)=>Qme(e.filepath,t,r)});function*Bb(e,t,r,n){let s=yield*Gme(e,t,r,n);return s==null||s.files.add(e.filepath),s}var Xme=(0,ir.makeWeakCacheSync)(e=>Lb(e,e.filepath,mn.createUncachedDescriptors)),Yme=(0,ir.makeWeakCacheSync)(e=>(0,ir.makeStrongCacheSync)(t=>jb(e,e.filepath,mn.createUncachedDescriptors,t))),Jme=(0,ir.makeWeakCacheSync)(e=>(0,ir.makeStrongCacheSync)(t=>Mb(e,e.filepath,mn.createUncachedDescriptors,t))),zme=(0,ir.makeWeakCacheSync)(e=>(0,ir.makeStrongCacheSync)(t=>(0,ir.makeStrongCacheSync)(r=>Rb(e,e.filepath,mn.createUncachedDescriptors,t,r))));function Qme(e,t,r){return r?r.configure(t.showConfig,_l.ChainFormatter.Config,{filepath:e}):()=>{}}function Lb({dirname:e,options:t},r,n){return n(e,t,r)}function Zme(e,t,r){var n;return r?r.configure(t.showConfig,_l.ChainFormatter.Programmatic,{callerName:(n=t.caller)==null?void 0:n.name}):()=>{}}function jb({dirname:e,options:t},r,n,s){var i;let a=(i=t.env)==null?void 0:i[s];return a?n(e,a,`${r}.env["${s}"]`):null}function Mb({dirname:e,options:t},r,n,s){var i;let a=(i=t.overrides)==null?void 0:i[s];if(!a)throw new Error("Assertion failure - missing override");return n(e,a,`${r}.overrides[${s}]`)}function Rb({dirname:e,options:t},r,n,s,i){var a,o;let l=(a=t.overrides)==null?void 0:a[s];if(!l)throw new Error("Assertion failure - missing override");let u=(o=l.env)==null?void 0:o[i];return u?n(e,u,`${r}.overrides[${s}].env["${i}"]`):null}function qb({root:e,env:t,overrides:r,overridesEnv:n,createLogger:s}){return function*(a,o,l=new Set,u){let{dirname:c}=a,p=[],d=e(a);if(Mp(d,c,o,a.filepath)){p.push({config:d,envName:void 0,index:void 0});let f=t(a,o.envName);f&&Mp(f,c,o,a.filepath)&&p.push({config:f,envName:o.envName,index:void 0}),(d.options.overrides||[]).forEach((b,T)=>{let w=r(a,T);if(Mp(w,c,o,a.filepath)){p.push({config:w,index:T,envName:void 0});let I=n(a,T,o.envName);I&&Mp(I,c,o,a.filepath)&&p.push({config:I,index:T,envName:o.envName})}})}if(p.some(({config:{options:{ignore:f,only:b}}})=>NI(o,f,b,c)))return null;let m=Rp(),g=s(a,o,u);for(let{config:f,index:b,envName:T}of p){if(!(yield*eye(m,f.options,c,o,l,u)))return null;g(f,b,T),yield*tye(m,f)}return m}}function*eye(e,t,r,n,s,i){if(t.extends===void 0)return!0;let a=yield*(0,Il.loadConfig)(t.extends,r,n.envName,n.caller);if(s.has(a))throw new Error(`Configuration cycle detected loading ${a.filepath}.
|
||
|
|
File already loaded following the config chain:
|
||
|
|
`+Array.from(s,l=>` - ${l.filepath}`).join(`
|
||
|
|
`));s.add(a);let o=yield*Bb(Kme(a),n,s,i);return s.delete(a),o?(Ja(e,o),!0):!1}function Ja(e,t){e.options.push(...t.options),e.plugins.push(...t.plugins),e.presets.push(...t.presets);for(let r of t.files)e.files.add(r);return e}function*tye(e,{options:t,plugins:r,presets:n}){return e.options.push(t),e.plugins.push(...yield*r()),e.presets.push(...yield*n()),e}function Rp(){return{options:[],presets:[],plugins:[],files:new Set}}function _I(e){let t=Object.assign({},e);return delete t.extends,delete t.env,delete t.overrides,delete t.plugins,delete t.presets,delete t.passPerPreset,delete t.ignore,delete t.only,delete t.test,delete t.include,delete t.exclude,hasOwnProperty.call(t,"sourceMap")&&(t.sourceMaps=t.sourceMap,delete t.sourceMap),t}function qp(e){let t=new Map,r=[];for(let n of e)if(typeof n.value=="function"){let s=n.value,i=t.get(s);i||(i=new Map,t.set(s,i));let a=i.get(n.name);a?a.value=n:(a={value:n},r.push(a),n.ownPass||i.set(n.name,a))}else r.push({value:n});return r.reduce((n,s)=>(n.push(s.value),n),[])}function Mp({options:e},t,r,n){return(e.test===void 0||Ob(r,e.test,t,n))&&(e.include===void 0||Ob(r,e.include,t,n))&&(e.exclude===void 0||!Ob(r,e.exclude,t,n))}function Ob(e,t,r,n){let s=Array.isArray(t)?t:[t];return kb(e,s,r,n)}function CI(e,t){return t instanceof RegExp?String(t):t}function NI(e,t,r,n){if(t&&kb(e,t,n)){var s;let a=`No config is applied to "${(s=e.filename)!=null?s:"(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(t,CI)}\` from "${n}"`;return AI(a),e.showConfig&&console.log(a),!0}if(r&&!kb(e,r,n)){var i;let a=`No config is applied to "${(i=e.filename)!=null?i:"(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(r,CI)}\` from "${n}"`;return AI(a),e.showConfig&&console.log(a),!0}return!1}function kb(e,t,r,n){return t.some(s=>OI(s,r,e.filename,e,n))}function OI(e,t,r,n,s){if(typeof e=="function")return!!(0,Bme.endHiddenCallStack)(e)(r,{dirname:t,envName:n.envName,caller:n.caller});if(typeof r!="string")throw new kme.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel",s);return typeof e=="string"&&(e=(0,II.default)(e,t)),e.test(r)}});var BI=x(Vb=>{"use strict";Object.defineProperty(Vb,"__esModule",{value:!0});Vb.validatePluginObject=iye;var Ts=vb(),rye={name:Ts.assertString,manipulateOptions:Ts.assertFunction,pre:Ts.assertFunction,post:Ts.assertFunction,inherits:Ts.assertFunction,visitor:nye,parserOverride:Ts.assertFunction,generatorOverride:Ts.assertFunction};function nye(e,t){let r=(0,Ts.assertObject)(e,t);if(r&&(Object.keys(r).forEach(n=>{n!=="_exploded"&&n!=="_verified"&&sye(n,r[n])}),r.enter||r.exit))throw new Error(`${(0,Ts.msg)(e)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`);return r}function sye(e,t){if(t&&typeof t=="object")Object.keys(t).forEach(r=>{if(r!=="enter"&&r!=="exit")throw new Error(`.visitor["${e}"] may only have .enter and/or .exit handlers.`)});else if(typeof t!="function")throw new Error(`.visitor["${e}"] must be a function`)}function iye(e){let t={type:"root",source:"plugin"};return Object.keys(e).forEach(r=>{let n=rye[r];if(n)n({type:"option",name:r,parent:t},e[r]);else{let s=new Error(`.${r} is not a valid Plugin property`);throw s.code="BABEL_UNKNOWN_PLUGIN_PROPERTY",s}}),e}});var Wb=x($b=>{"use strict";Object.defineProperty($b,"__esModule",{value:!0});$b.getEnv=aye;function aye(e="development"){return process.env.BABEL_ENV||process.env.NODE_ENV||e}});var Kb=x(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.default=FI;Wp.loadPartialConfig=yye;function Up(){let e=require("path");return Up=function(){return e},e}var oye=dp(),lye=Zc(),kI=vl(),uye=Ub(),cye=Wb(),pye=Dl(),Vp=Pl(),fye=bb(),dye=["showIgnoredFiles"];function hye(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function mye(e,t){switch(t){case"root":return e;case"upward-optional":{let r=(0,Vp.findConfigUpwards)(e);return r===null?e:r}case"upward":{let r=(0,Vp.findConfigUpwards)(e);if(r!==null)r
|
||
|
|
One of the following config files must be in the directory tree: "${Vp.ROOT_CONFIG_FILENAMES.join(", ")}".`),{code:"BABEL_ROOT_NOT_FOUND",dirname:e})}default:throw new Error("Assertion failure - unknown rootMode value.")}}function*FI(e){if(e!=null&&(typeof e!="object"||Array.isArray(e)))throw new Error("Babel options must be an object, null, or undefined");let t=e?(0,pye.validate)("arguments",e):{},{envName:r=(0,cye.getEnv)(),cwd:n=".",root:s=".",rootMode:i="root",caller:a,cloneInputAst:o=!0}=t,l=Up().resolve(n),u=mye(Up().resolve(l,s),i),c=typeof t.filename=="string"?Up().resolve(n,t.filename):void 0,p=yield*(0,Vp.resolveShowConfigPath)(l),d={filename:c,cwd:l,root:u,envName:r,caller:a,showConfig:p===c},m=yield*(0,uye.buildRootChain)(t,d);if(!m)return null;let g={assumptions:{}};return m.options.forEach(b=>{(0,lye.mergeOptions)(g,b)}),{options:Object.assign({},g,{targets:(0,fye.resolveTargets)(g,u),cloneInputAst:o,babelrc:!1,configFile:!1,browserslistConfigFile:!1,passPerPreset:!1,envName:d.envName,cwd:d.cwd,root:d.root,rootMode:"root",filename:typeof d.filename=="string"?d.filename:void 0,plugins:m.plugins.map(b=>(0,kI.createItemFromDescriptor)(b)),presets:m.presets.map(b=>(0,kI.createItemFromDescriptor)(b))}),context:d,fileHandling:m.fileHandling,ignore:m.ignore,babelrc:m.babelrc,config:m.config,files:m.files}}function*yye(e){let t=!1;if(typeof e=="object"&&e!==null&&!Array.isArray(e)){var r=e;({showIgnoredFiles:t}=r),e=hye(r,dye)}let n=yield*FI(e);if(!n)return null;let{options:s,babelrc:i,ignore:a,config:o,fileHandling:l,files:u}=n;return l==="ignored"&&!t?null:((s.plugins||[]).forEach(c=>{if(c.value instanceof oye.default)throw new Error("Passing cached plugin instances is not supported in babel.loadPartialConfig()")}),new $p(s,i?i.filepath:void 0,a?a.filepath:void 0,o?o.filepath:void 0,l,u))}var $p=class{constructor(t,r,n,s,i,a){this.options=void 0,this.babelrc=void 0,this.babelignore=void 0,this.config=void 0,this.fileHandling=void 0,this.files=void 0,this.options=t,this.babelignore=n,this.babelrc=r,this.config=s,this.fileHandling=i,this.files=a,Object.freeze(this)}hasFilesystemConfig(){return this.babelrc!==void 0||this.config!==void 0}};Object.freeze($p.prototype)});var WI=x(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.default=void 0;function RI(){let e=Zr();return RI=function(){return e},e}var Xb=Gs(),LI=Zc(),gye=vt(),qI=dp(),bye=vl(),Eye=Ub(),zb=pp();function Yb(){let e=zt();return Yb=function(){return e},e}var Qb=Ri(),Jb=Dl(),Tye=BI(),UI=jg(),xye=Kb(),Sye=qi(),lOe=Kp.default=RI()(function*(t){var r;let n=yield*(0,xye.default)(t);if(!n)return null;let{options:s,context:i,fileHandling:a}=n;if(a==="ignored")return null;let o={},{plugins:l,presets:u}=s;if(!l||!u)throw new Error("Assertion failure - plugins and presets exist");let c=Object.assign({},i,{targets:s.targets}),p=N=>{let L=(0,bye.getItemDescriptor)(N);if(!L)throw new Error("Assertion failure - must be config item");return L},d=u.map(p),m=l.map(p),g=[[]],f=[],b=[];if(yield*jI(i,function*N(L,W){let U=[];for(let pe=0;pe<L.length;pe++){let Ee=L[pe];if(Ee.options!==!1){try{var H=yield*wye(Ee,c)}catch(ce){throw ce.code==="BABEL_UNKNOWN_OPTION"&&(0,Jb.checkNoUnwrappedItemOptionPairs)(L,pe,"preset",ce),ce}b.push(H.externalDependencies),Ee.ownPass?U.push({preset:H.chain,pass:[]}):U.unshift({preset:H.chain,pass:W})}}if(U.length>0){g.splice(1,0,...U.map(pe=>pe.pass).filter(pe=>pe!==W));for(let{preset:pe,pass:Ee}of U){if(!pe||(Ee.push(...pe.plugins),yield*N(pe.presets,Ee)))return!0;pe.options.forEach(qe=>{(0,LI.mergeOptions)(o,qe)})}}})(d,g[0]))return null;let w=o;(0,LI.mergeOptions)(w,s);let I=Object.assign({},c,{assumptions:(r=w.assumptions)!=null?r:{}});return yield*jI(i,function*(){g[0].unshift(...m);for(let W of g){let U=[];f.push(U);for(let H=0;H<W.length;H++){let pe=W[H];if(pe.options!==!1){try{var L=yield*$I(pe,I)}catch(Ee){throw Ee.code==="BABEL_UNKNOWN_PLUGIN_PROPERTY"&&(0,Jb.checkNoUnwrappedItemOptionPairs)(W,H,"plugin",Ee),Ee}U.push(L),b.push(L.externalDependencies)}}}})(),w.plugins=f[0],w.presets=f.slice(1).filter(N=>N.length>
|
||
|
|
(While processing: ${JSON.stringify(s)})`,new Error(l)}return{value:o,options:r,dirname:n,alias:s,externalDependencies:(0,zb.finalize)(a)}}),vye=VI(UI.makePluginAPI),Pye=VI(UI.makePresetAPI),Aye=(0,Qb.makeWeakCache)(function*({value:e,options:t,dirname:r,alias:n,externalDependencies:s},i){let a=(0,Tye.validatePluginObject)(e),o=Object.assign({},a);if(o.visitor&&(o.visitor=Yb().default.explode(Object.assign({},o.visitor))),o.inherits){let l={name:void 0,alias:`${n}$inherits`,value:o.inherits,options:t,dirname:r},u=yield*(0,Xb.forwardAsync)($I,c=>i.invalidate(p=>c(l,p)));o.pre=Gb(u.pre,o.pre),o.post=Gb(u.post,o.post),o.manipulateOptions=Gb(u.manipulateOptions,o.manipulateOptions),o.visitor=Yb().default.visitors.merge([u.visitor||{},o.visitor||{}]),u.externalDependencies.length>0&&(s.length===0?s=u.externalDependencies:s=(0,zb.finalize)([s,u.externalDependencies]))}return new qI.default(o,t,n,s)});function*$I(e,t){if(e.value instanceof qI.default){if(e.options)throw new Error("Passed options to an existing Plugin instance will not work.");return e.value}return yield*Aye(yield*vye(e,t),t)}var Hb=e=>e&&typeof e!="function",MI=(e,t)=>{if(Hb(e.test)||Hb(e.include)||Hb(e.exclude)){let r=t.name?`"${t.name}"`:"/* your preset */";throw new Sye.default([`Preset ${r} requires a filename to be set when babel is called directly,`,"```",`babel.transformSync(code, { filename: 'file.ts', presets: [${r}] });`,"```","See https://babeljs.io/docs/en/options#filename for more information."].join(`
|
||
|
|
`))}},Cye=(e,t,r)=>{if(!t.filename){var n;let{options:s}=e;MI(s,r),(n=s.overrides)==null||n.forEach(i=>MI(i,r))}},Dye=(0,Qb.makeWeakCacheSync)(({value:e,dirname:t,alias:r,externalDependencies:n})=>({options:(0,Jb.validate)("preset",e),alias:r,dirname:t,externalDependencies:n}));function*wye(e,t){let r=Dye(yield*Pye(e,t));return Cye(r,t,e),{chain:yield*(0,Eye.buildPresetChain)(r,t),externalDependencies:r.externalDependencies}}function Gb(e,t){return e?t?function(...r){let n=e.apply(this,r);return n&&typeof n.then=="function"?n.then(()=>t.apply(this,r)):t.apply(this,r)}:e:t}});var Qa=x(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.createConfigItem=jye;gn.createConfigItemAsync=Lye;gn.createConfigItemSync=XI;Object.defineProperty(gn,"default",{enumerable:!0,get:function(){return KI.default}});gn.loadOptions=Fye;gn.loadOptionsAsync=kye;gn.loadOptionsSync=GI;gn.loadPartialConfig=Oye;gn.loadPartialConfigAsync=Nye;gn.loadPartialConfigSync=HI;function Yp(){let e=Zr();return Yp=function(){return e},e}var KI=WI(),Iye=Kb(),_ye=vl(),yn=fs(),Hp=Yp()(Iye.loadPartialConfig);function Nye(...e){return(0,yn.beginHiddenCallStack)(Hp.async)(...e)}function HI(...e){return(0,yn.beginHiddenCallStack)(Hp.sync)(...e)}function Oye(e,t){if(t!==void 0)(0,yn.beginHiddenCallStack)(Hp.errback)(e,t);else if(typeof e=="function")(0,yn.beginHiddenCallStack)(Hp.errback)(void 0,e);else return HI(e)}function*Bye(e){var t;let r=yield*(0,KI.default)(e);return(t=r==null?void 0:r.options)!=null?t:null}var Gp=Yp()(Bye);function kye(...e){return(0,yn.beginHiddenCallStack)(Gp.async)(...e)}function GI(...e){return(0,yn.beginHiddenCallStack)(Gp.sync)(...e)}function Fye(e,t){if(t!==void 0)(0,yn.beginHiddenCallStack)(Gp.errback)(e,t);else if(typeof e=="function")(0,yn.beginHiddenCallStack)(Gp.errback)(void 0,e);else return GI(e)}var Xp=Yp()(_ye.createConfigItem);function Lye(...e){return(0,yn.beginHiddenCallStack)(Xp.async)(...e)}function XI(...e){return(0,yn.beginHiddenCallStack)(Xp.sync)(...e)}function jye(e,t,r){if(r!==void 0)(0,yn.beginHiddenCallStack)(Xp.errback)(e,t,r);else if(typeof t=="function")(0,yn.beginHiddenCallStack)(Xp.errback)(e,void 0,r);else return XI(e,t)}});var YI=x(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.default=void 0;var Nl=class{constructor(t,r,n,s){this._map=new Map,this.key=void 0,this.file=void 0,this.opts=void 0,this.cwd=void 0,this.filename=void 0,this.isAsync=void 0,this.key=r,this.file=t,this.opts=n||{},this.cwd=t.opts.cwd,this.filename=t.opts.filename,this.isAsync=s}set(t,r){this._map.set(t,r)}get(t){return this._map.get(t)}availableHelper(t,r){return this.file.availableHelper(t,r)}addHelper(t){return this.file.addHelper(t)}buildCodeFrameError(t,r,n){return this.file.buildCodeFrameError(t,r,n)}};Jp.default=Nl;Nl.prototype.getModuleName=function(){return this.file.getModuleName()},Nl.prototype.addImport=function(){this.file.addImport()}});var e_=x(e1=>{"use strict";Object.defineProperty(e1,"__esModule",{value:!0});e1.default=Rye;function QI(){let e=zt();return QI=function(){return e},e}var Mye=dp(),Zb,JI={name:"internal.blockHoist",visitor:{Block:{exit({node:e}){e.body=zI(e.body)}},SwitchCase:{exit({node:e}){e.consequent=zI(e.consequent)}}}};function zI(e){let t=Math.pow(2,30)-1,r=!1;for(let n=0;n<e.length;n++){let s=e[n],i=ZI(s);if(i>t){r=!0;break}t=i}return r?qye(e.slice()):e}function Rye(){return Zb||(Zb=new Mye.default(Object.assign({},JI,{visitor:QI().default.explode(JI.visitor)}),{})),Zb}function ZI(e){let t=e==null?void 0:e._blockHoist;return t==null?1:t===!0?2:t}function qye(e){let t=Object.create(null);for(let s=0;s<e.length;s++){let i=e[s],a=ZI(i);(t[a]||(t[a]=[])).push(i)}let r=Object.keys(t).map(s=>+s).sort((s,i)=>i-s),n=0;for(let s of r){let i=t[s];for(let a of i)e[n++]=a}return e}});var r1=x(t1=>{"use strict";Object.defineProperty(t1,"__esModule",{value:!0});t1.default=Uye;function zp(){let e=require("path");return zp=function(){return e},e}function Uye(e){let{filename:t,cwd:r,filenameRelative:n=typeof t=="string"?zp().relative(r,t):"unknown",sourceType:s="module",inpu
|
||
|
|
`+i.stack)}}function Cr(e,t){t=t||{},t.hasComment&&(e=Kye(e)),t.encoding==="base64"?e=Qp(e):t.encoding==="uri"&&(e=decodeURIComponent(e)),(t.isJSON||t.encoding)&&(e=JSON.parse(e)),this.sourcemap=e}Cr.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)};typeof Buffer!="undefined"?typeof Buffer.from=="function"?Cr.prototype.toBase64=Gye:Cr.prototype.toBase64=Xye:Cr.prototype.toBase64=Yye;function Gye(){var e=this.toJSON();return Buffer.from(e,"utf8").toString("base64")}function Xye(){var e=this.toJSON();if(typeof e=="number")throw new TypeError("The json to encode must not be of type number.");return new Buffer(e,"utf8").toString("base64")}function Yye(){var e=this.toJSON();return btoa(unescape(encodeURIComponent(e)))}Cr.prototype.toURI=function(){var e=this.toJSON();return encodeURIComponent(e)};Cr.prototype.toComment=function(e){var t,r,n;return e!=null&&e.encoding==="uri"?(t="",r=this.toURI()):(t=";base64",r=this.toBase64()),n="sourceMappingURL=data:application/json;charset=utf-8"+t+","+r,e!=null&&e.multiline?"/*# "+n+" */":"//# "+n};Cr.prototype.toObject=function(){return JSON.parse(this.toJSON())};Cr.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)};Cr.prototype.setProperty=function(e,t){return this.sourcemap[e]=t,this};Cr.prototype.getProperty=function(e){return this.sourcemap[e]};Xt.fromObject=function(e){return new Cr(e)};Xt.fromJSON=function(e){return new Cr(e,{isJSON:!0})};Xt.fromURI=function(e){return new Cr(e,{encoding:"uri"})};Xt.fromBase64=function(e){return new Cr(e,{encoding:"base64"})};Xt.fromComment=function(e){var t,r;return e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),t=Xt.commentRegex.exec(e),r=t&&t[4]||"uri",new Cr(e,{encoding:r,hasComment:!0})};function t_(e){return new Cr(e,{isJSON:!0})}Xt.fromMapFileComment=function(e,t){if(typeof t=="string")throw new Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var r=Hye(e,t);return r!=null&&typeof r.then=="function"?r.then(t_):t_(r)};Xt.fromSource=function(e){var t=e.match(Xt.commentRegex);return t?Xt.fromComment(t.pop()):null};Xt.fromMapFileSource=function(e,t){if(typeof t=="string")throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var r=e.match(Xt.mapFileCommentRegex);return r?Xt.fromMapFileComment(r.pop(),t):null};Xt.removeComments=function(e){return e.replace(Xt.commentRegex,"")};Xt.removeMapFileComments=function(e){return e.replace(Xt.mapFileCommentRegex,"")};Xt.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r}});var s_=x(s1=>{"use strict";Object.defineProperty(s1,"__esModule",{value:!0});s1.default=Jye;var n_={asyncDoExpressions:{syntax:{name:"@babel/plugin-syntax-async-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions"}},decimal:{syntax:{name:"@babel/plugin-syntax-decimal",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal"}},decorators:{syntax:{name:"@babel/plugin-syntax-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators"},transform:{name:"@babel/plugin-proposal-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators"}},doExpressions:{syntax:{name:"@babel/plugin-syntax-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions"},transform:{name:"@babel/plugin-proposal-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions"}},exportDefaultFrom:{syntax:{name:"@babel/plugin-syntax-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-s
|
||
|
|
|
||
|
|
`+r,i=n_[e];if(i){let{syntax:o,transform:l}=i;if(o){let u=r_(o);if(l){let c=r_(l),p=l.name.startsWith("@babel/plugin")?"plugins":"presets";s+=`
|
||
|
|
|
||
|
|
Add ${c} to the '${p}' section of your Babel config to enable transformation.
|
||
|
|
If you want to leave it as-is, add ${u} to the 'plugins' section to enable parsing.`}else s+=`
|
||
|
|
|
||
|
|
Add ${u} to the 'plugins' section of your Babel config to enable parsing.`}}return s+=`
|
||
|
|
|
||
|
|
If you already added the plugin for this syntax to your config, it's possible that your config isn't being loaded.
|
||
|
|
You can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded configuration:
|
||
|
|
npx cross-env BABEL_SHOW_CONFIG_FOR=${n==="unknown"?"<name of the input file>":n} <your build command>
|
||
|
|
See https://babeljs.io/docs/configuration#print-effective-configs for more info.
|
||
|
|
`,s}});var o1=x(a1=>{"use strict";Object.defineProperty(a1,"__esModule",{value:!0});a1.default=Qye;function i1(){let e=Ro();return i1=function(){return e},e}function i_(){let e=Ta();return i_=function(){return e},e}var zye=s_();function*Qye(e,{parserOpts:t,highlightCode:r=!0,filename:n="unknown"},s){try{let i=[];for(let a of e)for(let o of a){let{parserOverride:l}=o;if(l){let u=l(s,t,i1().parse);u!==void 0&&i.push(u)}}if(i.length===0)return(0,i1().parse)(s,t);if(i.length===1){if(yield*[],typeof i[0].then=="function")throw new Error("You appear to be using an async parser plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");return i[0]}throw new Error("More than one plugin attempted to override parsing.")}catch(i){i.code==="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"&&(i.message+=`
|
||
|
|
Consider renaming the file to '.mjs', or setting sourceType:module or sourceType:unambiguous in your Babel config for this file.`);let{loc:a,missingPlugin:o}=i;if(a){let l=(0,i_().codeFrameColumns)(s,{start:{line:a.line,column:a.column+1}},{highlightCode:r});o?i.message=`${n}: `+(0,zye.default)(o[0],a,l,n):i.message=`${n}: ${i.message}
|
||
|
|
|
||
|
|
`+l,i.code="BABEL_PARSE_ERROR"}throw i}}});var a_=x(c1=>{"use strict";Object.defineProperty(c1,"__esModule",{value:!0});c1.default=Zye;var Zp=new Set,l1=0;function u1(e,t,r){if(e!==null){if(r){if(t.has(e))return t.get(e)}else if(++l1>250){if(Zp.has(e))throw l1=0,Zp.clear(),new Error("Babel-deepClone: Cycles are not allowed in AST");Zp.add(e)}let n;if(Array.isArray(e)){n=new Array(e.length),r&&t.set(e,n);for(let s=0;s<e.length;s++)n[s]=typeof e[s]!="object"?e[s]:u1(e[s],t,r)}else{n={},r&&t.set(e,n);let s=Object.keys(e);for(let i=0;i<s.length;i++){let a=s[i];n[a]=typeof e[a]!="object"?e[a]:u1(e[a],t,r||a==="leadingComments"||a==="innerComments"||a==="trailingComments"||a==="extra")}}return r||l1-- >250&&Zp.delete(e),n}return e}function Zye(e){if(typeof e!="object")return e;try{return u1(e,new Map,!0)}catch{return structuredClone(e)}}});var f_=x(h1=>{"use strict";Object.defineProperty(h1,"__esModule",{value:!0});h1.default=a0e;function u_(){let e=require("fs");return u_=function(){return e},e}function d1(){let e=require("path");return d1=function(){return e},e}function c_(){let e=Ti();return c_=function(){return e},e}function p_(){let e=Fe();return p_=function(){return e},e}function ef(){let e=n1();return ef=function(){return e},e}var e0e=cg(),t0e=o1(),r0e=a_(),{file:n0e,traverseFast:s0e}=p_(),p1=c_()("babel:transform:file"),i0e=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,.*$/,o_=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function*a0e(e,t,r,n){if(r=`${r||""}`,n){if(n.type==="Program")n=n0e(n,[],[]);else if(n.type!=="File")throw new Error("AST root must be a Program or File node");t.cloneInputAst&&(n=(0,r0e.default)(n))}else n=yield*(0,t0e.default)(e,t,r);let s=null;if(t.inputSourceMap!==!1){if(typeof t.inputSourceMap=="object"&&(s=ef().fromObject(t.inputSourceMap)),!s){let i=l_(i0e,n);if(i)try{s=ef().fromComment("//"+i)}catch{p1("discarding unknown inline input sourcemap")}}if(!s){let i=l_(o_,n);if(typeof t.filename=="string"&&i)try{let a=o_.exec(i),o=u_().readFileSync(d1().resolve(d1().dirname(t.filename),a[1]),"utf8");s=ef().fromJSON(o)}catch(a){p1("discarding unknown file input sourcemap",a)}else i&&p1("discarding un-loadable file input sourcemap")}}return new e0e.default(t,{code:r,ast:n,inputMap:s})}function f1(e,t,r){return t&&(t=t.filter(({value:n})=>e.test(n)?(r=n,!1):!0)),[t,r]}function l_(e,t){let r=null;return s0e(t,n=>{[n.leadingComments,r]=f1(e,n.leadingComments,r),[n.innerComments,r]=f1(e,n.innerComments,r),[n.trailingComments,r]=f1(e,n.trailingComments,r)}),r}});var d_=x((m1,y1)=>{(function(e,t){typeof m1=="object"&&typeof y1!="undefined"?y1.exports=t(rc(),Oy()):typeof define=="function"&&define.amd?define(["@jridgewell/trace-mapping","@jridgewell/gen-mapping"],t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.remapping=t(e.traceMapping,e.genMapping))})(m1,(function(e,t){"use strict";let r=s("",-1,-1,"",null),n=[];function s(f,b,T,w,I){return{source:f,line:b,column:T,name:w,content:I}}function i(f,b,T,w){return{map:f,sources:b,source:T,content:w}}function a(f,b){return i(f,b,"",null)}function o(f,b){return i(null,n,f,b)}function l(f){let b=new t.GenMapping({file:f.map.file}),{sources:T,map:w}=f,I=w.names,N=e.decodedMappings(w);for(let L=0;L<N.length;L++){let W=N[L];for(let U=0;U<W.length;U++){let H=W[U],pe=H[0],Ee=r;if(H.length!==1){let se=T[H[1]];if(Ee=u(se,H[2],H[3],H.length===5?I[H[4]]:""),Ee==null)continue}let{column:ce,line:qe,name:ze,content:Ot,source:J}=Ee;t.maybeAddSegment(b,L,pe,J,qe,ce,ze),J&&Ot!=null&&t.setSourceContent(b,J,Ot)}}return b}function u(f,b,T,w){if(!f.map)return s(f.source,b,T,w,f.content);let I=e.traceSegment(f.map,b,T);return I==null?null:I.length===1?r:u(f.sources[I[1]],I[2],I[3],I.length===5?f.map.names[I[4]]:w)}function c(f){return Array.isArray(f)?f:[f]}function p(f,b){let T=c(f).map(N=>new e.TraceMap(N,"")),w=T.pop();for(let N=0;N<T.length;N++)if(T[N].sources.length>1)throw new Error(`Transformation map ${N} must have exactly one source file.
|
||
|
|
Did you specify these with the most recent transformation maps first?`);let I=d(w,b,"",0);for(let N=T.length-1;N>=0;N--)I=a(T[N],[I]);return I}function d(f,b,T,w){let{resolvedSources:I,sourcesContent:N}=f,L=w+1,W=I.map((U,H)=>{let pe={importer:T,depth:L,source:U||"",content:void 0},Ee=b(pe.source,pe),{source:ce,content:qe}=pe;if(Ee)return d(new e.TraceMap(Ee,ce),b,ce,L);let ze=qe!==void 0?qe:N?N[H]:null;return o(ce,ze)});return a(f,W)}class m{constructor(b,T){let w=T.decodedMappings?t.toDecodedMap(b):t.toEncodedMap(b);this.version=w.version,this.file=w.file,this.mappings=w.mappings,this.names=w.names,this.sourceRoot=w.sourceRoot,this.sources=w.sources,T.excludeContent||(this.sourcesContent=w.sourcesContent)}toString(){return JSON.stringify(this)}}function g(f,b,T){let w=typeof T=="object"?T:{excludeContent:!!T,decodedMappings:!1},I=p(f,b);return new m(l(I),w)}return g}))});var y_=x(g1=>{"use strict";Object.defineProperty(g1,"__esModule",{value:!0});g1.default=o0e;function m_(){let e=d_();return m_=function(){return e},e}function o0e(e,t,r){let n=r.replace(/\\/g,"/"),s=!1,i=m_()(h_(t),(a,o)=>a===n&&!s?(s=!0,o.source="",h_(e)):null);return typeof e.sourceRoot=="string"&&(i.sourceRoot=e.sourceRoot),Object.assign({},i)}function h_(e){return Object.assign({},e,{sourceRoot:null})}});var b_=x(E1=>{"use strict";Object.defineProperty(E1,"__esModule",{value:!0});E1.default=u0e;function g_(){let e=n1();return g_=function(){return e},e}function b1(){let e=bc();return b1=function(){return e},e}var l0e=y_();function u0e(e,t){let{opts:r,ast:n,code:s,inputMap:i}=t,{generatorOpts:a}=r;a.inputSourceMap=i==null?void 0:i.toObject();let o=[];for(let p of e)for(let d of p){let{generatorOverride:m}=d;if(m){let g=m(n,a,s,b1().default);g!==void 0&&o.push(g)}}let l;if(o.length===0)l=(0,b1().default)(n,a,s);else if(o.length===1){if(l=o[0],typeof l.then=="function")throw new Error("You appear to be using an async codegen plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}else throw new Error("More than one plugin attempted to override codegen.");let{code:u,decodedMap:c=l.map}=l;return l.__mergedMap?c=Object.assign({},l.map):c&&(i?c=(0,l0e.default)(i.toObject(),c,a.sourceFileName):c=l.map),(r.sourceMaps==="inline"||r.sourceMaps==="both")&&(u+=`
|
||
|
|
`+g_().fromObject(c).toComment()),r.sourceMaps==="inline"&&(c=null),{outputCode:u,outputMap:c}}});var tf=x(S1=>{"use strict";Object.defineProperty(S1,"__esModule",{value:!0});S1.run=y0e;function x1(){let e=zt();return x1=function(){return e},e}var c0e=YI(),p0e=e_(),f0e=r1(),d0e=f_(),h0e=b_(),m0e=pp(),T1=Gs();function*y0e(e,t,r){let n=yield*(0,d0e.default)(e.passes,(0,f0e.default)(e),t,r),s=n.opts;try{yield*g0e(n,e.passes)}catch(u){var i;throw u.message=`${(i=s.filename)!=null?i:"unknown file"}: ${u.message}`,u.code||(u.code="BABEL_TRANSFORM_ERROR"),u}let a,o;try{s.code!==!1&&({outputCode:a,outputMap:o}=(0,h0e.default)(e.passes,n))}catch(u){var l;throw u.message=`${(l=s.filename)!=null?l:"unknown file"}: ${u.message}`,u.code||(u.code="BABEL_GENERATE_ERROR"),u}return{metadata:n.metadata,options:s,ast:s.ast===!0?n.ast:null,code:a===void 0?null:a,map:o===void 0?null:o,sourceType:n.ast.program.sourceType,externalDependencies:(0,m0e.flattenToSet)(e.externalDependencies)}}function*g0e(e,t){let r=yield*(0,T1.isAsync)();for(let n of t){let s=[],i=[],a=[];for(let l of n.concat([(0,p0e.default)()])){let u=new c0e.default(e,l.key,l.options,r);s.push([l,u]),i.push(u),a.push(l.visitor)}for(let[l,u]of s)l.pre&&(yield*(0,T1.maybeAsync)(l.pre,"You appear to be using an async plugin/preset, but Babel has been called synchronously").call(u,e));let o=x1().default.visitors.merge(a,i,e.opts.wrapPluginVisitorMethod);(0,x1().default)(e.ast,o,e.scope);for(let[l,u]of s)l.post&&(yield*(0,T1.maybeAsync)(l.post,"You appear to be using an async plugin/preset, but Babel has been called synchronously").call(u,e))}}});var P1=x(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.transformFile=x0e;Ol.transformFileAsync=v0e;Ol.transformFileSync=S0e;function E_(){let e=Zr();return E_=function(){return e},e}var b0e=Qa(),E0e=tf(),T0e=tp(),v1=E_()(function*(e,t){let r=Object.assign({},t,{filename:e}),n=yield*(0,b0e.default)(r);if(n===null)return null;let s=yield*T0e.readFile(e,"utf8");return yield*(0,E0e.run)(n,s)});function x0e(...e){v1.errback(...e)}function S0e(...e){return v1.sync(...e)}function v0e(...e){return v1.async(...e)}});var x_=x((vOe,T_)=>{T_.exports=function(t){return import(t)}});var S_=x((POe,P0e)=>{P0e.exports={name:"@babel/preset-typescript",version:"7.27.1",description:"Babel preset for TypeScript.",repository:{type:"git",url:"https://github.com/babel/babel.git",directory:"packages/babel-preset-typescript"},license:"MIT",publishConfig:{access:"public"},main:"./lib/index.js",keywords:["babel-preset","typescript"],dependencies:{"@babel/helper-plugin-utils":"^7.27.1","@babel/helper-validator-option":"^7.27.1","@babel/plugin-syntax-jsx":"^7.27.1","@babel/plugin-transform-modules-commonjs":"^7.27.1","@babel/plugin-transform-typescript":"^7.27.1"},peerDependencies:{"@babel/core":"^7.0.0-0"},devDependencies:{"@babel/core":"^7.27.1","@babel/helper-plugin-test-runner":"^7.27.1"},homepage:"https://babel.dev/docs/en/next/babel-preset-typescript",bugs:"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20typescript%22+is%3Aopen",engines:{node:">=6.9.0"},author:"The Babel Team (https://babel.dev/team)",type:"commonjs"}});var Ft=x(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.declare=v_;Bl.declarePreset=void 0;var A1={assertVersion:e=>t=>{C0e(t,e.version)}};Object.assign(A1,{targets:()=>()=>({}),assumption:()=>()=>{},addExternalDependency:()=>()=>{}});function v_(e){return(t,r,n)=>{let s;for(let i of Object.keys(A1))t[i]||(s!=null||(s=A0e(t)),s[i]=A1[i](s));return e(s!=null?s:t,r||{},n)}}var AOe=Bl.declarePreset=v_;function A0e(e){let t=null;return typeof e.version=="string"&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),t&&(!hasOwnProperty.call(t,"version")||!hasOwnProperty.call(t,"transform")||!hasOwnProperty.call(t,"template")||!hasOwnProperty.call(t,"types"))&&(t=null)),Object.assign({},t,e)}function C0e(e,t){if(typeof e=="number"){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if(typeof e!="string")throw new Error("Expec
|
||
|
|
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
|
||
|
|
`]):Dr.template.expression.ast`
|
||
|
|
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
|
||
|
|
`}},Y0e={memoise(e,t){let{scope:r,node:n}=e,{computed:s,property:i}=n;if(!s)return;let a=r.maybeGenerateMemoised(i);a&&this.memoiser.set(i,a,t)},prop(e){let{computed:t,property:r}=e.node;return this.memoiser.has(r)?br(this.memoiser.get(r)):t?br(r):j_(r.name)},_getPrototypeOfExpression(){let e=br(this.getObjectRef()),t=this.isStatic||this.isPrivateMethod?e:Gi(e,eo("prototype"));return xs(this.file.addHelper("getPrototypeOf"),[t])},get(e){return this._get(e)},_get(e){let t=this._getPrototypeOfExpression();return xs(this.file.addHelper("get"),[this.isDerivedConstructor?Xi([wr(),t]):t,this.prop(e),wr()])},set(e,t){let r=this._getPrototypeOfExpression();return xs(this.file.addHelper("set"),[this.isDerivedConstructor?Xi([wr(),r]):r,this.prop(e),t,wr(),Dr.types.booleanLiteral(e.isInStrictMode())])},destructureSet(e){throw e.buildCodeFrameError("Destructuring to a super field is not supported yet.")},call(e,t){return(0,lf.default)(this._get(e),wr(),t,!1)},optionalCall(e,t){return(0,lf.default)(this._get(e),br(wr()),t,!0)},delete(e){return e.node.computed?Xi([xs(this.file.addHelper("toPropertyKey"),[br(e.node.property)]),Dr.template.expression.ast`
|
||
|
|
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
|
||
|
|
`]):Dr.template.expression.ast`
|
||
|
|
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
|
||
|
|
`}},J0e=Object.assign({},M_,{prop(e){let{property:t}=e.node;return this.memoiser.has(t)?br(this.memoiser.get(t)):br(t)},get(e){let{isStatic:t,getSuperRef:r}=this,{computed:n}=e.node,s=this.prop(e),i;if(t){var a;i=(a=r())!=null?a:Gi(eo("Function"),eo("prototype"))}else{var o;i=Gi((o=r())!=null?o:eo("Object"),eo("prototype"))}return Gi(i,s,n)},set(e,t){let{computed:r}=e.node,n=this.prop(e);return G0e("=",Gi(wr(),n,r),t)},destructureSet(e){let{computed:t}=e.node,r=this.prop(e);return Gi(wr(),r,t)},call(e,t){return(0,lf.default)(this.get(e),wr(),t,!1)},optionalCall(e,t){return(0,lf.default)(this.get(e),wr(),t,!0)}}),k1=class{constructor(t){var r;let n=t.methodPath;this.methodPath=n,this.isDerivedConstructor=n.isClassMethod({kind:"constructor"})&&!!t.superRef,this.isStatic=n.isObjectMethod()||n.node.static||(n.isStaticBlock==null?void 0:n.isStaticBlock()),this.isPrivateMethod=n.isPrivate()&&n.isMethod(),this.file=t.file,this.constantSuper=(r=t.constantSuper)!=null?r:t.isLoose,this.opts=t}getObjectRef(){return br(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){if(this.opts.superRef)return br(this.opts.superRef);if(this.opts.getSuperRef)return br(this.opts.getSuperRef())}replace(){let{methodPath:t}=this;this.opts.refToPreserve&&t.traverse(X0e,{refName:this.opts.refToPreserve.name});let r=this.constantSuper?J0e:this.file.availableHelper("superPropSet")?M_:Y0e;L_.shouldSkip=n=>{if(n.parentPath===t&&(n.parentKey==="decorators"||n.parentKey==="key"))return!0},(0,H0e.default)(t,L_,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:r.get},r))}};to.default=k1});var cf=x(L1=>{"use strict";Object.defineProperty(L1,"__esModule",{value:!0});L1.default=tge;var z0e=Fe(),{addComment:Q0e}=z0e,Z0e="#__PURE__",ege=({leadingComments:e})=>!!e&&e.some(t=>/[@#]__PURE__/.test(t.value));function tge(e){let t=e.node||e;ege(t)||Q0e(t,"leading",Z0e)}});var Fl=x(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.isTransparentExprWrapper=j1;kl.skipTransparentExprWrapperNodes=cge;kl.skipTransparentExprWrappers=uge;var rge=Fe(),{isParenthesizedExpression:nge,isTSAsExpression:sge,isTSNonNullExpression:ige,isTSSatisfiesExpression:age,isTSTypeAssertion:oge,isTypeCastExpression:lge}=rge;function j1(e){return sge(e)||age(e)||oge(e)||ige(e)||lge(e)||nge(e)}function uge(e){for(;j1(e.node);)e=e.get("expression");return e}function cge(e){for(;j1(e);)e=e.expression;return e}});var R1=x(M1=>{"use strict";Object.defineProperty(M1,"__esModule",{value:!0});M1.assertFieldTransformed=pge;function pge(e){if(e.node.declare)throw e.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by @babel/plugin-transform-typescript.
|
||
|
|
If you have already enabled that plugin (or '@babel/preset-typescript'), make sure that it runs before any plugin related to additional class features:
|
||
|
|
- @babel/plugin-transform-class-properties
|
||
|
|
- @babel/plugin-transform-private-methods
|
||
|
|
- @babel/plugin-proposal-decorators`)}});var W1=x(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.buildCheckInRHS=df;ei.buildFieldsInitNodes=Fge;ei.buildPrivateNamesMap=gge;ei.buildPrivateNamesNodes=bge;ei.privateNameVisitorFactory=$1;ei.transformPrivateNamesUsage=Pge;var k=vt(),W_=zt(),fge=uf(),dge=N1(),R_=B1(),hge=cf(),mge=Fl(),yge=R1();Ir=e=>e.availableHelper("classPrivateFieldGet2");var Ir;function gge(e,t,r,n){let s=new Map,i;for(let a of r)if(a.isPrivate()){let{name:o}=a.node.key.id,l=s.get(o);if(!l){let u=!a.isProperty(),c=a.node.static,p=!1,d;!t&&Ir(n)&&u&&!c?(p=!!i,i!=null||(i=a.scope.generateUidIdentifier(`${e}_brand`)),d=i):d=a.scope.generateUidIdentifier(o),l={id:d,static:c,method:u,initAdded:p},s.set(o,l)}if(a.isClassPrivateMethod())if(a.node.kind==="get"){let{body:u}=a.node.body,c;u.length===1&&k.types.isReturnStatement(c=u[0])&&k.types.isCallExpression(c=c.argument)&&c.arguments.length===1&&k.types.isThisExpression(c.arguments[0])&&k.types.isIdentifier(c=c.callee)?(l.getId=k.types.cloneNode(c),l.getterDeclared=!0):l.getId=a.scope.generateUidIdentifier(`get_${o}`)}else if(a.node.kind==="set"){let{params:u}=a.node,{body:c}=a.node.body,p;c.length===1&&k.types.isExpressionStatement(p=c[0])&&k.types.isCallExpression(p=p.expression)&&p.arguments.length===2&&k.types.isThisExpression(p.arguments[0])&&k.types.isIdentifier(p.arguments[1],{name:u[0].name})&&k.types.isIdentifier(p=p.callee)?(l.setId=k.types.cloneNode(p),l.setterDeclared=!0):l.setId=a.scope.generateUidIdentifier(`set_${o}`)}else a.node.kind==="method"&&(l.methodId=a.scope.generateUidIdentifier(o));s.set(o,l)}return s}function bge(e,t,r,n){let s=[],i=new Set;for(let[a,o]of e){let{static:l,method:u,getId:c,setId:p}=o,d=c||p,m=k.types.cloneNode(o.id),g;if(t)g=k.types.callExpression(n.addHelper("classPrivateFieldLooseKey"),[k.types.stringLiteral(a)]);else if(r)g=k.types.callExpression(k.types.identifier("Symbol"),[k.types.stringLiteral(a)]);else if(!l){if(i.has(m.name))continue;i.add(m.name),g=k.types.newExpression(k.types.identifier(u&&(!d||Ir(n))?"WeakSet":"WeakMap"),[])}g&&(r||(0,hge.default)(g),s.push(k.template.statement.ast`var ${m} = ${g}`))}return s}function $1(e){let t=W_.visitors.environmentVisitor(Object.assign({},e)),r=Object.assign({},e,{Class(n){let{privateNamesMap:s}=this,i=n.get("body.body"),a=new Map(s),o=[];for(let l of i){if(!l.isPrivate())continue;let{name:u}=l.node.key.id;a.delete(u),o.push(u)}o.length&&(n.get("body").traverse(t,Object.assign({},this,{redeclared:o})),n.traverse(r,Object.assign({},this,{privateNamesMap:a})),n.skipKey("body"))}});return r}var Ege=$1({PrivateName(e,{noDocumentAll:t}){let{privateNamesMap:r,redeclared:n}=this,{node:s,parentPath:i}=e;if(!i.isMemberExpression({property:s})&&!i.isOptionalMemberExpression({property:s}))return;let{name:a}=s.id;r.has(a)&&(n!=null&&n.includes(a)||this.handle(i,t))}});function K_(e,t,r){for(;(n=t)!=null&&n.hasBinding(e)&&!t.bindingIdentifierEquals(e,r);){var n;t.rename(e),t=t.parent}}function df(e,t,r){return r||!(t.availableHelper!=null&&t.availableHelper("checkInRHS"))?e:k.types.callExpression(t.addHelper("checkInRHS"),[e])}var Tge=$1({BinaryExpression(e,{file:t}){let{operator:r,left:n,right:s}=e.node;if(r!=="in"||!k.types.isPrivateName(n))return;let{privateFieldsAsProperties:i,privateNamesMap:a,redeclared:o}=this,{name:l}=n.id;if(!a.has(l)||o!=null&&o.includes(l))return;if(K_(this.classRef.name,e.scope,this.innerBinding),i){let{id:p}=a.get(l);e.replaceWith(k.template.expression.ast`
|
||
|
|
Object.prototype.hasOwnProperty.call(${df(s,t)}, ${k.types.cloneNode(p)})
|
||
|
|
`);return}let{id:u,static:c}=a.get(l);if(c){e.replaceWith(k.template.expression.ast`${df(s,t)} === ${k.types.cloneNode(this.classRef)}`);return}e.replaceWith(k.template.expression.ast`${k.types.cloneNode(u)}.has(${df(s,t)})`)}});function pf(e,t){return k.types.callExpression(e.addHelper("readOnlyError"),[k.types.stringLiteral(`#${t}`)])}function xge(e,t){return e.availableHelper("writeOnlyError")?k.types.callExpression(e.addHelper("writeOnlyError"),[k.types.stringLiteral(`#${t}`)]):(console.warn("@babel/helpers is outdated, update it to silence this warning."),k.types.buildUndefinedNode())}function q1(e,t){return t?e:k.types.memberExpression(e,k.types.identifier("_"))}function q_(e){return function(t){return k.types.inherits(e.apply(this,arguments),t.node)}}var Sge={memoise(e,t){let{scope:r}=e,{object:n}=e.node,s=r.maybeGenerateMemoised(n);s&&this.memoiser.set(n,s,t)},receiver(e){let{object:t}=e.node;return this.memoiser.has(t)?k.types.cloneNode(this.memoiser.get(t)):k.types.cloneNode(t)},get:q_(function(e){let{classRef:t,privateNamesMap:r,file:n,innerBinding:s,noUninitializedPrivateFieldAccess:i}=this,a=e.node.property,{name:o}=a.id,{id:l,static:u,method:c,methodId:p,getId:d,setId:m}=r.get(o),g=d||m,f=b=>k.types.inherits(k.types.cloneNode(b),a);if(u){if(K_(t.name,e.scope,s),!Ir(n)){let w=c&&!g?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return k.types.callExpression(n.addHelper(w),[this.receiver(e),k.types.cloneNode(t),f(l)])}let b=this.receiver(e),T=k.types.isIdentifier(b)&&b.name===t.name;if(!c)return q1(T?f(l):k.types.callExpression(n.addHelper("assertClassBrand"),[k.types.cloneNode(t),b,f(l)]),i);if(d)return T?k.types.callExpression(f(d),[b]):k.types.callExpression(n.addHelper("classPrivateGetter"),[k.types.cloneNode(t),b,f(d)]);if(m){let w=k.types.buildUndefinedNode();return T?w:k.types.sequenceExpression([k.types.callExpression(n.addHelper("assertClassBrand"),[k.types.cloneNode(t),b]),w])}return T?f(l):k.types.callExpression(n.addHelper("assertClassBrand"),[k.types.cloneNode(t),b,f(l)])}return c?g?d?Ir(n)?k.types.callExpression(n.addHelper("classPrivateGetter"),[k.types.cloneNode(l),this.receiver(e),f(d)]):k.types.callExpression(n.addHelper("classPrivateFieldGet"),[this.receiver(e),f(l)]):k.types.sequenceExpression([this.receiver(e),xge(n,o)]):Ir(n)?k.types.callExpression(n.addHelper("assertClassBrand"),[k.types.cloneNode(l),this.receiver(e),f(p)]):k.types.callExpression(n.addHelper("classPrivateMethodGet"),[this.receiver(e),k.types.cloneNode(l),f(p)]):Ir(n)?k.types.callExpression(n.addHelper("classPrivateFieldGet2"),[f(l),this.receiver(e)]):k.types.callExpression(n.addHelper("classPrivateFieldGet"),[this.receiver(e),f(l)])}),boundGet(e){return this.memoise(e,1),k.types.callExpression(k.types.memberExpression(this.get(e),k.types.identifier("bind")),[this.receiver(e)])},set:q_(function(e,t){let{classRef:r,privateNamesMap:n,file:s,noUninitializedPrivateFieldAccess:i}=this,a=e.node.property,{name:o}=a.id,{id:l,static:u,method:c,setId:p,getId:d}=n.get(o),m=d||p,g=f=>k.types.inherits(k.types.cloneNode(f),a);if(u){if(!Ir(s)){let T=c&&!m?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return k.types.callExpression(s.addHelper(T),[this.receiver(e),k.types.cloneNode(r),g(l),t])}let f=this.receiver(e),b=k.types.isIdentifier(f)&&f.name===r.name;if(c&&!p){let T=pf(s,o);return b?k.types.sequenceExpression([t,T]):k.types.sequenceExpression([t,k.types.callExpression(s.addHelper("assertClassBrand"),[k.types.cloneNode(r),f]),pf(s,o)])}return p?b?k.types.callExpression(k.types.cloneNode(p),[f,t]):k.types.callExpression(s.addHelper("classPrivateSetter"),[k.types.cloneNode(r),g(p),f,t]):k.types.assignmentExpression("=",q1(g(l),i),b?t:k.types.callExpression(s.addHelper("assertClassBrand"),[k.types.cloneNode(r),f,t]))}return c?p?Ir(s)?k.types.callExpression(s.addHelper("classPrivateSetter"),[k.types.cloneNode(l),g(p),this.receiver(e),t]):k.types.callExpression(s.addHelper("classPrivateFieldSet"),[this.receiver(e),g(l),t]):k.types.sequenceExpression([this.receiver(e),t,pf(s,o)]):Ir(s)?k.types.cal
|
||
|
|
Object.defineProperty(${e}, ${k.types.cloneNode(n)}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
writable: true,
|
||
|
|
value: ${s}
|
||
|
|
});
|
||
|
|
`,t)}function Age(e,t,r,n){let{id:s}=r.get(t.node.key.id.name),i=t.node.value||t.scope.buildUndefinedNode();if(!n.availableHelper("classPrivateFieldInitSpec"))return dr(k.template.statement.ast`${k.types.cloneNode(s)}.set(${e}, {
|
||
|
|
// configurable is always false for private elements
|
||
|
|
// enumerable is always false for private elements
|
||
|
|
writable: true,
|
||
|
|
value: ${i},
|
||
|
|
})`,t);let a=n.addHelper("classPrivateFieldInitSpec");return V1(dr(k.types.expressionStatement(k.types.callExpression(a,[k.types.thisExpression(),V1(k.types.cloneNode(s),t.node.key),Ir(n)?i:k.template.expression.ast`{ writable: true, value: ${i} }`])),t),t.node)}function Cge(e,t,r){let n=t.get(e.node.key.id.name),s=r?e.node.value:k.template.expression.ast`{
|
||
|
|
_: ${e.node.value||k.types.buildUndefinedNode()}
|
||
|
|
}`;return dr(k.types.variableDeclaration("var",[k.types.variableDeclarator(k.types.cloneNode(n.id),s)]),e)}U1=function(e,t){let r=t.get(e.node.key.id.name),{id:n,getId:s,setId:i,initAdded:a}=r,o=s||i;if(!e.isProperty()&&(a||!o))return;if(o)return t.set(e.node.key.id.name,Object.assign({},r,{initAdded:!0})),dr(k.template.statement.ast`
|
||
|
|
var ${k.types.cloneNode(n)} = {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
get: ${s?s.name:e.scope.buildUndefinedNode()},
|
||
|
|
set: ${i?i.name:e.scope.buildUndefinedNode()}
|
||
|
|
}
|
||
|
|
`,e);let l=e.node.value||e.scope.buildUndefinedNode();return dr(k.template.statement.ast`
|
||
|
|
var ${k.types.cloneNode(n)} = {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
writable: true,
|
||
|
|
value: ${l}
|
||
|
|
};
|
||
|
|
`,e)};var U1;function Dge(e,t,r){let n=r.get(t.node.key.id.name),{methodId:s,id:i,getId:a,setId:o,initAdded:l}=n;if(l)return;if(s)return dr(k.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, ${i}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
value: ${s.name}
|
||
|
|
});
|
||
|
|
`,t);if(a||o)return r.set(t.node.key.id.name,Object.assign({},n,{initAdded:!0})),dr(k.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, ${i}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
get: ${a?a.name:t.scope.buildUndefinedNode()},
|
||
|
|
set: ${o?o.name:t.scope.buildUndefinedNode()}
|
||
|
|
});
|
||
|
|
`,t)}function wge(e,t,r,n){let s=r.get(t.node.key.id.name);if(!s.initAdded)return!Ir(n)&&(s.getId||s.setId)?Ige(e,t,r,n):_ge(e,t,r,n)}function Ige(e,t,r,n){let s=r.get(t.node.key.id.name),{id:i,getId:a,setId:o}=s;if(r.set(t.node.key.id.name,Object.assign({},s,{initAdded:!0})),!n.availableHelper("classPrivateFieldInitSpec"))return dr(k.template.statement.ast`
|
||
|
|
${i}.set(${e}, {
|
||
|
|
get: ${a?a.name:t.scope.buildUndefinedNode()},
|
||
|
|
set: ${o?o.name:t.scope.buildUndefinedNode()}
|
||
|
|
});
|
||
|
|
`,t);let l=n.addHelper("classPrivateFieldInitSpec");return V1(dr(k.template.statement.ast`${l}(
|
||
|
|
${k.types.thisExpression()},
|
||
|
|
${k.types.cloneNode(i)},
|
||
|
|
{
|
||
|
|
get: ${a?a.name:t.scope.buildUndefinedNode()},
|
||
|
|
set: ${o?o.name:t.scope.buildUndefinedNode()}
|
||
|
|
},
|
||
|
|
)`,t),t.node)}function _ge(e,t,r,n){let s=r.get(t.node.key.id.name),{id:i}=s;if(!n.availableHelper("classPrivateMethodInitSpec"))return dr(k.template.statement.ast`${i}.add(${e})`,t);let a=n.addHelper("classPrivateMethodInitSpec");return dr(k.template.statement.ast`${a}(
|
||
|
|
${k.types.thisExpression()},
|
||
|
|
${k.types.cloneNode(i)}
|
||
|
|
)`,t)}function V_(e,t){let{key:r,computed:n}=t.node,s=t.node.value||t.scope.buildUndefinedNode();return dr(k.types.expressionStatement(k.types.assignmentExpression("=",k.types.memberExpression(e,r,n||k.types.isLiteral(r)),s)),t)}function $_(e,t,r){let{key:n,computed:s}=t.node,i=t.node.value||t.scope.buildUndefinedNode();return dr(k.types.expressionStatement(k.types.callExpression(r.addHelper("defineProperty"),[e,s||k.types.isLiteral(n)?n:k.types.stringLiteral(n.name),i])),t)}function Nge(e,t,r,n){let s=n.get(t.node.key.id.name),{id:i,methodId:a,getId:o,setId:l,initAdded:u}=s;return u?void 0:o||l?(n.set(t.node.key.id.name,Object.assign({},s,{initAdded:!0})),dr(k.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, ${i}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
get: ${o?o.name:t.scope.buildUndefinedNode()},
|
||
|
|
set: ${l?l.name:t.scope.buildUndefinedNode()}
|
||
|
|
})
|
||
|
|
`,t)):dr(k.template.statement.ast`
|
||
|
|
Object.defineProperty(${e}, ${i}, {
|
||
|
|
// configurable is false by default
|
||
|
|
// enumerable is false by default
|
||
|
|
// writable is false by default
|
||
|
|
value: ${a.name}
|
||
|
|
});
|
||
|
|
`,t)}function ff(e,t,r,n=!1){let s=r.get(t.node.key.id.name),{id:i,methodId:a,getId:o,setId:l,getterDeclared:u,setterDeclared:c,static:p}=s,{params:d,body:m,generator:g,async:f}=t.node,b=o&&d.length===0,T=l&&d.length>0;if(b&&u||T&&c)return r.set(t.node.key.id.name,Object.assign({},s,{initAdded:!0})),null;if(Ir(e)&&(b||T)&&!n){let I=t.get("body").scope,N=I.generateUidIdentifier("this"),L={thisRef:N,argumentsPath:[]};if(t.traverse(H_,L),L.argumentsPath.length){let W=I.generateUidIdentifier("arguments");I.push({id:W,init:k.template.expression.ast`[].slice.call(arguments, 1)`});for(let U of L.argumentsPath)U.replaceWith(k.types.cloneNode(W))}d.unshift(k.types.cloneNode(N))}let w=a;return b?(r.set(t.node.key.id.name,Object.assign({},s,{getterDeclared:!0,initAdded:!0})),w=o):T?(r.set(t.node.key.id.name,Object.assign({},s,{setterDeclared:!0,initAdded:!0})),w=l):p&&!n&&(w=i),dr(k.types.functionDeclaration(k.types.cloneNode(w),d,m,g,f),t)}var H_=W_.visitors.environmentVisitor({Identifier(e,t){t.argumentsPath&&e.node.name==="arguments"&&t.argumentsPath.push(e)},UnaryExpression(e){let{node:t}=e;if(t.operator==="delete"){let r=(0,mge.skipTransparentExprWrapperNodes)(t.argument);k.types.isThisExpression(r)&&e.replaceWith(k.types.booleanLiteral(!0))}},ThisExpression(e,t){t.needsClassRef=!0,e.replaceWith(k.types.cloneNode(t.thisRef))},MetaProperty(e){let{node:t,scope:r}=e;t.meta.name==="new"&&t.property.name==="target"&&e.replaceWith(r.buildUndefinedNode())}}),Oge={ReferencedIdentifier(e,t){e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)&&(t.needsClassRef=!0,e.node.name=t.thisRef.name)}};function Bge(e,t,r){var n;let s={thisRef:t,needsClassRef:!1,innerBinding:r};return e.isMethod()||e.traverse(H_,s),r!=null&&(n=s.thisRef)!=null&&n.name&&s.thisRef.name!==r.name&&e.traverse(Oge,s),s.needsClassRef}function kge({key:e,computed:t}){return e.type==="Identifier"?!t&&(e.name==="name"||e.name==="length"):e.type==="StringLiteral"?e.value==="name"||e.value==="length":!1}function dr(e,t){return k.types.inheritLeadingComments(e,t.node),k.types.inheritInnerComments(e,t.node),e}function V1(e,t){return e.start=t.start,e.end=t.end,e.loc=t.loc,e}function Fge(e,t,r,n,s,i,a,o,l,u){let c=0,p,d=[],m=[],g=!1,f=[],b=null,T=k.types.isIdentifier(t)?()=>t:()=>(p!=null||(p=r[0].scope.generateUidIdentifierBasedOnNode(t)),p),w=e!=null?e:r[0].scope.generateUidIdentifier((u==null?void 0:u.name)||"Class");e!=null||(e=k.types.cloneNode(u));for(let I of r){I.isClassProperty()&&yge.assertFieldTransformed(I);let N=!(k.types.isStaticBlock!=null&&k.types.isStaticBlock(I.node))&&I.node.static,L=!N,W=I.isPrivate(),U=!W,H=I.isProperty(),pe=!H,Ee=I.isStaticBlock==null?void 0:I.isStaticBlock();switch(N&&(c|=1),(N||pe&&W||Ee)&&(new fge.default({methodPath:I,constantSuper:l,file:s,refToPreserve:u,getSuperRef:T,getObjectRef(){return c|=2,N||Ee?w:k.types.memberExpression(w,k.types.identifier("prototype"))}}).replace(),Bge(I,w,u)&&(c|=2)),g=!1,!0){case Ee:{let ce=I.node.body;ce.length===1&&k.types.isExpressionStatement(ce[0])?d.push(dr(ce[0],I)):d.push(k.types.inheritsComments(k.template.statement.ast`(() => { ${ce} })()`,I.node));break}case(N&&W&&H&&a):d.push(U_(k.types.cloneNode(e),I,n));break;case(N&&W&&H&&!a):Ir(s)?d.push(Cge(I,n,o)):d.push(U1(I,n));break;case(N&&U&&H&&i):if(!kge(I.node)){d.push(V_(k.types.cloneNode(e),I));break}case(N&&U&&H&&!i):d.push($_(k.types.cloneNode(e),I,s));break;case(L&&W&&H&&a):m.push(U_(k.types.thisExpression(),I,n));break;case(L&&W&&H&&!a):m.push(Age(k.types.thisExpression(),I,n,s));break;case(L&&W&&pe&&a):m.unshift(Dge(k.types.thisExpression(),I,n)),f.push(ff(s,I,n,a));break;case(L&&W&&pe&&!a):m.unshift(wge(k.types.thisExpression(),I,n,s)),f.push(ff(s,I,n,a));break;case(N&&W&&pe&&!a):Ir(s)||d.unshift(U1(I,n)),f.push(ff(s,I,n,a));break;case(N&&W&&pe&&a):d.unshift(Nge(k.types.cloneNode(e),I,s,n)),f.push(ff(s,I,n,a));break;case(L&&U&&H&&i):m.push(V_(k.types.thisExpression(),I));break;case(L&&U&&H&&!i):g=!0,m.push($_(k.types.thisExpression(),I,s));break;default:throw new Error("Unreachable.")}}return c&2&&u!=null&&(b=k.types.expressionS
|
||
|
|
function () {
|
||
|
|
return this.${C.types.cloneNode(e)};
|
||
|
|
}
|
||
|
|
`,C.template.expression.ast`
|
||
|
|
function (value) {
|
||
|
|
this.${C.types.cloneNode(e)} = value;
|
||
|
|
}
|
||
|
|
`]:[C.template.expression.ast`
|
||
|
|
o => o.${C.types.cloneNode(e)}
|
||
|
|
`,C.template.expression.ast`
|
||
|
|
(o, v) => o.${C.types.cloneNode(e)} = v
|
||
|
|
`]}function Q1(e){if(e=(0,ti.skipTransparentExprWrappers)(e),e.isSequenceExpression()){let t=e.get("expressions");return Q1(t[t.length-1])}return e}function Hge(e){let t=Q1(e);if(t.isConstantExpression())return C.types.cloneNode(e.node);if(t.isIdentifier()&&e.scope.hasUid(t.node.name))return C.types.cloneNode(e.node);if(t.isAssignmentExpression()&&t.get("left").isIdentifier())return C.types.cloneNode(t.node.left);throw new Error(`Internal Error: the computed key ${e.toString()} has not yet been memoised.`)}function jl(e,t){let r=t.get("key");r.isSequenceExpression()?e.push(...r.node.expressions):e.push(r.node),r.replaceWith(ni(e))}function Gge(e,t){let r=t.get("key"),n=Q1(r);if(n.isConstantExpression())jl(e,t);else{let s=r.scope.parent,i=(0,hf.memoiseComputedKey)(n.node,s,s.generateUid("computedKey"));if(!i)jl(e,t);else{let a=[...e,C.types.cloneNode(i.left)],o=n.parentPath;o.isSequenceExpression()?o.pushContainer("expressions",a):n.replaceWith(ni([C.types.cloneNode(i),...a]))}}}function G1(e,t){let r=t.get("value");r.node?e.push(r.node):e.length>0&&(e[e.length-1]=C.types.unaryExpression("void",e[e.length-1])),r.replaceWith(ni(e))}function Xge(e,t){t.unshiftContainer("body",C.types.expressionStatement(ni(e)))}function Yge(e,t){t.node.body.body.unshift(C.types.expressionStatement(ni(e)))}function Z_(e,t){return C.types.isCallExpression(e)&&C.types.isIdentifier(e.callee,{name:t.name})}function Jge(e,t){if(t){if(e.length>=2&&Z_(e[1],t)){let r=C.types.callExpression(C.types.cloneNode(t),[e[0]]);e.splice(0,2,r)}e.length>=2&&C.types.isThisExpression(e[e.length-1])&&Z_(e[e.length-2],t)&&e.splice(e.length-1,1)}return ni(e)}function zge(e,t,r){t.traverse({CallExpression:{exit(n){if(!n.get("callee").isSuper())return;let s=[n.node,...e.map(i=>C.types.cloneNode(i))];n.isCompletionRecord()&&s.push(C.types.thisExpression()),n.replaceWith(Jge(s,r)),n.skip()}},ClassMethod(n){n.node.kind==="constructor"&&n.skip()}})}function eN(e,t){let r=[C.types.expressionStatement(ni(e))];return t&&r.unshift(C.types.expressionStatement(C.types.callExpression(C.types.super(),[C.types.spreadElement(C.types.identifier("args"))]))),C.types.classMethod("constructor",C.types.identifier("constructor"),t?[C.types.restElement(C.types.identifier("args"))]:[],C.types.blockStatement(r))}function tN(e){return C.types.staticBlock([C.types.expressionStatement(ni(e))])}var Yi=0,ri=1,Qge=2,oN=3,mf=4,Zge=5,ebe=8,tbe=16;function rbe(e){switch(e.node.type){case"ClassProperty":case"ClassPrivateProperty":return Yi;case"ClassAccessorProperty":return ri;case"ClassMethod":case"ClassPrivateMethod":return e.node.kind==="get"?oN:e.node.kind==="set"?mf:Qge}}function nbe(e){return[...e.filter(t=>t.isStatic&&t.kind>=ri&&t.kind<=mf),...e.filter(t=>!t.isStatic&&t.kind>=ri&&t.kind<=mf),...e.filter(t=>t.isStatic&&t.kind===Yi),...e.filter(t=>!t.isStatic&&t.kind===Yi)]}function rN(e,t,r){let n=e.length,s=t.some(Boolean),i=[];for(let a=0;a<n;a++)(r==="2023-11"||r==="2023-05")&&s&&i.push(t[a]||C.types.unaryExpression("void",C.types.numericLiteral(0))),i.push(e[a].expression);return{haveThis:s,decs:i}}function sbe(e,t){return C.types.arrayExpression(e.map(r=>{let n=r.kind;return r.isStatic&&(n+=t==="2023-11"||t==="2023-05"?ebe:Zge),r.decoratorsHaveThis&&(n+=tbe),C.types.arrayExpression([r.decoratorsArray,C.types.numericLiteral(n),r.name,...r.privateMethods||[]])}))}function ibe(e){let t=[];for(let r of e){let{locals:n}=r;Array.isArray(n)?t.push(...n):n!==void 0&&t.push(n)}return t}function abe(e,t,r,n,s,i){t.insertAfter(C.types.classPrivateMethod("get",C.types.cloneNode(r),[],C.types.blockStatement([C.types.returnStatement(C.types.callExpression(C.types.cloneNode(n),e==="2023-11"&&i?[]:[C.types.thisExpression()]))]),i)),t.insertAfter(C.types.classPrivateMethod("set",C.types.cloneNode(r),[C.types.identifier("v")],C.types.blockStatement([C.types.expressionStatement(C.types.callExpression(C.types.cloneNode(s),e==="2023-11"&&i?[C.types.identifier("v")]:[C.types.thisExpression(),C.types.identifier("v")]))]),i))}function obe(e,t,r,n){let s,i;e.node.kind==="set"?(s=[C.types.identifier("v")],i=
|
||
|
|
class extends ${t.addHelper("identity")} {}
|
||
|
|
`;F.body.body=[C.types.classProperty(C.types.toExpression(gt),void 0,void 0,void 0,!0,!0),...R];let Q=[],ie=C.types.newExpression(F,[]);Te.length>0&&Q.push(...Te),ut&&(pt=!0,Q.push(ut)),Q.length>0?(Q.unshift(C.types.callExpression(C.types.super(),[C.types.cloneNode(ce)])),F.body.body.push(eN(Q,!1))):ie.arguments.push(C.types.cloneNode(ce));let[ve]=e.replaceWith(ie);Ke=ve.get("callee").get("body").get("body.0.key")}}!pt&&ut&&e.node.body.body.push(C.types.staticBlock([C.types.expressionStatement(ut)]));let{superClass:_r}=gt;if(_r&&(a==="2023-11"||a==="2023-05")){let R=e.scope.maybeGenerateMemoised(_r);R&&(gt.superClass=C.types.assignmentExpression("=",R,_r),_r=R)}let xr=C.types.staticBlock([]);gt.body.body.unshift(xr);let nr=xr.body;if(j.length>0){let R=Ke.get("body.body"),F;for(let Q of R)if((Q.isClassProperty()||Q.isClassMethod())&&Q.node.kind!=="constructor"){F=Q;break}F!=null?(fbe(F),jl(j,F)):(gt.body.body.unshift(C.types.classProperty(C.types.sequenceExpression([...j,C.types.stringLiteral("_")]),void 0,void 0,void 0,!0,!0)),nr.push(C.types.expressionStatement(C.types.unaryExpression("delete",C.types.memberExpression(C.types.thisExpression(),C.types.identifier("_")))))),j=[]}if(nr.push(C.types.expressionStatement(mbe(we,Ve,De,G!=null?G:C.types.arrayExpression(V),C.types.numericLiteral(se),de?re:null,N,C.types.cloneNode(_r),t,a))),w&&nr.push(C.types.expressionStatement(C.types.callExpression(C.types.cloneNode(w),[C.types.thisExpression()]))),Dt.length>0&&nr.push(...Dt.map(R=>C.types.expressionStatement(R))),e.insertBefore(g.map(R=>C.types.expressionStatement(R))),J)if(!f.getBinding(ce.name).constantViolations.length)e.insertBefore(C.types.variableDeclaration("let",[C.types.variableDeclarator(C.types.cloneNode(ce))]));else{let F=f.generateUidIdentifier("t"+ce.name),Q=ce;e.replaceWithMultiple([C.types.variableDeclaration("let",[C.types.variableDeclarator(C.types.cloneNode(Q)),C.types.variableDeclarator(F)]),C.types.blockStatement([C.types.variableDeclaration("let",[C.types.variableDeclarator(C.types.cloneNode(ce))]),e.node,C.types.expressionStatement(C.types.assignmentExpression("=",C.types.cloneNode(F),C.types.cloneNode(ce)))]),C.types.expressionStatement(C.types.assignmentExpression("=",C.types.cloneNode(Q),C.types.cloneNode(F)))])}return pe.size>0&&dbe(e,pe),e.scope.crawl(),e}function mbe(e,t,r,n,s,i,a,o,l,u){let c,p,d=[a?lN(l,a):C.types.thisExpression(),n,r];{if(u!=="2023-11"&&d.splice(1,2,r,n),u==="2021-12"||u==="2022-03"&&!l.availableHelper("applyDecs2203R"))return c=C.types.arrayPattern([...e,...t]),p=C.types.callExpression(l.addHelper(u==="2021-12"?"applyDecs":"applyDecs2203"),d),C.types.assignmentExpression("=",c,p);u==="2022-03"?p=C.types.callExpression(l.addHelper("applyDecs2203R"),d):u==="2023-01"?(i&&d.push(X1(i)),p=C.types.callExpression(l.addHelper("applyDecs2301"),d)):u==="2023-05"&&((i||o||s.value!==0)&&d.push(s),i?d.push(X1(i)):o&&d.push(C.types.unaryExpression("void",C.types.numericLiteral(0))),o&&d.push(o),p=C.types.callExpression(l.addHelper("applyDecs2305"),d))}return u==="2023-11"&&((i||o||s.value!==0)&&d.push(s),i?d.push(X1(i)):o&&d.push(C.types.unaryExpression("void",C.types.numericLiteral(0))),o&&d.push(o),p=C.types.callExpression(l.addHelper("applyDecs2311"),d)),e.length>0?t.length>0?c=C.types.objectPattern([C.types.objectProperty(C.types.identifier("e"),C.types.arrayPattern(e)),C.types.objectProperty(C.types.identifier("c"),C.types.arrayPattern(t))]):(c=C.types.arrayPattern(e),p=C.types.memberExpression(p,C.types.identifier("e"),!1,!1)):(c=C.types.arrayPattern(t),p=C.types.memberExpression(p,C.types.identifier("c"),!1,!1)),C.types.assignmentExpression("=",c,p)}function ybe(e){return e.type==="Identifier"?e.name==="__proto__":e.value==="__proto__"}function Ml(e){return e.decorators&&e.decorators.length>0}function gbe(e){switch(e.type){case"ClassAccessorProperty":return!0;case"ClassMethod":case"ClassProperty":case"ClassPrivateMethod":case"ClassPrivateProperty":return Ml(e);default:return!1}}function bbe(e){return Ml(e)||e.body.body.some(gbe)}function Ebe(e,t){function r(n,s,i){switch(s.typ
|
||
|
|
${Cbe(n)}(
|
||
|
|
${p||Ct.types.nullLiteral()},
|
||
|
|
function (${a}, ${u?Ct.types.cloneNode(c):null}) {
|
||
|
|
${s}
|
||
|
|
return { F: ${Ct.types.cloneNode(s.id)}, d: ${d} };
|
||
|
|
},
|
||
|
|
${u}
|
||
|
|
)
|
||
|
|
`;l||m.arguments[1].body.directives.push(Ct.types.directive(Ct.types.directiveLiteral("use strict")));let g=m,f="arguments.1.body.body.0";return o&&(g=Ct.template.statement.ast`let ${e} = ${m}`,f="declarations.0.init."+f),{instanceNodes:[Ct.template.statement.ast`
|
||
|
|
${Ct.types.cloneNode(a)}(this)
|
||
|
|
`],wrapClass(b){return b.replaceWith(g),b.get(f)}}}});var hN=x(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.FEATURES=void 0;Ji.enableFeature=wbe;Ji.isLoose=nE;Ji.shouldTransform=Ibe;var pN=Z1(),Ss=Ji.FEATURES=Object.freeze({fields:2,privateMethods:4,decorators:8,privateIn:16,staticBlocks:32}),fN=new Map([[Ss.fields,"@babel/plugin-transform-class-properties"],[Ss.privateMethods,"@babel/plugin-transform-private-methods"],[Ss.privateIn,"@babel/plugin-transform-private-property-in-object"]]),tE="@babel/plugin-class-features/featuresKey",ql="@babel/plugin-class-features/looseKey";si="@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing";var si;rE=function(e,t){return!!(e.get(si)&t)};var rE;function wbe(e,t,r){(!vs(e,t)||rE(e,t))&&(e.set(tE,e.get(tE)|t),r==="#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error"?(yf(e,t,!0),e.set(si,e.get(si)|t)):r==="#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"?(yf(e,t,!1),e.set(si,e.get(si)|t)):yf(e,t,r));let n;for(let[i,a]of fN){if(!vs(e,i)||rE(e,i))continue;let o=nE(e,i);if(n===!o)throw new Error(`'loose' mode configuration must be the same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods and @babel/plugin-transform-private-property-in-object (when they are enabled).
|
||
|
|
|
||
|
|
`+dN(e));n=o;var s=a}if(n!==void 0)for(let[i,a]of fN)vs(e,i)&&nE(e,i)!==n&&(yf(e,i,n),console.warn(`Though the "loose" option was set to "${!n}" in your @babel/preset-env config, it will not be used for ${a} since the "loose" mode option was set to "${n}" for ${s}.
|
||
|
|
The "loose" option must be the same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods and @babel/plugin-transform-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
|
||
|
|
["${a}", { "loose": ${n} }]
|
||
|
|
to the "plugins" section of your Babel config.
|
||
|
|
|
||
|
|
`+dN(e)))}function dN(e){let{filename:t}=e.opts;return(!t||t==="unknown")&&(t="[name of the input file]"),`If you already set the same 'loose' mode for these plugins in your config, it's possible that they are enabled multiple times with different options.
|
||
|
|
You can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded configuration:
|
||
|
|
npx cross-env BABEL_SHOW_CONFIG_FOR=${t} <your build command>
|
||
|
|
See https://babeljs.io/docs/configuration#print-effective-configs for more info.`}function vs(e,t){return!!(e.get(tE)&t)}function nE(e,t){return!!(e.get(ql)&t)}function yf(e,t,r){r?e.set(ql,e.get(ql)|t):e.set(ql,e.get(ql)&~t),e.set(si,e.get(si)&~t)}function Ibe(e,t){let r=null,n=null,s=null,i=null,a=null;(0,pN.hasOwnDecorators)(e.node)&&(r=e.get("decorators.0"));for(let o of e.get("body.body"))!r&&(0,pN.hasOwnDecorators)(o.node)&&(r=o.get("decorators.0")),!n&&o.isClassProperty()&&(n=o),!s&&o.isClassPrivateProperty()&&(s=o),!i&&o.isClassPrivateMethod!=null&&o.isClassPrivateMethod()&&(i=o),!a&&o.isStaticBlock!=null&&o.isStaticBlock()&&(a=o);if(r&&s)throw s.buildCodeFrameError("Private fields in decorated classes are not supported yet.");if(r&&i)throw i.buildCodeFrameError("Private methods in decorated classes are not supported yet.");if(r&&!vs(t,Ss.decorators))throw e.buildCodeFrameError(`Decorators are not enabled.
|
||
|
|
If you are using ["@babel/plugin-proposal-decorators", { "version": "legacy" }], make sure it comes *before* "@babel/plugin-transform-class-properties" and enable loose mode, like so:
|
||
|
|
["@babel/plugin-proposal-decorators", { "version": "legacy" }]
|
||
|
|
["@babel/plugin-transform-class-properties", { "loose": true }]`);if(i&&!vs(t,Ss.privateMethods))throw i.buildCodeFrameError("Class private methods are not enabled. Please add `@babel/plugin-transform-private-methods` to your configuration.");if((n||s)&&!vs(t,Ss.fields)&&!vs(t,Ss.privateMethods))throw e.buildCodeFrameError("Class fields are not enabled. Please add `@babel/plugin-transform-class-properties` to your configuration.");if(a&&!vs(t,Ss.staticBlocks))throw e.buildCodeFrameError("Static class blocks are not enabled. Please add `@babel/plugin-transform-class-static-block` to your configuration.");return!!(r||i||a||(n||s)&&vs(t,Ss.fields))}});var so=x(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Object.defineProperty(Qi,"FEATURES",{enumerable:!0,get:function(){return no.FEATURES}});Object.defineProperty(Qi,"buildCheckInRHS",{enumerable:!0,get:function(){return Ul.buildCheckInRHS}});Qi.createClassFeaturePlugin=Bbe;Object.defineProperty(Qi,"enableFeature",{enumerable:!0,get:function(){return no.enableFeature}});Object.defineProperty(Qi,"injectInitialization",{enumerable:!0,get:function(){return aE.injectInitialization}});var sE=vt(),_be=ps(),Ul=W1(),iE=Z1(),Nbe=cN(),aE=K1(),no=hN(),Obe=R1(),zi="@babel/plugin-class-features/version";function Bbe({name:e,feature:t,loose:r,manipulateOptions:n,api:s,inherits:i,decoratorVersion:a}){var o;if(t&no.FEATURES.decorators&&(a==="2023-11"||a==="2023-05"||a==="2023-01"||a==="2022-03"||a==="2021-12"))return(0,iE.default)(s,{loose:r},a,i);s!=null||(s={assumption:()=>{}});let l=s.assumption("setPublicClassFields"),u=s.assumption("privateFieldsAsSymbols"),c=s.assumption("privateFieldsAsProperties"),p=(o=s.assumption("noUninitializedPrivateFieldAccess"))!=null?o:!1,d=s.assumption("constantSuper"),m=s.assumption("noDocumentAll");if(c&&u)throw new Error('Cannot enable both the "privateFieldsAsProperties" and "privateFieldsAsSymbols" assumptions as the same time.');let g=c||u;if(r===!0){let f=[];l!==void 0&&f.push('"setPublicClassFields"'),c!==void 0&&f.push('"privateFieldsAsProperties"'),u!==void 0&&f.push('"privateFieldsAsSymbols"'),f.length!==0&&console.warn(`[${e}]: You are using the "loose: true" option and you are explicitly setting a value for the ${f.join(" and ")} assumption${f.length>1?"s":""}. The "loose" option can cause incompatibilities with the other class features plugins, so it's recommended that you replace it with the following top-level option:
|
||
|
|
"assumptions": {
|
||
|
|
"setPublicClassFields": true,
|
||
|
|
"privateFieldsAsSymbols": true
|
||
|
|
}`)}return{name:e,manipulateOptions:n,inherits:i,pre(f){if((0,no.enableFeature)(f,t,r),typeof f.get(zi)=="number"){f.set(zi,"7.27.1");return}(!f.get(zi)||_be.lt(f.get(zi),"7.27.1"))&&f.set(zi,"7.27.1")},visitor:{Class(f,{file:b}){if(b.get(zi)!=="7.27.1"||!(0,no.shouldTransform)(f,b))return;let T=f.isClassDeclaration();T&&(0,Obe.assertFieldTransformed)(f);let w=(0,no.isLoose)(b,t),I,N=(0,iE.hasDecorators)(f.node),L=[],W=[],U=[],H=new Set,pe=f.get("body");for(let he of pe.get("body")){if((he.isClassProperty()||he.isClassMethod())&&he.node.computed&&U.push(he),he.isPrivate()){let{name:De}=he.node.key.id,we=`get ${De}`,Ve=`set ${De}`;if(he.isClassPrivateMethod()){if(he.node.kind==="get"){if(H.has(we)||H.has(De)&&!H.has(Ve))throw he.buildCodeFrameError("Duplicate private field");H.add(we).add(De)}else if(he.node.kind==="set"){if(H.has(Ve)||H.has(De)&&!H.has(we))throw he.buildCodeFrameError("Duplicate private field");H.add(Ve).add(De)}}else{if(H.has(De)&&!H.has(we)&&!H.has(Ve)||H.has(De)&&(H.has(we)||H.has(Ve)))throw he.buildCodeFrameError("Duplicate private field");H.add(De)}}he.isClassMethod({kind:"constructor"})?I=he:(W.push(he),(he.isProperty()||he.isPrivate()||he.isStaticBlock!=null&&he.isStaticBlock())&&L.push(he))}if(!L.length&&!N)return;let Ee=f.node.id,ce;if(!Ee||!T){{var qe;(qe=f.ensureFunctionName)!=null||(f.ensureFunctionName=zt().NodePath.prototype.ensureFunctionName)}f.ensureFunctionName(!1),ce=f.scope.generateUidIdentifier((Ee==null?void 0:Ee.name)||"Class")}let ze=ce!=null?ce:sE.types.cloneNode(Ee),Ot=(0,Ul.buildPrivateNamesMap)(ze.name,g!=null?g:w,L,b),J=(0,Ul.buildPrivateNamesNodes)(Ot,c!=null?c:w,u!=null?u:!1,b);(0,Ul.transformPrivateNamesUsage)(ze,f,Ot,{privateFieldsAsProperties:g!=null?g:w,noUninitializedPrivateFieldAccess:p,noDocumentAll:m,innerBinding:Ee},b);let se,V,G,j,re,de,ye;N?(V=re=se=[],{instanceNodes:G,wrapClass:ye}=(0,Nbe.buildDecoratedClass)(ze,f,W,b)):(se=(0,aE.extractComputedKeys)(f,U,b),{staticNodes:V,pureStaticNodes:re,instanceNodes:G,lastInstanceNodeReturnsThis:j,classBindingNode:de,wrapClass:ye}=(0,Ul.buildFieldsInitNodes)(ce,f.node.superClass,L,Ot,b,l!=null?l:w,g!=null?g:w,p,d!=null?d:w,Ee)),G.length>0&&(0,aE.injectInitialization)(f,I,G,(he,De)=>{if(!N)for(let we of L)sE.types.isStaticBlock!=null&&sE.types.isStaticBlock(we.node)||we.node.static||we.traverse(he,De)},j);let Te=ye(f);Te.insertBefore([...J,...se]),V.length>0&&Te.insertAfter(V),re.length>0&&Te.find(he=>he.isStatement()||he.isDeclaration()).insertAfter(re),de!=null&&T&&Te.insertAfter(de)},ExportDefaultDeclaration(f,{file:b}){{if(b.get(zi)!=="7.27.1")return;let w=f.get("declaration");if(w.isClassDeclaration()&&(0,iE.hasDecorators)(w.node))if(w.node.id){{var T;(T=f.splitExportDeclaration)!=null||(f.splitExportDeclaration=zt().NodePath.prototype.splitExportDeclaration)}f.splitExportDeclaration()}else w.node.type="ClassExpression"}}}}}});var lE=x(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.default=Mbe;Vl.isSyntacticallyString=gf;Vl.translateEnumValues=yN;var io=vt(),kbe=require("assert"),Fbe=cf(),Lbe=Fl(),oE=new WeakMap,jbe=io.template.expression(`
|
||
|
|
(function (ID) {
|
||
|
|
ASSIGNMENTS;
|
||
|
|
return ID;
|
||
|
|
})(INIT)
|
||
|
|
`);function Mbe(e,t){let{node:r,parentPath:n}=e;if(r.declare){e.remove();return}let s=r.id.name,{fill:i,data:a,isPure:o}=Vbe(e,t,r.id);switch(n.type){case"BlockStatement":case"ExportNamedDeclaration":case"Program":{let u=t.isProgram(e.parent),c=l(n),p=t.objectExpression([]);(c||u)&&(p=t.logicalExpression("||",t.cloneNode(i.ID),p));let d=jbe(Object.assign({},i,{INIT:p}));o&&(0,Fbe.default)(d),c?(n.isExportDeclaration()?n:e).replaceWith(t.expressionStatement(t.assignmentExpression("=",t.cloneNode(r.id),d))):e.scope.registerDeclaration(e.replaceWith(t.variableDeclaration(u?"var":"let",[t.variableDeclarator(r.id,d)]))[0]),oE.set(e.scope.getBindingIdentifier(s),a);break}default:throw new Error(`Unexpected enum parent '${e.parent.type}`)}function l(u){return u.isExportDeclaration()?l(u.parentPath):u.getData(s)?!0:(u.setData(s,!0),!1)}}var Rbe=io.template.statement(`
|
||
|
|
ENUM["NAME"] = VALUE;
|
||
|
|
`),qbe=io.template.statement(`
|
||
|
|
ENUM[ENUM["NAME"] = VALUE] = "NAME";
|
||
|
|
`),Ube=(e,t)=>(e?Rbe:qbe)(t);function Vbe(e,t,r){let{enumValues:n,data:s,isPure:i}=yN(e,t),a=e.get("members"),o=[];for(let l=0;l<a.length;l++){let[u,c]=n[l];o.push(t.inheritsComments(Ube(gf(c),{ENUM:t.cloneNode(r),NAME:u,VALUE:c}),a[l].node))}return{fill:{ID:t.cloneNode(r),ASSIGNMENTS:o},data:s,isPure:i}}function gf(e){switch(e=(0,Lbe.skipTransparentExprWrapperNodes)(e),e.type){case"BinaryExpression":{let t=e.left,r=e.right;return e.operator==="+"&&(gf(t)||gf(r))}case"TemplateLiteral":case"StringLiteral":return!0}return!1}function mN(e,t){let{seen:r,path:n,t:s}=t,i=e.node.name;if(r.has(i)){for(let a=e.scope;a!==n.scope;a=a.parent)if(a.hasOwnBinding(i))return;e.replaceWith(s.memberExpression(s.cloneNode(n.node.id),s.cloneNode(e.node))),e.skip()}}var $be={ReferencedIdentifier:mN};function yN(e,t){var r;let n=e.scope.getBindingIdentifier(e.node.id.name),s=(r=oE.get(n))!=null?r:new Map,i=-1,a,o=!0,u=e.get("members").map(c=>{let p=c.node,d=t.isIdentifier(p.id)?p.id.name:p.id.value,m=c.get("initializer"),g=p.initializer,f;if(g)i=gN(m,s),i!==void 0?(s.set(d,i),kbe(typeof i=="number"||typeof i=="string"),i===1/0||Number.isNaN(i)?f=t.identifier(String(i)):i===-1/0?f=t.unaryExpression("-",t.identifier("Infinity")):f=t.valueToNode(i)):(o&&(o=m.isPure()),m.isReferencedIdentifier()?mN(m,{t,seen:s,path:e}):m.traverse($be,{t,seen:s,path:e}),f=m.node,s.set(d,void 0));else if(typeof i=="number")i+=1,f=t.numericLiteral(i),s.set(d,i);else{if(typeof i=="string")throw e.buildCodeFrameError("Enum member must have initializer.");{let b=t.memberExpression(t.cloneNode(e.node.id),t.stringLiteral(a),!0);f=t.binaryExpression("+",t.numericLiteral(1),b),s.set(d,void 0)}}return a=d,[d,f]});return{isPure:o,data:s,enumValues:u}}function gN(e,t,r=new Set){return n(e);function n(o){let l=o.node;switch(l.type){case"MemberExpression":return s(o,t,r);case"StringLiteral":return l.value;case"UnaryExpression":return i(o);case"BinaryExpression":return a(o);case"NumericLiteral":return l.value;case"ParenthesizedExpression":return n(o.get("expression"));case"Identifier":return s(o,t,r);case"TemplateLiteral":{if(l.quasis.length===1)return l.quasis[0].value.cooked;let u=o.get("expressions"),c=l.quasis,p="";for(let d=0;d<c.length;d++)if(p+=c[d].value.cooked,d+1<c.length){let m=s(u[d],t,r);if(m===void 0)return;p+=m}return p}default:return}}function s(o,l,u){if(o.isMemberExpression()){let c=o.node,p=c.object,d=c.property;if(!io.types.isIdentifier(p)||(c.computed?!io.types.isStringLiteral(d):!io.types.isIdentifier(d)))return;let m=o.scope.getBindingIdentifier(p.name),g=oE.get(m);return g?g.get(d.computed?d.value:d.name):void 0}else if(o.isIdentifier()){let c=o.node.name;if(["Infinity","NaN"].includes(c))return Number(c);let p=l==null?void 0:l.get(c);return p!==void 0?p:l!=null&&l.has(c)||u.has(o.node)?void 0:(u.add(o.node),p=gN(o.resolve(),l,u),p)}}function i(o){let l=n(o.get("argument"));if(l!==void 0)switch(o.node.operator){case"+":return l;case"-":return-l;case"~":return~l;default:return}}function a(o){let l=n(o.get("left"));if(l===void 0)return;let u=n(o.get("right"));if(u!==void 0)switch(o.node.operator){case"|":return l|u;case"&":return l&u;case">>":return l>>u;case">>>":return l>>>u;case"<<":return l<<u;case"^":return l^u;case"*":return l*u;case"/":return l/u;case"+":return l+u;case"-":return l-u;case"%":return l%u;case"**":return Math.pow(l,u);default:return}}}});var uE=x($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.EXPORTED_CONST_ENUMS_IN_NAMESPACE=void 0;$l.default=Hbe;var Wbe=lE(),Kbe=$l.EXPORTED_CONST_ENUMS_IN_NAMESPACE=new WeakSet;function Hbe(e,t){let{name:r}=e.node.id,n=e.parentPath.isExportNamedDeclaration(),s=n;!s&&t.isProgram(e.parent)&&(s=e.parent.body.some(o=>t.isExportNamedDeclaration(o)&&o.exportKind!=="type"&&!o.source&&o.specifiers.some(l=>t.isExportSpecifier(l)&&l.exportKind!=="type"&&l.local.name===r)));let{enumValues:i}=(0,Wbe.translateEnumValues)(e,t);if(s||Kbe.has(e.node)){let o=t.objectExpression(i.map(([l,u])=>t.objectProperty(t.isValidIdentifier(l)?t.identifier(l):t.stringLiteral(l),u)));e.scope.hasOwnBinding(r)?
|
||
|
|
as a JavaScript value binding, and "@babel/plugin-transform-typescript"
|
||
|
|
never encountered it as a TypeScript type declaration.
|
||
|
|
It will be treated as a JavaScript value.
|
||
|
|
|
||
|
|
This problem is likely caused by another plugin injecting
|
||
|
|
"${t}" without registering it in the scope tracker. If you are the author
|
||
|
|
of that plugin, please use "scope.registerDeclaration(declarationPath)".`),!1)}function Xbe(e,t){bN.get(e).add(t)}});var TN=x(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.default=zbe;bf.getFirstIdentifier=hE;var yt=vt(),Ybe=cE(),Jbe=uE();function hE(e){return yt.types.isIdentifier(e)?e:hE(e.left)}function zbe(e,t){if(e.node.declare||e.node.id.type==="StringLiteral"){e.remove();return}if(!t)throw e.get("id").buildCodeFrameError("Namespace not marked type-only declare. Non-declarative namespaces are only supported experimentally in Babel. To enable and review caveats see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");let r=hE(e.node.id).name,n=dE(e,e.node);if(n===null){let s=e.findParent(i=>i.isProgram());(0,Ybe.registerGlobalType)(s.scope,r),e.remove()}else e.scope.hasOwnBinding(r)?e.replaceWith(n):e.scope.registerDeclaration(e.replaceWithMultiple([pE(r),n])[0])}function pE(e){return yt.types.variableDeclaration("let",[yt.types.variableDeclarator(yt.types.identifier(e))])}function fE(e,t){return yt.types.memberExpression(yt.types.identifier(e),yt.types.identifier(t))}function Qbe(e,t,r){if(e.kind!=="const")throw r.file.buildCodeFrameError(e,"Namespaces exporting non-const are not supported by Babel. Change to const or see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");let{declarations:n}=e;if(n.every(a=>yt.types.isIdentifier(a.id))){for(let a of n)a.init=yt.types.assignmentExpression("=",fE(t,a.id.name),a.init);return[e]}let s=yt.types.getBindingIdentifiers(e),i=[];for(let a in s)i.push(yt.types.assignmentExpression("=",fE(t,a),yt.types.cloneNode(s[a])));return[e,yt.types.expressionStatement(yt.types.sequenceExpression(i))]}function EN(e,t){return e.hub.buildError(t,"Ambient modules cannot be nested in other modules or namespaces.",Error)}function dE(e,t,r){let n=new Set,s=t.id,i=e.scope.generateUid(s.name),a=t.body,o=t.id,l;l=yt.types.isTSModuleBlock(a)?a.body:[yt.types.exportNamedDeclaration(a)];let u=!0;for(let p=0;p<l.length;p++){let d=l[p];switch(d.type){case"TSModuleDeclaration":{if(!yt.types.isIdentifier(d.id))throw EN(e,d);let m=dE(e,d);if(m!==null){u=!1;let g=d.id.name;n.has(g)?l[p]=m:(n.add(g),l.splice(p++,1,pE(g),m))}continue}case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":u=!1,n.add(d.id.name);continue;case"VariableDeclaration":{u=!1;for(let m in yt.types.getBindingIdentifiers(d))n.add(m);continue}default:u&&(u=yt.types.isTypeScript(d));continue;case"ExportNamedDeclaration":}if(!("declare"in d.declaration&&d.declaration.declare))switch(d.declaration.type){case"TSEnumDeclaration":Jbe.EXPORTED_CONST_ENUMS_IN_NAMESPACE.add(d.declaration);case"FunctionDeclaration":case"ClassDeclaration":{u=!1;let m=d.declaration.id.name;n.add(m),l.splice(p++,1,d.declaration,yt.types.expressionStatement(yt.types.assignmentExpression("=",fE(i,m),yt.types.identifier(m))));break}case"VariableDeclaration":{u=!1;let m=Qbe(d.declaration,i,e.hub);l.splice(p,m.length,...m),p+=m.length-1;break}case"TSModuleDeclaration":{if(!yt.types.isIdentifier(d.declaration.id))throw EN(e,d.declaration);let m=dE(e,d.declaration,yt.types.identifier(i));if(m!==null){u=!1;let g=d.declaration.id.name;n.has(g)?l[p]=m:(n.add(g),l.splice(p++,1,pE(g),m))}else l.splice(p,1),p--}}}if(u)return null;let c=yt.types.objectExpression([]);if(r){let p=yt.types.memberExpression(r,s);c=yt.template.expression.ast`
|
||
|
|
${yt.types.cloneNode(p)} ||
|
||
|
|
(${yt.types.cloneNode(p)} = ${c})
|
||
|
|
`}return yt.template.statement.ast`
|
||
|
|
(function (${yt.types.identifier(i)}) {
|
||
|
|
${l}
|
||
|
|
})(${s} || (${yt.types.cloneNode(s)} = ${c}));
|
||
|
|
`}});var PN=x(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.default=void 0;var Zbe=Ft(),e1e=P_(),t1e=so(),r1e=uE(),n1e=lE(),Ps=cE(),xN=TN();function s1e(e){switch(e.parent.type){case"TSTypeReference":case"TSExpressionWithTypeArguments":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return!0;case"TSQualifiedName":return e.parentPath.findParent(t=>t.type!=="TSQualifiedName").type!=="TSImportEqualsDeclaration";case"ExportSpecifier":return e.parent.exportKind==="type"||e.parentPath.parent.exportKind==="type";default:return!1}}var En=new WeakMap,SN=new WeakSet;function Ef(e){let t=e.getBindingIdentifiers();for(let r of Object.keys(t)){let n=e.scope.getBinding(r);n&&n.identifier===t[r]&&n.scope.removeBinding(r)}e.opts.noScope=!0,e.remove(),e.opts.noScope=!1}function vN(e,t,r,n,s=""){if(t.file.get("@babel/plugin-transform-modules-*")!=="commonjs")throw e.buildCodeFrameError(`\`${r}\` is only supported when compiling modules to CommonJS.
|
||
|
|
Please consider using \`${n}\`${s}, or add @babel/plugin-transform-modules-commonjs to your Babel config.`)}var KOe=Tf.default=(0,Zbe.declare)((e,t)=>{let{types:r,template:n}=e;e.assertVersion(7);let s=/\*?\s*@jsx((?:Frag)?)\s+(\S+)/,{allowNamespaces:i=!0,jsxPragma:a="React.createElement",jsxPragmaFrag:o="React.Fragment",onlyRemoveTypeImports:l=!1,optimizeConstEnums:u=!1}=t;var{allowDeclareFields:c=!1}=t;let p={field(f){let{node:b}=f;if(!c&&b.declare)throw f.buildCodeFrameError("The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled.");if(b.declare){if(b.value)throw f.buildCodeFrameError("Fields with the 'declare' modifier cannot be initialized here, but only in the constructor");b.decorators||f.remove()}else if(b.definite){if(b.value)throw f.buildCodeFrameError("Definitely assigned fields cannot be initialized here, but only in the constructor");!c&&!b.decorators&&!r.isClassPrivateProperty(b)&&f.remove()}else(b.abstract||!c&&!b.value&&!b.decorators&&!r.isClassPrivateProperty(b))&&f.remove();b.accessibility&&(b.accessibility=null),b.abstract&&(b.abstract=null),b.readonly&&(b.readonly=null),b.optional&&(b.optional=null),b.typeAnnotation&&(b.typeAnnotation=null),b.definite&&(b.definite=null),b.declare&&(b.declare=null),b.override&&(b.override=null)},method({node:f}){f.accessibility&&(f.accessibility=null),f.abstract&&(f.abstract=null),f.optional&&(f.optional=null),f.override&&(f.override=null)},constructor(f,b){f.node.accessibility&&(f.node.accessibility=null);let T=[],{scope:w}=f;for(let I of f.get("params")){let N=I.node;if(N.type==="TSParameterProperty"){let L=N.parameter;if(SN.has(L))continue;SN.add(L);let W;if(r.isIdentifier(L))W=L;else if(r.isAssignmentPattern(L)&&r.isIdentifier(L.left))W=L.left;else throw I.buildCodeFrameError("Parameter properties can not be destructuring patterns.");T.push(n.statement.ast`
|
||
|
|
this.${r.cloneNode(W)} = ${r.cloneNode(W)}
|
||
|
|
`),I.replaceWith(I.get("parameter")),w.registerBinding("param",I)}}(0,t1e.injectInitialization)(b,f,T)}};return{name:"transform-typescript",inherits:e1e.default,visitor:{Pattern:m,Identifier:m,RestElement:m,Program:{enter(f,b){let{file:T}=b,w=null,I=null,N=f.scope;if(Ps.GLOBAL_TYPES.has(N)||Ps.GLOBAL_TYPES.set(N,new Set),T.ast.comments)for(let U of T.ast.comments){let H=s.exec(U.value);H&&(H[1]?I=H[2]:w=H[2])}let L=w||a;L&&([L]=L.split("."));let W=I||o;W&&([W]=W.split("."));for(let U of f.get("body")){if(U.isImportDeclaration()){if(En.has(b.file.ast.program)||En.set(b.file.ast.program,!0),U.node.importKind==="type"){for(let ce of U.node.specifiers)(0,Ps.registerGlobalType)(N,ce.local.name);U.remove();continue}let H=new Set,pe=U.node.specifiers.length,Ee=()=>pe>0&&pe===H.size;for(let ce of U.node.specifiers)if(ce.type==="ImportSpecifier"&&ce.importKind==="type"){(0,Ps.registerGlobalType)(N,ce.local.name);let qe=U.scope.getBinding(ce.local.name);qe&&H.add(qe.path)}if(l)En.set(f.node,!1);else{if(U.node.specifiers.length===0){En.set(f.node,!1);continue}for(let ce of U.node.specifiers){let qe=U.scope.getBinding(ce.local.name);qe&&!H.has(qe.path)&&(g({binding:qe,programPath:f,pragmaImportName:L,pragmaFragImportName:W})?H.add(qe.path):En.set(f.node,!1))}}if(Ee()&&!l)U.remove();else for(let ce of H)ce.remove();continue}if(!l&&U.isTSImportEqualsDeclaration()){let{id:H}=U.node,pe=U.scope.getBinding(H.name);if(pe&&!U.node.isExport&&g({binding:pe,programPath:f,pragmaImportName:L,pragmaFragImportName:W})){U.remove();continue}}if(U.isExportDeclaration()&&(U=U.get("declaration")),U.isVariableDeclaration({declare:!0}))for(let H of Object.keys(U.getBindingIdentifiers()))(0,Ps.registerGlobalType)(N,H);else(U.isTSTypeAliasDeclaration()||U.isTSDeclareFunction()&&U.get("id").isIdentifier()||U.isTSInterfaceDeclaration()||U.isClassDeclaration({declare:!0})||U.isTSEnumDeclaration({declare:!0})||U.isTSModuleDeclaration({declare:!0})&&U.get("id").isIdentifier())&&(0,Ps.registerGlobalType)(N,U.node.id.name)}},exit(f){f.node.sourceType==="module"&&En.get(f.node)&&f.pushContainer("body",r.exportNamedDeclaration())}},ExportNamedDeclaration(f,b){if(En.has(b.file.ast.program)||En.set(b.file.ast.program,!0),f.node.exportKind==="type"){f.remove();return}if(f.node.source&&f.node.specifiers.length>0&&f.node.specifiers.every(T=>T.type==="ExportSpecifier"&&T.exportKind==="type")){f.remove();return}if(!f.node.source&&f.node.specifiers.length>0&&f.node.specifiers.every(T=>r.isExportSpecifier(T)&&(0,Ps.isGlobalType)(f,T.local.name))){f.remove();return}if(r.isTSModuleDeclaration(f.node.declaration)){let T=f.node.declaration;if(!r.isStringLiteral(T.id)){let w=(0,xN.getFirstIdentifier)(T.id);if(f.scope.hasOwnBinding(w.name))f.replaceWith(T);else{let[I]=f.replaceWithMultiple([r.exportNamedDeclaration(r.variableDeclaration("let",[r.variableDeclarator(r.cloneNode(w))])),T]);f.scope.registerDeclaration(I)}}}En.set(b.file.ast.program,!1)},ExportAllDeclaration(f){f.node.exportKind==="type"&&f.remove()},ExportSpecifier(f){(!f.parent.source&&(0,Ps.isGlobalType)(f,f.node.local.name)||f.node.exportKind==="type")&&f.remove()},ExportDefaultDeclaration(f,b){if(En.has(b.file.ast.program)||En.set(b.file.ast.program,!0),r.isIdentifier(f.node.declaration)&&(0,Ps.isGlobalType)(f,f.node.declaration.name)){f.remove();return}En.set(b.file.ast.program,!1)},TSDeclareFunction(f){Ef(f)},TSDeclareMethod(f){Ef(f)},VariableDeclaration(f){f.node.declare&&Ef(f)},VariableDeclarator({node:f}){f.definite&&(f.definite=null)},TSIndexSignature(f){f.remove()},ClassDeclaration(f){let{node:b}=f;b.declare&&Ef(f)},Class(f){let{node:b}=f;b.typeParameters&&(b.typeParameters=null),b.superTypeParameters&&(b.superTypeParameters=null),b.implements&&(b.implements=null),b.abstract&&(b.abstract=null),f.get("body.body").forEach(T=>{T.isClassMethod()||T.isClassPrivateMethod()?T.node.kind==="constructor"?p.constructor(T,f):p.method(T):(T.isClassProperty()||T.isClassPrivateProperty()||T.isClassAccessorProperty())&&p.field(T)})},Function(f){let{node:b}=f;b.typeParameters&&(b.typeParameters=null),b.returnT
|
||
|
|
function ${t}() {
|
||
|
|
const data = ${r};
|
||
|
|
${t} = function(){ return data; };
|
||
|
|
return data;
|
||
|
|
}
|
||
|
|
`:!1},wrapReference(t,r){if(r==="lazy/function")return wN.types.callExpression(t,[])}});Sf.lazyImportsHook=c1e});var _N=x(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.defineCommonJSHook=p1e;vf.makeInvokers=f1e;var bE="@babel/plugin-transform-modules-commonjs/customWrapperPlugin";function p1e(e,t){let r=e.get(bE);r||e.set(bE,r=[]),r.push(t)}function gE(e,t){if(e)for(let r of e){let n=t(r);if(n!=null)return n}}function f1e(e){let t=e.get(bE);return{getWrapperPayload(...r){return gE(t,n=>n.getWrapperPayload==null?void 0:n.getWrapperPayload(...r))},wrapReference(...r){return gE(t,n=>n.wrapReference==null?void 0:n.wrapReference(...r))},buildRequireWrapper(...r){return gE(t,n=>n.buildRequireWrapper==null?void 0:n.buildRequireWrapper(...r))}}}});var TE=x(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.default=void 0;Object.defineProperty(Wl,"defineCommonJSHook",{enumerable:!0,get:function(){return EE.defineCommonJSHook}});var d1e=Ft(),Zi=cl(),Ln=vt(),h1e=DN(),m1e=IN(),EE=_N(),QOe=Wl.default=(0,d1e.declare)((e,t)=>{var r,n,s;e.assertVersion(7);let{strictNamespace:i=!1,mjsStrictNamespace:a=i,allowTopLevelThis:o,strict:l,strictMode:u,noInterop:c,importInterop:p,lazy:d=!1,allowCommonJSExports:m=!0,loose:g=!1}=t,f=(r=e.assumption("constantReexports"))!=null?r:g,b=(n=e.assumption("enumerableModuleMeta"))!=null?n:g,T=(s=e.assumption("noIncompleteNsImportDetection"))!=null?s:!1;if(typeof d!="boolean"&&typeof d!="function"&&(!Array.isArray(d)||!d.every(N=>typeof N=="string")))throw new Error(".lazy must be a boolean, array of strings, or a function");if(typeof i!="boolean")throw new Error(".strictNamespace must be a boolean, or undefined");if(typeof a!="boolean")throw new Error(".mjsStrictNamespace must be a boolean, or undefined");let w=N=>Ln.template.expression.ast`
|
||
|
|
(function(){
|
||
|
|
throw new Error(
|
||
|
|
"The CommonJS '" + "${N}" + "' variable is not available in ES6 modules." +
|
||
|
|
"Consider setting setting sourceType:script or sourceType:unambiguous in your " +
|
||
|
|
"Babel config for this file.");
|
||
|
|
})()
|
||
|
|
`,I={ReferencedIdentifier(N){let L=N.node.name;if(L!=="module"&&L!=="exports")return;let W=N.scope.getBinding(L);this.scope.getBinding(L)!==W||N.parentPath.isObjectProperty({value:N.node})&&N.parentPath.parentPath.isObjectPattern()||N.parentPath.isAssignmentExpression({left:N.node})||N.isAssignmentExpression({left:N.node})||N.replaceWith(w(L))},UpdateExpression(N){let L=N.get("argument");if(!L.isIdentifier())return;let W=L.node.name;if(W!=="module"&&W!=="exports")return;let U=N.scope.getBinding(W);this.scope.getBinding(W)===U&&N.replaceWith(Ln.types.assignmentExpression(N.node.operator[0]+"=",L.node,w(W)))},AssignmentExpression(N){let L=N.get("left");if(L.isIdentifier()){let W=L.node.name;if(W!=="module"&&W!=="exports")return;let U=N.scope.getBinding(W);if(this.scope.getBinding(W)!==U)return;let pe=N.get("right");pe.replaceWith(Ln.types.sequenceExpression([pe.node,w(W)]))}else if(L.isPattern()){let W=L.getOuterBindingIdentifiers(),U=Object.keys(W).find(H=>H!=="module"&&H!=="exports"?!1:this.scope.getBinding(H)===N.scope.getBinding(H));if(U){let H=N.get("right");H.replaceWith(Ln.types.sequenceExpression([H.node,w(U)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs"),d&&(0,EE.defineCommonJSHook)(this.file,(0,m1e.lazyImportsHook)(d))},visitor:{["CallExpression"+(e.types.importExpression?"|ImportExpression":"")](N){if(!this.file.has("@babel/plugin-proposal-dynamic-import")||N.isCallExpression()&&!Ln.types.isImport(N.node.callee))return;let{scope:L}=N;do L.rename("require");while(L=L.parent);(0,h1e.transformDynamicImport)(N,c,this.file)},Program:{exit(N,L){if(!(0,Zi.isModule)(N))return;N.scope.rename("exports"),N.scope.rename("module"),N.scope.rename("require"),N.scope.rename("__filename"),N.scope.rename("__dirname"),m||N.traverse(I,{scope:N.scope});let W=(0,Zi.getModuleName)(this.file.opts,t);W&&(W=Ln.types.stringLiteral(W));let U=(0,EE.makeInvokers)(this.file),{meta:H,headers:pe}=(0,Zi.rewriteModuleStatementsAndPrepareHeader)(N,{exportName:"exports",constantReexports:f,enumerableModuleMeta:b,strict:l,strictMode:u,allowTopLevelThis:o,noInterop:c,importInterop:p,wrapReference:U.wrapReference,getWrapperPayload:U.getWrapperPayload,esNamespaceOnly:typeof L.filename=="string"&&/\.mjs$/.test(L.filename)?a:i,noIncompleteNsImportDetection:T,filename:this.file.opts.filename});for(let[Ee,ce]of H.source){let qe=Ln.types.callExpression(Ln.types.identifier("require"),[Ln.types.stringLiteral(Ee)]),ze;if((0,Zi.isSideEffectImport)(ce)){if(d&&ce.wrap==="function")throw new Error("Assertion failure");ze=Ln.types.expressionStatement(qe)}else{let Ot=(0,Zi.wrapInterop)(N,qe,ce.interop)||qe;if(ce.wrap){let J=U.buildRequireWrapper(ce.name,Ot,ce.wrap,ce.referenced);if(J===!1)continue;ze=J}ze!=null||(ze=Ln.template.statement.ast`
|
||
|
|
var ${ce.name} = ${Ot};
|
||
|
|
`)}ze.loc=ce.loc,pe.push(ze),pe.push(...(0,Zi.buildNamespaceInitStatements)(H,ce,f,U.wrapReference))}(0,Zi.ensureStatementsHoisted)(pe),N.unshiftContainer("body",pe),N.get("body").forEach(Ee=>{pe.includes(Ee.node)&&Ee.isVariableDeclaration()&&Ee.scope.registerDeclaration(Ee)})}}}}})});var SE=x(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});var ON=Ft(),y1e=PN();mE();var g1e=TE(),b1e=Ap();function BN(e){return e&&e.__esModule?e:{default:e}}var NN=BN(y1e),E1e=BN(g1e),As=new b1e.OptionValidator("@babel/preset-typescript");function T1e(e={}){let{allowNamespaces:t=!0,jsxPragma:r,onlyRemoveTypeImports:n}=e,s={ignoreExtensions:"ignoreExtensions",allowNamespaces:"allowNamespaces",disallowAmbiguousJSXLike:"disallowAmbiguousJSXLike",jsxPragma:"jsxPragma",jsxPragmaFrag:"jsxPragmaFrag",onlyRemoveTypeImports:"onlyRemoveTypeImports",optimizeConstEnums:"optimizeConstEnums",rewriteImportExtensions:"rewriteImportExtensions",allExtensions:"allExtensions",isTSX:"isTSX"},i=As.validateStringOption(s.jsxPragmaFrag,e.jsxPragmaFrag,"React.Fragment");{var a=As.validateBooleanOption(s.allExtensions,e.allExtensions,!1),o=As.validateBooleanOption(s.isTSX,e.isTSX,!1);o&&As.invariant(a,"isTSX:true requires allExtensions:true")}let l=As.validateBooleanOption(s.ignoreExtensions,e.ignoreExtensions,!1),u=As.validateBooleanOption(s.disallowAmbiguousJSXLike,e.disallowAmbiguousJSXLike,!1);u&&As.invariant(a,"disallowAmbiguousJSXLike:true requires allExtensions:true");let c=As.validateBooleanOption(s.optimizeConstEnums,e.optimizeConstEnums,!1),p=As.validateBooleanOption(s.rewriteImportExtensions,e.rewriteImportExtensions,!1),d={ignoreExtensions:l,allowNamespaces:t,disallowAmbiguousJSXLike:u,jsxPragma:r,jsxPragmaFrag:i,onlyRemoveTypeImports:n,optimizeConstEnums:c,rewriteImportExtensions:p};return d.allExtensions=a,d.isTSX=o,d}var x1e=ON.declare(function({types:e,template:t}){function r(n,s,i){if(n){if(e.isStringLiteral(n)){/^\.\.?\//.test(n.value)&&(n.value=n.value.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i,function(a,o,l,u,c){return o?".js":l&&(!u||!c)?a:l+u+"."+c.toLowerCase()+"js"}));return}i.availableHelper("tsRewriteRelativeImportExtensions")?s.replaceWith(e.callExpression(i.addHelper("tsRewriteRelativeImportExtensions"),[n])):s.replaceWith(t.expression.ast`(${n} + "").replace(/([\\/].*\.[mc]?)tsx?$/, "$1js")`)}}return{name:"preset-typescript/plugin-rewrite-ts-imports",visitor:{"ImportDeclaration|ExportAllDeclaration|ExportNamedDeclaration"(n,s){let i=n.node;(e.isImportDeclaration(i)?i.importKind:i.exportKind)==="value"&&r(i.source,n.get("source"),s)},CallExpression(n,s){e.isImport(n.node.callee)&&r(n.node.arguments[0],n.get("arguments.0"),s)},ImportExpression(n,s){r(n.node.source,n.get("source"),s)}}}}),S1e=ON.declarePreset((e,t)=>{e.assertVersion(7);let{allExtensions:r,ignoreExtensions:n,allowNamespaces:s,disallowAmbiguousJSXLike:i,isTSX:a,jsxPragma:o,jsxPragmaFrag:l,onlyRemoveTypeImports:u,optimizeConstEnums:c,rewriteImportExtensions:p}=T1e(t),d=f=>({allowDeclareFields:t.allowDeclareFields,allowNamespaces:s,disallowAmbiguousJSXLike:f,jsxPragma:o,jsxPragmaFrag:l,onlyRemoveTypeImports:u,optimizeConstEnums:c}),m=(f,b)=>[[NN.default,Object.assign({isTSX:f},d(b))]];return{plugins:p?[x1e]:[],overrides:r||n?[{plugins:m(a,i)}]:[{test:/\.ts$/,plugins:m(!1,!1)},{test:/\.mts$/,sourceType:"module",plugins:m(!1,!0)},{test:/\.cts$/,sourceType:"unambiguous",plugins:[[E1e.default,{allowTopLevelThis:!0}],[NN.default,d(!0)]]},{test:/\.tsx$/,plugins:m(!0,!1)}]}});xE.default=S1e});var IE=x(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.default=C1e;Kl.supportsESM=void 0;var vE=Gs();function DE(){let e=require("path");return DE=function(){return e},e}function MN(){let e=require("url");return MN=function(){return e},e}require("module");function wE(){let e=ps();return wE=function(){return e},e}function RN(){let e=Ti();return RN=function(){return e},e}var qN=fs(),oo=qi(),v1e=P1();function kN(e,t,r,n,s,i,a){try{var o=e[i](a),l=o.value}catch(u){return void r(u)}o.done?t(l):Promise.resolve(l).then(n,s)}func
|
||
|
|
`,r);return yield CE(n)}});function t(r){return e.apply(this,arguments)}return t})()),UN=e=>`You are using a ${e} config file, but Babel only supports transpiling .cts configs. Either:
|
||
|
|
- Use a .cts config file
|
||
|
|
- Update to Node.js 23.6.0, which has native TypeScript support
|
||
|
|
- Install tsx to transpile ${e} files on the fly`,LN={".js":"unknown",".mjs":"esm",".cjs":"cjs",".ts":"unknown",".mts":"esm",".cts":"cjs"},jN=new Set;function*C1e(e,t,r,n){let s,i=DE().extname(e),a=i===".ts"||i===".cts"||i===".mts",o=LN[hasOwnProperty.call(LN,i)?i:".js"];switch(`${t} ${o}`){case"require cjs":case"auto cjs":return a?AE(e,i,()=>Pf(e)):Pf(e,arguments[2]);case"auto unknown":case"require unknown":case"require esm":try{return a?AE(e,i,()=>Pf(e)):Pf(e,arguments[2])}catch(u){if(u.code==="ERR_REQUIRE_ASYNC_MODULE"||u.code==="ERR_REQUIRE_CYCLE_MODULE"&&jN.has(e)){if(jN.add(e),!(s!=null?s:s=yield*(0,vE.isAsync)()))throw new oo.default(n,e)}else if(!(u.code==="ERR_REQUIRE_ESM"||o==="esm"))throw u}case"auto esm":if(s!=null?s:s=yield*(0,vE.isAsync)()){let u=a?AE(e,i,()=>FN(e)):FN(e);return(yield*(0,vE.waitFor)(u)).default}throw a?new oo.default(UN(i),e):new oo.default(r,e);default:throw new Error("Internal Babel error: unreachable code.")}}function AE(e,t,r){if(process.features.typescript||require.extensions[".ts"]||require.extensions[".cts"]||require.extensions[".mts"])return r();if(t!==".cts")throw new oo.default(UN(t),e);let n={babelrc:!1,configFile:!1,sourceType:"unambiguous",sourceMaps:"inline",sourceFileName:DE().basename(e),presets:[[D1e(e),Object.assign({onlyRemoveTypeImports:!0,optimizeConstEnums:!0},{allowDeclareFields:!0})]]},s=function(i,a){if(s&&a.endsWith(".cts"))try{return i._compile((0,v1e.transformFileSync)(a,Object.assign({},n,{filename:a})).code,a)}catch(o){let l=S_();throw wE().lt(l.version,"7.21.4")&&console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`."),o}return require.extensions[".js"](i,a)};require.extensions[t]=s;try{return r()}finally{require.extensions[t]===s&&delete require.extensions[t],s=void 0}}function D1e(e){try{return SE()}catch(t){if(t.code!=="MODULE_NOT_FOUND")throw t;let r="You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!";throw process.versions.pnp&&(r+=`
|
||
|
|
If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:
|
||
|
|
|
||
|
|
packageExtensions:
|
||
|
|
"@babel/core@*":
|
||
|
|
peerDependencies:
|
||
|
|
"@babel/preset-typescript": "*"
|
||
|
|
`),new oo.default(r,e)}}});var zN=x(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.ROOT_CONFIG_FILENAMES=void 0;Cs.findConfigUpwards=V1e;Cs.findRelativeConfig=$1e;Cs.findRootConfig=W1e;Cs.loadConfig=K1e;Cs.resolveShowConfigPath=H1e;function $N(){let e=Ti();return $N=function(){return e},e}function _E(){let e=require("fs");return _E=function(){return e},e}function rn(){let e=require("path");return rn=function(){return e},e}function WN(){let e=sD();return WN=function(){return e},e}function KN(){let e=Zr();return KN=function(){return e},e}var HN=Ri(),w1e=jg(),GN=Ag(),I1e=IE(),_1e=Ib(),jn=qi(),N1e=tp();require("module");var O1e=fs(),B1e=Gs(),NE=$N()("babel:config:loading:files:configuration"),XN=Cs.ROOT_CONFIG_FILENAMES=["babel.config.js","babel.config.cjs","babel.config.mjs","babel.config.json","babel.config.cts","babel.config.ts","babel.config.mts"],k1e=[".babelrc",".babelrc.js",".babelrc.cjs",".babelrc.mjs",".babelrc.json",".babelrc.cts"],F1e=".babelignore",L1e=(0,HN.makeWeakCache)(function*(t,r){return yield*[],{options:(0,O1e.endHiddenCallStack)(t)((0,w1e.makeConfigAPI)(r)),cacheNeedsConfiguration:!r.configured()}});function*j1e(e,t){if(!_E().existsSync(e))return null;let r=yield*(0,I1e.default)(e,(yield*(0,B1e.isAsync)())?"auto":"require","You appear to be using a native ECMAScript module configuration file, which is only supported when running Babel asynchronously or when using the Node.js `--experimental-require-module` flag.","You appear to be using a configuration file that contains top-level await, which is only supported when running Babel asynchronously."),n=!1;if(typeof r=="function"&&({options:r,cacheNeedsConfiguration:n}=yield*L1e(r,t)),!r||typeof r!="object"||Array.isArray(r))throw new jn.default("Configuration should be an exported JavaScript object.",e);if(typeof r.then=="function")throw r.catch==null||r.catch(()=>{}),new jn.default("You appear to be using an async configuration, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously return your config.",e);return n&&G1e(e),M1e(r,e)}var VN=new WeakMap;function M1e(e,t){let r=VN.get(e);r||VN.set(e,r=new Map);let n=r.get(t);return n||(n={filepath:t,dirname:rn().dirname(t),options:e},r.set(t,n)),n}var R1e=(0,HN.makeWeakCacheSync)(e=>{let t=e.options.babel;if(t===void 0)return null;if(typeof t!="object"||Array.isArray(t)||t===null)throw new jn.default(".babel property must be an object",e.filepath);return{filepath:e.filepath,dirname:e.dirname,options:t}}),q1e=(0,GN.makeStaticFileCache)((e,t)=>{let r;try{r=WN().parse(t)}catch(n){throw new jn.default(`Error while parsing config - ${n.message}`,e)}if(!r)throw new jn.default("No config detected",e);if(typeof r!="object")throw new jn.default(`Config returned typeof ${typeof r}`,e);if(Array.isArray(r))throw new jn.default("Expected config object but found array",e);return delete r.$schema,{filepath:e,dirname:rn().dirname(e),options:r}}),U1e=(0,GN.makeStaticFileCache)((e,t)=>{let r=rn().dirname(e),n=t.split(`
|
||
|
|
`).map(s=>s.replace(/#.*$/,"").trim()).filter(Boolean);for(let s of n)if(s[0]==="!")throw new jn.default("Negation of file paths is not supported.",e);return{filepath:e,dirname:rn().dirname(e),ignore:n.map(s=>(0,_1e.default)(s,r))}});function V1e(e){let t=e;for(;;){for(let n of XN)if(_E().existsSync(rn().join(t,n)))return t;let r=rn().dirname(t);if(t===r)break;t=r}return null}function*$1e(e,t,r){let n=null,s=null,i=rn().dirname(e.filepath);for(let o of e.directories){if(!n){var a;n=yield*YN(k1e,o,t,r,((a=e.pkg)==null?void 0:a.dirname)===o?R1e(e.pkg):null)}if(!s){let l=rn().join(o,F1e);s=yield*U1e(l),s&&NE("Found ignore %o from %o.",s.filepath,i)}}return{config:n,ignore:s}}function W1e(e,t,r){return YN(XN,e,t,r)}function*YN(e,t,r,n,s=null){let a=(yield*KN().all(e.map(o=>JN(rn().join(t,o),r,n)))).reduce((o,l)=>{if(l&&o)throw new jn.default(`Multiple configuration files found. Please remove one:
|
||
|
|
- ${rn().basename(o.filepath)}
|
||
|
|
- ${l.filepath}
|
||
|
|
from ${t}`);return l||o},s);return a&&NE("Found configuration %o from %o.",a.filepath,t),a}function*K1e(e,t,r,n){let s=(((a,o)=>(a=a.split("."),o=o.split("."),+a[0]>+o[0]||a[0]==o[0]&&+a[1]>=+o[1]))(process.versions.node,"8.9")?require.resolve:(a,{paths:[o]},l=require("module"))=>{let u=l._findPath(a,l._nodeModulePaths(o).concat(o));if(u)return u;throw u=new Error(`Cannot resolve module '${a}'`),u.code="MODULE_NOT_FOUND",u})(e,{paths:[t]}),i=yield*JN(s,r,n);if(!i)throw new jn.default("Config file contains no configuration data",s);return NE("Loaded config %o from %o.",e,t),i}function JN(e,t,r){switch(rn().extname(e)){case".js":case".cjs":case".mjs":case".ts":case".cts":case".mts":return j1e(e,{envName:t,caller:r});default:return q1e(e)}}function*H1e(e){let t=process.env.BABEL_SHOW_CONFIG_FOR;if(t!=null){let r=rn().resolve(e,t);if(!(yield*N1e.stat(r)).isFile())throw new Error(`${r}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);return r}return null}function G1e(e){throw new jn.default(`Caching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured
|
||
|
|
for various types of caching, using the first param of their handler functions:
|
||
|
|
|
||
|
|
module.exports = function(api) {
|
||
|
|
// The API exposes the following:
|
||
|
|
|
||
|
|
// Cache the returned value forever and don't call this function again.
|
||
|
|
api.cache(true);
|
||
|
|
|
||
|
|
// Don't cache at all. Not recommended because it will be very slow.
|
||
|
|
api.cache(false);
|
||
|
|
|
||
|
|
// Cached based on the value of some function. If this function returns a value different from
|
||
|
|
// a previously-encountered value, the plugins will re-evaluate.
|
||
|
|
var env = api.cache(() => process.env.NODE_ENV);
|
||
|
|
|
||
|
|
// If testing for a specific env, we recommend specifics to avoid instantiating a plugin for
|
||
|
|
// any possible NODE_ENV value that might come up during plugin execution.
|
||
|
|
var isProd = api.cache(() => process.env.NODE_ENV === "production");
|
||
|
|
|
||
|
|
// .cache(fn) will perform a linear search though instances to find the matching plugin based
|
||
|
|
// based on previous instantiated plugins. If you want to recreate the plugin and discard the
|
||
|
|
// previous instance whenever something changes, you may use:
|
||
|
|
var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production");
|
||
|
|
|
||
|
|
// Note, we also expose the following more-verbose versions of the above examples:
|
||
|
|
api.cache.forever(); // api.cache(true)
|
||
|
|
api.cache.never(); // api.cache(false)
|
||
|
|
api.cache.using(fn); // api.cache(fn)
|
||
|
|
|
||
|
|
// Return the value that will be cached.
|
||
|
|
return { };
|
||
|
|
};`,e)}});var SO=x(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.moduleResolve=xO;_f.resolve=MEe;function zn(){let e=require("assert");return zn=function(){return e},e}function Yl(){let e=pO(require("fs"),!0);return Yl=function(){return e},e}function ii(){let e=require("process");return ii=function(){return e},e}function Ie(){let e=require("url");return Ie=function(){return e},e}function Df(){let e=require("path");return Df=function(){return e},e}function wf(){let e=require("module");return wf=function(){return e},e}function cO(){let e=require("v8");return cO=function(){return e},e}function Xl(){let e=require("util");return Xl=function(){return e},e}function pO(e,t){if(typeof WeakMap=="function")var r=new WeakMap,n=new WeakMap;return(pO=function(s,i){if(!i&&s&&s.__esModule)return s;var a,o,l={__proto__:null,default:s};if(s===null||typeof s!="object"&&typeof s!="function")return l;if(a=i?n:r){if(a.has(s))return a.get(s);a.set(s,l)}for(let u in s)u!=="default"&&{}.hasOwnProperty.call(s,u)&&((o=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(s,u))&&(o.get||o.set)?a(l,u,o):l[u]=s[u]);return l})(e,t)}var X1e={}.hasOwnProperty,Y1e=/^([A-Z][a-z\d]*)+$/,J1e=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),Er={};function OE(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var fO=new Map,z1e="__node_internal_",QN;Er.ERR_INVALID_ARG_TYPE=Tn("ERR_INVALID_ARG_TYPE",(e,t,r)=>{zn()(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";if(e.endsWith(" argument"))n+=`${e} `;else{let o=e.includes(".")?"property":"argument";n+=`"${e}" ${o} `}n+="must be ";let s=[],i=[],a=[];for(let o of t)zn()(typeof o=="string","All expected entries have to be of type string"),J1e.has(o)?s.push(o.toLowerCase()):Y1e.exec(o)===null?(zn()(o!=="object",'The value "object" should be written as "Object"'),a.push(o)):i.push(o);if(i.length>0){let o=s.indexOf("object");o!==-1&&(s.slice(o,1),i.push("Object"))}return s.length>0&&(n+=`${s.length>1?"one of type":"of type"} ${OE(s,"or")}`,(i.length>0||a.length>0)&&(n+=" or ")),i.length>0&&(n+=`an instance of ${OE(i,"or")}`,a.length>0&&(n+=" or ")),a.length>0&&(a.length>1?n+=`one of ${OE(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`)),n+=`. Received ${rEe(r)}`,n},TypeError);Er.ERR_INVALID_MODULE_SPECIFIER=Tn("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError);Er.ERR_INVALID_PACKAGE_CONFIG=Tn("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error);Er.ERR_INVALID_PACKAGE_TARGET=Tn("ERR_INVALID_PACKAGE_TARGET",(e,t,r,n=!1,s=void 0)=>{let i=typeof r=="string"&&!n&&r.length>0&&!r.startsWith("./");return t==="."?(zn()(n===!1),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`):`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`},Error);Er.ERR_MODULE_NOT_FOUND=Tn("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error);Er.ERR_NETWORK_IMPORT_DISALLOWED=Tn("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);Er.ERR_PACKAGE_IMPORT_NOT_DEFINED=Tn("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`,TypeError);Er.ERR_PACKAGE_PATH_NOT_EXPORTED=Tn("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>t==="."?`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`,Error);Er.ERR_UNSUPPORTED_DIR_IMPORT=Tn("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES module
|
||
|
|
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):ii().emitWarning(`No "main" or "exports" field defined in the package.json for ${a} resolving the main entry point "${i.slice(a.length)}", imported from ${o}.
|
||
|
|
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function bO(e){try{return(0,Yl().statSync)(e)}catch{}}function kE(e){let t=(0,Yl().statSync)(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r==null?!1:r}function vEe(e,t,r){let n;if(t.main!==void 0){if(n=new(Ie()).URL(t.main,e),kE(n))return n;let a=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],o=-1;for(;++o<a.length&&(n=new(Ie()).URL(a[o],e),!kE(n));)n=void 0;if(n)return lO(n,e,r,t.main),n}let s=["./index.js","./index.json","./index.node"],i=-1;for(;++i<s.length&&(n=new(Ie()).URL(s[i],e),!kE(n));)n=void 0;if(n)return lO(n,e,r,t.main),n;throw new ME((0,Ie().fileURLToPath)(new(Ie()).URL(".",e)),(0,Ie().fileURLToPath)(r))}function PEe(e,t,r){if(xEe.exec(e.pathname)!==null)throw new If(e.pathname,'must not include encoded "/" or "\\" characters',(0,Ie().fileURLToPath)(t));let n;try{n=(0,Ie().fileURLToPath)(e)}catch(i){let a=i;throw Object.defineProperty(a,"input",{value:String(e)}),Object.defineProperty(a,"module",{value:String(t)}),a}let s=bO(n.endsWith("/")?n.slice(-1):n);if(s&&s.isDirectory()){let i=new EEe(n,(0,Ie().fileURLToPath)(t));throw i.url=String(e),i}if(!s||!s.isFile()){let i=new ME(n||e.pathname,t&&(0,Ie().fileURLToPath)(t),!0);throw i.url=String(e),i}if(!r){let i=(0,Yl().realpathSync)(n),{search:a,hash:o}=e;e=(0,Ie().pathToFileURL)(i+(n.endsWith(Df().sep)?"/":"")),e.search=a,e.hash=o}return e}function AEe(e,t,r){return new gEe(e,t&&(0,Ie().fileURLToPath)(new(Ie()).URL(".",t)),(0,Ie().fileURLToPath)(r))}function FE(e,t,r){return new bEe((0,Ie().fileURLToPath)(new(Ie()).URL(".",t)),e,r&&(0,Ie().fileURLToPath)(r))}function CEe(e,t,r,n,s){let i=`request is not a valid match in pattern "${t}" for the "${n?"imports":"exports"}" resolution of ${(0,Ie().fileURLToPath)(r)}`;throw new If(e,i,s&&(0,Ie().fileURLToPath)(s))}function Gl(e,t,r,n,s){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new yEe((0,Ie().fileURLToPath)(new(Ie()).URL(".",r)),e,t,n,s&&(0,Ie().fileURLToPath)(s))}function DEe(e,t,r,n,s,i,a,o,l){if(t!==""&&!i&&e[e.length-1]!=="/")throw Gl(r,e,n,a,s);if(!e.startsWith("./")){if(a&&!e.startsWith("../")&&!e.startsWith("/")){let d=!1;try{new(Ie()).URL(e),d=!0}catch{}if(!d){let m=i?Af.call(Cf,e,()=>t):e+t;return TO(m,n,l)}}throw Gl(r,e,n,a,s)}if(sO.exec(e.slice(2))!==null)if(iO.exec(e.slice(2))===null){if(!o){let d=i?r.replace("*",()=>t):r+t,m=i?Af.call(Cf,e,()=>t):e;oO(m,d,r,n,a,s,!0)}}else throw Gl(r,e,n,a,s);let u=new(Ie()).URL(e,n),c=u.pathname,p=new(Ie()).URL(".",n).pathname;if(!c.startsWith(p))throw Gl(r,e,n,a,s);if(t==="")return u;if(sO.exec(t)!==null){let d=i?r.replace("*",()=>t):r+t;if(iO.exec(t)===null){if(!o){let m=i?Af.call(Cf,e,()=>t):e;oO(m,d,r,n,a,s,!1)}}else CEe(d,r,n,a,s)}return i?new(Ie()).URL(Af.call(Cf,u.href,()=>t)):new(Ie()).URL(t,u)}function wEe(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function lo(e,t,r,n,s,i,a,o,l){if(typeof t=="string")return DEe(t,r,n,e,s,i,a,o,l);if(Array.isArray(t)){let u=t;if(u.length===0)return null;let c,p=-1;for(;++p<u.length;){let d=u[p],m;try{m=lo(e,d,r,n,s,i,a,o,l)}catch(g){let f=g;if(c=f,f.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw g}if(m!==void 0){if(m===null){c=null;continue}return m}}if(c==null)return null;throw c}if(typeof t=="object"&&t!==null){let u=Object.getOwnPropertyNames(t),c=-1;for(;++c<u.length;){let p=u[c];if(wEe(p))throw new yO((0,Ie().fileURLToPath)(e),s,'"exports" cannot contain numeric property keys.')}for(c=-1;++c<u.length;){let p=u[c];if(p==="default"||l&&l.has(p)){let d=t[p],m=lo(e,d,r,n,s,i,a,o,l);if(m===void 0)continue;return m}}return null}if(t===null)return null;throw Gl(n,t,e,a,s)}function IEe(e,t,r){if(typeof e=="string"||Array.isArray(e))return!0;if(typeof e!="object"||e===null)return!1;let n=Object.getOwnPropertyNames(e),s=!1,i=0,a=-1;for(;++a<n.length;){let o=n[a],l=o===""||o[0]!==".";if(i++===0)s=l;else if(s!==l)throw new yO((0,Ie().fileURLToPath)(t),r,`"exports" cannot contain some keys starting
|
||
|
|
- If you want to resolve "${t}", use "module:${t}"`),(yield qE(e,"@babel/"+t)).error||(n.message+=`
|
||
|
|
- Did you mean "@babel/${t}"?`);let i=e==="preset"?"plugin":"preset";if((yield qE(i,t)).error||(n.message+=`
|
||
|
|
- Did you accidentally pass a ${i} as a ${e}?`),e==="plugin"){let a=r.replace("-proposal-","-transform-");a!==r&&!(yield a).error&&(n.message+=`
|
||
|
|
- Did you mean "${a}"?`)}throw n.message+=`
|
||
|
|
|
||
|
|
Make sure that all the Babel plugins and presets you are using
|
||
|
|
are defined as dependencies or devDependencies in your package.json
|
||
|
|
file. It's possible that the missing plugin is loaded by a preset
|
||
|
|
you are using that forgot to add the plugin to its dependencies: you
|
||
|
|
can workaround this problem by explicitly adding the missing package
|
||
|
|
to your top-level package.json.
|
||
|
|
`,n}function QEe(e,t){try{return t?{error:null,value:(((r,n)=>(r=r.split("."),n=n.split("."),+r[0]>+n[0]||r[0]==n[0]&&+r[1]>=+n[1]))(process.versions.node,"8.9")?require.resolve:(r,{paths:[n]},s=require("module"))=>{let i=s._findPath(r,s._nodeModulePaths(n).concat(n));if(i)return i;throw i=new Error(`Cannot resolve module '${r}'`),i.code="MODULE_NOT_FOUND",i})(e,{paths:[t]})}:{error:null,value:require.resolve(e)}}catch(r){return{error:r,value:null}}}function ZEe(e,t){try{return{error:null,value:(0,REe.resolve)(e,t)}}catch(r){return{error:r,value:null}}}function vO(e,t,r){let n=wO(e,t),s=n.next();for(;!s.done;)s=n.next(QEe(s.value,r));return{loader:"require",filepath:s.value}}function eTe(e,t,r){let n=(0,UE().pathToFileURL)(VE().join(r,"./babel-virtual-resolve-base.js")).href,s=wO(e,t),i=s.next();for(;!i.done;)i=s.next(ZEe(i.value,n));return{loader:"auto",filepath:(0,UE().fileURLToPath)(i.value)}}function IO(e,t,r,n){if(!AO.supportsESM||!n)return vO(e,t,r);try{let s=eTe(e,t,r);if(!(0,CO().existsSync)(s.filepath))throw Object.assign(new Error(`Could not resolve "${t}" in file ${r}.`),{type:"MODULE_NOT_FOUND"});return s}catch(s){try{return vO(e,t,r)}catch(i){throw s.type==="MODULE_NOT_FOUND"?s:i.type==="MODULE_NOT_FOUND"?i:s}}}Nf=new Set;var Nf;function*_O(e,t,r){if(!(yield*(0,$E.isAsync)())&&Nf.has(r))throw new Error(`Reentrant ${e} detected trying to load "${r}". This module is not ignored and is trying to load itself while compiling itself, leading to a dependency cycle. We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.`);try{return Nf.add(r),yield*(0,AO.default)(r,t,`You appear to be using a native ECMAScript module ${e}, which is only supported when running Babel asynchronously or when using the Node.js \`--experimental-require-module\` flag.`,`You appear to be using a ${e} that contains top-level await, which is only supported when running Babel asynchronously.`,!0)}catch(n){throw n.message=`[BABEL]: ${n.message} (While processing: ${r})`,n}finally{Nf.delete(r)}}});var Pl=x(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});Object.defineProperty(nn,"ROOT_CONFIG_FILENAMES",{enumerable:!0,get:function(){return uo.ROOT_CONFIG_FILENAMES}});Object.defineProperty(nn,"findConfigUpwards",{enumerable:!0,get:function(){return uo.findConfigUpwards}});Object.defineProperty(nn,"findPackageData",{enumerable:!0,get:function(){return tTe.findPackageData}});Object.defineProperty(nn,"findRelativeConfig",{enumerable:!0,get:function(){return uo.findRelativeConfig}});Object.defineProperty(nn,"findRootConfig",{enumerable:!0,get:function(){return uo.findRootConfig}});Object.defineProperty(nn,"loadConfig",{enumerable:!0,get:function(){return uo.loadConfig}});Object.defineProperty(nn,"loadPlugin",{enumerable:!0,get:function(){return Of.loadPlugin}});Object.defineProperty(nn,"loadPreset",{enumerable:!0,get:function(){return Of.loadPreset}});Object.defineProperty(nn,"resolvePlugin",{enumerable:!0,get:function(){return Of.resolvePlugin}});Object.defineProperty(nn,"resolvePreset",{enumerable:!0,get:function(){return Of.resolvePreset}});Object.defineProperty(nn,"resolveShowConfigPath",{enumerable:!0,get:function(){return uo.resolveShowConfigPath}});var tTe=G2(),uo=zN(),Of=NO()});var BO=x(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.transform=void 0;co.transformAsync=iTe;co.transformSync=sTe;function OO(){let e=Zr();return OO=function(){return e},e}var rTe=Qa(),nTe=tf(),Bf=fs(),kf=OO()(function*(t,r){let n=yield*(0,rTe.default)(r);return n===null?null:yield*(0,nTe.run)(n,t)}),o3e=co.transform=function(t,r,n){let s,i;if(typeof r=="function"?(i=r,s=void 0):(s=r,i=n),i===void 0)return(0,Bf.beginHiddenCallStack)(kf.sync)(t,s);(0,Bf.beginHiddenCallStack)(kf.errback)(t,s,i)};function sTe(...e){return(0,Bf.beginHiddenCallStack)(kf.sync)(...e)}function iTe(...e){return(0,Bf.beginHiddenCallStack)(kf.async)(...e)}});var FO=x(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.transformFromAst=void 0;po.transformFromAstAsync=uTe;po.transformFromAstSync=lTe;functio
|
||
|
|
DECORATOR(CLASS_REF = INNER) || CLASS_REF;
|
||
|
|
`),vTe=(0,ge.template)(`
|
||
|
|
CLASS_REF.prototype;
|
||
|
|
`),PTe=(0,ge.template)(`
|
||
|
|
Object.getOwnPropertyDescriptor(TARGET, PROPERTY);
|
||
|
|
`),ATe=(0,ge.template)(`
|
||
|
|
(TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), {
|
||
|
|
enumerable: true,
|
||
|
|
configurable: true,
|
||
|
|
writable: true,
|
||
|
|
initializer: function(){
|
||
|
|
return TEMP;
|
||
|
|
}
|
||
|
|
})
|
||
|
|
`),XE=new WeakSet;function KO(e){let r=(e.isClass()?[e,...e.get("body.body")]:e.get("properties")).reduce((n,s)=>n.concat(s.node.decorators||[]),[]).filter(n=>!ge.types.isIdentifier(n.expression));if(r.length!==0)return ge.types.sequenceExpression(r.map(n=>{let s=n.expression,i=n.expression=e.scope.generateDeclaredUidIdentifier("dec");return ge.types.assignmentExpression("=",i,s)}).concat([e.node]))}function CTe(e){if(!GO(e.node))return;let t=e.node.decorators||[];e.node.decorators=null;let r=e.scope.generateDeclaredUidIdentifier("class");return t.map(n=>n.expression).reverse().reduce(function(n,s){return STe({CLASS_REF:ge.types.cloneNode(r),DECORATOR:ge.types.cloneNode(s),INNER:n}).expression},e.node)}function GO(e){var t;return!!((t=e.decorators)!=null&&t.length)}function DTe(e,t){if(YE(e.node.body.body))return XO(e,t,e.node.body.body)}function YE(e){return e.some(t=>{var r;return(r=t.decorators)==null?void 0:r.length})}function wTe(e,t){if(YE(e.node.properties))return XO(e,t,e.node.properties.filter(r=>r.type!=="SpreadElement"))}function XO(e,t,r){let n=e.scope.generateDeclaredUidIdentifier(e.isClass()?"class":"obj"),s=r.reduce(function(i,a){let o=[];if(a.decorators!=null&&(o=a.decorators,a.decorators=null),o.length===0)return i;if(a.computed)throw e.buildCodeFrameError("Computed method/property decorators are not yet supported.");let l=ge.types.isLiteral(a.key)?a.key:ge.types.stringLiteral(a.key.name),u=e.isClass()&&!a.static?vTe({CLASS_REF:n}).expression:n;if(ge.types.isClassProperty(a,{static:!1})){let c=e.scope.generateDeclaredUidIdentifier("descriptor"),p=a.value?ge.types.functionExpression(null,[],ge.types.blockStatement([ge.types.returnStatement(a.value)])):ge.types.nullLiteral();a.value=ge.types.callExpression(t.addHelper("initializerWarningHelper"),[c,ge.types.thisExpression()]),XE.add(a.value),i.push(ge.types.assignmentExpression("=",ge.types.cloneNode(c),ge.types.callExpression(t.addHelper("applyDecoratedDescriptor"),[ge.types.cloneNode(u),ge.types.cloneNode(l),ge.types.arrayExpression(o.map(d=>ge.types.cloneNode(d.expression))),ge.types.objectExpression([ge.types.objectProperty(ge.types.identifier("configurable"),ge.types.booleanLiteral(!0)),ge.types.objectProperty(ge.types.identifier("enumerable"),ge.types.booleanLiteral(!0)),ge.types.objectProperty(ge.types.identifier("writable"),ge.types.booleanLiteral(!0)),ge.types.objectProperty(ge.types.identifier("initializer"),p)])])))}else i.push(ge.types.callExpression(t.addHelper("applyDecoratedDescriptor"),[ge.types.cloneNode(u),ge.types.cloneNode(l),ge.types.arrayExpression(o.map(c=>ge.types.cloneNode(c.expression))),ge.types.isObjectProperty(a)||ge.types.isClassProperty(a,{static:!0})?ATe({TEMP:e.scope.generateDeclaredUidIdentifier("init"),TARGET:ge.types.cloneNode(u),PROPERTY:ge.types.cloneNode(l)}).expression:PTe({TARGET:ge.types.cloneNode(u),PROPERTY:ge.types.cloneNode(l)}).expression,ge.types.cloneNode(u)]));return i},[]);return ge.types.sequenceExpression([ge.types.assignmentExpression("=",ge.types.cloneNode(n),e.node),ge.types.sequenceExpression(s),ge.types.cloneNode(n)])}function HO({node:e,scope:t}){if(!GO(e)&&!YE(e.body.body))return;let r=e.id?ge.types.cloneNode(e.id):t.generateUidIdentifier("class");return ge.types.variableDeclaration("let",[ge.types.variableDeclarator(r,ge.types.toExpression(e))])}var ITe={ExportDefaultDeclaration(e){let t=e.get("declaration");if(!t.isClassDeclaration())return;let r=HO(t);if(r){let[n]=e.replaceWithMultiple([r,ge.types.exportNamedDeclaration(null,[ge.types.exportSpecifier(ge.types.cloneNode(r.declarations[0].id),ge.types.identifier("default"))])]);t.node.id||e.scope.registerDeclaration(n)}},ClassDeclaration(e){let t=HO(e);if(t){let[r]=e.replaceWith(t),n=r.get("declarations.0"),s=n.node.id,i=e.scope.getOwnBinding(s.name);i.identifier=s,i.path=n}},ClassExpression(e,t){let r=KO(e)||CTe(e)||DTe(e,t);r&&e.replaceWith(r)},ObjectExpression(e,t){let r=KO(e)||wTe(e,t);r&&e.replaceWith(r)},AssignmentExpression(e,t){XE.has(e.node.right)&&e.replaceWith(ge.types.callExpression(t.addHelper("initializerDefineProperty"),[ge.types.
|
||
|
|
Array.prototype.slice.call(${t})
|
||
|
|
`;let i,a=[t];return typeof r=="number"?(a.push(K.types.numericLiteral(r)),i="slicedToArray"):i="toArray",s&&(a.unshift(n.path.hub.addHelper(i)),i="maybeArrayLike"),K.types.callExpression(n.path.hub.addHelper(i),a)}}pushAssignmentPattern({left:t,right:r},n){if(ZO(n)){this.push(t,r);return}let s=this.scope.generateUidIdentifierBasedOnNode(n);this.nodes.push(this.buildVariableDeclaration(s,n));let i=K.types.conditionalExpression(K.types.binaryExpression("===",K.types.cloneNode(s),this.scope.buildUndefinedNode()),r,K.types.cloneNode(s));if(K.types.isPattern(t)){let a,o;this.kind==="const"||this.kind==="let"?(a=this.scope.generateUidIdentifier(s.name),o=this.buildVariableDeclaration(a,i)):(a=s,o=K.types.expressionStatement(K.types.assignmentExpression("=",K.types.cloneNode(s),i))),this.nodes.push(o),this.push(t,a)}else this.nodes.push(this.buildVariableAssignment(t,i))}pushObjectRest(t,r,n,s){let i=n3(t.properties.slice(0,s),r,this.scope,a=>this.addHelper(a),this.objectRestNoSymbols,this.useBuiltIns);this.nodes.push(this.buildVariableAssignment(n.argument,i))}pushObjectProperty(t,r){K.types.isLiteral(t.key)&&(t.computed=!0);let n=t.value,s=K.types.memberExpression(K.types.cloneNode(r),t.key,t.computed);K.types.isPattern(n)?this.push(n,s):this.nodes.push(this.buildVariableAssignment(n,s))}pushObjectPattern(t,r){if(!t.properties.length){this.nodes.push(K.types.expressionStatement(K.types.callExpression(this.addHelper("objectDestructuringEmpty"),ZO(r)?[]:[r])));return}if(t.properties.length>1&&!this.scope.isStatic(r)){let n=this.scope.generateUidIdentifierBasedOnNode(r);this.nodes.push(this.buildVariableDeclaration(n,r)),r=n}if(BTe(t)){let n;for(let s=0;s<t.properties.length;s++){let i=t.properties[s];if(K.types.isRestElement(i))break;let a=i.key;if(i.computed&&!this.scope.isPure(a)){let o=this.scope.generateUidIdentifierBasedOnNode(a);this.nodes.push(this.buildVariableDeclaration(o,a)),n||(n=t=Object.assign({},t,{properties:t.properties.slice()})),n.properties[s]=Object.assign({},i,{key:o})}}}for(let n=0;n<t.properties.length;n++){let s=t.properties[n];K.types.isRestElement(s)?this.pushObjectRest(t,r,s,n):this.pushObjectProperty(s,r)}}canUnpackArrayPattern(t,r){if(!K.types.isArrayExpression(r))return!1;if(t.elements.length>r.elements.length)return;if(t.elements.length<r.elements.length&&!e3(t))return!1;for(let i of t.elements)if(!i||K.types.isMemberExpression(i))return!1;for(let i of r.elements)if(K.types.isSpreadElement(i)||K.types.isCallExpression(i)||K.types.isMemberExpression(i))return!1;let s={deopt:!1,bindings:K.types.getBindingIdentifiers(t)};try{K.types.traverse(r,kTe,s)}catch(i){if(i!==r3)throw i}return!s.deopt}pushUnpackedArrayPattern(t,r){let n=s=>s!=null?s:this.scope.buildUndefinedNode();for(let s=0;s<t.elements.length;s++){let i=t.elements[s];K.types.isRestElement(i)?this.push(i.argument,K.types.arrayExpression(r.elements.slice(s).map(n))):this.push(i,n(r.elements[s]))}}pushArrayPattern(t,r){if(r===null){this.nodes.push(K.types.expressionStatement(K.types.callExpression(this.addHelper("objectDestructuringEmpty"),[])));return}if(!t.elements)return;if(this.canUnpackArrayPattern(t,r)){this.pushUnpackedArrayPattern(t,r);return}let n=!e3(t)&&t.elements.length,s=this.toArray(r,n);K.types.isIdentifier(s)?r=s:(r=this.scope.generateUidIdentifierBasedOnNode(r),this.arrayRefSet.add(r.name),this.nodes.push(this.buildVariableDeclaration(r,s)));for(let i=0;i<t.elements.length;i++){let a=t.elements[i];if(!a)continue;let o;K.types.isRestElement(a)?(o=this.toArray(r),o=K.types.callExpression(K.types.memberExpression(o,K.types.identifier("slice")),[K.types.numericLiteral(i)]),this.push(a.argument,o)):(o=K.types.memberExpression(r,K.types.numericLiteral(i),!0),this.push(a,o))}}init(t,r){if(!K.types.isArrayExpression(r)&&!K.types.isMemberExpression(r)){let n=this.scope.maybeGenerateMemoised(r,!0);n&&(this.nodes.push(this.buildVariableDeclaration(n,K.types.cloneNode(r))),r=n)}return this.push(t,r),this.nodes}};function n3(e,t,r,n,s,i){let a=[],o=!0,l=!1;for(let c=0;c<e.length;c++){let p=e[c],d=p.key;K.types.isIdentifier(d)&&!
|
||
|
|
try {
|
||
|
|
var ${Re.types.cloneNode(o)} = ${a.addHelper("usingCtx")}();
|
||
|
|
${i.node.body}
|
||
|
|
} catch (_) {
|
||
|
|
${Re.types.cloneNode(o)}.e = _;
|
||
|
|
} finally {
|
||
|
|
${l?Re.types.awaitExpression(c):c}
|
||
|
|
}
|
||
|
|
`;Re.types.inherits(p,i.node);let{parentPath:d}=i;d.isFunction()||d.isTryStatement()||d.isCatchClause()?i.replaceWith(Re.types.blockStatement([p])):i.isStaticBlock()?i.node.body=[p]:i.replaceWith(p)}},s=Re.traverse.visitors.merge([n,{Function(i){i.skip()}}]);return{name:"transform-explicit-resource-management",manipulateOptions:(i,a)=>a.plugins.push("explicitResourceManagement"),visitor:Re.traverse.visitors.merge([n,{Program(i){if(t.clear(),i.node.sourceType!=="module"||!i.node.body.some(r))return;let a=[];for(let o of i.get("body")){if(o.isFunctionDeclaration()||o.isImportDeclaration())continue;let l=o.node,u=!0;if(o.isExportDefaultDeclaration()){let{declaration:c}=o.node,p;if(Re.types.isClassDeclaration(c))p=c.id,c.id=Re.types.cloneNode(p),c=Re.types.toExpression(c);else if(!Re.types.isExpression(c))continue;p!=null||(p=i.scope.generateUidIdentifier("_default")),a.push(Re.types.variableDeclaration("var",[Re.types.variableDeclarator(p,c)])),o.replaceWith(Re.types.exportNamedDeclaration(null,[Re.types.exportSpecifier(Re.types.cloneNode(p),Re.types.identifier("default"))]));continue}if(o.isExportNamedDeclaration()){if(l=o.node.declaration,!l||Re.types.isFunction(l))continue;o.replaceWith(Re.types.exportNamedDeclaration(null,Object.keys(Re.types.getOuterBindingIdentifiers(l,!1)).map(c=>Re.types.exportSpecifier(Re.types.identifier(c),Re.types.identifier(c))))),u=!1}else if(o.isExportDeclaration())continue;if(Re.types.isClassDeclaration(l)){let{id:c}=l;l.id=Re.types.cloneNode(c),a.push(Re.types.variableDeclaration("var",[Re.types.variableDeclarator(c,Re.types.toExpression(l))]))}else Re.types.isVariableDeclaration(l)?(l.kind==="using"?t.set(o.node,0):l.kind==="await using"&&t.set(o.node,1),l.kind="var",a.push(l)):a.push(o.node);u&&o.remove()}i.pushContainer("body",Re.types.blockStatement(a))},Function(i,a){i.node.async&&i.traverse(s,a)}}])}})});var o3=x(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.default=void 0;var VTe=Ft(),a3=so(),w3e=Wf.default=(0,VTe.declare)((e,t)=>(e.assertVersion(7),(0,a3.createClassFeaturePlugin)({name:"transform-class-properties",api:e,feature:a3.FEATURES.fields,loose:t.loose,manipulateOptions(r,n){n.plugins.push("classProperties","classPrivateProperties")}})))});var u3=x(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.default=void 0;var $Te=Ft(),l3=so();function WTe(e,t){let n,s=1;do n="_",s>1&&(n+=s),s++;while(t.has(n));return n}var _3e=Kf.default=(0,$Te.declare)(({types:e,template:t,assertVersion:r})=>(r("^7.12.0 || >8.0.0-alpha <8.0.0-beta"),{name:"transform-class-static-block",manipulateOptions:(n,s)=>s.plugins.push("classStaticBlock"),pre(){(0,l3.enableFeature)(this.file,l3.FEATURES.staticBlocks,!1)},visitor:{ClassBody(n){let{scope:s}=n,i=new Set,a=n.get("body");for(let o of a)o.isPrivate()&&i.add(o.get("key.id").node.name);for(let o of a){if(!o.isStaticBlock())continue;let l=WTe(s,i);i.add(l);let u=e.privateName(e.identifier(l)),c,p=o.node.body;p.length===1&&e.isExpressionStatement(p[0])?c=e.inheritsComments(p[0].expression,p[0]):c=t.expression.ast`(() => { ${p} })()`,o.replaceWith(e.classPrivateProperty(u,c,[],!0))}}}}))});var p3=x(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.default=void 0;var KTe=Ft();function c3({node:e}){var t;let{extra:r}=e;r!=null&&(t=r.raw)!=null&&t.includes("_")&&(r.raw=r.raw.replace(/_/g,""))}var O3e=Hf.default=(0,KTe.declare)(e=>(e.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta"),{name:"transform-numeric-separator",manipulateOptions:(t,r)=>r.plugins.push("numericSeparator"),visitor:{NumericLiteral:c3,BigIntLiteral:c3}}))});var f3=x(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.default=void 0;var HTe=Ft(),Ds=vt(),k3e=Gf.default=(0,HTe.declare)(e=>(e.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta"),{name:"transform-logical-assignment-operators",manipulateOptions:(t,r)=>r.plugins.push("logicalAssignment"),visitor:{AssignmentExpression(t){let{node:r,scope:n}=t,{operator:s,left:i,right:a}=r,o=s.slice(0,-1);if(!Ds.types.LOGICAL_OPERATORS.includes(o))return
|
||
|
|
fileName: ${e},
|
||
|
|
lineNumber: ${n},
|
||
|
|
columnNumber: ${s},
|
||
|
|
}`}function A3(e,t){let r=`transform-react-jsx-${t.slice(2)}`;return e.buildCodeFrameError(`Duplicate ${t} prop found. You are most likely using the deprecated ${r} Babel plugin. Both __source and __self are automatically set when using the automatic runtime. Please remove transform-react-jsx-source and transform-react-jsx-self from your Babel config.`)}});var D3=x(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.default=void 0;var vxe=C3(),X3e=rd.default=(0,vxe.default)({name:"transform-react-jsx",development:!1})});var Dxe={};U3(Dxe,{babelParse:()=>Cxe,babelTransform:()=>Axe,codeFrameColumns:()=>O3.codeFrameColumns,declare:()=>B3.declare,traverse:()=>Pxe,types:()=>k3.types});module.exports=V3(Dxe);var w3=ci(require("path")),nd=ci(vt()),I3=ci(zt()),O3=ci(Ta()),B3=ci(Ft()),k3=ci(vt()),Pxe=I3.default;function _3(e,t,r,n){let s=[[$O(),{deprecatedAssertSyntax:!0}]];return e&&s.push([QO(),{version:"2023-05"}],[i3()],[o3()],[u3()],[p3()],[f3()],[d3()],[y3()],[b3()],[E3()],[T3()],[x3()],[S3()],[v3()],[({template:i})=>({name:"replace-ts-export-assignment",visitor:{TSExportAssignment(a){a.replaceWith(i("module.exports = ASSIGNMENT;")({ASSIGNMENT:a.node.expression}))}}})]),s.push([D3(),{throwIfNamespace:!1,runtime:"automatic",importSource:w3.default.dirname(require.resolve("playwright"))}]),t||(s.push([TE()]),s.push([()=>({name:"css-to-identity-obj-proxy",visitor:{ImportDeclaration(i){i.node.source.value.match(/\.(css|less|scss)$/)&&i.remove()}}})])),{browserslistConfigFile:!1,babelrc:!1,configFile:!1,assumptions:{setPublicClassFields:!0},presets:e?[[SE(),{onlyRemoveTypeImports:!1}]]:[],plugins:[...r.map(([i,a])=>[require(i),a]),...s,...n.map(([i,a])=>[require(i),a])],compact:!1,sourceMaps:"both"}}var tT=!1;function N3(e){return e.endsWith(".ts")||e.endsWith(".tsx")||e.endsWith(".mts")||e.endsWith(".cts")}function Axe(e,t,r,n,s){if(tT)return null;tT=!0;try{let i=_3(N3(t),r,n,s);return nd.transform(e,{filename:t,...i})}finally{tT=!1}}function Cxe(e,t,r){let n=_3(N3(t),r,[],[]);return nd.parse(e,{filename:t,...n})}0&&(module.exports={babelParse,babelTransform,codeFrameColumns,declare,traverse,types});
|