/*! Build based on gin-vue-admin Time : 1757946830000 */ !function(){var e,t,n,r,i,a,s,o,l,c,u,p,f,d,h,m,y,v,g,b,E,S,x,T,w,P,A,k,C,O,I,_,N,D,j,M,L,B,R,F,U,V,q,W,G,H,K,z,X,J,Y,$,Q,Z,ee,te,ne,re,ie,ae,se,oe,le,ce,ue,pe,fe,de,he,me,ye,ve,ge,be,Ee,Se,xe,Te,we,Pe,Ae,ke,Ce,Oe,Ie,_e,Ne,De,je,Me,Le,Be,Re,Fe,Ue,Ve,qe,We,Ge,He,Ke,ze,Xe,Je,Ye,$e,Qe,Ze,et,tt,nt,rt,it,at,st,ot,lt,ct,ut,pt,ft,dt,ht,mt,yt,vt,gt,bt,Et,St,xt,Tt,wt,Pt,At,kt,Ct,Ot,It,_t,Nt,Dt,jt,Mt,Lt,Bt,Rt,Ft,Ut,Vt=["inputs"],qt=["inputId"];function Wt(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Sn(e)+" is not iterable")}function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t3?(i=h===r)&&(l=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=d&&((i=n<2&&dr||r>h)&&(a[4]=n,a[5]=r,f.n=h,o=0))}if(i||n>1)return s;throw p=!0,r}return function(i,u,h){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&d(u,h),o=u,l=h;(t=o<2?e:l)||!p;){a||(o?o<3?(o>1&&(f.n=-1),d(o,l)):f.n=l:f.v=l);try{if(c=2,a){if(o||(i="next"),t=a[i]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,o<2&&(o=0)}else 1===o&&(t=a.return)&&t.call(a),o<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),o=1);a=e}else if((t=(p=f.n<0)?l:n.call(r,f))!==s)break}catch(t){a=e,o=1,l=t}finally{c=1}}return{value:t,done:p}}}(n,i,a),!0),c}var s={};function o(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(yn(t={},r,function(){return this}),t),p=c.prototype=o.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yn(e,i,"GeneratorFunction")),e.prototype=Object.create(p),e}return l.prototype=c,yn(p,"constructor",c),yn(c,"constructor",l),l.displayName="GeneratorFunction",yn(c,i,"GeneratorFunction"),yn(p),yn(p,i,"Generator"),yn(p,r,function(){return this}),yn(p,"toString",function(){return"[object Generator]"}),(mn=function(){return{w:a,m:f}})()}function yn(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}yn=function(e,t,n,r){function a(t,n){yn(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},yn(e,t,n,r)}function vn(e){return function(e){if(Array.isArray(e))return En(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||bn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=bn(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function bn(e,t){if(e){if("string"==typeof e)return En(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?En(e,t):void 0}}function En(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);na)throw new TypeError("version is longer than ".concat(a," characters"));r("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;var i=t.trim().match(n.loose?l[c.LOOSE]:l[c.FULL]);if(!i)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(t){var a=[t,r];!1===n&&(a=[t]),0===p(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break;default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}])}();e.exports=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},t.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},t.arrayExpression=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.default)({type:"ArrayExpression",elements:e})},t.arrayPattern=function(e){return(0,r.default)({type:"ArrayPattern",elements:e})},t.arrayTypeAnnotation=function(e){return(0,r.default)({type:"ArrayTypeAnnotation",elementType:e})},t.arrowFunctionExpression=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"ArrowFunctionExpression",params:e,body:t,async:n,expression:null})},t.assignmentExpression=function(e,t,n){return(0,r.default)({type:"AssignmentExpression",operator:e,left:t,right:n})},t.assignmentPattern=function(e,t){return(0,r.default)({type:"AssignmentPattern",left:e,right:t})},t.awaitExpression=function(e){return(0,r.default)({type:"AwaitExpression",argument:e})},t.bigIntLiteral=function(e){return(0,r.default)({type:"BigIntLiteral",value:e})},t.binaryExpression=function(e,t,n){return(0,r.default)({type:"BinaryExpression",operator:e,left:t,right:n})},t.bindExpression=function(e,t){return(0,r.default)({type:"BindExpression",object:e,callee:t})},t.blockStatement=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,r.default)({type:"BlockStatement",body:e,directives:t})},t.booleanLiteral=function(e){return(0,r.default)({type:"BooleanLiteral",value:e})},t.booleanLiteralTypeAnnotation=function(e){return(0,r.default)({type:"BooleanLiteralTypeAnnotation",value:e})},t.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},t.breakStatement=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"BreakStatement",label:e})},t.callExpression=function(e,t){return(0,r.default)({type:"CallExpression",callee:e,arguments:t})},t.catchClause=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"CatchClause",param:e,body:t})},t.classAccessorProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return(0,r.default)({type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:n,decorators:i,computed:a,static:s})},t.classBody=function(e){return(0,r.default)({type:"ClassBody",body:e})},t.classDeclaration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassDeclaration",id:e,superClass:t,body:n,decorators:i})},t.classExpression=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ClassExpression",id:e,superClass:t,body:n,decorators:i})},t.classImplements=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"ClassImplements",id:e,typeParameters:t})},t.classMethod=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return(0,r.default)({type:"ClassMethod",kind:e,key:t,params:n,body:i,computed:a,static:s,generator:o,async:l})},t.classPrivateMethod=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ClassPrivateMethod",kind:e,key:t,params:n,body:i,static:a})},t.classPrivateProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ClassPrivateProperty",key:e,value:t,decorators:n,static:i})},t.classProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return(0,r.default)({type:"ClassProperty",key:e,value:t,typeAnnotation:n,decorators:i,computed:a,static:s})},t.conditionalExpression=function(e,t,n){return(0,r.default)({type:"ConditionalExpression",test:e,consequent:t,alternate:n})},t.continueStatement=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"ContinueStatement",label:e})},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){return(0,r.default)({type:"DecimalLiteral",value:e})},t.declareClass=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareClass",id:e,typeParameters:t,extends:n,body:i})},t.declareExportAllDeclaration=function(e){return(0,r.default)({type:"DeclareExportAllDeclaration",source:e})},t.declareExportDeclaration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:n})},t.declareFunction=function(e){return(0,r.default)({type:"DeclareFunction",id:e})},t.declareInterface=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"DeclareInterface",id:e,typeParameters:t,extends:n,body:i})},t.declareModule=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareModule",id:e,body:t,kind:n})},t.declareModuleExports=function(e){return(0,r.default)({type:"DeclareModuleExports",typeAnnotation:e})},t.declareOpaqueType=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:n})},t.declareTypeAlias=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"DeclareTypeAlias",id:e,typeParameters:t,right:n})},t.declareVariable=function(e){return(0,r.default)({type:"DeclareVariable",id:e})},t.declaredPredicate=function(e){return(0,r.default)({type:"DeclaredPredicate",value:e})},t.decorator=function(e){return(0,r.default)({type:"Decorator",expression:e})},t.directive=function(e){return(0,r.default)({type:"Directive",value:e})},t.directiveLiteral=function(e){return(0,r.default)({type:"DirectiveLiteral",value:e})},t.doExpression=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"DoExpression",body:e,async:t})},t.doWhileStatement=function(e,t){return(0,r.default)({type:"DoWhileStatement",test:e,body:t})},t.emptyStatement=function(){return{type:"EmptyStatement"}},t.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},t.enumBooleanBody=function(e){return(0,r.default)({type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumBooleanMember=function(e){return(0,r.default)({type:"EnumBooleanMember",id:e,init:null})},t.enumDeclaration=function(e,t){return(0,r.default)({type:"EnumDeclaration",id:e,body:t})},t.enumDefaultedMember=function(e){return(0,r.default)({type:"EnumDefaultedMember",id:e})},t.enumNumberBody=function(e){return(0,r.default)({type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumNumberMember=function(e,t){return(0,r.default)({type:"EnumNumberMember",id:e,init:t})},t.enumStringBody=function(e){return(0,r.default)({type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null})},t.enumStringMember=function(e,t){return(0,r.default)({type:"EnumStringMember",id:e,init:t})},t.enumSymbolBody=function(e){return(0,r.default)({type:"EnumSymbolBody",members:e,hasUnknownMembers:null})},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){return(0,r.default)({type:"ExportAllDeclaration",source:e})},t.exportDefaultDeclaration=function(e){return(0,r.default)({type:"ExportDefaultDeclaration",declaration:e})},t.exportDefaultSpecifier=function(e){return(0,r.default)({type:"ExportDefaultSpecifier",exported:e})},t.exportNamedDeclaration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:n})},t.exportNamespaceSpecifier=function(e){return(0,r.default)({type:"ExportNamespaceSpecifier",exported:e})},t.exportSpecifier=function(e,t){return(0,r.default)({type:"ExportSpecifier",local:e,exported:t})},t.expressionStatement=function(e){return(0,r.default)({type:"ExpressionStatement",expression:e})},t.file=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"File",program:e,comments:t,tokens:n})},t.forInStatement=function(e,t,n){return(0,r.default)({type:"ForInStatement",left:e,right:t,body:n})},t.forOfStatement=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,r.default)({type:"ForOfStatement",left:e,right:t,body:n,await:i})},t.forStatement=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"ForStatement",init:e,test:t,update:n,body:i})},t.functionDeclaration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionDeclaration",id:e,params:t,body:n,generator:i,async:a})},t.functionExpression=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"FunctionExpression",id:e,params:t,body:n,generator:i,async:a})},t.functionTypeAnnotation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:n,returnType:i})},t.functionTypeParam=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"FunctionTypeParam",name:e,typeAnnotation:t})},t.genericTypeAnnotation=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"GenericTypeAnnotation",id:e,typeParameters:t})},t.identifier=function(e){return(0,r.default)({type:"Identifier",name:e})},t.ifStatement=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"IfStatement",test:e,consequent:t,alternate:n})},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){return(0,r.default)({type:"ImportAttribute",key:e,value:t})},t.importDeclaration=function(e,t){return(0,r.default)({type:"ImportDeclaration",specifiers:e,source:t})},t.importDefaultSpecifier=function(e){return(0,r.default)({type:"ImportDefaultSpecifier",local:e})},t.importExpression=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"ImportExpression",source:e,options:t})},t.importNamespaceSpecifier=function(e){return(0,r.default)({type:"ImportNamespaceSpecifier",local:e})},t.importSpecifier=function(e,t){return(0,r.default)({type:"ImportSpecifier",local:e,imported:t})},t.indexedAccessType=function(e,t){return(0,r.default)({type:"IndexedAccessType",objectType:e,indexType:t})},t.inferredPredicate=function(){return{type:"InferredPredicate"}},t.interfaceDeclaration=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"InterfaceDeclaration",id:e,typeParameters:t,extends:n,body:i})},t.interfaceExtends=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"InterfaceExtends",id:e,typeParameters:t})},t.interfaceTypeAnnotation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"InterfaceTypeAnnotation",extends:e,body:t})},t.interpreterDirective=function(e){return(0,r.default)({type:"InterpreterDirective",value:e})},t.intersectionTypeAnnotation=function(e){return(0,r.default)({type:"IntersectionTypeAnnotation",types:e})},t.jSXAttribute=t.jsxAttribute=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"JSXAttribute",name:e,value:t})},t.jSXClosingElement=t.jsxClosingElement=function(e){return(0,r.default)({type:"JSXClosingElement",name:e})},t.jSXClosingFragment=t.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},t.jSXElement=t.jsxElement=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"JSXElement",openingElement:e,closingElement:t,children:n,selfClosing:i})},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){return(0,r.default)({type:"JSXExpressionContainer",expression:e})},t.jSXFragment=t.jsxFragment=function(e,t,n){return(0,r.default)({type:"JSXFragment",openingFragment:e,closingFragment:t,children:n})},t.jSXIdentifier=t.jsxIdentifier=function(e){return(0,r.default)({type:"JSXIdentifier",name:e})},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){return(0,r.default)({type:"JSXMemberExpression",object:e,property:t})},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){return(0,r.default)({type:"JSXNamespacedName",namespace:e,name:t})},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"JSXOpeningElement",name:e,attributes:t,selfClosing:n})},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){return(0,r.default)({type:"JSXSpreadAttribute",argument:e})},t.jSXSpreadChild=t.jsxSpreadChild=function(e){return(0,r.default)({type:"JSXSpreadChild",expression:e})},t.jSXText=t.jsxText=function(e){return(0,r.default)({type:"JSXText",value:e})},t.labeledStatement=function(e,t){return(0,r.default)({type:"LabeledStatement",label:e,body:t})},t.logicalExpression=function(e,t,n){return(0,r.default)({type:"LogicalExpression",operator:e,left:t,right:n})},t.memberExpression=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"MemberExpression",object:e,property:t,computed:n,optional:i})},t.metaProperty=function(e,t){return(0,r.default)({type:"MetaProperty",meta:e,property:t})},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){return(0,r.default)({type:"ModuleExpression",body:e})},t.newExpression=function(e,t){return(0,r.default)({type:"NewExpression",callee:e,arguments:t})},t.noop=function(){return{type:"Noop"}},t.nullLiteral=function(){return{type:"NullLiteral"}},t.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},t.nullableTypeAnnotation=function(e){return(0,r.default)({type:"NullableTypeAnnotation",typeAnnotation:e})},t.numberLiteral=function(e){return(0,i.default)("NumberLiteral","NumericLiteral","The node type "),a(e)},t.numberLiteralTypeAnnotation=function(e){return(0,r.default)({type:"NumberLiteralTypeAnnotation",value:e})},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=a,t.objectExpression=function(e){return(0,r.default)({type:"ObjectExpression",properties:e})},t.objectMethod=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return(0,r.default)({type:"ObjectMethod",kind:e,key:t,params:n,body:i,computed:a,generator:s,async:o})},t.objectPattern=function(e){return(0,r.default)({type:"ObjectPattern",properties:e})},t.objectProperty=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"ObjectProperty",key:e,value:t,computed:n,shorthand:i,decorators:a})},t.objectTypeAnnotation=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,r.default)({type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:n,internalSlots:i,exact:a})},t.objectTypeCallProperty=function(e){return(0,r.default)({type:"ObjectTypeCallProperty",value:e,static:null})},t.objectTypeIndexer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"ObjectTypeIndexer",id:e,key:t,value:n,variance:i,static:null})},t.objectTypeInternalSlot=function(e,t,n,i,a){return(0,r.default)({type:"ObjectTypeInternalSlot",id:e,value:t,optional:n,static:i,method:a})},t.objectTypeProperty=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"ObjectTypeProperty",key:e,value:t,variance:n,kind:null,method:null,optional:null,proto:null,static:null})},t.objectTypeSpreadProperty=function(e){return(0,r.default)({type:"ObjectTypeSpreadProperty",argument:e})},t.opaqueType=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OpaqueType",id:e,typeParameters:t,supertype:n,impltype:i})},t.optionalCallExpression=function(e,t,n){return(0,r.default)({type:"OptionalCallExpression",callee:e,arguments:t,optional:n})},t.optionalIndexedAccessType=function(e,t){return(0,r.default)({type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null})},t.optionalMemberExpression=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"OptionalMemberExpression",object:e,property:t,computed:n,optional:i})},t.parenthesizedExpression=function(e){return(0,r.default)({type:"ParenthesizedExpression",expression:e})},t.pipelineBareFunction=function(e){return(0,r.default)({type:"PipelineBareFunction",callee:e})},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){return(0,r.default)({type:"PipelineTopicExpression",expression:e})},t.placeholder=function(e,t){return(0,r.default)({type:"Placeholder",expectedNode:e,name:t})},t.privateName=function(e){return(0,r.default)({type:"PrivateName",id:e})},t.program=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"script",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"Program",body:e,directives:t,sourceType:n,interpreter:i,sourceFile:null})},t.qualifiedTypeIdentifier=function(e,t){return(0,r.default)({type:"QualifiedTypeIdentifier",id:e,qualification:t})},t.recordExpression=function(e){return(0,r.default)({type:"RecordExpression",properties:e})},t.regExpLiteral=s,t.regexLiteral=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,i.default)("RegexLiteral","RegExpLiteral","The node type "),s(e,t)},t.restElement=o,t.restProperty=function(e){return(0,i.default)("RestProperty","RestElement","The node type "),o(e)},t.returnStatement=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return(0,r.default)({type:"ReturnStatement",argument:e})},t.sequenceExpression=function(e){return(0,r.default)({type:"SequenceExpression",expressions:e})},t.spreadElement=l,t.spreadProperty=function(e){return(0,i.default)("SpreadProperty","SpreadElement","The node type "),l(e)},t.staticBlock=function(e){return(0,r.default)({type:"StaticBlock",body:e})},t.stringLiteral=function(e){return(0,r.default)({type:"StringLiteral",value:e})},t.stringLiteralTypeAnnotation=function(e){return(0,r.default)({type:"StringLiteralTypeAnnotation",value:e})},t.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},t.super=function(){return{type:"Super"}},t.switchCase=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(0,r.default)({type:"SwitchCase",test:e,consequent:t})},t.switchStatement=function(e,t){return(0,r.default)({type:"SwitchStatement",discriminant:e,cases:t})},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){return(0,r.default)({type:"TaggedTemplateExpression",tag:e,quasi:t})},t.templateElement=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"TemplateElement",value:e,tail:t})},t.templateLiteral=function(e,t){return(0,r.default)({type:"TemplateLiteral",quasis:e,expressions:t})},t.thisExpression=function(){return{type:"ThisExpression"}},t.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},t.throwStatement=function(e){return(0,r.default)({type:"ThrowStatement",argument:e})},t.topicReference=function(){return{type:"TopicReference"}},t.tryStatement=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TryStatement",block:e,handler:t,finalizer:n})},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){return(0,r.default)({type:"TSArrayType",elementType:e})},t.tSAsExpression=t.tsAsExpression=function(e,t){return(0,r.default)({type:"TSAsExpression",expression:e,typeAnnotation:t})},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSConditionalType=t.tsConditionalType=function(e,t,n,i){return(0,r.default)({type:"TSConditionalType",checkType:e,extendsType:t,trueType:n,falseType:i})},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSConstructorType=t.tsConstructorType=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSDeclareFunction=t.tsDeclareFunction=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSDeclareFunction",id:e,typeParameters:t,params:n,returnType:i})},t.tSDeclareMethod=t.tsDeclareMethod=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return(0,r.default)({type:"TSDeclareMethod",decorators:e,key:t,typeParameters:n,params:i,returnType:a})},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){return(0,r.default)({type:"TSEnumDeclaration",id:e,members:t})},t.tSEnumMember=t.tsEnumMember=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSEnumMember",id:e,initializer:t})},t.tSExportAssignment=t.tsExportAssignment=function(e){return(0,r.default)({type:"TSExportAssignment",expression:e})},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t})},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){return(0,r.default)({type:"TSExternalModuleReference",expression:e})},t.tSFunctionType=t.tsFunctionType=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:n})},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){return(0,r.default)({type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null})},t.tSImportType=t.tsImportType=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSImportType",argument:e,qualifier:t,typeParameters:n})},t.tSIndexSignature=t.tsIndexSignature=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSIndexSignature",parameters:e,typeAnnotation:t})},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){return(0,r.default)({type:"TSIndexedAccessType",objectType:e,indexType:t})},t.tSInferType=t.tsInferType=function(e){return(0,r.default)({type:"TSInferType",typeParameter:e})},t.tSInstantiationExpression=t.tsInstantiationExpression=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSInstantiationExpression",expression:e,typeParameters:t})},t.tSInterfaceBody=t.tsInterfaceBody=function(e){return(0,r.default)({type:"TSInterfaceBody",body:e})},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return(0,r.default)({type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:n,body:i})},t.tSIntersectionType=t.tsIntersectionType=function(e){return(0,r.default)({type:"TSIntersectionType",types:e})},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){return(0,r.default)({type:"TSLiteralType",literal:e})},t.tSMappedType=t.tsMappedType=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:n})},t.tSMethodSignature=t.tsMethodSignature=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(0,r.default)({type:"TSMethodSignature",key:e,typeParameters:t,parameters:n,typeAnnotation:i,kind:null})},t.tSModuleBlock=t.tsModuleBlock=function(e){return(0,r.default)({type:"TSModuleBlock",body:e})},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){return(0,r.default)({type:"TSModuleDeclaration",id:e,body:t})},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"TSNamedTupleMember",label:e,elementType:t,optional:n})},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){return(0,r.default)({type:"TSNamespaceExportDeclaration",id:e})},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){return(0,r.default)({type:"TSNonNullExpression",expression:e})},t.tSNullKeyword=t.tsNullKeyword=function(){return{type:"TSNullKeyword"}},t.tSNumberKeyword=t.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},t.tSObjectKeyword=t.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},t.tSOptionalType=t.tsOptionalType=function(e){return(0,r.default)({type:"TSOptionalType",typeAnnotation:e})},t.tSParameterProperty=t.tsParameterProperty=function(e){return(0,r.default)({type:"TSParameterProperty",parameter:e})},t.tSParenthesizedType=t.tsParenthesizedType=function(e){return(0,r.default)({type:"TSParenthesizedType",typeAnnotation:e})},t.tSPropertySignature=t.tsPropertySignature=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSPropertySignature",key:e,typeAnnotation:t,kind:null})},t.tSQualifiedName=t.tsQualifiedName=function(e,t){return(0,r.default)({type:"TSQualifiedName",left:e,right:t})},t.tSRestType=t.tsRestType=function(e){return(0,r.default)({type:"TSRestType",typeAnnotation:e})},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){return(0,r.default)({type:"TSSatisfiesExpression",expression:e,typeAnnotation:t})},t.tSStringKeyword=t.tsStringKeyword=function(){return{type:"TSStringKeyword"}},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},t.tSThisType=t.tsThisType=function(){return{type:"TSThisType"}},t.tSTupleType=t.tsTupleType=function(e){return(0,r.default)({type:"TSTupleType",elementTypes:e})},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:n})},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){return(0,r.default)({type:"TSTypeAnnotation",typeAnnotation:e})},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){return(0,r.default)({type:"TSTypeAssertion",typeAnnotation:e,expression:t})},t.tSTypeLiteral=t.tsTypeLiteral=function(e){return(0,r.default)({type:"TSTypeLiteral",members:e})},t.tSTypeOperator=t.tsTypeOperator=function(e){return(0,r.default)({type:"TSTypeOperator",typeAnnotation:e,operator:null})},t.tSTypeParameter=t.tsTypeParameter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TSTypeParameter",constraint:e,default:t,name:n})},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){return(0,r.default)({type:"TSTypeParameterDeclaration",params:e})},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){return(0,r.default)({type:"TSTypeParameterInstantiation",params:e})},t.tSTypePredicate=t.tsTypePredicate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:n})},t.tSTypeQuery=t.tsTypeQuery=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSTypeQuery",exprName:e,typeParameters:t})},t.tSTypeReference=t.tsTypeReference=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"TSTypeReference",typeName:e,typeParameters:t})},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){return(0,r.default)({type:"TSUnionType",types:e})},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},t.tSVoidKeyword=t.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},t.tupleExpression=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,r.default)({type:"TupleExpression",elements:e})},t.tupleTypeAnnotation=function(e){return(0,r.default)({type:"TupleTypeAnnotation",types:e})},t.typeAlias=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(0,r.default)({type:"TypeAlias",id:e,typeParameters:t,right:n})},t.typeAnnotation=function(e){return(0,r.default)({type:"TypeAnnotation",typeAnnotation:e})},t.typeCastExpression=function(e,t){return(0,r.default)({type:"TypeCastExpression",expression:e,typeAnnotation:t})},t.typeParameter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,r.default)({type:"TypeParameter",bound:e,default:t,variance:n,name:null})},t.typeParameterDeclaration=function(e){return(0,r.default)({type:"TypeParameterDeclaration",params:e})},t.typeParameterInstantiation=function(e){return(0,r.default)({type:"TypeParameterInstantiation",params:e})},t.typeofTypeAnnotation=function(e){return(0,r.default)({type:"TypeofTypeAnnotation",argument:e})},t.unaryExpression=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(0,r.default)({type:"UnaryExpression",operator:e,argument:t,prefix:n})},t.unionTypeAnnotation=function(e){return(0,r.default)({type:"UnionTypeAnnotation",types:e})},t.updateExpression=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,r.default)({type:"UpdateExpression",operator:e,argument:t,prefix:n})},t.v8IntrinsicIdentifier=function(e){return(0,r.default)({type:"V8IntrinsicIdentifier",name:e})},t.variableDeclaration=function(e,t){return(0,r.default)({type:"VariableDeclaration",kind:e,declarations:t})},t.variableDeclarator=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(0,r.default)({type:"VariableDeclarator",id:e,init:t})},t.variance=function(e){return(0,r.default)({type:"Variance",kind:e})},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){return(0,r.default)({type:"WhileStatement",test:e,body:t})},t.withStatement=function(e,t){return(0,r.default)({type:"WithStatement",object:e,body:t})},t.yieldExpression=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,r.default)({type:"YieldExpression",argument:e,delegate:t})};var r=n(352),i=n(58);function a(e){return(0,r.default)({type:"NumericLiteral",value:e})}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,r.default)({type:"RegExpLiteral",pattern:e,flags:t})}function o(e){return(0,r.default)({type:"RestElement",argument:e})}function l(e){return(0,r.default)({type:"SpreadElement",argument:e})}},function(e,t,n){var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==("undefined"==typeof globalThis?"undefined":Sn(globalThis))&&globalThis)||r("object"==("undefined"==typeof window?"undefined":Sn(window))&&window)||r("object"==("undefined"==typeof self?"undefined":Sn(self))&&self)||r("object"==Sn(n.g)&&n.g)||r("object"==Sn(this)&&this)||function(){return this}()||Function("return this")()},function(e){var t="object"==("undefined"==typeof document?"undefined":Sn(document))&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},function(e,t,n){var r=n(3);e.exports=function(e,t,n){return new r(e,n).compare(new r(t,n))}},function(e,t,n){var r=function(){function e(t,n){var r=this;if(xn(this,e),n=a(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof s)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return r.parseRange(e.trim())}).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){var i=this.set[0];if(this.set=this.set.filter(function(e){return!g(e[0])}),0===this.set.length)this.set=[i];else if(this.set.length>1){var o,l=gn(this.set);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(1===c.length&&b(c[0])){this.set=[c];break}}}catch(u){l.e(u)}finally{l.f()}}}this.format()}return wn(e,[{key:"format",value:function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range}},{key:"toString",value:function(){return this.range}},{key:"parseRange",value:function(e){var t=this,n=((this.options.includePrerelease&&y)|(this.options.loose&&v))+":"+e,r=i.get(n);if(r)return r;var a=this.options.loose,l=a?u[p.HYPHENRANGELOOSE]:u[p.HYPHENRANGE];e=e.replace(l,_(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(u[p.COMPARATORTRIM],f),o("comparator trim",e),e=e.replace(u[p.TILDETRIM],d),o("tilde trim",e),e=e.replace(u[p.CARETTRIM],h),o("caret trim",e);var c=e.split(" ").map(function(e){return S(e,t.options)}).join(" ").split(/\s+/).map(function(e){return I(e,t.options)});a&&(c=c.filter(function(e){return o("loose invalid filter",e,t.options),!!e.match(u[p.COMPARATORLOOSE])})),o("range list",c);var m,b=new Map,E=c.map(function(e){return new s(e,t.options)}),x=gn(E);try{for(x.s();!(m=x.n()).done;){var T=m.value;if(g(T))return[T];b.set(T.value,T)}}catch(P){x.e(P)}finally{x.f()}b.size>1&&b.has("")&&b.delete("");var w=vn(b.values());return i.set(n,w),w}},{key:"intersects",value:function(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(function(e){return E(e,n)&&t.set.some(function(t){return E(t,n)&&e.every(function(e){return t.every(function(t){return e.intersects(t,n)})})})})}},{key:"test",value:function(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(var t=0;t=".concat(n,".").concat(i,".0").concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".0").concat(r," <").concat(+n+1,".0.0-0"):s?(o("replaceCaret pr",s),l="0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(a,"-").concat(s," <").concat(n,".").concat(i,".").concat(+a+1,"-0"):">=".concat(n,".").concat(i,".").concat(a,"-").concat(s," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(a,"-").concat(s," <").concat(+n+1,".0.0-0")):(o("no pr"),l="0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(a).concat(r," <").concat(n,".").concat(i,".").concat(+a+1,"-0"):">=".concat(n,".").concat(i,".").concat(a).concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(a," <").concat(+n+1,".0.0-0")),o("caret return",l),l})},k=function(e,t){return o("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return C(e,t)}).join(" ")},C=function(e,t){e=e.trim();var n=t.loose?u[p.XRANGELOOSE]:u[p.XRANGE];return e.replace(n,function(n,r,i,a,s,l){o("xRange",e,n,r,i,a,s,l);var c=x(i),u=c||x(a),p=u||x(s),f=p;return"="===r&&f&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&f?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n="".concat(r+i,".").concat(a,".").concat(s).concat(l)):u?n=">=".concat(i,".0.0").concat(l," <").concat(+i+1,".0.0-0"):p&&(n=">=".concat(i,".").concat(a,".0").concat(l," <").concat(i,".").concat(+a+1,".0-0")),o("xRange return",n),n})},O=function(e,t){return o("replaceStars",e,t),e.trim().replace(u[p.STAR],"")},I=function(e,t){return o("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?p.GTE0PRE:p.GTE0],"")},_=function(e){return function(t,n,r,i,a,s,o,l,c,u,p,f,d){return"".concat(n=x(r)?"":x(i)?">=".concat(r,".0.0").concat(e?"-0":""):x(a)?">=".concat(r,".").concat(i,".0").concat(e?"-0":""):s?">=".concat(n):">=".concat(n).concat(e?"-0":"")," ").concat(l=x(c)?"":x(u)?"<".concat(+c+1,".0.0-0"):x(p)?"<".concat(c,".").concat(+u+1,".0-0"):f?"<=".concat(c,".").concat(u,".").concat(p,"-").concat(f):e?"<".concat(c,".").concat(u,".").concat(+p+1,"-0"):"<=".concat(l)).trim()}},N=function(e,t,n){for(var r=0;r0){var a=e[i].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return i.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return i.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return s.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return i.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return i.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return i.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return i.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return a.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return a.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return a.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return i.VISITOR_KEYS}});var r=n(166);n(167),n(356),n(357),n(358),n(359),n(360);var i=n(18),a=n(169),s=n(361);Object.keys(s.DEPRECATED_ALIASES).forEach(function(e){i.FLIPPED_ALIAS_KEYS[e]=i.FLIPPED_ALIAS_KEYS[s.DEPRECATED_ALIASES[e]]}),r(i.VISITOR_KEYS),r(i.ALIAS_KEYS),r(i.FLIPPED_ALIAS_KEYS),r(i.NODE_FIELDS),r(i.BUILDER_KEYS),r(i.DEPRECATED_KEYS),r(a.PLACEHOLDERS_ALIAS),r(a.PLACEHOLDERS_FLIPPED_ALIAS),t.TYPES=[].concat(Object.keys(i.VISITOR_KEYS),Object.keys(i.FLIPPED_ALIAS_KEYS),Object.keys(i.DEPRECATED_KEYS))},function(e,t,n){var r=n(17);function i(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function a(e,t){for(var n,r="",i=0,a=-1,s=0,o=0;o<=e.length;++o){if(o2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),a=o,s=0;continue}}else if(2===r.length||1===r.length){r="",i=0,a=o,s=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(a+1,o):r=e.slice(a+1,o),i=o-a-1;a=o,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var s={resolve:function(){for(var e,t="",n=!1,s=arguments.length-1;s>=-1&&!n;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=r.cwd()),o=e),i(o),0!==o.length&&(t=o+"/"+t,n=47===o.charCodeAt(0))}return t=a(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(i(e),0===e.length)return".";var t=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=a(e,!t)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return i(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":s.normalize(e)},relative:function(e,t){if(i(e),i(t),e===t)return"";if((e=s.resolve(e))===(t=s.resolve(t)))return"";for(var n=1;nc){if(47===t.charCodeAt(o+p))return t.slice(o+p+1);if(0===p)return t.slice(o+p)}else a>c&&(47===e.charCodeAt(n+p)?u=p:0===p&&(u=0));break}var f=e.charCodeAt(n+p);if(f!==t.charCodeAt(o+p))break;47===f&&(u=p)}var d="";for(p=n+u+1;p<=r;++p)p!==r&&47!==e.charCodeAt(p)||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+u):(o+=u,47===t.charCodeAt(o)&&++o,t.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(i(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,a=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!a){r=s;break}}else a=!1;return-1===r?n?"/":".":n&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');i(e);var n,r=0,a=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var o=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!s){r=n+1;break}}else-1===l&&(s=!1,l=n+1),o>=0&&(c===t.charCodeAt(o)?-1==--o&&(a=n):(o=-1,a=l))}return r===a?a=l:-1===a&&(a=e.length),e.slice(r,a)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){r=n+1;break}}else-1===a&&(s=!1,a=n+1);return-1===a?"":e.slice(r,a)},extname:function(e){i(e);for(var t=-1,n=0,r=-1,a=!0,s=0,o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(47!==l)-1===r&&(a=!1,r=o+1),46===l?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!a){n=o+1;break}}return-1===t||-1===r||0===s||1===s&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=Sn(e))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+Sn(e));return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){i(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0),a=47===r;a?(t.root="/",n=1):n=0;for(var s=-1,o=0,l=-1,c=!0,u=e.length-1,p=0;u>=n;--u)if(47!==(r=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===r?-1===s?s=u:1!==p&&(p=1):-1!==s&&(p=-1);else if(!c){o=u+1;break}return-1===s||-1===l||0===p||1===p&&s===l-1&&s===o+1?-1!==l&&(t.base=t.name=0===o&&a?e.slice(1,l):e.slice(o,l)):(0===o&&a?(t.name=e.slice(1,s),t.base=e.slice(1,l)):(t.name=e.slice(o,s),t.base=e.slice(o,l)),t.ext=e.slice(s,l)),o>0?t.dir=e.slice(0,o-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s,e.exports=s},function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(5),i=n(66),a=n(206),s=n(218),o=n(221),l=n(63),c=n(11),u=r.RangeError,p=r.Int8Array,f=p&&p.prototype,d=f&&f.set,h=a.aTypedArray,m=a.exportTypedArrayMethod,y=!c(function(){var e=new Uint8ClampedArray(2);return i(d,e,{length:1,0:3},1),3!==e[1]}),v=y&&a.NATIVE_ARRAY_BUFFER_VIEWS&&c(function(){var e=new p(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});m("set",function(e){h(this);var t=o(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(y)return i(d,this,n,t);var r=this.length,a=s(n),c=0;if(a+t>r)throw new u("Wrong length");for(;c1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;if(e){if(!t.noScope&&!n&&"Program"!==e.type&&"File"!==e.type)throw new Error("You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ".concat(e.type," node without passing scope and parentPath."));if(!a&&o)throw new Error("visitSelf can only be used when providing a NodePath.");u[e.type]&&(r.explode(t),(0,s.traverseNode)(e,t,n,i,a,null,o))}}function h(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}t.default=d,d.visitors=r,d.verify=r.verify,d.explode=r.explode,d.cheap=function(e,t){f(e,t)},d.node=function(e,t,n,r,i,a){(0,s.traverseNode)(e,t,n,r,i,a)},d.clearNode=function(e,t){p(e,t)},d.removeProperties=function(e,t){return f(e,d.clearNode,t),e},d.hasType=function(e,t,n){if(null!=n&&n.includes(e.type))return!1;if(e.type===t)return!0;var r={has:!1,type:t};return d(e,{noScope:!0,denylist:n,enter:h},null,r),r.has},d.cache=a},function(e,t,n){var r=n(11);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.declare=r,t.declarePreset=void 0;var n={assertVersion:function(e){return function(t){!function(e,t){if("number"==typeof e){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e="^".concat(e,".0.0-0")}if("string"!=typeof e)throw new Error("Expected string or integer value.");var n,r=Error.stackTraceLimit;throw"number"==typeof r&&r<25&&(Error.stackTraceLimit=25),n="7."===t.slice(0,2)?new Error('Requires Babel "^7.0.0-beta.41", but was loaded with "'.concat(t,"\". You'll need to update your @babel/core version.")):new Error('Requires Babel "'.concat(e,'", but was loaded with "').concat(t,'". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn\'t mention "@babel/core" or "babel-core" to see what is calling Babel.')),"number"==typeof r&&(Error.stackTraceLimit=r),Object.assign(n,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}(t,e.version)}}};function r(e){return function(t,r,i){for(var s,o,l=0,c=Object.keys(n);l1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},a=i.aliases;a||(i.inherits&&(a=null==(r=T[i.inherits].aliases)?void 0:r.slice()),null!=a||(a=[]),i.aliases=a);var s=t.filter(function(e){return!a.includes(e)});(n=a).unshift.apply(n,vn(s)),w(e,i)}},t.typeIs=h,t.validate=d,t.validateArrayOfType=function(e){return d(y(e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(e){return{validate:h(e),optional:!0}},t.validateType=function(e){return d(h(e))};var r=n(42),i=n(97),a=t.VISITOR_KEYS={},s=t.ALIAS_KEYS={},o=t.FLIPPED_ALIAS_KEYS={},l=t.NODE_FIELDS={},c=t.BUILDER_KEYS={},u=t.DEPRECATED_KEYS={},p=t.NODE_PARENT_VALIDATIONS={};function f(e){return Array.isArray(e)?"array":null===e?"null":Sn(e)}function d(e){return{validate:e}}function h(e){return"string"==typeof e?g(e):g.apply(void 0,vn(e))}function m(e){return E(b("array"),v(e))}function y(e){return m(h(e))}function v(e){function t(t,n,r){if(Array.isArray(r))for(var i=0;i=2&&"type"in t[0]&&"array"===t[0].type&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return r}var S=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],x=["default","optional","deprecated","validate"],T={};function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.inherits&&T[t.inherits]||{},r=t.fields;if(!r&&(r={},n.fields)){var i,d=gn(Object.getOwnPropertyNames(n.fields));try{for(d.s();!(i=d.n()).done;){var h=i.value,m=n.fields[h],y=m.default;if(Array.isArray(y)?y.length>0:y&&"object"==Sn(y))throw new Error("field defaults can only be primitives or empty arrays currently");r[h]={default:Array.isArray(y)?[]:y,optional:m.optional,deprecated:m.deprecated,validate:m.validate}}}catch(B){d.e(B)}finally{d.f()}}for(var v=t.visitor||n.visitor||[],g=t.aliases||n.aliases||[],E=t.builder||n.builder||t.visitor||[],w=0,P=Object.keys(t);w=0||(i[n]=e[n]);return i}o(44),Object.defineProperty(s,"__esModule",{value:!0});var c=wn(function e(t,n,r){xn(this,e),this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=n,this.index=r}),u=wn(function e(t,n){xn(this,e),this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=n});function p(e,t){var n=e.line,r=e.column,i=e.index;return new c(n,r+t,i+t)}var f="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",d={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:f},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:f}},h={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"},m=function(e){var t=e.type,n=e.prefix;return"UpdateExpression"===t?h.UpdateExpression[String(n)]:h[t]},y={AccessorIsGenerator:function(e){var t=e.kind;return"A ".concat(t,"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.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",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:function(e){var t=e.kind;return"Missing initializer in ".concat(t," 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:function(e){var t=e.exportName;return"`".concat(t,"` has already been exported. Exported identifiers must be unique.")},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:function(e){var t=e.phase;return"'import.".concat(t,"(...)' can only be parsed when using the 'createImportExpressions' option.")},ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:function(e){var t=e.localName,n=e.exportName;return"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '".concat(t,"' as '").concat(n,"' } from 'some-module'`?")},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:function(e){var t=e.type;return"'".concat("ForInStatement"===t?"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:function(e){var t=e.type;return"Unsyntactic ".concat("BreakStatement"===t?"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 `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:function(e){var t=e.importName;return'A string literal cannot be used as an imported binding.\n- Did you mean `import { "'.concat(t,'" as foo }`?')},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:function(e){var t=e.maxArgumentCount;return"`import()` requires exactly ".concat(1===t?"one argument":"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:function(e){var t=e.radix;return"Expected number in radix ".concat(t,".")},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:function(e){var t=e.reservedWord;return"Escape sequence in keyword ".concat(t,".")},InvalidIdentifier:function(e){var t=e.identifierName;return"Invalid identifier ".concat(t,".")},InvalidLhs:function(e){var t=e.ancestor;return"Invalid left-hand side in ".concat(m(t),".")},InvalidLhsBinding:function(e){var t=e.ancestor;return"Binding invalid left-hand side in ".concat(m(t),".")},InvalidLhsOptionalChaining:function(e){var t=e.ancestor;return"Invalid optional chaining in the left-hand side of ".concat(m(t),".")},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:function(e){var t=e.unexpected;return"Unexpected character '".concat(t,"'.")},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:function(e){var t=e.identifierName;return"Private name #".concat(t," 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:function(e){var t=e.labelName;return"Label '".concat(t,"' 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:function(e){var t=e.missingPlugin;return"This experimental syntax requires enabling the parser plugin: ".concat(t.map(function(e){return JSON.stringify(e)}).join(", "),".")},MissingOneOfPlugins:function(e){var t=e.missingPlugin;return"This experimental syntax requires enabling one of the following parser plugin(s): ".concat(t.map(function(e){return 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:function(e){var t=e.key;return'Duplicate key "'.concat(t,'" is not allowed in module attributes.')},ModuleExportNameHasLoneSurrogate:function(e){var t=e.surrogateCharCode;return"An export name cannot include a lone surrogate, found '\\u".concat(t.toString(16),"'.")},ModuleExportUndefined:function(e){var t=e.localName;return"Export '".concat(t,"' 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:function(e){var t=e.identifierName;return"Private names are only allowed in property accesses (`obj.#".concat(t,"`) or in `in` expressions (`#").concat(t," in obj`).")},PrivateNameRedeclaration:function(e){var t=e.identifierName;return"Duplicate private name #".concat(t,".")},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:function(e){var t=e.keyword;return"Unexpected keyword '".concat(t,"'.")},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:function(e){var t=e.reservedWord;return"Unexpected reserved word '".concat(t,"'.")},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:function(e){var t=e.expected,n=e.unexpected;return"Unexpected token".concat(n?" '".concat(n,"'."):"").concat(t?', expected "'.concat(t,'"'):"")},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`.",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:function(e){var t=e.target,n=e.onlyValidPropertyName;return"The only valid meta property for ".concat(t," is ").concat(t,".").concat(n,".")},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.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:function(e){var t=e.identifierName;return"Identifier '".concat(t,"' has already been declared.")},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},v=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),g={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:function(e){var t=e.token;return"Invalid topic token ".concat(t,". In order to use ").concat(t,' as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "').concat(t,'" }.')},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:function(e){var t=e.type;return"Hack-style pipe body cannot be an unparenthesized ".concat(m({type:t}),"; 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.'},b=["toMessage"],E=["message"];function S(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function x(e){var t=e.toMessage,n=l(e,b);return function e(r,i){var a=new SyntaxError;return Object.assign(a,n,{loc:r,pos:r.index}),"missingPlugin"in i&&Object.assign(a,{missingPlugin:i.missingPlugin}),S(a,"clone",function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=null!=(t=n.loc)?t:r,s=a.line,o=a.column,l=a.index;return e(new c(s,o,l),Object.assign({},i,n.details))}),S(a,"details",i),Object.defineProperty(a,"message",{configurable:!0,get:function(){var e="".concat(t(i)," (").concat(r.line,":").concat(r.column,")");return this.message=e,e},set:function(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),a}}function T(e,t){if(Array.isArray(e))return function(t){return T(t,e[0])};for(var n={},r=function(){var r=a[i],s=e[r],o="string"==typeof s?{message:function(){return s}}:"function"==typeof s?{message:s}:s,c=o.message,u=l(o,E),p="string"==typeof c?function(){return c}:c;n[r]=x(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:r,toMessage:p},t?{syntaxPlugin:t}:{},u))},i=0,a=Object.keys(e);i...",!0)};O.template=new C("`",!0);var I=!0,_=!0,N=!0,D=!0,j=!0,M=wn(function e(t){xn(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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=t,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.rightAssociative=!!n.rightAssociative,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=null!=n.binop?n.binop:null,this.updateContext=null}),L=new Map;function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;var n=K(e,t);return L.set(e,n),n}function R(e,t){return K(e,{beforeExpr:I,binop:t})}var F=-1,U=[],V=[],q=[],W=[],G=[],H=[];function K(e){var t,n,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return++F,V.push(e),q.push(null!=(t=a.binop)?t:-1),W.push(null!=(n=a.beforeExpr)&&n),G.push(null!=(r=a.startsExpr)&&r),H.push(null!=(i=a.prefix)&&i),U.push(new M(e,a)),F}function z(e){var t,n,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return++F,L.set(e,F),V.push(e),q.push(null!=(t=a.binop)?t:-1),W.push(null!=(n=a.beforeExpr)&&n),G.push(null!=(r=a.startsExpr)&&r),H.push(null!=(i=a.prefix)&&i),U.push(new M("name",a)),F}var X={bracketL:K("[",{beforeExpr:I,startsExpr:_}),bracketHashL:K("#[",{beforeExpr:I,startsExpr:_}),bracketBarL:K("[|",{beforeExpr:I,startsExpr:_}),bracketR:K("]"),bracketBarR:K("|]"),braceL:K("{",{beforeExpr:I,startsExpr:_}),braceBarL:K("{|",{beforeExpr:I,startsExpr:_}),braceHashL:K("#{",{beforeExpr:I,startsExpr:_}),braceR:K("}"),braceBarR:K("|}"),parenL:K("(",{beforeExpr:I,startsExpr:_}),parenR:K(")"),comma:K(",",{beforeExpr:I}),semi:K(";",{beforeExpr:I}),colon:K(":",{beforeExpr:I}),doubleColon:K("::",{beforeExpr:I}),dot:K("."),question:K("?",{beforeExpr:I}),questionDot:K("?."),arrow:K("=>",{beforeExpr:I}),template:K("template"),ellipsis:K("...",{beforeExpr:I}),backQuote:K("`",{startsExpr:_}),dollarBraceL:K("${",{beforeExpr:I,startsExpr:_}),templateTail:K("...`",{startsExpr:_}),templateNonTail:K("...${",{beforeExpr:I,startsExpr:_}),at:K("@"),hash:K("#",{startsExpr:_}),interpreterDirective:K("#!..."),eq:K("=",{beforeExpr:I,isAssign:D}),assign:K("_=",{beforeExpr:I,isAssign:D}),slashAssign:K("_=",{beforeExpr:I,isAssign:D}),xorAssign:K("_=",{beforeExpr:I,isAssign:D}),moduloAssign:K("_=",{beforeExpr:I,isAssign:D}),incDec:K("++/--",{prefix:j,postfix:!0,startsExpr:_}),bang:K("!",{beforeExpr:I,prefix:j,startsExpr:_}),tilde:K("~",{beforeExpr:I,prefix:j,startsExpr:_}),doubleCaret:K("^^",{startsExpr:_}),doubleAt:K("@@",{startsExpr:_}),pipeline:R("|>",0),nullishCoalescing:R("??",1),logicalOR:R("||",1),logicalAND:R("&&",2),bitwiseOR:R("|",3),bitwiseXOR:R("^",4),bitwiseAND:R("&",5),equality:R("==/!=/===/!==",6),lt:R("/<=/>=",7),gt:R("/<=/>=",7),relational:R("/<=/>=",7),bitShift:R("<>/>>>",8),bitShiftL:R("<>/>>>",8),bitShiftR:R("<>/>>>",8),plusMin:K("+/-",{beforeExpr:I,binop:9,prefix:j,startsExpr:_}),modulo:K("%",{binop:10,startsExpr:_}),star:K("*",{binop:10}),slash:R("/",10),exponent:K("**",{beforeExpr:I,binop:11,rightAssociative:!0}),_in:B("in",{beforeExpr:I,binop:7}),_instanceof:B("instanceof",{beforeExpr:I,binop:7}),_break:B("break"),_case:B("case",{beforeExpr:I}),_catch:B("catch"),_continue:B("continue"),_debugger:B("debugger"),_default:B("default",{beforeExpr:I}),_else:B("else",{beforeExpr:I}),_finally:B("finally"),_function:B("function",{startsExpr:_}),_if:B("if"),_return:B("return",{beforeExpr:I}),_switch:B("switch"),_throw:B("throw",{beforeExpr:I,prefix:j,startsExpr:_}),_try:B("try"),_var:B("var"),_const:B("const"),_with:B("with"),_new:B("new",{beforeExpr:I,startsExpr:_}),_this:B("this",{startsExpr:_}),_super:B("super",{startsExpr:_}),_class:B("class",{startsExpr:_}),_extends:B("extends",{beforeExpr:I}),_export:B("export"),_import:B("import",{startsExpr:_}),_null:B("null",{startsExpr:_}),_true:B("true",{startsExpr:_}),_false:B("false",{startsExpr:_}),_typeof:B("typeof",{beforeExpr:I,prefix:j,startsExpr:_}),_void:B("void",{beforeExpr:I,prefix:j,startsExpr:_}),_delete:B("delete",{beforeExpr:I,prefix:j,startsExpr:_}),_do:B("do",{isLoop:N,beforeExpr:I}),_for:B("for",{isLoop:N}),_while:B("while",{isLoop:N}),_as:z("as",{startsExpr:_}),_assert:z("assert",{startsExpr:_}),_async:z("async",{startsExpr:_}),_await:z("await",{startsExpr:_}),_defer:z("defer",{startsExpr:_}),_from:z("from",{startsExpr:_}),_get:z("get",{startsExpr:_}),_let:z("let",{startsExpr:_}),_meta:z("meta",{startsExpr:_}),_of:z("of",{startsExpr:_}),_sent:z("sent",{startsExpr:_}),_set:z("set",{startsExpr:_}),_source:z("source",{startsExpr:_}),_static:z("static",{startsExpr:_}),_using:z("using",{startsExpr:_}),_yield:z("yield",{startsExpr:_}),_asserts:z("asserts",{startsExpr:_}),_checks:z("checks",{startsExpr:_}),_exports:z("exports",{startsExpr:_}),_global:z("global",{startsExpr:_}),_implements:z("implements",{startsExpr:_}),_intrinsic:z("intrinsic",{startsExpr:_}),_infer:z("infer",{startsExpr:_}),_is:z("is",{startsExpr:_}),_mixins:z("mixins",{startsExpr:_}),_proto:z("proto",{startsExpr:_}),_require:z("require",{startsExpr:_}),_satisfies:z("satisfies",{startsExpr:_}),_keyof:z("keyof",{startsExpr:_}),_readonly:z("readonly",{startsExpr:_}),_unique:z("unique",{startsExpr:_}),_abstract:z("abstract",{startsExpr:_}),_declare:z("declare",{startsExpr:_}),_enum:z("enum",{startsExpr:_}),_module:z("module",{startsExpr:_}),_namespace:z("namespace",{startsExpr:_}),_interface:z("interface",{startsExpr:_}),_type:z("type",{startsExpr:_}),_opaque:z("opaque",{startsExpr:_}),name:K("name",{startsExpr:_}),string:K("string",{startsExpr:_}),num:K("num",{startsExpr:_}),bigint:K("bigint",{startsExpr:_}),decimal:K("decimal",{startsExpr:_}),regexp:K("regexp",{startsExpr:_}),privateName:K("#name",{startsExpr:_}),eof:K("eof"),jsxName:K("jsxName"),jsxText:K("jsxText",{beforeExpr:!0}),jsxTagStart:K("jsxTagStart",{startsExpr:!0}),jsxTagEnd:K("jsxTagEnd"),placeholder:K("%%",{startsExpr:!0})};function J(e){return e>=93&&e<=132}function Y(e){return e>=58&&e<=132}function $(e){return e>=58&&e<=136}function Q(e){return G[e]}function Z(e){return e>=129&&e<=131}function ee(e){return e>=58&&e<=92}function te(e){return V[e]}function ne(e){return q[e]}function re(e){return e>=24&&e<=25}function ie(e){return U[e]}U[8].updateContext=function(e){e.pop()},U[5].updateContext=U[7].updateContext=U[23].updateContext=function(e){e.push(O.brace)},U[22].updateContext=function(e){e[e.length-1]===O.template?e.pop():e.push(O.template)},U[142].updateContext=function(e){e.push(O.j_expr,O.j_oTag)};var ae="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",se="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",oe=new RegExp("["+ae+"]"),le=new RegExp("["+ae+se+"]");ae=se=null;var ce=[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,68,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,349,41,7,1,79,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,159,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,264,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,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,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,757,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],ue=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function pe(e,t){for(var n=65536,r=0,i=t.length;re)return!1;if((n+=t[r+1])>=e)return!0}return!1}function fe(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&oe.test(String.fromCharCode(e)):pe(e,ce)))}function de(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&le.test(String.fromCharCode(e)):pe(e,ce)||pe(e,ue))))}var he=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"]),me=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),ye=new Set(["eval","arguments"]);function ve(e,t){return t&&"await"===e||"enum"===e}function ge(e,t){return ve(e,t)||me.has(e)}function be(e){return ye.has(e)}function Ee(e,t){return ge(e,t)||be(e)}var Se=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"]),xe=wn(function e(t){xn(this,e),this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}),Te=function(){return wn(function e(t,n){xn(this,e),this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=n},[{key:"inTopLevel",get:function(){return(1&this.currentScope().flags)>0}},{key:"inFunction",get:function(){return(2&this.currentVarScopeFlags())>0}},{key:"allowSuper",get:function(){return(16&this.currentThisScopeFlags())>0}},{key:"allowDirectSuper",get:function(){return(32&this.currentThisScopeFlags())>0}},{key:"inClass",get:function(){return(64&this.currentThisScopeFlags())>0}},{key:"inClassAndNotInNonArrowFunction",get:function(){var e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}},{key:"inStaticBlock",get:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(128&t)return!0;if(451&t)return!1}}},{key:"inNonArrowFunction",get:function(){return(2&this.currentThisScopeFlags())>0}},{key:"treatFunctionsAsVar",get:function(){return this.treatFunctionsAsVarInScope(this.currentScope())}},{key:"createScope",value:function(e){return new xe(e)}},{key:"enter",value:function(e){this.scopeStack.push(this.createScope(e))}},{key:"exit",value:function(){return this.scopeStack.pop().flags}},{key:"treatFunctionsAsVarInScope",value:function(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}},{key:"declareName",value:function(e,t,n){var r=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(r,e,t,n);var i=r.names.get(e)||0;16&t?i|=4:(r.firstLexicalName||(r.firstLexicalName=e),i|=2),r.names.set(e,i),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(var a=this.scopeStack.length-1;a>=0&&(r=this.scopeStack[a],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(387&r.flags));--a);this.parser.inModule&&1&r.flags&&this.undefinedExports.delete(e)}},{key:"maybeExportDefined",value:function(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}},{key:"checkRedeclarationInScope",value:function(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(w.VarRedeclaration,r,{identifierName:t})}},{key:"isRedeclaredInScope",value:function(e,t,n){if(!(1&n))return!1;if(8&n)return e.names.has(t);var r=e.names.get(t);return 16&n?(2&r)>0||!this.treatFunctionsAsVarInScope(e)&&(1&r)>0:(2&r)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&r)>0}},{key:"checkLocalExport",value:function(e){var t=e.name;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}},{key:"currentScope",value:function(){return this.scopeStack[this.scopeStack.length-1]}},{key:"currentVarScopeFlags",value:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(387&t)return t}}},{key:"currentThisScopeFlags",value:function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e].flags;if(451&t&&!(4&t))return t}}}])}(),we=function(e){function t(){var e;return xn(this,t),(e=ln(this,t,arguments)).declareFunctions=new Set,e}return fn(t,e),wn(t)}(xe),Pe=function(e){function t(){return xn(this,t),ln(this,t,arguments)}return fn(t,e),wn(t,[{key:"createScope",value:function(e){return new we(e)}},{key:"declareName",value:function(e,n,r){var i=this.currentScope();if(2048&n)return this.checkRedeclarationInScope(i,e,n,r),this.maybeExportDefined(i,e),void i.declareFunctions.add(e);sn(t,"declareName",this,3)([e,n,r])}},{key:"isRedeclaredInScope",value:function(e,n,r){if(sn(t,"isRedeclaredInScope",this,3)([e,n,r]))return!0;if(2048&r&&!e.declareFunctions.has(n)){var i=e.names.get(n);return(4&i)>0||(2&i)>0}return!1}},{key:"checkLocalExport",value:function(e){this.scopeStack[0].declareFunctions.has(e.name)||sn(t,"checkLocalExport",this,3)([e])}}])}(Te),Ae=function(){return wn(function e(){xn(this,e),this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1},[{key:"hasPlugin",value:function(e){if("string"==typeof e)return this.plugins.has(e);var t=an(e,2),n=t[0],r=t[1];if(!this.hasPlugin(n))return!1;for(var i=this.plugins.get(n),a=0,s=Object.keys(r);a0;)r=t[--i];null===r||r.start>n.start?Ce(e,n.comments):ke(r,n.comments)}var Ie=function(e){function t(){return xn(this,t),ln(this,t,arguments)}return fn(t,e),wn(t,[{key:"addComment",value:function(e){this.filename&&(e.loc.filename=this.filename);var t=this.state.commentsLen;this.comments.length!=t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}},{key:"processComment",value:function(e){var t=this.state.commentStack,n=t.length;if(0!==n){var r=n-1,i=t[r];i.start===e.end&&(i.leadingNode=e,r--);for(var a=e.start;r>=0;r--){var s=t[r],o=s.end;if(!(o>a)){o===a&&(s.trailingNode=e);break}s.containingNode=e,this.finalizeComment(s),t.splice(r,1)}}}},{key:"finalizeComment",value:function(e){var t=e.comments;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&ke(e.leadingNode,t),null!==e.trailingNode&&function(e,t,n){void 0===e.leadingComments?e.leadingComments=t:(n=e.leadingComments).unshift.apply(n,vn(t))}(e.trailingNode,t);else{var n=e.containingNode,r=e.start;if(44===this.input.charCodeAt(r-1))switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Oe(n,n.properties,e);break;case"CallExpression":case"OptionalCallExpression":Oe(n,n.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Oe(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Oe(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Oe(n,n.specifiers,e);break;default:Ce(n,t)}else Ce(n,t)}}},{key:"finalizeRemainingComments",value:function(){for(var e=this.state.commentStack,t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}},{key:"resetPreviousNodeTrailingComments",value:function(e){var t=this.state.commentStack,n=t.length;if(0!==n){var r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}}},{key:"resetPreviousIdentifierLeadingComments",value:function(e){var t=this.state.commentStack,n=t.length;0!==n&&(t[n-1].trailingNode===e?t[n-1].trailingNode=null:n>=2&&t[n-2].trailingNode===e&&(t[n-2].trailingNode=null))}},{key:"takeSurroundingComments",value:function(e,t,n){var r=this.state.commentStack,i=r.length;if(0!==i)for(var a=i-1;a>=0;a--){var s=r[a],o=s.end;if(s.start===n)s.leadingNode=e;else if(o===t)s.trailingNode=e;else if(o0},set:function(e){e?this.flags|=1:this.flags&=-2}},{key:"init",value:function(e){var t=e.strictMode,n=e.sourceType,r=e.startLine,i=e.startColumn;this.strict=!1!==t&&(!0===t||"module"===n),this.curLine=r,this.lineStart=-i,this.startLoc=this.endLoc=new c(r,i,0)}},{key:"maybeInArrowParameters",get:function(){return(2&this.flags)>0},set:function(e){e?this.flags|=2:this.flags&=-3}},{key:"inType",get:function(){return(4&this.flags)>0},set:function(e){e?this.flags|=4:this.flags&=-5}},{key:"noAnonFunctionType",get:function(){return(8&this.flags)>0},set:function(e){e?this.flags|=8:this.flags&=-9}},{key:"hasFlowComment",get:function(){return(16&this.flags)>0},set:function(e){e?this.flags|=16:this.flags&=-17}},{key:"isAmbientContext",get:function(){return(32&this.flags)>0},set:function(e){e?this.flags|=32:this.flags&=-33}},{key:"inAbstractClass",get:function(){return(64&this.flags)>0},set:function(e){e?this.flags|=64:this.flags&=-65}},{key:"inDisallowConditionalTypesContext",get:function(){return(128&this.flags)>0},set:function(e){e?this.flags|=128:this.flags&=-129}},{key:"soloAwait",get:function(){return(256&this.flags)>0},set:function(e){e?this.flags|=256:this.flags&=-257}},{key:"inFSharpPipelineDirectBody",get:function(){return(512&this.flags)>0},set:function(e){e?this.flags|=512:this.flags&=-513}},{key:"canStartJSXElement",get:function(){return(1024&this.flags)>0},set:function(e){e?this.flags|=1024:this.flags&=-1025}},{key:"containsEsc",get:function(){return(2048&this.flags)>0},set:function(e){e?this.flags|=2048:this.flags&=-2049}},{key:"curPosition",value:function(){return new c(this.curLine,this.pos-this.lineStart,this.pos)}},{key:"clone",value:function(){var t=new e;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}}])}(),Fe=function(e){return e>=48&&e<=57},Ue={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ve={bin:function(e){return 48===e||49===e},oct:function(e){return e>=48&&e<=55},dec:function(e){return e>=48&&e<=57},hex:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}};function qe(e,t,n,r,i,a){for(var s=n,o=r,l=i,c="",u=null,p=n,f=t.length;;){if(n>=f){a.unterminated(s,o,l),c+=t.slice(p,n);break}var d=t.charCodeAt(n);if(We(e,d,t,n)){c+=t.slice(p,n);break}if(92===d){c+=t.slice(p,n);var h=Ge(t,n,r,i,"template"===e,a);null!==h.ch||u?c+=h.ch:u={pos:n,lineStart:r,curLine:i},n=h.pos,r=h.lineStart,i=h.curLine,p=n}else 8232===d||8233===d?(++i,r=++n):10===d||13===d?"template"===e?(c+=t.slice(p,n)+"\n",++n,13===d&&10===t.charCodeAt(n)&&++n,++i,p=r=n):a.unterminated(s,o,l):++n}return{pos:n,str:c,firstInvalidLoc:u,lineStart:r,curLine:i,containsInvalid:!!u}}function We(e,t,n,r){return"template"===e?96===t||36===t&&123===n.charCodeAt(r+1):t===("double"===e?34:39)}function Ge(e,t,n,r,i,a){var s=!i;t++;var o=function(e){return{pos:t,ch:e,lineStart:n,curLine:r}},l=e.charCodeAt(t++);switch(l){case 110:return o("\n");case 114:return o("\r");case 120:var c,u;return u=(c=He(e,t,n,r,2,!1,s,a)).code,t=c.pos,o(null===u?null:String.fromCharCode(u));case 117:var p,f;return f=(p=ze(e,t,n,r,s,a)).code,t=p.pos,o(null===f?null:String.fromCodePoint(f));case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++r;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);a.strictNumericEscape(t-1,n,r);default:if(l>=48&&l<=55){var d=t-1,h=e.slice(d,t+2).match(/^[0-7]+/)[0],m=parseInt(h,8);m>255&&(h=h.slice(0,-1),m=parseInt(h,8)),t+=h.length-1;var y=e.charCodeAt(t);if("0"!==h||56===y||57===y){if(i)return o(null);a.strictNumericEscape(d,n,r)}return o(String.fromCharCode(m))}return o(String.fromCharCode(l))}}function He(e,t,n,r,i,a,s,o){var l,c,u=t;return c=(l=Ke(e,t,n,r,16,i,a,!1,o,!s)).n,t=l.pos,null===c&&(s?o.invalidEscapeSequence(u,n,r):t=u-1),{code:c,pos:t}}function Ke(e,t,n,r,i,a,s,o,l,c){for(var u=t,p=16===i?Ue.hex:Ue.decBinOct,f=16===i?Ve.hex:10===i?Ve.dec:8===i?Ve.oct:Ve.bin,d=!1,h=0,m=0,y=null==a?1/0:a;m=97?v-97+10:v>=65?v-65+10:Fe(v)?v-48:1/0)>=i){if(g<=9&&c)return{n:null,pos:t};if(g<=9&&l.invalidDigit(t,n,r,i))g=0;else{if(!s)break;g=0,d=!0}}++t,h=h*i+g}else{var b=e.charCodeAt(t-1),E=e.charCodeAt(t+1);if(o){if(Number.isNaN(E)||!f(E)||p.has(b)||p.has(E)){if(c)return{n:null,pos:t};l.unexpectedNumericSeparator(t,n,r)}}else{if(c)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,n,r)}++t}}return t===u||null!=a&&t-u!==a||d?{n:null,pos:t}:{n:h,pos:t}}function ze(e,t,n,r,i,a){var s;if(123===e.charCodeAt(t)){var o;if(s=(o=He(e,++t,n,r,e.indexOf("}",t)-t,!0,i,a)).code,t=o.pos,++t,null!==s&&s>1114111){if(!i)return{code:null,pos:t};a.invalidCodePoint(t,n,r)}}else{var l=He(e,t,n,r,4,!1,i,a);s=l.code,t=l.pos}return{code:s,pos:t}}function Xe(e,t,n){return new c(n,e-t,e)}var Je=new Set([103,109,115,105,121,117,100,118]),Ye=wn(function e(t){xn(this,e),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new u(t.startLoc,t.endLoc)}),$e=function(e){function t(e,n){var r;return xn(this,t),(r=ln(this,t)).isLookahead=void 0,r.tokens=[],r.errorHandlers_readInt={invalidDigit:function(e,t,n,i){return!!r.options.errorRecovery&&(r.raise(w.InvalidDigit,Xe(e,t,n),{radix:i}),!0)},numericSeparatorInEscapeSequence:r.errorBuilder(w.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:r.errorBuilder(w.UnexpectedNumericSeparator)},r.errorHandlers_readCodePoint=Object.assign({},r.errorHandlers_readInt,{invalidEscapeSequence:r.errorBuilder(w.InvalidEscapeSequence),invalidCodePoint:r.errorBuilder(w.InvalidCodePoint)}),r.errorHandlers_readStringContents_string=Object.assign({},r.errorHandlers_readCodePoint,{strictNumericEscape:function(e,t,n){r.recordStrictModeErrors(w.StrictNumericEscape,Xe(e,t,n))},unterminated:function(e,t,n){throw r.raise(w.UnterminatedString,Xe(e-1,t,n))}}),r.errorHandlers_readStringContents_template=Object.assign({},r.errorHandlers_readCodePoint,{strictNumericEscape:r.errorBuilder(w.StrictNumericEscape),unterminated:function(e,t,n){throw r.raise(w.UnterminatedTemplate,Xe(e,t,n))}}),r.state=new Re,r.state.init(e),r.input=n,r.length=n.length,r.comments=[],r.isLookahead=!1,r}return fn(t,e),wn(t,[{key:"pushToken",value:function(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}},{key:"next",value:function(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Ye(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}},{key:"eat",value:function(e){return!!this.match(e)&&(this.next(),!0)}},{key:"match",value:function(e){return this.state.type===e}},{key:"createLookaheadState",value:function(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}}},{key:"lookahead",value:function(){var e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;var t=this.state;return this.state=e,t}},{key:"nextTokenStart",value:function(){return this.nextTokenStartSince(this.state.pos)}},{key:"nextTokenStartSince",value:function(e){return je.lastIndex=e,je.test(this.input)?je.lastIndex:e}},{key:"lookaheadCharCode",value:function(){return this.input.charCodeAt(this.nextTokenStart())}},{key:"nextTokenInLineStart",value:function(){return this.nextTokenInLineStartSince(this.state.pos)}},{key:"nextTokenInLineStartSince",value:function(e){return Me.lastIndex=e,Me.test(this.input)?Me.lastIndex:e}},{key:"lookaheadInLineCharCode",value:function(){return this.input.charCodeAt(this.nextTokenInLineStart())}},{key:"codePointAtPos",value:function(e){var t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e=this.length?this.finishToken(139):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}},{key:"skipBlockComment",value:function(e){var t;this.isLookahead||(t=this.state.curPosition());var n=this.state.pos,r=this.input.indexOf(e,n+2);if(-1===r)throw this.raise(w.UnterminatedComment,this.state.curPosition());for(this.state.pos=r+e.length,Ne.lastIndex=n+2;Ne.test(this.input)&&Ne.lastIndex<=r;)++this.state.curLine,this.state.lineStart=Ne.lastIndex;if(!this.isLookahead){var i={type:"CommentBlock",value:this.input.slice(n+2,r),start:n,end:r+e.length,loc:new u(t,this.state.curPosition())};return this.options.tokens&&this.pushToken(i),i}}},{key:"skipLineComment",value:function(e){var t,n=this.state.pos;this.isLookahead||(t=this.state.curPosition());var r=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose))break e;var s=this.skipLineComment(3);void 0!==s&&(this.addComment(s),this.options.attachComment&&t.push(s))}else{if(60!==n||this.inModule||!this.options.annexB)break e;var o=this.state.pos;if(33!==this.input.charCodeAt(o+1)||45!==this.input.charCodeAt(o+2)||45!==this.input.charCodeAt(o+3))break e;var l=this.skipLineComment(4);void 0!==l&&(this.addComment(l),this.options.attachComment&&t.push(l))}}}if(t.length>0){var c={start:e,end:this.state.pos,comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(c)}}},{key:"finishToken",value:function(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}},{key:"replaceToken",value:function(e){this.state.type=e,this.updateContext()}},{key:"readToken_numberSign",value:function(){if(0!==this.state.pos||!this.readToken_interpreter()){var e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(w.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?w.RecordExpressionHashIncorrectStartSyntaxType:w.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else fe(t)?(++this.state.pos,this.finishToken(138,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}}},{key:"readToken_dot",value:function(){var e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}},{key:"readToken_slash",value:function(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}},{key:"readToken_interpreter",value:function(){if(0!==this.state.pos||this.length<2)return!1;var e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;var t=this.state.pos;for(this.state.pos+=1;!De(e)&&++this.state.pos=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}},{key:"getTokenFromCode",value:function(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(w.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(w.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(fe(e))return void this.readWord(e)}throw this.raise(w.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}},{key:"finishOp",value:function(e,t){var n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}},{key:"readRegexp",value:function(){for(var e,t,n=this.state.startLoc,r=this.state.start+1,i=this.state.pos;;++i){if(i>=this.length)throw this.raise(w.UnterminatedRegExp,p(n,1));var a=this.input.charCodeAt(i);if(De(a))throw this.raise(w.UnterminatedRegExp,p(n,1));if(e)e=!1;else{if(91===a)t=!0;else if(93===a&&t)t=!1;else if(47===a&&!t)break;e=92===a}}var s=this.input.slice(r,i);++i;for(var o="",l=function(){return p(n,i+2-r)};i2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=Ke(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,n,r,this.errorHandlers_readInt,!1),a=i.n,s=i.pos;return this.state.pos=s,a}},{key:"readRadixNumber",value:function(e){var t=this.state.curPosition(),n=!1;this.state.pos+=2;var r=this.readInt(e);null==r&&this.raise(w.InvalidDigit,p(t,2),{radix:e});var i=this.input.charCodeAt(this.state.pos);if(110===i)++this.state.pos,n=!0;else if(109===i)throw this.raise(w.InvalidDecimal,t);if(fe(this.codePointAtPos(this.state.pos)))throw this.raise(w.NumberIdentifier,this.state.curPosition());if(n){var a=this.input.slice(t.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,a)}else this.finishToken(134,r)}},{key:"readNumber",value:function(e){var t=this.state.pos,n=this.state.curPosition(),r=!1,i=!1,a=!1,s=!1,o=!1;e||null!==this.readInt(10)||this.raise(w.InvalidNumber,this.state.curPosition());var l=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(l){var c=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(w.StrictOctalLiteral,n),!this.state.strict){var u=c.indexOf("_");u>0&&this.raise(w.ZeroDigitNumericSeparator,p(n,u))}o=l&&!/[89]/.test(c)}var f=this.input.charCodeAt(this.state.pos);if(46!==f||o||(++this.state.pos,this.readInt(10),r=!0,f=this.input.charCodeAt(this.state.pos)),69!==f&&101!==f||o||(43!==(f=this.input.charCodeAt(++this.state.pos))&&45!==f||++this.state.pos,null===this.readInt(10)&&this.raise(w.InvalidOrMissingExponent,n),r=!0,s=!0,f=this.input.charCodeAt(this.state.pos)),110===f&&((r||l)&&this.raise(w.InvalidBigIntLiteral,n),++this.state.pos,i=!0),109===f&&(this.expectPlugin("decimal",this.state.curPosition()),(s||l)&&this.raise(w.InvalidDecimal,n),++this.state.pos,a=!0),fe(this.codePointAtPos(this.state.pos)))throw this.raise(w.NumberIdentifier,this.state.curPosition());var d=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i)this.finishToken(135,d);else if(a)this.finishToken(136,d);else{var h=o?parseInt(d,8):parseFloat(d);this.finishToken(134,h)}}},{key:"readCodePoint",value:function(e){var t=ze(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint),n=t.code,r=t.pos;return this.state.pos=r,n}},{key:"readString",value:function(e){var t=qe(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string),n=t.str,r=t.pos,i=t.curLine,a=t.lineStart;this.state.pos=r+1,this.state.lineStart=a,this.state.curLine=i,this.finishToken(133,n)}},{key:"readTemplateContinuation",value:function(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}},{key:"readTemplateToken",value:function(){var e=this.input[this.state.pos],t=qe("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template),n=t.str,r=t.firstInvalidLoc,i=t.pos,a=t.curLine,s=t.lineStart;this.state.pos=i+1,this.state.lineStart=s,this.state.curLine=a,r&&(this.state.firstInvalidTemplateEscapePos=new c(r.curLine,r.pos-r.lineStart,r.pos)),96===this.input.codePointAt(i)?this.finishToken(24,r?null:e+n+"`"):(this.state.pos++,this.finishToken(25,r?null:e+n+"${"))}},{key:"recordStrictModeErrors",value:function(e,t){var n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}},{key:"readWord1",value:function(e){this.state.containsEsc=!1;var t="",n=this.state.pos,r=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos2&&void 0!==arguments[2]?arguments[2]:{},r=e(t instanceof c?t:t.loc.start,n);if(!this.options.errorRecovery)throw r;return this.isLookahead||this.state.errors.push(r),r}},{key:"raiseOverwrite",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t instanceof c?t:t.loc.start,i=r.index,a=this.state.errors,s=a.length-1;s>=0;s--){var o=a[s];if(o.loc.index===i)return a[s]=e(r,n);if(o.loc.index0&&void 0!==arguments[0]?arguments[0]:0;this.type=t},[{key:"canBeArrowParameterDeclaration",value:function(){return 2===this.type||1===this.type}},{key:"isCertainlyParameterDeclaration",value:function(){return 3===this.type}}])}(),tt=function(e){function t(e){var n;return xn(this,t),(n=ln(this,t,[e])).declarationErrors=new Map,n}return fn(t,e),wn(t,[{key:"recordDeclarationError",value:function(e,t){var n=t.index;this.declarationErrors.set(n,[e,t])}},{key:"clearDeclarationError",value:function(e){this.declarationErrors.delete(e)}},{key:"iterateErrors",value:function(e){this.declarationErrors.forEach(e)}}])}(et),nt=function(){return wn(function e(t){xn(this,e),this.parser=void 0,this.stack=[new et],this.parser=t},[{key:"enter",value:function(e){this.stack.push(e)}},{key:"exit",value:function(){this.stack.pop()}},{key:"recordParameterInitializerError",value:function(e,t){for(var n=t.loc.start,r=this.stack,i=r.length-1,a=r[i];!a.isCertainlyParameterDeclaration();){if(!a.canBeArrowParameterDeclaration())return;a.recordDeclarationError(e,n),a=r[--i]}this.parser.raise(e,n)}},{key:"recordArrowParameterBindingError",value:function(e,t){var n=this.stack,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,i)}}},{key:"recordAsyncArrowParametersError",value:function(e){for(var t=this.stack,n=t.length-1,r=t[n];r.canBeArrowParameterDeclaration();)2===r.type&&r.recordDeclarationError(w.AwaitBindingIdentifier,e),r=t[--n]}},{key:"validateAsPattern",value:function(){var e=this,t=this.stack,n=t[t.length-1];n.canBeArrowParameterDeclaration()&&n.iterateErrors(function(n){var r=an(n,2),i=r[0],a=r[1];e.parser.raise(i,a);for(var s=t.length-2,o=t[s];o.canBeArrowParameterDeclaration();)o.clearDeclarationError(a.index),o=t[--s]})}}])}();function rt(){return new et}var it=function(){return wn(function e(){xn(this,e),this.stacks=[]},[{key:"enter",value:function(e){this.stacks.push(e)}},{key:"exit",value:function(){this.stacks.pop()}},{key:"currentFlags",value:function(){return this.stacks[this.stacks.length-1]}},{key:"hasAwait",get:function(){return(2&this.currentFlags())>0}},{key:"hasYield",get:function(){return(1&this.currentFlags())>0}},{key:"hasReturn",get:function(){return(4&this.currentFlags())>0}},{key:"hasIn",get:function(){return(8&this.currentFlags())>0}}])}();function at(e,t){return(e?2:0)|(t?1:0)}var st=function(e){function t(){return xn(this,t),ln(this,t,arguments)}return fn(t,e),wn(t,[{key:"addExtra",value:function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e){var i=e.extra=e.extra||{};r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}}},{key:"isContextual",value:function(e){return this.state.type===e&&!this.state.containsEsc}},{key:"isUnparsedContextual",value:function(e,t){var n=e+t.length;if(this.input.slice(e,n)===t){var r=this.input.charCodeAt(n);return!(de(r)||55296==(64512&r))}return!1}},{key:"isLookaheadContextual",value:function(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}},{key:"eatContextual",value:function(e){return!!this.isContextual(e)&&(this.next(),!0)}},{key:"expectContextual",value:function(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}},{key:"canInsertSemicolon",value:function(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}},{key:"hasPrecedingLineBreak",value:function(){return _e.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}},{key:"hasFollowingLineBreak",value:function(){return Le.lastIndex=this.state.end,Le.test(this.input)}},{key:"isLineTerminator",value:function(){return this.eat(13)||this.canInsertSemicolon()}},{key:"semicolon",value:function(){(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.eat(13):this.isLineTerminator())||this.raise(w.MissingSemicolon,this.state.lastTokEndLoc)}},{key:"expect",value:function(e,t){this.eat(e)||this.unexpected(t,e)}},{key:"tryParse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone(),n={node:null};try{var r=e(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw n.node=e,n});if(this.state.errors.length>t.errors.length){var i=this.state;return this.state=t,this.state.tokensLength=i.tokensLength,{node:r,error:i.errors[t.errors.length],thrown:!1,aborted:!1,failState:i}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){var a=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:a};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:a};throw e}}},{key:"checkExpressionErrors",value:function(e,t){if(!e)return!1;var n=e.shorthandAssignLoc,r=e.doubleProtoLoc,i=e.privateKeyLoc,a=e.optionalParametersLoc;if(!t)return!!(n||r||a||i);null!=n&&this.raise(w.InvalidCoverInitializedName,n),null!=r&&this.raise(w.DuplicateProto,r),null!=i&&this.raise(w.UnexpectedPrivateField,i),null!=a&&this.unexpected(a)}},{key:"isLiteralPropertyName",value:function(){return $(this.state.type)}},{key:"isPrivateName",value:function(e){return"PrivateName"===e.type}},{key:"getPrivateNameSV",value:function(e){return e.id.name}},{key:"hasPropertyAsPrivateName",value:function(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}},{key:"isObjectProperty",value:function(e){return"ObjectProperty"===e.type}},{key:"isObjectMethod",value:function(e){return"ObjectMethod"===e.type}},{key:"initializeScopes",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType,n=this.state.labels;this.state.labels=[];var r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;var i=this.inModule;this.inModule=t;var a=this.scope,s=this.getScopeHandler();this.scope=new s(this,t);var o=this.prodParam;this.prodParam=new it;var l=this.classScope;this.classScope=new Ze(this);var c=this.expressionScope;return this.expressionScope=new nt(this),function(){e.state.labels=n,e.exportedIdentifiers=r,e.inModule=i,e.scope=a,e.prodParam=o,e.classScope=l,e.expressionScope=c}}},{key:"enterInitialScopes",value:function(){var e=0;this.inModule&&(e|=2),this.scope.enter(1),this.prodParam.enter(e)}},{key:"checkDestructuringPrivate",value:function(e){var t=e.privateKeyLoc;null!==t&&this.expectPlugin("destructuringPrivate",t)}}])}($e),ot=wn(function e(){xn(this,e),this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}),lt=wn(function e(t,n,r){xn(this,e),this.type="",this.start=n,this.end=0,this.loc=new u(r),null!=t&&t.options.ranges&&(this.range=[n,0]),null!=t&&t.filename&&(this.loc.filename=t.filename)}),ct=lt.prototype;function ut(e){var t=e.type,n=e.start,r=e.end,i=e.loc,a=e.range,s=e.extra,o=e.name,l=Object.create(ct);return l.type=t,l.start=n,l.end=r,l.loc=i,l.range=a,l.extra=s,l.name=o,"Placeholder"===t&&(l.expectedNode=e.expectedNode),l}ct.__clone=function(){for(var e=new lt(void 0,this.start,this.loc.start),t=Object.keys(this),n=0,r=t.length;n1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;e.end=t.index,e.loc.end=t,this.options.ranges&&(e.range[1]=t.index)}},{key:"resetStartLocationFromNode",value:function(e,t){this.resetStartLocation(e,t.loc.start)}}])}(st),ft=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),dt=T(t||(t=hn(["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:function(e){var t=e.reservedType;return"Cannot overwrite reserved type ".concat(t,".")},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:function(e){var t=e.memberName,n=e.enumName;return"Boolean enum members need to be initialized. Use either `".concat(t," = true,` or `").concat(t," = false,` in enum `").concat(n,"`.")},EnumDuplicateMemberName:function(e){var t=e.memberName,n=e.enumName;return"Enum member names need to be unique, but the name `".concat(t,"` has already been used before in enum `").concat(n,"`.")},EnumInconsistentMemberValues:function(e){var t=e.enumName;return"Enum `".concat(t,"` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.")},EnumInvalidExplicitType:function(e){var t=e.invalidEnumType,n=e.enumName;return"Enum type `".concat(t,"` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `").concat(n,"`.")},EnumInvalidExplicitTypeUnknownSupplied:function(e){var t=e.enumName;return"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `".concat(t,"`.")},EnumInvalidMemberInitializerPrimaryType:function(e){var t=e.enumName,n=e.memberName,r=e.explicitType;return"Enum `".concat(t,"` has type `").concat(r,"`, so the initializer of `").concat(n,"` needs to be a ").concat(r," literal.")},EnumInvalidMemberInitializerSymbolType:function(e){var t=e.enumName,n=e.memberName;return"Symbol enum members cannot be initialized. Use `".concat(n,",` in enum `").concat(t,"`.")},EnumInvalidMemberInitializerUnknownType:function(e){var t=e.enumName,n=e.memberName;return"The enum member initializer for `".concat(n,"` needs to be a literal (either a boolean, number, or string) in enum `").concat(t,"`.")},EnumInvalidMemberName:function(e){var t=e.enumName,n=e.memberName,r=e.suggestion;return"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `".concat(n,"`, consider using `").concat(r,"`, in enum `").concat(t,"`.")},EnumNumberMemberNotInitialized:function(e){var t=e.enumName,n=e.memberName;return"Number enum members need to be initialized, e.g. `".concat(n," = 1` in enum `").concat(t,"`.")},EnumStringMemberInconsistentlyInitialized:function(e){var t=e.enumName;return"String enum members need to consistently either all use initializers, or use no initializers, in enum `".concat(t,"`.")},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:function(e){var t=e.reservedType;return"Unexpected reserved type ".concat(t,".")},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 ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:function(e){var t=e.unsupportedExportKind,n=e.suggestion;return"`declare export ".concat(t,"` is not supported. Use `").concat(n,"` instead.")},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function ht(e){return"type"===e.importKind||"typeof"===e.importKind}var mt={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},yt=/\*?\s*@((?:no)?flow)\b/,vt={__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:"♦"},gt=T(n||(n=hn(["jsx"])))({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:function(e){var t=e.openingTagName;return"Expected corresponding JSX closing tag for <".concat(t,">.")},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:function(e){var t=e.unexpected,n=e.HTMLEntity;return"Unexpected token `".concat(t,"`. Did you mean `").concat(n,"` or `{'").concat(t,"'}`?")},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 bt(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function Et(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return Et(e.object)+"."+Et(e.property);throw new Error("Node had unexpected type: "+e.type)}var St=function(e){function t(){var e;return xn(this,t),(e=ln(this,t,arguments)).tsNames=new Map,e}return fn(t,e),wn(t)}(xe),xt=function(e){function t(){var e;return xn(this,t),(e=ln(this,t,arguments)).importsStack=[],e}return fn(t,e),wn(t,[{key:"createScope",value:function(e){return this.importsStack.push(new Set),new St(e)}},{key:"enter",value:function(e){256==e&&this.importsStack.push(new Set),sn(t,"enter",this,3)([e])}},{key:"exit",value:function(){var e=sn(t,"exit",this,3)([]);return 256==e&&this.importsStack.pop(),e}},{key:"hasImport",value:function(e,t){var n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1)for(var r=0;r0?!(256&r)||!!(512&r)!=(4&i)>0:128&r&&(8&i)>0?!!(2&e.names.get(n))&&!!(1&r):!!(2&r&&(1&i)>0)||sn(t,"isRedeclaredInScope",this,3)([e,n,r])}},{key:"checkLocalExport",value:function(e){var n=e.name;if(!this.hasImport(n)){for(var r=this.scopeStack.length-1;r>=0;r--){var i=this.scopeStack[r].tsNames.get(n);if((1&i)>0||(16&i)>0)return}sn(t,"checkLocalExport",this,3)([e])}}}])}(Te),Tt=function(e){return"ParenthesizedExpression"===e.type?Tt(e.expression):e},wt=function(e){function t(){return xn(this,t),ln(this,t,arguments)}return fn(t,e),wn(t,[{key:"toAssignable",value:function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(("ParenthesizedExpression"===e.type||null!=(t=e.extra)&&t.parenthesized)&&(r=Tt(e),i?"Identifier"===r.type?this.expressionScope.recordArrowParameterBindingError(w.InvalidParenthesizedAssignment,e):"MemberExpression"===r.type||this.isOptionalMemberExpression(r)||this.raise(w.InvalidParenthesizedAssignment,e):this.raise(w.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern";for(var a=0,s=e.properties.length,o=s-1;a2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(n?Ee(e.name,this.inModule):be(e.name))&&(64===t?this.raise(w.StrictEvalArguments,e,{referenceName:e.name}):this.raise(w.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(w.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}},{key:"declareNameFromIdentifier",value:function(e,t){this.scope.declareName(e.name,t,e.loc.start)}},{key:"checkToRestConversion",value:function(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(w.InvalidRestAssignmentPattern,e)}}},{key:"checkCommaAfterRest",value:function(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?w.RestTrailingComma:w.ElementAfterRest,this.state.startLoc),!0)}}])}(pt);function Pt(e){if(!e)throw new Error("Assert fail")}var At=T(r||(r=hn(["typescript"])))({AbstractMethodHasImplementation:function(e){var t=e.methodName;return"Method '".concat(t,"' cannot have an implementation because it is marked abstract.")},AbstractPropertyHasInitializer:function(e){var t=e.propertyName;return"Property '".concat(t,"' cannot have an initializer because it is marked abstract.")},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"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:function(e){var t=e.kind;return"'declare' is not allowed in ".concat(t,"ters.")},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:function(e){e.modifier;return"Accessibility modifier already seen."},DuplicateModifier:function(e){var t=e.modifier;return"Duplicate modifier: '".concat(t,"'.")},EmptyHeritageClauseType:function(e){var t=e.token;return"'".concat(t,"' 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:function(e){var t=e.modifiers;return"'".concat(t[0],"' modifier cannot be used with '").concat(t[1],"' modifier.")},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:function(e){var t=e.modifier;return"Index signatures cannot have an accessibility modifier ('".concat(t,"').")},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.",InvalidModifierOnTypeMember:function(e){var t=e.modifier;return"'".concat(t,"' modifier cannot appear on a type member.")},InvalidModifierOnTypeParameter:function(e){var t=e.modifier;return"'".concat(t,"' modifier cannot appear on a type parameter.")},InvalidModifierOnTypeParameterPositions:function(e){var t=e.modifier;return"'".concat(t,"' modifier can only appear on a type parameter of a class, interface or type alias.")},InvalidModifiersOrder:function(e){var t=e.orderedModifiers;return"'".concat(t[0],"' modifier must precede '").concat(t[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.",NonClassMethodPropertyHasAbstractModifer:"'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:function(e){var t=e.modifier;return"Private elements cannot have an accessibility modifier ('".concat(t,"').")},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 `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(e){var t=e.typeParameterName;return"Single type parameter ".concat(t," should have a trailing comma. Example usage: <").concat(t,",>.")},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:function(e){var t=e.type;return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ".concat(t,".")}});function kt(e){return"private"===e||"public"===e||"protected"===e}function Ct(e){return"in"===e||"out"===e}function Ot(e){if("MemberExpression"!==e.type)return!1;var t=e.computed,n=e.property;return(!t||"StringLiteral"===n.type||!("TemplateLiteral"!==n.type||n.expressions.length>0))&&Nt(e.object)}function It(e,t){var n,r=e.type;if(null!=(n=e.extra)&&n.parenthesized)return!1;if(t){if("Literal"===r){var i=e.value;if("string"==typeof i||"boolean"==typeof i)return!0}}else if("StringLiteral"===r||"BooleanLiteral"===r)return!0;return!(!_t(e,t)&&!function(e,t){if("UnaryExpression"===e.type){var n=e.operator,r=e.argument;if("-"===n&&_t(r,t))return!0}return!1}(e,t))||"TemplateLiteral"===r&&0===e.expressions.length||!!Ot(e)}function _t(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function Nt(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&Nt(e.object)}var Dt=T(i||(i=hn(["placeholders"])))({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."});function jt(e,t){var n=an("string"==typeof t?[t,{}]:t,2),r=n[0],i=n[1],a=Object.keys(i),s=0===a.length;return e.some(function(e){if("string"==typeof e)return s&&e===r;var t=an(e,2),n=t[0],o=t[1];if(n!==r)return!1;for(var l=0,c=a;l1?r[1][n]:null}var Lt=["minimal","fsharp","hack","smart"],Bt=["^^","@@","^","%","#"],Rt=["hash","bar"],Ft={estree:function(e){return function(e){function t(){return xn(this,t),ln(this,t,arguments)}return fn(t,e),wn(t,[{key:"parse",value:function(){var e=k(sn(t,"parse",this,3)([]));return this.options.tokens&&(e.tokens=e.tokens.map(k)),e}},{key:"parseRegExpLiteral",value:function(e){var t=e.pattern,n=e.flags,r=null;try{r=new RegExp(t,n)}catch(e){}var i=this.estreeParseLiteral(r);return i.regex={pattern:t,flags:n},i}},{key:"parseBigIntLiteral",value:function(e){var t;try{t=BigInt(e)}catch(e){t=null}var n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}},{key:"parseDecimalLiteral",value:function(e){var t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}},{key:"estreeParseLiteral",value:function(e){return this.parseLiteral(e,"Literal")}},{key:"parseStringLiteral",value:function(e){return this.estreeParseLiteral(e)}},{key:"parseNumericLiteral",value:function(e){return this.estreeParseLiteral(e)}},{key:"parseNullLiteral",value:function(){return this.estreeParseLiteral(null)}},{key:"parseBooleanLiteral",value:function(e){return this.estreeParseLiteral(e)}},{key:"directiveToStmt",value:function(e){var t=e.value;delete e.value,t.type="Literal",t.raw=t.extra.raw,t.value=t.extra.expressionValue;var n=e;return n.type="ExpressionStatement",n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}},{key:"initFunction",value:function(e,n){sn(t,"initFunction",this,3)([e,n]),e.expression=!1}},{key:"checkDeclaration",value:function(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):sn(t,"checkDeclaration",this,3)([e])}},{key:"getObjectOrClassMethodParams",value:function(e){return e.value.params}},{key:"isValidDirective",value:function(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}},{key:"parseBlockBody",value:function(e,n,r,i,a){var s=this;sn(t,"parseBlockBody",this,3)([e,n,r,i,a]);var o=e.directives.map(function(e){return s.directiveToStmt(e)});e.body=o.concat(e.body),delete e.directives}},{key:"pushClassMethod",value:function(e,t,n,r,i,a){this.parseMethod(t,n,r,i,a,"ClassMethod",!0),t.typeParameters&&(t.value.typeParameters=t.typeParameters,delete t.typeParameters),e.body.push(t)}},{key:"parsePrivateName",value:function(){var e=sn(t,"parsePrivateName",this,3)([]);return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}},{key:"convertPrivateNameToPrivateIdentifier",value:function(e){var n=sn(t,"getPrivateNameSV",this,3)([e]);return delete e.id,e.name=n,e.type="PrivateIdentifier",e}},{key:"isPrivateName",value:function(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:sn(t,"isPrivateName",this,3)([e])}},{key:"getPrivateNameSV",value:function(e){return this.getPluginOption("estree","classFeatures")?e.name:sn(t,"getPrivateNameSV",this,3)([e])}},{key:"parseLiteral",value:function(e,n){var r=sn(t,"parseLiteral",this,3)([e,n]);return r.raw=r.extra.raw,delete r.extra,r}},{key:"parseFunctionBody",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];sn(t,"parseFunctionBody",this,3)([e,n,r]),e.expression="BlockStatement"!==e.body.type}},{key:"parseMethod",value:function(e,n,r,i,a,s){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=this.startNode();return l.kind=e.kind,(l=sn(t,"parseMethod",this,3)([l,n,r,i,a,s,o])).type="FunctionExpression",delete l.kind,e.value=l,"ClassPrivateMethod"===s&&(e.computed=!1),this.finishNode(e,"MethodDefinition")}},{key:"parseClassProperty",value:function(){var e=sn(t,"parseClassProperty",this,3)(arguments);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e):e}},{key:"parseClassPrivateProperty",value:function(){var e=sn(t,"parseClassPrivateProperty",this,3)(arguments);return this.getPluginOption("estree","classFeatures")?(e.type="PropertyDefinition",e.computed=!1,e):e}},{key:"parseObjectMethod",value:function(e,n,r,i,a){var s=sn(t,"parseObjectMethod",this,3)([e,n,r,i,a]);return s&&(s.type="Property","method"===s.kind&&(s.kind="init"),s.shorthand=!1),s}},{key:"parseObjectProperty",value:function(e,n,r,i){var a=sn(t,"parseObjectProperty",this,3)([e,n,r,i]);return a&&(a.kind="init",a.type="Property"),a}},{key:"isValidLVal",value:function(e,n,r){return"Property"===e?"value":sn(t,"isValidLVal",this,3)([e,n,r])}},{key:"isAssignable",value:function(e,n){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,n):sn(t,"isAssignable",this,3)([e,n])}},{key:"toAssignable",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e&&this.isObjectProperty(e)){var r=e.key,i=e.value;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(i,n)}else sn(t,"toAssignable",this,3)([e,n])}},{key:"toAssignableObjectExpressionProp",value:function(e,n,r){"get"===e.kind||"set"===e.kind?this.raise(w.PatternHasAccessor,e.key):e.method?this.raise(w.PatternHasMethod,e.key):sn(t,"toAssignableObjectExpressionProp",this,3)([e,n,r])}},{key:"finishCallExpression",value:function(e,n){var r,i,a=sn(t,"finishCallExpression",this,3)([e,n]);return"Import"===a.callee.type&&(a.type="ImportExpression",a.source=a.arguments[0],(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(a.options=null!=(r=a.arguments[1])?r:null,a.attributes=null!=(i=a.arguments[1])?i:null),delete a.arguments,delete a.callee),a}},{key:"toReferencedArguments",value:function(e){"ImportExpression"!==e.type&&sn(t,"toReferencedArguments",this,3)([e])}},{key:"parseExport",value:function(e,n){var r=this.state.lastTokStartLoc,i=sn(t,"parseExport",this,3)([e,n]);switch(i.type){case"ExportAllDeclaration":i.exported=null;break;case"ExportNamedDeclaration":1===i.specifiers.length&&"ExportNamespaceSpecifier"===i.specifiers[0].type&&(i.type="ExportAllDeclaration",i.exported=i.specifiers[0].exported,delete i.specifiers);case"ExportDefaultDeclaration":var a,s=i.declaration;"ClassDeclaration"===(null==s?void 0:s.type)&&(null==(a=s.decorators)?void 0:a.length)>0&&s.start===i.start&&this.resetStartLocation(i,r)}return i}},{key:"parseSubscript",value:function(e,n,r,i){var a=sn(t,"parseSubscript",this,3)([e,n,r,i]);if(i.optionalChainMember){if("OptionalMemberExpression"!==a.type&&"OptionalCallExpression"!==a.type||(a.type=a.type.substring(8)),i.stop){var s=this.startNodeAtNode(a);return s.expression=a,this.finishNode(s,"ChainExpression")}}else"MemberExpression"!==a.type&&"CallExpression"!==a.type||(a.optional=!1);return a}},{key:"isOptionalMemberExpression",value:function(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:sn(t,"isOptionalMemberExpression",this,3)([e])}},{key:"hasPropertyAsPrivateName",value:function(e){return"ChainExpression"===e.type&&(e=e.expression),sn(t,"hasPropertyAsPrivateName",this,3)([e])}},{key:"isObjectProperty",value:function(e){return"Property"===e.type&&"init"===e.kind&&!e.method}},{key:"isObjectMethod",value:function(e){return e.method||"get"===e.kind||"set"===e.kind}},{key:"finishNodeAt",value:function(e,n,r){return k(sn(t,"finishNodeAt",this,3)([e,n,r]))}},{key:"resetStartLocation",value:function(e,n){sn(t,"resetStartLocation",this,3)([e,n]),k(e)}},{key:"resetEndLocation",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;sn(t,"resetEndLocation",this,3)([e,n]),k(e)}}])}(e)},jsx:function(e){return function(e){function t(){return xn(this,t),ln(this,t,arguments)}return fn(t,e),wn(t,[{key:"jsxReadToken",value:function(){for(var e="",n=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(gt.UnterminatedJsxContent,this.state.startLoc);var r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):sn(t,"getTokenFromCode",this,3)([r])):(e+=this.input.slice(n,this.state.pos),void this.finishToken(141,e));case 38:e+=this.input.slice(n,this.state.pos),e+=this.jsxReadEntity(),n=this.state.pos;break;default:De(r)?(e+=this.input.slice(n,this.state.pos),e+=this.jsxReadNewLine(!0),n=this.state.pos):++this.state.pos}}}},{key:"jsxReadNewLine",value:function(e){var t,n=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===n&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),++this.state.curLine,this.state.lineStart=this.state.pos,t}},{key:"jsxReadString",value:function(e){for(var t="",n=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(w.UnterminatedString,this.state.startLoc);var r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):De(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(133,t)}},{key:"jsxReadEntity",value:function(){var e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;var t=10;120===this.codePointAtPos(this.state.pos)&&(t=16,++this.state.pos);var n=this.readInt(t,void 0,!1,"bail");if(null!==n&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(n)}else{for(var r=0,i=!1;r++<10&&this.state.posn.index+1&&this.raise(dt.UnexpectedSpaceBetweenModuloChecks,n),this.eat(10)?(e.value=sn(t,"parseExpression",this,3)([]),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}},{key:"flowParseTypeAndPredicateInitialiser",value:function(){var e=this.state.inType;this.state.inType=!0,this.expect(14);var t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}},{key:"flowParseDeclareClass",value:function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}},{key:"flowParseDeclareFunction",value:function(e){var t;this.next();var n=e.id=this.parseIdentifier(),r=this.startNode(),i=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);var a=this.flowParseFunctionTypeParams();return r.params=a.params,r.rest=a.rest,r.this=a._this,this.expect(11),t=an(this.flowParseTypeAndPredicateInitialiser(),2),r.returnType=t[0],e.predicate=t[1],i.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),n.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.resetEndLocation(n),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}},{key:"flowParseDeclare",value:function(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(dt.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void this.unexpected()}},{key:"flowParseDeclareVariable",value:function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}},{key:"flowParseDeclareModule",value:function(e){var n=this;this.scope.enter(0),this.match(133)?e.id=sn(t,"parseExprAtom",this,3)([]):e.id=this.parseIdentifier();var r=e.body=this.startNode(),i=r.body=[];for(this.expect(5);!this.match(8);){var a=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(dt.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),sn(t,"parseImport",this,3)([a])):(this.expectContextual(125,dt.UnsupportedStatementInDeclareModule),a=this.flowParseDeclare(a,!0)),i.push(a)}this.scope.exit(),this.expect(8),this.finishNode(r,"BlockStatement");var s=null,o=!1;return i.forEach(function(e){!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(o&&n.raise(dt.DuplicateDeclareModuleExports,e),"ES"===s&&n.raise(dt.AmbiguousDeclareModuleKind,e),s="CommonJS",o=!0):("CommonJS"===s&&n.raise(dt.AmbiguousDeclareModuleKind,e),s="ES")}),e.kind=s||"CommonJS",this.finishNode(e,"DeclareModule")}},{key:"flowParseDeclareExportDeclaration",value:function(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){var n=this.state.value;throw this.raise(dt.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:n,suggestion:mt[n]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?("ExportNamedDeclaration"===(e=this.parseExport(e,null)).type&&(e.type="ExportDeclaration",e.default=!1,delete e.exportKind),e.type="Declare"+e.type,e):void this.unexpected()}},{key:"flowParseDeclareModuleExports",value:function(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}},{key:"flowParseDeclareTypeAlias",value:function(e){this.next();var t=this.flowParseTypeAlias(e);return t.type="DeclareTypeAlias",t}},{key:"flowParseDeclareOpaqueType",value:function(e){this.next();var t=this.flowParseOpaqueType(e,!0);return t.type="DeclareOpaqueType",t}},{key:"flowParseDeclareInterface",value:function(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}},{key:"flowParseInterfaceish",value:function(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],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:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}},{key:"flowParseInterfaceExtends",value:function(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}},{key:"flowParseInterface",value:function(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}},{key:"checkNotUnderscore",value:function(e){"_"===e&&this.raise(dt.UnexpectedReservedUnderscore,this.state.startLoc)}},{key:"checkReservedType",value:function(e,t,n){ft.has(e)&&this.raise(n?dt.AssignReservedType:dt.UnexpectedReservedType,t,{reservedType:e})}},{key:"flowParseRestrictedIdentifier",value:function(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}},{key:"flowParseTypeAlias",value:function(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}},{key:"flowParseOpaqueType",value:function(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}},{key:"flowParseTypeParameter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.state.startLoc,n=this.startNode(),r=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=r,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(dt.MissingTypeParamDefault,t),this.finishNode(n,"TypeParameter")}},{key:"flowParseTypeParameterDeclaration",value:function(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();var n=!1;do{var r=this.flowParseTypeParameter(n);t.params.push(r),r.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}},{key:"flowParseTypeParameterInstantiation",value:function(){var e=this.startNode(),t=this.state.inType;e.params=[],this.state.inType=!0,this.expect(47);var n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=n,this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}},{key:"flowParseTypeParameterInstantiationCallOrNew",value:function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}},{key:"flowParseInterfaceType",value:function(){var e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}},{key:"flowParseObjectPropertyKey",value:function(){return this.match(134)||this.match(133)?sn(t,"parseExprAtom",this,3)([]):this.parseIdentifier(!0)}},{key:"flowParseObjectTypeIndexer",value:function(e,t,n){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")}},{key:"flowParseObjectTypeInternalSlot",value:function(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}},{key:"flowParseObjectTypeMethodish",value:function(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}},{key:"flowParseObjectTypeCallProperty",value:function(e,t){var n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")}},{key:"flowParseObjectType",value:function(e){var t=e.allowStatic,n=e.allowExact,r=e.allowSpread,i=e.allowProto,a=e.allowInexact,s=this.state.inType;this.state.inType=!0;var o,l,c=this.startNode();c.callProperties=[],c.properties=[],c.indexers=[],c.internalSlots=[];var u=!1;for(n&&this.match(6)?(this.expect(6),o=9,l=!0):(this.expect(5),o=8,l=!1),c.exact=l;!this.match(o);){var p=!1,f=null,d=null,h=this.startNode();if(i&&this.isContextual(118)){var m=this.lookahead();14!==m.type&&17!==m.type&&(this.next(),f=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){var y=this.lookahead();14!==y.type&&17!==y.type&&(this.next(),p=!0)}var v=this.flowParseVariance();if(this.eat(0))null!=f&&this.unexpected(f),this.eat(0)?(v&&this.unexpected(v.loc.start),c.internalSlots.push(this.flowParseObjectTypeInternalSlot(h,p))):c.indexers.push(this.flowParseObjectTypeIndexer(h,p,v));else if(this.match(10)||this.match(47))null!=f&&this.unexpected(f),v&&this.unexpected(v.loc.start),c.callProperties.push(this.flowParseObjectTypeCallProperty(h,p));else{var g="init";(this.isContextual(99)||this.isContextual(104))&&$(this.lookahead().type)&&(g=this.state.value,this.next());var b=this.flowParseObjectTypeProperty(h,p,f,v,g,r,null!=a?a:!l);null===b?(u=!0,d=this.state.lastTokStartLoc):c.properties.push(b)}this.flowObjectTypeSemicolon(),!d||this.match(8)||this.match(9)||this.raise(dt.UnexpectedExplicitInexactInObject,d)}this.expect(o),r&&(c.inexact=u);var E=this.finishNode(c,"ObjectTypeAnnotation");return this.state.inType=s,E}},{key:"flowParseObjectTypeProperty",value:function(e,t,n,r,i,a,s){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?s||this.raise(dt.InexactInsideExact,this.state.lastTokStartLoc):this.raise(dt.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(dt.InexactVariance,r),null):(a||this.raise(dt.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=n&&this.unexpected(n),r&&this.raise(dt.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=n,e.kind=i;var o=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=n&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e),!a&&"constructor"===e.key.name&&e.value.this&&this.raise(dt.ThisParamBannedInConstructor,e.value.this)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=o,this.finishNode(e,"ObjectTypeProperty")}},{key:"flowCheckGetterSetterParams",value:function(e){var t="get"===e.kind?0:1,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?dt.GetterMayNotHaveThisParam:dt.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise("get"===e.kind?w.BadGetterArity:w.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(w.BadSetterRestParameter,e)}},{key:"flowObjectTypeSemicolon",value:function(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}},{key:"flowParseQualifiedTypeIdentifier",value:function(e,t){null!=e||(e=this.state.startLoc);for(var n=t||this.flowParseRestrictedIdentifier(!0);this.eat(16);){var r=this.startNodeAt(e);r.qualification=n,r.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(r,"QualifiedTypeIdentifier")}return n}},{key:"flowParseGenericType",value:function(e,t){var n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}},{key:"flowParseTypeofType",value:function(){var e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}},{key:"flowParseTupleType",value:function(){var e=this.startNode();for(e.types=[],this.expect(0);this.state.pos0&&void 0!==arguments[0]?arguments[0]:[],t=null,n=null;for(this.match(78)&&((n=this.flowParseFunctionTypeParam(!0)).name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:n}}},{key:"flowIdentToTypeAnnotation",value:function(e,t,n){switch(n.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:return this.checkNotUnderscore(n.name),this.flowParseGenericType(e,n)}}},{key:"flowParsePrimaryType",value:function(){var e,n,r=this.state.startLoc,i=this.startNode(),a=!1,s=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=s,n;case 47:return i.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),e=this.flowParseFunctionTypeParams(),i.params=e.params,i.rest=e.rest,i.this=e._this,this.expect(11),this.expect(19),i.returnType=this.flowParseType(),this.finishNode(i,"FunctionTypeAnnotation");case 10:if(this.next(),!this.match(11)&&!this.match(21))if(J(this.state.type)||this.match(78)){var o=this.lookahead().type;a=17!==o&&14!==o}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=s,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),n;this.eat(12)}return e=n?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):this.flowParseFunctionTypeParams(),i.params=e.params,i.rest=e.rest,i.this=e._this,this.expect(11),this.expect(19),i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation");case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(dt.UnexpectedSubtractionOperand,this.state.startLoc)}return void this.unexpected();case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(i,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(ee(this.state.type)){var l=te(this.state.type);return this.next(),sn(t,"createIdentifier",this,3)([i,l])}if(J(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}this.unexpected()}},{key:"flowParsePostfixType",value:function(){for(var e=this.state.startLoc,t=this.flowParsePrimaryType(),n=!1;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){var r=this.startNodeAt(e),i=this.eat(18);n=n||i,this.expect(0),!i&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),n?(r.optional=i,t=this.finishNode(r,"OptionalIndexedAccessType")):t=this.finishNode(r,"IndexedAccessType"))}return t}},{key:"flowParsePrefixType",value:function(){var e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}},{key:"flowParseAnonFunctionWithoutParens",value:function(){var e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){var t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}},{key:"flowParseIntersectionType",value:function(){var e=this.startNode();this.eat(45);var t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}},{key:"flowParseUnionType",value:function(){var e=this.startNode();this.eat(43);var t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}},{key:"flowParseType",value:function(){var e=this.state.inType;this.state.inType=!0;var t=this.flowParseUnionType();return this.state.inType=e,t}},{key:"flowParseTypeOrImplicitInstantiation",value:function(){if(132===this.state.type&&"_"===this.state.value){var e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}},{key:"flowParseTypeAnnotation",value:function(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}},{key:"flowParseTypeAnnotatableIdentifier",value:function(e){var t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}},{key:"typeCastToParameter",value:function(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}},{key:"flowParseVariance",value:function(){var e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}},{key:"parseFunctionBody",value:function(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n?this.forwardNoArrowParamsConversionAt(e,function(){return sn(t,"parseFunctionBody",r,3)([e,!0,i])}):sn(t,"parseFunctionBody",this,3)([e,!1,i])}},{key:"parseFunctionBodyAndFinish",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(14)){var i,a=this.startNode();i=an(this.flowParseTypeAndPredicateInitialiser(),2),a.typeAnnotation=i[0],e.predicate=i[1],e.returnType=a.typeAnnotation?this.finishNode(a,"TypeAnnotation"):null}return sn(t,"parseFunctionBodyAndFinish",this,3)([e,n,r])}},{key:"parseStatementLike",value:function(e){if(this.state.strict&&this.isContextual(129)){if(Y(this.lookahead().type)){var n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.shouldParseEnums()&&this.isContextual(126)){var r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}var i=sn(t,"parseStatementLike",this,3)([e]);return void 0!==this.flowPragma||this.isValidDirective(i)||(this.flowPragma=null),i}},{key:"parseExpressionStatement",value:function(e,n,r){if("Identifier"===n.type)if("declare"===n.name){if(this.match(80)||J(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(J(this.state.type)){if("interface"===n.name)return this.flowParseInterface(e);if("type"===n.name)return this.flowParseTypeAlias(e);if("opaque"===n.name)return this.flowParseOpaqueType(e,!1)}return sn(t,"parseExpressionStatement",this,3)([e,n,r])}},{key:"shouldParseExportDeclaration",value:function(){var e=this.state.type;return Z(e)||this.shouldParseEnums()&&126===e?!this.state.containsEsc:sn(t,"shouldParseExportDeclaration",this,3)([])}},{key:"isExportDefaultSpecifier",value:function(){var e=this.state.type;return Z(e)||this.shouldParseEnums()&&126===e?this.state.containsEsc:sn(t,"isExportDefaultSpecifier",this,3)([])}},{key:"parseExportDefaultExpression",value:function(){if(this.shouldParseEnums()&&this.isContextual(126)){var e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return sn(t,"parseExportDefaultExpression",this,3)([])}},{key:"parseConditional",value:function(e,t,n){var r=this;if(!this.match(17))return e;if(this.state.maybeInArrowParameters){var i=this.lookaheadCharCode();if(44===i||61===i||58===i||41===i)return this.setOptionalParametersError(n),e}this.expect(17);var a=this.state.clone(),s=this.state.noArrowAt,o=this.startNodeAt(t),l=this.tryParseConditionalConsequent(),c=l.consequent,u=l.failed,p=an(this.getArrowLikeExpressions(c),2),f=p[0],d=p[1];if(u||d.length>0){var h,m=vn(s);if(d.length>0){var y,v;this.state=a,this.state.noArrowAt=m;for(var g=0;g1&&this.raise(dt.AmbiguousConditionalArrow,a.startLoc),u&&1===f.length&&(this.state=a,m.push(f[0].start),this.state.noArrowAt=m,c=(h=this.tryParseConditionalConsequent()).consequent,u=h.failed)}return this.getArrowLikeExpressions(c,!0),this.state.noArrowAt=s,this.expect(14),o.test=e,o.consequent=c,o.alternate=this.forwardNoArrowParamsConversionAt(o,function(){return r.parseMaybeAssign(void 0,void 0)}),this.finishNode(o,"ConditionalExpression")}},{key:"tryParseConditionalConsequent",value:function(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}},{key:"getArrowLikeExpressions",value:function(e,t){for(var n=this,r=[e],i=[];0!==r.length;){var a=r.pop();"ArrowFunctionExpression"===a.type?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):i.push(a),r.push(a.body)):"ConditionalExpression"===a.type&&(r.push(a.consequent),r.push(a.alternate))}return t?(i.forEach(function(e){return n.finishArrowValidation(e)}),[i,[]]):function(e,t){for(var n=[],r=[],i=0;i1&&void 0!==arguments[1]&&arguments[1];n||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),sn(t,"toAssignable",this,3)([e,n])}},{key:"toAssignableList",value:function(e,n,r){for(var i=0;i1)&&t||this.raise(dt.TypeCastInPattern,i.typeAnnotation)}return e}},{key:"parseArrayLike",value:function(e,n,r,i){var a=sn(t,"parseArrayLike",this,3)([e,n,r,i]);return n&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}},{key:"isValidLVal",value:function(e,n,r){return"TypeCastExpression"===e||sn(t,"isValidLVal",this,3)([e,n,r])}},{key:"parseClassProperty",value:function(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),sn(t,"parseClassProperty",this,3)([e])}},{key:"parseClassPrivateProperty",value:function(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),sn(t,"parseClassPrivateProperty",this,3)([e])}},{key:"isClassMethod",value:function(){return this.match(47)||sn(t,"isClassMethod",this,3)([])}},{key:"isClassProperty",value:function(){return this.match(14)||sn(t,"isClassProperty",this,3)([])}},{key:"isNonstaticConstructor",value:function(e){return!this.match(14)&&sn(t,"isNonstaticConstructor",this,3)([e])}},{key:"pushClassMethod",value:function(e,n,r,i,a,s){if(n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),sn(t,"pushClassMethod",this,3)([e,n,r,i,a,s]),n.params&&a){var o=n.params;o.length>0&&this.isThisParam(o[0])&&this.raise(dt.ThisParamBannedInConstructor,n)}else if("MethodDefinition"===n.type&&a&&n.value.params){var l=n.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(dt.ThisParamBannedInConstructor,n)}}},{key:"pushClassPrivateMethod",value:function(e,n,r,i){n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),sn(t,"pushClassPrivateMethod",this,3)([e,n,r,i])}},{key:"parseClassSuper",value:function(e){if(sn(t,"parseClassSuper",this,3)([e]),e.superClass&&this.match(47)&&(e.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();var n=e.implements=[];do{var r=this.startNode();r.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,n.push(this.finishNode(r,"ClassImplements"))}while(this.eat(12))}}},{key:"checkGetterSetterParams",value:function(e){sn(t,"checkGetterSetterParams",this,3)([e]);var n=this.getObjectOrClassMethodParams(e);if(n.length>0){var r=n[0];this.isThisParam(r)&&"get"===e.kind?this.raise(dt.GetterMayNotHaveThisParam,r):this.isThisParam(r)&&this.raise(dt.SetterMayNotHaveThisParam,r)}}},{key:"parsePropertyNamePrefixOperator",value:function(e){e.variance=this.flowParseVariance()}},{key:"parseObjPropValue",value:function(e,n,r,i,a,s,o){var l;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!s&&(l=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());var c=sn(t,"parseObjPropValue",this,3)([e,n,r,i,a,s,o]);return l&&((c.value||c).typeParameters=l),c}},{key:"parseAssignableListItemTypes",value:function(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(dt.PatternIsOptional,e),this.isThisParam(e)&&this.raise(dt.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(dt.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(dt.ThisParamNoDefault,e),this.resetEndLocation(e),e}},{key:"parseMaybeDefault",value:function(e,n){var r=sn(t,"parseMaybeDefault",this,3)([e,n]);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start3&&void 0!==arguments[3])||arguments[3];if(!r||-1===this.state.noArrowParamsConversionAt.indexOf(e.start)){for(var a=0;a0&&this.raise(dt.ThisParamMustBeFirst,e.params[a]);sn(t,"checkParams",this,3)([e,n,r,i])}}},{key:"parseParenAndDistinguishExpression",value:function(e){return sn(t,"parseParenAndDistinguishExpression",this,3)([e&&-1===this.state.noArrowAt.indexOf(this.state.start)])}},{key:"parseSubscripts",value:function(e,n,r){var i=this;if("Identifier"===e.type&&"async"===e.name&&-1!==this.state.noArrowAt.indexOf(n.index)){this.next();var a=this.startNodeAt(n);a.callee=e,a.arguments=sn(t,"parseCallExpressionArguments",this,3)([11,!1]),e=this.finishNode(a,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){var s=this.state.clone(),o=this.tryParse(function(e){return i.parseAsyncArrowWithTypeParameters(n)||e()},s);if(!o.error&&!o.aborted)return o.node;var l=this.tryParse(function(){return sn(t,"parseSubscripts",i,3)([e,n,r])},s);if(l.node&&!l.error)return l.node;if(o.node)return this.state=o.failState,o.node;if(l.node)return this.state=l.failState,l.node;throw o.error||l.error}return sn(t,"parseSubscripts",this,3)([e,n,r])}},{key:"parseSubscript",value:function(e,n,r,i){var a=this;if(this.match(18)&&this.isLookaheadToken_lt()){if(i.optionalChainMember=!0,r)return i.stop=!0,e;this.next();var s=this.startNodeAt(n);return s.callee=e,s.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),s.arguments=this.parseCallExpressionArguments(11,!1),s.optional=!0,this.finishCallExpression(s,!0)}if(!r&&this.shouldParseTypes()&&this.match(47)){var o=this.startNodeAt(n);o.callee=e;var l=this.tryParse(function(){return o.typeArguments=a.flowParseTypeParameterInstantiationCallOrNew(),a.expect(10),o.arguments=sn(t,"parseCallExpressionArguments",a,3)([11,!1]),i.optionalChainMember&&(o.optional=!1),a.finishCallExpression(o,i.optionalChainMember)});if(l.node)return l.error&&(this.state=l.failState),l.node}return sn(t,"parseSubscript",this,3)([e,n,r,i])}},{key:"parseNewCallee",value:function(e){var n=this;sn(t,"parseNewCallee",this,3)([e]);var r=null;this.shouldParseTypes()&&this.match(47)&&(r=this.tryParse(function(){return n.flowParseTypeParameterInstantiationCallOrNew()}).node),e.typeArguments=r}},{key:"parseAsyncArrowWithTypeParameters",value:function(e){var n=this.startNodeAt(e);if(this.parseFunctionParams(n,!1),this.parseArrow(n))return sn(t,"parseArrowExpression",this,3)([n,void 0,!0])}},{key:"readToken_mult_modulo",value:function(e){var n=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===n&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();sn(t,"readToken_mult_modulo",this,3)([e])}},{key:"readToken_pipe_amp",value:function(e){var n=this.input.charCodeAt(this.state.pos+1);124!==e||125!==n?sn(t,"readToken_pipe_amp",this,3)([e]):this.finishOp(9,2)}},{key:"parseTopLevel",value:function(e,n){var r=sn(t,"parseTopLevel",this,3)([e,n]);return this.state.hasFlowComment&&this.raise(dt.UnterminatedFlowComment,this.state.curPosition()),r}},{key:"skipBlockComment",value:function(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return sn(t,"skipBlockComment",this,3)([this.state.hasFlowComment?"*-/":"*/"]);if(this.state.hasFlowComment)throw this.raise(dt.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();var e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}},{key:"skipFlowComment",value:function(){for(var e=this.state.pos,t=2;[32,9].includes(this.input.charCodeAt(e+t));)t++;var n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return 58===n&&58===r?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===n&&58!==r&&t}},{key:"hasFlowCommentCompletion",value:function(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(w.UnterminatedComment,this.state.curPosition())}},{key:"flowEnumErrorBooleanMemberNotInitialized",value:function(e,t){var n=t.enumName,r=t.memberName;this.raise(dt.EnumBooleanMemberNotInitialized,e,{memberName:r,enumName:n})}},{key:"flowEnumErrorInvalidMemberInitializer",value:function(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?dt.EnumInvalidMemberInitializerSymbolType:dt.EnumInvalidMemberInitializerPrimaryType:dt.EnumInvalidMemberInitializerUnknownType,e,t)}},{key:"flowEnumErrorNumberMemberNotInitialized",value:function(e,t){this.raise(dt.EnumNumberMemberNotInitialized,e,t)}},{key:"flowEnumErrorStringMemberInconsistentlyInitialized",value:function(e,t){this.raise(dt.EnumStringMemberInconsistentlyInitialized,e,t)}},{key:"flowEnumMemberInit",value:function(){var e=this,t=this.state.startLoc,n=function(){return e.match(12)||e.match(8)};switch(this.state.type){case 134:var r=this.parseNumericLiteral(this.state.value);return n()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:t};case 133:var i=this.parseStringLiteral(this.state.value);return n()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:t};case 85:case 86:var a=this.parseBooleanLiteral(this.match(85));return n()?{type:"boolean",loc:a.loc.start,value:a}:{type:"invalid",loc:t};default:return{type:"invalid",loc:t}}}},{key:"flowEnumMemberRaw",value:function(){var e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}},{key:"flowEnumCheckExplicitTypeMismatch",value:function(e,t,n){var r=t.explicitType;null!==r&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}},{key:"flowEnumMembers",value:function(e){for(var t=e.enumName,n=e.explicitType,r=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;!this.match(8);){if(this.eat(21)){a=!0;break}var s=this.startNode(),o=this.flowEnumMemberRaw(),l=o.id,c=o.init,u=l.name;if(""!==u){/^[a-z]/.test(u)&&this.raise(dt.EnumInvalidMemberName,l,{memberName:u,suggestion:u[0].toUpperCase()+u.slice(1),enumName:t}),r.has(u)&&this.raise(dt.EnumDuplicateMemberName,l,{memberName:u,enumName:t}),r.add(u);var p={enumName:t,explicitType:n,memberName:u};switch(s.id=l,c.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(c.loc,p,"boolean"),s.init=c.value,i.booleanMembers.push(this.finishNode(s,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(c.loc,p,"number"),s.init=c.value,i.numberMembers.push(this.finishNode(s,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(c.loc,p,"string"),s.init=c.value,i.stringMembers.push(this.finishNode(s,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(c.loc,p);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(c.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(c.loc,p);break;default:i.defaultedMembers.push(this.finishNode(s,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}}return{members:i,hasUnknownMembers:a}}},{key:"flowEnumStringMembers",value:function(e,t,n){var r=n.enumName;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){var i,a=gn(e);try{for(a.s();!(i=a.n()).done;){var s=i.value;this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:r})}}catch(u){a.e(u)}finally{a.f()}return t}var o,l=gn(t);try{for(l.s();!(o=l.n()).done;){var c=o.value;this.flowEnumErrorStringMemberInconsistentlyInitialized(c,{enumName:r})}}catch(u){l.e(u)}finally{l.f()}return e}},{key:"flowEnumParseExplicitType",value:function(e){var t=e.enumName;if(!this.eatContextual(102))return null;if(!J(this.state.type))throw this.raise(dt.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});var n=this.state.value;return this.next(),"boolean"!==n&&"number"!==n&&"string"!==n&&"symbol"!==n&&this.raise(dt.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:n}),n}},{key:"flowEnumBody",value:function(e,t){var n=this,r=t.name,i=t.loc.start,a=this.flowEnumParseExplicitType({enumName:r});this.expect(5);var s=this.flowEnumMembers({enumName:r,explicitType:a}),o=s.members,l=s.hasUnknownMembers;switch(e.hasUnknownMembers=l,a){case"boolean":return e.explicitType=!0,e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=o.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:var c=function(){return e.members=[],n.expect(8),n.finishNode(e,"EnumStringBody")};e.explicitType=!1;var u=o.booleanMembers.length,p=o.numberMembers.length,f=o.stringMembers.length,d=o.defaultedMembers.length;if(u||p||f||d){if(u||p){if(!p&&!f&&u>=d){var h,m=gn(o.defaultedMembers);try{for(m.s();!(h=m.n()).done;){var y=h.value;this.flowEnumErrorBooleanMemberNotInitialized(y.loc.start,{enumName:r,memberName:y.id.name})}}catch(E){m.e(E)}finally{m.f()}return e.members=o.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!u&&!f&&p>=d){var v,g=gn(o.defaultedMembers);try{for(g.s();!(v=g.n()).done;){var b=v.value;this.flowEnumErrorNumberMemberNotInitialized(b.loc.start,{enumName:r,memberName:b.id.name})}}catch(E){g.e(E)}finally{g.f()}return e.members=o.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(dt.EnumInconsistentMemberValues,i,{enumName:r}),c()}return e.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody")}return c()}}},{key:"flowParseEnumDeclaration",value:function(e){var t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}},{key:"isLookaheadToken_lt",value:function(){var e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){var t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}},{key:"maybeUnwrapTypeCastExpression",value:function(e){return"TypeCastExpression"===e.type?e.expression:e}}])}(e)},typescript:function(e){return function(t){function n(){var e;return xn(this,n),(e=ln(this,n,arguments)).tsParseInOutModifiers=e.tsParseModifiers.bind(cn(e),{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:At.InvalidModifierOnTypeParameter}),e.tsParseConstModifier=e.tsParseModifiers.bind(cn(e),{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:At.InvalidModifierOnTypeParameterPositions}),e.tsParseInOutConstModifiers=e.tsParseModifiers.bind(cn(e),{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:At.InvalidModifierOnTypeParameter}),e}return fn(n,t),wn(n,[{key:"getScopeHandler",value:function(){return xt}},{key:"tsIsIdentifier",value:function(){return J(this.state.type)}},{key:"tsTokenCanFollowModifier",value:function(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}},{key:"tsNextTokenCanFollowModifier",value:function(){return this.next(),this.tsTokenCanFollowModifier()}},{key:"tsParseModifier",value:function(e,t){if(J(this.state.type)||58===this.state.type||75===this.state.type){var n=this.state.value;if(-1!==e.indexOf(n)){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}}},{key:"tsParseModifiers",value:function(e,t){for(var n=this,r=e.allowedModifiers,i=e.disallowedModifiers,a=e.stopOnStartOfClassStaticBlock,s=e.errorTemplate,o=void 0===s?At.InvalidModifierOnTypeMember:s,l=function(e,r,i,a){r===i&&t[a]&&n.raise(At.InvalidModifiersOrder,e,{orderedModifiers:[i,a]})},c=function(e,r,i,a){(t[i]&&r===a||t[a]&&r===i)&&n.raise(At.IncompatibleModifiers,e,{modifiers:[i,a]})};;){var u=this.state.startLoc,p=this.tsParseModifier(r.concat(null!=i?i:[]),a);if(!p)break;kt(p)?t.accessibility?this.raise(At.DuplicateAccessibilityModifier,u,{modifier:p}):(l(u,p,p,"override"),l(u,p,p,"static"),l(u,p,p,"readonly"),t.accessibility=p):Ct(p)?(t[p]&&this.raise(At.DuplicateModifier,u,{modifier:p}),t[p]=!0,l(u,p,"in","out")):(Object.hasOwnProperty.call(t,p)?this.raise(At.DuplicateModifier,u,{modifier:p}):(l(u,p,"static","readonly"),l(u,p,"static","override"),l(u,p,"override","readonly"),l(u,p,"abstract","override"),c(u,p,"declare","override"),c(u,p,"static","abstract")),t[p]=!0),null!=i&&i.includes(p)&&this.raise(o,u,{modifier:p})}}},{key:"tsIsListTerminator",value:function(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)}}},{key:"tsParseList",value:function(e,t){for(var n=[];!this.tsIsListTerminator(e);)n.push(t());return n}},{key:"tsParseDelimitedList",value:function(e,t,n){return function(e){if(null==e)throw new Error("Unexpected ".concat(e," value."));return e}(this.tsParseDelimitedListWorker(e,t,!0,n))}},{key:"tsParseDelimitedListWorker",value:function(e,t,n,r){for(var i=[],a=-1;!this.tsIsListTerminator(e);){a=-1;var s=t();if(null==s)return;if(i.push(s),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(12))}a=this.state.lastTokStartLoc.index}return r&&(r.value=a),i}},{key:"tsParseBracketedList",value:function(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));var a=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),a}},{key:"tsParseImportType",value:function(){var e=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(At.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=sn(n,"parseExprAtom",this,3)([]),this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName()),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}},{key:"tsParseEntityName",value:function(){for(var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.parseIdentifier(e);this.eat(16);){var n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(e),t=this.finishNode(n,"TSQualifiedName")}return t}},{key:"tsParseTypeReference",value:function(){var e=this.startNode();return e.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}},{key:"tsParseThisTypePredicate",value:function(e){this.next();var t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}},{key:"tsParseThisTypeNode",value:function(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}},{key:"tsParseTypeQuery",value:function(){var e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}},{key:"tsParseTypeParameter",value:function(e){var t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}},{key:"tsTryParseTypeParameters",value:function(e){if(this.match(47))return this.tsParseTypeParameters(e)}},{key:"tsParseTypeParameters",value:function(e){var t=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();var n={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),0===t.params.length&&this.raise(At.EmptyTypeParameters,t),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")}},{key:"tsFillSignature",value:function(e,t){var n=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}},{key:"tsParseBindingListForSignature",value:function(){var e,t=sn(n,"parseBindingList",this,3)([11,41,2]),r=gn(t);try{for(r.s();!(e=r.n()).done;){var i=e.value,a=i.type;"AssignmentPattern"!==a&&"TSParameterProperty"!==a||this.raise(At.UnsupportedSignatureParameterKind,i,{type:a})}}catch(s){r.e(s)}finally{r.f()}return t}},{key:"tsParseTypeMemberSemicolon",value:function(){this.eat(12)||this.isLineTerminator()||this.expect(13)}},{key:"tsParseSignatureMember",value:function(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}},{key:"tsIsUnambiguouslyIndexSignature",value:function(){return this.next(),!!J(this.state.type)&&(this.next(),this.match(14))}},{key:"tsTryParseIndexSignature",value:function(e){if(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(0);var t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];var n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}}},{key:"tsParsePropertyOrMethodSignature",value:function(e,t){this.eat(17)&&(e.optional=!0);var n=e;if(this.match(10)||this.match(47)){t&&this.raise(At.ReadonlyForMethodSignature,e);var r=n;r.kind&&this.match(47)&&this.raise(At.AccesorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();var i="parameters",a="typeAnnotation";if("get"===r.kind)r[i].length>0&&(this.raise(w.BadGetterArity,this.state.curPosition()),this.isThisParam(r[i][0])&&this.raise(At.AccesorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===r.kind){if(1!==r[i].length)this.raise(w.BadSetterArity,this.state.curPosition());else{var s=r[i][0];this.isThisParam(s)&&this.raise(At.AccesorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===s.type&&s.optional&&this.raise(At.SetAccesorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===s.type&&this.raise(At.SetAccesorCannotHaveRestParameter,this.state.curPosition())}r[a]&&this.raise(At.SetAccesorCannotHaveReturnType,r[a])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}var o=n;t&&(o.readonly=!0);var l=this.tsTryParseTypeAnnotation();return l&&(o.typeAnnotation=l),this.tsParseTypeMemberSemicolon(),this.finishNode(o,"TSPropertySignature")}},{key:"tsParseTypeMember",value:function(){var e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){var t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e),this.tsTryParseIndexSignature(e)||(sn(n,"parsePropertyName",this,3)([e]),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,sn(n,"parsePropertyName",this,3)([e])),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}},{key:"tsParseTypeLiteral",value:function(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}},{key:"tsParseObjectTypeMembers",value:function(){this.expect(5);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}},{key:"tsIsStartOfMappedType",value:function(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}},{key:"tsParseMappedTypeParameter",value:function(){var e=this.startNode();return e.name=this.tsParseTypeParameterName(),e.constraint=this.tsExpectThenParseType(58),this.finishNode(e,"TSTypeParameter")}},{key:"tsParseMappedType",value:function(){var e=this.startNode();return this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0),e.typeParameter=this.tsParseMappedTypeParameter(),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}},{key:"tsParseTupleType",value:function(){var e=this,t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var n=!1;return t.elementTypes.forEach(function(t){var r=t.type;!n||"TSRestType"===r||"TSOptionalType"===r||"TSNamedTupleMember"===r&&t.optional||e.raise(At.OptionalTypeBeforeRequired,t),n||(n="TSNamedTupleMember"===r&&t.optional||"TSOptionalType"===r)}),this.finishNode(t,"TSTupleType")}},{key:"tsParseTupleElementType",value:function(){var e,t,n,r,i,a=this.state.startLoc,s=this.eat(21),o=Y(this.state.type)?this.lookaheadCharCode():null;if(58===o)e=!0,n=!1,t=this.parseIdentifier(!0),this.expect(14),r=this.tsParseType();else if(63===o){n=!0;var l=this.state.startLoc,c=this.state.value,u=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(l),c),this.expect(17),this.expect(14),r=this.tsParseType()):(e=!1,r=u,this.expect(17))}else r=this.tsParseType(),n=this.eat(17),e=this.eat(14);if(e)t?((i=this.startNodeAtNode(t)).optional=n,i.label=t,i.elementType=r,this.eat(17)&&(i.optional=!0,this.raise(At.TupleOptionalAfterType,this.state.lastTokStartLoc))):((i=this.startNodeAtNode(r)).optional=n,this.raise(At.InvalidTupleMemberLabel,r),i.label=r,i.elementType=this.tsParseType()),r=this.finishNode(i,"TSNamedTupleMember");else if(n){var p=this.startNodeAtNode(r);p.typeAnnotation=r,r=this.finishNode(p,"TSOptionalType")}if(s){var f=this.startNodeAt(a);f.typeAnnotation=r,r=this.finishNode(f,"TSRestType")}return r}},{key:"tsParseParenthesizedType",value:function(){var e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}},{key:"tsParseFunctionOrConstructorType",value:function(e,t){var n=this,r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(function(){return n.tsFillSignature(19,r)}),this.finishNode(r,e)}},{key:"tsParseLiteralTypeNode",value:function(){var e=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:e.literal=sn(n,"parseExprAtom",this,3)([]);break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}},{key:"tsParseTemplateLiteralType",value:function(){var e=this.startNode();return e.literal=sn(n,"parseTemplate",this,3)([!1]),this.finishNode(e,"TSLiteralType")}},{key:"parseTemplateSubstitution",value:function(){return this.state.inType?this.tsParseType():sn(n,"parseTemplateSubstitution",this,3)([])}},{key:"tsParseThisTypeOrThisTypePredicate",value:function(){var e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}},{key:"tsParseNonArrayType",value:function(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){var e=this.startNode(),t=this.lookahead();return 134!==t.type&&135!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),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:var n=this.state.type;if(J(n)||88===n||84===n){var r=88===n?"TSVoidKeyword":84===n?"TSNullKeyword":function(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}}(this.state.value);if(void 0!==r&&46!==this.lookaheadCharCode()){var i=this.startNode();return this.next(),this.finishNode(i,r)}return this.tsParseTypeReference()}}this.unexpected()}},{key:"tsParseArrayTypeOrHigher",value:function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(3),e=this.finishNode(t,"TSArrayType")}else{var n=this.startNodeAtNode(e);n.objectType=e,n.indexType=this.tsParseType(),this.expect(3),e=this.finishNode(n,"TSIndexedAccessType")}return e}},{key:"tsParseTypeOperator",value:function(){var e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}},{key:"tsCheckTypeAnnotationForReadOnly",value:function(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(At.UnexpectedReadonly,e)}}},{key:"tsParseInferType",value:function(){var e=this,t=this.startNode();this.expectContextual(115);var n=this.startNode();return n.name=this.tsParseTypeParameterName(),n.constraint=this.tsTryParse(function(){return e.tsParseConstraintForInferType()}),t.typeParameter=this.finishNode(n,"TSTypeParameter"),this.finishNode(t,"TSInferType")}},{key:"tsParseConstraintForInferType",value:function(){var e=this;if(this.eat(81)){var t=this.tsInDisallowConditionalTypesContext(function(){return e.tsParseType()});if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}}},{key:"tsParseTypeOperatorOrHigher",value:function(){var e,t=this;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(function(){return t.tsParseArrayTypeOrHigher()})}},{key:"tsParseUnionOrIntersectionType",value:function(e,t,n){var r=this.startNode(),i=this.eat(n),a=[];do{a.push(t())}while(this.eat(n));return 1!==a.length||i?(r.types=a,this.finishNode(r,e)):a[0]}},{key:"tsParseIntersectionTypeOrHigher",value:function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}},{key:"tsParseUnionTypeOrHigher",value:function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}},{key:"tsIsStartOfFunctionType",value:function(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}},{key:"tsSkipParameterStart",value:function(){if(J(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){var t=this.state.errors,r=t.length;try{return this.parseObjectLike(8,!0),t.length===r}catch(e){return!1}}if(this.match(0)){this.next();var i=this.state.errors,a=i.length;try{return sn(n,"parseBindingList",this,3)([3,93,1]),i.length===a}catch(e){return!1}}return!1}},{key:"tsIsUnambiguouslyStartOfFunctionType",value:function(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}},{key:"tsParseTypeOrTypePredicateAnnotation",value:function(e){var t=this;return this.tsInType(function(){var n=t.startNode();t.expect(e);var r=t.startNode(),i=!!t.tsTryParse(t.tsParseTypePredicateAsserts.bind(t));if(i&&t.match(78)){var a=t.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===a.type?(r.parameterName=a,r.asserts=!0,r.typeAnnotation=null,a=t.finishNode(r,"TSTypePredicate")):(t.resetStartLocationFromNode(a,r),a.asserts=!0),n.typeAnnotation=a,t.finishNode(n,"TSTypeAnnotation")}var s=t.tsIsIdentifier()&&t.tsTryParse(t.tsParseTypePredicatePrefix.bind(t));if(!s)return i?(r.parameterName=t.parseIdentifier(),r.asserts=i,r.typeAnnotation=null,n.typeAnnotation=t.finishNode(r,"TSTypePredicate"),t.finishNode(n,"TSTypeAnnotation")):t.tsParseTypeAnnotation(!1,n);var o=t.tsParseTypeAnnotation(!1);return r.parameterName=s,r.typeAnnotation=o,r.asserts=i,n.typeAnnotation=t.finishNode(r,"TSTypePredicate"),t.finishNode(n,"TSTypeAnnotation")})}},{key:"tsTryParseTypeOrTypePredicateAnnotation",value:function(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}},{key:"tsTryParseTypeAnnotation",value:function(){if(this.match(14))return this.tsParseTypeAnnotation()}},{key:"tsTryParseType",value:function(){return this.tsEatThenParseType(14)}},{key:"tsParseTypePredicatePrefix",value:function(){var e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}},{key:"tsParseTypePredicateAsserts",value:function(){if(109!==this.state.type)return!1;var e=this.state.containsEsc;return this.next(),!(!J(this.state.type)&&!this.match(78)||(e&&this.raise(w.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),0))}},{key:"tsParseTypeAnnotation",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType(function(){t&&e.expect(14),n.typeAnnotation=e.tsParseType()}),this.finishNode(n,"TSTypeAnnotation")}},{key:"tsParseType",value:function(){var e=this;Pt(this.state.inType);var t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;var n=this.startNodeAtNode(t);return n.checkType=t,n.extendsType=this.tsInDisallowConditionalTypesContext(function(){return e.tsParseNonConditionalType()}),this.expect(17),n.trueType=this.tsInAllowConditionalTypesContext(function(){return e.tsParseType()}),this.expect(14),n.falseType=this.tsInAllowConditionalTypesContext(function(){return e.tsParseType()}),this.finishNode(n,"TSConditionalType")}},{key:"isAbstractConstructorSignature",value:function(){return this.isContextual(124)&&77===this.lookahead().type}},{key:"tsParseNonConditionalType",value:function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}},{key:"tsParseTypeAssertion",value:function(){var e=this;this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(At.ReservedTypeAssertion,this.state.startLoc);var t=this.startNode();return t.typeAnnotation=this.tsInType(function(){return e.next(),e.match(75)?e.tsParseTypeReference():e.tsParseType()}),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}},{key:"tsParseHeritageClause",value:function(e){var t=this,n=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",function(){var e=t.startNode();return e.expression=t.tsParseEntityName(),t.match(47)&&(e.typeParameters=t.tsParseTypeArguments()),t.finishNode(e,"TSExpressionWithTypeArguments")});return r.length||this.raise(At.EmptyHeritageClauseType,n,{token:e}),r}},{key:"tsParseInterfaceDeclaration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),J(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(At.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));var n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}},{key:"tsParseTypeAliasDeclaration",value:function(e){var t=this;return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(function(){if(e.typeParameters=t.tsTryParseTypeParameters(t.tsParseInOutModifiers),t.expect(29),t.isContextual(114)&&16!==t.lookahead().type){var n=t.startNode();return t.next(),t.finishNode(n,"TSIntrinsicKeyword")}return t.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}},{key:"tsInNoContext",value:function(e){var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}},{key:"tsInType",value:function(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}},{key:"tsInDisallowConditionalTypesContext",value:function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}},{key:"tsInAllowConditionalTypesContext",value:function(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}},{key:"tsEatThenParseType",value:function(e){if(this.match(e))return this.tsNextThenParseType()}},{key:"tsExpectThenParseType",value:function(e){var t=this;return this.tsInType(function(){return t.expect(e),t.tsParseType()})}},{key:"tsNextThenParseType",value:function(){var e=this;return this.tsInType(function(){return e.next(),e.tsParseType()})}},{key:"tsParseEnumMember",value:function(){var e=this.startNode();return e.id=this.match(133)?sn(n,"parseStringLiteral",this,3)([this.state.value]):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=sn(n,"parseMaybeAssignAllowIn",this,3)([])),this.finishNode(e,"TSEnumMember")}},{key:"tsParseEnumDeclaration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.const&&(e.const=!0),t.declare&&(e.declare=!0),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),this.finishNode(e,"TSEnumDeclaration")}},{key:"tsParseModuleBlock",value:function(){var e=this.startNode();return this.scope.enter(0),this.expect(5),sn(n,"parseBlockOrModuleBlockBody",this,3)([e.body=[],void 0,!0,8]),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}},{key:"tsParseModuleOrNamespaceDeclaration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){var n=this.startNode();this.tsParseModuleOrNamespaceDeclaration(n,!0),e.body=n}else this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}},{key:"tsParseAmbientExternalModuleDeclaration",value:function(e){return this.isContextual(112)?(e.global=!0,e.id=this.parseIdentifier()):this.match(133)?e.id=sn(n,"parseStringLiteral",this,3)([this.state.value]):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}},{key:"tsParseImportEqualsDeclaration",value:function(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);var r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(At.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}},{key:"tsIsExternalModuleReference",value:function(){return this.isContextual(119)&&40===this.lookaheadCharCode()}},{key:"tsParseModuleReference",value:function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}},{key:"tsParseExternalModuleReference",value:function(){var e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),e.expression=sn(n,"parseExprAtom",this,3)([]),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}},{key:"tsLookAhead",value:function(e){var t=this.state.clone(),n=e();return this.state=t,n}},{key:"tsTryParseAndCatch",value:function(e){var t=this.tryParse(function(t){return e()||t()});if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}},{key:"tsTryParse",value:function(e){var t=this.state.clone(),n=e();if(void 0!==n&&!1!==n)return n;this.state=t}},{key:"tsTryParseDeclare",value:function(e){var t=this;if(!this.isLineTerminator()){var r,i=this.state.type;return this.isContextual(100)&&(i=74,r="let"),this.tsInAmbientContext(function(){switch(i){case 68:return e.declare=!0,sn(n,"parseFunctionStatement",t,3)([e,!1,!1]);case 80:return e.declare=!0,t.parseClass(e,!0,!1);case 126:return t.tsParseEnumDeclaration(e,{declare:!0});case 112:return t.tsParseAmbientExternalModuleDeclaration(e);case 75:case 74:return t.match(75)&&t.isLookaheadContextual("enum")?(t.expect(75),t.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,t.parseVarStatement(e,r||t.state.value,!0));case 129:var a=t.tsParseInterfaceDeclaration(e,{declare:!0});if(a)return a;default:if(J(i))return t.tsParseDeclaration(e,t.state.value,!0,null)}})}}},{key:"tsTryParseExportDeclaration",value:function(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}},{key:"tsParseExpressionStatement",value:function(e,t,n){switch(t.name){case"declare":var r=this.tsTryParseDeclare(e);return r&&(r.declare=!0),r;case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);var i=e;return i.global=!0,i.id=t,i.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(i,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,n)}}},{key:"tsParseDeclaration",value:function(e,t,n,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(n)&&(this.match(80)||J(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(n)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(e);if(J(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(n)&&J(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(n)&&J(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}},{key:"tsCheckLineTerminator",value:function(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}},{key:"tsTryParseGenericAsyncArrowFunction",value:function(e){var t=this;if(this.match(47)){var r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;var i=this.tsTryParseAndCatch(function(){var r=t.startNodeAt(e);return r.typeParameters=t.tsParseTypeParameters(t.tsParseConstModifier),sn(n,"parseFunctionParams",t,3)([r]),r.returnType=t.tsTryParseTypeOrTypePredicateAnnotation(),t.expect(19),r});return this.state.maybeInArrowParameters=r,i?sn(n,"parseArrowExpression",this,3)([i,null,!0]):void 0}}},{key:"tsParseTypeArgumentsInExpression",value:function(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}},{key:"tsParseTypeArguments",value:function(){var e=this,t=this.startNode();return t.params=this.tsInType(function(){return e.tsInNoContext(function(){return e.expect(47),e.tsParseDelimitedList("TypeParametersOrArguments",e.tsParseType.bind(e))})}),0===t.params.length?this.raise(At.EmptyTypeArguments,t):this.state.inType||this.curContext()!==O.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")}},{key:"tsIsDeclarationStart",value:function(){return(e=this.state.type)>=124&&e<=130;var e}},{key:"isExportDefaultSpecifier",value:function(){return!this.tsIsDeclarationStart()&&sn(n,"isExportDefaultSpecifier",this,3)([])}},{key:"parseAssignableListItem",value:function(e,t){var n=this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);var i=r.accessibility,a=r.override,s=r.readonly;4&e||!(i||s||a)||this.raise(At.UnexpectedParameterModifier,n);var o=this.parseMaybeDefault();this.parseAssignableListItemTypes(o,e);var l=this.parseMaybeDefault(o.loc.start,o);if(i||s||a){var c=this.startNodeAt(n);return t.length&&(c.decorators=t),i&&(c.accessibility=i),s&&(c.readonly=s),a&&(c.override=a),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(At.UnsupportedParameterPropertyKind,c),c.parameter=l,this.finishNode(c,"TSParameterProperty")}return t.length&&(o.decorators=t),l}},{key:"isSimpleParameter",value:function(e){return"TSParameterProperty"===e.type&&sn(n,"isSimpleParameter",this,3)([e.parameter])||sn(n,"isSimpleParameter",this,3)([e])}},{key:"tsDisallowOptionalPattern",value:function(e){var t,n=gn(e.params);try{for(n.s();!(t=n.n()).done;){var r=t.value;"Identifier"!==r.type&&r.optional&&!this.state.isAmbientContext&&this.raise(At.PatternIsOptional,r)}}catch(i){n.e(i)}finally{n.f()}}},{key:"setArrowFunctionParameters",value:function(e,t,r){sn(n,"setArrowFunctionParameters",this,3)([e,t,r]),this.tsDisallowOptionalPattern(e)}},{key:"parseFunctionBodyAndFinish",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));var i="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return i&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,i):"TSDeclareFunction"===i&&this.state.isAmbientContext&&(this.raise(At.DeclareFunctionHasImplementation,e),e.declare)?sn(n,"parseFunctionBodyAndFinish",this,3)([e,i,r]):(this.tsDisallowOptionalPattern(e),sn(n,"parseFunctionBodyAndFinish",this,3)([e,t,r]))}},{key:"registerFunctionStatementId",value:function(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):sn(n,"registerFunctionStatementId",this,3)([e])}},{key:"tsCheckForInvalidTypeCasts",value:function(e){var t=this;e.forEach(function(e){"TSTypeCastExpression"===(null==e?void 0:e.type)&&t.raise(At.UnexpectedTypeAnnotation,e.typeAnnotation)})}},{key:"toReferencedList",value:function(e,t){return this.tsCheckForInvalidTypeCasts(e),e}},{key:"parseArrayLike",value:function(e,t,r,i){var a=sn(n,"parseArrayLike",this,3)([e,t,r,i]);return"ArrayExpression"===a.type&&this.tsCheckForInvalidTypeCasts(a.elements),a}},{key:"parseSubscript",value:function(e,t,r,i){var a=this;if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();var s=this.startNodeAt(t);return s.expression=e,this.finishNode(s,"TSNonNullExpression")}var o=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return i.stop=!0,e;i.optionalChainMember=o=!0,this.next()}if(this.match(47)||this.match(51)){var l,c=this.tsTryParseAndCatch(function(){if(!r&&a.atPossibleAsyncArrow(e)){var s=a.tsTryParseGenericAsyncArrowFunction(t);if(s)return s}var c=a.tsParseTypeArgumentsInExpression();if(c)if(!o||a.match(10)){if(re(a.state.type)){var u=sn(n,"parseTaggedTemplateExpression",a,3)([e,t,i]);return u.typeParameters=c,u}if(!r&&a.eat(10)){var p=a.startNodeAt(t);return p.callee=e,p.arguments=a.parseCallExpressionArguments(11,!1),a.tsCheckForInvalidTypeCasts(p.arguments),p.typeParameters=c,i.optionalChainMember&&(p.optional=o),a.finishCallExpression(p,i.optionalChainMember)}var f=a.state.type;if(48!==f&&52!==f&&(10===f||!Q(f)||a.hasPrecedingLineBreak())){var d=a.startNodeAt(t);return d.expression=e,d.typeParameters=c,a.finishNode(d,"TSInstantiationExpression")}}else l=a.state.curPosition()});if(l&&this.unexpected(l,10),c)return"TSInstantiationExpression"===c.type&&(this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(At.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),c}return sn(n,"parseSubscript",this,3)([e,t,r,i])}},{key:"parseNewCallee",value:function(e){var t;sn(n,"parseNewCallee",this,3)([e]);var r=e.callee;"TSInstantiationExpression"!==r.type||null!=(t=r.extra)&&t.parenthesized||(e.typeParameters=r.typeParameters,e.callee=r.expression)}},{key:"parseExprOp",value:function(e,t,r){var i,a=this;if(ne(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(i=this.isContextual(120)))){var s=this.startNodeAt(t);return s.expression=e,s.typeAnnotation=this.tsInType(function(){return a.next(),a.match(75)?(i&&a.raise(w.UnexpectedKeyword,a.state.startLoc,{keyword:"const"}),a.tsParseTypeReference()):a.tsParseType()}),this.finishNode(s,i?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(s,t,r)}return sn(n,"parseExprOp",this,3)([e,t,r])}},{key:"checkReservedWord",value:function(e,t,r,i){this.state.isAmbientContext||sn(n,"checkReservedWord",this,3)([e,t,r,i])}},{key:"checkImportReflection",value:function(e){sn(n,"checkImportReflection",this,3)([e]),e.module&&"value"!==e.importKind&&this.raise(At.ImportReflectionHasImportType,e.specifiers[0].loc.start)}},{key:"checkDuplicateExports",value:function(){}},{key:"isPotentialImportPhase",value:function(e){if(sn(n,"isPotentialImportPhase",this,3)([e]))return!0;if(this.isContextual(130)){var t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}},{key:"applyImportPhase",value:function(e,t,r,i){sn(n,"applyImportPhase",this,3)([e,t,r,i]),t?e.exportKind="type"===r?"type":"value":e.importKind="type"===r||"typeof"===r?r:"value"}},{key:"parseImport",value:function(e){if(this.match(133))return e.importKind="value",sn(n,"parseImport",this,3)([e]);var t;if(J(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){var r=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,r);t=sn(n,"parseImportSpecifiersAndAfter",this,3)([e,r])}else t=sn(n,"parseImport",this,3)([e]);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(At.TypeImportCannotSpecifyDefaultAndNamed,t),t}},{key:"parseExport",value:function(e,t){if(this.match(83)){this.next();var r=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?r=this.parseMaybeImportPhase(e,!1):e.importKind="value",this.tsParseImportEqualsDeclaration(e,r,!0)}if(this.eat(29)){var i=e;return i.expression=sn(n,"parseExpression",this,3)([]),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}if(this.eatContextual(93)){var a=e;return this.expectContextual(128),a.id=this.parseIdentifier(),this.semicolon(),this.finishNode(a,"TSNamespaceExportDeclaration")}return sn(n,"parseExport",this,3)([e,t])}},{key:"isAbstractClass",value:function(){return this.isContextual(124)&&80===this.lookahead().type}},{key:"parseExportDefaultExpression",value:function(){if(this.isAbstractClass()){var e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){var t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return sn(n,"parseExportDefaultExpression",this,3)([])}},{key:"parseVarStatement",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.state.isAmbientContext,a=sn(n,"parseVarStatement",this,3)([e,t,r||i]);if(!i)return a;var s,o=gn(a.declarations);try{for(o.s();!(s=o.n()).done;){var l=s.value,c=l.id,u=l.init;u&&("const"!==t||c.typeAnnotation?this.raise(At.InitializerNotAllowedInAmbientContext,u):It(u,this.hasPlugin("estree"))||this.raise(At.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,u))}}catch(p){o.e(p)}finally{o.f()}return a}},{key:"parseStatementContent",value:function(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){var r=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(r,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){var i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i}return sn(n,"parseStatementContent",this,3)([e,t])}},{key:"parseAccessModifier",value:function(){return this.tsParseModifier(["public","protected","private"])}},{key:"tsHasSomeModifiers",value:function(e,t){return t.some(function(t){return kt(t)?e.accessibility===t:!!e[t]})}},{key:"tsIsStartOfStaticBlocks",value:function(){return this.isContextual(106)&&123===this.lookaheadCharCode()}},{key:"parseClassMember",value:function(e,t,r){var i=this,a=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:a,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:At.InvalidModifierOnTypeParameterPositions},t);var s=function(){i.tsIsStartOfStaticBlocks()?(i.next(),i.next(),i.tsHasSomeModifiers(t,a)&&i.raise(At.StaticBlockCannotHaveModifier,i.state.curPosition()),sn(n,"parseClassStaticBlock",i,3)([e,t])):i.parseClassMemberWithIsStatic(e,t,r,!!t.static)};t.declare?this.tsInAmbientContext(s):s()}},{key:"parseClassMemberWithIsStatic",value:function(e,t,r,i){var a=this.tsTryParseIndexSignature(t);if(a)return e.body.push(a),t.abstract&&this.raise(At.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(At.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(At.IndexSignatureHasDeclare,t),void(t.override&&this.raise(At.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(At.NonAbstractClassHasAbstractMethod,t),t.override&&(r.hadSuperClass||this.raise(At.OverrideNotInSubClass,t)),sn(n,"parseClassMemberWithIsStatic",this,3)([e,t,r,i])}},{key:"parsePostMemberNameModifiers",value:function(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(At.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(At.ClassMethodHasDeclare,e)}},{key:"parseExpressionStatement",value:function(e,t,r){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,r):void 0)||sn(n,"parseExpressionStatement",this,3)([e,t,r])}},{key:"shouldParseExportDeclaration",value:function(){return!!this.tsIsDeclarationStart()||sn(n,"shouldParseExportDeclaration",this,3)([])}},{key:"parseConditional",value:function(e,t,r){var i=this;if(!this.state.maybeInArrowParameters||!this.match(17))return sn(n,"parseConditional",this,3)([e,t,r]);var a=this.tryParse(function(){return sn(n,"parseConditional",i,3)([e,t])});return a.node?(a.error&&(this.state=a.failState),a.node):(a.error&&sn(n,"setOptionalParametersError",this,3)([r,a.error]),e)}},{key:"parseParenItem",value:function(e,t){if(e=sn(n,"parseParenItem",this,3)([e,t]),this.eat(17)&&(e.optional=!0,this.resetEndLocation(e)),this.match(14)){var r=this.startNodeAt(t);return r.expression=e,r.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(r,"TSTypeCastExpression")}return e}},{key:"parseExportDeclaration",value:function(e){var t=this;if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(function(){return t.parseExportDeclaration(e)});var r=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(At.ExpectedAmbientAfterExportDeclare,this.state.startLoc);var a=J(this.state.type)&&this.tsTryParseExportDeclaration()||sn(n,"parseExportDeclaration",this,3)([e]);return a?(("TSInterfaceDeclaration"===a.type||"TSTypeAliasDeclaration"===a.type||i)&&(e.exportKind="type"),i&&(this.resetStartLocation(a,r),a.declare=!0),a):null}},{key:"parseClassId",value:function(e,t,r,i){if(t&&!r||!this.isContextual(113)){sn(n,"parseClassId",this,3)([e,t,r,e.declare?1024:8331]);var a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(e.typeParameters=a)}}},{key:"parseClassPropertyAnnotation",value:function(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));var t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}},{key:"parseClassProperty",value:function(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(At.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){var t=e.key;this.raise(At.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?"[".concat(this.input.slice(t.start,t.end),"]"):t.name})}return sn(n,"parseClassProperty",this,3)([e])}},{key:"parseClassPrivateProperty",value:function(e){return e.abstract&&this.raise(At.PrivateElementHasAbstract,e),e.accessibility&&this.raise(At.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),sn(n,"parseClassPrivateProperty",this,3)([e])}},{key:"parseClassAccessorProperty",value:function(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(At.AccessorCannotBeOptional,e),sn(n,"parseClassAccessorProperty",this,3)([e])}},{key:"pushClassMethod",value:function(e,t,r,i,a,s){var o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&a&&this.raise(At.ConstructorHasTypeParameters,o);var l=t.declare,c=void 0!==l&&l,u=t.kind;!c||"get"!==u&&"set"!==u||this.raise(At.DeclareAccessor,t,{kind:u}),o&&(t.typeParameters=o),sn(n,"pushClassMethod",this,3)([e,t,r,i,a,s])}},{key:"pushClassPrivateMethod",value:function(e,t,r,i){var a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(t.typeParameters=a),sn(n,"pushClassPrivateMethod",this,3)([e,t,r,i])}},{key:"declareClassPrivateMethodInScope",value:function(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"!==e.type||e.value.body)&&sn(n,"declareClassPrivateMethodInScope",this,3)([e,t])}},{key:"parseClassSuper",value:function(e){sn(n,"parseClassSuper",this,3)([e]),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}},{key:"parseObjPropValue",value:function(e,t,r,i,a,s,o){var l=this.tsTryParseTypeParameters(this.tsParseConstModifier);return l&&(e.typeParameters=l),sn(n,"parseObjPropValue",this,3)([e,t,r,i,a,s,o])}},{key:"parseFunctionParams",value:function(e,t){var r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(e.typeParameters=r),sn(n,"parseFunctionParams",this,3)([e,t])}},{key:"parseVarId",value:function(e,t){sn(n,"parseVarId",this,3)([e,t]),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);var r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}},{key:"parseAsyncArrowFromCallExpression",value:function(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),sn(n,"parseAsyncArrowFromCallExpression",this,3)([e,t])}},{key:"parseMaybeAssign",value:function(e,t){var r,i,a,s,o,l,c,u,p,f=this;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(l=this.state.clone(),!(c=this.tryParse(function(){return sn(n,"parseMaybeAssign",f,3)([e,t])},l)).error)return c.node;var d=this.state.context,h=d[d.length-1];h!==O.j_oTag&&h!==O.j_expr||d.pop()}if(!(null!=(r=c)&&r.error||this.match(47)))return sn(n,"parseMaybeAssign",this,3)([e,t]);l&&l!==this.state||(l=this.state.clone());var m=this.tryParse(function(r){var i,a;p=f.tsParseTypeParameters(f.tsParseConstModifier);var s=sn(n,"parseMaybeAssign",f,3)([e,t]);return("ArrowFunctionExpression"!==s.type||null!=(i=s.extra)&&i.parenthesized)&&r(),0!==(null==(a=p)?void 0:a.params.length)&&f.resetStartLocationFromNode(s,p),s.typeParameters=p,s},l);if(!m.error&&!m.aborted)return p&&this.reportReservedArrowTypeParam(p),m.node;if(!c&&(Pt(!this.hasPlugin("jsx")),!(u=this.tryParse(function(){return sn(n,"parseMaybeAssign",f,3)([e,t])},l)).error))return u.node;if(null!=(i=c)&&i.node)return this.state=c.failState,c.node;if(m.node)return this.state=m.failState,p&&this.reportReservedArrowTypeParam(p),m.node;if(null!=(a=u)&&a.node)return this.state=u.failState,u.node;throw(null==(s=c)?void 0:s.error)||m.error||(null==(o=u)?void 0:o.error)}},{key:"reportReservedArrowTypeParam",value:function(e){var t;1!==e.params.length||e.params[0].constraint||null!=(t=e.extra)&&t.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(At.ReservedArrowTypeParam,e)}},{key:"parseMaybeUnary",value:function(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():sn(n,"parseMaybeUnary",this,3)([e,t])}},{key:"parseArrow",value:function(e){var t=this;if(this.match(14)){var r=this.tryParse(function(e){var n=t.tsParseTypeOrTypePredicateAnnotation(14);return!t.canInsertSemicolon()&&t.match(19)||e(),n});if(r.aborted)return;r.thrown||(r.error&&(this.state=r.failState),e.returnType=r.node)}return sn(n,"parseArrow",this,3)([e])}},{key:"parseAssignableListItemTypes",value:function(e,t){if(!(2&t))return e;this.eat(17)&&(e.optional=!0);var n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.resetEndLocation(e),e}},{key:"isAssignable",value:function(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return sn(n,"isAssignable",this,3)([e,t])}}},{key:"toAssignable",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(At.UnexpectedTypeCastInParameter,e):this.raise(At.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:sn(n,"toAssignable",this,3)([e,t])}}},{key:"toAssignableParenthesizedExpression",value:function(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:sn(n,"toAssignable",this,3)([e,t])}}},{key:"checkToRestConversion",value:function(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:sn(n,"checkToRestConversion",this,3)([e,t])}}},{key:"isValidLVal",value:function(e,t,r){return i={TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(64!==r||!t)&&["expression",!0],TSSatisfiesExpression:(64!==r||!t)&&["expression",!0],TSTypeAssertion:(64!==r||!t)&&["expression",!0]},a=e,Object.hasOwnProperty.call(i,a)&&i[a]||sn(n,"isValidLVal",this,3)([e,t,r]);var i,a}},{key:"parseBindingAtom",value:function(){return 78===this.state.type?this.parseIdentifier(!0):sn(n,"parseBindingAtom",this,3)([])}},{key:"parseMaybeDecoratorArguments",value:function(e){if(this.match(47)||this.match(51)){var t=this.tsParseTypeArgumentsInExpression();if(this.match(10)){var r=sn(n,"parseMaybeDecoratorArguments",this,3)([e]);return r.typeParameters=t,r}this.unexpected(null,10)}return sn(n,"parseMaybeDecoratorArguments",this,3)([e])}},{key:"checkCommaAfterRest",value:function(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):sn(n,"checkCommaAfterRest",this,3)([e])}},{key:"isClassMethod",value:function(){return this.match(47)||sn(n,"isClassMethod",this,3)([])}},{key:"isClassProperty",value:function(){return this.match(35)||this.match(14)||sn(n,"isClassProperty",this,3)([])}},{key:"parseMaybeDefault",value:function(e,t){var r=sn(n,"parseMaybeDefault",this,3)([e,t]);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.startthis.state.lastTokEndLoc.index&&this.raise(Dt.UnexpectedSpace,this.state.lastTokEndLoc)}}])}(e)}},Ut=Object.keys(Ft),Vt={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0},qt=function(e){function t(){return xn(this,t),ln(this,t,arguments)}return fn(t,e),wn(t,[{key:"checkProto",value:function(e,t,n,r){if(!("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)){var i=e.key;if("__proto__"===("Identifier"===i.type?i.name:i.value)){if(t)return void this.raise(w.RecordNoProto,i);n.used&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=i.loc.start):this.raise(w.DuplicateProto,i)),n.used=!0}}}},{key:"shouldExitDescending",value:function(e,t){return"ArrowFunctionExpression"===e.type&&e.start===t}},{key:"getExpression",value:function(){this.enterInitialScopes(),this.nextToken();var e=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.options.tokens&&(e.tokens=this.tokens),e}},{key:"parseExpression",value:function(e,t){var n=this;return e?this.disallowInAnd(function(){return n.parseExpressionBase(t)}):this.allowInAnd(function(){return n.parseExpressionBase(t)})}},{key:"parseExpressionBase",value:function(e){var t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){var r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return n}},{key:"parseMaybeAssignDisallowIn",value:function(e,t){var n=this;return this.disallowInAnd(function(){return n.parseMaybeAssign(e,t)})}},{key:"parseMaybeAssignAllowIn",value:function(e,t){var n=this;return this.allowInAnd(function(){return n.parseMaybeAssign(e,t)})}},{key:"setOptionalParametersError",value:function(e,t){var n;e.optionalParametersLoc=null!=(n=null==t?void 0:t.loc)?n:this.state.startLoc}},{key:"parseMaybeAssign",value:function(e,t){var n,r=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){var i=this.parseYield();return t&&(i=t.call(this,i,r)),i}e?n=!1:(e=new ot,n=!0);var a=this.state.type;(10===a||J(a))&&(this.state.potentialArrowAt=this.state.start);var s,o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,r)),(s=this.state.type)>=29&&s<=33){var l=this.startNodeAt(r),c=this.state.value;if(l.operator=c,this.match(29)){this.toAssignable(o,!0),l.left=o;var u=r.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=u&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=u&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null)}else l.left=o;return this.next(),l.right=this.parseMaybeAssign(),this.checkLVal(o,{in:this.finishNode(l,"AssignmentExpression")}),l}return n&&this.checkExpressionErrors(e,!0),o}},{key:"parseMaybeConditional",value:function(e){var t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}},{key:"parseConditional",value:function(e,t,n){if(this.eat(17)){var r=this.startNodeAt(t);return r.test=e,r.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),r.alternate=this.parseMaybeAssign(),this.finishNode(r,"ConditionalExpression")}return e}},{key:"parseMaybeUnaryOrPrivate",value:function(e){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(e)}},{key:"parseExprOps",value:function(e){var t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}},{key:"parseExprOp",value:function(e,t,n){if(this.isPrivateName(e)){var r=this.getPrivateNameSV(e);(n>=ne(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(w.PrivateInExpectedIn,e,{identifierName:r}),this.classScope.usePrivateName(r,e.loc.start)}var i,a=this.state.type;if((i=a)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){var s=ne(a);if(s>n){if(39===a){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}var o=this.startNodeAt(t);o.left=e,o.operator=this.state.value;var l=41===a||42===a,c=40===a;if(c&&(s=ne(42)),this.next(),39===a&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(w.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);o.right=this.parseExprOpRightExpr(a,s);var u=this.finishNode(o,l||c?"LogicalExpression":"BinaryExpression"),p=this.state.type;if(c&&(41===p||42===p)||l&&40===p)throw this.raise(w.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(u,t,n)}}return e}},{key:"parseExprOpRightExpr",value:function(e,t){var n=this,r=this.state.startLoc;if(39===e)switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(function(){return n.parseHackPipeBody()});case"smart":return this.withTopicBindingContext(function(){if(n.prodParam.hasYield&&n.isContextual(108))throw n.raise(w.PipeBodyIsTighter,n.state.startLoc);return n.parseSmartPipelineBodyInStyle(n.parseExprOpBaseRightExpr(e,t),r)});case"fsharp":return this.withSoloAwaitPermittingContext(function(){return n.parseFSharpPipelineBody(t)})}return this.parseExprOpBaseRightExpr(e,t)}},{key:"parseExprOpBaseRightExpr",value:function(e,t){var n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,57===e?t-1:t)}},{key:"parseHackPipeBody",value:function(){var e,t=this.state.startLoc,n=this.parseMaybeAssign();return!v.has(n.type)||null!=(e=n.extra)&&e.parenthesized||this.raise(w.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(w.PipeTopicUnused,t),n}},{key:"checkExponentialAfterUnary",value:function(e){this.match(57)&&this.raise(w.UnexpectedTokenUnaryExponentiation,e.argument)}},{key:"parseMaybeUnary",value:function(e,t){var n=this.state.startLoc,r=this.isContextual(96);if(r&&this.isAwaitAllowed()){this.next();var i=this.parseAwait(n);return t||this.checkExponentialAfterUnary(i),i}var a,s=this.match(34),o=this.startNode();if(a=this.state.type,H[a]){o.operator=this.state.value,o.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");var l=this.match(89);if(this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&l){var c=o.argument;"Identifier"===c.type?this.raise(w.StrictDelete,o):this.hasPropertyAsPrivateName(c)&&this.raise(w.DeletePrivateField,o)}if(!s)return t||this.checkExponentialAfterUnary(o),this.finishNode(o,"UnaryExpression")}var u=this.parseUpdate(o,s,e);if(r){var p=this.state.type;if((this.hasPlugin("v8intrinsic")?Q(p):Q(p)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(w.AwaitNotInAsyncContext,n),this.parseAwait(n)}return u}},{key:"parseUpdate",value:function(e,t,n){if(t){var r=e;return this.checkLVal(r.argument,{in:this.finishNode(r,"UpdateExpression")}),e}var i=this.state.startLoc,a=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return a;for(;34===this.state.type&&!this.canInsertSemicolon();){var s=this.startNodeAt(i);s.operator=this.state.value,s.prefix=!1,s.argument=a,this.next(),this.checkLVal(a,{in:a=this.finishNode(s,"UpdateExpression")})}return a}},{key:"parseExprSubscripts",value:function(e){var t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}},{key:"parseSubscripts",value:function(e,t,n){var r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1}while(!r.stop);return e}},{key:"parseSubscript",value:function(e,t,n,r){var i=this.state.type;if(!n&&15===i)return this.parseBind(e,t,n,r);if(re(i))return this.parseTaggedTemplateExpression(e,t,r);var a=!1;if(18===i){if(n&&(this.raise(w.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return r.stop=!0,e;r.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,a);var s=this.eat(0);return s||a||this.eat(16)?this.parseMember(e,t,r,s,a):(r.stop=!0,e)}},{key:"parseMember",value:function(e,t,n,r,i){var a=this.startNodeAt(t);return a.object=e,a.computed=r,r?(a.property=this.parseExpression(),this.expect(3)):this.match(138)?("Super"===e.type&&this.raise(w.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=i,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}},{key:"parseBind",value:function(e,t,n,r){var i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n)}},{key:"parseCoverCallAndAsyncArrowHead",value:function(e,t,n,r){var i=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();var s=this.startNodeAt(t);s.callee=e;var o=n.maybeAsyncArrow,l=n.optionalChainMember;o&&(this.expressionScope.enter(new tt(2)),a=new ot),l&&(s.optional=r),s.arguments=r?this.parseCallExpressionArguments(11):this.parseCallExpressionArguments(11,"Import"===e.type,"Super"!==e.type,s,a);var c=this.finishCallExpression(s,l);return o&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),c)):(o&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=i,c}},{key:"toReferencedArguments",value:function(e,t){this.toReferencedListDeep(e.arguments,t)}},{key:"parseTaggedTemplateExpression",value:function(e,t,n){var r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(w.OptionalChainingNoTemplate,t),this.finishNode(r,"TaggedTemplateExpression")}},{key:"atPossibleAsyncArrow",value:function(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.state.potentialArrowAt}},{key:"expectImportAttributesPlugin",value:function(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}},{key:"finishCallExpression",value:function(e,t){if("Import"===e.callee.type)if(2===e.arguments.length&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),0===e.arguments.length||e.arguments.length>2)this.raise(w.ImportCallArity,e,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else{var n,r=gn(e.arguments);try{for(r.s();!(n=r.n()).done;){var i=n.value;"SpreadElement"===i.type&&this.raise(w.ImportCallSpreadArgument,i)}}catch(a){r.e(a)}finally{r.f()}}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}},{key:"parseCallExpressionArguments",value:function(e,t,n,r,i){var a=[],s=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){!t||this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")||this.raise(w.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),r&&this.addTrailingCommaExtraToNode(r),this.next();break}a.push(this.parseExprListItem(!1,i,n))}return this.state.inFSharpPipelineDirectBody=o,a}},{key:"shouldParseAsyncArrow",value:function(){return this.match(19)&&!this.canInsertSemicolon()}},{key:"parseAsyncArrowFromCallExpression",value:function(e,t){var n;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(n=t.extra)?void 0:n.trailingCommaLoc),t.innerComments&&Ce(e,t.innerComments),t.callee.trailingComments&&Ce(e,t.callee.trailingComments),e}},{key:"parseNoCallExpr",value:function(){var e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}},{key:"parseExprAtom",value:function(e){var t,n=null,r=this.state.type;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(t):this.match(10)?this.options.createImportExpressions?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(w.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:var i=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(i);case 2:case 1:return this.parseArrayLike(2===this.state.type?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,e);case 6:case 7:return this.parseObjectLike(6===this.state.type?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:t=this.startNode(),this.next(),t.object=null;var a=t.callee=this.parseNoCallExpr();if("MemberExpression"===a.type)return this.finishNode(t,"BindExpression");throw this.raise(w.UnsupportedBind,a);case 138:return this.raise(w.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),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:var s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.parseTopicReference(s);this.unexpected();break;case 47:var o=this.input.codePointAt(this.nextTokenStart());fe(o)||62===o?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break;default:if(J(r)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();var l=this.state.potentialArrowAt===this.state.start,c=this.state.containsEsc,u=this.parseIdentifier();if(!c&&"async"===u.name&&!this.canInsertSemicolon()){var p=this.state.type;if(68===p)return this.resetPreviousNodeTrailingComments(u),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(u));if(J(p))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(u)):u;if(90===p)return this.resetPreviousNodeTrailingComments(u),this.parseDo(this.startNodeAtNode(u),!0)}return l&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(u),[u],!1)):u}this.unexpected()}}},{key:"parseTopicReferenceThenEqualsSign",value:function(e,t){var n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=p(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected()}},{key:"parseTopicReference",value:function(e){var t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}},{key:"finishTopicReference",value:function(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r)){var i="smart"===n?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise("smart"===n?w.PrimaryTopicNotAllowed:w.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,i)}throw this.raise(w.PipeTopicUnconfiguredToken,t,{token:te(r)})}},{key:"testTopicReferenceConfiguration",value:function(e,t,n){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:te(n)}]);case"smart":return 27===n;default:throw this.raise(w.PipeTopicRequiresHackPipes,t)}}},{key:"parseAsyncArrowUnaryFunction",value:function(e){this.prodParam.enter(at(!0,this.prodParam.hasYield));var t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(w.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}},{key:"parseDo",value:function(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();var n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,"DoExpression")}},{key:"parseSuper",value:function(){var e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||this.options.allowSuperOutsideMethod?this.scope.allowSuper||this.options.allowSuperOutsideMethod||this.raise(w.UnexpectedSuper,e):this.raise(w.SuperNotAllowed,e),this.match(10)||this.match(0)||this.match(16)||this.raise(w.UnsupportedSuper,e),this.finishNode(e,"Super")}},{key:"parsePrivateName",value:function(){var e=this.startNode(),t=this.startNodeAt(p(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,"PrivateName")}},{key:"parseFunctionOrFunctionSent",value:function(){var e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){var t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}},{key:"parseMetaProperty",value:function(e,t,n){e.meta=t;var r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(w.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,"MetaProperty")}},{key:"parseImportMetaProperty",value:function(e){var t=this.createIdentifier(this.startNodeAtNode(e),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(w.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){var n=this.isContextual(105);if(n||this.unexpected(),this.expectPlugin(n?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(w.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),e.phase=n?"source":"defer",this.parseImportCall(e)}return this.parseMetaProperty(e,t,"meta")}},{key:"parseLiteralAtNode",value:function(e,t,n){return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(n.start,this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}},{key:"parseLiteral",value:function(e,t){var n=this.startNode();return this.parseLiteralAtNode(e,t,n)}},{key:"parseStringLiteral",value:function(e){return this.parseLiteral(e,"StringLiteral")}},{key:"parseNumericLiteral",value:function(e){return this.parseLiteral(e,"NumericLiteral")}},{key:"parseBigIntLiteral",value:function(e){return this.parseLiteral(e,"BigIntLiteral")}},{key:"parseDecimalLiteral",value:function(e){return this.parseLiteral(e,"DecimalLiteral")}},{key:"parseRegExpLiteral",value:function(e){var t=this.parseLiteral(e.value,"RegExpLiteral");return t.pattern=e.pattern,t.flags=e.flags,t}},{key:"parseBooleanLiteral",value:function(e){var t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}},{key:"parseNullLiteral",value:function(){var e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}},{key:"parseParenAndDistinguishExpression",value:function(e){var t,n=this.state.startLoc;this.next(),this.expressionScope.enter(new tt(1));var r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;for(var a,s,o=this.state.startLoc,l=[],c=new ot,u=!0;!this.match(11);){if(u)u=!1;else if(this.expect(12,null===c.optionalParametersLoc?null:c.optionalParametersLoc),this.match(11)){s=this.state.startLoc;break}if(this.match(21)){var p=this.state.startLoc;if(a=this.state.startLoc,l.push(this.parseParenItem(this.parseRestBinding(),p)),!this.checkCommaAfterRest(41))break}else l.push(this.parseMaybeAssignAllowIn(c,this.parseParenItem))}var f=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;var d=this.startNodeAt(n);return e&&this.shouldParseArrow(l)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(c),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,l,!1),d):(this.expressionScope.exit(),l.length||this.unexpected(this.state.lastTokStartLoc),s&&this.unexpected(s),a&&this.unexpected(a),this.checkExpressionErrors(c,!0),this.toReferencedListDeep(l,!0),l.length>1?((t=this.startNodeAt(o)).expressions=l,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,f)):t=l[0],this.wrapParenthesis(n,t))}},{key:"wrapParenthesis",value:function(e,t){if(!this.options.createParenthesizedExpressions)return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;var n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,"ParenthesizedExpression")}},{key:"shouldParseArrow",value:function(e){return!this.canInsertSemicolon()}},{key:"parseArrow",value:function(e){if(this.eat(19))return e}},{key:"parseParenItem",value:function(e,t){return e}},{key:"parseNewOrNewTarget",value:function(){var e=this.startNode();if(this.next(),this.match(16)){var t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();var n=this.parseMetaProperty(e,t,"target");return this.scope.inNonArrowFunction||this.scope.inClass||this.options.allowNewTargetOutsideFunction||this.raise(w.UnexpectedNewTarget,n),n}return this.parseNew(e)}},{key:"parseNew",value:function(e){if(this.parseNewCallee(e),this.eat(10)){var t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}},{key:"parseNewCallee",value:function(e){var t=this.match(83),n=this.parseNoCallExpr();e.callee=n,!t||"Import"!==n.type&&"ImportExpression"!==n.type||this.raise(w.ImportCallNotNewExpression,n)}},{key:"parseTemplateElement",value:function(e){var t=this.state,n=t.start,r=t.startLoc,i=t.end,a=t.value,s=n+1,o=this.startNodeAt(p(r,1));null===a&&(e||this.raise(w.InvalidEscapeSequenceTemplate,p(this.state.firstInvalidTemplateEscapePos,1)));var l=this.match(24),c=l?-1:-2,u=i+c;o.value={raw:this.input.slice(s,u).replace(/\r\n?/g,"\n"),cooked:null===a?null:a.slice(1,c)},o.tail=l,this.next();var f=this.finishNode(o,"TemplateElement");return this.resetEndLocation(f,p(this.state.lastTokEndLoc,c)),f}},{key:"parseTemplate",value:function(e){var t=this.startNode();t.expressions=[];var n=this.parseTemplateElement(e);for(t.quasis=[n];!n.tail;)t.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),t.quasis.push(n=this.parseTemplateElement(e));return this.finishNode(t,"TemplateLiteral")}},{key:"parseTemplateSubstitution",value:function(){return this.parseExpression()}},{key:"parseObjectLike",value:function(e,t,n,r){n&&this.expectPlugin("recordAndTuple");var i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var a=Object.create(null),s=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}var l=void 0;t?l=this.parseBindingProperty():(l=this.parsePropertyDefinition(r),this.checkProto(l,n,a,r)),n&&!this.isObjectProperty(l)&&"SpreadElement"!==l.type&&this.raise(w.InvalidRecordProperty,l),l.shorthand&&this.addExtra(l,"shorthand",!0),o.properties.push(l)}this.next(),this.state.inFSharpPipelineDirectBody=i;var c="ObjectExpression";return t?c="ObjectPattern":n&&(c="RecordExpression"),this.finishNode(o,c)}},{key:"addTrailingCommaExtraToNode",value:function(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}},{key:"maybeAsyncOrAccessorProp",value:function(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}},{key:"parsePropertyDefinition",value:function(e){var t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(w.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());var n,r=this.startNode(),i=!1,a=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(r.decorators=t,t=[]),r.method=!1,e&&(n=this.state.startLoc);var s=this.eat(55);this.parsePropertyNamePrefixOperator(r);var o=this.state.containsEsc,l=this.parsePropertyName(r,e);if(!s&&!o&&this.maybeAsyncOrAccessorProp(r)){var c=l.name;"async"!==c||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(l),s=this.eat(55),this.parsePropertyName(r)),"get"!==c&&"set"!==c||(a=!0,this.resetPreviousNodeTrailingComments(l),r.kind=c,this.match(55)&&(s=!0,this.raise(w.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(r))}return this.parseObjPropValue(r,n,s,i,!1,a,e)}},{key:"getGetterSetterExpectedParamCount",value:function(e){return"get"===e.kind?0:1}},{key:"getObjectOrClassMethodParams",value:function(e){return e.params}},{key:"checkGetterSetterParams",value:function(e){var t,n=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==n&&this.raise("get"===e.kind?w.BadGetterArity:w.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=r[r.length-1])?void 0:t.type)&&this.raise(w.BadSetterRestParameter,e)}},{key:"parseObjectMethod",value:function(e,t,n,r,i){if(i){var a=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(n||t||this.match(10))return r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,!1,"ObjectMethod")}},{key:"parseObjectProperty",value:function(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(r),this.finishNode(e,"ObjectProperty");if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,ut(e.key));else if(this.match(29)){var i=this.state.startLoc;null!=r?null===r.shorthandAssignLoc&&(r.shorthandAssignLoc=i):this.raise(w.InvalidCoverInitializedName,i),e.value=this.parseMaybeDefault(t,ut(e.key))}else e.value=ut(e.key);return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}}},{key:"parseObjPropValue",value:function(e,t,n,r,i,a,s){var o=this.parseObjectMethod(e,n,r,i,a)||this.parseObjectProperty(e,t,i,s);return o||this.unexpected(),o}},{key:"parsePropertyName",value:function(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{var n,r=this.state,i=r.type,a=r.value;if(Y(i))n=this.parseIdentifier(!0);else switch(i){case 134:n=this.parseNumericLiteral(a);break;case 133:n=this.parseStringLiteral(a);break;case 135:n=this.parseBigIntLiteral(a);break;case 136:n=this.parseDecimalLiteral(a);break;case 138:var s=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=s):this.raise(w.UnexpectedPrivateField,s),n=this.parsePrivateName();break;default:this.unexpected()}e.key=n,138!==i&&(e.computed=!1)}return e.key}},{key:"initFunction",value:function(e,t){e.id=null,e.generator=!1,e.async=t}},{key:"parseMethod",value:function(e,t,n,r,i,a){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,n),e.generator=t,this.scope.enter(18|(s?64:0)|(i?32:0)),this.prodParam.enter(at(n,e.generator)),this.parseFunctionParams(e,r);var o=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),o}},{key:"parseArrayLike",value:function(e,t,n,r){n&&this.expectPlugin("recordAndTuple");var i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var a=this.startNode();return this.next(),a.elements=this.parseExprList(e,!n,r,a),this.state.inFSharpPipelineDirectBody=i,this.finishNode(a,n?"TupleExpression":"ArrayExpression")}},{key:"parseArrowExpression",value:function(e,t,n,r){this.scope.enter(6);var i=at(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);var a=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,"ArrowFunctionExpression")}},{key:"setArrowFunctionParameters",value:function(e,t,n){this.toAssignableList(t,n,!1),e.params=t}},{key:"parseFunctionBodyAndFinish",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}},{key:"parseFunctionBody",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t&&!this.match(5);if(this.expressionScope.enter(rt()),i)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{var a=this.state.strict,s=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,function(i){var s=!n.isSimpleParamList(e.params);i&&s&&n.raise(w.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);var o=!a&&n.state.strict;n.checkParams(e,!(n.state.strict||t||r||s),t,o),n.state.strict&&e.id&&n.checkIdentifier(e.id,65,o)}),this.prodParam.exit(),this.state.labels=s}this.expressionScope.exit()}},{key:"isSimpleParameter",value:function(e){return"Identifier"===e.type}},{key:"isSimpleParamList",value:function(e){for(var t=0,n=e.length;t3&&void 0!==arguments[3])||arguments[3],a=!t&&new Set,s={type:"FormalParameters"},o=gn(e.params);try{for(o.s();!(r=o.n()).done;){var l=r.value;this.checkLVal(l,{in:s,binding:5,checkClashes:a,strictModeChanged:i})}}catch(c){o.e(c)}finally{o.f()}}},{key:"parseExprList",value:function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(t,n))}return i}},{key:"parseExprListItem",value:function(e,t,n){var r;if(this.match(12))e||this.raise(w.UnexpectedToken,this.state.curPosition(),{unexpected:","}),r=null;else if(this.match(21)){var i=this.state.startLoc;r=this.parseParenItem(this.parseSpread(t),i)}else if(this.match(17)){this.expectPlugin("partialApplication"),n||this.raise(w.UnexpectedArgumentPlaceholder,this.state.startLoc);var a=this.startNode();this.next(),r=this.finishNode(a,"ArgumentPlaceholder")}else r=this.parseMaybeAssignAllowIn(t,this.parseParenItem);return r}},{key:"parseIdentifier",value:function(e){var t=this.startNode(),n=this.parseIdentifierName(e);return this.createIdentifier(t,n)}},{key:"createIdentifier",value:function(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}},{key:"parseIdentifierName",value:function(e){var t,n=this.state,r=n.startLoc,i=n.type;Y(i)?t=this.state.value:this.unexpected();var a=i<=92;return e?a&&this.replaceToken(132):this.checkReservedWord(t,r,a,!1),this.next(),t}},{key:"checkReservedWord",value:function(e,t,n,r){if(!(e.length>10)&&function(e){return Se.has(e)}(e))if(n&&function(e){return he.has(e)}(e))this.raise(w.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?r?Ee:ge:ve)(e,this.inModule))this.raise(w.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(w.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(w.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(w.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(w.ArgumentsInClass,t)}},{key:"isAwaitAllowed",value:function(){return!!this.prodParam.hasAwait||!(!this.options.allowAwaitOutsideFunction||this.scope.inFunction)}},{key:"parseAwait",value:function(e){var t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(w.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(w.ObsoleteAwaitStar,t),this.scope.inFunction||this.options.allowAwaitOutsideFunction||(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}},{key:"isAmbiguousAwait",value:function(){if(this.hasPrecedingLineBreak())return!0;var e=this.state.type;return 53===e||10===e||0===e||re(e)||102===e&&!this.state.containsEsc||137===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}},{key:"parseYield",value:function(){var e=this.startNode();this.expressionScope.recordParameterInitializerError(w.YieldInParameter,e),this.next();var t=!1,n=null;if(!this.hasPrecedingLineBreak())switch(t=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!t)break;default:n=this.parseMaybeAssign()}return e.delegate=t,e.argument=n,this.finishNode(e,"YieldExpression")}},{key:"parseImportCall",value:function(e){return this.next(),e.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(e.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(e.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(e,"ImportExpression")}},{key:"checkPipelineAtInfixOperator",value:function(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(w.PipelineHeadSequenceExpression,t)}},{key:"parseSmartPipelineBodyInStyle",value:function(e,t){if(this.isSimpleReference(e)){var n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,"PipelineBareFunction")}var r=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),r.expression=e,this.finishNode(r,"PipelineTopicExpression")}},{key:"isSimpleReference",value:function(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}},{key:"checkSmartPipeTopicBodyEarlyErrors",value:function(e){if(this.match(19))throw this.raise(w.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(w.PipelineTopicUnused,e)}},{key:"withTopicBindingContext",value:function(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}},{key:"withSmartMixTopicForbiddingContext",value:function(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}},{key:"withSoloAwaitPermittingContext",value:function(e){var t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}},{key:"allowInAnd",value:function(e){var t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}},{key:"disallowInAnd",value:function(e){var t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}},{key:"registerTopicReference",value:function(){this.state.topicContext.maxTopicIndex=0}},{key:"topicReferenceIsAllowedInCurrentContext",value:function(){return this.state.topicContext.maxNumOfResolvableTopics>=1}},{key:"topicReferenceWasUsedInCurrentContext",value:function(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}},{key:"parseFSharpPipelineBody",value:function(e){var t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}},{key:"parseModuleExpression",value:function(){this.expectPlugin("moduleBlocks");var e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);var t=this.startNodeAt(this.state.endLoc);this.next();var n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{n()}return this.finishNode(e,"ModuleExpression")}},{key:"parsePropertyNamePrefixOperator",value:function(e){}}])}(wt),Wt={kind:1},Gt={kind:2},Ht=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Kt=new RegExp("in(?:stanceof)?","y"),zt=function(e){function t(){return xn(this,t),ln(this,t,arguments)}return fn(t,e),wn(t,[{key:"parseTopLevel",value:function(e,t){return e.program=this.parseProgram(t),e.comments=this.comments,this.options.tokens&&(e.tokens=function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:139,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options.sourceType;if(e.sourceType=n,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(var r=0,i=Array.from(this.scope.undefinedExports);r0&&void 0!==arguments[0]&&arguments[0],t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}},{key:"parseStatement",value:function(){return this.parseStatementLike(0)}},{key:"parseStatementLike",value:function(e){var t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}},{key:"parseStatementContent",value:function(e,t){var n=this.state.type,r=this.startNode(),i=!!(2&e),a=!!(4&e),s=1&e;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(46===this.lookaheadCharCode())break;return a||this.raise(this.state.strict?w.StrictFunction:this.options.annexB?w.SloppyFunctionAnnexB:w.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&a);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?i||this.raise(w.UnexpectedLexicalDeclaration,r):this.raise(w.AwaitUsingNotInAsyncContext,r),this.next(),this.parseVarStatement(r,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(w.UnexpectedUsingDeclaration,this.state.startLoc):i||this.raise(w.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(r,"using");case 100:if(this.state.containsEsc)break;var o=this.nextTokenStart(),l=this.codePointAtPos(o);if(91!==l){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(l,o)&&123!==l)break}case 75:i||this.raise(w.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:var c=this.state.value;return this.parseVarStatement(r,c);case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:var u=this.lookaheadCharCode();if(40===u||46===u)break;case 82:var p;return this.options.allowImportExportEverywhere||s||this.raise(w.UnexpectedImportExport,this.state.startLoc),this.next(),83===n?"ImportDeclaration"!==(p=this.parseImport(r)).type||p.importKind&&"value"!==p.importKind||(this.sawUnambiguousESM=!0):("ExportNamedDeclaration"!==(p=this.parseExport(r,t)).type||p.exportKind&&"value"!==p.exportKind)&&("ExportAllDeclaration"!==p.type||p.exportKind&&"value"!==p.exportKind)&&"ExportDefaultDeclaration"!==p.type||(this.sawUnambiguousESM=!0),this.assertModuleNodeAllowed(p),p;default:if(this.isAsyncFunction())return i||this.raise(w.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&a)}var f=this.state.value,d=this.parseExpression();return J(n)&&"Identifier"===d.type&&this.eat(14)?this.parseLabeledStatement(r,f,d,e):this.parseExpressionStatement(r,d,t)}},{key:"assertModuleNodeAllowed",value:function(e){this.options.allowImportExportEverywhere||this.inModule||this.raise(w.ImportOutsideModule,e)}},{key:"decoratorsEnabledBeforeExport",value:function(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}},{key:"maybeTakeDecorators",value:function(e,t,n){var r;return e&&(t.decorators&&t.decorators.length>0?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(w.DecoratorsBeforeAfterExport,t.decorators[0]),(r=t.decorators).unshift.apply(r,vn(e))):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)),t}},{key:"canHaveLeadingDecorator",value:function(){return this.match(80)}},{key:"parseDecorators",value:function(e){var t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(w.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(w.UnexpectedLeadingDecorator,this.state.startLoc);return t}},{key:"parseDecorator",value:function(){this.expectOnePlugin(["decorators","decorators-legacy"]);var e=this.startNode();if(this.next(),this.hasPlugin("decorators")){var t,n=this.state.startLoc;if(this.match(10)){var r=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(r,t);var i=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(w.DecoratorArgumentsOutsideParentheses,i)}else{for(t=this.parseIdentifier(!1);this.eat(16);){var a=this.startNodeAt(n);a.object=t,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),a.computed=!1,t=this.finishNode(a,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}},{key:"parseMaybeDecoratorArguments",value:function(e){if(this.eat(10)){var t=this.startNodeAtNode(e);return t.callee=e,t.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(t.arguments),this.finishNode(t,"CallExpression")}return e}},{key:"parseBreakContinueStatement",value:function(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}},{key:"verifyBreakContinue",value:function(e,t){var n;for(n=0;n2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")}},{key:"parseWhileStatement",value:function(e){var t=this;return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(Wt),e.body=this.withSmartMixTopicForbiddingContext(function(){return t.parseStatement()}),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}},{key:"parseWithStatement",value:function(e){var t=this;return this.state.strict&&this.raise(w.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(function(){return t.parseStatement()}),this.finishNode(e,"WithStatement")}},{key:"parseEmptyStatement",value:function(e){return this.next(),this.finishNode(e,"EmptyStatement")}},{key:"parseLabeledStatement",value:function(e,t,n,r){var i,a=gn(this.state.labels);try{for(a.s();!(i=a.n()).done;){i.value.name===t&&this.raise(w.LabelRedeclaration,n,{labelName:t})}}catch(u){a.e(u)}finally{a.f()}for(var s,o=(s=this.state.type)>=90&&s<=92?1:this.match(71)?2:null,l=this.state.labels.length-1;l>=0;l--){var c=this.state.labels[l];if(c.statementStart!==e.start)break;c.statementStart=this.state.start,c.kind=o}return this.state.labels.push({name:t,kind:o,statementStart:this.state.start}),e.body=8&r?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")}},{key:"parseExpressionStatement",value:function(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}},{key:"parseBlock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}},{key:"isValidDirective",value:function(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}},{key:"parseBlockBody",value:function(e,t,n,r,i){var a=e.body=[],s=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?s:void 0,n,r,i)}},{key:"parseBlockOrModuleBlockBody",value:function(e,t,n,r,i){for(var a=this.state.strict,s=!1,o=!1;!this.match(r);){var l=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(l)){var c=this.stmtToDirective(l);t.push(c),s||"use strict"!==c.value.value||(s=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(l)}null==i||i.call(this,s),a||this.setStrict(!1),this.next()}},{key:"parseFor",value:function(e,t){var n=this;return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(function(){return n.parseStatement()}),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}},{key:"parseForIn",value:function(e,t,n){var r=this,i=this.match(58);return this.next(),i?null!==n&&this.unexpected(n):e.await=null!==n,"VariableDeclaration"!==t.type||null==t.declarations[0].init||i&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(w.ForInOfLoopInitializer,t,{type:i?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(w.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(function(){return r.parseStatement()}),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")}},{key:"parseVar",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.declarations=[];for(e.kind=n;;){var a=this.startNode();if(this.parseVarId(a,n),a.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==a.init||r||("Identifier"===a.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==n||this.match(58)||this.isContextual(102)||this.raise(w.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"const"}):this.raise(w.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return e}},{key:"parseVarId",value:function(e,t){var n=this.parseBindingAtom();this.checkLVal(n,{in:{type:"VariableDeclarator"},binding:"var"===t?5:8201}),e.id=n}},{key:"parseAsyncFunctionExpression",value:function(e){return this.parseFunction(e,8)}},{key:"parseFunction",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=2&n,i=!!(1&n),a=i&&!(4&n),s=!!(8&n);this.initFunction(e,s),this.match(55)&&(r&&this.raise(w.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),i&&(e.id=this.parseFunctionId(a));var o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(at(s,e.generator)),i||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(function(){t.parseFunctionBodyAndFinish(e,i?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),i&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}},{key:"parseFunctionId",value:function(e){return e||J(this.state.type)?this.parseIdentifier():null}},{key:"parseFunctionParams",value:function(e,t){this.expect(10),this.expressionScope.enter(new et(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}},{key:"registerFunctionStatementId",value:function(e){e.id&&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)}},{key:"parseClass",value:function(e,t,n){this.next();var r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}},{key:"isClassProperty",value:function(){return this.match(29)||this.match(13)||this.match(8)}},{key:"isClassMethod",value:function(){return this.match(10)}},{key:"isNonstaticConstructor",value:function(e){return!(e.computed||e.static||"constructor"!==e.key.name&&"constructor"!==e.key.value)}},{key:"parseClassBody",value:function(e,t){var n=this;this.classScope.enter();var r={hadConstructor:!1,hadSuperClass:e},i=[],a=this.startNode();if(a.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(function(){for(;!n.match(8);)if(n.eat(13)){if(i.length>0)throw n.raise(w.DecoratorSemicolon,n.state.lastTokEndLoc)}else if(n.match(26))i.push(n.parseDecorator());else{var e=n.startNode();i.length&&(e.decorators=i,n.resetStartLocationFromNode(e,i[0]),i=[]),n.parseClassMember(a,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&n.raise(w.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),i.length)throw this.raise(w.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(a,"ClassBody")}},{key:"parseClassMemberFromModifier",value:function(e,t){var n=this.parseIdentifier(!0);if(this.isClassMethod()){var r=t;return r.kind="method",r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){var i=t;return i.computed=!1,i.key=n,i.static=!1,e.body.push(this.parseClassProperty(i)),!0}return this.resetPreviousNodeTrailingComments(n),!1}},{key:"parseClassMember",value:function(e,t,n){var r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,n,r)}},{key:"parseClassMemberWithIsStatic",value:function(e,t,n,r){var i=t,a=t,s=t,o=t,l=t,c=i,u=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){c.kind="method";var p=this.match(138);return this.parseClassElementName(c),p?void this.pushClassPrivateMethod(e,a,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(w.ConstructorIsGenerator,i.key),void this.pushClassMethod(e,i,!0,!1,!1,!1))}var f=J(this.state.type)&&!this.state.containsEsc,d=this.match(138),h=this.parseClassElementName(t),m=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(c.kind="method",d)return void this.pushClassPrivateMethod(e,a,!1,!1);var y=this.isNonstaticConstructor(i),v=!1;y&&(i.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(w.DuplicateConstructor,h),y&&this.hasPlugin("typescript")&&t.override&&this.raise(w.OverrideOnConstructor,h),n.hadConstructor=!0,v=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,y,v)}else if(this.isClassProperty())d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,s);else if(f&&"async"===h.name&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(h);var g=this.eat(55);u.optional&&this.unexpected(m),c.kind="method";var b=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(u),b?this.pushClassPrivateMethod(e,a,g,!0):(this.isNonstaticConstructor(i)&&this.raise(w.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,g,!0,!1,!1))}else if(!f||"get"!==h.name&&"set"!==h.name||this.match(55)&&this.isLineTerminator())if(f&&"accessor"===h.name&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);var E=this.match(138);this.parseClassElementName(s),this.pushClassAccessorProperty(e,l,E)}else this.isLineTerminator()?d?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,s):this.unexpected();else{this.resetPreviousNodeTrailingComments(h),c.kind=h.name;var S=this.match(138);this.parseClassElementName(i),S?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(w.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}}},{key:"parseClassElementName",value:function(e){var t=this.state,n=t.type,r=t.value;if(132!==n&&133!==n||!e.static||"prototype"!==r||this.raise(w.StaticPrototype,this.state.startLoc),138===n){"constructor"===r&&this.raise(w.ConstructorClassPrivateField,this.state.startLoc);var i=this.parsePrivateName();return e.key=i,i}return this.parsePropertyName(e)}},{key:"parseClassStaticBlock",value:function(e,t){var n;this.scope.enter(208);var r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);var i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),null!=(n=t.decorators)&&n.length&&this.raise(w.DecoratorStaticBlock,t)}},{key:"pushClassProperty",value:function(e,t){t.computed||"constructor"!==t.key.name&&"constructor"!==t.key.value||this.raise(w.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}},{key:"pushClassPrivateProperty",value:function(e,t){var n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}},{key:"pushClassAccessorProperty",value:function(e,t,n){if(!n&&!t.computed){var r=t.key;"constructor"!==r.name&&"constructor"!==r.value||this.raise(w.ConstructorClassField,r)}var i=this.parseClassAccessorProperty(t);e.body.push(i),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}},{key:"pushClassMethod",value:function(e,t,n,r,i,a){e.body.push(this.parseMethod(t,n,r,i,a,"ClassMethod",!0))}},{key:"pushClassPrivateMethod",value:function(e,t,n,r){var i=this.parseMethod(t,n,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);var a="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,a)}},{key:"declareClassPrivateMethodInScope",value:function(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}},{key:"parsePostMemberNameModifiers",value:function(e){}},{key:"parseClassPrivateProperty",value:function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}},{key:"parseClassProperty",value:function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}},{key:"parseClassAccessorProperty",value:function(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}},{key:"parseInitializer",value:function(e){this.scope.enter(80),this.expressionScope.enter(rt()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}},{key:"parseClassId",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8331;if(J(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else{if(!n&&t)throw this.raise(w.MissingClassName,this.state.startLoc);e.id=null}}},{key:"parseClassSuper",value:function(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}},{key:"parseExport",value:function(e,t){var n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),a=i&&this.eatExportStar(e),s=a&&this.maybeParseExportNamespaceSpecifier(e),o=i&&(!s||this.eat(12)),l=r||a;if(a&&!s){if(r&&this.unexpected(),t)throw this.raise(w.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration")}var c,u=this.maybeParseExportNamedSpecifiers(e);if(r&&i&&!a&&!u&&this.unexpected(null,5),s&&o&&this.unexpected(null,98),l||u){if(c=!1,t)throw this.raise(w.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else c=this.maybeParseExportDeclaration(e);if(l||u||c){var p,f=e;if(this.checkExport(f,!0,!1,!!f.source),"ClassDeclaration"===(null==(p=f.declaration)?void 0:p.type))this.maybeTakeDecorators(t,f.declaration,f);else if(t)throw this.raise(w.UnsupportedDecoratorExport,e);return this.finishNode(f,"ExportNamedDeclaration")}if(this.eat(65)){var d=e,h=this.parseExportDefaultExpression();if(d.declaration=h,"ClassDeclaration"===h.type)this.maybeTakeDecorators(t,h,d);else if(t)throw this.raise(w.UnsupportedDecoratorExport,e);return this.checkExport(d,!0,!0),this.finishNode(d,"ExportDefaultDeclaration")}this.unexpected(null,5)}},{key:"eatExportStar",value:function(e){return this.eat(55)}},{key:"maybeParseExportDefaultSpecifier",value:function(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);var n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}},{key:"maybeParseExportNamespaceSpecifier",value:function(e){if(this.isContextual(93)){e.specifiers||(e.specifiers=[]);var t=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),t.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(t,"ExportNamespaceSpecifier")),!0}return!1}},{key:"maybeParseExportNamedSpecifiers",value:function(e){if(this.match(5)){var t;e.specifiers||(e.specifiers=[]);var n="type"===e.exportKind;return(t=e.specifiers).push.apply(t,vn(this.parseExportSpecifiers(n))),e.source=null,e.declaration=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),!0}return!1}},{key:"maybeParseExportDeclaration",value:function(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")&&(e.assertions=[]),e.declaration=this.parseExportDeclaration(e),!0)}},{key:"isAsyncFunction",value:function(){if(!this.isContextual(95))return!1;var e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}},{key:"parseExportDefaultExpression",value:function(){var e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(w.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(w.UnsupportedDefaultExport,this.state.startLoc);var t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}},{key:"parseExportDeclaration",value:function(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}},{key:"isExportDefaultSpecifier",value:function(){var e=this.state.type;if(J(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){var t=this.lookahead().type;if(J(t)&&98!==t||5===t)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;var n=this.nextTokenStart(),r=this.isUnparsedContextual(n,"from");if(44===this.input.charCodeAt(n)||J(this.state.type)&&r)return!0;if(this.match(65)&&r){var i=this.input.charCodeAt(this.nextTokenStartSince(n+4));return 34===i||39===i}return!1}},{key:"parseExportFrom",value:function(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}},{key:"shouldParseExportDeclaration",value:function(){var e=this.state.type;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(w.DecoratorBeforeExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}},{key:"checkExport",value:function(e,t,n,r){var i;if(t)if(n){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var a,s=e.declaration;"Identifier"!==s.type||"from"!==s.name||s.end-s.start!=4||null!=(a=s.extra)&&a.parenthesized||this.raise(w.ExportDefaultFromAsIdentifier,s)}}else if(null!=(i=e.specifiers)&&i.length){var o,l=gn(e.specifiers);try{for(l.s();!(o=l.n()).done;){var c=o.value,u=c.exported,p="Identifier"===u.type?u.name:u.value;if(this.checkDuplicateExports(c,p),!r&&c.local){var f=c.local;"Identifier"!==f.type?this.raise(w.ExportBindingIsString,c,{localName:f.value,exportName:p}):(this.checkReservedWord(f.name,f.loc.start,!0,!1),this.scope.checkLocalExport(f))}}}catch(v){l.e(v)}finally{l.f()}}else if(e.declaration)if("FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type){var d=e.declaration.id;if(!d)throw new Error("Assertion failure");this.checkDuplicateExports(e,d.name)}else if("VariableDeclaration"===e.declaration.type){var h,m=gn(e.declaration.declarations);try{for(m.s();!(h=m.n()).done;){var y=h.value;this.checkDeclaration(y.id)}}catch(v){m.e(v)}finally{m.f()}}}},{key:"checkDeclaration",value:function(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type){var t,n=gn(e.properties);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.checkDeclaration(r)}}catch(o){n.e(o)}finally{n.f()}}else if("ArrayPattern"===e.type){var i,a=gn(e.elements);try{for(a.s();!(i=a.n()).done;){var s=i.value;s&&this.checkDeclaration(s)}}catch(o){a.e(o)}finally{a.f()}}else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}},{key:"checkDuplicateExports",value:function(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(w.DuplicateDefaultExport,e):this.raise(w.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}},{key:"parseExportSpecifiers",value:function(e){var t=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;var r=this.isContextual(130),i=this.match(133),a=this.startNode();a.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(a,i,e,r))}return t}},{key:"parseExportSpecifier",value:function(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=function(e){var t=e.type,n=e.start,r=e.end,i=e.loc,a=e.range,s=e.extra;if("Placeholder"===t)return function(e){return ut(e)}(e);var o=Object.create(ct);return o.type=t,o.start=n,o.end=r,o.loc=i,o.range=a,void 0!==e.raw?o.raw=e.raw:o.extra=s,o.value=e.value,o}(e.local):e.exported||(e.exported=ut(e.local)),this.finishNode(e,"ExportSpecifier")}},{key:"parseModuleExportName",value:function(){if(this.match(133)){var e=this.parseStringLiteral(this.state.value),t=e.value.match(Ht);return t&&this.raise(w.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}},{key:"isJSONModuleImport",value:function(e){return null!=e.assertions&&e.assertions.some(function(e){var t=e.key;return"json"===e.value.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)})}},{key:"checkImportReflection",value:function(e){var t=e.specifiers,n=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==n&&this.raise(w.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==n&&this.raise(w.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var r;"ImportDefaultSpecifier"!==n&&this.raise(w.ImportReflectionNotBinding,t[0].loc.start),(null==(r=e.assertions)?void 0:r.length)>0&&this.raise(w.ImportReflectionHasAssertion,t[0].loc.start)}}},{key:"checkJSONModuleImport",value:function(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){var t=e.specifiers;if(null!=t){var n=t.find(function(e){var t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value});void 0!==n&&this.raise(w.ImportJSONBindingNotDefault,n.loc.start)}}}},{key:"isPotentialImportPhase",value:function(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}},{key:"applyImportPhase",value:function(e,t,n,r){t||("module"===n?(this.expectPlugin("importReflection",r),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===n?(this.expectPlugin("sourcePhaseImports",r),e.phase="source"):"defer"===n?(this.expectPlugin("deferredImportEvaluation",r),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}},{key:"parseMaybeImportPhase",value:function(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;var n=this.parseIdentifier(!0),r=this.state.type;return(Y(r)?98!==r||102===this.lookaheadCharCode():12!==r)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(e,t,n.name,n.loc.start),null):(this.applyImportPhase(e,t,null),n)}},{key:"isPrecedingIdImportPhase",value:function(e){var t=this.state.type;return J(t)?98!==t||102===this.lookaheadCharCode():12!==t}},{key:"parseImport",value:function(e){return this.match(133)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}},{key:"parseImportSpecifiersAndAfter",value:function(e,t){e.specifiers=[];var n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}},{key:"parseImportSourceAndAttributes",value:function(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.finishNode(e,"ImportDeclaration")}},{key:"parseImportSource",value:function(){return this.match(133)||this.unexpected(),this.parseExprAtom()}},{key:"parseImportSpecifierLocal",value:function(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}},{key:"finishImportSpecifier",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8201;return this.checkLVal(e.local,{in:{type:t},binding:n}),this.finishNode(e,t)}},{key:"parseImportAttributes",value:function(){this.expect(5);var e=[],t=new Set;do{if(this.match(8))break;var n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(w.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(133)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(w.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}},{key:"parseModuleAttributes",value:function(){var e=[],t=new Set;do{var n=this.startNode();if(n.key=this.parseIdentifier(!0),"type"!==n.key.name&&this.raise(w.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(w.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(133))throw this.raise(w.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return e}},{key:"maybeParseImportAttributes",value:function(e){var t,n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?t=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),t=this.parseImportAttributes()),n=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(!0!==this.getPluginOption("importAttributes","deprecatedAssertSyntax")&&this.raise(w.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(e,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),t=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))t=[];else{if(!this.hasPlugin("moduleAttributes"))return;t=[]}!n&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}},{key:"maybeParseDefaultImportSpecifier",value:function(e,t){if(t){var n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}return!!Y(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}},{key:"maybeParseStarImportSpecifier",value:function(e){if(this.match(55)){var t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}},{key:"parseNamedImportSpecifiers",value:function(e){var t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(w.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}var n=this.startNode(),r=this.match(133),i=this.isContextual(130);n.imported=this.parseModuleExportName();var a=this.parseImportSpecifier(n,r,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(a)}}},{key:"parseImportSpecifier",value:function(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{var a=e.imported;if(t)throw this.raise(w.ImportBindingIsString,e,{importName:a.value});this.checkReservedWord(a.name,e.loc.start,!0,!0),e.local||(e.local=ut(a))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}},{key:"isThisParam",value:function(e){return"Identifier"===e.type&&"this"===e.name}}])}(qt),Xt=function(e){function t(e,n){var r;return xn(this,t),r=ln(this,t,[e=function(e){if(null==e)return Object.assign({},Vt);if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(var t={},n=0,r=Object.keys(Vt);n1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=P(e,0,1),n=P(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return w(e,k,function(e,t,n,i){r[r.length]=n?w(i,C,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",a=O("%"+r+"%",t),o=a.name,c=a.value,u=!1,p=a.alias;p&&(r=p[0],T(n,x([0,1],p)));for(var f=1,d=!0;f=n.length){var g=l(c,h);c=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[h]}else d=S(c,h),c=c[h];d&&!u&&(y[o]=c)}}return c}},function(e,t,n){var r=n(34),i=n(47),a=n(3),s=n(128),o=n(30),l=n(253),c=n(254),u=n(255),p=n(256),f=n(257),d=n(258),h=n(259),m=n(260),y=n(7),v=n(261),g=n(262),b=n(76),E=n(263),S=n(264),x=n(49),T=n(77),w=n(129),P=n(130),A=n(78),k=n(79),C=n(131),O=n(265),I=n(50),_=n(8),N=n(51),D=n(268),j=n(269),M=n(270),L=n(271),B=n(272),R=n(80),F=n(273),U=n(274),V=n(275),q=n(276),W=n(277);e.exports={parse:o,valid:l,clean:c,inc:u,diff:p,major:f,minor:d,patch:h,prerelease:m,compare:y,rcompare:v,compareLoose:g,compareBuild:b,sort:E,rsort:S,gt:x,lt:T,eq:w,neq:P,gte:A,lte:k,cmp:C,coerce:O,Comparator:I,Range:_,satisfies:N,toComparators:D,maxSatisfying:j,minSatisfying:M,minVersion:L,validRange:B,outside:R,gtr:F,ltr:U,intersects:V,simplifyRange:q,subset:W,SemVer:a,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},function(e,t,n){var r,i,a,s,o=n(145),l=o.isClean,c=o.my,u=n(52),p=n(56);function f(e){return e.map(function(e){return e.nodes&&(e.nodes=f(e.nodes)),delete e.source,e})}function d(e){if(e[l]=!1,e.proxyOf.nodes){var t,n=gn(e.proxyOf.nodes);try{for(n.s();!(t=n.n()).done;){d(t.value)}}catch(r){n.e(r)}finally{n.f()}}}var h=function(e){function t(){return xn(this,t),ln(this,t,arguments)}return fn(t,e),wn(t,[{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),i=1;i=e&&(this.indexes[n]=t-1);return this.markDirty(),this}},{key:"replaceValues",value:function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}},{key:"some",value:function(e){return this.nodes.some(e)}},{key:"walk",value:function(e){return this.each(function(t,n){var r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r})}},{key:"walkAtRules",value:function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("atrule"===e.type)return t(e,n)}))}},{key:"walkComments",value:function(e){return this.walk(function(t,n){if("comment"===t.type)return e(t,n)})}},{key:"walkDecls",value:function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("decl"===e.type)return t(e,n)}))}},{key:"walkRules",value:function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("rule"===e.type)return t(e,n)}))}},{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}])}(n(53));h.registerParse=function(e){r=e},h.registerRule=function(e){i=e},h.registerAtRule=function(e){a=e},h.registerRoot=function(e){s=e},e.exports=h,h.default=h,h.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,a.prototype):"rule"===e.type?Object.setPrototypeOf(e,i.prototype):"decl"===e.type?Object.setPrototypeOf(e,u.prototype):"comment"===e.type?Object.setPrototypeOf(e,p.prototype):"root"===e.type&&Object.setPrototypeOf(e,s.prototype),e[c]=!0,e.nodes&&e.nodes.forEach(function(e){h.rebuild(e)})}},function(e,t,n){var r=n(17);function i(e){return i="function"==typeof Symbol&&"symbol"==Sn(Symbol.iterator)?function(e){return Sn(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Sn(e)},i(e)}var a,s,o=n(227).codes,l=o.ERR_AMBIGUOUS_ARGUMENT,c=o.ERR_INVALID_ARG_TYPE,u=o.ERR_INVALID_ARG_VALUE,p=o.ERR_INVALID_RETURN_VALUE,f=o.ERR_MISSING_ARGS,d=n(241),h=n(32).inspect,m=n(32).types,y=m.isPromise,v=m.isRegExp,g=n(242)(),b=n(74)(),E=n(38)("RegExp.prototype.test");function S(){var e=n(245);a=e.isDeepEqual,s=e.isDeepStrictEqual}var x=!1,T=e.exports=k,w={};function P(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function A(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var a=new d({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function k(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i","<",">=","<="]),i=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],a=t.COMPARISON_BINARY_OPERATORS=[].concat(i,["in","instanceof"]),s=t.BOOLEAN_BINARY_OPERATORS=[].concat(vn(a),r),o=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],l=(t.BINARY_OPERATORS=["+"].concat(o,vn(s),["|>"]),t.ASSIGNMENT_OPERATORS=["=","+="].concat(vn(o.map(function(e){return e+"="})),vn(n.map(function(e){return e+"="}))),t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),c=t.NUMBER_UNARY_OPERATORS=["+","-","~"],u=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void","throw"].concat(l,c,u),t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return l(e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],arguments.length>2&&void 0!==arguments[2]&&arguments[2],new Map)};var r=n(9),i=n(2),a=Function.call.bind(Object.prototype.hasOwnProperty);function s(e,t,n,r){return e&&"string"==typeof e.type?l(e,t,n,r):e}function o(e,t,n,r){return Array.isArray(e)?e.map(function(e){return s(e,t,n,r)}):s(e,t,n,r)}function l(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;if(!e)return e;var l=e.type,u={type:e.type};if((0,i.isIdentifier)(e))u.name=e.name,a(e,"optional")&&"boolean"==typeof e.optional&&(u.optional=e.optional),a(e,"typeAnnotation")&&(u.typeAnnotation=t?o(e.typeAnnotation,!0,n,s):e.typeAnnotation);else{if(!a(r.NODE_FIELDS,l))throw new Error('Unknown node type: "'.concat(l,'"'));for(var p=0,f=Object.keys(r.NODE_FIELDS[l]);p1&&void 0!==arguments[1]?arguments[1]:SyntaxError;return this.hub.buildError(this.node,e,t)}},{key:"traverse",value:function(e,t){(0,a.default)(this.node,e,this.scope,t,this)}},{key:"set",value:function(e,t){T(this.node,e,t),this.node[e]=t}},{key:"getPathLocation",value:function(){var e=[],t=this;do{var n=t.key;t.inList&&(n="".concat(t.listKey,"[").concat(n,"]")),e.unshift(n)}while(t=t.parentPath);return e.join(".")}},{key:"debug",value:function(e){w.enabled&&w("".concat(this.getPathLocation()," ").concat(this.type,": ").concat(e))}},{key:"toString",value:function(){return(0,u.default)(this.node).code}},{key:"inList",get:function(){return!!this.listKey},set:function(e){e||(this.listKey=null)}},{key:"parentKey",get:function(){return this.listKey||this.key}},{key:"shouldSkip",get:function(){return!!(this._traverseFlags&k)},set:function(e){e?this._traverseFlags|=k:this._traverseFlags&=~k}},{key:"shouldStop",get:function(){return!!(this._traverseFlags&A)},set:function(e){e?this._traverseFlags|=A:this._traverseFlags&=~A}},{key:"removed",get:function(){return!!(this._traverseFlags&P)},set:function(e){e?this._traverseFlags|=P:this._traverseFlags&=~P}}],[{key:"get",value:function(t){var n=t.hub,r=t.parentPath,i=t.parent,a=t.container,s=t.listKey,o=t.key;if(!n&&r&&(n=r.hub),!i)throw new Error("To get a node path the parent needs to exist");var l=a[o],u=c.getOrCreateCachedPaths(n,i),p=u.get(l);return p||(p=new e(n,i),l&&u.set(l,p)),p.setup(r,a,s,o),p}}])}();Object.assign(C.prototype,p,f,d,h,m,y,v,g,b,E,S),C.prototype._guessExecutionStatusRelativeToDifferentFunctions=y._guessExecutionStatusRelativeTo;var O,I=gn(l.TYPES);try{var _=function(){var e=O.value,t="is".concat(e),n=l[t];C.prototype[t]=function(e){return n(this.node,e)},C.prototype["assert".concat(e)]=function(t){if(!n(this.node,t))throw new TypeError("Expected node path of type ".concat(e))}};for(I.s();!(O=I.n()).done;)_()}catch(M){I.e(M)}finally{I.f()}Object.assign(C.prototype,x);for(var N=0,D=Object.keys(r);N2&&void 0!==arguments[2]&&arguments[2];if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},function(e,t,n){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ n(12);var r=n(417),i=n(418),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.a=l,t.b=50;var s=2147483647;function o(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|m(e,t),r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(J(e,Uint8Array)){var t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+Sn(e));if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);var i=function(e){if(l.isBuffer(e)){var t=0|h(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?o(0):f(e):"Buffer"===e.type&&Array.isArray(e.data)?f(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+Sn(e))}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return u(e),o(e<0?0:0|h(e))}function f(e){for(var t=e.length<0?0:0|h(e.length),n=o(t),r=0;r=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+Sn(e));var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(i)return r?-1:K(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var a,s=1,o=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,o/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var u=-1;for(a=n;ao&&(n=o-l),a=n;a>=0;a--){for(var p=!0,f=0;fi&&(r=i):r=i;var a,s=t.length;for(r>s/2&&(r=s/2),a=0;a>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function P(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+o<=n){var l=void 0,c=void 0,u=void 0,p=void 0;switch(o){case 1:a<128&&(s=a);break;case 2:128==(192&(l=e[i+1]))&&((p=(31&a)<<6|63&l)>127&&(s=p));break;case 3:l=e[i+1],c=e[i+2],128==(192&l)&&128==(192&c)&&((p=(15&a)<<12|(63&l)<<6|63&c)>2047&&(p<55296||p>57343)&&(s=p));break;case 4:l=e[i+1],c=e[i+2],u=e[i+3],128==(192&l)&&128==(192&c)&&128==(192&u)&&((p=(15&a)<<18|(63&l)<<12|(63&c)<<6|63&u)>65535&&p<1114112&&(s=p))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=o}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr.length?(l.isBuffer(a)||(a=l.from(a)),a.copy(r,i)):Uint8Array.prototype.set.call(r,a,i);else{if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i)}i+=a.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(J(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+Sn(e));if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),o=Math.min(a,s),c=this.slice(r,i),u=e.slice(t,n),p=0;p>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,r,i,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r,i){q(t,r,i,e,n,7);var a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;var s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function M(e,t,n,r,i){q(t,r,i,e,n,7);var a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;var s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function L(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,a){return t=+t,n>>>=0,a||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,a){return t=+t,n>>>=0,a||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||N(e,t,this.length);for(var r=this[e],i=1,a=0;++a>>=0,t>>>=0,n||N(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q(function(e){W(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=t+256*this[++e]+65536*this[++e]+this[++e]*Math.pow(2,24),i=this[++e]+256*this[++e]+65536*this[++e]+n*Math.pow(2,24);return BigInt(r)+(BigInt(i)<>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=t*Math.pow(2,24)+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*Math.pow(2,24)+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||N(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q(function(e){W(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||N(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,r||D(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q(function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Q(function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var a=0,s=1,o=0;for(this[t]=255&e;++a>>=0,!r){var i=Math.pow(2,8*n-1);D(this,e,t,n,i-1,-i)}var a=n-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s|0)-o&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q(function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Q(function(e){return M(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function q(e,t,n,r,i,a){if(e>n||e= 0".concat(o," and < 2").concat(o," ** ").concat(8*(a+1)).concat(o):">= -(2".concat(o," ** ").concat(8*(a+1)-1).concat(o,") and < 2 ** ").concat(8*(a+1)-1).concat(o),new F.ERR_OUT_OF_RANGE("value",s,e)}!function(e,t,n){W(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||G(t,e.length-(n+1))}(r,i,a)}function W(e,t){if("number"!=typeof e)throw new F.ERR_INVALID_ARG_TYPE(t,"number",e)}function G(e,t,n){if(Math.floor(e)!==e)throw W(e,n),new F.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ",t),e)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(Sn(t))},TypeError),U("ERR_OUT_OF_RANGE",function(e,t,n){var r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?i=V(String(n)):"bigint"==typeof n&&(i=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(i=V(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i)},RangeError);var H=/[^+/0-9A-Za-z-_]/g;function K(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],s=0;s55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function z(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,t,n,r){var i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}var $=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}();function Q(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},function(e,t,n){var r=n(17),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),o=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),p(r,e,r.depth)}function c(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function u(e,t){return e}function p(e,n,r){if(e.customInspect&&n&&w(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return g(i)||(i=p(e,i,r)),i}var a=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(a)return a;var s=Object.keys(n),o=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),T(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(w(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(E(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(x(n))return e.stylize(Date.prototype.toString.call(n),"date");if(T(n))return f(n)}var c,u="",S=!1,P=["{","}"];return h(n)&&(S=!0,P=["[","]"]),w(n)&&(u=" [Function"+(n.name?": "+n.name:"")+"]"),E(n)&&(u=" "+RegExp.prototype.toString.call(n)),x(n)&&(u=" "+Date.prototype.toUTCString.call(n)),T(n)&&(u=" "+f(n)),0!==s.length||S&&0!=n.length?r<0?E(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=S?function(e,t,n,r,i){for(var a=[],s=0,o=t.length;s60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(c,u,P)):P[0]+u+P[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,a){var s,o,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?o=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(o=e.stylize("[Setter]","special")),A(r,i)||(s="["+i+"]"),o||(e.seen.indexOf(l.value)<0?(o=y(n)?p(e,l.value,null):p(e,l.value,n-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+o.split("\n").map(function(e){return" "+e}).join("\n")):o=e.stylize("[Circular]","special")),b(s)){if(a&&i.match(/^\d+$/))return o;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function E(e){return S(e)&&"[object RegExp]"===P(e)}function S(e){return"object"==Sn(e)&&null!==e}function x(e){return S(e)&&"[object Date]"===P(e)}function T(e){return S(e)&&("[object Error]"===P(e)||e instanceof Error)}function w(e){return"function"==typeof e}function P(e){return Object.prototype.toString.call(e)}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.debuglog=function(e){return e=e.toUpperCase(),s[e]||(o.test(e)?(r.pid,s[e]=function(){t.format.apply(t,arguments)}):s[e]=function(){}),s[e]},t.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(228),t.isArray=h,t.isBoolean=m,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=g,t.isSymbol=function(e){return"symbol"==Sn(e)},t.isUndefined=b,t.isRegExp=E,t.types.isRegExp=E,t.isObject=S,t.isDate=x,t.types.isDate=x,t.isError=T,t.types.isNativeError=T,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==Sn(e)||void 0===e},t.isBuffer=n(240),t.log=function(){},t.inherits=n(158),t._extend=function(e,t){if(!t||!S(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function C(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(k&&e[k]){var t;if("function"!=typeof(t=e[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,k,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],a=0;a)?=?)"),m("XRANGEIDENTIFIERLOOSE","".concat(u[p.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),m("XRANGEIDENTIFIER","".concat(u[p.NUMERICIDENTIFIER],"|x|X|\\*")),m("XRANGEPLAIN","[v=\\s]*(".concat(u[p.XRANGEIDENTIFIER],")(?:\\.(").concat(u[p.XRANGEIDENTIFIER],")(?:\\.(").concat(u[p.XRANGEIDENTIFIER],")(?:").concat(u[p.PRERELEASE],")?").concat(u[p.BUILD],"?)?)?")),m("XRANGEPLAINLOOSE","[v=\\s]*(".concat(u[p.XRANGEIDENTIFIERLOOSE],")(?:\\.(").concat(u[p.XRANGEIDENTIFIERLOOSE],")(?:\\.(").concat(u[p.XRANGEIDENTIFIERLOOSE],")(?:").concat(u[p.PRERELEASELOOSE],")?").concat(u[p.BUILD],"?)?)?")),m("XRANGE","^".concat(u[p.GTLT],"\\s*").concat(u[p.XRANGEPLAIN],"$")),m("XRANGELOOSE","^".concat(u[p.GTLT],"\\s*").concat(u[p.XRANGEPLAINLOOSE],"$")),m("COERCE","(^|[^\\d])(\\d{1,".concat(i,"})(?:\\.(\\d{1,").concat(i,"}))?(?:\\.(\\d{1,").concat(i,"}))?(?:$|[^\\d])")),m("COERCERTL",u[p.COERCE],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM","(\\s*)".concat(u[p.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",m("TILDE","^".concat(u[p.LONETILDE]).concat(u[p.XRANGEPLAIN],"$")),m("TILDELOOSE","^".concat(u[p.LONETILDE]).concat(u[p.XRANGEPLAINLOOSE],"$")),m("LONECARET","(?:\\^)"),m("CARETTRIM","(\\s*)".concat(u[p.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",m("CARET","^".concat(u[p.LONECARET]).concat(u[p.XRANGEPLAIN],"$")),m("CARETLOOSE","^".concat(u[p.LONECARET]).concat(u[p.XRANGEPLAINLOOSE],"$")),m("COMPARATORLOOSE","^".concat(u[p.GTLT],"\\s*(").concat(u[p.LOOSEPLAIN],")$|^$")),m("COMPARATOR","^".concat(u[p.GTLT],"\\s*(").concat(u[p.FULLPLAIN],")$|^$")),m("COMPARATORTRIM","(\\s*)".concat(u[p.GTLT],"\\s*(").concat(u[p.LOOSEPLAIN],"|").concat(u[p.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE","^\\s*(".concat(u[p.XRANGEPLAIN],")\\s+-\\s+(").concat(u[p.XRANGEPLAIN],")\\s*$")),m("HYPHENRANGELOOSE","^\\s*(".concat(u[p.XRANGEPLAINLOOSE],")\\s+-\\s+(").concat(u[p.XRANGEPLAINLOOSE],")\\s*$")),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clear=function(){r(),i()},t.clearPath=r,t.clearScope=i,t.getCachedPaths=function(e,t){var r;return null==(r=n.get(a))?void 0:r.get(t)},t.getOrCreateCachedPaths=function(e,t){var r=n.get(a);r||n.set(a,r=new WeakMap);var i=r.get(t);return i||r.set(t,i=new Map),i},t.scope=t.path=void 0;var n=t.path=new WeakMap;function r(){t.path=n=new WeakMap}function i(){t.scope=new WeakMap}t.scope=new WeakMap;var a=Object.freeze({})},function(e,t,n){var r=n(17);Object.defineProperty(t,"__esModule",{value:!0}),t.codeFrameColumns=u,t.default=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!l){l=!0;var a="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";r.emitWarning?r.emitWarning(a,"DeprecationWarning"):new Error(a).name="DeprecationWarning"}return u(e,{start:{column:n=Math.max(n,0),line:t}},i)};var i=n(428),a=function(e){if(null===e||"object"!=Sn(e)&&"function"!=typeof e)return{default:e};var t=s(!0);if(t&&t.has(e))return t.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(224));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var o,l=!1,c=/\r\n|[\n\r\u2028\u2029]/;function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(n.highlightCode||n.forceColor)&&(0,i.shouldHighlight)(n),s=n.forceColor?(null!=o||(o=new a.default.constructor({enabled:!0,level:1})),o):a.default,l=function(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}(s),u=function(e,t){return r?e(t):t},p=function(e,t,n){var r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),a=n||{},s=a.linesAbove,o=void 0===s?2:s,l=a.linesBelow,c=void 0===l?3:l,u=r.line,p=r.column,f=i.line,d=i.column,h=Math.max(u-(o+1),0),m=Math.min(t.length,f+c);-1===u&&(h=0),-1===f&&(m=t.length);var y=f-u,v={};if(y)for(var g=0;g<=y;g++){var b=g+u;if(p)if(0===g){var E=t[b-1].length;v[b]=[p,E-p+1]}else if(g===y)v[b]=[0,d];else{var S=t[b-g].length;v[b]=[0,S]}else v[b]=!0}else v[u]=p===d?!p||[p,0]:[p,d-p];return{start:h,end:m,markerLines:v}}(t,e.split(c),n),f=p.start,d=p.end,h=p.markerLines,m=t.start&&"number"==typeof t.start.column,y=String(d).length,v=(r?(0,i.default)(e,n):e).split(c,d).slice(f,d).map(function(e,t){var r=f+1+t,i=" ".concat(" ".concat(r).slice(-y)," |"),a=h[r],s=!h[r+1];if(a){var o="";if(Array.isArray(a)){var c=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," "),p=a[1]||1;o=["\n ",u(l.gutter,i.replace(/\d/g," "))," ",c,u(l.marker,"^").repeat(p)].join(""),s&&n.message&&(o+=" "+u(l.message,n.message))}return[u(l.marker,">"),u(l.gutter,i),e.length>0?" ".concat(e):"",o].join("")}return" ".concat(u(l.gutter,i)).concat(e.length>0?" ".concat(e):"")}).join("\n");return n.message&&!m&&(v="".concat(" ".repeat(y+1)).concat(n.message,"\n").concat(v)),r?s.reset(v):v}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.statements=t.statement=t.smart=t.program=t.expression=t.default=void 0;var r=n(432),i=n(433),a=(0,i.default)(r.smart);t.smart=a;var s=(0,i.default)(r.statement);t.statement=s;var o=(0,i.default)(r.statements);t.statements=o;var l=(0,i.default)(r.expression);t.expression=l;var c=(0,i.default)(r.program);t.program=c;var u=Object.assign(a.bind(void 0),{smart:a,statement:s,statements:o,expression:l,program:c,ast:a.ast});t.default=u},function(e,t,n){var r=n(22),i=n(41),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?i(n):n}},function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.beginHiddenCallStack=function(e){return i?Object.defineProperty(function(){return c(),e.apply(void 0,arguments)},"name",{value:s}):e},t.endHiddenCallStack=function(e){return i?Object.defineProperty(function(){return e.apply(void 0,arguments)},"name",{value:a}):e},t.expectedError=function(e){if(i)return o.add(e),e},t.injectVirtualStackFrame=function(e,t){if(i){var n=l.get(e);return n||l.set(e,n=[]),n.push(function(e){return Object.create({isNative:function(){return!1},isConstructor:function(){return!1},isToplevel:function(){return!0},getFileName:function(){return e},getLineNumber:function(){},getColumnNumber:function(){},getFunctionName:function(){},getMethodName:function(){},getTypeName:function(){},toString:function(){return e}})}(t)),e}};var r=Function.call.bind(Error.prototype.toString),i=!!Error.captureStackTrace&&!0===(null==(n=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit"))?void 0:n.writable),a="startHiding - secret - don't use this - v1",s="stopHiding - secret - don't use this - v1",o=new WeakSet,l=new WeakMap;function c(){c=function(){};var e=Error.prepareStackTrace,t=void 0===e?u:e;Error.stackTraceLimit&&(Error.stackTraceLimit=Math.max(Error.stackTraceLimit,50)),Error.prepareStackTrace=function(e,n){for(var r=[],i=o.has(e)?"hiding":"unknown",c=0;c1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n){var a,s=gn(i);try{for(s.s();!(a=s.n()).done;){a.value.raws.before=n.raws.before}}catch(o){s.e(o)}finally{s.f()}}return i}},{key:"removeChild",value:function(e,n){var r=this.index(e);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),sn(t,"removeChild",this,3)([e])}},{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r(new i,this,e).stringify()}}])}(a);s.registerLazyResult=function(e){r=e},s.registerProcessor=function(e){i=e},e.exports=s,s.default=s,a.registerRoot(s)},function(e,t,n){var r=n(71),i=n(22),a=n(234),s=i("%TypeError%"),o=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||r.call(l,o),u=i("%Object.defineProperty%",!0),p=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=c(r,l,arguments);return a(t,1+p(0,e.length-(arguments.length-1)),!0)};var f=function(){return c(r,o,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){return!!t&&((0,i.default)(t.type,e)?void 0===n||(0,r.default)(t,n):!n&&"Placeholder"===t.type&&e in s.FLIPPED_ALIAS_KEYS&&(0,a.default)(t.expectedNode,e))};var r=n(96),i=n(98),a=n(168),s=n(9)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&(!(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])||!(0,r.isKeyword)(e)&&!(0,r.isStrictReservedWord)(e,!0))&&(0,r.isIdentifierName)(e)};var r=n(59)},function(e,t,n){var r=n(5),i=n(15),a=n(102),s=n(204),o=n(11),l=r.RegExp,c=l.prototype;i&&o(function(){var e=!0;try{l(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==r||n!==r})&&a(c,"flags",{configurable:!0,get:s})},function(e,t,n){var r=n(5),i=n(116),a=n(29),s=n(67),o=n(113),l=n(112),c=r.Symbol,u=i("wks"),p=l?c.for||c:c&&c.withoutSetter||s;e.exports=function(e){return a(u,e)||(u[e]=o&&a(c,e)?c[e]:p("Symbol."+e)),u[e]}},function(e,t,n){var r=n(123),i="function"==typeof Symbol&&"symbol"==Sn(Symbol("foo")),a=Object.prototype.toString,s=Array.prototype.concat,o=n(121),l=n(72)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(i=r)||"[object Function]"!==a.call(i)||!r())return;var i;l?o(e,t,n,!0):o(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=s.call(a,Object.getOwnPropertySymbols(t)));for(var o=0;o0}},function(e,t,n){var r=Symbol("SemVer ANY"),i=function(){function e(t,n){if(xn(this,e),n=a(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),u("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===r?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}return wn(e,[{key:"parse",value:function(e){var t=this.options.loose?o[l.COMPARATORLOOSE]:o[l.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: ".concat(e));this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new p(n[2],this.options.loose):this.semver=r}},{key:"toString",value:function(){return this.value}},{key:"test",value:function(e){if(u("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}},{key:"intersects",value:function(t,n){if(!(t instanceof e))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new f(t.value,n).test(this.value):""===t.operator?""===t.value||new f(this.value,n).test(t.semver):!((n=a(n)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!t.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!t.operator.startsWith("<"))&&(this.semver.version!==t.semver.version||!this.operator.includes("=")||!t.operator.includes("="))&&!(c(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<"))&&!(c(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}}],[{key:"ANY",get:function(){return r}}])}();e.exports=i;var a=n(75),s=n(34),o=s.safeRe,l=s.t,c=n(131),u=n(48),p=n(3),f=n(8)},function(e,t,n){var r=n(8);e.exports=function(e,t,n){try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},function(e,t,n){var r=function(e){function t(e){var n;return xn(this,t),e&&void 0!==e.value&&"string"!=typeof e.value&&(e=nn(nn({},e),{},{value:String(e.value)})),(n=ln(this,t,[e])).type="decl",n}return fn(t,e),wn(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}])}(n(53));e.exports=r,r.default=r},function(e,t,n){var r=n(145),i=r.isClean,a=r.my,s=n(87),o=n(146),l=n(54);function c(e,t){var n=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&"proxyCache"!==r){var i=e[r],a=Sn(i);"parent"===r&&"object"===a?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map(function(e){return c(e,n)}):("object"===a&&null!==i&&(i=c(i)),n[r]=i)}return n}var u=function(){return wn(function e(){xn(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var n in this.raws={},this[i]=!1,this[a]=!0,t)if("nodes"===n){this.nodes=[];var r,s=gn(t[n]);try{for(s.s();!(r=s.n()).done;){var o=r.value;"function"==typeof o.clone?this.append(o.clone()):this.append(o)}}catch(l){s.e(l)}finally{s.f()}}else this[n]=t[n]},[{key:"addToError",value:function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&".concat(t.input.from,":").concat(t.start.line,":").concat(t.start.column,"$&"))}return e}},{key:"after",value:function(e){return this.parent.insertAfter(this,e),this}},{key:"assign",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e)this[t]=e[t];return this}},{key:"before",value:function(e){return this.parent.insertBefore(this,e),this}},{key:"cleanRaws",value:function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=c(this);for(var n in e)t[n]=e[n];return t}},{key:"cloneAfter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t}},{key:"cloneBefore",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t}},{key:"error",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var n=this.rangeBy(t),r=n.end,i=n.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new s(e)}},{key:"getProxyProcessor",value:function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}}},{key:"markDirty",value:function(){if(this[i]){this[i]=!1;for(var e=this;e=e.parent;)e[i]=!1}}},{key:"next",value:function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}}},{key:"positionBy",value:function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){var r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}},{key:"positionInside",value:function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,a=0;a0&&void 0!==arguments[0]?arguments[0]:l;e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t}},{key:"warn",value:function(e,t,n){var r={node:this};for(var i in n)r[i]=n[i];return e.warn(t,r)}},{key:"proxyOf",get:function(){return this}}])}();e.exports=u,u.default=u},function(e,t,n){var r=n(146);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},function(e,t,n){var r=n(149),i=r.SourceMapConsumer,a=r.SourceMapGenerator,s=n(318),o=s.fileURLToPath,l=s.pathToFileURL,c=n(150),u=c.isAbsolute,p=c.resolve,f=n(319).nanoid,d=n(317),h=n(87),m=n(151),y=Symbol("fromOffsetCache"),v=Boolean(i&&a),g=Boolean(p&&u),b=function(){return wn(function e(t){xn(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||"object"==Sn(t)&&!t.toString)throw new Error("PostCSS received ".concat(t," instead of CSS string"));if(this.css=t.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!g||/^\w+:\/\//.test(n.from)||u(n.from)?this.file=n.from:this.file=p(n.from)),g&&v){var r=new m(this.css,n);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id=""),this.map&&(this.map.file=this.from)},[{key:"error",value:function(e,t,n){var r,i,a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t&&"object"==Sn(t)){var o=t,c=n;if("number"==typeof o.offset){var u=this.fromOffset(o.offset);t=u.line,n=u.col}else t=o.line,n=o.column;if("number"==typeof c.offset){var p=this.fromOffset(c.offset);i=p.line,a=p.col}else i=c.line,a=c.column}else if(!n){var f=this.fromOffset(t);t=f.line,n=f.col}var d=this.origin(t,n,i,a);return(r=d?new h(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,s.plugin):new h(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:a,line:i},this.css,this.file,s.plugin)).input={column:n,endColumn:a,endLine:i,line:t,source:this.css},this.file&&(l&&(r.input.url=l(this.file).toString()),r.input.file=this.file),r}},{key:"fromOffset",value:function(e){var t;if(this[y])t=this[y];else{var n=this.css.split("\n");t=new Array(n.length);for(var r=0,i=0,a=n.length;i=t[t.length-1])s=t.length-1;else for(var o,l=t.length-2;s>1)])l=o-1;else{if(!(e>=t[o+1])){s=o;break}s=o+1}return{col:e-t[s]+1,line:s+1}}},{key:"mapResolve",value:function(e){return/^\w+:\/\//.test(e)?e:p(this.map.consumer().sourceRoot||this.map.root||".",e)}},{key:"origin",value:function(e,t,n,r){if(!this.map)return!1;var i,a,s=this.map.consumer(),c=s.originalPositionFor({column:t,line:e});if(!c.source)return!1;"number"==typeof n&&(i=s.originalPositionFor({column:r,line:n})),a=u(c.source)?l(c.source):new URL(c.source,this.map.consumer().sourceRoot||l(this.map.mapFile));var p={column:c.column,endColumn:i&&i.column,endLine:i&&i.line,line:c.line,url:a.toString()};if("file:"===a.protocol){if(!o)throw new Error("file: protocol is not available in this PostCSS build");p.file=o(a)}var f=s.sourceContentFor(c.source);return f&&(p.source=f),p}},{key:"toJSON",value:function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r={},i=0;i0)throw new Error("It doesn't make sense to split exported specifiers.");var m=e.get("declaration"),y=m.getOuterBindingIdentifiers(),v=Object.keys(y).map(function(e){return s(o(e),o(e))}),g=a(null,v);return e.insertAfter(g),e.replaceWith(m.node),e};var r=n(0),i=r.cloneNode,a=r.exportNamedDeclaration,s=r.exportSpecifier,o=r.identifier,l=r.variableDeclaration,c=r.variableDeclarator},function(e,t,n){var r=n(187),i=Object;e.exports=function(e){return i(r(e))}},function(e,t,n){var r=n(5),i=n(106),a="__core-js_shared__",s=r[a]||i(a,{});e.exports=s},function(e,t,n){var r=n(20),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not an object")}},function(e,t,n){var r=n(104),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(e,t,n){var r=n(19),i=0,a=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+a,36)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"buildDynamicImport",{enumerable:!0,get:function(){return w.buildDynamicImport}}),t.buildNamespaceInitStatements=function(e,t){var n,r,p=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:T.wrapReference,d=[],h=D(t.name),m=gn(t.importsNamespace);try{for(m.s();!(r=m.n()).done;){var y=r.value;y!==t.name&&d.push(i.template.statement(l||(l=hn(["var NAME = SOURCE;"])))({NAME:y,SOURCE:O(h)}))}}catch(x){m.e(x)}finally{m.f()}var v=null!=(n=f(h,t.wrap))?n:h;p&&d.push.apply(d,vn(V(e,t,!0,f)));var g,b=gn(t.reexportNamespace);try{for(b.s();!(g=b.n()).done;){var E=g.value;d.push((i.types.isIdentifier(v)?i.template.statement(c||(c=hn(["EXPORTS.NAME = NAMESPACE;"]))):i.template.statement(u||(u=hn(['\n Object.defineProperty(EXPORTS, "NAME", {\n enumerable: true,\n get: function() {\n return NAMESPACE;\n }\n });\n ']))))({EXPORTS:e.exportName,NAME:E,NAMESPACE:O(v)}))}}catch(x){b.e(x)}finally{b.f()}if(t.reexportAll){var S=function(e,t,n){return(n?i.template.statement(a||(a=hn(['\n Object.keys(NAMESPACE).forEach(function(key) {\n if (key === "default" || key === "__esModule") return;\n VERIFY_NAME_LIST;\n if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;\n\n EXPORTS[key] = NAMESPACE[key];\n });\n ']))):i.template.statement(s||(s=hn(['\n Object.keys(NAMESPACE).forEach(function(key) {\n if (key === "default" || key === "__esModule") return;\n VERIFY_NAME_LIST;\n if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;\n\n Object.defineProperty(EXPORTS, key, {\n enumerable: true,\n get: function() {\n return NAMESPACE[key];\n },\n });\n });\n ']))))({NAMESPACE:t,EXPORTS:e.exportName,VERIFY_NAME_LIST:e.exportNameListName?i.template(o||(o=hn(["\n if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;\n "])))({EXPORTS_LIST:e.exportNameListName}):null})}(e,O(v),p);S.loc=t.reexportAll.loc,d.push(S)}return d},t.ensureStatementsHoisted=function(e){e.forEach(function(e){e._blockHoist=3})},Object.defineProperty(t,"getModuleName",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"hasExports",{enumerable:!0,get:function(){return x.hasExports}}),Object.defineProperty(t,"isModule",{enumerable:!0,get:function(){return b.isModule}}),Object.defineProperty(t,"isSideEffectImport",{enumerable:!0,get:function(){return x.isSideEffectImport}}),t.rewriteModuleStatementsAndPrepareHeader=function(e,t){var n=t.exportName,a=t.strict,s=t.allowTopLevelThis,o=t.strictMode,l=t.noInterop,c=t.importInterop,u=void 0===c?l?"none":"babel":c,d=t.lazy,h=t.getWrapperPayload,m=void 0===h?T.toGetWrapperPayload(null!=d&&d):h,y=t.wrapReference,v=void 0===y?T.wrapReference:y,g=t.esNamespaceOnly,w=t.filename,P=t.constantReexports,A=void 0===P?arguments[1].loose:P,k=t.enumerableModuleMeta,C=void 0===k?arguments[1].loose:k,O=t.noIncompleteNsImportDetection;(0,x.validateImportInteropOption)(u),r((0,b.isModule)(e),"Cannot process module statements in a script"),e.node.sourceType="script";var N=(0,x.default)(e,n,{importInterop:u,initializeReexports:A,getWrapperPayload:m,esNamespaceOnly:g,filename:w});(s||(0,E.default)(e),(0,S.default)(e,N,v),!1!==o)&&(e.node.directives.some(function(e){return"use strict"===e.value.value})||e.unshiftContainer("directives",I(_("use strict"))));var j=[];(0,x.hasExports)(N)&&!a&&j.push(function(e){return(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?i.template.statement(p||(p=hn(["\n EXPORTS.__esModule = true;\n "]))):i.template.statement(f||(f=hn(['\n Object.defineProperty(EXPORTS, "__esModule", {\n value: true,\n });\n ']))))({EXPORTS:e.exportName})}(N,C));var M=function(e,t){var n,r=Object.create(null),i=gn(t.local.values());try{for(i.s();!(n=i.n()).done;){var a,s=gn(n.value.names);try{for(s.s();!(a=s.n()).done;){r[a.value]=!0}}catch(y){s.e(y)}finally{s.f()}}}catch(y){i.e(y)}finally{i.f()}var o,l=!1,c=gn(t.source.values());try{for(c.s();!(o=c.n()).done;){var u,p=o.value,f=gn(p.reexports.keys());try{for(f.s();!(u=f.n()).done;){r[u.value]=!0}}catch(y){f.e(y)}finally{f.f()}var d,h=gn(p.reexportNamespace);try{for(h.s();!(d=h.n()).done;){r[d.value]=!0}}catch(y){h.e(y)}finally{h.f()}l=l||!!p.reexportAll}}catch(y){c.e(y)}finally{c.f()}if(!l||0===Object.keys(r).length)return null;var m=e.scope.generateUidIdentifier("exportNames");return delete r.default,{name:m.name,statement:R("var",[F(m,B(r))])}}(e,N);return M&&(N.exportNameListName=M.name,j.push(M.statement)),j.push.apply(j,vn(function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=[],o=gn(t.local);try{for(o.s();!(r=o.n()).done;){var l=an(r.value,2),c=l[0],u=l[1];if("import"===u.kind);else if("hoisted"===u.kind)s.push([u.names[0],W(t,u.names,D(c))]);else if(!a){var p,f=gn(u.names);try{for(f.s();!(p=f.n()).done;){var d=p.value;s.push([d,null])}}catch(j){f.e(j)}finally{f.f()}}}}catch(j){o.e(j)}finally{o.f()}var h,m=gn(t.source.values());try{for(m.s();!(h=m.n()).done;){var y=h.value;if(!i)for(var v=V(t,y,!1,n),g=vn(y.reexports.keys()),b=0;b0&&(T.push(W(t,C,e.scope.buildUndefinedNode())),C=[]),T.push(N)):C.push(_)}C.length>0&&T.push(W(t,C,e.scope.buildUndefinedNode()))}return T}(e,N,v,A,O))),{meta:N,headers:j}},Object.defineProperty(t,"rewriteThis",{enumerable:!0,get:function(){return E.default}}),t.wrapInterop=function(e,t,n){if("none"===n)return null;if("node-namespace"===n)return C(e.hub.addHelper("interopRequireWildcard"),[t,k(!0)]);if("node-default"===n)return null;var r;if("default"===n)r="interopRequireDefault";else{if("namespace"!==n)throw new Error("Unknown interop: ".concat(n));r="interopRequireWildcard"}return C(e.hub.addHelper(r),[t])};var r=n(25),i=n(1),b=n(93),E=n(449),S=n(450),x=n(252),T=n(451),w=n(330),P=n(452),A=i.types,k=A.booleanLiteral,C=A.callExpression,O=A.cloneNode,I=A.directive,_=A.directiveLiteral,N=A.expressionStatement,D=A.identifier,j=A.isIdentifier,M=A.memberExpression,L=A.stringLiteral,B=A.valueToNode,R=A.variableDeclaration,F=A.variableDeclarator;t.getDynamicImportSource=n(330).getDynamicImportSource;var U={constant:i.template.statement(d||(d=hn(["EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;"]))),constantComputed:i.template.statement(h||(h=hn(['EXPORTS["EXPORT_NAME"] = NAMESPACE_IMPORT;']))),spec:i.template.statement(m||(m=hn(['\n Object.defineProperty(EXPORTS, "EXPORT_NAME", {\n enumerable: true,\n get: function() {\n return NAMESPACE_IMPORT;\n },\n });\n '])))};function V(e,t,n,r){var i,a=D(t.name);a=null!=(i=r(a,t.wrap))?i:a;var s=e.stringSpecifiers;return Array.from(t.reexports,function(r){var i=an(r,2),o=i[0],l=i[1],c=O(a);"default"===l&&"node-default"===t.interop||(c=s.has(l)?M(c,L(l),!0):M(c,D(l)));var u={EXPORTS:e.exportName,EXPORT_NAME:o,NAMESPACE_IMPORT:c};return n||j(c)?s.has(o)?U.constantComputed(u):U.constant(u):U.spec(u)})}var q={computed:i.template.expression(y||(y=hn(['EXPORTS["NAME"] = VALUE']))),default:i.template.expression(v||(v=hn(["EXPORTS.NAME = VALUE"]))),define:i.template.expression(g||(g=hn(['Object.defineProperty(EXPORTS, "NAME", { enumerable:true, value: void 0, writable: true })["NAME"] = VALUE'])))};function W(e,t,n){var r=e.stringSpecifiers,i=e.exportName;return N(t.reduce(function(e,t){var n={EXPORTS:i,NAME:t,VALUE:e};return"__proto__"===t?q.define(n):r.has(t)?q.computed(n):q.default(n)},n))}},function(e,t,n){var r=n(70);e.exports=function(){return r()&&!!Symbol.toStringTag}},function(e){e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==Sn(Symbol.iterator))return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(e,t,n){var r=n(232);e.exports=Function.prototype.bind||r},function(e,t,n){var r=n(22)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},function(e,t,n){var r=n(22)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},function(e,t,n){var r=n(125);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},function(e){var t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=function(e){return e?"object"!=Sn(e)?t:e:n}},function(e,t,n){var r=n(3);e.exports=function(e,t,n){var i=new r(e,n),a=new r(t,n);return i.compare(a)||i.compareBuild(a)}},function(e,t,n){var r=n(7);e.exports=function(e,t,n){return r(e,t,n)<0}},function(e,t,n){var r=n(7);e.exports=function(e,t,n){return r(e,t,n)>=0}},function(e,t,n){var r=n(7);e.exports=function(e,t,n){return r(e,t,n)<=0}},function(e,t,n){var r=n(3),i=n(50),a=i.ANY,s=n(8),o=n(51),l=n(49),c=n(77),u=n(79),p=n(78);e.exports=function(e,t,n,f){var d,h,m,y,v;switch(e=new r(e,f),t=new s(t,f),n){case">":d=l,h=u,m=c,y=">",v=">=";break;case"<":d=c,h=p,m=l,y="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,f))return!1;for(var g,b=function(){var n=t.set[E],r=null,s=null;return n.forEach(function(e){e.semver===a&&(e=new i(">=0.0.0")),r=r||e,s=s||e,d(e.semver,r.semver,f)?r=e:m(e.semver,s.semver,f)&&(s=e)}),r.operator===y||r.operator===v?{v:!1}:s.operator&&s.operator!==y||!h(e,s.semver)?s.operator===v&&m(e,s.semver)?{v:!1}:void 0:{v:!1}},E=0;E1&&void 0!==arguments[1]?arguments[1]:{},n=t.dirname,s=void 0===n?".":n,o=t.type;return mn().m(function t(){var n;return mn().w(function(t){for(;;)switch(t.n){case 0:return n=a,t.d(en((0,i.createDescriptor)(e,r().resolve(s),{type:o,alias:"programmatic item"})),1);case 1:return t.a(2,n(t.v))}},t)})()},t.createItemFromDescriptor=a,t.getItemDescriptor=function(e){if(null!=e&&e[s])return e._descriptor};var i=n(279);function a(e){return new o(e)}var s=Symbol.for("@babel/core@7 - ConfigItem"),o=wn(function e(t){xn(this,e),this._descriptor=void 0,this[s]=!0,this.value=void 0,this.options=void 0,this.dirname=void 0,this.name=void 0,this.file=void 0,this._descriptor=t,Object.defineProperty(this,"_descriptor",{enumerable:!1}),Object.defineProperty(this,s,{enumerable:!1}),this.value=this._descriptor.value,this.options=this._descriptor.options,this.dirname=this._descriptor.dirname,this.name=this._descriptor.name,this.file=this._descriptor.file?{request:this._descriptor.file.request,resolved:this._descriptor.file.resolved}:void 0,Object.freeze(this)});Object.freeze(o.prototype)},function(e,t,n){var r=mn().m(c),i=mn().m(d);function a(){var e=n(13);return a=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.assertSimpleType=y,t.makeStrongCache=p,t.makeStrongCacheSync=function(e){return l(p(e))},t.makeWeakCache=u,t.makeWeakCacheSync=function(e){return l(u(e))};var s=n(133),o=n(134),l=function(e){return a()(e).sync};function c(){return mn().w(function(e){for(;;)if(0===e.n)return e.a(2,!0)},r)}function u(e){return f(WeakMap,e)}function p(e){return f(Map,e)}function f(e,t){var n=new e,r=new e,i=new e;return mn().m(function e(a,l){var c,u,p,f,y,g,b,E;return mn().w(function(e){for(;;)switch(e.n){case 0:return e.d(en((0,s.isAsync)()),1);case 1:return c=e.v,u=c?r:n,e.d(en(mn().m(function e(t,n,r,i,a){var o,l,c;return mn().w(function(e){for(;;)switch(e.n){case 0:return e.d(en(d(n,i,a)),1);case 1:if(!(o=e.v).valid){e.n=2;break}return e.a(2,o);case 2:if(!t){e.n=5;break}return e.d(en(d(r,i,a)),3);case 3:if(!(l=e.v).valid){e.n=5;break}return e.d(en((0,s.waitFor)(l.value.promise)),4);case 4:return c=e.v,e.a(2,{valid:!0,value:c});case 5:return e.a(2,{valid:!1,value:null})}},e)})(c,u,i,a,l)),2);case 2:if(!(p=e.v).valid){e.n=3;break}return e.a(2,p.value);case 3:if(f=new m(l),y=t(a,f),!(0,o.isIterableIterator)(y)){e.n=5;break}return e.d(en((0,s.onFirstPause)(y,function(){g=function(e,t,n){var r=new v;return h(t,e,n,r),r}(f,i,a)})),4);case 4:E=e.v,e.n=6;break;case 5:E=y;case 6:return h(u,f,a,b=E),g&&(i.delete(a),g.release(b)),e.a(2,b)}},e)})}function d(e,t,n){var r,a,s,o,l,c,u;return mn().w(function(i){for(;;)switch(i.p=i.n){case 0:if(!(r=e.get(t))){i.n=8;break}a=gn(r),i.p=1,a.s();case 2:if((s=a.n()).done){i.n=5;break}return o=s.value,l=o.value,c=o.valid,i.d(en(c(n)),3);case 3:if(!i.v){i.n=4;break}return i.a(2,{valid:!0,value:l});case 4:i.n=2;break;case 5:i.n=7;break;case 6:i.p=6,u=i.v,a.e(u);case 7:return i.p=7,a.f(),i.f(7);case 8:return i.a(2,{valid:!1,value:null})}},i,null,[[1,6,7,8]])}function h(e,t,n,r){t.configured()||t.forever();var i=e.get(n);switch(t.deactivate(),t.mode()){case"forever":i=[{value:r,valid:c}],e.set(n,i);break;case"invalidate":i=[{value:r,valid:t.validator()}],e.set(n,i);break;case"valid":i?i.push({value:r,valid:t.validator()}):(i=[{value:r,valid:t.validator()}],e.set(n,i))}}var m=function(){return wn(function e(t){xn(this,e),this._active=!0,this._never=!1,this._forever=!1,this._invalidate=!1,this._configured=!1,this._pairs=[],this._data=void 0,this._data=t},[{key:"simple",value:function(){return function(e){function t(t){if("boolean"!=typeof t)return e.using(function(){return y(t())});t?e.forever():e.never()}return t.forever=function(){return e.forever()},t.never=function(){return e.never()},t.using=function(t){return e.using(function(){return y(t())})},t.invalidate=function(t){return e.invalidate(function(){return y(t())})},t}(this)}},{key:"mode",value:function(){return this._never?"never":this._forever?"forever":this._invalidate?"invalidate":"valid"}},{key:"forever",value:function(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never)throw new Error("Caching has already been configured with .never()");this._forever=!0,this._configured=!0}},{key:"never",value:function(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._forever)throw new Error("Caching has already been configured with .forever()");this._never=!0,this._configured=!0}},{key:"using",value:function(e){var t=this;if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never||this._forever)throw new Error("Caching has already been configured with .never or .forever()");this._configured=!0;var n=e(this._data),r=(0,s.maybeAsync)(e,"You appear to be using an async cache handler, but Babel has been called synchronously");return(0,s.isThenable)(n)?n.then(function(e){return t._pairs.push([e,r]),e}):(this._pairs.push([n,r]),n)}},{key:"invalidate",value:function(e){return this._invalidate=!0,this.using(e)}},{key:"validator",value:function(){var e=this._pairs;return mn().m(function t(n){var r,i,a,s,o,l,c,u;return mn().w(function(t){for(;;)switch(t.p=t.n){case 0:r=gn(e),t.p=1,r.s();case 2:if((i=r.n()).done){t.n=5;break}return a=an(i.value,2),s=a[0],o=a[1],l=s,t.d(en(o(n)),3);case 3:if(c=t.v,l===c){t.n=4;break}return t.a(2,!1);case 4:t.n=2;break;case 5:t.n=7;break;case 6:t.p=6,u=t.v,r.e(u);case 7:return t.p=7,r.f(),t.f(7);case 8:return t.a(2,!0)}},t,null,[[1,6,7,8]])})}},{key:"deactivate",value:function(){this._active=!1}},{key:"configured",value:function(){return this._configured}}])}();function y(e){if((0,s.isThenable)(e))throw new Error("You appear to be using an async cache handler, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously handle your caching logic.");if(null!=e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e)throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");return e}var v=function(){return wn(function e(){var t=this;xn(this,e),this.released=!1,this.promise=void 0,this._resolve=void 0,this.promise=new Promise(function(e){t._resolve=e})},[{key:"release",value:function(e){this.released=!0,this._resolve(e)}}])}()},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.assumptionsNames=void 0,t.checkNoUnwrappedItemOptionPairs=function(e,t,n,r){if(0!==t){var i=e[t-1],a=e[t];i.file&&void 0===i.options&&"object"==Sn(a.value)&&(r.message+='\n- Maybe you meant to use\n"'.concat(n,'s": [\n ["').concat(i.file.request,'", ').concat(JSON.stringify(a.value,void 0,2),"]\n]\nTo be a valid ").concat(n,", its name and options should be wrapped in a pair of brackets"))}},t.validate=function(e,t,n){try{return p({type:"root",source:e},t)}catch(e){var r=new a.default(e.message,n);throw e.code&&(r.code=e.code),r}};var r=n(470),i=n(293),a=n(140),s={cwd:i.assertString,root:i.assertString,rootMode:i.assertRootMode,configFile:i.assertConfigFileSearch,caller:i.assertCallerMetadata,filename:i.assertString,filenameRelative:i.assertString,code:i.assertBoolean,ast:i.assertBoolean,cloneInputAst:i.assertBoolean,envName:i.assertString},o={babelrc:i.assertBoolean,babelrcRoots:i.assertBabelrcSearch},l={extends:i.assertString,ignore:i.assertIgnoreList,only:i.assertIgnoreList,targets:i.assertTargets,browserslistConfigFile:i.assertConfigFileSearch,browserslistEnv:i.assertString},c={inputSourceMap:i.assertInputSourceMap,presets:i.assertPluginList,plugins:i.assertPluginList,passPerPreset:i.assertBoolean,assumptions:i.assertAssumptions,env:function(e,t){if("env"===e.parent.type)throw new Error("".concat((0,i.msg)(e)," is not allowed inside of another .env block"));var n=e.parent,r=(0,i.assertObject)(e,t);if(r)for(var a=0,s=Object.keys(r);a",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}},{key:"showSourceCode",value:function(e){var t=this;if(!this.source)return"";var n=this.source;null==e&&(e=r.isColorSupported),i&&e&&(n=i(n));var a,s,o=n.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,o.length),u=String(c).length;if(e){var p=r.createColors(!0),f=p.bold,d=p.gray,h=p.red;a=function(e){return f(h(e))},s=function(e){return d(e)}}else a=s=function(e){return e};return o.slice(l,c).map(function(e,n){var r=l+1+n,i=" "+(" "+r).slice(-u)+" | ";if(r===t.line){var o=s(i.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return a(">")+s(i)+e+"\n "+o+a("^")}return" "+s(i)+e}).join("\n")}},{key:"toString",value:function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}])}(Zt(Error));e.exports=a,a.default=a},function(e,t,n){var r,i,a=function(e){function t(e){var n;return xn(this,t),(n=ln(this,t,[nn({type:"document"},e)])).nodes||(n.nodes=[]),n}return fn(t,e),wn(t,[{key:"toResult",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r(new i,this,e).stringify()}}])}(n(24));a.registerLazyResult=function(e){r=e},a.registerProcessor=function(e){i=e},e.exports=a,a.default=a},function(e,t,n){var r=n(153),i=function(){return wn(function e(t,n,r){xn(this,e),this.processor=t,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0},[{key:"toString",value:function(){return this.css}},{key:"warn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new r(e,t);return this.messages.push(n),n}},{key:"warnings",value:function(){return this.messages.filter(function(e){return"warning"===e.type})}},{key:"content",get:function(){return this.css}}])}();e.exports=i,i.default=i},function(e,t,n){var r=n(24),i=n(320),a=n(55);function s(e,t){var n=new a(e,t),r=new i(n);try{r.parse()}catch(e){throw e}return r.root}e.exports=s,s.default=s,r.registerParse(s)},function(e,t,n){var r=n(24),i=function(e){function t(e){var n;return xn(this,t),(n=ln(this,t,[e])).type="atrule",n}return fn(t,e),wn(t,[{key:"append",value:function(){return this.proxyOf.nodes||(this.nodes=[]),sn(t,"append",this,3)(arguments)}},{key:"prepend",value:function(){return this.proxyOf.nodes||(this.nodes=[]),sn(t,"prepend",this,3)(arguments)}}])}(r);e.exports=i,i.default=i,r.registerAtRule(i)},function(e,t,n){var r=n(24),i=n(154),a=function(e){function t(e){var n;return xn(this,t),(n=ln(this,t,[e])).type="rule",n.nodes||(n.nodes=[]),n}return fn(t,e),wn(t,[{key:"selectors",get:function(){return i.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}])}(r);e.exports=a,a.default=a,r.registerRule(a)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImportInjector",{enumerable:!0,get:function(){return r.default}}),t.addDefault=function(e,t,n){return new r.default(e).addDefault(t,n)},t.addNamed=function(e,t,n,i){return new r.default(e).addNamed(t,n,i)},t.addNamespace=function(e,t,n){return new r.default(e).addNamespace(t,n)},t.addSideEffect=function(e,t,n){return new r.default(e).addSideEffect(t,n)},Object.defineProperty(t,"isModule",{enumerable:!0,get:function(){return i.default}});var r=n(447),i=n(250)},function(e,t){!function(e){var t=function(){return wn(function e(){var t=this;xn(this,e),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:function(){return t.should_skip=!0},remove:function(){return t.should_remove=!0},replace:function(e){return t.replacement=e}}},[{key:"replace",value:function(e,t,n,r){e&&(null!==n?e[t][n]=r:e[t]=r)}},{key:"remove",value:function(e,t,n){e&&(null!==n?e[t].splice(n,1):delete e[t])}}])}(),n=function(e){function t(e,n){var r;return xn(this,t),(r=ln(this,t)).enter=e,r.leave=n,r}return fn(t,e),wn(t,[{key:"visit",value:function(e,t,n,r){if(e){if(this.enter){var i=this.should_skip,a=this.should_remove,s=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,e,t,n,r),this.replacement&&(e=this.replacement,this.replace(t,n,r,e)),this.should_remove&&this.remove(t,n,r);var o=this.should_skip,l=this.should_remove;if(this.should_skip=i,this.should_remove=a,this.replacement=s,o)return e;if(l)return null}for(var c in e){var u=e[c];if("object"==Sn(u))if(Array.isArray(u))for(var p=0;p=8.0.0",t))}},{key:"addHelper",value:function(t){var n=this,i=this.declarations[t];if(i)return u(i);var a=this.get("helperGenerator");if(a){var s=a(t);if(s)return s}r().ensure(t,e);var o,l=this.declarations[t]=this.scope.generateUidIdentifier(t),c={},p=gn(r().getDependencies(t));try{for(p.s();!(o=p.n()).done;){var f=o.value;c[f]=this.addHelper(f)}}catch(m){p.e(m)}finally{p.f()}var d=r().get(t,function(e){return c[e]},l,Object.keys(this.scope.getAllBindings())),h=d.nodes;return d.globals.forEach(function(e){n.path.scope.hasBinding(e,!0)&&n.path.scope.rename(e)}),h.forEach(function(e){e._compact=!0}),this.path.unshiftContainer("body",h),this.path.get("body").forEach(function(e){-1!==h.indexOf(e.node)&&e.isVariableDeclaration()&&n.scope.registerDeclaration(e)}),l}},{key:"addTemplateObject",value:function(){throw new Error("This function has been moved into the template literal transform itself.")}},{key:"buildCodeFrameError",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:SyntaxError,r=e&&(e.loc||e._loc);if(!r&&e){var s={loc:null};(0,i().default)(e,f,this.scope,s);var o="This is an error on an internal node. Probably an internal error.";(r=s.loc)&&(o+=" Location has been estimated."),t+=" (".concat(o,")")}if(r){var l=this.opts.highlightCode,c=void 0===l||l;t+="\n"+(0,a().codeFrameColumns)(this.code,{start:{line:r.start.line,column:r.start.column+1},end:r.end&&r.start.line===r.end.line?{line:r.end.line,column:r.end.column+1}:void 0},{highlightCode:c})}return new n(t)}}])}();t.default=d},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=0,r=Object.keys(t);n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,s=a(n,t),o=t.sourceMaps?new r.default(t,n):null;return new i.default(s,o).generate(e)};var r=n(405),i=n(408);function a(e,t){var n,r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),recordAndTupleSyntaxType:null!=(n=t.recordAndTupleSyntaxType)?n:"hash",topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};r.decoratorsBeforeExport=t.decoratorsBeforeExport,r.jsescOption.json=t.jsonCompatibleStrings,r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||function(){return r.comments}):r.shouldPrintComment=r.shouldPrintComment||function(e){return r.comments||e.includes("@license")||e.includes("@preserve")},"auto"===r.compact&&(r.compact="string"==typeof e&&e.length>5e5,r.compact),r.compact&&(r.indent.adjustMultilineComment=!1);var i=r.auxiliaryCommentBefore,a=r.auxiliaryCommentAfter,s=r.shouldPrintComment;return i&&!s(i)&&(r.auxiliaryCommentBefore=void 0),a&&!s(a)&&(r.auxiliaryCommentAfter=void 0),r}t.CodeGenerator=function(){return wn(function e(t){xn(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=a(i,n),this._map=n.sourceMaps?new r.default(n,i):null},[{key:"generate",value:function(){return new i.default(this._format,this._map).generate(this._ast)}}])}()},function(e,t,n){var r=n(103),i=n(109);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},function(e,t,n){var r=n(19),i=n(11),a=n(6),s=n(29),o=n(15),l=n(188).CONFIGURABLE,c=n(189),u=n(107),p=u.enforce,f=u.get,d=String,h=Object.defineProperty,m=r("".slice),y=r("".replace),v=r([].join),g=o&&!i(function(){return 8!==h(function(){},"length",{value:8}).length}),b=String(String).split("String"),E=e.exports=function(e,t,n){"Symbol("===m(d(t),0,7)&&(t="["+y(d(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(o?h(e,"name",{value:t,configurable:!0}):e.name=t),g&&n&&s(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?o&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=p(e);return s(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=E(function(){return a(this)&&f(this).source||c(this)},"toString")},function(e,t,n){var r=n(11);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},function(e){e.exports=function(e){return null==e}},function(e,t,n){var r=n(5),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t,n){var r,i,a,s=n(190),o=n(5),l=n(20),c=n(108),u=n(29),p=n(64),f=n(117),d=n(203),h="Object already initialized",m=o.TypeError,y=o.WeakMap;if(s||p.state){var v=p.state||(p.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,r=function(e,t){if(v.has(e))throw new m(h);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},a=function(e){return v.has(e)}}else{var g=f("state");d[g]=!0,r=function(e,t){if(u(e,g))throw new m(h);return t.facade=e,c(e,g,t),t},i=function(e){return u(e,g)?e[g]:{}},a=function(e){return u(e,g)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(15),i=n(109),a=n(202);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(15),i=n(191),a=n(193),s=n(65),o=n(194),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",d="writable";t.f=r?a?function(e,t,n){if(s(e),t=o(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&d in n&&!n[d]){var r=u(e,t);r&&r[d]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:p in n?n[p]:r[p],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(s(e),t=o(t),s(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(196),i=n(6),a=n(111),s=n(112),o=Object;e.exports=s?function(e){return"symbol"==Sn(e)}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,o(e))}},function(e,t,n){var r=n(19);e.exports=r({}.isPrototypeOf)},function(e,t,n){var r=n(113);e.exports=r&&!Symbol.sham&&"symbol"==Sn(Symbol.iterator)},function(e,t,n){var r=n(197),i=n(11),a=n(5).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},function(e,t,n){var r=n(6),i=n(115),a=TypeError;e.exports=function(e){if(r(e))return e;throw new a(i(e)+" is not a function")}},function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},function(e,t,n){var r=n(201),i=n(64);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){var r=n(116),i=n(67),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,n){var r=n(220);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},function(e,t,n){n(44),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.node,r=e.parent,i=e.scope,w=e.id,P=arguments.length>1&&void 0!==arguments[1]&&arguments[1],A=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n.id){if(!m(r)&&!h(r,{kind:"method"})||r.computed&&!f(r.key)){if(b(r)){if(w=r.id,p(w)&&!P){var k=i.parent.getBinding(w.name);if(k&&k.constant&&i.getBinding(w.name)===k)return n.id=s(w),void(n.id[a]=!0)}}else if(l(r,{operator:"="}))w=r.left;else if(!w)return}else w=r.key;if(w&&f(w)?t=function(e){return d(e)?"null":y(e)?"_".concat(e.pattern,"_").concat(e.flags):g(e)?e.quasis.map(function(e){return e.value.raw}).join(""):void 0!==e.value?e.value+"":""}(w):w&&p(w)&&(t=w.name),void 0!==t&&(A||!u(n)||!/[\uD800-\uDFFF]/.test(t))){t=E(t);var C=o(t);return C[a]=!0,function(e,t,n,r){if(e.selfReference){if(!r.hasBinding(n.name)||r.hasGlobal(n.name)){if(!u(t))return;var i=S;t.generator&&(i=x);for(var a=i({FUNCTION:t,FUNCTION_ID:n,FUNCTION_KEY:r.generateUidIdentifier(n.name)}).expression,s=a.callee.body.body[0].params,o=0,l=function(e){var t=e.params.findIndex(function(e){return c(e)||v(e)});return-1===t?e.params.length:t}(t);o=0||(i[n]=e[n]);return i}(t,n);if(null!=r&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=i&&!(i instanceof RegExp)&&!1!==i)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=a&&"boolean"!=typeof a)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=s&&"boolean"!=typeof s)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===s&&(null!=r||null!=i))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:o,placeholderWhitelist:r||void 0,placeholderPattern:null==i?void 0:i,preserveComments:null==a?void 0:a,syntacticPlaceholders:null==s?void 0:s}};var n=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"]},function(e,t,n){var r=n(72)(),i=n(22),a=r&&i("%Object.defineProperty%",!0);if(a)try{a({},"a",{value:1})}catch(e){a=!1}var s=i("%SyntaxError%"),o=i("%TypeError%"),l=n(73);e.exports=function(e,t,n){if(!e||"object"!=Sn(e)&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=Sn(t))throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!l&&l(e,t);if(a)a(e,t,{configurable:null===c&&p?p.configurable:!c,enumerable:null===r&&p?p.enumerable:!r,value:n,writable:null===i&&p?p.writable:!i});else{if(!u&&(r||i||c))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},function(e,t,n){var r=n(236),i=n(238),a=n(41),s=n(38),o=n(73),l=s("Object.prototype.toString"),c=n(69)(),u="undefined"==typeof globalThis?n.g:globalThis,p=i(),f=s("String.prototype.slice"),d=Object.getPrototypeOf,h=s("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1?t:"Object"===t&&function(e){var t=!1;return r(m,function(n,r){if(!t)try{n(e),t=f(r,1)}catch(e){}}),t}(e)}return o?function(e){var t=!1;return r(m,function(n,r){if(!t)try{"$"+n(e)===r&&(t=f(r,1))}catch(e){}}),t}(e):null}},function(e,t,n){var r=Array.prototype.slice,i=n(124),a=Object.keys,s=a?function(e){return a(e)}:n(244),o=Object.keys;s.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?o(r.call(e)):o(e)})}else Object.keys=s;return Object.keys||s},e.exports=s},function(e){var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==Sn(e)&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},function(e){var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},function(e){e.exports=function(e){return e!=e}},function(e,t,n){var r=n(126);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},function(e){var t=/^[0-9]+$/,n=function(e,n){var r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:e":return a(e,n,c);case">=":return s(e,n,c);case"<":return o(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError("Invalid operator: ".concat(t))}}},function(e,t,n){var r=n(266),i=Symbol("max"),a=Symbol("length"),s=Symbol("lengthCalculator"),o=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),p=Symbol("lruList"),f=Symbol("cache"),d=Symbol("updateAgeOnGet"),h=function(){return 1},m=function(e,t,n){var r=e[f].get(t);if(r){var i=r.value;if(y(e,i)){if(g(e,r),!e[o])return}else n&&(e[d]&&(r.value.now=Date.now()),e[p].unshiftNode(r));return i.value}},y=function(e,t){if(!t||!t.maxAge&&!e[l])return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},v=function(e){if(e[a]>e[i])for(var t=e[p].tail;e[a]>e[i]&&null!==t;){var n=t.prev;g(e,t),t=n}},g=function(e,t){if(t){var n=t.value;e[c]&&e[c](n.key,n.value),e[a]-=n.length,e[f].delete(n.key),e[p].removeNode(t)}},b=wn(function e(t,n,r,i,a){xn(this,e),this.key=t,this.value=n,this.length=r,this.now=i,this.maxAge=a||0}),E=function(e,t,n,r){var i=n.value;y(e,i)&&(g(e,n),e[o]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=function(){return wn(function e(t){if(xn(this,e),"number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;var n=t.length||h;if(this[s]="function"!=typeof n?h:n,this[o]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[c]=t.dispose,this[u]=t.noDisposeOnSet||!1,this[d]=t.updateAgeOnGet||!1,this.reset()},[{key:"max",get:function(){return this[i]},set:function(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,v(this)}},{key:"allowStale",get:function(){return this[o]},set:function(e){this[o]=!!e}},{key:"maxAge",get:function(){return this[l]},set:function(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,v(this)}},{key:"lengthCalculator",get:function(){return this[s]},set:function(e){var t=this;"function"!=typeof e&&(e=h),e!==this[s]&&(this[s]=e,this[a]=0,this[p].forEach(function(e){e.length=t[s](e.value,e.key),t[a]+=e.length})),v(this)}},{key:"length",get:function(){return this[a]}},{key:"itemCount",get:function(){return this[p].length}},{key:"rforEach",value:function(e,t){t=t||this;for(var n=this[p].tail;null!==n;){var r=n.prev;E(this,e,n,t),n=r}}},{key:"forEach",value:function(e,t){t=t||this;for(var n=this[p].head;null!==n;){var r=n.next;E(this,e,n,t),n=r}}},{key:"keys",value:function(){return this[p].toArray().map(function(e){return e.key})}},{key:"values",value:function(){return this[p].toArray().map(function(e){return e.value})}},{key:"reset",value:function(){var e=this;this[c]&&this[p]&&this[p].length&&this[p].forEach(function(t){return e[c](t.key,t.value)}),this[f]=new Map,this[p]=new r,this[a]=0}},{key:"dump",value:function(){var e=this;return this[p].map(function(t){return!y(e,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}}).toArray().filter(function(e){return e})}},{key:"dumpLru",value:function(){return this[p]}},{key:"set",value:function(e,t,n){if((n=n||this[l])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");var r=n?Date.now():0,o=this[s](t,e);if(this[f].has(e)){if(o>this[i])return g(this,this[f].get(e)),!1;var d=this[f].get(e).value;return this[c]&&(this[u]||this[c](e,d.value)),d.now=r,d.maxAge=n,d.value=t,this[a]+=o-d.length,d.length=o,this.get(e),v(this),!0}var h=new b(e,t,o,r,n);return h.length>this[i]?(this[c]&&this[c](e,t),!1):(this[a]+=h.length,this[p].unshift(h),this[f].set(e,this[p].head),v(this),!0)}},{key:"has",value:function(e){if(!this[f].has(e))return!1;var t=this[f].get(e).value;return!y(this,t)}},{key:"get",value:function(e){return m(this,e,!0)}},{key:"peek",value:function(e){return m(this,e,!1)}},{key:"pop",value:function(){var e=this[p].tail;return e?(g(this,e),e.value):null}},{key:"del",value:function(e){g(this,this[f].get(e))}},{key:"load",value:function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{var a=i-t;a>0&&this.set(r.k,r.v,a)}}}},{key:"prune",value:function(){var e=this;this[f].forEach(function(t,n){return m(e,n,!1)})}}])}()},function(e,t,n){function r(){var e=n(13);return r=function(){return e},e}function i(e,t,n,r,i,a,s){try{var o=e[a](s),l=o.value}catch(e){return void n(e)}o.done?t(l):Promise.resolve(l).then(r,i)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var s=e.apply(t,n);function o(e){i(s,r,a,o,l,"next",e)}function l(e){i(s,r,a,o,l,"throw",e)}o(void 0)})}}Object.defineProperty(t,"__esModule",{value:!0}),t.forwardAsync=function(e,t){var n=r()(e);return c(function(e){var r=n[e];return t(r)})},t.isAsync=void 0,t.isThenable=u,t.maybeAsync=function(e,t){return r()({sync:function(){for(var n=arguments.length,r=new Array(n),i=0;i3&&void 0!==arguments[3]?arguments[3]:(0,r.finalize)([]);this.key=void 0,this.manipulateOptions=void 0,this.post=void 0,this.pre=void 0,this.visitor=void 0,this.parserOverride=void 0,this.generatorOverride=void 0,this.options=void 0,this.externalDependencies=void 0,this.key=t.name||i,this.manipulateOptions=t.manipulateOptions,this.post=t.post,this.pre=t.pre,this.visitor=t.visitor||{},this.parserOverride=t.parserOverride,this.generatorOverride=t.generatorOverride,this.options=n,this.externalDependencies=a})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=function(e){return Object.freeze(e)},t.flattenToSet=function(e){for(var t=new Set,n=[e];n.length>0;){var r,i=gn(n.pop());try{for(i.s();!(r=i.n()).done;){var a=r.value;Array.isArray(a)?n.push(a):t.add(a)}}catch(s){i.e(s)}finally{i.f()}}return t}},function(e){function t(e){this.name="BrowserslistError",this.message=e,this.browserslist=!0,Error.captureStackTrace&&Error.captureStackTrace(this,t)}t.prototype=Error.prototype,e.exports=t},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getHighestUnreleased=function(e,t,n){return c(e,t,n)===e?t:e},t.getLowestImplementedVersion=function(e,t){var n=e[t];return n||"android"!==t?n:e.chrome},t.getLowestUnreleased=c,t.isUnreleasedVersion=function(e,t){var n=a.unreleasedLabels[t];return!!n&&n===e.toString().toLowerCase()},t.semverMin=l,t.semverify=function(e){if("string"==typeof e&&r.valid(e))return e;o.invariant("number"==typeof e||"string"==typeof e&&s.test(e),"'".concat(e,"' is not a valid version")),e=e.toString();for(var t=0,n=0;(t=e.indexOf(".",t+1))>0;)n++;return e+".0".repeat(2-n)};var r=n(23),i=n(289),a=n(139),s=/^(\d+|\d+.\d+)$/,o=new i.OptionValidator("@babel/helper-compilation-targets");function l(e,t){return e&&r.lt(e,t)?e:t}function c(e,t,n){var r=a.unreleasedLabels[n];return e===r?t:t===r?e:l(e,t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.unreleasedLabels=t.browserNameMap=void 0,t.unreleasedLabels={safari:"tp"},t.browserNameMap={and_chr:"chrome",and_ff:"firefox",android:"android",chrome:"chrome",edge:"edge",firefox:"firefox",ie:"ie",ie_mob:"ie",ios_saf:"ios",node:"node",deno:"deno",op_mob:"opera_mobile",opera:"opera",safari:"safari",samsung:"samsung"}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(39),i=function(e){function t(e,n){var i;return xn(this,t),i=ln(this,t,[e]),(0,r.expectedError)(cn(i)),n&&(0,r.injectVirtualStackFrame)(cn(i),n),i}return fn(t,e),wn(t)}(Zt(Error));t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(33),i=n(299),a=n(300),s=n(1),o=s.types,l=o.assignmentExpression,c=o.booleanLiteral,u=o.callExpression,p=o.cloneNode,f=o.identifier,d=o.memberExpression,h=o.sequenceExpression,m=o.stringLiteral,y=o.thisExpression,v=n(33);function g(e,t,n,r){e=p(e);var i=t||r?e:d(e,f("prototype"));return u(n.addHelper("getPrototypeOf"),[i])}t.environmentVisitor=v.default,t.skipAllButComputedKey=v.skipAllButComputedKey;var S=s.traverse.visitors.merge([r.default,{Super:function(e,t){var n=e.node,r=e.parentPath;r.isMemberExpression({object:n})&&t.handle(r)}}]),x=s.traverse.visitors.merge([r.default,{Scopable:function(e,t){var n=t.refName,r=e.scope.getOwnBinding(n);r&&r.identifier.name===n&&e.scope.rename(n)}}]),T={memoise:function(e,t){var n=e.scope,r=e.node,i=r.computed,a=r.property;if(i){var s=n.maybeGenerateMemoised(a);s&&this.memoiser.set(a,s,t)}},prop:function(e){var t=e.node,n=t.computed,r=t.property;return this.memoiser.has(r)?p(this.memoiser.get(r)):n?p(r):m(r.name)},get:function(e){return this._get(e,this._getThisRefs())},_get:function(e,t){var n=g(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return u(this.file.addHelper("get"),[t.memo?h([t.memo,n]):n,this.prop(e),t.this])},_getThisRefs:function(){if(!this.isDerivedConstructor)return{this:y()};var e=this.scope.generateDeclaredUidIdentifier("thisSuper");return{memo:l("=",e,y()),this:p(e)}},set:function(e,t){var n=this._getThisRefs(),r=g(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return u(this.file.addHelper("set"),[n.memo?h([n.memo,r]):r,this.prop(e),t,n.this,c(e.isInStrictMode())])},destructureSet:function(e){throw e.buildCodeFrameError("Destructuring to a super field is not supported yet.")},call:function(e,t){var n=this._getThisRefs();return(0,a.default)(this._get(e,n),p(n.this),t,!1)},optionalCall:function(e,t){var n=this._getThisRefs();return(0,a.default)(this._get(e,n),p(n.this),t,!0)},delete:function(e){return e.node.computed?h([u(this.file.addHelper("toPropertyKey"),[p(e.node.property)]),s.template.expression.ast(b||(b=hn(["\n function () { throw new ReferenceError(\"'delete super[expr]' is invalid\"); }()\n "])))]):s.template.expression.ast(E||(E=hn(["\n function () { throw new ReferenceError(\"'delete super.prop' is invalid\"); }()\n "])))}},w=Object.assign({},T,{prop:function(e){var t=e.node.property;return this.memoiser.has(t)?p(this.memoiser.get(t)):p(t)},get:function(e){var t,n,r,i=this.isStatic,a=this.getSuperRef,s=e.node.computed,o=this.prop(e);return t=i?null!=(n=a())?n:d(f("Function"),f("prototype")):d(null!=(r=a())?r:f("Object"),f("prototype")),d(t,o,s)},set:function(e,t){var n=e.node.computed,r=this.prop(e);return l("=",d(y(),r,n),t)},destructureSet:function(e){var t=e.node.computed,n=this.prop(e);return d(y(),n,t)},call:function(e,t){return(0,a.default)(this.get(e),y(),t,!1)},optionalCall:function(e,t){return(0,a.default)(this.get(e),y(),t,!0)}});t.default=function(){return wn(function e(t){var n;xn(this,e);var r=t.methodPath;this.methodPath=r,this.isDerivedConstructor=r.isClassMethod({kind:"constructor"})&&!!t.superRef,this.isStatic=r.isObjectMethod()||r.node.static||(null==r.isStaticBlock?void 0:r.isStaticBlock()),this.isPrivateMethod=r.isPrivate()&&r.isMethod(),this.file=t.file,this.constantSuper=null!=(n=t.constantSuper)?n:t.isLoose,this.opts=t},[{key:"getObjectRef",value:function(){return p(this.opts.objectRef||this.opts.getObjectRef())}},{key:"getSuperRef",value:function(){return this.opts.superRef?p(this.opts.superRef):this.opts.getSuperRef?p(this.opts.getSuperRef()):void 0}},{key:"replace",value:function(){this.opts.refToPreserve&&this.methodPath.traverse(x,{refName:this.opts.refToPreserve.name});var e=this.constantSuper?w:T;(0,i.default)(this.methodPath,S,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:e.get},e))}}])}()},function(e,t,n){e.exports=n(503)},function(e,t,n){ /** * @vue/compiler-dom v3.4.15 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ Object.defineProperty(t,"__esModule",{value:!0});var r=n(309),i=n(142),a=Symbol(""),s=Symbol(""),o=Symbol(""),l=Symbol(""),c=Symbol(""),u=Symbol(""),p=Symbol(""),f=Symbol(""),d=Symbol(""),h=Symbol("");r.registerRuntimeHelpers(rn(rn(rn(rn(rn(rn(rn(rn(rn(rn({},a,"vModelRadio"),s,"vModelCheckbox"),o,"vModelText"),l,"vModelSelect"),c,"vModelDynamic"),u,"withModifiers"),p,"withKeys"),f,"vShow"),d,"Transition"),h,"TransitionGroup"));var m={parseMode:"html",isVoidTag:i.isVoidTag,isNativeTag:function(e){return i.isHTMLTag(e)||i.isSVGTag(e)||i.isMathMLTag(e)},isPreTag:function(e){return"pre"===e},decodeEntities:void 0,isBuiltInComponent:function(e){return"Transition"===e||"transition"===e?d:"TransitionGroup"===e||"transition-group"===e?h:void 0},getNamespace:function(e,t,n){var r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(function(e){return 6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)})&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},y=function(e){1===e.type&&e.props.forEach(function(t,n){6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:r.createSimpleExpression("style",!0,t.loc),exp:v(t.value.content,t.loc),modifiers:[],loc:t.loc})})},v=function(e,t){var n=i.parseStringStyle(e);return r.createSimpleExpression(JSON.stringify(n),!1,t,3)};function g(e,t){return r.createCompilerError(e,t,b)}var b={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on ,