@tachybase/module-cloud-component 1.3.19 → 1.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -121,7 +121,7 @@
121
121
  // writable is false by default
122
122
  value: ${o.name}
123
123
  });
124
- `,t)}function buildPrivateMethodDeclaration(e,t,r,a=false){const n=r.get(t.node.key.id.name);const{id:i,methodId:o,getId:l,setId:c,getterDeclared:u,setterDeclared:p,static:d}=n;const{params:f,body:y,generator:g,async:b}=t.node;const x=l&&f.length===0;const v=c&&f.length>0;if(x&&u||v&&p){r.set(t.node.key.id.name,Object.assign({},n,{initAdded:true}));return null}if(newHelpers(e)&&(x||v)&&!a){const e=t.get("body").scope;const r=e.generateUidIdentifier("this");const a={thisRef:r,argumentsPath:[]};t.traverse(h,a);if(a.argumentsPath.length){const t=e.generateUidIdentifier("arguments");e.push({id:t,init:s.template.expression.ast`[].slice.call(arguments, 1)`});for(const e of a.argumentsPath){e.replaceWith(s.types.cloneNode(t))}}f.unshift(s.types.cloneNode(r))}let E=o;if(x){r.set(t.node.key.id.name,Object.assign({},n,{getterDeclared:true,initAdded:true}));E=l}else if(v){r.set(t.node.key.id.name,Object.assign({},n,{setterDeclared:true,initAdded:true}));E=c}else if(d&&!a){E=i}return inheritPropComments(s.types.functionDeclaration(s.types.cloneNode(E),f,y,g,b),t)}const h=a.visitors.environmentVisitor({Identifier(e,t){if(t.argumentsPath&&e.node.name==="arguments"){t.argumentsPath.push(e)}},UnaryExpression(e){const{node:t}=e;if(t.operator==="delete"){const r=(0,c.skipTransparentExprWrapperNodes)(t.argument);if(s.types.isThisExpression(r)){e.replaceWith(s.types.booleanLiteral(true))}}},ThisExpression(e,t){t.needsClassRef=true;e.replaceWith(s.types.cloneNode(t.thisRef))},MetaProperty(e){const{node:t,scope:r}=e;if(t.meta.name==="new"&&t.property.name==="target"){e.replaceWith(r.buildUndefinedNode())}}});const g={ReferencedIdentifier(e,t){if(e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)){t.needsClassRef=true;e.node.name=t.thisRef.name}}};function replaceThisContext(e,t,r){var s;const a={thisRef:t,needsClassRef:false,innerBinding:r};if(!e.isMethod()){e.traverse(h,a)}if(r!=null&&(s=a.thisRef)!=null&&s.name&&a.thisRef.name!==r.name){e.traverse(g,a)}return a.needsClassRef}function isNameOrLength({key:e,computed:t}){if(e.type==="Identifier"){return!t&&(e.name==="name"||e.name==="length")}if(e.type==="StringLiteral"){return e.value==="name"||e.value==="length"}return false}function inheritPropComments(e,t){s.types.inheritLeadingComments(e,t.node);s.types.inheritInnerComments(e,t.node);return e}function inheritLoc(e,t){e.start=t.start;e.end=t.end;e.loc=t.loc;return e}function buildFieldsInitNodes(e,t,r,a,i,o,l,c,p,d){let f=0;let y;const h=[];const g=[];let b=false;const x=[];let v=null;const E=s.types.isIdentifier(t)?()=>t:()=>{y!=null?y:y=r[0].scope.generateUidIdentifierBasedOnNode(t);return y};const S=e!=null?e:r[0].scope.generateUidIdentifier((d==null?void 0:d.name)||"Class");e!=null?e:e=s.types.cloneNode(d);for(const t of r){if(t.isClassProperty()){u.assertFieldTransformed(t)}const r=!(s.types.isStaticBlock!=null&&s.types.isStaticBlock(t.node))&&t.node.static;const y=!r;const v=t.isPrivate();const T=!v;const j=t.isProperty();const w=!j;const P=t.isStaticBlock==null?void 0:t.isStaticBlock();if(r)f|=1;if(r||w&&v||P){new n.default({methodPath:t,constantSuper:p,file:i,refToPreserve:d,getSuperRef:E,getObjectRef(){f|=2;if(r||P){return S}else{return s.types.memberExpression(S,s.types.identifier("prototype"))}}}).replace();const e=replaceThisContext(t,S,d);if(e){f|=2}}b=false;switch(true){case P:{const e=t.node.body;if(e.length===1&&s.types.isExpressionStatement(e[0])){h.push(inheritPropComments(e[0],t))}else{h.push(s.types.inheritsComments(s.template.statement.ast`(() => { ${e} })()`,t.node))}break}case r&&v&&j&&l:h.push(buildPrivateFieldInitLoose(s.types.cloneNode(e),t,a));break;case r&&v&&j&&!l:if(!newHelpers(i)){h.push(buildPrivateStaticFieldInitSpecOld(t,a))}else{h.push(buildPrivateStaticFieldInitSpec(t,a,c))}break;case r&&T&&j&&o:if(!isNameOrLength(t.node)){h.push(buildPublicFieldInitLoose(s.types.cloneNode(e),t));break}case r&&T&&j&&!o:h.push(buildPublicFieldInitSpec(s.types.cloneNode(e),t,i));break;case y&&v&&j&&l:g.push(buildPrivateFieldInitLoose(s.types.thisExpression(),t,a));break;case y&&v&&j&&!l:g.push(buildPrivateInstanceFieldInitSpec(s.types.thisExpression(),t,a,i));break;case y&&v&&w&&l:g.unshift(buildPrivateMethodInitLoose(s.types.thisExpression(),t,a));x.push(buildPrivateMethodDeclaration(i,t,a,l));break;case y&&v&&w&&!l:g.unshift(buildPrivateInstanceMethodInitSpec(s.types.thisExpression(),t,a,i));x.push(buildPrivateMethodDeclaration(i,t,a,l));break;case r&&v&&w&&!l:if(!newHelpers(i)){h.unshift(buildPrivateStaticFieldInitSpecOld(t,a))}x.push(buildPrivateMethodDeclaration(i,t,a,l));break;case r&&v&&w&&l:h.unshift(buildPrivateStaticMethodInitLoose(s.types.cloneNode(e),t,i,a));x.push(buildPrivateMethodDeclaration(i,t,a,l));break;case y&&T&&j&&o:g.push(buildPublicFieldInitLoose(s.types.thisExpression(),t));break;case y&&T&&j&&!o:b=true;g.push(buildPublicFieldInitSpec(s.types.thisExpression(),t,i));break;default:throw new Error("Unreachable.")}}if(f&2&&d!=null){v=s.types.expressionStatement(s.types.assignmentExpression("=",s.types.cloneNode(S),s.types.cloneNode(d)))}return{staticNodes:h.filter(Boolean),instanceNodes:g.filter(Boolean),lastInstanceNodeReturnsThis:b,pureStaticNodes:x.filter(Boolean),classBindingNode:v,wrapClass(t){for(const e of r){e.node.leadingComments=null;e.remove()}if(y){t.scope.push({id:s.types.cloneNode(y)});t.set("superClass",s.types.assignmentExpression("=",y,t.node.superClass))}if(f!==0){if(t.isClassExpression()){t.scope.push({id:e});t.replaceWith(s.types.assignmentExpression("=",s.types.cloneNode(e),t.node))}else{if(d==null){t.node.id=e}if(v!=null){t.scope.push({id:S})}}}return t}}}},2061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"FEATURES",{enumerable:true,get:function(){return c.FEATURES}});Object.defineProperty(t,"buildCheckInRHS",{enumerable:true,get:function(){return n.buildCheckInRHS}});t.createClassFeaturePlugin=createClassFeaturePlugin;Object.defineProperty(t,"enableFeature",{enumerable:true,get:function(){return c.enableFeature}});Object.defineProperty(t,"injectInitialization",{enumerable:true,get:function(){return l.injectInitialization}});var s=r(1485);var a=r(8804);var n=r(5896);var i=r(4063);var o=r(551);var l=r(7929);var c=r(818);var u=r(849);const p="@babel/plugin-class-features/version";function createClassFeaturePlugin({name:e,feature:t,loose:d,manipulateOptions:f,api:y,inherits:h,decoratorVersion:g}){var b;if(t&c.FEATURES.decorators){{if(g==="2023-11"||g==="2023-05"||g==="2023-01"||g==="2022-03"||g==="2021-12"){return(0,i.default)(y,{loose:d},g,h)}}}{y!=null?y:y={assumption:()=>void 0}}const x=y.assumption("setPublicClassFields");const v=y.assumption("privateFieldsAsSymbols");const E=y.assumption("privateFieldsAsProperties");const S=(b=y.assumption("noUninitializedPrivateFieldAccess"))!=null?b:false;const T=y.assumption("constantSuper");const j=y.assumption("noDocumentAll");if(E&&v){throw new Error(`Cannot enable both the "privateFieldsAsProperties" and `+`"privateFieldsAsSymbols" assumptions as the same time.`)}const w=E||v;if(d===true){const t=[];if(x!==undefined){t.push(`"setPublicClassFields"`)}if(E!==undefined){t.push(`"privateFieldsAsProperties"`)}if(v!==undefined){t.push(`"privateFieldsAsSymbols"`)}if(t.length!==0){console.warn(`[${e}]: You are using the "loose: true" option and you are`+` explicitly setting a value for the ${t.join(" and ")}`+` assumption${t.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:\n`+`\t"assumptions": {\n`+`\t\t"setPublicClassFields": true,\n`+`\t\t"privateFieldsAsSymbols": true\n`+`\t}`)}}return{name:e,manipulateOptions:f,inherits:h,pre(e){(0,c.enableFeature)(e,t,d);{if(typeof e.get(p)==="number"){e.set(p,"7.27.1");return}}if(!e.get(p)||a.lt(e.get(p),"7.27.1")){e.set(p,"7.27.1")}},visitor:{Class(e,{file:a}){if(a.get(p)!=="7.27.1")return;if(!(0,c.shouldTransform)(e,a))return;const d=e.isClassDeclaration();if(d)(0,u.assertFieldTransformed)(e);const f=(0,c.isLoose)(a,t);let y;const h=(0,i.hasDecorators)(e.node);const g=[];const b=[];const P=[];const C=new Set;const A=e.get("body");for(const e of A.get("body")){if((e.isClassProperty()||e.isClassMethod())&&e.node.computed){P.push(e)}if(e.isPrivate()){const{name:t}=e.node.key.id;const r=`get ${t}`;const s=`set ${t}`;if(e.isClassPrivateMethod()){if(e.node.kind==="get"){if(C.has(r)||C.has(t)&&!C.has(s)){throw e.buildCodeFrameError("Duplicate private field")}C.add(r).add(t)}else if(e.node.kind==="set"){if(C.has(s)||C.has(t)&&!C.has(r)){throw e.buildCodeFrameError("Duplicate private field")}C.add(s).add(t)}}else{if(C.has(t)&&!C.has(r)&&!C.has(s)||C.has(t)&&(C.has(r)||C.has(s))){throw e.buildCodeFrameError("Duplicate private field")}C.add(t)}}if(e.isClassMethod({kind:"constructor"})){y=e}else{b.push(e);if(e.isProperty()||e.isPrivate()||e.isStaticBlock!=null&&e.isStaticBlock()){g.push(e)}}}{if(!g.length&&!h)return}const D=e.node.id;let k;if(!D||!d){{var I;(I=e.ensureFunctionName)!=null?I:e.ensureFunctionName=r(8384).NodePath.prototype.ensureFunctionName}e.ensureFunctionName(false);k=e.scope.generateUidIdentifier((D==null?void 0:D.name)||"Class")}const _=k!=null?k:s.types.cloneNode(D);const O=(0,n.buildPrivateNamesMap)(_.name,w!=null?w:f,g,a);const N=(0,n.buildPrivateNamesNodes)(O,E!=null?E:f,v!=null?v:false,a);(0,n.transformPrivateNamesUsage)(_,e,O,{privateFieldsAsProperties:w!=null?w:f,noUninitializedPrivateFieldAccess:S,noDocumentAll:j,innerBinding:D},a);let F,B,M,L,R,U,q;{if(h){B=R=F=[];({instanceNodes:M,wrapClass:q}=(0,o.buildDecoratedClass)(_,e,b,a))}else{F=(0,l.extractComputedKeys)(e,P,a);({staticNodes:B,pureStaticNodes:R,instanceNodes:M,lastInstanceNodeReturnsThis:L,classBindingNode:U,wrapClass:q}=(0,n.buildFieldsInitNodes)(k,e.node.superClass,g,O,a,x!=null?x:f,w!=null?w:f,S,T!=null?T:f,D))}}if(M.length>0){(0,l.injectInitialization)(e,y,M,((e,t)=>{{if(h)return}for(const r of g){if(s.types.isStaticBlock!=null&&s.types.isStaticBlock(r.node)||r.node.static)continue;r.traverse(e,t)}}),L)}const V=q(e);V.insertBefore([...N,...F]);if(B.length>0){V.insertAfter(B)}if(R.length>0){V.find((e=>e.isStatement()||e.isDeclaration())).insertAfter(R)}if(U!=null&&d){V.insertAfter(U)}},ExportDefaultDeclaration(e,{file:t}){{if(t.get(p)!=="7.27.1")return;const a=e.get("declaration");if(a.isClassDeclaration()&&(0,i.hasDecorators)(a.node)){if(a.node.id){{var s;(s=e.splitExportDeclaration)!=null?s:e.splitExportDeclaration=r(8384).NodePath.prototype.splitExportDeclaration}e.splitExportDeclaration()}else{a.node.type="ClassExpression"}}}}}}}},7929:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extractComputedKeys=extractComputedKeys;t.injectInitialization=injectInitialization;t.memoiseComputedKey=memoiseComputedKey;var s=r(1485);var a=r(8384);const n=a.visitors.environmentVisitor({Super(e){const{node:t,parentPath:r}=e;if(r.isCallExpression({callee:t})){this.push(r)}}});const i={"TSTypeAnnotation|TypeAnnotation"(e){e.skip()},ReferencedIdentifier(e,{scope:t}){if(t.hasOwnBinding(e.node.name)){t.rename(e.node.name);e.skip()}}};function handleClassTDZ(e,t){if(t.classBinding&&t.classBinding===e.scope.getBinding(e.node.name)){const r=t.file.addHelper("classNameTDZError");const a=s.types.callExpression(r,[s.types.stringLiteral(e.node.name)]);e.replaceWith(s.types.sequenceExpression([a,e.node]));e.skip()}}const o={ReferencedIdentifier:handleClassTDZ,"TSTypeAnnotation|TypeAnnotation"(e){e.skip()}};function injectInitialization(e,t,r,a,o){if(!r.length)return;const l=!!e.node.superClass;if(!t){const r=s.types.classMethod("constructor",s.types.identifier("constructor"),[],s.types.blockStatement([]));if(l){r.params=[s.types.restElement(s.types.identifier("args"))];r.body.body.push(s.template.statement.ast`super(...args)`)}[t]=e.get("body").unshiftContainer("body",r)}if(a){a(i,{scope:t.scope})}if(l){const e=[];t.traverse(n,e);let a=true;for(const t of e){if(a){a=false}else{r=r.map((e=>s.types.cloneNode(e)))}if(!t.parentPath.isExpressionStatement()){const e=[t.node,...r.map((e=>s.types.toExpression(e)))];if(!o)e.push(s.types.thisExpression());t.replaceWith(s.types.sequenceExpression(e))}else{t.insertAfter(r)}}}else{t.get("body").unshiftContainer("body",r)}}function memoiseComputedKey(e,t,r){const a=s.types.isIdentifier(e)&&t.hasUid(e.name);if(a){return}const n=s.types.isAssignmentExpression(e,{operator:"="})&&s.types.isIdentifier(e.left)&&t.hasUid(e.left.name);if(n){return s.types.cloneNode(e)}else{const a=s.types.identifier(r);t.push({id:a,kind:"let"});return s.types.assignmentExpression("=",s.types.cloneNode(a),e)}}function extractComputedKeys(e,t,r){const{scope:a}=e;const n=[];const i={classBinding:e.node.id&&a.getBinding(e.node.id.name),file:r};for(const e of t){const t=e.get("key");if(t.isReferencedIdentifier()){handleClassTDZ(t,i)}else{t.traverse(o,i)}const r=e.node;if(!t.isConstantExpression()){const e=memoiseComputedKey(t.node,a,a.generateUidBasedOnNode(t.node));if(e){n.push(s.types.expressionStatement(e));r.key=s.types.cloneNode(e.left)}}}return n}},849:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertFieldTransformed=assertFieldTransformed;function assertFieldTransformed(e){if(e.node.declare||false){throw e.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by `+`@babel/plugin-transform-typescript.\n`+`If you have already enabled that plugin (or '@babel/preset-typescript'), make sure `+`that it runs before any plugin related to additional class features:\n`+` - @babel/plugin-transform-class-properties\n`+` - @babel/plugin-transform-private-methods\n`+` - @babel/plugin-proposal-decorators`)}}},6961:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FEATURES=void 0;t.enableFeature=enableFeature;t.featuresKey=void 0;t.hasFeature=hasFeature;t.runtimeKey=void 0;const r=t.FEATURES=Object.freeze({unicodeFlag:1<<0,dotAllFlag:1<<1,unicodePropertyEscape:1<<2,namedCaptureGroups:1<<3,unicodeSetsFlag_syntax:1<<4,unicodeSetsFlag:1<<5,duplicateNamedCaptureGroups:1<<6,modifiers:1<<7});const s=t.featuresKey="@babel/plugin-regexp-features/featuresKey";const a=t.runtimeKey="@babel/plugin-regexp-features/runtimeKey";function enableFeature(e,t){return e|t}function hasFeature(e,t){return!!(e&t)}},8609:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createRegExpFeaturePlugin=createRegExpFeaturePlugin;var s=r(9777);var a=r(1485);var n=r(9508);var i=r(8804);var o=r(6961);var l=r(2777);const c="@babel/plugin-regexp-features/version";function createRegExpFeaturePlugin({name:e,feature:t,options:r={},manipulateOptions:u=()=>{}}){return{name:e,manipulateOptions:u,pre(){var e;const{file:s}=this;const a=(e=s.get(o.featuresKey))!=null?e:0;let n=(0,o.enableFeature)(a,o.FEATURES[t]);const{useUnicodeFlag:l,runtime:u}=r;if(l===false){n=(0,o.enableFeature)(n,o.FEATURES.unicodeFlag)}if(n!==a){s.set(o.featuresKey,n)}if(u!==undefined){if(s.has(o.runtimeKey)&&s.get(o.runtimeKey)!==u&&(0,o.hasFeature)(n,o.FEATURES.duplicateNamedCaptureGroups)){throw new Error(`The 'runtime' option must be the same for `+`'@babel/plugin-transform-named-capturing-groups-regex' and `+`'@babel/plugin-transform-duplicate-named-capturing-groups-regex'.`)}if(t==="namedCaptureGroups"){if(!u||!s.has(o.runtimeKey))s.set(o.runtimeKey,u)}else{s.set(o.runtimeKey,u)}}{if(typeof s.get(c)==="number"){s.set(c,"7.27.1");return}}if(!s.get(c)||i.lt(s.get(c),"7.27.1")){s.set(c,"7.27.1")}},visitor:{RegExpLiteral(e){var t;const{node:r}=e;const{file:i}=this;const c=i.get(o.featuresKey);const u=(t=i.get(o.runtimeKey))!=null?t:true;const p=(0,l.generateRegexpuOptions)(r.pattern,c);if((0,l.canSkipRegexpu)(r,p)){return}const d={__proto__:null};if(p.namedGroups==="transform"){p.onNamedGroup=(e,t)=>{const r=d[e];if(typeof r==="number"){d[e]=[r,t]}else if(Array.isArray(r)){r.push(t)}else{d[e]=t}}}let f;if(p.modifiers==="transform"){p.onNewFlags=e=>{f=e}}r.pattern=s(r.pattern,r.flags,p);if(p.namedGroups==="transform"&&Object.keys(d).length>0&&u&&!isRegExpTest(e)){const t=a.types.callExpression(this.addHelper("wrapRegExp"),[r,a.types.valueToNode(d)]);(0,n.default)(t);e.replaceWith(t)}r.flags=(0,l.transformFlags)(p,f!=null?f:r.flags)}}}}function isRegExpTest(e){return e.parentPath.isMemberExpression({object:e.node,computed:false})&&e.parentPath.get("property").isIdentifier({name:"test"})}},2777:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.canSkipRegexpu=canSkipRegexpu;t.generateRegexpuOptions=generateRegexpuOptions;t.transformFlags=transformFlags;var s=r(6961);function generateRegexpuOptions(e,t){const feat=e=>(0,s.hasFeature)(t,s.FEATURES[e])?"transform":false;const featDuplicateNamedGroups=()=>{if(!feat("duplicateNamedCaptureGroups"))return false;const t=/\(\?<([^>]+)(>|$)/g;const r=new Set;for(let s;(s=t.exec(e))&&s[2];r.add(s[1])){if(r.has(s[1]))return"transform"}return false};return{unicodeFlag:feat("unicodeFlag"),unicodeSetsFlag:feat("unicodeSetsFlag"),dotAllFlag:feat("dotAllFlag"),unicodePropertyEscapes:feat("unicodePropertyEscape"),namedGroups:feat("namedCaptureGroups")||featDuplicateNamedGroups(),onNamedGroup:()=>{},modifiers:feat("modifiers")}}function canSkipRegexpu(e,t){const{flags:r,pattern:s}=e;if(r.includes("v")){if(t.unicodeSetsFlag==="transform")return false}if(r.includes("u")){if(t.unicodeFlag==="transform")return false;if(t.unicodePropertyEscapes==="transform"&&/\\p\{/i.test(s)){return false}}if(r.includes("s")){if(t.dotAllFlag==="transform")return false}if(t.namedGroups==="transform"&&/\(\?<(?![=!])/.test(s)){return false}if(t.modifiers==="transform"&&/\(\?[\w-]+:/.test(s)){return false}return true}function transformFlags(e,t){if(e.unicodeSetsFlag==="transform"){t=t.replace("v","u")}if(e.unicodeFlag==="transform"){t=t.replace("u","")}if(e.dotAllFlag==="transform"){t=t.replace("s","")}return t}},1072:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(9551);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:true,get:function(){return e[r]}})}}))}t.default=e;return Object.freeze(t)}var a=_interopNamespace(s);function willPathCastToBoolean(e){const t=e;const{node:r,parentPath:s}=t;if(s.isLogicalExpression()){const{operator:e,right:t}=s.node;if(e==="&&"||e==="||"||e==="??"&&r===t){return willPathCastToBoolean(s)}}if(s.isSequenceExpression()){const{expressions:e}=s.node;if(e[e.length-1]===r){return willPathCastToBoolean(s)}else{return true}}return s.isConditional({test:r})||s.isUnaryExpression({operator:"!"})||s.isLoop({test:r})}const{LOGICAL_OPERATORS:n,arrowFunctionExpression:i,assignmentExpression:o,binaryExpression:l,booleanLiteral:c,callExpression:u,cloneNode:p,conditionalExpression:d,identifier:f,isMemberExpression:y,isOptionalCallExpression:h,isOptionalMemberExpression:g,isUpdateExpression:b,logicalExpression:x,memberExpression:v,nullLiteral:E,optionalCallExpression:S,optionalMemberExpression:T,sequenceExpression:j,updateExpression:w}=a;class AssignmentMemoiser{constructor(){this._map=void 0;this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const t=this._map.get(e);const{value:r}=t;t.count--;if(t.count===0){return o("=",r,e)}return r}set(e,t,r){return this._map.set(e,{count:r,value:t})}}function toNonOptional(e,t){const{node:r}=e;if(g(r)){return v(t,r.property,r.computed)}if(e.isOptionalCallExpression()){const r=e.get("callee");if(e.node.optional&&r.isOptionalMemberExpression()){const s=r.node.object;const a=e.scope.maybeGenerateMemoised(s);r.get("object").replaceWith(o("=",a,s));return u(v(t,f("call")),[a,...e.node.arguments])}return u(t,e.node.arguments)}return e.node}function isInDetachedTree(e){while(e){if(e.isProgram())break;const{parentPath:t,container:r,listKey:s}=e;const a=t.node;if(s){if(r!==a[s]){return true}}else{if(r!==a)return true}e=t}return false}const P={memoise(){},handle(e,t){const{node:r,parent:s,parentPath:a,scope:n}=e;if(e.isOptionalMemberExpression()){if(isInDetachedTree(e))return;const b=e.find((({node:t,parent:r})=>{if(g(r)){return r.optional||r.object!==t}if(h(r)){return t!==e.node&&r.optional||r.callee!==t}return true}));if(n.path.isPattern()){b.replaceWith(u(i([],b.node),[]));return}const v=willPathCastToBoolean(b);const j=b.parentPath;if(j.isUpdateExpression({argument:r})){throw e.buildCodeFrameError(`can't handle update expression`)}const w=j.isAssignmentExpression({left:b.node});const P=j.isUnaryExpression({operator:"delete"});if(P&&b.isOptionalMemberExpression()&&b.get("property").isPrivateName()){throw e.buildCodeFrameError(`can't delete a private class element`)}let C=e;for(;;){if(C.isOptionalMemberExpression()){if(C.node.optional)break;C=C.get("object");continue}else if(C.isOptionalCallExpression()){if(C.node.optional)break;C=C.get("callee");continue}throw new Error(`Internal error: unexpected ${C.node.type}`)}const A=C.isOptionalMemberExpression()?C.node.object:C.node.callee;const D=n.maybeGenerateMemoised(A);const k=D!=null?D:A;const I=a.isOptionalCallExpression({callee:r});const isOptionalCall=e=>I;const _=a.isCallExpression({callee:r});C.replaceWith(toNonOptional(C,k));if(isOptionalCall()){if(s.optional){a.replaceWith(this.optionalCall(e,s.arguments))}else{a.replaceWith(this.call(e,s.arguments))}}else if(_){e.replaceWith(this.boundGet(e))}else if(this.delete&&a.isUnaryExpression({operator:"delete"})){a.replaceWith(this.delete(e))}else if(a.isAssignmentExpression()){handleAssignment(this,e,a)}else{e.replaceWith(this.get(e))}let O=e.node;for(let t=e;t!==b;){const e=t.parentPath;if(e===b&&isOptionalCall()&&s.optional){O=e.node;break}O=toNonOptional(e,O);t=e}let N;const F=b.parentPath;if(y(O)&&F.isOptionalCallExpression({callee:b.node,optional:true})){const{object:t}=O;N=e.scope.maybeGenerateMemoised(t);if(N){O.object=o("=",N,t)}}let B=b;if(P||w){B=F;O=F.node}const M=D?o("=",p(k),p(A)):p(k);if(v){let e;if(t){e=l("!=",M,E())}else{e=x("&&",l("!==",M,E()),l("!==",p(k),n.buildUndefinedNode()))}B.replaceWith(x("&&",e,O))}else{let e;if(t){e=l("==",M,E())}else{e=x("||",l("===",M,E()),l("===",p(k),n.buildUndefinedNode()))}B.replaceWith(d(e,P?c(true):n.buildUndefinedNode(),O))}if(N){const e=F.node;F.replaceWith(S(T(e.callee,f("call"),false,true),[p(N),...e.arguments],false))}return}if(b(s,{argument:r})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:t,prefix:i}=s;this.memoise(e,2);const l=n.generateUidIdentifierBasedOnNode(r);n.push({id:l});const c=[o("=",p(l),this.get(e))];if(i){c.push(w(t,p(l),i));const r=j(c);a.replaceWith(this.set(e,r));return}else{const s=n.generateUidIdentifierBasedOnNode(r);n.push({id:s});c.push(o("=",p(s),w(t,p(l),i)),p(l));const u=j(c);a.replaceWith(j([this.set(e,u),p(s)]));return}}if(a.isAssignmentExpression({left:r})){handleAssignment(this,e,a);return}if(a.isCallExpression({callee:r})){a.replaceWith(this.call(e,a.node.arguments));return}if(a.isOptionalCallExpression({callee:r})){if(n.path.isPattern()){a.replaceWith(u(i([],a.node),[]));return}a.replaceWith(this.optionalCall(e,a.node.arguments));return}if(this.delete&&a.isUnaryExpression({operator:"delete"})){a.replaceWith(this.delete(e));return}if(a.isForXStatement({left:r})||a.isObjectProperty({value:r})&&a.parentPath.isObjectPattern()||a.isAssignmentPattern({left:r})&&a.parentPath.isObjectProperty({value:s})&&a.parentPath.parentPath.isObjectPattern()||a.isArrayPattern()||a.isAssignmentPattern({left:r})&&a.parentPath.isArrayPattern()||a.isRestElement()){e.replaceWith(this.destructureSet(e));return}if(a.isTaggedTemplateExpression()){e.replaceWith(this.boundGet(e))}else{e.replaceWith(this.get(e))}}};function handleAssignment(e,t,r){if(e.simpleSet){t.replaceWith(e.simpleSet(t));return}const{operator:s,right:a}=r.node;if(s==="="){r.replaceWith(e.set(t,a))}else{const i=s.slice(0,-1);if(n.includes(i)){e.memoise(t,1);r.replaceWith(x(i,e.get(t),e.set(t,a)))}else{e.memoise(t,2);r.replaceWith(e.set(t,l(i,e.get(t),a)))}}}function memberExpressionToFunctions(e,t,r){e.traverse(t,Object.assign({},P,r,{memoiser:new AssignmentMemoiser}))}t["default"]=memberExpressionToFunctions},3053:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(2613);var a=r(9551);const{callExpression:n,cloneNode:i,expressionStatement:o,identifier:l,importDeclaration:c,importDefaultSpecifier:u,importNamespaceSpecifier:p,importSpecifier:d,memberExpression:f,stringLiteral:y,variableDeclaration:h,variableDeclarator:g}=a;class ImportBuilder{constructor(e,t,r){this._statements=[];this._resultName=null;this._importedSource=void 0;this._scope=t;this._hub=r;this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){this._statements.push(c([],y(this._importedSource)));return this}require(){this._statements.push(o(n(l("require"),[y(this._importedSource)])));return this}namespace(e="namespace"){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];s(r.type==="ImportDeclaration");s(r.specifiers.length===0);r.specifiers=[p(t)];this._resultName=i(t);return this}default(e){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];s(r.type==="ImportDeclaration");s(r.specifiers.length===0);r.specifiers=[u(t)];this._resultName=i(t);return this}named(e,t){if(t==="default")return this.default(e);const r=this._scope.generateUidIdentifier(e);const a=this._statements[this._statements.length-1];s(a.type==="ImportDeclaration");s(a.specifiers.length===0);a.specifiers=[d(r,l(t))];this._resultName=i(r);return this}var(e){const t=this._scope.generateUidIdentifier(e);let r=this._statements[this._statements.length-1];if(r.type!=="ExpressionStatement"){s(this._resultName);r=o(this._resultName);this._statements.push(r)}this._statements[this._statements.length-1]=h("var",[g(t,r.expression)]);this._resultName=i(t);return this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=n(e,[t.expression])}else if(t.type==="VariableDeclaration"){s(t.declarations.length===1);t.declarations[0].init=n(e,[t.declarations[0].init])}else{s.fail("Unexpected type.")}return this}prop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=f(t.expression,l(e))}else if(t.type==="VariableDeclaration"){s(t.declarations.length===1);t.declarations[0].init=f(t.declarations[0].init,l(e))}else{s.fail("Unexpected type:"+t.type)}return this}read(e){this._resultName=f(this._resultName,l(e))}}t["default"]=ImportBuilder},1776:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(2613);var a=r(9551);var n=r(3053);var i=r(5759);const{identifier:o,importSpecifier:l,numericLiteral:c,sequenceExpression:u,isImportDeclaration:p}=a;class ImportInjector{constructor(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:false,ensureNoContext:false,importPosition:"before"};const s=e.find((e=>e.isProgram()));this._programPath=s;this._programScope=s.scope;this._hub=s.hub;this._defaultOpts=this._applyDefaults(t,r,true)}addDefault(e,t){return this.addNamed("default",e,t)}addNamed(e,t,r){s(typeof e==="string");return this._generateImport(this._applyDefaults(t,r),e)}addNamespace(e,t){return this._generateImport(this._applyDefaults(e,t),null)}addSideEffect(e,t){return this._generateImport(this._applyDefaults(e,t),void 0)}_applyDefaults(e,t,r=false){let a;if(typeof e==="string"){a=Object.assign({},this._defaultOpts,{importedSource:e},t)}else{s(!t,"Unexpected secondary arguments.");a=Object.assign({},this._defaultOpts,e)}if(!r&&t){if(t.nameHint!==undefined)a.nameHint=t.nameHint;if(t.blockHoist!==undefined)a.blockHoist=t.blockHoist}return a}_generateImport(e,t){const r=t==="default";const s=!!t&&!r;const a=t===null;const{importedSource:o,importedType:l,importedInterop:p,importingInterop:d,ensureLiveReference:f,ensureNoContext:y,nameHint:h,importPosition:g,blockHoist:b}=e;let x=h||t;const v=(0,i.default)(this._programPath);const E=v&&d==="node";const S=v&&d==="babel";if(g==="after"&&!v){throw new Error(`"importPosition": "after" is only supported in modules`)}const T=new n.default(o,this._programScope,this._hub);if(l==="es6"){if(!E&&!S){throw new Error("Cannot import an ES6 module from CommonJS")}T.import();if(a){T.namespace(h||o)}else if(r||s){T.named(x,t)}}else if(l!=="commonjs"){throw new Error(`Unexpected interopType "${l}"`)}else if(p==="babel"){if(E){x=x!=="default"?x:o;const e=`${o}$es6Default`;T.import();if(a){T.default(e).var(x||o).wildcardInterop()}else if(r){if(f){T.default(e).var(x||o).defaultInterop().read("default")}else{T.default(e).var(x).defaultInterop().prop(t)}}else if(s){T.default(e).read(t)}}else if(S){T.import();if(a){T.namespace(x||o)}else if(r||s){T.named(x,t)}}else{T.require();if(a){T.var(x||o).wildcardInterop()}else if((r||s)&&f){if(r){x=x!=="default"?x:o;T.var(x).read(t);T.defaultInterop()}else{T.var(o).read(t)}}else if(r){T.var(x).defaultInterop().prop(t)}else if(s){T.var(x).prop(t)}}}else if(p==="compiled"){if(E){T.import();if(a){T.default(x||o)}else if(r||s){T.default(o).read(x)}}else if(S){T.import();if(a){T.namespace(x||o)}else if(r||s){T.named(x,t)}}else{T.require();if(a){T.var(x||o)}else if(r||s){if(f){T.var(o).read(x)}else{T.prop(t).var(x)}}}}else if(p==="uncompiled"){if(r&&f){throw new Error("No live reference for commonjs default")}if(E){T.import();if(a){T.default(x||o)}else if(r){T.default(x)}else if(s){T.default(o).read(x)}}else if(S){T.import();if(a){T.default(x||o)}else if(r){T.default(x)}else if(s){T.named(x,t)}}else{T.require();if(a){T.var(x||o)}else if(r){T.var(x)}else if(s){if(f){T.var(o).read(x)}else{T.var(x).prop(t)}}}}else{throw new Error(`Unknown importedInterop "${p}".`)}const{statements:j,resultName:w}=T.done();this._insertStatements(j,g,b);if((r||s)&&y&&w.type!=="Identifier"){return u([c(0),w])}return w}_insertStatements(e,t="before",r=3){if(t==="after"){if(this._insertStatementsAfter(e))return}else{if(this._insertStatementsBefore(e,r))return}this._programPath.unshiftContainer("body",e)}_insertStatementsBefore(e,t){if(e.length===1&&p(e[0])&&isValueImport(e[0])){const t=this._programPath.get("body").find((e=>e.isImportDeclaration()&&isValueImport(e.node)));if((t==null?void 0:t.node.source.value)===e[0].source.value&&maybeAppendImportSpecifiers(t.node,e[0])){return true}}e.forEach((e=>{e._blockHoist=t}));const r=this._programPath.get("body").find((e=>{const t=e.node._blockHoist;return Number.isFinite(t)&&t<4}));if(r){r.insertBefore(e);return true}return false}_insertStatementsAfter(e){const t=new Set(e);const r=new Map;for(const t of e){if(p(t)&&isValueImport(t)){const e=t.source.value;if(!r.has(e))r.set(e,[]);r.get(e).push(t)}}let s=null;for(const e of this._programPath.get("body")){if(e.isImportDeclaration()&&isValueImport(e.node)){s=e;const a=e.node.source.value;const n=r.get(a);if(!n)continue;for(const r of n){if(!t.has(r))continue;if(maybeAppendImportSpecifiers(e.node,r)){t.delete(r)}}}}if(t.size===0)return true;if(s)s.insertAfter(Array.from(t));return!!s}}t["default"]=ImportInjector;function isValueImport(e){return e.importKind!=="type"&&e.importKind!=="typeof"}function hasNamespaceImport(e){return e.specifiers.length===1&&e.specifiers[0].type==="ImportNamespaceSpecifier"||e.specifiers.length===2&&e.specifiers[1].type==="ImportNamespaceSpecifier"}function hasDefaultImport(e){return e.specifiers.length>0&&e.specifiers[0].type==="ImportDefaultSpecifier"}function maybeAppendImportSpecifiers(e,t){if(!e.specifiers.length){e.specifiers=t.specifiers;return true}if(!t.specifiers.length)return true;if(hasNamespaceImport(e)||hasNamespaceImport(t))return false;if(hasDefaultImport(t)){if(hasDefaultImport(e)){t.specifiers[0]=l(t.specifiers[0].local,o("default"))}else{e.specifiers.unshift(t.specifiers.shift())}}e.specifiers.push(...t.specifiers);return true}},9696:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ImportInjector",{enumerable:true,get:function(){return s.default}});t.addDefault=addDefault;t.addNamed=addNamed;t.addNamespace=addNamespace;t.addSideEffect=addSideEffect;Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return a.default}});var s=r(1776);var a=r(5759);function addDefault(e,t,r){return new s.default(e).addDefault(t,r)}function addNamed(e,t,r,a){return new s.default(e).addNamed(t,r,a)}function addNamespace(e,t,r){return new s.default(e).addNamespace(t,r)}function addSideEffect(e,t,r){return new s.default(e).addSideEffect(t,r)}},5759:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isModule;function isModule(e){return e.node.sourceType==="module"}},7766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildDynamicImport=buildDynamicImport;var s=r(1485);{t.getDynamicImportSource=function getDynamicImportSource(e){const[t]=e.arguments;return s.types.isStringLiteral(t)||s.types.isTemplateLiteral(t)?t:s.template.expression.ast`\`\${${t}}\``}}function buildDynamicImport(e,t,r,a){const n=s.types.isCallExpression(e)?e.arguments[0]:e.source;if(s.types.isStringLiteral(n)||s.types.isTemplateLiteral(n)&&n.quasis.length===0){if(t){return s.template.expression.ast`
124
+ `,t)}function buildPrivateMethodDeclaration(e,t,r,a=false){const n=r.get(t.node.key.id.name);const{id:i,methodId:o,getId:l,setId:c,getterDeclared:u,setterDeclared:p,static:d}=n;const{params:f,body:y,generator:g,async:b}=t.node;const x=l&&f.length===0;const v=c&&f.length>0;if(x&&u||v&&p){r.set(t.node.key.id.name,Object.assign({},n,{initAdded:true}));return null}if(newHelpers(e)&&(x||v)&&!a){const e=t.get("body").scope;const r=e.generateUidIdentifier("this");const a={thisRef:r,argumentsPath:[]};t.traverse(h,a);if(a.argumentsPath.length){const t=e.generateUidIdentifier("arguments");e.push({id:t,init:s.template.expression.ast`[].slice.call(arguments, 1)`});for(const e of a.argumentsPath){e.replaceWith(s.types.cloneNode(t))}}f.unshift(s.types.cloneNode(r))}let E=o;if(x){r.set(t.node.key.id.name,Object.assign({},n,{getterDeclared:true,initAdded:true}));E=l}else if(v){r.set(t.node.key.id.name,Object.assign({},n,{setterDeclared:true,initAdded:true}));E=c}else if(d&&!a){E=i}return inheritPropComments(s.types.functionDeclaration(s.types.cloneNode(E),f,y,g,b),t)}const h=a.visitors.environmentVisitor({Identifier(e,t){if(t.argumentsPath&&e.node.name==="arguments"){t.argumentsPath.push(e)}},UnaryExpression(e){const{node:t}=e;if(t.operator==="delete"){const r=(0,c.skipTransparentExprWrapperNodes)(t.argument);if(s.types.isThisExpression(r)){e.replaceWith(s.types.booleanLiteral(true))}}},ThisExpression(e,t){t.needsClassRef=true;e.replaceWith(s.types.cloneNode(t.thisRef))},MetaProperty(e){const{node:t,scope:r}=e;if(t.meta.name==="new"&&t.property.name==="target"){e.replaceWith(r.buildUndefinedNode())}}});const g={ReferencedIdentifier(e,t){if(e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)){t.needsClassRef=true;e.node.name=t.thisRef.name}}};function replaceThisContext(e,t,r){var s;const a={thisRef:t,needsClassRef:false,innerBinding:r};if(!e.isMethod()){e.traverse(h,a)}if(r!=null&&(s=a.thisRef)!=null&&s.name&&a.thisRef.name!==r.name){e.traverse(g,a)}return a.needsClassRef}function isNameOrLength({key:e,computed:t}){if(e.type==="Identifier"){return!t&&(e.name==="name"||e.name==="length")}if(e.type==="StringLiteral"){return e.value==="name"||e.value==="length"}return false}function inheritPropComments(e,t){s.types.inheritLeadingComments(e,t.node);s.types.inheritInnerComments(e,t.node);return e}function inheritLoc(e,t){e.start=t.start;e.end=t.end;e.loc=t.loc;return e}function buildFieldsInitNodes(e,t,r,a,i,o,l,c,p,d){let f=0;let y;const h=[];const g=[];let b=false;const x=[];let v=null;const E=s.types.isIdentifier(t)?()=>t:()=>{y!=null?y:y=r[0].scope.generateUidIdentifierBasedOnNode(t);return y};const S=e!=null?e:r[0].scope.generateUidIdentifier((d==null?void 0:d.name)||"Class");e!=null?e:e=s.types.cloneNode(d);for(const t of r){if(t.isClassProperty()){u.assertFieldTransformed(t)}const r=!(s.types.isStaticBlock!=null&&s.types.isStaticBlock(t.node))&&t.node.static;const y=!r;const v=t.isPrivate();const T=!v;const j=t.isProperty();const w=!j;const P=t.isStaticBlock==null?void 0:t.isStaticBlock();if(r)f|=1;if(r||w&&v||P){new n.default({methodPath:t,constantSuper:p,file:i,refToPreserve:d,getSuperRef:E,getObjectRef(){f|=2;if(r||P){return S}else{return s.types.memberExpression(S,s.types.identifier("prototype"))}}}).replace();const e=replaceThisContext(t,S,d);if(e){f|=2}}b=false;switch(true){case P:{const e=t.node.body;if(e.length===1&&s.types.isExpressionStatement(e[0])){h.push(inheritPropComments(e[0],t))}else{h.push(s.types.inheritsComments(s.template.statement.ast`(() => { ${e} })()`,t.node))}break}case r&&v&&j&&l:h.push(buildPrivateFieldInitLoose(s.types.cloneNode(e),t,a));break;case r&&v&&j&&!l:if(!newHelpers(i)){h.push(buildPrivateStaticFieldInitSpecOld(t,a))}else{h.push(buildPrivateStaticFieldInitSpec(t,a,c))}break;case r&&T&&j&&o:if(!isNameOrLength(t.node)){h.push(buildPublicFieldInitLoose(s.types.cloneNode(e),t));break}case r&&T&&j&&!o:h.push(buildPublicFieldInitSpec(s.types.cloneNode(e),t,i));break;case y&&v&&j&&l:g.push(buildPrivateFieldInitLoose(s.types.thisExpression(),t,a));break;case y&&v&&j&&!l:g.push(buildPrivateInstanceFieldInitSpec(s.types.thisExpression(),t,a,i));break;case y&&v&&w&&l:g.unshift(buildPrivateMethodInitLoose(s.types.thisExpression(),t,a));x.push(buildPrivateMethodDeclaration(i,t,a,l));break;case y&&v&&w&&!l:g.unshift(buildPrivateInstanceMethodInitSpec(s.types.thisExpression(),t,a,i));x.push(buildPrivateMethodDeclaration(i,t,a,l));break;case r&&v&&w&&!l:if(!newHelpers(i)){h.unshift(buildPrivateStaticFieldInitSpecOld(t,a))}x.push(buildPrivateMethodDeclaration(i,t,a,l));break;case r&&v&&w&&l:h.unshift(buildPrivateStaticMethodInitLoose(s.types.cloneNode(e),t,i,a));x.push(buildPrivateMethodDeclaration(i,t,a,l));break;case y&&T&&j&&o:g.push(buildPublicFieldInitLoose(s.types.thisExpression(),t));break;case y&&T&&j&&!o:b=true;g.push(buildPublicFieldInitSpec(s.types.thisExpression(),t,i));break;default:throw new Error("Unreachable.")}}if(f&2&&d!=null){v=s.types.expressionStatement(s.types.assignmentExpression("=",s.types.cloneNode(S),s.types.cloneNode(d)))}return{staticNodes:h.filter(Boolean),instanceNodes:g.filter(Boolean),lastInstanceNodeReturnsThis:b,pureStaticNodes:x.filter(Boolean),classBindingNode:v,wrapClass(t){for(const e of r){e.node.leadingComments=null;e.remove()}if(y){t.scope.push({id:s.types.cloneNode(y)});t.set("superClass",s.types.assignmentExpression("=",y,t.node.superClass))}if(f!==0){if(t.isClassExpression()){t.scope.push({id:e});t.replaceWith(s.types.assignmentExpression("=",s.types.cloneNode(e),t.node))}else{if(d==null){t.node.id=e}if(v!=null){t.scope.push({id:S})}}}return t}}}},2061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"FEATURES",{enumerable:true,get:function(){return c.FEATURES}});Object.defineProperty(t,"buildCheckInRHS",{enumerable:true,get:function(){return n.buildCheckInRHS}});t.createClassFeaturePlugin=createClassFeaturePlugin;Object.defineProperty(t,"enableFeature",{enumerable:true,get:function(){return c.enableFeature}});Object.defineProperty(t,"injectInitialization",{enumerable:true,get:function(){return l.injectInitialization}});var s=r(1485);var a=r(8804);var n=r(5896);var i=r(4063);var o=r(551);var l=r(7929);var c=r(818);var u=r(849);const p="@babel/plugin-class-features/version";function createClassFeaturePlugin({name:e,feature:t,loose:d,manipulateOptions:f,api:y,inherits:h,decoratorVersion:g}){var b;if(t&c.FEATURES.decorators){{if(g==="2023-11"||g==="2023-05"||g==="2023-01"||g==="2022-03"||g==="2021-12"){return(0,i.default)(y,{loose:d},g,h)}}}{y!=null?y:y={assumption:()=>void 0}}const x=y.assumption("setPublicClassFields");const v=y.assumption("privateFieldsAsSymbols");const E=y.assumption("privateFieldsAsProperties");const S=(b=y.assumption("noUninitializedPrivateFieldAccess"))!=null?b:false;const T=y.assumption("constantSuper");const j=y.assumption("noDocumentAll");if(E&&v){throw new Error(`Cannot enable both the "privateFieldsAsProperties" and `+`"privateFieldsAsSymbols" assumptions as the same time.`)}const w=E||v;if(d===true){const t=[];if(x!==undefined){t.push(`"setPublicClassFields"`)}if(E!==undefined){t.push(`"privateFieldsAsProperties"`)}if(v!==undefined){t.push(`"privateFieldsAsSymbols"`)}if(t.length!==0){console.warn(`[${e}]: You are using the "loose: true" option and you are`+` explicitly setting a value for the ${t.join(" and ")}`+` assumption${t.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:\n`+`\t"assumptions": {\n`+`\t\t"setPublicClassFields": true,\n`+`\t\t"privateFieldsAsSymbols": true\n`+`\t}`)}}return{name:e,manipulateOptions:f,inherits:h,pre(e){(0,c.enableFeature)(e,t,d);{if(typeof e.get(p)==="number"){e.set(p,"7.27.1");return}}if(!e.get(p)||a.lt(e.get(p),"7.27.1")){e.set(p,"7.27.1")}},visitor:{Class(e,{file:a}){if(a.get(p)!=="7.27.1")return;if(!(0,c.shouldTransform)(e,a))return;const d=e.isClassDeclaration();if(d)(0,u.assertFieldTransformed)(e);const f=(0,c.isLoose)(a,t);let y;const h=(0,i.hasDecorators)(e.node);const g=[];const b=[];const P=[];const C=new Set;const A=e.get("body");for(const e of A.get("body")){if((e.isClassProperty()||e.isClassMethod())&&e.node.computed){P.push(e)}if(e.isPrivate()){const{name:t}=e.node.key.id;const r=`get ${t}`;const s=`set ${t}`;if(e.isClassPrivateMethod()){if(e.node.kind==="get"){if(C.has(r)||C.has(t)&&!C.has(s)){throw e.buildCodeFrameError("Duplicate private field")}C.add(r).add(t)}else if(e.node.kind==="set"){if(C.has(s)||C.has(t)&&!C.has(r)){throw e.buildCodeFrameError("Duplicate private field")}C.add(s).add(t)}}else{if(C.has(t)&&!C.has(r)&&!C.has(s)||C.has(t)&&(C.has(r)||C.has(s))){throw e.buildCodeFrameError("Duplicate private field")}C.add(t)}}if(e.isClassMethod({kind:"constructor"})){y=e}else{b.push(e);if(e.isProperty()||e.isPrivate()||e.isStaticBlock!=null&&e.isStaticBlock()){g.push(e)}}}{if(!g.length&&!h)return}const D=e.node.id;let k;if(!D||!d){{var I;(I=e.ensureFunctionName)!=null?I:e.ensureFunctionName=r(8384).NodePath.prototype.ensureFunctionName}e.ensureFunctionName(false);k=e.scope.generateUidIdentifier((D==null?void 0:D.name)||"Class")}const _=k!=null?k:s.types.cloneNode(D);const O=(0,n.buildPrivateNamesMap)(_.name,w!=null?w:f,g,a);const N=(0,n.buildPrivateNamesNodes)(O,E!=null?E:f,v!=null?v:false,a);(0,n.transformPrivateNamesUsage)(_,e,O,{privateFieldsAsProperties:w!=null?w:f,noUninitializedPrivateFieldAccess:S,noDocumentAll:j,innerBinding:D},a);let F,B,M,L,R,U,q;{if(h){B=R=F=[];({instanceNodes:M,wrapClass:q}=(0,o.buildDecoratedClass)(_,e,b,a))}else{F=(0,l.extractComputedKeys)(e,P,a);({staticNodes:B,pureStaticNodes:R,instanceNodes:M,lastInstanceNodeReturnsThis:L,classBindingNode:U,wrapClass:q}=(0,n.buildFieldsInitNodes)(k,e.node.superClass,g,O,a,x!=null?x:f,w!=null?w:f,S,T!=null?T:f,D))}}if(M.length>0){(0,l.injectInitialization)(e,y,M,((e,t)=>{{if(h)return}for(const r of g){if(s.types.isStaticBlock!=null&&s.types.isStaticBlock(r.node)||r.node.static)continue;r.traverse(e,t)}}),L)}const V=q(e);V.insertBefore([...N,...F]);if(B.length>0){V.insertAfter(B)}if(R.length>0){V.find((e=>e.isStatement()||e.isDeclaration())).insertAfter(R)}if(U!=null&&d){V.insertAfter(U)}},ExportDefaultDeclaration(e,{file:t}){{if(t.get(p)!=="7.27.1")return;const a=e.get("declaration");if(a.isClassDeclaration()&&(0,i.hasDecorators)(a.node)){if(a.node.id){{var s;(s=e.splitExportDeclaration)!=null?s:e.splitExportDeclaration=r(8384).NodePath.prototype.splitExportDeclaration}e.splitExportDeclaration()}else{a.node.type="ClassExpression"}}}}}}}},7929:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extractComputedKeys=extractComputedKeys;t.injectInitialization=injectInitialization;t.memoiseComputedKey=memoiseComputedKey;var s=r(1485);var a=r(8384);const n=a.visitors.environmentVisitor({Super(e){const{node:t,parentPath:r}=e;if(r.isCallExpression({callee:t})){this.push(r)}}});const i={"TSTypeAnnotation|TypeAnnotation"(e){e.skip()},ReferencedIdentifier(e,{scope:t}){if(t.hasOwnBinding(e.node.name)){t.rename(e.node.name);e.skip()}}};function handleClassTDZ(e,t){if(t.classBinding&&t.classBinding===e.scope.getBinding(e.node.name)){const r=t.file.addHelper("classNameTDZError");const a=s.types.callExpression(r,[s.types.stringLiteral(e.node.name)]);e.replaceWith(s.types.sequenceExpression([a,e.node]));e.skip()}}const o={ReferencedIdentifier:handleClassTDZ,"TSTypeAnnotation|TypeAnnotation"(e){e.skip()}};function injectInitialization(e,t,r,a,o){if(!r.length)return;const l=!!e.node.superClass;if(!t){const r=s.types.classMethod("constructor",s.types.identifier("constructor"),[],s.types.blockStatement([]));if(l){r.params=[s.types.restElement(s.types.identifier("args"))];r.body.body.push(s.template.statement.ast`super(...args)`)}[t]=e.get("body").unshiftContainer("body",r)}if(a){a(i,{scope:t.scope})}if(l){const e=[];t.traverse(n,e);let a=true;for(const t of e){if(a){a=false}else{r=r.map((e=>s.types.cloneNode(e)))}if(!t.parentPath.isExpressionStatement()){const e=[t.node,...r.map((e=>s.types.toExpression(e)))];if(!o)e.push(s.types.thisExpression());t.replaceWith(s.types.sequenceExpression(e))}else{t.insertAfter(r)}}}else{t.get("body").unshiftContainer("body",r)}}function memoiseComputedKey(e,t,r){const a=s.types.isIdentifier(e)&&t.hasUid(e.name);if(a){return}const n=s.types.isAssignmentExpression(e,{operator:"="})&&s.types.isIdentifier(e.left)&&t.hasUid(e.left.name);if(n){return s.types.cloneNode(e)}else{const a=s.types.identifier(r);t.push({id:a,kind:"let"});return s.types.assignmentExpression("=",s.types.cloneNode(a),e)}}function extractComputedKeys(e,t,r){const{scope:a}=e;const n=[];const i={classBinding:e.node.id&&a.getBinding(e.node.id.name),file:r};for(const e of t){const t=e.get("key");if(t.isReferencedIdentifier()){handleClassTDZ(t,i)}else{t.traverse(o,i)}const r=e.node;if(!t.isConstantExpression()){const e=memoiseComputedKey(t.node,a,a.generateUidBasedOnNode(t.node));if(e){n.push(s.types.expressionStatement(e));r.key=s.types.cloneNode(e.left)}}}return n}},849:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assertFieldTransformed=assertFieldTransformed;function assertFieldTransformed(e){if(e.node.declare||false){throw e.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by `+`@babel/plugin-transform-typescript.\n`+`If you have already enabled that plugin (or '@babel/preset-typescript'), make sure `+`that it runs before any plugin related to additional class features:\n`+` - @babel/plugin-transform-class-properties\n`+` - @babel/plugin-transform-private-methods\n`+` - @babel/plugin-proposal-decorators`)}}},6961:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.FEATURES=void 0;t.enableFeature=enableFeature;t.featuresKey=void 0;t.hasFeature=hasFeature;t.runtimeKey=void 0;const r=t.FEATURES=Object.freeze({unicodeFlag:1<<0,dotAllFlag:1<<1,unicodePropertyEscape:1<<2,namedCaptureGroups:1<<3,unicodeSetsFlag_syntax:1<<4,unicodeSetsFlag:1<<5,duplicateNamedCaptureGroups:1<<6,modifiers:1<<7});const s=t.featuresKey="@babel/plugin-regexp-features/featuresKey";const a=t.runtimeKey="@babel/plugin-regexp-features/runtimeKey";function enableFeature(e,t){return e|t}function hasFeature(e,t){return!!(e&t)}},8609:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createRegExpFeaturePlugin=createRegExpFeaturePlugin;var s=r(9777);var a=r(1485);var n=r(9508);var i=r(8804);var o=r(6961);var l=r(2777);const c="@babel/plugin-regexp-features/version";function createRegExpFeaturePlugin({name:e,feature:t,options:r={},manipulateOptions:u=()=>{}}){return{name:e,manipulateOptions:u,pre(){var e;const{file:s}=this;const a=(e=s.get(o.featuresKey))!=null?e:0;let n=(0,o.enableFeature)(a,o.FEATURES[t]);const{useUnicodeFlag:l,runtime:u}=r;if(l===false){n=(0,o.enableFeature)(n,o.FEATURES.unicodeFlag)}if(n!==a){s.set(o.featuresKey,n)}if(u!==undefined){if(s.has(o.runtimeKey)&&s.get(o.runtimeKey)!==u&&(0,o.hasFeature)(n,o.FEATURES.duplicateNamedCaptureGroups)){throw new Error(`The 'runtime' option must be the same for `+`'@babel/plugin-transform-named-capturing-groups-regex' and `+`'@babel/plugin-transform-duplicate-named-capturing-groups-regex'.`)}if(t==="namedCaptureGroups"){if(!u||!s.has(o.runtimeKey))s.set(o.runtimeKey,u)}else{s.set(o.runtimeKey,u)}}{if(typeof s.get(c)==="number"){s.set(c,"7.27.1");return}}if(!s.get(c)||i.lt(s.get(c),"7.27.1")){s.set(c,"7.27.1")}},visitor:{RegExpLiteral(e){var t;const{node:r}=e;const{file:i}=this;const c=i.get(o.featuresKey);const u=(t=i.get(o.runtimeKey))!=null?t:true;const p=(0,l.generateRegexpuOptions)(r.pattern,c);if((0,l.canSkipRegexpu)(r,p)){return}const d={__proto__:null};if(p.namedGroups==="transform"){p.onNamedGroup=(e,t)=>{const r=d[e];if(typeof r==="number"){d[e]=[r,t]}else if(Array.isArray(r)){r.push(t)}else{d[e]=t}}}let f;if(p.modifiers==="transform"){p.onNewFlags=e=>{f=e}}r.pattern=s(r.pattern,r.flags,p);if(p.namedGroups==="transform"&&Object.keys(d).length>0&&u&&!isRegExpTest(e)){const t=a.types.callExpression(this.addHelper("wrapRegExp"),[r,a.types.valueToNode(d)]);(0,n.default)(t);e.replaceWith(t)}r.flags=(0,l.transformFlags)(p,f!=null?f:r.flags)}}}}function isRegExpTest(e){return e.parentPath.isMemberExpression({object:e.node,computed:false})&&e.parentPath.get("property").isIdentifier({name:"test"})}},2777:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.canSkipRegexpu=canSkipRegexpu;t.generateRegexpuOptions=generateRegexpuOptions;t.transformFlags=transformFlags;var s=r(6961);function generateRegexpuOptions(e,t){const feat=e=>(0,s.hasFeature)(t,s.FEATURES[e])?"transform":false;const featDuplicateNamedGroups=()=>{if(!feat("duplicateNamedCaptureGroups"))return false;const t=/\(\?<([^>]+)(>|$)/g;const r=new Set;for(let s;(s=t.exec(e))&&s[2];r.add(s[1])){if(r.has(s[1]))return"transform"}return false};return{unicodeFlag:feat("unicodeFlag"),unicodeSetsFlag:feat("unicodeSetsFlag"),dotAllFlag:feat("dotAllFlag"),unicodePropertyEscapes:feat("unicodePropertyEscape"),namedGroups:feat("namedCaptureGroups")||featDuplicateNamedGroups(),onNamedGroup:()=>{},modifiers:feat("modifiers")}}function canSkipRegexpu(e,t){const{flags:r,pattern:s}=e;if(r.includes("v")){if(t.unicodeSetsFlag==="transform")return false}if(r.includes("u")){if(t.unicodeFlag==="transform")return false;if(t.unicodePropertyEscapes==="transform"&&/\\p\{/i.test(s)){return false}}if(r.includes("s")){if(t.dotAllFlag==="transform")return false}if(t.namedGroups==="transform"&&/\(\?<(?![=!])/.test(s)){return false}if(t.modifiers==="transform"&&/\(\?[\w-]+:/.test(s)){return false}return true}function transformFlags(e,t){if(e.unicodeSetsFlag==="transform"){t=t.replace("v","u")}if(e.unicodeFlag==="transform"){t=t.replace("u","")}if(e.dotAllFlag==="transform"){t=t.replace("s","")}return t}},1072:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(9551);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:true,get:function(){return e[r]}})}}))}t.default=e;return Object.freeze(t)}var a=_interopNamespace(s);function willPathCastToBoolean(e){const t=e;const{node:r,parentPath:s}=t;if(s.isLogicalExpression()){const{operator:e,right:t}=s.node;if(e==="&&"||e==="||"||e==="??"&&r===t){return willPathCastToBoolean(s)}}if(s.isSequenceExpression()){const{expressions:e}=s.node;if(e[e.length-1]===r){return willPathCastToBoolean(s)}else{return true}}return s.isConditional({test:r})||s.isUnaryExpression({operator:"!"})||s.isLoop({test:r})}const{LOGICAL_OPERATORS:n,arrowFunctionExpression:i,assignmentExpression:o,binaryExpression:l,booleanLiteral:c,callExpression:u,cloneNode:p,conditionalExpression:d,identifier:f,isMemberExpression:y,isOptionalCallExpression:h,isOptionalMemberExpression:g,isUpdateExpression:b,logicalExpression:x,memberExpression:v,nullLiteral:E,optionalCallExpression:S,optionalMemberExpression:T,sequenceExpression:j,updateExpression:w}=a;class AssignmentMemoiser{constructor(){this._map=void 0;this._map=new WeakMap}has(e){return this._map.has(e)}get(e){if(!this.has(e))return;const t=this._map.get(e);const{value:r}=t;t.count--;if(t.count===0){return o("=",r,e)}return r}set(e,t,r){return this._map.set(e,{count:r,value:t})}}function toNonOptional(e,t){const{node:r}=e;if(g(r)){return v(t,r.property,r.computed)}if(e.isOptionalCallExpression()){const r=e.get("callee");if(e.node.optional&&r.isOptionalMemberExpression()){const s=r.node.object;const a=e.scope.maybeGenerateMemoised(s);r.get("object").replaceWith(o("=",a,s));return u(v(t,f("call")),[a,...e.node.arguments])}return u(t,e.node.arguments)}return e.node}function isInDetachedTree(e){while(e){if(e.isProgram())break;const{parentPath:t,container:r,listKey:s}=e;const a=t.node;if(s){if(r!==a[s]){return true}}else{if(r!==a)return true}e=t}return false}const P={memoise(){},handle(e,t){const{node:r,parent:s,parentPath:a,scope:n}=e;if(e.isOptionalMemberExpression()){if(isInDetachedTree(e))return;const b=e.find((({node:t,parent:r})=>{if(g(r)){return r.optional||r.object!==t}if(h(r)){return t!==e.node&&r.optional||r.callee!==t}return true}));if(n.path.isPattern()){b.replaceWith(u(i([],b.node),[]));return}const v=willPathCastToBoolean(b);const j=b.parentPath;if(j.isUpdateExpression({argument:r})){throw e.buildCodeFrameError(`can't handle update expression`)}const w=j.isAssignmentExpression({left:b.node});const P=j.isUnaryExpression({operator:"delete"});if(P&&b.isOptionalMemberExpression()&&b.get("property").isPrivateName()){throw e.buildCodeFrameError(`can't delete a private class element`)}let C=e;for(;;){if(C.isOptionalMemberExpression()){if(C.node.optional)break;C=C.get("object");continue}else if(C.isOptionalCallExpression()){if(C.node.optional)break;C=C.get("callee");continue}throw new Error(`Internal error: unexpected ${C.node.type}`)}const A=C.isOptionalMemberExpression()?C.node.object:C.node.callee;const D=n.maybeGenerateMemoised(A);const k=D!=null?D:A;const I=a.isOptionalCallExpression({callee:r});const isOptionalCall=e=>I;const _=a.isCallExpression({callee:r});C.replaceWith(toNonOptional(C,k));if(isOptionalCall()){if(s.optional){a.replaceWith(this.optionalCall(e,s.arguments))}else{a.replaceWith(this.call(e,s.arguments))}}else if(_){e.replaceWith(this.boundGet(e))}else if(this.delete&&a.isUnaryExpression({operator:"delete"})){a.replaceWith(this.delete(e))}else if(a.isAssignmentExpression()){handleAssignment(this,e,a)}else{e.replaceWith(this.get(e))}let O=e.node;for(let t=e;t!==b;){const e=t.parentPath;if(e===b&&isOptionalCall()&&s.optional){O=e.node;break}O=toNonOptional(e,O);t=e}let N;const F=b.parentPath;if(y(O)&&F.isOptionalCallExpression({callee:b.node,optional:true})){const{object:t}=O;N=e.scope.maybeGenerateMemoised(t);if(N){O.object=o("=",N,t)}}let B=b;if(P||w){B=F;O=F.node}const M=D?o("=",p(k),p(A)):p(k);if(v){let e;if(t){e=l("!=",M,E())}else{e=x("&&",l("!==",M,E()),l("!==",p(k),n.buildUndefinedNode()))}B.replaceWith(x("&&",e,O))}else{let e;if(t){e=l("==",M,E())}else{e=x("||",l("===",M,E()),l("===",p(k),n.buildUndefinedNode()))}B.replaceWith(d(e,P?c(true):n.buildUndefinedNode(),O))}if(N){const e=F.node;F.replaceWith(S(T(e.callee,f("call"),false,true),[p(N),...e.arguments],false))}return}if(b(s,{argument:r})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}const{operator:t,prefix:i}=s;this.memoise(e,2);const l=n.generateUidIdentifierBasedOnNode(r);n.push({id:l});const c=[o("=",p(l),this.get(e))];if(i){c.push(w(t,p(l),i));const r=j(c);a.replaceWith(this.set(e,r));return}else{const s=n.generateUidIdentifierBasedOnNode(r);n.push({id:s});c.push(o("=",p(s),w(t,p(l),i)),p(l));const u=j(c);a.replaceWith(j([this.set(e,u),p(s)]));return}}if(a.isAssignmentExpression({left:r})){handleAssignment(this,e,a);return}if(a.isCallExpression({callee:r})){a.replaceWith(this.call(e,a.node.arguments));return}if(a.isOptionalCallExpression({callee:r})){if(n.path.isPattern()){a.replaceWith(u(i([],a.node),[]));return}a.replaceWith(this.optionalCall(e,a.node.arguments));return}if(this.delete&&a.isUnaryExpression({operator:"delete"})){a.replaceWith(this.delete(e));return}if(a.isForXStatement({left:r})||a.isObjectProperty({value:r})&&a.parentPath.isObjectPattern()||a.isAssignmentPattern({left:r})&&a.parentPath.isObjectProperty({value:s})&&a.parentPath.parentPath.isObjectPattern()||a.isArrayPattern()||a.isAssignmentPattern({left:r})&&a.parentPath.isArrayPattern()||a.isRestElement()){e.replaceWith(this.destructureSet(e));return}if(a.isTaggedTemplateExpression()){e.replaceWith(this.boundGet(e))}else{e.replaceWith(this.get(e))}}};function handleAssignment(e,t,r){if(e.simpleSet){t.replaceWith(e.simpleSet(t));return}const{operator:s,right:a}=r.node;if(s==="="){r.replaceWith(e.set(t,a))}else{const i=s.slice(0,-1);if(n.includes(i)){e.memoise(t,1);r.replaceWith(x(i,e.get(t),e.set(t,a)))}else{e.memoise(t,2);r.replaceWith(e.set(t,l(i,e.get(t),a)))}}}function memberExpressionToFunctions(e,t,r){e.traverse(t,Object.assign({},P,r,{memoiser:new AssignmentMemoiser}))}t["default"]=memberExpressionToFunctions},2466:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(2613);var a=r(9551);const{callExpression:n,cloneNode:i,expressionStatement:o,identifier:l,importDeclaration:c,importDefaultSpecifier:u,importNamespaceSpecifier:p,importSpecifier:d,memberExpression:f,stringLiteral:y,variableDeclaration:h,variableDeclarator:g}=a;class ImportBuilder{constructor(e,t,r){this._statements=[];this._resultName=null;this._importedSource=void 0;this._scope=t;this._hub=r;this._importedSource=e}done(){return{statements:this._statements,resultName:this._resultName}}import(){this._statements.push(c([],y(this._importedSource)));return this}require(){this._statements.push(o(n(l("require"),[y(this._importedSource)])));return this}namespace(e="namespace"){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];s(r.type==="ImportDeclaration");s(r.specifiers.length===0);r.specifiers=[p(t)];this._resultName=i(t);return this}default(e){const t=this._scope.generateUidIdentifier(e);const r=this._statements[this._statements.length-1];s(r.type==="ImportDeclaration");s(r.specifiers.length===0);r.specifiers=[u(t)];this._resultName=i(t);return this}named(e,t){if(t==="default")return this.default(e);const r=this._scope.generateUidIdentifier(e);const a=this._statements[this._statements.length-1];s(a.type==="ImportDeclaration");s(a.specifiers.length===0);a.specifiers=[d(r,l(t))];this._resultName=i(r);return this}var(e){const t=this._scope.generateUidIdentifier(e);let r=this._statements[this._statements.length-1];if(r.type!=="ExpressionStatement"){s(this._resultName);r=o(this._resultName);this._statements.push(r)}this._statements[this._statements.length-1]=h("var",[g(t,r.expression)]);this._resultName=i(t);return this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=n(e,[t.expression])}else if(t.type==="VariableDeclaration"){s(t.declarations.length===1);t.declarations[0].init=n(e,[t.declarations[0].init])}else{s.fail("Unexpected type.")}return this}prop(e){const t=this._statements[this._statements.length-1];if(t.type==="ExpressionStatement"){t.expression=f(t.expression,l(e))}else if(t.type==="VariableDeclaration"){s(t.declarations.length===1);t.declarations[0].init=f(t.declarations[0].init,l(e))}else{s.fail("Unexpected type:"+t.type)}return this}read(e){this._resultName=f(this._resultName,l(e))}}t["default"]=ImportBuilder},8781:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(2613);var a=r(9551);var n=r(2466);var i=r(7986);const{identifier:o,importSpecifier:l,numericLiteral:c,sequenceExpression:u,isImportDeclaration:p}=a;class ImportInjector{constructor(e,t,r){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:false,ensureNoContext:false,importPosition:"before"};const s=e.find((e=>e.isProgram()));this._programPath=s;this._programScope=s.scope;this._hub=s.hub;this._defaultOpts=this._applyDefaults(t,r,true)}addDefault(e,t){return this.addNamed("default",e,t)}addNamed(e,t,r){s(typeof e==="string");return this._generateImport(this._applyDefaults(t,r),e)}addNamespace(e,t){return this._generateImport(this._applyDefaults(e,t),null)}addSideEffect(e,t){return this._generateImport(this._applyDefaults(e,t),void 0)}_applyDefaults(e,t,r=false){let a;if(typeof e==="string"){a=Object.assign({},this._defaultOpts,{importedSource:e},t)}else{s(!t,"Unexpected secondary arguments.");a=Object.assign({},this._defaultOpts,e)}if(!r&&t){if(t.nameHint!==undefined)a.nameHint=t.nameHint;if(t.blockHoist!==undefined)a.blockHoist=t.blockHoist}return a}_generateImport(e,t){const r=t==="default";const s=!!t&&!r;const a=t===null;const{importedSource:o,importedType:l,importedInterop:p,importingInterop:d,ensureLiveReference:f,ensureNoContext:y,nameHint:h,importPosition:g,blockHoist:b}=e;let x=h||t;const v=(0,i.default)(this._programPath);const E=v&&d==="node";const S=v&&d==="babel";if(g==="after"&&!v){throw new Error(`"importPosition": "after" is only supported in modules`)}const T=new n.default(o,this._programScope,this._hub);if(l==="es6"){if(!E&&!S){throw new Error("Cannot import an ES6 module from CommonJS")}T.import();if(a){T.namespace(h||o)}else if(r||s){T.named(x,t)}}else if(l!=="commonjs"){throw new Error(`Unexpected interopType "${l}"`)}else if(p==="babel"){if(E){x=x!=="default"?x:o;const e=`${o}$es6Default`;T.import();if(a){T.default(e).var(x||o).wildcardInterop()}else if(r){if(f){T.default(e).var(x||o).defaultInterop().read("default")}else{T.default(e).var(x).defaultInterop().prop(t)}}else if(s){T.default(e).read(t)}}else if(S){T.import();if(a){T.namespace(x||o)}else if(r||s){T.named(x,t)}}else{T.require();if(a){T.var(x||o).wildcardInterop()}else if((r||s)&&f){if(r){x=x!=="default"?x:o;T.var(x).read(t);T.defaultInterop()}else{T.var(o).read(t)}}else if(r){T.var(x).defaultInterop().prop(t)}else if(s){T.var(x).prop(t)}}}else if(p==="compiled"){if(E){T.import();if(a){T.default(x||o)}else if(r||s){T.default(o).read(x)}}else if(S){T.import();if(a){T.namespace(x||o)}else if(r||s){T.named(x,t)}}else{T.require();if(a){T.var(x||o)}else if(r||s){if(f){T.var(o).read(x)}else{T.prop(t).var(x)}}}}else if(p==="uncompiled"){if(r&&f){throw new Error("No live reference for commonjs default")}if(E){T.import();if(a){T.default(x||o)}else if(r){T.default(x)}else if(s){T.default(o).read(x)}}else if(S){T.import();if(a){T.default(x||o)}else if(r){T.default(x)}else if(s){T.named(x,t)}}else{T.require();if(a){T.var(x||o)}else if(r){T.var(x)}else if(s){if(f){T.var(o).read(x)}else{T.var(x).prop(t)}}}}else{throw new Error(`Unknown importedInterop "${p}".`)}const{statements:j,resultName:w}=T.done();this._insertStatements(j,g,b);if((r||s)&&y&&w.type!=="Identifier"){return u([c(0),w])}return w}_insertStatements(e,t="before",r=3){if(t==="after"){if(this._insertStatementsAfter(e))return}else{if(this._insertStatementsBefore(e,r))return}this._programPath.unshiftContainer("body",e)}_insertStatementsBefore(e,t){if(e.length===1&&p(e[0])&&isValueImport(e[0])){const t=this._programPath.get("body").find((e=>e.isImportDeclaration()&&isValueImport(e.node)));if((t==null?void 0:t.node.source.value)===e[0].source.value&&maybeAppendImportSpecifiers(t.node,e[0])){return true}}e.forEach((e=>{e._blockHoist=t}));const r=this._programPath.get("body").find((e=>{const t=e.node._blockHoist;return Number.isFinite(t)&&t<4}));if(r){r.insertBefore(e);return true}return false}_insertStatementsAfter(e){const t=new Set(e);const r=new Map;for(const t of e){if(p(t)&&isValueImport(t)){const e=t.source.value;if(!r.has(e))r.set(e,[]);r.get(e).push(t)}}let s=null;for(const e of this._programPath.get("body")){if(e.isImportDeclaration()&&isValueImport(e.node)){s=e;const a=e.node.source.value;const n=r.get(a);if(!n)continue;for(const r of n){if(!t.has(r))continue;if(maybeAppendImportSpecifiers(e.node,r)){t.delete(r)}}}}if(t.size===0)return true;if(s)s.insertAfter(Array.from(t));return!!s}}t["default"]=ImportInjector;function isValueImport(e){return e.importKind!=="type"&&e.importKind!=="typeof"}function hasNamespaceImport(e){return e.specifiers.length===1&&e.specifiers[0].type==="ImportNamespaceSpecifier"||e.specifiers.length===2&&e.specifiers[1].type==="ImportNamespaceSpecifier"}function hasDefaultImport(e){return e.specifiers.length>0&&e.specifiers[0].type==="ImportDefaultSpecifier"}function maybeAppendImportSpecifiers(e,t){if(!e.specifiers.length){e.specifiers=t.specifiers;return true}if(!t.specifiers.length)return true;if(hasNamespaceImport(e)||hasNamespaceImport(t))return false;if(hasDefaultImport(t)){if(hasDefaultImport(e)){t.specifiers[0]=l(t.specifiers[0].local,o("default"))}else{e.specifiers.unshift(t.specifiers.shift())}}e.specifiers.push(...t.specifiers);return true}},3521:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"ImportInjector",{enumerable:true,get:function(){return s.default}});t.addDefault=addDefault;t.addNamed=addNamed;t.addNamespace=addNamespace;t.addSideEffect=addSideEffect;Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return a.default}});var s=r(8781);var a=r(7986);function addDefault(e,t,r){return new s.default(e).addDefault(t,r)}function addNamed(e,t,r,a){return new s.default(e).addNamed(t,r,a)}function addNamespace(e,t,r){return new s.default(e).addNamespace(t,r)}function addSideEffect(e,t,r){return new s.default(e).addSideEffect(t,r)}},7986:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=isModule;function isModule(e){return e.node.sourceType==="module"}},7766:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.buildDynamicImport=buildDynamicImport;var s=r(1485);{t.getDynamicImportSource=function getDynamicImportSource(e){const[t]=e.arguments;return s.types.isStringLiteral(t)||s.types.isTemplateLiteral(t)?t:s.template.expression.ast`\`\${${t}}\``}}function buildDynamicImport(e,t,r,a){const n=s.types.isCallExpression(e)?e.arguments[0]:e.source;if(s.types.isStringLiteral(n)||s.types.isTemplateLiteral(n)&&n.quasis.length===0){if(t){return s.template.expression.ast`
125
125
  Promise.resolve().then(() => ${a(n)})
126
126
  `}else return a(n)}const i=s.types.isTemplateLiteral(n)?s.types.identifier("specifier"):s.types.templateLiteral([s.types.templateElement({raw:""}),s.types.templateElement({raw:""})],[s.types.identifier("specifier")]);if(t){return s.template.expression.ast`
127
127
  (specifier =>
@@ -134,7 +134,7 @@
134
134
  )(${n})
135
135
  `}else{return s.template.expression.ast`
136
136
  (specifier => ${a(i)})(${n})
137
- `}}},4362:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getModuleName;{const e=getModuleName;t["default"]=getModuleName=function getModuleName(t,r){var s,a,n,i;return e(t,{moduleId:(s=r.moduleId)!=null?s:t.moduleId,moduleIds:(a=r.moduleIds)!=null?a:t.moduleIds,getModuleId:(n=r.getModuleId)!=null?n:t.getModuleId,moduleRoot:(i=r.moduleRoot)!=null?i:t.moduleRoot})}}function getModuleName(e,t){const{filename:r,filenameRelative:s=r,sourceRoot:a=t.moduleRoot}=e;const{moduleId:n,moduleIds:i=!!n,getModuleId:o,moduleRoot:l=a}=t;if(!i)return null;if(n!=null&&!o){return n}let c=l!=null?l+"/":"";if(s){const e=a!=null?new RegExp("^"+a+"/?"):"";c+=s.replace(e,"").replace(/\.\w*$/,"")}c=c.replace(/\\/g,"/");if(o){return o(c)||c}else{return c}}},3015:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"buildDynamicImport",{enumerable:true,get:function(){return u.buildDynamicImport}});t.buildNamespaceInitStatements=buildNamespaceInitStatements;t.ensureStatementsHoisted=ensureStatementsHoisted;Object.defineProperty(t,"getModuleName",{enumerable:true,get:function(){return p.default}});Object.defineProperty(t,"hasExports",{enumerable:true,get:function(){return l.hasExports}});Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return n.isModule}});Object.defineProperty(t,"isSideEffectImport",{enumerable:true,get:function(){return l.isSideEffectImport}});t.rewriteModuleStatementsAndPrepareHeader=rewriteModuleStatementsAndPrepareHeader;Object.defineProperty(t,"rewriteThis",{enumerable:true,get:function(){return i.default}});t.wrapInterop=wrapInterop;var s=r(2613);var a=r(1485);var n=r(9696);var i=r(3432);var o=r(1777);var l=r(4667);var c=r(5177);var u=r(7766);var p=r(4362);{t.getDynamicImportSource=r(7766).getDynamicImportSource}function rewriteModuleStatementsAndPrepareHeader(e,{exportName:t,strict:r,allowTopLevelThis:u,strictMode:p,noInterop:d,importInterop:f=(d?"none":"babel"),lazy:y,getWrapperPayload:h=c.toGetWrapperPayload(y!=null?y:false),wrapReference:g=c.wrapReference,esNamespaceOnly:b,filename:x,constantReexports:v=arguments[1].loose,enumerableModuleMeta:E=arguments[1].loose,noIncompleteNsImportDetection:S}){(0,l.validateImportInteropOption)(f);s((0,n.isModule)(e),"Cannot process module statements in a script");e.node.sourceType="script";const T=(0,l.default)(e,t,{importInterop:f,initializeReexports:v,getWrapperPayload:h,esNamespaceOnly:b,filename:x});if(!u){(0,i.default)(e)}(0,o.default)(e,T,g);if(p!==false){const t=e.node.directives.some((e=>e.value.value==="use strict"));if(!t){e.unshiftContainer("directives",a.types.directive(a.types.directiveLiteral("use strict")))}}const j=[];if((0,l.hasExports)(T)&&!r){j.push(buildESModuleHeader(T,E))}const w=buildExportNameListDeclaration(e,T);if(w){T.exportNameListName=w.name;j.push(w.statement)}j.push(...buildExportInitializationStatements(e,T,g,v,S));return{meta:T,headers:j}}function ensureStatementsHoisted(e){e.forEach((e=>{e._blockHoist=3}))}function wrapInterop(e,t,r){if(r==="none"){return null}if(r==="node-namespace"){return a.types.callExpression(e.hub.addHelper("interopRequireWildcard"),[t,a.types.booleanLiteral(true)])}else if(r==="node-default"){return null}let s;if(r==="default"){s="interopRequireDefault"}else if(r==="namespace"){s="interopRequireWildcard"}else{throw new Error(`Unknown interop: ${r}`)}return a.types.callExpression(e.hub.addHelper(s),[t])}function buildNamespaceInitStatements(e,t,r=false,s=c.wrapReference){var n;const i=[];const o=a.types.identifier(t.name);for(const e of t.importsNamespace){if(e===t.name)continue;i.push(a.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:a.types.cloneNode(o)}))}const l=(n=s(o,t.wrap))!=null?n:o;if(r){i.push(...buildReexportsFromMeta(e,t,true,s))}for(const r of t.reexportNamespace){i.push((!a.types.isIdentifier(l)?a.template.statement`
137
+ `}}},4362:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=getModuleName;{const e=getModuleName;t["default"]=getModuleName=function getModuleName(t,r){var s,a,n,i;return e(t,{moduleId:(s=r.moduleId)!=null?s:t.moduleId,moduleIds:(a=r.moduleIds)!=null?a:t.moduleIds,getModuleId:(n=r.getModuleId)!=null?n:t.getModuleId,moduleRoot:(i=r.moduleRoot)!=null?i:t.moduleRoot})}}function getModuleName(e,t){const{filename:r,filenameRelative:s=r,sourceRoot:a=t.moduleRoot}=e;const{moduleId:n,moduleIds:i=!!n,getModuleId:o,moduleRoot:l=a}=t;if(!i)return null;if(n!=null&&!o){return n}let c=l!=null?l+"/":"";if(s){const e=a!=null?new RegExp("^"+a+"/?"):"";c+=s.replace(e,"").replace(/\.\w*$/,"")}c=c.replace(/\\/g,"/");if(o){return o(c)||c}else{return c}}},3015:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"buildDynamicImport",{enumerable:true,get:function(){return u.buildDynamicImport}});t.buildNamespaceInitStatements=buildNamespaceInitStatements;t.ensureStatementsHoisted=ensureStatementsHoisted;Object.defineProperty(t,"getModuleName",{enumerable:true,get:function(){return p.default}});Object.defineProperty(t,"hasExports",{enumerable:true,get:function(){return l.hasExports}});Object.defineProperty(t,"isModule",{enumerable:true,get:function(){return n.isModule}});Object.defineProperty(t,"isSideEffectImport",{enumerable:true,get:function(){return l.isSideEffectImport}});t.rewriteModuleStatementsAndPrepareHeader=rewriteModuleStatementsAndPrepareHeader;Object.defineProperty(t,"rewriteThis",{enumerable:true,get:function(){return i.default}});t.wrapInterop=wrapInterop;var s=r(2613);var a=r(1485);var n=r(3521);var i=r(3432);var o=r(1777);var l=r(4667);var c=r(5177);var u=r(7766);var p=r(4362);{t.getDynamicImportSource=r(7766).getDynamicImportSource}function rewriteModuleStatementsAndPrepareHeader(e,{exportName:t,strict:r,allowTopLevelThis:u,strictMode:p,noInterop:d,importInterop:f=(d?"none":"babel"),lazy:y,getWrapperPayload:h=c.toGetWrapperPayload(y!=null?y:false),wrapReference:g=c.wrapReference,esNamespaceOnly:b,filename:x,constantReexports:v=arguments[1].loose,enumerableModuleMeta:E=arguments[1].loose,noIncompleteNsImportDetection:S}){(0,l.validateImportInteropOption)(f);s((0,n.isModule)(e),"Cannot process module statements in a script");e.node.sourceType="script";const T=(0,l.default)(e,t,{importInterop:f,initializeReexports:v,getWrapperPayload:h,esNamespaceOnly:b,filename:x});if(!u){(0,i.default)(e)}(0,o.default)(e,T,g);if(p!==false){const t=e.node.directives.some((e=>e.value.value==="use strict"));if(!t){e.unshiftContainer("directives",a.types.directive(a.types.directiveLiteral("use strict")))}}const j=[];if((0,l.hasExports)(T)&&!r){j.push(buildESModuleHeader(T,E))}const w=buildExportNameListDeclaration(e,T);if(w){T.exportNameListName=w.name;j.push(w.statement)}j.push(...buildExportInitializationStatements(e,T,g,v,S));return{meta:T,headers:j}}function ensureStatementsHoisted(e){e.forEach((e=>{e._blockHoist=3}))}function wrapInterop(e,t,r){if(r==="none"){return null}if(r==="node-namespace"){return a.types.callExpression(e.hub.addHelper("interopRequireWildcard"),[t,a.types.booleanLiteral(true)])}else if(r==="node-default"){return null}let s;if(r==="default"){s="interopRequireDefault"}else if(r==="namespace"){s="interopRequireWildcard"}else{throw new Error(`Unknown interop: ${r}`)}return a.types.callExpression(e.hub.addHelper(s),[t])}function buildNamespaceInitStatements(e,t,r=false,s=c.wrapReference){var n;const i=[];const o=a.types.identifier(t.name);for(const e of t.importsNamespace){if(e===t.name)continue;i.push(a.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:a.types.cloneNode(o)}))}const l=(n=s(o,t.wrap))!=null?n:o;if(r){i.push(...buildReexportsFromMeta(e,t,true,s))}for(const r of t.reexportNamespace){i.push((!a.types.isIdentifier(l)?a.template.statement`
138
138
  Object.defineProperty(EXPORTS, "NAME", {
139
139
  enumerable: true,
140
140
  get: function() {
@@ -198,7 +198,7 @@
198
198
  function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
199
199
  `])}else{return n.template.expression.ast`
200
200
  function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
201
- `}}};const v=Object.assign({},b,{prop(e){const{property:t}=e.node;if(this.memoiser.has(t)){return c(this.memoiser.get(t))}return c(t)},get(e){const{isStatic:t,getSuperRef:r}=this;const{computed:s}=e.node;const a=this.prop(e);let n;if(t){var i;n=(i=r())!=null?i:p(u("Function"),u("prototype"))}else{var o;n=p((o=r())!=null?o:u("Object"),u("prototype"))}return p(n,a,s)},set(e,t){const{computed:r}=e.node;const s=this.prop(e);return o("=",p(y(),s,r),t)},destructureSet(e){const{computed:t}=e.node;const r=this.prop(e);return p(y(),r,t)},call(e,t){return(0,a.default)(this.get(e),y(),t,false)},optionalCall(e,t){return(0,a.default)(this.get(e),y(),t,true)}});class ReplaceSupers{constructor(e){var t;const r=e.methodPath;this.methodPath=r;this.isDerivedConstructor=r.isClassMethod({kind:"constructor"})&&!!e.superRef;this.isStatic=r.isObjectMethod()||r.node.static||(r.isStaticBlock==null?void 0:r.isStaticBlock());this.isPrivateMethod=r.isPrivate()&&r.isMethod();this.file=e.file;this.constantSuper=(t=e.constantSuper)!=null?t:e.isLoose;this.opts=e}getObjectRef(){return c(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){if(this.opts.superRef)return c(this.opts.superRef);if(this.opts.getSuperRef){return c(this.opts.getSuperRef())}}replace(){const{methodPath:e}=this;if(this.opts.refToPreserve){e.traverse(g,{refName:this.opts.refToPreserve.name})}const t=this.constantSuper?v:this.file.availableHelper("superPropSet")?b:x;h.shouldSkip=t=>{if(t.parentPath===e){if(t.parentKey==="decorators"||t.parentKey==="key"){return true}}};(0,s.default)(e,h,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:t.get},t))}}t["default"]=ReplaceSupers},2722:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTransparentExprWrapper=isTransparentExprWrapper;t.skipTransparentExprWrapperNodes=skipTransparentExprWrapperNodes;t.skipTransparentExprWrappers=skipTransparentExprWrappers;var s=r(9551);const{isParenthesizedExpression:a,isTSAsExpression:n,isTSNonNullExpression:i,isTSSatisfiesExpression:o,isTSTypeAssertion:l,isTypeCastExpression:c}=s;function isTransparentExprWrapper(e){return n(e)||o(e)||l(e)||i(e)||c(e)||a(e)}function skipTransparentExprWrappers(e){while(isTransparentExprWrapper(e.node)){e=e.get("expression")}return e}function skipTransparentExprWrapperNodes(e){while(isTransparentExprWrapper(e)){e=e.expression}return e}},5616:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readCodePoint=readCodePoint;t.readInt=readInt;t.readStringContents=readStringContents;var r=function isDigit(e){return e>=48&&e<=57};const s={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])};const a={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function readStringContents(e,t,r,s,a,n){const i=r;const o=s;const l=a;let c="";let u=null;let p=r;const{length:d}=t;for(;;){if(r>=d){n.unterminated(i,o,l);c+=t.slice(p,r);break}const f=t.charCodeAt(r);if(isStringEnd(e,f,t,r)){c+=t.slice(p,r);break}if(f===92){c+=t.slice(p,r);const i=readEscapedChar(t,r,s,a,e==="template",n);if(i.ch===null&&!u){u={pos:r,lineStart:s,curLine:a}}else{c+=i.ch}({pos:r,lineStart:s,curLine:a}=i);p=r}else if(f===8232||f===8233){++r;++a;s=r}else if(f===10||f===13){if(e==="template"){c+=t.slice(p,r)+"\n";++r;if(f===13&&t.charCodeAt(r)===10){++r}++a;p=s=r}else{n.unterminated(i,o,l)}}else{++r}}return{pos:r,str:c,firstInvalidLoc:u,lineStart:s,curLine:a,containsInvalid:!!u}}function isStringEnd(e,t,r,s){if(e==="template"){return t===96||t===36&&r.charCodeAt(s+1)===123}return t===(e==="double"?34:39)}function readEscapedChar(e,t,r,s,a,n){const i=!a;t++;const res=e=>({pos:t,ch:e,lineStart:r,curLine:s});const o=e.charCodeAt(t++);switch(o){case 110:return res("\n");case 114:return res("\r");case 120:{let a;({code:a,pos:t}=readHexChar(e,t,r,s,2,false,i,n));return res(a===null?null:String.fromCharCode(a))}case 117:{let a;({code:a,pos:t}=readCodePoint(e,t,r,s,i,n));return res(a===null?null:String.fromCodePoint(a))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:if(e.charCodeAt(t)===10){++t}case 10:r=t;++s;case 8232:case 8233:return res("");case 56:case 57:if(a){return res(null)}else{n.strictNumericEscape(t-1,r,s)}default:if(o>=48&&o<=55){const i=t-1;const o=/^[0-7]+/.exec(e.slice(i,t+2));let l=o[0];let c=parseInt(l,8);if(c>255){l=l.slice(0,-1);c=parseInt(l,8)}t+=l.length-1;const u=e.charCodeAt(t);if(l!=="0"||u===56||u===57){if(a){return res(null)}else{n.strictNumericEscape(i,r,s)}}return res(String.fromCharCode(c))}return res(String.fromCharCode(o))}}function readHexChar(e,t,r,s,a,n,i,o){const l=t;let c;({n:c,pos:t}=readInt(e,t,r,s,16,a,n,false,o,!i));if(c===null){if(i){o.invalidEscapeSequence(l,r,s)}else{t=l-1}}return{code:c,pos:t}}function readInt(e,t,n,i,o,l,c,u,p,d){const f=t;const y=o===16?s.hex:s.decBinOct;const h=o===16?a.hex:o===10?a.dec:o===8?a.oct:a.bin;let g=false;let b=0;for(let s=0,a=l==null?Infinity:l;s<a;++s){const s=e.charCodeAt(t);let a;if(s===95&&u!=="bail"){const r=e.charCodeAt(t-1);const s=e.charCodeAt(t+1);if(!u){if(d)return{n:null,pos:t};p.numericSeparatorInEscapeSequence(t,n,i)}else if(Number.isNaN(s)||!h(s)||y.has(r)||y.has(s)){if(d)return{n:null,pos:t};p.unexpectedNumericSeparator(t,n,i)}++t;continue}if(s>=97){a=s-97+10}else if(s>=65){a=s-65+10}else if(r(s)){a=s-48}else{a=Infinity}if(a>=o){if(a<=9&&d){return{n:null,pos:t}}else if(a<=9&&p.invalidDigit(t,n,i,o)){a=0}else if(c){a=0;g=true}else{break}}++t;b=b*o+a}if(t===f||l!=null&&t-f!==l||g){return{n:null,pos:t}}return{n:b,pos:t}}function readCodePoint(e,t,r,s,a,n){const i=e.charCodeAt(t);let o;if(i===123){++t;({code:o,pos:t}=readHexChar(e,t,r,s,e.indexOf("}",t)-t,true,a,n));++t;if(o!==null&&o>1114111){if(a){n.invalidCodePoint(t,r,s)}else{return{code:null,pos:t}}}}else{({code:o,pos:t}=readHexChar(e,t,r,s,4,false,a,n))}return{code:o,pos:t}}},5671:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIdentifierChar=isIdentifierChar;t.isIdentifierName=isIdentifierName;t.isIdentifierStart=isIdentifierStart;let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let s="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const a=new RegExp("["+r+"]");const n=new RegExp("["+r+s+"]");r=s=null;const i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const o=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let s=0,a=t.length;s<a;s+=2){r+=t[s];if(r>e)return false;r+=t[s+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&a.test(String.fromCharCode(e))}return isInAstralSet(e,i)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&n.test(String.fromCharCode(e))}return isInAstralSet(e,i)||isInAstralSet(e,o)}function isIdentifierName(e){let t=true;for(let r=0;r<e.length;r++){let s=e.charCodeAt(r);if((s&64512)===55296&&r+1<e.length){const t=e.charCodeAt(++r);if((t&64512)===56320){s=65536+((s&1023)<<10)+(t&1023)}}if(t){t=false;if(!isIdentifierStart(s)){return false}}else if(!isIdentifierChar(s)){return false}}return!t}},3218:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"isIdentifierChar",{enumerable:true,get:function(){return s.isIdentifierChar}});Object.defineProperty(t,"isIdentifierName",{enumerable:true,get:function(){return s.isIdentifierName}});Object.defineProperty(t,"isIdentifierStart",{enumerable:true,get:function(){return s.isIdentifierStart}});Object.defineProperty(t,"isKeyword",{enumerable:true,get:function(){return a.isKeyword}});Object.defineProperty(t,"isReservedWord",{enumerable:true,get:function(){return a.isReservedWord}});Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return a.isStrictBindOnlyReservedWord}});Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:true,get:function(){return a.isStrictBindReservedWord}});Object.defineProperty(t,"isStrictReservedWord",{enumerable:true,get:function(){return a.isStrictReservedWord}});var s=r(5671);var a=r(6657)},6657:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyword=isKeyword;t.isReservedWord=isReservedWord;t.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;t.isStrictBindReservedWord=isStrictBindReservedWord;t.isStrictReservedWord=isStrictReservedWord;const r={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const s=new Set(r.keyword);const a=new Set(r.strict);const n=new Set(r.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||a.has(e)}function isStrictBindOnlyReservedWord(e){return n.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return s.has(e)}},4588:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findSuggestion=findSuggestion;const{min:r}=Math;function levenshtein(e,t){let s=[],a=[],n,i;const o=e.length,l=t.length;if(!o){return l}if(!l){return o}for(i=0;i<=l;i++){s[i]=i}for(n=1;n<=o;n++){for(a=[n],i=1;i<=l;i++){a[i]=e[n-1]===t[i-1]?s[i-1]:r(s[i-1],s[i],a[i-1])+1}s=a}return a[l]}function findSuggestion(e,t){const s=t.map((t=>levenshtein(t,e)));return t[s.indexOf(r(...s))]}},5418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"OptionValidator",{enumerable:true,get:function(){return s.OptionValidator}});Object.defineProperty(t,"findSuggestion",{enumerable:true,get:function(){return a.findSuggestion}});var s=r(4268);var a=r(4588)},4268:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OptionValidator=void 0;var s=r(4588);class OptionValidator{constructor(e){this.descriptor=e}validateTopLevelOptions(e,t){const r=Object.keys(t);for(const t of Object.keys(e)){if(!r.includes(t)){throw new Error(this.formatMessage(`'${t}' is not a valid top-level option.\n- Did you mean '${(0,s.findSuggestion)(t,r)}'?`))}}}validateBooleanOption(e,t,r){if(t===undefined){return r}else{this.invariant(typeof t==="boolean",`'${e}' option must be a boolean.`)}return t}validateStringOption(e,t,r){if(t===undefined){return r}else{this.invariant(typeof t==="string",`'${e}' option must be a string.`)}return t}invariant(e,t){if(!e){throw new Error(this.formatMessage(t))}}formatMessage(e){return`${this.descriptor}: ${e}`}}t.OptionValidator=OptionValidator},4216:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=wrapFunction;var s=r(3219);var a=r(9551);const{blockStatement:n,callExpression:i,functionExpression:o,isAssignmentPattern:l,isFunctionDeclaration:c,isRestElement:u,returnStatement:p,isCallExpression:d,memberExpression:f,identifier:y,thisExpression:h,isPattern:g}=a;const b=s.default.expression(`\n (function () {\n var REF = FUNCTION;\n return function NAME(PARAMS) {\n return REF.apply(this, arguments);\n };\n })()\n`);const x=s.default.expression(`\n (function () {\n var REF = FUNCTION;\n function NAME(PARAMS) {\n return REF.apply(this, arguments);\n }\n return NAME;\n })()\n`);const v=s.default.statements(`\n function NAME(PARAMS) { return REF.apply(this, arguments); }\n function REF() {\n REF = FUNCTION;\n return REF.apply(this, arguments);\n }\n`);function classOrObjectMethod(e,t,r){const s=e.node;const a=s.body;let c=[];const d=s.params.some((e=>g(e)));if(d){c=s.params;s.params=[];if(!r){for(const t of c){if(l(t)||u(t)){break}s.params.push(e.scope.generateUidIdentifier("x"))}}}const b=o(null,c,n(a.body),true);if(d){a.body=[p(i(f(i(t,[b]),y("apply")),[h(),y("arguments")]))];e.get("body.body.0.argument.callee.object.arguments.0").unwrapFunctionEnvironment()}else{a.body=[p(i(i(t,[b]),[]))];e.get("body.body.0.argument.callee.arguments.0").unwrapFunctionEnvironment()}s.async=false;s.generator=false}function plainFunction(e,t,r,s,a){let n=e;let o;let p=null;const f=e.node.params;if(n.isArrowFunctionExpression()){{var y;n=(y=n.arrowFunctionToExpression({noNewArrows:r}))!=null?y:n}o=n.node}else{o=n.node}const h=c(o);let g=o;if(!d(o)){p=o.id;o.id=null;o.type="FunctionExpression";g=i(t,[o])}const E=[];for(const e of f){if(l(e)||u(e)){break}E.push(n.scope.generateUidIdentifier("x"))}const S={NAME:p||null,REF:n.scope.generateUidIdentifier(a?p.name:"ref"),FUNCTION:g,PARAMS:E};if(h){const e=v(S);n.replaceWith(e[0]);n.insertAfter(e[1])}else{let e;if(a){e=x(S)}else{e=b(S)}if(p||!s&&E.length){n.replaceWith(e)}else{n.replaceWith(g)}}}function wrapFunction(e,t,s=true,a=false){if(e.isMethod()){classOrObjectMethod(e,t,a)}else{const o="id"in e.node&&!!e.node.id;{var n,i;(i=(n=e).ensureFunctionName)!=null?i:n.ensureFunctionName=r(8384).NodePath.prototype.ensureFunctionName}e=e.ensureFunctionName(false);plainFunction(e,t,s,a,o)}}},126:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(3219);function helper(e,t,r){return Object.freeze({minVersion:e,ast:()=>s.default.program.ast(t,{preserveComments:true}),metadata:r})}const a=t["default"]={__proto__:null,OverloadYield:helper("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{},internal:false}),applyDecoratedDescriptor:helper("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:false}),applyDecs2311:helper("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(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;i<n.length;i++){var a=n[i],c=a[1],l=7&c;if((8&c)==t&&!l==r){var p=a[2],d=!!a[3],m=16&c;applyDec(t?e:e.prototype,a,m,d?"#"+p:toPropertyKey(p),l,l<2?[]:t?s=s||[]:u=u||[],f,!!t,d,r,t&&d?function(t){return checkInRHS(t)===e}:o)}}},p(8,0),p(0,0),p(8,1),p(0,1),l(u),l(s),c=f,v||w(e),{e:c,get c(){var n=[];return v&&[w(e=applyDec(e,[t],r,e.name,5,n)),g(n,1)]}}}',{globals:["Symbol","Object","TypeError","Error"],locals:{applyDecs2311:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2311",dependencies:{checkInRHS:["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.10.consequent.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.3.alternate.callee"]},internal:false}),arrayLikeToArray:helper("7.9.0","function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}",{globals:["Array"],locals:{_arrayLikeToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayLikeToArray",dependencies:{},internal:false}),arrayWithHoles:helper("7.0.0-beta.0","function _arrayWithHoles(r){if(Array.isArray(r))return r}",{globals:["Array"],locals:{_arrayWithHoles:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayWithHoles",dependencies:{},internal:false}),arrayWithoutHoles:helper("7.0.0-beta.0","function _arrayWithoutHoles(r){if(Array.isArray(r))return arrayLikeToArray(r)}",{globals:["Array"],locals:{_arrayWithoutHoles:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayWithoutHoles",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.argument.callee"]},internal:false}),assertClassBrand:helper("7.24.0",'function _assertClassBrand(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}',{globals:["TypeError"],locals:{_assertClassBrand:["body.0.id"]},exportBindingAssignments:[],exportName:"_assertClassBrand",dependencies:{},internal:false}),assertThisInitialized:helper("7.0.0-beta.0","function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}",{globals:["ReferenceError"],locals:{_assertThisInitialized:["body.0.id"]},exportBindingAssignments:[],exportName:"_assertThisInitialized",dependencies:{},internal:false}),asyncGeneratorDelegate:helper("7.0.0-beta.0",'function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise((function(n){n(t[e](r))})),{done:!1,value:new OverloadYield(r,1)}}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(t){return n?(n=!1,t):pump("next",t)},"function"==typeof t.throw&&(e.throw=function(t){if(n)throw n=!1,t;return pump("throw",t)}),"function"==typeof t.return&&(e.return=function(t){return n?(n=!1,t):pump("return",t)}),e}',{globals:["Promise","Symbol"],locals:{_asyncGeneratorDelegate:["body.0.id"]},exportBindingAssignments:[],exportName:"_asyncGeneratorDelegate",dependencies:{OverloadYield:["body.0.body.body.1.body.body.0.argument.expressions.2.properties.1.value.callee"]},internal:false}),asyncIterator:helper("7.15.9",'function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then((function(r){return{value:r,done:n}}))}return AsyncFromSyncIterator=function(r){this.s=r,this.n=r.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))},throw:function(r){var n=this.s.return;return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))}},new AsyncFromSyncIterator(r)}',{globals:["Symbol","TypeError","Object","Promise"],locals:{_asyncIterator:["body.0.id"],AsyncFromSyncIterator:["body.1.id","body.0.body.body.1.body.body.1.consequent.argument.callee","body.1.body.body.1.argument.expressions.1.left.object","body.1.body.body.1.argument.expressions.2.callee","body.1.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:[],exportName:"_asyncIterator",dependencies:{},internal:false}),asyncToGenerator:helper("7.0.0-beta.0",'function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)}))}}',{globals:["Promise"],locals:{asyncGeneratorStep:["body.0.id","body.1.body.body.0.argument.body.body.1.argument.arguments.0.body.body.1.body.body.0.expression.callee","body.1.body.body.0.argument.body.body.1.argument.arguments.0.body.body.2.body.body.0.expression.callee"],_asyncToGenerator:["body.1.id"]},exportBindingAssignments:[],exportName:"_asyncToGenerator",dependencies:{},internal:false}),awaitAsyncGenerator:helper("7.0.0-beta.0","function _awaitAsyncGenerator(e){return new OverloadYield(e,0)}",{globals:[],locals:{_awaitAsyncGenerator:["body.0.id"]},exportBindingAssignments:[],exportName:"_awaitAsyncGenerator",dependencies:{OverloadYield:["body.0.body.body.0.argument.callee"]},internal:false}),callSuper:helper("7.23.8","function _callSuper(t,o,e){return o=getPrototypeOf(o),possibleConstructorReturn(t,isNativeReflectConstruct()?Reflect.construct(o,e||[],getPrototypeOf(t).constructor):o.apply(t,e))}",{globals:["Reflect"],locals:{_callSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_callSuper",dependencies:{getPrototypeOf:["body.0.body.body.0.argument.expressions.0.right.callee","body.0.body.body.0.argument.expressions.1.arguments.1.consequent.arguments.2.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.argument.expressions.1.arguments.1.test.callee"],possibleConstructorReturn:["body.0.body.body.0.argument.expressions.1.callee"]},internal:false}),checkInRHS:helper("7.20.5",'function _checkInRHS(e){if(Object(e)!==e)throw TypeError("right-hand side of \'in\' should be an object, got "+(null!==e?typeof e:"null"));return e}',{globals:["Object","TypeError"],locals:{_checkInRHS:["body.0.id"]},exportBindingAssignments:[],exportName:"_checkInRHS",dependencies:{},internal:false}),checkPrivateRedeclaration:helper("7.14.1",'function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}',{globals:["TypeError"],locals:{_checkPrivateRedeclaration:["body.0.id"]},exportBindingAssignments:[],exportName:"_checkPrivateRedeclaration",dependencies:{},internal:false}),classCallCheck:helper("7.0.0-beta.0",'function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}',{globals:["TypeError"],locals:{_classCallCheck:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCallCheck",dependencies:{},internal:false}),classNameTDZError:helper("7.0.0-beta.0","function _classNameTDZError(e){throw new ReferenceError('Class \"'+e+'\" cannot be referenced in computed property keys.')}",{globals:["ReferenceError"],locals:{_classNameTDZError:["body.0.id"]},exportBindingAssignments:[],exportName:"_classNameTDZError",dependencies:{},internal:false}),classPrivateFieldGet2:helper("7.24.0","function _classPrivateFieldGet2(s,a){return s.get(assertClassBrand(s,a))}",{globals:[],locals:{_classPrivateFieldGet2:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet2",dependencies:{assertClassBrand:["body.0.body.body.0.argument.arguments.0.callee"]},internal:false}),classPrivateFieldInitSpec:helper("7.14.1","function _classPrivateFieldInitSpec(e,t,a){checkPrivateRedeclaration(e,t),t.set(e,a)}",{globals:[],locals:{_classPrivateFieldInitSpec:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldInitSpec",dependencies:{checkPrivateRedeclaration:["body.0.body.body.0.expression.expressions.0.callee"]},internal:false}),classPrivateFieldLooseBase:helper("7.0.0-beta.0",'function _classPrivateFieldBase(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}',{globals:["TypeError"],locals:{_classPrivateFieldBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldBase",dependencies:{},internal:false}),classPrivateFieldLooseKey:helper("7.0.0-beta.0",'var id=0;function _classPrivateFieldKey(e){return"__private_"+id+++"_"+e}',{globals:[],locals:{id:["body.0.declarations.0.id","body.1.body.body.0.argument.left.left.right.argument","body.1.body.body.0.argument.left.left.right.argument"],_classPrivateFieldKey:["body.1.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldKey",dependencies:{},internal:false}),classPrivateFieldSet2:helper("7.24.0","function _classPrivateFieldSet2(s,a,r){return s.set(assertClassBrand(s,a),r),r}",{globals:[],locals:{_classPrivateFieldSet2:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet2",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.arguments.0.callee"]},internal:false}),classPrivateGetter:helper("7.24.0","function _classPrivateGetter(s,r,a){return a(assertClassBrand(s,r))}",{globals:[],locals:{_classPrivateGetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateGetter",dependencies:{assertClassBrand:["body.0.body.body.0.argument.arguments.0.callee"]},internal:false}),classPrivateMethodInitSpec:helper("7.14.1","function _classPrivateMethodInitSpec(e,a){checkPrivateRedeclaration(e,a),a.add(e)}",{globals:[],locals:{_classPrivateMethodInitSpec:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodInitSpec",dependencies:{checkPrivateRedeclaration:["body.0.body.body.0.expression.expressions.0.callee"]},internal:false}),classPrivateSetter:helper("7.24.0","function _classPrivateSetter(s,r,a,t){return r(assertClassBrand(s,a),t),t}",{globals:[],locals:{_classPrivateSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateSetter",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.arguments.0.callee"]},internal:false}),classStaticPrivateMethodGet:helper("7.3.2","function _classStaticPrivateMethodGet(s,a,t){return assertClassBrand(a,s),t}",{globals:[],locals:{_classStaticPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]},internal:false}),construct:helper("7.0.0-beta.0","function _construct(t,e,r){if(isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&setPrototypeOf(p,r.prototype),p}",{globals:["Reflect"],locals:{_construct:["body.0.id"]},exportBindingAssignments:[],exportName:"_construct",dependencies:{isNativeReflectConstruct:["body.0.body.body.0.test.callee"],setPrototypeOf:["body.0.body.body.4.argument.expressions.0.right.callee"]},internal:false}),createClass:helper("7.0.0-beta.0",'function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}',{globals:["Object"],locals:{_defineProperties:["body.0.id","body.1.body.body.0.argument.expressions.0.right.callee","body.1.body.body.0.argument.expressions.1.right.callee"],_createClass:["body.1.id"]},exportBindingAssignments:[],exportName:"_createClass",dependencies:{toPropertyKey:["body.0.body.body.0.body.body.1.expression.expressions.3.arguments.1.callee"]},internal:false}),createForOfIteratorHelper:helper("7.9.0",'function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function(){};return{s:F,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelper",dependencies:{unsupportedIterableToArray:["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"]},internal:false}),createForOfIteratorHelperLoose:helper("7.9.0",'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelperLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelperLoose",dependencies:{unsupportedIterableToArray:["body.0.body.body.2.test.left.right.right.callee"]},internal:false}),createSuper:helper("7.9.0","function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,e)}}",{globals:["Reflect"],locals:{_createSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee","body.0.body.body.1.argument.body.body.1.consequent.body.0.declarations.0.init.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.declarations.0.init.callee"],possibleConstructorReturn:["body.0.body.body.1.argument.body.body.2.argument.callee"]},internal:false}),decorate:helper("7.1.5",'function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n<i.length;n++)o=i[n](o);var s=r((function(e){o.initializeInstanceElements(e,a.elements)}),t),a=o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)),e);return o.initializeClassElements(s.F,a.elements),o.runClassFinishers(s.F,a.finishers)}function _getDecoratorsApi(){_getDecoratorsApi=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach((function(t){r.forEach((function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)}),this)}),this)},initializeClassElements:function(e,r){var t=e.prototype;["method","field"].forEach((function(i){r.forEach((function(r){var o=r.placement;if(r.kind===i&&("static"===o||"prototype"===o)){var n="static"===o?e:t;this.defineClassElement(n,r)}}),this)}),this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"===r.kind){var i=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],i=[],o={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,o)}),this),e.forEach((function(e){if(!_hasDecorators(e))return t.push(e);var r=this.decorateElement(e,o);t.push(r.element),t.push.apply(t,r.extras),i.push.apply(i,r.finishers)}),this),!r)return{elements:t,finishers:i};var n=this.decorateConstructor(t,r);return i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(e,r,t){var i=r[e.placement];if(!t&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,r){for(var t=[],i=[],o=e.decorators,n=o.length-1;n>=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p<c.length;p++)this.addElementPlacement(c[p],r);t.push.apply(t,c)}}return{element:e,finishers:i,extras:t}},decorateConstructor:function(e,r){for(var t=[],i=r.length-1;i>=0;i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elements){e=n.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:t}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){if(void 0!==e)return toArray(e).map((function(e){var r=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),r}),this)},toElementDescriptor:function(e){var r=e.kind+"";if("method"!==r&&"field"!==r)throw new TypeError(\'An element descriptor\\\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "\'+r+\'"\');var t=toPropertyKey(e.key),i=e.placement+"";if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError(\'An element descriptor\\\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "\'+i+\'"\');var o=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var n={kind:r,key:t,placement:i,descriptor:Object.assign({},o)};return"field"!==r?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(o,"get","The property descriptor of a field descriptor"),this.disallowProperty(o,"set","The property descriptor of a field descriptor"),this.disallowProperty(o,"value","The property descriptor of a field descriptor"),n.initializer=e.initializer),n},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:_optionalCallableProperty(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=e.kind+"";if("class"!==r)throw new TypeError(\'A class descriptor\\\'s .kind property must be "class", but a decorator created a class descriptor with .kind "\'+r+\'"\');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var t=_optionalCallableProperty(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:t}},runClassFinishers:function(e,r){for(var t=0;t<r.length;t++){var i=(0,r[t])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,r,t){if(void 0!==e[r])throw new TypeError(t+" can\'t have a ."+r+" property.")}};return e}function _createElementDescriptor(e){var r,t=toPropertyKey(e.key);"method"===e.kind?r={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?r={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?r={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(r={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:t,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:r};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function _coalesceGetterSetter(e,r){void 0!==e.descriptor.get?r.descriptor.get=e.descriptor.get:r.descriptor.set=e.descriptor.set}function _coalesceClassElements(e){for(var r=[],isSameElement=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},t=0;t<e.length;t++){var i,o=e[t];if("method"===o.kind&&(i=r.find(isSameElement)))if(_isDataDescriptor(o.descriptor)||_isDataDescriptor(i.descriptor)){if(_hasDecorators(o)||_hasDecorators(i))throw new ReferenceError("Duplicated methods ("+o.key+") can\'t be decorated.");i.descriptor=o.descriptor}else{if(_hasDecorators(o)){if(_hasDecorators(i))throw new ReferenceError("Decorators can\'t be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}_coalesceGetterSetter(o,i)}else r.push(o)}return r}function _hasDecorators(e){return e.decorators&&e.decorators.length}function _isDataDescriptor(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function _optionalCallableProperty(e,r){var t=e[r];if(void 0!==t&&"function"!=typeof t)throw new TypeError("Expected \'"+r+"\' to be a function");return t}',{globals:["Object","TypeError","Symbol","ReferenceError"],locals:{_decorate:["body.0.id"],_getDecoratorsApi:["body.1.id","body.0.body.body.0.declarations.0.init.callee","body.1.body.body.0.expression.left"],_createElementDescriptor:["body.2.id","body.0.body.body.2.declarations.1.init.arguments.0.arguments.0.arguments.0"],_coalesceGetterSetter:["body.3.id","body.4.body.body.0.body.body.1.consequent.alternate.body.1.expression.callee"],_coalesceClassElements:["body.4.id","body.0.body.body.2.declarations.1.init.arguments.0.callee"],_hasDecorators:["body.5.id","body.1.body.body.1.declarations.0.init.properties.4.value.body.body.1.test.expressions.1.arguments.0.body.body.0.test.argument.callee","body.4.body.body.0.body.body.1.consequent.consequent.body.0.test.left.callee","body.4.body.body.0.body.body.1.consequent.consequent.body.0.test.right.callee","body.4.body.body.0.body.body.1.consequent.alternate.body.0.test.callee","body.4.body.body.0.body.body.1.consequent.alternate.body.0.consequent.body.0.test.callee"],_isDataDescriptor:["body.6.id","body.4.body.body.0.body.body.1.consequent.test.left.callee","body.4.body.body.0.body.body.1.consequent.test.right.callee"],_optionalCallableProperty:["body.7.id","body.1.body.body.1.declarations.0.init.properties.11.value.body.body.0.argument.properties.1.value.callee","body.1.body.body.1.declarations.0.init.properties.13.value.body.body.3.declarations.0.init.callee"]},exportBindingAssignments:[],exportName:"_decorate",dependencies:{toArray:["body.1.body.body.1.declarations.0.init.properties.9.value.body.body.0.consequent.argument.callee.object.callee"],toPropertyKey:["body.1.body.body.1.declarations.0.init.properties.10.value.body.body.2.declarations.0.init.callee","body.2.body.body.0.declarations.1.init.callee"]},internal:false}),defaults:helper("7.0.0-beta.0","function _defaults(e,r){for(var t=Object.getOwnPropertyNames(r),o=0;o<t.length;o++){var n=t[o],a=Object.getOwnPropertyDescriptor(r,n);a&&a.configurable&&void 0===e[n]&&Object.defineProperty(e,n,a)}return e}",{globals:["Object"],locals:{_defaults:["body.0.id"]},exportBindingAssignments:[],exportName:"_defaults",dependencies:{},internal:false}),defineAccessor:helper("7.20.7","function _defineAccessor(e,r,n,t){var c={configurable:!0,enumerable:!0};return c[e]=t,Object.defineProperty(r,n,c)}",{globals:["Object"],locals:{_defineAccessor:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineAccessor",dependencies:{},internal:false}),defineProperty:helper("7.0.0-beta.0","function _defineProperty(e,r,t){return(r=toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}",{globals:["Object"],locals:{_defineProperty:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineProperty",dependencies:{toPropertyKey:["body.0.body.body.0.argument.expressions.0.test.left.right.callee"]},internal:false}),extends:helper("7.0.0-beta.0","function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}",{globals:["Object"],locals:{_extends:["body.0.id","body.0.body.body.0.argument.expressions.1.callee.object","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_extends",dependencies:{},internal:false}),get:helper("7.0.0-beta.0",'function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},_get.apply(null,arguments)}',{globals:["Reflect","Object"],locals:{_get:["body.0.id","body.0.body.body.0.argument.expressions.1.callee.object","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_get",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.0.init.callee"]},internal:false}),getPrototypeOf:helper("7.0.0-beta.0","function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}",{globals:["Object"],locals:{_getPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_getPrototypeOf",dependencies:{},internal:false}),identity:helper("7.17.0","function _identity(t){return t}",{globals:[],locals:{_identity:["body.0.id"]},exportBindingAssignments:[],exportName:"_identity",dependencies:{},internal:false}),importDeferProxy:helper("7.23.0","function _importDeferProxy(e){var t=null,constValue=function(e){return function(){return e}},proxy=function(r){return function(n,o,f){return null===t&&(t=e()),r(t,o,f)}};return new Proxy({},{defineProperty:constValue(!1),deleteProperty:constValue(!1),get:proxy(Reflect.get),getOwnPropertyDescriptor:proxy(Reflect.getOwnPropertyDescriptor),getPrototypeOf:constValue(null),isExtensible:constValue(!1),has:proxy(Reflect.has),ownKeys:proxy(Reflect.ownKeys),preventExtensions:constValue(!0),set:constValue(!1),setPrototypeOf:constValue(!1)})}",{globals:["Proxy","Reflect"],locals:{_importDeferProxy:["body.0.id"]},exportBindingAssignments:[],exportName:"_importDeferProxy",dependencies:{},internal:false}),inherits:helper("7.0.0-beta.0",'function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&setPrototypeOf(t,e)}',{globals:["TypeError","Object"],locals:{_inherits:["body.0.id"]},exportBindingAssignments:[],exportName:"_inherits",dependencies:{setPrototypeOf:["body.0.body.body.1.expression.expressions.2.right.callee"]},internal:false}),inheritsLoose:helper("7.0.0-beta.0","function _inheritsLoose(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,setPrototypeOf(t,o)}",{globals:["Object"],locals:{_inheritsLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_inheritsLoose",dependencies:{setPrototypeOf:["body.0.body.body.0.expression.expressions.2.callee"]},internal:false}),initializerDefineProperty:helper("7.0.0-beta.0","function _initializerDefineProperty(e,i,r,l){r&&Object.defineProperty(e,i,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(l):void 0})}",{globals:["Object"],locals:{_initializerDefineProperty:["body.0.id"]},exportBindingAssignments:[],exportName:"_initializerDefineProperty",dependencies:{},internal:false}),initializerWarningHelper:helper("7.0.0-beta.0",'function _initializerWarningHelper(r,e){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}',{globals:["Error"],locals:{_initializerWarningHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_initializerWarningHelper",dependencies:{},internal:false}),instanceof:helper("7.0.0-beta.0",'function _instanceof(n,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](n):n instanceof e}',{globals:["Symbol"],locals:{_instanceof:["body.0.id"]},exportBindingAssignments:[],exportName:"_instanceof",dependencies:{},internal:false}),interopRequireDefault:helper("7.0.0-beta.0","function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}",{globals:[],locals:{_interopRequireDefault:["body.0.id"]},exportBindingAssignments:[],exportName:"_interopRequireDefault",dependencies:{},internal:false}),interopRequireWildcard:helper("7.14.0",'function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(_interopRequireWildcard=function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(f,t,i):f[t]=e[t]);return f})(e,t)}',{globals:["WeakMap","Object"],locals:{_interopRequireWildcard:["body.0.id","body.0.body.body.1.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.1.argument.callee"],exportName:"_interopRequireWildcard",dependencies:{},internal:false}),isNativeFunction:helper("7.0.0-beta.0",'function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(n){return"function"==typeof t}}',{globals:["Function"],locals:{_isNativeFunction:["body.0.id"]},exportBindingAssignments:[],exportName:"_isNativeFunction",dependencies:{},internal:false}),isNativeReflectConstruct:helper("7.9.0","function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}",{globals:["Boolean","Reflect"],locals:{_isNativeReflectConstruct:["body.0.id","body.0.body.body.1.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.1.argument.callee"],exportName:"_isNativeReflectConstruct",dependencies:{},internal:false}),iterableToArray:helper("7.0.0-beta.0",'function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}',{globals:["Symbol","Array"],locals:{_iterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_iterableToArray",dependencies:{},internal:false}),iterableToArrayLimit:helper("7.0.0-beta.0",'function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}',{globals:["Symbol","Object"],locals:{_iterableToArrayLimit:["body.0.id"]},exportBindingAssignments:[],exportName:"_iterableToArrayLimit",dependencies:{},internal:false}),jsx:helper("7.0.0-beta.0",'var REACT_ELEMENT_TYPE;function _createRawReactElement(e,r,E,l){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,n=arguments.length-3;if(r||0===n||(r={children:void 0}),1===n)r.children=l;else if(n>1){for(var t=Array(n),f=0;f<n;f++)t[f]=arguments[f+3];r.children=t}if(r&&o)for(var i in o)void 0===r[i]&&(r[i]=o[i]);else r||(r=o||{});return{$$typeof:REACT_ELEMENT_TYPE,type:e,key:void 0===E?null:""+E,ref:null,props:r,_owner:null}}',{globals:["Symbol","Array"],locals:{REACT_ELEMENT_TYPE:["body.0.declarations.0.id","body.1.body.body.0.expression.left","body.1.body.body.4.argument.properties.0.value","body.1.body.body.0.expression.right.left"],_createRawReactElement:["body.1.id"]},exportBindingAssignments:[],exportName:"_createRawReactElement",dependencies:{},internal:false}),maybeArrayLike:helper("7.9.0",'function _maybeArrayLike(r,a,e){if(a&&!Array.isArray(a)&&"number"==typeof a.length){var y=a.length;return arrayLikeToArray(a,void 0!==e&&e<y?e:y)}return r(a,e)}',{globals:["Array"],locals:{_maybeArrayLike:["body.0.id"]},exportBindingAssignments:[],exportName:"_maybeArrayLike",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.1.argument.callee"]},internal:false}),newArrowCheck:helper("7.0.0-beta.0",'function _newArrowCheck(n,r){if(n!==r)throw new TypeError("Cannot instantiate an arrow function")}',{globals:["TypeError"],locals:{_newArrowCheck:["body.0.id"]},exportBindingAssignments:[],exportName:"_newArrowCheck",dependencies:{},internal:false}),nonIterableRest:helper("7.0.0-beta.0",'function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["TypeError"],locals:{_nonIterableRest:["body.0.id"]},exportBindingAssignments:[],exportName:"_nonIterableRest",dependencies:{},internal:false}),nonIterableSpread:helper("7.0.0-beta.0",'function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["TypeError"],locals:{_nonIterableSpread:["body.0.id"]},exportBindingAssignments:[],exportName:"_nonIterableSpread",dependencies:{},internal:false}),nullishReceiverError:helper("7.22.6",'function _nullishReceiverError(r){throw new TypeError("Cannot set property of null or undefined.")}',{globals:["TypeError"],locals:{_nullishReceiverError:["body.0.id"]},exportBindingAssignments:[],exportName:"_nullishReceiverError",dependencies:{},internal:false}),objectDestructuringEmpty:helper("7.0.0-beta.0",'function _objectDestructuringEmpty(t){if(null==t)throw new TypeError("Cannot destructure "+t)}',{globals:["TypeError"],locals:{_objectDestructuringEmpty:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectDestructuringEmpty",dependencies:{},internal:false}),objectSpread2:helper("7.5.0","function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}",{globals:["Object"],locals:{ownKeys:["body.0.id","body.1.body.body.0.body.body.1.expression.consequent.callee.object.callee","body.1.body.body.0.body.body.1.expression.alternate.alternate.callee.object.callee"],_objectSpread2:["body.1.id"]},exportBindingAssignments:[],exportName:"_objectSpread2",dependencies:{defineProperty:["body.1.body.body.0.body.body.1.expression.consequent.arguments.0.body.body.0.expression.callee"]},internal:false}),objectWithoutProperties:helper("7.0.0-beta.0","function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}",{globals:["Object"],locals:{_objectWithoutProperties:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectWithoutProperties",dependencies:{objectWithoutPropertiesLoose:["body.0.body.body.1.declarations.2.init.callee"]},internal:false}),objectWithoutPropertiesLoose:helper("7.0.0-beta.0","function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n]}return t}",{globals:[],locals:{_objectWithoutPropertiesLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectWithoutPropertiesLoose",dependencies:{},internal:false}),possibleConstructorReturn:helper("7.0.0-beta.0",'function _possibleConstructorReturn(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return assertThisInitialized(t)}',{globals:["TypeError"],locals:{_possibleConstructorReturn:["body.0.id"]},exportBindingAssignments:[],exportName:"_possibleConstructorReturn",dependencies:{assertThisInitialized:["body.0.body.body.2.argument.callee"]},internal:false}),readOnlyError:helper("7.0.0-beta.0","function _readOnlyError(r){throw new TypeError('\"'+r+'\" is read-only')}",{globals:["TypeError"],locals:{_readOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_readOnlyError",dependencies:{},internal:false}),regenerator:helper("7.27.0",'function _regenerator(){\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */\nvar 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:false}),regeneratorAsync:helper("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:false}),regeneratorAsyncGen:helper("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:false}),regeneratorAsyncIterator:helper("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){return n("throw",t,i,f)}))}catch(t){f(t)}}var r;this.next||(define(AsyncIterator.prototype),define(AsyncIterator.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),define(this,"_invoke",(function(t,o,i){function f(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(f,f):f()}),!0)}',{globals:["Symbol"],locals:{AsyncIterator:["body.0.id","body.0.body.body.2.expression.expressions.0.right.expressions.0.arguments.0.object","body.0.body.body.2.expression.expressions.0.right.expressions.1.arguments.0.object"]},exportBindingAssignments:[],exportName:"AsyncIterator",dependencies:{OverloadYield:["body.0.body.body.0.body.body.0.block.body.1.argument.test.right"],regeneratorDefine:["body.0.body.body.2.expression.expressions.0.right.expressions.0.callee","body.0.body.body.2.expression.expressions.0.right.expressions.1.callee","body.0.body.body.2.expression.expressions.1.callee"]},internal:true}),regeneratorDefine:helper("7.27.0",'function regeneratorDefine(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}regeneratorDefine=function(e,r,n,t){if(r)i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n;else{function o(r,n){regeneratorDefine(e,r,(function(e){return this._invoke(r,n,e)}))}o("next",0),o("throw",1),o("return",2)}},regeneratorDefine(e,r,n,t)}',{globals:["Object"],locals:{regeneratorDefine:["body.0.id","body.0.body.body.2.expression.expressions.0.right.body.body.0.alternate.body.0.body.body.0.expression.callee","body.0.body.body.2.expression.expressions.1.callee","body.0.body.body.2.expression.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.2.expression.expressions.0"],exportName:"regeneratorDefine",dependencies:{},internal:true}),regeneratorKeys:helper("7.27.0","function _regeneratorKeys(e){var n=Object(e),r=[];for(var t in n)r.unshift(t);return function e(){for(;r.length;)if((t=r.pop())in n)return e.value=t,e.done=!1,e;return e.done=!0,e}}",{globals:["Object"],locals:{_regeneratorKeys:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorKeys",dependencies:{},internal:false}),regeneratorValues:helper("7.18.0",'function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}',{globals:["Symbol","isNaN","TypeError"],locals:{_regeneratorValues:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorValues",dependencies:{},internal:false}),set:helper("7.0.0-beta.0",'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOwnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}',{globals:["Reflect","Object","TypeError"],locals:{set:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.0.test.left.argument.callee","body.0.body.body.0.argument.expressions.0.left"],_set:["body.1.id"]},exportBindingAssignments:[],exportName:"_set",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],defineProperty:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]},internal:false}),setFunctionName:helper("7.23.6",'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}',{globals:["Object"],locals:{setFunctionName:["body.0.id"]},exportBindingAssignments:[],exportName:"setFunctionName",dependencies:{},internal:false}),setPrototypeOf:helper("7.0.0-beta.0","function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}",{globals:["Object"],locals:{_setPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_setPrototypeOf",dependencies:{},internal:false}),skipFirstGeneratorNext:helper("7.0.0-beta.0","function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.next(),r}}",{globals:[],locals:{_skipFirstGeneratorNext:["body.0.id"]},exportBindingAssignments:[],exportName:"_skipFirstGeneratorNext",dependencies:{},internal:false}),slicedToArray:helper("7.0.0-beta.0","function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}",{globals:[],locals:{_slicedToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_slicedToArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArrayLimit:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]},internal:false}),superPropBase:helper("7.0.0-beta.0","function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return t}",{globals:[],locals:{_superPropBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropBase",dependencies:{getPrototypeOf:["body.0.body.body.0.test.right.right.right.callee"]},internal:false}),superPropGet:helper("7.25.0",'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t)}:p}',{globals:[],locals:{_superPropGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropGet",dependencies:{get:["body.0.body.body.0.declarations.0.init.callee"],getPrototypeOf:["body.0.body.body.0.declarations.0.init.arguments.0.callee"]},internal:false}),superPropSet:helper("7.25.0","function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}",{globals:[],locals:{_superPropSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropSet",dependencies:{set:["body.0.body.body.0.argument.callee"],getPrototypeOf:["body.0.body.body.0.argument.arguments.0.callee"]},internal:false}),taggedTemplateLiteral:helper("7.0.0-beta.0","function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}",{globals:["Object"],locals:{_taggedTemplateLiteral:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteral",dependencies:{},internal:false}),taggedTemplateLiteralLoose:helper("7.0.0-beta.0","function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}",{globals:[],locals:{_taggedTemplateLiteralLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteralLoose",dependencies:{},internal:false}),tdz:helper("7.5.5",'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}',{globals:["ReferenceError"],locals:{_tdzError:["body.0.id"]},exportBindingAssignments:[],exportName:"_tdzError",dependencies:{},internal:false}),temporalRef:helper("7.0.0-beta.0","function _temporalRef(r,e){return r===undef?err(e):r}",{globals:[],locals:{_temporalRef:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalRef",dependencies:{temporalUndefined:["body.0.body.body.0.argument.test.right"],tdz:["body.0.body.body.0.argument.consequent.callee"]},internal:false}),temporalUndefined:helper("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{},internal:false}),toArray:helper("7.0.0-beta.0","function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableRest()}",{globals:[],locals:{_toArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]},internal:false}),toConsumableArray:helper("7.0.0-beta.0","function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}",{globals:[],locals:{_toConsumableArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toConsumableArray",dependencies:{arrayWithoutHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableSpread:["body.0.body.body.0.argument.right.callee"]},internal:false}),toPrimitive:helper("7.1.5",'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}',{globals:["Symbol","TypeError","String","Number"],locals:{toPrimitive:["body.0.id"]},exportBindingAssignments:[],exportName:"toPrimitive",dependencies:{},internal:false}),toPropertyKey:helper("7.1.5",'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}',{globals:[],locals:{toPropertyKey:["body.0.id"]},exportBindingAssignments:[],exportName:"toPropertyKey",dependencies:{toPrimitive:["body.0.body.body.0.declarations.0.init.callee"]},internal:false}),toSetter:helper("7.24.0",'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e)}})}',{globals:["Object"],locals:{_toSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_toSetter",dependencies:{},internal:false}),tsRewriteRelativeImportExtensions:helper("7.27.0",'function tsRewriteRelativeImportExtensions(t,e){return"string"==typeof t&&/^\\.\\.?\\//.test(t)?t.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+)?)\\.([cm]?)ts$/i,(function(t,s,r,n,o){return s?e?".jsx":".js":!r||n&&o?r+n+"."+o.toLowerCase()+"js":t})):t}',{globals:[],locals:{tsRewriteRelativeImportExtensions:["body.0.id"]},exportBindingAssignments:[],exportName:"tsRewriteRelativeImportExtensions",dependencies:{},internal:false}),typeof:helper("7.0.0-beta.0",'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}',{globals:["Symbol"],locals:{_typeof:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_typeof",dependencies:{},internal:false}),unsupportedIterableToArray:helper("7.9.0",'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}',{globals:["Array"],locals:{_unsupportedIterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_unsupportedIterableToArray",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.0.consequent.argument.callee","body.0.body.body.0.consequent.body.2.argument.expressions.1.alternate.consequent.callee"]},internal:false}),usingCtx:helper("7.23.9",'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)return s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}catch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n,next()}return next()}}}',{globals:["SuppressedError","Error","Object","TypeError","Symbol","Promise"],locals:{_usingCtx:["body.0.id"]},exportBindingAssignments:[],exportName:"_usingCtx",dependencies:{},internal:false}),wrapAsyncGenerator:helper("7.0.0-beta.0",'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"normal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};',{globals:["Promise","Symbol"],locals:{_wrapAsyncGenerator:["body.0.id"],AsyncGenerator:["body.1.id","body.0.body.body.0.argument.body.body.0.argument.callee","body.2.expression.expressions.0.left.object.object","body.2.expression.expressions.1.left.object.object","body.2.expression.expressions.2.left.object.object","body.2.expression.expressions.3.left.object.object"]},exportBindingAssignments:[],exportName:"_wrapAsyncGenerator",dependencies:{OverloadYield:["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]},internal:false}),wrapNativeSuper:helper("7.0.0-beta.0",'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}',{globals:["Map","TypeError","Object"],locals:{_wrapNativeSuper:["body.0.id","body.0.body.body.1.argument.expressions.1.callee","body.0.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.1.argument.expressions.0"],exportName:"_wrapNativeSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],setPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],isNativeFunction:["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],construct:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]},internal:false}),wrapRegExp:helper("7.19.0",'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;r[t]=e[o[i]]}return r}),Object.create(null))}return inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(r){var t=e.exec.call(this,r);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this))}return t},BabelRegExp.prototype[Symbol.replace]=function(t,p){if("string"==typeof p){var o=r.get(this);return e[Symbol.replace].call(this,t,p.replace(/\\$<([^>]+)(>|$)/g,(function(e,r,t){if(""===t)return e;var p=o[r];return Array.isArray(p)?"$"+p.join("$"):"number"==typeof p?"$"+p:""})))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}',{globals:["RegExp","WeakMap","Object","Symbol","Array"],locals:{_wrapRegExp:["body.0.id","body.0.body.body.4.argument.expressions.3.callee.object","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_wrapRegExp",dependencies:{setPrototypeOf:["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],inherits:["body.0.body.body.4.argument.expressions.0.callee"]},internal:false}),writeOnlyError:helper("7.12.13","function _writeOnlyError(r){throw new TypeError('\"'+r+'\" is write-only')}",{globals:["TypeError"],locals:{_writeOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_writeOnlyError",dependencies:{},internal:false})};{Object.assign(a,{AwaitValue:helper("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{},internal:false}),applyDecs:helper("7.17.8",'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o<r.length;o++){var i=r[o],n=t[i],l=a?a[i]:null,s=n.public,c=l?l.public:null;s&&c&&Object.setPrototypeOf(s,c);var d=n.private;if(d){var u=Array.from(d.values()),f=l?l.private:null;f&&(u=u.concat(f)),n.private=u}l&&Object.setPrototypeOf(n,l)}a&&Object.setPrototypeOf(t,a),e[Symbol.metadata||Symbol.for("Symbol.metadata")]=t}}function old_createAddInitializerMethod(e,t){return function(a){old_assertNotFinished(t,"addInitializer"),old_assertCallable(a,"An initializer"),e.push(a)}}function old_memberDec(e,t,a,r,o,i,n,l,s){var c;switch(i){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var d,u,f={kind:c,name:l?"#"+t:toPropertyKey(t),isStatic:n,isPrivate:l},p={v:!1};if(0!==i&&(f.addInitializer=old_createAddInitializerMethod(o,p)),l){d=2,u=Symbol(t);var v={};0===i?(v.get=a.get,v.set=a.set):2===i?v.get=function(){return a.value}:(1!==i&&3!==i||(v.get=function(){return a.get.call(this)}),1!==i&&4!==i||(v.set=function(e){a.set.call(this,e)})),f.access=v}else d=1,u=t;try{return e(s,Object.assign(f,old_createMetadataMethodsForProperty(r,d,u,p)))}finally{p.v=!0}}function old_assertNotFinished(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")}function old_assertMetadataKey(e){if("symbol"!=typeof e)throw new TypeError("Metadata keys must be symbols, received: "+e)}function old_assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function old_assertValidReturnValue(e,t){var a=typeof t;if(1===e){if("object"!==a||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&old_assertCallable(t.get,"accessor.get"),void 0!==t.set&&old_assertCallable(t.set,"accessor.set"),void 0!==t.init&&old_assertCallable(t.init,"accessor.init"),void 0!==t.initializer&&old_assertCallable(t.initializer,"accessor.initializer")}else if("function"!==a)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function old_getInit(e){var t;return null==(t=e.init)&&(t=e.initializer)&&void 0!==console&&console.warn(".initializer has been renamed to .init as of March 2022"),t}function old_applyMemberDec(e,t,a,r,o,i,n,l,s){var c,d,u,f,p,v,y,h=a[0];if(n?(0===o||1===o?(c={get:a[3],set:a[4]},u="get"):3===o?(c={get:a[3]},u="get"):4===o?(c={set:a[3]},u="set"):c={value:a[3]},0!==o&&(1===o&&setFunctionName(a[4],"#"+r,"set"),setFunctionName(a[3],"#"+r,u))):0!==o&&(c=Object.getOwnPropertyDescriptor(t,r)),1===o?f={get:c.get,set:c.set}:2===o?f=c.value:3===o?f=c.get:4===o&&(f=c.set),"function"==typeof h)void 0!==(p=old_memberDec(h,r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?d=p:1===o?(d=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p);else for(var m=h.length-1;m>=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r<g.length;r++)a=g[r].call(e,a);return a}}else{var _=d;d=function(e,t){return _.call(e,t)}}e.push(d)}0!==o&&(1===o?(c.get=f.get,c.set=f.set):2===o?c.value=f:3===o?c.get=f:4===o&&(c.set=f),n?1===o?(e.push((function(e,t){return f.get.call(e,t)})),e.push((function(e,t){return f.set.call(e,t)}))):2===o?e.push(f):e.push((function(e,t){return f.call(e,t)})):Object.defineProperty(t,r,c))}function old_applyMemberDecs(e,t,a,r,o){for(var i,n,l=new Map,s=new Map,c=0;c<o.length;c++){var d=o[c];if(Array.isArray(d)){var u,f,p,v=d[1],y=d[2],h=d.length>3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a<t.length;a++)t[a].call(e);return e}))}function old_applyClassDecs(e,t,a,r){if(r.length>0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e<o.length;e++)o[e].call(i)}))}}function applyDecs(e,t,a){var r=[],o={},i={};return old_applyMemberDecs(r,e,i,o,t),old_convertMetadataMapToFinal(e.prototype,i),old_applyClassDecs(r,e,o,a),old_convertMetadataMapToFinal(e,o),r}',{globals:["Object","Map","Symbol","Array","Error","TypeError","console"],locals:{old_createMetadataMethodsForProperty:["body.0.id","body.3.body.body.4.block.body.0.argument.arguments.1.arguments.1.callee","body.12.body.body.0.consequent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.1.callee"],old_convertMetadataMapToFinal:["body.1.id","body.13.body.body.1.argument.expressions.1.callee","body.13.body.body.1.argument.expressions.3.callee"],old_createAddInitializerMethod:["body.2.id","body.3.body.body.3.test.expressions.0.right.right.callee","body.12.body.body.0.consequent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.0.properties.2.value.callee"],old_memberDec:["body.3.id","body.9.body.body.1.consequent.expression.left.right.right.callee","body.9.body.body.1.alternate.body.body.1.expression.left.right.right.callee"],old_assertNotFinished:["body.4.id","body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.0.callee","body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.0.callee","body.2.body.body.0.argument.body.body.0.expression.expressions.0.callee"],old_assertMetadataKey:["body.5.id","body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.1.callee","body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.1.callee"],old_assertCallable:["body.6.id","body.2.body.body.0.argument.body.body.0.expression.expressions.1.callee","body.7.body.body.1.consequent.body.1.expression.expressions.0.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.1.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.2.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.3.right.callee"],old_assertValidReturnValue:["body.7.id","body.9.body.body.1.consequent.expression.right.expressions.0.callee","body.9.body.body.1.alternate.body.body.1.expression.right.expressions.0.callee","body.12.body.body.0.consequent.body.0.body.body.2.expression.right.expressions.0.callee"],old_getInit:["body.8.id","body.9.body.body.1.consequent.expression.right.expressions.1.alternate.consequent.expressions.0.right.callee","body.9.body.body.1.alternate.body.body.1.expression.right.expressions.1.alternate.consequent.expressions.0.right.callee"],old_applyMemberDec:["body.9.id","body.10.body.body.0.body.body.1.consequent.body.2.expression.callee"],old_applyMemberDecs:["body.10.id","body.13.body.body.1.argument.expressions.0.callee"],old_pushInitializers:["body.11.id","body.10.body.body.1.expression.expressions.0.callee","body.10.body.body.1.expression.expressions.1.callee"],old_applyClassDecs:["body.12.id","body.13.body.body.1.argument.expressions.2.callee"],applyDecs:["body.13.id"]},exportBindingAssignments:[],exportName:"applyDecs",dependencies:{setFunctionName:["body.9.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.9.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.3.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:false}),applyDecs2203:helper("7.19.0",'function applyDecs2203Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function memberDec(e,t,r,a,n,i,s,o){var c;switch(n){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var l,u,f={kind:c,name:s?"#"+t:t,static:i,private:s},p={v:!1};0!==n&&(f.addInitializer=createAddInitializerMethod(a,p)),0===n?s?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===n?l=function(){return r.value}:(1!==n&&3!==n||(l=function(){return r.get.call(this)}),1!==n&&4!==n||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:{set:u};try{return e(o,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,a,n,i,s,o){var c,l,u,f,p,d,h=r[0];if(s?c=0===n||1===n?{get:r[3],set:r[4]}:3===n?{get:r[3]}:4===n?{set:r[3]}:{value:r[3]}:0!==n&&(c=Object.getOwnPropertyDescriptor(t,a)),1===n?u={get:c.get,set:c.set}:2===n?u=c.value:3===n?u=c.get:4===n&&(u=c.set),"function"==typeof h)void 0!==(f=memberDec(h,a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?l=f:1===n?(l=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f);else for(var v=h.length-1;v>=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a<y.length;a++)r=y[a].call(e,r);return r}}else{var m=l;l=function(e,t){return m.call(e,t)}}e.push(l)}0!==n&&(1===n?(c.get=u.get,c.set=u.set):2===n?c.value=u:3===n?c.get=u:4===n&&(c.set=u),s?1===n?(e.push((function(e,t){return u.get.call(e,t)})),e.push((function(e,t){return u.set.call(e,t)}))):2===n?e.push(u):e.push((function(e,t){return u.call(e,t)})):Object.defineProperty(t,a,c))}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e}))}return function(e,t,r){var a=[];return function(e,t,r){for(var a,n,i=new Map,s=new Map,o=0;o<r.length;o++){var c=r[o];if(Array.isArray(c)){var l,u,f=c[1],p=c[2],d=c.length>3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e<a.length;e++)a[e].call(n)}))}}(a,e,r),a}}var applyDecs2203Impl;function applyDecs2203(e,t,r){return(applyDecs2203Impl=applyDecs2203Impl||applyDecs2203Factory())(e,t,r)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2203Factory:["body.0.id","body.2.body.body.0.argument.callee.right.right.callee"],applyDecs2203Impl:["body.1.declarations.0.id","body.2.body.body.0.argument.callee.right.left","body.2.body.body.0.argument.callee.left"],applyDecs2203:["body.2.id"]},exportBindingAssignments:[],exportName:"applyDecs2203",dependencies:{},internal:false}),applyDecs2203R:helper("7.20.0",'function applyDecs2203RFactory(){function createAddInitializerMethod(e,t){return function(r){!function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function memberDec(e,t,r,n,a,i,o,s){var c;switch(a){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var l,u,f={kind:c,name:o?"#"+t:toPropertyKey(t),static:i,private:o},p={v:!1};0!==a&&(f.addInitializer=createAddInitializerMethod(n,p)),0===a?o?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===a?l=function(){return r.value}:(1!==a&&3!==a||(l=function(){return r.get.call(this)}),1!==a&&4!==a||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:{set:u};try{return e(s,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,n,a,i,o,s){var c,l,u,f,p,d,h,v=r[0];if(o?(0===a||1===a?(c={get:r[3],set:r[4]},u="get"):3===a?(c={get:r[3]},u="get"):4===a?(c={set:r[3]},u="set"):c={value:r[3]},0!==a&&(1===a&&setFunctionName(r[4],"#"+n,"set"),setFunctionName(r[3],"#"+n,u))):0!==a&&(c=Object.getOwnPropertyDescriptor(t,n)),1===a?f={get:c.get,set:c.set}:2===a?f=c.value:3===a?f=c.get:4===a&&(f=c.set),"function"==typeof v)void 0!==(p=memberDec(v,n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?l=p:1===a?(l=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p);else for(var g=v.length-1;g>=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n<m.length;n++)r=m[n].call(e,r);return r}}else{var b=l;l=function(e,t){return b.call(e,t)}}e.push(l)}0!==a&&(1===a?(c.get=f.get,c.set=f.set):2===a?c.value=f:3===a?c.get=f:4===a&&(c.set=f),o?1===a?(e.push((function(e,t){return f.get.call(e,t)})),e.push((function(e,t){return f.set.call(e,t)}))):2===a?e.push(f):e.push((function(e,t){return f.call(e,t)})):Object.defineProperty(t,n,c))}function applyMemberDecs(e,t){for(var r,n,a=[],i=new Map,o=new Map,s=0;s<t.length;s++){var c=t[s];if(Array.isArray(c)){var l,u,f=c[1],p=c[2],d=c.length>3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e}))}return function(e,t,r){return{e:applyMemberDecs(e,t),get c(){return function(e,t){if(t.length>0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e<r.length;e++)r[e].call(n)}]}}(e,r)}}}}function applyDecs2203R(e,t,r){return(applyDecs2203R=applyDecs2203RFactory())(e,t,r)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2203RFactory:["body.0.id","body.1.body.body.0.argument.callee.right.callee"],applyDecs2203R:["body.1.id","body.1.body.body.0.argument.callee.left"]},exportBindingAssignments:["body.1.body.body.0.argument.callee"],exportName:"applyDecs2203R",dependencies:{setFunctionName:["body.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.0.body.body.1.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:false}),applyDecs2301:helper("7.21.0",'function applyDecs2301Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function assertInstanceIfPrivate(e,t){if(!e(t))throw new TypeError("Attempted to access private element on non-instance")}function memberDec(e,t,r,n,a,i,s,o,c){var u;switch(a){case 1:u="accessor";break;case 2:u="method";break;case 3:u="getter";break;case 4:u="setter";break;default:u="field"}var l,f,p={kind:u,name:s?"#"+t:toPropertyKey(t),static:i,private:s},d={v:!1};if(0!==a&&(p.addInitializer=createAddInitializerMethod(n,d)),s||0!==a&&2!==a)if(2===a)l=function(e){return assertInstanceIfPrivate(c,e),r.value};else{var h=0===a||1===a;(h||3===a)&&(l=s?function(e){return assertInstanceIfPrivate(c,e),r.get.call(e)}:function(e){return r.get.call(e)}),(h||4===a)&&(f=s?function(e,t){assertInstanceIfPrivate(c,e),r.set.call(e,t)}:function(e,t){r.set.call(e,t)})}else l=function(e){return e[t]},0===a&&(f=function(e,r){e[t]=r});var v=s?c.bind():function(e){return t in e};p.access=l&&f?{get:l,set:f,has:v}:l?{get:l,has:v}:{set:f,has:v};try{return e(o,p)}finally{d.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function curryThis2(e){return function(t){e(this,t)}}function applyMemberDec(e,t,r,n,a,i,s,o,c){var u,l,f,p,d,h,v,y,g=r[0];if(s?(0===a||1===a?(u={get:(d=r[3],function(){return d(this)}),set:curryThis2(r[4])},f="get"):3===a?(u={get:r[3]},f="get"):4===a?(u={set:r[3]},f="set"):u={value:r[3]},0!==a&&(1===a&&setFunctionName(u.set,"#"+n,"set"),setFunctionName(u[f||"value"],"#"+n,f))):0!==a&&(u=Object.getOwnPropertyDescriptor(t,n)),1===a?p={get:u.get,set:u.set}:2===a?p=u.value:3===a?p=u.get:4===a&&(p=u.set),"function"==typeof g)void 0!==(h=memberDec(g,n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?l=h:1===a?(l=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h);else for(var m=g.length-1;m>=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n<I.length;n++)r=I[n].call(e,r);return r}}else{var w=l;l=function(e,t){return w.call(e,t)}}e.push(l)}0!==a&&(1===a?(u.get=p.get,u.set=p.set):2===a?u.value=p:3===a?u.get=p:4===a&&(u.set=p),s?1===a?(e.push((function(e,t){return p.get.call(e,t)})),e.push((function(e,t){return p.set.call(e,t)}))):2===a?e.push(p):e.push((function(e,t){return p.call(e,t)})):Object.defineProperty(t,n,u))}function applyMemberDecs(e,t,r){for(var n,a,i,s=[],o=new Map,c=new Map,u=0;u<t.length;u++){var l=t[u];if(Array.isArray(l)){var f,p,d=l[1],h=l[2],v=l.length>3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e}))}return function(e,t,r,n){return{e:applyMemberDecs(e,t,n),get c(){return function(e,t){if(t.length>0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e<r.length;e++)r[e].call(n)}]}}(e,r)}}}}function applyDecs2301(e,t,r,n){return(applyDecs2301=applyDecs2301Factory())(e,t,r,n)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2301Factory:["body.0.id","body.1.body.body.0.argument.callee.right.callee"],applyDecs2301:["body.1.id","body.1.body.body.0.argument.callee.left"]},exportBindingAssignments:["body.1.body.body.0.argument.callee"],exportName:"applyDecs2301",dependencies:{checkInRHS:["body.0.body.body.7.body.body.0.body.body.1.consequent.body.1.test.expressions.0.consequent.expressions.2.right.right.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.0.body.body.2.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:false}),applyDecs2305:helper("7.21.0",'function applyDecs2305(e,t,r,n,o,a){function i(e,t,r){return function(n,o){return r&&r(n),e[t].call(n,o)}}function c(e,t){for(var r=0;r<e.length;r++)e[r].call(t);return t}function s(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function applyDec(e,t,r,n,o,a,c,u,l,f,p,d,h){function m(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var y,v=t[0],g=t[3],b=!u;if(!b){r||Array.isArray(v)||(v=[v]);var w={},S=[],A=3===o?"get":4===o||d?"set":"value";f?(p||d?w={get:setFunctionName((function(){return g(this)}),n,"get"),set:function(e){t[4](this,e)}}:w[A]=g,p||setFunctionName(w[A],n,2===o?"":A)):p||(w=Object.getOwnPropertyDescriptor(e,n))}for(var P=e,j=v.length-1;j>=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t})),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var d=p[1],h=p[2],m=p.length>3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}',{globals:["TypeError","Array","Object","Error","Symbol","Map"],locals:{applyDecs2305:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2305",dependencies:{checkInRHS:["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alternate.callee"]},internal:false}),classApplyDescriptorDestructureSet:helper("7.13.10",'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}',{globals:["TypeError"],locals:{_classApplyDescriptorDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorDestructureSet",dependencies:{},internal:false}),classApplyDescriptorGet:helper("7.13.10","function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}",{globals:[],locals:{_classApplyDescriptorGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorGet",dependencies:{},internal:false}),classApplyDescriptorSet:helper("7.13.10",'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=l}}',{globals:["TypeError"],locals:{_classApplyDescriptorSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorSet",dependencies:{},internal:false}),classCheckPrivateStaticAccess:helper("7.13.10","function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}",{globals:[],locals:{_classCheckPrivateStaticAccess:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticAccess",dependencies:{assertClassBrand:["body.0.body.body.0.argument.callee"]},internal:false}),classCheckPrivateStaticFieldDescriptor:helper("7.13.10",'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}',{globals:["TypeError"],locals:{_classCheckPrivateStaticFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticFieldDescriptor",dependencies:{},internal:false}),classExtractFieldDescriptor:helper("7.13.10","function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}",{globals:[],locals:{_classExtractFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classExtractFieldDescriptor",dependencies:{classPrivateFieldGet2:["body.0.body.body.0.argument.callee"]},internal:false}),classPrivateFieldDestructureSet:helper("7.4.4","function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorDestructureSet(e,r)}",{globals:[],locals:{_classPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:false}),classPrivateFieldGet:helper("7.0.0-beta.0","function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorGet(e,r)}",{globals:[],locals:{_classPrivateFieldGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:false}),classPrivateFieldSet:helper("7.0.0-beta.0","function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescriptorSet(e,s,r),r}",{globals:[],locals:{_classPrivateFieldSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.1.argument.expressions.0.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:false}),classPrivateMethodGet:helper("7.1.6","function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}",{globals:[],locals:{_classPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]},internal:false}),classPrivateMethodSet:helper("7.1.6",'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}',{globals:["TypeError"],locals:{_classPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodSet",dependencies:{},internal:false}),classStaticPrivateFieldDestructureSet:helper("7.13.10",'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}',{globals:[],locals:{_classStaticPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:false}),classStaticPrivateFieldSpecGet:helper("7.0.2",'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPrivateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}',{globals:[],locals:{_classStaticPrivateFieldSpecGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:false}),classStaticPrivateFieldSpecSet:helper("7.0.2",'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPrivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}',{globals:[],locals:{_classStaticPrivateFieldSpecSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:false}),classStaticPrivateMethodSet:helper("7.3.2",'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}',{globals:["TypeError"],locals:{_classStaticPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodSet",dependencies:{},internal:false}),defineEnumerableProperties:helper("7.0.0-beta.0",'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(r),b=0;b<a.length;b++){var i=a[b];(n=r[i]).configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i,n)}return e}',{globals:["Object"],locals:{_defineEnumerableProperties:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineEnumerableProperties",dependencies:{},internal:false}),dispose:helper("7.22.0",'function dispose_SuppressedError(r,e){return"undefined"!=typeof SuppressedError?dispose_SuppressedError=SuppressedError:(dispose_SuppressedError=function(r,e){this.suppressed=e,this.error=r,this.stack=Error().stack},dispose_SuppressedError.prototype=Object.create(Error.prototype,{constructor:{value:dispose_SuppressedError,writable:!0,configurable:!0}})),new dispose_SuppressedError(r,e)}function _dispose(r,e,s){function next(){for(;r.length>0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}',{globals:["SuppressedError","Error","Object","Promise"],locals:{dispose_SuppressedError:["body.0.id","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee","body.0.body.body.0.argument.expressions.0.consequent.left","body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],_dispose:["body.1.id"]},exportBindingAssignments:[],exportName:"_dispose",dependencies:{},internal:false}),objectSpread:helper("7.0.0-beta.0",'function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?Object(arguments[r]):{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.forEach((function(r){defineProperty(e,r,t[r])}))}return e}',{globals:["Object"],locals:{_objectSpread:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectSpread",dependencies:{defineProperty:["body.0.body.body.0.body.body.1.expression.expressions.1.arguments.0.body.body.0.expression.callee"]},internal:false}),regeneratorRuntime:helper("7.18.0",'function _regeneratorRuntime(){"use strict";var r=regenerator(),e=r.m(_regeneratorRuntime),t=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function n(r){var e="function"==typeof r&&r.constructor;return!!e&&(e===t||"GeneratorFunction"===(e.displayName||e.name))}var o={throw:1,return:2,break:3,continue:3};function a(r){var e,t;return function(n){e||(e={stop:function(){return t(n.a,2)},catch:function(){return n.v},abrupt:function(r,e){return t(n.a,o[r],e)},delegateYield:function(r,o,a){return e.resultName=o,t(n.d,values(r),a)},finish:function(r){return t(n.f,r)}},t=function(r,t,o){n.p=e.prev,n.n=e.next;try{return r(t,o)}finally{e.next=n.n}}),e.resultName&&(e[e.resultName]=n.v,e.resultName=void 0),e.sent=n.v,e.next=n.n;try{return r.call(this,e)}finally{n.p=e.prev,n.n=e.next}}}return(_regeneratorRuntime=function(){return{wrap:function(e,t,n,o){return r.w(a(e),t,n,o&&o.reverse())},isGeneratorFunction:n,mark:r.m,awrap:function(r,e){return new OverloadYield(r,e)},AsyncIterator:AsyncIterator,async:function(r,e,t,o,u){return(n(e)?asyncGen:async)(a(r),e,t,o,u)},keys:keys,values:values}})()}',{globals:["Object"],locals:{_regeneratorRuntime:["body.0.id","body.0.body.body.0.declarations.1.init.arguments.0","body.0.body.body.4.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.4.argument.callee"],exportName:"_regeneratorRuntime",dependencies:{OverloadYield:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.3.value.body.body.0.argument.callee"],regenerator:["body.0.body.body.0.declarations.0.init.callee"],regeneratorAsync:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.5.value.body.body.0.argument.callee.alternate"],regeneratorAsyncGen:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.5.value.body.body.0.argument.callee.consequent"],regeneratorAsyncIterator:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.4.value"],regeneratorKeys:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.6.value"],regeneratorValues:["body.0.body.body.3.body.body.1.argument.body.body.0.expression.expressions.0.right.expressions.0.right.properties.3.value.body.body.0.argument.expressions.1.arguments.1.callee","body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.7.value"]},internal:false}),using:helper("7.22.0",'function _using(o,n,e){if(null==n)return n;if(Object(n)!==n)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e)var r=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(null==r&&(r=n[Symbol.dispose||Symbol.for("Symbol.dispose")]),"function"!=typeof r)throw new TypeError("Property [Symbol.dispose] is not a function.");return o.push({v:n,d:r,a:e}),n}',{globals:["Object","TypeError","Symbol"],locals:{_using:["body.0.id"]},exportBindingAssignments:[],exportName:"_using",dependencies:{},internal:false})})}},467:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;t.get=get;t.getDependencies=getDependencies;t.isInternal=isInternal;t.list=void 0;t.minVersion=minVersion;var s=r(9551);var a=r(126);const{cloneNode:n,identifier:i}=s;function deep(e,t,r){try{const s=t.split(".");let a=s.shift();while(s.length>0){e=e[a];a=s.shift()}if(arguments.length>2){e[a]=r}else{return e[a]}}catch(e){e.message+=` (when accessing ${t})`;throw e}}function permuteHelperAST(e,t,r,s,a,o){const{locals:l,dependencies:c,exportBindingAssignments:u,exportName:p}=t;const d=new Set(s||[]);if(r)d.add(r);for(const[t,s]of(Object.entries||(e=>Object.keys(e).map((t=>[t,e[t]]))))(l)){let a=t;if(r&&t===p){a=r}else{while(d.has(a))a="_"+a}if(a!==t){for(const t of s){deep(e,t,i(a))}}}for(const[t,r]of(Object.entries||(e=>Object.keys(e).map((t=>[t,e[t]]))))(c)){const s=typeof a==="function"&&a(t)||i(t);for(const t of r){deep(e,t,n(s))}}o==null||o(e,p,(t=>{u.forEach((r=>deep(e,r,t(deep(e,r)))))}))}const o=Object.create(null);function loadHelper(e){if(!o[e]){const t=a.default[e];if(!t){throw Object.assign(new ReferenceError(`Unknown helper ${e}`),{code:"BABEL_HELPER_UNKNOWN",helper:e})}o[e]={minVersion:t.minVersion,build(e,r,s,a){const n=t.ast();permuteHelperAST(n,t.metadata,r,s,e,a);return{nodes:n.body,globals:t.metadata.globals}},getDependencies(){return Object.keys(t.metadata.dependencies)}}}return o[e]}function get(e,t,r,s,a){{if(typeof r==="object"){const e=r;if((e==null?void 0:e.type)==="Identifier"){r=e.name}else{r=undefined}}}return loadHelper(e).build(t,r,s,a)}function minVersion(e){return loadHelper(e).minVersion}function getDependencies(e){return loadHelper(e).getDependencies()}function isInternal(e){var t;return(t=a.default[e])==null?void 0:t.metadata.internal}{t.ensure=e=>{loadHelper(e)}}const l=t.list=Object.keys(a.default).map((e=>e.replace(/^_/,"")));var c=t["default"]=get},64:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;r[s]=e[s]}return r}class Position{constructor(e,t,r){this.line=void 0;this.column=void 0;this.index=void 0;this.line=e;this.column=t;this.index=r}}class SourceLocation{constructor(e,t){this.start=void 0;this.end=void 0;this.filename=void 0;this.identifierName=void 0;this.start=e;this.end=t}}function createPositionWithColumnOffset(e,t){const{line:r,column:s,index:a}=e;return new Position(r,s+t,a+t)}const r="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var s={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:r},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:r}};const a={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"};const toNodeDescription=e=>e.type==="UpdateExpression"?a.UpdateExpression[`${e.prefix}`]:a[e.type];var n={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- 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.\n- 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.",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 ${toNodeDescription(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${toNodeDescription(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${toNodeDescription(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((e=>JSON.stringify(e))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((e=>JSON.stringify(e))).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' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};var i={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."};var o={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`};const l=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var c=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const u=["message"];function defineHidden(e,t,r){Object.defineProperty(e,t,{enumerable:false,configurable:true,value:r})}function toParseErrorConstructor({toMessage:e,code:t,reasonCode:r,syntaxPlugin:s}){const a=r==="MissingPlugin"||r==="MissingOneOfPlugins";{const e={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(e[r]){r=e[r]}}return function constructor(n,i){const o=new SyntaxError;o.code=t;o.reasonCode=r;o.loc=n;o.pos=n.index;o.syntaxPlugin=s;if(a){o.missingPlugin=i.missingPlugin}defineHidden(o,"clone",(function clone(e={}){var t;const{line:r,column:s,index:a}=(t=e.loc)!=null?t:n;return constructor(new Position(r,s,a),Object.assign({},i,e.details))}));defineHidden(o,"details",i);Object.defineProperty(o,"message",{configurable:true,get(){const t=`${e(i)} (${n.line}:${n.column})`;this.message=t;return t},set(e){Object.defineProperty(this,"message",{value:e,writable:true})}});return o}}function ParseErrorEnum(e,t){if(Array.isArray(e)){return t=>ParseErrorEnum(t,e[0])}const r={};for(const s of Object.keys(e)){const a=e[s];const n=typeof a==="string"?{message:()=>a}:typeof a==="function"?{message:a}:a,{message:i}=n,o=_objectWithoutPropertiesLoose(n,u);const l=typeof i==="string"?()=>i:i;r[s]=toParseErrorConstructor(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}const p=Object.assign({},ParseErrorEnum(s),ParseErrorEnum(n),ParseErrorEnum(i),ParseErrorEnum(o),ParseErrorEnum`pipelineOperator`(c));function createDefaultOptions(){return{sourceType:"script",sourceFilename:undefined,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:false,allowReturnOutsideFunction:false,allowNewTargetOutsideFunction:false,allowImportExportEverywhere:false,allowSuperOutsideMethod:false,allowUndeclaredExports:false,allowYieldOutsideFunction:false,plugins:[],strictMode:null,ranges:false,tokens:false,createImportExpressions:false,createParenthesizedExpressions:false,errorRecovery:false,attachComment:true,annexB:true}}function getOptions(e){const t=createDefaultOptions();if(e==null){return t}if(e.annexB!=null&&e.annexB!==false){throw new Error("The `annexB` option can only be set to `false`.")}for(const r of Object.keys(t)){if(e[r]!=null)t[r]=e[r]}if(t.startLine===1){if(e.startIndex==null&&t.startColumn>0){t.startIndex=t.startColumn}else if(e.startColumn==null&&t.startIndex>0){t.startColumn=t.startIndex}}else if(e.startColumn==null||e.startIndex==null){if(e.startIndex!=null){throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.")}}return t}const{defineProperty:d}=Object;const toUnenumerable=(e,t)=>{if(e){d(e,t,{enumerable:false,value:e[t]})}};function toESTreeLocation(e){toUnenumerable(e.loc.start,"index");toUnenumerable(e.loc.end,"index");return e}var estree=e=>class ESTreeParserMixin extends e{parse(){const e=toESTreeLocation(super.parse());if(this.optionFlags&256){e.tokens=e.tokens.map(toESTreeLocation)}return e}parseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch(e){}const s=this.estreeParseLiteral(r);s.regex={pattern:e,flags:t};return s}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const r=this.estreeParseLiteral(t);r.bigint=String(r.value||e);return r}parseDecimalLiteral(e){const t=null;const r=this.estreeParseLiteral(t);r.decimal=String(r.value||e);return r}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){const r=this.startNodeAtNode(e);r.expression=e;return this.finishNodeAt(r,"ChainExpression",t)}directiveToStmt(e){const t=e.value;delete e.value;this.castNodeTo(t,"Literal");t.raw=t.extra.raw;t.value=t.extra.expressionValue;const r=this.castNodeTo(e,"ExpressionStatement");r.expression=t;r.directive=t.extra.rawValue;delete t.extra;return r}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){const{start:t,end:r,loc:s,range:a,raw:n,value:i}=e;const o=Object.create(e.constructor.prototype);o.type="Literal";o.start=t;o.end=r;o.loc=s;o.range=a;o.raw=n;o.value=i;return o}initFunction(e,t){super.initFunction(e,t);e.expression=false}checkDeclaration(e){if(e!=null&&this.isObjectProperty(e)){this.checkDeclaration(e.value)}else{super.checkDeclaration(e)}}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value==="string"&&!((t=e.expression.extra)!=null&&t.parenthesized)}parseBlockBody(e,t,r,s,a){super.parseBlockBody(e,t,r,s,a);const n=e.directives.map((e=>this.directiveToStmt(e)));e.body=n.concat(e.body);delete e.directives}parsePrivateName(){const e=super.parsePrivateName();{if(!this.getPluginOption("estree","classFeatures")){return e}}return this.convertPrivateNameToPrivateIdentifier(e)}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);e=e;delete e.id;e.name=t;return this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){{if(!this.getPluginOption("estree","classFeatures")){return super.isPrivateName(e)}}return e.type==="PrivateIdentifier"}getPrivateNameSV(e){{if(!this.getPluginOption("estree","classFeatures")){return super.getPrivateNameSV(e)}}return e.name}parseLiteral(e,t){const r=super.parseLiteral(e,t);r.raw=r.extra.raw;delete r.extra;return r}parseFunctionBody(e,t,r=false){super.parseFunctionBody(e,t,r);e.expression=e.body.type!=="BlockStatement"}parseMethod(e,t,r,s,a,n,i=false){let o=this.startNode();o.kind=e.kind;o=super.parseMethod(o,t,r,s,a,n,i);delete o.kind;const{typeParameters:l}=e;if(l){delete e.typeParameters;o.typeParameters=l;this.resetStartLocationFromNode(o,l)}const c=this.castNodeTo(o,"FunctionExpression");e.value=c;if(n==="ClassPrivateMethod"){e.computed=false}if(n==="ObjectMethod"){if(e.kind==="method"){e.kind="init"}e.shorthand=false;return this.finishNode(e,"Property")}else{return this.finishNode(e,"MethodDefinition")}}nameIsConstructor(e){if(e.type==="Literal")return e.value==="constructor";return super.nameIsConstructor(e)}parseClassProperty(...e){const t=super.parseClassProperty(...e);{if(!this.getPluginOption("estree","classFeatures")){return t}}{this.castNodeTo(t,"PropertyDefinition")}return t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);{if(!this.getPluginOption("estree","classFeatures")){return t}}{this.castNodeTo(t,"PropertyDefinition")}t.computed=false;return t}parseClassAccessorProperty(e){const t=super.parseClassAccessorProperty(e);{if(!this.getPluginOption("estree","classFeatures")){return t}}if(t.abstract&&this.hasPlugin("typescript")){delete t.abstract;this.castNodeTo(t,"TSAbstractAccessorProperty")}else{this.castNodeTo(t,"AccessorProperty")}return t}parseObjectProperty(e,t,r,s){const a=super.parseObjectProperty(e,t,r,s);if(a){a.kind="init";this.castNodeTo(a,"Property")}return a}finishObjectProperty(e){e.kind="init";return this.finishNode(e,"Property")}isValidLVal(e,t,r){return e==="Property"?"value":super.isValidLVal(e,t,r)}isAssignable(e,t){if(e!=null&&this.isObjectProperty(e)){return this.isAssignable(e.value,t)}return super.isAssignable(e,t)}toAssignable(e,t=false){if(e!=null&&this.isObjectProperty(e)){const{key:r,value:s}=e;if(this.isPrivateName(r)){this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start)}this.toAssignable(s,t)}else{super.toAssignable(e,t)}}toAssignableObjectExpressionProp(e,t,r){if(e.type==="Property"&&(e.kind==="get"||e.kind==="set")){this.raise(p.PatternHasAccessor,e.key)}else if(e.type==="Property"&&e.method){this.raise(p.PatternHasMethod,e.key)}else{super.toAssignableObjectExpressionProp(e,t,r)}}finishCallExpression(e,t){const r=super.finishCallExpression(e,t);if(r.callee.type==="Import"){var s,a;this.castNodeTo(r,"ImportExpression");r.source=r.arguments[0];r.options=(s=r.arguments[1])!=null?s:null;r.attributes=(a=r.arguments[1])!=null?a:null;delete r.arguments;delete r.callee}else if(r.type==="OptionalCallExpression"){this.castNodeTo(r,"CallExpression")}else{r.optional=false}return r}toReferencedArguments(e){if(e.type==="ImportExpression"){return}super.toReferencedArguments(e)}parseExport(e,t){const r=this.state.lastTokStartLoc;const s=super.parseExport(e,t);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":if(s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"){this.castNodeTo(s,"ExportAllDeclaration");s.exported=s.specifiers[0].exported;delete s.specifiers}case"ExportDefaultDeclaration":{var a;const{declaration:e}=s;if((e==null?void 0:e.type)==="ClassDeclaration"&&((a=e.decorators)==null?void 0:a.length)>0&&e.start===s.start){this.resetStartLocation(s,r)}}break}return s}stopParseSubscript(e,t){const r=super.stopParseSubscript(e,t);if(t.optionalChainMember){return this.estreeParseChainExpression(r,e.loc.end)}return r}parseMember(e,t,r,s,a){const n=super.parseMember(e,t,r,s,a);if(n.type==="OptionalMemberExpression"){this.castNodeTo(n,"MemberExpression")}else{n.optional=false}return n}isOptionalMemberExpression(e){if(e.type==="ChainExpression"){return e.expression.type==="MemberExpression"}return super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){if(e.type==="ChainExpression"){e=e.expression}return super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}castNodeTo(e,t){const r=super.castNodeTo(e,t);this.fillOptionalPropertiesForTSESLint(r);return r}cloneIdentifier(e){const t=super.cloneIdentifier(e);this.fillOptionalPropertiesForTSESLint(t);return t}cloneStringLiteral(e){if(e.type==="Literal"){return this.cloneEstreeStringLiteral(e)}return super.cloneStringLiteral(e)}finishNodeAt(e,t,r){return toESTreeLocation(super.finishNodeAt(e,t,r))}finishNode(e,t){const r=super.finishNode(e,t);this.fillOptionalPropertiesForTSESLint(r);return r}resetStartLocation(e,t){super.resetStartLocation(e,t);toESTreeLocation(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t);toESTreeLocation(e)}};class TokContext{constructor(e,t){this.token=void 0;this.preserveSpace=void 0;this.token=e;this.preserveSpace=!!t}}const f={brace:new TokContext("{"),j_oTag:new TokContext("<tag"),j_cTag:new TokContext("</tag"),j_expr:new TokContext("<tag>...</tag>",true)};{f.template=new TokContext("`",true)}const y=true;const h=true;const g=true;const b=true;const x=true;const v=true;class ExportedTokenType{constructor(e,t={}){this.label=void 0;this.keyword=void 0;this.beforeExpr=void 0;this.startsExpr=void 0;this.rightAssociative=void 0;this.isLoop=void 0;this.isAssign=void 0;this.prefix=void 0;this.postfix=void 0;this.binop=void 0;this.label=e;this.keyword=t.keyword;this.beforeExpr=!!t.beforeExpr;this.startsExpr=!!t.startsExpr;this.rightAssociative=!!t.rightAssociative;this.isLoop=!!t.isLoop;this.isAssign=!!t.isAssign;this.prefix=!!t.prefix;this.postfix=!!t.postfix;this.binop=t.binop!=null?t.binop:null;{this.updateContext=null}}}const E=new Map;function createKeyword(e,t={}){t.keyword=e;const r=createToken(e,t);E.set(e,r);return r}function createBinop(e,t){return createToken(e,{beforeExpr:y,binop:t})}let S=-1;const T=[];const j=[];const w=[];const P=[];const C=[];const A=[];function createToken(e,t={}){var r,s,a,n;++S;j.push(e);w.push((r=t.binop)!=null?r:-1);P.push((s=t.beforeExpr)!=null?s:false);C.push((a=t.startsExpr)!=null?a:false);A.push((n=t.prefix)!=null?n:false);T.push(new ExportedTokenType(e,t));return S}function createKeywordLike(e,t={}){var r,s,a,n;++S;E.set(e,S);j.push(e);w.push((r=t.binop)!=null?r:-1);P.push((s=t.beforeExpr)!=null?s:false);C.push((a=t.startsExpr)!=null?a:false);A.push((n=t.prefix)!=null?n:false);T.push(new ExportedTokenType("name",t));return S}const D={bracketL:createToken("[",{beforeExpr:y,startsExpr:h}),bracketHashL:createToken("#[",{beforeExpr:y,startsExpr:h}),bracketBarL:createToken("[|",{beforeExpr:y,startsExpr:h}),bracketR:createToken("]"),bracketBarR:createToken("|]"),braceL:createToken("{",{beforeExpr:y,startsExpr:h}),braceBarL:createToken("{|",{beforeExpr:y,startsExpr:h}),braceHashL:createToken("#{",{beforeExpr:y,startsExpr:h}),braceR:createToken("}"),braceBarR:createToken("|}"),parenL:createToken("(",{beforeExpr:y,startsExpr:h}),parenR:createToken(")"),comma:createToken(",",{beforeExpr:y}),semi:createToken(";",{beforeExpr:y}),colon:createToken(":",{beforeExpr:y}),doubleColon:createToken("::",{beforeExpr:y}),dot:createToken("."),question:createToken("?",{beforeExpr:y}),questionDot:createToken("?."),arrow:createToken("=>",{beforeExpr:y}),template:createToken("template"),ellipsis:createToken("...",{beforeExpr:y}),backQuote:createToken("`",{startsExpr:h}),dollarBraceL:createToken("${",{beforeExpr:y,startsExpr:h}),templateTail:createToken("...`",{startsExpr:h}),templateNonTail:createToken("...${",{beforeExpr:y,startsExpr:h}),at:createToken("@"),hash:createToken("#",{startsExpr:h}),interpreterDirective:createToken("#!..."),eq:createToken("=",{beforeExpr:y,isAssign:b}),assign:createToken("_=",{beforeExpr:y,isAssign:b}),slashAssign:createToken("_=",{beforeExpr:y,isAssign:b}),xorAssign:createToken("_=",{beforeExpr:y,isAssign:b}),moduloAssign:createToken("_=",{beforeExpr:y,isAssign:b}),incDec:createToken("++/--",{prefix:x,postfix:v,startsExpr:h}),bang:createToken("!",{beforeExpr:y,prefix:x,startsExpr:h}),tilde:createToken("~",{beforeExpr:y,prefix:x,startsExpr:h}),doubleCaret:createToken("^^",{startsExpr:h}),doubleAt:createToken("@@",{startsExpr:h}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),lt:createBinop("</>/<=/>=",7),gt:createBinop("</>/<=/>=",7),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),bitShiftL:createBinop("<</>>/>>>",8),bitShiftR:createBinop("<</>>/>>>",8),plusMin:createToken("+/-",{beforeExpr:y,binop:9,prefix:x,startsExpr:h}),modulo:createToken("%",{binop:10,startsExpr:h}),star:createToken("*",{binop:10}),slash:createBinop("/",10),exponent:createToken("**",{beforeExpr:y,binop:11,rightAssociative:true}),_in:createKeyword("in",{beforeExpr:y,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:y,binop:7}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:y}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:y}),_else:createKeyword("else",{beforeExpr:y}),_finally:createKeyword("finally"),_function:createKeyword("function",{startsExpr:h}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:y}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:y,prefix:x,startsExpr:h}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:y,startsExpr:h}),_this:createKeyword("this",{startsExpr:h}),_super:createKeyword("super",{startsExpr:h}),_class:createKeyword("class",{startsExpr:h}),_extends:createKeyword("extends",{beforeExpr:y}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:h}),_null:createKeyword("null",{startsExpr:h}),_true:createKeyword("true",{startsExpr:h}),_false:createKeyword("false",{startsExpr:h}),_typeof:createKeyword("typeof",{beforeExpr:y,prefix:x,startsExpr:h}),_void:createKeyword("void",{beforeExpr:y,prefix:x,startsExpr:h}),_delete:createKeyword("delete",{beforeExpr:y,prefix:x,startsExpr:h}),_do:createKeyword("do",{isLoop:g,beforeExpr:y}),_for:createKeyword("for",{isLoop:g}),_while:createKeyword("while",{isLoop:g}),_as:createKeywordLike("as",{startsExpr:h}),_assert:createKeywordLike("assert",{startsExpr:h}),_async:createKeywordLike("async",{startsExpr:h}),_await:createKeywordLike("await",{startsExpr:h}),_defer:createKeywordLike("defer",{startsExpr:h}),_from:createKeywordLike("from",{startsExpr:h}),_get:createKeywordLike("get",{startsExpr:h}),_let:createKeywordLike("let",{startsExpr:h}),_meta:createKeywordLike("meta",{startsExpr:h}),_of:createKeywordLike("of",{startsExpr:h}),_sent:createKeywordLike("sent",{startsExpr:h}),_set:createKeywordLike("set",{startsExpr:h}),_source:createKeywordLike("source",{startsExpr:h}),_static:createKeywordLike("static",{startsExpr:h}),_using:createKeywordLike("using",{startsExpr:h}),_yield:createKeywordLike("yield",{startsExpr:h}),_asserts:createKeywordLike("asserts",{startsExpr:h}),_checks:createKeywordLike("checks",{startsExpr:h}),_exports:createKeywordLike("exports",{startsExpr:h}),_global:createKeywordLike("global",{startsExpr:h}),_implements:createKeywordLike("implements",{startsExpr:h}),_intrinsic:createKeywordLike("intrinsic",{startsExpr:h}),_infer:createKeywordLike("infer",{startsExpr:h}),_is:createKeywordLike("is",{startsExpr:h}),_mixins:createKeywordLike("mixins",{startsExpr:h}),_proto:createKeywordLike("proto",{startsExpr:h}),_require:createKeywordLike("require",{startsExpr:h}),_satisfies:createKeywordLike("satisfies",{startsExpr:h}),_keyof:createKeywordLike("keyof",{startsExpr:h}),_readonly:createKeywordLike("readonly",{startsExpr:h}),_unique:createKeywordLike("unique",{startsExpr:h}),_abstract:createKeywordLike("abstract",{startsExpr:h}),_declare:createKeywordLike("declare",{startsExpr:h}),_enum:createKeywordLike("enum",{startsExpr:h}),_module:createKeywordLike("module",{startsExpr:h}),_namespace:createKeywordLike("namespace",{startsExpr:h}),_interface:createKeywordLike("interface",{startsExpr:h}),_type:createKeywordLike("type",{startsExpr:h}),_opaque:createKeywordLike("opaque",{startsExpr:h}),name:createToken("name",{startsExpr:h}),placeholder:createToken("%%",{startsExpr:true}),string:createToken("string",{startsExpr:h}),num:createToken("num",{startsExpr:h}),bigint:createToken("bigint",{startsExpr:h}),decimal:createToken("decimal",{startsExpr:h}),regexp:createToken("regexp",{startsExpr:h}),privateName:createToken("#name",{startsExpr:h}),eof:createToken("eof"),jsxName:createToken("jsxName"),jsxText:createToken("jsxText",{beforeExpr:true}),jsxTagStart:createToken("jsxTagStart",{startsExpr:true}),jsxTagEnd:createToken("jsxTagEnd")};function tokenIsIdentifier(e){return e>=93&&e<=133}function tokenKeywordOrIdentifierIsKeyword(e){return e<=92}function tokenIsKeywordOrIdentifier(e){return e>=58&&e<=133}function tokenIsLiteralPropertyName(e){return e>=58&&e<=137}function tokenComesBeforeExpression(e){return P[e]}function tokenCanStartExpression(e){return C[e]}function tokenIsAssignment(e){return e>=29&&e<=33}function tokenIsFlowInterfaceOrTypeOrOpaque(e){return e>=129&&e<=131}function tokenIsLoop(e){return e>=90&&e<=92}function tokenIsKeyword(e){return e>=58&&e<=92}function tokenIsOperator(e){return e>=39&&e<=59}function tokenIsPostfix(e){return e===34}function tokenIsPrefix(e){return A[e]}function tokenIsTSTypeOperator(e){return e>=121&&e<=123}function tokenIsTSDeclarationStart(e){return e>=124&&e<=130}function tokenLabelName(e){return j[e]}function tokenOperatorPrecedence(e){return w[e]}function tokenIsRightAssociative(e){return e===57}function tokenIsTemplate(e){return e>=24&&e<=25}function getExportedToken(e){return T[e]}{T[8].updateContext=e=>{e.pop()};T[5].updateContext=T[7].updateContext=T[23].updateContext=e=>{e.push(f.brace)};T[22].updateContext=e=>{if(e[e.length-1]===f.template){e.pop()}else{e.push(f.template)}};T[143].updateContext=e=>{e.push(f.j_expr,f.j_oTag)}}let k="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let I="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const _=new RegExp("["+k+"]");const O=new RegExp("["+k+I+"]");k=I=null;const N=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const F=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let s=0,a=t.length;s<a;s+=2){r+=t[s];if(r>e)return false;r+=t[s+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&_.test(String.fromCharCode(e))}return isInAstralSet(e,N)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&O.test(String.fromCharCode(e))}return isInAstralSet(e,N)||isInAstralSet(e,F)}const B={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const M=new Set(B.keyword);const L=new Set(B.strict);const R=new Set(B.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||L.has(e)}function isStrictBindOnlyReservedWord(e){return R.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return M.has(e)}function isIteratorStart(e,t,r){return e===64&&t===64&&isIdentifierStart(r)}const U=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function canBeReservedWord(e){return U.has(e)}class Scope{constructor(e){this.flags=0;this.names=new Map;this.firstLexicalName="";this.flags=e}}class ScopeHandler{constructor(e,t){this.parser=void 0;this.scopeStack=[];this.inModule=void 0;this.undefinedExports=new Map;this.parser=e;this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&128){return true}if(t&(643|64)){return false}}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Scope(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){const e=this.scopeStack.pop();return e.flags}treatFunctionsAsVarInScope(e){return!!(e.flags&(2|128)||!this.parser.inModule&&e.flags&1)}declareName(e,t,r){let s=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(s,e,t,r);let a=s.names.get(e)||0;if(t&16){a=a|4}else{if(!s.firstLexicalName){s.firstLexicalName=e}a=a|2}s.names.set(e,a);if(t&8){this.maybeExportDefined(s,e)}}else if(t&4){for(let a=this.scopeStack.length-1;a>=0;--a){s=this.scopeStack[a];this.checkRedeclarationInScope(s,e,t,r);s.names.set(e,(s.names.get(e)||0)|1);this.maybeExportDefined(s,e);if(s.flags&643)break}}if(this.parser.inModule&&s.flags&1){this.undefinedExports.delete(e)}}maybeExportDefined(e,t){if(this.parser.inModule&&e.flags&1){this.undefinedExports.delete(t)}}checkRedeclarationInScope(e,t,r,s){if(this.isRedeclaredInScope(e,t,r)){this.parser.raise(p.VarRedeclaration,s,{identifierName:t})}}isRedeclaredInScope(e,t,r){if(!(r&1))return false;if(r&8){return e.names.has(t)}const s=e.names.get(t);if(r&16){return(s&2)>0||!this.treatFunctionsAsVarInScope(e)&&(s&1)>0}return(s&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(s&4)>0}checkLocalExport(e){const{name:t}=e;const r=this.scopeStack[0];if(!r.names.has(t)){this.undefinedExports.set(t,e.loc.start)}}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&643){return t}}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&(643|64)&&!(t&4)){return t}}}}class FlowScope extends Scope{constructor(...e){super(...e);this.declareFunctions=new Set}}class FlowScopeHandler extends ScopeHandler{createScope(e){return new FlowScope(e)}declareName(e,t,r){const s=this.currentScope();if(t&2048){this.checkRedeclarationInScope(s,e,t,r);this.maybeExportDefined(s,e);s.declareFunctions.add(e);return}super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return true;if(r&2048&&!e.declareFunctions.has(t)){const r=e.names.get(t);return(r&4)>0||(r&2)>0}return false}checkLocalExport(e){if(!this.scopeStack[0].declareFunctions.has(e.name)){super.checkLocalExport(e)}}}const q=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]);const V=ParseErrorEnum`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function isEsModuleType(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function hasTypeImportKind(e){return e.importKind==="type"||e.importKind==="typeof"}const W={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function partition(e,t){const r=[];const s=[];for(let a=0;a<e.length;a++){(t(e[a],a,e)?r:s).push(e[a])}return[r,s]}const K=/\*?\s*@((?:no)?flow)\b/;var flow=e=>class FlowParserMixin extends e{constructor(...e){super(...e);this.flowPragma=undefined}getScopeHandler(){return FlowScopeHandler}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,t){if(e!==134&&e!==13&&e!==28){if(this.flowPragma===undefined){this.flowPragma=null}}super.finishToken(e,t)}addComment(e){if(this.flowPragma===undefined){const t=K.exec(e.value);if(!t);else if(t[1]==="flow"){this.flowPragma="flow"}else if(t[1]==="noflow"){this.flowPragma="noflow"}else{throw new Error("Unexpected flow pragma")}}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=true;this.expect(e||14);const r=this.flowParseType();this.state.inType=t;return r}flowParsePredicate(){const e=this.startNode();const t=this.state.startLoc;this.next();this.expectContextual(110);if(this.state.lastTokStartLoc.index>t.index+1){this.raise(V.UnexpectedSpaceBetweenModuloChecks,t)}if(this.eat(10)){e.value=super.parseExpression();this.expect(11);return this.finishNode(e,"DeclaredPredicate")}else{return this.finishNode(e,"InferredPredicate")}}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=true;this.expect(14);let t=null;let r=null;if(this.match(54)){this.state.inType=e;r=this.flowParsePredicate()}else{t=this.flowParseType();this.state.inType=e;if(this.match(54)){r=this.flowParsePredicate()}}return[t,r]}flowParseDeclareClass(e){this.next();this.flowParseInterfaceish(e,true);return this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier();const r=this.startNode();const s=this.startNode();if(this.match(47)){r.typeParameters=this.flowParseTypeParameterDeclaration()}else{r.typeParameters=null}this.expect(10);const a=this.flowParseFunctionTypeParams();r.params=a.params;r.rest=a.rest;r.this=a._this;this.expect(11);[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser();s.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation");t.typeAnnotation=this.finishNode(s,"TypeAnnotation");this.resetEndLocation(t);this.semicolon();this.scope.declareName(e.id.name,2048,e.id.loc.start);return this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(80)){return this.flowParseDeclareClass(e)}else if(this.match(68)){return this.flowParseDeclareFunction(e)}else if(this.match(74)){return this.flowParseDeclareVariable(e)}else if(this.eatContextual(127)){if(this.match(16)){return this.flowParseDeclareModuleExports(e)}else{if(t){this.raise(V.NestedDeclareModule,this.state.lastTokStartLoc)}return this.flowParseDeclareModule(e)}}else if(this.isContextual(130)){return this.flowParseDeclareTypeAlias(e)}else if(this.isContextual(131)){return this.flowParseDeclareOpaqueType(e)}else if(this.isContextual(129)){return this.flowParseDeclareInterface(e)}else if(this.match(82)){return this.flowParseDeclareExportDeclaration(e,t)}else{this.unexpected()}}flowParseDeclareVariable(e){this.next();e.id=this.flowParseTypeAnnotatableIdentifier(true);this.scope.declareName(e.id.name,5,e.id.loc.start);this.semicolon();return this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0);if(this.match(134)){e.id=super.parseExprAtom()}else{e.id=this.parseIdentifier()}const t=e.body=this.startNode();const r=t.body=[];this.expect(5);while(!this.match(8)){let e=this.startNode();if(this.match(83)){this.next();if(!this.isContextual(130)&&!this.match(87)){this.raise(V.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc)}super.parseImport(e)}else{this.expectContextual(125,V.UnsupportedStatementInDeclareModule);e=this.flowParseDeclare(e,true)}r.push(e)}this.scope.exit();this.expect(8);this.finishNode(t,"BlockStatement");let s=null;let a=false;r.forEach((e=>{if(isEsModuleType(e)){if(s==="CommonJS"){this.raise(V.AmbiguousDeclareModuleKind,e)}s="ES"}else if(e.type==="DeclareModuleExports"){if(a){this.raise(V.DuplicateDeclareModuleExports,e)}if(s==="ES"){this.raise(V.AmbiguousDeclareModuleKind,e)}s="CommonJS";a=true}}));e.kind=s||"CommonJS";return this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){this.expect(82);if(this.eat(65)){if(this.match(68)||this.match(80)){e.declaration=this.flowParseDeclare(this.startNode())}else{e.declaration=this.flowParseType();this.semicolon()}e.default=true;return this.finishNode(e,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(V.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:W[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)){e.declaration=this.flowParseDeclare(this.startNode());e.default=false;return this.finishNode(e,"DeclareExportDeclaration")}else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)){e=this.parseExport(e,null);if(e.type==="ExportNamedDeclaration"){e.default=false;delete e.exportKind;return this.castNodeTo(e,"DeclareExportDeclaration")}else{return this.castNodeTo(e,"DeclareExportAllDeclaration")}}}this.unexpected()}flowParseDeclareModuleExports(e){this.next();this.expectContextual(111);e.typeAnnotation=this.flowParseTypeAnnotation();this.semicolon();return this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);this.castNodeTo(t,"DeclareTypeAlias");return t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,true);this.castNodeTo(t,"DeclareOpaqueType");return t}flowParseDeclareInterface(e){this.next();this.flowParseInterfaceish(e,false);return this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){e.id=this.flowParseRestrictedIdentifier(!t,true);this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.extends=[];if(this.eat(81)){do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12))}if(t){e.implements=[];e.mixins=[];if(this.eatContextual(117)){do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12))}if(this.eatContextual(113)){do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}}e.body=this.flowParseObjectType({allowStatic:t,allowExact:false,allowSpread:false,allowProto:t,allowInexact:false})}flowParseInterfaceExtends(){const e=this.startNode();e.id=this.flowParseQualifiedTypeIdentifier();if(this.match(47)){e.typeParameters=this.flowParseTypeParameterInstantiation()}else{e.typeParameters=null}return this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){this.flowParseInterfaceish(e,false);return this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){if(e==="_"){this.raise(V.UnexpectedReservedUnderscore,this.state.startLoc)}}checkReservedType(e,t,r){if(!q.has(e))return;this.raise(r?V.AssignReservedType:V.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){this.checkReservedType(this.state.value,this.state.startLoc,t);return this.parseIdentifier(e)}flowParseTypeAlias(e){e.id=this.flowParseRestrictedIdentifier(false,true);this.scope.declareName(e.id.name,8201,e.id.loc.start);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.right=this.flowParseTypeInitialiser(29);this.semicolon();return this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){this.expectContextual(130);e.id=this.flowParseRestrictedIdentifier(true,true);this.scope.declareName(e.id.name,8201,e.id.loc.start);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.supertype=null;if(this.match(14)){e.supertype=this.flowParseTypeInitialiser(14)}e.impltype=null;if(!t){e.impltype=this.flowParseTypeInitialiser(29)}this.semicolon();return this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=false){const t=this.state.startLoc;const r=this.startNode();const s=this.flowParseVariance();const a=this.flowParseTypeAnnotatableIdentifier();r.name=a.name;r.variance=s;r.bound=a.typeAnnotation;if(this.match(29)){this.eat(29);r.default=this.flowParseType()}else{if(e){this.raise(V.MissingTypeParamDefault,t)}}return this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType;const t=this.startNode();t.params=[];this.state.inType=true;if(this.match(47)||this.match(143)){this.next()}else{this.unexpected()}let r=false;do{const e=this.flowParseTypeParameter(r);t.params.push(e);if(e.default){r=true}if(!this.match(48)){this.expect(12)}}while(!this.match(48));this.expect(48);this.state.inType=e;return this.finishNode(t,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()!==f.brace){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else{return e()}}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()!==47)return;return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const e=this.startNode();const t=this.state.inType;this.state.inType=true;e.params=[];this.flowInTopLevelContext((()=>{this.expect(47);const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=false;while(!this.match(48)){e.params.push(this.flowParseType());if(!this.match(48)){this.expect(12)}}this.state.noAnonFunctionType=t}));this.state.inType=t;if(!this.state.inType&&this.curContext()===f.brace){this.reScan_lt_gt()}this.expect(48);return this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;const e=this.startNode();const t=this.state.inType;e.params=[];this.state.inType=true;this.expect(47);while(!this.match(48)){e.params.push(this.flowParseTypeOrImplicitInstantiation());if(!this.match(48)){this.expect(12)}}this.expect(48);this.state.inType=t;return this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();this.expectContextual(129);e.extends=[];if(this.eat(81)){do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:false,allowExact:false,allowSpread:false,allowProto:false,allowInexact:false});return this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(true)}flowParseObjectTypeIndexer(e,t,r){e.static=t;if(this.lookahead().type===14){e.id=this.flowParseObjectPropertyKey();e.key=this.flowParseTypeInitialiser()}else{e.id=null;e.key=this.flowParseType()}this.expect(3);e.value=this.flowParseTypeInitialiser();e.variance=r;return this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){e.static=t;e.id=this.flowParseObjectPropertyKey();this.expect(3);this.expect(3);if(this.match(47)||this.match(10)){e.method=true;e.optional=false;e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))}else{e.method=false;if(this.eat(17)){e.optional=true}e.value=this.flowParseTypeInitialiser()}return this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){e.params=[];e.rest=null;e.typeParameters=null;e.this=null;if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}this.expect(10);if(this.match(78)){e.this=this.flowParseFunctionTypeParam(true);e.this.name=null;if(!this.match(11)){this.expect(12)}}while(!this.match(11)&&!this.match(21)){e.params.push(this.flowParseFunctionTypeParam(false));if(!this.match(11)){this.expect(12)}}if(this.eat(21)){e.rest=this.flowParseFunctionTypeParam(false)}this.expect(11);e.returnType=this.flowParseTypeInitialiser();return this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const r=this.startNode();e.static=t;e.value=this.flowParseObjectTypeMethodish(r);return this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:r,allowProto:s,allowInexact:a}){const n=this.state.inType;this.state.inType=true;const i=this.startNode();i.callProperties=[];i.properties=[];i.indexers=[];i.internalSlots=[];let o;let l;let c=false;if(t&&this.match(6)){this.expect(6);o=9;l=true}else{this.expect(5);o=8;l=false}i.exact=l;while(!this.match(o)){let t=false;let n=null;let o=null;const u=this.startNode();if(s&&this.isContextual(118)){const t=this.lookahead();if(t.type!==14&&t.type!==17){this.next();n=this.state.startLoc;e=false}}if(e&&this.isContextual(106)){const e=this.lookahead();if(e.type!==14&&e.type!==17){this.next();t=true}}const p=this.flowParseVariance();if(this.eat(0)){if(n!=null){this.unexpected(n)}if(this.eat(0)){if(p){this.unexpected(p.loc.start)}i.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))}else{i.indexers.push(this.flowParseObjectTypeIndexer(u,t,p))}}else if(this.match(10)||this.match(47)){if(n!=null){this.unexpected(n)}if(p){this.unexpected(p.loc.start)}i.callProperties.push(this.flowParseObjectTypeCallProperty(u,t))}else{let e="init";if(this.isContextual(99)||this.isContextual(104)){const t=this.lookahead();if(tokenIsLiteralPropertyName(t.type)){e=this.state.value;this.next()}}const s=this.flowParseObjectTypeProperty(u,t,n,p,e,r,a!=null?a:!l);if(s===null){c=true;o=this.state.lastTokStartLoc}else{i.properties.push(s)}}this.flowObjectTypeSemicolon();if(o&&!this.match(8)&&!this.match(9)){this.raise(V.UnexpectedExplicitInexactInObject,o)}}this.expect(o);if(r){i.inexact=c}const u=this.finishNode(i,"ObjectTypeAnnotation");this.state.inType=n;return u}flowParseObjectTypeProperty(e,t,r,s,a,n,i){if(this.eat(21)){const t=this.match(12)||this.match(13)||this.match(8)||this.match(9);if(t){if(!n){this.raise(V.InexactInsideNonObject,this.state.lastTokStartLoc)}else if(!i){this.raise(V.InexactInsideExact,this.state.lastTokStartLoc)}if(s){this.raise(V.InexactVariance,s)}return null}if(!n){this.raise(V.UnexpectedSpreadType,this.state.lastTokStartLoc)}if(r!=null){this.unexpected(r)}if(s){this.raise(V.SpreadVariance,s)}e.argument=this.flowParseType();return this.finishNode(e,"ObjectTypeSpreadProperty")}else{e.key=this.flowParseObjectPropertyKey();e.static=t;e.proto=r!=null;e.kind=a;let i=false;if(this.match(47)||this.match(10)){e.method=true;if(r!=null){this.unexpected(r)}if(s){this.unexpected(s.loc.start)}e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start));if(a==="get"||a==="set"){this.flowCheckGetterSetterParams(e)}if(!n&&e.key.name==="constructor"&&e.value.this){this.raise(V.ThisParamBannedInConstructor,e.value.this)}}else{if(a!=="init")this.unexpected();e.method=false;if(this.eat(17)){i=true}e.value=this.flowParseTypeInitialiser();e.variance=s}e.optional=i;return this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t=e.kind==="get"?0:1;const r=e.value.params.length+(e.value.rest?1:0);if(e.value.this){this.raise(e.kind==="get"?V.GetterMayNotHaveThisParam:V.SetterMayNotHaveThisParam,e.value.this)}if(r!==t){this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,e)}if(e.kind==="set"&&e.value.rest){this.raise(p.BadSetterRestParameter,e)}}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)){this.unexpected()}}flowParseQualifiedTypeIdentifier(e,t){e!=null?e:e=this.state.startLoc;let r=t||this.flowParseRestrictedIdentifier(true);while(this.eat(16)){const t=this.startNodeAt(e);t.qualification=r;t.id=this.flowParseRestrictedIdentifier(true);r=this.finishNode(t,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t){const r=this.startNodeAt(e);r.typeParameters=null;r.id=this.flowParseQualifiedTypeIdentifier(e,t);if(this.match(47)){r.typeParameters=this.flowParseTypeParameterInstantiation()}return this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();this.expect(87);e.argument=this.flowParsePrimaryType();return this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();e.types=[];this.expect(0);while(this.state.pos<this.length&&!this.match(3)){e.types.push(this.flowParseType());if(this.match(3))break;this.expect(12)}this.expect(3);return this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null;let r=false;let s=null;const a=this.startNode();const n=this.lookahead();const i=this.state.type===78;if(n.type===14||n.type===17){if(i&&!e){this.raise(V.ThisParamMustBeFirst,a)}t=this.parseIdentifier(i);if(this.eat(17)){r=true;if(i){this.raise(V.ThisParamMayNotBeOptional,a)}}s=this.flowParseTypeInitialiser()}else{s=this.flowParseType()}a.name=t;a.optional=r;a.typeAnnotation=s;return this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);t.name=null;t.optional=false;t.typeAnnotation=e;return this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null;let r=null;if(this.match(78)){r=this.flowParseFunctionTypeParam(true);r.name=null;if(!this.match(11)){this.expect(12)}}while(!this.match(11)&&!this.match(21)){e.push(this.flowParseFunctionTypeParam(false));if(!this.match(11)){this.expect(12)}}if(this.eat(21)){t=this.flowParseFunctionTypeParam(false)}return{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:this.checkNotUnderscore(r.name);return this.flowParseGenericType(e,r)}}flowParsePrimaryType(){const e=this.state.startLoc;const t=this.startNode();let r;let s;let a=false;const n=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:false,allowExact:false,allowSpread:true,allowProto:false,allowInexact:true});case 6:return this.flowParseObjectType({allowStatic:false,allowExact:true,allowSpread:true,allowProto:false,allowInexact:false});case 0:this.state.noAnonFunctionType=false;s=this.flowParseTupleType();this.state.noAnonFunctionType=n;return s;case 47:{const e=this.startNode();e.typeParameters=this.flowParseTypeParameterDeclaration();this.expect(10);r=this.flowParseFunctionTypeParams();e.params=r.params;e.rest=r.rest;e.this=r._this;this.expect(11);this.expect(19);e.returnType=this.flowParseType();return this.finishNode(e,"FunctionTypeAnnotation")}case 10:{const e=this.startNode();this.next();if(!this.match(11)&&!this.match(21)){if(tokenIsIdentifier(this.state.type)||this.match(78)){const e=this.lookahead().type;a=e!==17&&e!==14}else{a=true}}if(a){this.state.noAnonFunctionType=false;s=this.flowParseType();this.state.noAnonFunctionType=n;if(this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19)){this.expect(11);return s}else{this.eat(12)}}if(s){r=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(s)])}else{r=this.flowParseFunctionTypeParams()}e.params=r.params;e.rest=r.rest;e.this=r._this;this.expect(11);this.expect(19);e.returnType=this.flowParseType();e.typeParameters=null;return this.finishNode(e,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:t.value=this.match(85);this.next();return this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){this.next();if(this.match(135)){return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t)}if(this.match(136)){return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t)}throw this.raise(V.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:this.next();return this.finishNode(t,"VoidTypeAnnotation");case 84:this.next();return this.finishNode(t,"NullLiteralTypeAnnotation");case 78:this.next();return this.finishNode(t,"ThisTypeAnnotation");case 55:this.next();return this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(tokenIsKeyword(this.state.type)){const e=tokenLabelName(this.state.type);this.next();return super.createIdentifier(t,e)}else if(tokenIsIdentifier(this.state.type)){if(this.isContextual(129)){return this.flowParseInterfaceType()}return this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType();let r=false;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){const s=this.startNodeAt(e);const a=this.eat(18);r=r||a;this.expect(0);if(!a&&this.match(3)){s.elementType=t;this.next();t=this.finishNode(s,"ArrayTypeAnnotation")}else{s.objectType=t;s.indexType=this.flowParseType();this.expect(3);if(r){s.optional=a;t=this.finishNode(s,"OptionalIndexedAccessType")}else{t=this.finishNode(s,"IndexedAccessType")}}}return t}flowParsePrefixType(){const e=this.startNode();if(this.eat(17)){e.typeAnnotation=this.flowParsePrefixType();return this.finishNode(e,"NullableTypeAnnotation")}else{return this.flowParsePostfixType()}}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);t.params=[this.reinterpretTypeAsFunctionTypeParam(e)];t.rest=null;t.this=null;t.returnType=this.flowParseType();t.typeParameters=null;return this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();e.types=[t];while(this.eat(45)){e.types.push(this.flowParseAnonFunctionWithoutParens())}return e.types.length===1?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();e.types=[t];while(this.eat(43)){e.types.push(this.flowParseIntersectionType())}return e.types.length===1?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=true;const t=this.flowParseUnionType();this.state.inType=e;return t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){const e=this.state.startLoc;const t=this.parseIdentifier();return this.flowParseGenericType(e,t)}else{return this.flowParseType()}}flowParseTypeAnnotation(){const e=this.startNode();e.typeAnnotation=this.flowParseTypeInitialiser();return this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();if(this.match(14)){t.typeAnnotation=this.flowParseTypeAnnotation();this.resetEndLocation(t)}return t}typeCastToParameter(e){e.expression.typeAnnotation=e.typeAnnotation;this.resetEndLocation(e.expression,e.typeAnnotation.loc.end);return e.expression}flowParseVariance(){let e=null;if(this.match(53)){e=this.startNode();if(this.state.value==="+"){e.kind="plus"}else{e.kind="minus"}this.next();return this.finishNode(e,"Variance")}return e}parseFunctionBody(e,t,r=false){if(t){this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,true,r)));return}super.parseFunctionBody(e,false,r)}parseFunctionBodyAndFinish(e,t,r=false){if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser();e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){const e=this.lookahead();if(tokenIsKeywordOrIdentifier(e.type)){const e=this.startNode();this.next();return this.flowParseInterface(e)}}else if(this.isContextual(126)){const e=this.startNode();this.next();return this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);if(this.flowPragma===undefined&&!this.isValidDirective(t)){this.flowPragma=null}return t}parseExpressionStatement(e,t,r){if(t.type==="Identifier"){if(t.name==="declare"){if(this.match(80)||tokenIsIdentifier(this.state.type)||this.match(68)||this.match(74)||this.match(82)){return this.flowParseDeclare(e)}}else if(tokenIsIdentifier(this.state.type)){if(t.name==="interface"){return this.flowParseInterface(e)}else if(t.name==="type"){return this.flowParseTypeAlias(e)}else if(t.name==="opaque"){return this.flowParseOpaqueType(e,false)}}}return super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){const{type:e}=this.state;if(e===126||tokenIsFlowInterfaceOrTypeOrOpaque(e)){return!this.state.containsEsc}return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;if(e===126||tokenIsFlowInterfaceOrTypeOrOpaque(e)){return this.state.containsEsc}return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const e=this.startNode();this.next();return this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41){this.setOptionalParametersError(r);return e}}this.expect(17);const s=this.state.clone();const a=this.state.noArrowAt;const n=this.startNodeAt(t);let{consequent:i,failed:o}=this.tryParseConditionalConsequent();let[l,c]=this.getArrowLikeExpressions(i);if(o||c.length>0){const e=[...a];if(c.length>0){this.state=s;this.state.noArrowAt=e;for(let t=0;t<c.length;t++){e.push(c[t].start)}({consequent:i,failed:o}=this.tryParseConditionalConsequent());[l,c]=this.getArrowLikeExpressions(i)}if(o&&l.length>1){this.raise(V.AmbiguousConditionalArrow,s.startLoc)}if(o&&l.length===1){this.state=s;e.push(l[0].start);this.state.noArrowAt=e;({consequent:i,failed:o}=this.tryParseConditionalConsequent())}}this.getArrowLikeExpressions(i,true);this.state.noArrowAt=a;this.expect(14);n.test=e;n.consequent=i;n.alternate=this.forwardNoArrowParamsConversionAt(n,(()=>this.parseMaybeAssign(undefined,undefined)));return this.finishNode(n,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn();const t=!this.match(14);this.state.noArrowParamsConversionAt.pop();return{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const r=[e];const s=[];while(r.length!==0){const e=r.pop();if(e.type==="ArrowFunctionExpression"&&e.body.type!=="BlockStatement"){if(e.typeParameters||!e.returnType){this.finishArrowValidation(e)}else{s.push(e)}r.push(e.body)}else if(e.type==="ConditionalExpression"){r.push(e.consequent);r.push(e.alternate)}}if(t){s.forEach((e=>this.finishArrowValidation(e)));return[s,[]]}return partition(s,(e=>e.params.every((e=>this.isAssignable(e,true)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,(t=e.extra)==null?void 0:t.trailingCommaLoc,false);this.scope.enter(2|4);super.checkParams(e,false,true);this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let r;if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){this.state.noArrowParamsConversionAt.push(this.state.start);r=t();this.state.noArrowParamsConversionAt.pop()}else{r=t()}return r}parseParenItem(e,t){const r=super.parseParenItem(e,t);if(this.eat(17)){r.optional=true;this.resetEndLocation(e)}if(this.match(14)){const e=this.startNodeAt(t);e.expression=r;e.typeAnnotation=this.flowParseTypeAnnotation();return this.finishNode(e,"TypeCastExpression")}return r}assertModuleNodeAllowed(e){if(e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"){return}super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();this.next();if(this.match(5)){e.specifiers=this.parseExportSpecifiers(true);super.parseExportFrom(e);return null}else{return this.flowParseTypeAlias(t)}}else if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();this.next();return this.flowParseOpaqueType(t,false)}else if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();this.next();return this.flowParseInterface(t)}else if(this.isContextual(126)){e.exportKind="value";const t=this.startNode();this.next();return this.flowParseEnumDeclaration(t)}else{return super.parseExportDeclaration(e)}}eatExportStar(e){if(super.eatExportStar(e))return true;if(this.isContextual(130)&&this.lookahead().type===55){e.exportKind="type";this.next();this.next();return true}return false}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state;const r=super.maybeParseExportNamespaceSpecifier(e);if(r&&e.exportKind==="type"){this.unexpected(t)}return r}parseClassId(e,t,r){super.parseClassId(e,t,r);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}}parseClassMember(e,t,r){const{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t)){return}t.declare=true}super.parseClassMember(e,t,r);if(t.declare){if(t.type!=="ClassProperty"&&t.type!=="ClassPrivateProperty"&&t.type!=="PropertyDefinition"){this.raise(V.DeclareClassElement,s)}else if(t.value){this.raise(V.DeclareClassFieldInitializer,t.value)}}}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){const e=super.readWord1();const t="@@"+e;if(!this.isIterator(e)||!this.state.inType){this.raise(p.InvalidIdentifier,this.state.curPosition(),{identifierName:t})}this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===123&&t===124){this.finishOp(6,2)}else if(this.state.inType&&(e===62||e===60)){this.finishOp(e===62?48:47,1)}else if(this.state.inType&&e===63){if(t===46){this.finishOp(18,2)}else{this.finishOp(17,1)}}else if(isIteratorStart(e,t,this.input.charCodeAt(this.state.pos+2))){this.state.pos+=2;this.readIterator()}else{super.getTokenFromCode(e)}}isAssignable(e,t){if(e.type==="TypeCastExpression"){return this.isAssignable(e.expression,t)}else{return super.isAssignable(e,t)}}toAssignable(e,t=false){if(!t&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"){e.left=this.typeCastToParameter(e.left)}super.toAssignable(e,t)}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){const r=e[t];if((r==null?void 0:r.type)==="TypeCastExpression"){e[t]=this.typeCastToParameter(r)}}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let s=0;s<e.length;s++){var r;const a=e[s];if(a&&a.type==="TypeCastExpression"&&!((r=a.extra)!=null&&r.parenthesized)&&(e.length>1||!t)){this.raise(V.TypeCastInPattern,a.typeAnnotation)}}return e}parseArrayLike(e,t,r,s){const a=super.parseArrayLike(e,t,r,s);if(t&&!this.state.maybeInArrowParameters){this.toReferencedList(a.elements)}return a}isValidLVal(e,t,r){return e==="TypeCastExpression"||super.isValidLVal(e,t,r)}parseClassProperty(e){if(this.match(14)){e.typeAnnotation=this.flowParseTypeAnnotation()}return super.parseClassProperty(e)}parseClassPrivateProperty(e){if(this.match(14)){e.typeAnnotation=this.flowParseTypeAnnotation()}return super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,s,a,n){if(t.variance){this.unexpected(t.variance.loc.start)}delete t.variance;if(this.match(47)){t.typeParameters=this.flowParseTypeParameterDeclaration()}super.pushClassMethod(e,t,r,s,a,n);if(t.params&&a){const e=t.params;if(e.length>0&&this.isThisParam(e[0])){this.raise(V.ThisParamBannedInConstructor,t)}}else if(t.type==="MethodDefinition"&&a&&t.value.params){const e=t.value.params;if(e.length>0&&this.isThisParam(e[0])){this.raise(V.ThisParamBannedInConstructor,t)}}}pushClassPrivateMethod(e,t,r,s){if(t.variance){this.unexpected(t.variance.loc.start)}delete t.variance;if(this.match(47)){t.typeParameters=this.flowParseTypeParameterDeclaration()}super.pushClassPrivateMethod(e,t,r,s)}parseClassSuper(e){super.parseClassSuper(e);if(e.superClass&&(this.match(47)||this.match(51))){{e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()}}if(this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(true);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterInstantiation()}else{e.typeParameters=null}t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const r=t[0];if(this.isThisParam(r)&&e.kind==="get"){this.raise(V.GetterMayNotHaveThisParam,r)}else if(this.isThisParam(r)){this.raise(V.SetterMayNotHaveThisParam,r)}}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,s,a,n,i){if(e.variance){this.unexpected(e.variance.loc.start)}delete e.variance;let o;if(this.match(47)&&!n){o=this.flowParseTypeParameterDeclaration();if(!this.match(10))this.unexpected()}const l=super.parseObjPropValue(e,t,r,s,a,n,i);if(o){(l.value||l).typeParameters=o}return l}parseFunctionParamType(e){if(this.eat(17)){if(e.type!=="Identifier"){this.raise(V.PatternIsOptional,e)}if(this.isThisParam(e)){this.raise(V.ThisParamMayNotBeOptional,e)}e.optional=true}if(this.match(14)){e.typeAnnotation=this.flowParseTypeAnnotation()}else if(this.isThisParam(e)){this.raise(V.ThisParamAnnotationRequired,e)}if(this.match(29)&&this.isThisParam(e)){this.raise(V.ThisParamNoDefault,e)}this.resetEndLocation(e);return e}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);if(r.type==="AssignmentPattern"&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start){this.raise(V.TypeBeforeInitializer,r.typeAnnotation)}return r}checkImportReflection(e){super.checkImportReflection(e);if(e.module&&e.importKind!=="value"){this.raise(V.ImportReflectionHasImportType,e.specifiers[0].loc.start)}}parseImportSpecifierLocal(e,t,r){t.local=hasTypeImportKind(e)?this.flowParseRestrictedIdentifier(true,true):this.parseIdentifier();e.specifiers.push(this.finishImportSpecifier(t,r))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return true;if(this.isContextual(130)){if(!e)return true;const t=this.lookaheadCharCode();return t===123||t===42}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,s){super.applyImportPhase(e,t,r,s);if(t){if(!r&&this.match(65)){return}e.exportKind=r==="type"?r:"value"}else{if(r==="type"&&this.match(55))this.unexpected();e.importKind=r==="type"||r==="typeof"?r:"value"}}parseImportSpecifier(e,t,r,s,a){const n=e.imported;let i=null;if(n.type==="Identifier"){if(n.name==="type"){i="type"}else if(n.name==="typeof"){i="typeof"}}let o=false;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(true);if(i!==null&&!tokenIsKeywordOrIdentifier(this.state.type)){e.imported=t;e.importKind=i;e.local=this.cloneIdentifier(t)}else{e.imported=n;e.importKind=null;e.local=this.parseIdentifier()}}else{if(i!==null&&tokenIsKeywordOrIdentifier(this.state.type)){e.imported=this.parseIdentifier(true);e.importKind=i}else{if(t){throw this.raise(p.ImportBindingIsString,e,{importName:n.value})}e.imported=n;e.importKind=null}if(this.eatContextual(93)){e.local=this.parseIdentifier()}else{o=true;e.local=this.cloneIdentifier(e.imported)}}const l=hasTypeImportKind(e);if(r&&l){this.raise(V.ImportTypeShorthandOnlyInPureImport,e)}if(r||l){this.checkReservedType(e.local.name,e.local.loc.start,true)}if(o&&!r&&!l){this.checkReservedWord(e.local.name,e.loc.start,true,true)}return this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(true);default:return super.parseBindingAtom()}}parseFunctionParams(e,t){const r=e.kind;if(r!=="get"&&r!=="set"&&this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t);if(this.match(14)){e.id.typeAnnotation=this.flowParseTypeAnnotation();this.resetEndLocation(e.id)}}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=true;e.returnType=this.flowParseTypeAnnotation();this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var r;let s=null;let a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){s=this.state.clone();a=this.tryParse((()=>super.parseMaybeAssign(e,t)),s);if(!a.error)return a.node;const{context:r}=this.state;const n=r[r.length-1];if(n===f.j_oTag||n===f.j_expr){r.pop()}}if((r=a)!=null&&r.error||this.match(47)){var n,i;s=s||this.state.clone();let r;const o=this.tryParse((s=>{var a;r=this.flowParseTypeParameterDeclaration();const n=this.forwardNoArrowParamsConversionAt(r,(()=>{const s=super.parseMaybeAssign(e,t);this.resetStartLocationFromNode(s,r);return s}));if((a=n.extra)!=null&&a.parenthesized)s();const i=this.maybeUnwrapTypeCastExpression(n);if(i.type!=="ArrowFunctionExpression")s();i.typeParameters=r;this.resetStartLocationFromNode(i,r);return n}),s);let l=null;if(o.node&&this.maybeUnwrapTypeCastExpression(o.node).type==="ArrowFunctionExpression"){if(!o.error&&!o.aborted){if(o.node.async){this.raise(V.UnexpectedTypeParameterBeforeAsyncArrowFunction,r)}return o.node}l=o.node}if((n=a)!=null&&n.node){this.state=a.failState;return a.node}if(l){this.state=o.failState;return l}if((i=a)!=null&&i.thrown)throw a.error;if(o.thrown)throw o.error;throw this.raise(V.UnexpectedTokenAfterTypeParameter,r)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=true;const r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser();this.state.noAnonFunctionType=t;if(this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return r}));if(t.thrown)return null;if(t.error)this.state=t.failState;e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){e.params=t}else{super.setArrowFunctionParameters(e,t)}}checkParams(e,t,r,s=true){if(r&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){return}for(let t=0;t<e.params.length;t++){if(this.isThisParam(e.params[t])&&t>0){this.raise(V.ThisParamMustBeFirst,e.params[t])}}super.checkParams(e,t,r,s)}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,r){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(t.index)){this.next();const r=this.startNodeAt(t);r.callee=e;r.arguments=super.parseCallExpressionArguments(11);e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){const s=this.state.clone();const a=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),s);if(!a.error&&!a.aborted)return a.node;const n=this.tryParse((()=>super.parseSubscripts(e,t,r)),s);if(n.node&&!n.error)return n.node;if(a.node){this.state=a.failState;return a.node}if(n.node){this.state=n.failState;return n.node}throw a.error||n.error}return super.parseSubscripts(e,t,r)}parseSubscript(e,t,r,s){if(this.match(18)&&this.isLookaheadToken_lt()){s.optionalChainMember=true;if(r){s.stop=true;return e}this.next();const a=this.startNodeAt(t);a.callee=e;a.typeArguments=this.flowParseTypeParameterInstantiationInExpression();this.expect(10);a.arguments=this.parseCallExpressionArguments(11);a.optional=true;return this.finishCallExpression(a,true)}else if(!r&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const r=this.startNodeAt(t);r.callee=e;const a=this.tryParse((()=>{r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew();this.expect(10);r.arguments=super.parseCallExpressionArguments(11);if(s.optionalChainMember){r.optional=false}return this.finishCallExpression(r,s.optionalChainMember)}));if(a.node){if(a.error)this.state=a.failState;return a.node}}return super.parseSubscript(e,t,r,s)}parseNewCallee(e){super.parseNewCallee(e);let t=null;if(this.shouldParseTypes()&&this.match(47)){t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node}e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);this.parseFunctionParams(t,false);if(!this.parseArrow(t))return;return super.parseArrowExpression(t,undefined,true)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===42&&t===47&&this.state.hasFlowComment){this.state.hasFlowComment=false;this.state.pos+=2;this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===124&&t===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,t){const r=super.parseTopLevel(e,t);if(this.state.hasFlowComment){this.raise(V.UnterminatedFlowComment,this.state.curPosition())}return r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment){throw this.raise(V.NestedFlowComment,this.state.startLoc)}this.hasFlowCommentCompletion();const e=this.skipFlowComment();if(e){this.state.pos+=e;this.state.hasFlowComment=true}return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:e}=this.state;let t=2;while([32,9].includes(this.input.charCodeAt(e+t))){t++}const r=this.input.charCodeAt(t+e);const s=this.input.charCodeAt(t+e+1);if(r===58&&s===58){return t+2}if(this.input.slice(t+e,t+e+12)==="flow-include"){return t+12}if(r===58&&s!==58){return t}return false}hasFlowCommentCompletion(){const e=this.input.indexOf("*/",this.state.pos);if(e===-1){throw this.raise(p.UnterminatedComment,this.state.curPosition())}}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(V.EnumBooleanMemberNotInitialized,e,{memberName:r,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(!t.explicitType?V.EnumInvalidMemberInitializerUnknownType:t.explicitType==="symbol"?V.EnumInvalidMemberInitializerSymbolType:V.EnumInvalidMemberInitializerPrimaryType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(V.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(V.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc;const endOfInit=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const t=this.parseNumericLiteral(this.state.value);if(endOfInit()){return{type:"number",loc:t.loc.start,value:t}}return{type:"invalid",loc:e}}case 134:{const t=this.parseStringLiteral(this.state.value);if(endOfInit()){return{type:"string",loc:t.loc.start,value:t}}return{type:"invalid",loc:e}}case 85:case 86:{const t=this.parseBooleanLiteral(this.match(85));if(endOfInit()){return{type:"boolean",loc:t.loc.start,value:t}}return{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;const t=this.parseIdentifier(true);const r=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:t,init:r}}flowEnumCheckExplicitTypeMismatch(e,t,r){const{explicitType:s}=t;if(s===null){return}if(s!==r){this.flowEnumErrorInvalidMemberInitializer(e,t)}}flowEnumMembers({enumName:e,explicitType:t}){const r=new Set;const s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let a=false;while(!this.match(8)){if(this.eat(21)){a=true;break}const n=this.startNode();const{id:i,init:o}=this.flowEnumMemberRaw();const l=i.name;if(l===""){continue}if(/^[a-z]/.test(l)){this.raise(V.EnumInvalidMemberName,i,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e})}if(r.has(l)){this.raise(V.EnumDuplicateMemberName,i,{memberName:l,enumName:e})}r.add(l);const c={enumName:e,explicitType:t,memberName:l};n.id=i;switch(o.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"boolean");n.init=o.value;s.booleanMembers.push(this.finishNode(n,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"number");n.init=o.value;s.numberMembers.push(this.finishNode(n,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"string");n.init=o.value;s.stringMembers.push(this.finishNode(n,"EnumStringMember"));break}case"invalid":{throw this.flowEnumErrorInvalidMemberInitializer(o.loc,c)}case"none":{switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,c);break;default:s.defaultedMembers.push(this.finishNode(n,"EnumDefaultedMember"))}}}if(!this.match(8)){this.expect(12)}}return{members:s,hasUnknownMembers:a}}flowEnumStringMembers(e,t,{enumName:r}){if(e.length===0){return t}else if(t.length===0){return e}else if(t.length>e.length){for(const t of e){this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r})}return t}else{for(const e of t){this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r})}return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!tokenIsIdentifier(this.state.type)){throw this.raise(V.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e})}const{value:t}=this.state;this.next();if(t!=="boolean"&&t!=="number"&&t!=="string"&&t!=="symbol"){this.raise(V.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t})}return t}flowEnumBody(e,t){const r=t.name;const s=t.loc.start;const a=this.flowEnumParseExplicitType({enumName:r});this.expect(5);const{members:n,hasUnknownMembers:i}=this.flowEnumMembers({enumName:r,explicitType:a});e.hasUnknownMembers=i;switch(a){case"boolean":e.explicitType=true;e.members=n.booleanMembers;this.expect(8);return this.finishNode(e,"EnumBooleanBody");case"number":e.explicitType=true;e.members=n.numberMembers;this.expect(8);return this.finishNode(e,"EnumNumberBody");case"string":e.explicitType=true;e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:r});this.expect(8);return this.finishNode(e,"EnumStringBody");case"symbol":e.members=n.defaultedMembers;this.expect(8);return this.finishNode(e,"EnumSymbolBody");default:{const empty=()=>{e.members=[];this.expect(8);return this.finishNode(e,"EnumStringBody")};e.explicitType=false;const t=n.booleanMembers.length;const a=n.numberMembers.length;const i=n.stringMembers.length;const o=n.defaultedMembers.length;if(!t&&!a&&!i&&!o){return empty()}else if(!t&&!a){e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:r});this.expect(8);return this.finishNode(e,"EnumStringBody")}else if(!a&&!i&&t>=o){for(const e of n.defaultedMembers){this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name})}e.members=n.booleanMembers;this.expect(8);return this.finishNode(e,"EnumBooleanBody")}else if(!t&&!i&&a>=o){for(const e of n.defaultedMembers){this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name})}e.members=n.numberMembers;this.expect(8);return this.finishNode(e,"EnumNumberBody")}else{this.raise(V.EnumInconsistentMemberValues,s,{enumName:r});return empty()}}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();e.id=t;e.body=this.flowEnumBody(this.startNode(),t);return this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){if(this.shouldParseTypes()){if(this.match(47)||this.match(51)){e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()}}return super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){const e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){const t=this.input.charCodeAt(e+1);return t!==60&&t!==61}return false}reScan_lt_gt(){const{type:e}=this.state;if(e===47){this.state.pos-=1;this.readToken_lt()}else if(e===48){this.state.pos-=1;this.readToken_gt()}}reScan_lt(){const{type:e}=this.state;if(e===51){this.state.pos-=2;this.finishOp(47,1);return 47}return e}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}};const $={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"};const H=/\r\n|[\r\n\u2028\u2029]/;const G=new RegExp(H.source,"g");function isNewLine(e){switch(e){case 10:case 13:case 8232:case 8233:return true;default:return false}}function hasNewLine(e,t,r){for(let s=t;s<r;s++){if(isNewLine(e.charCodeAt(s))){return true}}return false}const z=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;const J=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function isWhitespace(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return true;default:return false}}const X=ParseErrorEnum`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function isFragment(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":false}function getQualifiedJSXName(e){if(e.type==="JSXIdentifier"){return e.name}if(e.type==="JSXNamespacedName"){return e.namespace.name+":"+e.name.name}if(e.type==="JSXMemberExpression"){return getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property)}throw new Error("Node had unexpected type: "+e.type)}var jsx=e=>class JSXParserMixin extends e{jsxReadToken(){let e="";let t=this.state.pos;for(;;){if(this.state.pos>=this.length){throw this.raise(X.UnterminatedJsxContent,this.state.startLoc)}const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:if(this.state.pos===this.state.start){if(r===60&&this.state.canStartJSXElement){++this.state.pos;this.finishToken(143)}else{super.getTokenFromCode(r)}return}e+=this.input.slice(t,this.state.pos);this.finishToken(142,e);return;case 38:e+=this.input.slice(t,this.state.pos);e+=this.jsxReadEntity();t=this.state.pos;break;case 62:case 125:default:if(isNewLine(r)){e+=this.input.slice(t,this.state.pos);e+=this.jsxReadNewLine(true);t=this.state.pos}else{++this.state.pos}}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let r;++this.state.pos;if(t===13&&this.input.charCodeAt(this.state.pos)===10){++this.state.pos;r=e?"\n":"\r\n"}else{r=String.fromCharCode(t)}++this.state.curLine;this.state.lineStart=this.state.pos;return r}jsxReadString(e){let t="";let r=++this.state.pos;for(;;){if(this.state.pos>=this.length){throw this.raise(p.UnterminatedString,this.state.startLoc)}const s=this.input.charCodeAt(this.state.pos);if(s===e)break;if(s===38){t+=this.input.slice(r,this.state.pos);t+=this.jsxReadEntity();r=this.state.pos}else if(isNewLine(s)){t+=this.input.slice(r,this.state.pos);t+=this.jsxReadNewLine(false);r=this.state.pos}else{++this.state.pos}}t+=this.input.slice(r,this.state.pos++);this.finishToken(134,t)}jsxReadEntity(){const e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let e=10;if(this.codePointAtPos(this.state.pos)===120){e=16;++this.state.pos}const t=this.readInt(e,undefined,false,"bail");if(t!==null&&this.codePointAtPos(this.state.pos)===59){++this.state.pos;return String.fromCodePoint(t)}}else{let t=0;let r=false;while(t++<10&&this.state.pos<this.length&&!(r=this.codePointAtPos(this.state.pos)===59)){++this.state.pos}if(r){const t=this.input.slice(e,this.state.pos);const r=$[t];++this.state.pos;if(r){return r}}}this.state.pos=e;return"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(isIdentifierChar(e)||e===45);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();if(this.match(141)){e.name=this.state.value}else if(tokenIsKeyword(this.state.type)){e.name=tokenLabelName(this.state.type)}else{this.unexpected()}this.next();return this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc;const t=this.jsxParseIdentifier();if(!this.eat(14))return t;const r=this.startNodeAt(e);r.namespace=t;r.name=this.jsxParseIdentifier();return this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if(t.type==="JSXNamespacedName"){return t}while(this.eat(16)){const r=this.startNodeAt(e);r.object=t;r.property=this.jsxParseIdentifier();t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:e=this.startNode();this.setContext(f.brace);this.next();e=this.jsxParseExpressionContainer(e,f.j_oTag);if(e.expression.type==="JSXEmptyExpression"){this.raise(X.AttributeIsEmpty,e)}return e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(X.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){this.next();e.expression=this.parseExpression();this.setContext(f.j_expr);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8)){e.expression=this.jsxParseEmptyExpression()}else{const t=this.parseExpression();e.expression=t}this.setContext(t);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();if(this.match(5)){this.setContext(f.brace);this.next();this.expect(21);e.argument=this.parseMaybeAssignAllowIn();this.setContext(f.j_oTag);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(e,"JSXSpreadAttribute")}e.name=this.jsxParseNamespacedName();e.value=this.eat(29)?this.jsxParseAttributeValue():null;return this.finishNode(e,"JSXAttribute")}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);if(this.eat(144)){return this.finishNode(t,"JSXOpeningFragment")}t.name=this.jsxParseElementName();return this.jsxParseOpeningElementAfterName(t)}jsxParseOpeningElementAfterName(e){const t=[];while(!this.match(56)&&!this.match(144)){t.push(this.jsxParseAttribute())}e.attributes=t;e.selfClosing=this.eat(56);this.expect(144);return this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);if(this.eat(144)){return this.finishNode(t,"JSXClosingFragment")}t.name=this.jsxParseElementName();this.expect(144);return this.finishNode(t,"JSXClosingElement")}jsxParseElementAt(e){const t=this.startNodeAt(e);const r=[];const s=this.jsxParseOpeningElementAt(e);let a=null;if(!s.selfClosing){e:for(;;){switch(this.state.type){case 143:e=this.state.startLoc;this.next();if(this.eat(56)){a=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 142:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const e=this.startNode();this.setContext(f.brace);this.next();if(this.match(21)){r.push(this.jsxParseSpreadChild(e))}else{r.push(this.jsxParseExpressionContainer(e,f.j_expr))}break}default:this.unexpected()}}if(isFragment(s)&&!isFragment(a)&&a!==null){this.raise(X.MissingClosingTagFragment,a)}else if(!isFragment(s)&&isFragment(a)){this.raise(X.MissingClosingTagElement,a,{openingTagName:getQualifiedJSXName(s.name)})}else if(!isFragment(s)&&!isFragment(a)){if(getQualifiedJSXName(a.name)!==getQualifiedJSXName(s.name)){this.raise(X.MissingClosingTagElement,a,{openingTagName:getQualifiedJSXName(s.name)})}}}if(isFragment(s)){t.openingFragment=s;t.closingFragment=a}else{t.openingElement=s;t.closingElement=a}t.children=r;if(this.match(47)){throw this.raise(X.UnwrappedAdjacentJSXElements,this.state.startLoc)}return isFragment(s)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;this.next();return this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){if(this.match(143)){return this.jsxParseElement()}else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33){this.replaceToken(143);return this.jsxParseElement()}else{return super.parseExprAtom(e)}}skipSpace(){const e=this.curContext();if(!e.preserveSpace)super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t===f.j_expr){this.jsxReadToken();return}if(t===f.j_oTag||t===f.j_cTag){if(isIdentifierStart(e)){this.jsxReadWord();return}if(e===62){++this.state.pos;this.finishToken(144);return}if((e===34||e===39)&&t===f.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos;this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){const{context:t,type:r}=this.state;if(r===56&&e===143){t.splice(-2,2,f.j_cTag);this.state.canStartJSXElement=false}else if(r===143){t.push(f.j_oTag)}else if(r===144){const r=t[t.length-1];if(r===f.j_oTag&&e===56||r===f.j_cTag){t.pop();this.state.canStartJSXElement=t[t.length-1]===f.j_expr}else{this.setContext(f.j_expr);this.state.canStartJSXElement=true}}else{this.state.canStartJSXElement=tokenComesBeforeExpression(r)}}};class TypeScriptScope extends Scope{constructor(...e){super(...e);this.tsNames=new Map}}class TypeScriptScopeHandler extends ScopeHandler{constructor(...e){super(...e);this.importsStack=[]}createScope(e){this.importsStack.push(new Set);return new TypeScriptScope(e)}enter(e){if(e===512){this.importsStack.push(new Set)}super.enter(e)}exit(){const e=super.exit();if(e===512){this.importsStack.pop()}return e}hasImport(e,t){const r=this.importsStack.length;if(this.importsStack[r-1].has(e)){return true}if(!t&&r>1){for(let t=0;t<r-1;t++){if(this.importsStack[t].has(e))return true}}return false}declareName(e,t,r){if(t&4096){if(this.hasImport(e,true)){this.parser.raise(p.VarRedeclaration,r,{identifierName:e})}this.importsStack[this.importsStack.length-1].add(e);return}const s=this.currentScope();let a=s.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(s,e);s.tsNames.set(e,a|16);return}super.declareName(e,t,r);if(t&2){if(!(t&1)){this.checkRedeclarationInScope(s,e,t,r);this.maybeExportDefined(s,e)}a=a|1}if(t&256){a=a|2}if(t&512){a=a|4}if(t&128){a=a|8}if(a)s.tsNames.set(e,a)}isRedeclaredInScope(e,t,r){const s=e.tsNames.get(t);if((s&2)>0){if(r&256){const e=!!(r&512);const t=(s&4)>0;return e!==t}return true}if(r&128&&(s&8)>0){if(e.names.get(t)&2){return!!(r&1)}else{return false}}if(r&2&&(s&1)>0){return true}return super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){const{name:t}=e;if(this.hasImport(t))return;const r=this.scopeStack.length;for(let e=r-1;e>=0;e--){const r=this.scopeStack[e];const s=r.tsNames.get(t);if((s&1)>0||(s&16)>0){return}}super.checkLocalExport(e)}}class ProductionParameterHandler{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function functionFlags(e,t){return(e?2:0)|(t?1:0)}class BaseParser{constructor(){this.sawUnambiguousESM=false;this.ambiguousScriptDifferentAst=false}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e==="string"){return this.plugins.has(e)}else{const[t,r]=e;if(!this.hasPlugin(t)){return false}const s=this.plugins.get(t);for(const e of Object.keys(r)){if((s==null?void 0:s[e])!==r[e]){return false}}return true}}getPluginOption(e,t){var r;return(r=this.plugins.get(e))==null?void 0:r[t]}}function setTrailingComments(e,t){if(e.trailingComments===undefined){e.trailingComments=t}else{e.trailingComments.unshift(...t)}}function setLeadingComments(e,t){if(e.leadingComments===undefined){e.leadingComments=t}else{e.leadingComments.unshift(...t)}}function setInnerComments(e,t){if(e.innerComments===undefined){e.innerComments=t}else{e.innerComments.unshift(...t)}}function adjustInnerComments(e,t,r){let s=null;let a=t.length;while(s===null&&a>0){s=t[--a]}if(s===null||s.start>r.start){setInnerComments(e,r.comments)}else{setTrailingComments(s,r.comments)}}class CommentsParser extends BaseParser{addComment(e){if(this.filename)e.loc.filename=this.filename;const{commentsLen:t}=this.state;if(this.comments.length!==t){this.comments.length=t}this.comments.push(e);this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state;const r=t.length;if(r===0)return;let s=r-1;const a=t[s];if(a.start===e.end){a.leadingNode=e;s--}const{start:n}=e;for(;s>=0;s--){const r=t[s];const a=r.end;if(a>n){r.containingNode=e;this.finalizeComment(r);t.splice(s,1)}else{if(a===n){r.trailingNode=e}break}}}finalizeComment(e){var t;const{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null){if(e.leadingNode!==null){setTrailingComments(e.leadingNode,r)}if(e.trailingNode!==null){setLeadingComments(e.trailingNode,r)}}else{const{containingNode:s,start:a}=e;if(this.input.charCodeAt(this.offsetToSourcePos(a)-1)===44){switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":adjustInnerComments(s,s.properties,e);break;case"CallExpression":case"OptionalCallExpression":adjustInnerComments(s,s.arguments,e);break;case"ImportExpression":adjustInnerComments(s,[s.source,(t=s.options)!=null?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":adjustInnerComments(s,s.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":adjustInnerComments(s,s.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":adjustInnerComments(s,s.specifiers,e);break;case"TSEnumDeclaration":{adjustInnerComments(s,s.members,e)}break;case"TSEnumBody":adjustInnerComments(s,s.members,e);break;default:{setInnerComments(s,r)}}}else{setInnerComments(s,r)}}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--){this.finalizeComment(e[t])}this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state;const{length:r}=t;if(r===0)return;const s=t[r-1];if(s.leadingNode===e){s.leadingNode=null}}takeSurroundingComments(e,t,r){const{commentStack:s}=this.state;const a=s.length;if(a===0)return;let n=a-1;for(;n>=0;n--){const a=s[n];const i=a.end;const o=a.start;if(o===r){a.leadingNode=e}else if(i===t){a.trailingNode=e}else if(i<t){break}}}}class State{constructor(){this.flags=1024;this.startIndex=void 0;this.curLine=void 0;this.lineStart=void 0;this.startLoc=void 0;this.endLoc=void 0;this.errors=[];this.potentialArrowAt=-1;this.noArrowAt=[];this.noArrowParamsConversionAt=[];this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};this.labels=[];this.commentsLen=0;this.commentStack=[];this.pos=0;this.type=140;this.value=null;this.start=0;this.end=0;this.lastTokEndLoc=null;this.lastTokStartLoc=null;this.context=[f.brace];this.firstInvalidTemplateEscapePos=null;this.strictErrors=new Map;this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){if(e)this.flags|=1;else this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:s,startColumn:a}){this.strict=e===false?false:e===true?true:t==="module";this.startIndex=r;this.curLine=s;this.lineStart=-a;this.startLoc=this.endLoc=new Position(s,a,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){if(e)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){if(e)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){if(e)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){if(e)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){if(e)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){if(e)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){if(e)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){if(e)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){if(e)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){if(e)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){if(e)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){if(e)this.flags|=4096;else this.flags&=-4097}curPosition(){return new Position(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const e=new State;e.flags=this.flags;e.startIndex=this.startIndex;e.curLine=this.curLine;e.lineStart=this.lineStart;e.startLoc=this.startLoc;e.endLoc=this.endLoc;e.errors=this.errors.slice();e.potentialArrowAt=this.potentialArrowAt;e.noArrowAt=this.noArrowAt.slice();e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice();e.topicContext=this.topicContext;e.labels=this.labels.slice();e.commentsLen=this.commentsLen;e.commentStack=this.commentStack.slice();e.pos=this.pos;e.type=this.type;e.value=this.value;e.start=this.start;e.end=this.end;e.lastTokEndLoc=this.lastTokEndLoc;e.lastTokStartLoc=this.lastTokStartLoc;e.context=this.context.slice();e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos;e.strictErrors=this.strictErrors;e.tokensLength=this.tokensLength;return e}}var Y=function isDigit(e){return e>=48&&e<=57};const Q={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])};const Z={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function readStringContents(e,t,r,s,a,n){const i=r;const o=s;const l=a;let c="";let u=null;let p=r;const{length:d}=t;for(;;){if(r>=d){n.unterminated(i,o,l);c+=t.slice(p,r);break}const f=t.charCodeAt(r);if(isStringEnd(e,f,t,r)){c+=t.slice(p,r);break}if(f===92){c+=t.slice(p,r);const i=readEscapedChar(t,r,s,a,e==="template",n);if(i.ch===null&&!u){u={pos:r,lineStart:s,curLine:a}}else{c+=i.ch}({pos:r,lineStart:s,curLine:a}=i);p=r}else if(f===8232||f===8233){++r;++a;s=r}else if(f===10||f===13){if(e==="template"){c+=t.slice(p,r)+"\n";++r;if(f===13&&t.charCodeAt(r)===10){++r}++a;p=s=r}else{n.unterminated(i,o,l)}}else{++r}}return{pos:r,str:c,firstInvalidLoc:u,lineStart:s,curLine:a,containsInvalid:!!u}}function isStringEnd(e,t,r,s){if(e==="template"){return t===96||t===36&&r.charCodeAt(s+1)===123}return t===(e==="double"?34:39)}function readEscapedChar(e,t,r,s,a,n){const i=!a;t++;const res=e=>({pos:t,ch:e,lineStart:r,curLine:s});const o=e.charCodeAt(t++);switch(o){case 110:return res("\n");case 114:return res("\r");case 120:{let a;({code:a,pos:t}=readHexChar(e,t,r,s,2,false,i,n));return res(a===null?null:String.fromCharCode(a))}case 117:{let a;({code:a,pos:t}=readCodePoint(e,t,r,s,i,n));return res(a===null?null:String.fromCodePoint(a))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:if(e.charCodeAt(t)===10){++t}case 10:r=t;++s;case 8232:case 8233:return res("");case 56:case 57:if(a){return res(null)}else{n.strictNumericEscape(t-1,r,s)}default:if(o>=48&&o<=55){const i=t-1;const o=/^[0-7]+/.exec(e.slice(i,t+2));let l=o[0];let c=parseInt(l,8);if(c>255){l=l.slice(0,-1);c=parseInt(l,8)}t+=l.length-1;const u=e.charCodeAt(t);if(l!=="0"||u===56||u===57){if(a){return res(null)}else{n.strictNumericEscape(i,r,s)}}return res(String.fromCharCode(c))}return res(String.fromCharCode(o))}}function readHexChar(e,t,r,s,a,n,i,o){const l=t;let c;({n:c,pos:t}=readInt(e,t,r,s,16,a,n,false,o,!i));if(c===null){if(i){o.invalidEscapeSequence(l,r,s)}else{t=l-1}}return{code:c,pos:t}}function readInt(e,t,r,s,a,n,i,o,l,c){const u=t;const p=a===16?Q.hex:Q.decBinOct;const d=a===16?Z.hex:a===10?Z.dec:a===8?Z.oct:Z.bin;let f=false;let y=0;for(let u=0,h=n==null?Infinity:n;u<h;++u){const n=e.charCodeAt(t);let u;if(n===95&&o!=="bail"){const a=e.charCodeAt(t-1);const n=e.charCodeAt(t+1);if(!o){if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,s)}else if(Number.isNaN(n)||!d(n)||p.has(a)||p.has(n)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,s)}++t;continue}if(n>=97){u=n-97+10}else if(n>=65){u=n-65+10}else if(Y(n)){u=n-48}else{u=Infinity}if(u>=a){if(u<=9&&c){return{n:null,pos:t}}else if(u<=9&&l.invalidDigit(t,r,s,a)){u=0}else if(i){u=0;f=true}else{break}}++t;y=y*a+u}if(t===u||n!=null&&t-u!==n||f){return{n:null,pos:t}}return{n:y,pos:t}}function readCodePoint(e,t,r,s,a,n){const i=e.charCodeAt(t);let o;if(i===123){++t;({code:o,pos:t}=readHexChar(e,t,r,s,e.indexOf("}",t)-t,true,a,n));++t;if(o!==null&&o>1114111){if(a){n.invalidCodePoint(t,r,s)}else{return{code:null,pos:t}}}}else{({code:o,pos:t}=readHexChar(e,t,r,s,4,false,a,n))}return{code:o,pos:t}}function buildPosition(e,t,r){return new Position(r,e-t,e)}const ee=new Set([103,109,115,105,121,117,100,118]);class Token{constructor(e){const t=e.startIndex||0;this.type=e.type;this.value=e.value;this.start=t+e.start;this.end=t+e.end;this.loc=new SourceLocation(e.startLoc,e.endLoc)}}class Tokenizer extends CommentsParser{constructor(e,t){super();this.isLookahead=void 0;this.tokens=[];this.errorHandlers_readInt={invalidDigit:(e,t,r,s)=>{if(!(this.optionFlags&2048))return false;this.raise(p.InvalidDigit,buildPosition(e,t,r),{radix:s});return true},numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)};this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)});this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,buildPosition(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(p.UnterminatedString,buildPosition(e-1,t,r))}});this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(p.UnterminatedTemplate,buildPosition(e,t,r))}});this.state=new State;this.state.init(e);this.input=t;this.length=t.length;this.comments=[];this.isLookahead=false}pushToken(e){this.tokens.length=this.state.tokensLength;this.tokens.push(e);++this.state.tokensLength}next(){this.checkKeywordEscapes();if(this.optionFlags&256){this.pushToken(new Token(this.state))}this.state.lastTokEndLoc=this.state.endLoc;this.state.lastTokStartLoc=this.state.startLoc;this.nextToken()}eat(e){if(this.match(e)){this.next();return true}else{return false}}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e);this.isLookahead=true;this.nextToken();this.isLookahead=false;const t=this.state;this.state=e;return t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){z.lastIndex=e;return z.test(this.input)?z.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){J.lastIndex=e;return J.test(this.input)?J.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)===55296&&++e<this.input.length){const r=this.input.charCodeAt(e);if((r&64512)===56320){t=65536+((t&1023)<<10)+(r&1023)}}return t}setStrict(e){this.state.strict=e;if(e){this.state.strictErrors.forEach((([e,t])=>this.raise(e,t)));this.state.strictErrors.clear()}}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace();this.state.start=this.state.pos;if(!this.isLookahead)this.state.startLoc=this.state.curPosition();if(this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;if(!this.isLookahead)t=this.state.curPosition();const r=this.state.pos;const s=this.input.indexOf(e,r+2);if(s===-1){throw this.raise(p.UnterminatedComment,this.state.curPosition())}this.state.pos=s+e.length;G.lastIndex=r+2;while(G.test(this.input)&&G.lastIndex<=s){++this.state.curLine;this.state.lineStart=G.lastIndex}if(this.isLookahead)return;const a={type:"CommentBlock",value:this.input.slice(r+2,s),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(s+e.length),loc:new SourceLocation(t,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(a);return a}skipLineComment(e){const t=this.state.pos;let r;if(!this.isLookahead)r=this.state.curPosition();let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length){while(!isNewLine(s)&&++this.state.pos<this.length){s=this.input.charCodeAt(this.state.pos)}}if(this.isLookahead)return;const a=this.state.pos;const n=this.input.slice(t+e,a);const i={type:"CommentLine",value:n,start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(a),loc:new SourceLocation(r,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(i);return i}skipSpace(){const e=this.state.pos;const t=this.optionFlags&4096?[]:null;e:while(this.state.pos<this.length){const r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:if(this.input.charCodeAt(this.state.pos+1)===10){++this.state.pos}case 10:case 8232:case 8233:++this.state.pos;++this.state.curLine;this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");if(e!==undefined){this.addComment(e);t==null||t.push(e)}break}case 47:{const e=this.skipLineComment(2);if(e!==undefined){this.addComment(e);t==null||t.push(e)}break}default:break e}break;default:if(isWhitespace(r)){++this.state.pos}else if(r===45&&!this.inModule&&this.optionFlags&8192){const r=this.state.pos;if(this.input.charCodeAt(r+1)===45&&this.input.charCodeAt(r+2)===62&&(e===0||this.state.lineStart>e)){const e=this.skipLineComment(3);if(e!==undefined){this.addComment(e);t==null||t.push(e)}}else{break e}}else if(r===60&&!this.inModule&&this.optionFlags&8192){const e=this.state.pos;if(this.input.charCodeAt(e+1)===33&&this.input.charCodeAt(e+2)===45&&this.input.charCodeAt(e+3)===45){const e=this.skipLineComment(4);if(e!==undefined){this.addComment(e);t==null||t.push(e)}}else{break e}}else{break e}}}if((t==null?void 0:t.length)>0){const r=this.state.pos;const s={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(r),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,t){this.state.end=this.state.pos;this.state.endLoc=this.state.curPosition();const r=this.state.type;this.state.type=e;this.state.value=t;if(!this.isLookahead){this.updateContext(r)}}replaceToken(e){this.state.type=e;this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter()){return}const e=this.state.pos+1;const t=this.codePointAtPos(e);if(t>=48&&t<=57){throw this.raise(p.UnexpectedDigitAfterHash,this.state.curPosition())}if(t===123||t===91&&this.hasPlugin("recordAndTuple")){this.expectPlugin("recordAndTuple");if(this.getPluginOption("recordAndTuple","syntaxType")==="bar"){throw this.raise(t===123?p.RecordExpressionHashIncorrectStartSyntaxType:p.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;if(t===123){this.finishToken(7)}else{this.finishToken(1)}}else if(isIdentifierStart(t)){++this.state.pos;this.finishToken(139,this.readWord1(t))}else if(t===92){++this.state.pos;this.finishToken(139,this.readWord1())}else{this.finishOp(27,1)}}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(true);return}if(e===46&&this.input.charCodeAt(this.state.pos+2)===46){this.state.pos+=3;this.finishToken(21)}else{++this.state.pos;this.finishToken(16)}}readToken_slash(){const e=this.input.charCodeAt(this.state.pos+1);if(e===61){this.finishOp(31,2)}else{this.finishOp(56,1)}}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return false;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return false;const t=this.state.pos;this.state.pos+=1;while(!isNewLine(e)&&++this.state.pos<this.length){e=this.input.charCodeAt(this.state.pos)}const r=this.input.slice(t+2,this.state.pos);this.finishToken(28,r);return true}readToken_mult_modulo(e){let t=e===42?55:54;let r=1;let s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===42){r++;s=this.input.charCodeAt(this.state.pos+2);t=57}if(s===61&&!this.state.inType){r++;t=e===37?33:30}this.finishOp(t,r)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e){if(this.input.charCodeAt(this.state.pos+2)===61){this.finishOp(30,3)}else{this.finishOp(e===124?41:42,2)}return}if(e===124){if(t===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&t===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&t===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(4);return}}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);if(e===61&&!this.state.inType){this.finishOp(32,2)}else if(e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);const e=this.input.codePointAt(this.state.pos);if(e===94){this.unexpected()}}else{this.finishOp(44,1)}}readToken_atSign(){const e=this.input.charCodeAt(this.state.pos+1);if(e===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])){this.finishOp(38,2)}else{this.finishOp(26,1)}}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}if(t===61){this.finishOp(30,2)}else{this.finishOp(53,1)}}readToken_lt(){const{pos:e}=this.state;const t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){const{pos:e}=this.state;const t=this.input.charCodeAt(e+1);if(t===62){const t=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+t)===61){this.finishOp(30,t+1);return}this.finishOp(52,t);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2;this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1);const t=this.input.charCodeAt(this.state.pos+2);if(e===63){if(t===61){this.finishOp(30,3)}else{this.finishOp(40,2)}}else if(e===46&&!(t>=48&&t<=57)){this.state.pos+=2;this.finishToken(18)}else{++this.state.pos;this.finishToken(17)}}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos;this.finishToken(10);return;case 41:++this.state.pos;this.finishToken(11);return;case 59:++this.state.pos;this.finishToken(13);return;case 44:++this.state.pos;this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(2)}else{++this.state.pos;this.finishToken(0)}return;case 93:++this.state.pos;this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(6)}else{++this.state.pos;this.finishToken(5)}return;case 125:++this.state.pos;this.finishToken(8);return;case 58:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58){this.finishOp(15,2)}else{++this.state.pos;this.finishToken(14)}return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(false);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(isIdentifierStart(e)){this.readWord(e);return}}throw this.raise(p.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t;this.finishToken(e,r)}readRegexp(){const e=this.state.startLoc;const t=this.state.start+1;let r,s;let{pos:a}=this.state;for(;;++a){if(a>=this.length){throw this.raise(p.UnterminatedRegExp,createPositionWithColumnOffset(e,1))}const t=this.input.charCodeAt(a);if(isNewLine(t)){throw this.raise(p.UnterminatedRegExp,createPositionWithColumnOffset(e,1))}if(r){r=false}else{if(t===91){s=true}else if(t===93&&s){s=false}else if(t===47&&!s){break}r=t===92}}const n=this.input.slice(t,a);++a;let i="";const nextPos=()=>createPositionWithColumnOffset(e,a+2-t);while(a<this.length){const e=this.codePointAtPos(a);const t=String.fromCharCode(e);if(ee.has(e)){if(e===118){if(i.includes("u")){this.raise(p.IncompatibleRegExpUVFlags,nextPos())}}else if(e===117){if(i.includes("v")){this.raise(p.IncompatibleRegExpUVFlags,nextPos())}}if(i.includes(t)){this.raise(p.DuplicateRegExpFlags,nextPos())}}else if(isIdentifierChar(e)||e===92){this.raise(p.MalformedRegExpFlags,nextPos())}else{break}++a;i+=t}this.state.pos=a;this.finishToken(138,{pattern:n,flags:i})}readInt(e,t,r=false,s=true){const{n:a,pos:n}=readInt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,s,this.errorHandlers_readInt,false);this.state.pos=n;return a}readRadixNumber(e){const t=this.state.pos;const r=this.state.curPosition();let s=false;this.state.pos+=2;const a=this.readInt(e);if(a==null){this.raise(p.InvalidDigit,createPositionWithColumnOffset(r,2),{radix:e})}const n=this.input.charCodeAt(this.state.pos);if(n===110){++this.state.pos;s=true}else if(n===109){throw this.raise(p.InvalidDecimal,r)}if(isIdentifierStart(this.codePointAtPos(this.state.pos))){throw this.raise(p.NumberIdentifier,this.state.curPosition())}if(s){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,e);return}this.finishToken(135,a)}readNumber(e){const t=this.state.pos;const r=this.state.curPosition();let s=false;let a=false;let n=false;let i=false;if(!e&&this.readInt(10)===null){this.raise(p.InvalidNumber,this.state.curPosition())}const o=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(o){const e=this.input.slice(t,this.state.pos);this.recordStrictModeErrors(p.StrictOctalLiteral,r);if(!this.state.strict){const t=e.indexOf("_");if(t>0){this.raise(p.ZeroDigitNumericSeparator,createPositionWithColumnOffset(r,t))}}i=o&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!i){++this.state.pos;this.readInt(10);s=true;l=this.input.charCodeAt(this.state.pos)}if((l===69||l===101)&&!i){l=this.input.charCodeAt(++this.state.pos);if(l===43||l===45){++this.state.pos}if(this.readInt(10)===null){this.raise(p.InvalidOrMissingExponent,r)}s=true;n=true;l=this.input.charCodeAt(this.state.pos)}if(l===110){if(s||o){this.raise(p.InvalidBigIntLiteral,r)}++this.state.pos;a=true}if(l===109){this.expectPlugin("decimal",this.state.curPosition());if(n||o){this.raise(p.InvalidDecimal,r)}++this.state.pos;var c=true}if(isIdentifierStart(this.codePointAtPos(this.state.pos))){throw this.raise(p.NumberIdentifier,this.state.curPosition())}const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(a){this.finishToken(136,u);return}if(c){this.finishToken(137,u);return}const d=i?parseInt(u,8):parseFloat(u);this.finishToken(135,d)}readCodePoint(e){const{code:t,pos:r}=readCodePoint(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);this.state.pos=r;return t}readString(e){const{str:t,pos:r,curLine:s,lineStart:a}=readStringContents(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1;this.state.lineStart=a;this.state.curLine=s;this.finishToken(134,t)}readTemplateContinuation(){if(!this.match(8)){this.unexpected(null,8)}this.state.pos--;this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos];const{str:t,firstInvalidLoc:r,pos:s,curLine:a,lineStart:n}=readStringContents("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1;this.state.lineStart=n;this.state.curLine=a;if(r){this.state.firstInvalidTemplateEscapePos=new Position(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))}if(this.input.codePointAt(s)===96){this.finishToken(24,r?null:e+t+"`")}else{this.state.pos++;this.finishToken(25,r?null:e+t+"${")}}recordStrictModeErrors(e,t){const r=t.index;if(this.state.strict&&!this.state.strictErrors.has(r)){this.raise(e,t)}else{this.state.strictErrors.set(r,[e,t])}}readWord1(e){this.state.containsEsc=false;let t="";const r=this.state.pos;let s=this.state.pos;if(e!==undefined){this.state.pos+=e<=65535?1:2}while(this.state.pos<this.length){const e=this.codePointAtPos(this.state.pos);if(isIdentifierChar(e)){this.state.pos+=e<=65535?1:2}else if(e===92){this.state.containsEsc=true;t+=this.input.slice(s,this.state.pos);const e=this.state.curPosition();const a=this.state.pos===r?isIdentifierStart:isIdentifierChar;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(p.MissingUnicodeEscape,this.state.curPosition());s=this.state.pos-1;continue}++this.state.pos;const n=this.readCodePoint(true);if(n!==null){if(!a(n)){this.raise(p.EscapedCharNotAnIdentifier,e)}t+=String.fromCodePoint(n)}s=this.state.pos}else{break}}return t+this.input.slice(s,this.state.pos)}readWord(e){const t=this.readWord1(e);const r=E.get(t);if(r!==undefined){this.finishToken(r,tokenLabelName(r))}else{this.finishToken(132,t)}}checkKeywordEscapes(){const{type:e}=this.state;if(tokenIsKeyword(e)&&this.state.containsEsc){this.raise(p.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:tokenLabelName(e)})}}raise(e,t,r={}){const s=t instanceof Position?t:t.loc.start;const a=e(s,r);if(!(this.optionFlags&2048))throw a;if(!this.isLookahead)this.state.errors.push(a);return a}raiseOverwrite(e,t,r={}){const s=t instanceof Position?t:t.loc.start;const a=s.index;const n=this.state.errors;for(let t=n.length-1;t>=0;t--){const i=n[t];if(i.loc.index===a){return n[t]=e(s,r)}if(i.loc.index<a)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(p.UnexpectedToken,e!=null?e:this.state.startLoc,{expected:t?tokenLabelName(t):null})}expectPlugin(e,t){if(this.hasPlugin(e)){return true}throw this.raise(p.MissingPlugin,t!=null?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e)))){throw this.raise(p.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}}errorBuilder(e){return(t,r,s)=>{this.raise(e,buildPosition(t,r,s))}}}class ClassScope{constructor(){this.privateNames=new Set;this.loneAccessors=new Map;this.undefinedPrivateNames=new Map}}class ClassScopeHandler{constructor(e){this.parser=void 0;this.stack=[];this.undefinedPrivateNames=new Map;this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ClassScope)}exit(){const e=this.stack.pop();const t=this.current();for(const[r,s]of Array.from(e.undefinedPrivateNames)){if(t){if(!t.undefinedPrivateNames.has(r)){t.undefinedPrivateNames.set(r,s)}}else{this.parser.raise(p.InvalidPrivateFieldResolution,s,{identifierName:r})}}}declarePrivateName(e,t,r){const{privateNames:s,loneAccessors:a,undefinedPrivateNames:n}=this.current();let i=s.has(e);if(t&3){const r=i&&a.get(e);if(r){const s=r&4;const n=t&4;const o=r&3;const l=t&3;i=o===l||s!==n;if(!i)a.delete(e)}else if(!i){a.set(e,t)}}if(i){this.parser.raise(p.PrivateNameRedeclaration,r,{identifierName:e})}s.add(e);n.delete(e)}usePrivateName(e,t){let r;for(r of this.stack){if(r.privateNames.has(e))return}if(r){r.undefinedPrivateNames.set(e,t)}else{this.parser.raise(p.InvalidPrivateFieldResolution,t,{identifierName:e})}}}class ExpressionScope{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class ArrowHeadParsingScope extends ExpressionScope{constructor(e){super(e);this.declarationErrors=new Map}recordDeclarationError(e,t){const r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class ExpressionScopeHandler{constructor(e){this.parser=void 0;this.stack=[new ExpressionScope];this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const r=t.loc.start;const{stack:s}=this;let a=s.length-1;let n=s[a];while(!n.isCertainlyParameterDeclaration()){if(n.canBeArrowParameterDeclaration()){n.recordDeclarationError(e,r)}else{return}n=s[--a]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){const{stack:r}=this;const s=r[r.length-1];const a=t.loc.start;if(s.isCertainlyParameterDeclaration()){this.parser.raise(e,a)}else if(s.canBeArrowParameterDeclaration()){s.recordDeclarationError(e,a)}else{return}}recordAsyncArrowParametersError(e){const{stack:t}=this;let r=t.length-1;let s=t[r];while(s.canBeArrowParameterDeclaration()){if(s.type===2){s.recordDeclarationError(p.AwaitBindingIdentifier,e)}s=t[--r]}}validateAsPattern(){const{stack:e}=this;const t=e[e.length-1];if(!t.canBeArrowParameterDeclaration())return;t.iterateErrors((([t,r])=>{this.parser.raise(t,r);let s=e.length-2;let a=e[s];while(a.canBeArrowParameterDeclaration()){a.clearDeclarationError(r.index);a=e[--s]}}))}}function newParameterDeclarationScope(){return new ExpressionScope(3)}function newArrowHeadScope(){return new ArrowHeadParsingScope(1)}function newAsyncArrowScope(){return new ArrowHeadParsingScope(2)}function newExpressionScope(){return new ExpressionScope}class UtilParser extends Tokenizer{addExtra(e,t,r,s=true){if(!e)return;let{extra:a}=e;if(a==null){a={};e.extra=a}if(s){a[t]=r}else{Object.defineProperty(a,t,{enumerable:s,value:r})}}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const r=e+t.length;if(this.input.slice(e,r)===t){const e=this.input.charCodeAt(r);return!(isIdentifierChar(e)||(e&64512)===55296)}return false}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){if(this.isContextual(e)){this.next();return true}return false}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null){throw this.raise(t,this.state.startLoc)}this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return hasNewLine(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return hasNewLine(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=true){if(e?this.isLineTerminator():this.eat(13))return;this.raise(p.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){if(!this.eat(e)){this.unexpected(t,e)}}tryParse(e,t=this.state.clone()){const r={node:null};try{const s=e(((e=null)=>{r.node=e;throw r}));if(this.state.errors.length>t.errors.length){const e=this.state;this.state=t;this.state.tokensLength=e.tokensLength;return{node:s,error:e.errors[t.errors.length],thrown:false,aborted:false,failState:e}}return{node:s,error:null,thrown:false,aborted:false,failState:null}}catch(e){const s=this.state;this.state=t;if(e instanceof SyntaxError){return{node:null,error:e,thrown:true,aborted:false,failState:s}}if(e===r){return{node:r.node,error:null,thrown:false,aborted:true,failState:s}}throw e}}checkExpressionErrors(e,t){if(!e)return false;const{shorthandAssignLoc:r,doubleProtoLoc:s,privateKeyLoc:a,optionalParametersLoc:n}=e;const i=!!r||!!s||!!n||!!a;if(!t){return i}if(r!=null){this.raise(p.InvalidCoverInitializedName,r)}if(s!=null){this.raise(p.DuplicateProto,s)}if(a!=null){this.raise(p.UnexpectedPrivateField,a)}if(n!=null){this.unexpected(n)}}isLiteralPropertyName(){return tokenIsLiteralPropertyName(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){const t=this.state.labels;this.state.labels=[];const r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const s=this.inModule;this.inModule=e;const a=this.scope;const n=this.getScopeHandler();this.scope=new n(this,e);const i=this.prodParam;this.prodParam=new ProductionParameterHandler;const o=this.classScope;this.classScope=new ClassScopeHandler(this);const l=this.expressionScope;this.expressionScope=new ExpressionScopeHandler(this);return()=>{this.state.labels=t;this.exportedIdentifiers=r;this.inModule=s;this.scope=a;this.prodParam=i;this.classScope=o;this.expressionScope=l}}enterInitialScopes(){let e=0;if(this.inModule){e|=2}if(this.optionFlags&32){e|=1}this.scope.enter(1);this.prodParam.enter(e)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;if(t!==null){this.expectPlugin("destructuringPrivate",t)}}}class ExpressionErrors{constructor(){this.shorthandAssignLoc=null;this.doubleProtoLoc=null;this.privateKeyLoc=null;this.optionalParametersLoc=null}}class Node{constructor(e,t,r){this.type="";this.start=t;this.end=0;this.loc=new SourceLocation(r);if((e==null?void 0:e.optionFlags)&128)this.range=[t,0];if(e!=null&&e.filename)this.loc.filename=e.filename}}const te=Node.prototype;{te.__clone=function(){const e=new Node(undefined,this.start,this.loc.start);const t=Object.keys(this);for(let r=0,s=t.length;r<s;r++){const s=t[r];if(s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"){e[s]=this[s]}}return e}}class NodeUtils extends UtilParser{startNode(){const e=this.state.startLoc;return new Node(this,e.index,e)}startNodeAt(e){return new Node(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){e.type=t;e.end=r.index;e.loc.end=r;if(this.optionFlags&128)e.range[1]=r.index;if(this.optionFlags&4096){this.processComment(e)}return e}resetStartLocation(e,t){e.start=t.index;e.loc.start=t;if(this.optionFlags&128)e.range[0]=t.index}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index;e.loc.end=t;if(this.optionFlags&128)e.range[1]=t.index}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){e.type=t;return e}cloneIdentifier(e){const{type:t,start:r,end:s,loc:a,range:n,name:i}=e;const o=Object.create(te);o.type=t;o.start=r;o.end=s;o.loc=a;o.range=n;o.name=i;if(e.extra)o.extra=e.extra;return o}cloneStringLiteral(e){const{type:t,start:r,end:s,loc:a,range:n,extra:i}=e;const o=Object.create(te);o.type=t;o.start=r;o.end=s;o.loc=a;o.range=n;o.extra=i;o.value=e.value;return o}}const unwrapParenthesizedExpression=e=>e.type==="ParenthesizedExpression"?unwrapParenthesizedExpression(e.expression):e;class LValParser extends NodeUtils{toAssignable(e,t=false){var r,s;let a=undefined;if(e.type==="ParenthesizedExpression"||(r=e.extra)!=null&&r.parenthesized){a=unwrapParenthesizedExpression(e);if(t){if(a.type==="Identifier"){this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment,e)}else if(a.type!=="MemberExpression"&&!this.isOptionalMemberExpression(a)){this.raise(p.InvalidParenthesizedAssignment,e)}}else{this.raise(p.InvalidParenthesizedAssignment,e)}}switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let r=0,s=e.properties.length,a=s-1;r<s;r++){var n;const s=e.properties[r];const i=r===a;this.toAssignableObjectExpressionProp(s,i,t);if(i&&s.type==="RestElement"&&(n=e.extra)!=null&&n.trailingCommaLoc){this.raise(p.RestTrailingComma,e.extra.trailingCommaLoc)}}break;case"ObjectProperty":{const{key:r,value:s}=e;if(this.isPrivateName(r)){this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start)}this.toAssignable(s,t);break}case"SpreadElement":{throw new Error("Internal @babel/parser error (this is a bug, please report it)."+" SpreadElement should be converted by .toAssignable's caller.")}case"ArrayExpression":this.castNodeTo(e,"ArrayPattern");this.toAssignableList(e.elements,(s=e.extra)==null?void 0:s.trailingCommaLoc,t);break;case"AssignmentExpression":if(e.operator!=="="){this.raise(p.MissingEqInAssignment,e.left.loc.end)}this.castNodeTo(e,"AssignmentPattern");delete e.operator;this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(a,t);break}}toAssignableObjectExpressionProp(e,t,r){if(e.type==="ObjectMethod"){this.raise(e.kind==="get"||e.kind==="set"?p.PatternHasAccessor:p.PatternHasMethod,e.key)}else if(e.type==="SpreadElement"){this.castNodeTo(e,"RestElement");const s=e.argument;this.checkToRestConversion(s,false);this.toAssignable(s,r);if(!t){this.raise(p.RestTrailingComma,e)}}else{this.toAssignable(e,r)}}toAssignableList(e,t,r){const s=e.length-1;for(let a=0;a<=s;a++){const n=e[a];if(!n)continue;this.toAssignableListItem(e,a,r);if(n.type==="RestElement"){if(a<s){this.raise(p.RestTrailingComma,n)}else if(t){this.raise(p.RestTrailingComma,t)}}}}toAssignableListItem(e,t,r){const s=e[t];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");const e=s.argument;this.checkToRestConversion(e,true);this.toAssignable(e,r)}else{this.toAssignable(s,r)}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return true;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every(((e,r)=>e.type!=="ObjectMethod"&&(r===t||e.type!=="SpreadElement")&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>e===null||this.isAssignable(e)));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return false}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e){if((t==null?void 0:t.type)==="ArrayExpression"){this.toReferencedListDeep(t.elements)}}}parseSpread(e){const t=this.startNode();this.next();t.argument=this.parseMaybeAssignAllowIn(e,undefined);return this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();this.next();e.argument=this.parseBindingAtom();return this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();this.next();e.elements=this.parseBindingList(3,93,1);return this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,true)}return this.parseIdentifier()}parseBindingList(e,t,r){const s=r&1;const a=[];let n=true;while(!this.eat(e)){if(n){n=false}else{this.expect(12)}if(s&&this.match(12)){a.push(null)}else if(this.eat(e)){break}else if(this.match(21)){let s=this.parseRestBinding();if(this.hasPlugin("flow")||r&2){s=this.parseFunctionParamType(s)}a.push(s);if(!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];if(r&2){if(this.match(26)&&this.hasPlugin("decorators")){this.raise(p.UnsupportedParameterDecorator,this.state.startLoc)}while(this.match(26)){e.push(this.parseDecorator())}}a.push(this.parseBindingElement(r,e))}}return a}parseBindingRestProperty(e){this.next();e.argument=this.parseIdentifier();this.checkCommaAfterRest(125);return this.finishNode(e,"RestElement")}parseBindingProperty(){const{type:e,startLoc:t}=this.state;if(e===21){return this.parseBindingRestProperty(this.startNode())}const r=this.startNode();if(e===139){this.expectPlugin("destructuringPrivate",t);this.classScope.usePrivateName(this.state.value,t);r.key=this.parsePrivateName()}else{this.parsePropertyName(r)}r.method=false;return this.parseObjPropValue(r,t,false,false,true,false)}parseBindingElement(e,t){const r=this.parseMaybeDefault();if(this.hasPlugin("flow")||e&2){this.parseFunctionParamType(r)}if(t.length){r.decorators=t;this.resetStartLocationFromNode(r,t[0])}const s=this.parseMaybeDefault(r.loc.start,r);return s}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){e!=null?e:e=this.state.startLoc;t=t!=null?t:this.parseBindingAtom();if(!this.eat(29))return t;const r=this.startNodeAt(e);r.left=t;r.right=this.parseMaybeAssignAllowIn();return this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,r){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return false}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,t,r=64,s=false,a=false,n=false){var i;const o=e.type;if(this.isObjectMethod(e))return;const l=this.isOptionalMemberExpression(e);if(l||o==="MemberExpression"){if(l){this.expectPlugin("optionalChainingAssign",e.loc.start);if(t.type!=="AssignmentExpression"){this.raise(p.InvalidLhsOptionalChaining,e,{ancestor:t})}}if(r!==64){this.raise(p.InvalidPropertyBindingPattern,e)}return}if(o==="Identifier"){this.checkIdentifier(e,r,a);const{name:t}=e;if(s){if(s.has(t)){this.raise(p.ParamDupe,e)}else{s.add(t)}}return}const c=this.isValidLVal(o,!(n||(i=e.extra)!=null&&i.parenthesized)&&t.type==="AssignmentExpression",r);if(c===true)return;if(c===false){const s=r===64?p.InvalidLhs:p.InvalidLhsBinding;this.raise(s,e,{ancestor:t});return}let u,d;if(typeof c==="string"){u=c;d=o==="ParenthesizedExpression"}else{[u,d]=c}const f=o==="ArrayPattern"||o==="ObjectPattern"?{type:o}:t;const y=e[u];if(Array.isArray(y)){for(const e of y){if(e){this.checkLVal(e,f,r,s,a,d)}}}else if(y){this.checkLVal(y,f,r,s,a,d)}}checkIdentifier(e,t,r=false){if(this.state.strict&&(r?isStrictBindReservedWord(e.name,this.inModule):isStrictBindOnlyReservedWord(e.name))){if(t===64){this.raise(p.StrictEvalArguments,e,{referenceName:e.name})}else{this.raise(p.StrictEvalArgumentsBinding,e,{bindingName:e.name})}}if(t&8192&&e.name==="let"){this.raise(p.LetInLexicalBinding,e)}if(!(t&64)){this.declareNameFromIdentifier(e,t)}}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(p.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){if(!this.match(12)){return false}this.raise(this.lookaheadCharCode()===e?p.RestTrailingComma:p.ElementAfterRest,this.state.startLoc);return true}}function nonNull(e){if(e==null){throw new Error(`Unexpected ${e} value.`)}return e}function assert(e){if(!e){throw new Error("Assert fail")}}const re=ParseErrorEnum`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. "+"You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function keywordTypeFromName(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return undefined}}function tsIsAccessModifier(e){return e==="private"||e==="public"||e==="protected"}function tsIsVarianceAnnotations(e){return e==="in"||e==="out"}var typescript=e=>class TypeScriptParserMixin extends e{constructor(...e){super(...e);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:re.InvalidModifierOnTypeParameter});this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:re.InvalidModifierOnTypeParameterPositions});this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:re.InvalidModifierOnTypeParameter})}getScopeHandler(){return TypeScriptScopeHandler}tsIsIdentifier(){return tokenIsIdentifier(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){this.next();if(this.hasPrecedingLineBreak()){return false}return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106)){this.next();return this.tsTokenCanFollowModifier()}return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,r){if(!tokenIsIdentifier(this.state.type)&&this.state.type!==58&&this.state.type!==75){return undefined}const s=this.state.value;if(e.includes(s)){if(r&&this.match(106)){return undefined}if(t&&this.tsIsStartOfStaticBlocks()){return undefined}if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))){return s}}return undefined}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:r,errorTemplate:s=re.InvalidModifierOnTypeMember},a){const enforceOrder=(e,t,r,s)=>{if(t===r&&a[s]){this.raise(re.InvalidModifiersOrder,e,{orderedModifiers:[r,s]})}};const incompatible=(e,t,r,s)=>{if(a[r]&&t===s||a[s]&&t===r){this.raise(re.IncompatibleModifiers,e,{modifiers:[r,s]})}};for(;;){const{startLoc:n}=this.state;const i=this.tsParseModifier(e.concat(t!=null?t:[]),r,a.static);if(!i)break;if(tsIsAccessModifier(i)){if(a.accessibility){this.raise(re.DuplicateAccessibilityModifier,n,{modifier:i})}else{enforceOrder(n,i,i,"override");enforceOrder(n,i,i,"static");enforceOrder(n,i,i,"readonly");a.accessibility=i}}else if(tsIsVarianceAnnotations(i)){if(a[i]){this.raise(re.DuplicateModifier,n,{modifier:i})}a[i]=true;enforceOrder(n,i,"in","out")}else{if(hasOwnProperty.call(a,i)){this.raise(re.DuplicateModifier,n,{modifier:i})}else{enforceOrder(n,i,"static","readonly");enforceOrder(n,i,"static","override");enforceOrder(n,i,"override","readonly");enforceOrder(n,i,"abstract","override");incompatible(n,i,"declare","override");incompatible(n,i,"static","abstract")}a[i]=true}if(t!=null&&t.includes(i)){this.raise(s,n,{modifier:i})}}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const r=[];while(!this.tsIsListTerminator(e)){r.push(t())}return r}tsParseDelimitedList(e,t,r){return nonNull(this.tsParseDelimitedListWorker(e,t,true,r))}tsParseDelimitedListWorker(e,t,r,s){const a=[];let n=-1;for(;;){if(this.tsIsListTerminator(e)){break}n=-1;const s=t();if(s==null){return undefined}a.push(s);if(this.eat(12)){n=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e)){break}if(r){this.expect(12)}return undefined}if(s){s.value=n}return a}tsParseBracketedList(e,t,r,s,a){if(!s){if(r){this.expect(0)}else{this.expect(47)}}const n=this.tsParseDelimitedList(e,t,a);if(r){this.expect(3)}else{this.expect(48)}return n}tsParseImportType(){const e=this.startNode();this.expect(83);this.expect(10);if(!this.match(134)){this.raise(re.UnsupportedImportTypeArgument,this.state.startLoc);{e.argument=super.parseExprAtom()}}else{{e.argument=this.parseStringLiteral(this.state.value)}}if(this.eat(12)){e.options=this.tsParseImportTypeOptions()}else{e.options=null}this.expect(11);if(this.eat(16)){e.qualifier=this.tsParseEntityName(1|2)}if(this.match(47)){{e.typeParameters=this.tsParseTypeArguments()}}return this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){const e=this.startNode();this.expect(5);const t=this.startNode();if(this.isContextual(76)){t.method=false;t.key=this.parseIdentifier(true);t.computed=false;t.shorthand=false}else{this.unexpected(null,76)}this.expect(14);t.value=this.tsParseImportTypeWithPropertyValue();e.properties=[this.finishObjectProperty(t)];this.expect(8);return this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){const e=this.startNode();const t=[];this.expect(5);while(!this.match(8)){const e=this.state.type;if(tokenIsIdentifier(e)||e===134){t.push(super.parsePropertyDefinition(null))}else{this.unexpected()}this.eat(12)}e.properties=t;this.next();return this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let t;if(e&1&&this.match(78)){if(e&2){t=this.parseIdentifier(true)}else{const e=this.startNode();this.next();t=this.finishNode(e,"ThisExpression")}}else{t=this.parseIdentifier(!!(e&1))}while(this.eat(16)){const r=this.startNodeAtNode(t);r.left=t;r.right=this.parseIdentifier(!!(e&1));t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();e.typeName=this.tsParseEntityName(1);if(!this.hasPrecedingLineBreak()&&this.match(47)){{e.typeParameters=this.tsParseTypeArguments()}}return this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);t.parameterName=e;t.typeAnnotation=this.tsParseTypeAnnotation(false);t.asserts=false;return this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();this.next();return this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();this.expect(87);if(this.match(83)){e.exprName=this.tsParseImportType()}else{{e.exprName=this.tsParseEntityName(1|2)}}if(!this.hasPrecedingLineBreak()&&this.match(47)){{e.typeParameters=this.tsParseTypeArguments()}}return this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();e(t);t.name=this.tsParseTypeParameterName();t.constraint=this.tsEatThenParseType(81);t.default=this.tsEatThenParseType(29);return this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47)){return this.tsParseTypeParameters(e)}}tsParseTypeParameters(e){const t=this.startNode();if(this.match(47)||this.match(143)){this.next()}else{this.unexpected()}const r={value:-1};t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),false,true,r);if(t.params.length===0){this.raise(re.EmptyTypeParameters,t)}if(r.value!==-1){this.addExtra(t,"trailingComma",r.value)}return this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const r=e===19;const s="parameters";const a="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier);this.expect(10);t[s]=this.tsParseBindingListForSignature();if(r){t[a]=this.tsParseTypeOrTypePredicateAnnotation(e)}else if(this.match(e)){t[a]=this.tsParseTypeOrTypePredicateAnnotation(e)}}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;if(e==="AssignmentPattern"||e==="TSParameterProperty"){this.raise(re.UnsupportedSignatureParameterKind,t,{type:e})}}return e}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator()){this.expect(13)}}tsParseSignatureMember(e,t){this.tsFillSignature(14,t);this.tsParseTypeMemberSemicolon();return this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){this.next();if(tokenIsIdentifier(this.state.type)){this.next();return this.match(14)}return false}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))){return}this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation();this.resetEndLocation(t);this.expect(3);e.parameters=[t];const r=this.tsTryParseTypeAnnotation();if(r)e.typeAnnotation=r;this.tsParseTypeMemberSemicolon();return this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17))e.optional=true;if(this.match(10)||this.match(47)){if(t){this.raise(re.ReadonlyForMethodSignature,e)}const r=e;if(r.kind&&this.match(47)){this.raise(re.AccessorCannotHaveTypeParameters,this.state.curPosition())}this.tsFillSignature(14,r);this.tsParseTypeMemberSemicolon();const s="parameters";const a="typeAnnotation";if(r.kind==="get"){if(r[s].length>0){this.raise(p.BadGetterArity,this.state.curPosition());if(this.isThisParam(r[s][0])){this.raise(re.AccessorCannotDeclareThisParameter,this.state.curPosition())}}}else if(r.kind==="set"){if(r[s].length!==1){this.raise(p.BadSetterArity,this.state.curPosition())}else{const e=r[s][0];if(this.isThisParam(e)){this.raise(re.AccessorCannotDeclareThisParameter,this.state.curPosition())}if(e.type==="Identifier"&&e.optional){this.raise(re.SetAccessorCannotHaveOptionalParameter,this.state.curPosition())}if(e.type==="RestElement"){this.raise(re.SetAccessorCannotHaveRestParameter,this.state.curPosition())}}if(r[a]){this.raise(re.SetAccessorCannotHaveReturnType,r[a])}}else{r.kind="method"}return this.finishNode(r,"TSMethodSignature")}else{const r=e;if(t)r.readonly=true;const s=this.tsTryParseTypeAnnotation();if(s)r.typeAnnotation=s;this.tsParseTypeMemberSemicolon();return this.finishNode(r,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47)){return this.tsParseSignatureMember("TSCallSignatureDeclaration",e)}if(this.match(77)){const t=this.startNode();this.next();if(this.match(10)||this.match(47)){return this.tsParseSignatureMember("TSConstructSignatureDeclaration",e)}else{e.key=this.createIdentifier(t,"new");return this.tsParsePropertyOrMethodSignature(e,false)}}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);const t=this.tsTryParseIndexSignature(e);if(t){return t}super.parsePropertyName(e);if(!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()){e.kind=e.key.name;super.parsePropertyName(e);if(!this.match(10)&&!this.match(47)){this.unexpected(null,10)}}return this.tsParsePropertyOrMethodSignature(e,!!e.readonly)}tsParseTypeLiteral(){const e=this.startNode();e.members=this.tsParseObjectTypeMembers();return this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));this.expect(8);return e}tsIsStartOfMappedType(){this.next();if(this.eat(53)){return this.isContextual(122)}if(this.isContextual(122)){this.next()}if(!this.match(0)){return false}this.next();if(!this.tsIsIdentifier()){return false}this.next();return this.match(58)}tsParseMappedType(){const e=this.startNode();this.expect(5);if(this.match(53)){e.readonly=this.state.value;this.next();this.expectContextual(122)}else if(this.eatContextual(122)){e.readonly=true}this.expect(0);{const t=this.startNode();t.name=this.tsParseTypeParameterName();t.constraint=this.tsExpectThenParseType(58);e.typeParameter=this.finishNode(t,"TSTypeParameter")}e.nameType=this.eatContextual(93)?this.tsParseType():null;this.expect(3);if(this.match(53)){e.optional=this.state.value;this.next();this.expect(17)}else if(this.eat(17)){e.optional=true}e.typeAnnotation=this.tsTryParseType();this.semicolon();this.expect(8);return this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),true,false);let t=false;e.elementTypes.forEach((e=>{const{type:r}=e;if(t&&r!=="TSRestType"&&r!=="TSOptionalType"&&!(r==="TSNamedTupleMember"&&e.optional)){this.raise(re.OptionalTypeBeforeRequired,e)}t||(t=r==="TSNamedTupleMember"&&e.optional||r==="TSOptionalType")}));return this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const e=this.state.startLoc;const t=this.eat(21);const{startLoc:r}=this.state;let s;let a;let n;let i;const o=tokenIsKeywordOrIdentifier(this.state.type);const l=o?this.lookaheadCharCode():null;if(l===58){s=true;n=false;a=this.parseIdentifier(true);this.expect(14);i=this.tsParseType()}else if(l===63){n=true;const e=this.state.value;const t=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58){s=true;a=this.createIdentifier(this.startNodeAt(r),e);this.expect(17);this.expect(14);i=this.tsParseType()}else{s=false;i=t;this.expect(17)}}else{i=this.tsParseType();n=this.eat(17);s=this.eat(14)}if(s){let e;if(a){e=this.startNodeAt(r);e.optional=n;e.label=a;e.elementType=i;if(this.eat(17)){e.optional=true;this.raise(re.TupleOptionalAfterType,this.state.lastTokStartLoc)}}else{e=this.startNodeAt(r);e.optional=n;this.raise(re.InvalidTupleMemberLabel,i);e.label=i;e.elementType=this.tsParseType()}i=this.finishNode(e,"TSNamedTupleMember")}else if(n){const e=this.startNodeAt(r);e.typeAnnotation=i;i=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=i;i=this.finishNode(t,"TSRestType")}return i}tsParseParenthesizedType(){const e=this.startNode();this.expect(10);e.typeAnnotation=this.tsParseType();this.expect(11);return this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const r=this.startNode();if(e==="TSConstructorType"){r.abstract=!!t;if(t)this.next();this.next()}this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r)));return this.finishNode(r,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){{const e=this.startNode();e.literal=super.parseTemplate(false);return this.finishNode(e,"TSLiteralType")}}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak()){return this.tsParseThisTypePredicate(e)}else{return e}}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){const e=this.startNode();const t=this.lookahead();if(t.type!==135&&t.type!==136){this.unexpected()}e.literal=this.parseMaybeUnary();return this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(tokenIsIdentifier(e)||e===88||e===84){const t=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":keywordTypeFromName(this.state.value);if(t!==undefined&&this.lookaheadCharCode()!==46){const e=this.startNode();this.next();return this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:e}=this.state;let t=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0)){if(this.match(3)){const r=this.startNodeAt(e);r.elementType=t;this.expect(3);t=this.finishNode(r,"TSArrayType")}else{const r=this.startNodeAt(e);r.objectType=t;r.indexType=this.tsParseType();this.expect(3);t=this.finishNode(r,"TSIndexedAccessType")}}return t}tsParseTypeOperator(){const e=this.startNode();const t=this.state.value;this.next();e.operator=t;e.typeAnnotation=this.tsParseTypeOperatorOrHigher();if(t==="readonly"){this.tsCheckTypeAnnotationForReadOnly(e)}return this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(re.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();t.name=this.tsParseTypeParameterName();t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType()));e.typeParameter=this.finishNode(t,"TSTypeParameter");return this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17)){return e}}}tsParseTypeOperatorOrHigher(){const e=tokenIsTSTypeOperator(this.state.type)&&!this.state.containsEsc;return e?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,r){const s=this.startNode();const a=this.eat(r);const n=[];do{n.push(t())}while(this.eat(r));if(n.length===1&&!a){return n[0]}s.types=n;return this.finishNode(s,e)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47)){return true}return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(tokenIsIdentifier(this.state.type)||this.match(78)){this.next();return true}if(this.match(5)){const{errors:e}=this.state;const t=e.length;try{this.parseObjectLike(8,true);return e.length===t}catch(e){return false}}if(this.match(0)){this.next();const{errors:e}=this.state;const t=e.length;try{super.parseBindingList(3,93,1);return e.length===t}catch(e){return false}}return false}tsIsUnambiguouslyStartOfFunctionType(){this.next();if(this.match(11)||this.match(21)){return true}if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29)){return true}if(this.match(11)){this.next();if(this.match(19)){return true}}}return false}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const r=this.startNode();const s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();if(e.type==="TSThisType"){r.parameterName=e;r.asserts=true;r.typeAnnotation=null;e=this.finishNode(r,"TSTypePredicate")}else{this.resetStartLocationFromNode(e,r);e.asserts=true}t.typeAnnotation=e;return this.finishNode(t,"TSTypeAnnotation")}const a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a){if(!s){return this.tsParseTypeAnnotation(false,t)}r.parameterName=this.parseIdentifier();r.asserts=s;r.typeAnnotation=null;t.typeAnnotation=this.finishNode(r,"TSTypePredicate");return this.finishNode(t,"TSTypeAnnotation")}const n=this.tsParseTypeAnnotation(false);r.parameterName=a;r.typeAnnotation=n;r.asserts=s;t.typeAnnotation=this.finishNode(r,"TSTypePredicate");return this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14)){return this.tsParseTypeOrTypePredicateAnnotation(14)}}tsTryParseTypeAnnotation(){if(this.match(14)){return this.tsParseTypeAnnotation()}}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak()){this.next();return e}}tsParseTypePredicateAsserts(){if(this.state.type!==109){return false}const e=this.state.containsEsc;this.next();if(!tokenIsIdentifier(this.state.type)&&!this.match(78)){return false}if(e){this.raise(p.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"})}return true}tsParseTypeAnnotation(e=true,t=this.startNode()){this.tsInType((()=>{if(e)this.expect(14);t.typeAnnotation=this.tsParseType()}));return this.finishNode(t,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81)){return e}const t=this.startNodeAtNode(e);t.checkType=e;t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType()));this.expect(17);t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType()));this.expect(14);t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType()));return this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType()){return this.tsParseFunctionOrConstructorType("TSFunctionType")}if(this.match(77)){return this.tsParseFunctionOrConstructorType("TSConstructorType")}else if(this.isAbstractConstructorSignature()){return this.tsParseFunctionOrConstructorType("TSConstructorType",true)}return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike")){this.raise(re.ReservedTypeAssertion,this.state.startLoc)}const e=this.startNode();e.typeAnnotation=this.tsInType((()=>{this.next();return this.match(75)?this.tsParseTypeReference():this.tsParseType()}));this.expect(48);e.expression=this.parseMaybeUnary();return this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc;const r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{{const e=this.startNode();e.expression=this.tsParseEntityName(1|2);if(this.match(47)){e.typeParameters=this.tsParseTypeArguments()}return this.finishNode(e,"TSExpressionWithTypeArguments")}}));if(!r.length){this.raise(re.EmptyHeritageClauseType,t,{token:e})}return r}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129);if(t.declare)e.declare=true;if(tokenIsIdentifier(this.state.type)){e.id=this.parseIdentifier();this.checkIdentifier(e.id,130)}else{e.id=null;this.raise(re.MissingInterfaceName,this.state.startLoc)}e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(this.eat(81)){e.extends=this.tsParseHeritageClause("extends")}const r=this.startNode();r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this));e.body=this.finishNode(r,"TSInterfaceBody");return this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){e.id=this.parseIdentifier();this.checkIdentifier(e.id,2);e.typeAnnotation=this.tsInType((()=>{e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers);this.expect(29);if(this.isContextual(114)&&this.lookahead().type!==16){const e=this.startNode();this.next();return this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}));this.semicolon();return this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()!==f.brace){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else{return e()}}tsInType(e){const t=this.state.inType;this.state.inType=true;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=true;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=false;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e)){return this.tsNextThenParseType()}}tsExpectThenParseType(e){return this.tsInType((()=>{this.expect(e);return this.tsParseType()}))}tsNextThenParseType(){return this.tsInType((()=>{this.next();return this.tsParseType()}))}tsParseEnumMember(){const e=this.startNode();e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(true);if(this.eat(29)){e.initializer=super.parseMaybeAssignAllowIn()}return this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){if(t.const)e.const=true;if(t.declare)e.declare=true;this.expectContextual(126);e.id=this.parseIdentifier();this.checkIdentifier(e.id,e.const?8971:8459);{this.expect(5);e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this));this.expect(8)}return this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){const e=this.startNode();this.expect(5);e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this));this.expect(8);return this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){const e=this.startNode();this.scope.enter(0);this.expect(5);super.parseBlockOrModuleBlockBody(e.body=[],undefined,true,8);this.scope.exit();return this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=false){e.id=this.parseIdentifier();if(!t){this.checkIdentifier(e.id,1024)}if(this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,true);e.body=t}else{this.scope.enter(512);this.prodParam.enter(0);e.body=this.tsParseModuleBlock();this.prodParam.exit();this.scope.exit()}return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){if(this.isContextual(112)){e.kind="global";{e.global=true}e.id=this.parseIdentifier()}else if(this.match(134)){e.kind="module";e.id=super.parseStringLiteral(this.state.value)}else{this.unexpected()}if(this.match(5)){this.scope.enter(512);this.prodParam.enter(0);e.body=this.tsParseModuleBlock();this.prodParam.exit();this.scope.exit()}else{this.semicolon()}return this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,r){{e.isExport=r||false}e.id=t||this.parseIdentifier();this.checkIdentifier(e.id,4096);this.expect(29);const s=this.tsParseModuleReference();if(e.importKind==="type"&&s.type!=="TSExternalModuleReference"){this.raise(re.ImportAliasHasImportType,s)}e.moduleReference=s;this.semicolon();return this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const e=this.startNode();this.expectContextual(119);this.expect(10);if(!this.match(134)){this.unexpected()}e.expression=super.parseExprAtom();this.expect(11);this.sawUnambiguousESM=true;return this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone();const r=e();this.state=t;return r}tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(t.aborted||!t.node)return;if(t.error)this.state=t.failState;return t.node}tsTryParse(e){const t=this.state.clone();const r=e();if(r!==undefined&&r!==false){return r}this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator()){return}const t=this.state.type;return this.tsInAmbientContext((()=>{switch(t){case 68:e.declare=true;return super.parseFunctionStatement(e,false,false);case 80:e.declare=true;return this.parseClass(e,true,false);case 126:return this.tsParseEnumDeclaration(e,{declare:true});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc){return}case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum")){e.declare=true;return this.parseVarStatement(e,this.state.value,true)}this.expect(75);return this.tsParseEnumDeclaration(e,{const:true,declare:true});case 107:if(this.hasPlugin("explicitResourceManagement")&&this.isUsing()){this.raise(re.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare");e.declare=true;return this.parseVarStatement(e,"using",true)}break;case 96:if(this.hasPlugin("explicitResourceManagement")&&this.isAwaitUsing()){this.raise(re.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare");e.declare=true;this.next();return this.parseVarStatement(e,"await using",true)}break;case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:true});if(t)return t}default:if(tokenIsIdentifier(t)){return this.tsParseDeclaration(e,this.state.value,true,null)}}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,true,null)}tsParseExpressionStatement(e,t,r){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);if(t){t.declare=true}return t}case"global":if(this.match(5)){this.scope.enter(512);this.prodParam.enter(0);const r=e;r.kind="global";{e.global=true}r.id=t;r.body=this.tsParseModuleBlock();this.scope.exit();this.prodParam.exit();return this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,false,r)}}tsParseDeclaration(e,t,r,s){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||tokenIsIdentifier(this.state.type))){return this.tsParseAbstractDeclaration(e,s)}break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(134)){return this.tsParseAmbientExternalModuleDeclaration(e)}else if(tokenIsIdentifier(this.state.type)){e.kind="module";return this.tsParseModuleOrNamespaceDeclaration(e)}}break;case"namespace":if(this.tsCheckLineTerminator(r)&&tokenIsIdentifier(this.state.type)){e.kind="namespace";return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"type":if(this.tsCheckLineTerminator(r)&&tokenIsIdentifier(this.state.type)){return this.tsParseTypeAliasDeclaration(e)}break}}tsCheckLineTerminator(e){if(e){if(this.hasFollowingLineBreak())return false;this.next();return true}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=true;const r=this.tsTryParseAndCatch((()=>{const t=this.startNodeAt(e);t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier);super.parseFunctionParams(t);t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation();this.expect(19);return t}));this.state.maybeInArrowParameters=t;if(!r)return;return super.parseArrowExpression(r,null,true)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();e.params=this.tsInType((()=>this.tsInTopLevelContext((()=>{this.expect(47);return this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))}))));if(e.params.length===0){this.raise(re.EmptyTypeArguments,e)}else if(!this.state.inType&&this.curContext()===f.brace){this.reScan_lt_gt()}this.expect(48);return this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return tokenIsTSDeclarationStart(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return false;return super.isExportDefaultSpecifier()}parseBindingElement(e,t){const r=t.length?t[0].loc.start:this.state.startLoc;const s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);const a=s.accessibility;const n=s.override;const i=s.readonly;if(!(e&4)&&(a||i||n)){this.raise(re.UnexpectedParameterModifier,r)}const o=this.parseMaybeDefault();if(e&2){this.parseFunctionParamType(o)}const l=this.parseMaybeDefault(o.loc.start,o);if(a||i||n){const e=this.startNodeAt(r);if(t.length){e.decorators=t}if(a)e.accessibility=a;if(i)e.readonly=i;if(n)e.override=n;if(l.type!=="Identifier"&&l.type!=="AssignmentPattern"){this.raise(re.UnsupportedParameterPropertyKind,e)}e.parameter=l;return this.finishNode(e,"TSParameterProperty")}if(t.length){o.decorators=t}return l}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params){if(t.type!=="Identifier"&&t.optional&&!this.state.isAmbientContext){this.raise(re.PatternIsOptional,t)}}}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r);this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,r=false){if(this.match(14)){e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14)}const s=t==="FunctionDeclaration"?"TSDeclareFunction":t==="ClassMethod"||t==="ClassPrivateMethod"?"TSDeclareMethod":undefined;if(s&&!this.match(5)&&this.isLineTerminator()){return this.finishNode(e,s)}if(s==="TSDeclareFunction"&&this.state.isAmbientContext){this.raise(re.DeclareFunctionHasImplementation,e);if(e.declare){return super.parseFunctionBodyAndFinish(e,s,r)}}this.tsDisallowOptionalPattern(e);return super.parseFunctionBodyAndFinish(e,t,r)}registerFunctionStatementId(e){if(!e.body&&e.id){this.checkIdentifier(e.id,1024)}else{super.registerFunctionStatementId(e)}}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{if((e==null?void 0:e.type)==="TSTypeCastExpression"){this.raise(re.UnexpectedTypeAnnotation,e.typeAnnotation)}}))}toReferencedList(e,t){this.tsCheckForInvalidTypeCasts(e);return e}parseArrayLike(e,t,r,s){const a=super.parseArrayLike(e,t,r,s);if(a.type==="ArrayExpression"){this.tsCheckForInvalidTypeCasts(a.elements)}return a}parseSubscript(e,t,r,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=false;this.next();const r=this.startNodeAt(t);r.expression=e;return this.finishNode(r,"TSNonNullExpression")}let a=false;if(this.match(18)&&this.lookaheadCharCode()===60){if(r){s.stop=true;return e}s.optionalChainMember=a=true;this.next()}if(this.match(47)||this.match(51)){let n;const i=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e){return e}}const i=this.tsParseTypeArgumentsInExpression();if(!i)return;if(a&&!this.match(10)){n=this.state.curPosition();return}if(tokenIsTemplate(this.state.type)){const r=super.parseTaggedTemplateExpression(e,t,s);{r.typeParameters=i}return r}if(!r&&this.eat(10)){const r=this.startNodeAt(t);r.callee=e;r.arguments=this.parseCallExpressionArguments(11);this.tsCheckForInvalidTypeCasts(r.arguments);{r.typeParameters=i}if(s.optionalChainMember){r.optional=a}return this.finishCallExpression(r,s.optionalChainMember)}const o=this.state.type;if(o===48||o===52||o!==10&&tokenCanStartExpression(o)&&!this.hasPrecedingLineBreak()){return}const l=this.startNodeAt(t);l.expression=e;{l.typeParameters=i}return this.finishNode(l,"TSInstantiationExpression")}));if(n){this.unexpected(n,10)}if(i){if(i.type==="TSInstantiationExpression"){if(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40){this.raise(re.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc)}if(!this.match(16)&&!this.match(18)){i.expression=super.stopParseSubscript(e,s)}}return i}}return super.parseSubscript(e,t,r,s)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:r}=e;if(r.type==="TSInstantiationExpression"&&!((t=r.extra)!=null&&t.parenthesized)){{e.typeParameters=r.typeParameters}e.callee=r.expression}}parseExprOp(e,t,r){let s;if(tokenOperatorPrecedence(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){const a=this.startNodeAt(t);a.expression=e;a.typeAnnotation=this.tsInType((()=>{this.next();if(this.match(75)){if(s){this.raise(p.UnexpectedKeyword,this.state.startLoc,{keyword:"const"})}return this.tsParseTypeReference()}return this.tsParseType()}));this.finishNode(a,s?"TSSatisfiesExpression":"TSAsExpression");this.reScan_lt_gt();return this.parseExprOp(a,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,s){if(!this.state.isAmbientContext){super.checkReservedWord(e,t,r,s)}}checkImportReflection(e){super.checkImportReflection(e);if(e.module&&e.importKind!=="value"){this.raise(re.ImportReflectionHasImportType,e.specifiers[0].loc.start)}}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return true;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?t===123||t===42:t!==61}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,s){super.applyImportPhase(e,t,r,s);if(t){e.exportKind=r==="type"?"type":"value"}else{e.importKind=r==="type"||r==="typeof"?r:"value"}}parseImport(e){if(this.match(134)){e.importKind="value";return super.parseImport(e)}let t;if(tokenIsIdentifier(this.state.type)&&this.lookaheadCharCode()===61){e.importKind="value";return this.tsParseImportEqualsDeclaration(e)}else if(this.isContextual(130)){const r=this.parseMaybeImportPhase(e,false);if(this.lookaheadCharCode()===61){return this.tsParseImportEqualsDeclaration(e,r)}else{t=super.parseImportSpecifiersAndAfter(e,r)}}else{t=super.parseImport(e)}if(t.importKind==="type"&&t.specifiers.length>1&&t.specifiers[0].type==="ImportDefaultSpecifier"){this.raise(re.TypeImportCannotSpecifyDefaultAndNamed,t)}return t}parseExport(e,t){if(this.match(83)){const t=e;this.next();let r=null;if(this.isContextual(130)&&this.isPotentialImportPhase(false)){r=this.parseMaybeImportPhase(t,false)}else{t.importKind="value"}const s=this.tsParseImportEqualsDeclaration(t,r,true);{return s}}else if(this.eat(29)){const t=e;t.expression=super.parseExpression();this.semicolon();this.sawUnambiguousESM=true;return this.finishNode(t,"TSExportAssignment")}else if(this.eatContextual(93)){const t=e;this.expectContextual(128);t.id=this.parseIdentifier();this.semicolon();return this.finishNode(t,"TSNamespaceExportDeclaration")}else{return super.parseExport(e,t)}}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();this.next();e.abstract=true;return this.parseClass(e,true,true)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,r=false){const{isAmbientContext:s}=this.state;const a=super.parseVarStatement(e,t,r||s);if(!s)return a;for(const{id:e,init:r}of a.declarations){if(!r)continue;if(t==="var"||t==="let"||!!e.typeAnnotation){this.raise(re.InitializerNotAllowedInAmbientContext,r)}else if(!isValidAmbientConstInitializer(r,this.hasPlugin("estree"))){this.raise(re.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,r)}}return a}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();this.expect(75);return this.tsParseEnumDeclaration(e,{const:true})}if(this.isContextual(126)){return this.tsParseEnumDeclaration(this.startNode())}if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>{if(tsIsAccessModifier(t)){return e.accessibility===t}return!!e[t]}))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,t,r){const s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:true,errorTemplate:re.InvalidModifierOnTypeParameterPositions},t);const callParseClassMemberWithIsStatic=()=>{if(this.tsIsStartOfStaticBlocks()){this.next();this.next();if(this.tsHasSomeModifiers(t,s)){this.raise(re.StaticBlockCannotHaveModifier,this.state.curPosition())}super.parseClassStaticBlock(e,t)}else{this.parseClassMemberWithIsStatic(e,t,r,!!t.static)}};if(t.declare){this.tsInAmbientContext(callParseClassMemberWithIsStatic)}else{callParseClassMemberWithIsStatic()}}parseClassMemberWithIsStatic(e,t,r,s){const a=this.tsTryParseIndexSignature(t);if(a){e.body.push(a);if(t.abstract){this.raise(re.IndexSignatureHasAbstract,t)}if(t.accessibility){this.raise(re.IndexSignatureHasAccessibility,t,{modifier:t.accessibility})}if(t.declare){this.raise(re.IndexSignatureHasDeclare,t)}if(t.override){this.raise(re.IndexSignatureHasOverride,t)}return}if(!this.state.inAbstractClass&&t.abstract){this.raise(re.NonAbstractClassHasAbstractMethod,t)}if(t.override){if(!r.hadSuperClass){this.raise(re.OverrideNotInSubClass,t)}}super.parseClassMemberWithIsStatic(e,t,r,s)}parsePostMemberNameModifiers(e){const t=this.eat(17);if(t)e.optional=true;if(e.readonly&&this.match(10)){this.raise(re.ClassMethodHasReadonly,e)}if(e.declare&&this.match(10)){this.raise(re.ClassMethodHasDeclare,e)}}parseExpressionStatement(e,t,r){const s=t.type==="Identifier"?this.tsParseExpressionStatement(e,t,r):undefined;return s||super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return true;return super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41){this.setOptionalParametersError(r);return e}}return super.parseConditional(e,t,r)}parseParenItem(e,t){const r=super.parseParenItem(e,t);if(this.eat(17)){r.optional=true;this.resetEndLocation(e)}if(this.match(14)){const r=this.startNodeAt(t);r.expression=e;r.typeAnnotation=this.tsParseTypeAnnotation();return this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125)){return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)))}const t=this.state.startLoc;const r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration())){throw this.raise(re.ExpectedAmbientAfterExportDeclare,this.state.startLoc)}const s=tokenIsIdentifier(this.state.type);const a=s&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);if(!a)return null;if(a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||r){e.exportKind="type"}if(r&&a.type!=="TSImportEqualsDeclaration"){this.resetStartLocation(a,t);a.declare=true}return a}parseClassId(e,t,r,s){if((!t||r)&&this.isContextual(113)){return}super.parseClassId(e,t,r,e.declare?1024:8331);const a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(a)e.typeParameters=a}parseClassPropertyAnnotation(e){if(!e.optional){if(this.eat(35)){e.definite=true}else if(this.eat(17)){e.optional=true}}const t=this.tsTryParseTypeAnnotation();if(t)e.typeAnnotation=t}parseClassProperty(e){this.parseClassPropertyAnnotation(e);if(this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)){this.raise(re.DeclareClassFieldHasInitializer,this.state.startLoc)}if(e.abstract&&this.match(29)){const{key:t}=e;this.raise(re.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:t.type==="Identifier"&&!e.computed?t.name:`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){if(e.abstract){this.raise(re.PrivateElementHasAbstract,e)}if(e.accessibility){this.raise(re.PrivateElementHasAccessibility,e,{modifier:e.accessibility})}this.parseClassPropertyAnnotation(e);return super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){this.parseClassPropertyAnnotation(e);if(e.optional){this.raise(re.AccessorCannotBeOptional,e)}return super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,s,a,n){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(i&&a){this.raise(re.ConstructorHasTypeParameters,i)}const{declare:o=false,kind:l}=t;if(o&&(l==="get"||l==="set")){this.raise(re.DeclareAccessor,t,{kind:l})}if(i)t.typeParameters=i;super.pushClassMethod(e,t,r,s,a,n)}pushClassPrivateMethod(e,t,r,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(a)t.typeParameters=a;super.pushClassPrivateMethod(e,t,r,s)}declareClassPrivateMethodInScope(e,t){if(e.type==="TSDeclareMethod")return;if(e.type==="MethodDefinition"&&e.value.body==null){return}super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){super.parseClassSuper(e);if(e.superClass&&(this.match(47)||this.match(51))){{e.superTypeParameters=this.tsParseTypeArgumentsInExpression()}}if(this.eatContextual(113)){e.implements=this.tsParseHeritageClause("implements")}}parseObjPropValue(e,t,r,s,a,n,i){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(o)e.typeParameters=o;return super.parseObjPropValue(e,t,r,s,a,n,i)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(r)e.typeParameters=r;super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t);if(e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)){e.definite=true}const r=this.tsTryParseTypeAnnotation();if(r){e.id.typeAnnotation=r;this.resetEndLocation(e.id)}}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){e.returnType=this.tsParseTypeAnnotation()}return super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,s,a,n,i;let o;let l;let c;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){o=this.state.clone();l=this.tryParse((()=>super.parseMaybeAssign(e,t)),o);if(!l.error)return l.node;const{context:r}=this.state;const s=r[r.length-1];if(s===f.j_oTag||s===f.j_expr){r.pop()}}if(!((r=l)!=null&&r.error)&&!this.match(47)){return super.parseMaybeAssign(e,t)}if(!o||o===this.state)o=this.state.clone();let u;const p=this.tryParse((r=>{var s,a;u=this.tsParseTypeParameters(this.tsParseConstModifier);const n=super.parseMaybeAssign(e,t);if(n.type!=="ArrowFunctionExpression"||(s=n.extra)!=null&&s.parenthesized){r()}if(((a=u)==null?void 0:a.params.length)!==0){this.resetStartLocationFromNode(n,u)}n.typeParameters=u;return n}),o);if(!p.error&&!p.aborted){if(u)this.reportReservedArrowTypeParam(u);return p.node}if(!l){assert(!this.hasPlugin("jsx"));c=this.tryParse((()=>super.parseMaybeAssign(e,t)),o);if(!c.error)return c.node}if((s=l)!=null&&s.node){this.state=l.failState;return l.node}if(p.node){this.state=p.failState;if(u)this.reportReservedArrowTypeParam(u);return p.node}if((a=c)!=null&&a.node){this.state=c.failState;return c.node}throw((n=l)==null?void 0:n.error)||p.error||((i=c)==null?void 0:i.error)}reportReservedArrowTypeParam(e){var t;if(e.params.length===1&&!e.params[0].constraint&&!((t=e.extra)!=null&&t.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")){this.raise(re.ReservedArrowTypeParam,e)}}parseMaybeUnary(e,t){if(!this.hasPlugin("jsx")&&this.match(47)){return this.tsParseTypeAssertion()}return super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))e();return t}));if(t.aborted)return;if(!t.thrown){if(t.error)this.state=t.failState;e.returnType=t.node}}return super.parseArrow(e)}parseFunctionParamType(e){if(this.eat(17)){e.optional=true}const t=this.tsTryParseTypeAnnotation();if(t)e.typeAnnotation=t;this.resetEndLocation(e);return e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return true;default:return super.isAssignable(e,t)}}toAssignable(e,t=false){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(t){this.expressionScope.recordArrowParameterBindingError(re.UnexpectedTypeCastInParameter,e)}else{this.raise(re.UnexpectedTypeCastInParameter,e)}this.toAssignable(e.expression,t);break;case"AssignmentExpression":if(!t&&e.left.type==="TSTypeCastExpression"){e.left=this.typeCastToParameter(e.left)}default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,false);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r){switch(e){case"TSTypeCastExpression":return true;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(r!==64||!t)&&["expression",true];default:return super.isValidLVal(e,t,r)}}parseBindingAtom(){if(this.state.type===78){return this.parseIdentifier(true)}return super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){const r=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const s=super.parseMaybeDecoratorArguments(e,t);{s.typeParameters=r}return s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e){this.next();return false}return super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);if(r.type==="AssignmentPattern"&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start){this.raise(re.TypeAnnotationAfterAssign,r.typeAnnotation)}return r}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;if(e===47){this.state.pos-=1;this.readToken_lt()}else if(e===48){this.state.pos-=1;this.readToken_gt()}}reScan_lt(){const{type:e}=this.state;if(e===51){this.state.pos-=2;this.finishOp(47,1);return 47}return e}toAssignableListItem(e,t,r){const s=e[t];if(s.type==="TSTypeCastExpression"){e[t]=this.typeCastToParameter(s)}super.toAssignableListItem(e,t,r)}typeCastToParameter(e){e.expression.typeAnnotation=e.typeAnnotation;this.resetEndLocation(e.expression,e.typeAnnotation.loc.end);return e.expression}shouldParseArrow(e){if(this.match(14)){return e.every((e=>this.isAssignable(e,true)))}return super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));if(t){{e.typeParameters=t}}}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e);const r=this.getObjectOrClassMethodParams(e);const s=r[0];const a=s&&this.isThisParam(s);return a?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam();const t=this.tsTryParseTypeAnnotation();if(t){e.typeAnnotation=t;this.resetEndLocation(e)}return e}tsInAmbientContext(e){const{isAmbientContext:t,strict:r}=this.state;this.state.isAmbientContext=true;this.state.strict=false;try{return e()}finally{this.state.isAmbientContext=t;this.state.strict=r}}parseClass(e,t,r){const s=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(e,t){if(this.match(80)){e.abstract=true;return this.maybeTakeDecorators(t,this.parseClass(e,true,false))}else if(this.isContextual(129)){if(!this.hasFollowingLineBreak()){e.abstract=true;this.raise(re.NonClassMethodPropertyHasAbstractModifier,e);return this.tsParseInterfaceDeclaration(e)}}else{this.unexpected(null,80)}}parseMethod(e,t,r,s,a,n,i){const o=super.parseMethod(e,t,r,s,a,n,i);if(o.abstract||o.type==="TSAbstractMethodDefinition"){const e=this.hasPlugin("estree");const t=e?o.value:o;if(t.body){const{key:e}=o;this.raise(re.AbstractMethodHasImplementation,o,{methodName:e.type==="Identifier"&&!o.computed?e.name:`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`})}}return o}tsParseTypeParameterName(){const e=this.parseIdentifier();return e.name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext()){this.state.isAmbientContext=true}return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext()){this.state.isAmbientContext=true}return super.getExpression()}parseExportSpecifier(e,t,r,s){if(!t&&s){this.parseTypeOnlyImportExportSpecifier(e,false,r);return this.finishNode(e,"ExportSpecifier")}e.exportKind="value";return super.parseExportSpecifier(e,t,r,s)}parseImportSpecifier(e,t,r,s,a){if(!t&&s){this.parseTypeOnlyImportExportSpecifier(e,true,r);return this.finishNode(e,"ImportSpecifier")}e.importKind="value";return super.parseImportSpecifier(e,t,r,s,r?4098:4096)}parseTypeOnlyImportExportSpecifier(e,t,r){const s=t?"imported":"local";const a=t?"local":"exported";let n=e[s];let i;let o=false;let l=true;const c=n.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const r=this.parseIdentifier();if(tokenIsKeywordOrIdentifier(this.state.type)){o=true;n=e;i=t?this.parseIdentifier():this.parseModuleExportName();l=false}else{i=r;l=false}}else if(tokenIsKeywordOrIdentifier(this.state.type)){l=false;i=t?this.parseIdentifier():this.parseModuleExportName()}else{o=true;n=e}}else if(tokenIsKeywordOrIdentifier(this.state.type)){o=true;if(t){n=this.parseIdentifier(true);if(!this.isContextual(93)){this.checkReservedWord(n.name,n.loc.start,true,true)}}else{n=this.parseModuleExportName()}}if(o&&r){this.raise(t?re.TypeModifierIsUsedInTypeImports:re.TypeModifierIsUsedInTypeExports,c)}e[s]=n;e[a]=i;const u=t?"importKind":"exportKind";e[u]=o?"type":"value";if(l&&this.eatContextual(93)){e[a]=t?this.parseIdentifier():this.parseModuleExportName()}if(!e[a]){e[a]=this.cloneIdentifier(e[s])}if(t){this.checkIdentifier(e[a],o?4098:4096)}}fillOptionalPropertiesForTSESLint(e){var t,r,s,a,n,i,o,l,c,u,p,d,f,y,h,g,b,x,v,E,S,T,j,w,P,C,A,D,k,I,_,O,N,F,B,M,L,R,U,q,V,W,K,$,H,G;switch(e.type){case"ExpressionStatement":(t=e.directive)!=null?t:e.directive=undefined;return;case"RestElement":e.value=undefined;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(r=e.decorators)!=null?r:e.decorators=[];(s=e.optional)!=null?s:e.optional=false;(a=e.typeAnnotation)!=null?a:e.typeAnnotation=undefined;return;case"TSParameterProperty":(n=e.accessibility)!=null?n:e.accessibility=undefined;(i=e.decorators)!=null?i:e.decorators=[];(o=e.override)!=null?o:e.override=false;(l=e.readonly)!=null?l:e.readonly=false;(c=e.static)!=null?c:e.static=false;return;case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(u=e.declare)!=null?u:e.declare=false;(p=e.returnType)!=null?p:e.returnType=undefined;(d=e.typeParameters)!=null?d:e.typeParameters=undefined;return;case"Property":(f=e.optional)!=null?f:e.optional=false;return;case"TSMethodSignature":case"TSPropertySignature":(y=e.optional)!=null?y:e.optional=false;case"TSIndexSignature":(h=e.accessibility)!=null?h:e.accessibility=undefined;(g=e.readonly)!=null?g:e.readonly=false;(b=e.static)!=null?b:e.static=false;return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(x=e.declare)!=null?x:e.declare=false;(v=e.definite)!=null?v:e.definite=false;(E=e.readonly)!=null?E:e.readonly=false;(S=e.typeAnnotation)!=null?S:e.typeAnnotation=undefined;case"TSAbstractMethodDefinition":case"MethodDefinition":(T=e.accessibility)!=null?T:e.accessibility=undefined;(j=e.decorators)!=null?j:e.decorators=[];(w=e.override)!=null?w:e.override=false;(P=e.optional)!=null?P:e.optional=false;return;case"ClassExpression":(C=e.id)!=null?C:e.id=null;case"ClassDeclaration":(A=e.abstract)!=null?A:e.abstract=false;(D=e.declare)!=null?D:e.declare=false;(k=e.decorators)!=null?k:e.decorators=[];(I=e.implements)!=null?I:e.implements=[];(_=e.superTypeArguments)!=null?_:e.superTypeArguments=undefined;(O=e.typeParameters)!=null?O:e.typeParameters=undefined;return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(N=e.declare)!=null?N:e.declare=false;return;case"VariableDeclarator":(F=e.definite)!=null?F:e.definite=false;return;case"TSEnumDeclaration":(B=e.const)!=null?B:e.const=false;(M=e.declare)!=null?M:e.declare=false;return;case"TSEnumMember":(L=e.computed)!=null?L:e.computed=false;return;case"TSImportType":(R=e.qualifier)!=null?R:e.qualifier=null;(U=e.options)!=null?U:e.options=null;return;case"TSInterfaceDeclaration":(q=e.declare)!=null?q:e.declare=false;(V=e.extends)!=null?V:e.extends=[];return;case"TSModuleDeclaration":(W=e.declare)!=null?W:e.declare=false;(K=e.global)!=null?K:e.global=e.kind==="global";return;case"TSTypeParameter":($=e.const)!=null?$:e.const=false;(H=e.in)!=null?H:e.in=false;(G=e.out)!=null?G:e.out=false;return}}};function isPossiblyLiteralEnum(e){if(e.type!=="MemberExpression")return false;const{computed:t,property:r}=e;if(t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)){return false}return isUncomputedMemberExpressionChain(e.object)}function isValidAmbientConstInitializer(e,t){var r;const{type:s}=e;if((r=e.extra)!=null&&r.parenthesized){return false}if(t){if(s==="Literal"){const{value:t}=e;if(typeof t==="string"||typeof t==="boolean"){return true}}}else{if(s==="StringLiteral"||s==="BooleanLiteral"){return true}}if(isNumber(e,t)||isNegativeNumber(e,t)){return true}if(s==="TemplateLiteral"&&e.expressions.length===0){return true}if(isPossiblyLiteralEnum(e)){return true}return false}function isNumber(e,t){if(t){return e.type==="Literal"&&(typeof e.value==="number"||"bigint"in e)}return e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function isNegativeNumber(e,t){if(e.type==="UnaryExpression"){const{operator:r,argument:s}=e;if(r==="-"&&isNumber(s,t)){return true}}return false}function isUncomputedMemberExpressionChain(e){if(e.type==="Identifier")return true;if(e.type!=="MemberExpression"||e.computed){return false}return isUncomputedMemberExpressionChain(e.object)}const se=ParseErrorEnum`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});var placeholders=e=>class PlaceholdersParserMixin extends e{parsePlaceholder(e){if(this.match(133)){const t=this.startNode();this.next();this.assertNoSpace();t.name=super.parseIdentifier(true);this.assertNoSpace();this.expect(133);return this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let r=e;if(!r.expectedNode||!r.type){r=this.finishNode(r,"Placeholder")}r.expectedNode=t;return r}getTokenFromCode(e){if(e===37&&this.input.charCodeAt(this.state.pos+1)===37){this.finishOp(133,2)}else{super.getTokenFromCode(e)}}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,s){if(e!==undefined){super.checkReservedWord(e,t,r,s)}}cloneIdentifier(e){const t=super.cloneIdentifier(e);if(t.type==="Placeholder"){t.expectedNode=e.expectedNode}return t}cloneStringLiteral(e){if(e.type==="Placeholder"){return this.cloneIdentifier(e)}return super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r){return e==="Placeholder"||super.isValidLVal(e,t,r)}toAssignable(e,t){if(e&&e.type==="Placeholder"&&e.expectedNode==="Expression"){e.expectedNode="Pattern"}else{super.toAssignable(e,t)}}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t)){return true}const r=this.lookahead();if(r.type===133){return true}return false}verifyBreakContinue(e,t){if(e.label&&e.label.type==="Placeholder")return;super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var r;if(t.type!=="Placeholder"||(r=t.extra)!=null&&r.parenthesized){return super.parseExpressionStatement(e,t)}if(this.match(14)){const r=e;r.label=this.finishPlaceholder(t,"Identifier");this.next();r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration();return this.finishNode(r,"LabeledStatement")}this.semicolon();const s=e;s.name=t.name;return this.finishPlaceholder(s,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){const s=t?"ClassDeclaration":"ClassExpression";this.next();const a=this.state.strict;const n=this.parsePlaceholder("Identifier");if(n){if(this.match(81)||this.match(133)||this.match(5)){e.id=n}else if(r||!t){e.id=null;e.body=this.finishPlaceholder(n,"ClassBody");return this.finishNode(e,s)}else{throw this.raise(se.ClassNameIsRequired,this.state.startLoc)}}else{this.parseClassId(e,t,r)}super.parseClassSuper(e);e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,a);return this.finishNode(e,s)}parseExport(e,t){const r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);const s=e;if(!this.isContextual(98)&&!this.match(12)){s.specifiers=[];s.source=null;s.declaration=this.finishPlaceholder(r,"Declaration");return this.finishNode(s,"ExportNamedDeclaration")}this.expectPlugin("exportDefaultFrom");const a=this.startNode();a.exported=r;s.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")];return super.parseExport(s,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")){if(this.input.startsWith(tokenLabelName(133),this.nextTokenStartSince(e+4))){return true}}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var r;if((r=e.specifiers)!=null&&r.length){return true}return super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;if(t!=null&&t.length){e.specifiers=t.filter((e=>e.exported.type==="Placeholder"))}super.checkExport(e);e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);e.specifiers=[];if(!this.isContextual(98)&&!this.match(12)){e.source=this.finishPlaceholder(t,"StringLiteral");this.semicolon();return this.finishNode(e,"ImportDeclaration")}const r=this.startNodeAtNode(t);r.local=t;e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier"));if(this.eat(12)){const t=this.maybeParseStarImportSpecifier(e);if(!t)this.parseNamedImportSpecifiers(e)}this.expectContextual(98);e.source=this.parseImportSource();this.semicolon();return this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)){this.raise(se.UnexpectedSpace,this.state.lastTokEndLoc)}}};var v8intrinsic=e=>class V8IntrinsicMixin extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc;const t=this.startNode();this.next();if(tokenIsIdentifier(this.state.type)){const e=this.parseIdentifierName();const r=this.createIdentifier(t,e);this.castNodeTo(r,"V8IntrinsicIdentifier");if(this.match(10)){return r}}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};const ae=["minimal","fsharp","hack","smart"];const ne=["^^","@@","^","%","#"];function validatePlugins(e){if(e.has("decorators")){if(e.has("decorators-legacy")){throw new Error("Cannot use the decorators and decorators-legacy plugin together")}const t=e.get("decorators").decoratorsBeforeExport;if(t!=null&&typeof t!=="boolean"){throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.")}const r=e.get("decorators").allowCallParenthesized;if(r!=null&&typeof r!=="boolean"){throw new Error("'allowCallParenthesized' must be a boolean.")}}if(e.has("flow")&&e.has("typescript")){throw new Error("Cannot combine flow and typescript plugins.")}if(e.has("placeholders")&&e.has("v8intrinsic")){throw new Error("Cannot combine placeholders and v8intrinsic plugins.")}if(e.has("pipelineOperator")){var t;const s=e.get("pipelineOperator").proposal;if(!ae.includes(s)){const e=ae.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if(s==="hack"){if(e.has("placeholders")){throw new Error("Cannot combine placeholders plugin and Hack-style pipes.")}if(e.has("v8intrinsic")){throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.")}const t=e.get("pipelineOperator").topicToken;if(!ne.includes(t)){const e=ne.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}{var r;if(t==="#"&&((r=e.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash"){throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}}}else if(s==="smart"&&((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash"){throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}}if(e.has("moduleAttributes")){{if(e.has("deprecatedImportAssert")||e.has("importAssertions")){throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.")}const t=e.get("moduleAttributes").version;if(t!=="may-2020"){throw new Error("The 'moduleAttributes' plugin requires a 'version' option,"+" representing the last proposal update. Currently, the"+" only supported value is 'may-2020'.")}}}if(e.has("importAssertions")){if(e.has("deprecatedImportAssert")){throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.")}}if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax){{e.set("deprecatedImportAssert",{})}}if(e.has("recordAndTuple")){{const t=e.get("recordAndTuple").syntaxType;if(t!=null){const e=["hash","bar"];if(!e.includes(t)){throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map((e=>`'${e}'`)).join(", "))}}}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");e.missingPlugins="doExpressions";throw e}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07"){throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option,"+" representing the last proposal update. Currently, the"+" only supported value is '2023-07'.")}}const ie={estree:estree,jsx:jsx,flow:flow,typescript:typescript,v8intrinsic:v8intrinsic,placeholders:placeholders};const oe=Object.keys(ie);class ExpressionParser extends LValParser{checkProto(e,t,r,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand){return r}const a=e.key;const n=a.type==="Identifier"?a.name:a.value;if(n==="__proto__"){if(t){this.raise(p.RecordNoProto,a);return true}if(r){if(s){if(s.doubleProtoLoc===null){s.doubleProtoLoc=a.loc.start}}else{this.raise(p.DuplicateProto,a)}}return true}return r}shouldExitDescending(e,t){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===t}getExpression(){this.enterInitialScopes();this.nextToken();if(this.match(140)){throw this.raise(p.ParseExpressionEmptyInput,this.state.startLoc)}const e=this.parseExpression();if(!this.match(140)){throw this.raise(p.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)})}this.finalizeRemainingComments();e.comments=this.comments;e.errors=this.state.errors;if(this.optionFlags&256){e.tokens=this.tokens}return e}parseExpression(e,t){if(e){return this.disallowInAnd((()=>this.parseExpressionBase(t)))}return this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.startLoc;const r=this.parseMaybeAssign(e);if(this.match(12)){const s=this.startNodeAt(t);s.expressions=[r];while(this.eat(12)){s.expressions.push(this.parseMaybeAssign(e))}this.toReferencedList(s.expressions);return this.finishNode(s,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){const r=this.state.startLoc;const s=this.isContextual(108);if(s){if(this.prodParam.hasYield){this.next();let e=this.parseYield(r);if(t){e=t.call(this,e,r)}return e}}let a;if(e){a=false}else{e=new ExpressionErrors;a=true}const{type:n}=this.state;if(n===10||tokenIsIdentifier(n)){this.state.potentialArrowAt=this.state.start}let i=this.parseMaybeConditional(e);if(t){i=t.call(this,i,r)}if(tokenIsAssignment(this.state.type)){const t=this.startNodeAt(r);const s=this.state.value;t.operator=s;if(this.match(29)){this.toAssignable(i,true);t.left=i;const s=r.index;if(e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=s){e.doubleProtoLoc=null}if(e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=s){e.shorthandAssignLoc=null}if(e.privateKeyLoc!=null&&e.privateKeyLoc.index>=s){this.checkDestructuringPrivate(e);e.privateKeyLoc=null}}else{t.left=i}this.next();t.right=this.parseMaybeAssign();this.checkLVal(i,this.finishNode(t,"AssignmentExpression"));return t}else if(a){this.checkExpressionErrors(e,true)}if(s){const{type:e}=this.state;const t=this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(54);if(t&&!this.isAmbiguousPrefixOrIdentifier()){this.raiseOverwrite(p.YieldNotInGeneratorFunction,r);return this.parseYield(r)}}return i}parseMaybeConditional(e){const t=this.state.startLoc;const r=this.state.potentialArrowAt;const s=this.parseExprOps(e);if(this.shouldExitDescending(s,r)){return s}return this.parseConditional(s,t,e)}parseConditional(e,t,r){if(this.eat(17)){const r=this.startNodeAt(t);r.test=e;r.consequent=this.parseMaybeAssignAllowIn();this.expect(14);r.alternate=this.parseMaybeAssign();return this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc;const r=this.state.potentialArrowAt;const s=this.parseMaybeUnaryOrPrivate(e);if(this.shouldExitDescending(s,r)){return s}return this.parseExprOp(s,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);if(r>=tokenOperatorPrecedence(58)||!this.prodParam.hasIn||!this.match(58)){this.raise(p.PrivateInExpectedIn,e,{identifierName:t})}this.classScope.usePrivateName(t,e.loc.start)}const s=this.state.type;if(tokenIsOperator(s)&&(this.prodParam.hasIn||!this.match(58))){let a=tokenOperatorPrecedence(s);if(a>r){if(s===39){this.expectPlugin("pipelineOperator");if(this.state.inFSharpPipelineDirectBody){return e}this.checkPipelineAtInfixOperator(e,t)}const n=this.startNodeAt(t);n.left=e;n.operator=this.state.value;const i=s===41||s===42;const o=s===40;if(o){a=tokenOperatorPrecedence(42)}this.next();if(s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait){throw this.raise(p.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}}n.right=this.parseExprOpRightExpr(s,a);const l=this.finishNode(n,i||o?"LogicalExpression":"BinaryExpression");const c=this.state.type;if(o&&(c===41||c===42)||i&&c===40){throw this.raise(p.MixingCoalesceWithLogical,this.state.startLoc)}return this.parseExprOp(l,t,r)}}return e}parseExprOpRightExpr(e,t){const r=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}if(this.getPluginOption("pipelineOperator","proposal")==="smart"){return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108)){throw this.raise(p.PipeBodyIsTighter,this.state.startLoc)}return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)}))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){const r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,tokenIsRightAssociative(e)?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state;const r=this.parseMaybeAssign();const s=l.has(r.type);if(s&&!((e=r.extra)!=null&&e.parenthesized)){this.raise(p.PipeUnparenthesizedBody,t,{type:r.type})}if(!this.topicReferenceWasUsedInCurrentContext()){this.raise(p.PipeTopicUnused,t)}return r}checkExponentialAfterUnary(e){if(this.match(57)){this.raise(p.UnexpectedTokenUnaryExponentiation,e.argument)}}parseMaybeUnary(e,t){const r=this.state.startLoc;const s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();const e=this.parseAwait(r);if(!t)this.checkExponentialAfterUnary(e);return e}const a=this.match(34);const n=this.startNode();if(tokenIsPrefix(this.state.type)){n.operator=this.state.value;n.prefix=true;if(this.match(72)){this.expectPlugin("throwExpressions")}const r=this.match(89);this.next();n.argument=this.parseMaybeUnary(null,true);this.checkExpressionErrors(e,true);if(this.state.strict&&r){const e=n.argument;if(e.type==="Identifier"){this.raise(p.StrictDelete,n)}else if(this.hasPropertyAsPrivateName(e)){this.raise(p.DeletePrivateField,n)}}if(!a){if(!t){this.checkExponentialAfterUnary(n)}return this.finishNode(n,"UnaryExpression")}}const i=this.parseUpdate(n,a,e);if(s){const{type:e}=this.state;const t=this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(54);if(t&&!this.isAmbiguousPrefixOrIdentifier()){this.raiseOverwrite(p.AwaitNotInAsyncContext,r);return this.parseAwait(r)}}return i}parseUpdate(e,t,r){if(t){const t=e;this.checkLVal(t.argument,this.finishNode(t,"UpdateExpression"));return e}const s=this.state.startLoc;let a=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,false))return a;while(tokenIsPostfix(this.state.type)&&!this.canInsertSemicolon()){const e=this.startNodeAt(s);e.operator=this.state.value;e.prefix=false;e.argument=a;this.next();this.checkLVal(a,a=this.finishNode(e,"UpdateExpression"))}return a}parseExprSubscripts(e){const t=this.state.startLoc;const r=this.state.potentialArrowAt;const s=this.parseExprAtom(e);if(this.shouldExitDescending(s,r)){return s}return this.parseSubscripts(s,t)}parseSubscripts(e,t,r){const s={optionalChainMember:false,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:false};do{e=this.parseSubscript(e,t,r,s);s.maybeAsyncArrow=false}while(!s.stop);return e}parseSubscript(e,t,r,s){const{type:a}=this.state;if(!r&&a===15){return this.parseBind(e,t,r,s)}else if(tokenIsTemplate(a)){return this.parseTaggedTemplateExpression(e,t,s)}let n=false;if(a===18){if(r){this.raise(p.OptionalChainingNoNew,this.state.startLoc);if(this.lookaheadCharCode()===40){return this.stopParseSubscript(e,s)}}s.optionalChainMember=n=true;this.next()}if(!r&&this.match(10)){return this.parseCoverCallAndAsyncArrowHead(e,t,s,n)}else{const r=this.eat(0);if(r||n||this.eat(16)){return this.parseMember(e,t,s,r,n)}else{return this.stopParseSubscript(e,s)}}}stopParseSubscript(e,t){t.stop=true;return e}parseMember(e,t,r,s,a){const n=this.startNodeAt(t);n.object=e;n.computed=s;if(s){n.property=this.parseExpression();this.expect(3)}else if(this.match(139)){if(e.type==="Super"){this.raise(p.SuperPrivateField,t)}this.classScope.usePrivateName(this.state.value,this.state.startLoc);n.property=this.parsePrivateName()}else{n.property=this.parseIdentifier(true)}if(r.optionalChainMember){n.optional=a;return this.finishNode(n,"OptionalMemberExpression")}else{return this.finishNode(n,"MemberExpression")}}parseBind(e,t,r,s){const a=this.startNodeAt(t);a.object=e;this.next();a.callee=this.parseNoCallExpr();s.stop=true;return this.parseSubscripts(this.finishNode(a,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,s){const a=this.state.maybeInArrowParameters;let n=null;this.state.maybeInArrowParameters=true;this.next();const i=this.startNodeAt(t);i.callee=e;const{maybeAsyncArrow:o,optionalChainMember:l}=r;if(o){this.expressionScope.enter(newAsyncArrowScope());n=new ExpressionErrors}if(l){i.optional=s}if(s){i.arguments=this.parseCallExpressionArguments(11)}else{i.arguments=this.parseCallExpressionArguments(11,e.type!=="Super",i,n)}let c=this.finishCallExpression(i,l);if(o&&this.shouldParseAsyncArrow()&&!s){r.stop=true;this.checkDestructuringPrivate(n);this.expressionScope.validateAsPattern();this.expressionScope.exit();c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)}else{if(o){this.checkExpressionErrors(n,true);this.expressionScope.exit()}this.toReferencedArguments(c)}this.state.maybeInArrowParameters=a;return c}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){const s=this.startNodeAt(t);s.tag=e;s.quasi=this.parseTemplate(true);if(r.optionalChainMember){this.raise(p.OptionalChainingNoTemplate,t)}return this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type==="Import"){if(e.arguments.length===0||e.arguments.length>2){this.raise(p.ImportCallArity,e)}else{for(const t of e.arguments){if(t.type==="SpreadElement"){this.raise(p.ImportCallSpreadArgument,t)}}}}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,s){const a=[];let n=true;const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;while(!this.eat(e)){if(n){n=false}else{this.expect(12);if(this.match(e)){if(r){this.addTrailingCommaExtraToNode(r)}this.next();break}}a.push(this.parseExprListItem(false,s,t))}this.state.inFSharpPipelineDirectBody=i;return a}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;this.resetPreviousNodeTrailingComments(t);this.expect(19);this.parseArrowExpression(e,t.arguments,true,(r=t.extra)==null?void 0:r.trailingCommaLoc);if(t.innerComments){setInnerComments(e,t.innerComments)}if(t.callee.trailingComments){setInnerComments(e,t.callee.trailingComments)}return e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,true)}parseExprAtom(e){let t;let r=null;const{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:t=this.startNode();this.next();if(this.match(16)){return this.parseImportMetaPropertyOrPhaseCall(t)}if(this.match(10)){if(this.optionFlags&512){return this.parseImportCall(t)}else{return this.finishNode(t,"Import")}}else{this.raise(p.UnsupportedImport,this.state.lastTokStartLoc);return this.finishNode(t,"Import")}case 78:t=this.startNode();this.next();return this.finishNode(t,"ThisExpression");case 90:{return this.parseDo(this.startNode(),false)}case 56:case 31:{this.readRegexp();return this.parseRegExpLiteral(this.state.value)}case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(true);case 86:return this.parseBooleanLiteral(false);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:{return this.parseArrayLike(3,true,false,e)}case 5:{return this.parseObjectLike(8,false,false,e)}case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),false);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(false);case 15:{t=this.startNode();this.next();t.object=null;const e=t.callee=this.parseNoCallExpr();if(e.type==="MemberExpression"){return this.finishNode(t,"BindExpression")}else{throw this.raise(p.UnsupportedBind,e)}}case 139:{this.raise(p.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value});return this.parsePrivateName()}case 33:{return this.parseTopicReferenceThenEqualsSign(54,"%")}case 32:{return this.parseTopicReferenceThenEqualsSign(44,"^")}case 37:case 38:{return this.parseTopicReference("hack")}case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e){return this.parseTopicReference(e)}this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());if(isIdentifierStart(e)||e===62){this.expectOnePlugin(["jsx","flow","typescript"])}else{this.unexpected()}break}default:{if(s===137){return this.parseDecimalLiteral(this.state.value)}else if(s===2||s===1){return this.parseArrayLike(this.state.type===2?4:3,false,true)}else if(s===6||s===7){return this.parseObjectLike(this.state.type===6?9:8,false,true)}}if(tokenIsIdentifier(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123){return this.parseModuleExpression()}const e=this.state.potentialArrowAt===this.state.start;const t=this.state.containsEsc;const r=this.parseIdentifier();if(!t&&r.name==="async"&&!this.canInsertSemicolon()){const{type:e}=this.state;if(e===68){this.resetPreviousNodeTrailingComments(r);this.next();return this.parseAsyncFunctionExpression(this.startNodeAtNode(r))}else if(tokenIsIdentifier(e)){if(this.lookaheadCharCode()===61){return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r))}else{return r}}else if(e===90){this.resetPreviousNodeTrailingComments(r);return this.parseDo(this.startNodeAtNode(r),true)}}if(e&&this.match(19)&&!this.canInsertSemicolon()){this.next();return this.parseArrowExpression(this.startNodeAtNode(r),[r],false)}return r}else{this.unexpected()}}}parseTopicReferenceThenEqualsSign(e,t){const r=this.getPluginOption("pipelineOperator","proposal");if(r){this.state.type=e;this.state.value=t;this.state.pos--;this.state.end--;this.state.endLoc=createPositionWithColumnOffset(this.state.endLoc,-1);return this.parseTopicReference(r)}else{this.unexpected()}}parseTopicReference(e){const t=this.startNode();const r=this.state.startLoc;const s=this.state.type;this.next();return this.finishTopicReference(t,r,e,s)}finishTopicReference(e,t,r,s){if(this.testTopicReferenceConfiguration(r,t,s)){if(r==="hack"){if(!this.topicReferenceIsAllowedInCurrentContext()){this.raise(p.PipeTopicUnbound,t)}this.registerTopicReference();return this.finishNode(e,"TopicReference")}else{if(!this.topicReferenceIsAllowedInCurrentContext()){this.raise(p.PrimaryTopicNotAllowed,t)}this.registerTopicReference();return this.finishNode(e,"PipelinePrimaryTopicReference")}}else{throw this.raise(p.PipeTopicUnconfiguredToken,t,{token:tokenLabelName(s)})}}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":{return this.hasPlugin(["pipelineOperator",{topicToken:tokenLabelName(r)}])}case"smart":return r===27;default:throw this.raise(p.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(functionFlags(true,this.prodParam.hasYield));const t=[this.parseIdentifier()];this.prodParam.exit();if(this.hasPrecedingLineBreak()){this.raise(p.LineTerminatorBeforeArrow,this.state.curPosition())}this.expect(19);return this.parseArrowExpression(e,t,true)}parseDo(e,t){this.expectPlugin("doExpressions");if(t){this.expectPlugin("asyncDoExpressions")}e.async=t;this.next();const r=this.state.labels;this.state.labels=[];if(t){this.prodParam.enter(2);e.body=this.parseBlock();this.prodParam.exit()}else{e.body=this.parseBlock()}this.state.labels=r;return this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();this.next();if(this.match(10)&&!this.scope.allowDirectSuper&&!(this.optionFlags&16)){this.raise(p.SuperNotAllowed,e)}else if(!this.scope.allowSuper&&!(this.optionFlags&16)){this.raise(p.UnexpectedSuper,e)}if(!this.match(10)&&!this.match(0)&&!this.match(16)){this.raise(p.UnsupportedSuper,e)}return this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode();const t=this.startNodeAt(createPositionWithColumnOffset(this.state.startLoc,1));const r=this.state.value;this.next();e.id=this.createIdentifier(t,r);return this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();this.next();if(this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");this.next();if(this.match(103)){this.expectPlugin("functionSent")}else if(!this.hasPlugin("functionSent")){this.unexpected()}return this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;const s=this.state.containsEsc;e.property=this.parseIdentifier(true);if(e.property.name!==r||s){this.raise(p.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r})}return this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){this.next();if(this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation");this.next();e.phase=t?"source":"defer";return this.parseImportCall(e)}else{const t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);if(this.isContextual(101)){if(!this.inModule){this.raise(p.ImportMetaOutsideModule,t)}this.sawUnambiguousESM=true}return this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,r){this.addExtra(r,"rawValue",e);this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end));r.value=e;this.next();return this.finishNode(r,t)}parseLiteral(e,t){const r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.startNode();this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end));t.pattern=e.pattern;t.flags=e.flags;this.next();return this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){const t=this.startNode();t.value=e;this.next();return this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();this.next();return this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let r;this.next();this.expressionScope.enter(newArrowHeadScope());const s=this.state.maybeInArrowParameters;const a=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=true;this.state.inFSharpPipelineDirectBody=false;const n=this.state.startLoc;const i=[];const o=new ExpressionErrors;let l=true;let c;let u;while(!this.match(11)){if(l){l=false}else{this.expect(12,o.optionalParametersLoc===null?null:o.optionalParametersLoc);if(this.match(11)){u=this.state.startLoc;break}}if(this.match(21)){const e=this.state.startLoc;c=this.state.startLoc;i.push(this.parseParenItem(this.parseRestBinding(),e));if(!this.checkCommaAfterRest(41)){break}}else{i.push(this.parseMaybeAssignAllowIn(o,this.parseParenItem))}}const p=this.state.lastTokEndLoc;this.expect(11);this.state.maybeInArrowParameters=s;this.state.inFSharpPipelineDirectBody=a;let d=this.startNodeAt(t);if(e&&this.shouldParseArrow(i)&&(d=this.parseArrow(d))){this.checkDestructuringPrivate(o);this.expressionScope.validateAsPattern();this.expressionScope.exit();this.parseArrowExpression(d,i,false);return d}this.expressionScope.exit();if(!i.length){this.unexpected(this.state.lastTokStartLoc)}if(u)this.unexpected(u);if(c)this.unexpected(c);this.checkExpressionErrors(o,true);this.toReferencedListDeep(i,true);if(i.length>1){r=this.startNodeAt(n);r.expressions=i;this.finishNode(r,"SequenceExpression");this.resetEndLocation(r,p)}else{r=i[0]}return this.wrapParenthesis(t,r)}wrapParenthesis(e,t){if(!(this.optionFlags&1024)){this.addExtra(t,"parenthesized",true);this.addExtra(t,"parenStart",e.index);this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index);return t}const r=this.startNodeAt(e);r.expression=t;return this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19)){return e}}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();this.next();if(this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const r=this.parseMetaProperty(e,t,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass&&!(this.optionFlags&4)){this.raise(p.UnexpectedNewTarget,r)}return r}return this.parseNew(e)}parseNew(e){this.parseNewCallee(e);if(this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t);e.arguments=t}else{e.arguments=[]}return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83);const r=this.parseNoCallExpr();e.callee=r;if(t&&(r.type==="Import"||r.type==="ImportExpression")){this.raise(p.ImportCallNotNewExpression,r)}}parseTemplateElement(e){const{start:t,startLoc:r,end:s,value:a}=this.state;const n=t+1;const i=this.startNodeAt(createPositionWithColumnOffset(r,1));if(a===null){if(!e){this.raise(p.InvalidEscapeSequenceTemplate,createPositionWithColumnOffset(this.state.firstInvalidTemplateEscapePos,1))}}const o=this.match(24);const l=o?-1:-2;const c=s+l;i.value={raw:this.input.slice(n,c).replace(/\r\n?/g,"\n"),cooked:a===null?null:a.slice(1,l)};i.tail=o;this.next();const u=this.finishNode(i,"TemplateElement");this.resetEndLocation(u,createPositionWithColumnOffset(this.state.lastTokEndLoc,l));return u}parseTemplate(e){const t=this.startNode();let r=this.parseTemplateElement(e);const s=[r];const a=[];while(!r.tail){a.push(this.parseTemplateSubstitution());this.readTemplateContinuation();s.push(r=this.parseTemplateElement(e))}t.expressions=a;t.quasis=s;return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,s){if(r){this.expectPlugin("recordAndTuple")}const a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;let n=false;let i=true;const o=this.startNode();o.properties=[];this.next();while(!this.match(e)){if(i){i=false}else{this.expect(12);if(this.match(e)){this.addTrailingCommaExtraToNode(o);break}}let a;if(t){a=this.parseBindingProperty()}else{a=this.parsePropertyDefinition(s);n=this.checkProto(a,r,n,s)}if(r&&!this.isObjectProperty(a)&&a.type!=="SpreadElement"){this.raise(p.InvalidRecordProperty,a)}{if(a.shorthand){this.addExtra(a,"shorthand",true)}}o.properties.push(a)}this.next();this.state.inFSharpPipelineDirectBody=a;let l="ObjectExpression";if(t){l="ObjectPattern"}else if(r){l="RecordExpression"}return this.finishNode(o,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index);this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,false)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26)){if(this.hasPlugin("decorators")){this.raise(p.UnsupportedPropertyDecorator,this.state.startLoc)}while(this.match(26)){t.push(this.parseDecorator())}}const r=this.startNode();let s=false;let a=false;let n;if(this.match(21)){if(t.length)this.unexpected();return this.parseSpread()}if(t.length){r.decorators=t;t=[]}r.method=false;if(e){n=this.state.startLoc}let i=this.eat(55);this.parsePropertyNamePrefixOperator(r);const o=this.state.containsEsc;this.parsePropertyName(r,e);if(!i&&!o&&this.maybeAsyncOrAccessorProp(r)){const{key:e}=r;const t=e.name;if(t==="async"&&!this.hasPrecedingLineBreak()){s=true;this.resetPreviousNodeTrailingComments(e);i=this.eat(55);this.parsePropertyName(r)}if(t==="get"||t==="set"){a=true;this.resetPreviousNodeTrailingComments(e);r.kind=t;if(this.match(55)){i=true;this.raise(p.AccessorIsGenerator,this.state.curPosition(),{kind:t});this.next()}this.parsePropertyName(r)}}return this.parseObjPropValue(r,n,i,s,false,a,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e);const s=this.getObjectOrClassMethodParams(e);if(s.length!==r){this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,e)}if(e.kind==="set"&&((t=s[s.length-1])==null?void 0:t.type)==="RestElement"){this.raise(p.BadSetterRestParameter,e)}}parseObjectMethod(e,t,r,s,a){if(a){const r=this.parseMethod(e,t,false,false,false,"ObjectMethod");this.checkGetterSetterParams(r);return r}if(r||t||this.match(10)){if(s)this.unexpected();e.kind="method";e.method=true;return this.parseMethod(e,t,r,false,false,"ObjectMethod")}}parseObjectProperty(e,t,r,s){e.shorthand=false;if(this.eat(14)){e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(s);return this.finishObjectProperty(e)}if(!e.computed&&e.key.type==="Identifier"){this.checkReservedWord(e.key.name,e.key.loc.start,true,false);if(r){e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else if(this.match(29)){const r=this.state.startLoc;if(s!=null){if(s.shorthandAssignLoc===null){s.shorthandAssignLoc=r}}else{this.raise(p.InvalidCoverInitializedName,r)}e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else{e.value=this.cloneIdentifier(e.key)}e.shorthand=true;return this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,r,s,a,n,i){const o=this.parseObjectMethod(e,r,s,a,n)||this.parseObjectProperty(e,t,a,i);if(!o)this.unexpected();return o}parsePropertyName(e,t){if(this.eat(0)){e.computed=true;e.key=this.parseMaybeAssignAllowIn();this.expect(3)}else{const{type:r,value:s}=this.state;let a;if(tokenIsKeywordOrIdentifier(r)){a=this.parseIdentifier(true)}else{switch(r){case 135:a=this.parseNumericLiteral(s);break;case 134:a=this.parseStringLiteral(s);break;case 136:a=this.parseBigIntLiteral(s);break;case 139:{const e=this.state.startLoc;if(t!=null){if(t.privateKeyLoc===null){t.privateKeyLoc=e}}else{this.raise(p.UnexpectedPrivateField,e)}a=this.parsePrivateName();break}default:if(r===137){a=this.parseDecimalLiteral(s);break}this.unexpected()}}e.key=a;if(r!==139){e.computed=false}}}initFunction(e,t){e.id=null;e.generator=false;e.async=t}parseMethod(e,t,r,s,a,n,i=false){this.initFunction(e,r);e.generator=t;this.scope.enter(2|16|(i?64:0)|(a?32:0));this.prodParam.enter(functionFlags(r,e.generator));this.parseFunctionParams(e,s);const o=this.parseFunctionBodyAndFinish(e,n,true);this.prodParam.exit();this.scope.exit();return o}parseArrayLike(e,t,r,s){if(r){this.expectPlugin("recordAndTuple")}const a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;const n=this.startNode();this.next();n.elements=this.parseExprList(e,!r,s,n);this.state.inFSharpPipelineDirectBody=a;return this.finishNode(n,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,s){this.scope.enter(2|4);let a=functionFlags(r,false);if(!this.match(5)&&this.prodParam.hasIn){a|=8}this.prodParam.enter(a);this.initFunction(e,r);const n=this.state.maybeInArrowParameters;if(t){this.state.maybeInArrowParameters=true;this.setArrowFunctionParameters(e,t,s)}this.state.maybeInArrowParameters=false;this.parseFunctionBody(e,true);this.prodParam.exit();this.scope.exit();this.state.maybeInArrowParameters=n;return this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,false);e.params=t}parseFunctionBodyAndFinish(e,t,r=false){this.parseFunctionBody(e,false,r);return this.finishNode(e,t)}parseFunctionBody(e,t,r=false){const s=t&&!this.match(5);this.expressionScope.enter(newExpressionScope());if(s){e.body=this.parseMaybeAssign();this.checkParams(e,false,t,false)}else{const s=this.state.strict;const a=this.state.labels;this.state.labels=[];this.prodParam.enter(this.prodParam.currentFlags()|4);e.body=this.parseBlock(true,false,(a=>{const n=!this.isSimpleParamList(e.params);if(a&&n){this.raise(p.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&!!e.key?e.key.loc.end:e)}const i=!s&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!r&&!n,t,i);if(this.state.strict&&e.id){this.checkIdentifier(e.id,65,i)}}));this.prodParam.exit();this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++){if(!this.isSimpleParameter(e[t]))return false}return true}checkParams(e,t,r,s=true){const a=!t&&new Set;const n={type:"FormalParameters"};for(const t of e.params){this.checkLVal(t,n,5,a,s)}}parseExprList(e,t,r,s){const a=[];let n=true;while(!this.eat(e)){if(n){n=false}else{this.expect(12);if(this.match(e)){if(s){this.addTrailingCommaExtraToNode(s)}this.next();break}}a.push(this.parseExprListItem(t,r))}return a}parseExprListItem(e,t,r){let s;if(this.match(12)){if(!e){this.raise(p.UnexpectedToken,this.state.curPosition(),{unexpected:","})}s=null}else if(this.match(21)){const e=this.state.startLoc;s=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication");if(!r){this.raise(p.UnexpectedArgumentPlaceholder,this.state.startLoc)}const e=this.startNode();this.next();s=this.finishNode(e,"ArgumentPlaceholder")}else{s=this.parseMaybeAssignAllowIn(t,this.parseParenItem)}return s}parseIdentifier(e){const t=this.startNode();const r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){e.name=t;e.loc.identifierName=t;return this.finishNode(e,"Identifier")}createIdentifierAt(e,t,r){e.name=t;e.loc.identifierName=t;return this.finishNodeAt(e,"Identifier",r)}parseIdentifierName(e){let t;const{startLoc:r,type:s}=this.state;if(tokenIsKeywordOrIdentifier(s)){t=this.state.value}else{this.unexpected()}const a=tokenKeywordOrIdentifierIsKeyword(s);if(e){if(a){this.replaceToken(132)}}else{this.checkReservedWord(t,r,a,false)}this.next();return t}checkReservedWord(e,t,r,s){if(e.length>10){return}if(!canBeReservedWord(e)){return}if(r&&isKeyword(e)){this.raise(p.UnexpectedKeyword,t,{keyword:e});return}const a=!this.state.strict?isReservedWord:s?isStrictBindReservedWord:isStrictReservedWord;if(a(e,this.inModule)){this.raise(p.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(p.YieldBindingIdentifier,t);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(p.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(p.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(p.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){const e=this.prodParam.hasAwait||this.optionFlags&1&&!this.scope.inFunction;if(e&&!this.scope.inFunction){this.state.hasTopLevelAwait=true}return e}parseAwait(e){const t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter,t);if(this.eat(55)){this.raise(p.ObsoleteAwaitStar,t)}if(!this.scope.inFunction&&!(this.optionFlags&1)){if(this.isAmbiguousPrefixOrIdentifier()){this.ambiguousScriptDifferentAst=true}else{this.sawUnambiguousESM=true}}if(!this.state.soloAwait){t.argument=this.parseMaybeUnary(null,true)}return this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return true;const{type:e}=this.state;return e===53||e===10||e===0||tokenIsTemplate(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){const t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(p.YieldInParameter,t);let r=false;let s=null;if(!this.hasPrecedingLineBreak()){r=this.eat(55);switch(this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:s=this.parseMaybeAssign()}}t.delegate=r;t.argument=s;return this.finishNode(t,"YieldExpression")}parseImportCall(e){this.next();e.source=this.parseMaybeAssignAllowIn();e.options=null;if(this.eat(12)){if(!this.match(11)){e.options=this.parseMaybeAssignAllowIn();if(this.eat(12)){this.addTrailingCommaExtraToNode(e.options);if(!this.match(11)){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(p.ImportCallArity,e)}}}else{this.addTrailingCommaExtraToNode(e.source)}}this.expect(11);return this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(e.type==="SequenceExpression"){this.raise(p.PipelineHeadSequenceExpression,t)}}}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const r=this.startNodeAt(t);r.callee=e;return this.finishNode(r,"PipelineBareFunction")}else{const r=this.startNodeAt(t);this.checkSmartPipeTopicBodyEarlyErrors(t);r.expression=e;return this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return true;default:return false}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19)){throw this.raise(p.PipelineBodyNoArrow,this.state.startLoc)}if(!this.topicReferenceWasUsedInCurrentContext()){this.raise(p.PipelineTopicUnused,e)}}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else{return e()}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=true;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();const r=8&~t;if(r){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();const r=8&t;if(r){this.prodParam.enter(t&~8);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=true;const s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);this.state.inFSharpPipelineDirectBody=r;return s}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next();if(!this.match(5)){this.unexpected(null,5)}const t=this.startNodeAt(this.state.endLoc);this.next();const r=this.initializeScopes(true);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}}const le={kind:1},ce={kind:2};const ue=/[\uD800-\uDFFF]/u;const pe=/in(?:stanceof)?/y;function babel7CompatTokens(e,t,r){for(let s=0;s<e.length;s++){const a=e[s];const{type:n}=a;if(typeof n==="number"){{if(n===139){const{loc:t,start:r,value:n,end:i}=a;const o=r+1;const l=createPositionWithColumnOffset(t.start,1);e.splice(s,1,new Token({type:getExportedToken(27),value:"#",start:r,end:o,startLoc:t.start,endLoc:l}),new Token({type:getExportedToken(132),value:n,start:o,end:i,startLoc:l,endLoc:t.end}));s++;continue}if(tokenIsTemplate(n)){const{loc:i,start:o,value:l,end:c}=a;const u=o+1;const p=createPositionWithColumnOffset(i.start,1);let d;if(t.charCodeAt(o-r)===96){d=new Token({type:getExportedToken(22),value:"`",start:o,end:u,startLoc:i.start,endLoc:p})}else{d=new Token({type:getExportedToken(8),value:"}",start:o,end:u,startLoc:i.start,endLoc:p})}let f,y,h,g;if(n===24){y=c-1;h=createPositionWithColumnOffset(i.end,-1);f=l===null?null:l.slice(1,-1);g=new Token({type:getExportedToken(22),value:"`",start:y,end:c,startLoc:h,endLoc:i.end})}else{y=c-2;h=createPositionWithColumnOffset(i.end,-2);f=l===null?null:l.slice(1,-2);g=new Token({type:getExportedToken(23),value:"${",start:y,end:c,startLoc:h,endLoc:i.end})}e.splice(s,1,d,new Token({type:getExportedToken(20),value:f,start:u,end:y,startLoc:p,endLoc:h}),g);s+=2;continue}}a.type=getExportedToken(n)}}return e}class StatementParser extends ExpressionParser{parseTopLevel(e,t){e.program=this.parseProgram(t);e.comments=this.comments;if(this.optionFlags&256){e.tokens=babel7CompatTokens(this.tokens,this.input,this.startIndex)}return this.finishNode(e,"File")}parseProgram(e,t=140,r=this.options.sourceType){e.sourceType=r;e.interpreter=this.parseInterpreterDirective();this.parseBlockBody(e,true,true,t);if(this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0){for(const[e,t]of Array.from(this.scope.undefinedExports)){this.raise(p.ModuleExportUndefined,t,{localName:e})}}this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let s;if(t===140){s=this.finishNode(e,"Program")}else{s=this.finishNodeAt(e,"Program",createPositionWithColumnOffset(this.state.startLoc,-1))}return s}stmtToDirective(e){const t=this.castNodeTo(e,"Directive");const r=this.castNodeTo(e.expression,"DirectiveLiteral");const s=r.value;const a=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end));const n=r.value=a.slice(1,-1);this.addExtra(r,"raw",a);this.addExtra(r,"rawValue",n);this.addExtra(r,"expressionValue",s);t.value=r;delete e.expression;return t}parseInterpreterDirective(){if(!this.match(28)){return null}const e=this.startNode();e.value=this.state.value;this.next();return this.finishNode(e,"InterpreterDirective")}isLet(){if(!this.isContextual(100)){return false}return this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107)){return false}const e=this.nextTokenInLineStart();const t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96)){return false}let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e)){this.expectPlugin("explicitResourceManagement");return true}}return false}chStartsBindingIdentifier(e,t){if(isIdentifierStart(e)){pe.lastIndex=t;if(pe.test(this.input)){const e=this.codePointAtPos(pe.lastIndex);if(!isIdentifierChar(e)&&e!==92){return false}}return true}else if(e===92){return true}else{return false}}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){const e=this.nextTokenStart();const t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){const e=this.nextTokenInLineStart();const t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}allowsForUsing(){const{type:e,containsEsc:t,end:r}=this.lookahead();if(e===102&&!t){const e=this.lookaheadCharCodeSince(r);if(e!==61&&e!==58&&e!==59){return false}}if(tokenIsIdentifier(e)&&!this.hasFollowingLineBreak()){this.expectPlugin("explicitResourceManagement");return true}return false}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(1|2|4|8)}parseStatementListItem(){return this.parseStatementLike(2|4|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=false){let t=0;if(this.options.annexB&&!this.state.strict){t|=4;if(e){t|=8}}return this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;if(this.match(26)){t=this.parseDecorators(true)}return this.parseStatementContent(e,t)}parseStatementContent(e,t){const r=this.state.type;const s=this.startNode();const a=!!(e&2);const n=!!(e&4);const i=e&1;switch(r){case 60:return this.parseBreakContinueStatement(s,true);case 63:return this.parseBreakContinueStatement(s,false);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;if(!n){this.raise(this.state.strict?p.StrictFunction:this.options.annexB?p.SloppyFunctionAnnexB:p.SloppyFunction,this.state.startLoc)}return this.parseFunctionStatement(s,false,!a&&n);case 80:if(!a)this.unexpected();return this.parseClass(this.maybeTakeDecorators(t,s),true);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing()){if(!this.allowsUsing()){this.raise(p.UnexpectedUsingDeclaration,s)}else if(!a){this.raise(p.UnexpectedLexicalDeclaration,s)}else if(!this.recordAwaitIfAllowed()){this.raise(p.AwaitUsingNotInAsyncContext,s)}this.next();return this.parseVarStatement(s,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace()){break}this.expectPlugin("explicitResourceManagement");if(!this.allowsUsing()){this.raise(p.UnexpectedUsingDeclaration,this.state.startLoc)}else if(!a){this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc)}return this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc){break}const e=this.nextTokenStart();const t=this.codePointAtPos(e);if(t!==91){if(!a&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&t!==123){break}}}case 75:{if(!a){this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc)}}case 74:{const e=this.state.value;return this.parseVarStatement(s,e)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{const e=this.lookaheadCharCode();if(e===40||e===46){break}}case 82:{if(!(this.optionFlags&8)&&!i){this.raise(p.UnexpectedImportExport,this.state.startLoc)}this.next();let e;if(r===83){e=this.parseImport(s)}else{e=this.parseExport(s,t)}this.assertModuleNodeAllowed(e);return e}default:{if(this.isAsyncFunction()){if(!a){this.raise(p.AsyncFunctionInSingleStatementContext,this.state.startLoc)}this.next();return this.parseFunctionStatement(s,true,!a&&n)}}}const o=this.state.value;const l=this.parseExpression();if(tokenIsIdentifier(r)&&l.type==="Identifier"&&this.eat(14)){return this.parseLabeledStatement(s,o,l,e)}else{return this.parseExpressionStatement(s,l,t)}}assertModuleNodeAllowed(e){if(!(this.optionFlags&8)&&!this.inModule){this.raise(p.ImportOutsideModule,e)}}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return true;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==false}maybeTakeDecorators(e,t,r){if(e){var s;if((s=t.decorators)!=null&&s.length){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean"){this.raise(p.DecoratorsBeforeAfterExport,t.decorators[0])}t.decorators.unshift(...e)}else{t.decorators=e}this.resetStartLocationFromNode(t,e[0]);if(r)this.resetStartLocationFromNode(r,t)}return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82)){if(!e){this.unexpected()}if(!this.decoratorsEnabledBeforeExport()){this.raise(p.DecoratorExportClass,this.state.startLoc)}}else if(!this.canHaveLeadingDecorator()){throw this.raise(p.UnexpectedLeadingDecorator,this.state.startLoc)}return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();this.next();if(this.hasPlugin("decorators")){const t=this.state.startLoc;let r;if(this.match(10)){const t=this.state.startLoc;this.next();r=this.parseExpression();this.expect(11);r=this.wrapParenthesis(t,r);const s=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r,t);if(this.getPluginOption("decorators","allowCallParenthesized")===false&&e.expression!==r){this.raise(p.DecoratorArgumentsOutsideParentheses,s)}}else{r=this.parseIdentifier(false);while(this.eat(16)){const e=this.startNodeAt(t);e.object=r;if(this.match(139)){this.classScope.usePrivateName(this.state.value,this.state.startLoc);e.property=this.parsePrivateName()}else{e.property=this.parseIdentifier(true)}e.computed=false;r=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r,t)}}else{e.expression=this.parseExprSubscripts()}return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){const r=this.startNodeAt(t);r.callee=e;r.arguments=this.parseCallExpressionArguments(11);this.toReferencedList(r.arguments);return this.finishNode(r,"CallExpression")}return e}parseBreakContinueStatement(e,t){this.next();if(this.isLineTerminator()){e.label=null}else{e.label=this.parseIdentifier();this.semicolon()}this.verifyBreakContinue(e,t);return this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){const s=this.state.labels[r];if(e.label==null||s.name===e.label.name){if(s.kind!=null&&(t||s.kind===1)){break}if(e.label&&t)break}}if(r===this.state.labels.length){const r=t?"BreakStatement":"ContinueStatement";this.raise(p.IllegalBreakContinue,e,{type:r})}}parseDebuggerStatement(e){this.next();this.semicolon();return this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();this.expect(11);return e}parseDoWhileStatement(e){this.next();this.state.labels.push(le);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.state.labels.pop();this.expect(92);e.test=this.parseHeaderExpression();this.eat(13);return this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next();this.state.labels.push(le);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()){t=this.state.startLoc;this.next()}this.scope.enter(0);this.expect(10);if(this.match(13)){if(t!==null){this.unexpected(t)}return this.parseFor(e,null)}const r=this.isContextual(100);{const s=this.isAwaitUsing();const a=s||this.isContextual(107)&&this.allowsForUsing();const n=r&&this.hasFollowingBindingAtom()||a;if(this.match(74)||this.match(75)||n){const r=this.startNode();let n;if(s){n="await using";if(!this.recordAwaitIfAllowed()){this.raise(p.AwaitUsingNotInAsyncContext,this.state.startLoc)}this.next()}else{n=this.state.value}this.next();this.parseVar(r,true,n);const i=this.finishNode(r,"VariableDeclaration");const o=this.match(58);if(o&&a){this.raise(p.ForInUsing,i)}if((o||this.isContextual(102))&&i.declarations.length===1){return this.parseForIn(e,i,t)}if(t!==null){this.unexpected(t)}return this.parseFor(e,i)}}const s=this.isContextual(95);const a=new ExpressionErrors;const n=this.parseExpression(true,a);const i=this.isContextual(102);if(i){if(r){this.raise(p.ForOfLet,n)}if(t===null&&s&&n.type==="Identifier"){this.raise(p.ForOfAsync,n)}}if(i||this.match(58)){this.checkDestructuringPrivate(a);this.toAssignable(n,true);const r=i?"ForOfStatement":"ForInStatement";this.checkLVal(n,{type:r});return this.parseForIn(e,n,t)}else{this.checkExpressionErrors(a,true)}if(t!==null){this.unexpected(t)}return this.parseFor(e,n)}parseFunctionStatement(e,t,r){this.next();return this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){this.next();e.test=this.parseHeaderExpression();e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration();e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null;return this.finishNode(e,"IfStatement")}parseReturnStatement(e){if(!this.prodParam.hasReturn&&!(this.optionFlags&2)){this.raise(p.IllegalReturn,this.state.startLoc)}this.next();if(this.isLineTerminator()){e.argument=null}else{e.argument=this.parseExpression();this.semicolon()}return this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next();e.discriminant=this.parseHeaderExpression();const t=e.cases=[];this.expect(5);this.state.labels.push(ce);this.scope.enter(256);let r;for(let e;!this.match(8);){if(this.match(61)||this.match(65)){const s=this.match(61);if(r)this.finishNode(r,"SwitchCase");t.push(r=this.startNode());r.consequent=[];this.next();if(s){r.test=this.parseExpression()}else{if(e){this.raise(p.MultipleDefaultsInSwitch,this.state.lastTokStartLoc)}e=true;r.test=null}this.expect(14)}else{if(r){r.consequent.push(this.parseStatementListItem())}else{this.unexpected()}}}this.scope.exit();if(r)this.finishNode(r,"SwitchCase");this.next();this.state.labels.pop();return this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){this.next();if(this.hasPrecedingLineBreak()){this.raise(p.NewlineAfterThrow,this.state.lastTokEndLoc)}e.argument=this.parseExpression();this.semicolon();return this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0);this.checkLVal(e,{type:"CatchClause"},9);return e}parseTryStatement(e){this.next();e.block=this.parseBlock();e.handler=null;if(this.match(62)){const t=this.startNode();this.next();if(this.match(10)){this.expect(10);t.param=this.parseCatchClauseParam();this.expect(11)}else{t.param=null;this.scope.enter(0)}t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(false,false)));this.scope.exit();e.handler=this.finishNode(t,"CatchClause")}e.finalizer=this.eat(67)?this.parseBlock():null;if(!e.handler&&!e.finalizer){this.raise(p.NoCatchOrFinally,e)}return this.finishNode(e,"TryStatement")}parseVarStatement(e,t,r=false){this.next();this.parseVar(e,false,t,r);this.semicolon();return this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){this.next();e.test=this.parseHeaderExpression();this.state.labels.push(le);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.state.labels.pop();return this.finishNode(e,"WhileStatement")}parseWithStatement(e){if(this.state.strict){this.raise(p.StrictWith,this.state.startLoc)}this.next();e.object=this.parseHeaderExpression();e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));return this.finishNode(e,"WithStatement")}parseEmptyStatement(e){this.next();return this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,s){for(const e of this.state.labels){if(e.name===t){this.raise(p.LabelRedeclaration,r,{labelName:t})}}const a=tokenIsLoop(this.state.type)?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){const r=this.state.labels[t];if(r.statementStart===e.start){r.statementStart=this.sourceToOffsetPos(this.state.start);r.kind=a}else{break}}this.state.labels.push({name:t,kind:a,statementStart:this.sourceToOffsetPos(this.state.start)});e.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(true):this.parseStatement();this.state.labels.pop();e.label=r;return this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){e.expression=t;this.semicolon();return this.finishNode(e,"ExpressionStatement")}parseBlock(e=false,t=true,r){const s=this.startNode();if(e){this.state.strictErrors.clear()}this.expect(5);if(t){this.scope.enter(0)}this.parseBlockBody(s,e,false,8,r);if(t){this.scope.exit()}return this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,s,a){const n=e.body=[];const i=e.directives=[];this.parseBlockOrModuleBlockBody(n,t?i:undefined,r,s,a)}parseBlockOrModuleBlockBody(e,t,r,s,a){const n=this.state.strict;let i=false;let o=false;while(!this.match(s)){const s=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(s)){const e=this.stmtToDirective(s);t.push(e);if(!i&&e.value.value==="use strict"){i=true;this.setStrict(true)}continue}o=true;this.state.strictErrors.clear()}e.push(s)}a==null||a.call(this,i);if(!n){this.setStrict(false)}this.next()}parseFor(e,t){e.init=t;this.semicolon(false);e.test=this.match(13)?null:this.parseExpression();this.semicolon(false);e.update=this.match(11)?null:this.parseExpression();this.expect(11);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.scope.exit();this.state.labels.pop();return this.finishNode(e,"ForStatement")}parseForIn(e,t,r){const s=this.match(58);this.next();if(s){if(r!==null)this.unexpected(r)}else{e.await=r!==null}if(t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")){this.raise(p.ForInOfLoopInitializer,t,{type:s?"ForInStatement":"ForOfStatement"})}if(t.type==="AssignmentPattern"){this.raise(p.InvalidLhs,t,{ancestor:{type:"ForStatement"}})}e.left=t;e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn();this.expect(11);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.scope.exit();this.state.labels.pop();return this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,t,r,s=false){const a=e.declarations=[];e.kind=r;for(;;){const e=this.startNode();this.parseVarId(e,r);e.init=!this.eat(29)?null:t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn();if(e.init===null&&!s){if(e.id.type!=="Identifier"&&!(t&&(this.match(58)||this.isContextual(102)))){this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})}else if((r==="const"||r==="using"||r==="await using")&&!(this.match(58)||this.isContextual(102))){this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r})}}a.push(this.finishNode(e,"VariableDeclarator"));if(!this.eat(12))break}return e}parseVarId(e,t){const r=this.parseBindingAtom();if(t==="using"||t==="await using"){if(r.type==="ArrayPattern"||r.type==="ObjectPattern"){this.raise(p.UsingDeclarationHasBindingPattern,r.loc.start)}}this.checkLVal(r,{type:"VariableDeclarator"},t==="var"?5:8201);e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){const r=t&2;const s=!!(t&1);const a=s&&!(t&4);const n=!!(t&8);this.initFunction(e,n);if(this.match(55)){if(r){this.raise(p.GeneratorInSingleStatementContext,this.state.startLoc)}this.next();e.generator=true}if(s){e.id=this.parseFunctionId(a)}const i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=false;this.scope.enter(2);this.prodParam.enter(functionFlags(n,e.generator));if(!s){e.id=this.parseFunctionId()}this.parseFunctionParams(e,false);this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}));this.prodParam.exit();this.scope.exit();if(s&&!r){this.registerFunctionStatementId(e)}this.state.maybeInArrowParameters=i;return e}parseFunctionId(e){return e||tokenIsIdentifier(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10);this.expressionScope.enter(newParameterDeclarationScope());e.params=this.parseBindingList(11,41,2|(t?4:0));this.expressionScope.exit()}registerFunctionStatementId(e){if(!e.id)return;this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,r){this.next();const s=this.state.strict;this.state.strict=true;this.parseClassId(e,t,r);this.parseClassSuper(e);e.body=this.parseClassBody(!!e.superClass,s);return this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();const r={hadConstructor:false,hadSuperClass:e};let s=[];const a=this.startNode();a.body=[];this.expect(5);this.withSmartMixTopicForbiddingContext((()=>{while(!this.match(8)){if(this.eat(13)){if(s.length>0){throw this.raise(p.DecoratorSemicolon,this.state.lastTokEndLoc)}continue}if(this.match(26)){s.push(this.parseDecorator());continue}const e=this.startNode();if(s.length){e.decorators=s;this.resetStartLocationFromNode(e,s[0]);s=[]}this.parseClassMember(a,e,r);if(e.kind==="constructor"&&e.decorators&&e.decorators.length>0){this.raise(p.DecoratorConstructor,e)}}}));this.state.strict=t;this.next();if(s.length){throw this.raise(p.TrailingDecorator,this.state.startLoc)}this.classScope.exit();return this.finishNode(a,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(true);if(this.isClassMethod()){const s=t;s.kind="method";s.computed=false;s.key=r;s.static=false;this.pushClassMethod(e,s,false,false,false,false);return true}else if(this.isClassProperty()){const s=t;s.computed=false;s.key=r;s.static=false;e.body.push(this.parseClassProperty(s));return true}this.resetPreviousNodeTrailingComments(r);return false}parseClassMember(e,t,r){const s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,t)){return}if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,r,s)}parseClassMemberWithIsStatic(e,t,r,s){const a=t;const n=t;const i=t;const o=t;const l=t;const c=a;const u=a;t.static=s;this.parsePropertyNamePrefixOperator(t);if(this.eat(55)){c.kind="method";const t=this.match(139);this.parseClassElementName(c);this.parsePostMemberNameModifiers(c);if(t){this.pushClassPrivateMethod(e,n,true,false);return}if(this.isNonstaticConstructor(a)){this.raise(p.ConstructorIsGenerator,a.key)}this.pushClassMethod(e,a,true,false,false,false);return}const d=!this.state.containsEsc&&tokenIsIdentifier(this.state.type);const f=this.parseClassElementName(t);const y=d?f.name:null;const h=this.isPrivateName(f);const g=this.state.startLoc;this.parsePostMemberNameModifiers(u);if(this.isClassMethod()){c.kind="method";if(h){this.pushClassPrivateMethod(e,n,false,false);return}const s=this.isNonstaticConstructor(a);let i=false;if(s){a.kind="constructor";if(r.hadConstructor&&!this.hasPlugin("typescript")){this.raise(p.DuplicateConstructor,f)}if(s&&this.hasPlugin("typescript")&&t.override){this.raise(p.OverrideOnConstructor,f)}r.hadConstructor=true;i=r.hadSuperClass}this.pushClassMethod(e,a,false,false,s,i)}else if(this.isClassProperty()){if(h){this.pushClassPrivateProperty(e,o)}else{this.pushClassProperty(e,i)}}else if(y==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);const t=this.eat(55);if(u.optional){this.unexpected(g)}c.kind="method";const r=this.match(139);this.parseClassElementName(c);this.parsePostMemberNameModifiers(u);if(r){this.pushClassPrivateMethod(e,n,t,true)}else{if(this.isNonstaticConstructor(a)){this.raise(p.ConstructorIsAsync,a.key)}this.pushClassMethod(e,a,t,true,false,false)}}else if((y==="get"||y==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f);c.kind=y;const t=this.match(139);this.parseClassElementName(a);if(t){this.pushClassPrivateMethod(e,n,false,false)}else{if(this.isNonstaticConstructor(a)){this.raise(p.ConstructorIsAccessor,a.key)}this.pushClassMethod(e,a,false,false,false,false)}this.checkGetterSetterParams(a)}else if(y==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors");this.resetPreviousNodeTrailingComments(f);const t=this.match(139);this.parseClassElementName(i);this.pushClassAccessorProperty(e,l,t)}else if(this.isLineTerminator()){if(h){this.pushClassPrivateProperty(e,o)}else{this.pushClassProperty(e,i)}}else{this.unexpected()}}parseClassElementName(e){const{type:t,value:r}=this.state;if((t===132||t===134)&&e.static&&r==="prototype"){this.raise(p.StaticPrototype,this.state.startLoc)}if(t===139){if(r==="constructor"){this.raise(p.ConstructorClassPrivateField,this.state.startLoc)}const t=this.parsePrivateName();e.key=t;return t}this.parsePropertyName(e);return e.key}parseClassStaticBlock(e,t){var r;this.scope.enter(64|128|16);const s=this.state.labels;this.state.labels=[];this.prodParam.enter(0);const a=t.body=[];this.parseBlockOrModuleBlockBody(a,undefined,false,8);this.prodParam.exit();this.scope.exit();this.state.labels=s;e.body.push(this.finishNode(t,"StaticBlock"));if((r=t.decorators)!=null&&r.length){this.raise(p.DecoratorStaticBlock,t)}}pushClassProperty(e,t){if(!t.computed&&this.nameIsConstructor(t.key)){this.raise(p.ConstructorClassField,t.key)}e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const r=this.parseClassPrivateProperty(t);e.body.push(r);this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){if(!r&&!t.computed&&this.nameIsConstructor(t.key)){this.raise(p.ConstructorClassField,t.key)}const s=this.parseClassAccessorProperty(t);e.body.push(s);if(r){this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}}pushClassMethod(e,t,r,s,a,n){e.body.push(this.parseMethod(t,r,s,a,n,"ClassMethod",true))}pushClassPrivateMethod(e,t,r,s){const a=this.parseMethod(t,r,s,false,false,"ClassPrivateMethod",true);e.body.push(a);const n=a.kind==="get"?a.static?6:2:a.kind==="set"?a.static?5:1:0;this.declareClassPrivateMethodInScope(a,n)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(64|16);this.expressionScope.enter(newExpressionScope());this.prodParam.enter(0);e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null;this.expressionScope.exit();this.prodParam.exit();this.scope.exit()}parseClassId(e,t,r,s=8331){if(tokenIsIdentifier(this.state.type)){e.id=this.parseIdentifier();if(t){this.declareNameFromIdentifier(e.id,s)}}else{if(r||!t){e.id=null}else{throw this.raise(p.MissingClassName,this.state.startLoc)}}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const r=this.parseMaybeImportPhase(e,true);const s=this.maybeParseExportDefaultSpecifier(e,r);const a=!s||this.eat(12);const n=a&&this.eatExportStar(e);const i=n&&this.maybeParseExportNamespaceSpecifier(e);const o=a&&(!i||this.eat(12));const l=s||n;if(n&&!i){if(s)this.unexpected();if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.parseExportFrom(e,true);this.sawUnambiguousESM=true;return this.finishNode(e,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(e);if(s&&a&&!n&&!c){this.unexpected(null,5)}if(i&&o){this.unexpected(null,98)}let u;if(l||c){u=false;if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.parseExportFrom(e,l)}else{u=this.maybeParseExportDeclaration(e)}if(l||c||u){var d;const r=e;this.checkExport(r,true,false,!!r.source);if(((d=r.declaration)==null?void 0:d.type)==="ClassDeclaration"){this.maybeTakeDecorators(t,r.declaration,r)}else if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.sawUnambiguousESM=true;return this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){const r=e;const s=this.parseExportDefaultExpression();r.declaration=s;if(s.type==="ClassDeclaration"){this.maybeTakeDecorators(t,s,r)}else if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.checkExport(r,true,true);this.sawUnambiguousESM=true;return this.finishNode(r,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",t==null?void 0:t.loc.start);const r=t||this.parseIdentifier(true);const s=this.startNodeAtNode(r);s.exported=r;e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")];return true}return false}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t,r;(r=(t=e).specifiers)!=null?r:t.specifiers=[];const s=this.startNodeAt(this.state.lastTokStartLoc);this.next();s.exported=this.parseModuleExportName();e.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier"));return true}return false}maybeParseExportNamedSpecifiers(e){if(this.match(5)){const t=e;if(!t.specifiers)t.specifiers=[];const r=t.exportKind==="type";t.specifiers.push(...this.parseExportSpecifiers(r));t.source=null;if(this.hasPlugin("importAssertions")){t.assertions=[]}else{t.attributes=[]}t.declaration=null;return true}return false}maybeParseExportDeclaration(e){if(this.shouldParseExportDeclaration()){e.specifiers=[];e.source=null;if(this.hasPlugin("importAssertions")){e.assertions=[]}else{e.attributes=[]}e.declaration=this.parseExportDeclaration(e);return true}return false}isAsyncFunction(){if(!this.isContextual(95))return false;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68)){this.next();return this.parseFunction(e,1|4)}else if(this.isAsyncFunction()){this.next();this.next();return this.parseFunction(e,1|4|8)}if(this.match(80)){return this.parseClass(e,true,true)}if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===true){this.raise(p.DecoratorBeforeExport,this.state.startLoc)}return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(false),this.startNode()),true,true)}if(this.match(75)||this.match(74)||this.isLet()||this.hasPlugin("explicitResourceManagement")&&(this.isUsing()||this.isAwaitUsing())){throw this.raise(p.UnsupportedDefaultExport,this.state.startLoc)}const t=this.parseMaybeAssignAllowIn();this.semicolon();return t}parseExportDeclaration(e){if(this.match(80)){const e=this.parseClass(this.startNode(),true,false);return e}return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(tokenIsIdentifier(e)){if(e===95&&!this.state.containsEsc||e===100){return false}if((e===130||e===129)&&!this.state.containsEsc){const{type:e}=this.lookahead();if(tokenIsIdentifier(e)&&e!==98||e===5){this.expectOnePlugin(["flow","typescript"]);return false}}}else if(!this.match(65)){return false}const t=this.nextTokenStart();const r=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||tokenIsIdentifier(this.state.type)&&r){return true}if(this.match(65)&&r){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return e===34||e===39}return false}parseExportFrom(e,t){if(this.eatContextual(98)){e.source=this.parseImportSource();this.checkExport(e);this.maybeParseImportAttributes(e);this.checkJSONModuleImport(e)}else if(t){this.unexpected()}this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;if(e===26){this.expectOnePlugin(["decorators","decorators-legacy"]);if(this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===true){this.raise(p.DecoratorBeforeExport,this.state.startLoc)}return true}}if(this.hasPlugin("explicitResourceManagement")){if(this.isUsing()){this.raise(p.UsingDeclarationExport,this.state.startLoc);return true}if(this.isAwaitUsing()){this.raise(p.UsingDeclarationExport,this.state.startLoc);return true}}return e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,s){if(t){var a;if(r){this.checkDuplicateExports(e,"default");if(this.hasPlugin("exportDefaultFrom")){var n;const t=e.declaration;if(t.type==="Identifier"&&t.name==="from"&&t.end-t.start===4&&!((n=t.extra)!=null&&n.parenthesized)){this.raise(p.ExportDefaultFromAsIdentifier,t)}}}else if((a=e.specifiers)!=null&&a.length){for(const t of e.specifiers){const{exported:e}=t;const r=e.type==="Identifier"?e.name:e.value;this.checkDuplicateExports(t,r);if(!s&&t.local){const{local:e}=t;if(e.type!=="Identifier"){this.raise(p.ExportBindingIsString,t,{localName:e.value,exportName:r})}else{this.checkReservedWord(e.name,e.loc.start,true,false);this.scope.checkLocalExport(e)}}}}else if(e.declaration){const t=e.declaration;if(t.type==="FunctionDeclaration"||t.type==="ClassDeclaration"){const{id:r}=t;if(!r)throw new Error("Assertion failure");this.checkDuplicateExports(e,r.name)}else if(t.type==="VariableDeclaration"){for(const e of t.declarations){this.checkDeclaration(e.id)}}}}}checkDeclaration(e){if(e.type==="Identifier"){this.checkDuplicateExports(e,e.name)}else if(e.type==="ObjectPattern"){for(const t of e.properties){this.checkDeclaration(t)}}else if(e.type==="ArrayPattern"){for(const t of e.elements){if(t){this.checkDeclaration(t)}}}else if(e.type==="ObjectProperty"){this.checkDeclaration(e.value)}else if(e.type==="RestElement"){this.checkDeclaration(e.argument)}else if(e.type==="AssignmentPattern"){this.checkDeclaration(e.left)}}checkDuplicateExports(e,t){if(this.exportedIdentifiers.has(t)){if(t==="default"){this.raise(p.DuplicateDefaultExport,e)}else{this.raise(p.DuplicateExport,e,{exportName:t})}}this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let r=true;this.expect(5);while(!this.eat(8)){if(r){r=false}else{this.expect(12);if(this.eat(8))break}const s=this.isContextual(130);const a=this.match(134);const n=this.startNode();n.local=this.parseModuleExportName();t.push(this.parseExportSpecifier(n,a,e,s))}return t}parseExportSpecifier(e,t,r,s){if(this.eatContextual(93)){e.exported=this.parseModuleExportName()}else if(t){e.exported=this.cloneStringLiteral(e.local)}else if(!e.exported){e.exported=this.cloneIdentifier(e.local)}return this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const e=this.parseStringLiteral(this.state.value);const t=ue.exec(e.value);if(t){this.raise(p.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)})}return e}return this.parseIdentifier(true)}isJSONModuleImport(e){if(e.assertions!=null){return e.assertions.some((({key:e,value:t})=>t.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")))}return false}checkImportReflection(e){const{specifiers:t}=e;const r=t.length===1?t[0].type:null;if(e.phase==="source"){if(r!=="ImportDefaultSpecifier"){this.raise(p.SourcePhaseImportRequiresDefault,t[0].loc.start)}}else if(e.phase==="defer"){if(r!=="ImportNamespaceSpecifier"){this.raise(p.DeferImportRequiresNamespace,t[0].loc.start)}}else if(e.module){var s;if(r!=="ImportDefaultSpecifier"){this.raise(p.ImportReflectionNotBinding,t[0].loc.start)}if(((s=e.assertions)==null?void 0:s.length)>0){this.raise(p.ImportReflectionHasAssertion,t[0].loc.start)}}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){const{specifiers:t}=e;if(t!=null){const e=t.find((e=>{let t;if(e.type==="ExportSpecifier"){t=e.local}else if(e.type==="ImportSpecifier"){t=e.imported}if(t!==undefined){return t.type==="Identifier"?t.name!=="default":t.value!=="default"}}));if(e!==undefined){this.raise(p.ImportJSONBindingNotDefault,e.loc.start)}}}}isPotentialImportPhase(e){if(e)return false;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,r,s){if(t){return}if(r==="module"){this.expectPlugin("importReflection",s);e.module=true}else if(this.hasPlugin("importReflection")){e.module=false}if(r==="source"){this.expectPlugin("sourcePhaseImports",s);e.phase="source"}else if(r==="defer"){this.expectPlugin("deferredImportEvaluation",s);e.phase="defer"}else if(this.hasPlugin("sourcePhaseImports")){e.phase=null}}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t)){this.applyImportPhase(e,t,null);return null}const r=this.startNode();const s=this.parseIdentifierName(true);const{type:a}=this.state;const n=tokenIsKeywordOrIdentifier(a)?a!==98||this.lookaheadCharCode()===102:a!==12;if(n){this.applyImportPhase(e,t,s,r.loc.start);return null}else{this.applyImportPhase(e,t,null);return this.createIdentifier(r,s)}}isPrecedingIdImportPhase(e){const{type:t}=this.state;return tokenIsIdentifier(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){if(this.match(134)){return this.parseImportSourceAndAttributes(e)}return this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,false))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const r=this.maybeParseDefaultImportSpecifier(e,t);const s=!r||this.eat(12);const a=s&&this.maybeParseStarImportSpecifier(e);if(s&&!a)this.parseNamedImportSpecifiers(e);this.expectContextual(98);return this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){var t;(t=e.specifiers)!=null?t:e.specifiers=[];e.source=this.parseImportSource();this.maybeParseImportAttributes(e);this.checkImportReflection(e);this.checkJSONModuleImport(e);this.semicolon();this.sawUnambiguousESM=true;return this.finishNode(e,"ImportDeclaration")}parseImportSource(){if(!this.match(134))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier();e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t,r=8201){this.checkLVal(e.local,{type:t},r);return this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[];const t=new Set;do{if(this.match(8)){break}const r=this.startNode();const s=this.state.value;if(t.has(s)){this.raise(p.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s})}t.add(s);if(this.match(134)){r.key=this.parseStringLiteral(s)}else{r.key=this.parseIdentifier(true)}this.expect(14);if(!this.match(134)){throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc)}r.value=this.parseStringLiteral(this.state.value);e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));this.expect(8);return e}parseModuleAttributes(){const e=[];const t=new Set;do{const r=this.startNode();r.key=this.parseIdentifier(true);if(r.key.name!=="type"){this.raise(p.ModuleAttributeDifferentFromType,r.key)}if(t.has(r.key.name)){this.raise(p.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name})}t.add(r.key.name);this.expect(14);if(!this.match(134)){throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc)}r.value=this.parseStringLiteral(this.state.value);e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;{var r=false}if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40){return}this.next();if(this.hasPlugin("moduleAttributes")){t=this.parseModuleAttributes();this.addExtra(e,"deprecatedWithLegacySyntax",true)}else{t=this.parseImportAttributes()}{r=true}}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")){this.raise(p.ImportAttributesUseAssert,this.state.startLoc)}if(!this.hasPlugin("importAssertions")){this.addExtra(e,"deprecatedAssertSyntax",true)}this.next();t=this.parseImportAttributes()}else{t=[]}if(!r&&this.hasPlugin("importAssertions")){e.assertions=t}else{e.attributes=t}}maybeParseDefaultImportSpecifier(e,t){if(t){const r=this.startNodeAtNode(t);r.local=t;e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier"));return true}else if(tokenIsKeywordOrIdentifier(this.state.type)){this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier");return true}return false}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();this.next();this.expectContextual(93);this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier");return true}return false}parseNamedImportSpecifiers(e){let t=true;this.expect(5);while(!this.eat(8)){if(t){t=false}else{if(this.eat(14)){throw this.raise(p.DestructureNamedImport,this.state.startLoc)}this.expect(12);if(this.eat(8))break}const r=this.startNode();const s=this.match(134);const a=this.isContextual(130);r.imported=this.parseModuleExportName();const n=this.parseImportSpecifier(r,s,e.importKind==="type"||e.importKind==="typeof",a,undefined);e.specifiers.push(n)}}parseImportSpecifier(e,t,r,s,a){if(this.eatContextual(93)){e.local=this.parseIdentifier()}else{const{imported:r}=e;if(t){throw this.raise(p.ImportBindingIsString,e,{importName:r.value})}this.checkReservedWord(r.name,e.loc.start,true,true);if(!e.local){e.local=this.cloneIdentifier(r)}}return this.finishImportSpecifier(e,"ImportSpecifier",a)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}}class Parser extends StatementParser{constructor(e,t,r){e=getOptions(e);super(e,t);this.options=e;this.initializeScopes();this.plugins=r;this.filename=e.sourceFilename;this.startIndex=e.startIndex;let s=0;if(e.allowAwaitOutsideFunction){s|=1}if(e.allowReturnOutsideFunction){s|=2}if(e.allowImportExportEverywhere){s|=8}if(e.allowSuperOutsideMethod){s|=16}if(e.allowUndeclaredExports){s|=64}if(e.allowNewTargetOutsideFunction){s|=4}if(e.allowYieldOutsideFunction){s|=32}if(e.ranges){s|=128}if(e.tokens){s|=256}if(e.createImportExpressions){s|=512}if(e.createParenthesizedExpressions){s|=1024}if(e.errorRecovery){s|=2048}if(e.attachComment){s|=4096}if(e.annexB){s|=8192}this.optionFlags=s}getScopeHandler(){return ScopeHandler}parse(){this.enterInitialScopes();const e=this.startNode();const t=this.startNode();this.nextToken();e.errors=null;this.parseTopLevel(e,t);e.errors=this.state.errors;e.comments.length=this.state.commentsLen;return e}}function parse(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";const r=getParser(t,e);const s=r.parse();if(r.sawUnambiguousESM){return s}if(r.ambiguousScriptDifferentAst){try{t.sourceType="script";return getParser(t,e).parse()}catch(e){}}else{s.program.sourceType="script"}return s}catch(r){try{t.sourceType="script";return getParser(t,e).parse()}catch(e){}throw r}}else{return getParser(t,e).parse()}}function parseExpression(e,t){const r=getParser(t,e);if(r.options.strictMode){r.state.strict=true}return r.getExpression()}function generateExportedTokenTypes(e){const t={};for(const r of Object.keys(e)){t[r]=getExportedToken(e[r])}return t}const de=generateExportedTokenTypes(D);function getParser(e,t){let r=Parser;const s=new Map;if(e!=null&&e.plugins){for(const t of e.plugins){let e,r;if(typeof t==="string"){e=t}else{[e,r]=t}if(!s.has(e)){s.set(e,r||{})}}validatePlugins(s);r=getParserClass(s)}return new r(e,t,s)}const fe=new Map;function getParserClass(e){const t=[];for(const r of oe){if(e.has(r)){t.push(r)}}const r=t.join("|");let s=fe.get(r);if(!s){s=Parser;for(const e of t){s=ie[e](s)}fe.set(r,s)}return s}t.parse=parse;t.parseExpression=parseExpression;t.tokTypes=de},709:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(8384);var a=r(4320);var n=t["default"]=(0,a.declare)((({types:e,assertVersion:t})=>{t(7);const r={ClassExpression(e,t){t.found=true;e.stop()},Function(e){e.skip()}};const a=s.visitors.environmentVisitor({YieldExpression(e,t){t.yield=true;if(t.await)e.stop()},AwaitExpression(e,t){t.await=true;if(t.yield)e.stop()}});function containsClassExpression(t){if(e.isClassExpression(t.node))return true;if(e.isFunction(t.node))return false;const s={found:false};t.traverse(r,s);return s.found}function wrap(t){const r={yield:e.isYieldExpression(t.node),await:e.isAwaitExpression(t.node)};t.traverse(a,r);let s;if(r.yield){const a=e.functionExpression(null,[],e.blockStatement([e.returnStatement(t.node)]),true,r.await);s=e.yieldExpression(e.callExpression(e.memberExpression(a,e.identifier("call")),[e.thisExpression(),e.identifier("arguments")]),true)}else{const a=e.arrowFunctionExpression([],t.node,r.await);s=e.callExpression(a,[]);if(r.await)s=e.awaitExpression(s)}t.replaceWith(s)}return{name:"bugfix-firefox-class-in-computed-class-key",visitor:{Class(t){const r=t.node.body.body.some((t=>e.isPrivate(t)));if(!r)return;for(const e of t.get("body.body")){if("computed"in e.node&&e.node.computed&&containsClassExpression(e.get("key"))){wrap(e.get("key"))}}}}}}))},4683:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(4320);var a=r(1485);function needsWrapping(e){if(a.types.isLiteral(e)&&!a.types.isTemplateLiteral(e)){return false}if(a.types.isCallExpression(e)||a.types.isOptionalCallExpression(e)||a.types.isNewExpression(e)){return needsWrapping(e.callee)||e.arguments.some(needsWrapping)}if(a.types.isTemplateLiteral(e)){return e.expressions.some(needsWrapping)}if(a.types.isTaggedTemplateExpression(e)){return needsWrapping(e.tag)||needsWrapping(e.quasi)}if(a.types.isArrayExpression(e)){return e.elements.some(needsWrapping)}if(a.types.isObjectExpression(e)){return e.properties.some((e=>{if(a.types.isObjectProperty(e)){return needsWrapping(e.value)||e.computed&&needsWrapping(e.key)}if(a.types.isObjectMethod(e)){return false}return false}))}if(a.types.isMemberExpression(e)||a.types.isOptionalMemberExpression(e)){return needsWrapping(e.object)||e.computed&&needsWrapping(e.property)}if(a.types.isFunctionExpression(e)||a.types.isArrowFunctionExpression(e)||a.types.isClassExpression(e)){return false}if(a.types.isThisExpression(e)){return false}if(a.types.isSequenceExpression(e)){return e.expressions.some(needsWrapping)}return true}function wrapInitializer(e){const{value:t}=e.node;if(t&&needsWrapping(t)){e.node.value=a.types.callExpression(a.types.arrowFunctionExpression([],t),[])}}var n=s.declare((e=>{e.assertVersion("^7.16.0");return{name:"plugin-bugfix-safari-class-field-initializer-scope",visitor:{ClassProperty(e){wrapInitializer(e)},ClassPrivateProperty(e){wrapInitializer(e)}}}}));t["default"]=n},4442:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(4320);function shouldTransform(e){const{node:t}=e;const r=t.id;if(!r)return false;const s=r.name;const a=e.scope.getOwnBinding(s);if(a===undefined){return false}if(a.kind!=="param"){return false}if(a.identifier===a.path.node){return false}return s}var a=s.declare((e=>{e.assertVersion("^7.16.0");return{name:"plugin-bugfix-safari-id-destructuring-collision-in-function-expression",visitor:{FunctionExpression(e){const t=shouldTransform(e);if(t){const{scope:r}=e;const s=r.generateUid(t);r.rename(t,s)}}}}}));t["default"]=a},8373:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(4320);var a=r(2813);var n=r(2722);var i=r(1485);function matchAffectedArguments(e){const t=e.findIndex((e=>i.types.isSpreadElement(e)));return t>=0&&t!==e.length-1}function shouldTransform(e){let t=e;const r=[];for(;;){if(t.isOptionalMemberExpression()){r.push(t.node);t=n.skipTransparentExprWrappers(t.get("object"))}else if(t.isOptionalCallExpression()){r.push(t.node);t=n.skipTransparentExprWrappers(t.get("callee"))}else{break}}for(let e=0;e<r.length;e++){const t=r[e];if(i.types.isOptionalCallExpression(t)&&matchAffectedArguments(t.arguments)){if(t.optional){return true}const s=r[e+1];if(i.types.isOptionalMemberExpression(s,{optional:true})){return true}}}return false}var o=s.declare((e=>{var t,r;e.assertVersion(7);const s=(t=e.assumption("noDocumentAll"))!=null?t:false;const n=(r=e.assumption("pureGetters"))!=null?r:false;return{name:"bugfix-v8-spread-parameters-in-optional-chaining",visitor:{"OptionalCallExpression|OptionalMemberExpression"(e){if(shouldTransform(e)){a.transform(e,{noDocumentAll:s,pureGetters:n})}}}}}));t["default"]=o},9555:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(1485);var a=r(4320);function isNameOrLength(e){if(s.types.isIdentifier(e)){return e.name==="name"||e.name==="length"}if(s.types.isStringLiteral(e)){return e.value==="name"||e.value==="length"}return false}function isStaticFieldWithValue(e){return(s.types.isClassProperty(e)||s.types.isClassPrivateProperty(e))&&e.static&&!!e.value}const n={ReferencedIdentifier(e,t){if(e.node.name===t.name){t.ref();e.stop()}},Scope(e,{name:t}){if(e.scope.hasOwnBinding(t)){e.skip()}}};function isReferenceOrThis(e,t){return s.types.isThisExpression(e)||t&&s.types.isIdentifier(e,{name:t})}const i={"ThisExpression|ReferencedIdentifier"(e,t){if(isReferenceOrThis(e.node,t.name)){t.ref();e.stop()}},FunctionParent(e,t){if(e.isArrowFunctionExpression())return;if(t.name&&!e.scope.hasOwnBinding(t.name)){e.traverse(n,t)}e.skip();if(e.isMethod()){if(e.requeueComputedKeyAndDecorators){e.requeueComputedKeyAndDecorators()}else{r(8384).NodePath.prototype.requeueComputedKeyAndDecorators.call(e)}}}};function getPotentiallyBuggyFieldsIndexes(e){var t;const r=[];let a=false;const o=(t=e.node.id)==null?void 0:t.name;const l={name:o,ref:()=>a=true};if(o){for(const t of e.get("body.body")){if(t.node.computed){t.get("key").traverse(n,l);if(a)break}}}let c=false;const{body:u}=e.node.body;for(let t=0;t<u.length;t++){const n=u[t];if(!c){if(s.types.isStaticBlock(n)){a=true;c=true}else if(isStaticFieldWithValue(n)){if(!a){if(isReferenceOrThis(n.value,o)){a=true}else{e.get(`body.body.${t}.value`).traverse(i,l)}}if(a){c=!e.scope.isPure(n.value)}}}if(s.types.isClassProperty(n,{static:true})&&(c||n.computed||isNameOrLength(n.key))){r.push(t)}}return r}function getNameOrLengthStaticFieldsIndexes(e){const t=[];const{body:r}=e.node.body;for(let e=0;e<r.length;e++){const a=r[e];if(s.types.isClassProperty(a,{static:true,computed:false})&&isNameOrLength(a.key)){t.push(e)}}return t}function toRanges(e){const t=[];if(e.length===0)return t;let r=e[0];let s=r+1;for(let a=1;a<e.length;a++){if(e[a]<=e[a-1]){throw new Error("Internal Babel error: nums must be in ascending order")}if(e[a]===s){s++}else{t.push([r,s]);r=e[a];s=r+1}}t.push([r,s]);return t}function buildFieldsReplacement(e,t,r){return s.types.staticBlock(e.map((e=>{const a=e.computed||!s.types.isIdentifier(e.key)?e.key:s.types.stringLiteral(e.key.name);return s.types.expressionStatement(s.types.callExpression(r.addHelper("defineProperty"),[s.types.thisExpression(),a,e.value||t.buildUndefinedNode()]))})))}var o=a.declare((e=>{e.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");const t=e.assumption("setPublicClassFields");return{name:"bugfix-v8-static-class-fields-redefine-readonly",visitor:{Class(e){const r=toRanges(t?getNameOrLengthStaticFieldsIndexes(e):getPotentiallyBuggyFieldsIndexes(e));for(let t=r.length-1;t>=0;t--){const[s,a]=r[t];const n=e.get("body.body")[s];n.replaceWith(buildFieldsReplacement(e.node.body.body.slice(s,a),e.scope,this.file));for(let t=a-1;t>s;t--){e.get("body.body")[t].remove()}}}}}}));t["default"]=o},2645:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=t["default"]=(0,s.declare)((e=>{e.assertVersion(7);const isPlugin=(e,t)=>t==="plugin"||Array.isArray(e)&&e[0]==="plugin";const options=e=>Array.isArray(e)&&e.length>1?e[1]:{};return{name:"syntax-import-assertions",manipulateOptions(e,{plugins:t}){for(let e=0;e<t.length;e++){const r=t[e];if(isPlugin(r,"deprecatedImportAssert"))return;if(isPlugin(r,"importAttributes")){t.splice(e,1,"deprecatedImportAssert",["importAttributes",Object.assign({},options(r),{deprecatedAssertSyntax:true})]);return}}t.push("importAssertions")}}}))},3821:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=t["default"]=(0,s.declare)(((e,{deprecatedAssertSyntax:t})=>{e.assertVersion("^7.22.0 || >8.0.0-alpha <8.0.0-beta");if(t!=null&&typeof t!=="boolean"){throw new Error("'deprecatedAssertSyntax' must be a boolean, if specified.")}return{name:"syntax-import-attributes",manipulateOptions({parserOpts:e,generatorOpts:r}){var s;(s=r.importAttributesKeyword)!=null?s:r.importAttributesKeyword="with";const a=e.plugins.indexOf("importAssertions");if(a!==-1){e.plugins.splice(a,1);t=true}if(t){e.plugins.push("deprecatedImportAssert",["importAttributes",{deprecatedAssertSyntax:true}])}else{e.plugins.push("importAttributes")}}}}))},8021:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=t["default"]=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-jsx",manipulateOptions(e,t){{if(t.plugins.some((e=>(Array.isArray(e)?e[0]:e)==="typescript"))){return}}t.plugins.push("jsx")}}}))},3477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);{var removePlugin=function(e,t){const r=[];e.forEach(((e,s)=>{const a=Array.isArray(e)?e[0]:e;if(a===t){r.unshift(s)}}));for(const t of r){e.splice(t,1)}}}var a=t["default"]=(0,s.declare)(((e,t)=>{e.assertVersion(7);const{disallowAmbiguousJSXLike:r,dts:s}=t;{var{isTSX:a}=t}return{name:"syntax-typescript",manipulateOptions(e,t){{const{plugins:e}=t;removePlugin(e,"flow");removePlugin(e,"jsx");{e.push("objectRestSpread","classProperties")}if(a){e.push("jsx")}}t.plugins.push(["typescript",{disallowAmbiguousJSXLike:r,dts:s}])}}}))},3710:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(8609);var a=r(4320);var n=(0,a.declare)((e=>{e.assertVersion(7);return(0,s.createRegExpFeaturePlugin)({name:"syntax-unicode-sets-regex",feature:"unicodeSetsFlag_syntax",manipulateOptions(e,t){t.plugins.push("regexpUnicodeSets")}})}));t["default"]=n},1991:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=t["default"]=(0,s.declare)(((e,t)=>{var r;e.assertVersion(7);const s=(r=e.assumption("noNewArrows"))!=null?r:!t.spec;return{name:"transform-arrow-functions",visitor:{ArrowFunctionExpression(e){if(!e.isArrowFunctionExpression())return;{e.arrowFunctionToExpression({allowInsertArrow:false,noNewArrows:s,specCompliant:!s})}}}}}))},6729:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;var s=r(1485);const a=(0,s.template)(`\n async function wrapper() {\n var ITERATOR_ABRUPT_COMPLETION = false;\n var ITERATOR_HAD_ERROR_KEY = false;\n var ITERATOR_ERROR_KEY;\n try {\n for (\n var ITERATOR_KEY = GET_ITERATOR(OBJECT), STEP_KEY;\n ITERATOR_ABRUPT_COMPLETION = !(STEP_KEY = await ITERATOR_KEY.next()).done;\n ITERATOR_ABRUPT_COMPLETION = false\n ) {\n }\n } catch (err) {\n ITERATOR_HAD_ERROR_KEY = true;\n ITERATOR_ERROR_KEY = err;\n } finally {\n try {\n if (ITERATOR_ABRUPT_COMPLETION && ITERATOR_KEY.return != null) {\n await ITERATOR_KEY.return();\n }\n } finally {\n if (ITERATOR_HAD_ERROR_KEY) {\n throw ITERATOR_ERROR_KEY;\n }\n }\n }\n }\n`);function _default(e,{getAsyncIterator:t}){const{node:r,scope:n,parent:i}=e;const o=n.generateUidIdentifier("step");const l=s.types.memberExpression(o,s.types.identifier("value"));const c=r.left;let u;if(s.types.isIdentifier(c)||s.types.isPattern(c)||s.types.isMemberExpression(c)){u=s.types.expressionStatement(s.types.assignmentExpression("=",c,l))}else if(s.types.isVariableDeclaration(c)){u=s.types.variableDeclaration(c.kind,[s.types.variableDeclarator(c.declarations[0].id,l)])}let p=a({ITERATOR_HAD_ERROR_KEY:n.generateUidIdentifier("didIteratorError"),ITERATOR_ABRUPT_COMPLETION:n.generateUidIdentifier("iteratorAbruptCompletion"),ITERATOR_ERROR_KEY:n.generateUidIdentifier("iteratorError"),ITERATOR_KEY:n.generateUidIdentifier("iterator"),GET_ITERATOR:t,OBJECT:r.right,STEP_KEY:s.types.cloneNode(o)});p=p.body.body;const d=s.types.isLabeledStatement(i);const f=p[3].block.body;const y=f[0];if(d){f[0]=s.types.labeledStatement(i.label,y)}return{replaceParent:d,node:p,declar:u,loop:y}}},8009:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=r(1317);var n=r(1485);var i=r(8384);var o=r(6729);var l=t["default"]=(0,s.declare)((e=>{e.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");const t=i.visitors.environmentVisitor({ArrowFunctionExpression(e){e.skip()},YieldExpression({node:e},t){if(!e.delegate)return;const r=n.types.callExpression(t.addHelper("asyncIterator"),[e.argument]);e.argument=n.types.callExpression(t.addHelper("asyncGeneratorDelegate"),[r,t.addHelper("awaitAsyncGenerator")])}});const r=i.visitors.environmentVisitor({ArrowFunctionExpression(e){e.skip()},ForOfStatement(e,{file:t}){const{node:r}=e;if(!r.await)return;const s=(0,o.default)(e,{getAsyncIterator:t.addHelper("asyncIterator")});const{declar:a,loop:i}=s;const l=i.body;e.ensureBlock();if(a){l.body.push(a);if(e.node.body.body.length){l.body.push(n.types.blockStatement(e.node.body.body))}}else{l.body.push(...e.node.body.body)}n.types.inherits(i,r);n.types.inherits(i.body,r.body);const c=s.replaceParent?e.parentPath:e;c.replaceWithMultiple(s.node);c.scope.parent.crawl()}});const s={Function(e,s){if(!e.node.async)return;e.traverse(r,s);if(!e.node.generator)return;e.traverse(t,s);e.setData("@babel/plugin-transform-async-generator-functions/async_generator_function",true);(0,a.default)(e,{wrapAsync:s.addHelper("wrapAsyncGenerator"),wrapAwait:s.addHelper("awaitAsyncGenerator")})}};return{name:"transform-async-generator-functions",manipulateOptions:(e,t)=>t.plugins.push("asyncGenerators"),visitor:{Program(e,t){e.traverse(s,t)}}}}))},2369:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=r(1317);var n=r(9696);var i=r(1485);var o=t["default"]=(0,s.declare)(((e,t)=>{var r,s;e.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");const{method:o,module:l}=t;const c=(r=e.assumption("noNewArrows"))!=null?r:true;const u=(s=e.assumption("ignoreFunctionLength"))!=null?s:false;if(o&&l){return{name:"transform-async-to-generator",visitor:{Function(e,t){if(!e.node.async||e.node.generator)return;let r=t.methodWrapper;if(r){r=i.types.cloneNode(r)}else{r=t.methodWrapper=(0,n.addNamed)(e,o,l)}(0,a.default)(e,{wrapAsync:r},c,u)}}}}return{name:"transform-async-to-generator",visitor:{Function(e,t){if(!e.node.async||e.node.generator)return;(0,a.default)(e,{wrapAsync:t.addHelper("asyncToGenerator")},c,u)}}}}))},333:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=r(1485);var n=t["default"]=(0,s.declare)((e=>{e.assertVersion(7);function transformStatementList(e,t){for(const e of t){if(!e.isFunctionDeclaration())continue;const t=e.node;const r=a.types.variableDeclaration("let",[a.types.variableDeclarator(t.id,a.types.toExpression(t))]);r._blockHoist=2;t.id=null;e.replaceWith(r)}}return{name:"transform-block-scoped-functions",visitor:{BlockStatement(e){const{node:t,parent:r}=e;if(a.types.isFunction(r,{body:t})||a.types.isExportDeclaration(r)){return}transformStatementList(e,e.get("body"))},SwitchCase(e){transformStatementList(e,e.get("consequent"))}}}}))},8526:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.annexB33FunctionsVisitor=void 0;t.isVarScope=isVarScope;var s=r(1485);const a=t.annexB33FunctionsVisitor=Object.assign({VariableDeclaration(e){if(isStrict(e))return;if(e.node.kind!=="var")return;const t=e.scope.getFunctionParent()||e.scope.getProgramParent();t.path.traverse(n,{names:Object.keys(e.getBindingIdentifiers())})}},{BlockStatement(e){if(isStrict(e))return;if(s.types.isFunction(e.parent,{body:e.node}))return;transformStatementList(e.get("body"))},SwitchCase(e){if(isStrict(e))return;transformStatementList(e.get("consequent"))}});function transformStatementList(e){e:for(const t of e){if(!t.isFunctionDeclaration())continue;if(t.node.async||t.node.generator)return;const{scope:e}=t.parentPath;if(isVarScope(e))return;const{name:r}=t.node.id;let s=e;do{if(s.parent.hasOwnBinding(r))continue e;s=s.parent}while(!isVarScope(s));maybeTransformBlockScopedFunction(t)}}function maybeTransformBlockScopedFunction(e){const{node:t,parentPath:{scope:r}}=e;const{id:a}=t;r.removeOwnBinding(a.name);t.id=null;const n=s.types.variableDeclaration("var",[s.types.variableDeclarator(a,s.types.toExpression(t))]);n._blockHoist=2;const[i]=e.replaceWith(n);r.registerDeclaration(i)}const n={Scope(e,{names:t}){for(const r of t){const t=e.scope.getOwnBinding(r);if(t&&t.kind==="hoisted"){maybeTransformBlockScopedFunction(t.path)}}},"Expression|Declaration"(e){e.skip()}};function isVarScope(e){return e.path.isFunctionParent()||e.path.isProgram()}function isStrict(e){return!!e.find((({node:e})=>{var t;if(s.types.isProgram(e)){if(e.sourceType==="module")return true}else if(s.types.isClass(e)){return true}else if(!s.types.isBlockStatement(e)){return false}return(t=e.directives)==null?void 0:t.some((e=>e.value.value==="use strict"))}))}},4675:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=r(1485);var n=r(8145);var i=r(7128);var o=r(8526);var l=t["default"]=(0,s.declare)(((e,t)=>{e.assertVersion(7);const{throwIfClosureRequired:r=false,tdz:s=false}=t;if(typeof r!=="boolean"){throw new Error(`.throwIfClosureRequired must be a boolean, or undefined`)}if(typeof s!=="boolean"){throw new Error(`.tdz must be a boolean, or undefined`)}return{name:"transform-block-scoping",visitor:a.traverse.visitors.merge([o.annexB33FunctionsVisitor,{Loop(e,t){const a=e.isForStatement();const i=a?e.get("init"):e.isForXStatement()?e.get("left"):null;let o=false;const markNeedsBodyWrap=()=>{if(r){throw e.buildCodeFrameError("Compiling let/const in this block would add a closure "+"(throwIfClosureRequired).")}o=true};const l=e.get("body");let c;if(l.isBlockStatement()){c=l.scope}const u=(0,n.getLoopBodyBindings)(e);for(const t of u){const{capturedInClosure:r}=(0,n.getUsageInBody)(t,e);if(r)markNeedsBodyWrap()}const p=[];const d=new Map;if(i&&isBlockScoped(i)){const t=Object.keys(i.getBindingIdentifiers());const r=i.scope;for(let s of t){var f;if((f=c)!=null&&f.hasOwnBinding(s))continue;let t=r.getOwnBinding(s);if(!t){r.crawl();t=r.getOwnBinding(s)}const{usages:i,capturedInClosure:o,hasConstantViolations:l}=(0,n.getUsageInBody)(t,e);if(r.parent.hasBinding(s)||r.parent.hasGlobal(s)){const e=r.generateUid(s);r.rename(s,e);s=e}if(o){markNeedsBodyWrap();p.push(s)}if(a&&l){d.set(s,i)}}}if(o){const r=(0,n.wrapLoopBody)(e,p,d);if(i!=null&&i.isVariableDeclaration()){transformBlockScopedVariable(i,t,s)}r.get("declarations.0.init").unwrapFunctionEnvironment()}},VariableDeclaration(e,t){transformBlockScopedVariable(e,t,s)},ClassDeclaration(e){const{id:t}=e.node;if(!t)return;const{scope:r}=e.parentPath;if(!(0,o.isVarScope)(r)&&r.parent.hasBinding(t.name,{noUids:true})){e.scope.rename(t.name)}}}])}}));const c={Scope(e,{names:t}){for(const r of t){const t=e.scope.getOwnBinding(r);if(t&&t.kind==="hoisted"){e.scope.rename(r)}}},"Expression|Declaration"(e){e.skip()}};function transformBlockScopedVariable(e,t,r){if(!isBlockScoped(e))return;const s=(0,i.validateUsage)(e,t,r);e.node.kind="var";const o=Object.keys(e.getBindingIdentifiers());for(const t of o){const r=e.scope.getOwnBinding(t);if(!r)continue;r.kind="var"}if(isInLoop(e)&&!(0,n.isVarInLoopHead)(e)||s.length>0){for(const t of e.node.declarations){var l;(l=t.init)!=null?l:t.init=e.scope.buildUndefinedNode()}}const u=e.scope;const p=u.getFunctionParent()||u.getProgramParent();if(p!==u){for(const e of o){let t=e;if(u.parent.hasBinding(e,{noUids:true})||u.parent.hasGlobal(e)){t=u.generateUid(e);u.rename(e,t)}u.moveBindingTo(t,p)}}u.path.traverse(c,{names:o});for(const r of s){e.scope.push({id:a.types.identifier(r),init:t.addHelper("temporalUndefined")})}}function isLetOrConst(e){return e==="let"||e==="const"}function isInLoop(e){if(!e.parentPath)return false;if(e.parentPath.isLoop())return true;if(e.parentPath.isFunctionParent())return false;return isInLoop(e.parentPath)}function isBlockScoped(e){const{node:t}=e;if(!a.types.isVariableDeclaration(t))return false;const{kind:r}=t;if(r==="using"||r==="await using"){throw e.buildCodeFrameError(`The ${r} declaration should be first transformed by \`@babel/plugin-transform-explicit-resource-management\`.`)}else if(!isLetOrConst(r)){return false}return true}},8145:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLoopBodyBindings=getLoopBodyBindings;t.getUsageInBody=getUsageInBody;t.isVarInLoopHead=isVarInLoopHead;t.wrapLoopBody=wrapLoopBody;var s=r(1485);const a={"Expression|Declaration|Loop"(e){e.skip()},Scope(e,t){if(e.isFunctionParent())e.skip();const{bindings:r}=e.scope;for(const e of Object.keys(r)){const s=r[e];if(s.kind==="let"||s.kind==="const"||s.kind==="hoisted"){t.blockScoped.push(s)}}}};function getLoopBodyBindings(e){const t={blockScoped:[]};e.traverse(a,t);return t.blockScoped}function getUsageInBody(e,t){const r=new WeakSet;let s=false;const a=filterMap(e.constantViolations,(e=>{const{inBody:a,inClosure:n}=relativeLoopLocation(e,t);if(!a)return null;s||(s=n);const i=e.isUpdateExpression()?e.get("argument"):e.isAssignmentExpression()?e.get("left"):null;if(i)r.add(i.node);return i}));const n=filterMap(e.referencePaths,(e=>{if(r.has(e.node))return null;const{inBody:a,inClosure:n}=relativeLoopLocation(e,t);if(!a)return null;s||(s=n);return e}));return{capturedInClosure:s,hasConstantViolations:a.length>0,usages:n.concat(a)}}function relativeLoopLocation(e,t){const r=t.get("body");let s=false;for(let a=e;a;a=a.parentPath){if(a.isFunction()||a.isClass()||a.isMethod()){s=true}if(a===r){return{inBody:true,inClosure:s}}else if(a===t){return{inBody:false,inClosure:s}}}throw new Error("Internal Babel error: path is not in loop. Please report this as a bug.")}const n={Function(e){e.skip()},LabeledStatement:{enter({node:e},t){t.labelsStack.push(e.label.name)},exit({node:e},t){const r=t.labelsStack.pop();if(r!==e.label.name){throw new Error("Assertion failure. Please report this bug to Babel.")}}},Loop:{enter(e,t){t.labellessContinueTargets++;t.labellessBreakTargets++},exit(e,t){t.labellessContinueTargets--;t.labellessBreakTargets--}},SwitchStatement:{enter(e,t){t.labellessBreakTargets++},exit(e,t){t.labellessBreakTargets--}},"BreakStatement|ContinueStatement"(e,t){const{label:r}=e.node;if(r){if(t.labelsStack.includes(r.name))return}else if(e.isBreakStatement()?t.labellessBreakTargets>0:t.labellessContinueTargets>0){return}t.breaksContinues.push(e)},ReturnStatement(e,t){t.returns.push(e)},VariableDeclaration(e,t){if(e.parent===t.loopNode&&isVarInLoopHead(e))return;if(e.node.kind==="var")t.vars.push(e)}};function wrapLoopBody(e,t,r){const a=e.node;const i={breaksContinues:[],returns:[],labelsStack:[],labellessBreakTargets:0,labellessContinueTargets:0,vars:[],loopNode:a};e.traverse(n,i);const o=[];const l=[];const c=[];for(const[t,a]of r){o.push(s.types.identifier(t));const r=e.scope.generateUid(t);l.push(s.types.identifier(r));c.push(s.types.assignmentExpression("=",s.types.identifier(t),s.types.identifier(r)));for(const e of a)e.replaceWith(s.types.identifier(r))}for(const e of t){if(r.has(e))continue;o.push(s.types.identifier(e));l.push(s.types.identifier(e))}const u=e.scope.generateUid("loop");const p=s.types.functionExpression(null,l,s.types.toBlock(a.body));let d=s.types.callExpression(s.types.identifier(u),o);const f=e.findParent((e=>e.isFunction()));if(f){const{async:e,generator:t}=f.node;p.async=e;p.generator=t;if(t)d=s.types.yieldExpression(d,true);else if(e)d=s.types.awaitExpression(d)}const y=c.length>0?s.types.expressionStatement(s.types.sequenceExpression(c)):null;if(y)p.body.body.push(y);const[h]=e.insertBefore(s.types.variableDeclaration("var",[s.types.variableDeclarator(s.types.identifier(u),p)]));const g=[];const b=[];for(const e of i.vars){const t=[];for(const r of e.node.declarations){b.push(...Object.keys(s.types.getBindingIdentifiers(r.id)));if(r.init){t.push(s.types.assignmentExpression("=",r.id,r.init))}else if(s.types.isForXStatement(e.parent,{left:e.node})){t.push(r.id)}}if(t.length>0){const r=t.length===1?t[0]:s.types.sequenceExpression(t);e.replaceWith(r)}else{e.remove()}}if(b.length){h.pushContainer("declarations",b.map((e=>s.types.variableDeclarator(s.types.identifier(e)))))}const x=i.breaksContinues.length;const v=i.returns.length;if(x+v===0){g.push(s.types.expressionStatement(d))}else if(x===1&&v===0){for(const e of i.breaksContinues){const{node:t}=e;const{type:r,label:a}=t;let n=r==="BreakStatement"?"break":"continue";if(a)n+=" "+a.name;e.replaceWith(s.types.addComment(s.types.returnStatement(s.types.numericLiteral(1)),"trailing"," "+n,true));if(y)e.insertBefore(s.types.cloneNode(y));g.push(s.template.statement.ast`
201
+ `}}};const v=Object.assign({},b,{prop(e){const{property:t}=e.node;if(this.memoiser.has(t)){return c(this.memoiser.get(t))}return c(t)},get(e){const{isStatic:t,getSuperRef:r}=this;const{computed:s}=e.node;const a=this.prop(e);let n;if(t){var i;n=(i=r())!=null?i:p(u("Function"),u("prototype"))}else{var o;n=p((o=r())!=null?o:u("Object"),u("prototype"))}return p(n,a,s)},set(e,t){const{computed:r}=e.node;const s=this.prop(e);return o("=",p(y(),s,r),t)},destructureSet(e){const{computed:t}=e.node;const r=this.prop(e);return p(y(),r,t)},call(e,t){return(0,a.default)(this.get(e),y(),t,false)},optionalCall(e,t){return(0,a.default)(this.get(e),y(),t,true)}});class ReplaceSupers{constructor(e){var t;const r=e.methodPath;this.methodPath=r;this.isDerivedConstructor=r.isClassMethod({kind:"constructor"})&&!!e.superRef;this.isStatic=r.isObjectMethod()||r.node.static||(r.isStaticBlock==null?void 0:r.isStaticBlock());this.isPrivateMethod=r.isPrivate()&&r.isMethod();this.file=e.file;this.constantSuper=(t=e.constantSuper)!=null?t:e.isLoose;this.opts=e}getObjectRef(){return c(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){if(this.opts.superRef)return c(this.opts.superRef);if(this.opts.getSuperRef){return c(this.opts.getSuperRef())}}replace(){const{methodPath:e}=this;if(this.opts.refToPreserve){e.traverse(g,{refName:this.opts.refToPreserve.name})}const t=this.constantSuper?v:this.file.availableHelper("superPropSet")?b:x;h.shouldSkip=t=>{if(t.parentPath===e){if(t.parentKey==="decorators"||t.parentKey==="key"){return true}}};(0,s.default)(e,h,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:t.get},t))}}t["default"]=ReplaceSupers},2722:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isTransparentExprWrapper=isTransparentExprWrapper;t.skipTransparentExprWrapperNodes=skipTransparentExprWrapperNodes;t.skipTransparentExprWrappers=skipTransparentExprWrappers;var s=r(9551);const{isParenthesizedExpression:a,isTSAsExpression:n,isTSNonNullExpression:i,isTSSatisfiesExpression:o,isTSTypeAssertion:l,isTypeCastExpression:c}=s;function isTransparentExprWrapper(e){return n(e)||o(e)||l(e)||i(e)||c(e)||a(e)}function skipTransparentExprWrappers(e){while(isTransparentExprWrapper(e.node)){e=e.get("expression")}return e}function skipTransparentExprWrapperNodes(e){while(isTransparentExprWrapper(e)){e=e.expression}return e}},5616:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.readCodePoint=readCodePoint;t.readInt=readInt;t.readStringContents=readStringContents;var r=function isDigit(e){return e>=48&&e<=57};const s={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])};const a={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function readStringContents(e,t,r,s,a,n){const i=r;const o=s;const l=a;let c="";let u=null;let p=r;const{length:d}=t;for(;;){if(r>=d){n.unterminated(i,o,l);c+=t.slice(p,r);break}const f=t.charCodeAt(r);if(isStringEnd(e,f,t,r)){c+=t.slice(p,r);break}if(f===92){c+=t.slice(p,r);const i=readEscapedChar(t,r,s,a,e==="template",n);if(i.ch===null&&!u){u={pos:r,lineStart:s,curLine:a}}else{c+=i.ch}({pos:r,lineStart:s,curLine:a}=i);p=r}else if(f===8232||f===8233){++r;++a;s=r}else if(f===10||f===13){if(e==="template"){c+=t.slice(p,r)+"\n";++r;if(f===13&&t.charCodeAt(r)===10){++r}++a;p=s=r}else{n.unterminated(i,o,l)}}else{++r}}return{pos:r,str:c,firstInvalidLoc:u,lineStart:s,curLine:a,containsInvalid:!!u}}function isStringEnd(e,t,r,s){if(e==="template"){return t===96||t===36&&r.charCodeAt(s+1)===123}return t===(e==="double"?34:39)}function readEscapedChar(e,t,r,s,a,n){const i=!a;t++;const res=e=>({pos:t,ch:e,lineStart:r,curLine:s});const o=e.charCodeAt(t++);switch(o){case 110:return res("\n");case 114:return res("\r");case 120:{let a;({code:a,pos:t}=readHexChar(e,t,r,s,2,false,i,n));return res(a===null?null:String.fromCharCode(a))}case 117:{let a;({code:a,pos:t}=readCodePoint(e,t,r,s,i,n));return res(a===null?null:String.fromCodePoint(a))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:if(e.charCodeAt(t)===10){++t}case 10:r=t;++s;case 8232:case 8233:return res("");case 56:case 57:if(a){return res(null)}else{n.strictNumericEscape(t-1,r,s)}default:if(o>=48&&o<=55){const i=t-1;const o=/^[0-7]+/.exec(e.slice(i,t+2));let l=o[0];let c=parseInt(l,8);if(c>255){l=l.slice(0,-1);c=parseInt(l,8)}t+=l.length-1;const u=e.charCodeAt(t);if(l!=="0"||u===56||u===57){if(a){return res(null)}else{n.strictNumericEscape(i,r,s)}}return res(String.fromCharCode(c))}return res(String.fromCharCode(o))}}function readHexChar(e,t,r,s,a,n,i,o){const l=t;let c;({n:c,pos:t}=readInt(e,t,r,s,16,a,n,false,o,!i));if(c===null){if(i){o.invalidEscapeSequence(l,r,s)}else{t=l-1}}return{code:c,pos:t}}function readInt(e,t,n,i,o,l,c,u,p,d){const f=t;const y=o===16?s.hex:s.decBinOct;const h=o===16?a.hex:o===10?a.dec:o===8?a.oct:a.bin;let g=false;let b=0;for(let s=0,a=l==null?Infinity:l;s<a;++s){const s=e.charCodeAt(t);let a;if(s===95&&u!=="bail"){const r=e.charCodeAt(t-1);const s=e.charCodeAt(t+1);if(!u){if(d)return{n:null,pos:t};p.numericSeparatorInEscapeSequence(t,n,i)}else if(Number.isNaN(s)||!h(s)||y.has(r)||y.has(s)){if(d)return{n:null,pos:t};p.unexpectedNumericSeparator(t,n,i)}++t;continue}if(s>=97){a=s-97+10}else if(s>=65){a=s-65+10}else if(r(s)){a=s-48}else{a=Infinity}if(a>=o){if(a<=9&&d){return{n:null,pos:t}}else if(a<=9&&p.invalidDigit(t,n,i,o)){a=0}else if(c){a=0;g=true}else{break}}++t;b=b*o+a}if(t===f||l!=null&&t-f!==l||g){return{n:null,pos:t}}return{n:b,pos:t}}function readCodePoint(e,t,r,s,a,n){const i=e.charCodeAt(t);let o;if(i===123){++t;({code:o,pos:t}=readHexChar(e,t,r,s,e.indexOf("}",t)-t,true,a,n));++t;if(o!==null&&o>1114111){if(a){n.invalidCodePoint(t,r,s)}else{return{code:null,pos:t}}}}else{({code:o,pos:t}=readHexChar(e,t,r,s,4,false,a,n))}return{code:o,pos:t}}},5671:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIdentifierChar=isIdentifierChar;t.isIdentifierName=isIdentifierName;t.isIdentifierStart=isIdentifierStart;let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let s="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const a=new RegExp("["+r+"]");const n=new RegExp("["+r+s+"]");r=s=null;const i=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const o=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let s=0,a=t.length;s<a;s+=2){r+=t[s];if(r>e)return false;r+=t[s+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&a.test(String.fromCharCode(e))}return isInAstralSet(e,i)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&n.test(String.fromCharCode(e))}return isInAstralSet(e,i)||isInAstralSet(e,o)}function isIdentifierName(e){let t=true;for(let r=0;r<e.length;r++){let s=e.charCodeAt(r);if((s&64512)===55296&&r+1<e.length){const t=e.charCodeAt(++r);if((t&64512)===56320){s=65536+((s&1023)<<10)+(t&1023)}}if(t){t=false;if(!isIdentifierStart(s)){return false}}else if(!isIdentifierChar(s)){return false}}return!t}},3218:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"isIdentifierChar",{enumerable:true,get:function(){return s.isIdentifierChar}});Object.defineProperty(t,"isIdentifierName",{enumerable:true,get:function(){return s.isIdentifierName}});Object.defineProperty(t,"isIdentifierStart",{enumerable:true,get:function(){return s.isIdentifierStart}});Object.defineProperty(t,"isKeyword",{enumerable:true,get:function(){return a.isKeyword}});Object.defineProperty(t,"isReservedWord",{enumerable:true,get:function(){return a.isReservedWord}});Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return a.isStrictBindOnlyReservedWord}});Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:true,get:function(){return a.isStrictBindReservedWord}});Object.defineProperty(t,"isStrictReservedWord",{enumerable:true,get:function(){return a.isStrictReservedWord}});var s=r(5671);var a=r(6657)},6657:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyword=isKeyword;t.isReservedWord=isReservedWord;t.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;t.isStrictBindReservedWord=isStrictBindReservedWord;t.isStrictReservedWord=isStrictReservedWord;const r={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const s=new Set(r.keyword);const a=new Set(r.strict);const n=new Set(r.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||a.has(e)}function isStrictBindOnlyReservedWord(e){return n.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return s.has(e)}},4588:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findSuggestion=findSuggestion;const{min:r}=Math;function levenshtein(e,t){let s=[],a=[],n,i;const o=e.length,l=t.length;if(!o){return l}if(!l){return o}for(i=0;i<=l;i++){s[i]=i}for(n=1;n<=o;n++){for(a=[n],i=1;i<=l;i++){a[i]=e[n-1]===t[i-1]?s[i-1]:r(s[i-1],s[i],a[i-1])+1}s=a}return a[l]}function findSuggestion(e,t){const s=t.map((t=>levenshtein(t,e)));return t[s.indexOf(r(...s))]}},5418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"OptionValidator",{enumerable:true,get:function(){return s.OptionValidator}});Object.defineProperty(t,"findSuggestion",{enumerable:true,get:function(){return a.findSuggestion}});var s=r(4268);var a=r(4588)},4268:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.OptionValidator=void 0;var s=r(4588);class OptionValidator{constructor(e){this.descriptor=e}validateTopLevelOptions(e,t){const r=Object.keys(t);for(const t of Object.keys(e)){if(!r.includes(t)){throw new Error(this.formatMessage(`'${t}' is not a valid top-level option.\n- Did you mean '${(0,s.findSuggestion)(t,r)}'?`))}}}validateBooleanOption(e,t,r){if(t===undefined){return r}else{this.invariant(typeof t==="boolean",`'${e}' option must be a boolean.`)}return t}validateStringOption(e,t,r){if(t===undefined){return r}else{this.invariant(typeof t==="string",`'${e}' option must be a string.`)}return t}invariant(e,t){if(!e){throw new Error(this.formatMessage(t))}}formatMessage(e){return`${this.descriptor}: ${e}`}}t.OptionValidator=OptionValidator},4216:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=wrapFunction;var s=r(3219);var a=r(9551);const{blockStatement:n,callExpression:i,functionExpression:o,isAssignmentPattern:l,isFunctionDeclaration:c,isRestElement:u,returnStatement:p,isCallExpression:d,memberExpression:f,identifier:y,thisExpression:h,isPattern:g}=a;const b=s.default.expression(`\n (function () {\n var REF = FUNCTION;\n return function NAME(PARAMS) {\n return REF.apply(this, arguments);\n };\n })()\n`);const x=s.default.expression(`\n (function () {\n var REF = FUNCTION;\n function NAME(PARAMS) {\n return REF.apply(this, arguments);\n }\n return NAME;\n })()\n`);const v=s.default.statements(`\n function NAME(PARAMS) { return REF.apply(this, arguments); }\n function REF() {\n REF = FUNCTION;\n return REF.apply(this, arguments);\n }\n`);function classOrObjectMethod(e,t,r){const s=e.node;const a=s.body;let c=[];const d=s.params.some((e=>g(e)));if(d){c=s.params;s.params=[];if(!r){for(const t of c){if(l(t)||u(t)){break}s.params.push(e.scope.generateUidIdentifier("x"))}}}const b=o(null,c,n(a.body),true);if(d){a.body=[p(i(f(i(t,[b]),y("apply")),[h(),y("arguments")]))];e.get("body.body.0.argument.callee.object.arguments.0").unwrapFunctionEnvironment()}else{a.body=[p(i(i(t,[b]),[]))];e.get("body.body.0.argument.callee.arguments.0").unwrapFunctionEnvironment()}s.async=false;s.generator=false}function plainFunction(e,t,r,s,a){let n=e;let o;let p=null;const f=e.node.params;if(n.isArrowFunctionExpression()){{var y;n=(y=n.arrowFunctionToExpression({noNewArrows:r}))!=null?y:n}o=n.node}else{o=n.node}const h=c(o);let g=o;if(!d(o)){p=o.id;o.id=null;o.type="FunctionExpression";g=i(t,[o])}const E=[];for(const e of f){if(l(e)||u(e)){break}E.push(n.scope.generateUidIdentifier("x"))}const S={NAME:p||null,REF:n.scope.generateUidIdentifier(a?p.name:"ref"),FUNCTION:g,PARAMS:E};if(h){const e=v(S);n.replaceWith(e[0]);n.insertAfter(e[1])}else{let e;if(a){e=x(S)}else{e=b(S)}if(p||!s&&E.length){n.replaceWith(e)}else{n.replaceWith(g)}}}function wrapFunction(e,t,s=true,a=false){if(e.isMethod()){classOrObjectMethod(e,t,a)}else{const o="id"in e.node&&!!e.node.id;{var n,i;(i=(n=e).ensureFunctionName)!=null?i:n.ensureFunctionName=r(8384).NodePath.prototype.ensureFunctionName}e=e.ensureFunctionName(false);plainFunction(e,t,s,a,o)}}},126:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(3219);function helper(e,t,r){return Object.freeze({minVersion:e,ast:()=>s.default.program.ast(t,{preserveComments:true}),metadata:r})}const a=t["default"]={__proto__:null,OverloadYield:helper("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{},internal:false}),applyDecoratedDescriptor:helper("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:false}),applyDecs2311:helper("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(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;i<n.length;i++){var a=n[i],c=a[1],l=7&c;if((8&c)==t&&!l==r){var p=a[2],d=!!a[3],m=16&c;applyDec(t?e:e.prototype,a,m,d?"#"+p:toPropertyKey(p),l,l<2?[]:t?s=s||[]:u=u||[],f,!!t,d,r,t&&d?function(t){return checkInRHS(t)===e}:o)}}},p(8,0),p(0,0),p(8,1),p(0,1),l(u),l(s),c=f,v||w(e),{e:c,get c(){var n=[];return v&&[w(e=applyDec(e,[t],r,e.name,5,n)),g(n,1)]}}}',{globals:["Symbol","Object","TypeError","Error"],locals:{applyDecs2311:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2311",dependencies:{checkInRHS:["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.10.consequent.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.3.alternate.callee"]},internal:false}),arrayLikeToArray:helper("7.9.0","function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}",{globals:["Array"],locals:{_arrayLikeToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayLikeToArray",dependencies:{},internal:false}),arrayWithHoles:helper("7.0.0-beta.0","function _arrayWithHoles(r){if(Array.isArray(r))return r}",{globals:["Array"],locals:{_arrayWithHoles:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayWithHoles",dependencies:{},internal:false}),arrayWithoutHoles:helper("7.0.0-beta.0","function _arrayWithoutHoles(r){if(Array.isArray(r))return arrayLikeToArray(r)}",{globals:["Array"],locals:{_arrayWithoutHoles:["body.0.id"]},exportBindingAssignments:[],exportName:"_arrayWithoutHoles",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.argument.callee"]},internal:false}),assertClassBrand:helper("7.24.0",'function _assertClassBrand(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}',{globals:["TypeError"],locals:{_assertClassBrand:["body.0.id"]},exportBindingAssignments:[],exportName:"_assertClassBrand",dependencies:{},internal:false}),assertThisInitialized:helper("7.0.0-beta.0","function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return e}",{globals:["ReferenceError"],locals:{_assertThisInitialized:["body.0.id"]},exportBindingAssignments:[],exportName:"_assertThisInitialized",dependencies:{},internal:false}),asyncGeneratorDelegate:helper("7.0.0-beta.0",'function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise((function(n){n(t[e](r))})),{done:!1,value:new OverloadYield(r,1)}}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(t){return n?(n=!1,t):pump("next",t)},"function"==typeof t.throw&&(e.throw=function(t){if(n)throw n=!1,t;return pump("throw",t)}),"function"==typeof t.return&&(e.return=function(t){return n?(n=!1,t):pump("return",t)}),e}',{globals:["Promise","Symbol"],locals:{_asyncGeneratorDelegate:["body.0.id"]},exportBindingAssignments:[],exportName:"_asyncGeneratorDelegate",dependencies:{OverloadYield:["body.0.body.body.1.body.body.0.argument.expressions.2.properties.1.value.callee"]},internal:false}),asyncIterator:helper("7.15.9",'function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then((function(r){return{value:r,done:n}}))}return AsyncFromSyncIterator=function(r){this.s=r,this.n=r.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))},throw:function(r){var n=this.s.return;return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))}},new AsyncFromSyncIterator(r)}',{globals:["Symbol","TypeError","Object","Promise"],locals:{_asyncIterator:["body.0.id"],AsyncFromSyncIterator:["body.1.id","body.0.body.body.1.body.body.1.consequent.argument.callee","body.1.body.body.1.argument.expressions.1.left.object","body.1.body.body.1.argument.expressions.2.callee","body.1.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:[],exportName:"_asyncIterator",dependencies:{},internal:false}),asyncToGenerator:helper("7.0.0-beta.0",'function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n)}_next(void 0)}))}}',{globals:["Promise"],locals:{asyncGeneratorStep:["body.0.id","body.1.body.body.0.argument.body.body.1.argument.arguments.0.body.body.1.body.body.0.expression.callee","body.1.body.body.0.argument.body.body.1.argument.arguments.0.body.body.2.body.body.0.expression.callee"],_asyncToGenerator:["body.1.id"]},exportBindingAssignments:[],exportName:"_asyncToGenerator",dependencies:{},internal:false}),awaitAsyncGenerator:helper("7.0.0-beta.0","function _awaitAsyncGenerator(e){return new OverloadYield(e,0)}",{globals:[],locals:{_awaitAsyncGenerator:["body.0.id"]},exportBindingAssignments:[],exportName:"_awaitAsyncGenerator",dependencies:{OverloadYield:["body.0.body.body.0.argument.callee"]},internal:false}),callSuper:helper("7.23.8","function _callSuper(t,o,e){return o=getPrototypeOf(o),possibleConstructorReturn(t,isNativeReflectConstruct()?Reflect.construct(o,e||[],getPrototypeOf(t).constructor):o.apply(t,e))}",{globals:["Reflect"],locals:{_callSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_callSuper",dependencies:{getPrototypeOf:["body.0.body.body.0.argument.expressions.0.right.callee","body.0.body.body.0.argument.expressions.1.arguments.1.consequent.arguments.2.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.argument.expressions.1.arguments.1.test.callee"],possibleConstructorReturn:["body.0.body.body.0.argument.expressions.1.callee"]},internal:false}),checkInRHS:helper("7.20.5",'function _checkInRHS(e){if(Object(e)!==e)throw TypeError("right-hand side of \'in\' should be an object, got "+(null!==e?typeof e:"null"));return e}',{globals:["Object","TypeError"],locals:{_checkInRHS:["body.0.id"]},exportBindingAssignments:[],exportName:"_checkInRHS",dependencies:{},internal:false}),checkPrivateRedeclaration:helper("7.14.1",'function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}',{globals:["TypeError"],locals:{_checkPrivateRedeclaration:["body.0.id"]},exportBindingAssignments:[],exportName:"_checkPrivateRedeclaration",dependencies:{},internal:false}),classCallCheck:helper("7.0.0-beta.0",'function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}',{globals:["TypeError"],locals:{_classCallCheck:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCallCheck",dependencies:{},internal:false}),classNameTDZError:helper("7.0.0-beta.0","function _classNameTDZError(e){throw new ReferenceError('Class \"'+e+'\" cannot be referenced in computed property keys.')}",{globals:["ReferenceError"],locals:{_classNameTDZError:["body.0.id"]},exportBindingAssignments:[],exportName:"_classNameTDZError",dependencies:{},internal:false}),classPrivateFieldGet2:helper("7.24.0","function _classPrivateFieldGet2(s,a){return s.get(assertClassBrand(s,a))}",{globals:[],locals:{_classPrivateFieldGet2:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet2",dependencies:{assertClassBrand:["body.0.body.body.0.argument.arguments.0.callee"]},internal:false}),classPrivateFieldInitSpec:helper("7.14.1","function _classPrivateFieldInitSpec(e,t,a){checkPrivateRedeclaration(e,t),t.set(e,a)}",{globals:[],locals:{_classPrivateFieldInitSpec:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldInitSpec",dependencies:{checkPrivateRedeclaration:["body.0.body.body.0.expression.expressions.0.callee"]},internal:false}),classPrivateFieldLooseBase:helper("7.0.0-beta.0",'function _classPrivateFieldBase(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}',{globals:["TypeError"],locals:{_classPrivateFieldBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldBase",dependencies:{},internal:false}),classPrivateFieldLooseKey:helper("7.0.0-beta.0",'var id=0;function _classPrivateFieldKey(e){return"__private_"+id+++"_"+e}',{globals:[],locals:{id:["body.0.declarations.0.id","body.1.body.body.0.argument.left.left.right.argument","body.1.body.body.0.argument.left.left.right.argument"],_classPrivateFieldKey:["body.1.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldKey",dependencies:{},internal:false}),classPrivateFieldSet2:helper("7.24.0","function _classPrivateFieldSet2(s,a,r){return s.set(assertClassBrand(s,a),r),r}",{globals:[],locals:{_classPrivateFieldSet2:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet2",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.arguments.0.callee"]},internal:false}),classPrivateGetter:helper("7.24.0","function _classPrivateGetter(s,r,a){return a(assertClassBrand(s,r))}",{globals:[],locals:{_classPrivateGetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateGetter",dependencies:{assertClassBrand:["body.0.body.body.0.argument.arguments.0.callee"]},internal:false}),classPrivateMethodInitSpec:helper("7.14.1","function _classPrivateMethodInitSpec(e,a){checkPrivateRedeclaration(e,a),a.add(e)}",{globals:[],locals:{_classPrivateMethodInitSpec:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodInitSpec",dependencies:{checkPrivateRedeclaration:["body.0.body.body.0.expression.expressions.0.callee"]},internal:false}),classPrivateSetter:helper("7.24.0","function _classPrivateSetter(s,r,a,t){return r(assertClassBrand(s,a),t),t}",{globals:[],locals:{_classPrivateSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateSetter",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.arguments.0.callee"]},internal:false}),classStaticPrivateMethodGet:helper("7.3.2","function _classStaticPrivateMethodGet(s,a,t){return assertClassBrand(a,s),t}",{globals:[],locals:{_classStaticPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]},internal:false}),construct:helper("7.0.0-beta.0","function _construct(t,e,r){if(isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&setPrototypeOf(p,r.prototype),p}",{globals:["Reflect"],locals:{_construct:["body.0.id"]},exportBindingAssignments:[],exportName:"_construct",dependencies:{isNativeReflectConstruct:["body.0.body.body.0.test.callee"],setPrototypeOf:["body.0.body.body.4.argument.expressions.0.right.callee"]},internal:false}),createClass:helper("7.0.0-beta.0",'function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}',{globals:["Object"],locals:{_defineProperties:["body.0.id","body.1.body.body.0.argument.expressions.0.right.callee","body.1.body.body.0.argument.expressions.1.right.callee"],_createClass:["body.1.id"]},exportBindingAssignments:[],exportName:"_createClass",dependencies:{toPropertyKey:["body.0.body.body.0.body.body.1.expression.expressions.3.arguments.1.callee"]},internal:false}),createForOfIteratorHelper:helper("7.9.0",'function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function(){};return{s:F,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelper",dependencies:{unsupportedIterableToArray:["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"]},internal:false}),createForOfIteratorHelperLoose:helper("7.9.0",'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelperLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelperLoose",dependencies:{unsupportedIterableToArray:["body.0.body.body.2.test.left.right.right.callee"]},internal:false}),createSuper:helper("7.9.0","function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,e)}}",{globals:["Reflect"],locals:{_createSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee","body.0.body.body.1.argument.body.body.1.consequent.body.0.declarations.0.init.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.declarations.0.init.callee"],possibleConstructorReturn:["body.0.body.body.1.argument.body.body.2.argument.callee"]},internal:false}),decorate:helper("7.1.5",'function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n<i.length;n++)o=i[n](o);var s=r((function(e){o.initializeInstanceElements(e,a.elements)}),t),a=o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)),e);return o.initializeClassElements(s.F,a.elements),o.runClassFinishers(s.F,a.finishers)}function _getDecoratorsApi(){_getDecoratorsApi=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach((function(t){r.forEach((function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)}),this)}),this)},initializeClassElements:function(e,r){var t=e.prototype;["method","field"].forEach((function(i){r.forEach((function(r){var o=r.placement;if(r.kind===i&&("static"===o||"prototype"===o)){var n="static"===o?e:t;this.defineClassElement(n,r)}}),this)}),this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"===r.kind){var i=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===i?void 0:i.call(e)}}Object.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],i=[],o={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,o)}),this),e.forEach((function(e){if(!_hasDecorators(e))return t.push(e);var r=this.decorateElement(e,o);t.push(r.element),t.push.apply(t,r.extras),i.push.apply(i,r.finishers)}),this),!r)return{elements:t,finishers:i};var n=this.decorateConstructor(t,r);return i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(e,r,t){var i=r[e.placement];if(!t&&-1!==i.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,r){for(var t=[],i=[],o=e.decorators,n=o.length-1;n>=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p<c.length;p++)this.addElementPlacement(c[p],r);t.push.apply(t,c)}}return{element:e,finishers:i,extras:t}},decorateConstructor:function(e,r){for(var t=[],i=r.length-1;i>=0;i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elements){e=n.elements;for(var s=0;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:t}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===e.kind&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){if(void 0!==e)return toArray(e).map((function(e){var r=this.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element descriptor"),r}),this)},toElementDescriptor:function(e){var r=e.kind+"";if("method"!==r&&"field"!==r)throw new TypeError(\'An element descriptor\\\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "\'+r+\'"\');var t=toPropertyKey(e.key),i=e.placement+"";if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError(\'An element descriptor\\\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "\'+i+\'"\');var o=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var n={kind:r,key:t,placement:i,descriptor:Object.assign({},o)};return"field"!==r?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(o,"get","The property descriptor of a field descriptor"),this.disallowProperty(o,"set","The property descriptor of a field descriptor"),this.disallowProperty(o,"value","The property descriptor of a field descriptor"),n.initializer=e.initializer),n},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:_optionalCallableProperty(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=e.kind+"";if("class"!==r)throw new TypeError(\'A class descriptor\\\'s .kind property must be "class", but a decorator created a class descriptor with .kind "\'+r+\'"\');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var t=_optionalCallableProperty(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:t}},runClassFinishers:function(e,r){for(var t=0;t<r.length;t++){var i=(0,r[t])(e);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,r,t){if(void 0!==e[r])throw new TypeError(t+" can\'t have a ."+r+" property.")}};return e}function _createElementDescriptor(e){var r,t=toPropertyKey(e.key);"method"===e.kind?r={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?r={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind?r={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(r={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kind?"field":"method",key:t,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:r};return e.decorators&&(i.decorators=e.decorators),"field"===e.kind&&(i.initializer=e.value),i}function _coalesceGetterSetter(e,r){void 0!==e.descriptor.get?r.descriptor.get=e.descriptor.get:r.descriptor.set=e.descriptor.set}function _coalesceClassElements(e){for(var r=[],isSameElement=function(e){return"method"===e.kind&&e.key===o.key&&e.placement===o.placement},t=0;t<e.length;t++){var i,o=e[t];if("method"===o.kind&&(i=r.find(isSameElement)))if(_isDataDescriptor(o.descriptor)||_isDataDescriptor(i.descriptor)){if(_hasDecorators(o)||_hasDecorators(i))throw new ReferenceError("Duplicated methods ("+o.key+") can\'t be decorated.");i.descriptor=o.descriptor}else{if(_hasDecorators(o)){if(_hasDecorators(i))throw new ReferenceError("Decorators can\'t be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}_coalesceGetterSetter(o,i)}else r.push(o)}return r}function _hasDecorators(e){return e.decorators&&e.decorators.length}function _isDataDescriptor(e){return void 0!==e&&!(void 0===e.value&&void 0===e.writable)}function _optionalCallableProperty(e,r){var t=e[r];if(void 0!==t&&"function"!=typeof t)throw new TypeError("Expected \'"+r+"\' to be a function");return t}',{globals:["Object","TypeError","Symbol","ReferenceError"],locals:{_decorate:["body.0.id"],_getDecoratorsApi:["body.1.id","body.0.body.body.0.declarations.0.init.callee","body.1.body.body.0.expression.left"],_createElementDescriptor:["body.2.id","body.0.body.body.2.declarations.1.init.arguments.0.arguments.0.arguments.0"],_coalesceGetterSetter:["body.3.id","body.4.body.body.0.body.body.1.consequent.alternate.body.1.expression.callee"],_coalesceClassElements:["body.4.id","body.0.body.body.2.declarations.1.init.arguments.0.callee"],_hasDecorators:["body.5.id","body.1.body.body.1.declarations.0.init.properties.4.value.body.body.1.test.expressions.1.arguments.0.body.body.0.test.argument.callee","body.4.body.body.0.body.body.1.consequent.consequent.body.0.test.left.callee","body.4.body.body.0.body.body.1.consequent.consequent.body.0.test.right.callee","body.4.body.body.0.body.body.1.consequent.alternate.body.0.test.callee","body.4.body.body.0.body.body.1.consequent.alternate.body.0.consequent.body.0.test.callee"],_isDataDescriptor:["body.6.id","body.4.body.body.0.body.body.1.consequent.test.left.callee","body.4.body.body.0.body.body.1.consequent.test.right.callee"],_optionalCallableProperty:["body.7.id","body.1.body.body.1.declarations.0.init.properties.11.value.body.body.0.argument.properties.1.value.callee","body.1.body.body.1.declarations.0.init.properties.13.value.body.body.3.declarations.0.init.callee"]},exportBindingAssignments:[],exportName:"_decorate",dependencies:{toArray:["body.1.body.body.1.declarations.0.init.properties.9.value.body.body.0.consequent.argument.callee.object.callee"],toPropertyKey:["body.1.body.body.1.declarations.0.init.properties.10.value.body.body.2.declarations.0.init.callee","body.2.body.body.0.declarations.1.init.callee"]},internal:false}),defaults:helper("7.0.0-beta.0","function _defaults(e,r){for(var t=Object.getOwnPropertyNames(r),o=0;o<t.length;o++){var n=t[o],a=Object.getOwnPropertyDescriptor(r,n);a&&a.configurable&&void 0===e[n]&&Object.defineProperty(e,n,a)}return e}",{globals:["Object"],locals:{_defaults:["body.0.id"]},exportBindingAssignments:[],exportName:"_defaults",dependencies:{},internal:false}),defineAccessor:helper("7.20.7","function _defineAccessor(e,r,n,t){var c={configurable:!0,enumerable:!0};return c[e]=t,Object.defineProperty(r,n,c)}",{globals:["Object"],locals:{_defineAccessor:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineAccessor",dependencies:{},internal:false}),defineProperty:helper("7.0.0-beta.0","function _defineProperty(e,r,t){return(r=toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}",{globals:["Object"],locals:{_defineProperty:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineProperty",dependencies:{toPropertyKey:["body.0.body.body.0.argument.expressions.0.test.left.right.callee"]},internal:false}),extends:helper("7.0.0-beta.0","function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}",{globals:["Object"],locals:{_extends:["body.0.id","body.0.body.body.0.argument.expressions.1.callee.object","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_extends",dependencies:{},internal:false}),get:helper("7.0.0-beta.0",'function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},_get.apply(null,arguments)}',{globals:["Reflect","Object"],locals:{_get:["body.0.id","body.0.body.body.0.argument.expressions.1.callee.object","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_get",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.0.init.callee"]},internal:false}),getPrototypeOf:helper("7.0.0-beta.0","function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}",{globals:["Object"],locals:{_getPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_getPrototypeOf",dependencies:{},internal:false}),identity:helper("7.17.0","function _identity(t){return t}",{globals:[],locals:{_identity:["body.0.id"]},exportBindingAssignments:[],exportName:"_identity",dependencies:{},internal:false}),importDeferProxy:helper("7.23.0","function _importDeferProxy(e){var t=null,constValue=function(e){return function(){return e}},proxy=function(r){return function(n,o,f){return null===t&&(t=e()),r(t,o,f)}};return new Proxy({},{defineProperty:constValue(!1),deleteProperty:constValue(!1),get:proxy(Reflect.get),getOwnPropertyDescriptor:proxy(Reflect.getOwnPropertyDescriptor),getPrototypeOf:constValue(null),isExtensible:constValue(!1),has:proxy(Reflect.has),ownKeys:proxy(Reflect.ownKeys),preventExtensions:constValue(!0),set:constValue(!1),setPrototypeOf:constValue(!1)})}",{globals:["Proxy","Reflect"],locals:{_importDeferProxy:["body.0.id"]},exportBindingAssignments:[],exportName:"_importDeferProxy",dependencies:{},internal:false}),inherits:helper("7.0.0-beta.0",'function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&setPrototypeOf(t,e)}',{globals:["TypeError","Object"],locals:{_inherits:["body.0.id"]},exportBindingAssignments:[],exportName:"_inherits",dependencies:{setPrototypeOf:["body.0.body.body.1.expression.expressions.2.right.callee"]},internal:false}),inheritsLoose:helper("7.0.0-beta.0","function _inheritsLoose(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,setPrototypeOf(t,o)}",{globals:["Object"],locals:{_inheritsLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_inheritsLoose",dependencies:{setPrototypeOf:["body.0.body.body.0.expression.expressions.2.callee"]},internal:false}),initializerDefineProperty:helper("7.0.0-beta.0","function _initializerDefineProperty(e,i,r,l){r&&Object.defineProperty(e,i,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(l):void 0})}",{globals:["Object"],locals:{_initializerDefineProperty:["body.0.id"]},exportBindingAssignments:[],exportName:"_initializerDefineProperty",dependencies:{},internal:false}),initializerWarningHelper:helper("7.0.0-beta.0",'function _initializerWarningHelper(r,e){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")}',{globals:["Error"],locals:{_initializerWarningHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_initializerWarningHelper",dependencies:{},internal:false}),instanceof:helper("7.0.0-beta.0",'function _instanceof(n,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](n):n instanceof e}',{globals:["Symbol"],locals:{_instanceof:["body.0.id"]},exportBindingAssignments:[],exportName:"_instanceof",dependencies:{},internal:false}),interopRequireDefault:helper("7.0.0-beta.0","function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}",{globals:[],locals:{_interopRequireDefault:["body.0.id"]},exportBindingAssignments:[],exportName:"_interopRequireDefault",dependencies:{},internal:false}),interopRequireWildcard:helper("7.14.0",'function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(_interopRequireWildcard=function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(i.get||i.set)?o(f,t,i):f[t]=e[t]);return f})(e,t)}',{globals:["WeakMap","Object"],locals:{_interopRequireWildcard:["body.0.id","body.0.body.body.1.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.1.argument.callee"],exportName:"_interopRequireWildcard",dependencies:{},internal:false}),isNativeFunction:helper("7.0.0-beta.0",'function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(n){return"function"==typeof t}}',{globals:["Function"],locals:{_isNativeFunction:["body.0.id"]},exportBindingAssignments:[],exportName:"_isNativeFunction",dependencies:{},internal:false}),isNativeReflectConstruct:helper("7.9.0","function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}",{globals:["Boolean","Reflect"],locals:{_isNativeReflectConstruct:["body.0.id","body.0.body.body.1.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.1.argument.callee"],exportName:"_isNativeReflectConstruct",dependencies:{},internal:false}),iterableToArray:helper("7.0.0-beta.0",'function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}',{globals:["Symbol","Array"],locals:{_iterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_iterableToArray",dependencies:{},internal:false}),iterableToArrayLimit:helper("7.0.0-beta.0",'function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}',{globals:["Symbol","Object"],locals:{_iterableToArrayLimit:["body.0.id"]},exportBindingAssignments:[],exportName:"_iterableToArrayLimit",dependencies:{},internal:false}),jsx:helper("7.0.0-beta.0",'var REACT_ELEMENT_TYPE;function _createRawReactElement(e,r,E,l){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,n=arguments.length-3;if(r||0===n||(r={children:void 0}),1===n)r.children=l;else if(n>1){for(var t=Array(n),f=0;f<n;f++)t[f]=arguments[f+3];r.children=t}if(r&&o)for(var i in o)void 0===r[i]&&(r[i]=o[i]);else r||(r=o||{});return{$$typeof:REACT_ELEMENT_TYPE,type:e,key:void 0===E?null:""+E,ref:null,props:r,_owner:null}}',{globals:["Symbol","Array"],locals:{REACT_ELEMENT_TYPE:["body.0.declarations.0.id","body.1.body.body.0.expression.left","body.1.body.body.4.argument.properties.0.value","body.1.body.body.0.expression.right.left"],_createRawReactElement:["body.1.id"]},exportBindingAssignments:[],exportName:"_createRawReactElement",dependencies:{},internal:false}),maybeArrayLike:helper("7.9.0",'function _maybeArrayLike(r,a,e){if(a&&!Array.isArray(a)&&"number"==typeof a.length){var y=a.length;return arrayLikeToArray(a,void 0!==e&&e<y?e:y)}return r(a,e)}',{globals:["Array"],locals:{_maybeArrayLike:["body.0.id"]},exportBindingAssignments:[],exportName:"_maybeArrayLike",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.1.argument.callee"]},internal:false}),newArrowCheck:helper("7.0.0-beta.0",'function _newArrowCheck(n,r){if(n!==r)throw new TypeError("Cannot instantiate an arrow function")}',{globals:["TypeError"],locals:{_newArrowCheck:["body.0.id"]},exportBindingAssignments:[],exportName:"_newArrowCheck",dependencies:{},internal:false}),nonIterableRest:helper("7.0.0-beta.0",'function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["TypeError"],locals:{_nonIterableRest:["body.0.id"]},exportBindingAssignments:[],exportName:"_nonIterableRest",dependencies:{},internal:false}),nonIterableSpread:helper("7.0.0-beta.0",'function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["TypeError"],locals:{_nonIterableSpread:["body.0.id"]},exportBindingAssignments:[],exportName:"_nonIterableSpread",dependencies:{},internal:false}),nullishReceiverError:helper("7.22.6",'function _nullishReceiverError(r){throw new TypeError("Cannot set property of null or undefined.")}',{globals:["TypeError"],locals:{_nullishReceiverError:["body.0.id"]},exportBindingAssignments:[],exportName:"_nullishReceiverError",dependencies:{},internal:false}),objectDestructuringEmpty:helper("7.0.0-beta.0",'function _objectDestructuringEmpty(t){if(null==t)throw new TypeError("Cannot destructure "+t)}',{globals:["TypeError"],locals:{_objectDestructuringEmpty:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectDestructuringEmpty",dependencies:{},internal:false}),objectSpread2:helper("7.5.0","function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){defineProperty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}",{globals:["Object"],locals:{ownKeys:["body.0.id","body.1.body.body.0.body.body.1.expression.consequent.callee.object.callee","body.1.body.body.0.body.body.1.expression.alternate.alternate.callee.object.callee"],_objectSpread2:["body.1.id"]},exportBindingAssignments:[],exportName:"_objectSpread2",dependencies:{defineProperty:["body.1.body.body.0.body.body.1.expression.consequent.arguments.0.body.body.0.expression.callee"]},internal:false}),objectWithoutProperties:helper("7.0.0-beta.0","function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}",{globals:["Object"],locals:{_objectWithoutProperties:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectWithoutProperties",dependencies:{objectWithoutPropertiesLoose:["body.0.body.body.1.declarations.2.init.callee"]},internal:false}),objectWithoutPropertiesLoose:helper("7.0.0-beta.0","function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n]}return t}",{globals:[],locals:{_objectWithoutPropertiesLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectWithoutPropertiesLoose",dependencies:{},internal:false}),possibleConstructorReturn:helper("7.0.0-beta.0",'function _possibleConstructorReturn(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return assertThisInitialized(t)}',{globals:["TypeError"],locals:{_possibleConstructorReturn:["body.0.id"]},exportBindingAssignments:[],exportName:"_possibleConstructorReturn",dependencies:{assertThisInitialized:["body.0.body.body.2.argument.callee"]},internal:false}),readOnlyError:helper("7.0.0-beta.0","function _readOnlyError(r){throw new TypeError('\"'+r+'\" is read-only')}",{globals:["TypeError"],locals:{_readOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_readOnlyError",dependencies:{},internal:false}),regenerator:helper("7.27.0",'function _regenerator(){\n/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */\nvar 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:false}),regeneratorAsync:helper("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:false}),regeneratorAsyncGen:helper("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:false}),regeneratorAsyncIterator:helper("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){return n("throw",t,i,f)}))}catch(t){f(t)}}var r;this.next||(define(AsyncIterator.prototype),define(AsyncIterator.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),define(this,"_invoke",(function(t,o,i){function f(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(f,f):f()}),!0)}',{globals:["Symbol"],locals:{AsyncIterator:["body.0.id","body.0.body.body.2.expression.expressions.0.right.expressions.0.arguments.0.object","body.0.body.body.2.expression.expressions.0.right.expressions.1.arguments.0.object"]},exportBindingAssignments:[],exportName:"AsyncIterator",dependencies:{OverloadYield:["body.0.body.body.0.body.body.0.block.body.1.argument.test.right"],regeneratorDefine:["body.0.body.body.2.expression.expressions.0.right.expressions.0.callee","body.0.body.body.2.expression.expressions.0.right.expressions.1.callee","body.0.body.body.2.expression.expressions.1.callee"]},internal:true}),regeneratorDefine:helper("7.27.0",'function regeneratorDefine(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}regeneratorDefine=function(e,r,n,t){if(r)i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n;else{function o(r,n){regeneratorDefine(e,r,(function(e){return this._invoke(r,n,e)}))}o("next",0),o("throw",1),o("return",2)}},regeneratorDefine(e,r,n,t)}',{globals:["Object"],locals:{regeneratorDefine:["body.0.id","body.0.body.body.2.expression.expressions.0.right.body.body.0.alternate.body.0.body.body.0.expression.callee","body.0.body.body.2.expression.expressions.1.callee","body.0.body.body.2.expression.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.2.expression.expressions.0"],exportName:"regeneratorDefine",dependencies:{},internal:true}),regeneratorKeys:helper("7.27.0","function _regeneratorKeys(e){var n=Object(e),r=[];for(var t in n)r.unshift(t);return function e(){for(;r.length;)if((t=r.pop())in n)return e.value=t,e.done=!1,e;return e.done=!0,e}}",{globals:["Object"],locals:{_regeneratorKeys:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorKeys",dependencies:{},internal:false}),regeneratorValues:helper("7.18.0",'function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}',{globals:["Symbol","isNaN","TypeError"],locals:{_regeneratorValues:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorValues",dependencies:{},internal:false}),set:helper("7.0.0-beta.0",'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOwnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}',{globals:["Reflect","Object","TypeError"],locals:{set:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.0.test.left.argument.callee","body.0.body.body.0.argument.expressions.0.left"],_set:["body.1.id"]},exportBindingAssignments:[],exportName:"_set",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],defineProperty:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]},internal:false}),setFunctionName:helper("7.23.6",'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}',{globals:["Object"],locals:{setFunctionName:["body.0.id"]},exportBindingAssignments:[],exportName:"setFunctionName",dependencies:{},internal:false}),setPrototypeOf:helper("7.0.0-beta.0","function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}",{globals:["Object"],locals:{_setPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_setPrototypeOf",dependencies:{},internal:false}),skipFirstGeneratorNext:helper("7.0.0-beta.0","function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.next(),r}}",{globals:[],locals:{_skipFirstGeneratorNext:["body.0.id"]},exportBindingAssignments:[],exportName:"_skipFirstGeneratorNext",dependencies:{},internal:false}),slicedToArray:helper("7.0.0-beta.0","function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}",{globals:[],locals:{_slicedToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_slicedToArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArrayLimit:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]},internal:false}),superPropBase:helper("7.0.0-beta.0","function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return t}",{globals:[],locals:{_superPropBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropBase",dependencies:{getPrototypeOf:["body.0.body.body.0.test.right.right.right.callee"]},internal:false}),superPropGet:helper("7.25.0",'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t)}:p}',{globals:[],locals:{_superPropGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropGet",dependencies:{get:["body.0.body.body.0.declarations.0.init.callee"],getPrototypeOf:["body.0.body.body.0.declarations.0.init.arguments.0.callee"]},internal:false}),superPropSet:helper("7.25.0","function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}",{globals:[],locals:{_superPropSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropSet",dependencies:{set:["body.0.body.body.0.argument.callee"],getPrototypeOf:["body.0.body.body.0.argument.arguments.0.callee"]},internal:false}),taggedTemplateLiteral:helper("7.0.0-beta.0","function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}",{globals:["Object"],locals:{_taggedTemplateLiteral:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteral",dependencies:{},internal:false}),taggedTemplateLiteralLoose:helper("7.0.0-beta.0","function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}",{globals:[],locals:{_taggedTemplateLiteralLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteralLoose",dependencies:{},internal:false}),tdz:helper("7.5.5",'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}',{globals:["ReferenceError"],locals:{_tdzError:["body.0.id"]},exportBindingAssignments:[],exportName:"_tdzError",dependencies:{},internal:false}),temporalRef:helper("7.0.0-beta.0","function _temporalRef(r,e){return r===undef?err(e):r}",{globals:[],locals:{_temporalRef:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalRef",dependencies:{temporalUndefined:["body.0.body.body.0.argument.test.right"],tdz:["body.0.body.body.0.argument.consequent.callee"]},internal:false}),temporalUndefined:helper("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{},internal:false}),toArray:helper("7.0.0-beta.0","function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableRest()}",{globals:[],locals:{_toArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]},internal:false}),toConsumableArray:helper("7.0.0-beta.0","function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}",{globals:[],locals:{_toConsumableArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toConsumableArray",dependencies:{arrayWithoutHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableSpread:["body.0.body.body.0.argument.right.callee"]},internal:false}),toPrimitive:helper("7.1.5",'function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}',{globals:["Symbol","TypeError","String","Number"],locals:{toPrimitive:["body.0.id"]},exportBindingAssignments:[],exportName:"toPrimitive",dependencies:{},internal:false}),toPropertyKey:helper("7.1.5",'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}',{globals:[],locals:{toPropertyKey:["body.0.id"]},exportBindingAssignments:[],exportName:"toPropertyKey",dependencies:{toPrimitive:["body.0.body.body.0.declarations.0.init.callee"]},internal:false}),toSetter:helper("7.24.0",'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e)}})}',{globals:["Object"],locals:{_toSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_toSetter",dependencies:{},internal:false}),tsRewriteRelativeImportExtensions:helper("7.27.0",'function tsRewriteRelativeImportExtensions(t,e){return"string"==typeof t&&/^\\.\\.?\\//.test(t)?t.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+)?)\\.([cm]?)ts$/i,(function(t,s,r,n,o){return s?e?".jsx":".js":!r||n&&o?r+n+"."+o.toLowerCase()+"js":t})):t}',{globals:[],locals:{tsRewriteRelativeImportExtensions:["body.0.id"]},exportBindingAssignments:[],exportName:"tsRewriteRelativeImportExtensions",dependencies:{},internal:false}),typeof:helper("7.0.0-beta.0",'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}',{globals:["Symbol"],locals:{_typeof:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_typeof",dependencies:{},internal:false}),unsupportedIterableToArray:helper("7.9.0",'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}',{globals:["Array"],locals:{_unsupportedIterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_unsupportedIterableToArray",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.0.consequent.argument.callee","body.0.body.body.0.consequent.body.2.argument.expressions.1.alternate.consequent.callee"]},internal:false}),usingCtx:helper("7.23.9",'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)return s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}catch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n,next()}return next()}}}',{globals:["SuppressedError","Error","Object","TypeError","Symbol","Promise"],locals:{_usingCtx:["body.0.id"]},exportBindingAssignments:[],exportName:"_usingCtx",dependencies:{},internal:false}),wrapAsyncGenerator:helper("7.0.0-beta.0",'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"normal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};',{globals:["Promise","Symbol"],locals:{_wrapAsyncGenerator:["body.0.id"],AsyncGenerator:["body.1.id","body.0.body.body.0.argument.body.body.0.argument.callee","body.2.expression.expressions.0.left.object.object","body.2.expression.expressions.1.left.object.object","body.2.expression.expressions.2.left.object.object","body.2.expression.expressions.3.left.object.object"]},exportBindingAssignments:[],exportName:"_wrapAsyncGenerator",dependencies:{OverloadYield:["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]},internal:false}),wrapNativeSuper:helper("7.0.0-beta.0",'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}',{globals:["Map","TypeError","Object"],locals:{_wrapNativeSuper:["body.0.id","body.0.body.body.1.argument.expressions.1.callee","body.0.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.1.argument.expressions.0"],exportName:"_wrapNativeSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],setPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],isNativeFunction:["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],construct:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]},internal:false}),wrapRegExp:helper("7.19.0",'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;r[t]=e[o[i]]}return r}),Object.create(null))}return inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(r){var t=e.exec.call(this,r);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this))}return t},BabelRegExp.prototype[Symbol.replace]=function(t,p){if("string"==typeof p){var o=r.get(this);return e[Symbol.replace].call(this,t,p.replace(/\\$<([^>]+)(>|$)/g,(function(e,r,t){if(""===t)return e;var p=o[r];return Array.isArray(p)?"$"+p.join("$"):"number"==typeof p?"$"+p:""})))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}',{globals:["RegExp","WeakMap","Object","Symbol","Array"],locals:{_wrapRegExp:["body.0.id","body.0.body.body.4.argument.expressions.3.callee.object","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_wrapRegExp",dependencies:{setPrototypeOf:["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],inherits:["body.0.body.body.4.argument.expressions.0.callee"]},internal:false}),writeOnlyError:helper("7.12.13","function _writeOnlyError(r){throw new TypeError('\"'+r+'\" is write-only')}",{globals:["TypeError"],locals:{_writeOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_writeOnlyError",dependencies:{},internal:false})};{Object.assign(a,{AwaitValue:helper("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{},internal:false}),applyDecs:helper("7.17.8",'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o<r.length;o++){var i=r[o],n=t[i],l=a?a[i]:null,s=n.public,c=l?l.public:null;s&&c&&Object.setPrototypeOf(s,c);var d=n.private;if(d){var u=Array.from(d.values()),f=l?l.private:null;f&&(u=u.concat(f)),n.private=u}l&&Object.setPrototypeOf(n,l)}a&&Object.setPrototypeOf(t,a),e[Symbol.metadata||Symbol.for("Symbol.metadata")]=t}}function old_createAddInitializerMethod(e,t){return function(a){old_assertNotFinished(t,"addInitializer"),old_assertCallable(a,"An initializer"),e.push(a)}}function old_memberDec(e,t,a,r,o,i,n,l,s){var c;switch(i){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var d,u,f={kind:c,name:l?"#"+t:toPropertyKey(t),isStatic:n,isPrivate:l},p={v:!1};if(0!==i&&(f.addInitializer=old_createAddInitializerMethod(o,p)),l){d=2,u=Symbol(t);var v={};0===i?(v.get=a.get,v.set=a.set):2===i?v.get=function(){return a.value}:(1!==i&&3!==i||(v.get=function(){return a.get.call(this)}),1!==i&&4!==i||(v.set=function(e){a.set.call(this,e)})),f.access=v}else d=1,u=t;try{return e(s,Object.assign(f,old_createMetadataMethodsForProperty(r,d,u,p)))}finally{p.v=!0}}function old_assertNotFinished(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")}function old_assertMetadataKey(e){if("symbol"!=typeof e)throw new TypeError("Metadata keys must be symbols, received: "+e)}function old_assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function old_assertValidReturnValue(e,t){var a=typeof t;if(1===e){if("object"!==a||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&old_assertCallable(t.get,"accessor.get"),void 0!==t.set&&old_assertCallable(t.set,"accessor.set"),void 0!==t.init&&old_assertCallable(t.init,"accessor.init"),void 0!==t.initializer&&old_assertCallable(t.initializer,"accessor.initializer")}else if("function"!==a)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function old_getInit(e){var t;return null==(t=e.init)&&(t=e.initializer)&&void 0!==console&&console.warn(".initializer has been renamed to .init as of March 2022"),t}function old_applyMemberDec(e,t,a,r,o,i,n,l,s){var c,d,u,f,p,v,y,h=a[0];if(n?(0===o||1===o?(c={get:a[3],set:a[4]},u="get"):3===o?(c={get:a[3]},u="get"):4===o?(c={set:a[3]},u="set"):c={value:a[3]},0!==o&&(1===o&&setFunctionName(a[4],"#"+r,"set"),setFunctionName(a[3],"#"+r,u))):0!==o&&(c=Object.getOwnPropertyDescriptor(t,r)),1===o?f={get:c.get,set:c.set}:2===o?f=c.value:3===o?f=c.get:4===o&&(f=c.set),"function"==typeof h)void 0!==(p=old_memberDec(h,r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?d=p:1===o?(d=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p);else for(var m=h.length-1;m>=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r<g.length;r++)a=g[r].call(e,a);return a}}else{var _=d;d=function(e,t){return _.call(e,t)}}e.push(d)}0!==o&&(1===o?(c.get=f.get,c.set=f.set):2===o?c.value=f:3===o?c.get=f:4===o&&(c.set=f),n?1===o?(e.push((function(e,t){return f.get.call(e,t)})),e.push((function(e,t){return f.set.call(e,t)}))):2===o?e.push(f):e.push((function(e,t){return f.call(e,t)})):Object.defineProperty(t,r,c))}function old_applyMemberDecs(e,t,a,r,o){for(var i,n,l=new Map,s=new Map,c=0;c<o.length;c++){var d=o[c];if(Array.isArray(d)){var u,f,p,v=d[1],y=d[2],h=d.length>3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a<t.length;a++)t[a].call(e);return e}))}function old_applyClassDecs(e,t,a,r){if(r.length>0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e<o.length;e++)o[e].call(i)}))}}function applyDecs(e,t,a){var r=[],o={},i={};return old_applyMemberDecs(r,e,i,o,t),old_convertMetadataMapToFinal(e.prototype,i),old_applyClassDecs(r,e,o,a),old_convertMetadataMapToFinal(e,o),r}',{globals:["Object","Map","Symbol","Array","Error","TypeError","console"],locals:{old_createMetadataMethodsForProperty:["body.0.id","body.3.body.body.4.block.body.0.argument.arguments.1.arguments.1.callee","body.12.body.body.0.consequent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.1.callee"],old_convertMetadataMapToFinal:["body.1.id","body.13.body.body.1.argument.expressions.1.callee","body.13.body.body.1.argument.expressions.3.callee"],old_createAddInitializerMethod:["body.2.id","body.3.body.body.3.test.expressions.0.right.right.callee","body.12.body.body.0.consequent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.0.properties.2.value.callee"],old_memberDec:["body.3.id","body.9.body.body.1.consequent.expression.left.right.right.callee","body.9.body.body.1.alternate.body.body.1.expression.left.right.right.callee"],old_assertNotFinished:["body.4.id","body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.0.callee","body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.0.callee","body.2.body.body.0.argument.body.body.0.expression.expressions.0.callee"],old_assertMetadataKey:["body.5.id","body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.1.callee","body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.1.callee"],old_assertCallable:["body.6.id","body.2.body.body.0.argument.body.body.0.expression.expressions.1.callee","body.7.body.body.1.consequent.body.1.expression.expressions.0.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.1.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.2.right.callee","body.7.body.body.1.consequent.body.1.expression.expressions.3.right.callee"],old_assertValidReturnValue:["body.7.id","body.9.body.body.1.consequent.expression.right.expressions.0.callee","body.9.body.body.1.alternate.body.body.1.expression.right.expressions.0.callee","body.12.body.body.0.consequent.body.0.body.body.2.expression.right.expressions.0.callee"],old_getInit:["body.8.id","body.9.body.body.1.consequent.expression.right.expressions.1.alternate.consequent.expressions.0.right.callee","body.9.body.body.1.alternate.body.body.1.expression.right.expressions.1.alternate.consequent.expressions.0.right.callee"],old_applyMemberDec:["body.9.id","body.10.body.body.0.body.body.1.consequent.body.2.expression.callee"],old_applyMemberDecs:["body.10.id","body.13.body.body.1.argument.expressions.0.callee"],old_pushInitializers:["body.11.id","body.10.body.body.1.expression.expressions.0.callee","body.10.body.body.1.expression.expressions.1.callee"],old_applyClassDecs:["body.12.id","body.13.body.body.1.argument.expressions.2.callee"],applyDecs:["body.13.id"]},exportBindingAssignments:[],exportName:"applyDecs",dependencies:{setFunctionName:["body.9.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.9.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.3.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:false}),applyDecs2203:helper("7.19.0",'function applyDecs2203Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function memberDec(e,t,r,a,n,i,s,o){var c;switch(n){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var l,u,f={kind:c,name:s?"#"+t:t,static:i,private:s},p={v:!1};0!==n&&(f.addInitializer=createAddInitializerMethod(a,p)),0===n?s?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===n?l=function(){return r.value}:(1!==n&&3!==n||(l=function(){return r.get.call(this)}),1!==n&&4!==n||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:{set:u};try{return e(o,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,a,n,i,s,o){var c,l,u,f,p,d,h=r[0];if(s?c=0===n||1===n?{get:r[3],set:r[4]}:3===n?{get:r[3]}:4===n?{set:r[3]}:{value:r[3]}:0!==n&&(c=Object.getOwnPropertyDescriptor(t,a)),1===n?u={get:c.get,set:c.set}:2===n?u=c.value:3===n?u=c.get:4===n&&(u=c.set),"function"==typeof h)void 0!==(f=memberDec(h,a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?l=f:1===n?(l=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f);else for(var v=h.length-1;v>=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a<y.length;a++)r=y[a].call(e,r);return r}}else{var m=l;l=function(e,t){return m.call(e,t)}}e.push(l)}0!==n&&(1===n?(c.get=u.get,c.set=u.set):2===n?c.value=u:3===n?c.get=u:4===n&&(c.set=u),s?1===n?(e.push((function(e,t){return u.get.call(e,t)})),e.push((function(e,t){return u.set.call(e,t)}))):2===n?e.push(u):e.push((function(e,t){return u.call(e,t)})):Object.defineProperty(t,a,c))}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e}))}return function(e,t,r){var a=[];return function(e,t,r){for(var a,n,i=new Map,s=new Map,o=0;o<r.length;o++){var c=r[o];if(Array.isArray(c)){var l,u,f=c[1],p=c[2],d=c.length>3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e<a.length;e++)a[e].call(n)}))}}(a,e,r),a}}var applyDecs2203Impl;function applyDecs2203(e,t,r){return(applyDecs2203Impl=applyDecs2203Impl||applyDecs2203Factory())(e,t,r)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2203Factory:["body.0.id","body.2.body.body.0.argument.callee.right.right.callee"],applyDecs2203Impl:["body.1.declarations.0.id","body.2.body.body.0.argument.callee.right.left","body.2.body.body.0.argument.callee.left"],applyDecs2203:["body.2.id"]},exportBindingAssignments:[],exportName:"applyDecs2203",dependencies:{},internal:false}),applyDecs2203R:helper("7.20.0",'function applyDecs2203RFactory(){function createAddInitializerMethod(e,t){return function(r){!function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function memberDec(e,t,r,n,a,i,o,s){var c;switch(a){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var l,u,f={kind:c,name:o?"#"+t:toPropertyKey(t),static:i,private:o},p={v:!1};0!==a&&(f.addInitializer=createAddInitializerMethod(n,p)),0===a?o?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===a?l=function(){return r.value}:(1!==a&&3!==a||(l=function(){return r.get.call(this)}),1!==a&&4!==a||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:{set:u};try{return e(s,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,n,a,i,o,s){var c,l,u,f,p,d,h,v=r[0];if(o?(0===a||1===a?(c={get:r[3],set:r[4]},u="get"):3===a?(c={get:r[3]},u="get"):4===a?(c={set:r[3]},u="set"):c={value:r[3]},0!==a&&(1===a&&setFunctionName(r[4],"#"+n,"set"),setFunctionName(r[3],"#"+n,u))):0!==a&&(c=Object.getOwnPropertyDescriptor(t,n)),1===a?f={get:c.get,set:c.set}:2===a?f=c.value:3===a?f=c.get:4===a&&(f=c.set),"function"==typeof v)void 0!==(p=memberDec(v,n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?l=p:1===a?(l=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p);else for(var g=v.length-1;g>=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n<m.length;n++)r=m[n].call(e,r);return r}}else{var b=l;l=function(e,t){return b.call(e,t)}}e.push(l)}0!==a&&(1===a?(c.get=f.get,c.set=f.set):2===a?c.value=f:3===a?c.get=f:4===a&&(c.set=f),o?1===a?(e.push((function(e,t){return f.get.call(e,t)})),e.push((function(e,t){return f.set.call(e,t)}))):2===a?e.push(f):e.push((function(e,t){return f.call(e,t)})):Object.defineProperty(t,n,c))}function applyMemberDecs(e,t){for(var r,n,a=[],i=new Map,o=new Map,s=0;s<t.length;s++){var c=t[s];if(Array.isArray(c)){var l,u,f=c[1],p=c[2],d=c.length>3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e}))}return function(e,t,r){return{e:applyMemberDecs(e,t),get c(){return function(e,t){if(t.length>0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e<r.length;e++)r[e].call(n)}]}}(e,r)}}}}function applyDecs2203R(e,t,r){return(applyDecs2203R=applyDecs2203RFactory())(e,t,r)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2203RFactory:["body.0.id","body.1.body.body.0.argument.callee.right.callee"],applyDecs2203R:["body.1.id","body.1.body.body.0.argument.callee.left"]},exportBindingAssignments:["body.1.body.body.0.argument.callee"],exportName:"applyDecs2203R",dependencies:{setFunctionName:["body.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.0.body.body.1.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:false}),applyDecs2301:helper("7.21.0",'function applyDecs2301Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}function assertInstanceIfPrivate(e,t){if(!e(t))throw new TypeError("Attempted to access private element on non-instance")}function memberDec(e,t,r,n,a,i,s,o,c){var u;switch(a){case 1:u="accessor";break;case 2:u="method";break;case 3:u="getter";break;case 4:u="setter";break;default:u="field"}var l,f,p={kind:u,name:s?"#"+t:toPropertyKey(t),static:i,private:s},d={v:!1};if(0!==a&&(p.addInitializer=createAddInitializerMethod(n,d)),s||0!==a&&2!==a)if(2===a)l=function(e){return assertInstanceIfPrivate(c,e),r.value};else{var h=0===a||1===a;(h||3===a)&&(l=s?function(e){return assertInstanceIfPrivate(c,e),r.get.call(e)}:function(e){return r.get.call(e)}),(h||4===a)&&(f=s?function(e,t){assertInstanceIfPrivate(c,e),r.set.call(e,t)}:function(e,t){r.set.call(e,t)})}else l=function(e){return e[t]},0===a&&(f=function(e,r){e[t]=r});var v=s?c.bind():function(e){return t in e};p.access=l&&f?{get:l,set:f,has:v}:l?{get:l,has:v}:{set:f,has:v};try{return e(o,p)}finally{d.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function curryThis2(e){return function(t){e(this,t)}}function applyMemberDec(e,t,r,n,a,i,s,o,c){var u,l,f,p,d,h,v,y,g=r[0];if(s?(0===a||1===a?(u={get:(d=r[3],function(){return d(this)}),set:curryThis2(r[4])},f="get"):3===a?(u={get:r[3]},f="get"):4===a?(u={set:r[3]},f="set"):u={value:r[3]},0!==a&&(1===a&&setFunctionName(u.set,"#"+n,"set"),setFunctionName(u[f||"value"],"#"+n,f))):0!==a&&(u=Object.getOwnPropertyDescriptor(t,n)),1===a?p={get:u.get,set:u.set}:2===a?p=u.value:3===a?p=u.get:4===a&&(p=u.set),"function"==typeof g)void 0!==(h=memberDec(g,n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?l=h:1===a?(l=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h);else for(var m=g.length-1;m>=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n<I.length;n++)r=I[n].call(e,r);return r}}else{var w=l;l=function(e,t){return w.call(e,t)}}e.push(l)}0!==a&&(1===a?(u.get=p.get,u.set=p.set):2===a?u.value=p:3===a?u.get=p:4===a&&(u.set=p),s?1===a?(e.push((function(e,t){return p.get.call(e,t)})),e.push((function(e,t){return p.set.call(e,t)}))):2===a?e.push(p):e.push((function(e,t){return p.call(e,t)})):Object.defineProperty(t,n,u))}function applyMemberDecs(e,t,r){for(var n,a,i,s=[],o=new Map,c=new Map,u=0;u<t.length;u++){var l=t[u];if(Array.isArray(l)){var f,p,d=l[1],h=l[2],v=l.length>3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e}))}return function(e,t,r,n){return{e:applyMemberDecs(e,t,n),get c(){return function(e,t){if(t.length>0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e<r.length;e++)r[e].call(n)}]}}(e,r)}}}}function applyDecs2301(e,t,r,n){return(applyDecs2301=applyDecs2301Factory())(e,t,r,n)}',{globals:["Error","TypeError","Object","Map","Array"],locals:{applyDecs2301Factory:["body.0.id","body.1.body.body.0.argument.callee.right.callee"],applyDecs2301:["body.1.id","body.1.body.body.0.argument.callee.left"]},exportBindingAssignments:["body.1.body.body.0.argument.callee"],exportName:"applyDecs2301",dependencies:{checkInRHS:["body.0.body.body.7.body.body.0.body.body.1.consequent.body.1.test.expressions.0.consequent.expressions.2.right.right.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee","body.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],toPropertyKey:["body.0.body.body.2.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]},internal:false}),applyDecs2305:helper("7.21.0",'function applyDecs2305(e,t,r,n,o,a){function i(e,t,r){return function(n,o){return r&&r(n),e[t].call(n,o)}}function c(e,t){for(var r=0;r<e.length;r++)e[r].call(t);return t}function s(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeError(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function applyDec(e,t,r,n,o,a,c,u,l,f,p,d,h){function m(e){if(!h(e))throw new TypeError("Attempted to access private element on non-instance")}var y,v=t[0],g=t[3],b=!u;if(!b){r||Array.isArray(v)||(v=[v]);var w={},S=[],A=3===o?"get":4===o||d?"set":"value";f?(p||d?w={get:setFunctionName((function(){return g(this)}),n,"get"),set:function(e){t[4](this,e)}}:w[A]=g,p||setFunctionName(w[A],n,2===o?"":A)):p||(w=Object.getOwnPropertyDescriptor(e,n))}for(var P=e,j=v.length-1;j>=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t})),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var d=p[1],h=p[2],m=p.length>3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}',{globals:["TypeError","Array","Object","Error","Symbol","Map"],locals:{applyDecs2305:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2305",dependencies:{checkInRHS:["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alternate.callee"]},internal:false}),classApplyDescriptorDestructureSet:helper("7.13.10",'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}',{globals:["TypeError"],locals:{_classApplyDescriptorDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorDestructureSet",dependencies:{},internal:false}),classApplyDescriptorGet:helper("7.13.10","function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}",{globals:[],locals:{_classApplyDescriptorGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorGet",dependencies:{},internal:false}),classApplyDescriptorSet:helper("7.13.10",'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=l}}',{globals:["TypeError"],locals:{_classApplyDescriptorSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorSet",dependencies:{},internal:false}),classCheckPrivateStaticAccess:helper("7.13.10","function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}",{globals:[],locals:{_classCheckPrivateStaticAccess:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticAccess",dependencies:{assertClassBrand:["body.0.body.body.0.argument.callee"]},internal:false}),classCheckPrivateStaticFieldDescriptor:helper("7.13.10",'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}',{globals:["TypeError"],locals:{_classCheckPrivateStaticFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticFieldDescriptor",dependencies:{},internal:false}),classExtractFieldDescriptor:helper("7.13.10","function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}",{globals:[],locals:{_classExtractFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classExtractFieldDescriptor",dependencies:{classPrivateFieldGet2:["body.0.body.body.0.argument.callee"]},internal:false}),classPrivateFieldDestructureSet:helper("7.4.4","function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorDestructureSet(e,r)}",{globals:[],locals:{_classPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:false}),classPrivateFieldGet:helper("7.0.0-beta.0","function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorGet(e,r)}",{globals:[],locals:{_classPrivateFieldGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:false}),classPrivateFieldSet:helper("7.0.0-beta.0","function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescriptorSet(e,s,r),r}",{globals:[],locals:{_classPrivateFieldSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.1.argument.expressions.0.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:false}),classPrivateMethodGet:helper("7.1.6","function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}",{globals:[],locals:{_classPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]},internal:false}),classPrivateMethodSet:helper("7.1.6",'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}',{globals:["TypeError"],locals:{_classPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodSet",dependencies:{},internal:false}),classStaticPrivateFieldDestructureSet:helper("7.13.10",'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}',{globals:[],locals:{_classStaticPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:false}),classStaticPrivateFieldSpecGet:helper("7.0.2",'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPrivateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}',{globals:[],locals:{_classStaticPrivateFieldSpecGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:false}),classStaticPrivateFieldSpecSet:helper("7.0.2",'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPrivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}',{globals:[],locals:{_classStaticPrivateFieldSpecSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:false}),classStaticPrivateMethodSet:helper("7.3.2",'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}',{globals:["TypeError"],locals:{_classStaticPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodSet",dependencies:{},internal:false}),defineEnumerableProperties:helper("7.0.0-beta.0",'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(r),b=0;b<a.length;b++){var i=a[b];(n=r[i]).configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i,n)}return e}',{globals:["Object"],locals:{_defineEnumerableProperties:["body.0.id"]},exportBindingAssignments:[],exportName:"_defineEnumerableProperties",dependencies:{},internal:false}),dispose:helper("7.22.0",'function dispose_SuppressedError(r,e){return"undefined"!=typeof SuppressedError?dispose_SuppressedError=SuppressedError:(dispose_SuppressedError=function(r,e){this.suppressed=e,this.error=r,this.stack=Error().stack},dispose_SuppressedError.prototype=Object.create(Error.prototype,{constructor:{value:dispose_SuppressedError,writable:!0,configurable:!0}})),new dispose_SuppressedError(r,e)}function _dispose(r,e,s){function next(){for(;r.length>0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(e,r):r,s=!0,next()}return next()}',{globals:["SuppressedError","Error","Object","Promise"],locals:{dispose_SuppressedError:["body.0.id","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee","body.0.body.body.0.argument.expressions.0.consequent.left","body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],_dispose:["body.1.id"]},exportBindingAssignments:[],exportName:"_dispose",dependencies:{},internal:false}),objectSpread:helper("7.0.0-beta.0",'function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?Object(arguments[r]):{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.forEach((function(r){defineProperty(e,r,t[r])}))}return e}',{globals:["Object"],locals:{_objectSpread:["body.0.id"]},exportBindingAssignments:[],exportName:"_objectSpread",dependencies:{defineProperty:["body.0.body.body.0.body.body.1.expression.expressions.1.arguments.0.body.body.0.expression.callee"]},internal:false}),regeneratorRuntime:helper("7.18.0",'function _regeneratorRuntime(){"use strict";var r=regenerator(),e=r.m(_regeneratorRuntime),t=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function n(r){var e="function"==typeof r&&r.constructor;return!!e&&(e===t||"GeneratorFunction"===(e.displayName||e.name))}var o={throw:1,return:2,break:3,continue:3};function a(r){var e,t;return function(n){e||(e={stop:function(){return t(n.a,2)},catch:function(){return n.v},abrupt:function(r,e){return t(n.a,o[r],e)},delegateYield:function(r,o,a){return e.resultName=o,t(n.d,values(r),a)},finish:function(r){return t(n.f,r)}},t=function(r,t,o){n.p=e.prev,n.n=e.next;try{return r(t,o)}finally{e.next=n.n}}),e.resultName&&(e[e.resultName]=n.v,e.resultName=void 0),e.sent=n.v,e.next=n.n;try{return r.call(this,e)}finally{n.p=e.prev,n.n=e.next}}}return(_regeneratorRuntime=function(){return{wrap:function(e,t,n,o){return r.w(a(e),t,n,o&&o.reverse())},isGeneratorFunction:n,mark:r.m,awrap:function(r,e){return new OverloadYield(r,e)},AsyncIterator:AsyncIterator,async:function(r,e,t,o,u){return(n(e)?asyncGen:async)(a(r),e,t,o,u)},keys:keys,values:values}})()}',{globals:["Object"],locals:{_regeneratorRuntime:["body.0.id","body.0.body.body.0.declarations.1.init.arguments.0","body.0.body.body.4.argument.callee.left"]},exportBindingAssignments:["body.0.body.body.4.argument.callee"],exportName:"_regeneratorRuntime",dependencies:{OverloadYield:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.3.value.body.body.0.argument.callee"],regenerator:["body.0.body.body.0.declarations.0.init.callee"],regeneratorAsync:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.5.value.body.body.0.argument.callee.alternate"],regeneratorAsyncGen:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.5.value.body.body.0.argument.callee.consequent"],regeneratorAsyncIterator:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.4.value"],regeneratorKeys:["body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.6.value"],regeneratorValues:["body.0.body.body.3.body.body.1.argument.body.body.0.expression.expressions.0.right.expressions.0.right.properties.3.value.body.body.0.argument.expressions.1.arguments.1.callee","body.0.body.body.4.argument.callee.right.body.body.0.argument.properties.7.value"]},internal:false}),using:helper("7.22.0",'function _using(o,n,e){if(null==n)return n;if(Object(n)!==n)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e)var r=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(null==r&&(r=n[Symbol.dispose||Symbol.for("Symbol.dispose")]),"function"!=typeof r)throw new TypeError("Property [Symbol.dispose] is not a function.");return o.push({v:n,d:r,a:e}),n}',{globals:["Object","TypeError","Symbol"],locals:{_using:["body.0.id"]},exportBindingAssignments:[],exportName:"_using",dependencies:{},internal:false})})}},467:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;t.get=get;t.getDependencies=getDependencies;t.isInternal=isInternal;t.list=void 0;t.minVersion=minVersion;var s=r(9551);var a=r(126);const{cloneNode:n,identifier:i}=s;function deep(e,t,r){try{const s=t.split(".");let a=s.shift();while(s.length>0){e=e[a];a=s.shift()}if(arguments.length>2){e[a]=r}else{return e[a]}}catch(e){e.message+=` (when accessing ${t})`;throw e}}function permuteHelperAST(e,t,r,s,a,o){const{locals:l,dependencies:c,exportBindingAssignments:u,exportName:p}=t;const d=new Set(s||[]);if(r)d.add(r);for(const[t,s]of(Object.entries||(e=>Object.keys(e).map((t=>[t,e[t]]))))(l)){let a=t;if(r&&t===p){a=r}else{while(d.has(a))a="_"+a}if(a!==t){for(const t of s){deep(e,t,i(a))}}}for(const[t,r]of(Object.entries||(e=>Object.keys(e).map((t=>[t,e[t]]))))(c)){const s=typeof a==="function"&&a(t)||i(t);for(const t of r){deep(e,t,n(s))}}o==null||o(e,p,(t=>{u.forEach((r=>deep(e,r,t(deep(e,r)))))}))}const o=Object.create(null);function loadHelper(e){if(!o[e]){const t=a.default[e];if(!t){throw Object.assign(new ReferenceError(`Unknown helper ${e}`),{code:"BABEL_HELPER_UNKNOWN",helper:e})}o[e]={minVersion:t.minVersion,build(e,r,s,a){const n=t.ast();permuteHelperAST(n,t.metadata,r,s,e,a);return{nodes:n.body,globals:t.metadata.globals}},getDependencies(){return Object.keys(t.metadata.dependencies)}}}return o[e]}function get(e,t,r,s,a){{if(typeof r==="object"){const e=r;if((e==null?void 0:e.type)==="Identifier"){r=e.name}else{r=undefined}}}return loadHelper(e).build(t,r,s,a)}function minVersion(e){return loadHelper(e).minVersion}function getDependencies(e){return loadHelper(e).getDependencies()}function isInternal(e){var t;return(t=a.default[e])==null?void 0:t.metadata.internal}{t.ensure=e=>{loadHelper(e)}}const l=t.list=Object.keys(a.default).map((e=>e.replace(/^_/,"")));var c=t["default"]=get},64:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;r[s]=e[s]}return r}class Position{constructor(e,t,r){this.line=void 0;this.column=void 0;this.index=void 0;this.line=e;this.column=t;this.index=r}}class SourceLocation{constructor(e,t){this.start=void 0;this.end=void 0;this.filename=void 0;this.identifierName=void 0;this.start=e;this.end=t}}function createPositionWithColumnOffset(e,t){const{line:r,column:s,index:a}=e;return new Position(r,s+t,a+t)}const r="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var s={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:r},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:r}};const a={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"};const toNodeDescription=e=>e.type==="UpdateExpression"?a.UpdateExpression[`${e.prefix}`]:a[e.type];var n={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- 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.\n- 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.",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 ${toNodeDescription(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${toNodeDescription(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${toNodeDescription(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((e=>JSON.stringify(e))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((e=>JSON.stringify(e))).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' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."};var i={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."};var o={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`};const l=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var c=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${toNodeDescription({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const u=["message"];function defineHidden(e,t,r){Object.defineProperty(e,t,{enumerable:false,configurable:true,value:r})}function toParseErrorConstructor({toMessage:e,code:t,reasonCode:r,syntaxPlugin:s}){const a=r==="MissingPlugin"||r==="MissingOneOfPlugins";{const e={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(e[r]){r=e[r]}}return function constructor(n,i){const o=new SyntaxError;o.code=t;o.reasonCode=r;o.loc=n;o.pos=n.index;o.syntaxPlugin=s;if(a){o.missingPlugin=i.missingPlugin}defineHidden(o,"clone",(function clone(e={}){var t;const{line:r,column:s,index:a}=(t=e.loc)!=null?t:n;return constructor(new Position(r,s,a),Object.assign({},i,e.details))}));defineHidden(o,"details",i);Object.defineProperty(o,"message",{configurable:true,get(){const t=`${e(i)} (${n.line}:${n.column})`;this.message=t;return t},set(e){Object.defineProperty(this,"message",{value:e,writable:true})}});return o}}function ParseErrorEnum(e,t){if(Array.isArray(e)){return t=>ParseErrorEnum(t,e[0])}const r={};for(const s of Object.keys(e)){const a=e[s];const n=typeof a==="string"?{message:()=>a}:typeof a==="function"?{message:a}:a,{message:i}=n,o=_objectWithoutPropertiesLoose(n,u);const l=typeof i==="string"?()=>i:i;r[s]=toParseErrorConstructor(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}const p=Object.assign({},ParseErrorEnum(s),ParseErrorEnum(n),ParseErrorEnum(i),ParseErrorEnum(o),ParseErrorEnum`pipelineOperator`(c));function createDefaultOptions(){return{sourceType:"script",sourceFilename:undefined,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:false,allowReturnOutsideFunction:false,allowNewTargetOutsideFunction:false,allowImportExportEverywhere:false,allowSuperOutsideMethod:false,allowUndeclaredExports:false,allowYieldOutsideFunction:false,plugins:[],strictMode:null,ranges:false,tokens:false,createImportExpressions:false,createParenthesizedExpressions:false,errorRecovery:false,attachComment:true,annexB:true}}function getOptions(e){const t=createDefaultOptions();if(e==null){return t}if(e.annexB!=null&&e.annexB!==false){throw new Error("The `annexB` option can only be set to `false`.")}for(const r of Object.keys(t)){if(e[r]!=null)t[r]=e[r]}if(t.startLine===1){if(e.startIndex==null&&t.startColumn>0){t.startIndex=t.startColumn}else if(e.startColumn==null&&t.startIndex>0){t.startColumn=t.startIndex}}else if(e.startColumn==null||e.startIndex==null){if(e.startIndex!=null){throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.")}}return t}const{defineProperty:d}=Object;const toUnenumerable=(e,t)=>{if(e){d(e,t,{enumerable:false,value:e[t]})}};function toESTreeLocation(e){toUnenumerable(e.loc.start,"index");toUnenumerable(e.loc.end,"index");return e}var estree=e=>class ESTreeParserMixin extends e{parse(){const e=toESTreeLocation(super.parse());if(this.optionFlags&256){e.tokens=e.tokens.map(toESTreeLocation)}return e}parseRegExpLiteral({pattern:e,flags:t}){let r=null;try{r=new RegExp(e,t)}catch(e){}const s=this.estreeParseLiteral(r);s.regex={pattern:e,flags:t};return s}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const r=this.estreeParseLiteral(t);r.bigint=String(r.value||e);return r}parseDecimalLiteral(e){const t=null;const r=this.estreeParseLiteral(t);r.decimal=String(r.value||e);return r}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){const r=this.startNodeAtNode(e);r.expression=e;return this.finishNodeAt(r,"ChainExpression",t)}directiveToStmt(e){const t=e.value;delete e.value;this.castNodeTo(t,"Literal");t.raw=t.extra.raw;t.value=t.extra.expressionValue;const r=this.castNodeTo(e,"ExpressionStatement");r.expression=t;r.directive=t.extra.rawValue;delete t.extra;return r}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){const{start:t,end:r,loc:s,range:a,raw:n,value:i}=e;const o=Object.create(e.constructor.prototype);o.type="Literal";o.start=t;o.end=r;o.loc=s;o.range=a;o.raw=n;o.value=i;return o}initFunction(e,t){super.initFunction(e,t);e.expression=false}checkDeclaration(e){if(e!=null&&this.isObjectProperty(e)){this.checkDeclaration(e.value)}else{super.checkDeclaration(e)}}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value==="string"&&!((t=e.expression.extra)!=null&&t.parenthesized)}parseBlockBody(e,t,r,s,a){super.parseBlockBody(e,t,r,s,a);const n=e.directives.map((e=>this.directiveToStmt(e)));e.body=n.concat(e.body);delete e.directives}parsePrivateName(){const e=super.parsePrivateName();{if(!this.getPluginOption("estree","classFeatures")){return e}}return this.convertPrivateNameToPrivateIdentifier(e)}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);e=e;delete e.id;e.name=t;return this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){{if(!this.getPluginOption("estree","classFeatures")){return super.isPrivateName(e)}}return e.type==="PrivateIdentifier"}getPrivateNameSV(e){{if(!this.getPluginOption("estree","classFeatures")){return super.getPrivateNameSV(e)}}return e.name}parseLiteral(e,t){const r=super.parseLiteral(e,t);r.raw=r.extra.raw;delete r.extra;return r}parseFunctionBody(e,t,r=false){super.parseFunctionBody(e,t,r);e.expression=e.body.type!=="BlockStatement"}parseMethod(e,t,r,s,a,n,i=false){let o=this.startNode();o.kind=e.kind;o=super.parseMethod(o,t,r,s,a,n,i);delete o.kind;const{typeParameters:l}=e;if(l){delete e.typeParameters;o.typeParameters=l;this.resetStartLocationFromNode(o,l)}const c=this.castNodeTo(o,"FunctionExpression");e.value=c;if(n==="ClassPrivateMethod"){e.computed=false}if(n==="ObjectMethod"){if(e.kind==="method"){e.kind="init"}e.shorthand=false;return this.finishNode(e,"Property")}else{return this.finishNode(e,"MethodDefinition")}}nameIsConstructor(e){if(e.type==="Literal")return e.value==="constructor";return super.nameIsConstructor(e)}parseClassProperty(...e){const t=super.parseClassProperty(...e);{if(!this.getPluginOption("estree","classFeatures")){return t}}{this.castNodeTo(t,"PropertyDefinition")}return t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);{if(!this.getPluginOption("estree","classFeatures")){return t}}{this.castNodeTo(t,"PropertyDefinition")}t.computed=false;return t}parseClassAccessorProperty(e){const t=super.parseClassAccessorProperty(e);{if(!this.getPluginOption("estree","classFeatures")){return t}}if(t.abstract&&this.hasPlugin("typescript")){delete t.abstract;this.castNodeTo(t,"TSAbstractAccessorProperty")}else{this.castNodeTo(t,"AccessorProperty")}return t}parseObjectProperty(e,t,r,s){const a=super.parseObjectProperty(e,t,r,s);if(a){a.kind="init";this.castNodeTo(a,"Property")}return a}finishObjectProperty(e){e.kind="init";return this.finishNode(e,"Property")}isValidLVal(e,t,r){return e==="Property"?"value":super.isValidLVal(e,t,r)}isAssignable(e,t){if(e!=null&&this.isObjectProperty(e)){return this.isAssignable(e.value,t)}return super.isAssignable(e,t)}toAssignable(e,t=false){if(e!=null&&this.isObjectProperty(e)){const{key:r,value:s}=e;if(this.isPrivateName(r)){this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start)}this.toAssignable(s,t)}else{super.toAssignable(e,t)}}toAssignableObjectExpressionProp(e,t,r){if(e.type==="Property"&&(e.kind==="get"||e.kind==="set")){this.raise(p.PatternHasAccessor,e.key)}else if(e.type==="Property"&&e.method){this.raise(p.PatternHasMethod,e.key)}else{super.toAssignableObjectExpressionProp(e,t,r)}}finishCallExpression(e,t){const r=super.finishCallExpression(e,t);if(r.callee.type==="Import"){var s,a;this.castNodeTo(r,"ImportExpression");r.source=r.arguments[0];r.options=(s=r.arguments[1])!=null?s:null;r.attributes=(a=r.arguments[1])!=null?a:null;delete r.arguments;delete r.callee}else if(r.type==="OptionalCallExpression"){this.castNodeTo(r,"CallExpression")}else{r.optional=false}return r}toReferencedArguments(e){if(e.type==="ImportExpression"){return}super.toReferencedArguments(e)}parseExport(e,t){const r=this.state.lastTokStartLoc;const s=super.parseExport(e,t);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":if(s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"){this.castNodeTo(s,"ExportAllDeclaration");s.exported=s.specifiers[0].exported;delete s.specifiers}case"ExportDefaultDeclaration":{var a;const{declaration:e}=s;if((e==null?void 0:e.type)==="ClassDeclaration"&&((a=e.decorators)==null?void 0:a.length)>0&&e.start===s.start){this.resetStartLocation(s,r)}}break}return s}stopParseSubscript(e,t){const r=super.stopParseSubscript(e,t);if(t.optionalChainMember){return this.estreeParseChainExpression(r,e.loc.end)}return r}parseMember(e,t,r,s,a){const n=super.parseMember(e,t,r,s,a);if(n.type==="OptionalMemberExpression"){this.castNodeTo(n,"MemberExpression")}else{n.optional=false}return n}isOptionalMemberExpression(e){if(e.type==="ChainExpression"){return e.expression.type==="MemberExpression"}return super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){if(e.type==="ChainExpression"){e=e.expression}return super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return e.type==="Property"&&e.kind==="init"&&!e.method}isObjectMethod(e){return e.type==="Property"&&(e.method||e.kind==="get"||e.kind==="set")}castNodeTo(e,t){const r=super.castNodeTo(e,t);this.fillOptionalPropertiesForTSESLint(r);return r}cloneIdentifier(e){const t=super.cloneIdentifier(e);this.fillOptionalPropertiesForTSESLint(t);return t}cloneStringLiteral(e){if(e.type==="Literal"){return this.cloneEstreeStringLiteral(e)}return super.cloneStringLiteral(e)}finishNodeAt(e,t,r){return toESTreeLocation(super.finishNodeAt(e,t,r))}finishNode(e,t){const r=super.finishNode(e,t);this.fillOptionalPropertiesForTSESLint(r);return r}resetStartLocation(e,t){super.resetStartLocation(e,t);toESTreeLocation(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t);toESTreeLocation(e)}};class TokContext{constructor(e,t){this.token=void 0;this.preserveSpace=void 0;this.token=e;this.preserveSpace=!!t}}const f={brace:new TokContext("{"),j_oTag:new TokContext("<tag"),j_cTag:new TokContext("</tag"),j_expr:new TokContext("<tag>...</tag>",true)};{f.template=new TokContext("`",true)}const y=true;const h=true;const g=true;const b=true;const x=true;const v=true;class ExportedTokenType{constructor(e,t={}){this.label=void 0;this.keyword=void 0;this.beforeExpr=void 0;this.startsExpr=void 0;this.rightAssociative=void 0;this.isLoop=void 0;this.isAssign=void 0;this.prefix=void 0;this.postfix=void 0;this.binop=void 0;this.label=e;this.keyword=t.keyword;this.beforeExpr=!!t.beforeExpr;this.startsExpr=!!t.startsExpr;this.rightAssociative=!!t.rightAssociative;this.isLoop=!!t.isLoop;this.isAssign=!!t.isAssign;this.prefix=!!t.prefix;this.postfix=!!t.postfix;this.binop=t.binop!=null?t.binop:null;{this.updateContext=null}}}const E=new Map;function createKeyword(e,t={}){t.keyword=e;const r=createToken(e,t);E.set(e,r);return r}function createBinop(e,t){return createToken(e,{beforeExpr:y,binop:t})}let S=-1;const T=[];const j=[];const w=[];const P=[];const C=[];const A=[];function createToken(e,t={}){var r,s,a,n;++S;j.push(e);w.push((r=t.binop)!=null?r:-1);P.push((s=t.beforeExpr)!=null?s:false);C.push((a=t.startsExpr)!=null?a:false);A.push((n=t.prefix)!=null?n:false);T.push(new ExportedTokenType(e,t));return S}function createKeywordLike(e,t={}){var r,s,a,n;++S;E.set(e,S);j.push(e);w.push((r=t.binop)!=null?r:-1);P.push((s=t.beforeExpr)!=null?s:false);C.push((a=t.startsExpr)!=null?a:false);A.push((n=t.prefix)!=null?n:false);T.push(new ExportedTokenType("name",t));return S}const D={bracketL:createToken("[",{beforeExpr:y,startsExpr:h}),bracketHashL:createToken("#[",{beforeExpr:y,startsExpr:h}),bracketBarL:createToken("[|",{beforeExpr:y,startsExpr:h}),bracketR:createToken("]"),bracketBarR:createToken("|]"),braceL:createToken("{",{beforeExpr:y,startsExpr:h}),braceBarL:createToken("{|",{beforeExpr:y,startsExpr:h}),braceHashL:createToken("#{",{beforeExpr:y,startsExpr:h}),braceR:createToken("}"),braceBarR:createToken("|}"),parenL:createToken("(",{beforeExpr:y,startsExpr:h}),parenR:createToken(")"),comma:createToken(",",{beforeExpr:y}),semi:createToken(";",{beforeExpr:y}),colon:createToken(":",{beforeExpr:y}),doubleColon:createToken("::",{beforeExpr:y}),dot:createToken("."),question:createToken("?",{beforeExpr:y}),questionDot:createToken("?."),arrow:createToken("=>",{beforeExpr:y}),template:createToken("template"),ellipsis:createToken("...",{beforeExpr:y}),backQuote:createToken("`",{startsExpr:h}),dollarBraceL:createToken("${",{beforeExpr:y,startsExpr:h}),templateTail:createToken("...`",{startsExpr:h}),templateNonTail:createToken("...${",{beforeExpr:y,startsExpr:h}),at:createToken("@"),hash:createToken("#",{startsExpr:h}),interpreterDirective:createToken("#!..."),eq:createToken("=",{beforeExpr:y,isAssign:b}),assign:createToken("_=",{beforeExpr:y,isAssign:b}),slashAssign:createToken("_=",{beforeExpr:y,isAssign:b}),xorAssign:createToken("_=",{beforeExpr:y,isAssign:b}),moduloAssign:createToken("_=",{beforeExpr:y,isAssign:b}),incDec:createToken("++/--",{prefix:x,postfix:v,startsExpr:h}),bang:createToken("!",{beforeExpr:y,prefix:x,startsExpr:h}),tilde:createToken("~",{beforeExpr:y,prefix:x,startsExpr:h}),doubleCaret:createToken("^^",{startsExpr:h}),doubleAt:createToken("@@",{startsExpr:h}),pipeline:createBinop("|>",0),nullishCoalescing:createBinop("??",1),logicalOR:createBinop("||",1),logicalAND:createBinop("&&",2),bitwiseOR:createBinop("|",3),bitwiseXOR:createBinop("^",4),bitwiseAND:createBinop("&",5),equality:createBinop("==/!=/===/!==",6),lt:createBinop("</>/<=/>=",7),gt:createBinop("</>/<=/>=",7),relational:createBinop("</>/<=/>=",7),bitShift:createBinop("<</>>/>>>",8),bitShiftL:createBinop("<</>>/>>>",8),bitShiftR:createBinop("<</>>/>>>",8),plusMin:createToken("+/-",{beforeExpr:y,binop:9,prefix:x,startsExpr:h}),modulo:createToken("%",{binop:10,startsExpr:h}),star:createToken("*",{binop:10}),slash:createBinop("/",10),exponent:createToken("**",{beforeExpr:y,binop:11,rightAssociative:true}),_in:createKeyword("in",{beforeExpr:y,binop:7}),_instanceof:createKeyword("instanceof",{beforeExpr:y,binop:7}),_break:createKeyword("break"),_case:createKeyword("case",{beforeExpr:y}),_catch:createKeyword("catch"),_continue:createKeyword("continue"),_debugger:createKeyword("debugger"),_default:createKeyword("default",{beforeExpr:y}),_else:createKeyword("else",{beforeExpr:y}),_finally:createKeyword("finally"),_function:createKeyword("function",{startsExpr:h}),_if:createKeyword("if"),_return:createKeyword("return",{beforeExpr:y}),_switch:createKeyword("switch"),_throw:createKeyword("throw",{beforeExpr:y,prefix:x,startsExpr:h}),_try:createKeyword("try"),_var:createKeyword("var"),_const:createKeyword("const"),_with:createKeyword("with"),_new:createKeyword("new",{beforeExpr:y,startsExpr:h}),_this:createKeyword("this",{startsExpr:h}),_super:createKeyword("super",{startsExpr:h}),_class:createKeyword("class",{startsExpr:h}),_extends:createKeyword("extends",{beforeExpr:y}),_export:createKeyword("export"),_import:createKeyword("import",{startsExpr:h}),_null:createKeyword("null",{startsExpr:h}),_true:createKeyword("true",{startsExpr:h}),_false:createKeyword("false",{startsExpr:h}),_typeof:createKeyword("typeof",{beforeExpr:y,prefix:x,startsExpr:h}),_void:createKeyword("void",{beforeExpr:y,prefix:x,startsExpr:h}),_delete:createKeyword("delete",{beforeExpr:y,prefix:x,startsExpr:h}),_do:createKeyword("do",{isLoop:g,beforeExpr:y}),_for:createKeyword("for",{isLoop:g}),_while:createKeyword("while",{isLoop:g}),_as:createKeywordLike("as",{startsExpr:h}),_assert:createKeywordLike("assert",{startsExpr:h}),_async:createKeywordLike("async",{startsExpr:h}),_await:createKeywordLike("await",{startsExpr:h}),_defer:createKeywordLike("defer",{startsExpr:h}),_from:createKeywordLike("from",{startsExpr:h}),_get:createKeywordLike("get",{startsExpr:h}),_let:createKeywordLike("let",{startsExpr:h}),_meta:createKeywordLike("meta",{startsExpr:h}),_of:createKeywordLike("of",{startsExpr:h}),_sent:createKeywordLike("sent",{startsExpr:h}),_set:createKeywordLike("set",{startsExpr:h}),_source:createKeywordLike("source",{startsExpr:h}),_static:createKeywordLike("static",{startsExpr:h}),_using:createKeywordLike("using",{startsExpr:h}),_yield:createKeywordLike("yield",{startsExpr:h}),_asserts:createKeywordLike("asserts",{startsExpr:h}),_checks:createKeywordLike("checks",{startsExpr:h}),_exports:createKeywordLike("exports",{startsExpr:h}),_global:createKeywordLike("global",{startsExpr:h}),_implements:createKeywordLike("implements",{startsExpr:h}),_intrinsic:createKeywordLike("intrinsic",{startsExpr:h}),_infer:createKeywordLike("infer",{startsExpr:h}),_is:createKeywordLike("is",{startsExpr:h}),_mixins:createKeywordLike("mixins",{startsExpr:h}),_proto:createKeywordLike("proto",{startsExpr:h}),_require:createKeywordLike("require",{startsExpr:h}),_satisfies:createKeywordLike("satisfies",{startsExpr:h}),_keyof:createKeywordLike("keyof",{startsExpr:h}),_readonly:createKeywordLike("readonly",{startsExpr:h}),_unique:createKeywordLike("unique",{startsExpr:h}),_abstract:createKeywordLike("abstract",{startsExpr:h}),_declare:createKeywordLike("declare",{startsExpr:h}),_enum:createKeywordLike("enum",{startsExpr:h}),_module:createKeywordLike("module",{startsExpr:h}),_namespace:createKeywordLike("namespace",{startsExpr:h}),_interface:createKeywordLike("interface",{startsExpr:h}),_type:createKeywordLike("type",{startsExpr:h}),_opaque:createKeywordLike("opaque",{startsExpr:h}),name:createToken("name",{startsExpr:h}),placeholder:createToken("%%",{startsExpr:true}),string:createToken("string",{startsExpr:h}),num:createToken("num",{startsExpr:h}),bigint:createToken("bigint",{startsExpr:h}),decimal:createToken("decimal",{startsExpr:h}),regexp:createToken("regexp",{startsExpr:h}),privateName:createToken("#name",{startsExpr:h}),eof:createToken("eof"),jsxName:createToken("jsxName"),jsxText:createToken("jsxText",{beforeExpr:true}),jsxTagStart:createToken("jsxTagStart",{startsExpr:true}),jsxTagEnd:createToken("jsxTagEnd")};function tokenIsIdentifier(e){return e>=93&&e<=133}function tokenKeywordOrIdentifierIsKeyword(e){return e<=92}function tokenIsKeywordOrIdentifier(e){return e>=58&&e<=133}function tokenIsLiteralPropertyName(e){return e>=58&&e<=137}function tokenComesBeforeExpression(e){return P[e]}function tokenCanStartExpression(e){return C[e]}function tokenIsAssignment(e){return e>=29&&e<=33}function tokenIsFlowInterfaceOrTypeOrOpaque(e){return e>=129&&e<=131}function tokenIsLoop(e){return e>=90&&e<=92}function tokenIsKeyword(e){return e>=58&&e<=92}function tokenIsOperator(e){return e>=39&&e<=59}function tokenIsPostfix(e){return e===34}function tokenIsPrefix(e){return A[e]}function tokenIsTSTypeOperator(e){return e>=121&&e<=123}function tokenIsTSDeclarationStart(e){return e>=124&&e<=130}function tokenLabelName(e){return j[e]}function tokenOperatorPrecedence(e){return w[e]}function tokenIsRightAssociative(e){return e===57}function tokenIsTemplate(e){return e>=24&&e<=25}function getExportedToken(e){return T[e]}{T[8].updateContext=e=>{e.pop()};T[5].updateContext=T[7].updateContext=T[23].updateContext=e=>{e.push(f.brace)};T[22].updateContext=e=>{if(e[e.length-1]===f.template){e.pop()}else{e.push(f.template)}};T[143].updateContext=e=>{e.push(f.j_expr,f.j_oTag)}}let k="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let I="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const _=new RegExp("["+k+"]");const O=new RegExp("["+k+I+"]");k=I=null;const N=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const F=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let s=0,a=t.length;s<a;s+=2){r+=t[s];if(r>e)return false;r+=t[s+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&_.test(String.fromCharCode(e))}return isInAstralSet(e,N)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&O.test(String.fromCharCode(e))}return isInAstralSet(e,N)||isInAstralSet(e,F)}const B={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const M=new Set(B.keyword);const L=new Set(B.strict);const R=new Set(B.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||L.has(e)}function isStrictBindOnlyReservedWord(e){return R.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return M.has(e)}function isIteratorStart(e,t,r){return e===64&&t===64&&isIdentifierStart(r)}const U=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function canBeReservedWord(e){return U.has(e)}class Scope{constructor(e){this.flags=0;this.names=new Map;this.firstLexicalName="";this.flags=e}}class ScopeHandler{constructor(e,t){this.parser=void 0;this.scopeStack=[];this.inModule=void 0;this.undefinedExports=new Map;this.parser=e;this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&128){return true}if(t&(643|64)){return false}}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Scope(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){const e=this.scopeStack.pop();return e.flags}treatFunctionsAsVarInScope(e){return!!(e.flags&(2|128)||!this.parser.inModule&&e.flags&1)}declareName(e,t,r){let s=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(s,e,t,r);let a=s.names.get(e)||0;if(t&16){a=a|4}else{if(!s.firstLexicalName){s.firstLexicalName=e}a=a|2}s.names.set(e,a);if(t&8){this.maybeExportDefined(s,e)}}else if(t&4){for(let a=this.scopeStack.length-1;a>=0;--a){s=this.scopeStack[a];this.checkRedeclarationInScope(s,e,t,r);s.names.set(e,(s.names.get(e)||0)|1);this.maybeExportDefined(s,e);if(s.flags&643)break}}if(this.parser.inModule&&s.flags&1){this.undefinedExports.delete(e)}}maybeExportDefined(e,t){if(this.parser.inModule&&e.flags&1){this.undefinedExports.delete(t)}}checkRedeclarationInScope(e,t,r,s){if(this.isRedeclaredInScope(e,t,r)){this.parser.raise(p.VarRedeclaration,s,{identifierName:t})}}isRedeclaredInScope(e,t,r){if(!(r&1))return false;if(r&8){return e.names.has(t)}const s=e.names.get(t);if(r&16){return(s&2)>0||!this.treatFunctionsAsVarInScope(e)&&(s&1)>0}return(s&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(s&4)>0}checkLocalExport(e){const{name:t}=e;const r=this.scopeStack[0];if(!r.names.has(t)){this.undefinedExports.set(t,e.loc.start)}}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&643){return t}}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(t&(643|64)&&!(t&4)){return t}}}}class FlowScope extends Scope{constructor(...e){super(...e);this.declareFunctions=new Set}}class FlowScopeHandler extends ScopeHandler{createScope(e){return new FlowScope(e)}declareName(e,t,r){const s=this.currentScope();if(t&2048){this.checkRedeclarationInScope(s,e,t,r);this.maybeExportDefined(s,e);s.declareFunctions.add(e);return}super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return true;if(r&2048&&!e.declareFunctions.has(t)){const r=e.names.get(t);return(r&4)>0||(r&2)>0}return false}checkLocalExport(e){if(!this.scopeStack[0].declareFunctions.has(e.name)){super.checkLocalExport(e)}}}const q=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]);const V=ParseErrorEnum`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function isEsModuleType(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function hasTypeImportKind(e){return e.importKind==="type"||e.importKind==="typeof"}const W={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function partition(e,t){const r=[];const s=[];for(let a=0;a<e.length;a++){(t(e[a],a,e)?r:s).push(e[a])}return[r,s]}const K=/\*?\s*@((?:no)?flow)\b/;var flow=e=>class FlowParserMixin extends e{constructor(...e){super(...e);this.flowPragma=undefined}getScopeHandler(){return FlowScopeHandler}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(e,t){if(e!==134&&e!==13&&e!==28){if(this.flowPragma===undefined){this.flowPragma=null}}super.finishToken(e,t)}addComment(e){if(this.flowPragma===undefined){const t=K.exec(e.value);if(!t);else if(t[1]==="flow"){this.flowPragma="flow"}else if(t[1]==="noflow"){this.flowPragma="noflow"}else{throw new Error("Unexpected flow pragma")}}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=true;this.expect(e||14);const r=this.flowParseType();this.state.inType=t;return r}flowParsePredicate(){const e=this.startNode();const t=this.state.startLoc;this.next();this.expectContextual(110);if(this.state.lastTokStartLoc.index>t.index+1){this.raise(V.UnexpectedSpaceBetweenModuloChecks,t)}if(this.eat(10)){e.value=super.parseExpression();this.expect(11);return this.finishNode(e,"DeclaredPredicate")}else{return this.finishNode(e,"InferredPredicate")}}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=true;this.expect(14);let t=null;let r=null;if(this.match(54)){this.state.inType=e;r=this.flowParsePredicate()}else{t=this.flowParseType();this.state.inType=e;if(this.match(54)){r=this.flowParsePredicate()}}return[t,r]}flowParseDeclareClass(e){this.next();this.flowParseInterfaceish(e,true);return this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier();const r=this.startNode();const s=this.startNode();if(this.match(47)){r.typeParameters=this.flowParseTypeParameterDeclaration()}else{r.typeParameters=null}this.expect(10);const a=this.flowParseFunctionTypeParams();r.params=a.params;r.rest=a.rest;r.this=a._this;this.expect(11);[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser();s.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation");t.typeAnnotation=this.finishNode(s,"TypeAnnotation");this.resetEndLocation(t);this.semicolon();this.scope.declareName(e.id.name,2048,e.id.loc.start);return this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(80)){return this.flowParseDeclareClass(e)}else if(this.match(68)){return this.flowParseDeclareFunction(e)}else if(this.match(74)){return this.flowParseDeclareVariable(e)}else if(this.eatContextual(127)){if(this.match(16)){return this.flowParseDeclareModuleExports(e)}else{if(t){this.raise(V.NestedDeclareModule,this.state.lastTokStartLoc)}return this.flowParseDeclareModule(e)}}else if(this.isContextual(130)){return this.flowParseDeclareTypeAlias(e)}else if(this.isContextual(131)){return this.flowParseDeclareOpaqueType(e)}else if(this.isContextual(129)){return this.flowParseDeclareInterface(e)}else if(this.match(82)){return this.flowParseDeclareExportDeclaration(e,t)}else{this.unexpected()}}flowParseDeclareVariable(e){this.next();e.id=this.flowParseTypeAnnotatableIdentifier(true);this.scope.declareName(e.id.name,5,e.id.loc.start);this.semicolon();return this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0);if(this.match(134)){e.id=super.parseExprAtom()}else{e.id=this.parseIdentifier()}const t=e.body=this.startNode();const r=t.body=[];this.expect(5);while(!this.match(8)){let e=this.startNode();if(this.match(83)){this.next();if(!this.isContextual(130)&&!this.match(87)){this.raise(V.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc)}super.parseImport(e)}else{this.expectContextual(125,V.UnsupportedStatementInDeclareModule);e=this.flowParseDeclare(e,true)}r.push(e)}this.scope.exit();this.expect(8);this.finishNode(t,"BlockStatement");let s=null;let a=false;r.forEach((e=>{if(isEsModuleType(e)){if(s==="CommonJS"){this.raise(V.AmbiguousDeclareModuleKind,e)}s="ES"}else if(e.type==="DeclareModuleExports"){if(a){this.raise(V.DuplicateDeclareModuleExports,e)}if(s==="ES"){this.raise(V.AmbiguousDeclareModuleKind,e)}s="CommonJS";a=true}}));e.kind=s||"CommonJS";return this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){this.expect(82);if(this.eat(65)){if(this.match(68)||this.match(80)){e.declaration=this.flowParseDeclare(this.startNode())}else{e.declaration=this.flowParseType();this.semicolon()}e.default=true;return this.finishNode(e,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(V.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:W[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)){e.declaration=this.flowParseDeclare(this.startNode());e.default=false;return this.finishNode(e,"DeclareExportDeclaration")}else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)){e=this.parseExport(e,null);if(e.type==="ExportNamedDeclaration"){e.default=false;delete e.exportKind;return this.castNodeTo(e,"DeclareExportDeclaration")}else{return this.castNodeTo(e,"DeclareExportAllDeclaration")}}}this.unexpected()}flowParseDeclareModuleExports(e){this.next();this.expectContextual(111);e.typeAnnotation=this.flowParseTypeAnnotation();this.semicolon();return this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);this.castNodeTo(t,"DeclareTypeAlias");return t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,true);this.castNodeTo(t,"DeclareOpaqueType");return t}flowParseDeclareInterface(e){this.next();this.flowParseInterfaceish(e,false);return this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){e.id=this.flowParseRestrictedIdentifier(!t,true);this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.extends=[];if(this.eat(81)){do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12))}if(t){e.implements=[];e.mixins=[];if(this.eatContextual(117)){do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12))}if(this.eatContextual(113)){do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}}e.body=this.flowParseObjectType({allowStatic:t,allowExact:false,allowSpread:false,allowProto:t,allowInexact:false})}flowParseInterfaceExtends(){const e=this.startNode();e.id=this.flowParseQualifiedTypeIdentifier();if(this.match(47)){e.typeParameters=this.flowParseTypeParameterInstantiation()}else{e.typeParameters=null}return this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){this.flowParseInterfaceish(e,false);return this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){if(e==="_"){this.raise(V.UnexpectedReservedUnderscore,this.state.startLoc)}}checkReservedType(e,t,r){if(!q.has(e))return;this.raise(r?V.AssignReservedType:V.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){this.checkReservedType(this.state.value,this.state.startLoc,t);return this.parseIdentifier(e)}flowParseTypeAlias(e){e.id=this.flowParseRestrictedIdentifier(false,true);this.scope.declareName(e.id.name,8201,e.id.loc.start);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.right=this.flowParseTypeInitialiser(29);this.semicolon();return this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){this.expectContextual(130);e.id=this.flowParseRestrictedIdentifier(true,true);this.scope.declareName(e.id.name,8201,e.id.loc.start);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}else{e.typeParameters=null}e.supertype=null;if(this.match(14)){e.supertype=this.flowParseTypeInitialiser(14)}e.impltype=null;if(!t){e.impltype=this.flowParseTypeInitialiser(29)}this.semicolon();return this.finishNode(e,"OpaqueType")}flowParseTypeParameter(e=false){const t=this.state.startLoc;const r=this.startNode();const s=this.flowParseVariance();const a=this.flowParseTypeAnnotatableIdentifier();r.name=a.name;r.variance=s;r.bound=a.typeAnnotation;if(this.match(29)){this.eat(29);r.default=this.flowParseType()}else{if(e){this.raise(V.MissingTypeParamDefault,t)}}return this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType;const t=this.startNode();t.params=[];this.state.inType=true;if(this.match(47)||this.match(143)){this.next()}else{this.unexpected()}let r=false;do{const e=this.flowParseTypeParameter(r);t.params.push(e);if(e.default){r=true}if(!this.match(48)){this.expect(12)}}while(!this.match(48));this.expect(48);this.state.inType=e;return this.finishNode(t,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()!==f.brace){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else{return e()}}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()!==47)return;return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const e=this.startNode();const t=this.state.inType;this.state.inType=true;e.params=[];this.flowInTopLevelContext((()=>{this.expect(47);const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=false;while(!this.match(48)){e.params.push(this.flowParseType());if(!this.match(48)){this.expect(12)}}this.state.noAnonFunctionType=t}));this.state.inType=t;if(!this.state.inType&&this.curContext()===f.brace){this.reScan_lt_gt()}this.expect(48);return this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;const e=this.startNode();const t=this.state.inType;e.params=[];this.state.inType=true;this.expect(47);while(!this.match(48)){e.params.push(this.flowParseTypeOrImplicitInstantiation());if(!this.match(48)){this.expect(12)}}this.expect(48);this.state.inType=t;return this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();this.expectContextual(129);e.extends=[];if(this.eat(81)){do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:false,allowExact:false,allowSpread:false,allowProto:false,allowInexact:false});return this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(true)}flowParseObjectTypeIndexer(e,t,r){e.static=t;if(this.lookahead().type===14){e.id=this.flowParseObjectPropertyKey();e.key=this.flowParseTypeInitialiser()}else{e.id=null;e.key=this.flowParseType()}this.expect(3);e.value=this.flowParseTypeInitialiser();e.variance=r;return this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){e.static=t;e.id=this.flowParseObjectPropertyKey();this.expect(3);this.expect(3);if(this.match(47)||this.match(10)){e.method=true;e.optional=false;e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))}else{e.method=false;if(this.eat(17)){e.optional=true}e.value=this.flowParseTypeInitialiser()}return this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){e.params=[];e.rest=null;e.typeParameters=null;e.this=null;if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}this.expect(10);if(this.match(78)){e.this=this.flowParseFunctionTypeParam(true);e.this.name=null;if(!this.match(11)){this.expect(12)}}while(!this.match(11)&&!this.match(21)){e.params.push(this.flowParseFunctionTypeParam(false));if(!this.match(11)){this.expect(12)}}if(this.eat(21)){e.rest=this.flowParseFunctionTypeParam(false)}this.expect(11);e.returnType=this.flowParseTypeInitialiser();return this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const r=this.startNode();e.static=t;e.value=this.flowParseObjectTypeMethodish(r);return this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:r,allowProto:s,allowInexact:a}){const n=this.state.inType;this.state.inType=true;const i=this.startNode();i.callProperties=[];i.properties=[];i.indexers=[];i.internalSlots=[];let o;let l;let c=false;if(t&&this.match(6)){this.expect(6);o=9;l=true}else{this.expect(5);o=8;l=false}i.exact=l;while(!this.match(o)){let t=false;let n=null;let o=null;const u=this.startNode();if(s&&this.isContextual(118)){const t=this.lookahead();if(t.type!==14&&t.type!==17){this.next();n=this.state.startLoc;e=false}}if(e&&this.isContextual(106)){const e=this.lookahead();if(e.type!==14&&e.type!==17){this.next();t=true}}const p=this.flowParseVariance();if(this.eat(0)){if(n!=null){this.unexpected(n)}if(this.eat(0)){if(p){this.unexpected(p.loc.start)}i.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))}else{i.indexers.push(this.flowParseObjectTypeIndexer(u,t,p))}}else if(this.match(10)||this.match(47)){if(n!=null){this.unexpected(n)}if(p){this.unexpected(p.loc.start)}i.callProperties.push(this.flowParseObjectTypeCallProperty(u,t))}else{let e="init";if(this.isContextual(99)||this.isContextual(104)){const t=this.lookahead();if(tokenIsLiteralPropertyName(t.type)){e=this.state.value;this.next()}}const s=this.flowParseObjectTypeProperty(u,t,n,p,e,r,a!=null?a:!l);if(s===null){c=true;o=this.state.lastTokStartLoc}else{i.properties.push(s)}}this.flowObjectTypeSemicolon();if(o&&!this.match(8)&&!this.match(9)){this.raise(V.UnexpectedExplicitInexactInObject,o)}}this.expect(o);if(r){i.inexact=c}const u=this.finishNode(i,"ObjectTypeAnnotation");this.state.inType=n;return u}flowParseObjectTypeProperty(e,t,r,s,a,n,i){if(this.eat(21)){const t=this.match(12)||this.match(13)||this.match(8)||this.match(9);if(t){if(!n){this.raise(V.InexactInsideNonObject,this.state.lastTokStartLoc)}else if(!i){this.raise(V.InexactInsideExact,this.state.lastTokStartLoc)}if(s){this.raise(V.InexactVariance,s)}return null}if(!n){this.raise(V.UnexpectedSpreadType,this.state.lastTokStartLoc)}if(r!=null){this.unexpected(r)}if(s){this.raise(V.SpreadVariance,s)}e.argument=this.flowParseType();return this.finishNode(e,"ObjectTypeSpreadProperty")}else{e.key=this.flowParseObjectPropertyKey();e.static=t;e.proto=r!=null;e.kind=a;let i=false;if(this.match(47)||this.match(10)){e.method=true;if(r!=null){this.unexpected(r)}if(s){this.unexpected(s.loc.start)}e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start));if(a==="get"||a==="set"){this.flowCheckGetterSetterParams(e)}if(!n&&e.key.name==="constructor"&&e.value.this){this.raise(V.ThisParamBannedInConstructor,e.value.this)}}else{if(a!=="init")this.unexpected();e.method=false;if(this.eat(17)){i=true}e.value=this.flowParseTypeInitialiser();e.variance=s}e.optional=i;return this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t=e.kind==="get"?0:1;const r=e.value.params.length+(e.value.rest?1:0);if(e.value.this){this.raise(e.kind==="get"?V.GetterMayNotHaveThisParam:V.SetterMayNotHaveThisParam,e.value.this)}if(r!==t){this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,e)}if(e.kind==="set"&&e.value.rest){this.raise(p.BadSetterRestParameter,e)}}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)){this.unexpected()}}flowParseQualifiedTypeIdentifier(e,t){e!=null?e:e=this.state.startLoc;let r=t||this.flowParseRestrictedIdentifier(true);while(this.eat(16)){const t=this.startNodeAt(e);t.qualification=r;t.id=this.flowParseRestrictedIdentifier(true);r=this.finishNode(t,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t){const r=this.startNodeAt(e);r.typeParameters=null;r.id=this.flowParseQualifiedTypeIdentifier(e,t);if(this.match(47)){r.typeParameters=this.flowParseTypeParameterInstantiation()}return this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();this.expect(87);e.argument=this.flowParsePrimaryType();return this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();e.types=[];this.expect(0);while(this.state.pos<this.length&&!this.match(3)){e.types.push(this.flowParseType());if(this.match(3))break;this.expect(12)}this.expect(3);return this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){let t=null;let r=false;let s=null;const a=this.startNode();const n=this.lookahead();const i=this.state.type===78;if(n.type===14||n.type===17){if(i&&!e){this.raise(V.ThisParamMustBeFirst,a)}t=this.parseIdentifier(i);if(this.eat(17)){r=true;if(i){this.raise(V.ThisParamMayNotBeOptional,a)}}s=this.flowParseTypeInitialiser()}else{s=this.flowParseType()}a.name=t;a.optional=r;a.typeAnnotation=s;return this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);t.name=null;t.optional=false;t.typeAnnotation=e;return this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null;let r=null;if(this.match(78)){r=this.flowParseFunctionTypeParam(true);r.name=null;if(!this.match(11)){this.expect(12)}}while(!this.match(11)&&!this.match(21)){e.push(this.flowParseFunctionTypeParam(false));if(!this.match(11)){this.expect(12)}}if(this.eat(21)){t=this.flowParseFunctionTypeParam(false)}return{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:this.checkNotUnderscore(r.name);return this.flowParseGenericType(e,r)}}flowParsePrimaryType(){const e=this.state.startLoc;const t=this.startNode();let r;let s;let a=false;const n=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:false,allowExact:false,allowSpread:true,allowProto:false,allowInexact:true});case 6:return this.flowParseObjectType({allowStatic:false,allowExact:true,allowSpread:true,allowProto:false,allowInexact:false});case 0:this.state.noAnonFunctionType=false;s=this.flowParseTupleType();this.state.noAnonFunctionType=n;return s;case 47:{const e=this.startNode();e.typeParameters=this.flowParseTypeParameterDeclaration();this.expect(10);r=this.flowParseFunctionTypeParams();e.params=r.params;e.rest=r.rest;e.this=r._this;this.expect(11);this.expect(19);e.returnType=this.flowParseType();return this.finishNode(e,"FunctionTypeAnnotation")}case 10:{const e=this.startNode();this.next();if(!this.match(11)&&!this.match(21)){if(tokenIsIdentifier(this.state.type)||this.match(78)){const e=this.lookahead().type;a=e!==17&&e!==14}else{a=true}}if(a){this.state.noAnonFunctionType=false;s=this.flowParseType();this.state.noAnonFunctionType=n;if(this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19)){this.expect(11);return s}else{this.eat(12)}}if(s){r=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(s)])}else{r=this.flowParseFunctionTypeParams()}e.params=r.params;e.rest=r.rest;e.this=r._this;this.expect(11);this.expect(19);e.returnType=this.flowParseType();e.typeParameters=null;return this.finishNode(e,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:t.value=this.match(85);this.next();return this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){this.next();if(this.match(135)){return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t)}if(this.match(136)){return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t)}throw this.raise(V.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:this.next();return this.finishNode(t,"VoidTypeAnnotation");case 84:this.next();return this.finishNode(t,"NullLiteralTypeAnnotation");case 78:this.next();return this.finishNode(t,"ThisTypeAnnotation");case 55:this.next();return this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(tokenIsKeyword(this.state.type)){const e=tokenLabelName(this.state.type);this.next();return super.createIdentifier(t,e)}else if(tokenIsIdentifier(this.state.type)){if(this.isContextual(129)){return this.flowParseInterfaceType()}return this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType();let r=false;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){const s=this.startNodeAt(e);const a=this.eat(18);r=r||a;this.expect(0);if(!a&&this.match(3)){s.elementType=t;this.next();t=this.finishNode(s,"ArrayTypeAnnotation")}else{s.objectType=t;s.indexType=this.flowParseType();this.expect(3);if(r){s.optional=a;t=this.finishNode(s,"OptionalIndexedAccessType")}else{t=this.finishNode(s,"IndexedAccessType")}}}return t}flowParsePrefixType(){const e=this.startNode();if(this.eat(17)){e.typeAnnotation=this.flowParsePrefixType();return this.finishNode(e,"NullableTypeAnnotation")}else{return this.flowParsePostfixType()}}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const t=this.startNodeAt(e.loc.start);t.params=[this.reinterpretTypeAsFunctionTypeParam(e)];t.rest=null;t.this=null;t.returnType=this.flowParseType();t.typeParameters=null;return this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){const e=this.startNode();this.eat(45);const t=this.flowParseAnonFunctionWithoutParens();e.types=[t];while(this.eat(45)){e.types.push(this.flowParseAnonFunctionWithoutParens())}return e.types.length===1?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){const e=this.startNode();this.eat(43);const t=this.flowParseIntersectionType();e.types=[t];while(this.eat(43)){e.types.push(this.flowParseIntersectionType())}return e.types.length===1?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){const e=this.state.inType;this.state.inType=true;const t=this.flowParseUnionType();this.state.inType=e;return t}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){const e=this.state.startLoc;const t=this.parseIdentifier();return this.flowParseGenericType(e,t)}else{return this.flowParseType()}}flowParseTypeAnnotation(){const e=this.startNode();e.typeAnnotation=this.flowParseTypeInitialiser();return this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();if(this.match(14)){t.typeAnnotation=this.flowParseTypeAnnotation();this.resetEndLocation(t)}return t}typeCastToParameter(e){e.expression.typeAnnotation=e.typeAnnotation;this.resetEndLocation(e.expression,e.typeAnnotation.loc.end);return e.expression}flowParseVariance(){let e=null;if(this.match(53)){e=this.startNode();if(this.state.value==="+"){e.kind="plus"}else{e.kind="minus"}this.next();return this.finishNode(e,"Variance")}return e}parseFunctionBody(e,t,r=false){if(t){this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,true,r)));return}super.parseFunctionBody(e,false,r)}parseFunctionBodyAndFinish(e,t,r=false){if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser();e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){const e=this.lookahead();if(tokenIsKeywordOrIdentifier(e.type)){const e=this.startNode();this.next();return this.flowParseInterface(e)}}else if(this.isContextual(126)){const e=this.startNode();this.next();return this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);if(this.flowPragma===undefined&&!this.isValidDirective(t)){this.flowPragma=null}return t}parseExpressionStatement(e,t,r){if(t.type==="Identifier"){if(t.name==="declare"){if(this.match(80)||tokenIsIdentifier(this.state.type)||this.match(68)||this.match(74)||this.match(82)){return this.flowParseDeclare(e)}}else if(tokenIsIdentifier(this.state.type)){if(t.name==="interface"){return this.flowParseInterface(e)}else if(t.name==="type"){return this.flowParseTypeAlias(e)}else if(t.name==="opaque"){return this.flowParseOpaqueType(e,false)}}}return super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){const{type:e}=this.state;if(e===126||tokenIsFlowInterfaceOrTypeOrOpaque(e)){return!this.state.containsEsc}return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;if(e===126||tokenIsFlowInterfaceOrTypeOrOpaque(e)){return this.state.containsEsc}return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const e=this.startNode();this.next();return this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41){this.setOptionalParametersError(r);return e}}this.expect(17);const s=this.state.clone();const a=this.state.noArrowAt;const n=this.startNodeAt(t);let{consequent:i,failed:o}=this.tryParseConditionalConsequent();let[l,c]=this.getArrowLikeExpressions(i);if(o||c.length>0){const e=[...a];if(c.length>0){this.state=s;this.state.noArrowAt=e;for(let t=0;t<c.length;t++){e.push(c[t].start)}({consequent:i,failed:o}=this.tryParseConditionalConsequent());[l,c]=this.getArrowLikeExpressions(i)}if(o&&l.length>1){this.raise(V.AmbiguousConditionalArrow,s.startLoc)}if(o&&l.length===1){this.state=s;e.push(l[0].start);this.state.noArrowAt=e;({consequent:i,failed:o}=this.tryParseConditionalConsequent())}}this.getArrowLikeExpressions(i,true);this.state.noArrowAt=a;this.expect(14);n.test=e;n.consequent=i;n.alternate=this.forwardNoArrowParamsConversionAt(n,(()=>this.parseMaybeAssign(undefined,undefined)));return this.finishNode(n,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn();const t=!this.match(14);this.state.noArrowParamsConversionAt.pop();return{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const r=[e];const s=[];while(r.length!==0){const e=r.pop();if(e.type==="ArrowFunctionExpression"&&e.body.type!=="BlockStatement"){if(e.typeParameters||!e.returnType){this.finishArrowValidation(e)}else{s.push(e)}r.push(e.body)}else if(e.type==="ConditionalExpression"){r.push(e.consequent);r.push(e.alternate)}}if(t){s.forEach((e=>this.finishArrowValidation(e)));return[s,[]]}return partition(s,(e=>e.params.every((e=>this.isAssignable(e,true)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,(t=e.extra)==null?void 0:t.trailingCommaLoc,false);this.scope.enter(2|4);super.checkParams(e,false,true);this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let r;if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){this.state.noArrowParamsConversionAt.push(this.state.start);r=t();this.state.noArrowParamsConversionAt.pop()}else{r=t()}return r}parseParenItem(e,t){const r=super.parseParenItem(e,t);if(this.eat(17)){r.optional=true;this.resetEndLocation(e)}if(this.match(14)){const e=this.startNodeAt(t);e.expression=r;e.typeAnnotation=this.flowParseTypeAnnotation();return this.finishNode(e,"TypeCastExpression")}return r}assertModuleNodeAllowed(e){if(e.type==="ImportDeclaration"&&(e.importKind==="type"||e.importKind==="typeof")||e.type==="ExportNamedDeclaration"&&e.exportKind==="type"||e.type==="ExportAllDeclaration"&&e.exportKind==="type"){return}super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();this.next();if(this.match(5)){e.specifiers=this.parseExportSpecifiers(true);super.parseExportFrom(e);return null}else{return this.flowParseTypeAlias(t)}}else if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();this.next();return this.flowParseOpaqueType(t,false)}else if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();this.next();return this.flowParseInterface(t)}else if(this.isContextual(126)){e.exportKind="value";const t=this.startNode();this.next();return this.flowParseEnumDeclaration(t)}else{return super.parseExportDeclaration(e)}}eatExportStar(e){if(super.eatExportStar(e))return true;if(this.isContextual(130)&&this.lookahead().type===55){e.exportKind="type";this.next();this.next();return true}return false}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state;const r=super.maybeParseExportNamespaceSpecifier(e);if(r&&e.exportKind==="type"){this.unexpected(t)}return r}parseClassId(e,t,r){super.parseClassId(e,t,r);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}}parseClassMember(e,t,r){const{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t)){return}t.declare=true}super.parseClassMember(e,t,r);if(t.declare){if(t.type!=="ClassProperty"&&t.type!=="ClassPrivateProperty"&&t.type!=="PropertyDefinition"){this.raise(V.DeclareClassElement,s)}else if(t.value){this.raise(V.DeclareClassFieldInitializer,t.value)}}}isIterator(e){return e==="iterator"||e==="asyncIterator"}readIterator(){const e=super.readWord1();const t="@@"+e;if(!this.isIterator(e)||!this.state.inType){this.raise(p.InvalidIdentifier,this.state.curPosition(),{identifierName:t})}this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===123&&t===124){this.finishOp(6,2)}else if(this.state.inType&&(e===62||e===60)){this.finishOp(e===62?48:47,1)}else if(this.state.inType&&e===63){if(t===46){this.finishOp(18,2)}else{this.finishOp(17,1)}}else if(isIteratorStart(e,t,this.input.charCodeAt(this.state.pos+2))){this.state.pos+=2;this.readIterator()}else{super.getTokenFromCode(e)}}isAssignable(e,t){if(e.type==="TypeCastExpression"){return this.isAssignable(e.expression,t)}else{return super.isAssignable(e,t)}}toAssignable(e,t=false){if(!t&&e.type==="AssignmentExpression"&&e.left.type==="TypeCastExpression"){e.left=this.typeCastToParameter(e.left)}super.toAssignable(e,t)}toAssignableList(e,t,r){for(let t=0;t<e.length;t++){const r=e[t];if((r==null?void 0:r.type)==="TypeCastExpression"){e[t]=this.typeCastToParameter(r)}}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(let s=0;s<e.length;s++){var r;const a=e[s];if(a&&a.type==="TypeCastExpression"&&!((r=a.extra)!=null&&r.parenthesized)&&(e.length>1||!t)){this.raise(V.TypeCastInPattern,a.typeAnnotation)}}return e}parseArrayLike(e,t,r,s){const a=super.parseArrayLike(e,t,r,s);if(t&&!this.state.maybeInArrowParameters){this.toReferencedList(a.elements)}return a}isValidLVal(e,t,r){return e==="TypeCastExpression"||super.isValidLVal(e,t,r)}parseClassProperty(e){if(this.match(14)){e.typeAnnotation=this.flowParseTypeAnnotation()}return super.parseClassProperty(e)}parseClassPrivateProperty(e){if(this.match(14)){e.typeAnnotation=this.flowParseTypeAnnotation()}return super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,s,a,n){if(t.variance){this.unexpected(t.variance.loc.start)}delete t.variance;if(this.match(47)){t.typeParameters=this.flowParseTypeParameterDeclaration()}super.pushClassMethod(e,t,r,s,a,n);if(t.params&&a){const e=t.params;if(e.length>0&&this.isThisParam(e[0])){this.raise(V.ThisParamBannedInConstructor,t)}}else if(t.type==="MethodDefinition"&&a&&t.value.params){const e=t.value.params;if(e.length>0&&this.isThisParam(e[0])){this.raise(V.ThisParamBannedInConstructor,t)}}}pushClassPrivateMethod(e,t,r,s){if(t.variance){this.unexpected(t.variance.loc.start)}delete t.variance;if(this.match(47)){t.typeParameters=this.flowParseTypeParameterDeclaration()}super.pushClassPrivateMethod(e,t,r,s)}parseClassSuper(e){super.parseClassSuper(e);if(e.superClass&&(this.match(47)||this.match(51))){{e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()}}if(this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(true);if(this.match(47)){e.typeParameters=this.flowParseTypeParameterInstantiation()}else{e.typeParameters=null}t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const r=t[0];if(this.isThisParam(r)&&e.kind==="get"){this.raise(V.GetterMayNotHaveThisParam,r)}else if(this.isThisParam(r)){this.raise(V.SetterMayNotHaveThisParam,r)}}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,s,a,n,i){if(e.variance){this.unexpected(e.variance.loc.start)}delete e.variance;let o;if(this.match(47)&&!n){o=this.flowParseTypeParameterDeclaration();if(!this.match(10))this.unexpected()}const l=super.parseObjPropValue(e,t,r,s,a,n,i);if(o){(l.value||l).typeParameters=o}return l}parseFunctionParamType(e){if(this.eat(17)){if(e.type!=="Identifier"){this.raise(V.PatternIsOptional,e)}if(this.isThisParam(e)){this.raise(V.ThisParamMayNotBeOptional,e)}e.optional=true}if(this.match(14)){e.typeAnnotation=this.flowParseTypeAnnotation()}else if(this.isThisParam(e)){this.raise(V.ThisParamAnnotationRequired,e)}if(this.match(29)&&this.isThisParam(e)){this.raise(V.ThisParamNoDefault,e)}this.resetEndLocation(e);return e}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);if(r.type==="AssignmentPattern"&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start){this.raise(V.TypeBeforeInitializer,r.typeAnnotation)}return r}checkImportReflection(e){super.checkImportReflection(e);if(e.module&&e.importKind!=="value"){this.raise(V.ImportReflectionHasImportType,e.specifiers[0].loc.start)}}parseImportSpecifierLocal(e,t,r){t.local=hasTypeImportKind(e)?this.flowParseRestrictedIdentifier(true,true):this.parseIdentifier();e.specifiers.push(this.finishImportSpecifier(t,r))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return true;if(this.isContextual(130)){if(!e)return true;const t=this.lookaheadCharCode();return t===123||t===42}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,s){super.applyImportPhase(e,t,r,s);if(t){if(!r&&this.match(65)){return}e.exportKind=r==="type"?r:"value"}else{if(r==="type"&&this.match(55))this.unexpected();e.importKind=r==="type"||r==="typeof"?r:"value"}}parseImportSpecifier(e,t,r,s,a){const n=e.imported;let i=null;if(n.type==="Identifier"){if(n.name==="type"){i="type"}else if(n.name==="typeof"){i="typeof"}}let o=false;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(true);if(i!==null&&!tokenIsKeywordOrIdentifier(this.state.type)){e.imported=t;e.importKind=i;e.local=this.cloneIdentifier(t)}else{e.imported=n;e.importKind=null;e.local=this.parseIdentifier()}}else{if(i!==null&&tokenIsKeywordOrIdentifier(this.state.type)){e.imported=this.parseIdentifier(true);e.importKind=i}else{if(t){throw this.raise(p.ImportBindingIsString,e,{importName:n.value})}e.imported=n;e.importKind=null}if(this.eatContextual(93)){e.local=this.parseIdentifier()}else{o=true;e.local=this.cloneIdentifier(e.imported)}}const l=hasTypeImportKind(e);if(r&&l){this.raise(V.ImportTypeShorthandOnlyInPureImport,e)}if(r||l){this.checkReservedType(e.local.name,e.local.loc.start,true)}if(o&&!r&&!l){this.checkReservedWord(e.local.name,e.loc.start,true,true)}return this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(true);default:return super.parseBindingAtom()}}parseFunctionParams(e,t){const r=e.kind;if(r!=="get"&&r!=="set"&&this.match(47)){e.typeParameters=this.flowParseTypeParameterDeclaration()}super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t);if(this.match(14)){e.id.typeAnnotation=this.flowParseTypeAnnotation();this.resetEndLocation(e.id)}}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=true;e.returnType=this.flowParseTypeAnnotation();this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var r;let s=null;let a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){s=this.state.clone();a=this.tryParse((()=>super.parseMaybeAssign(e,t)),s);if(!a.error)return a.node;const{context:r}=this.state;const n=r[r.length-1];if(n===f.j_oTag||n===f.j_expr){r.pop()}}if((r=a)!=null&&r.error||this.match(47)){var n,i;s=s||this.state.clone();let r;const o=this.tryParse((s=>{var a;r=this.flowParseTypeParameterDeclaration();const n=this.forwardNoArrowParamsConversionAt(r,(()=>{const s=super.parseMaybeAssign(e,t);this.resetStartLocationFromNode(s,r);return s}));if((a=n.extra)!=null&&a.parenthesized)s();const i=this.maybeUnwrapTypeCastExpression(n);if(i.type!=="ArrowFunctionExpression")s();i.typeParameters=r;this.resetStartLocationFromNode(i,r);return n}),s);let l=null;if(o.node&&this.maybeUnwrapTypeCastExpression(o.node).type==="ArrowFunctionExpression"){if(!o.error&&!o.aborted){if(o.node.async){this.raise(V.UnexpectedTypeParameterBeforeAsyncArrowFunction,r)}return o.node}l=o.node}if((n=a)!=null&&n.node){this.state=a.failState;return a.node}if(l){this.state=o.failState;return l}if((i=a)!=null&&i.thrown)throw a.error;if(o.thrown)throw o.error;throw this.raise(V.UnexpectedTokenAfterTypeParameter,r)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=true;const r=this.startNode();[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser();this.state.noAnonFunctionType=t;if(this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return r}));if(t.thrown)return null;if(t.error)this.state=t.failState;e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){e.params=t}else{super.setArrowFunctionParameters(e,t)}}checkParams(e,t,r,s=true){if(r&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){return}for(let t=0;t<e.params.length;t++){if(this.isThisParam(e.params[t])&&t>0){this.raise(V.ThisParamMustBeFirst,e.params[t])}}super.checkParams(e,t,r,s)}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,r){if(e.type==="Identifier"&&e.name==="async"&&this.state.noArrowAt.includes(t.index)){this.next();const r=this.startNodeAt(t);r.callee=e;r.arguments=super.parseCallExpressionArguments(11);e=this.finishNode(r,"CallExpression")}else if(e.type==="Identifier"&&e.name==="async"&&this.match(47)){const s=this.state.clone();const a=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),s);if(!a.error&&!a.aborted)return a.node;const n=this.tryParse((()=>super.parseSubscripts(e,t,r)),s);if(n.node&&!n.error)return n.node;if(a.node){this.state=a.failState;return a.node}if(n.node){this.state=n.failState;return n.node}throw a.error||n.error}return super.parseSubscripts(e,t,r)}parseSubscript(e,t,r,s){if(this.match(18)&&this.isLookaheadToken_lt()){s.optionalChainMember=true;if(r){s.stop=true;return e}this.next();const a=this.startNodeAt(t);a.callee=e;a.typeArguments=this.flowParseTypeParameterInstantiationInExpression();this.expect(10);a.arguments=this.parseCallExpressionArguments(11);a.optional=true;return this.finishCallExpression(a,true)}else if(!r&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const r=this.startNodeAt(t);r.callee=e;const a=this.tryParse((()=>{r.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew();this.expect(10);r.arguments=super.parseCallExpressionArguments(11);if(s.optionalChainMember){r.optional=false}return this.finishCallExpression(r,s.optionalChainMember)}));if(a.node){if(a.error)this.state=a.failState;return a.node}}return super.parseSubscript(e,t,r,s)}parseNewCallee(e){super.parseNewCallee(e);let t=null;if(this.shouldParseTypes()&&this.match(47)){t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node}e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);this.parseFunctionParams(t,false);if(!this.parseArrow(t))return;return super.parseArrowExpression(t,undefined,true)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===42&&t===47&&this.state.hasFlowComment){this.state.hasFlowComment=false;this.state.pos+=2;this.nextToken();return}super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(e===124&&t===125){this.finishOp(9,2);return}super.readToken_pipe_amp(e)}parseTopLevel(e,t){const r=super.parseTopLevel(e,t);if(this.state.hasFlowComment){this.raise(V.UnterminatedFlowComment,this.state.curPosition())}return r}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment){throw this.raise(V.NestedFlowComment,this.state.startLoc)}this.hasFlowCommentCompletion();const e=this.skipFlowComment();if(e){this.state.pos+=e;this.state.hasFlowComment=true}return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:e}=this.state;let t=2;while([32,9].includes(this.input.charCodeAt(e+t))){t++}const r=this.input.charCodeAt(t+e);const s=this.input.charCodeAt(t+e+1);if(r===58&&s===58){return t+2}if(this.input.slice(t+e,t+e+12)==="flow-include"){return t+12}if(r===58&&s!==58){return t}return false}hasFlowCommentCompletion(){const e=this.input.indexOf("*/",this.state.pos);if(e===-1){throw this.raise(p.UnterminatedComment,this.state.curPosition())}}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:r}){this.raise(V.EnumBooleanMemberNotInitialized,e,{memberName:r,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(!t.explicitType?V.EnumInvalidMemberInitializerUnknownType:t.explicitType==="symbol"?V.EnumInvalidMemberInitializerSymbolType:V.EnumInvalidMemberInitializerPrimaryType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(V.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(V.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc;const endOfInit=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const t=this.parseNumericLiteral(this.state.value);if(endOfInit()){return{type:"number",loc:t.loc.start,value:t}}return{type:"invalid",loc:e}}case 134:{const t=this.parseStringLiteral(this.state.value);if(endOfInit()){return{type:"string",loc:t.loc.start,value:t}}return{type:"invalid",loc:e}}case 85:case 86:{const t=this.parseBooleanLiteral(this.match(85));if(endOfInit()){return{type:"boolean",loc:t.loc.start,value:t}}return{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;const t=this.parseIdentifier(true);const r=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e};return{id:t,init:r}}flowEnumCheckExplicitTypeMismatch(e,t,r){const{explicitType:s}=t;if(s===null){return}if(s!==r){this.flowEnumErrorInvalidMemberInitializer(e,t)}}flowEnumMembers({enumName:e,explicitType:t}){const r=new Set;const s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let a=false;while(!this.match(8)){if(this.eat(21)){a=true;break}const n=this.startNode();const{id:i,init:o}=this.flowEnumMemberRaw();const l=i.name;if(l===""){continue}if(/^[a-z]/.test(l)){this.raise(V.EnumInvalidMemberName,i,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e})}if(r.has(l)){this.raise(V.EnumDuplicateMemberName,i,{memberName:l,enumName:e})}r.add(l);const c={enumName:e,explicitType:t,memberName:l};n.id=i;switch(o.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"boolean");n.init=o.value;s.booleanMembers.push(this.finishNode(n,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"number");n.init=o.value;s.numberMembers.push(this.finishNode(n,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(o.loc,c,"string");n.init=o.value;s.stringMembers.push(this.finishNode(n,"EnumStringMember"));break}case"invalid":{throw this.flowEnumErrorInvalidMemberInitializer(o.loc,c)}case"none":{switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,c);break;default:s.defaultedMembers.push(this.finishNode(n,"EnumDefaultedMember"))}}}if(!this.match(8)){this.expect(12)}}return{members:s,hasUnknownMembers:a}}flowEnumStringMembers(e,t,{enumName:r}){if(e.length===0){return t}else if(t.length===0){return e}else if(t.length>e.length){for(const t of e){this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:r})}return t}else{for(const e of t){this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:r})}return e}}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!tokenIsIdentifier(this.state.type)){throw this.raise(V.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e})}const{value:t}=this.state;this.next();if(t!=="boolean"&&t!=="number"&&t!=="string"&&t!=="symbol"){this.raise(V.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t})}return t}flowEnumBody(e,t){const r=t.name;const s=t.loc.start;const a=this.flowEnumParseExplicitType({enumName:r});this.expect(5);const{members:n,hasUnknownMembers:i}=this.flowEnumMembers({enumName:r,explicitType:a});e.hasUnknownMembers=i;switch(a){case"boolean":e.explicitType=true;e.members=n.booleanMembers;this.expect(8);return this.finishNode(e,"EnumBooleanBody");case"number":e.explicitType=true;e.members=n.numberMembers;this.expect(8);return this.finishNode(e,"EnumNumberBody");case"string":e.explicitType=true;e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:r});this.expect(8);return this.finishNode(e,"EnumStringBody");case"symbol":e.members=n.defaultedMembers;this.expect(8);return this.finishNode(e,"EnumSymbolBody");default:{const empty=()=>{e.members=[];this.expect(8);return this.finishNode(e,"EnumStringBody")};e.explicitType=false;const t=n.booleanMembers.length;const a=n.numberMembers.length;const i=n.stringMembers.length;const o=n.defaultedMembers.length;if(!t&&!a&&!i&&!o){return empty()}else if(!t&&!a){e.members=this.flowEnumStringMembers(n.stringMembers,n.defaultedMembers,{enumName:r});this.expect(8);return this.finishNode(e,"EnumStringBody")}else if(!a&&!i&&t>=o){for(const e of n.defaultedMembers){this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name})}e.members=n.booleanMembers;this.expect(8);return this.finishNode(e,"EnumBooleanBody")}else if(!t&&!i&&a>=o){for(const e of n.defaultedMembers){this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:r,memberName:e.id.name})}e.members=n.numberMembers;this.expect(8);return this.finishNode(e,"EnumNumberBody")}else{this.raise(V.EnumInconsistentMemberValues,s,{enumName:r});return empty()}}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();e.id=t;e.body=this.flowEnumBody(this.startNode(),t);return this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){if(this.shouldParseTypes()){if(this.match(47)||this.match(51)){e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()}}return super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){const e=this.nextTokenStart();if(this.input.charCodeAt(e)===60){const t=this.input.charCodeAt(e+1);return t!==60&&t!==61}return false}reScan_lt_gt(){const{type:e}=this.state;if(e===47){this.state.pos-=1;this.readToken_lt()}else if(e===48){this.state.pos-=1;this.readToken_gt()}}reScan_lt(){const{type:e}=this.state;if(e===51){this.state.pos-=2;this.finishOp(47,1);return 47}return e}maybeUnwrapTypeCastExpression(e){return e.type==="TypeCastExpression"?e.expression:e}};const $={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"};const H=/\r\n|[\r\n\u2028\u2029]/;const G=new RegExp(H.source,"g");function isNewLine(e){switch(e){case 10:case 13:case 8232:case 8233:return true;default:return false}}function hasNewLine(e,t,r){for(let s=t;s<r;s++){if(isNewLine(e.charCodeAt(s))){return true}}return false}const z=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;const J=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function isWhitespace(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return true;default:return false}}const X=ParseErrorEnum`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function isFragment(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":false}function getQualifiedJSXName(e){if(e.type==="JSXIdentifier"){return e.name}if(e.type==="JSXNamespacedName"){return e.namespace.name+":"+e.name.name}if(e.type==="JSXMemberExpression"){return getQualifiedJSXName(e.object)+"."+getQualifiedJSXName(e.property)}throw new Error("Node had unexpected type: "+e.type)}var jsx=e=>class JSXParserMixin extends e{jsxReadToken(){let e="";let t=this.state.pos;for(;;){if(this.state.pos>=this.length){throw this.raise(X.UnterminatedJsxContent,this.state.startLoc)}const r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:if(this.state.pos===this.state.start){if(r===60&&this.state.canStartJSXElement){++this.state.pos;this.finishToken(143)}else{super.getTokenFromCode(r)}return}e+=this.input.slice(t,this.state.pos);this.finishToken(142,e);return;case 38:e+=this.input.slice(t,this.state.pos);e+=this.jsxReadEntity();t=this.state.pos;break;case 62:case 125:default:if(isNewLine(r)){e+=this.input.slice(t,this.state.pos);e+=this.jsxReadNewLine(true);t=this.state.pos}else{++this.state.pos}}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let r;++this.state.pos;if(t===13&&this.input.charCodeAt(this.state.pos)===10){++this.state.pos;r=e?"\n":"\r\n"}else{r=String.fromCharCode(t)}++this.state.curLine;this.state.lineStart=this.state.pos;return r}jsxReadString(e){let t="";let r=++this.state.pos;for(;;){if(this.state.pos>=this.length){throw this.raise(p.UnterminatedString,this.state.startLoc)}const s=this.input.charCodeAt(this.state.pos);if(s===e)break;if(s===38){t+=this.input.slice(r,this.state.pos);t+=this.jsxReadEntity();r=this.state.pos}else if(isNewLine(s)){t+=this.input.slice(r,this.state.pos);t+=this.jsxReadNewLine(false);r=this.state.pos}else{++this.state.pos}}t+=this.input.slice(r,this.state.pos++);this.finishToken(134,t)}jsxReadEntity(){const e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let e=10;if(this.codePointAtPos(this.state.pos)===120){e=16;++this.state.pos}const t=this.readInt(e,undefined,false,"bail");if(t!==null&&this.codePointAtPos(this.state.pos)===59){++this.state.pos;return String.fromCodePoint(t)}}else{let t=0;let r=false;while(t++<10&&this.state.pos<this.length&&!(r=this.codePointAtPos(this.state.pos)===59)){++this.state.pos}if(r){const t=this.input.slice(e,this.state.pos);const r=$[t];++this.state.pos;if(r){return r}}}this.state.pos=e;return"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(isIdentifierChar(e)||e===45);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();if(this.match(141)){e.name=this.state.value}else if(tokenIsKeyword(this.state.type)){e.name=tokenLabelName(this.state.type)}else{this.unexpected()}this.next();return this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc;const t=this.jsxParseIdentifier();if(!this.eat(14))return t;const r=this.startNodeAt(e);r.namespace=t;r.name=this.jsxParseIdentifier();return this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if(t.type==="JSXNamespacedName"){return t}while(this.eat(16)){const r=this.startNodeAt(e);r.object=t;r.property=this.jsxParseIdentifier();t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:e=this.startNode();this.setContext(f.brace);this.next();e=this.jsxParseExpressionContainer(e,f.j_oTag);if(e.expression.type==="JSXEmptyExpression"){this.raise(X.AttributeIsEmpty,e)}return e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(X.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){this.next();e.expression=this.parseExpression();this.setContext(f.j_expr);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8)){e.expression=this.jsxParseEmptyExpression()}else{const t=this.parseExpression();e.expression=t}this.setContext(t);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();if(this.match(5)){this.setContext(f.brace);this.next();this.expect(21);e.argument=this.parseMaybeAssignAllowIn();this.setContext(f.j_oTag);this.state.canStartJSXElement=true;this.expect(8);return this.finishNode(e,"JSXSpreadAttribute")}e.name=this.jsxParseNamespacedName();e.value=this.eat(29)?this.jsxParseAttributeValue():null;return this.finishNode(e,"JSXAttribute")}jsxParseOpeningElementAt(e){const t=this.startNodeAt(e);if(this.eat(144)){return this.finishNode(t,"JSXOpeningFragment")}t.name=this.jsxParseElementName();return this.jsxParseOpeningElementAfterName(t)}jsxParseOpeningElementAfterName(e){const t=[];while(!this.match(56)&&!this.match(144)){t.push(this.jsxParseAttribute())}e.attributes=t;e.selfClosing=this.eat(56);this.expect(144);return this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){const t=this.startNodeAt(e);if(this.eat(144)){return this.finishNode(t,"JSXClosingFragment")}t.name=this.jsxParseElementName();this.expect(144);return this.finishNode(t,"JSXClosingElement")}jsxParseElementAt(e){const t=this.startNodeAt(e);const r=[];const s=this.jsxParseOpeningElementAt(e);let a=null;if(!s.selfClosing){e:for(;;){switch(this.state.type){case 143:e=this.state.startLoc;this.next();if(this.eat(56)){a=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 142:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const e=this.startNode();this.setContext(f.brace);this.next();if(this.match(21)){r.push(this.jsxParseSpreadChild(e))}else{r.push(this.jsxParseExpressionContainer(e,f.j_expr))}break}default:this.unexpected()}}if(isFragment(s)&&!isFragment(a)&&a!==null){this.raise(X.MissingClosingTagFragment,a)}else if(!isFragment(s)&&isFragment(a)){this.raise(X.MissingClosingTagElement,a,{openingTagName:getQualifiedJSXName(s.name)})}else if(!isFragment(s)&&!isFragment(a)){if(getQualifiedJSXName(a.name)!==getQualifiedJSXName(s.name)){this.raise(X.MissingClosingTagElement,a,{openingTagName:getQualifiedJSXName(s.name)})}}}if(isFragment(s)){t.openingFragment=s;t.closingFragment=a}else{t.openingElement=s;t.closingElement=a}t.children=r;if(this.match(47)){throw this.raise(X.UnwrappedAdjacentJSXElements,this.state.startLoc)}return isFragment(s)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;this.next();return this.jsxParseElementAt(e)}setContext(e){const{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){if(this.match(143)){return this.jsxParseElement()}else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33){this.replaceToken(143);return this.jsxParseElement()}else{return super.parseExprAtom(e)}}skipSpace(){const e=this.curContext();if(!e.preserveSpace)super.skipSpace()}getTokenFromCode(e){const t=this.curContext();if(t===f.j_expr){this.jsxReadToken();return}if(t===f.j_oTag||t===f.j_cTag){if(isIdentifierStart(e)){this.jsxReadWord();return}if(e===62){++this.state.pos;this.finishToken(144);return}if((e===34||e===39)&&t===f.j_oTag){this.jsxReadString(e);return}}if(e===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos;this.finishToken(143);return}super.getTokenFromCode(e)}updateContext(e){const{context:t,type:r}=this.state;if(r===56&&e===143){t.splice(-2,2,f.j_cTag);this.state.canStartJSXElement=false}else if(r===143){t.push(f.j_oTag)}else if(r===144){const r=t[t.length-1];if(r===f.j_oTag&&e===56||r===f.j_cTag){t.pop();this.state.canStartJSXElement=t[t.length-1]===f.j_expr}else{this.setContext(f.j_expr);this.state.canStartJSXElement=true}}else{this.state.canStartJSXElement=tokenComesBeforeExpression(r)}}};class TypeScriptScope extends Scope{constructor(...e){super(...e);this.tsNames=new Map}}class TypeScriptScopeHandler extends ScopeHandler{constructor(...e){super(...e);this.importsStack=[]}createScope(e){this.importsStack.push(new Set);return new TypeScriptScope(e)}enter(e){if(e===512){this.importsStack.push(new Set)}super.enter(e)}exit(){const e=super.exit();if(e===512){this.importsStack.pop()}return e}hasImport(e,t){const r=this.importsStack.length;if(this.importsStack[r-1].has(e)){return true}if(!t&&r>1){for(let t=0;t<r-1;t++){if(this.importsStack[t].has(e))return true}}return false}declareName(e,t,r){if(t&4096){if(this.hasImport(e,true)){this.parser.raise(p.VarRedeclaration,r,{identifierName:e})}this.importsStack[this.importsStack.length-1].add(e);return}const s=this.currentScope();let a=s.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(s,e);s.tsNames.set(e,a|16);return}super.declareName(e,t,r);if(t&2){if(!(t&1)){this.checkRedeclarationInScope(s,e,t,r);this.maybeExportDefined(s,e)}a=a|1}if(t&256){a=a|2}if(t&512){a=a|4}if(t&128){a=a|8}if(a)s.tsNames.set(e,a)}isRedeclaredInScope(e,t,r){const s=e.tsNames.get(t);if((s&2)>0){if(r&256){const e=!!(r&512);const t=(s&4)>0;return e!==t}return true}if(r&128&&(s&8)>0){if(e.names.get(t)&2){return!!(r&1)}else{return false}}if(r&2&&(s&1)>0){return true}return super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){const{name:t}=e;if(this.hasImport(t))return;const r=this.scopeStack.length;for(let e=r-1;e>=0;e--){const r=this.scopeStack[e];const s=r.tsNames.get(t);if((s&1)>0||(s&16)>0){return}}super.checkLocalExport(e)}}class ProductionParameterHandler{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function functionFlags(e,t){return(e?2:0)|(t?1:0)}class BaseParser{constructor(){this.sawUnambiguousESM=false;this.ambiguousScriptDifferentAst=false}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e==="string"){return this.plugins.has(e)}else{const[t,r]=e;if(!this.hasPlugin(t)){return false}const s=this.plugins.get(t);for(const e of Object.keys(r)){if((s==null?void 0:s[e])!==r[e]){return false}}return true}}getPluginOption(e,t){var r;return(r=this.plugins.get(e))==null?void 0:r[t]}}function setTrailingComments(e,t){if(e.trailingComments===undefined){e.trailingComments=t}else{e.trailingComments.unshift(...t)}}function setLeadingComments(e,t){if(e.leadingComments===undefined){e.leadingComments=t}else{e.leadingComments.unshift(...t)}}function setInnerComments(e,t){if(e.innerComments===undefined){e.innerComments=t}else{e.innerComments.unshift(...t)}}function adjustInnerComments(e,t,r){let s=null;let a=t.length;while(s===null&&a>0){s=t[--a]}if(s===null||s.start>r.start){setInnerComments(e,r.comments)}else{setTrailingComments(s,r.comments)}}class CommentsParser extends BaseParser{addComment(e){if(this.filename)e.loc.filename=this.filename;const{commentsLen:t}=this.state;if(this.comments.length!==t){this.comments.length=t}this.comments.push(e);this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state;const r=t.length;if(r===0)return;let s=r-1;const a=t[s];if(a.start===e.end){a.leadingNode=e;s--}const{start:n}=e;for(;s>=0;s--){const r=t[s];const a=r.end;if(a>n){r.containingNode=e;this.finalizeComment(r);t.splice(s,1)}else{if(a===n){r.trailingNode=e}break}}}finalizeComment(e){var t;const{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null){if(e.leadingNode!==null){setTrailingComments(e.leadingNode,r)}if(e.trailingNode!==null){setLeadingComments(e.trailingNode,r)}}else{const{containingNode:s,start:a}=e;if(this.input.charCodeAt(this.offsetToSourcePos(a)-1)===44){switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":adjustInnerComments(s,s.properties,e);break;case"CallExpression":case"OptionalCallExpression":adjustInnerComments(s,s.arguments,e);break;case"ImportExpression":adjustInnerComments(s,[s.source,(t=s.options)!=null?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":adjustInnerComments(s,s.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":adjustInnerComments(s,s.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":adjustInnerComments(s,s.specifiers,e);break;case"TSEnumDeclaration":{adjustInnerComments(s,s.members,e)}break;case"TSEnumBody":adjustInnerComments(s,s.members,e);break;default:{setInnerComments(s,r)}}}else{setInnerComments(s,r)}}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--){this.finalizeComment(e[t])}this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state;const{length:r}=t;if(r===0)return;const s=t[r-1];if(s.leadingNode===e){s.leadingNode=null}}takeSurroundingComments(e,t,r){const{commentStack:s}=this.state;const a=s.length;if(a===0)return;let n=a-1;for(;n>=0;n--){const a=s[n];const i=a.end;const o=a.start;if(o===r){a.leadingNode=e}else if(i===t){a.trailingNode=e}else if(i<t){break}}}}class State{constructor(){this.flags=1024;this.startIndex=void 0;this.curLine=void 0;this.lineStart=void 0;this.startLoc=void 0;this.endLoc=void 0;this.errors=[];this.potentialArrowAt=-1;this.noArrowAt=[];this.noArrowParamsConversionAt=[];this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};this.labels=[];this.commentsLen=0;this.commentStack=[];this.pos=0;this.type=140;this.value=null;this.start=0;this.end=0;this.lastTokEndLoc=null;this.lastTokStartLoc=null;this.context=[f.brace];this.firstInvalidTemplateEscapePos=null;this.strictErrors=new Map;this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){if(e)this.flags|=1;else this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:s,startColumn:a}){this.strict=e===false?false:e===true?true:t==="module";this.startIndex=r;this.curLine=s;this.lineStart=-a;this.startLoc=this.endLoc=new Position(s,a,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){if(e)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){if(e)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){if(e)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){if(e)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){if(e)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){if(e)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){if(e)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){if(e)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){if(e)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){if(e)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){if(e)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){if(e)this.flags|=4096;else this.flags&=-4097}curPosition(){return new Position(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const e=new State;e.flags=this.flags;e.startIndex=this.startIndex;e.curLine=this.curLine;e.lineStart=this.lineStart;e.startLoc=this.startLoc;e.endLoc=this.endLoc;e.errors=this.errors.slice();e.potentialArrowAt=this.potentialArrowAt;e.noArrowAt=this.noArrowAt.slice();e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice();e.topicContext=this.topicContext;e.labels=this.labels.slice();e.commentsLen=this.commentsLen;e.commentStack=this.commentStack.slice();e.pos=this.pos;e.type=this.type;e.value=this.value;e.start=this.start;e.end=this.end;e.lastTokEndLoc=this.lastTokEndLoc;e.lastTokStartLoc=this.lastTokStartLoc;e.context=this.context.slice();e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos;e.strictErrors=this.strictErrors;e.tokensLength=this.tokensLength;return e}}var Y=function isDigit(e){return e>=48&&e<=57};const Q={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])};const Z={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function readStringContents(e,t,r,s,a,n){const i=r;const o=s;const l=a;let c="";let u=null;let p=r;const{length:d}=t;for(;;){if(r>=d){n.unterminated(i,o,l);c+=t.slice(p,r);break}const f=t.charCodeAt(r);if(isStringEnd(e,f,t,r)){c+=t.slice(p,r);break}if(f===92){c+=t.slice(p,r);const i=readEscapedChar(t,r,s,a,e==="template",n);if(i.ch===null&&!u){u={pos:r,lineStart:s,curLine:a}}else{c+=i.ch}({pos:r,lineStart:s,curLine:a}=i);p=r}else if(f===8232||f===8233){++r;++a;s=r}else if(f===10||f===13){if(e==="template"){c+=t.slice(p,r)+"\n";++r;if(f===13&&t.charCodeAt(r)===10){++r}++a;p=s=r}else{n.unterminated(i,o,l)}}else{++r}}return{pos:r,str:c,firstInvalidLoc:u,lineStart:s,curLine:a,containsInvalid:!!u}}function isStringEnd(e,t,r,s){if(e==="template"){return t===96||t===36&&r.charCodeAt(s+1)===123}return t===(e==="double"?34:39)}function readEscapedChar(e,t,r,s,a,n){const i=!a;t++;const res=e=>({pos:t,ch:e,lineStart:r,curLine:s});const o=e.charCodeAt(t++);switch(o){case 110:return res("\n");case 114:return res("\r");case 120:{let a;({code:a,pos:t}=readHexChar(e,t,r,s,2,false,i,n));return res(a===null?null:String.fromCharCode(a))}case 117:{let a;({code:a,pos:t}=readCodePoint(e,t,r,s,i,n));return res(a===null?null:String.fromCodePoint(a))}case 116:return res("\t");case 98:return res("\b");case 118:return res("\v");case 102:return res("\f");case 13:if(e.charCodeAt(t)===10){++t}case 10:r=t;++s;case 8232:case 8233:return res("");case 56:case 57:if(a){return res(null)}else{n.strictNumericEscape(t-1,r,s)}default:if(o>=48&&o<=55){const i=t-1;const o=/^[0-7]+/.exec(e.slice(i,t+2));let l=o[0];let c=parseInt(l,8);if(c>255){l=l.slice(0,-1);c=parseInt(l,8)}t+=l.length-1;const u=e.charCodeAt(t);if(l!=="0"||u===56||u===57){if(a){return res(null)}else{n.strictNumericEscape(i,r,s)}}return res(String.fromCharCode(c))}return res(String.fromCharCode(o))}}function readHexChar(e,t,r,s,a,n,i,o){const l=t;let c;({n:c,pos:t}=readInt(e,t,r,s,16,a,n,false,o,!i));if(c===null){if(i){o.invalidEscapeSequence(l,r,s)}else{t=l-1}}return{code:c,pos:t}}function readInt(e,t,r,s,a,n,i,o,l,c){const u=t;const p=a===16?Q.hex:Q.decBinOct;const d=a===16?Z.hex:a===10?Z.dec:a===8?Z.oct:Z.bin;let f=false;let y=0;for(let u=0,h=n==null?Infinity:n;u<h;++u){const n=e.charCodeAt(t);let u;if(n===95&&o!=="bail"){const a=e.charCodeAt(t-1);const n=e.charCodeAt(t+1);if(!o){if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,s)}else if(Number.isNaN(n)||!d(n)||p.has(a)||p.has(n)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,s)}++t;continue}if(n>=97){u=n-97+10}else if(n>=65){u=n-65+10}else if(Y(n)){u=n-48}else{u=Infinity}if(u>=a){if(u<=9&&c){return{n:null,pos:t}}else if(u<=9&&l.invalidDigit(t,r,s,a)){u=0}else if(i){u=0;f=true}else{break}}++t;y=y*a+u}if(t===u||n!=null&&t-u!==n||f){return{n:null,pos:t}}return{n:y,pos:t}}function readCodePoint(e,t,r,s,a,n){const i=e.charCodeAt(t);let o;if(i===123){++t;({code:o,pos:t}=readHexChar(e,t,r,s,e.indexOf("}",t)-t,true,a,n));++t;if(o!==null&&o>1114111){if(a){n.invalidCodePoint(t,r,s)}else{return{code:null,pos:t}}}}else{({code:o,pos:t}=readHexChar(e,t,r,s,4,false,a,n))}return{code:o,pos:t}}function buildPosition(e,t,r){return new Position(r,e-t,e)}const ee=new Set([103,109,115,105,121,117,100,118]);class Token{constructor(e){const t=e.startIndex||0;this.type=e.type;this.value=e.value;this.start=t+e.start;this.end=t+e.end;this.loc=new SourceLocation(e.startLoc,e.endLoc)}}class Tokenizer extends CommentsParser{constructor(e,t){super();this.isLookahead=void 0;this.tokens=[];this.errorHandlers_readInt={invalidDigit:(e,t,r,s)=>{if(!(this.optionFlags&2048))return false;this.raise(p.InvalidDigit,buildPosition(e,t,r),{radix:s});return true},numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)};this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)});this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,buildPosition(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(p.UnterminatedString,buildPosition(e-1,t,r))}});this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(p.UnterminatedTemplate,buildPosition(e,t,r))}});this.state=new State;this.state.init(e);this.input=t;this.length=t.length;this.comments=[];this.isLookahead=false}pushToken(e){this.tokens.length=this.state.tokensLength;this.tokens.push(e);++this.state.tokensLength}next(){this.checkKeywordEscapes();if(this.optionFlags&256){this.pushToken(new Token(this.state))}this.state.lastTokEndLoc=this.state.endLoc;this.state.lastTokStartLoc=this.state.startLoc;this.nextToken()}eat(e){if(this.match(e)){this.next();return true}else{return false}}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e);this.isLookahead=true;this.nextToken();this.isLookahead=false;const t=this.state;this.state=e;return t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){z.lastIndex=e;return z.test(this.input)?z.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){J.lastIndex=e;return J.test(this.input)?J.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)===55296&&++e<this.input.length){const r=this.input.charCodeAt(e);if((r&64512)===56320){t=65536+((t&1023)<<10)+(r&1023)}}return t}setStrict(e){this.state.strict=e;if(e){this.state.strictErrors.forEach((([e,t])=>this.raise(e,t)));this.state.strictErrors.clear()}}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace();this.state.start=this.state.pos;if(!this.isLookahead)this.state.startLoc=this.state.curPosition();if(this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;if(!this.isLookahead)t=this.state.curPosition();const r=this.state.pos;const s=this.input.indexOf(e,r+2);if(s===-1){throw this.raise(p.UnterminatedComment,this.state.curPosition())}this.state.pos=s+e.length;G.lastIndex=r+2;while(G.test(this.input)&&G.lastIndex<=s){++this.state.curLine;this.state.lineStart=G.lastIndex}if(this.isLookahead)return;const a={type:"CommentBlock",value:this.input.slice(r+2,s),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(s+e.length),loc:new SourceLocation(t,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(a);return a}skipLineComment(e){const t=this.state.pos;let r;if(!this.isLookahead)r=this.state.curPosition();let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length){while(!isNewLine(s)&&++this.state.pos<this.length){s=this.input.charCodeAt(this.state.pos)}}if(this.isLookahead)return;const a=this.state.pos;const n=this.input.slice(t+e,a);const i={type:"CommentLine",value:n,start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(a),loc:new SourceLocation(r,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(i);return i}skipSpace(){const e=this.state.pos;const t=this.optionFlags&4096?[]:null;e:while(this.state.pos<this.length){const r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:if(this.input.charCodeAt(this.state.pos+1)===10){++this.state.pos}case 10:case 8232:case 8233:++this.state.pos;++this.state.curLine;this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{const e=this.skipBlockComment("*/");if(e!==undefined){this.addComment(e);t==null||t.push(e)}break}case 47:{const e=this.skipLineComment(2);if(e!==undefined){this.addComment(e);t==null||t.push(e)}break}default:break e}break;default:if(isWhitespace(r)){++this.state.pos}else if(r===45&&!this.inModule&&this.optionFlags&8192){const r=this.state.pos;if(this.input.charCodeAt(r+1)===45&&this.input.charCodeAt(r+2)===62&&(e===0||this.state.lineStart>e)){const e=this.skipLineComment(3);if(e!==undefined){this.addComment(e);t==null||t.push(e)}}else{break e}}else if(r===60&&!this.inModule&&this.optionFlags&8192){const e=this.state.pos;if(this.input.charCodeAt(e+1)===33&&this.input.charCodeAt(e+2)===45&&this.input.charCodeAt(e+3)===45){const e=this.skipLineComment(4);if(e!==undefined){this.addComment(e);t==null||t.push(e)}}else{break e}}else{break e}}}if((t==null?void 0:t.length)>0){const r=this.state.pos;const s={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(r),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,t){this.state.end=this.state.pos;this.state.endLoc=this.state.curPosition();const r=this.state.type;this.state.type=e;this.state.value=t;if(!this.isLookahead){this.updateContext(r)}}replaceToken(e){this.state.type=e;this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter()){return}const e=this.state.pos+1;const t=this.codePointAtPos(e);if(t>=48&&t<=57){throw this.raise(p.UnexpectedDigitAfterHash,this.state.curPosition())}if(t===123||t===91&&this.hasPlugin("recordAndTuple")){this.expectPlugin("recordAndTuple");if(this.getPluginOption("recordAndTuple","syntaxType")==="bar"){throw this.raise(t===123?p.RecordExpressionHashIncorrectStartSyntaxType:p.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;if(t===123){this.finishToken(7)}else{this.finishToken(1)}}else if(isIdentifierStart(t)){++this.state.pos;this.finishToken(139,this.readWord1(t))}else if(t===92){++this.state.pos;this.finishToken(139,this.readWord1())}else{this.finishOp(27,1)}}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(true);return}if(e===46&&this.input.charCodeAt(this.state.pos+2)===46){this.state.pos+=3;this.finishToken(21)}else{++this.state.pos;this.finishToken(16)}}readToken_slash(){const e=this.input.charCodeAt(this.state.pos+1);if(e===61){this.finishOp(31,2)}else{this.finishOp(56,1)}}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return false;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return false;const t=this.state.pos;this.state.pos+=1;while(!isNewLine(e)&&++this.state.pos<this.length){e=this.input.charCodeAt(this.state.pos)}const r=this.input.slice(t+2,this.state.pos);this.finishToken(28,r);return true}readToken_mult_modulo(e){let t=e===42?55:54;let r=1;let s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===42){r++;s=this.input.charCodeAt(this.state.pos+2);t=57}if(s===61&&!this.state.inType){r++;t=e===37?33:30}this.finishOp(t,r)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e){if(this.input.charCodeAt(this.state.pos+2)===61){this.finishOp(30,3)}else{this.finishOp(e===124?41:42,2)}return}if(e===124){if(t===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&t===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&t===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(4);return}}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){const e=this.input.charCodeAt(this.state.pos+1);if(e===61&&!this.state.inType){this.finishOp(32,2)}else if(e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2);const e=this.input.codePointAt(this.state.pos);if(e===94){this.unexpected()}}else{this.finishOp(44,1)}}readToken_atSign(){const e=this.input.charCodeAt(this.state.pos+1);if(e===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])){this.finishOp(38,2)}else{this.finishOp(26,1)}}readToken_plus_min(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}if(t===61){this.finishOp(30,2)}else{this.finishOp(53,1)}}readToken_lt(){const{pos:e}=this.state;const t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){const{pos:e}=this.state;const t=this.input.charCodeAt(e+1);if(t===62){const t=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+t)===61){this.finishOp(30,t+1);return}this.finishOp(52,t);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){const t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2;this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){const e=this.input.charCodeAt(this.state.pos+1);const t=this.input.charCodeAt(this.state.pos+2);if(e===63){if(t===61){this.finishOp(30,3)}else{this.finishOp(40,2)}}else if(e===46&&!(t>=48&&t<=57)){this.state.pos+=2;this.finishToken(18)}else{++this.state.pos;this.finishToken(17)}}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos;this.finishToken(10);return;case 41:++this.state.pos;this.finishToken(11);return;case 59:++this.state.pos;this.finishToken(13);return;case 44:++this.state.pos;this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(2)}else{++this.state.pos;this.finishToken(0)}return;case 93:++this.state.pos;this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar"){throw this.raise(p.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition())}this.state.pos+=2;this.finishToken(6)}else{++this.state.pos;this.finishToken(5)}return;case 125:++this.state.pos;this.finishToken(8);return;case 58:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58){this.finishOp(15,2)}else{++this.state.pos;this.finishToken(14)}return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(e===120||e===88){this.readRadixNumber(16);return}if(e===111||e===79){this.readRadixNumber(8);return}if(e===98||e===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(false);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(isIdentifierStart(e)){this.readWord(e);return}}throw this.raise(p.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t;this.finishToken(e,r)}readRegexp(){const e=this.state.startLoc;const t=this.state.start+1;let r,s;let{pos:a}=this.state;for(;;++a){if(a>=this.length){throw this.raise(p.UnterminatedRegExp,createPositionWithColumnOffset(e,1))}const t=this.input.charCodeAt(a);if(isNewLine(t)){throw this.raise(p.UnterminatedRegExp,createPositionWithColumnOffset(e,1))}if(r){r=false}else{if(t===91){s=true}else if(t===93&&s){s=false}else if(t===47&&!s){break}r=t===92}}const n=this.input.slice(t,a);++a;let i="";const nextPos=()=>createPositionWithColumnOffset(e,a+2-t);while(a<this.length){const e=this.codePointAtPos(a);const t=String.fromCharCode(e);if(ee.has(e)){if(e===118){if(i.includes("u")){this.raise(p.IncompatibleRegExpUVFlags,nextPos())}}else if(e===117){if(i.includes("v")){this.raise(p.IncompatibleRegExpUVFlags,nextPos())}}if(i.includes(t)){this.raise(p.DuplicateRegExpFlags,nextPos())}}else if(isIdentifierChar(e)||e===92){this.raise(p.MalformedRegExpFlags,nextPos())}else{break}++a;i+=t}this.state.pos=a;this.finishToken(138,{pattern:n,flags:i})}readInt(e,t,r=false,s=true){const{n:a,pos:n}=readInt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,s,this.errorHandlers_readInt,false);this.state.pos=n;return a}readRadixNumber(e){const t=this.state.pos;const r=this.state.curPosition();let s=false;this.state.pos+=2;const a=this.readInt(e);if(a==null){this.raise(p.InvalidDigit,createPositionWithColumnOffset(r,2),{radix:e})}const n=this.input.charCodeAt(this.state.pos);if(n===110){++this.state.pos;s=true}else if(n===109){throw this.raise(p.InvalidDecimal,r)}if(isIdentifierStart(this.codePointAtPos(this.state.pos))){throw this.raise(p.NumberIdentifier,this.state.curPosition())}if(s){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,e);return}this.finishToken(135,a)}readNumber(e){const t=this.state.pos;const r=this.state.curPosition();let s=false;let a=false;let n=false;let i=false;if(!e&&this.readInt(10)===null){this.raise(p.InvalidNumber,this.state.curPosition())}const o=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(o){const e=this.input.slice(t,this.state.pos);this.recordStrictModeErrors(p.StrictOctalLiteral,r);if(!this.state.strict){const t=e.indexOf("_");if(t>0){this.raise(p.ZeroDigitNumericSeparator,createPositionWithColumnOffset(r,t))}}i=o&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!i){++this.state.pos;this.readInt(10);s=true;l=this.input.charCodeAt(this.state.pos)}if((l===69||l===101)&&!i){l=this.input.charCodeAt(++this.state.pos);if(l===43||l===45){++this.state.pos}if(this.readInt(10)===null){this.raise(p.InvalidOrMissingExponent,r)}s=true;n=true;l=this.input.charCodeAt(this.state.pos)}if(l===110){if(s||o){this.raise(p.InvalidBigIntLiteral,r)}++this.state.pos;a=true}if(l===109){this.expectPlugin("decimal",this.state.curPosition());if(n||o){this.raise(p.InvalidDecimal,r)}++this.state.pos;var c=true}if(isIdentifierStart(this.codePointAtPos(this.state.pos))){throw this.raise(p.NumberIdentifier,this.state.curPosition())}const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(a){this.finishToken(136,u);return}if(c){this.finishToken(137,u);return}const d=i?parseInt(u,8):parseFloat(u);this.finishToken(135,d)}readCodePoint(e){const{code:t,pos:r}=readCodePoint(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);this.state.pos=r;return t}readString(e){const{str:t,pos:r,curLine:s,lineStart:a}=readStringContents(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1;this.state.lineStart=a;this.state.curLine=s;this.finishToken(134,t)}readTemplateContinuation(){if(!this.match(8)){this.unexpected(null,8)}this.state.pos--;this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos];const{str:t,firstInvalidLoc:r,pos:s,curLine:a,lineStart:n}=readStringContents("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1;this.state.lineStart=n;this.state.curLine=a;if(r){this.state.firstInvalidTemplateEscapePos=new Position(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))}if(this.input.codePointAt(s)===96){this.finishToken(24,r?null:e+t+"`")}else{this.state.pos++;this.finishToken(25,r?null:e+t+"${")}}recordStrictModeErrors(e,t){const r=t.index;if(this.state.strict&&!this.state.strictErrors.has(r)){this.raise(e,t)}else{this.state.strictErrors.set(r,[e,t])}}readWord1(e){this.state.containsEsc=false;let t="";const r=this.state.pos;let s=this.state.pos;if(e!==undefined){this.state.pos+=e<=65535?1:2}while(this.state.pos<this.length){const e=this.codePointAtPos(this.state.pos);if(isIdentifierChar(e)){this.state.pos+=e<=65535?1:2}else if(e===92){this.state.containsEsc=true;t+=this.input.slice(s,this.state.pos);const e=this.state.curPosition();const a=this.state.pos===r?isIdentifierStart:isIdentifierChar;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(p.MissingUnicodeEscape,this.state.curPosition());s=this.state.pos-1;continue}++this.state.pos;const n=this.readCodePoint(true);if(n!==null){if(!a(n)){this.raise(p.EscapedCharNotAnIdentifier,e)}t+=String.fromCodePoint(n)}s=this.state.pos}else{break}}return t+this.input.slice(s,this.state.pos)}readWord(e){const t=this.readWord1(e);const r=E.get(t);if(r!==undefined){this.finishToken(r,tokenLabelName(r))}else{this.finishToken(132,t)}}checkKeywordEscapes(){const{type:e}=this.state;if(tokenIsKeyword(e)&&this.state.containsEsc){this.raise(p.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:tokenLabelName(e)})}}raise(e,t,r={}){const s=t instanceof Position?t:t.loc.start;const a=e(s,r);if(!(this.optionFlags&2048))throw a;if(!this.isLookahead)this.state.errors.push(a);return a}raiseOverwrite(e,t,r={}){const s=t instanceof Position?t:t.loc.start;const a=s.index;const n=this.state.errors;for(let t=n.length-1;t>=0;t--){const i=n[t];if(i.loc.index===a){return n[t]=e(s,r)}if(i.loc.index<a)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(p.UnexpectedToken,e!=null?e:this.state.startLoc,{expected:t?tokenLabelName(t):null})}expectPlugin(e,t){if(this.hasPlugin(e)){return true}throw this.raise(p.MissingPlugin,t!=null?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e)))){throw this.raise(p.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}}errorBuilder(e){return(t,r,s)=>{this.raise(e,buildPosition(t,r,s))}}}class ClassScope{constructor(){this.privateNames=new Set;this.loneAccessors=new Map;this.undefinedPrivateNames=new Map}}class ClassScopeHandler{constructor(e){this.parser=void 0;this.stack=[];this.undefinedPrivateNames=new Map;this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ClassScope)}exit(){const e=this.stack.pop();const t=this.current();for(const[r,s]of Array.from(e.undefinedPrivateNames)){if(t){if(!t.undefinedPrivateNames.has(r)){t.undefinedPrivateNames.set(r,s)}}else{this.parser.raise(p.InvalidPrivateFieldResolution,s,{identifierName:r})}}}declarePrivateName(e,t,r){const{privateNames:s,loneAccessors:a,undefinedPrivateNames:n}=this.current();let i=s.has(e);if(t&3){const r=i&&a.get(e);if(r){const s=r&4;const n=t&4;const o=r&3;const l=t&3;i=o===l||s!==n;if(!i)a.delete(e)}else if(!i){a.set(e,t)}}if(i){this.parser.raise(p.PrivateNameRedeclaration,r,{identifierName:e})}s.add(e);n.delete(e)}usePrivateName(e,t){let r;for(r of this.stack){if(r.privateNames.has(e))return}if(r){r.undefinedPrivateNames.set(e,t)}else{this.parser.raise(p.InvalidPrivateFieldResolution,t,{identifierName:e})}}}class ExpressionScope{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class ArrowHeadParsingScope extends ExpressionScope{constructor(e){super(e);this.declarationErrors=new Map}recordDeclarationError(e,t){const r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class ExpressionScopeHandler{constructor(e){this.parser=void 0;this.stack=[new ExpressionScope];this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const r=t.loc.start;const{stack:s}=this;let a=s.length-1;let n=s[a];while(!n.isCertainlyParameterDeclaration()){if(n.canBeArrowParameterDeclaration()){n.recordDeclarationError(e,r)}else{return}n=s[--a]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){const{stack:r}=this;const s=r[r.length-1];const a=t.loc.start;if(s.isCertainlyParameterDeclaration()){this.parser.raise(e,a)}else if(s.canBeArrowParameterDeclaration()){s.recordDeclarationError(e,a)}else{return}}recordAsyncArrowParametersError(e){const{stack:t}=this;let r=t.length-1;let s=t[r];while(s.canBeArrowParameterDeclaration()){if(s.type===2){s.recordDeclarationError(p.AwaitBindingIdentifier,e)}s=t[--r]}}validateAsPattern(){const{stack:e}=this;const t=e[e.length-1];if(!t.canBeArrowParameterDeclaration())return;t.iterateErrors((([t,r])=>{this.parser.raise(t,r);let s=e.length-2;let a=e[s];while(a.canBeArrowParameterDeclaration()){a.clearDeclarationError(r.index);a=e[--s]}}))}}function newParameterDeclarationScope(){return new ExpressionScope(3)}function newArrowHeadScope(){return new ArrowHeadParsingScope(1)}function newAsyncArrowScope(){return new ArrowHeadParsingScope(2)}function newExpressionScope(){return new ExpressionScope}class UtilParser extends Tokenizer{addExtra(e,t,r,s=true){if(!e)return;let{extra:a}=e;if(a==null){a={};e.extra=a}if(s){a[t]=r}else{Object.defineProperty(a,t,{enumerable:s,value:r})}}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){const r=e+t.length;if(this.input.slice(e,r)===t){const e=this.input.charCodeAt(r);return!(isIdentifierChar(e)||(e&64512)===55296)}return false}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){if(this.isContextual(e)){this.next();return true}return false}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null){throw this.raise(t,this.state.startLoc)}this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return hasNewLine(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return hasNewLine(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=true){if(e?this.isLineTerminator():this.eat(13))return;this.raise(p.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){if(!this.eat(e)){this.unexpected(t,e)}}tryParse(e,t=this.state.clone()){const r={node:null};try{const s=e(((e=null)=>{r.node=e;throw r}));if(this.state.errors.length>t.errors.length){const e=this.state;this.state=t;this.state.tokensLength=e.tokensLength;return{node:s,error:e.errors[t.errors.length],thrown:false,aborted:false,failState:e}}return{node:s,error:null,thrown:false,aborted:false,failState:null}}catch(e){const s=this.state;this.state=t;if(e instanceof SyntaxError){return{node:null,error:e,thrown:true,aborted:false,failState:s}}if(e===r){return{node:r.node,error:null,thrown:false,aborted:true,failState:s}}throw e}}checkExpressionErrors(e,t){if(!e)return false;const{shorthandAssignLoc:r,doubleProtoLoc:s,privateKeyLoc:a,optionalParametersLoc:n}=e;const i=!!r||!!s||!!n||!!a;if(!t){return i}if(r!=null){this.raise(p.InvalidCoverInitializedName,r)}if(s!=null){this.raise(p.DuplicateProto,s)}if(a!=null){this.raise(p.UnexpectedPrivateField,a)}if(n!=null){this.unexpected(n)}}isLiteralPropertyName(){return tokenIsLiteralPropertyName(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){const t=this.state.labels;this.state.labels=[];const r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const s=this.inModule;this.inModule=e;const a=this.scope;const n=this.getScopeHandler();this.scope=new n(this,e);const i=this.prodParam;this.prodParam=new ProductionParameterHandler;const o=this.classScope;this.classScope=new ClassScopeHandler(this);const l=this.expressionScope;this.expressionScope=new ExpressionScopeHandler(this);return()=>{this.state.labels=t;this.exportedIdentifiers=r;this.inModule=s;this.scope=a;this.prodParam=i;this.classScope=o;this.expressionScope=l}}enterInitialScopes(){let e=0;if(this.inModule){e|=2}if(this.optionFlags&32){e|=1}this.scope.enter(1);this.prodParam.enter(e)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;if(t!==null){this.expectPlugin("destructuringPrivate",t)}}}class ExpressionErrors{constructor(){this.shorthandAssignLoc=null;this.doubleProtoLoc=null;this.privateKeyLoc=null;this.optionalParametersLoc=null}}class Node{constructor(e,t,r){this.type="";this.start=t;this.end=0;this.loc=new SourceLocation(r);if((e==null?void 0:e.optionFlags)&128)this.range=[t,0];if(e!=null&&e.filename)this.loc.filename=e.filename}}const te=Node.prototype;{te.__clone=function(){const e=new Node(undefined,this.start,this.loc.start);const t=Object.keys(this);for(let r=0,s=t.length;r<s;r++){const s=t[r];if(s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"){e[s]=this[s]}}return e}}class NodeUtils extends UtilParser{startNode(){const e=this.state.startLoc;return new Node(this,e.index,e)}startNodeAt(e){return new Node(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){e.type=t;e.end=r.index;e.loc.end=r;if(this.optionFlags&128)e.range[1]=r.index;if(this.optionFlags&4096){this.processComment(e)}return e}resetStartLocation(e,t){e.start=t.index;e.loc.start=t;if(this.optionFlags&128)e.range[0]=t.index}resetEndLocation(e,t=this.state.lastTokEndLoc){e.end=t.index;e.loc.end=t;if(this.optionFlags&128)e.range[1]=t.index}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){e.type=t;return e}cloneIdentifier(e){const{type:t,start:r,end:s,loc:a,range:n,name:i}=e;const o=Object.create(te);o.type=t;o.start=r;o.end=s;o.loc=a;o.range=n;o.name=i;if(e.extra)o.extra=e.extra;return o}cloneStringLiteral(e){const{type:t,start:r,end:s,loc:a,range:n,extra:i}=e;const o=Object.create(te);o.type=t;o.start=r;o.end=s;o.loc=a;o.range=n;o.extra=i;o.value=e.value;return o}}const unwrapParenthesizedExpression=e=>e.type==="ParenthesizedExpression"?unwrapParenthesizedExpression(e.expression):e;class LValParser extends NodeUtils{toAssignable(e,t=false){var r,s;let a=undefined;if(e.type==="ParenthesizedExpression"||(r=e.extra)!=null&&r.parenthesized){a=unwrapParenthesizedExpression(e);if(t){if(a.type==="Identifier"){this.expressionScope.recordArrowParameterBindingError(p.InvalidParenthesizedAssignment,e)}else if(a.type!=="MemberExpression"&&!this.isOptionalMemberExpression(a)){this.raise(p.InvalidParenthesizedAssignment,e)}}else{this.raise(p.InvalidParenthesizedAssignment,e)}}switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let r=0,s=e.properties.length,a=s-1;r<s;r++){var n;const s=e.properties[r];const i=r===a;this.toAssignableObjectExpressionProp(s,i,t);if(i&&s.type==="RestElement"&&(n=e.extra)!=null&&n.trailingCommaLoc){this.raise(p.RestTrailingComma,e.extra.trailingCommaLoc)}}break;case"ObjectProperty":{const{key:r,value:s}=e;if(this.isPrivateName(r)){this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start)}this.toAssignable(s,t);break}case"SpreadElement":{throw new Error("Internal @babel/parser error (this is a bug, please report it)."+" SpreadElement should be converted by .toAssignable's caller.")}case"ArrayExpression":this.castNodeTo(e,"ArrayPattern");this.toAssignableList(e.elements,(s=e.extra)==null?void 0:s.trailingCommaLoc,t);break;case"AssignmentExpression":if(e.operator!=="="){this.raise(p.MissingEqInAssignment,e.left.loc.end)}this.castNodeTo(e,"AssignmentPattern");delete e.operator;this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(a,t);break}}toAssignableObjectExpressionProp(e,t,r){if(e.type==="ObjectMethod"){this.raise(e.kind==="get"||e.kind==="set"?p.PatternHasAccessor:p.PatternHasMethod,e.key)}else if(e.type==="SpreadElement"){this.castNodeTo(e,"RestElement");const s=e.argument;this.checkToRestConversion(s,false);this.toAssignable(s,r);if(!t){this.raise(p.RestTrailingComma,e)}}else{this.toAssignable(e,r)}}toAssignableList(e,t,r){const s=e.length-1;for(let a=0;a<=s;a++){const n=e[a];if(!n)continue;this.toAssignableListItem(e,a,r);if(n.type==="RestElement"){if(a<s){this.raise(p.RestTrailingComma,n)}else if(t){this.raise(p.RestTrailingComma,t)}}}}toAssignableListItem(e,t,r){const s=e[t];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");const e=s.argument;this.checkToRestConversion(e,true);this.toAssignable(e,r)}else{this.toAssignable(s,r)}}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return true;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every(((e,r)=>e.type!=="ObjectMethod"&&(r===t||e.type!=="SpreadElement")&&this.isAssignable(e)))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>e===null||this.isAssignable(e)));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return false}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e){if((t==null?void 0:t.type)==="ArrayExpression"){this.toReferencedListDeep(t.elements)}}}parseSpread(e){const t=this.startNode();this.next();t.argument=this.parseMaybeAssignAllowIn(e,undefined);return this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();this.next();e.argument=this.parseBindingAtom();return this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();this.next();e.elements=this.parseBindingList(3,93,1);return this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,true)}return this.parseIdentifier()}parseBindingList(e,t,r){const s=r&1;const a=[];let n=true;while(!this.eat(e)){if(n){n=false}else{this.expect(12)}if(s&&this.match(12)){a.push(null)}else if(this.eat(e)){break}else if(this.match(21)){let s=this.parseRestBinding();if(this.hasPlugin("flow")||r&2){s=this.parseFunctionParamType(s)}a.push(s);if(!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];if(r&2){if(this.match(26)&&this.hasPlugin("decorators")){this.raise(p.UnsupportedParameterDecorator,this.state.startLoc)}while(this.match(26)){e.push(this.parseDecorator())}}a.push(this.parseBindingElement(r,e))}}return a}parseBindingRestProperty(e){this.next();e.argument=this.parseIdentifier();this.checkCommaAfterRest(125);return this.finishNode(e,"RestElement")}parseBindingProperty(){const{type:e,startLoc:t}=this.state;if(e===21){return this.parseBindingRestProperty(this.startNode())}const r=this.startNode();if(e===139){this.expectPlugin("destructuringPrivate",t);this.classScope.usePrivateName(this.state.value,t);r.key=this.parsePrivateName()}else{this.parsePropertyName(r)}r.method=false;return this.parseObjPropValue(r,t,false,false,true,false)}parseBindingElement(e,t){const r=this.parseMaybeDefault();if(this.hasPlugin("flow")||e&2){this.parseFunctionParamType(r)}if(t.length){r.decorators=t;this.resetStartLocationFromNode(r,t[0])}const s=this.parseMaybeDefault(r.loc.start,r);return s}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){e!=null?e:e=this.state.startLoc;t=t!=null?t:this.parseBindingAtom();if(!this.eat(29))return t;const r=this.startNodeAt(e);r.left=t;r.right=this.parseMaybeAssignAllowIn();return this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,r){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return false}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,t,r=64,s=false,a=false,n=false){var i;const o=e.type;if(this.isObjectMethod(e))return;const l=this.isOptionalMemberExpression(e);if(l||o==="MemberExpression"){if(l){this.expectPlugin("optionalChainingAssign",e.loc.start);if(t.type!=="AssignmentExpression"){this.raise(p.InvalidLhsOptionalChaining,e,{ancestor:t})}}if(r!==64){this.raise(p.InvalidPropertyBindingPattern,e)}return}if(o==="Identifier"){this.checkIdentifier(e,r,a);const{name:t}=e;if(s){if(s.has(t)){this.raise(p.ParamDupe,e)}else{s.add(t)}}return}const c=this.isValidLVal(o,!(n||(i=e.extra)!=null&&i.parenthesized)&&t.type==="AssignmentExpression",r);if(c===true)return;if(c===false){const s=r===64?p.InvalidLhs:p.InvalidLhsBinding;this.raise(s,e,{ancestor:t});return}let u,d;if(typeof c==="string"){u=c;d=o==="ParenthesizedExpression"}else{[u,d]=c}const f=o==="ArrayPattern"||o==="ObjectPattern"?{type:o}:t;const y=e[u];if(Array.isArray(y)){for(const e of y){if(e){this.checkLVal(e,f,r,s,a,d)}}}else if(y){this.checkLVal(y,f,r,s,a,d)}}checkIdentifier(e,t,r=false){if(this.state.strict&&(r?isStrictBindReservedWord(e.name,this.inModule):isStrictBindOnlyReservedWord(e.name))){if(t===64){this.raise(p.StrictEvalArguments,e,{referenceName:e.name})}else{this.raise(p.StrictEvalArgumentsBinding,e,{bindingName:e.name})}}if(t&8192&&e.name==="let"){this.raise(p.LetInLexicalBinding,e)}if(!(t&64)){this.declareNameFromIdentifier(e,t)}}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(p.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){if(!this.match(12)){return false}this.raise(this.lookaheadCharCode()===e?p.RestTrailingComma:p.ElementAfterRest,this.state.startLoc);return true}}function nonNull(e){if(e==null){throw new Error(`Unexpected ${e} value.`)}return e}function assert(e){if(!e){throw new Error("Assert fail")}}const re=ParseErrorEnum`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. "+"You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function keywordTypeFromName(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return undefined}}function tsIsAccessModifier(e){return e==="private"||e==="public"||e==="protected"}function tsIsVarianceAnnotations(e){return e==="in"||e==="out"}var typescript=e=>class TypeScriptParserMixin extends e{constructor(...e){super(...e);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:re.InvalidModifierOnTypeParameter});this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:re.InvalidModifierOnTypeParameterPositions});this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:re.InvalidModifierOnTypeParameter})}getScopeHandler(){return TypeScriptScopeHandler}tsIsIdentifier(){return tokenIsIdentifier(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){this.next();if(this.hasPrecedingLineBreak()){return false}return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106)){this.next();return this.tsTokenCanFollowModifier()}return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,r){if(!tokenIsIdentifier(this.state.type)&&this.state.type!==58&&this.state.type!==75){return undefined}const s=this.state.value;if(e.includes(s)){if(r&&this.match(106)){return undefined}if(t&&this.tsIsStartOfStaticBlocks()){return undefined}if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))){return s}}return undefined}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:r,errorTemplate:s=re.InvalidModifierOnTypeMember},a){const enforceOrder=(e,t,r,s)=>{if(t===r&&a[s]){this.raise(re.InvalidModifiersOrder,e,{orderedModifiers:[r,s]})}};const incompatible=(e,t,r,s)=>{if(a[r]&&t===s||a[s]&&t===r){this.raise(re.IncompatibleModifiers,e,{modifiers:[r,s]})}};for(;;){const{startLoc:n}=this.state;const i=this.tsParseModifier(e.concat(t!=null?t:[]),r,a.static);if(!i)break;if(tsIsAccessModifier(i)){if(a.accessibility){this.raise(re.DuplicateAccessibilityModifier,n,{modifier:i})}else{enforceOrder(n,i,i,"override");enforceOrder(n,i,i,"static");enforceOrder(n,i,i,"readonly");a.accessibility=i}}else if(tsIsVarianceAnnotations(i)){if(a[i]){this.raise(re.DuplicateModifier,n,{modifier:i})}a[i]=true;enforceOrder(n,i,"in","out")}else{if(hasOwnProperty.call(a,i)){this.raise(re.DuplicateModifier,n,{modifier:i})}else{enforceOrder(n,i,"static","readonly");enforceOrder(n,i,"static","override");enforceOrder(n,i,"override","readonly");enforceOrder(n,i,"abstract","override");incompatible(n,i,"declare","override");incompatible(n,i,"static","abstract")}a[i]=true}if(t!=null&&t.includes(i)){this.raise(s,n,{modifier:i})}}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const r=[];while(!this.tsIsListTerminator(e)){r.push(t())}return r}tsParseDelimitedList(e,t,r){return nonNull(this.tsParseDelimitedListWorker(e,t,true,r))}tsParseDelimitedListWorker(e,t,r,s){const a=[];let n=-1;for(;;){if(this.tsIsListTerminator(e)){break}n=-1;const s=t();if(s==null){return undefined}a.push(s);if(this.eat(12)){n=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(e)){break}if(r){this.expect(12)}return undefined}if(s){s.value=n}return a}tsParseBracketedList(e,t,r,s,a){if(!s){if(r){this.expect(0)}else{this.expect(47)}}const n=this.tsParseDelimitedList(e,t,a);if(r){this.expect(3)}else{this.expect(48)}return n}tsParseImportType(){const e=this.startNode();this.expect(83);this.expect(10);if(!this.match(134)){this.raise(re.UnsupportedImportTypeArgument,this.state.startLoc);{e.argument=super.parseExprAtom()}}else{{e.argument=this.parseStringLiteral(this.state.value)}}if(this.eat(12)){e.options=this.tsParseImportTypeOptions()}else{e.options=null}this.expect(11);if(this.eat(16)){e.qualifier=this.tsParseEntityName(1|2)}if(this.match(47)){{e.typeParameters=this.tsParseTypeArguments()}}return this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){const e=this.startNode();this.expect(5);const t=this.startNode();if(this.isContextual(76)){t.method=false;t.key=this.parseIdentifier(true);t.computed=false;t.shorthand=false}else{this.unexpected(null,76)}this.expect(14);t.value=this.tsParseImportTypeWithPropertyValue();e.properties=[this.finishObjectProperty(t)];this.expect(8);return this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){const e=this.startNode();const t=[];this.expect(5);while(!this.match(8)){const e=this.state.type;if(tokenIsIdentifier(e)||e===134){t.push(super.parsePropertyDefinition(null))}else{this.unexpected()}this.eat(12)}e.properties=t;this.next();return this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let t;if(e&1&&this.match(78)){if(e&2){t=this.parseIdentifier(true)}else{const e=this.startNode();this.next();t=this.finishNode(e,"ThisExpression")}}else{t=this.parseIdentifier(!!(e&1))}while(this.eat(16)){const r=this.startNodeAtNode(t);r.left=t;r.right=this.parseIdentifier(!!(e&1));t=this.finishNode(r,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();e.typeName=this.tsParseEntityName(1);if(!this.hasPrecedingLineBreak()&&this.match(47)){{e.typeParameters=this.tsParseTypeArguments()}}return this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);t.parameterName=e;t.typeAnnotation=this.tsParseTypeAnnotation(false);t.asserts=false;return this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();this.next();return this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();this.expect(87);if(this.match(83)){e.exprName=this.tsParseImportType()}else{{e.exprName=this.tsParseEntityName(1|2)}}if(!this.hasPrecedingLineBreak()&&this.match(47)){{e.typeParameters=this.tsParseTypeArguments()}}return this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();e(t);t.name=this.tsParseTypeParameterName();t.constraint=this.tsEatThenParseType(81);t.default=this.tsEatThenParseType(29);return this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47)){return this.tsParseTypeParameters(e)}}tsParseTypeParameters(e){const t=this.startNode();if(this.match(47)||this.match(143)){this.next()}else{this.unexpected()}const r={value:-1};t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),false,true,r);if(t.params.length===0){this.raise(re.EmptyTypeParameters,t)}if(r.value!==-1){this.addExtra(t,"trailingComma",r.value)}return this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const r=e===19;const s="parameters";const a="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier);this.expect(10);t[s]=this.tsParseBindingListForSignature();if(r){t[a]=this.tsParseTypeOrTypePredicateAnnotation(e)}else if(this.match(e)){t[a]=this.tsParseTypeOrTypePredicateAnnotation(e)}}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;if(e==="AssignmentPattern"||e==="TSParameterProperty"){this.raise(re.UnsupportedSignatureParameterKind,t,{type:e})}}return e}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator()){this.expect(13)}}tsParseSignatureMember(e,t){this.tsFillSignature(14,t);this.tsParseTypeMemberSemicolon();return this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){this.next();if(tokenIsIdentifier(this.state.type)){this.next();return this.match(14)}return false}tsTryParseIndexSignature(e){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))){return}this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation();this.resetEndLocation(t);this.expect(3);e.parameters=[t];const r=this.tsTryParseTypeAnnotation();if(r)e.typeAnnotation=r;this.tsParseTypeMemberSemicolon();return this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17))e.optional=true;if(this.match(10)||this.match(47)){if(t){this.raise(re.ReadonlyForMethodSignature,e)}const r=e;if(r.kind&&this.match(47)){this.raise(re.AccessorCannotHaveTypeParameters,this.state.curPosition())}this.tsFillSignature(14,r);this.tsParseTypeMemberSemicolon();const s="parameters";const a="typeAnnotation";if(r.kind==="get"){if(r[s].length>0){this.raise(p.BadGetterArity,this.state.curPosition());if(this.isThisParam(r[s][0])){this.raise(re.AccessorCannotDeclareThisParameter,this.state.curPosition())}}}else if(r.kind==="set"){if(r[s].length!==1){this.raise(p.BadSetterArity,this.state.curPosition())}else{const e=r[s][0];if(this.isThisParam(e)){this.raise(re.AccessorCannotDeclareThisParameter,this.state.curPosition())}if(e.type==="Identifier"&&e.optional){this.raise(re.SetAccessorCannotHaveOptionalParameter,this.state.curPosition())}if(e.type==="RestElement"){this.raise(re.SetAccessorCannotHaveRestParameter,this.state.curPosition())}}if(r[a]){this.raise(re.SetAccessorCannotHaveReturnType,r[a])}}else{r.kind="method"}return this.finishNode(r,"TSMethodSignature")}else{const r=e;if(t)r.readonly=true;const s=this.tsTryParseTypeAnnotation();if(s)r.typeAnnotation=s;this.tsParseTypeMemberSemicolon();return this.finishNode(r,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47)){return this.tsParseSignatureMember("TSCallSignatureDeclaration",e)}if(this.match(77)){const t=this.startNode();this.next();if(this.match(10)||this.match(47)){return this.tsParseSignatureMember("TSConstructSignatureDeclaration",e)}else{e.key=this.createIdentifier(t,"new");return this.tsParsePropertyOrMethodSignature(e,false)}}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);const t=this.tsTryParseIndexSignature(e);if(t){return t}super.parsePropertyName(e);if(!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.tsTokenCanFollowModifier()){e.kind=e.key.name;super.parsePropertyName(e);if(!this.match(10)&&!this.match(47)){this.unexpected(null,10)}}return this.tsParsePropertyOrMethodSignature(e,!!e.readonly)}tsParseTypeLiteral(){const e=this.startNode();e.members=this.tsParseObjectTypeMembers();return this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));this.expect(8);return e}tsIsStartOfMappedType(){this.next();if(this.eat(53)){return this.isContextual(122)}if(this.isContextual(122)){this.next()}if(!this.match(0)){return false}this.next();if(!this.tsIsIdentifier()){return false}this.next();return this.match(58)}tsParseMappedType(){const e=this.startNode();this.expect(5);if(this.match(53)){e.readonly=this.state.value;this.next();this.expectContextual(122)}else if(this.eatContextual(122)){e.readonly=true}this.expect(0);{const t=this.startNode();t.name=this.tsParseTypeParameterName();t.constraint=this.tsExpectThenParseType(58);e.typeParameter=this.finishNode(t,"TSTypeParameter")}e.nameType=this.eatContextual(93)?this.tsParseType():null;this.expect(3);if(this.match(53)){e.optional=this.state.value;this.next();this.expect(17)}else if(this.eat(17)){e.optional=true}e.typeAnnotation=this.tsTryParseType();this.semicolon();this.expect(8);return this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),true,false);let t=false;e.elementTypes.forEach((e=>{const{type:r}=e;if(t&&r!=="TSRestType"&&r!=="TSOptionalType"&&!(r==="TSNamedTupleMember"&&e.optional)){this.raise(re.OptionalTypeBeforeRequired,e)}t||(t=r==="TSNamedTupleMember"&&e.optional||r==="TSOptionalType")}));return this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const e=this.state.startLoc;const t=this.eat(21);const{startLoc:r}=this.state;let s;let a;let n;let i;const o=tokenIsKeywordOrIdentifier(this.state.type);const l=o?this.lookaheadCharCode():null;if(l===58){s=true;n=false;a=this.parseIdentifier(true);this.expect(14);i=this.tsParseType()}else if(l===63){n=true;const e=this.state.value;const t=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58){s=true;a=this.createIdentifier(this.startNodeAt(r),e);this.expect(17);this.expect(14);i=this.tsParseType()}else{s=false;i=t;this.expect(17)}}else{i=this.tsParseType();n=this.eat(17);s=this.eat(14)}if(s){let e;if(a){e=this.startNodeAt(r);e.optional=n;e.label=a;e.elementType=i;if(this.eat(17)){e.optional=true;this.raise(re.TupleOptionalAfterType,this.state.lastTokStartLoc)}}else{e=this.startNodeAt(r);e.optional=n;this.raise(re.InvalidTupleMemberLabel,i);e.label=i;e.elementType=this.tsParseType()}i=this.finishNode(e,"TSNamedTupleMember")}else if(n){const e=this.startNodeAt(r);e.typeAnnotation=i;i=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=i;i=this.finishNode(t,"TSRestType")}return i}tsParseParenthesizedType(){const e=this.startNode();this.expect(10);e.typeAnnotation=this.tsParseType();this.expect(11);return this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const r=this.startNode();if(e==="TSConstructorType"){r.abstract=!!t;if(t)this.next();this.next()}this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r)));return this.finishNode(r,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){{const e=this.startNode();e.literal=super.parseTemplate(false);return this.finishNode(e,"TSLiteralType")}}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak()){return this.tsParseThisTypePredicate(e)}else{return e}}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){const e=this.startNode();const t=this.lookahead();if(t.type!==135&&t.type!==136){this.unexpected()}e.literal=this.parseMaybeUnary();return this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(tokenIsIdentifier(e)||e===88||e===84){const t=e===88?"TSVoidKeyword":e===84?"TSNullKeyword":keywordTypeFromName(this.state.value);if(t!==undefined&&this.lookaheadCharCode()!==46){const e=this.startNode();this.next();return this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:e}=this.state;let t=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0)){if(this.match(3)){const r=this.startNodeAt(e);r.elementType=t;this.expect(3);t=this.finishNode(r,"TSArrayType")}else{const r=this.startNodeAt(e);r.objectType=t;r.indexType=this.tsParseType();this.expect(3);t=this.finishNode(r,"TSIndexedAccessType")}}return t}tsParseTypeOperator(){const e=this.startNode();const t=this.state.value;this.next();e.operator=t;e.typeAnnotation=this.tsParseTypeOperatorOrHigher();if(t==="readonly"){this.tsCheckTypeAnnotationForReadOnly(e)}return this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(re.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();t.name=this.tsParseTypeParameterName();t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType()));e.typeParameter=this.finishNode(t,"TSTypeParameter");return this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17)){return e}}}tsParseTypeOperatorOrHigher(){const e=tokenIsTSTypeOperator(this.state.type)&&!this.state.containsEsc;return e?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,r){const s=this.startNode();const a=this.eat(r);const n=[];do{n.push(t())}while(this.eat(r));if(n.length===1&&!a){return n[0]}s.types=n;return this.finishNode(s,e)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47)){return true}return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(tokenIsIdentifier(this.state.type)||this.match(78)){this.next();return true}if(this.match(5)){const{errors:e}=this.state;const t=e.length;try{this.parseObjectLike(8,true);return e.length===t}catch(e){return false}}if(this.match(0)){this.next();const{errors:e}=this.state;const t=e.length;try{super.parseBindingList(3,93,1);return e.length===t}catch(e){return false}}return false}tsIsUnambiguouslyStartOfFunctionType(){this.next();if(this.match(11)||this.match(21)){return true}if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29)){return true}if(this.match(11)){this.next();if(this.match(19)){return true}}}return false}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{const t=this.startNode();this.expect(e);const r=this.startNode();const s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();if(e.type==="TSThisType"){r.parameterName=e;r.asserts=true;r.typeAnnotation=null;e=this.finishNode(r,"TSTypePredicate")}else{this.resetStartLocationFromNode(e,r);e.asserts=true}t.typeAnnotation=e;return this.finishNode(t,"TSTypeAnnotation")}const a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a){if(!s){return this.tsParseTypeAnnotation(false,t)}r.parameterName=this.parseIdentifier();r.asserts=s;r.typeAnnotation=null;t.typeAnnotation=this.finishNode(r,"TSTypePredicate");return this.finishNode(t,"TSTypeAnnotation")}const n=this.tsParseTypeAnnotation(false);r.parameterName=a;r.typeAnnotation=n;r.asserts=s;t.typeAnnotation=this.finishNode(r,"TSTypePredicate");return this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14)){return this.tsParseTypeOrTypePredicateAnnotation(14)}}tsTryParseTypeAnnotation(){if(this.match(14)){return this.tsParseTypeAnnotation()}}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak()){this.next();return e}}tsParseTypePredicateAsserts(){if(this.state.type!==109){return false}const e=this.state.containsEsc;this.next();if(!tokenIsIdentifier(this.state.type)&&!this.match(78)){return false}if(e){this.raise(p.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"})}return true}tsParseTypeAnnotation(e=true,t=this.startNode()){this.tsInType((()=>{if(e)this.expect(14);t.typeAnnotation=this.tsParseType()}));return this.finishNode(t,"TSTypeAnnotation")}tsParseType(){assert(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81)){return e}const t=this.startNodeAtNode(e);t.checkType=e;t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType()));this.expect(17);t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType()));this.expect(14);t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType()));return this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType()){return this.tsParseFunctionOrConstructorType("TSFunctionType")}if(this.match(77)){return this.tsParseFunctionOrConstructorType("TSConstructorType")}else if(this.isAbstractConstructorSignature()){return this.tsParseFunctionOrConstructorType("TSConstructorType",true)}return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike")){this.raise(re.ReservedTypeAssertion,this.state.startLoc)}const e=this.startNode();e.typeAnnotation=this.tsInType((()=>{this.next();return this.match(75)?this.tsParseTypeReference():this.tsParseType()}));this.expect(48);e.expression=this.parseMaybeUnary();return this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc;const r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{{const e=this.startNode();e.expression=this.tsParseEntityName(1|2);if(this.match(47)){e.typeParameters=this.tsParseTypeArguments()}return this.finishNode(e,"TSExpressionWithTypeArguments")}}));if(!r.length){this.raise(re.EmptyHeritageClauseType,t,{token:e})}return r}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129);if(t.declare)e.declare=true;if(tokenIsIdentifier(this.state.type)){e.id=this.parseIdentifier();this.checkIdentifier(e.id,130)}else{e.id=null;this.raise(re.MissingInterfaceName,this.state.startLoc)}e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(this.eat(81)){e.extends=this.tsParseHeritageClause("extends")}const r=this.startNode();r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this));e.body=this.finishNode(r,"TSInterfaceBody");return this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){e.id=this.parseIdentifier();this.checkIdentifier(e.id,2);e.typeAnnotation=this.tsInType((()=>{e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers);this.expect(29);if(this.isContextual(114)&&this.lookahead().type!==16){const e=this.startNode();this.next();return this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}));this.semicolon();return this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()!==f.brace){const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}else{return e()}}tsInType(e){const t=this.state.inType;this.state.inType=true;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=true;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=false;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e)){return this.tsNextThenParseType()}}tsExpectThenParseType(e){return this.tsInType((()=>{this.expect(e);return this.tsParseType()}))}tsNextThenParseType(){return this.tsInType((()=>{this.next();return this.tsParseType()}))}tsParseEnumMember(){const e=this.startNode();e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(true);if(this.eat(29)){e.initializer=super.parseMaybeAssignAllowIn()}return this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){if(t.const)e.const=true;if(t.declare)e.declare=true;this.expectContextual(126);e.id=this.parseIdentifier();this.checkIdentifier(e.id,e.const?8971:8459);{this.expect(5);e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this));this.expect(8)}return this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){const e=this.startNode();this.expect(5);e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this));this.expect(8);return this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){const e=this.startNode();this.scope.enter(0);this.expect(5);super.parseBlockOrModuleBlockBody(e.body=[],undefined,true,8);this.scope.exit();return this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=false){e.id=this.parseIdentifier();if(!t){this.checkIdentifier(e.id,1024)}if(this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,true);e.body=t}else{this.scope.enter(512);this.prodParam.enter(0);e.body=this.tsParseModuleBlock();this.prodParam.exit();this.scope.exit()}return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){if(this.isContextual(112)){e.kind="global";{e.global=true}e.id=this.parseIdentifier()}else if(this.match(134)){e.kind="module";e.id=super.parseStringLiteral(this.state.value)}else{this.unexpected()}if(this.match(5)){this.scope.enter(512);this.prodParam.enter(0);e.body=this.tsParseModuleBlock();this.prodParam.exit();this.scope.exit()}else{this.semicolon()}return this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,r){{e.isExport=r||false}e.id=t||this.parseIdentifier();this.checkIdentifier(e.id,4096);this.expect(29);const s=this.tsParseModuleReference();if(e.importKind==="type"&&s.type!=="TSExternalModuleReference"){this.raise(re.ImportAliasHasImportType,s)}e.moduleReference=s;this.semicolon();return this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const e=this.startNode();this.expectContextual(119);this.expect(10);if(!this.match(134)){this.unexpected()}e.expression=super.parseExprAtom();this.expect(11);this.sawUnambiguousESM=true;return this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone();const r=e();this.state=t;return r}tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(t.aborted||!t.node)return;if(t.error)this.state=t.failState;return t.node}tsTryParse(e){const t=this.state.clone();const r=e();if(r!==undefined&&r!==false){return r}this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator()){return}const t=this.state.type;return this.tsInAmbientContext((()=>{switch(t){case 68:e.declare=true;return super.parseFunctionStatement(e,false,false);case 80:e.declare=true;return this.parseClass(e,true,false);case 126:return this.tsParseEnumDeclaration(e,{declare:true});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc){return}case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum")){e.declare=true;return this.parseVarStatement(e,this.state.value,true)}this.expect(75);return this.tsParseEnumDeclaration(e,{const:true,declare:true});case 107:if(this.hasPlugin("explicitResourceManagement")&&this.isUsing()){this.raise(re.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare");e.declare=true;return this.parseVarStatement(e,"using",true)}break;case 96:if(this.hasPlugin("explicitResourceManagement")&&this.isAwaitUsing()){this.raise(re.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare");e.declare=true;this.next();return this.parseVarStatement(e,"await using",true)}break;case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:true});if(t)return t}default:if(tokenIsIdentifier(t)){return this.tsParseDeclaration(e,this.state.value,true,null)}}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,true,null)}tsParseExpressionStatement(e,t,r){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);if(t){t.declare=true}return t}case"global":if(this.match(5)){this.scope.enter(512);this.prodParam.enter(0);const r=e;r.kind="global";{e.global=true}r.id=t;r.body=this.tsParseModuleBlock();this.scope.exit();this.prodParam.exit();return this.finishNode(r,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,false,r)}}tsParseDeclaration(e,t,r,s){switch(t){case"abstract":if(this.tsCheckLineTerminator(r)&&(this.match(80)||tokenIsIdentifier(this.state.type))){return this.tsParseAbstractDeclaration(e,s)}break;case"module":if(this.tsCheckLineTerminator(r)){if(this.match(134)){return this.tsParseAmbientExternalModuleDeclaration(e)}else if(tokenIsIdentifier(this.state.type)){e.kind="module";return this.tsParseModuleOrNamespaceDeclaration(e)}}break;case"namespace":if(this.tsCheckLineTerminator(r)&&tokenIsIdentifier(this.state.type)){e.kind="namespace";return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"type":if(this.tsCheckLineTerminator(r)&&tokenIsIdentifier(this.state.type)){return this.tsParseTypeAliasDeclaration(e)}break}}tsCheckLineTerminator(e){if(e){if(this.hasFollowingLineBreak())return false;this.next();return true}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=true;const r=this.tsTryParseAndCatch((()=>{const t=this.startNodeAt(e);t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier);super.parseFunctionParams(t);t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation();this.expect(19);return t}));this.state.maybeInArrowParameters=t;if(!r)return;return super.parseArrowExpression(r,null,true)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();e.params=this.tsInType((()=>this.tsInTopLevelContext((()=>{this.expect(47);return this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))}))));if(e.params.length===0){this.raise(re.EmptyTypeArguments,e)}else if(!this.state.inType&&this.curContext()===f.brace){this.reScan_lt_gt()}this.expect(48);return this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return tokenIsTSDeclarationStart(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return false;return super.isExportDefaultSpecifier()}parseBindingElement(e,t){const r=t.length?t[0].loc.start:this.state.startLoc;const s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);const a=s.accessibility;const n=s.override;const i=s.readonly;if(!(e&4)&&(a||i||n)){this.raise(re.UnexpectedParameterModifier,r)}const o=this.parseMaybeDefault();if(e&2){this.parseFunctionParamType(o)}const l=this.parseMaybeDefault(o.loc.start,o);if(a||i||n){const e=this.startNodeAt(r);if(t.length){e.decorators=t}if(a)e.accessibility=a;if(i)e.readonly=i;if(n)e.override=n;if(l.type!=="Identifier"&&l.type!=="AssignmentPattern"){this.raise(re.UnsupportedParameterPropertyKind,e)}e.parameter=l;return this.finishNode(e,"TSParameterProperty")}if(t.length){o.decorators=t}return l}isSimpleParameter(e){return e.type==="TSParameterProperty"&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params){if(t.type!=="Identifier"&&t.optional&&!this.state.isAmbientContext){this.raise(re.PatternIsOptional,t)}}}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r);this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,r=false){if(this.match(14)){e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14)}const s=t==="FunctionDeclaration"?"TSDeclareFunction":t==="ClassMethod"||t==="ClassPrivateMethod"?"TSDeclareMethod":undefined;if(s&&!this.match(5)&&this.isLineTerminator()){return this.finishNode(e,s)}if(s==="TSDeclareFunction"&&this.state.isAmbientContext){this.raise(re.DeclareFunctionHasImplementation,e);if(e.declare){return super.parseFunctionBodyAndFinish(e,s,r)}}this.tsDisallowOptionalPattern(e);return super.parseFunctionBodyAndFinish(e,t,r)}registerFunctionStatementId(e){if(!e.body&&e.id){this.checkIdentifier(e.id,1024)}else{super.registerFunctionStatementId(e)}}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{if((e==null?void 0:e.type)==="TSTypeCastExpression"){this.raise(re.UnexpectedTypeAnnotation,e.typeAnnotation)}}))}toReferencedList(e,t){this.tsCheckForInvalidTypeCasts(e);return e}parseArrayLike(e,t,r,s){const a=super.parseArrayLike(e,t,r,s);if(a.type==="ArrayExpression"){this.tsCheckForInvalidTypeCasts(a.elements)}return a}parseSubscript(e,t,r,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=false;this.next();const r=this.startNodeAt(t);r.expression=e;return this.finishNode(r,"TSNonNullExpression")}let a=false;if(this.match(18)&&this.lookaheadCharCode()===60){if(r){s.stop=true;return e}s.optionalChainMember=a=true;this.next()}if(this.match(47)||this.match(51)){let n;const i=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e){return e}}const i=this.tsParseTypeArgumentsInExpression();if(!i)return;if(a&&!this.match(10)){n=this.state.curPosition();return}if(tokenIsTemplate(this.state.type)){const r=super.parseTaggedTemplateExpression(e,t,s);{r.typeParameters=i}return r}if(!r&&this.eat(10)){const r=this.startNodeAt(t);r.callee=e;r.arguments=this.parseCallExpressionArguments(11);this.tsCheckForInvalidTypeCasts(r.arguments);{r.typeParameters=i}if(s.optionalChainMember){r.optional=a}return this.finishCallExpression(r,s.optionalChainMember)}const o=this.state.type;if(o===48||o===52||o!==10&&tokenCanStartExpression(o)&&!this.hasPrecedingLineBreak()){return}const l=this.startNodeAt(t);l.expression=e;{l.typeParameters=i}return this.finishNode(l,"TSInstantiationExpression")}));if(n){this.unexpected(n,10)}if(i){if(i.type==="TSInstantiationExpression"){if(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40){this.raise(re.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc)}if(!this.match(16)&&!this.match(18)){i.expression=super.stopParseSubscript(e,s)}}return i}}return super.parseSubscript(e,t,r,s)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:r}=e;if(r.type==="TSInstantiationExpression"&&!((t=r.extra)!=null&&t.parenthesized)){{e.typeParameters=r.typeParameters}e.callee=r.expression}}parseExprOp(e,t,r){let s;if(tokenOperatorPrecedence(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){const a=this.startNodeAt(t);a.expression=e;a.typeAnnotation=this.tsInType((()=>{this.next();if(this.match(75)){if(s){this.raise(p.UnexpectedKeyword,this.state.startLoc,{keyword:"const"})}return this.tsParseTypeReference()}return this.tsParseType()}));this.finishNode(a,s?"TSSatisfiesExpression":"TSAsExpression");this.reScan_lt_gt();return this.parseExprOp(a,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,s){if(!this.state.isAmbientContext){super.checkReservedWord(e,t,r,s)}}checkImportReflection(e){super.checkImportReflection(e);if(e.module&&e.importKind!=="value"){this.raise(re.ImportReflectionHasImportType,e.specifiers[0].loc.start)}}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return true;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?t===123||t===42:t!==61}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,s){super.applyImportPhase(e,t,r,s);if(t){e.exportKind=r==="type"?"type":"value"}else{e.importKind=r==="type"||r==="typeof"?r:"value"}}parseImport(e){if(this.match(134)){e.importKind="value";return super.parseImport(e)}let t;if(tokenIsIdentifier(this.state.type)&&this.lookaheadCharCode()===61){e.importKind="value";return this.tsParseImportEqualsDeclaration(e)}else if(this.isContextual(130)){const r=this.parseMaybeImportPhase(e,false);if(this.lookaheadCharCode()===61){return this.tsParseImportEqualsDeclaration(e,r)}else{t=super.parseImportSpecifiersAndAfter(e,r)}}else{t=super.parseImport(e)}if(t.importKind==="type"&&t.specifiers.length>1&&t.specifiers[0].type==="ImportDefaultSpecifier"){this.raise(re.TypeImportCannotSpecifyDefaultAndNamed,t)}return t}parseExport(e,t){if(this.match(83)){const t=e;this.next();let r=null;if(this.isContextual(130)&&this.isPotentialImportPhase(false)){r=this.parseMaybeImportPhase(t,false)}else{t.importKind="value"}const s=this.tsParseImportEqualsDeclaration(t,r,true);{return s}}else if(this.eat(29)){const t=e;t.expression=super.parseExpression();this.semicolon();this.sawUnambiguousESM=true;return this.finishNode(t,"TSExportAssignment")}else if(this.eatContextual(93)){const t=e;this.expectContextual(128);t.id=this.parseIdentifier();this.semicolon();return this.finishNode(t,"TSNamespaceExportDeclaration")}else{return super.parseExport(e,t)}}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();this.next();e.abstract=true;return this.parseClass(e,true,true)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,r=false){const{isAmbientContext:s}=this.state;const a=super.parseVarStatement(e,t,r||s);if(!s)return a;for(const{id:e,init:r}of a.declarations){if(!r)continue;if(t==="var"||t==="let"||!!e.typeAnnotation){this.raise(re.InitializerNotAllowedInAmbientContext,r)}else if(!isValidAmbientConstInitializer(r,this.hasPlugin("estree"))){this.raise(re.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,r)}}return a}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();this.expect(75);return this.tsParseEnumDeclaration(e,{const:true})}if(this.isContextual(126)){return this.tsParseEnumDeclaration(this.startNode())}if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>{if(tsIsAccessModifier(t)){return e.accessibility===t}return!!e[t]}))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(e,t,r){const s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:true,errorTemplate:re.InvalidModifierOnTypeParameterPositions},t);const callParseClassMemberWithIsStatic=()=>{if(this.tsIsStartOfStaticBlocks()){this.next();this.next();if(this.tsHasSomeModifiers(t,s)){this.raise(re.StaticBlockCannotHaveModifier,this.state.curPosition())}super.parseClassStaticBlock(e,t)}else{this.parseClassMemberWithIsStatic(e,t,r,!!t.static)}};if(t.declare){this.tsInAmbientContext(callParseClassMemberWithIsStatic)}else{callParseClassMemberWithIsStatic()}}parseClassMemberWithIsStatic(e,t,r,s){const a=this.tsTryParseIndexSignature(t);if(a){e.body.push(a);if(t.abstract){this.raise(re.IndexSignatureHasAbstract,t)}if(t.accessibility){this.raise(re.IndexSignatureHasAccessibility,t,{modifier:t.accessibility})}if(t.declare){this.raise(re.IndexSignatureHasDeclare,t)}if(t.override){this.raise(re.IndexSignatureHasOverride,t)}return}if(!this.state.inAbstractClass&&t.abstract){this.raise(re.NonAbstractClassHasAbstractMethod,t)}if(t.override){if(!r.hadSuperClass){this.raise(re.OverrideNotInSubClass,t)}}super.parseClassMemberWithIsStatic(e,t,r,s)}parsePostMemberNameModifiers(e){const t=this.eat(17);if(t)e.optional=true;if(e.readonly&&this.match(10)){this.raise(re.ClassMethodHasReadonly,e)}if(e.declare&&this.match(10)){this.raise(re.ClassMethodHasDeclare,e)}}parseExpressionStatement(e,t,r){const s=t.type==="Identifier"?this.tsParseExpressionStatement(e,t,r):undefined;return s||super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return true;return super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(t===44||t===61||t===58||t===41){this.setOptionalParametersError(r);return e}}return super.parseConditional(e,t,r)}parseParenItem(e,t){const r=super.parseParenItem(e,t);if(this.eat(17)){r.optional=true;this.resetEndLocation(e)}if(this.match(14)){const r=this.startNodeAt(t);r.expression=e;r.typeAnnotation=this.tsParseTypeAnnotation();return this.finishNode(r,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125)){return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)))}const t=this.state.startLoc;const r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration())){throw this.raise(re.ExpectedAmbientAfterExportDeclare,this.state.startLoc)}const s=tokenIsIdentifier(this.state.type);const a=s&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);if(!a)return null;if(a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||r){e.exportKind="type"}if(r&&a.type!=="TSImportEqualsDeclaration"){this.resetStartLocation(a,t);a.declare=true}return a}parseClassId(e,t,r,s){if((!t||r)&&this.isContextual(113)){return}super.parseClassId(e,t,r,e.declare?1024:8331);const a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(a)e.typeParameters=a}parseClassPropertyAnnotation(e){if(!e.optional){if(this.eat(35)){e.definite=true}else if(this.eat(17)){e.optional=true}}const t=this.tsTryParseTypeAnnotation();if(t)e.typeAnnotation=t}parseClassProperty(e){this.parseClassPropertyAnnotation(e);if(this.state.isAmbientContext&&!(e.readonly&&!e.typeAnnotation)&&this.match(29)){this.raise(re.DeclareClassFieldHasInitializer,this.state.startLoc)}if(e.abstract&&this.match(29)){const{key:t}=e;this.raise(re.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:t.type==="Identifier"&&!e.computed?t.name:`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){if(e.abstract){this.raise(re.PrivateElementHasAbstract,e)}if(e.accessibility){this.raise(re.PrivateElementHasAccessibility,e,{modifier:e.accessibility})}this.parseClassPropertyAnnotation(e);return super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){this.parseClassPropertyAnnotation(e);if(e.optional){this.raise(re.AccessorCannotBeOptional,e)}return super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,s,a,n){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(i&&a){this.raise(re.ConstructorHasTypeParameters,i)}const{declare:o=false,kind:l}=t;if(o&&(l==="get"||l==="set")){this.raise(re.DeclareAccessor,t,{kind:l})}if(i)t.typeParameters=i;super.pushClassMethod(e,t,r,s,a,n)}pushClassPrivateMethod(e,t,r,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(a)t.typeParameters=a;super.pushClassPrivateMethod(e,t,r,s)}declareClassPrivateMethodInScope(e,t){if(e.type==="TSDeclareMethod")return;if(e.type==="MethodDefinition"&&e.value.body==null){return}super.declareClassPrivateMethodInScope(e,t)}parseClassSuper(e){super.parseClassSuper(e);if(e.superClass&&(this.match(47)||this.match(51))){{e.superTypeParameters=this.tsParseTypeArgumentsInExpression()}}if(this.eatContextual(113)){e.implements=this.tsParseHeritageClause("implements")}}parseObjPropValue(e,t,r,s,a,n,i){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(o)e.typeParameters=o;return super.parseObjPropValue(e,t,r,s,a,n,i)}parseFunctionParams(e,t){const r=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(r)e.typeParameters=r;super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t);if(e.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)){e.definite=true}const r=this.tsTryParseTypeAnnotation();if(r){e.id.typeAnnotation=r;this.resetEndLocation(e.id)}}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){e.returnType=this.tsParseTypeAnnotation()}return super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,s,a,n,i;let o;let l;let c;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){o=this.state.clone();l=this.tryParse((()=>super.parseMaybeAssign(e,t)),o);if(!l.error)return l.node;const{context:r}=this.state;const s=r[r.length-1];if(s===f.j_oTag||s===f.j_expr){r.pop()}}if(!((r=l)!=null&&r.error)&&!this.match(47)){return super.parseMaybeAssign(e,t)}if(!o||o===this.state)o=this.state.clone();let u;const p=this.tryParse((r=>{var s,a;u=this.tsParseTypeParameters(this.tsParseConstModifier);const n=super.parseMaybeAssign(e,t);if(n.type!=="ArrowFunctionExpression"||(s=n.extra)!=null&&s.parenthesized){r()}if(((a=u)==null?void 0:a.params.length)!==0){this.resetStartLocationFromNode(n,u)}n.typeParameters=u;return n}),o);if(!p.error&&!p.aborted){if(u)this.reportReservedArrowTypeParam(u);return p.node}if(!l){assert(!this.hasPlugin("jsx"));c=this.tryParse((()=>super.parseMaybeAssign(e,t)),o);if(!c.error)return c.node}if((s=l)!=null&&s.node){this.state=l.failState;return l.node}if(p.node){this.state=p.failState;if(u)this.reportReservedArrowTypeParam(u);return p.node}if((a=c)!=null&&a.node){this.state=c.failState;return c.node}throw((n=l)==null?void 0:n.error)||p.error||((i=c)==null?void 0:i.error)}reportReservedArrowTypeParam(e){var t;if(e.params.length===1&&!e.params[0].constraint&&!((t=e.extra)!=null&&t.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")){this.raise(re.ReservedArrowTypeParam,e)}}parseMaybeUnary(e,t){if(!this.hasPlugin("jsx")&&this.match(47)){return this.tsParseTypeAssertion()}return super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))e();return t}));if(t.aborted)return;if(!t.thrown){if(t.error)this.state=t.failState;e.returnType=t.node}}return super.parseArrow(e)}parseFunctionParamType(e){if(this.eat(17)){e.optional=true}const t=this.tsTryParseTypeAnnotation();if(t)e.typeAnnotation=t;this.resetEndLocation(e);return e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return true;default:return super.isAssignable(e,t)}}toAssignable(e,t=false){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(t){this.expressionScope.recordArrowParameterBindingError(re.UnexpectedTypeCastInParameter,e)}else{this.raise(re.UnexpectedTypeCastInParameter,e)}this.toAssignable(e.expression,t);break;case"AssignmentExpression":if(!t&&e.left.type==="TSTypeCastExpression"){e.left=this.typeCastToParameter(e.left)}default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,false);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r){switch(e){case"TSTypeCastExpression":return true;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(r!==64||!t)&&["expression",true];default:return super.isValidLVal(e,t,r)}}parseBindingAtom(){if(this.state.type===78){return this.parseIdentifier(true)}return super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){const r=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const s=super.parseMaybeDecoratorArguments(e,t);{s.typeParameters=r}return s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e){this.next();return false}return super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const r=super.parseMaybeDefault(e,t);if(r.type==="AssignmentPattern"&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start){this.raise(re.TypeAnnotationAfterAssign,r.typeAnnotation)}return r}getTokenFromCode(e){if(this.state.inType){if(e===62){this.finishOp(48,1);return}if(e===60){this.finishOp(47,1);return}}super.getTokenFromCode(e)}reScan_lt_gt(){const{type:e}=this.state;if(e===47){this.state.pos-=1;this.readToken_lt()}else if(e===48){this.state.pos-=1;this.readToken_gt()}}reScan_lt(){const{type:e}=this.state;if(e===51){this.state.pos-=2;this.finishOp(47,1);return 47}return e}toAssignableListItem(e,t,r){const s=e[t];if(s.type==="TSTypeCastExpression"){e[t]=this.typeCastToParameter(s)}super.toAssignableListItem(e,t,r)}typeCastToParameter(e){e.expression.typeAnnotation=e.typeAnnotation;this.resetEndLocation(e.expression,e.typeAnnotation.loc.end);return e.expression}shouldParseArrow(e){if(this.match(14)){return e.every((e=>this.isAssignable(e,true)))}return super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));if(t){{e.typeParameters=t}}}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e);const r=this.getObjectOrClassMethodParams(e);const s=r[0];const a=s&&this.isThisParam(s);return a?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam();const t=this.tsTryParseTypeAnnotation();if(t){e.typeAnnotation=t;this.resetEndLocation(e)}return e}tsInAmbientContext(e){const{isAmbientContext:t,strict:r}=this.state;this.state.isAmbientContext=true;this.state.strict=false;try{return e()}finally{this.state.isAmbientContext=t;this.state.strict=r}}parseClass(e,t,r){const s=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(e,t){if(this.match(80)){e.abstract=true;return this.maybeTakeDecorators(t,this.parseClass(e,true,false))}else if(this.isContextual(129)){if(!this.hasFollowingLineBreak()){e.abstract=true;this.raise(re.NonClassMethodPropertyHasAbstractModifier,e);return this.tsParseInterfaceDeclaration(e)}}else{this.unexpected(null,80)}}parseMethod(e,t,r,s,a,n,i){const o=super.parseMethod(e,t,r,s,a,n,i);if(o.abstract||o.type==="TSAbstractMethodDefinition"){const e=this.hasPlugin("estree");const t=e?o.value:o;if(t.body){const{key:e}=o;this.raise(re.AbstractMethodHasImplementation,o,{methodName:e.type==="Identifier"&&!o.computed?e.name:`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`})}}return o}tsParseTypeParameterName(){const e=this.parseIdentifier();return e.name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext()){this.state.isAmbientContext=true}return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext()){this.state.isAmbientContext=true}return super.getExpression()}parseExportSpecifier(e,t,r,s){if(!t&&s){this.parseTypeOnlyImportExportSpecifier(e,false,r);return this.finishNode(e,"ExportSpecifier")}e.exportKind="value";return super.parseExportSpecifier(e,t,r,s)}parseImportSpecifier(e,t,r,s,a){if(!t&&s){this.parseTypeOnlyImportExportSpecifier(e,true,r);return this.finishNode(e,"ImportSpecifier")}e.importKind="value";return super.parseImportSpecifier(e,t,r,s,r?4098:4096)}parseTypeOnlyImportExportSpecifier(e,t,r){const s=t?"imported":"local";const a=t?"local":"exported";let n=e[s];let i;let o=false;let l=true;const c=n.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const r=this.parseIdentifier();if(tokenIsKeywordOrIdentifier(this.state.type)){o=true;n=e;i=t?this.parseIdentifier():this.parseModuleExportName();l=false}else{i=r;l=false}}else if(tokenIsKeywordOrIdentifier(this.state.type)){l=false;i=t?this.parseIdentifier():this.parseModuleExportName()}else{o=true;n=e}}else if(tokenIsKeywordOrIdentifier(this.state.type)){o=true;if(t){n=this.parseIdentifier(true);if(!this.isContextual(93)){this.checkReservedWord(n.name,n.loc.start,true,true)}}else{n=this.parseModuleExportName()}}if(o&&r){this.raise(t?re.TypeModifierIsUsedInTypeImports:re.TypeModifierIsUsedInTypeExports,c)}e[s]=n;e[a]=i;const u=t?"importKind":"exportKind";e[u]=o?"type":"value";if(l&&this.eatContextual(93)){e[a]=t?this.parseIdentifier():this.parseModuleExportName()}if(!e[a]){e[a]=this.cloneIdentifier(e[s])}if(t){this.checkIdentifier(e[a],o?4098:4096)}}fillOptionalPropertiesForTSESLint(e){var t,r,s,a,n,i,o,l,c,u,p,d,f,y,h,g,b,x,v,E,S,T,j,w,P,C,A,D,k,I,_,O,N,F,B,M,L,R,U,q,V,W,K,$,H,G;switch(e.type){case"ExpressionStatement":(t=e.directive)!=null?t:e.directive=undefined;return;case"RestElement":e.value=undefined;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(r=e.decorators)!=null?r:e.decorators=[];(s=e.optional)!=null?s:e.optional=false;(a=e.typeAnnotation)!=null?a:e.typeAnnotation=undefined;return;case"TSParameterProperty":(n=e.accessibility)!=null?n:e.accessibility=undefined;(i=e.decorators)!=null?i:e.decorators=[];(o=e.override)!=null?o:e.override=false;(l=e.readonly)!=null?l:e.readonly=false;(c=e.static)!=null?c:e.static=false;return;case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(u=e.declare)!=null?u:e.declare=false;(p=e.returnType)!=null?p:e.returnType=undefined;(d=e.typeParameters)!=null?d:e.typeParameters=undefined;return;case"Property":(f=e.optional)!=null?f:e.optional=false;return;case"TSMethodSignature":case"TSPropertySignature":(y=e.optional)!=null?y:e.optional=false;case"TSIndexSignature":(h=e.accessibility)!=null?h:e.accessibility=undefined;(g=e.readonly)!=null?g:e.readonly=false;(b=e.static)!=null?b:e.static=false;return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(x=e.declare)!=null?x:e.declare=false;(v=e.definite)!=null?v:e.definite=false;(E=e.readonly)!=null?E:e.readonly=false;(S=e.typeAnnotation)!=null?S:e.typeAnnotation=undefined;case"TSAbstractMethodDefinition":case"MethodDefinition":(T=e.accessibility)!=null?T:e.accessibility=undefined;(j=e.decorators)!=null?j:e.decorators=[];(w=e.override)!=null?w:e.override=false;(P=e.optional)!=null?P:e.optional=false;return;case"ClassExpression":(C=e.id)!=null?C:e.id=null;case"ClassDeclaration":(A=e.abstract)!=null?A:e.abstract=false;(D=e.declare)!=null?D:e.declare=false;(k=e.decorators)!=null?k:e.decorators=[];(I=e.implements)!=null?I:e.implements=[];(_=e.superTypeArguments)!=null?_:e.superTypeArguments=undefined;(O=e.typeParameters)!=null?O:e.typeParameters=undefined;return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(N=e.declare)!=null?N:e.declare=false;return;case"VariableDeclarator":(F=e.definite)!=null?F:e.definite=false;return;case"TSEnumDeclaration":(B=e.const)!=null?B:e.const=false;(M=e.declare)!=null?M:e.declare=false;return;case"TSEnumMember":(L=e.computed)!=null?L:e.computed=false;return;case"TSImportType":(R=e.qualifier)!=null?R:e.qualifier=null;(U=e.options)!=null?U:e.options=null;return;case"TSInterfaceDeclaration":(q=e.declare)!=null?q:e.declare=false;(V=e.extends)!=null?V:e.extends=[];return;case"TSModuleDeclaration":(W=e.declare)!=null?W:e.declare=false;(K=e.global)!=null?K:e.global=e.kind==="global";return;case"TSTypeParameter":($=e.const)!=null?$:e.const=false;(H=e.in)!=null?H:e.in=false;(G=e.out)!=null?G:e.out=false;return}}};function isPossiblyLiteralEnum(e){if(e.type!=="MemberExpression")return false;const{computed:t,property:r}=e;if(t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)){return false}return isUncomputedMemberExpressionChain(e.object)}function isValidAmbientConstInitializer(e,t){var r;const{type:s}=e;if((r=e.extra)!=null&&r.parenthesized){return false}if(t){if(s==="Literal"){const{value:t}=e;if(typeof t==="string"||typeof t==="boolean"){return true}}}else{if(s==="StringLiteral"||s==="BooleanLiteral"){return true}}if(isNumber(e,t)||isNegativeNumber(e,t)){return true}if(s==="TemplateLiteral"&&e.expressions.length===0){return true}if(isPossiblyLiteralEnum(e)){return true}return false}function isNumber(e,t){if(t){return e.type==="Literal"&&(typeof e.value==="number"||"bigint"in e)}return e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function isNegativeNumber(e,t){if(e.type==="UnaryExpression"){const{operator:r,argument:s}=e;if(r==="-"&&isNumber(s,t)){return true}}return false}function isUncomputedMemberExpressionChain(e){if(e.type==="Identifier")return true;if(e.type!=="MemberExpression"||e.computed){return false}return isUncomputedMemberExpressionChain(e.object)}const se=ParseErrorEnum`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});var placeholders=e=>class PlaceholdersParserMixin extends e{parsePlaceholder(e){if(this.match(133)){const t=this.startNode();this.next();this.assertNoSpace();t.name=super.parseIdentifier(true);this.assertNoSpace();this.expect(133);return this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let r=e;if(!r.expectedNode||!r.type){r=this.finishNode(r,"Placeholder")}r.expectedNode=t;return r}getTokenFromCode(e){if(e===37&&this.input.charCodeAt(this.state.pos+1)===37){this.finishOp(133,2)}else{super.getTokenFromCode(e)}}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,s){if(e!==undefined){super.checkReservedWord(e,t,r,s)}}cloneIdentifier(e){const t=super.cloneIdentifier(e);if(t.type==="Placeholder"){t.expectedNode=e.expectedNode}return t}cloneStringLiteral(e){if(e.type==="Placeholder"){return this.cloneIdentifier(e)}return super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r){return e==="Placeholder"||super.isValidLVal(e,t,r)}toAssignable(e,t){if(e&&e.type==="Placeholder"&&e.expectedNode==="Expression"){e.expectedNode="Pattern"}else{super.toAssignable(e,t)}}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t)){return true}const r=this.lookahead();if(r.type===133){return true}return false}verifyBreakContinue(e,t){if(e.label&&e.label.type==="Placeholder")return;super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var r;if(t.type!=="Placeholder"||(r=t.extra)!=null&&r.parenthesized){return super.parseExpressionStatement(e,t)}if(this.match(14)){const r=e;r.label=this.finishPlaceholder(t,"Identifier");this.next();r.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration();return this.finishNode(r,"LabeledStatement")}this.semicolon();const s=e;s.name=t.name;return this.finishPlaceholder(s,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){const s=t?"ClassDeclaration":"ClassExpression";this.next();const a=this.state.strict;const n=this.parsePlaceholder("Identifier");if(n){if(this.match(81)||this.match(133)||this.match(5)){e.id=n}else if(r||!t){e.id=null;e.body=this.finishPlaceholder(n,"ClassBody");return this.finishNode(e,s)}else{throw this.raise(se.ClassNameIsRequired,this.state.startLoc)}}else{this.parseClassId(e,t,r)}super.parseClassSuper(e);e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,a);return this.finishNode(e,s)}parseExport(e,t){const r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);const s=e;if(!this.isContextual(98)&&!this.match(12)){s.specifiers=[];s.source=null;s.declaration=this.finishPlaceholder(r,"Declaration");return this.finishNode(s,"ExportNamedDeclaration")}this.expectPlugin("exportDefaultFrom");const a=this.startNode();a.exported=r;s.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")];return super.parseExport(s,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")){if(this.input.startsWith(tokenLabelName(133),this.nextTokenStartSince(e+4))){return true}}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var r;if((r=e.specifiers)!=null&&r.length){return true}return super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;if(t!=null&&t.length){e.specifiers=t.filter((e=>e.exported.type==="Placeholder"))}super.checkExport(e);e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);e.specifiers=[];if(!this.isContextual(98)&&!this.match(12)){e.source=this.finishPlaceholder(t,"StringLiteral");this.semicolon();return this.finishNode(e,"ImportDeclaration")}const r=this.startNodeAtNode(t);r.local=t;e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier"));if(this.eat(12)){const t=this.maybeParseStarImportSpecifier(e);if(!t)this.parseNamedImportSpecifiers(e)}this.expectContextual(98);e.source=this.parseImportSource();this.semicolon();return this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)){this.raise(se.UnexpectedSpace,this.state.lastTokEndLoc)}}};var v8intrinsic=e=>class V8IntrinsicMixin extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc;const t=this.startNode();this.next();if(tokenIsIdentifier(this.state.type)){const e=this.parseIdentifierName();const r=this.createIdentifier(t,e);this.castNodeTo(r,"V8IntrinsicIdentifier");if(this.match(10)){return r}}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}};const ae=["minimal","fsharp","hack","smart"];const ne=["^^","@@","^","%","#"];function validatePlugins(e){if(e.has("decorators")){if(e.has("decorators-legacy")){throw new Error("Cannot use the decorators and decorators-legacy plugin together")}const t=e.get("decorators").decoratorsBeforeExport;if(t!=null&&typeof t!=="boolean"){throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.")}const r=e.get("decorators").allowCallParenthesized;if(r!=null&&typeof r!=="boolean"){throw new Error("'allowCallParenthesized' must be a boolean.")}}if(e.has("flow")&&e.has("typescript")){throw new Error("Cannot combine flow and typescript plugins.")}if(e.has("placeholders")&&e.has("v8intrinsic")){throw new Error("Cannot combine placeholders and v8intrinsic plugins.")}if(e.has("pipelineOperator")){var t;const s=e.get("pipelineOperator").proposal;if(!ae.includes(s)){const e=ae.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if(s==="hack"){if(e.has("placeholders")){throw new Error("Cannot combine placeholders plugin and Hack-style pipes.")}if(e.has("v8intrinsic")){throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.")}const t=e.get("pipelineOperator").topicToken;if(!ne.includes(t)){const e=ne.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}{var r;if(t==="#"&&((r=e.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash"){throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}}}else if(s==="smart"&&((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash"){throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}}if(e.has("moduleAttributes")){{if(e.has("deprecatedImportAssert")||e.has("importAssertions")){throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.")}const t=e.get("moduleAttributes").version;if(t!=="may-2020"){throw new Error("The 'moduleAttributes' plugin requires a 'version' option,"+" representing the last proposal update. Currently, the"+" only supported value is 'may-2020'.")}}}if(e.has("importAssertions")){if(e.has("deprecatedImportAssert")){throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.")}}if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax){{e.set("deprecatedImportAssert",{})}}if(e.has("recordAndTuple")){{const t=e.get("recordAndTuple").syntaxType;if(t!=null){const e=["hash","bar"];if(!e.includes(t)){throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map((e=>`'${e}'`)).join(", "))}}}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");e.missingPlugins="doExpressions";throw e}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07"){throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option,"+" representing the last proposal update. Currently, the"+" only supported value is '2023-07'.")}}const ie={estree:estree,jsx:jsx,flow:flow,typescript:typescript,v8intrinsic:v8intrinsic,placeholders:placeholders};const oe=Object.keys(ie);class ExpressionParser extends LValParser{checkProto(e,t,r,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand){return r}const a=e.key;const n=a.type==="Identifier"?a.name:a.value;if(n==="__proto__"){if(t){this.raise(p.RecordNoProto,a);return true}if(r){if(s){if(s.doubleProtoLoc===null){s.doubleProtoLoc=a.loc.start}}else{this.raise(p.DuplicateProto,a)}}return true}return r}shouldExitDescending(e,t){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===t}getExpression(){this.enterInitialScopes();this.nextToken();if(this.match(140)){throw this.raise(p.ParseExpressionEmptyInput,this.state.startLoc)}const e=this.parseExpression();if(!this.match(140)){throw this.raise(p.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)})}this.finalizeRemainingComments();e.comments=this.comments;e.errors=this.state.errors;if(this.optionFlags&256){e.tokens=this.tokens}return e}parseExpression(e,t){if(e){return this.disallowInAnd((()=>this.parseExpressionBase(t)))}return this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){const t=this.state.startLoc;const r=this.parseMaybeAssign(e);if(this.match(12)){const s=this.startNodeAt(t);s.expressions=[r];while(this.eat(12)){s.expressions.push(this.parseMaybeAssign(e))}this.toReferencedList(s.expressions);return this.finishNode(s,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){const r=this.state.startLoc;const s=this.isContextual(108);if(s){if(this.prodParam.hasYield){this.next();let e=this.parseYield(r);if(t){e=t.call(this,e,r)}return e}}let a;if(e){a=false}else{e=new ExpressionErrors;a=true}const{type:n}=this.state;if(n===10||tokenIsIdentifier(n)){this.state.potentialArrowAt=this.state.start}let i=this.parseMaybeConditional(e);if(t){i=t.call(this,i,r)}if(tokenIsAssignment(this.state.type)){const t=this.startNodeAt(r);const s=this.state.value;t.operator=s;if(this.match(29)){this.toAssignable(i,true);t.left=i;const s=r.index;if(e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=s){e.doubleProtoLoc=null}if(e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=s){e.shorthandAssignLoc=null}if(e.privateKeyLoc!=null&&e.privateKeyLoc.index>=s){this.checkDestructuringPrivate(e);e.privateKeyLoc=null}}else{t.left=i}this.next();t.right=this.parseMaybeAssign();this.checkLVal(i,this.finishNode(t,"AssignmentExpression"));return t}else if(a){this.checkExpressionErrors(e,true)}if(s){const{type:e}=this.state;const t=this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(54);if(t&&!this.isAmbiguousPrefixOrIdentifier()){this.raiseOverwrite(p.YieldNotInGeneratorFunction,r);return this.parseYield(r)}}return i}parseMaybeConditional(e){const t=this.state.startLoc;const r=this.state.potentialArrowAt;const s=this.parseExprOps(e);if(this.shouldExitDescending(s,r)){return s}return this.parseConditional(s,t,e)}parseConditional(e,t,r){if(this.eat(17)){const r=this.startNodeAt(t);r.test=e;r.consequent=this.parseMaybeAssignAllowIn();this.expect(14);r.alternate=this.parseMaybeAssign();return this.finishNode(r,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc;const r=this.state.potentialArrowAt;const s=this.parseMaybeUnaryOrPrivate(e);if(this.shouldExitDescending(s,r)){return s}return this.parseExprOp(s,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);if(r>=tokenOperatorPrecedence(58)||!this.prodParam.hasIn||!this.match(58)){this.raise(p.PrivateInExpectedIn,e,{identifierName:t})}this.classScope.usePrivateName(t,e.loc.start)}const s=this.state.type;if(tokenIsOperator(s)&&(this.prodParam.hasIn||!this.match(58))){let a=tokenOperatorPrecedence(s);if(a>r){if(s===39){this.expectPlugin("pipelineOperator");if(this.state.inFSharpPipelineDirectBody){return e}this.checkPipelineAtInfixOperator(e,t)}const n=this.startNodeAt(t);n.left=e;n.operator=this.state.value;const i=s===41||s===42;const o=s===40;if(o){a=tokenOperatorPrecedence(42)}this.next();if(s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait){throw this.raise(p.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}}n.right=this.parseExprOpRightExpr(s,a);const l=this.finishNode(n,i||o?"LogicalExpression":"BinaryExpression");const c=this.state.type;if(o&&(c===41||c===42)||i&&c===40){throw this.raise(p.MixingCoalesceWithLogical,this.state.startLoc)}return this.parseExprOp(l,t,r)}}return e}parseExprOpRightExpr(e,t){const r=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}if(this.getPluginOption("pipelineOperator","proposal")==="smart"){return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108)){throw this.raise(p.PipeBodyIsTighter,this.state.startLoc)}return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)}))}default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){const r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,tokenIsRightAssociative(e)?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state;const r=this.parseMaybeAssign();const s=l.has(r.type);if(s&&!((e=r.extra)!=null&&e.parenthesized)){this.raise(p.PipeUnparenthesizedBody,t,{type:r.type})}if(!this.topicReferenceWasUsedInCurrentContext()){this.raise(p.PipeTopicUnused,t)}return r}checkExponentialAfterUnary(e){if(this.match(57)){this.raise(p.UnexpectedTokenUnaryExponentiation,e.argument)}}parseMaybeUnary(e,t){const r=this.state.startLoc;const s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();const e=this.parseAwait(r);if(!t)this.checkExponentialAfterUnary(e);return e}const a=this.match(34);const n=this.startNode();if(tokenIsPrefix(this.state.type)){n.operator=this.state.value;n.prefix=true;if(this.match(72)){this.expectPlugin("throwExpressions")}const r=this.match(89);this.next();n.argument=this.parseMaybeUnary(null,true);this.checkExpressionErrors(e,true);if(this.state.strict&&r){const e=n.argument;if(e.type==="Identifier"){this.raise(p.StrictDelete,n)}else if(this.hasPropertyAsPrivateName(e)){this.raise(p.DeletePrivateField,n)}}if(!a){if(!t){this.checkExponentialAfterUnary(n)}return this.finishNode(n,"UnaryExpression")}}const i=this.parseUpdate(n,a,e);if(s){const{type:e}=this.state;const t=this.hasPlugin("v8intrinsic")?tokenCanStartExpression(e):tokenCanStartExpression(e)&&!this.match(54);if(t&&!this.isAmbiguousPrefixOrIdentifier()){this.raiseOverwrite(p.AwaitNotInAsyncContext,r);return this.parseAwait(r)}}return i}parseUpdate(e,t,r){if(t){const t=e;this.checkLVal(t.argument,this.finishNode(t,"UpdateExpression"));return e}const s=this.state.startLoc;let a=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,false))return a;while(tokenIsPostfix(this.state.type)&&!this.canInsertSemicolon()){const e=this.startNodeAt(s);e.operator=this.state.value;e.prefix=false;e.argument=a;this.next();this.checkLVal(a,a=this.finishNode(e,"UpdateExpression"))}return a}parseExprSubscripts(e){const t=this.state.startLoc;const r=this.state.potentialArrowAt;const s=this.parseExprAtom(e);if(this.shouldExitDescending(s,r)){return s}return this.parseSubscripts(s,t)}parseSubscripts(e,t,r){const s={optionalChainMember:false,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:false};do{e=this.parseSubscript(e,t,r,s);s.maybeAsyncArrow=false}while(!s.stop);return e}parseSubscript(e,t,r,s){const{type:a}=this.state;if(!r&&a===15){return this.parseBind(e,t,r,s)}else if(tokenIsTemplate(a)){return this.parseTaggedTemplateExpression(e,t,s)}let n=false;if(a===18){if(r){this.raise(p.OptionalChainingNoNew,this.state.startLoc);if(this.lookaheadCharCode()===40){return this.stopParseSubscript(e,s)}}s.optionalChainMember=n=true;this.next()}if(!r&&this.match(10)){return this.parseCoverCallAndAsyncArrowHead(e,t,s,n)}else{const r=this.eat(0);if(r||n||this.eat(16)){return this.parseMember(e,t,s,r,n)}else{return this.stopParseSubscript(e,s)}}}stopParseSubscript(e,t){t.stop=true;return e}parseMember(e,t,r,s,a){const n=this.startNodeAt(t);n.object=e;n.computed=s;if(s){n.property=this.parseExpression();this.expect(3)}else if(this.match(139)){if(e.type==="Super"){this.raise(p.SuperPrivateField,t)}this.classScope.usePrivateName(this.state.value,this.state.startLoc);n.property=this.parsePrivateName()}else{n.property=this.parseIdentifier(true)}if(r.optionalChainMember){n.optional=a;return this.finishNode(n,"OptionalMemberExpression")}else{return this.finishNode(n,"MemberExpression")}}parseBind(e,t,r,s){const a=this.startNodeAt(t);a.object=e;this.next();a.callee=this.parseNoCallExpr();s.stop=true;return this.parseSubscripts(this.finishNode(a,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,s){const a=this.state.maybeInArrowParameters;let n=null;this.state.maybeInArrowParameters=true;this.next();const i=this.startNodeAt(t);i.callee=e;const{maybeAsyncArrow:o,optionalChainMember:l}=r;if(o){this.expressionScope.enter(newAsyncArrowScope());n=new ExpressionErrors}if(l){i.optional=s}if(s){i.arguments=this.parseCallExpressionArguments(11)}else{i.arguments=this.parseCallExpressionArguments(11,e.type!=="Super",i,n)}let c=this.finishCallExpression(i,l);if(o&&this.shouldParseAsyncArrow()&&!s){r.stop=true;this.checkDestructuringPrivate(n);this.expressionScope.validateAsPattern();this.expressionScope.exit();c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)}else{if(o){this.checkExpressionErrors(n,true);this.expressionScope.exit()}this.toReferencedArguments(c)}this.state.maybeInArrowParameters=a;return c}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){const s=this.startNodeAt(t);s.tag=e;s.quasi=this.parseTemplate(true);if(r.optionalChainMember){this.raise(p.OptionalChainingNoTemplate,t)}return this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type==="Import"){if(e.arguments.length===0||e.arguments.length>2){this.raise(p.ImportCallArity,e)}else{for(const t of e.arguments){if(t.type==="SpreadElement"){this.raise(p.ImportCallSpreadArgument,t)}}}}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r,s){const a=[];let n=true;const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;while(!this.eat(e)){if(n){n=false}else{this.expect(12);if(this.match(e)){if(r){this.addTrailingCommaExtraToNode(r)}this.next();break}}a.push(this.parseExprListItem(false,s,t))}this.state.inFSharpPipelineDirectBody=i;return a}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;this.resetPreviousNodeTrailingComments(t);this.expect(19);this.parseArrowExpression(e,t.arguments,true,(r=t.extra)==null?void 0:r.trailingCommaLoc);if(t.innerComments){setInnerComments(e,t.innerComments)}if(t.callee.trailingComments){setInnerComments(e,t.callee.trailingComments)}return e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,true)}parseExprAtom(e){let t;let r=null;const{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:t=this.startNode();this.next();if(this.match(16)){return this.parseImportMetaPropertyOrPhaseCall(t)}if(this.match(10)){if(this.optionFlags&512){return this.parseImportCall(t)}else{return this.finishNode(t,"Import")}}else{this.raise(p.UnsupportedImport,this.state.lastTokStartLoc);return this.finishNode(t,"Import")}case 78:t=this.startNode();this.next();return this.finishNode(t,"ThisExpression");case 90:{return this.parseDo(this.startNode(),false)}case 56:case 31:{this.readRegexp();return this.parseRegExpLiteral(this.state.value)}case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(true);case 86:return this.parseBooleanLiteral(false);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:{return this.parseArrayLike(3,true,false,e)}case 5:{return this.parseObjectLike(8,false,false,e)}case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),false);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(false);case 15:{t=this.startNode();this.next();t.object=null;const e=t.callee=this.parseNoCallExpr();if(e.type==="MemberExpression"){return this.finishNode(t,"BindExpression")}else{throw this.raise(p.UnsupportedBind,e)}}case 139:{this.raise(p.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value});return this.parsePrivateName()}case 33:{return this.parseTopicReferenceThenEqualsSign(54,"%")}case 32:{return this.parseTopicReferenceThenEqualsSign(44,"^")}case 37:case 38:{return this.parseTopicReference("hack")}case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e){return this.parseTopicReference(e)}this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());if(isIdentifierStart(e)||e===62){this.expectOnePlugin(["jsx","flow","typescript"])}else{this.unexpected()}break}default:{if(s===137){return this.parseDecimalLiteral(this.state.value)}else if(s===2||s===1){return this.parseArrayLike(this.state.type===2?4:3,false,true)}else if(s===6||s===7){return this.parseObjectLike(this.state.type===6?9:8,false,true)}}if(tokenIsIdentifier(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123){return this.parseModuleExpression()}const e=this.state.potentialArrowAt===this.state.start;const t=this.state.containsEsc;const r=this.parseIdentifier();if(!t&&r.name==="async"&&!this.canInsertSemicolon()){const{type:e}=this.state;if(e===68){this.resetPreviousNodeTrailingComments(r);this.next();return this.parseAsyncFunctionExpression(this.startNodeAtNode(r))}else if(tokenIsIdentifier(e)){if(this.lookaheadCharCode()===61){return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(r))}else{return r}}else if(e===90){this.resetPreviousNodeTrailingComments(r);return this.parseDo(this.startNodeAtNode(r),true)}}if(e&&this.match(19)&&!this.canInsertSemicolon()){this.next();return this.parseArrowExpression(this.startNodeAtNode(r),[r],false)}return r}else{this.unexpected()}}}parseTopicReferenceThenEqualsSign(e,t){const r=this.getPluginOption("pipelineOperator","proposal");if(r){this.state.type=e;this.state.value=t;this.state.pos--;this.state.end--;this.state.endLoc=createPositionWithColumnOffset(this.state.endLoc,-1);return this.parseTopicReference(r)}else{this.unexpected()}}parseTopicReference(e){const t=this.startNode();const r=this.state.startLoc;const s=this.state.type;this.next();return this.finishTopicReference(t,r,e,s)}finishTopicReference(e,t,r,s){if(this.testTopicReferenceConfiguration(r,t,s)){if(r==="hack"){if(!this.topicReferenceIsAllowedInCurrentContext()){this.raise(p.PipeTopicUnbound,t)}this.registerTopicReference();return this.finishNode(e,"TopicReference")}else{if(!this.topicReferenceIsAllowedInCurrentContext()){this.raise(p.PrimaryTopicNotAllowed,t)}this.registerTopicReference();return this.finishNode(e,"PipelinePrimaryTopicReference")}}else{throw this.raise(p.PipeTopicUnconfiguredToken,t,{token:tokenLabelName(s)})}}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":{return this.hasPlugin(["pipelineOperator",{topicToken:tokenLabelName(r)}])}case"smart":return r===27;default:throw this.raise(p.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(functionFlags(true,this.prodParam.hasYield));const t=[this.parseIdentifier()];this.prodParam.exit();if(this.hasPrecedingLineBreak()){this.raise(p.LineTerminatorBeforeArrow,this.state.curPosition())}this.expect(19);return this.parseArrowExpression(e,t,true)}parseDo(e,t){this.expectPlugin("doExpressions");if(t){this.expectPlugin("asyncDoExpressions")}e.async=t;this.next();const r=this.state.labels;this.state.labels=[];if(t){this.prodParam.enter(2);e.body=this.parseBlock();this.prodParam.exit()}else{e.body=this.parseBlock()}this.state.labels=r;return this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();this.next();if(this.match(10)&&!this.scope.allowDirectSuper&&!(this.optionFlags&16)){this.raise(p.SuperNotAllowed,e)}else if(!this.scope.allowSuper&&!(this.optionFlags&16)){this.raise(p.UnexpectedSuper,e)}if(!this.match(10)&&!this.match(0)&&!this.match(16)){this.raise(p.UnsupportedSuper,e)}return this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode();const t=this.startNodeAt(createPositionWithColumnOffset(this.state.startLoc,1));const r=this.state.value;this.next();e.id=this.createIdentifier(t,r);return this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();this.next();if(this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");this.next();if(this.match(103)){this.expectPlugin("functionSent")}else if(!this.hasPlugin("functionSent")){this.unexpected()}return this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;const s=this.state.containsEsc;e.property=this.parseIdentifier(true);if(e.property.name!==r||s){this.raise(p.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r})}return this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){this.next();if(this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation");this.next();e.phase=t?"source":"defer";return this.parseImportCall(e)}else{const t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);if(this.isContextual(101)){if(!this.inModule){this.raise(p.ImportMetaOutsideModule,t)}this.sawUnambiguousESM=true}return this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,r){this.addExtra(r,"rawValue",e);this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end));r.value=e;this.next();return this.finishNode(r,t)}parseLiteral(e,t){const r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.startNode();this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end));t.pattern=e.pattern;t.flags=e.flags;this.next();return this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){const t=this.startNode();t.value=e;this.next();return this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();this.next();return this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let r;this.next();this.expressionScope.enter(newArrowHeadScope());const s=this.state.maybeInArrowParameters;const a=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=true;this.state.inFSharpPipelineDirectBody=false;const n=this.state.startLoc;const i=[];const o=new ExpressionErrors;let l=true;let c;let u;while(!this.match(11)){if(l){l=false}else{this.expect(12,o.optionalParametersLoc===null?null:o.optionalParametersLoc);if(this.match(11)){u=this.state.startLoc;break}}if(this.match(21)){const e=this.state.startLoc;c=this.state.startLoc;i.push(this.parseParenItem(this.parseRestBinding(),e));if(!this.checkCommaAfterRest(41)){break}}else{i.push(this.parseMaybeAssignAllowIn(o,this.parseParenItem))}}const p=this.state.lastTokEndLoc;this.expect(11);this.state.maybeInArrowParameters=s;this.state.inFSharpPipelineDirectBody=a;let d=this.startNodeAt(t);if(e&&this.shouldParseArrow(i)&&(d=this.parseArrow(d))){this.checkDestructuringPrivate(o);this.expressionScope.validateAsPattern();this.expressionScope.exit();this.parseArrowExpression(d,i,false);return d}this.expressionScope.exit();if(!i.length){this.unexpected(this.state.lastTokStartLoc)}if(u)this.unexpected(u);if(c)this.unexpected(c);this.checkExpressionErrors(o,true);this.toReferencedListDeep(i,true);if(i.length>1){r=this.startNodeAt(n);r.expressions=i;this.finishNode(r,"SequenceExpression");this.resetEndLocation(r,p)}else{r=i[0]}return this.wrapParenthesis(t,r)}wrapParenthesis(e,t){if(!(this.optionFlags&1024)){this.addExtra(t,"parenthesized",true);this.addExtra(t,"parenStart",e.index);this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index);return t}const r=this.startNodeAt(e);r.expression=t;return this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19)){return e}}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();this.next();if(this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const r=this.parseMetaProperty(e,t,"target");if(!this.scope.inNonArrowFunction&&!this.scope.inClass&&!(this.optionFlags&4)){this.raise(p.UnexpectedNewTarget,r)}return r}return this.parseNew(e)}parseNew(e){this.parseNewCallee(e);if(this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t);e.arguments=t}else{e.arguments=[]}return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83);const r=this.parseNoCallExpr();e.callee=r;if(t&&(r.type==="Import"||r.type==="ImportExpression")){this.raise(p.ImportCallNotNewExpression,r)}}parseTemplateElement(e){const{start:t,startLoc:r,end:s,value:a}=this.state;const n=t+1;const i=this.startNodeAt(createPositionWithColumnOffset(r,1));if(a===null){if(!e){this.raise(p.InvalidEscapeSequenceTemplate,createPositionWithColumnOffset(this.state.firstInvalidTemplateEscapePos,1))}}const o=this.match(24);const l=o?-1:-2;const c=s+l;i.value={raw:this.input.slice(n,c).replace(/\r\n?/g,"\n"),cooked:a===null?null:a.slice(1,l)};i.tail=o;this.next();const u=this.finishNode(i,"TemplateElement");this.resetEndLocation(u,createPositionWithColumnOffset(this.state.lastTokEndLoc,l));return u}parseTemplate(e){const t=this.startNode();let r=this.parseTemplateElement(e);const s=[r];const a=[];while(!r.tail){a.push(this.parseTemplateSubstitution());this.readTemplateContinuation();s.push(r=this.parseTemplateElement(e))}t.expressions=a;t.quasis=s;return this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,s){if(r){this.expectPlugin("recordAndTuple")}const a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;let n=false;let i=true;const o=this.startNode();o.properties=[];this.next();while(!this.match(e)){if(i){i=false}else{this.expect(12);if(this.match(e)){this.addTrailingCommaExtraToNode(o);break}}let a;if(t){a=this.parseBindingProperty()}else{a=this.parsePropertyDefinition(s);n=this.checkProto(a,r,n,s)}if(r&&!this.isObjectProperty(a)&&a.type!=="SpreadElement"){this.raise(p.InvalidRecordProperty,a)}{if(a.shorthand){this.addExtra(a,"shorthand",true)}}o.properties.push(a)}this.next();this.state.inFSharpPipelineDirectBody=a;let l="ObjectExpression";if(t){l="ObjectPattern"}else if(r){l="RecordExpression"}return this.finishNode(o,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index);this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,false)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26)){if(this.hasPlugin("decorators")){this.raise(p.UnsupportedPropertyDecorator,this.state.startLoc)}while(this.match(26)){t.push(this.parseDecorator())}}const r=this.startNode();let s=false;let a=false;let n;if(this.match(21)){if(t.length)this.unexpected();return this.parseSpread()}if(t.length){r.decorators=t;t=[]}r.method=false;if(e){n=this.state.startLoc}let i=this.eat(55);this.parsePropertyNamePrefixOperator(r);const o=this.state.containsEsc;this.parsePropertyName(r,e);if(!i&&!o&&this.maybeAsyncOrAccessorProp(r)){const{key:e}=r;const t=e.name;if(t==="async"&&!this.hasPrecedingLineBreak()){s=true;this.resetPreviousNodeTrailingComments(e);i=this.eat(55);this.parsePropertyName(r)}if(t==="get"||t==="set"){a=true;this.resetPreviousNodeTrailingComments(e);r.kind=t;if(this.match(55)){i=true;this.raise(p.AccessorIsGenerator,this.state.curPosition(),{kind:t});this.next()}this.parsePropertyName(r)}}return this.parseObjPropValue(r,n,i,s,false,a,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const r=this.getGetterSetterExpectedParamCount(e);const s=this.getObjectOrClassMethodParams(e);if(s.length!==r){this.raise(e.kind==="get"?p.BadGetterArity:p.BadSetterArity,e)}if(e.kind==="set"&&((t=s[s.length-1])==null?void 0:t.type)==="RestElement"){this.raise(p.BadSetterRestParameter,e)}}parseObjectMethod(e,t,r,s,a){if(a){const r=this.parseMethod(e,t,false,false,false,"ObjectMethod");this.checkGetterSetterParams(r);return r}if(r||t||this.match(10)){if(s)this.unexpected();e.kind="method";e.method=true;return this.parseMethod(e,t,r,false,false,"ObjectMethod")}}parseObjectProperty(e,t,r,s){e.shorthand=false;if(this.eat(14)){e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(s);return this.finishObjectProperty(e)}if(!e.computed&&e.key.type==="Identifier"){this.checkReservedWord(e.key.name,e.key.loc.start,true,false);if(r){e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else if(this.match(29)){const r=this.state.startLoc;if(s!=null){if(s.shorthandAssignLoc===null){s.shorthandAssignLoc=r}}else{this.raise(p.InvalidCoverInitializedName,r)}e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else{e.value=this.cloneIdentifier(e.key)}e.shorthand=true;return this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,r,s,a,n,i){const o=this.parseObjectMethod(e,r,s,a,n)||this.parseObjectProperty(e,t,a,i);if(!o)this.unexpected();return o}parsePropertyName(e,t){if(this.eat(0)){e.computed=true;e.key=this.parseMaybeAssignAllowIn();this.expect(3)}else{const{type:r,value:s}=this.state;let a;if(tokenIsKeywordOrIdentifier(r)){a=this.parseIdentifier(true)}else{switch(r){case 135:a=this.parseNumericLiteral(s);break;case 134:a=this.parseStringLiteral(s);break;case 136:a=this.parseBigIntLiteral(s);break;case 139:{const e=this.state.startLoc;if(t!=null){if(t.privateKeyLoc===null){t.privateKeyLoc=e}}else{this.raise(p.UnexpectedPrivateField,e)}a=this.parsePrivateName();break}default:if(r===137){a=this.parseDecimalLiteral(s);break}this.unexpected()}}e.key=a;if(r!==139){e.computed=false}}}initFunction(e,t){e.id=null;e.generator=false;e.async=t}parseMethod(e,t,r,s,a,n,i=false){this.initFunction(e,r);e.generator=t;this.scope.enter(2|16|(i?64:0)|(a?32:0));this.prodParam.enter(functionFlags(r,e.generator));this.parseFunctionParams(e,s);const o=this.parseFunctionBodyAndFinish(e,n,true);this.prodParam.exit();this.scope.exit();return o}parseArrayLike(e,t,r,s){if(r){this.expectPlugin("recordAndTuple")}const a=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=false;const n=this.startNode();this.next();n.elements=this.parseExprList(e,!r,s,n);this.state.inFSharpPipelineDirectBody=a;return this.finishNode(n,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,s){this.scope.enter(2|4);let a=functionFlags(r,false);if(!this.match(5)&&this.prodParam.hasIn){a|=8}this.prodParam.enter(a);this.initFunction(e,r);const n=this.state.maybeInArrowParameters;if(t){this.state.maybeInArrowParameters=true;this.setArrowFunctionParameters(e,t,s)}this.state.maybeInArrowParameters=false;this.parseFunctionBody(e,true);this.prodParam.exit();this.scope.exit();this.state.maybeInArrowParameters=n;return this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,false);e.params=t}parseFunctionBodyAndFinish(e,t,r=false){this.parseFunctionBody(e,false,r);return this.finishNode(e,t)}parseFunctionBody(e,t,r=false){const s=t&&!this.match(5);this.expressionScope.enter(newExpressionScope());if(s){e.body=this.parseMaybeAssign();this.checkParams(e,false,t,false)}else{const s=this.state.strict;const a=this.state.labels;this.state.labels=[];this.prodParam.enter(this.prodParam.currentFlags()|4);e.body=this.parseBlock(true,false,(a=>{const n=!this.isSimpleParamList(e.params);if(a&&n){this.raise(p.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&!!e.key?e.key.loc.end:e)}const i=!s&&this.state.strict;this.checkParams(e,!this.state.strict&&!t&&!r&&!n,t,i);if(this.state.strict&&e.id){this.checkIdentifier(e.id,65,i)}}));this.prodParam.exit();this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++){if(!this.isSimpleParameter(e[t]))return false}return true}checkParams(e,t,r,s=true){const a=!t&&new Set;const n={type:"FormalParameters"};for(const t of e.params){this.checkLVal(t,n,5,a,s)}}parseExprList(e,t,r,s){const a=[];let n=true;while(!this.eat(e)){if(n){n=false}else{this.expect(12);if(this.match(e)){if(s){this.addTrailingCommaExtraToNode(s)}this.next();break}}a.push(this.parseExprListItem(t,r))}return a}parseExprListItem(e,t,r){let s;if(this.match(12)){if(!e){this.raise(p.UnexpectedToken,this.state.curPosition(),{unexpected:","})}s=null}else if(this.match(21)){const e=this.state.startLoc;s=this.parseParenItem(this.parseSpread(t),e)}else if(this.match(17)){this.expectPlugin("partialApplication");if(!r){this.raise(p.UnexpectedArgumentPlaceholder,this.state.startLoc)}const e=this.startNode();this.next();s=this.finishNode(e,"ArgumentPlaceholder")}else{s=this.parseMaybeAssignAllowIn(t,this.parseParenItem)}return s}parseIdentifier(e){const t=this.startNode();const r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){e.name=t;e.loc.identifierName=t;return this.finishNode(e,"Identifier")}createIdentifierAt(e,t,r){e.name=t;e.loc.identifierName=t;return this.finishNodeAt(e,"Identifier",r)}parseIdentifierName(e){let t;const{startLoc:r,type:s}=this.state;if(tokenIsKeywordOrIdentifier(s)){t=this.state.value}else{this.unexpected()}const a=tokenKeywordOrIdentifierIsKeyword(s);if(e){if(a){this.replaceToken(132)}}else{this.checkReservedWord(t,r,a,false)}this.next();return t}checkReservedWord(e,t,r,s){if(e.length>10){return}if(!canBeReservedWord(e)){return}if(r&&isKeyword(e)){this.raise(p.UnexpectedKeyword,t,{keyword:e});return}const a=!this.state.strict?isReservedWord:s?isStrictBindReservedWord:isStrictReservedWord;if(a(e,this.inModule)){this.raise(p.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(p.YieldBindingIdentifier,t);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(p.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(p.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(p.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){const e=this.prodParam.hasAwait||this.optionFlags&1&&!this.scope.inFunction;if(e&&!this.scope.inFunction){this.state.hasTopLevelAwait=true}return e}parseAwait(e){const t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(p.AwaitExpressionFormalParameter,t);if(this.eat(55)){this.raise(p.ObsoleteAwaitStar,t)}if(!this.scope.inFunction&&!(this.optionFlags&1)){if(this.isAmbiguousPrefixOrIdentifier()){this.ambiguousScriptDifferentAst=true}else{this.sawUnambiguousESM=true}}if(!this.state.soloAwait){t.argument=this.parseMaybeUnary(null,true)}return this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return true;const{type:e}=this.state;return e===53||e===10||e===0||tokenIsTemplate(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){const t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(p.YieldInParameter,t);let r=false;let s=null;if(!this.hasPrecedingLineBreak()){r=this.eat(55);switch(this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:s=this.parseMaybeAssign()}}t.delegate=r;t.argument=s;return this.finishNode(t,"YieldExpression")}parseImportCall(e){this.next();e.source=this.parseMaybeAssignAllowIn();e.options=null;if(this.eat(12)){if(!this.match(11)){e.options=this.parseMaybeAssignAllowIn();if(this.eat(12)){this.addTrailingCommaExtraToNode(e.options);if(!this.match(11)){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(p.ImportCallArity,e)}}}else{this.addTrailingCommaExtraToNode(e.source)}}this.expect(11);return this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(e.type==="SequenceExpression"){this.raise(p.PipelineHeadSequenceExpression,t)}}}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const r=this.startNodeAt(t);r.callee=e;return this.finishNode(r,"PipelineBareFunction")}else{const r=this.startNodeAt(t);this.checkSmartPipeTopicBodyEarlyErrors(t);r.expression=e;return this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return true;default:return false}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19)){throw this.raise(p.PipelineBodyNoArrow,this.state.startLoc)}if(!this.topicReferenceWasUsedInCurrentContext()){this.raise(p.PipelineTopicUnused,e)}}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else{return e()}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=true;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();const r=8&~t;if(r){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();const r=8&t;if(r){this.prodParam.enter(t&~8);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=true;const s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);this.state.inFSharpPipelineDirectBody=r;return s}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next();if(!this.match(5)){this.unexpected(null,5)}const t=this.startNodeAt(this.state.endLoc);this.next();const r=this.initializeScopes(true);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parsePropertyNamePrefixOperator(e){}}const le={kind:1},ce={kind:2};const ue=/[\uD800-\uDFFF]/u;const pe=/in(?:stanceof)?/y;function babel7CompatTokens(e,t,r){for(let s=0;s<e.length;s++){const a=e[s];const{type:n}=a;if(typeof n==="number"){{if(n===139){const{loc:t,start:r,value:n,end:i}=a;const o=r+1;const l=createPositionWithColumnOffset(t.start,1);e.splice(s,1,new Token({type:getExportedToken(27),value:"#",start:r,end:o,startLoc:t.start,endLoc:l}),new Token({type:getExportedToken(132),value:n,start:o,end:i,startLoc:l,endLoc:t.end}));s++;continue}if(tokenIsTemplate(n)){const{loc:i,start:o,value:l,end:c}=a;const u=o+1;const p=createPositionWithColumnOffset(i.start,1);let d;if(t.charCodeAt(o-r)===96){d=new Token({type:getExportedToken(22),value:"`",start:o,end:u,startLoc:i.start,endLoc:p})}else{d=new Token({type:getExportedToken(8),value:"}",start:o,end:u,startLoc:i.start,endLoc:p})}let f,y,h,g;if(n===24){y=c-1;h=createPositionWithColumnOffset(i.end,-1);f=l===null?null:l.slice(1,-1);g=new Token({type:getExportedToken(22),value:"`",start:y,end:c,startLoc:h,endLoc:i.end})}else{y=c-2;h=createPositionWithColumnOffset(i.end,-2);f=l===null?null:l.slice(1,-2);g=new Token({type:getExportedToken(23),value:"${",start:y,end:c,startLoc:h,endLoc:i.end})}e.splice(s,1,d,new Token({type:getExportedToken(20),value:f,start:u,end:y,startLoc:p,endLoc:h}),g);s+=2;continue}}a.type=getExportedToken(n)}}return e}class StatementParser extends ExpressionParser{parseTopLevel(e,t){e.program=this.parseProgram(t);e.comments=this.comments;if(this.optionFlags&256){e.tokens=babel7CompatTokens(this.tokens,this.input,this.startIndex)}return this.finishNode(e,"File")}parseProgram(e,t=140,r=this.options.sourceType){e.sourceType=r;e.interpreter=this.parseInterpreterDirective();this.parseBlockBody(e,true,true,t);if(this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0){for(const[e,t]of Array.from(this.scope.undefinedExports)){this.raise(p.ModuleExportUndefined,t,{localName:e})}}this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let s;if(t===140){s=this.finishNode(e,"Program")}else{s=this.finishNodeAt(e,"Program",createPositionWithColumnOffset(this.state.startLoc,-1))}return s}stmtToDirective(e){const t=this.castNodeTo(e,"Directive");const r=this.castNodeTo(e.expression,"DirectiveLiteral");const s=r.value;const a=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end));const n=r.value=a.slice(1,-1);this.addExtra(r,"raw",a);this.addExtra(r,"rawValue",n);this.addExtra(r,"expressionValue",s);t.value=r;delete e.expression;return t}parseInterpreterDirective(){if(!this.match(28)){return null}const e=this.startNode();e.value=this.state.value;this.next();return this.finishNode(e,"InterpreterDirective")}isLet(){if(!this.isContextual(100)){return false}return this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107)){return false}const e=this.nextTokenInLineStart();const t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96)){return false}let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e)){this.expectPlugin("explicitResourceManagement");return true}}return false}chStartsBindingIdentifier(e,t){if(isIdentifierStart(e)){pe.lastIndex=t;if(pe.test(this.input)){const e=this.codePointAtPos(pe.lastIndex);if(!isIdentifierChar(e)&&e!==92){return false}}return true}else if(e===92){return true}else{return false}}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){const e=this.nextTokenStart();const t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){const e=this.nextTokenInLineStart();const t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}allowsForUsing(){const{type:e,containsEsc:t,end:r}=this.lookahead();if(e===102&&!t){const e=this.lookaheadCharCodeSince(r);if(e!==61&&e!==58&&e!==59){return false}}if(tokenIsIdentifier(e)&&!this.hasFollowingLineBreak()){this.expectPlugin("explicitResourceManagement");return true}return false}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(1|2|4|8)}parseStatementListItem(){return this.parseStatementLike(2|4|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=false){let t=0;if(this.options.annexB&&!this.state.strict){t|=4;if(e){t|=8}}return this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;if(this.match(26)){t=this.parseDecorators(true)}return this.parseStatementContent(e,t)}parseStatementContent(e,t){const r=this.state.type;const s=this.startNode();const a=!!(e&2);const n=!!(e&4);const i=e&1;switch(r){case 60:return this.parseBreakContinueStatement(s,true);case 63:return this.parseBreakContinueStatement(s,false);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;if(!n){this.raise(this.state.strict?p.StrictFunction:this.options.annexB?p.SloppyFunctionAnnexB:p.SloppyFunction,this.state.startLoc)}return this.parseFunctionStatement(s,false,!a&&n);case 80:if(!a)this.unexpected();return this.parseClass(this.maybeTakeDecorators(t,s),true);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing()){if(!this.allowsUsing()){this.raise(p.UnexpectedUsingDeclaration,s)}else if(!a){this.raise(p.UnexpectedLexicalDeclaration,s)}else if(!this.recordAwaitIfAllowed()){this.raise(p.AwaitUsingNotInAsyncContext,s)}this.next();return this.parseVarStatement(s,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace()){break}this.expectPlugin("explicitResourceManagement");if(!this.allowsUsing()){this.raise(p.UnexpectedUsingDeclaration,this.state.startLoc)}else if(!a){this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc)}return this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc){break}const e=this.nextTokenStart();const t=this.codePointAtPos(e);if(t!==91){if(!a&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&t!==123){break}}}case 75:{if(!a){this.raise(p.UnexpectedLexicalDeclaration,this.state.startLoc)}}case 74:{const e=this.state.value;return this.parseVarStatement(s,e)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{const e=this.lookaheadCharCode();if(e===40||e===46){break}}case 82:{if(!(this.optionFlags&8)&&!i){this.raise(p.UnexpectedImportExport,this.state.startLoc)}this.next();let e;if(r===83){e=this.parseImport(s)}else{e=this.parseExport(s,t)}this.assertModuleNodeAllowed(e);return e}default:{if(this.isAsyncFunction()){if(!a){this.raise(p.AsyncFunctionInSingleStatementContext,this.state.startLoc)}this.next();return this.parseFunctionStatement(s,true,!a&&n)}}}const o=this.state.value;const l=this.parseExpression();if(tokenIsIdentifier(r)&&l.type==="Identifier"&&this.eat(14)){return this.parseLabeledStatement(s,o,l,e)}else{return this.parseExpressionStatement(s,l,t)}}assertModuleNodeAllowed(e){if(!(this.optionFlags&8)&&!this.inModule){this.raise(p.ImportOutsideModule,e)}}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return true;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==false}maybeTakeDecorators(e,t,r){if(e){var s;if((s=t.decorators)!=null&&s.length){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean"){this.raise(p.DecoratorsBeforeAfterExport,t.decorators[0])}t.decorators.unshift(...e)}else{t.decorators=e}this.resetStartLocationFromNode(t,e[0]);if(r)this.resetStartLocationFromNode(r,t)}return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82)){if(!e){this.unexpected()}if(!this.decoratorsEnabledBeforeExport()){this.raise(p.DecoratorExportClass,this.state.startLoc)}}else if(!this.canHaveLeadingDecorator()){throw this.raise(p.UnexpectedLeadingDecorator,this.state.startLoc)}return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();this.next();if(this.hasPlugin("decorators")){const t=this.state.startLoc;let r;if(this.match(10)){const t=this.state.startLoc;this.next();r=this.parseExpression();this.expect(11);r=this.wrapParenthesis(t,r);const s=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(r,t);if(this.getPluginOption("decorators","allowCallParenthesized")===false&&e.expression!==r){this.raise(p.DecoratorArgumentsOutsideParentheses,s)}}else{r=this.parseIdentifier(false);while(this.eat(16)){const e=this.startNodeAt(t);e.object=r;if(this.match(139)){this.classScope.usePrivateName(this.state.value,this.state.startLoc);e.property=this.parsePrivateName()}else{e.property=this.parseIdentifier(true)}e.computed=false;r=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r,t)}}else{e.expression=this.parseExprSubscripts()}return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){const r=this.startNodeAt(t);r.callee=e;r.arguments=this.parseCallExpressionArguments(11);this.toReferencedList(r.arguments);return this.finishNode(r,"CallExpression")}return e}parseBreakContinueStatement(e,t){this.next();if(this.isLineTerminator()){e.label=null}else{e.label=this.parseIdentifier();this.semicolon()}this.verifyBreakContinue(e,t);return this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){const s=this.state.labels[r];if(e.label==null||s.name===e.label.name){if(s.kind!=null&&(t||s.kind===1)){break}if(e.label&&t)break}}if(r===this.state.labels.length){const r=t?"BreakStatement":"ContinueStatement";this.raise(p.IllegalBreakContinue,e,{type:r})}}parseDebuggerStatement(e){this.next();this.semicolon();return this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();this.expect(11);return e}parseDoWhileStatement(e){this.next();this.state.labels.push(le);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.state.labels.pop();this.expect(92);e.test=this.parseHeaderExpression();this.eat(13);return this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next();this.state.labels.push(le);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()){t=this.state.startLoc;this.next()}this.scope.enter(0);this.expect(10);if(this.match(13)){if(t!==null){this.unexpected(t)}return this.parseFor(e,null)}const r=this.isContextual(100);{const s=this.isAwaitUsing();const a=s||this.isContextual(107)&&this.allowsForUsing();const n=r&&this.hasFollowingBindingAtom()||a;if(this.match(74)||this.match(75)||n){const r=this.startNode();let n;if(s){n="await using";if(!this.recordAwaitIfAllowed()){this.raise(p.AwaitUsingNotInAsyncContext,this.state.startLoc)}this.next()}else{n=this.state.value}this.next();this.parseVar(r,true,n);const i=this.finishNode(r,"VariableDeclaration");const o=this.match(58);if(o&&a){this.raise(p.ForInUsing,i)}if((o||this.isContextual(102))&&i.declarations.length===1){return this.parseForIn(e,i,t)}if(t!==null){this.unexpected(t)}return this.parseFor(e,i)}}const s=this.isContextual(95);const a=new ExpressionErrors;const n=this.parseExpression(true,a);const i=this.isContextual(102);if(i){if(r){this.raise(p.ForOfLet,n)}if(t===null&&s&&n.type==="Identifier"){this.raise(p.ForOfAsync,n)}}if(i||this.match(58)){this.checkDestructuringPrivate(a);this.toAssignable(n,true);const r=i?"ForOfStatement":"ForInStatement";this.checkLVal(n,{type:r});return this.parseForIn(e,n,t)}else{this.checkExpressionErrors(a,true)}if(t!==null){this.unexpected(t)}return this.parseFor(e,n)}parseFunctionStatement(e,t,r){this.next();return this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){this.next();e.test=this.parseHeaderExpression();e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration();e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null;return this.finishNode(e,"IfStatement")}parseReturnStatement(e){if(!this.prodParam.hasReturn&&!(this.optionFlags&2)){this.raise(p.IllegalReturn,this.state.startLoc)}this.next();if(this.isLineTerminator()){e.argument=null}else{e.argument=this.parseExpression();this.semicolon()}return this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next();e.discriminant=this.parseHeaderExpression();const t=e.cases=[];this.expect(5);this.state.labels.push(ce);this.scope.enter(256);let r;for(let e;!this.match(8);){if(this.match(61)||this.match(65)){const s=this.match(61);if(r)this.finishNode(r,"SwitchCase");t.push(r=this.startNode());r.consequent=[];this.next();if(s){r.test=this.parseExpression()}else{if(e){this.raise(p.MultipleDefaultsInSwitch,this.state.lastTokStartLoc)}e=true;r.test=null}this.expect(14)}else{if(r){r.consequent.push(this.parseStatementListItem())}else{this.unexpected()}}}this.scope.exit();if(r)this.finishNode(r,"SwitchCase");this.next();this.state.labels.pop();return this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){this.next();if(this.hasPrecedingLineBreak()){this.raise(p.NewlineAfterThrow,this.state.lastTokEndLoc)}e.argument=this.parseExpression();this.semicolon();return this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0);this.checkLVal(e,{type:"CatchClause"},9);return e}parseTryStatement(e){this.next();e.block=this.parseBlock();e.handler=null;if(this.match(62)){const t=this.startNode();this.next();if(this.match(10)){this.expect(10);t.param=this.parseCatchClauseParam();this.expect(11)}else{t.param=null;this.scope.enter(0)}t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(false,false)));this.scope.exit();e.handler=this.finishNode(t,"CatchClause")}e.finalizer=this.eat(67)?this.parseBlock():null;if(!e.handler&&!e.finalizer){this.raise(p.NoCatchOrFinally,e)}return this.finishNode(e,"TryStatement")}parseVarStatement(e,t,r=false){this.next();this.parseVar(e,false,t,r);this.semicolon();return this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){this.next();e.test=this.parseHeaderExpression();this.state.labels.push(le);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.state.labels.pop();return this.finishNode(e,"WhileStatement")}parseWithStatement(e){if(this.state.strict){this.raise(p.StrictWith,this.state.startLoc)}this.next();e.object=this.parseHeaderExpression();e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));return this.finishNode(e,"WithStatement")}parseEmptyStatement(e){this.next();return this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,s){for(const e of this.state.labels){if(e.name===t){this.raise(p.LabelRedeclaration,r,{labelName:t})}}const a=tokenIsLoop(this.state.type)?1:this.match(71)?2:null;for(let t=this.state.labels.length-1;t>=0;t--){const r=this.state.labels[t];if(r.statementStart===e.start){r.statementStart=this.sourceToOffsetPos(this.state.start);r.kind=a}else{break}}this.state.labels.push({name:t,kind:a,statementStart:this.sourceToOffsetPos(this.state.start)});e.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(true):this.parseStatement();this.state.labels.pop();e.label=r;return this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){e.expression=t;this.semicolon();return this.finishNode(e,"ExpressionStatement")}parseBlock(e=false,t=true,r){const s=this.startNode();if(e){this.state.strictErrors.clear()}this.expect(5);if(t){this.scope.enter(0)}this.parseBlockBody(s,e,false,8,r);if(t){this.scope.exit()}return this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,s,a){const n=e.body=[];const i=e.directives=[];this.parseBlockOrModuleBlockBody(n,t?i:undefined,r,s,a)}parseBlockOrModuleBlockBody(e,t,r,s,a){const n=this.state.strict;let i=false;let o=false;while(!this.match(s)){const s=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(s)){const e=this.stmtToDirective(s);t.push(e);if(!i&&e.value.value==="use strict"){i=true;this.setStrict(true)}continue}o=true;this.state.strictErrors.clear()}e.push(s)}a==null||a.call(this,i);if(!n){this.setStrict(false)}this.next()}parseFor(e,t){e.init=t;this.semicolon(false);e.test=this.match(13)?null:this.parseExpression();this.semicolon(false);e.update=this.match(11)?null:this.parseExpression();this.expect(11);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.scope.exit();this.state.labels.pop();return this.finishNode(e,"ForStatement")}parseForIn(e,t,r){const s=this.match(58);this.next();if(s){if(r!==null)this.unexpected(r)}else{e.await=r!==null}if(t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")){this.raise(p.ForInOfLoopInitializer,t,{type:s?"ForInStatement":"ForOfStatement"})}if(t.type==="AssignmentPattern"){this.raise(p.InvalidLhs,t,{ancestor:{type:"ForStatement"}})}e.left=t;e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn();this.expect(11);e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement()));this.scope.exit();this.state.labels.pop();return this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,t,r,s=false){const a=e.declarations=[];e.kind=r;for(;;){const e=this.startNode();this.parseVarId(e,r);e.init=!this.eat(29)?null:t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn();if(e.init===null&&!s){if(e.id.type!=="Identifier"&&!(t&&(this.match(58)||this.isContextual(102)))){this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})}else if((r==="const"||r==="using"||r==="await using")&&!(this.match(58)||this.isContextual(102))){this.raise(p.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r})}}a.push(this.finishNode(e,"VariableDeclarator"));if(!this.eat(12))break}return e}parseVarId(e,t){const r=this.parseBindingAtom();if(t==="using"||t==="await using"){if(r.type==="ArrayPattern"||r.type==="ObjectPattern"){this.raise(p.UsingDeclarationHasBindingPattern,r.loc.start)}}this.checkLVal(r,{type:"VariableDeclarator"},t==="var"?5:8201);e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){const r=t&2;const s=!!(t&1);const a=s&&!(t&4);const n=!!(t&8);this.initFunction(e,n);if(this.match(55)){if(r){this.raise(p.GeneratorInSingleStatementContext,this.state.startLoc)}this.next();e.generator=true}if(s){e.id=this.parseFunctionId(a)}const i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=false;this.scope.enter(2);this.prodParam.enter(functionFlags(n,e.generator));if(!s){e.id=this.parseFunctionId()}this.parseFunctionParams(e,false);this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}));this.prodParam.exit();this.scope.exit();if(s&&!r){this.registerFunctionStatementId(e)}this.state.maybeInArrowParameters=i;return e}parseFunctionId(e){return e||tokenIsIdentifier(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10);this.expressionScope.enter(newParameterDeclarationScope());e.params=this.parseBindingList(11,41,2|(t?4:0));this.expressionScope.exit()}registerFunctionStatementId(e){if(!e.id)return;this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,r){this.next();const s=this.state.strict;this.state.strict=true;this.parseClassId(e,t,r);this.parseClassSuper(e);e.body=this.parseClassBody(!!e.superClass,s);return this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();const r={hadConstructor:false,hadSuperClass:e};let s=[];const a=this.startNode();a.body=[];this.expect(5);this.withSmartMixTopicForbiddingContext((()=>{while(!this.match(8)){if(this.eat(13)){if(s.length>0){throw this.raise(p.DecoratorSemicolon,this.state.lastTokEndLoc)}continue}if(this.match(26)){s.push(this.parseDecorator());continue}const e=this.startNode();if(s.length){e.decorators=s;this.resetStartLocationFromNode(e,s[0]);s=[]}this.parseClassMember(a,e,r);if(e.kind==="constructor"&&e.decorators&&e.decorators.length>0){this.raise(p.DecoratorConstructor,e)}}}));this.state.strict=t;this.next();if(s.length){throw this.raise(p.TrailingDecorator,this.state.startLoc)}this.classScope.exit();return this.finishNode(a,"ClassBody")}parseClassMemberFromModifier(e,t){const r=this.parseIdentifier(true);if(this.isClassMethod()){const s=t;s.kind="method";s.computed=false;s.key=r;s.static=false;this.pushClassMethod(e,s,false,false,false,false);return true}else if(this.isClassProperty()){const s=t;s.computed=false;s.key=r;s.static=false;e.body.push(this.parseClassProperty(s));return true}this.resetPreviousNodeTrailingComments(r);return false}parseClassMember(e,t,r){const s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,t)){return}if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,r,s)}parseClassMemberWithIsStatic(e,t,r,s){const a=t;const n=t;const i=t;const o=t;const l=t;const c=a;const u=a;t.static=s;this.parsePropertyNamePrefixOperator(t);if(this.eat(55)){c.kind="method";const t=this.match(139);this.parseClassElementName(c);this.parsePostMemberNameModifiers(c);if(t){this.pushClassPrivateMethod(e,n,true,false);return}if(this.isNonstaticConstructor(a)){this.raise(p.ConstructorIsGenerator,a.key)}this.pushClassMethod(e,a,true,false,false,false);return}const d=!this.state.containsEsc&&tokenIsIdentifier(this.state.type);const f=this.parseClassElementName(t);const y=d?f.name:null;const h=this.isPrivateName(f);const g=this.state.startLoc;this.parsePostMemberNameModifiers(u);if(this.isClassMethod()){c.kind="method";if(h){this.pushClassPrivateMethod(e,n,false,false);return}const s=this.isNonstaticConstructor(a);let i=false;if(s){a.kind="constructor";if(r.hadConstructor&&!this.hasPlugin("typescript")){this.raise(p.DuplicateConstructor,f)}if(s&&this.hasPlugin("typescript")&&t.override){this.raise(p.OverrideOnConstructor,f)}r.hadConstructor=true;i=r.hadSuperClass}this.pushClassMethod(e,a,false,false,s,i)}else if(this.isClassProperty()){if(h){this.pushClassPrivateProperty(e,o)}else{this.pushClassProperty(e,i)}}else if(y==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(f);const t=this.eat(55);if(u.optional){this.unexpected(g)}c.kind="method";const r=this.match(139);this.parseClassElementName(c);this.parsePostMemberNameModifiers(u);if(r){this.pushClassPrivateMethod(e,n,t,true)}else{if(this.isNonstaticConstructor(a)){this.raise(p.ConstructorIsAsync,a.key)}this.pushClassMethod(e,a,t,true,false,false)}}else if((y==="get"||y==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(f);c.kind=y;const t=this.match(139);this.parseClassElementName(a);if(t){this.pushClassPrivateMethod(e,n,false,false)}else{if(this.isNonstaticConstructor(a)){this.raise(p.ConstructorIsAccessor,a.key)}this.pushClassMethod(e,a,false,false,false,false)}this.checkGetterSetterParams(a)}else if(y==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors");this.resetPreviousNodeTrailingComments(f);const t=this.match(139);this.parseClassElementName(i);this.pushClassAccessorProperty(e,l,t)}else if(this.isLineTerminator()){if(h){this.pushClassPrivateProperty(e,o)}else{this.pushClassProperty(e,i)}}else{this.unexpected()}}parseClassElementName(e){const{type:t,value:r}=this.state;if((t===132||t===134)&&e.static&&r==="prototype"){this.raise(p.StaticPrototype,this.state.startLoc)}if(t===139){if(r==="constructor"){this.raise(p.ConstructorClassPrivateField,this.state.startLoc)}const t=this.parsePrivateName();e.key=t;return t}this.parsePropertyName(e);return e.key}parseClassStaticBlock(e,t){var r;this.scope.enter(64|128|16);const s=this.state.labels;this.state.labels=[];this.prodParam.enter(0);const a=t.body=[];this.parseBlockOrModuleBlockBody(a,undefined,false,8);this.prodParam.exit();this.scope.exit();this.state.labels=s;e.body.push(this.finishNode(t,"StaticBlock"));if((r=t.decorators)!=null&&r.length){this.raise(p.DecoratorStaticBlock,t)}}pushClassProperty(e,t){if(!t.computed&&this.nameIsConstructor(t.key)){this.raise(p.ConstructorClassField,t.key)}e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const r=this.parseClassPrivateProperty(t);e.body.push(r);this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){if(!r&&!t.computed&&this.nameIsConstructor(t.key)){this.raise(p.ConstructorClassField,t.key)}const s=this.parseClassAccessorProperty(t);e.body.push(s);if(r){this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}}pushClassMethod(e,t,r,s,a,n){e.body.push(this.parseMethod(t,r,s,a,n,"ClassMethod",true))}pushClassPrivateMethod(e,t,r,s){const a=this.parseMethod(t,r,s,false,false,"ClassPrivateMethod",true);e.body.push(a);const n=a.kind==="get"?a.static?6:2:a.kind==="set"?a.static?5:1:0;this.declareClassPrivateMethodInScope(a,n)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){this.parseInitializer(e);this.semicolon();return this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(64|16);this.expressionScope.enter(newExpressionScope());this.prodParam.enter(0);e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null;this.expressionScope.exit();this.prodParam.exit();this.scope.exit()}parseClassId(e,t,r,s=8331){if(tokenIsIdentifier(this.state.type)){e.id=this.parseIdentifier();if(t){this.declareNameFromIdentifier(e.id,s)}}else{if(r||!t){e.id=null}else{throw this.raise(p.MissingClassName,this.state.startLoc)}}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const r=this.parseMaybeImportPhase(e,true);const s=this.maybeParseExportDefaultSpecifier(e,r);const a=!s||this.eat(12);const n=a&&this.eatExportStar(e);const i=n&&this.maybeParseExportNamespaceSpecifier(e);const o=a&&(!i||this.eat(12));const l=s||n;if(n&&!i){if(s)this.unexpected();if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.parseExportFrom(e,true);this.sawUnambiguousESM=true;return this.finishNode(e,"ExportAllDeclaration")}const c=this.maybeParseExportNamedSpecifiers(e);if(s&&a&&!n&&!c){this.unexpected(null,5)}if(i&&o){this.unexpected(null,98)}let u;if(l||c){u=false;if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.parseExportFrom(e,l)}else{u=this.maybeParseExportDeclaration(e)}if(l||c||u){var d;const r=e;this.checkExport(r,true,false,!!r.source);if(((d=r.declaration)==null?void 0:d.type)==="ClassDeclaration"){this.maybeTakeDecorators(t,r.declaration,r)}else if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.sawUnambiguousESM=true;return this.finishNode(r,"ExportNamedDeclaration")}if(this.eat(65)){const r=e;const s=this.parseExportDefaultExpression();r.declaration=s;if(s.type==="ClassDeclaration"){this.maybeTakeDecorators(t,s,r)}else if(t){throw this.raise(p.UnsupportedDecoratorExport,e)}this.checkExport(r,true,true);this.sawUnambiguousESM=true;return this.finishNode(r,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",t==null?void 0:t.loc.start);const r=t||this.parseIdentifier(true);const s=this.startNodeAtNode(r);s.exported=r;e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")];return true}return false}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t,r;(r=(t=e).specifiers)!=null?r:t.specifiers=[];const s=this.startNodeAt(this.state.lastTokStartLoc);this.next();s.exported=this.parseModuleExportName();e.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier"));return true}return false}maybeParseExportNamedSpecifiers(e){if(this.match(5)){const t=e;if(!t.specifiers)t.specifiers=[];const r=t.exportKind==="type";t.specifiers.push(...this.parseExportSpecifiers(r));t.source=null;if(this.hasPlugin("importAssertions")){t.assertions=[]}else{t.attributes=[]}t.declaration=null;return true}return false}maybeParseExportDeclaration(e){if(this.shouldParseExportDeclaration()){e.specifiers=[];e.source=null;if(this.hasPlugin("importAssertions")){e.assertions=[]}else{e.attributes=[]}e.declaration=this.parseExportDeclaration(e);return true}return false}isAsyncFunction(){if(!this.isContextual(95))return false;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68)){this.next();return this.parseFunction(e,1|4)}else if(this.isAsyncFunction()){this.next();this.next();return this.parseFunction(e,1|4|8)}if(this.match(80)){return this.parseClass(e,true,true)}if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===true){this.raise(p.DecoratorBeforeExport,this.state.startLoc)}return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(false),this.startNode()),true,true)}if(this.match(75)||this.match(74)||this.isLet()||this.hasPlugin("explicitResourceManagement")&&(this.isUsing()||this.isAwaitUsing())){throw this.raise(p.UnsupportedDefaultExport,this.state.startLoc)}const t=this.parseMaybeAssignAllowIn();this.semicolon();return t}parseExportDeclaration(e){if(this.match(80)){const e=this.parseClass(this.startNode(),true,false);return e}return this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(tokenIsIdentifier(e)){if(e===95&&!this.state.containsEsc||e===100){return false}if((e===130||e===129)&&!this.state.containsEsc){const{type:e}=this.lookahead();if(tokenIsIdentifier(e)&&e!==98||e===5){this.expectOnePlugin(["flow","typescript"]);return false}}}else if(!this.match(65)){return false}const t=this.nextTokenStart();const r=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||tokenIsIdentifier(this.state.type)&&r){return true}if(this.match(65)&&r){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return e===34||e===39}return false}parseExportFrom(e,t){if(this.eatContextual(98)){e.source=this.parseImportSource();this.checkExport(e);this.maybeParseImportAttributes(e);this.checkJSONModuleImport(e)}else if(t){this.unexpected()}this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;if(e===26){this.expectOnePlugin(["decorators","decorators-legacy"]);if(this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===true){this.raise(p.DecoratorBeforeExport,this.state.startLoc)}return true}}if(this.hasPlugin("explicitResourceManagement")){if(this.isUsing()){this.raise(p.UsingDeclarationExport,this.state.startLoc);return true}if(this.isAwaitUsing()){this.raise(p.UsingDeclarationExport,this.state.startLoc);return true}}return e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,s){if(t){var a;if(r){this.checkDuplicateExports(e,"default");if(this.hasPlugin("exportDefaultFrom")){var n;const t=e.declaration;if(t.type==="Identifier"&&t.name==="from"&&t.end-t.start===4&&!((n=t.extra)!=null&&n.parenthesized)){this.raise(p.ExportDefaultFromAsIdentifier,t)}}}else if((a=e.specifiers)!=null&&a.length){for(const t of e.specifiers){const{exported:e}=t;const r=e.type==="Identifier"?e.name:e.value;this.checkDuplicateExports(t,r);if(!s&&t.local){const{local:e}=t;if(e.type!=="Identifier"){this.raise(p.ExportBindingIsString,t,{localName:e.value,exportName:r})}else{this.checkReservedWord(e.name,e.loc.start,true,false);this.scope.checkLocalExport(e)}}}}else if(e.declaration){const t=e.declaration;if(t.type==="FunctionDeclaration"||t.type==="ClassDeclaration"){const{id:r}=t;if(!r)throw new Error("Assertion failure");this.checkDuplicateExports(e,r.name)}else if(t.type==="VariableDeclaration"){for(const e of t.declarations){this.checkDeclaration(e.id)}}}}}checkDeclaration(e){if(e.type==="Identifier"){this.checkDuplicateExports(e,e.name)}else if(e.type==="ObjectPattern"){for(const t of e.properties){this.checkDeclaration(t)}}else if(e.type==="ArrayPattern"){for(const t of e.elements){if(t){this.checkDeclaration(t)}}}else if(e.type==="ObjectProperty"){this.checkDeclaration(e.value)}else if(e.type==="RestElement"){this.checkDeclaration(e.argument)}else if(e.type==="AssignmentPattern"){this.checkDeclaration(e.left)}}checkDuplicateExports(e,t){if(this.exportedIdentifiers.has(t)){if(t==="default"){this.raise(p.DuplicateDefaultExport,e)}else{this.raise(p.DuplicateExport,e,{exportName:t})}}this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let r=true;this.expect(5);while(!this.eat(8)){if(r){r=false}else{this.expect(12);if(this.eat(8))break}const s=this.isContextual(130);const a=this.match(134);const n=this.startNode();n.local=this.parseModuleExportName();t.push(this.parseExportSpecifier(n,a,e,s))}return t}parseExportSpecifier(e,t,r,s){if(this.eatContextual(93)){e.exported=this.parseModuleExportName()}else if(t){e.exported=this.cloneStringLiteral(e.local)}else if(!e.exported){e.exported=this.cloneIdentifier(e.local)}return this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const e=this.parseStringLiteral(this.state.value);const t=ue.exec(e.value);if(t){this.raise(p.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)})}return e}return this.parseIdentifier(true)}isJSONModuleImport(e){if(e.assertions!=null){return e.assertions.some((({key:e,value:t})=>t.value==="json"&&(e.type==="Identifier"?e.name==="type":e.value==="type")))}return false}checkImportReflection(e){const{specifiers:t}=e;const r=t.length===1?t[0].type:null;if(e.phase==="source"){if(r!=="ImportDefaultSpecifier"){this.raise(p.SourcePhaseImportRequiresDefault,t[0].loc.start)}}else if(e.phase==="defer"){if(r!=="ImportNamespaceSpecifier"){this.raise(p.DeferImportRequiresNamespace,t[0].loc.start)}}else if(e.module){var s;if(r!=="ImportDefaultSpecifier"){this.raise(p.ImportReflectionNotBinding,t[0].loc.start)}if(((s=e.assertions)==null?void 0:s.length)>0){this.raise(p.ImportReflectionHasAssertion,t[0].loc.start)}}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){const{specifiers:t}=e;if(t!=null){const e=t.find((e=>{let t;if(e.type==="ExportSpecifier"){t=e.local}else if(e.type==="ImportSpecifier"){t=e.imported}if(t!==undefined){return t.type==="Identifier"?t.name!=="default":t.value!=="default"}}));if(e!==undefined){this.raise(p.ImportJSONBindingNotDefault,e.loc.start)}}}}isPotentialImportPhase(e){if(e)return false;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,r,s){if(t){return}if(r==="module"){this.expectPlugin("importReflection",s);e.module=true}else if(this.hasPlugin("importReflection")){e.module=false}if(r==="source"){this.expectPlugin("sourcePhaseImports",s);e.phase="source"}else if(r==="defer"){this.expectPlugin("deferredImportEvaluation",s);e.phase="defer"}else if(this.hasPlugin("sourcePhaseImports")){e.phase=null}}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t)){this.applyImportPhase(e,t,null);return null}const r=this.startNode();const s=this.parseIdentifierName(true);const{type:a}=this.state;const n=tokenIsKeywordOrIdentifier(a)?a!==98||this.lookaheadCharCode()===102:a!==12;if(n){this.applyImportPhase(e,t,s,r.loc.start);return null}else{this.applyImportPhase(e,t,null);return this.createIdentifier(r,s)}}isPrecedingIdImportPhase(e){const{type:t}=this.state;return tokenIsIdentifier(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){if(this.match(134)){return this.parseImportSourceAndAttributes(e)}return this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,false))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const r=this.maybeParseDefaultImportSpecifier(e,t);const s=!r||this.eat(12);const a=s&&this.maybeParseStarImportSpecifier(e);if(s&&!a)this.parseNamedImportSpecifiers(e);this.expectContextual(98);return this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){var t;(t=e.specifiers)!=null?t:e.specifiers=[];e.source=this.parseImportSource();this.maybeParseImportAttributes(e);this.checkImportReflection(e);this.checkJSONModuleImport(e);this.semicolon();this.sawUnambiguousESM=true;return this.finishNode(e,"ImportDeclaration")}parseImportSource(){if(!this.match(134))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier();e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t,r=8201){this.checkLVal(e.local,{type:t},r);return this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[];const t=new Set;do{if(this.match(8)){break}const r=this.startNode();const s=this.state.value;if(t.has(s)){this.raise(p.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s})}t.add(s);if(this.match(134)){r.key=this.parseStringLiteral(s)}else{r.key=this.parseIdentifier(true)}this.expect(14);if(!this.match(134)){throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc)}r.value=this.parseStringLiteral(this.state.value);e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));this.expect(8);return e}parseModuleAttributes(){const e=[];const t=new Set;do{const r=this.startNode();r.key=this.parseIdentifier(true);if(r.key.name!=="type"){this.raise(p.ModuleAttributeDifferentFromType,r.key)}if(t.has(r.key.name)){this.raise(p.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name})}t.add(r.key.name);this.expect(14);if(!this.match(134)){throw this.raise(p.ModuleAttributeInvalidValue,this.state.startLoc)}r.value=this.parseStringLiteral(this.state.value);e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;{var r=false}if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40){return}this.next();if(this.hasPlugin("moduleAttributes")){t=this.parseModuleAttributes();this.addExtra(e,"deprecatedWithLegacySyntax",true)}else{t=this.parseImportAttributes()}{r=true}}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")){this.raise(p.ImportAttributesUseAssert,this.state.startLoc)}if(!this.hasPlugin("importAssertions")){this.addExtra(e,"deprecatedAssertSyntax",true)}this.next();t=this.parseImportAttributes()}else{t=[]}if(!r&&this.hasPlugin("importAssertions")){e.assertions=t}else{e.attributes=t}}maybeParseDefaultImportSpecifier(e,t){if(t){const r=this.startNodeAtNode(t);r.local=t;e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier"));return true}else if(tokenIsKeywordOrIdentifier(this.state.type)){this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier");return true}return false}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();this.next();this.expectContextual(93);this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier");return true}return false}parseNamedImportSpecifiers(e){let t=true;this.expect(5);while(!this.eat(8)){if(t){t=false}else{if(this.eat(14)){throw this.raise(p.DestructureNamedImport,this.state.startLoc)}this.expect(12);if(this.eat(8))break}const r=this.startNode();const s=this.match(134);const a=this.isContextual(130);r.imported=this.parseModuleExportName();const n=this.parseImportSpecifier(r,s,e.importKind==="type"||e.importKind==="typeof",a,undefined);e.specifiers.push(n)}}parseImportSpecifier(e,t,r,s,a){if(this.eatContextual(93)){e.local=this.parseIdentifier()}else{const{imported:r}=e;if(t){throw this.raise(p.ImportBindingIsString,e,{importName:r.value})}this.checkReservedWord(r.name,e.loc.start,true,true);if(!e.local){e.local=this.cloneIdentifier(r)}}return this.finishImportSpecifier(e,"ImportSpecifier",a)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}}class Parser extends StatementParser{constructor(e,t,r){e=getOptions(e);super(e,t);this.options=e;this.initializeScopes();this.plugins=r;this.filename=e.sourceFilename;this.startIndex=e.startIndex;let s=0;if(e.allowAwaitOutsideFunction){s|=1}if(e.allowReturnOutsideFunction){s|=2}if(e.allowImportExportEverywhere){s|=8}if(e.allowSuperOutsideMethod){s|=16}if(e.allowUndeclaredExports){s|=64}if(e.allowNewTargetOutsideFunction){s|=4}if(e.allowYieldOutsideFunction){s|=32}if(e.ranges){s|=128}if(e.tokens){s|=256}if(e.createImportExpressions){s|=512}if(e.createParenthesizedExpressions){s|=1024}if(e.errorRecovery){s|=2048}if(e.attachComment){s|=4096}if(e.annexB){s|=8192}this.optionFlags=s}getScopeHandler(){return ScopeHandler}parse(){this.enterInitialScopes();const e=this.startNode();const t=this.startNode();this.nextToken();e.errors=null;this.parseTopLevel(e,t);e.errors=this.state.errors;e.comments.length=this.state.commentsLen;return e}}function parse(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";const r=getParser(t,e);const s=r.parse();if(r.sawUnambiguousESM){return s}if(r.ambiguousScriptDifferentAst){try{t.sourceType="script";return getParser(t,e).parse()}catch(e){}}else{s.program.sourceType="script"}return s}catch(r){try{t.sourceType="script";return getParser(t,e).parse()}catch(e){}throw r}}else{return getParser(t,e).parse()}}function parseExpression(e,t){const r=getParser(t,e);if(r.options.strictMode){r.state.strict=true}return r.getExpression()}function generateExportedTokenTypes(e){const t={};for(const r of Object.keys(e)){t[r]=getExportedToken(e[r])}return t}const de=generateExportedTokenTypes(D);function getParser(e,t){let r=Parser;const s=new Map;if(e!=null&&e.plugins){for(const t of e.plugins){let e,r;if(typeof t==="string"){e=t}else{[e,r]=t}if(!s.has(e)){s.set(e,r||{})}}validatePlugins(s);r=getParserClass(s)}return new r(e,t,s)}const fe=new Map;function getParserClass(e){const t=[];for(const r of oe){if(e.has(r)){t.push(r)}}const r=t.join("|");let s=fe.get(r);if(!s){s=Parser;for(const e of t){s=ie[e](s)}fe.set(r,s)}return s}t.parse=parse;t.parseExpression=parseExpression;t.tokTypes=de},709:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(8384);var a=r(4320);var n=t["default"]=(0,a.declare)((({types:e,assertVersion:t})=>{t(7);const r={ClassExpression(e,t){t.found=true;e.stop()},Function(e){e.skip()}};const a=s.visitors.environmentVisitor({YieldExpression(e,t){t.yield=true;if(t.await)e.stop()},AwaitExpression(e,t){t.await=true;if(t.yield)e.stop()}});function containsClassExpression(t){if(e.isClassExpression(t.node))return true;if(e.isFunction(t.node))return false;const s={found:false};t.traverse(r,s);return s.found}function wrap(t){const r={yield:e.isYieldExpression(t.node),await:e.isAwaitExpression(t.node)};t.traverse(a,r);let s;if(r.yield){const a=e.functionExpression(null,[],e.blockStatement([e.returnStatement(t.node)]),true,r.await);s=e.yieldExpression(e.callExpression(e.memberExpression(a,e.identifier("call")),[e.thisExpression(),e.identifier("arguments")]),true)}else{const a=e.arrowFunctionExpression([],t.node,r.await);s=e.callExpression(a,[]);if(r.await)s=e.awaitExpression(s)}t.replaceWith(s)}return{name:"bugfix-firefox-class-in-computed-class-key",visitor:{Class(t){const r=t.node.body.body.some((t=>e.isPrivate(t)));if(!r)return;for(const e of t.get("body.body")){if("computed"in e.node&&e.node.computed&&containsClassExpression(e.get("key"))){wrap(e.get("key"))}}}}}}))},4683:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(4320);var a=r(1485);function needsWrapping(e){if(a.types.isLiteral(e)&&!a.types.isTemplateLiteral(e)){return false}if(a.types.isCallExpression(e)||a.types.isOptionalCallExpression(e)||a.types.isNewExpression(e)){return needsWrapping(e.callee)||e.arguments.some(needsWrapping)}if(a.types.isTemplateLiteral(e)){return e.expressions.some(needsWrapping)}if(a.types.isTaggedTemplateExpression(e)){return needsWrapping(e.tag)||needsWrapping(e.quasi)}if(a.types.isArrayExpression(e)){return e.elements.some(needsWrapping)}if(a.types.isObjectExpression(e)){return e.properties.some((e=>{if(a.types.isObjectProperty(e)){return needsWrapping(e.value)||e.computed&&needsWrapping(e.key)}if(a.types.isObjectMethod(e)){return false}return false}))}if(a.types.isMemberExpression(e)||a.types.isOptionalMemberExpression(e)){return needsWrapping(e.object)||e.computed&&needsWrapping(e.property)}if(a.types.isFunctionExpression(e)||a.types.isArrowFunctionExpression(e)||a.types.isClassExpression(e)){return false}if(a.types.isThisExpression(e)){return false}if(a.types.isSequenceExpression(e)){return e.expressions.some(needsWrapping)}return true}function wrapInitializer(e){const{value:t}=e.node;if(t&&needsWrapping(t)){e.node.value=a.types.callExpression(a.types.arrowFunctionExpression([],t),[])}}var n=s.declare((e=>{e.assertVersion("^7.16.0");return{name:"plugin-bugfix-safari-class-field-initializer-scope",visitor:{ClassProperty(e){wrapInitializer(e)},ClassPrivateProperty(e){wrapInitializer(e)}}}}));t["default"]=n},4442:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(4320);function shouldTransform(e){const{node:t}=e;const r=t.id;if(!r)return false;const s=r.name;const a=e.scope.getOwnBinding(s);if(a===undefined){return false}if(a.kind!=="param"){return false}if(a.identifier===a.path.node){return false}return s}var a=s.declare((e=>{e.assertVersion("^7.16.0");return{name:"plugin-bugfix-safari-id-destructuring-collision-in-function-expression",visitor:{FunctionExpression(e){const t=shouldTransform(e);if(t){const{scope:r}=e;const s=r.generateUid(t);r.rename(t,s)}}}}}));t["default"]=a},8373:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(4320);var a=r(2813);var n=r(2722);var i=r(1485);function matchAffectedArguments(e){const t=e.findIndex((e=>i.types.isSpreadElement(e)));return t>=0&&t!==e.length-1}function shouldTransform(e){let t=e;const r=[];for(;;){if(t.isOptionalMemberExpression()){r.push(t.node);t=n.skipTransparentExprWrappers(t.get("object"))}else if(t.isOptionalCallExpression()){r.push(t.node);t=n.skipTransparentExprWrappers(t.get("callee"))}else{break}}for(let e=0;e<r.length;e++){const t=r[e];if(i.types.isOptionalCallExpression(t)&&matchAffectedArguments(t.arguments)){if(t.optional){return true}const s=r[e+1];if(i.types.isOptionalMemberExpression(s,{optional:true})){return true}}}return false}var o=s.declare((e=>{var t,r;e.assertVersion(7);const s=(t=e.assumption("noDocumentAll"))!=null?t:false;const n=(r=e.assumption("pureGetters"))!=null?r:false;return{name:"bugfix-v8-spread-parameters-in-optional-chaining",visitor:{"OptionalCallExpression|OptionalMemberExpression"(e){if(shouldTransform(e)){a.transform(e,{noDocumentAll:s,pureGetters:n})}}}}}));t["default"]=o},9555:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(1485);var a=r(4320);function isNameOrLength(e){if(s.types.isIdentifier(e)){return e.name==="name"||e.name==="length"}if(s.types.isStringLiteral(e)){return e.value==="name"||e.value==="length"}return false}function isStaticFieldWithValue(e){return(s.types.isClassProperty(e)||s.types.isClassPrivateProperty(e))&&e.static&&!!e.value}const n={ReferencedIdentifier(e,t){if(e.node.name===t.name){t.ref();e.stop()}},Scope(e,{name:t}){if(e.scope.hasOwnBinding(t)){e.skip()}}};function isReferenceOrThis(e,t){return s.types.isThisExpression(e)||t&&s.types.isIdentifier(e,{name:t})}const i={"ThisExpression|ReferencedIdentifier"(e,t){if(isReferenceOrThis(e.node,t.name)){t.ref();e.stop()}},FunctionParent(e,t){if(e.isArrowFunctionExpression())return;if(t.name&&!e.scope.hasOwnBinding(t.name)){e.traverse(n,t)}e.skip();if(e.isMethod()){if(e.requeueComputedKeyAndDecorators){e.requeueComputedKeyAndDecorators()}else{r(8384).NodePath.prototype.requeueComputedKeyAndDecorators.call(e)}}}};function getPotentiallyBuggyFieldsIndexes(e){var t;const r=[];let a=false;const o=(t=e.node.id)==null?void 0:t.name;const l={name:o,ref:()=>a=true};if(o){for(const t of e.get("body.body")){if(t.node.computed){t.get("key").traverse(n,l);if(a)break}}}let c=false;const{body:u}=e.node.body;for(let t=0;t<u.length;t++){const n=u[t];if(!c){if(s.types.isStaticBlock(n)){a=true;c=true}else if(isStaticFieldWithValue(n)){if(!a){if(isReferenceOrThis(n.value,o)){a=true}else{e.get(`body.body.${t}.value`).traverse(i,l)}}if(a){c=!e.scope.isPure(n.value)}}}if(s.types.isClassProperty(n,{static:true})&&(c||n.computed||isNameOrLength(n.key))){r.push(t)}}return r}function getNameOrLengthStaticFieldsIndexes(e){const t=[];const{body:r}=e.node.body;for(let e=0;e<r.length;e++){const a=r[e];if(s.types.isClassProperty(a,{static:true,computed:false})&&isNameOrLength(a.key)){t.push(e)}}return t}function toRanges(e){const t=[];if(e.length===0)return t;let r=e[0];let s=r+1;for(let a=1;a<e.length;a++){if(e[a]<=e[a-1]){throw new Error("Internal Babel error: nums must be in ascending order")}if(e[a]===s){s++}else{t.push([r,s]);r=e[a];s=r+1}}t.push([r,s]);return t}function buildFieldsReplacement(e,t,r){return s.types.staticBlock(e.map((e=>{const a=e.computed||!s.types.isIdentifier(e.key)?e.key:s.types.stringLiteral(e.key.name);return s.types.expressionStatement(s.types.callExpression(r.addHelper("defineProperty"),[s.types.thisExpression(),a,e.value||t.buildUndefinedNode()]))})))}var o=a.declare((e=>{e.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");const t=e.assumption("setPublicClassFields");return{name:"bugfix-v8-static-class-fields-redefine-readonly",visitor:{Class(e){const r=toRanges(t?getNameOrLengthStaticFieldsIndexes(e):getPotentiallyBuggyFieldsIndexes(e));for(let t=r.length-1;t>=0;t--){const[s,a]=r[t];const n=e.get("body.body")[s];n.replaceWith(buildFieldsReplacement(e.node.body.body.slice(s,a),e.scope,this.file));for(let t=a-1;t>s;t--){e.get("body.body")[t].remove()}}}}}}));t["default"]=o},2645:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=t["default"]=(0,s.declare)((e=>{e.assertVersion(7);const isPlugin=(e,t)=>t==="plugin"||Array.isArray(e)&&e[0]==="plugin";const options=e=>Array.isArray(e)&&e.length>1?e[1]:{};return{name:"syntax-import-assertions",manipulateOptions(e,{plugins:t}){for(let e=0;e<t.length;e++){const r=t[e];if(isPlugin(r,"deprecatedImportAssert"))return;if(isPlugin(r,"importAttributes")){t.splice(e,1,"deprecatedImportAssert",["importAttributes",Object.assign({},options(r),{deprecatedAssertSyntax:true})]);return}}t.push("importAssertions")}}}))},3821:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=t["default"]=(0,s.declare)(((e,{deprecatedAssertSyntax:t})=>{e.assertVersion("^7.22.0 || >8.0.0-alpha <8.0.0-beta");if(t!=null&&typeof t!=="boolean"){throw new Error("'deprecatedAssertSyntax' must be a boolean, if specified.")}return{name:"syntax-import-attributes",manipulateOptions({parserOpts:e,generatorOpts:r}){var s;(s=r.importAttributesKeyword)!=null?s:r.importAttributesKeyword="with";const a=e.plugins.indexOf("importAssertions");if(a!==-1){e.plugins.splice(a,1);t=true}if(t){e.plugins.push("deprecatedImportAssert",["importAttributes",{deprecatedAssertSyntax:true}])}else{e.plugins.push("importAttributes")}}}}))},8021:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=t["default"]=(0,s.declare)((e=>{e.assertVersion(7);return{name:"syntax-jsx",manipulateOptions(e,t){{if(t.plugins.some((e=>(Array.isArray(e)?e[0]:e)==="typescript"))){return}}t.plugins.push("jsx")}}}))},3477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);{var removePlugin=function(e,t){const r=[];e.forEach(((e,s)=>{const a=Array.isArray(e)?e[0]:e;if(a===t){r.unshift(s)}}));for(const t of r){e.splice(t,1)}}}var a=t["default"]=(0,s.declare)(((e,t)=>{e.assertVersion(7);const{disallowAmbiguousJSXLike:r,dts:s}=t;{var{isTSX:a}=t}return{name:"syntax-typescript",manipulateOptions(e,t){{const{plugins:e}=t;removePlugin(e,"flow");removePlugin(e,"jsx");{e.push("objectRestSpread","classProperties")}if(a){e.push("jsx")}}t.plugins.push(["typescript",{disallowAmbiguousJSXLike:r,dts:s}])}}}))},3710:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(8609);var a=r(4320);var n=(0,a.declare)((e=>{e.assertVersion(7);return(0,s.createRegExpFeaturePlugin)({name:"syntax-unicode-sets-regex",feature:"unicodeSetsFlag_syntax",manipulateOptions(e,t){t.plugins.push("regexpUnicodeSets")}})}));t["default"]=n},1991:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=t["default"]=(0,s.declare)(((e,t)=>{var r;e.assertVersion(7);const s=(r=e.assumption("noNewArrows"))!=null?r:!t.spec;return{name:"transform-arrow-functions",visitor:{ArrowFunctionExpression(e){if(!e.isArrowFunctionExpression())return;{e.arrowFunctionToExpression({allowInsertArrow:false,noNewArrows:s,specCompliant:!s})}}}}}))},6729:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;var s=r(1485);const a=(0,s.template)(`\n async function wrapper() {\n var ITERATOR_ABRUPT_COMPLETION = false;\n var ITERATOR_HAD_ERROR_KEY = false;\n var ITERATOR_ERROR_KEY;\n try {\n for (\n var ITERATOR_KEY = GET_ITERATOR(OBJECT), STEP_KEY;\n ITERATOR_ABRUPT_COMPLETION = !(STEP_KEY = await ITERATOR_KEY.next()).done;\n ITERATOR_ABRUPT_COMPLETION = false\n ) {\n }\n } catch (err) {\n ITERATOR_HAD_ERROR_KEY = true;\n ITERATOR_ERROR_KEY = err;\n } finally {\n try {\n if (ITERATOR_ABRUPT_COMPLETION && ITERATOR_KEY.return != null) {\n await ITERATOR_KEY.return();\n }\n } finally {\n if (ITERATOR_HAD_ERROR_KEY) {\n throw ITERATOR_ERROR_KEY;\n }\n }\n }\n }\n`);function _default(e,{getAsyncIterator:t}){const{node:r,scope:n,parent:i}=e;const o=n.generateUidIdentifier("step");const l=s.types.memberExpression(o,s.types.identifier("value"));const c=r.left;let u;if(s.types.isIdentifier(c)||s.types.isPattern(c)||s.types.isMemberExpression(c)){u=s.types.expressionStatement(s.types.assignmentExpression("=",c,l))}else if(s.types.isVariableDeclaration(c)){u=s.types.variableDeclaration(c.kind,[s.types.variableDeclarator(c.declarations[0].id,l)])}let p=a({ITERATOR_HAD_ERROR_KEY:n.generateUidIdentifier("didIteratorError"),ITERATOR_ABRUPT_COMPLETION:n.generateUidIdentifier("iteratorAbruptCompletion"),ITERATOR_ERROR_KEY:n.generateUidIdentifier("iteratorError"),ITERATOR_KEY:n.generateUidIdentifier("iterator"),GET_ITERATOR:t,OBJECT:r.right,STEP_KEY:s.types.cloneNode(o)});p=p.body.body;const d=s.types.isLabeledStatement(i);const f=p[3].block.body;const y=f[0];if(d){f[0]=s.types.labeledStatement(i.label,y)}return{replaceParent:d,node:p,declar:u,loop:y}}},8009:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=r(1317);var n=r(1485);var i=r(8384);var o=r(6729);var l=t["default"]=(0,s.declare)((e=>{e.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");const t=i.visitors.environmentVisitor({ArrowFunctionExpression(e){e.skip()},YieldExpression({node:e},t){if(!e.delegate)return;const r=n.types.callExpression(t.addHelper("asyncIterator"),[e.argument]);e.argument=n.types.callExpression(t.addHelper("asyncGeneratorDelegate"),[r,t.addHelper("awaitAsyncGenerator")])}});const r=i.visitors.environmentVisitor({ArrowFunctionExpression(e){e.skip()},ForOfStatement(e,{file:t}){const{node:r}=e;if(!r.await)return;const s=(0,o.default)(e,{getAsyncIterator:t.addHelper("asyncIterator")});const{declar:a,loop:i}=s;const l=i.body;e.ensureBlock();if(a){l.body.push(a);if(e.node.body.body.length){l.body.push(n.types.blockStatement(e.node.body.body))}}else{l.body.push(...e.node.body.body)}n.types.inherits(i,r);n.types.inherits(i.body,r.body);const c=s.replaceParent?e.parentPath:e;c.replaceWithMultiple(s.node);c.scope.parent.crawl()}});const s={Function(e,s){if(!e.node.async)return;e.traverse(r,s);if(!e.node.generator)return;e.traverse(t,s);e.setData("@babel/plugin-transform-async-generator-functions/async_generator_function",true);(0,a.default)(e,{wrapAsync:s.addHelper("wrapAsyncGenerator"),wrapAwait:s.addHelper("awaitAsyncGenerator")})}};return{name:"transform-async-generator-functions",manipulateOptions:(e,t)=>t.plugins.push("asyncGenerators"),visitor:{Program(e,t){e.traverse(s,t)}}}}))},2369:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=r(1317);var n=r(3521);var i=r(1485);var o=t["default"]=(0,s.declare)(((e,t)=>{var r,s;e.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");const{method:o,module:l}=t;const c=(r=e.assumption("noNewArrows"))!=null?r:true;const u=(s=e.assumption("ignoreFunctionLength"))!=null?s:false;if(o&&l){return{name:"transform-async-to-generator",visitor:{Function(e,t){if(!e.node.async||e.node.generator)return;let r=t.methodWrapper;if(r){r=i.types.cloneNode(r)}else{r=t.methodWrapper=(0,n.addNamed)(e,o,l)}(0,a.default)(e,{wrapAsync:r},c,u)}}}}return{name:"transform-async-to-generator",visitor:{Function(e,t){if(!e.node.async||e.node.generator)return;(0,a.default)(e,{wrapAsync:t.addHelper("asyncToGenerator")},c,u)}}}}))},333:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=r(1485);var n=t["default"]=(0,s.declare)((e=>{e.assertVersion(7);function transformStatementList(e,t){for(const e of t){if(!e.isFunctionDeclaration())continue;const t=e.node;const r=a.types.variableDeclaration("let",[a.types.variableDeclarator(t.id,a.types.toExpression(t))]);r._blockHoist=2;t.id=null;e.replaceWith(r)}}return{name:"transform-block-scoped-functions",visitor:{BlockStatement(e){const{node:t,parent:r}=e;if(a.types.isFunction(r,{body:t})||a.types.isExportDeclaration(r)){return}transformStatementList(e,e.get("body"))},SwitchCase(e){transformStatementList(e,e.get("consequent"))}}}}))},8526:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.annexB33FunctionsVisitor=void 0;t.isVarScope=isVarScope;var s=r(1485);const a=t.annexB33FunctionsVisitor=Object.assign({VariableDeclaration(e){if(isStrict(e))return;if(e.node.kind!=="var")return;const t=e.scope.getFunctionParent()||e.scope.getProgramParent();t.path.traverse(n,{names:Object.keys(e.getBindingIdentifiers())})}},{BlockStatement(e){if(isStrict(e))return;if(s.types.isFunction(e.parent,{body:e.node}))return;transformStatementList(e.get("body"))},SwitchCase(e){if(isStrict(e))return;transformStatementList(e.get("consequent"))}});function transformStatementList(e){e:for(const t of e){if(!t.isFunctionDeclaration())continue;if(t.node.async||t.node.generator)return;const{scope:e}=t.parentPath;if(isVarScope(e))return;const{name:r}=t.node.id;let s=e;do{if(s.parent.hasOwnBinding(r))continue e;s=s.parent}while(!isVarScope(s));maybeTransformBlockScopedFunction(t)}}function maybeTransformBlockScopedFunction(e){const{node:t,parentPath:{scope:r}}=e;const{id:a}=t;r.removeOwnBinding(a.name);t.id=null;const n=s.types.variableDeclaration("var",[s.types.variableDeclarator(a,s.types.toExpression(t))]);n._blockHoist=2;const[i]=e.replaceWith(n);r.registerDeclaration(i)}const n={Scope(e,{names:t}){for(const r of t){const t=e.scope.getOwnBinding(r);if(t&&t.kind==="hoisted"){maybeTransformBlockScopedFunction(t.path)}}},"Expression|Declaration"(e){e.skip()}};function isVarScope(e){return e.path.isFunctionParent()||e.path.isProgram()}function isStrict(e){return!!e.find((({node:e})=>{var t;if(s.types.isProgram(e)){if(e.sourceType==="module")return true}else if(s.types.isClass(e)){return true}else if(!s.types.isBlockStatement(e)){return false}return(t=e.directives)==null?void 0:t.some((e=>e.value.value==="use strict"))}))}},4675:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=r(4320);var a=r(1485);var n=r(8145);var i=r(7128);var o=r(8526);var l=t["default"]=(0,s.declare)(((e,t)=>{e.assertVersion(7);const{throwIfClosureRequired:r=false,tdz:s=false}=t;if(typeof r!=="boolean"){throw new Error(`.throwIfClosureRequired must be a boolean, or undefined`)}if(typeof s!=="boolean"){throw new Error(`.tdz must be a boolean, or undefined`)}return{name:"transform-block-scoping",visitor:a.traverse.visitors.merge([o.annexB33FunctionsVisitor,{Loop(e,t){const a=e.isForStatement();const i=a?e.get("init"):e.isForXStatement()?e.get("left"):null;let o=false;const markNeedsBodyWrap=()=>{if(r){throw e.buildCodeFrameError("Compiling let/const in this block would add a closure "+"(throwIfClosureRequired).")}o=true};const l=e.get("body");let c;if(l.isBlockStatement()){c=l.scope}const u=(0,n.getLoopBodyBindings)(e);for(const t of u){const{capturedInClosure:r}=(0,n.getUsageInBody)(t,e);if(r)markNeedsBodyWrap()}const p=[];const d=new Map;if(i&&isBlockScoped(i)){const t=Object.keys(i.getBindingIdentifiers());const r=i.scope;for(let s of t){var f;if((f=c)!=null&&f.hasOwnBinding(s))continue;let t=r.getOwnBinding(s);if(!t){r.crawl();t=r.getOwnBinding(s)}const{usages:i,capturedInClosure:o,hasConstantViolations:l}=(0,n.getUsageInBody)(t,e);if(r.parent.hasBinding(s)||r.parent.hasGlobal(s)){const e=r.generateUid(s);r.rename(s,e);s=e}if(o){markNeedsBodyWrap();p.push(s)}if(a&&l){d.set(s,i)}}}if(o){const r=(0,n.wrapLoopBody)(e,p,d);if(i!=null&&i.isVariableDeclaration()){transformBlockScopedVariable(i,t,s)}r.get("declarations.0.init").unwrapFunctionEnvironment()}},VariableDeclaration(e,t){transformBlockScopedVariable(e,t,s)},ClassDeclaration(e){const{id:t}=e.node;if(!t)return;const{scope:r}=e.parentPath;if(!(0,o.isVarScope)(r)&&r.parent.hasBinding(t.name,{noUids:true})){e.scope.rename(t.name)}}}])}}));const c={Scope(e,{names:t}){for(const r of t){const t=e.scope.getOwnBinding(r);if(t&&t.kind==="hoisted"){e.scope.rename(r)}}},"Expression|Declaration"(e){e.skip()}};function transformBlockScopedVariable(e,t,r){if(!isBlockScoped(e))return;const s=(0,i.validateUsage)(e,t,r);e.node.kind="var";const o=Object.keys(e.getBindingIdentifiers());for(const t of o){const r=e.scope.getOwnBinding(t);if(!r)continue;r.kind="var"}if(isInLoop(e)&&!(0,n.isVarInLoopHead)(e)||s.length>0){for(const t of e.node.declarations){var l;(l=t.init)!=null?l:t.init=e.scope.buildUndefinedNode()}}const u=e.scope;const p=u.getFunctionParent()||u.getProgramParent();if(p!==u){for(const e of o){let t=e;if(u.parent.hasBinding(e,{noUids:true})||u.parent.hasGlobal(e)){t=u.generateUid(e);u.rename(e,t)}u.moveBindingTo(t,p)}}u.path.traverse(c,{names:o});for(const r of s){e.scope.push({id:a.types.identifier(r),init:t.addHelper("temporalUndefined")})}}function isLetOrConst(e){return e==="let"||e==="const"}function isInLoop(e){if(!e.parentPath)return false;if(e.parentPath.isLoop())return true;if(e.parentPath.isFunctionParent())return false;return isInLoop(e.parentPath)}function isBlockScoped(e){const{node:t}=e;if(!a.types.isVariableDeclaration(t))return false;const{kind:r}=t;if(r==="using"||r==="await using"){throw e.buildCodeFrameError(`The ${r} declaration should be first transformed by \`@babel/plugin-transform-explicit-resource-management\`.`)}else if(!isLetOrConst(r)){return false}return true}},8145:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getLoopBodyBindings=getLoopBodyBindings;t.getUsageInBody=getUsageInBody;t.isVarInLoopHead=isVarInLoopHead;t.wrapLoopBody=wrapLoopBody;var s=r(1485);const a={"Expression|Declaration|Loop"(e){e.skip()},Scope(e,t){if(e.isFunctionParent())e.skip();const{bindings:r}=e.scope;for(const e of Object.keys(r)){const s=r[e];if(s.kind==="let"||s.kind==="const"||s.kind==="hoisted"){t.blockScoped.push(s)}}}};function getLoopBodyBindings(e){const t={blockScoped:[]};e.traverse(a,t);return t.blockScoped}function getUsageInBody(e,t){const r=new WeakSet;let s=false;const a=filterMap(e.constantViolations,(e=>{const{inBody:a,inClosure:n}=relativeLoopLocation(e,t);if(!a)return null;s||(s=n);const i=e.isUpdateExpression()?e.get("argument"):e.isAssignmentExpression()?e.get("left"):null;if(i)r.add(i.node);return i}));const n=filterMap(e.referencePaths,(e=>{if(r.has(e.node))return null;const{inBody:a,inClosure:n}=relativeLoopLocation(e,t);if(!a)return null;s||(s=n);return e}));return{capturedInClosure:s,hasConstantViolations:a.length>0,usages:n.concat(a)}}function relativeLoopLocation(e,t){const r=t.get("body");let s=false;for(let a=e;a;a=a.parentPath){if(a.isFunction()||a.isClass()||a.isMethod()){s=true}if(a===r){return{inBody:true,inClosure:s}}else if(a===t){return{inBody:false,inClosure:s}}}throw new Error("Internal Babel error: path is not in loop. Please report this as a bug.")}const n={Function(e){e.skip()},LabeledStatement:{enter({node:e},t){t.labelsStack.push(e.label.name)},exit({node:e},t){const r=t.labelsStack.pop();if(r!==e.label.name){throw new Error("Assertion failure. Please report this bug to Babel.")}}},Loop:{enter(e,t){t.labellessContinueTargets++;t.labellessBreakTargets++},exit(e,t){t.labellessContinueTargets--;t.labellessBreakTargets--}},SwitchStatement:{enter(e,t){t.labellessBreakTargets++},exit(e,t){t.labellessBreakTargets--}},"BreakStatement|ContinueStatement"(e,t){const{label:r}=e.node;if(r){if(t.labelsStack.includes(r.name))return}else if(e.isBreakStatement()?t.labellessBreakTargets>0:t.labellessContinueTargets>0){return}t.breaksContinues.push(e)},ReturnStatement(e,t){t.returns.push(e)},VariableDeclaration(e,t){if(e.parent===t.loopNode&&isVarInLoopHead(e))return;if(e.node.kind==="var")t.vars.push(e)}};function wrapLoopBody(e,t,r){const a=e.node;const i={breaksContinues:[],returns:[],labelsStack:[],labellessBreakTargets:0,labellessContinueTargets:0,vars:[],loopNode:a};e.traverse(n,i);const o=[];const l=[];const c=[];for(const[t,a]of r){o.push(s.types.identifier(t));const r=e.scope.generateUid(t);l.push(s.types.identifier(r));c.push(s.types.assignmentExpression("=",s.types.identifier(t),s.types.identifier(r)));for(const e of a)e.replaceWith(s.types.identifier(r))}for(const e of t){if(r.has(e))continue;o.push(s.types.identifier(e));l.push(s.types.identifier(e))}const u=e.scope.generateUid("loop");const p=s.types.functionExpression(null,l,s.types.toBlock(a.body));let d=s.types.callExpression(s.types.identifier(u),o);const f=e.findParent((e=>e.isFunction()));if(f){const{async:e,generator:t}=f.node;p.async=e;p.generator=t;if(t)d=s.types.yieldExpression(d,true);else if(e)d=s.types.awaitExpression(d)}const y=c.length>0?s.types.expressionStatement(s.types.sequenceExpression(c)):null;if(y)p.body.body.push(y);const[h]=e.insertBefore(s.types.variableDeclaration("var",[s.types.variableDeclarator(s.types.identifier(u),p)]));const g=[];const b=[];for(const e of i.vars){const t=[];for(const r of e.node.declarations){b.push(...Object.keys(s.types.getBindingIdentifiers(r.id)));if(r.init){t.push(s.types.assignmentExpression("=",r.id,r.init))}else if(s.types.isForXStatement(e.parent,{left:e.node})){t.push(r.id)}}if(t.length>0){const r=t.length===1?t[0]:s.types.sequenceExpression(t);e.replaceWith(r)}else{e.remove()}}if(b.length){h.pushContainer("declarations",b.map((e=>s.types.variableDeclarator(s.types.identifier(e)))))}const x=i.breaksContinues.length;const v=i.returns.length;if(x+v===0){g.push(s.types.expressionStatement(d))}else if(x===1&&v===0){for(const e of i.breaksContinues){const{node:t}=e;const{type:r,label:a}=t;let n=r==="BreakStatement"?"break":"continue";if(a)n+=" "+a.name;e.replaceWith(s.types.addComment(s.types.returnStatement(s.types.numericLiteral(1)),"trailing"," "+n,true));if(y)e.insertBefore(s.types.cloneNode(y));g.push(s.template.statement.ast`
202
202
  if (${d}) ${t}
203
203
  `)}}else{const t=e.scope.generateUid("ret");if(h.isVariableDeclaration()){h.pushContainer("declarations",[s.types.variableDeclarator(s.types.identifier(t))]);g.push(s.types.expressionStatement(s.types.assignmentExpression("=",s.types.identifier(t),d)))}else{g.push(s.types.variableDeclaration("var",[s.types.variableDeclarator(s.types.identifier(t),d)]))}const r=[];for(const e of i.breaksContinues){const{node:a}=e;const{type:n,label:i}=a;let o=n==="BreakStatement"?"break":"continue";if(i)o+=" "+i.name;let l=r.indexOf(o);const c=l!==-1;if(!c){r.push(o);l=r.length-1}e.replaceWith(s.types.addComment(s.types.returnStatement(s.types.numericLiteral(l)),"trailing"," "+o,true));if(y)e.insertBefore(s.types.cloneNode(y));if(c)continue;g.push(s.template.statement.ast`
204
204
  if (${s.types.identifier(t)} === ${s.types.numericLiteral(l)}) ${a}