gemi 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.js +1 -1
- package/dist/bin/gemi.js +1 -1
- package/dist/bin/gemi.js.map +1 -1
- package/dist/broadcasting/index.js +1 -1
- package/dist/bun/plugin.js +1 -1
- package/dist/bun/preload.js +1 -1
- package/dist/{chunk-5kx4hw7c.js → chunk-0r110r6m.js} +3 -3
- package/dist/{chunk-5kx4hw7c.js.map → chunk-0r110r6m.js.map} +1 -1
- package/dist/{chunk-ytr22fm4.js → chunk-1nkxmecw.js} +3 -3
- package/dist/{chunk-ytr22fm4.js.map → chunk-1nkxmecw.js.map} +1 -1
- package/dist/{chunk-20376aj6.js → chunk-27tkdqp6.js} +4 -4
- package/dist/{chunk-20376aj6.js.map → chunk-27tkdqp6.js.map} +1 -1
- package/dist/{chunk-3xqyzegw.js → chunk-2a4ze3n3.js} +2 -2
- package/dist/{chunk-3xqyzegw.js.map → chunk-2a4ze3n3.js.map} +1 -1
- package/dist/{chunk-sdj112nj.js → chunk-2cew23ww.js} +3 -3
- package/dist/{chunk-sdj112nj.js.map → chunk-2cew23ww.js.map} +1 -1
- package/dist/{chunk-nhyc69tx.js → chunk-2pazt3hc.js} +2 -2
- package/dist/{chunk-nhyc69tx.js.map → chunk-2pazt3hc.js.map} +1 -1
- package/dist/{chunk-nfsdbjr5.js → chunk-396qq8ge.js} +1 -1
- package/dist/{chunk-8b461343.js → chunk-4k7p344e.js} +2 -2
- package/dist/{chunk-8b461343.js.map → chunk-4k7p344e.js.map} +1 -1
- package/dist/{chunk-whj1a3vr.js → chunk-4z53shav.js} +2 -2
- package/dist/{chunk-whj1a3vr.js.map → chunk-4z53shav.js.map} +1 -1
- package/dist/{chunk-q9z58372.js → chunk-63gmzy5r.js} +2 -2
- package/dist/{chunk-q9z58372.js.map → chunk-63gmzy5r.js.map} +2 -2
- package/dist/{chunk-jvcbdxtq.js → chunk-6av6dnxx.js} +2 -2
- package/dist/{chunk-jvcbdxtq.js.map → chunk-6av6dnxx.js.map} +1 -1
- package/dist/{chunk-ngnrytfh.js → chunk-7bggj8g7.js} +3 -3
- package/dist/{chunk-ngnrytfh.js.map → chunk-7bggj8g7.js.map} +1 -1
- package/dist/{chunk-x2cq1qp8.js → chunk-8jns0zmx.js} +2 -2
- package/dist/{chunk-x2cq1qp8.js.map → chunk-8jns0zmx.js.map} +1 -1
- package/dist/{chunk-knrx23te.js → chunk-a3bmbfn3.js} +2 -2
- package/dist/{chunk-knrx23te.js.map → chunk-a3bmbfn3.js.map} +1 -1
- package/dist/chunk-atv6nybp.js +4 -0
- package/dist/{chunk-fk9xtngd.js.map → chunk-atv6nybp.js.map} +4 -4
- package/dist/{chunk-fvtfwssb.js → chunk-b0ca3dzf.js} +2 -2
- package/dist/{chunk-fvtfwssb.js.map → chunk-b0ca3dzf.js.map} +1 -1
- package/dist/{chunk-kkdtznm5.js → chunk-cmnhs4mh.js} +3 -3
- package/dist/{chunk-kkdtznm5.js.map → chunk-cmnhs4mh.js.map} +1 -1
- package/dist/{chunk-6gtmkbh0.js → chunk-f18weffa.js} +2 -2
- package/dist/{chunk-6gtmkbh0.js.map → chunk-f18weffa.js.map} +1 -1
- package/dist/{chunk-9s3te5pa.js → chunk-jrnbyhgq.js} +4 -4
- package/dist/{chunk-9s3te5pa.js.map → chunk-jrnbyhgq.js.map} +1 -1
- package/dist/{chunk-q8haepmm.js → chunk-jxpwexpz.js} +16 -16
- package/dist/{chunk-q8haepmm.js.map → chunk-jxpwexpz.js.map} +5 -4
- package/dist/{chunk-sdx8r2qb.js → chunk-m0earq80.js} +2 -2
- package/dist/{chunk-sdx8r2qb.js.map → chunk-m0earq80.js.map} +1 -1
- package/dist/{chunk-errq965d.js → chunk-mped4eh6.js} +3 -3
- package/dist/{chunk-errq965d.js.map → chunk-mped4eh6.js.map} +1 -1
- package/dist/{chunk-mfwbdztp.js → chunk-n4wrg0sn.js} +2 -2
- package/dist/{chunk-drbqadx7.js.map → chunk-n4wrg0sn.js.map} +1 -1
- package/dist/{chunk-ty3q916e.js → chunk-p5r0t9jh.js} +3 -3
- package/dist/{chunk-ty3q916e.js.map → chunk-p5r0t9jh.js.map} +1 -1
- package/dist/chunk-pf4r36w2.js +5 -0
- package/dist/{chunk-tatd75jn.js.map → chunk-pf4r36w2.js.map} +1 -1
- package/dist/{chunk-m359awjw.js → chunk-ppn0j67g.js} +2 -2
- package/dist/{chunk-m359awjw.js.map → chunk-ppn0j67g.js.map} +1 -1
- package/dist/{chunk-s49529x2.js → chunk-snp18f2m.js} +3 -3
- package/dist/{chunk-s49529x2.js.map → chunk-snp18f2m.js.map} +1 -1
- package/dist/{chunk-nx8t65g3.js → chunk-sv4v623e.js} +3 -3
- package/dist/{chunk-nx8t65g3.js.map → chunk-sv4v623e.js.map} +1 -1
- package/dist/{chunk-cbvq4keh.js → chunk-tjzbw6eg.js} +2 -2
- package/dist/{chunk-cbvq4keh.js.map → chunk-tjzbw6eg.js.map} +1 -1
- package/dist/{chunk-7yrykpak.js → chunk-tvp3xgfq.js} +2 -2
- package/dist/{chunk-7yrykpak.js.map → chunk-tvp3xgfq.js.map} +1 -1
- package/dist/{chunk-9cw39se2.js → chunk-tyjhatbq.js} +2 -2
- package/dist/{chunk-9cw39se2.js.map → chunk-tyjhatbq.js.map} +1 -1
- package/dist/{chunk-25d4feyv.js → chunk-v0qh5dqv.js} +51 -24
- package/dist/{chunk-25d4feyv.js.map → chunk-v0qh5dqv.js.map} +9 -7
- package/dist/{chunk-wrp2v923.js → chunk-vh6dnbty.js} +2 -2
- package/dist/{chunk-wrp2v923.js.map → chunk-vh6dnbty.js.map} +1 -1
- package/dist/{chunk-w7czqgx2.js → chunk-vpqq7v9e.js} +2 -2
- package/dist/{chunk-w7czqgx2.js.map → chunk-vpqq7v9e.js.map} +1 -1
- package/dist/{chunk-32ct42e2.js → chunk-w54fj10r.js} +1 -1
- package/dist/{chunk-ywhazhqt.js → chunk-wed042aw.js} +2 -2
- package/dist/{chunk-ywhazhqt.js.map → chunk-wed042aw.js.map} +1 -1
- package/dist/{chunk-gv4v6qsg.js → chunk-wjhh4pf0.js} +3 -3
- package/dist/{chunk-gv4v6qsg.js.map → chunk-wjhh4pf0.js.map} +1 -1
- package/dist/{chunk-qy3aczt9.js → chunk-wtydwxgg.js} +3 -3
- package/dist/{chunk-qy3aczt9.js.map → chunk-wtydwxgg.js.map} +1 -1
- package/dist/{chunk-bsfbba90.js → chunk-ww5vyb4s.js} +2 -2
- package/dist/{chunk-bsfbba90.js.map → chunk-ww5vyb4s.js.map} +1 -1
- package/dist/{chunk-h509r9s3.js → chunk-xdk6y558.js} +2 -2
- package/dist/{chunk-h509r9s3.js.map → chunk-xdk6y558.js.map} +1 -1
- package/dist/{chunk-9r2k5ykk.js → chunk-xkrthw08.js} +3 -3
- package/dist/{chunk-9r2k5ykk.js.map → chunk-xkrthw08.js.map} +1 -1
- package/dist/{chunk-87keq057.js → chunk-y4q11zr2.js} +2 -2
- package/dist/{chunk-87keq057.js.map → chunk-y4q11zr2.js.map} +1 -1
- package/dist/chunk-yyn0qk1w.js +4 -0
- package/dist/{chunk-mfwbdztp.js.map → chunk-yyn0qk1w.js.map} +1 -1
- package/dist/config/index.js +1 -1
- package/dist/email/index.js +2 -2
- package/dist/email/index.js.map +1 -1
- package/dist/facades/RateLimiter.d.ts +23 -0
- package/dist/facades/RateLimiter.d.ts.map +1 -0
- package/dist/facades/index.d.ts +1 -0
- package/dist/facades/index.d.ts.map +1 -1
- package/dist/facades/index.js +2 -2
- package/dist/facades/index.js.map +1 -1
- package/dist/http/RateLimitMiddleware.d.ts +58 -2
- package/dist/http/RateLimitMiddleware.d.ts.map +1 -1
- package/dist/http/index.d.ts +1 -1
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +2 -2
- package/dist/http/index.js.map +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/kernel/index.js +2 -2
- package/dist/kernel/index.js.map +2 -2
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +1 -1
- package/dist/services/file-storage/drivers/AzureBlobDriver.d.ts.map +1 -1
- package/dist/services/index.d.ts +6 -3
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +2 -2
- package/dist/services/index.js.map +1 -1
- package/dist/services/rate-limiter/RateLimiterServiceContainer.d.ts +17 -1
- package/dist/services/rate-limiter/RateLimiterServiceContainer.d.ts.map +1 -1
- package/dist/services/rate-limiter/RateLimiterServiceProvider.d.ts +8 -0
- package/dist/services/rate-limiter/RateLimiterServiceProvider.d.ts.map +1 -1
- package/dist/services/rate-limiter/drivers/InMemoryRateLimiterDriver.d.ts +31 -5
- package/dist/services/rate-limiter/drivers/InMemoryRateLimiterDriver.d.ts.map +1 -1
- package/dist/services/rate-limiter/drivers/RateLimiterDriver.d.ts +11 -1
- package/dist/services/rate-limiter/drivers/RateLimiterDriver.d.ts.map +1 -1
- package/dist/services/rate-limiter/drivers/RedisRateLimiterDriver.d.ts +59 -0
- package/dist/services/rate-limiter/drivers/RedisRateLimiterDriver.d.ts.map +1 -0
- package/dist/services/rate-limiter/slidingWindow.d.ts +55 -0
- package/dist/services/rate-limiter/slidingWindow.d.ts.map +1 -0
- package/dist/services/rate-limiter/types.d.ts +35 -1
- package/dist/services/rate-limiter/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-drbqadx7.js +0 -4
- package/dist/chunk-fk9xtngd.js +0 -4
- package/dist/chunk-tatd75jn.js +0 -5
- /package/dist/{chunk-nfsdbjr5.js.map → chunk-396qq8ge.js.map} +0 -0
- /package/dist/{chunk-32ct42e2.js.map → chunk-w54fj10r.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{c as b1,d as N1,e as C5,f as R1}from"./chunk-3xqyzegw.js";import{Jb as m}from"./chunk-gv4v6qsg.js";import{bc as OZ,cc as y,ec as W8}from"./chunk-6gtmkbh0.js";var U6=y((n1,Q6)=>{(function(Q,Z){if(typeof n1==="object"&&typeof Q6==="object")Q6.exports=Z();else if(typeof define==="function"&&define.amd)define([],Z);else if(typeof n1==="object")n1.esprima=Z();else Q.esprima=Z()})(n1,function(){return function(U){var Q={};function Z($){if(Q[$])return Q[$].exports;var H=Q[$]={exports:{},id:$,loaded:!1};return U[$].call(H.exports,H,H.exports,Z),H.loaded=!0,H.exports}return Z.m=U,Z.c=Q,Z.p="",Z(0)}([function(U,Q,Z){Object.defineProperty(Q,"__esModule",{value:!0});var $=Z(1),H=Z(3),D=Z(8),X=Z(15);function Y(W,z,K){var J=null,G=function(P,g){if(K)K(P,g);if(J)J.visit(P,g)},M=typeof K==="function"?G:null,O=!1;if(z){O=typeof z.comment==="boolean"&&z.comment;var V=typeof z.attachComment==="boolean"&&z.attachComment;if(O||V)J=new $.CommentHandler,J.attach=V,z.comment=!0,M=G}var I=!1;if(z&&typeof z.sourceType==="string")I=z.sourceType==="module";var F;if(z&&typeof z.jsx==="boolean"&&z.jsx)F=new H.JSXParser(W,z,M);else F=new D.Parser(W,z,M);var C=I?F.parseModule():F.parseScript(),N=C;if(O&&J)N.comments=J.comments;if(F.config.tokens)N.tokens=F.tokens;if(F.config.tolerant)N.errors=F.errorHandler.errors;return N}Q.parse=Y;function j(W,z,K){var J=z||{};return J.sourceType="module",Y(W,J,K)}Q.parseModule=j;function E(W,z,K){var J=z||{};return J.sourceType="script",Y(W,J,K)}Q.parseScript=E;function q(W,z,K){var J=new X.Tokenizer(W,z),G;G=[];try{while(!0){var M=J.getNextToken();if(!M)break;if(K)M=K(M);G.push(M)}}catch(O){J.errorHandler.tolerate(O)}if(J.errorHandler.tolerant)G.errors=J.errors();return G}Q.tokenize=q;var B=Z(2);Q.Syntax=B.Syntax,Q.version="4.0.1"},function(U,Q,Z){Object.defineProperty(Q,"__esModule",{value:!0});var $=Z(2),H=function(){function D(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return D.prototype.insertInnerComments=function(X,Y){if(X.type===$.Syntax.BlockStatement&&X.body.length===0){var j=[];for(var E=this.leading.length-1;E>=0;--E){var q=this.leading[E];if(Y.end.offset>=q.start)j.unshift(q.comment),this.leading.splice(E,1),this.trailing.splice(E,1)}if(j.length)X.innerComments=j}},D.prototype.findTrailingComments=function(X){var Y=[];if(this.trailing.length>0){for(var j=this.trailing.length-1;j>=0;--j){var E=this.trailing[j];if(E.start>=X.end.offset)Y.unshift(E.comment)}return this.trailing.length=0,Y}var q=this.stack[this.stack.length-1];if(q&&q.node.trailingComments){var B=q.node.trailingComments[0];if(B&&B.range[0]>=X.end.offset)Y=q.node.trailingComments,delete q.node.trailingComments}return Y},D.prototype.findLeadingComments=function(X){var Y=[],j;while(this.stack.length>0){var E=this.stack[this.stack.length-1];if(E&&E.start>=X.start.offset)j=E.node,this.stack.pop();else break}if(j){var q=j.leadingComments?j.leadingComments.length:0;for(var B=q-1;B>=0;--B){var W=j.leadingComments[B];if(W.range[1]<=X.start.offset)Y.unshift(W),j.leadingComments.splice(B,1)}if(j.leadingComments&&j.leadingComments.length===0)delete j.leadingComments;return Y}for(var B=this.leading.length-1;B>=0;--B){var E=this.leading[B];if(E.start<=X.start.offset)Y.unshift(E.comment),this.leading.splice(B,1)}return Y},D.prototype.visitNode=function(X,Y){if(X.type===$.Syntax.Program&&X.body.length>0)return;this.insertInnerComments(X,Y);var j=this.findTrailingComments(Y),E=this.findLeadingComments(Y);if(E.length>0)X.leadingComments=E;if(j.length>0)X.trailingComments=j;this.stack.push({node:X,start:Y.start.offset})},D.prototype.visitComment=function(X,Y){var j=X.type[0]==="L"?"Line":"Block",E={type:j,value:X.value};if(X.range)E.range=X.range;if(X.loc)E.loc=X.loc;if(this.comments.push(E),this.attach){var q={comment:{type:j,value:X.value,range:[Y.start.offset,Y.end.offset]},start:Y.start.offset};if(X.loc)q.comment.loc=X.loc;X.type=j,this.leading.push(q),this.trailing.push(q)}},D.prototype.visit=function(X,Y){if(X.type==="LineComment")this.visitComment(X,Y);else if(X.type==="BlockComment")this.visitComment(X,Y);else if(this.attach)this.visitNode(X,Y)},D}();Q.CommentHandler=H},function(U,Q){Object.defineProperty(Q,"__esModule",{value:!0}),Q.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(U,Q,Z){var $=this&&this.__extends||function(){var z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,J){K.__proto__=J}||function(K,J){for(var G in J)if(J.hasOwnProperty(G))K[G]=J[G]};return function(K,J){z(K,J);function G(){this.constructor=K}K.prototype=J===null?Object.create(J):(G.prototype=J.prototype,new G)}}();Object.defineProperty(Q,"__esModule",{value:!0});var H=Z(4),D=Z(5),X=Z(6),Y=Z(7),j=Z(8),E=Z(13),q=Z(14);E.TokenName[100]="JSXIdentifier",E.TokenName[101]="JSXText";function B(z){var K;switch(z.type){case X.JSXSyntax.JSXIdentifier:var J=z;K=J.name;break;case X.JSXSyntax.JSXNamespacedName:var G=z;K=B(G.namespace)+":"+B(G.name);break;case X.JSXSyntax.JSXMemberExpression:var M=z;K=B(M.object)+"."+B(M.property);break;default:break}return K}var W=function(z){$(K,z);function K(J,G,M){return z.call(this,J,G,M)||this}return K.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():z.prototype.parsePrimaryExpression.call(this)},K.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},K.prototype.finishJSX=function(){this.nextToken()},K.prototype.reenterJSX=function(){if(this.startJSX(),this.expectJSX("}"),this.config.tokens)this.tokens.pop()},K.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},K.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},K.prototype.scanXHTMLEntity=function(J){var G="&",M=!0,O=!1,V=!1,I=!1;while(!this.scanner.eof()&&M&&!O){var F=this.scanner.source[this.scanner.index];if(F===J)break;if(O=F===";",G+=F,++this.scanner.index,!O)switch(G.length){case 2:V=F==="#";break;case 3:if(V)I=F==="x",M=I||H.Character.isDecimalDigit(F.charCodeAt(0)),V=V&&!I;break;default:M=M&&!(V&&!H.Character.isDecimalDigit(F.charCodeAt(0))),M=M&&!(I&&!H.Character.isHexDigit(F.charCodeAt(0)));break}}if(M&&O&&G.length>2){var C=G.substr(1,G.length-2);if(V&&C.length>1)G=String.fromCharCode(parseInt(C.substr(1),10));else if(I&&C.length>2)G=String.fromCharCode(parseInt("0"+C.substr(1),16));else if(!V&&!I&&q.XHTMLEntities[C])G=q.XHTMLEntities[C]}return G},K.prototype.lexJSX=function(){var J=this.scanner.source.charCodeAt(this.scanner.index);if(J===60||J===62||J===47||J===58||J===61||J===123||J===125){var G=this.scanner.source[this.scanner.index++];return{type:7,value:G,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(J===34||J===39){var M=this.scanner.index,O=this.scanner.source[this.scanner.index++],V="";while(!this.scanner.eof()){var I=this.scanner.source[this.scanner.index++];if(I===O)break;else if(I==="&")V+=this.scanXHTMLEntity(O);else V+=I}return{type:8,value:V,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:M,end:this.scanner.index}}if(J===46){var F=this.scanner.source.charCodeAt(this.scanner.index+1),C=this.scanner.source.charCodeAt(this.scanner.index+2),G=F===46&&C===46?"...":".",M=this.scanner.index;return this.scanner.index+=G.length,{type:7,value:G,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:M,end:this.scanner.index}}if(J===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(H.Character.isIdentifierStart(J)&&J!==92){var M=this.scanner.index;++this.scanner.index;while(!this.scanner.eof()){var I=this.scanner.source.charCodeAt(this.scanner.index);if(H.Character.isIdentifierPart(I)&&I!==92)++this.scanner.index;else if(I===45)++this.scanner.index;else break}var N=this.scanner.source.slice(M,this.scanner.index);return{type:100,value:N,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:M,end:this.scanner.index}}return this.scanner.lex()},K.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var J=this.lexJSX();if(this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens)this.tokens.push(this.convertToken(J));return J},K.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var J=this.scanner.index,G="";while(!this.scanner.eof()){var M=this.scanner.source[this.scanner.index];if(M==="{"||M==="<")break;if(++this.scanner.index,G+=M,H.Character.isLineTerminator(M.charCodeAt(0))){if(++this.scanner.lineNumber,M==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
2
|
+
import{c as b1,d as N1,e as C5,f as R1}from"./chunk-2a4ze3n3.js";import{Nb as m}from"./chunk-wjhh4pf0.js";import{fc as OZ,gc as y,ic as W8}from"./chunk-f18weffa.js";var U6=y((n1,Q6)=>{(function(Q,Z){if(typeof n1==="object"&&typeof Q6==="object")Q6.exports=Z();else if(typeof define==="function"&&define.amd)define([],Z);else if(typeof n1==="object")n1.esprima=Z();else Q.esprima=Z()})(n1,function(){return function(U){var Q={};function Z($){if(Q[$])return Q[$].exports;var H=Q[$]={exports:{},id:$,loaded:!1};return U[$].call(H.exports,H,H.exports,Z),H.loaded=!0,H.exports}return Z.m=U,Z.c=Q,Z.p="",Z(0)}([function(U,Q,Z){Object.defineProperty(Q,"__esModule",{value:!0});var $=Z(1),H=Z(3),D=Z(8),X=Z(15);function Y(W,z,K){var J=null,G=function(P,g){if(K)K(P,g);if(J)J.visit(P,g)},M=typeof K==="function"?G:null,O=!1;if(z){O=typeof z.comment==="boolean"&&z.comment;var V=typeof z.attachComment==="boolean"&&z.attachComment;if(O||V)J=new $.CommentHandler,J.attach=V,z.comment=!0,M=G}var I=!1;if(z&&typeof z.sourceType==="string")I=z.sourceType==="module";var F;if(z&&typeof z.jsx==="boolean"&&z.jsx)F=new H.JSXParser(W,z,M);else F=new D.Parser(W,z,M);var C=I?F.parseModule():F.parseScript(),N=C;if(O&&J)N.comments=J.comments;if(F.config.tokens)N.tokens=F.tokens;if(F.config.tolerant)N.errors=F.errorHandler.errors;return N}Q.parse=Y;function j(W,z,K){var J=z||{};return J.sourceType="module",Y(W,J,K)}Q.parseModule=j;function E(W,z,K){var J=z||{};return J.sourceType="script",Y(W,J,K)}Q.parseScript=E;function q(W,z,K){var J=new X.Tokenizer(W,z),G;G=[];try{while(!0){var M=J.getNextToken();if(!M)break;if(K)M=K(M);G.push(M)}}catch(O){J.errorHandler.tolerate(O)}if(J.errorHandler.tolerant)G.errors=J.errors();return G}Q.tokenize=q;var B=Z(2);Q.Syntax=B.Syntax,Q.version="4.0.1"},function(U,Q,Z){Object.defineProperty(Q,"__esModule",{value:!0});var $=Z(2),H=function(){function D(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return D.prototype.insertInnerComments=function(X,Y){if(X.type===$.Syntax.BlockStatement&&X.body.length===0){var j=[];for(var E=this.leading.length-1;E>=0;--E){var q=this.leading[E];if(Y.end.offset>=q.start)j.unshift(q.comment),this.leading.splice(E,1),this.trailing.splice(E,1)}if(j.length)X.innerComments=j}},D.prototype.findTrailingComments=function(X){var Y=[];if(this.trailing.length>0){for(var j=this.trailing.length-1;j>=0;--j){var E=this.trailing[j];if(E.start>=X.end.offset)Y.unshift(E.comment)}return this.trailing.length=0,Y}var q=this.stack[this.stack.length-1];if(q&&q.node.trailingComments){var B=q.node.trailingComments[0];if(B&&B.range[0]>=X.end.offset)Y=q.node.trailingComments,delete q.node.trailingComments}return Y},D.prototype.findLeadingComments=function(X){var Y=[],j;while(this.stack.length>0){var E=this.stack[this.stack.length-1];if(E&&E.start>=X.start.offset)j=E.node,this.stack.pop();else break}if(j){var q=j.leadingComments?j.leadingComments.length:0;for(var B=q-1;B>=0;--B){var W=j.leadingComments[B];if(W.range[1]<=X.start.offset)Y.unshift(W),j.leadingComments.splice(B,1)}if(j.leadingComments&&j.leadingComments.length===0)delete j.leadingComments;return Y}for(var B=this.leading.length-1;B>=0;--B){var E=this.leading[B];if(E.start<=X.start.offset)Y.unshift(E.comment),this.leading.splice(B,1)}return Y},D.prototype.visitNode=function(X,Y){if(X.type===$.Syntax.Program&&X.body.length>0)return;this.insertInnerComments(X,Y);var j=this.findTrailingComments(Y),E=this.findLeadingComments(Y);if(E.length>0)X.leadingComments=E;if(j.length>0)X.trailingComments=j;this.stack.push({node:X,start:Y.start.offset})},D.prototype.visitComment=function(X,Y){var j=X.type[0]==="L"?"Line":"Block",E={type:j,value:X.value};if(X.range)E.range=X.range;if(X.loc)E.loc=X.loc;if(this.comments.push(E),this.attach){var q={comment:{type:j,value:X.value,range:[Y.start.offset,Y.end.offset]},start:Y.start.offset};if(X.loc)q.comment.loc=X.loc;X.type=j,this.leading.push(q),this.trailing.push(q)}},D.prototype.visit=function(X,Y){if(X.type==="LineComment")this.visitComment(X,Y);else if(X.type==="BlockComment")this.visitComment(X,Y);else if(this.attach)this.visitNode(X,Y)},D}();Q.CommentHandler=H},function(U,Q){Object.defineProperty(Q,"__esModule",{value:!0}),Q.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(U,Q,Z){var $=this&&this.__extends||function(){var z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,J){K.__proto__=J}||function(K,J){for(var G in J)if(J.hasOwnProperty(G))K[G]=J[G]};return function(K,J){z(K,J);function G(){this.constructor=K}K.prototype=J===null?Object.create(J):(G.prototype=J.prototype,new G)}}();Object.defineProperty(Q,"__esModule",{value:!0});var H=Z(4),D=Z(5),X=Z(6),Y=Z(7),j=Z(8),E=Z(13),q=Z(14);E.TokenName[100]="JSXIdentifier",E.TokenName[101]="JSXText";function B(z){var K;switch(z.type){case X.JSXSyntax.JSXIdentifier:var J=z;K=J.name;break;case X.JSXSyntax.JSXNamespacedName:var G=z;K=B(G.namespace)+":"+B(G.name);break;case X.JSXSyntax.JSXMemberExpression:var M=z;K=B(M.object)+"."+B(M.property);break;default:break}return K}var W=function(z){$(K,z);function K(J,G,M){return z.call(this,J,G,M)||this}return K.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():z.prototype.parsePrimaryExpression.call(this)},K.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},K.prototype.finishJSX=function(){this.nextToken()},K.prototype.reenterJSX=function(){if(this.startJSX(),this.expectJSX("}"),this.config.tokens)this.tokens.pop()},K.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},K.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},K.prototype.scanXHTMLEntity=function(J){var G="&",M=!0,O=!1,V=!1,I=!1;while(!this.scanner.eof()&&M&&!O){var F=this.scanner.source[this.scanner.index];if(F===J)break;if(O=F===";",G+=F,++this.scanner.index,!O)switch(G.length){case 2:V=F==="#";break;case 3:if(V)I=F==="x",M=I||H.Character.isDecimalDigit(F.charCodeAt(0)),V=V&&!I;break;default:M=M&&!(V&&!H.Character.isDecimalDigit(F.charCodeAt(0))),M=M&&!(I&&!H.Character.isHexDigit(F.charCodeAt(0)));break}}if(M&&O&&G.length>2){var C=G.substr(1,G.length-2);if(V&&C.length>1)G=String.fromCharCode(parseInt(C.substr(1),10));else if(I&&C.length>2)G=String.fromCharCode(parseInt("0"+C.substr(1),16));else if(!V&&!I&&q.XHTMLEntities[C])G=q.XHTMLEntities[C]}return G},K.prototype.lexJSX=function(){var J=this.scanner.source.charCodeAt(this.scanner.index);if(J===60||J===62||J===47||J===58||J===61||J===123||J===125){var G=this.scanner.source[this.scanner.index++];return{type:7,value:G,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(J===34||J===39){var M=this.scanner.index,O=this.scanner.source[this.scanner.index++],V="";while(!this.scanner.eof()){var I=this.scanner.source[this.scanner.index++];if(I===O)break;else if(I==="&")V+=this.scanXHTMLEntity(O);else V+=I}return{type:8,value:V,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:M,end:this.scanner.index}}if(J===46){var F=this.scanner.source.charCodeAt(this.scanner.index+1),C=this.scanner.source.charCodeAt(this.scanner.index+2),G=F===46&&C===46?"...":".",M=this.scanner.index;return this.scanner.index+=G.length,{type:7,value:G,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:M,end:this.scanner.index}}if(J===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(H.Character.isIdentifierStart(J)&&J!==92){var M=this.scanner.index;++this.scanner.index;while(!this.scanner.eof()){var I=this.scanner.source.charCodeAt(this.scanner.index);if(H.Character.isIdentifierPart(I)&&I!==92)++this.scanner.index;else if(I===45)++this.scanner.index;else break}var N=this.scanner.source.slice(M,this.scanner.index);return{type:100,value:N,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:M,end:this.scanner.index}}return this.scanner.lex()},K.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var J=this.lexJSX();if(this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens)this.tokens.push(this.convertToken(J));return J},K.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var J=this.scanner.index,G="";while(!this.scanner.eof()){var M=this.scanner.source[this.scanner.index];if(M==="{"||M==="<")break;if(++this.scanner.index,G+=M,H.Character.isLineTerminator(M.charCodeAt(0))){if(++this.scanner.lineNumber,M==="\r"&&this.scanner.source[this.scanner.index]===`
|
|
3
3
|
`)++this.scanner.index;this.scanner.lineStart=this.scanner.index}}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var O={type:101,value:G,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:J,end:this.scanner.index};if(G.length>0&&this.config.tokens)this.tokens.push(this.convertToken(O));return O},K.prototype.peekJSXToken=function(){var J=this.scanner.saveState();this.scanner.scanComments();var G=this.lexJSX();return this.scanner.restoreState(J),G},K.prototype.expectJSX=function(J){var G=this.nextJSXToken();if(G.type!==7||G.value!==J)this.throwUnexpectedToken(G)},K.prototype.matchJSX=function(J){var G=this.peekJSXToken();return G.type===7&&G.value===J},K.prototype.parseJSXIdentifier=function(){var J=this.createJSXNode(),G=this.nextJSXToken();if(G.type!==100)this.throwUnexpectedToken(G);return this.finalize(J,new D.JSXIdentifier(G.value))},K.prototype.parseJSXElementName=function(){var J=this.createJSXNode(),G=this.parseJSXIdentifier();if(this.matchJSX(":")){var M=G;this.expectJSX(":");var O=this.parseJSXIdentifier();G=this.finalize(J,new D.JSXNamespacedName(M,O))}else if(this.matchJSX("."))while(this.matchJSX(".")){var V=G;this.expectJSX(".");var I=this.parseJSXIdentifier();G=this.finalize(J,new D.JSXMemberExpression(V,I))}return G},K.prototype.parseJSXAttributeName=function(){var J=this.createJSXNode(),G,M=this.parseJSXIdentifier();if(this.matchJSX(":")){var O=M;this.expectJSX(":");var V=this.parseJSXIdentifier();G=this.finalize(J,new D.JSXNamespacedName(O,V))}else G=M;return G},K.prototype.parseJSXStringLiteralAttribute=function(){var J=this.createJSXNode(),G=this.nextJSXToken();if(G.type!==8)this.throwUnexpectedToken(G);var M=this.getTokenRaw(G);return this.finalize(J,new Y.Literal(G.value,M))},K.prototype.parseJSXExpressionAttribute=function(){var J=this.createJSXNode();if(this.expectJSX("{"),this.finishJSX(),this.match("}"))this.tolerateError("JSX attributes must only be assigned a non-empty expression");var G=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(J,new D.JSXExpressionContainer(G))},K.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},K.prototype.parseJSXNameValueAttribute=function(){var J=this.createJSXNode(),G=this.parseJSXAttributeName(),M=null;if(this.matchJSX("="))this.expectJSX("="),M=this.parseJSXAttributeValue();return this.finalize(J,new D.JSXAttribute(G,M))},K.prototype.parseJSXSpreadAttribute=function(){var J=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var G=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(J,new D.JSXSpreadAttribute(G))},K.prototype.parseJSXAttributes=function(){var J=[];while(!this.matchJSX("/")&&!this.matchJSX(">")){var G=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();J.push(G)}return J},K.prototype.parseJSXOpeningElement=function(){var J=this.createJSXNode();this.expectJSX("<");var G=this.parseJSXElementName(),M=this.parseJSXAttributes(),O=this.matchJSX("/");if(O)this.expectJSX("/");return this.expectJSX(">"),this.finalize(J,new D.JSXOpeningElement(G,O,M))},K.prototype.parseJSXBoundaryElement=function(){var J=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var G=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(J,new D.JSXClosingElement(G))}var M=this.parseJSXElementName(),O=this.parseJSXAttributes(),V=this.matchJSX("/");if(V)this.expectJSX("/");return this.expectJSX(">"),this.finalize(J,new D.JSXOpeningElement(M,V,O))},K.prototype.parseJSXEmptyExpression=function(){var J=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(J,new D.JSXEmptyExpression)},K.prototype.parseJSXExpressionContainer=function(){var J=this.createJSXNode();this.expectJSX("{");var G;if(this.matchJSX("}"))G=this.parseJSXEmptyExpression(),this.expectJSX("}");else this.finishJSX(),G=this.parseAssignmentExpression(),this.reenterJSX();return this.finalize(J,new D.JSXExpressionContainer(G))},K.prototype.parseJSXChildren=function(){var J=[];while(!this.scanner.eof()){var G=this.createJSXChildNode(),M=this.nextJSXText();if(M.start<M.end){var O=this.getTokenRaw(M),V=this.finalize(G,new D.JSXText(M.value,O));J.push(V)}if(this.scanner.source[this.scanner.index]==="{"){var I=this.parseJSXExpressionContainer();J.push(I)}else break}return J},K.prototype.parseComplexJSXElement=function(J){var G=[];while(!this.scanner.eof()){J.children=J.children.concat(this.parseJSXChildren());var M=this.createJSXChildNode(),O=this.parseJSXBoundaryElement();if(O.type===X.JSXSyntax.JSXOpeningElement){var V=O;if(V.selfClosing){var I=this.finalize(M,new D.JSXElement(V,[],null));J.children.push(I)}else G.push(J),J={node:M,opening:V,closing:null,children:[]}}if(O.type===X.JSXSyntax.JSXClosingElement){J.closing=O;var F=B(J.opening.name),C=B(J.closing.name);if(F!==C)this.tolerateError("Expected corresponding JSX closing tag for %0",F);if(G.length>0){var I=this.finalize(J.node,new D.JSXElement(J.opening,J.children,J.closing));J=G[G.length-1],J.children.push(I),G.pop()}else break}}return J},K.prototype.parseJSXElement=function(){var J=this.createJSXNode(),G=this.parseJSXOpeningElement(),M=[],O=null;if(!G.selfClosing){var V=this.parseComplexJSXElement({node:J,opening:G,closing:O,children:M});M=V.children,O=V.closing}return this.finalize(J,new D.JSXElement(G,M,O))},K.prototype.parseJSXRoot=function(){if(this.config.tokens)this.tokens.pop();this.startJSX();var J=this.parseJSXElement();return this.finishJSX(),J},K.prototype.isStartOfExpression=function(){return z.prototype.isStartOfExpression.call(this)||this.match("<")},K}(j.Parser);Q.JSXParser=W},function(U,Q){Object.defineProperty(Q,"__esModule",{value:!0});var Z={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};Q.Character={fromCodePoint:function($){return $<65536?String.fromCharCode($):String.fromCharCode(55296+($-65536>>10))+String.fromCharCode(56320+($-65536&1023))},isWhiteSpace:function($){return $===32||$===9||$===11||$===12||$===160||$>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf($)>=0},isLineTerminator:function($){return $===10||$===13||$===8232||$===8233},isIdentifierStart:function($){return $===36||$===95||$>=65&&$<=90||$>=97&&$<=122||$===92||$>=128&&Z.NonAsciiIdentifierStart.test(Q.Character.fromCodePoint($))},isIdentifierPart:function($){return $===36||$===95||$>=65&&$<=90||$>=97&&$<=122||$>=48&&$<=57||$===92||$>=128&&Z.NonAsciiIdentifierPart.test(Q.Character.fromCodePoint($))},isDecimalDigit:function($){return $>=48&&$<=57},isHexDigit:function($){return $>=48&&$<=57||$>=65&&$<=70||$>=97&&$<=102},isOctalDigit:function($){return $>=48&&$<=55}}},function(U,Q,Z){Object.defineProperty(Q,"__esModule",{value:!0});var $=Z(6),H=function(){function J(G){this.type=$.JSXSyntax.JSXClosingElement,this.name=G}return J}();Q.JSXClosingElement=H;var D=function(){function J(G,M,O){this.type=$.JSXSyntax.JSXElement,this.openingElement=G,this.children=M,this.closingElement=O}return J}();Q.JSXElement=D;var X=function(){function J(){this.type=$.JSXSyntax.JSXEmptyExpression}return J}();Q.JSXEmptyExpression=X;var Y=function(){function J(G){this.type=$.JSXSyntax.JSXExpressionContainer,this.expression=G}return J}();Q.JSXExpressionContainer=Y;var j=function(){function J(G){this.type=$.JSXSyntax.JSXIdentifier,this.name=G}return J}();Q.JSXIdentifier=j;var E=function(){function J(G,M){this.type=$.JSXSyntax.JSXMemberExpression,this.object=G,this.property=M}return J}();Q.JSXMemberExpression=E;var q=function(){function J(G,M){this.type=$.JSXSyntax.JSXAttribute,this.name=G,this.value=M}return J}();Q.JSXAttribute=q;var B=function(){function J(G,M){this.type=$.JSXSyntax.JSXNamespacedName,this.namespace=G,this.name=M}return J}();Q.JSXNamespacedName=B;var W=function(){function J(G,M,O){this.type=$.JSXSyntax.JSXOpeningElement,this.name=G,this.selfClosing=M,this.attributes=O}return J}();Q.JSXOpeningElement=W;var z=function(){function J(G){this.type=$.JSXSyntax.JSXSpreadAttribute,this.argument=G}return J}();Q.JSXSpreadAttribute=z;var K=function(){function J(G,M){this.type=$.JSXSyntax.JSXText,this.value=G,this.raw=M}return J}();Q.JSXText=K},function(U,Q){Object.defineProperty(Q,"__esModule",{value:!0}),Q.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(U,Q,Z){Object.defineProperty(Q,"__esModule",{value:!0});var $=Z(2),H=function(){function A(T){this.type=$.Syntax.ArrayExpression,this.elements=T}return A}();Q.ArrayExpression=H;var D=function(){function A(T){this.type=$.Syntax.ArrayPattern,this.elements=T}return A}();Q.ArrayPattern=D;var X=function(){function A(T,S,k){this.type=$.Syntax.ArrowFunctionExpression,this.id=null,this.params=T,this.body=S,this.generator=!1,this.expression=k,this.async=!1}return A}();Q.ArrowFunctionExpression=X;var Y=function(){function A(T,S,k){this.type=$.Syntax.AssignmentExpression,this.operator=T,this.left=S,this.right=k}return A}();Q.AssignmentExpression=Y;var j=function(){function A(T,S){this.type=$.Syntax.AssignmentPattern,this.left=T,this.right=S}return A}();Q.AssignmentPattern=j;var E=function(){function A(T,S,k){this.type=$.Syntax.ArrowFunctionExpression,this.id=null,this.params=T,this.body=S,this.generator=!1,this.expression=k,this.async=!0}return A}();Q.AsyncArrowFunctionExpression=E;var q=function(){function A(T,S,k){this.type=$.Syntax.FunctionDeclaration,this.id=T,this.params=S,this.body=k,this.generator=!1,this.expression=!1,this.async=!0}return A}();Q.AsyncFunctionDeclaration=q;var B=function(){function A(T,S,k){this.type=$.Syntax.FunctionExpression,this.id=T,this.params=S,this.body=k,this.generator=!1,this.expression=!1,this.async=!0}return A}();Q.AsyncFunctionExpression=B;var W=function(){function A(T){this.type=$.Syntax.AwaitExpression,this.argument=T}return A}();Q.AwaitExpression=W;var z=function(){function A(T,S,k){var U1=T==="||"||T==="&&";this.type=U1?$.Syntax.LogicalExpression:$.Syntax.BinaryExpression,this.operator=T,this.left=S,this.right=k}return A}();Q.BinaryExpression=z;var K=function(){function A(T){this.type=$.Syntax.BlockStatement,this.body=T}return A}();Q.BlockStatement=K;var J=function(){function A(T){this.type=$.Syntax.BreakStatement,this.label=T}return A}();Q.BreakStatement=J;var G=function(){function A(T,S){this.type=$.Syntax.CallExpression,this.callee=T,this.arguments=S}return A}();Q.CallExpression=G;var M=function(){function A(T,S){this.type=$.Syntax.CatchClause,this.param=T,this.body=S}return A}();Q.CatchClause=M;var O=function(){function A(T){this.type=$.Syntax.ClassBody,this.body=T}return A}();Q.ClassBody=O;var V=function(){function A(T,S,k){this.type=$.Syntax.ClassDeclaration,this.id=T,this.superClass=S,this.body=k}return A}();Q.ClassDeclaration=V;var I=function(){function A(T,S,k){this.type=$.Syntax.ClassExpression,this.id=T,this.superClass=S,this.body=k}return A}();Q.ClassExpression=I;var F=function(){function A(T,S){this.type=$.Syntax.MemberExpression,this.computed=!0,this.object=T,this.property=S}return A}();Q.ComputedMemberExpression=F;var C=function(){function A(T,S,k){this.type=$.Syntax.ConditionalExpression,this.test=T,this.consequent=S,this.alternate=k}return A}();Q.ConditionalExpression=C;var N=function(){function A(T){this.type=$.Syntax.ContinueStatement,this.label=T}return A}();Q.ContinueStatement=N;var P=function(){function A(){this.type=$.Syntax.DebuggerStatement}return A}();Q.DebuggerStatement=P;var g=function(){function A(T,S){this.type=$.Syntax.ExpressionStatement,this.expression=T,this.directive=S}return A}();Q.Directive=g;var h=function(){function A(T,S){this.type=$.Syntax.DoWhileStatement,this.body=T,this.test=S}return A}();Q.DoWhileStatement=h;var l=function(){function A(){this.type=$.Syntax.EmptyStatement}return A}();Q.EmptyStatement=l;var z1=function(){function A(T){this.type=$.Syntax.ExportAllDeclaration,this.source=T}return A}();Q.ExportAllDeclaration=z1;var A1=function(){function A(T){this.type=$.Syntax.ExportDefaultDeclaration,this.declaration=T}return A}();Q.ExportDefaultDeclaration=A1;var _1=function(){function A(T,S,k){this.type=$.Syntax.ExportNamedDeclaration,this.declaration=T,this.specifiers=S,this.source=k}return A}();Q.ExportNamedDeclaration=_1;var T1=function(){function A(T,S){this.type=$.Syntax.ExportSpecifier,this.exported=S,this.local=T}return A}();Q.ExportSpecifier=T1;var B1=function(){function A(T){this.type=$.Syntax.ExpressionStatement,this.expression=T}return A}();Q.ExpressionStatement=B1;var C1=function(){function A(T,S,k){this.type=$.Syntax.ForInStatement,this.left=T,this.right=S,this.body=k,this.each=!1}return A}();Q.ForInStatement=C1;var S1=function(){function A(T,S,k){this.type=$.Syntax.ForOfStatement,this.left=T,this.right=S,this.body=k}return A}();Q.ForOfStatement=S1;var w=function(){function A(T,S,k,U1){this.type=$.Syntax.ForStatement,this.init=T,this.test=S,this.update=k,this.body=U1}return A}();Q.ForStatement=w;var v=function(){function A(T,S,k,U1){this.type=$.Syntax.FunctionDeclaration,this.id=T,this.params=S,this.body=k,this.generator=U1,this.expression=!1,this.async=!1}return A}();Q.FunctionDeclaration=v;var L=function(){function A(T,S,k,U1){this.type=$.Syntax.FunctionExpression,this.id=T,this.params=S,this.body=k,this.generator=U1,this.expression=!1,this.async=!1}return A}();Q.FunctionExpression=L;var x=function(){function A(T){this.type=$.Syntax.Identifier,this.name=T}return A}();Q.Identifier=x;var f=function(){function A(T,S,k){this.type=$.Syntax.IfStatement,this.test=T,this.consequent=S,this.alternate=k}return A}();Q.IfStatement=f;var _=function(){function A(T,S){this.type=$.Syntax.ImportDeclaration,this.specifiers=T,this.source=S}return A}();Q.ImportDeclaration=_;var i=function(){function A(T){this.type=$.Syntax.ImportDefaultSpecifier,this.local=T}return A}();Q.ImportDefaultSpecifier=i;var d=function(){function A(T){this.type=$.Syntax.ImportNamespaceSpecifier,this.local=T}return A}();Q.ImportNamespaceSpecifier=d;var c=function(){function A(T,S){this.type=$.Syntax.ImportSpecifier,this.local=T,this.imported=S}return A}();Q.ImportSpecifier=c;var Z1=function(){function A(T,S){this.type=$.Syntax.LabeledStatement,this.label=T,this.body=S}return A}();Q.LabeledStatement=Z1;var J1=function(){function A(T,S){this.type=$.Syntax.Literal,this.value=T,this.raw=S}return A}();Q.Literal=J1;var $1=function(){function A(T,S){this.type=$.Syntax.MetaProperty,this.meta=T,this.property=S}return A}();Q.MetaProperty=$1;var Q1=function(){function A(T,S,k,U1,$6){this.type=$.Syntax.MethodDefinition,this.key=T,this.computed=S,this.value=k,this.kind=U1,this.static=$6}return A}();Q.MethodDefinition=Q1;var u1=function(){function A(T){this.type=$.Syntax.Program,this.body=T,this.sourceType="module"}return A}();Q.Module=u1;var O1=function(){function A(T,S){this.type=$.Syntax.NewExpression,this.callee=T,this.arguments=S}return A}();Q.NewExpression=O1;var a1=function(){function A(T){this.type=$.Syntax.ObjectExpression,this.properties=T}return A}();Q.ObjectExpression=a1;var f1=function(){function A(T){this.type=$.Syntax.ObjectPattern,this.properties=T}return A}();Q.ObjectPattern=f1;var w1=function(){function A(T,S,k,U1,$6,O5){this.type=$.Syntax.Property,this.key=S,this.computed=k,this.value=U1,this.kind=T,this.method=$6,this.shorthand=O5}return A}();Q.Property=w1;var m1=function(){function A(T,S,k,U1){this.type=$.Syntax.Literal,this.value=T,this.raw=S,this.regex={pattern:k,flags:U1}}return A}();Q.RegexLiteral=m1;var i0=function(){function A(T){this.type=$.Syntax.RestElement,this.argument=T}return A}();Q.RestElement=i0;var M0=function(){function A(T){this.type=$.Syntax.ReturnStatement,this.argument=T}return A}();Q.ReturnStatement=M0;var B0=function(){function A(T){this.type=$.Syntax.Program,this.body=T,this.sourceType="script"}return A}();Q.Script=B0;var O0=function(){function A(T){this.type=$.Syntax.SequenceExpression,this.expressions=T}return A}();Q.SequenceExpression=O0;var v1=function(){function A(T){this.type=$.Syntax.SpreadElement,this.argument=T}return A}();Q.SpreadElement=v1;var G1=function(){function A(T,S){this.type=$.Syntax.MemberExpression,this.computed=!1,this.object=T,this.property=S}return A}();Q.StaticMemberExpression=G1;var R0=function(){function A(){this.type=$.Syntax.Super}return A}();Q.Super=R0;var a0=function(){function A(T,S){this.type=$.Syntax.SwitchCase,this.test=T,this.consequent=S}return A}();Q.SwitchCase=a0;var V0=function(){function A(T,S){this.type=$.Syntax.SwitchStatement,this.discriminant=T,this.cases=S}return A}();Q.SwitchStatement=V0;var j0=function(){function A(T,S){this.type=$.Syntax.TaggedTemplateExpression,this.tag=T,this.quasi=S}return A}();Q.TaggedTemplateExpression=j0;var E0=function(){function A(T,S){this.type=$.Syntax.TemplateElement,this.value=T,this.tail=S}return A}();Q.TemplateElement=E0;var I0=function(){function A(T,S){this.type=$.Syntax.TemplateLiteral,this.quasis=T,this.expressions=S}return A}();Q.TemplateLiteral=I0;var n0=function(){function A(){this.type=$.Syntax.ThisExpression}return A}();Q.ThisExpression=n0;var t0=function(){function A(T){this.type=$.Syntax.ThrowStatement,this.argument=T}return A}();Q.ThrowStatement=t0;var F0=function(){function A(T,S,k){this.type=$.Syntax.TryStatement,this.block=T,this.handler=S,this.finalizer=k}return A}();Q.TryStatement=F0;var e0=function(){function A(T,S){this.type=$.Syntax.UnaryExpression,this.operator=T,this.argument=S,this.prefix=!0}return A}();Q.UnaryExpression=e0;var Z6=function(){function A(T,S,k){this.type=$.Syntax.UpdateExpression,this.operator=T,this.argument=S,this.prefix=k}return A}();Q.UpdateExpression=Z6;var A0=function(){function A(T,S){this.type=$.Syntax.VariableDeclaration,this.declarations=T,this.kind=S}return A}();Q.VariableDeclaration=A0;var b=function(){function A(T,S){this.type=$.Syntax.VariableDeclarator,this.id=T,this.init=S}return A}();Q.VariableDeclarator=b;var u=function(){function A(T,S){this.type=$.Syntax.WhileStatement,this.test=T,this.body=S}return A}();Q.WhileStatement=u;var X1=function(){function A(T,S){this.type=$.Syntax.WithStatement,this.object=T,this.body=S}return A}();Q.WithStatement=X1;var D1=function(){function A(T,S){this.type=$.Syntax.YieldExpression,this.argument=T,this.delegate=S}return A}();Q.YieldExpression=D1},function(U,Q,Z){Object.defineProperty(Q,"__esModule",{value:!0});var $=Z(9),H=Z(10),D=Z(11),X=Z(7),Y=Z(12),j=Z(2),E=Z(13),q="ArrowParameterPlaceHolder",B=function(){function W(z,K,J){if(K===void 0)K={};if(this.config={range:typeof K.range==="boolean"&&K.range,loc:typeof K.loc==="boolean"&&K.loc,source:null,tokens:typeof K.tokens==="boolean"&&K.tokens,comment:typeof K.comment==="boolean"&&K.comment,tolerant:typeof K.tolerant==="boolean"&&K.tolerant},this.config.loc&&K.source&&K.source!==null)this.config.source=String(K.source);this.delegate=J,this.errorHandler=new H.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new Y.Scanner(z,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return W.prototype.throwError=function(z){var K=[];for(var J=1;J<arguments.length;J++)K[J-1]=arguments[J];var G=Array.prototype.slice.call(arguments,1),M=z.replace(/%(\d)/g,function(F,C){return $.assert(C<G.length,"Message reference must be in range"),G[C]}),O=this.lastMarker.index,V=this.lastMarker.line,I=this.lastMarker.column+1;throw this.errorHandler.createError(O,V,I,M)},W.prototype.tolerateError=function(z){var K=[];for(var J=1;J<arguments.length;J++)K[J-1]=arguments[J];var G=Array.prototype.slice.call(arguments,1),M=z.replace(/%(\d)/g,function(F,C){return $.assert(C<G.length,"Message reference must be in range"),G[C]}),O=this.lastMarker.index,V=this.scanner.lineNumber,I=this.lastMarker.column+1;this.errorHandler.tolerateError(O,V,I,M)},W.prototype.unexpectedTokenError=function(z,K){var J=K||D.Messages.UnexpectedToken,G;if(z){if(!K){if(J=z.type===2?D.Messages.UnexpectedEOS:z.type===3?D.Messages.UnexpectedIdentifier:z.type===6?D.Messages.UnexpectedNumber:z.type===8?D.Messages.UnexpectedString:z.type===10?D.Messages.UnexpectedTemplate:D.Messages.UnexpectedToken,z.type===4){if(this.scanner.isFutureReservedWord(z.value))J=D.Messages.UnexpectedReserved;else if(this.context.strict&&this.scanner.isStrictModeReservedWord(z.value))J=D.Messages.StrictReservedWord}}G=z.value}else G="ILLEGAL";if(J=J.replace("%0",G),z&&typeof z.lineNumber==="number"){var{start:M,lineNumber:O}=z,V=this.lastMarker.index-this.lastMarker.column,I=z.start-V+1;return this.errorHandler.createError(M,O,I,J)}else{var M=this.lastMarker.index,O=this.lastMarker.line,I=this.lastMarker.column+1;return this.errorHandler.createError(M,O,I,J)}},W.prototype.throwUnexpectedToken=function(z,K){throw this.unexpectedTokenError(z,K)},W.prototype.tolerateUnexpectedToken=function(z,K){this.errorHandler.tolerate(this.unexpectedTokenError(z,K))},W.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var z=this.scanner.scanComments();if(z.length>0&&this.delegate)for(var K=0;K<z.length;++K){var J=z[K],G=void 0;if(G={type:J.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(J.slice[0],J.slice[1])},this.config.range)G.range=J.range;if(this.config.loc)G.loc=J.loc;var M={start:{line:J.loc.start.line,column:J.loc.start.column,offset:J.range[0]},end:{line:J.loc.end.line,column:J.loc.end.column,offset:J.range[1]}};this.delegate(G,M)}}},W.prototype.getTokenRaw=function(z){return this.scanner.source.slice(z.start,z.end)},W.prototype.convertToken=function(z){var K={type:E.TokenName[z.type],value:this.getTokenRaw(z)};if(this.config.range)K.range=[z.start,z.end];if(this.config.loc)K.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}};if(z.type===9){var{pattern:J,flags:G}=z;K.regex={pattern:J,flags:G}}return K},W.prototype.nextToken=function(){var z=this.lookahead;if(this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index)this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var K=this.scanner.lex();if(this.hasLineTerminator=z.lineNumber!==K.lineNumber,K&&this.context.strict&&K.type===3){if(this.scanner.isStrictModeReservedWord(K.value))K.type=4}if(this.lookahead=K,this.config.tokens&&K.type!==2)this.tokens.push(this.convertToken(K));return z},W.prototype.nextRegexToken=function(){this.collectComments();var z=this.scanner.scanRegExp();if(this.config.tokens)this.tokens.pop(),this.tokens.push(this.convertToken(z));return this.lookahead=z,this.nextToken(),z},W.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},W.prototype.startNode=function(z,K){if(K===void 0)K=0;var J=z.start-z.lineStart,G=z.lineNumber;if(J<0)J+=K,G--;return{index:z.start,line:G,column:J}},W.prototype.finalize=function(z,K){if(this.config.range)K.range=[z.index,this.lastMarker.index];if(this.config.loc){if(K.loc={start:{line:z.line,column:z.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source)K.loc.source=this.config.source}if(this.delegate){var J={start:{line:z.line,column:z.column,offset:z.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(K,J)}return K},W.prototype.expect=function(z){var K=this.nextToken();if(K.type!==7||K.value!==z)this.throwUnexpectedToken(K)},W.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var z=this.lookahead;if(z.type===7&&z.value===",")this.nextToken();else if(z.type===7&&z.value===";")this.nextToken(),this.tolerateUnexpectedToken(z);else this.tolerateUnexpectedToken(z,D.Messages.UnexpectedToken)}else this.expect(",")},W.prototype.expectKeyword=function(z){var K=this.nextToken();if(K.type!==4||K.value!==z)this.throwUnexpectedToken(K)},W.prototype.match=function(z){return this.lookahead.type===7&&this.lookahead.value===z},W.prototype.matchKeyword=function(z){return this.lookahead.type===4&&this.lookahead.value===z},W.prototype.matchContextualKeyword=function(z){return this.lookahead.type===3&&this.lookahead.value===z},W.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var z=this.lookahead.value;return z==="="||z==="*="||z==="**="||z==="/="||z==="%="||z==="+="||z==="-="||z==="<<="||z===">>="||z===">>>="||z==="&="||z==="^="||z==="|="},W.prototype.isolateCoverGrammar=function(z){var K=this.context.isBindingElement,J=this.context.isAssignmentTarget,G=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var M=z.call(this);if(this.context.firstCoverInitializedNameError!==null)this.throwUnexpectedToken(this.context.firstCoverInitializedNameError);return this.context.isBindingElement=K,this.context.isAssignmentTarget=J,this.context.firstCoverInitializedNameError=G,M},W.prototype.inheritCoverGrammar=function(z){var K=this.context.isBindingElement,J=this.context.isAssignmentTarget,G=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var M=z.call(this);return this.context.isBindingElement=this.context.isBindingElement&&K,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&J,this.context.firstCoverInitializedNameError=G||this.context.firstCoverInitializedNameError,M},W.prototype.consumeSemicolon=function(){if(this.match(";"))this.nextToken();else if(!this.hasLineTerminator){if(this.lookahead.type!==2&&!this.match("}"))this.throwUnexpectedToken(this.lookahead);this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column}},W.prototype.parsePrimaryExpression=function(){var z=this.createNode(),K,J,G;switch(this.lookahead.type){case 3:if((this.context.isModule||this.context.await)&&this.lookahead.value==="await")this.tolerateUnexpectedToken(this.lookahead);K=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(z,new X.Identifier(this.nextToken().value));break;case 6:case 8:if(this.context.strict&&this.lookahead.octal)this.tolerateUnexpectedToken(this.lookahead,D.Messages.StrictOctalLiteral);this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,J=this.nextToken(),G=this.getTokenRaw(J),K=this.finalize(z,new X.Literal(J.value,G));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,J=this.nextToken(),G=this.getTokenRaw(J),K=this.finalize(z,new X.Literal(J.value==="true",G));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,J=this.nextToken(),G=this.getTokenRaw(J),K=this.finalize(z,new X.Literal(null,G));break;case 10:K=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,K=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":K=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":K=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,J=this.nextRegexToken(),G=this.getTokenRaw(J),K=this.finalize(z,new X.RegexLiteral(J.regex,G,J.pattern,J.flags));break;default:K=this.throwUnexpectedToken(this.nextToken())}break;case 4:if(!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield"))K=this.parseIdentifierName();else if(!this.context.strict&&this.matchKeyword("let"))K=this.finalize(z,new X.Identifier(this.nextToken().value));else if(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function"))K=this.parseFunctionExpression();else if(this.matchKeyword("this"))this.nextToken(),K=this.finalize(z,new X.ThisExpression);else if(this.matchKeyword("class"))K=this.parseClassExpression();else K=this.throwUnexpectedToken(this.nextToken());break;default:K=this.throwUnexpectedToken(this.nextToken())}return K},W.prototype.parseSpreadElement=function(){var z=this.createNode();this.expect("...");var K=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(z,new X.SpreadElement(K))},W.prototype.parseArrayInitializer=function(){var z=this.createNode(),K=[];this.expect("[");while(!this.match("]"))if(this.match(","))this.nextToken(),K.push(null);else if(this.match("...")){var J=this.parseSpreadElement();if(!this.match("]"))this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",");K.push(J)}else if(K.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),!this.match("]"))this.expect(",");return this.expect("]"),this.finalize(z,new X.ArrayExpression(K))},W.prototype.parsePropertyMethod=function(z){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var K=this.context.strict,J=this.context.allowStrictDirective;this.context.allowStrictDirective=z.simple;var G=this.isolateCoverGrammar(this.parseFunctionSourceElements);if(this.context.strict&&z.firstRestricted)this.tolerateUnexpectedToken(z.firstRestricted,z.message);if(this.context.strict&&z.stricted)this.tolerateUnexpectedToken(z.stricted,z.message);return this.context.strict=K,this.context.allowStrictDirective=J,G},W.prototype.parsePropertyMethodFunction=function(){var z=!1,K=this.createNode(),J=this.context.allowYield;this.context.allowYield=!0;var G=this.parseFormalParameters(),M=this.parsePropertyMethod(G);return this.context.allowYield=J,this.finalize(K,new X.FunctionExpression(null,G.params,M,z))},W.prototype.parsePropertyMethodAsyncFunction=function(){var z=this.createNode(),K=this.context.allowYield,J=this.context.await;this.context.allowYield=!1,this.context.await=!0;var G=this.parseFormalParameters(),M=this.parsePropertyMethod(G);return this.context.allowYield=K,this.context.await=J,this.finalize(z,new X.AsyncFunctionExpression(null,G.params,M))},W.prototype.parseObjectPropertyKey=function(){var z=this.createNode(),K=this.nextToken(),J;switch(K.type){case 8:case 6:if(this.context.strict&&K.octal)this.tolerateUnexpectedToken(K,D.Messages.StrictOctalLiteral);var G=this.getTokenRaw(K);J=this.finalize(z,new X.Literal(K.value,G));break;case 3:case 1:case 5:case 4:J=this.finalize(z,new X.Identifier(K.value));break;case 7:if(K.value==="[")J=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]");else J=this.throwUnexpectedToken(K);break;default:J=this.throwUnexpectedToken(K)}return J},W.prototype.isPropertyKey=function(z,K){return z.type===j.Syntax.Identifier&&z.name===K||z.type===j.Syntax.Literal&&z.value===K},W.prototype.parseObjectProperty=function(z){var K=this.createNode(),J=this.lookahead,G,M=null,O=null,V=!1,I=!1,F=!1,C=!1;if(J.type===3){var N=J.value;this.nextToken(),V=this.match("["),C=!this.hasLineTerminator&&N==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),M=C?this.parseObjectPropertyKey():this.finalize(K,new X.Identifier(N))}else if(this.match("*"))this.nextToken();else V=this.match("["),M=this.parseObjectPropertyKey();var P=this.qualifiedPropertyName(this.lookahead);if(J.type===3&&!C&&J.value==="get"&&P)G="get",V=this.match("["),M=this.parseObjectPropertyKey(),this.context.allowYield=!1,O=this.parseGetterMethod();else if(J.type===3&&!C&&J.value==="set"&&P)G="set",V=this.match("["),M=this.parseObjectPropertyKey(),O=this.parseSetterMethod();else if(J.type===7&&J.value==="*"&&P)G="init",V=this.match("["),M=this.parseObjectPropertyKey(),O=this.parseGeneratorMethod(),I=!0;else{if(!M)this.throwUnexpectedToken(this.lookahead);if(G="init",this.match(":")&&!C){if(!V&&this.isPropertyKey(M,"__proto__")){if(z.value)this.tolerateError(D.Messages.DuplicateProtoProperty);z.value=!0}this.nextToken(),O=this.inheritCoverGrammar(this.parseAssignmentExpression)}else if(this.match("("))O=C?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),I=!0;else if(J.type===3){var N=this.finalize(K,new X.Identifier(J.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),F=!0;var g=this.isolateCoverGrammar(this.parseAssignmentExpression);O=this.finalize(K,new X.AssignmentPattern(N,g))}else F=!0,O=N}else this.throwUnexpectedToken(this.nextToken())}return this.finalize(K,new X.Property(G,M,V,O,I,F))},W.prototype.parseObjectInitializer=function(){var z=this.createNode();this.expect("{");var K=[],J={value:!1};while(!this.match("}"))if(K.push(this.parseObjectProperty(J)),!this.match("}"))this.expectCommaSeparator();return this.expect("}"),this.finalize(z,new X.ObjectExpression(K))},W.prototype.parseTemplateHead=function(){$.assert(this.lookahead.head,"Template literal must start with a template head");var z=this.createNode(),K=this.nextToken(),J=K.value,G=K.cooked;return this.finalize(z,new X.TemplateElement({raw:J,cooked:G},K.tail))},W.prototype.parseTemplateElement=function(){if(this.lookahead.type!==10)this.throwUnexpectedToken();var z=this.createNode(),K=this.nextToken(),J=K.value,G=K.cooked;return this.finalize(z,new X.TemplateElement({raw:J,cooked:G},K.tail))},W.prototype.parseTemplateLiteral=function(){var z=this.createNode(),K=[],J=[],G=this.parseTemplateHead();J.push(G);while(!G.tail)K.push(this.parseExpression()),G=this.parseTemplateElement(),J.push(G);return this.finalize(z,new X.TemplateLiteral(J,K))},W.prototype.reinterpretExpressionAsPattern=function(z){switch(z.type){case j.Syntax.Identifier:case j.Syntax.MemberExpression:case j.Syntax.RestElement:case j.Syntax.AssignmentPattern:break;case j.Syntax.SpreadElement:z.type=j.Syntax.RestElement,this.reinterpretExpressionAsPattern(z.argument);break;case j.Syntax.ArrayExpression:z.type=j.Syntax.ArrayPattern;for(var K=0;K<z.elements.length;K++)if(z.elements[K]!==null)this.reinterpretExpressionAsPattern(z.elements[K]);break;case j.Syntax.ObjectExpression:z.type=j.Syntax.ObjectPattern;for(var K=0;K<z.properties.length;K++)this.reinterpretExpressionAsPattern(z.properties[K].value);break;case j.Syntax.AssignmentExpression:z.type=j.Syntax.AssignmentPattern,delete z.operator,this.reinterpretExpressionAsPattern(z.left);break;default:break}},W.prototype.parseGroupExpression=function(){var z;if(this.expect("("),this.match(")")){if(this.nextToken(),!this.match("=>"))this.expect("=>");z={type:q,params:[],async:!1}}else{var K=this.lookahead,J=[];if(this.match("...")){if(z=this.parseRestElement(J),this.expect(")"),!this.match("=>"))this.expect("=>");z={type:q,params:[z],async:!1}}else{var G=!1;if(this.context.isBindingElement=!0,z=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var M=[];this.context.isAssignmentTarget=!1,M.push(z);while(this.lookahead.type!==2){if(!this.match(","))break;if(this.nextToken(),this.match(")")){this.nextToken();for(var O=0;O<M.length;O++)this.reinterpretExpressionAsPattern(M[O]);G=!0,z={type:q,params:M,async:!1}}else if(this.match("...")){if(!this.context.isBindingElement)this.throwUnexpectedToken(this.lookahead);if(M.push(this.parseRestElement(J)),this.expect(")"),!this.match("=>"))this.expect("=>");this.context.isBindingElement=!1;for(var O=0;O<M.length;O++)this.reinterpretExpressionAsPattern(M[O]);G=!0,z={type:q,params:M,async:!1}}else M.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(G)break}if(!G)z=this.finalize(this.startNode(K),new X.SequenceExpression(M))}if(!G){if(this.expect(")"),this.match("=>")){if(z.type===j.Syntax.Identifier&&z.name==="yield")G=!0,z={type:q,params:[z],async:!1};if(!G){if(!this.context.isBindingElement)this.throwUnexpectedToken(this.lookahead);if(z.type===j.Syntax.SequenceExpression)for(var O=0;O<z.expressions.length;O++)this.reinterpretExpressionAsPattern(z.expressions[O]);else this.reinterpretExpressionAsPattern(z);var V=z.type===j.Syntax.SequenceExpression?z.expressions:[z];z={type:q,params:V,async:!1}}}this.context.isBindingElement=!1}}}return z},W.prototype.parseArguments=function(){this.expect("(");var z=[];if(!this.match(")"))while(!0){var K=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(z.push(K),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),z},W.prototype.isIdentifierName=function(z){return z.type===3||z.type===4||z.type===1||z.type===5},W.prototype.parseIdentifierName=function(){var z=this.createNode(),K=this.nextToken();if(!this.isIdentifierName(K))this.throwUnexpectedToken(K);return this.finalize(z,new X.Identifier(K.value))},W.prototype.parseNewExpression=function(){var z=this.createNode(),K=this.parseIdentifierName();$.assert(K.name==="new","New expression must start with `new`");var J;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var G=this.parseIdentifierName();J=new X.MetaProperty(K,G)}else this.throwUnexpectedToken(this.lookahead);else{var M=this.isolateCoverGrammar(this.parseLeftHandSideExpression),O=this.match("(")?this.parseArguments():[];J=new X.NewExpression(M,O),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(z,J)},W.prototype.parseAsyncArgument=function(){var z=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,z},W.prototype.parseAsyncArguments=function(){this.expect("(");var z=[];if(!this.match(")"))while(!0){var K=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(z.push(K),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),z},W.prototype.parseLeftHandSideExpressionAllowCall=function(){var z=this.lookahead,K=this.matchContextualKeyword("async"),J=this.context.allowIn;this.context.allowIn=!0;var G;if(this.matchKeyword("super")&&this.context.inFunctionBody){if(G=this.createNode(),this.nextToken(),G=this.finalize(G,new X.Super),!this.match("(")&&!this.match(".")&&!this.match("["))this.throwUnexpectedToken(this.lookahead)}else G=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);while(!0)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var M=this.parseIdentifierName();G=this.finalize(this.startNode(z),new X.StaticMemberExpression(G,M))}else if(this.match("(")){var O=K&&z.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var V=O?this.parseAsyncArguments():this.parseArguments();if(G=this.finalize(this.startNode(z),new X.CallExpression(G,V)),O&&this.match("=>")){for(var I=0;I<V.length;++I)this.reinterpretExpressionAsPattern(V[I]);G={type:q,params:V,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var M=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),G=this.finalize(this.startNode(z),new X.ComputedMemberExpression(G,M))}else if(this.lookahead.type===10&&this.lookahead.head){var F=this.parseTemplateLiteral();G=this.finalize(this.startNode(z),new X.TaggedTemplateExpression(G,F))}else break;return this.context.allowIn=J,G},W.prototype.parseSuper=function(){var z=this.createNode();if(this.expectKeyword("super"),!this.match("[")&&!this.match("."))this.throwUnexpectedToken(this.lookahead);return this.finalize(z,new X.Super)},W.prototype.parseLeftHandSideExpression=function(){$.assert(this.context.allowIn,"callee of new expression always allow in keyword.");var z=this.startNode(this.lookahead),K=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);while(!0)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var J=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),K=this.finalize(z,new X.ComputedMemberExpression(K,J))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var J=this.parseIdentifierName();K=this.finalize(z,new X.StaticMemberExpression(K,J))}else if(this.lookahead.type===10&&this.lookahead.head){var G=this.parseTemplateLiteral();K=this.finalize(z,new X.TaggedTemplateExpression(K,G))}else break;return K},W.prototype.parseUpdateExpression=function(){var z,K=this.lookahead;if(this.match("++")||this.match("--")){var J=this.startNode(K),G=this.nextToken();if(z=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&z.type===j.Syntax.Identifier&&this.scanner.isRestrictedWord(z.name))this.tolerateError(D.Messages.StrictLHSPrefix);if(!this.context.isAssignmentTarget)this.tolerateError(D.Messages.InvalidLHSInAssignment);var M=!0;z=this.finalize(J,new X.UpdateExpression(G.value,z,M)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(z=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7){if(this.match("++")||this.match("--")){if(this.context.strict&&z.type===j.Syntax.Identifier&&this.scanner.isRestrictedWord(z.name))this.tolerateError(D.Messages.StrictLHSPostfix);if(!this.context.isAssignmentTarget)this.tolerateError(D.Messages.InvalidLHSInAssignment);this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var O=this.nextToken().value,M=!1;z=this.finalize(this.startNode(K),new X.UpdateExpression(O,z,M))}}return z},W.prototype.parseAwaitExpression=function(){var z=this.createNode();this.nextToken();var K=this.parseUnaryExpression();return this.finalize(z,new X.AwaitExpression(K))},W.prototype.parseUnaryExpression=function(){var z;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var K=this.startNode(this.lookahead),J=this.nextToken();if(z=this.inheritCoverGrammar(this.parseUnaryExpression),z=this.finalize(K,new X.UnaryExpression(J.value,z)),this.context.strict&&z.operator==="delete"&&z.argument.type===j.Syntax.Identifier)this.tolerateError(D.Messages.StrictDelete);this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(this.context.await&&this.matchContextualKeyword("await"))z=this.parseAwaitExpression();else z=this.parseUpdateExpression();return z},W.prototype.parseExponentiationExpression=function(){var z=this.lookahead,K=this.inheritCoverGrammar(this.parseUnaryExpression);if(K.type!==j.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var J=K,G=this.isolateCoverGrammar(this.parseExponentiationExpression);K=this.finalize(this.startNode(z),new X.BinaryExpression("**",J,G))}return K},W.prototype.binaryPrecedence=function(z){var K=z.value,J;if(z.type===7)J=this.operatorPrecedence[K]||0;else if(z.type===4)J=K==="instanceof"||this.context.allowIn&&K==="in"?7:0;else J=0;return J},W.prototype.parseBinaryExpression=function(){var z=this.lookahead,K=this.inheritCoverGrammar(this.parseExponentiationExpression),J=this.lookahead,G=this.binaryPrecedence(J);if(G>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var M=[z,this.lookahead],O=K,V=this.isolateCoverGrammar(this.parseExponentiationExpression),I=[O,J.value,V],F=[G];while(!0){if(G=this.binaryPrecedence(this.lookahead),G<=0)break;while(I.length>2&&G<=F[F.length-1]){V=I.pop();var C=I.pop();F.pop(),O=I.pop(),M.pop();var N=this.startNode(M[M.length-1]);I.push(this.finalize(N,new X.BinaryExpression(C,O,V)))}I.push(this.nextToken().value),F.push(G),M.push(this.lookahead),I.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var P=I.length-1;K=I[P];var g=M.pop();while(P>1){var h=M.pop(),l=g&&g.lineStart,N=this.startNode(h,l),C=I[P-1];K=this.finalize(N,new X.BinaryExpression(C,I[P-2],K)),P-=2,g=h}}return K},W.prototype.parseConditionalExpression=function(){var z=this.lookahead,K=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var J=this.context.allowIn;this.context.allowIn=!0;var G=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=J,this.expect(":");var M=this.isolateCoverGrammar(this.parseAssignmentExpression);K=this.finalize(this.startNode(z),new X.ConditionalExpression(K,G,M)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return K},W.prototype.checkPatternParam=function(z,K){switch(K.type){case j.Syntax.Identifier:this.validateParam(z,K,K.name);break;case j.Syntax.RestElement:this.checkPatternParam(z,K.argument);break;case j.Syntax.AssignmentPattern:this.checkPatternParam(z,K.left);break;case j.Syntax.ArrayPattern:for(var J=0;J<K.elements.length;J++)if(K.elements[J]!==null)this.checkPatternParam(z,K.elements[J]);break;case j.Syntax.ObjectPattern:for(var J=0;J<K.properties.length;J++)this.checkPatternParam(z,K.properties[J].value);break;default:break}z.simple=z.simple&&K instanceof X.Identifier},W.prototype.reinterpretAsCoverFormalsList=function(z){var K=[z],J,G=!1;switch(z.type){case j.Syntax.Identifier:break;case q:K=z.params,G=z.async;break;default:return null}J={simple:!0,paramSet:{}};for(var M=0;M<K.length;++M){var O=K[M];if(O.type===j.Syntax.AssignmentPattern){if(O.right.type===j.Syntax.YieldExpression){if(O.right.argument)this.throwUnexpectedToken(this.lookahead);O.right.type=j.Syntax.Identifier,O.right.name="yield",delete O.right.argument,delete O.right.delegate}}else if(G&&O.type===j.Syntax.Identifier&&O.name==="await")this.throwUnexpectedToken(this.lookahead);this.checkPatternParam(J,O),K[M]=O}if(this.context.strict||!this.context.allowYield)for(var M=0;M<K.length;++M){var O=K[M];if(O.type===j.Syntax.YieldExpression)this.throwUnexpectedToken(this.lookahead)}if(J.message===D.Messages.StrictParamDupe){var V=this.context.strict?J.stricted:J.firstRestricted;this.throwUnexpectedToken(V,J.message)}return{simple:J.simple,params:K,stricted:J.stricted,firstRestricted:J.firstRestricted,message:J.message}},W.prototype.parseAssignmentExpression=function(){var z;if(!this.context.allowYield&&this.matchKeyword("yield"))z=this.parseYieldExpression();else{var K=this.lookahead,J=K;if(z=this.parseConditionalExpression(),J.type===3&&J.lineNumber===this.lookahead.lineNumber&&J.value==="async"){if(this.lookahead.type===3||this.matchKeyword("yield")){var G=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(G),z={type:q,params:[G],async:!0}}}if(z.type===q||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var M=z.async,O=this.reinterpretAsCoverFormalsList(z);if(O){if(this.hasLineTerminator)this.tolerateUnexpectedToken(this.lookahead);this.context.firstCoverInitializedNameError=null;var V=this.context.strict,I=this.context.allowStrictDirective;this.context.allowStrictDirective=O.simple;var F=this.context.allowYield,C=this.context.await;this.context.allowYield=!0,this.context.await=M;var N=this.startNode(K);this.expect("=>");var P=void 0;if(this.match("{")){var g=this.context.allowIn;this.context.allowIn=!0,P=this.parseFunctionSourceElements(),this.context.allowIn=g}else P=this.isolateCoverGrammar(this.parseAssignmentExpression);var h=P.type!==j.Syntax.BlockStatement;if(this.context.strict&&O.firstRestricted)this.throwUnexpectedToken(O.firstRestricted,O.message);if(this.context.strict&&O.stricted)this.tolerateUnexpectedToken(O.stricted,O.message);z=M?this.finalize(N,new X.AsyncArrowFunctionExpression(O.params,P,h)):this.finalize(N,new X.ArrowFunctionExpression(O.params,P,h)),this.context.strict=V,this.context.allowStrictDirective=I,this.context.allowYield=F,this.context.await=C}}else if(this.matchAssign()){if(!this.context.isAssignmentTarget)this.tolerateError(D.Messages.InvalidLHSInAssignment);if(this.context.strict&&z.type===j.Syntax.Identifier){var l=z;if(this.scanner.isRestrictedWord(l.name))this.tolerateUnexpectedToken(J,D.Messages.StrictLHSAssignment);if(this.scanner.isStrictModeReservedWord(l.name))this.tolerateUnexpectedToken(J,D.Messages.StrictReservedWord)}if(!this.match("="))this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;else this.reinterpretExpressionAsPattern(z);J=this.nextToken();var z1=J.value,A1=this.isolateCoverGrammar(this.parseAssignmentExpression);z=this.finalize(this.startNode(K),new X.AssignmentExpression(z1,z,A1)),this.context.firstCoverInitializedNameError=null}}return z},W.prototype.parseExpression=function(){var z=this.lookahead,K=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var J=[];J.push(K);while(this.lookahead.type!==2){if(!this.match(","))break;this.nextToken(),J.push(this.isolateCoverGrammar(this.parseAssignmentExpression))}K=this.finalize(this.startNode(z),new X.SequenceExpression(J))}return K},W.prototype.parseStatementListItem=function(){var z;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":if(!this.context.isModule)this.tolerateUnexpectedToken(this.lookahead,D.Messages.IllegalExportDeclaration);z=this.parseExportDeclaration();break;case"import":if(!this.context.isModule)this.tolerateUnexpectedToken(this.lookahead,D.Messages.IllegalImportDeclaration);z=this.parseImportDeclaration();break;case"const":z=this.parseLexicalDeclaration({inFor:!1});break;case"function":z=this.parseFunctionDeclaration();break;case"class":z=this.parseClassDeclaration();break;case"let":z=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:z=this.parseStatement();break}else z=this.parseStatement();return z},W.prototype.parseBlock=function(){var z=this.createNode();this.expect("{");var K=[];while(!0){if(this.match("}"))break;K.push(this.parseStatementListItem())}return this.expect("}"),this.finalize(z,new X.BlockStatement(K))},W.prototype.parseLexicalBinding=function(z,K){var J=this.createNode(),G=[],M=this.parsePattern(G,z);if(this.context.strict&&M.type===j.Syntax.Identifier){if(this.scanner.isRestrictedWord(M.name))this.tolerateError(D.Messages.StrictVarName)}var O=null;if(z==="const"){if(!this.matchKeyword("in")&&!this.matchContextualKeyword("of"))if(this.match("="))this.nextToken(),O=this.isolateCoverGrammar(this.parseAssignmentExpression);else this.throwError(D.Messages.DeclarationMissingInitializer,"const")}else if(!K.inFor&&M.type!==j.Syntax.Identifier||this.match("="))this.expect("="),O=this.isolateCoverGrammar(this.parseAssignmentExpression);return this.finalize(J,new X.VariableDeclarator(M,O))},W.prototype.parseBindingList=function(z,K){var J=[this.parseLexicalBinding(z,K)];while(this.match(","))this.nextToken(),J.push(this.parseLexicalBinding(z,K));return J},W.prototype.isLexicalDeclaration=function(){var z=this.scanner.saveState();this.scanner.scanComments();var K=this.scanner.lex();return this.scanner.restoreState(z),K.type===3||K.type===7&&K.value==="["||K.type===7&&K.value==="{"||K.type===4&&K.value==="let"||K.type===4&&K.value==="yield"},W.prototype.parseLexicalDeclaration=function(z){var K=this.createNode(),J=this.nextToken().value;$.assert(J==="let"||J==="const","Lexical declaration must be either let or const");var G=this.parseBindingList(J,z);return this.consumeSemicolon(),this.finalize(K,new X.VariableDeclaration(G,J))},W.prototype.parseBindingRestElement=function(z,K){var J=this.createNode();this.expect("...");var G=this.parsePattern(z,K);return this.finalize(J,new X.RestElement(G))},W.prototype.parseArrayPattern=function(z,K){var J=this.createNode();this.expect("[");var G=[];while(!this.match("]"))if(this.match(","))this.nextToken(),G.push(null);else{if(this.match("...")){G.push(this.parseBindingRestElement(z,K));break}else G.push(this.parsePatternWithDefault(z,K));if(!this.match("]"))this.expect(",")}return this.expect("]"),this.finalize(J,new X.ArrayPattern(G))},W.prototype.parsePropertyPattern=function(z,K){var J=this.createNode(),G=!1,M=!1,O=!1,V,I;if(this.lookahead.type===3){var F=this.lookahead;V=this.parseVariableIdentifier();var C=this.finalize(J,new X.Identifier(F.value));if(this.match("=")){z.push(F),M=!0,this.nextToken();var N=this.parseAssignmentExpression();I=this.finalize(this.startNode(F),new X.AssignmentPattern(C,N))}else if(!this.match(":"))z.push(F),M=!0,I=C;else this.expect(":"),I=this.parsePatternWithDefault(z,K)}else G=this.match("["),V=this.parseObjectPropertyKey(),this.expect(":"),I=this.parsePatternWithDefault(z,K);return this.finalize(J,new X.Property("init",V,G,I,O,M))},W.prototype.parseObjectPattern=function(z,K){var J=this.createNode(),G=[];this.expect("{");while(!this.match("}"))if(G.push(this.parsePropertyPattern(z,K)),!this.match("}"))this.expect(",");return this.expect("}"),this.finalize(J,new X.ObjectPattern(G))},W.prototype.parsePattern=function(z,K){var J;if(this.match("["))J=this.parseArrayPattern(z,K);else if(this.match("{"))J=this.parseObjectPattern(z,K);else{if(this.matchKeyword("let")&&(K==="const"||K==="let"))this.tolerateUnexpectedToken(this.lookahead,D.Messages.LetInLexicalBinding);z.push(this.lookahead),J=this.parseVariableIdentifier(K)}return J},W.prototype.parsePatternWithDefault=function(z,K){var J=this.lookahead,G=this.parsePattern(z,K);if(this.match("=")){this.nextToken();var M=this.context.allowYield;this.context.allowYield=!0;var O=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=M,G=this.finalize(this.startNode(J),new X.AssignmentPattern(G,O))}return G},W.prototype.parseVariableIdentifier=function(z){var K=this.createNode(),J=this.nextToken();if(J.type===4&&J.value==="yield"){if(this.context.strict)this.tolerateUnexpectedToken(J,D.Messages.StrictReservedWord);else if(!this.context.allowYield)this.throwUnexpectedToken(J)}else if(J.type!==3){if(this.context.strict&&J.type===4&&this.scanner.isStrictModeReservedWord(J.value))this.tolerateUnexpectedToken(J,D.Messages.StrictReservedWord);else if(this.context.strict||J.value!=="let"||z!=="var")this.throwUnexpectedToken(J)}else if((this.context.isModule||this.context.await)&&J.type===3&&J.value==="await")this.tolerateUnexpectedToken(J);return this.finalize(K,new X.Identifier(J.value))},W.prototype.parseVariableDeclaration=function(z){var K=this.createNode(),J=[],G=this.parsePattern(J,"var");if(this.context.strict&&G.type===j.Syntax.Identifier){if(this.scanner.isRestrictedWord(G.name))this.tolerateError(D.Messages.StrictVarName)}var M=null;if(this.match("="))this.nextToken(),M=this.isolateCoverGrammar(this.parseAssignmentExpression);else if(G.type!==j.Syntax.Identifier&&!z.inFor)this.expect("=");return this.finalize(K,new X.VariableDeclarator(G,M))},W.prototype.parseVariableDeclarationList=function(z){var K={inFor:z.inFor},J=[];J.push(this.parseVariableDeclaration(K));while(this.match(","))this.nextToken(),J.push(this.parseVariableDeclaration(K));return J},W.prototype.parseVariableStatement=function(){var z=this.createNode();this.expectKeyword("var");var K=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(z,new X.VariableDeclaration(K,"var"))},W.prototype.parseEmptyStatement=function(){var z=this.createNode();return this.expect(";"),this.finalize(z,new X.EmptyStatement)},W.prototype.parseExpressionStatement=function(){var z=this.createNode(),K=this.parseExpression();return this.consumeSemicolon(),this.finalize(z,new X.ExpressionStatement(K))},W.prototype.parseIfClause=function(){if(this.context.strict&&this.matchKeyword("function"))this.tolerateError(D.Messages.StrictFunction);return this.parseStatement()},W.prototype.parseIfStatement=function(){var z=this.createNode(),K,J=null;this.expectKeyword("if"),this.expect("(");var G=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),K=this.finalize(this.createNode(),new X.EmptyStatement);else if(this.expect(")"),K=this.parseIfClause(),this.matchKeyword("else"))this.nextToken(),J=this.parseIfClause();return this.finalize(z,new X.IfStatement(G,K,J))},W.prototype.parseDoWhileStatement=function(){var z=this.createNode();this.expectKeyword("do");var K=this.context.inIteration;this.context.inIteration=!0;var J=this.parseStatement();this.context.inIteration=K,this.expectKeyword("while"),this.expect("(");var G=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken());else if(this.expect(")"),this.match(";"))this.nextToken();return this.finalize(z,new X.DoWhileStatement(J,G))},W.prototype.parseWhileStatement=function(){var z=this.createNode(),K;this.expectKeyword("while"),this.expect("(");var J=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),K=this.finalize(this.createNode(),new X.EmptyStatement);else{this.expect(")");var G=this.context.inIteration;this.context.inIteration=!0,K=this.parseStatement(),this.context.inIteration=G}return this.finalize(z,new X.WhileStatement(J,K))},W.prototype.parseForStatement=function(){var z=null,K=null,J=null,G=!0,M,O,V=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){z=this.createNode(),this.nextToken();var I=this.context.allowIn;this.context.allowIn=!1;var F=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=I,F.length===1&&this.matchKeyword("in")){var C=F[0];if(C.init&&(C.id.type===j.Syntax.ArrayPattern||C.id.type===j.Syntax.ObjectPattern||this.context.strict))this.tolerateError(D.Messages.ForInOfLoopInitializer,"for-in");z=this.finalize(z,new X.VariableDeclaration(F,"var")),this.nextToken(),M=z,O=this.parseExpression(),z=null}else if(F.length===1&&F[0].init===null&&this.matchContextualKeyword("of"))z=this.finalize(z,new X.VariableDeclaration(F,"var")),this.nextToken(),M=z,O=this.parseAssignmentExpression(),z=null,G=!1;else z=this.finalize(z,new X.VariableDeclaration(F,"var")),this.expect(";")}else if(this.matchKeyword("const")||this.matchKeyword("let")){z=this.createNode();var N=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")z=this.finalize(z,new X.Identifier(N)),this.nextToken(),M=z,O=this.parseExpression(),z=null;else{var I=this.context.allowIn;this.context.allowIn=!1;var F=this.parseBindingList(N,{inFor:!0});if(this.context.allowIn=I,F.length===1&&F[0].init===null&&this.matchKeyword("in"))z=this.finalize(z,new X.VariableDeclaration(F,N)),this.nextToken(),M=z,O=this.parseExpression(),z=null;else if(F.length===1&&F[0].init===null&&this.matchContextualKeyword("of"))z=this.finalize(z,new X.VariableDeclaration(F,N)),this.nextToken(),M=z,O=this.parseAssignmentExpression(),z=null,G=!1;else this.consumeSemicolon(),z=this.finalize(z,new X.VariableDeclaration(F,N))}}else{var P=this.lookahead,I=this.context.allowIn;if(this.context.allowIn=!1,z=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=I,this.matchKeyword("in")){if(!this.context.isAssignmentTarget||z.type===j.Syntax.AssignmentExpression)this.tolerateError(D.Messages.InvalidLHSInForIn);this.nextToken(),this.reinterpretExpressionAsPattern(z),M=z,O=this.parseExpression(),z=null}else if(this.matchContextualKeyword("of")){if(!this.context.isAssignmentTarget||z.type===j.Syntax.AssignmentExpression)this.tolerateError(D.Messages.InvalidLHSInForLoop);this.nextToken(),this.reinterpretExpressionAsPattern(z),M=z,O=this.parseAssignmentExpression(),z=null,G=!1}else{if(this.match(",")){var g=[z];while(this.match(","))this.nextToken(),g.push(this.isolateCoverGrammar(this.parseAssignmentExpression));z=this.finalize(this.startNode(P),new X.SequenceExpression(g))}this.expect(";")}}if(typeof M>"u"){if(!this.match(";"))K=this.parseExpression();if(this.expect(";"),!this.match(")"))J=this.parseExpression()}var h;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),h=this.finalize(this.createNode(),new X.EmptyStatement);else{this.expect(")");var l=this.context.inIteration;this.context.inIteration=!0,h=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=l}return typeof M>"u"?this.finalize(V,new X.ForStatement(z,K,J,h)):G?this.finalize(V,new X.ForInStatement(M,O,h)):this.finalize(V,new X.ForOfStatement(M,O,h))},W.prototype.parseContinueStatement=function(){var z=this.createNode();this.expectKeyword("continue");var K=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var J=this.parseVariableIdentifier();K=J;var G="$"+J.name;if(!Object.prototype.hasOwnProperty.call(this.context.labelSet,G))this.throwError(D.Messages.UnknownLabel,J.name)}if(this.consumeSemicolon(),K===null&&!this.context.inIteration)this.throwError(D.Messages.IllegalContinue);return this.finalize(z,new X.ContinueStatement(K))},W.prototype.parseBreakStatement=function(){var z=this.createNode();this.expectKeyword("break");var K=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var J=this.parseVariableIdentifier(),G="$"+J.name;if(!Object.prototype.hasOwnProperty.call(this.context.labelSet,G))this.throwError(D.Messages.UnknownLabel,J.name);K=J}if(this.consumeSemicolon(),K===null&&!this.context.inIteration&&!this.context.inSwitch)this.throwError(D.Messages.IllegalBreak);return this.finalize(z,new X.BreakStatement(K))},W.prototype.parseReturnStatement=function(){if(!this.context.inFunctionBody)this.tolerateError(D.Messages.IllegalReturn);var z=this.createNode();this.expectKeyword("return");var K=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,J=K?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(z,new X.ReturnStatement(J))},W.prototype.parseWithStatement=function(){if(this.context.strict)this.tolerateError(D.Messages.StrictModeWith);var z=this.createNode(),K;this.expectKeyword("with"),this.expect("(");var J=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),K=this.finalize(this.createNode(),new X.EmptyStatement);else this.expect(")"),K=this.parseStatement();return this.finalize(z,new X.WithStatement(J,K))},W.prototype.parseSwitchCase=function(){var z=this.createNode(),K;if(this.matchKeyword("default"))this.nextToken(),K=null;else this.expectKeyword("case"),K=this.parseExpression();this.expect(":");var J=[];while(!0){if(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"))break;J.push(this.parseStatementListItem())}return this.finalize(z,new X.SwitchCase(K,J))},W.prototype.parseSwitchStatement=function(){var z=this.createNode();this.expectKeyword("switch"),this.expect("(");var K=this.parseExpression();this.expect(")");var J=this.context.inSwitch;this.context.inSwitch=!0;var G=[],M=!1;this.expect("{");while(!0){if(this.match("}"))break;var O=this.parseSwitchCase();if(O.test===null){if(M)this.throwError(D.Messages.MultipleDefaultsInSwitch);M=!0}G.push(O)}return this.expect("}"),this.context.inSwitch=J,this.finalize(z,new X.SwitchStatement(K,G))},W.prototype.parseLabelledStatement=function(){var z=this.createNode(),K=this.parseExpression(),J;if(K.type===j.Syntax.Identifier&&this.match(":")){this.nextToken();var G=K,M="$"+G.name;if(Object.prototype.hasOwnProperty.call(this.context.labelSet,M))this.throwError(D.Messages.Redeclaration,"Label",G.name);this.context.labelSet[M]=!0;var O=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),O=this.parseClassDeclaration();else if(this.matchKeyword("function")){var V=this.lookahead,I=this.parseFunctionDeclaration();if(this.context.strict)this.tolerateUnexpectedToken(V,D.Messages.StrictFunction);else if(I.generator)this.tolerateUnexpectedToken(V,D.Messages.GeneratorInLegacyContext);O=I}else O=this.parseStatement();delete this.context.labelSet[M],J=new X.LabeledStatement(G,O)}else this.consumeSemicolon(),J=new X.ExpressionStatement(K);return this.finalize(z,J)},W.prototype.parseThrowStatement=function(){var z=this.createNode();if(this.expectKeyword("throw"),this.hasLineTerminator)this.throwError(D.Messages.NewlineAfterThrow);var K=this.parseExpression();return this.consumeSemicolon(),this.finalize(z,new X.ThrowStatement(K))},W.prototype.parseCatchClause=function(){var z=this.createNode();if(this.expectKeyword("catch"),this.expect("("),this.match(")"))this.throwUnexpectedToken(this.lookahead);var K=[],J=this.parsePattern(K),G={};for(var M=0;M<K.length;M++){var O="$"+K[M].value;if(Object.prototype.hasOwnProperty.call(G,O))this.tolerateError(D.Messages.DuplicateBinding,K[M].value);G[O]=!0}if(this.context.strict&&J.type===j.Syntax.Identifier){if(this.scanner.isRestrictedWord(J.name))this.tolerateError(D.Messages.StrictCatchVariable)}this.expect(")");var V=this.parseBlock();return this.finalize(z,new X.CatchClause(J,V))},W.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},W.prototype.parseTryStatement=function(){var z=this.createNode();this.expectKeyword("try");var K=this.parseBlock(),J=this.matchKeyword("catch")?this.parseCatchClause():null,G=this.matchKeyword("finally")?this.parseFinallyClause():null;if(!J&&!G)this.throwError(D.Messages.NoCatchOrFinally);return this.finalize(z,new X.TryStatement(K,J,G))},W.prototype.parseDebuggerStatement=function(){var z=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(z,new X.DebuggerStatement)},W.prototype.parseStatement=function(){var z;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:z=this.parseExpressionStatement();break;case 7:var K=this.lookahead.value;if(K==="{")z=this.parseBlock();else if(K==="(")z=this.parseExpressionStatement();else if(K===";")z=this.parseEmptyStatement();else z=this.parseExpressionStatement();break;case 3:z=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":z=this.parseBreakStatement();break;case"continue":z=this.parseContinueStatement();break;case"debugger":z=this.parseDebuggerStatement();break;case"do":z=this.parseDoWhileStatement();break;case"for":z=this.parseForStatement();break;case"function":z=this.parseFunctionDeclaration();break;case"if":z=this.parseIfStatement();break;case"return":z=this.parseReturnStatement();break;case"switch":z=this.parseSwitchStatement();break;case"throw":z=this.parseThrowStatement();break;case"try":z=this.parseTryStatement();break;case"var":z=this.parseVariableStatement();break;case"while":z=this.parseWhileStatement();break;case"with":z=this.parseWithStatement();break;default:z=this.parseExpressionStatement();break}break;default:z=this.throwUnexpectedToken(this.lookahead)}return z},W.prototype.parseFunctionSourceElements=function(){var z=this.createNode();this.expect("{");var K=this.parseDirectivePrologues(),J=this.context.labelSet,G=this.context.inIteration,M=this.context.inSwitch,O=this.context.inFunctionBody;this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;while(this.lookahead.type!==2){if(this.match("}"))break;K.push(this.parseStatementListItem())}return this.expect("}"),this.context.labelSet=J,this.context.inIteration=G,this.context.inSwitch=M,this.context.inFunctionBody=O,this.finalize(z,new X.BlockStatement(K))},W.prototype.validateParam=function(z,K,J){var G="$"+J;if(this.context.strict){if(this.scanner.isRestrictedWord(J))z.stricted=K,z.message=D.Messages.StrictParamName;if(Object.prototype.hasOwnProperty.call(z.paramSet,G))z.stricted=K,z.message=D.Messages.StrictParamDupe}else if(!z.firstRestricted){if(this.scanner.isRestrictedWord(J))z.firstRestricted=K,z.message=D.Messages.StrictParamName;else if(this.scanner.isStrictModeReservedWord(J))z.firstRestricted=K,z.message=D.Messages.StrictReservedWord;else if(Object.prototype.hasOwnProperty.call(z.paramSet,G))z.stricted=K,z.message=D.Messages.StrictParamDupe}if(typeof Object.defineProperty==="function")Object.defineProperty(z.paramSet,G,{value:!0,enumerable:!0,writable:!0,configurable:!0});else z.paramSet[G]=!0},W.prototype.parseRestElement=function(z){var K=this.createNode();this.expect("...");var J=this.parsePattern(z);if(this.match("="))this.throwError(D.Messages.DefaultRestParameter);if(!this.match(")"))this.throwError(D.Messages.ParameterAfterRestParameter);return this.finalize(K,new X.RestElement(J))},W.prototype.parseFormalParameter=function(z){var K=[],J=this.match("...")?this.parseRestElement(K):this.parsePatternWithDefault(K);for(var G=0;G<K.length;G++)this.validateParam(z,K[G],K[G].value);z.simple=z.simple&&J instanceof X.Identifier,z.params.push(J)},W.prototype.parseFormalParameters=function(z){var K={simple:!0,params:[],firstRestricted:z};if(this.expect("("),!this.match(")")){K.paramSet={};while(this.lookahead.type!==2){if(this.parseFormalParameter(K),this.match(")"))break;if(this.expect(","),this.match(")"))break}}return this.expect(")"),{simple:K.simple,params:K.params,stricted:K.stricted,firstRestricted:K.firstRestricted,message:K.message}},W.prototype.matchAsyncFunction=function(){var z=this.matchContextualKeyword("async");if(z){var K=this.scanner.saveState();this.scanner.scanComments();var J=this.scanner.lex();this.scanner.restoreState(K),z=K.lineNumber===J.lineNumber&&J.type===4&&J.value==="function"}return z},W.prototype.parseFunctionDeclaration=function(z){var K=this.createNode(),J=this.matchContextualKeyword("async");if(J)this.nextToken();this.expectKeyword("function");var G=J?!1:this.match("*");if(G)this.nextToken();var M,O=null,V=null;if(!z||!this.match("(")){var I=this.lookahead;if(O=this.parseVariableIdentifier(),this.context.strict){if(this.scanner.isRestrictedWord(I.value))this.tolerateUnexpectedToken(I,D.Messages.StrictFunctionName)}else if(this.scanner.isRestrictedWord(I.value))V=I,M=D.Messages.StrictFunctionName;else if(this.scanner.isStrictModeReservedWord(I.value))V=I,M=D.Messages.StrictReservedWord}var F=this.context.await,C=this.context.allowYield;this.context.await=J,this.context.allowYield=!G;var N=this.parseFormalParameters(V),P=N.params,g=N.stricted;if(V=N.firstRestricted,N.message)M=N.message;var h=this.context.strict,l=this.context.allowStrictDirective;this.context.allowStrictDirective=N.simple;var z1=this.parseFunctionSourceElements();if(this.context.strict&&V)this.throwUnexpectedToken(V,M);if(this.context.strict&&g)this.tolerateUnexpectedToken(g,M);return this.context.strict=h,this.context.allowStrictDirective=l,this.context.await=F,this.context.allowYield=C,J?this.finalize(K,new X.AsyncFunctionDeclaration(O,P,z1)):this.finalize(K,new X.FunctionDeclaration(O,P,z1,G))},W.prototype.parseFunctionExpression=function(){var z=this.createNode(),K=this.matchContextualKeyword("async");if(K)this.nextToken();this.expectKeyword("function");var J=K?!1:this.match("*");if(J)this.nextToken();var G,M=null,O,V=this.context.await,I=this.context.allowYield;if(this.context.await=K,this.context.allowYield=!J,!this.match("(")){var F=this.lookahead;if(M=!this.context.strict&&!J&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict){if(this.scanner.isRestrictedWord(F.value))this.tolerateUnexpectedToken(F,D.Messages.StrictFunctionName)}else if(this.scanner.isRestrictedWord(F.value))O=F,G=D.Messages.StrictFunctionName;else if(this.scanner.isStrictModeReservedWord(F.value))O=F,G=D.Messages.StrictReservedWord}var C=this.parseFormalParameters(O),N=C.params,P=C.stricted;if(O=C.firstRestricted,C.message)G=C.message;var g=this.context.strict,h=this.context.allowStrictDirective;this.context.allowStrictDirective=C.simple;var l=this.parseFunctionSourceElements();if(this.context.strict&&O)this.throwUnexpectedToken(O,G);if(this.context.strict&&P)this.tolerateUnexpectedToken(P,G);return this.context.strict=g,this.context.allowStrictDirective=h,this.context.await=V,this.context.allowYield=I,K?this.finalize(z,new X.AsyncFunctionExpression(M,N,l)):this.finalize(z,new X.FunctionExpression(M,N,l,J))},W.prototype.parseDirective=function(){var z=this.lookahead,K=this.createNode(),J=this.parseExpression(),G=J.type===j.Syntax.Literal?this.getTokenRaw(z).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(K,G?new X.Directive(J,G):new X.ExpressionStatement(J))},W.prototype.parseDirectivePrologues=function(){var z=null,K=[];while(!0){var J=this.lookahead;if(J.type!==8)break;var G=this.parseDirective();K.push(G);var M=G.directive;if(typeof M!=="string")break;if(M==="use strict"){if(this.context.strict=!0,z)this.tolerateUnexpectedToken(z,D.Messages.StrictOctalLiteral);if(!this.context.allowStrictDirective)this.tolerateUnexpectedToken(J,D.Messages.IllegalLanguageModeDirective)}else if(!z&&J.octal)z=J}return K},W.prototype.qualifiedPropertyName=function(z){switch(z.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return z.value==="[";default:break}return!1},W.prototype.parseGetterMethod=function(){var z=this.createNode(),K=!1,J=this.context.allowYield;this.context.allowYield=!K;var G=this.parseFormalParameters();if(G.params.length>0)this.tolerateError(D.Messages.BadGetterArity);var M=this.parsePropertyMethod(G);return this.context.allowYield=J,this.finalize(z,new X.FunctionExpression(null,G.params,M,K))},W.prototype.parseSetterMethod=function(){var z=this.createNode(),K=!1,J=this.context.allowYield;this.context.allowYield=!K;var G=this.parseFormalParameters();if(G.params.length!==1)this.tolerateError(D.Messages.BadSetterArity);else if(G.params[0]instanceof X.RestElement)this.tolerateError(D.Messages.BadSetterRestParameter);var M=this.parsePropertyMethod(G);return this.context.allowYield=J,this.finalize(z,new X.FunctionExpression(null,G.params,M,K))},W.prototype.parseGeneratorMethod=function(){var z=this.createNode(),K=!0,J=this.context.allowYield;this.context.allowYield=!0;var G=this.parseFormalParameters();this.context.allowYield=!1;var M=this.parsePropertyMethod(G);return this.context.allowYield=J,this.finalize(z,new X.FunctionExpression(null,G.params,M,K))},W.prototype.isStartOfExpression=function(){var z=!0,K=this.lookahead.value;switch(this.lookahead.type){case 7:z=K==="["||K==="("||K==="{"||K==="+"||K==="-"||K==="!"||K==="~"||K==="++"||K==="--"||K==="/"||K==="/=";break;case 4:z=K==="class"||K==="delete"||K==="function"||K==="let"||K==="new"||K==="super"||K==="this"||K==="typeof"||K==="void"||K==="yield";break;default:break}return z},W.prototype.parseYieldExpression=function(){var z=this.createNode();this.expectKeyword("yield");var K=null,J=!1;if(!this.hasLineTerminator){var G=this.context.allowYield;if(this.context.allowYield=!1,J=this.match("*"),J)this.nextToken(),K=this.parseAssignmentExpression();else if(this.isStartOfExpression())K=this.parseAssignmentExpression();this.context.allowYield=G}return this.finalize(z,new X.YieldExpression(K,J))},W.prototype.parseClassElement=function(z){var K=this.lookahead,J=this.createNode(),G="",M=null,O=null,V=!1,I=!1,F=!1,C=!1;if(this.match("*"))this.nextToken();else{V=this.match("["),M=this.parseObjectPropertyKey();var N=M;if(N.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*")))if(K=this.lookahead,F=!0,V=this.match("["),this.match("*"))this.nextToken();else M=this.parseObjectPropertyKey();if(K.type===3&&!this.hasLineTerminator&&K.value==="async"){var P=this.lookahead.value;if(P!==":"&&P!=="("&&P!=="*"){if(C=!0,K=this.lookahead,M=this.parseObjectPropertyKey(),K.type===3&&K.value==="constructor")this.tolerateUnexpectedToken(K,D.Messages.ConstructorIsAsync)}}}var g=this.qualifiedPropertyName(this.lookahead);if(K.type===3){if(K.value==="get"&&g)G="get",V=this.match("["),M=this.parseObjectPropertyKey(),this.context.allowYield=!1,O=this.parseGetterMethod();else if(K.value==="set"&&g)G="set",V=this.match("["),M=this.parseObjectPropertyKey(),O=this.parseSetterMethod()}else if(K.type===7&&K.value==="*"&&g)G="init",V=this.match("["),M=this.parseObjectPropertyKey(),O=this.parseGeneratorMethod(),I=!0;if(!G&&M&&this.match("("))G="init",O=C?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),I=!0;if(!G)this.throwUnexpectedToken(this.lookahead);if(G==="init")G="method";if(!V){if(F&&this.isPropertyKey(M,"prototype"))this.throwUnexpectedToken(K,D.Messages.StaticPrototype);if(!F&&this.isPropertyKey(M,"constructor")){if(G!=="method"||!I||O&&O.generator)this.throwUnexpectedToken(K,D.Messages.ConstructorSpecialMethod);if(z.value)this.throwUnexpectedToken(K,D.Messages.DuplicateConstructor);else z.value=!0;G="constructor"}}return this.finalize(J,new X.MethodDefinition(M,V,O,G,F))},W.prototype.parseClassElementList=function(){var z=[],K={value:!1};this.expect("{");while(!this.match("}"))if(this.match(";"))this.nextToken();else z.push(this.parseClassElement(K));return this.expect("}"),z},W.prototype.parseClassBody=function(){var z=this.createNode(),K=this.parseClassElementList();return this.finalize(z,new X.ClassBody(K))},W.prototype.parseClassDeclaration=function(z){var K=this.createNode(),J=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var G=z&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),M=null;if(this.matchKeyword("extends"))this.nextToken(),M=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall);var O=this.parseClassBody();return this.context.strict=J,this.finalize(K,new X.ClassDeclaration(G,M,O))},W.prototype.parseClassExpression=function(){var z=this.createNode(),K=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var J=this.lookahead.type===3?this.parseVariableIdentifier():null,G=null;if(this.matchKeyword("extends"))this.nextToken(),G=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall);var M=this.parseClassBody();return this.context.strict=K,this.finalize(z,new X.ClassExpression(J,G,M))},W.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;var z=this.createNode(),K=this.parseDirectivePrologues();while(this.lookahead.type!==2)K.push(this.parseStatementListItem());return this.finalize(z,new X.Module(K))},W.prototype.parseScript=function(){var z=this.createNode(),K=this.parseDirectivePrologues();while(this.lookahead.type!==2)K.push(this.parseStatementListItem());return this.finalize(z,new X.Script(K))},W.prototype.parseModuleSpecifier=function(){var z=this.createNode();if(this.lookahead.type!==8)this.throwError(D.Messages.InvalidModuleSpecifier);var K=this.nextToken(),J=this.getTokenRaw(K);return this.finalize(z,new X.Literal(K.value,J))},W.prototype.parseImportSpecifier=function(){var z=this.createNode(),K,J;if(this.lookahead.type===3){if(K=this.parseVariableIdentifier(),J=K,this.matchContextualKeyword("as"))this.nextToken(),J=this.parseVariableIdentifier()}else if(K=this.parseIdentifierName(),J=K,this.matchContextualKeyword("as"))this.nextToken(),J=this.parseVariableIdentifier();else this.throwUnexpectedToken(this.nextToken());return this.finalize(z,new X.ImportSpecifier(J,K))},W.prototype.parseNamedImports=function(){this.expect("{");var z=[];while(!this.match("}"))if(z.push(this.parseImportSpecifier()),!this.match("}"))this.expect(",");return this.expect("}"),z},W.prototype.parseImportDefaultSpecifier=function(){var z=this.createNode(),K=this.parseIdentifierName();return this.finalize(z,new X.ImportDefaultSpecifier(K))},W.prototype.parseImportNamespaceSpecifier=function(){var z=this.createNode();if(this.expect("*"),!this.matchContextualKeyword("as"))this.throwError(D.Messages.NoAsAfterImportNamespace);this.nextToken();var K=this.parseIdentifierName();return this.finalize(z,new X.ImportNamespaceSpecifier(K))},W.prototype.parseImportDeclaration=function(){if(this.context.inFunctionBody)this.throwError(D.Messages.IllegalImportDeclaration);var z=this.createNode();this.expectKeyword("import");var K,J=[];if(this.lookahead.type===8)K=this.parseModuleSpecifier();else{if(this.match("{"))J=J.concat(this.parseNamedImports());else if(this.match("*"))J.push(this.parseImportNamespaceSpecifier());else if(this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")){if(J.push(this.parseImportDefaultSpecifier()),this.match(","))if(this.nextToken(),this.match("*"))J.push(this.parseImportNamespaceSpecifier());else if(this.match("{"))J=J.concat(this.parseNamedImports());else this.throwUnexpectedToken(this.lookahead)}else this.throwUnexpectedToken(this.nextToken());if(!this.matchContextualKeyword("from")){var G=this.lookahead.value?D.Messages.UnexpectedToken:D.Messages.MissingFromClause;this.throwError(G,this.lookahead.value)}this.nextToken(),K=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(z,new X.ImportDeclaration(J,K))},W.prototype.parseExportSpecifier=function(){var z=this.createNode(),K=this.parseIdentifierName(),J=K;if(this.matchContextualKeyword("as"))this.nextToken(),J=this.parseIdentifierName();return this.finalize(z,new X.ExportSpecifier(K,J))},W.prototype.parseExportDeclaration=function(){if(this.context.inFunctionBody)this.throwError(D.Messages.IllegalExportDeclaration);var z=this.createNode();this.expectKeyword("export");var K;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var J=this.parseFunctionDeclaration(!0);K=this.finalize(z,new X.ExportDefaultDeclaration(J))}else if(this.matchKeyword("class")){var J=this.parseClassDeclaration(!0);K=this.finalize(z,new X.ExportDefaultDeclaration(J))}else if(this.matchContextualKeyword("async")){var J=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();K=this.finalize(z,new X.ExportDefaultDeclaration(J))}else{if(this.matchContextualKeyword("from"))this.throwError(D.Messages.UnexpectedToken,this.lookahead.value);var J=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),K=this.finalize(z,new X.ExportDefaultDeclaration(J))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var G=this.lookahead.value?D.Messages.UnexpectedToken:D.Messages.MissingFromClause;this.throwError(G,this.lookahead.value)}this.nextToken();var M=this.parseModuleSpecifier();this.consumeSemicolon(),K=this.finalize(z,new X.ExportAllDeclaration(M))}else if(this.lookahead.type===4){var J=void 0;switch(this.lookahead.value){case"let":case"const":J=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":J=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}K=this.finalize(z,new X.ExportNamedDeclaration(J,[],null))}else if(this.matchAsyncFunction()){var J=this.parseFunctionDeclaration();K=this.finalize(z,new X.ExportNamedDeclaration(J,[],null))}else{var O=[],V=null,I=!1;this.expect("{");while(!this.match("}"))if(I=I||this.matchKeyword("default"),O.push(this.parseExportSpecifier()),!this.match("}"))this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),V=this.parseModuleSpecifier(),this.consumeSemicolon();else if(I){var G=this.lookahead.value?D.Messages.UnexpectedToken:D.Messages.MissingFromClause;this.throwError(G,this.lookahead.value)}else this.consumeSemicolon();K=this.finalize(z,new X.ExportNamedDeclaration(null,O,V))}return K},W}();Q.Parser=B},function(U,Q){Object.defineProperty(Q,"__esModule",{value:!0});function Z($,H){if(!$)throw Error("ASSERT: "+H)}Q.assert=Z},function(U,Q){Object.defineProperty(Q,"__esModule",{value:!0});var Z=function(){function $(){this.errors=[],this.tolerant=!1}return $.prototype.recordError=function(H){this.errors.push(H)},$.prototype.tolerate=function(H){if(this.tolerant)this.recordError(H);else throw H},$.prototype.constructError=function(H,D){var X=Error(H);try{throw X}catch(Y){if(Object.create&&Object.defineProperty)X=Object.create(Y),Object.defineProperty(X,"column",{value:D})}return X},$.prototype.createError=function(H,D,X,Y){var j="Line "+D+": "+Y,E=this.constructError(j,X);return E.index=H,E.lineNumber=D,E.description=Y,E},$.prototype.throwError=function(H,D,X,Y){throw this.createError(H,D,X,Y)},$.prototype.tolerateError=function(H,D,X,Y){var j=this.createError(H,D,X,Y);if(this.tolerant)this.recordError(j);else throw j},$}();Q.ErrorHandler=Z},function(U,Q){Object.defineProperty(Q,"__esModule",{value:!0}),Q.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(U,Q,Z){Object.defineProperty(Q,"__esModule",{value:!0});var $=Z(9),H=Z(4),D=Z(11);function X(E){return"0123456789abcdef".indexOf(E.toLowerCase())}function Y(E){return"01234567".indexOf(E)}var j=function(){function E(q,B){this.source=q,this.errorHandler=B,this.trackComment=!1,this.isModule=!1,this.length=q.length,this.index=0,this.lineNumber=q.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return E.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},E.prototype.restoreState=function(q){this.index=q.index,this.lineNumber=q.lineNumber,this.lineStart=q.lineStart},E.prototype.eof=function(){return this.index>=this.length},E.prototype.throwUnexpectedToken=function(q){if(q===void 0)q=D.Messages.UnexpectedTokenIllegal;return this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,q)},E.prototype.tolerateUnexpectedToken=function(q){if(q===void 0)q=D.Messages.UnexpectedTokenIllegal;this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,q)},E.prototype.skipSingleLineComment=function(q){var B=[],W,z;if(this.trackComment)B=[],W=this.index-q,z={start:{line:this.lineNumber,column:this.index-this.lineStart-q},end:{}};while(!this.eof()){var K=this.source.charCodeAt(this.index);if(++this.index,H.Character.isLineTerminator(K)){if(this.trackComment){z.end={line:this.lineNumber,column:this.index-this.lineStart-1};var J={multiLine:!1,slice:[W+q,this.index-1],range:[W,this.index-1],loc:z};B.push(J)}if(K===13&&this.source.charCodeAt(this.index)===10)++this.index;return++this.lineNumber,this.lineStart=this.index,B}}if(this.trackComment){z.end={line:this.lineNumber,column:this.index-this.lineStart};var J={multiLine:!1,slice:[W+q,this.index],range:[W,this.index],loc:z};B.push(J)}return B},E.prototype.skipMultiLineComment=function(){var q=[],B,W;if(this.trackComment)q=[],B=this.index-2,W={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}};while(!this.eof()){var z=this.source.charCodeAt(this.index);if(H.Character.isLineTerminator(z)){if(z===13&&this.source.charCodeAt(this.index+1)===10)++this.index;++this.lineNumber,++this.index,this.lineStart=this.index}else if(z===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){W.end={line:this.lineNumber,column:this.index-this.lineStart};var K={multiLine:!0,slice:[B+2,this.index-2],range:[B,this.index],loc:W};q.push(K)}return q}++this.index}else++this.index}if(this.trackComment){W.end={line:this.lineNumber,column:this.index-this.lineStart};var K={multiLine:!0,slice:[B+2,this.index],range:[B,this.index],loc:W};q.push(K)}return this.tolerateUnexpectedToken(),q},E.prototype.scanComments=function(){var q;if(this.trackComment)q=[];var B=this.index===0;while(!this.eof()){var W=this.source.charCodeAt(this.index);if(H.Character.isWhiteSpace(W))++this.index;else if(H.Character.isLineTerminator(W)){if(++this.index,W===13&&this.source.charCodeAt(this.index)===10)++this.index;++this.lineNumber,this.lineStart=this.index,B=!0}else if(W===47)if(W=this.source.charCodeAt(this.index+1),W===47){this.index+=2;var z=this.skipSingleLineComment(2);if(this.trackComment)q=q.concat(z);B=!0}else if(W===42){this.index+=2;var z=this.skipMultiLineComment();if(this.trackComment)q=q.concat(z)}else break;else if(B&&W===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var z=this.skipSingleLineComment(3);if(this.trackComment)q=q.concat(z)}else break;else if(W===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var z=this.skipSingleLineComment(4);if(this.trackComment)q=q.concat(z)}else break;else break}return q},E.prototype.isFutureReservedWord=function(q){switch(q){case"enum":case"export":case"import":case"super":return!0;default:return!1}},E.prototype.isStrictModeReservedWord=function(q){switch(q){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},E.prototype.isRestrictedWord=function(q){return q==="eval"||q==="arguments"},E.prototype.isKeyword=function(q){switch(q.length){case 2:return q==="if"||q==="in"||q==="do";case 3:return q==="var"||q==="for"||q==="new"||q==="try"||q==="let";case 4:return q==="this"||q==="else"||q==="case"||q==="void"||q==="with"||q==="enum";case 5:return q==="while"||q==="break"||q==="catch"||q==="throw"||q==="const"||q==="yield"||q==="class"||q==="super";case 6:return q==="return"||q==="typeof"||q==="delete"||q==="switch"||q==="export"||q==="import";case 7:return q==="default"||q==="finally"||q==="extends";case 8:return q==="function"||q==="continue"||q==="debugger";case 10:return q==="instanceof";default:return!1}},E.prototype.codePointAt=function(q){var B=this.source.charCodeAt(q);if(B>=55296&&B<=56319){var W=this.source.charCodeAt(q+1);if(W>=56320&&W<=57343){var z=B;B=(z-55296)*1024+W-56320+65536}}return B},E.prototype.scanHexEscape=function(q){var B=q==="u"?4:2,W=0;for(var z=0;z<B;++z)if(!this.eof()&&H.Character.isHexDigit(this.source.charCodeAt(this.index)))W=W*16+X(this.source[this.index++]);else return null;return String.fromCharCode(W)},E.prototype.scanUnicodeCodePointEscape=function(){var q=this.source[this.index],B=0;if(q==="}")this.throwUnexpectedToken();while(!this.eof()){if(q=this.source[this.index++],!H.Character.isHexDigit(q.charCodeAt(0)))break;B=B*16+X(q)}if(B>1114111||q!=="}")this.throwUnexpectedToken();return H.Character.fromCodePoint(B)},E.prototype.getIdentifier=function(){var q=this.index++;while(!this.eof()){var B=this.source.charCodeAt(this.index);if(B===92)return this.index=q,this.getComplexIdentifier();else if(B>=55296&&B<57343)return this.index=q,this.getComplexIdentifier();if(H.Character.isIdentifierPart(B))++this.index;else break}return this.source.slice(q,this.index)},E.prototype.getComplexIdentifier=function(){var q=this.codePointAt(this.index),B=H.Character.fromCodePoint(q);this.index+=B.length;var W;if(q===92){if(this.source.charCodeAt(this.index)!==117)this.throwUnexpectedToken();if(++this.index,this.source[this.index]==="{")++this.index,W=this.scanUnicodeCodePointEscape();else if(W=this.scanHexEscape("u"),W===null||W==="\\"||!H.Character.isIdentifierStart(W.charCodeAt(0)))this.throwUnexpectedToken();B=W}while(!this.eof()){if(q=this.codePointAt(this.index),!H.Character.isIdentifierPart(q))break;if(W=H.Character.fromCodePoint(q),B+=W,this.index+=W.length,q===92){if(B=B.substr(0,B.length-1),this.source.charCodeAt(this.index)!==117)this.throwUnexpectedToken();if(++this.index,this.source[this.index]==="{")++this.index,W=this.scanUnicodeCodePointEscape();else if(W=this.scanHexEscape("u"),W===null||W==="\\"||!H.Character.isIdentifierPart(W.charCodeAt(0)))this.throwUnexpectedToken();B+=W}}return B},E.prototype.octalToDecimal=function(q){var B=q!=="0",W=Y(q);if(!this.eof()&&H.Character.isOctalDigit(this.source.charCodeAt(this.index))){if(B=!0,W=W*8+Y(this.source[this.index++]),"0123".indexOf(q)>=0&&!this.eof()&&H.Character.isOctalDigit(this.source.charCodeAt(this.index)))W=W*8+Y(this.source[this.index++])}return{code:W,octal:B}},E.prototype.scanIdentifier=function(){var q,B=this.index,W=this.source.charCodeAt(B)===92?this.getComplexIdentifier():this.getIdentifier();if(W.length===1)q=3;else if(this.isKeyword(W))q=4;else if(W==="null")q=5;else if(W==="true"||W==="false")q=1;else q=3;if(q!==3&&B+W.length!==this.index){var z=this.index;this.index=B,this.tolerateUnexpectedToken(D.Messages.InvalidEscapedReservedWord),this.index=z}return{type:q,value:W,lineNumber:this.lineNumber,lineStart:this.lineStart,start:B,end:this.index}},E.prototype.scanPunctuator=function(){var q=this.index,B=this.source[this.index];switch(B){case"(":case"{":if(B==="{")this.curlyStack.push("{");++this.index;break;case".":if(++this.index,this.source[this.index]==="."&&this.source[this.index+1]===".")this.index+=2,B="...";break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:if(B=this.source.substr(this.index,4),B===">>>=")this.index+=4;else if(B=B.substr(0,3),B==="==="||B==="!=="||B===">>>"||B==="<<="||B===">>="||B==="**=")this.index+=3;else if(B=B.substr(0,2),B==="&&"||B==="||"||B==="=="||B==="!="||B==="+="||B==="-="||B==="*="||B==="/="||B==="++"||B==="--"||B==="<<"||B===">>"||B==="&="||B==="|="||B==="^="||B==="%="||B==="<="||B===">="||B==="=>"||B==="**")this.index+=2;else if(B=this.source[this.index],"<>=!+-*%&|^/".indexOf(B)>=0)++this.index}if(this.index===q)this.throwUnexpectedToken();return{type:7,value:B,lineNumber:this.lineNumber,lineStart:this.lineStart,start:q,end:this.index}},E.prototype.scanHexLiteral=function(q){var B="";while(!this.eof()){if(!H.Character.isHexDigit(this.source.charCodeAt(this.index)))break;B+=this.source[this.index++]}if(B.length===0)this.throwUnexpectedToken();if(H.Character.isIdentifierStart(this.source.charCodeAt(this.index)))this.throwUnexpectedToken();return{type:6,value:parseInt("0x"+B,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:q,end:this.index}},E.prototype.scanBinaryLiteral=function(q){var B="",W;while(!this.eof()){if(W=this.source[this.index],W!=="0"&&W!=="1")break;B+=this.source[this.index++]}if(B.length===0)this.throwUnexpectedToken();if(!this.eof()){if(W=this.source.charCodeAt(this.index),H.Character.isIdentifierStart(W)||H.Character.isDecimalDigit(W))this.throwUnexpectedToken()}return{type:6,value:parseInt(B,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:q,end:this.index}},E.prototype.scanOctalLiteral=function(q,B){var W="",z=!1;if(H.Character.isOctalDigit(q.charCodeAt(0)))z=!0,W="0"+this.source[this.index++];else++this.index;while(!this.eof()){if(!H.Character.isOctalDigit(this.source.charCodeAt(this.index)))break;W+=this.source[this.index++]}if(!z&&W.length===0)this.throwUnexpectedToken();if(H.Character.isIdentifierStart(this.source.charCodeAt(this.index))||H.Character.isDecimalDigit(this.source.charCodeAt(this.index)))this.throwUnexpectedToken();return{type:6,value:parseInt(W,8),octal:z,lineNumber:this.lineNumber,lineStart:this.lineStart,start:B,end:this.index}},E.prototype.isImplicitOctalLiteral=function(){for(var q=this.index+1;q<this.length;++q){var B=this.source[q];if(B==="8"||B==="9")return!1;if(!H.Character.isOctalDigit(B.charCodeAt(0)))return!0}return!0},E.prototype.scanNumericLiteral=function(){var q=this.index,B=this.source[q];$.assert(H.Character.isDecimalDigit(B.charCodeAt(0))||B===".","Numeric literal must start with a decimal digit or a decimal point");var W="";if(B!=="."){if(W=this.source[this.index++],B=this.source[this.index],W==="0"){if(B==="x"||B==="X")return++this.index,this.scanHexLiteral(q);if(B==="b"||B==="B")return++this.index,this.scanBinaryLiteral(q);if(B==="o"||B==="O")return this.scanOctalLiteral(B,q);if(B&&H.Character.isOctalDigit(B.charCodeAt(0))){if(this.isImplicitOctalLiteral())return this.scanOctalLiteral(B,q)}}while(H.Character.isDecimalDigit(this.source.charCodeAt(this.index)))W+=this.source[this.index++];B=this.source[this.index]}if(B==="."){W+=this.source[this.index++];while(H.Character.isDecimalDigit(this.source.charCodeAt(this.index)))W+=this.source[this.index++];B=this.source[this.index]}if(B==="e"||B==="E"){if(W+=this.source[this.index++],B=this.source[this.index],B==="+"||B==="-")W+=this.source[this.index++];if(H.Character.isDecimalDigit(this.source.charCodeAt(this.index)))while(H.Character.isDecimalDigit(this.source.charCodeAt(this.index)))W+=this.source[this.index++];else this.throwUnexpectedToken()}if(H.Character.isIdentifierStart(this.source.charCodeAt(this.index)))this.throwUnexpectedToken();return{type:6,value:parseFloat(W),lineNumber:this.lineNumber,lineStart:this.lineStart,start:q,end:this.index}},E.prototype.scanStringLiteral=function(){var q=this.index,B=this.source[q];$.assert(B==="'"||B==='"',"String literal must starts with a quote"),++this.index;var W=!1,z="";while(!this.eof()){var K=this.source[this.index++];if(K===B){B="";break}else if(K==="\\")if(K=this.source[this.index++],!K||!H.Character.isLineTerminator(K.charCodeAt(0)))switch(K){case"u":if(this.source[this.index]==="{")++this.index,z+=this.scanUnicodeCodePointEscape();else{var J=this.scanHexEscape(K);if(J===null)this.throwUnexpectedToken();z+=J}break;case"x":var G=this.scanHexEscape(K);if(G===null)this.throwUnexpectedToken(D.Messages.InvalidHexEscapeSequence);z+=G;break;case"n":z+=`
|
|
4
4
|
`;break;case"r":z+="\r";break;case"t":z+="\t";break;case"b":z+="\b";break;case"f":z+="\f";break;case"v":z+="\v";break;case"8":case"9":z+=K,this.tolerateUnexpectedToken();break;default:if(K&&H.Character.isOctalDigit(K.charCodeAt(0))){var M=this.octalToDecimal(K);W=M.octal||W,z+=String.fromCharCode(M.code)}else z+=K;break}else{if(++this.lineNumber,K==="\r"&&this.source[this.index]===`
|
|
5
5
|
`)++this.index;this.lineStart=this.index}else if(H.Character.isLineTerminator(K.charCodeAt(0)))break;else z+=K}if(B!=="")this.index=q,this.throwUnexpectedToken();return{type:8,value:z,octal:W,lineNumber:this.lineNumber,lineStart:this.lineStart,start:q,end:this.index}},E.prototype.scanTemplate=function(){var q="",B=!1,W=this.index,z=this.source[W]==="`",K=!1,J=2;++this.index;while(!this.eof()){var G=this.source[this.index++];if(G==="`"){J=1,K=!0,B=!0;break}else if(G==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,B=!0;break}q+=G}else if(G==="\\")if(G=this.source[this.index++],!H.Character.isLineTerminator(G.charCodeAt(0)))switch(G){case"n":q+=`
|
|
@@ -95,7 +95,7 @@ while`);return Y.push(" (",U.call(Z,"test"),");"),(0,R.concat)(Y)}case"DoExpress
|
|
|
95
95
|
`,j,`
|
|
96
96
|
}`);else if(Q.objectCurlySpacing)H.push("{ ",j," }");else H.push("{",j,"}")}}else H.push(D?"{ ":"{",(0,R.fromString)(", ").join(U.map(Z,"specifiers")),D?" }":"}");if($.source)H.push(" from ",U.call(Z,"source"),J8(U,Q,Z))}var E=(0,R.concat)(H);if(J0(E)!==";"&&!($.declaration&&($.declaration.type==="FunctionDeclaration"||$.declaration.type==="ClassDeclaration"||$.declaration.type==="TSModuleDeclaration"||$.declaration.type==="TSInterfaceDeclaration"||$.declaration.type==="TSEnumDeclaration")))E=(0,R.concat)([E,";"]);return E}function K0(U,Q){var Z=M1.getParentExportDeclaration(U);if(Z)(0,q1.default)(Z.type==="DeclareExportDeclaration");else Q.unshift("declare ");return(0,R.concat)(Q)}function Y0(U,Q){return U.call(function(Z){var $=Z.getValue();if($){if($==="plus")return(0,R.fromString)("+");if($==="minus")return(0,R.fromString)("-");return Q(Z)}return(0,R.fromString)("")},"variance")}function g1(U,Q){if(U.length>1)return(0,R.concat)([" ",U]);return(0,R.concat)([`
|
|
97
97
|
`,k0(U).indent(Q.tabWidth)])}function J0(U){var Q=U.lastPos();do{var Z=U.charAt(Q);if(/\S/.test(Z))return Z}while(U.prevPos(Q))}function Y8(U){return J0(U)==="}"}function x0(U){return U.replace(/['"]/g,function(Q){return Q==='"'?"'":'"'})}function p1(U){var Q=y1.getFieldValue(U,"value"),Z=y1.getFieldValue(U,"extra");if(Z&&typeof Z.raw==="string"&&Q==Z.rawValue)return Z.raw;if(U.type==="Literal"){var $=U.raw;if(typeof $==="string"&&Q==$)return $}}function P0(U){return JSON.stringify(U).replace(/[\u2028\u2029]/g,function(Q){return"\\u"+Q.charCodeAt(0).toString(16)})}function H0(U,Q){switch(F6.assert(U),Q.quote){case"auto":{var Z=P0(U),$=x0(P0(x0(U)));return Z.length>$.length?$:Z}case"single":return x0(P0(x0(U)));case"double":default:return P0(U)}}function k0(U){var Q=J0(U);if(!Q||`
|
|
98
|
-
};`.indexOf(Q)<0)return(0,R.concat)([U,";"]);return U}});var j8=y((y0)=>{Object.defineProperty(y0,"__esModule",{value:!0});y0.run=y0.prettyPrint=y0.print=y0.visit=y0.types=y0.parse=void 0;var M8=m(),B9=M8.__importDefault(W8("fs")),O9=M8.__importStar(b1());y0.types=O9;var B8=cZ();Object.defineProperty(y0,"parse",{enumerable:!0,get:function(){return B8.parse}});var O8=q8(),R9=b1();Object.defineProperty(y0,"visit",{enumerable:!0,get:function(){return R9.visit}});function R8(U,Q){return new O8.Printer(Q).print(U)}y0.print=R8;function V9(U,Q){return new O8.Printer(Q).printGenerically(U)}y0.prettyPrint=V9;function j9(U,Q){return E9(process.argv[2],U,Q)}y0.run=j9;function E9(U,Q,Z){B9.default.readFile(U,"utf-8",function($,H){if($){console.error($);return}F9(H,Q,Z)})}function I9(U){process.stdout.write(U)}function F9(U,Q,Z){var $=Z&&Z.writeback||I9;Q((0,B8.parse)(U,Z),function(H){$(R8(H,Z).code)})}});var p=y((C8)=>{Object.defineProperty(C8,"__esModule",{value:!0});C8.Def=void 0;var i1=m(),T8=Object.prototype,f0=T8.toString,H1=T8.hasOwnProperty,G0=function(){function U(){}return U.prototype.assert=function(Q,Z){if(!this.check(Q,Z)){var $=T6(Q);throw Error($+" does not match type "+this)}return!0},U.prototype.arrayOf=function(){var Q=this;return new A6(Q)},U}(),A6=function(U){i1.__extends(Q,U);function Q(Z){var $=U.call(this)||this;return $.elemType=Z,$.kind="ArrayType",$}return Q.prototype.toString=function(){return"["+this.elemType+"]"},Q.prototype.check=function(Z,$){var H=this;return Array.isArray(Z)&&Z.every(function(D){return H.elemType.check(D,$)})},Q}(G0),E8=function(U){i1.__extends(Q,U);function Q(Z){var $=U.call(this)||this;return $.value=Z,$.kind="IdentityType",$}return Q.prototype.toString=function(){return String(this.value)},Q.prototype.check=function(Z,$){var H=Z===this.value;if(!H&&typeof $==="function")$(this,Z);return H},Q}(G0),I8=function(U){i1.__extends(Q,U);function Q(Z){var $=U.call(this)||this;return $.fields=Z,$.kind="ObjectType",$}return Q.prototype.toString=function(){return"{ "+this.fields.join(", ")+" }"},Q.prototype.check=function(Z,$){return f0.call(Z)===f0.call({})&&this.fields.every(function(H){return H.type.check(Z[H.name],$)})},Q}(G0),F8=function(U){i1.__extends(Q,U);function Q(Z){var $=U.call(this)||this;return $.types=Z,$.kind="OrType",$}return Q.prototype.toString=function(){return this.types.join(" | ")},Q.prototype.check=function(Z,$){return this.types.some(function(H){return H.check(Z,$)})},Q}(G0),_0=function(U){i1.__extends(Q,U);function Q(Z,$){var H=U.call(this)||this;return H.name=Z,H.predicate=$,H.kind="PredicateType",H}return Q.prototype.toString=function(){return this.name},Q.prototype.check=function(Z,$){var H=this.predicate(Z,$);if(!H&&typeof $==="function")$(this,Z);return H},Q}(G0),u0=function(){function U(Q,Z){this.type=Q,this.typeName=Z,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[]}return U.prototype.isSupertypeOf=function(Q){if(Q instanceof U){if(this.finalized!==!0||Q.finalized!==!0)throw Error("");return H1.call(Q.allSupertypes,this.typeName)}else throw Error(Q+" is not a Def")},U.prototype.checkAllFields=function(Q,Z){var $=this.allFields;if(this.finalized!==!0)throw Error(""+this.typeName);function H(D){var X=$[D],Y=X.type,j=X.getValue(Q);return Y.check(j,Z)}return Q!==null&&typeof Q==="object"&&Object.keys($).every(H)},U.prototype.bases=function(){var Q=[];for(var Z=0;Z<arguments.length;Z++)Q[Z]=arguments[Z];var $=this.baseNames;if(this.finalized){if(Q.length!==$.length)throw Error("");for(var H=0;H<Q.length;H++)if(Q[H]!==$[H])throw Error("");return this}return Q.forEach(function(D){if($.indexOf(D)<0)$.push(D)}),this},U}();C8.Def=u0;var A8=function(){function U(Q,Z,$,H){this.name=Q,this.type=Z,this.defaultFn=$,this.hidden=!!H}return U.prototype.toString=function(){return JSON.stringify(this.name)+": "+this.type},U.prototype.getValue=function(Q){var Z=Q[this.name];if(typeof Z<"u")return Z;if(typeof this.defaultFn==="function")Z=this.defaultFn.call(Q);return Z},U}();function T6(U){if(Array.isArray(U))return"["+U.map(T6).join(", ")+"]";if(U&&typeof U==="object")return"{ "+Object.keys(U).map(function(Q){return Q+": "+U[Q]}).join(", ")+" }";return JSON.stringify(U)}function S9(U){var Q={or:function(){var w=[];for(var v=0;v<arguments.length;v++)w[v]=arguments[v];return new F8(w.map(function(L){return Q.from(L)}))},from:function(w,v){if(w instanceof A6||w instanceof E8||w instanceof I8||w instanceof F8||w instanceof _0)return w;if(w instanceof u0)return w.type;if(Y.check(w)){if(w.length!==1)throw Error("only one element type is permitted for typed arrays");return new A6(Q.from(w[0]))}if(j.check(w))return new I8(Object.keys(w).map(function(x){return new A8(x,Q.from(w[x],x))}));if(typeof w==="function"){var L=Z.indexOf(w);if(L>=0)return $[L];if(typeof v!=="string")throw Error("missing name");return new _0(v,w)}return new E8(w)},def:function(w){return H1.call(G,w)?G[w]:G[w]=new O(w)},hasDef:function(w){return H1.call(G,w)}},Z=[],$=[];function H(w,v){var L=f0.call(v),x=new _0(w,function(f){return f0.call(f)===L});if(v&&typeof v.constructor==="function")Z.push(v.constructor),$.push(x);return x}var D=H("string","truthy"),X=H("function",function(){}),Y=H("array",[]),j=H("object",{}),E=H("RegExp",/./),q=H("Date",new Date),B=H("number",3),W=H("boolean",!0),z=H("null",null),K=H("undefined",void 0),J={string:D,function:X,array:Y,object:j,RegExp:E,Date:q,number:B,boolean:W,null:z,undefined:K},G=Object.create(null);function M(w){if(w&&typeof w==="object"){var v=w.type;if(typeof v==="string"&&H1.call(G,v)){var L=G[v];if(L.finalized)return L}}return null}var O=function(w){i1.__extends(v,w);function v(L){var x=w.call(this,new _0(L,function(f,_){return x.check(f,_)}),L)||this;return x}return v.prototype.check=function(L,x){if(this.finalized!==!0)throw Error("prematurely checking unfinalized type "+this.typeName);if(L===null||typeof L!=="object")return!1;var f=M(L);if(!f){if(this.typeName==="SourceLocation"||this.typeName==="Position")return this.checkAllFields(L,x);return!1}if(x&&f===this)return this.checkAllFields(L,x);if(!this.isSupertypeOf(f))return!1;if(!x)return!0;return f.checkAllFields(L,x)&&this.checkAllFields(L,!1)},v.prototype.build=function(){var L=this,x=[];for(var f=0;f<arguments.length;f++)x[f]=arguments[f];if(this.buildParams=x,this.buildable)return this;this.field("type",String,function(){return L.typeName}),this.buildable=!0;var _=function(d,c,Z1,J1){if(H1.call(d,c))return;var $1=L.allFields;if(!H1.call($1,c))throw Error(""+c);var Q1=$1[c],u1=Q1.type,O1;if(J1)O1=Z1;else if(Q1.defaultFn)O1=Q1.defaultFn.call(d);else{var a1="no value or default function given for field "+JSON.stringify(c)+" of "+L.typeName+"("+L.buildParams.map(function(f1){return $1[f1]}).join(", ")+")";throw Error(a1)}if(!u1.check(O1))throw Error(T6(O1)+" does not match field "+Q1+" of type "+L.typeName);d[c]=O1},i=function(){var d=[];for(var c=0;c<arguments.length;c++)d[c]=arguments[c];var Z1=d.length;if(!L.finalized)throw Error("attempting to instantiate unfinalized type "+L.typeName);var J1=Object.create(C);if(L.buildParams.forEach(function($1,Q1){if(Q1<Z1)_(J1,$1,d[Q1],!0);else _(J1,$1,null,!1)}),Object.keys(L.allFields).forEach(function($1){_(J1,$1,null,!1)}),J1.type!==L.typeName)throw Error("");return J1};return i.from=function(d){if(!L.finalized)throw Error("attempting to instantiate unfinalized type "+L.typeName);var c=Object.create(C);if(Object.keys(L.allFields).forEach(function(Z1){if(H1.call(d,Z1))_(c,Z1,d[Z1],!0);else _(c,Z1,null,!1)}),c.type!==L.typeName)throw Error("");return c},Object.defineProperty(F,P(this.typeName),{enumerable:!0,value:i}),this},v.prototype.field=function(L,x,f,_){if(this.finalized)return console.error("Ignoring attempt to redefine field "+JSON.stringify(L)+" of finalized type "+JSON.stringify(this.typeName)),this;return this.ownFields[L]=new A8(L,Q.from(x),f,_),this},v.prototype.finalize=function(){var L=this;if(!this.finalized){var x=this.allFields,f=this.allSupertypes;this.baseNames.forEach(function(i){var d=G[i];if(d instanceof u0)d.finalize(),C1(x,d.allFields),C1(f,d.allSupertypes);else{var c="unknown supertype name "+JSON.stringify(i)+" for subtype "+JSON.stringify(L.typeName);throw Error(c)}}),C1(x,this.ownFields),f[this.typeName]=this,this.fieldNames.length=0;for(var _ in x)if(H1.call(x,_)&&!x[_].hidden)this.fieldNames.push(_);if(Object.defineProperty(h,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,B1(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf("Expression")>=0)T1(this.typeName)}},v}(u0);function V(w){if(!H1.call(G,w))throw Error("");var v=G[w];if(v.finalized!==!0)throw Error("");return v.supertypeList.slice(1)}function I(w){var v={},L=Object.keys(G),x=L.length;for(var f=0;f<x;++f){var _=L[f],i=G[_];if(i.finalized!==!0)throw Error(""+_);for(var d=0;d<i.supertypeList.length;++d){var c=i.supertypeList[d];if(H1.call(w,c)){v[_]=c;break}}}return v}var F=Object.create(null),C={};function N(w,v){var L=C[w];if(K.check(v))delete C[w];else X.assert(v),Object.defineProperty(C,w,{enumerable:!0,configurable:!0,value:v});return L}function P(w){return w.replace(/^[A-Z]+/,function(v){var L=v.length;switch(L){case 0:return"";case 1:return v.toLowerCase();default:return v.slice(0,L-1).toLowerCase()+v.charAt(L-1)}})}function g(w){return w=P(w),w.replace(/(Expression)?$/,"Statement")}var h={};function l(w){var v=M(w);if(v)return v.fieldNames.slice(0);if("type"in w)throw Error("did not recognize object of type "+JSON.stringify(w.type));return Object.keys(w)}function z1(w,v){var L=M(w);if(L){var x=L.allFields[v];if(x)return x.getValue(w)}return w&&w[v]}function A1(w,v,L){l(w).forEach(function(x){v.call(this,x,z1(w,x))},L)}function _1(w,v,L){return l(w).some(function(x){return v.call(this,x,z1(w,x))},L)}function T1(w){var v=g(w);if(F[v])return;var L=F[P(w)];if(!L)return;var x=function(){var f=[];for(var _=0;_<arguments.length;_++)f[_]=arguments[_];return F.expressionStatement(L.apply(F,f))};x.from=function(){var f=[];for(var _=0;_<arguments.length;_++)f[_]=arguments[_];return F.expressionStatement(L.from.apply(F,f))},F[v]=x}function B1(w,v){v.length=0,v.push(w);var L=Object.create(null);for(var x=0;x<v.length;++x){w=v[x];var f=G[w];if(f.finalized!==!0)throw Error("");if(H1.call(L,w))delete v[L[w]];L[w]=x,v.push.apply(v,f.baseNames)}for(var _=0,i=_,d=v.length;i<d;++i)if(H1.call(v,i))v[_++]=v[i];v.length=_}function C1(w,v){return Object.keys(v).forEach(function(L){w[L]=v[L]}),w}function S1(){Object.keys(G).forEach(function(w){G[w].finalize()})}return{Type:Q,builtInTypes:J,getSupertypeNames:V,computeSupertypeLookupTable:I,builders:F,defineMethod:N,getBuilderName:P,getStatementBuilderName:g,namedTypes:h,getFieldNames:l,getFieldValue:z1,eachField:A1,someField:_1,finalize:S1}}C8.default=S9});var S6=y((C6,w8)=>{Object.defineProperty(C6,"__esModule",{value:!0});var v9=m(),L9=v9.__importDefault(p()),N9=Object.prototype,m0=N9.hasOwnProperty;function x9(U){var Q=U.use(L9.default),Z=Q.builtInTypes.array,$=Q.builtInTypes.number,H=function B(W,z,K){if(!(this instanceof B))throw Error("Path constructor cannot be invoked without 'new'");if(z){if(!(z instanceof B))throw Error("")}else z=null,K=null;this.value=W,this.parentPath=z,this.name=K,this.__childCache=null},D=H.prototype;function X(B){return B.__childCache||(B.__childCache=Object.create(null))}function Y(B,W){var z=X(B),K=B.getValueProperty(W),J=z[W];if(!m0.call(z,W)||J.value!==K)J=z[W]=new B.constructor(K,B,W);return J}D.getValueProperty=function(W){return this.value[W]},D.get=function(){var W=[];for(var z=0;z<arguments.length;z++)W[z]=arguments[z];var K=this,J=W.length;for(var G=0;G<J;++G)K=Y(K,W[G]);return K},D.each=function(W,z){var K=[],J=this.value.length,G=0;for(var G=0;G<J;++G)if(m0.call(this.value,G))K[G]=this.get(G);z=z||this;for(G=0;G<J;++G)if(m0.call(K,G))W.call(z,K[G])},D.map=function(W,z){var K=[];return this.each(function(J){K.push(W.call(this,J))},z),K},D.filter=function(W,z){var K=[];return this.each(function(J){if(W.call(this,J))K.push(J)},z),K};function j(){}function E(B,W,z,K){if(Z.assert(B.value),W===0)return j;var J=B.value.length;if(J<1)return j;var G=arguments.length;if(G===2)z=0,K=J;else if(G===3)z=Math.max(z,0),K=J;else z=Math.max(z,0),K=Math.min(K,J);$.assert(z),$.assert(K);var M=Object.create(null),O=X(B);for(var V=z;V<K;++V)if(m0.call(B.value,V)){var I=B.get(V);if(I.name!==V)throw Error("");var F=V+W;I.name=F,M[F]=I,delete O[V]}return delete O.length,function(){for(var C in M){var N=M[C];if(N.name!==+C)throw Error("");O[C]=N,B.value[C]=N.value}}}D.shift=function(){var W=E(this,-1),z=this.value.shift();return W(),z},D.unshift=function(){var W=[];for(var z=0;z<arguments.length;z++)W[z]=arguments[z];var K=E(this,W.length),J=this.value.unshift.apply(this.value,W);return K(),J},D.push=function(){var W=[];for(var z=0;z<arguments.length;z++)W[z]=arguments[z];return Z.assert(this.value),delete X(this).length,this.value.push.apply(this.value,W)},D.pop=function(){Z.assert(this.value);var W=X(this);return delete W[this.value.length-1],delete W.length,this.value.pop()},D.insertAt=function(W){var z=arguments.length,K=E(this,z-1,W);if(K===j&&z<=1)return this;W=Math.max(W,0);for(var J=1;J<z;++J)this.value[W+J-1]=arguments[J];return K(),this},D.insertBefore=function(){var W=[];for(var z=0;z<arguments.length;z++)W[z]=arguments[z];var K=this.parentPath,J=W.length,G=[this.name];for(var M=0;M<J;++M)G.push(W[M]);return K.insertAt.apply(K,G)},D.insertAfter=function(){var W=[];for(var z=0;z<arguments.length;z++)W[z]=arguments[z];var K=this.parentPath,J=W.length,G=[this.name+1];for(var M=0;M<J;++M)G.push(W[M]);return K.insertAt.apply(K,G)};function q(B){if(!(B instanceof H))throw Error("");var W=B.parentPath;if(!W)return B;var z=W.value,K=X(W);if(z[B.name]===B.value)K[B.name]=B;else if(Z.check(z)){var J=z.indexOf(B.value);if(J>=0)K[B.name=J]=B}else z[B.name]=B.value,K[B.name]=B;if(z[B.name]!==B.value)throw Error("");if(B.parentPath.get(B.name)!==B)throw Error("");return B}return D.replace=function(W){var z=[],K=this.parentPath.value,J=X(this.parentPath),G=arguments.length;if(q(this),Z.check(K)){var M=K.length,O=E(this.parentPath,G-1,this.name+1),V=[this.name,1];for(var I=0;I<G;++I)V.push(arguments[I]);var F=K.splice.apply(K,V);if(F[0]!==this.value)throw Error("");if(K.length!==M-1+G)throw Error("");if(O(),G===0)delete this.value,delete J[this.name],this.__childCache=null;else{if(K[this.name]!==W)throw Error("");if(this.value!==W)this.value=W,this.__childCache=null;for(I=0;I<G;++I)z.push(this.parentPath.get(this.name+I));if(z[0]!==this)throw Error("")}}else if(G===1){if(this.value!==W)this.__childCache=null;this.value=K[this.name]=W,z.push(this)}else if(G===0)delete K[this.name],delete this.value,this.__childCache=null;else throw Error("Could not replace path");return z},H}C6.default=x9;w8.exports=C6.default});var L8=y((w6,v8)=>{Object.defineProperty(w6,"__esModule",{value:!0});var b9=m(),k9=b9.__importDefault(p()),D0=Object.prototype.hasOwnProperty;function g9(U){var Q=U.use(k9.default),Z=Q.Type,$=Q.namedTypes,H=$.Node,D=$.Expression,X=Q.builtInTypes.array,Y=Q.builders,j=function O(V,I){if(!(this instanceof O))throw Error("Scope constructor cannot be invoked without 'new'");q.assert(V.value);var F;if(I){if(!(I instanceof O))throw Error("");F=I.depth+1}else I=null,F=0;Object.defineProperties(this,{path:{value:V},node:{value:V.value},isGlobal:{value:!I,enumerable:!0},depth:{value:F},parent:{value:I},bindings:{value:{}},types:{value:{}}})},E=[$.Program,$.Function,$.CatchClause],q=Z.or.apply(Z,E);j.isEstablishedBy=function(O){return q.check(O)};var B=j.prototype;B.didScan=!1,B.declares=function(O){return this.scan(),D0.call(this.bindings,O)},B.declaresType=function(O){return this.scan(),D0.call(this.types,O)},B.declareTemporary=function(O){if(O){if(!/^[a-z$_]/i.test(O))throw Error("")}else O="t$";O+=this.depth.toString(36)+"$",this.scan();var V=0;while(this.declares(O+V))++V;var I=O+V;return this.bindings[I]=Q.builders.identifier(I)},B.injectTemporary=function(O,V){O||(O=this.declareTemporary());var I=this.path.get("body");if($.BlockStatement.check(I.value))I=I.get("body");return I.unshift(Y.variableDeclaration("var",[Y.variableDeclarator(O,V||null)])),O},B.scan=function(O){if(O||!this.didScan){for(var V in this.bindings)delete this.bindings[V];W(this.path,this.bindings,this.types),this.didScan=!0}},B.getBindings=function(){return this.scan(),this.bindings},B.getTypes=function(){return this.scan(),this.types};function W(O,V,I){var F=O.value;if(q.assert(F),$.CatchClause.check(F)){var C=O.get("param");if(C.value)G(C,V)}else z(O,V,I)}function z(O,V,I){var F=O.value;if(O.parent&&$.FunctionExpression.check(O.parent.node)&&O.parent.node.id)G(O.parent.get("id"),V);if(!F);else if(X.check(F))O.each(function(C){J(C,V,I)});else if($.Function.check(F))O.get("params").each(function(C){G(C,V)}),J(O.get("body"),V,I);else if($.TypeAlias&&$.TypeAlias.check(F)||$.InterfaceDeclaration&&$.InterfaceDeclaration.check(F)||$.TSTypeAliasDeclaration&&$.TSTypeAliasDeclaration.check(F)||$.TSInterfaceDeclaration&&$.TSInterfaceDeclaration.check(F))M(O.get("id"),I);else if($.VariableDeclarator.check(F))G(O.get("id"),V),J(O.get("init"),V,I);else if(F.type==="ImportSpecifier"||F.type==="ImportNamespaceSpecifier"||F.type==="ImportDefaultSpecifier")G(O.get(F.local?"local":F.name?"name":"id"),V);else if(H.check(F)&&!D.check(F))Q.eachField(F,function(C,N){var P=O.get(C);if(!K(P,N))throw Error("");J(P,V,I)})}function K(O,V){if(O.value===V)return!0;if(Array.isArray(O.value)&&O.value.length===0&&Array.isArray(V)&&V.length===0)return!0;return!1}function J(O,V,I){var F=O.value;if(!F||D.check(F));else if($.FunctionDeclaration.check(F)&&F.id!==null)G(O.get("id"),V);else if($.ClassDeclaration&&$.ClassDeclaration.check(F))G(O.get("id"),V);else if(q.check(F)){if($.CatchClause.check(F)&&$.Identifier.check(F.param)){var C=F.param.name,N=D0.call(V,C);if(z(O.get("body"),V,I),!N)delete V[C]}}else z(O,V,I)}function G(O,V){var I=O.value;if($.Pattern.assert(I),$.Identifier.check(I))if(D0.call(V,I.name))V[I.name].push(O);else V[I.name]=[O];else if($.AssignmentPattern&&$.AssignmentPattern.check(I))G(O.get("left"),V);else if($.ObjectPattern&&$.ObjectPattern.check(I))O.get("properties").each(function(F){var C=F.value;if($.Pattern.check(C))G(F,V);else if($.Property.check(C))G(F.get("value"),V);else if($.SpreadProperty&&$.SpreadProperty.check(C))G(F.get("argument"),V)});else if($.ArrayPattern&&$.ArrayPattern.check(I))O.get("elements").each(function(F){var C=F.value;if($.Pattern.check(C))G(F,V);else if($.SpreadElement&&$.SpreadElement.check(C))G(F.get("argument"),V)});else if($.PropertyPattern&&$.PropertyPattern.check(I))G(O.get("pattern"),V);else if($.SpreadElementPattern&&$.SpreadElementPattern.check(I)||$.RestElement&&$.RestElement.check(I)||$.SpreadPropertyPattern&&$.SpreadPropertyPattern.check(I))G(O.get("argument"),V)}function M(O,V){var I=O.value;if($.Pattern.assert(I),$.Identifier.check(I))if(D0.call(V,I.name))V[I.name].push(O);else V[I.name]=[O]}return B.lookup=function(O){for(var V=this;V;V=V.parent)if(V.declares(O))break;return V},B.lookupType=function(O){for(var V=this;V;V=V.parent)if(V.declaresType(O))break;return V},B.getGlobalScope=function(){var O=this;while(!O.isGlobal)O=O.parent;return O},j}w6.default=g9;v8.exports=w6.default});var N6=y((L6,N8)=>{Object.defineProperty(L6,"__esModule",{value:!0});var v6=m(),_9=v6.__importDefault(p()),u9=v6.__importDefault(S6()),f9=v6.__importDefault(L8());function m9(U){var Q=U.use(_9.default),Z=Q.namedTypes,$=Q.builders,H=Q.builtInTypes.number,D=Q.builtInTypes.array,X=U.use(u9.default),Y=U.use(f9.default),j=function M(O,V,I){if(!(this instanceof M))throw Error("NodePath constructor cannot be invoked without 'new'");X.call(this,O,V,I)},E=j.prototype=Object.create(X.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(E,{node:{get:function(){return Object.defineProperty(this,"node",{configurable:!0,value:this._computeNode()}),this.node}},parent:{get:function(){return Object.defineProperty(this,"parent",{configurable:!0,value:this._computeParent()}),this.parent}},scope:{get:function(){return Object.defineProperty(this,"scope",{configurable:!0,value:this._computeScope()}),this.scope}}}),E.replace=function(){return delete this.node,delete this.parent,delete this.scope,X.prototype.replace.apply(this,arguments)},E.prune=function(){var M=this.parent;return this.replace(),J(M)},E._computeNode=function(){var M=this.value;if(Z.Node.check(M))return M;var O=this.parentPath;return O&&O.node||null},E._computeParent=function(){var M=this.value,O=this.parentPath;if(!Z.Node.check(M)){while(O&&!Z.Node.check(O.value))O=O.parentPath;if(O)O=O.parentPath}while(O&&!Z.Node.check(O.value))O=O.parentPath;return O||null},E._computeScope=function(){var M=this.value,O=this.parentPath,V=O&&O.scope;if(Z.Node.check(M)&&Y.isEstablishedBy(M))V=new Y(this,V);return V||null},E.getValueProperty=function(M){return Q.getFieldValue(this.value,M)},E.needsParens=function(M){var O=this.parentPath;if(!O)return!1;var V=this.value;if(!Z.Expression.check(V))return!1;if(V.type==="Identifier")return!1;while(!Z.Node.check(O.value))if(O=O.parentPath,!O)return!1;var I=O.value;switch(V.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return I.type==="MemberExpression"&&this.name==="object"&&I.object===V;case"BinaryExpression":case"LogicalExpression":switch(I.type){case"CallExpression":return this.name==="callee"&&I.callee===V;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return this.name==="object"&&I.object===V;case"BinaryExpression":case"LogicalExpression":{var F=V,C=I.operator,N=W[C],P=F.operator,g=W[P];if(N>g)return!0;if(N===g&&this.name==="right"){if(I.right!==F)throw Error("Nodes must be equal");return!0}}default:return!1}case"SequenceExpression":switch(I.type){case"ForStatement":return!1;case"ExpressionStatement":return this.name!=="expression";default:return!0}case"YieldExpression":switch(I.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return!0;default:return!1}case"Literal":return I.type==="MemberExpression"&&H.check(V.value)&&this.name==="object"&&I.object===V;case"AssignmentExpression":case"ConditionalExpression":switch(I.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":return this.name==="callee"&&I.callee===V;case"ConditionalExpression":return this.name==="test"&&I.test===V;case"MemberExpression":return this.name==="object"&&I.object===V;default:return!1}default:if(I.type==="NewExpression"&&this.name==="callee"&&I.callee===V)return z(V)}if(M!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())return!0;return!1};function q(M){return Z.BinaryExpression.check(M)||Z.LogicalExpression.check(M)}function B(M){return Z.UnaryExpression.check(M)||Z.SpreadElement&&Z.SpreadElement.check(M)||Z.SpreadProperty&&Z.SpreadProperty.check(M)}var W={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(M,O){M.forEach(function(V){W[V]=O})});function z(M){if(Z.CallExpression.check(M))return!0;if(D.check(M))return M.some(z);if(Z.Node.check(M))return Q.someField(M,function(O,V){return z(V)});return!1}E.canBeFirstInStatement=function(){var M=this.node;return!Z.FunctionExpression.check(M)&&!Z.ObjectExpression.check(M)},E.firstInStatement=function(){return K(this)};function K(M){for(var O,V;M.parent;M=M.parent){if(O=M.node,V=M.parent.node,Z.BlockStatement.check(V)&&M.parent.name==="body"&&M.name===0){if(V.body[0]!==O)throw Error("Nodes must be equal");return!0}if(Z.ExpressionStatement.check(V)&&M.name==="expression"){if(V.expression!==O)throw Error("Nodes must be equal");return!0}if(Z.SequenceExpression.check(V)&&M.parent.name==="expressions"&&M.name===0){if(V.expressions[0]!==O)throw Error("Nodes must be equal");continue}if(Z.CallExpression.check(V)&&M.name==="callee"){if(V.callee!==O)throw Error("Nodes must be equal");continue}if(Z.MemberExpression.check(V)&&M.name==="object"){if(V.object!==O)throw Error("Nodes must be equal");continue}if(Z.ConditionalExpression.check(V)&&M.name==="test"){if(V.test!==O)throw Error("Nodes must be equal");continue}if(q(V)&&M.name==="left"){if(V.left!==O)throw Error("Nodes must be equal");continue}if(Z.UnaryExpression.check(V)&&!V.prefix&&M.name==="argument"){if(V.argument!==O)throw Error("Nodes must be equal");continue}return!1}return!0}function J(M){if(Z.VariableDeclaration.check(M.node)){var O=M.get("declarations").value;if(!O||O.length===0)return M.prune()}else if(Z.ExpressionStatement.check(M.node)){if(!M.get("expression").value)return M.prune()}else if(Z.IfStatement.check(M.node))G(M);return M}function G(M){var O=M.get("test").value,V=M.get("alternate").value,I=M.get("consequent").value;if(!I&&!V){var F=$.expressionStatement(O);M.replace(F)}else if(!I&&V){var C=$.unaryExpression("!",O,!0);if(Z.UnaryExpression.check(O)&&O.operator==="!")C=O.argument;M.get("test").replace(C),M.get("consequent").replace(V),M.get("alternate").replace()}}return j}L6.default=m9;N8.exports=L6.default});var b8=y((x6,P8)=>{Object.defineProperty(x6,"__esModule",{value:!0});var x8=m(),c9=x8.__importDefault(p()),l9=x8.__importDefault(N6()),h0=Object.prototype.hasOwnProperty;function d9(U){var Q=U.use(c9.default),Z=U.use(l9.default),$=Q.builtInTypes.array,H=Q.builtInTypes.object,D=Q.builtInTypes.function,X,Y=function K(){if(!(this instanceof K))throw Error("PathVisitor constructor cannot be invoked without 'new'");this._reusableContextStack=[],this._methodNameTable=j(this),this._shouldVisitComments=h0.call(this._methodNameTable,"Block")||h0.call(this._methodNameTable,"Line"),this.Context=W(this),this._visiting=!1,this._changeReported=!1};function j(K){var J=Object.create(null);for(var G in K)if(/^visit[A-Z]/.test(G))J[G.slice(5)]=!0;var M=Q.computeSupertypeLookupTable(J),O=Object.create(null),V=Object.keys(M),I=V.length;for(var F=0;F<I;++F){var C=V[F];if(G="visit"+M[C],D.check(K[G]))O[C]=G}return O}Y.fromMethodsObject=function(J){if(J instanceof Y)return J;if(!H.check(J))return new Y;var G=function O(){if(!(this instanceof O))throw Error("Visitor constructor cannot be invoked without 'new'");Y.call(this)},M=G.prototype=Object.create(q);return M.constructor=G,E(M,J),E(G,Y),D.assert(G.fromMethodsObject),D.assert(G.visit),new G};function E(K,J){for(var G in J)if(h0.call(J,G))K[G]=J[G];return K}Y.visit=function(J,G){return Y.fromMethodsObject(G).visit(J)};var q=Y.prototype;q.visit=function(){if(this._visiting)throw Error("Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.");this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;var K=arguments.length,J=Array(K);for(var G=0;G<K;++G)J[G]=arguments[G];if(!(J[0]instanceof Z))J[0]=new Z({root:J[0]}).get("root");this.reset.apply(this,J);var M;try{var O=this.visitWithoutReset(J[0]);M=!0}finally{if(this._visiting=!1,!M&&this._abortRequested)return J[0].value}return O},q.AbortRequest=function(){},q.abort=function(){var K=this;K._abortRequested=!0;var J=new K.AbortRequest;throw J.cancel=function(){K._abortRequested=!1},J},q.reset=function(K){},q.visitWithoutReset=function(K){if(this instanceof this.Context)return this.visitor.visitWithoutReset(K);if(!(K instanceof Z))throw Error("");var J=K.value,G=J&&typeof J==="object"&&typeof J.type==="string"&&this._methodNameTable[J.type];if(G){var M=this.acquireContext(K);try{return M.invokeVisitorMethod(G)}finally{this.releaseContext(M)}}else return B(K,this)};function B(K,J){if(!(K instanceof Z))throw Error("");if(!(J instanceof Y))throw Error("");var G=K.value;if($.check(G))K.each(J.visitWithoutReset,J);else if(!H.check(G));else{var M=Q.getFieldNames(G);if(J._shouldVisitComments&&G.comments&&M.indexOf("comments")<0)M.push("comments");var O=M.length,V=[];for(var I=0;I<O;++I){var F=M[I];if(!h0.call(G,F))G[F]=Q.getFieldValue(G,F);V.push(K.get(F))}for(var I=0;I<O;++I)J.visitWithoutReset(V[I])}return K.value}q.acquireContext=function(K){if(this._reusableContextStack.length===0)return new this.Context(K);return this._reusableContextStack.pop().reset(K)},q.releaseContext=function(K){if(!(K instanceof this.Context))throw Error("");this._reusableContextStack.push(K),K.currentPath=null},q.reportChanged=function(){this._changeReported=!0},q.wasChangeReported=function(){return this._changeReported};function W(K){function J(M){if(!(this instanceof J))throw Error("");if(!(this instanceof Y))throw Error("");if(!(M instanceof Z))throw Error("");Object.defineProperty(this,"visitor",{value:K,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=M,this.needToCallTraverse=!0,Object.seal(this)}if(!(K instanceof Y))throw Error("");var G=J.prototype=Object.create(K);return G.constructor=J,E(G,z),J}var z=Object.create(null);return z.reset=function(J){if(!(this instanceof this.Context))throw Error("");if(!(J instanceof Z))throw Error("");return this.currentPath=J,this.needToCallTraverse=!0,this},z.invokeVisitorMethod=function(J){if(!(this instanceof this.Context))throw Error("");if(!(this.currentPath instanceof Z))throw Error("");var G=this.visitor[J].call(this,this.currentPath);if(G===!1)this.needToCallTraverse=!1;else if(G!==X){if(this.currentPath=this.currentPath.replace(G)[0],this.needToCallTraverse)this.traverse(this.currentPath)}if(this.needToCallTraverse!==!1)throw Error("Must either call this.traverse or return false in "+J);var M=this.currentPath;return M&&M.value},z.traverse=function(J,G){if(!(this instanceof this.Context))throw Error("");if(!(J instanceof Z))throw Error("");if(!(this.currentPath instanceof Z))throw Error("");return this.needToCallTraverse=!1,B(J,Y.fromMethodsObject(G||this.visitor))},z.visit=function(J,G){if(!(this instanceof this.Context))throw Error("");if(!(J instanceof Z))throw Error("");if(!(this.currentPath instanceof Z))throw Error("");return this.needToCallTraverse=!1,Y.fromMethodsObject(G||this.visitor).visitWithoutReset(J)},z.reportChanged=function(){this.visitor.reportChanged()},z.abort=function(){this.needToCallTraverse=!1,this.visitor.abort()},Y}x6.default=d9;P8.exports=x6.default});var g8=y((P6,k8)=>{Object.defineProperty(P6,"__esModule",{value:!0});var s9=m(),p9=s9.__importDefault(p());function r9(U){var Q=U.use(p9.default),Z=Q.getFieldNames,$=Q.getFieldValue,H=Q.builtInTypes.array,D=Q.builtInTypes.object,X=Q.builtInTypes.Date,Y=Q.builtInTypes.RegExp,j=Object.prototype.hasOwnProperty;function E(K,J,G){if(H.check(G))G.length=0;else G=null;return B(K,J,G)}E.assert=function(K,J){var G=[];if(!E(K,J,G))if(G.length===0){if(K!==J)throw Error("Nodes must be equal")}else throw Error("Nodes differ in the following path: "+G.map(q).join(""))};function q(K){if(/[_$a-z][_$a-z0-9]*/i.test(K))return"."+K;return"["+JSON.stringify(K)+"]"}function B(K,J,G){if(K===J)return!0;if(H.check(K))return W(K,J,G);if(D.check(K))return z(K,J,G);if(X.check(K))return X.check(J)&&+K===+J;if(Y.check(K))return Y.check(J)&&(K.source===J.source&&K.global===J.global&&K.multiline===J.multiline&&K.ignoreCase===J.ignoreCase);return K==J}function W(K,J,G){H.assert(K);var M=K.length;if(!H.check(J)||J.length!==M){if(G)G.push("length");return!1}for(var O=0;O<M;++O){if(G)G.push(O);if(O in K!==O in J)return!1;if(!B(K[O],J[O],G))return!1;if(G){var V=G.pop();if(V!==O)throw Error(""+V)}}return!0}function z(K,J,G){if(D.assert(K),!D.check(J))return!1;if(K.type!==J.type){if(G)G.push("type");return!1}var M=Z(K),O=M.length,V=Z(J),I=V.length;if(O===I){for(var F=0;F<O;++F){var C=M[F],N=$(K,C),P=$(J,C);if(G)G.push(C);if(!B(N,P,G))return!1;if(G){var g=G.pop();if(g!==C)throw Error(""+g)}}return!0}if(!G)return!1;var h=Object.create(null);for(F=0;F<O;++F)h[M[F]]=!0;for(F=0;F<I;++F){if(C=V[F],!j.call(h,C))return G.push(C),!1;delete h[C]}for(C in h){G.push(C);break}return!1}return E}P6.default=r9;k8.exports=P6.default});var _8=y((b6,y8)=>{Object.defineProperty(b6,"__esModule",{value:!0});var q0=m(),a9=q0.__importDefault(p()),n9=q0.__importDefault(b8()),t9=q0.__importDefault(g8()),e9=q0.__importDefault(S6()),Z$=q0.__importDefault(N6());function $$(U){var Q=Q$(),Z=Q.use(a9.default);U.forEach(Q.use),Z.finalize();var $=Q.use(n9.default);return{Type:Z.Type,builtInTypes:Z.builtInTypes,namedTypes:Z.namedTypes,builders:Z.builders,defineMethod:Z.defineMethod,getFieldNames:Z.getFieldNames,getFieldValue:Z.getFieldValue,eachField:Z.eachField,someField:Z.someField,getSupertypeNames:Z.getSupertypeNames,getBuilderName:Z.getBuilderName,astNodesAreEquivalent:Q.use(t9.default),finalize:Z.finalize,Path:Q.use(e9.default),NodePath:Q.use(Z$.default),PathVisitor:$,use:Q.use,visit:$.visit}}b6.default=$$;function Q$(){var U=[],Q=[];function Z(H){var D=U.indexOf(H);if(D===-1)D=U.length,U.push(H),Q[D]=H($);return Q[D]}var $={use:Z};return $}y8.exports=b6.default});var c0=y((u8)=>{Object.defineProperty(u8,"__esModule",{value:!0});u8.LogicalOperators=u8.AssignmentOperators=u8.BinaryOperators=void 0;u8.BinaryOperators=["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"];u8.AssignmentOperators=["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="];u8.LogicalOperators=["||","&&"]});var t=y((k6,m8)=>{Object.defineProperty(k6,"__esModule",{value:!0});var K$=m(),Y$=K$.__importDefault(p());function H$(U){var Q=U.use(Y$.default),Z=Q.Type,$=Q.builtInTypes,H=$.number;function D(E){return Z.from(function(q){return H.check(q)&&q>=E},H+" >= "+E)}var X={null:function(){return null},emptyArray:function(){return[]},false:function(){return!1},true:function(){return!0},undefined:function(){},"use strict":function(){return"use strict"}},Y=Z.or($.string,$.number,$.boolean,$.null,$.undefined),j=Z.from(function(E){if(E===null)return!0;var q=typeof E;if(q==="object"||q==="function")return!1;return!0},Y.toString());return{geq:D,defaults:X,isPrimitive:j}}k6.default=H$;m8.exports=k6.default});var _6=y((y6,c8)=>{Object.defineProperty(y6,"__esModule",{value:!0});var h8=m(),g6=c0(),G$=h8.__importDefault(p()),D$=h8.__importDefault(t());function q$(U){var Q=U.use(G$.default),Z=Q.Type,$=Z.def,H=Z.or,D=U.use(D$.default),X=D.defaults,Y=D.geq;$("Printable").field("loc",H($("SourceLocation"),null),X.null,!0),$("Node").bases("Printable").field("type",String).field("comments",H([$("Comment")],null),X.null,!0),$("SourceLocation").field("start",$("Position")).field("end",$("Position")).field("source",H(String,null),X.null),$("Position").field("line",Y(1)).field("column",Y(0)),$("File").bases("Node").build("program","name").field("program",$("Program")).field("name",H(String,null),X.null),$("Program").bases("Node").build("body").field("body",[$("Statement")]),$("Function").bases("Node").field("id",H($("Identifier"),null),X.null).field("params",[$("Pattern")]).field("body",$("BlockStatement")).field("generator",Boolean,X.false).field("async",Boolean,X.false),$("Statement").bases("Node"),$("EmptyStatement").bases("Statement").build(),$("BlockStatement").bases("Statement").build("body").field("body",[$("Statement")]),$("ExpressionStatement").bases("Statement").build("expression").field("expression",$("Expression")),$("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",$("Expression")).field("consequent",$("Statement")).field("alternate",H($("Statement"),null),X.null),$("LabeledStatement").bases("Statement").build("label","body").field("label",$("Identifier")).field("body",$("Statement")),$("BreakStatement").bases("Statement").build("label").field("label",H($("Identifier"),null),X.null),$("ContinueStatement").bases("Statement").build("label").field("label",H($("Identifier"),null),X.null),$("WithStatement").bases("Statement").build("object","body").field("object",$("Expression")).field("body",$("Statement")),$("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",$("Expression")).field("cases",[$("SwitchCase")]).field("lexical",Boolean,X.false),$("ReturnStatement").bases("Statement").build("argument").field("argument",H($("Expression"),null)),$("ThrowStatement").bases("Statement").build("argument").field("argument",$("Expression")),$("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",$("BlockStatement")).field("handler",H($("CatchClause"),null),function(){return this.handlers&&this.handlers[0]||null}).field("handlers",[$("CatchClause")],function(){return this.handler?[this.handler]:[]},!0).field("guardedHandlers",[$("CatchClause")],X.emptyArray).field("finalizer",H($("BlockStatement"),null),X.null),$("CatchClause").bases("Node").build("param","guard","body").field("param",$("Pattern")).field("guard",H($("Expression"),null),X.null).field("body",$("BlockStatement")),$("WhileStatement").bases("Statement").build("test","body").field("test",$("Expression")).field("body",$("Statement")),$("DoWhileStatement").bases("Statement").build("body","test").field("body",$("Statement")).field("test",$("Expression")),$("ForStatement").bases("Statement").build("init","test","update","body").field("init",H($("VariableDeclaration"),$("Expression"),null)).field("test",H($("Expression"),null)).field("update",H($("Expression"),null)).field("body",$("Statement")),$("ForInStatement").bases("Statement").build("left","right","body").field("left",H($("VariableDeclaration"),$("Expression"))).field("right",$("Expression")).field("body",$("Statement")),$("DebuggerStatement").bases("Statement").build(),$("Declaration").bases("Statement"),$("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",$("Identifier")),$("FunctionExpression").bases("Function","Expression").build("id","params","body"),$("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",H("var","let","const")).field("declarations",[$("VariableDeclarator")]),$("VariableDeclarator").bases("Node").build("id","init").field("id",$("Pattern")).field("init",H($("Expression"),null),X.null),$("Expression").bases("Node"),$("ThisExpression").bases("Expression").build(),$("ArrayExpression").bases("Expression").build("elements").field("elements",[H($("Expression"),null)]),$("ObjectExpression").bases("Expression").build("properties").field("properties",[$("Property")]),$("Property").bases("Node").build("kind","key","value").field("kind",H("init","get","set")).field("key",H($("Literal"),$("Identifier"))).field("value",$("Expression")),$("SequenceExpression").bases("Expression").build("expressions").field("expressions",[$("Expression")]);var j=H("-","+","!","~","typeof","void","delete");$("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",j).field("argument",$("Expression")).field("prefix",Boolean,X.true);var E=H.apply(void 0,g6.BinaryOperators);$("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",E).field("left",$("Expression")).field("right",$("Expression"));var q=H.apply(void 0,g6.AssignmentOperators);$("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",q).field("left",H($("Pattern"),$("MemberExpression"))).field("right",$("Expression"));var B=H("++","--");$("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",B).field("argument",$("Expression")).field("prefix",Boolean);var W=H.apply(void 0,g6.LogicalOperators);$("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",W).field("left",$("Expression")).field("right",$("Expression")),$("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",$("Expression")).field("consequent",$("Expression")).field("alternate",$("Expression")),$("NewExpression").bases("Expression").build("callee","arguments").field("callee",$("Expression")).field("arguments",[$("Expression")]),$("CallExpression").bases("Expression").build("callee","arguments").field("callee",$("Expression")).field("arguments",[$("Expression")]),$("MemberExpression").bases("Expression").build("object","property","computed").field("object",$("Expression")).field("property",H($("Identifier"),$("Expression"))).field("computed",Boolean,function(){var z=this.property.type;if(z==="Literal"||z==="MemberExpression"||z==="BinaryExpression")return!0;return!1}),$("Pattern").bases("Node"),$("SwitchCase").bases("Node").build("test","consequent").field("test",H($("Expression"),null)).field("consequent",[$("Statement")]),$("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,X.false),$("Literal").bases("Expression").build("value").field("value",H(String,Boolean,null,Number,RegExp)).field("regex",H({pattern:String,flags:String},null),function(){if(this.value instanceof RegExp){var z="";if(this.value.ignoreCase)z+="i";if(this.value.multiline)z+="m";if(this.value.global)z+="g";return{pattern:this.value.source,flags:z}}return null}),$("Comment").bases("Printable").field("value",String).field("leading",Boolean,X.true).field("trailing",Boolean,X.false)}y6.default=q$;c8.exports=y6.default});var m6=y((f6,l8)=>{Object.defineProperty(f6,"__esModule",{value:!0});var u6=m(),M$=u6.__importDefault(_6()),B$=u6.__importDefault(p()),O$=u6.__importDefault(t());function R$(U){U.use(M$.default);var Q=U.use(B$.default),Z=Q.Type.def,$=Q.Type.or,H=U.use(O$.default).defaults;Z("Function").field("generator",Boolean,H.false).field("expression",Boolean,H.false).field("defaults",[$(Z("Expression"),null)],H.emptyArray).field("rest",$(Z("Identifier"),null),H.null),Z("RestElement").bases("Pattern").build("argument").field("argument",Z("Pattern")).field("typeAnnotation",$(Z("TypeAnnotation"),Z("TSTypeAnnotation"),null),H.null),Z("SpreadElementPattern").bases("Pattern").build("argument").field("argument",Z("Pattern")),Z("FunctionDeclaration").build("id","params","body","generator","expression").field("id",$(Z("Identifier"),null)),Z("FunctionExpression").build("id","params","body","generator","expression"),Z("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,H.null).field("body",$(Z("BlockStatement"),Z("Expression"))).field("generator",!1,H.false),Z("ForOfStatement").bases("Statement").build("left","right","body").field("left",$(Z("VariableDeclaration"),Z("Pattern"))).field("right",Z("Expression")).field("body",Z("Statement")),Z("YieldExpression").bases("Expression").build("argument","delegate").field("argument",$(Z("Expression"),null)).field("delegate",Boolean,H.false),Z("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",Z("Expression")).field("blocks",[Z("ComprehensionBlock")]).field("filter",$(Z("Expression"),null)),Z("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",Z("Expression")).field("blocks",[Z("ComprehensionBlock")]).field("filter",$(Z("Expression"),null)),Z("ComprehensionBlock").bases("Node").build("left","right","each").field("left",Z("Pattern")).field("right",Z("Expression")).field("each",Boolean),Z("Property").field("key",$(Z("Literal"),Z("Identifier"),Z("Expression"))).field("value",$(Z("Expression"),Z("Pattern"))).field("method",Boolean,H.false).field("shorthand",Boolean,H.false).field("computed",Boolean,H.false),Z("ObjectProperty").field("shorthand",Boolean,H.false),Z("PropertyPattern").bases("Pattern").build("key","pattern").field("key",$(Z("Literal"),Z("Identifier"),Z("Expression"))).field("pattern",Z("Pattern")).field("computed",Boolean,H.false),Z("ObjectPattern").bases("Pattern").build("properties").field("properties",[$(Z("PropertyPattern"),Z("Property"))]),Z("ArrayPattern").bases("Pattern").build("elements").field("elements",[$(Z("Pattern"),null)]),Z("SpreadElement").bases("Node").build("argument").field("argument",Z("Expression")),Z("ArrayExpression").field("elements",[$(Z("Expression"),Z("SpreadElement"),Z("RestElement"),null)]),Z("NewExpression").field("arguments",[$(Z("Expression"),Z("SpreadElement"))]),Z("CallExpression").field("arguments",[$(Z("Expression"),Z("SpreadElement"))]),Z("AssignmentPattern").bases("Pattern").build("left","right").field("left",Z("Pattern")).field("right",Z("Expression")),Z("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",$("constructor","method","get","set")).field("key",Z("Expression")).field("value",Z("Function")).field("computed",Boolean,H.false).field("static",Boolean,H.false);var D=$(Z("MethodDefinition"),Z("VariableDeclarator"),Z("ClassPropertyDefinition"),Z("ClassProperty"));Z("ClassProperty").bases("Declaration").build("key").field("key",$(Z("Literal"),Z("Identifier"),Z("Expression"))).field("computed",Boolean,H.false),Z("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",D),Z("ClassBody").bases("Declaration").build("body").field("body",[D]),Z("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",$(Z("Identifier"),null)).field("body",Z("ClassBody")).field("superClass",$(Z("Expression"),null),H.null),Z("ClassExpression").bases("Expression").build("id","body","superClass").field("id",$(Z("Identifier"),null),H.null).field("body",Z("ClassBody")).field("superClass",$(Z("Expression"),null),H.null),Z("Super").bases("Expression").build(),Z("Specifier").bases("Node"),Z("ModuleSpecifier").bases("Specifier").field("local",$(Z("Identifier"),null),H.null).field("id",$(Z("Identifier"),null),H.null).field("name",$(Z("Identifier"),null),H.null),Z("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",Z("Identifier")),Z("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local"),Z("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local"),Z("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[$(Z("ImportSpecifier"),Z("ImportNamespaceSpecifier"),Z("ImportDefaultSpecifier"))],H.emptyArray).field("source",Z("Literal")).field("importKind",$("value","type"),function(){return"value"}),Z("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",$(Z("Declaration"),null)).field("specifiers",[Z("ExportSpecifier")],H.emptyArray).field("source",$(Z("Literal"),null),H.null),Z("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",Z("Identifier")),Z("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",$(Z("Declaration"),Z("Expression"))),Z("ExportAllDeclaration").bases("Declaration").build("source").field("source",Z("Literal")),Z("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",Z("Expression")).field("quasi",Z("TemplateLiteral")),Z("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[Z("TemplateElement")]).field("expressions",[Z("Expression")]),Z("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean),Z("MetaProperty").bases("Expression").build("meta","property").field("meta",Z("Identifier")).field("property",Z("Identifier"))}f6.default=R$;l8.exports=f6.default});var c6=y((h6,o8)=>{Object.defineProperty(h6,"__esModule",{value:!0});var l0=m(),d8=c0(),j$=l0.__importDefault(m6()),E$=l0.__importDefault(p());function I$(U){U.use(j$.default);var Q=U.use(E$.default),Z=Q.Type.def,$=Q.Type.or,H=$.apply(void 0,l0.__spreadArrays(d8.BinaryOperators,["**"]));Z("BinaryExpression").field("operator",H);var D=$.apply(void 0,l0.__spreadArrays(d8.AssignmentOperators,["**="]));Z("AssignmentExpression").field("operator",D)}h6.default=I$;o8.exports=h6.default});var o6=y((d6,s8)=>{Object.defineProperty(d6,"__esModule",{value:!0});var l6=m(),A$=l6.__importDefault(c6()),T$=l6.__importDefault(p()),C$=l6.__importDefault(t());function S$(U){U.use(A$.default);var Q=U.use(T$.default),Z=Q.Type.def,$=U.use(C$.default).defaults;Z("Function").field("async",Boolean,$.false),Z("AwaitExpression").bases("Expression").build("argument").field("argument",Z("Expression"))}d6.default=S$;s8.exports=d6.default});var r6=y((p6,p8)=>{Object.defineProperty(p6,"__esModule",{value:!0});var s6=m(),v$=s6.__importDefault(o6()),L$=s6.__importDefault(p()),N$=s6.__importDefault(t());function x$(U){U.use(v$.default);var Q=U.use(L$.default),Z=Q.Type.def,$=Q.Type.or,H=U.use(N$.default).defaults;Z("ForOfStatement").field("await",Boolean,H.false),Z("SpreadProperty").bases("Node").build("argument").field("argument",Z("Expression")),Z("ObjectExpression").field("properties",[$(Z("Property"),Z("SpreadProperty"),Z("SpreadElement"))]),Z("TemplateElement").field("value",{cooked:$(String,null),raw:String}),Z("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",Z("Pattern")),Z("ObjectPattern").field("properties",[$(Z("PropertyPattern"),Z("Property"),Z("RestElement"),Z("SpreadPropertyPattern"))])}p6.default=x$;p8.exports=p6.default});var n6=y((a6,r8)=>{Object.defineProperty(a6,"__esModule",{value:!0});var i6=m(),b$=i6.__importDefault(r6()),k$=i6.__importDefault(p()),g$=i6.__importDefault(t());function y$(U){U.use(b$.default);var Q=U.use(k$.default),Z=Q.Type.def,$=Q.Type.or,H=U.use(g$.default).defaults;Z("CatchClause").field("param",$(Z("Pattern"),null),H.null)}a6.default=y$;r8.exports=a6.default});var W0=y((t6,i8)=>{Object.defineProperty(t6,"__esModule",{value:!0});var d0=m(),u$=c0(),f$=d0.__importDefault(n6()),m$=d0.__importDefault(p()),h$=d0.__importDefault(t());function c$(U){U.use(f$.default);var Q=U.use(m$.default),Z=Q.Type.def,$=Q.Type.or,H=U.use(h$.default),D=H.defaults;Z("ImportExpression").bases("Expression").build("source").field("source",Z("Expression")),Z("ExportAllDeclaration").build("source","exported").field("source",Z("Literal")).field("exported",$(Z("Identifier"),null)),Z("ChainElement").bases("Node").field("optional",Boolean,D.false),Z("CallExpression").bases("Expression","ChainElement"),Z("MemberExpression").bases("Expression","ChainElement"),Z("ChainExpression").bases("Expression").build("expression").field("expression",Z("ChainElement")),Z("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,D.true),Z("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,D.true);var X=$.apply(void 0,d0.__spreadArrays(u$.LogicalOperators,["??"]));Z("LogicalExpression").field("operator",X)}t6.default=c$;i8.exports=t6.default});var n8=y((ZZ,a8)=>{Object.defineProperty(ZZ,"__esModule",{value:!0});var e6=m(),d$=e6.__importDefault(W0()),o$=e6.__importDefault(p()),s$=e6.__importDefault(t());function p$(U){U.use(d$.default);var Q=U.use(o$.default),Z=Q.Type.def,$=Q.Type.or,H=U.use(s$.default).defaults;Z("JSXAttribute").bases("Node").build("name","value").field("name",$(Z("JSXIdentifier"),Z("JSXNamespacedName"))).field("value",$(Z("Literal"),Z("JSXExpressionContainer"),Z("JSXElement"),Z("JSXFragment"),null),H.null),Z("JSXIdentifier").bases("Identifier").build("name").field("name",String),Z("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",Z("JSXIdentifier")).field("name",Z("JSXIdentifier")),Z("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",$(Z("JSXIdentifier"),Z("JSXMemberExpression"))).field("property",Z("JSXIdentifier")).field("computed",Boolean,H.false);var D=$(Z("JSXIdentifier"),Z("JSXNamespacedName"),Z("JSXMemberExpression"));Z("JSXSpreadAttribute").bases("Node").build("argument").field("argument",Z("Expression"));var X=[$(Z("JSXAttribute"),Z("JSXSpreadAttribute"))];Z("JSXExpressionContainer").bases("Expression").build("expression").field("expression",$(Z("Expression"),Z("JSXEmptyExpression")));var Y=[$(Z("JSXText"),Z("JSXExpressionContainer"),Z("JSXSpreadChild"),Z("JSXElement"),Z("JSXFragment"),Z("Literal"))];Z("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",Z("JSXOpeningElement")).field("closingElement",$(Z("JSXClosingElement"),null),H.null).field("children",Y,H.emptyArray).field("name",D,function(){return this.openingElement.name},!0).field("selfClosing",Boolean,function(){return this.openingElement.selfClosing},!0).field("attributes",X,function(){return this.openingElement.attributes},!0),Z("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",D).field("attributes",X,H.emptyArray).field("selfClosing",Boolean,H.false),Z("JSXClosingElement").bases("Node").build("name").field("name",D),Z("JSXFragment").bases("Expression").build("openingFragment","closingFragment","children").field("openingFragment",Z("JSXOpeningFragment")).field("closingFragment",Z("JSXClosingFragment")).field("children",Y,H.emptyArray),Z("JSXOpeningFragment").bases("Node").build(),Z("JSXClosingFragment").bases("Node").build(),Z("JSXText").bases("Literal").build("value","raw").field("value",String).field("raw",String,function(){return this.value}),Z("JSXEmptyExpression").bases("Node").build(),Z("JSXSpreadChild").bases("Node").build("expression").field("expression",Z("Expression"))}ZZ.default=p$;a8.exports=ZZ.default});var o0=y((QZ,t8)=>{Object.defineProperty(QZ,"__esModule",{value:!0});var $Z=m(),i$=$Z.__importDefault(p()),a$=$Z.__importDefault(t()),n$=$Z.__importDefault(W0());function t$(U){U.use(n$.default);var Q=U.use(i$.default),Z=Q.Type,$=Q.Type.def,H=Z.or,D=U.use(a$.default),X=D.defaults;$("AwaitExpression").build("argument","all").field("argument",H($("Expression"),null)).field("all",Boolean,X.false),$("Decorator").bases("Node").build("expression").field("expression",$("Expression")),$("Property").field("decorators",H([$("Decorator")],null),X.null),$("MethodDefinition").field("decorators",H([$("Decorator")],null),X.null),$("PrivateName").bases("Expression","Pattern").build("id").field("id",$("Identifier")),$("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",$("PrivateName")).field("value",H($("Expression"),null),X.null)}QZ.default=t$;t8.exports=QZ.default});var zZ=y((UZ,Z5)=>{Object.defineProperty(UZ,"__esModule",{value:!0});var e8=m(),ZQ=e8.__importDefault(p()),$Q=e8.__importDefault(t());function QQ(U){var Q=U.use(ZQ.default),Z=Q.Type.def,$=Q.Type.or,H=U.use($Q.default).defaults,D=$(Z("TypeAnnotation"),Z("TSTypeAnnotation"),null),X=$(Z("TypeParameterDeclaration"),Z("TSTypeParameterDeclaration"),null);Z("Identifier").field("typeAnnotation",D,H.null),Z("ObjectPattern").field("typeAnnotation",D,H.null),Z("Function").field("returnType",D,H.null).field("typeParameters",X,H.null),Z("ClassProperty").build("key","value","typeAnnotation","static").field("value",$(Z("Expression"),null)).field("static",Boolean,H.false).field("typeAnnotation",D,H.null),["ClassDeclaration","ClassExpression"].forEach(function(Y){Z(Y).field("typeParameters",X,H.null).field("superTypeParameters",$(Z("TypeParameterInstantiation"),Z("TSTypeParameterInstantiation"),null),H.null).field("implements",$([Z("ClassImplements")],[Z("TSExpressionWithTypeArguments")]),H.emptyArray)})}UZ.default=QQ;Z5.exports=UZ.default});var KZ=y((XZ,$5)=>{Object.defineProperty(XZ,"__esModule",{value:!0});var s0=m(),zQ=s0.__importDefault(o0()),XQ=s0.__importDefault(zZ()),KQ=s0.__importDefault(p()),YQ=s0.__importDefault(t());function HQ(U){U.use(zQ.default),U.use(XQ.default);var Q=U.use(KQ.default),Z=Q.Type.def,$=Q.Type.or,H=U.use(YQ.default).defaults;Z("Flow").bases("Node"),Z("FlowType").bases("Flow"),Z("AnyTypeAnnotation").bases("FlowType").build(),Z("EmptyTypeAnnotation").bases("FlowType").build(),Z("MixedTypeAnnotation").bases("FlowType").build(),Z("VoidTypeAnnotation").bases("FlowType").build(),Z("SymbolTypeAnnotation").bases("FlowType").build(),Z("NumberTypeAnnotation").bases("FlowType").build(),Z("BigIntTypeAnnotation").bases("FlowType").build(),Z("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),Z("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),Z("BigIntLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",null).field("raw",String),Z("StringTypeAnnotation").bases("FlowType").build(),Z("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String),Z("BooleanTypeAnnotation").bases("FlowType").build(),Z("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String),Z("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",Z("FlowType")),Z("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",Z("FlowType")),Z("NullLiteralTypeAnnotation").bases("FlowType").build(),Z("NullTypeAnnotation").bases("FlowType").build(),Z("ThisTypeAnnotation").bases("FlowType").build(),Z("ExistsTypeAnnotation").bases("FlowType").build(),Z("ExistentialTypeParam").bases("FlowType").build(),Z("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[Z("FunctionTypeParam")]).field("returnType",Z("FlowType")).field("rest",$(Z("FunctionTypeParam"),null)).field("typeParameters",$(Z("TypeParameterDeclaration"),null)),Z("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",$(Z("Identifier"),null)).field("typeAnnotation",Z("FlowType")).field("optional",Boolean),Z("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",Z("FlowType")),Z("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[$(Z("ObjectTypeProperty"),Z("ObjectTypeSpreadProperty"))]).field("indexers",[Z("ObjectTypeIndexer")],H.emptyArray).field("callProperties",[Z("ObjectTypeCallProperty")],H.emptyArray).field("inexact",$(Boolean,void 0),H.undefined).field("exact",Boolean,H.false).field("internalSlots",[Z("ObjectTypeInternalSlot")],H.emptyArray),Z("Variance").bases("Node").build("kind").field("kind",$("plus","minus"));var D=$(Z("Variance"),"plus","minus",null);Z("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",$(Z("Literal"),Z("Identifier"))).field("value",Z("FlowType")).field("optional",Boolean).field("variance",D,H.null),Z("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",Z("Identifier")).field("key",Z("FlowType")).field("value",Z("FlowType")).field("variance",D,H.null).field("static",Boolean,H.false),Z("ObjectTypeCallProperty").bases("Node").build("value").field("value",Z("FunctionTypeAnnotation")).field("static",Boolean,H.false),Z("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",$(Z("Identifier"),Z("QualifiedTypeIdentifier"))).field("id",Z("Identifier")),Z("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",$(Z("Identifier"),Z("QualifiedTypeIdentifier"))).field("typeParameters",$(Z("TypeParameterInstantiation"),null)),Z("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",Z("Identifier")).field("property",$(Z("MemberTypeAnnotation"),Z("GenericTypeAnnotation"))),Z("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[Z("FlowType")]),Z("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[Z("FlowType")]),Z("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",Z("FlowType")),Z("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",Z("FlowType")),Z("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",Z("Identifier")).field("value",Z("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean),Z("TypeParameterDeclaration").bases("Node").build("params").field("params",[Z("TypeParameter")]),Z("TypeParameterInstantiation").bases("Node").build("params").field("params",[Z("FlowType")]),Z("TypeParameter").bases("FlowType").build("name","variance","bound","default").field("name",String).field("variance",D,H.null).field("bound",$(Z("TypeAnnotation"),null),H.null).field("default",$(Z("FlowType"),null),H.null),Z("ClassProperty").field("variance",D,H.null),Z("ClassImplements").bases("Node").build("id").field("id",Z("Identifier")).field("superClass",$(Z("Expression"),null),H.null).field("typeParameters",$(Z("TypeParameterInstantiation"),null),H.null),Z("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",Z("ObjectTypeAnnotation")).field("extends",$([Z("InterfaceExtends")],null),H.null),Z("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",Z("Identifier")).field("typeParameters",$(Z("TypeParameterDeclaration"),null),H.null).field("body",Z("ObjectTypeAnnotation")).field("extends",[Z("InterfaceExtends")]),Z("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends"),Z("InterfaceExtends").bases("Node").build("id").field("id",Z("Identifier")).field("typeParameters",$(Z("TypeParameterInstantiation"),null),H.null),Z("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",Z("Identifier")).field("typeParameters",$(Z("TypeParameterDeclaration"),null)).field("right",Z("FlowType")),Z("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right"),Z("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",Z("Identifier")).field("typeParameters",$(Z("TypeParameterDeclaration"),null)).field("impltype",Z("FlowType")).field("supertype",$(Z("FlowType"),null)),Z("DeclareOpaqueType").bases("OpaqueType").build("id","typeParameters","supertype").field("impltype",$(Z("FlowType"),null)),Z("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",Z("Expression")).field("typeAnnotation",Z("TypeAnnotation")),Z("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[Z("FlowType")]),Z("DeclareVariable").bases("Statement").build("id").field("id",Z("Identifier")),Z("DeclareFunction").bases("Statement").build("id").field("id",Z("Identifier")).field("predicate",$(Z("FlowPredicate"),null),H.null),Z("DeclareClass").bases("InterfaceDeclaration").build("id"),Z("DeclareModule").bases("Statement").build("id","body").field("id",$(Z("Identifier"),Z("Literal"))).field("body",Z("BlockStatement")),Z("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",Z("TypeAnnotation")),Z("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",$(Z("DeclareVariable"),Z("DeclareFunction"),Z("DeclareClass"),Z("FlowType"),Z("TypeAlias"),Z("DeclareOpaqueType"),Z("InterfaceDeclaration"),null)).field("specifiers",[$(Z("ExportSpecifier"),Z("ExportBatchSpecifier"))],H.emptyArray).field("source",$(Z("Literal"),null),H.null),Z("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",$(Z("Literal"),null),H.null),Z("ImportDeclaration").field("importKind",$("value","type","typeof"),function(){return"value"}),Z("FlowPredicate").bases("Flow"),Z("InferredPredicate").bases("FlowPredicate").build(),Z("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",Z("Expression")),Z("Function").field("predicate",$(Z("FlowPredicate"),null),H.null),Z("CallExpression").field("typeArguments",$(null,Z("TypeParameterInstantiation")),H.null),Z("NewExpression").field("typeArguments",$(null,Z("TypeParameterInstantiation")),H.null),Z("EnumDeclaration").bases("Declaration").build("id","body").field("id",Z("Identifier")).field("body",$(Z("EnumBooleanBody"),Z("EnumNumberBody"),Z("EnumStringBody"),Z("EnumSymbolBody"))),Z("EnumBooleanBody").build("members","explicitType").field("members",[Z("EnumBooleanMember")]).field("explicitType",Boolean),Z("EnumNumberBody").build("members","explicitType").field("members",[Z("EnumNumberMember")]).field("explicitType",Boolean),Z("EnumStringBody").build("members","explicitType").field("members",$([Z("EnumStringMember")],[Z("EnumDefaultedMember")])).field("explicitType",Boolean),Z("EnumSymbolBody").build("members").field("members",[Z("EnumDefaultedMember")]),Z("EnumBooleanMember").build("id","init").field("id",Z("Identifier")).field("init",$(Z("Literal"),Boolean)),Z("EnumNumberMember").build("id","init").field("id",Z("Identifier")).field("init",Z("Literal")),Z("EnumStringMember").build("id","init").field("id",Z("Identifier")).field("init",Z("Literal")),Z("EnumDefaultedMember").build("id").field("id",Z("Identifier"))}XZ.default=HQ;$5.exports=XZ.default});var U5=y((HZ,Q5)=>{Object.defineProperty(HZ,"__esModule",{value:!0});var YZ=m(),GQ=YZ.__importDefault(W0()),DQ=YZ.__importDefault(p()),qQ=YZ.__importDefault(t());function WQ(U){U.use(GQ.default);var Q=U.use(DQ.default),Z=U.use(qQ.default).defaults,$=Q.Type.def,H=Q.Type.or;$("VariableDeclaration").field("declarations",[H($("VariableDeclarator"),$("Identifier"))]),$("Property").field("value",H($("Expression"),$("Pattern"))),$("ArrayPattern").field("elements",[H($("Pattern"),$("SpreadElement"),null)]),$("ObjectPattern").field("properties",[H($("Property"),$("PropertyPattern"),$("SpreadPropertyPattern"),$("SpreadProperty"))]),$("ExportSpecifier").bases("ModuleSpecifier").build("id","name"),$("ExportBatchSpecifier").bases("Specifier").build(),$("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",H($("Declaration"),$("Expression"),null)).field("specifiers",[H($("ExportSpecifier"),$("ExportBatchSpecifier"))],Z.emptyArray).field("source",H($("Literal"),null),Z.null),$("Block").bases("Comment").build("value","leading","trailing"),$("Line").bases("Comment").build("value","leading","trailing")}HZ.default=WQ;Q5.exports=HZ.default});var DZ=y((GZ,z5)=>{Object.defineProperty(GZ,"__esModule",{value:!0});var JZ=m(),BQ=JZ.__importDefault(o0()),OQ=JZ.__importDefault(p()),RQ=JZ.__importDefault(t());function VQ(U){U.use(BQ.default);var Q=U.use(OQ.default),Z=U.use(RQ.default).defaults,$=Q.Type.def,H=Q.Type.or;$("Noop").bases("Statement").build(),$("DoExpression").bases("Expression").build("body").field("body",[$("Statement")]),$("BindExpression").bases("Expression").build("object","callee").field("object",H($("Expression"),null)).field("callee",$("Expression")),$("ParenthesizedExpression").bases("Expression").build("expression").field("expression",$("Expression")),$("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",$("Identifier")),$("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",$("Identifier")),$("CommentBlock").bases("Comment").build("value","leading","trailing"),$("CommentLine").bases("Comment").build("value","leading","trailing"),$("Directive").bases("Node").build("value").field("value",$("DirectiveLiteral")),$("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,Z["use strict"]),$("InterpreterDirective").bases("Node").build("value").field("value",String),$("BlockStatement").bases("Statement").build("body").field("body",[$("Statement")]).field("directives",[$("Directive")],Z.emptyArray),$("Program").bases("Node").build("body").field("body",[$("Statement")]).field("directives",[$("Directive")],Z.emptyArray).field("interpreter",H($("InterpreterDirective"),null),Z.null),$("StringLiteral").bases("Literal").build("value").field("value",String),$("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",H(String,null),Z.null).field("extra",{rawValue:Number,raw:String},function(){return{rawValue:this.value,raw:this.value+""}}),$("BigIntLiteral").bases("Literal").build("value").field("value",H(String,Number)).field("extra",{rawValue:String,raw:String},function(){return{rawValue:String(this.value),raw:this.value+"n"}}),$("NullLiteral").bases("Literal").build().field("value",null,Z.null),$("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),$("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,function(){return new RegExp(this.pattern,this.flags)});var D=H($("Property"),$("ObjectMethod"),$("ObjectProperty"),$("SpreadProperty"),$("SpreadElement"));$("ObjectExpression").bases("Expression").build("properties").field("properties",[D]),$("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",H("method","get","set")).field("key",H($("Literal"),$("Identifier"),$("Expression"))).field("params",[$("Pattern")]).field("body",$("BlockStatement")).field("computed",Boolean,Z.false).field("generator",Boolean,Z.false).field("async",Boolean,Z.false).field("accessibility",H($("Literal"),null),Z.null).field("decorators",H([$("Decorator")],null),Z.null),$("ObjectProperty").bases("Node").build("key","value").field("key",H($("Literal"),$("Identifier"),$("Expression"))).field("value",H($("Expression"),$("Pattern"))).field("accessibility",H($("Literal"),null),Z.null).field("computed",Boolean,Z.false);var X=H($("MethodDefinition"),$("VariableDeclarator"),$("ClassPropertyDefinition"),$("ClassProperty"),$("ClassPrivateProperty"),$("ClassMethod"),$("ClassPrivateMethod"));$("ClassBody").bases("Declaration").build("body").field("body",[X]),$("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",H($("Literal"),$("Identifier"),$("Expression"))),$("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",$("PrivateName")),["ClassMethod","ClassPrivateMethod"].forEach(function(j){$(j).field("kind",H("get","set","method","constructor"),function(){return"method"}).field("body",$("BlockStatement")).field("computed",Boolean,Z.false).field("static",H(Boolean,null),Z.null).field("abstract",H(Boolean,null),Z.null).field("access",H("public","private","protected",null),Z.null).field("accessibility",H("public","private","protected",null),Z.null).field("decorators",H([$("Decorator")],null),Z.null).field("optional",H(Boolean,null),Z.null)});var Y=H($("Property"),$("PropertyPattern"),$("SpreadPropertyPattern"),$("SpreadProperty"),$("ObjectProperty"),$("RestProperty"));$("ObjectPattern").bases("Pattern").build("properties").field("properties",[Y]).field("decorators",H([$("Decorator")],null),Z.null),$("SpreadProperty").bases("Node").build("argument").field("argument",$("Expression")),$("RestProperty").bases("Node").build("argument").field("argument",$("Expression")),$("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",H($("VariableDeclaration"),$("Expression"))).field("right",$("Expression")).field("body",$("Statement")),$("Import").bases("Expression").build()}GZ.default=VQ;z5.exports=GZ.default});var Y5=y((qZ,K5)=>{Object.defineProperty(qZ,"__esModule",{value:!0});var X5=m(),EQ=X5.__importDefault(DZ()),IQ=X5.__importDefault(KZ());function FQ(U){U.use(EQ.default),U.use(IQ.default)}qZ.default=FQ;K5.exports=qZ.default});var J5=y((WZ,H5)=>{Object.defineProperty(WZ,"__esModule",{value:!0});var p0=m(),TQ=p0.__importDefault(DZ()),CQ=p0.__importDefault(zZ()),SQ=p0.__importDefault(p()),wQ=p0.__importDefault(t());function vQ(U){U.use(TQ.default),U.use(CQ.default);var Q=U.use(SQ.default),Z=Q.namedTypes,$=Q.Type.def,H=Q.Type.or,D=U.use(wQ.default).defaults,X=Q.Type.from(function(q,B){if(Z.StringLiteral&&Z.StringLiteral.check(q,B))return!0;if(Z.Literal&&Z.Literal.check(q,B)&&typeof q.value==="string")return!0;return!1},"StringLiteral");$("TSType").bases("Node");var Y=H($("Identifier"),$("TSQualifiedName"));$("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",Y),$("TSHasOptionalTypeParameterInstantiation").field("typeParameters",H($("TSTypeParameterInstantiation"),null),D.null),$("TSHasOptionalTypeParameters").field("typeParameters",H($("TSTypeParameterDeclaration"),null,void 0),D.null),$("TSHasOptionalTypeAnnotation").field("typeAnnotation",H($("TSTypeAnnotation"),null),D.null),$("TSQualifiedName").bases("Node").build("left","right").field("left",Y).field("right",Y),$("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",$("Expression")).field("typeAnnotation",$("TSType")).field("extra",H({parenthesized:Boolean},null),D.null),$("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",$("Expression")),["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSThisType"].forEach(function(q){$(q).bases("TSType").build()}),$("TSArrayType").bases("TSType").build("elementType").field("elementType",$("TSType")),$("TSLiteralType").bases("TSType").build("literal").field("literal",H($("NumericLiteral"),$("StringLiteral"),$("BooleanLiteral"),$("TemplateLiteral"),$("UnaryExpression"))),["TSUnionType","TSIntersectionType"].forEach(function(q){$(q).bases("TSType").build("types").field("types",[$("TSType")])}),$("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",$("TSType")).field("extendsType",$("TSType")).field("trueType",$("TSType")).field("falseType",$("TSType")),$("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",$("TSTypeParameter")),$("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",$("TSType"));var j=[H($("Identifier"),$("RestElement"),$("ArrayPattern"),$("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach(function(q){$(q).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",j)}),$("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,D.false).field("async",Boolean,D.false).field("generator",Boolean,D.false).field("id",H($("Identifier"),null),D.null).field("params",[$("Pattern")]).field("returnType",H($("TSTypeAnnotation"),$("Noop"),null),D.null),$("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,D.false).field("generator",Boolean,D.false).field("params",[$("Pattern")]).field("abstract",Boolean,D.false).field("accessibility",H("public","private","protected",void 0),D.undefined).field("static",Boolean,D.false).field("computed",Boolean,D.false).field("optional",Boolean,D.false).field("key",H($("Identifier"),$("StringLiteral"),$("NumericLiteral"),$("Expression"))).field("kind",H("get","set","method","constructor"),function(){return"method"}).field("access",H("public","private","protected",void 0),D.undefined).field("decorators",H([$("Decorator")],null),D.null).field("returnType",H($("TSTypeAnnotation"),$("Noop"),null),D.null),$("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",H(Boolean,"+","-"),D.false).field("typeParameter",$("TSTypeParameter")).field("optional",H(Boolean,"+","-"),D.false).field("typeAnnotation",H($("TSType"),null),D.null),$("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[H($("TSType"),$("TSNamedTupleMember"))]),$("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",$("Identifier")).field("optional",Boolean,D.false).field("elementType",$("TSType")),$("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",$("TSType")),$("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",$("TSType")),$("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",$("TSType")).field("indexType",$("TSType")),$("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",$("TSType")),$("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",H($("TSType"),$("TSTypeAnnotation"))),$("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[$("Identifier")]).field("readonly",Boolean,D.false),$("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",$("Expression")).field("computed",Boolean,D.false).field("readonly",Boolean,D.false).field("optional",Boolean,D.false).field("initializer",H($("Expression"),null),D.null),$("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",$("Expression")).field("computed",Boolean,D.false).field("optional",Boolean,D.false).field("parameters",j),$("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",H($("Identifier"),$("TSThisType"))).field("typeAnnotation",H($("TSTypeAnnotation"),null),D.null).field("asserts",Boolean,D.false),["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach(function(q){$(q).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",j)}),$("TSEnumMember").bases("Node").build("id","initializer").field("id",H($("Identifier"),X)).field("initializer",H($("Expression"),null),D.null),$("TSTypeQuery").bases("TSType").build("exprName").field("exprName",H(Y,$("TSImportType")));var E=H($("TSCallSignatureDeclaration"),$("TSConstructSignatureDeclaration"),$("TSIndexSignature"),$("TSMethodSignature"),$("TSPropertySignature"));$("TSTypeLiteral").bases("TSType").build("members").field("members",[E]),$("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",String).field("constraint",H($("TSType"),void 0),D.undefined).field("default",H($("TSType"),void 0),D.undefined),$("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",$("TSType")).field("expression",$("Expression")).field("extra",H({parenthesized:Boolean},null),D.null),$("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[$("TSTypeParameter")]),$("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[$("TSType")]),$("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",$("Identifier")).field("const",Boolean,D.false).field("declare",Boolean,D.false).field("members",[$("TSEnumMember")]).field("initializer",H($("Expression"),null),D.null),$("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",$("Identifier")).field("declare",Boolean,D.false).field("typeAnnotation",$("TSType")),$("TSModuleBlock").bases("Node").build("body").field("body",[$("Statement")]),$("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",H(X,Y)).field("declare",Boolean,D.false).field("global",Boolean,D.false).field("body",H($("TSModuleBlock"),$("TSModuleDeclaration"),null),D.null),$("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",X).field("qualifier",H(Y,void 0),D.undefined),$("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",$("Identifier")).field("isExport",Boolean,D.false).field("moduleReference",H(Y,$("TSExternalModuleReference"))),$("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",X),$("TSExportAssignment").bases("Statement").build("expression").field("expression",$("Expression")),$("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",$("Identifier")),$("TSInterfaceBody").bases("Node").build("body").field("body",[E]),$("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",Y),$("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",Y).field("declare",Boolean,D.false).field("extends",H([$("TSExpressionWithTypeArguments")],null),D.null).field("body",$("TSInterfaceBody")),$("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",H("public","private","protected",void 0),D.undefined).field("readonly",Boolean,D.false).field("parameter",H($("Identifier"),$("AssignmentPattern"))),$("ClassProperty").field("access",H("public","private","protected",void 0),D.undefined),$("ClassBody").field("body",[H($("MethodDefinition"),$("VariableDeclarator"),$("ClassPropertyDefinition"),$("ClassProperty"),$("ClassPrivateProperty"),$("ClassMethod"),$("ClassPrivateMethod"),$("TSDeclareMethod"),E)])}WZ.default=vQ;H5.exports=WZ.default});var D5=y((G5)=>{Object.defineProperty(G5,"__esModule",{value:!0});G5.namedTypes=void 0;var NQ;(function(U){})(NQ=G5.namedTypes||(G5.namedTypes={}))});var M5=y((BZ)=>{Object.defineProperty(BZ,"__esModule",{value:!0});BZ.visit=BZ.use=BZ.Type=BZ.someField=BZ.PathVisitor=BZ.Path=BZ.NodePath=BZ.namedTypes=BZ.getSupertypeNames=BZ.getFieldValue=BZ.getFieldNames=BZ.getBuilderName=BZ.finalize=BZ.eachField=BZ.defineMethod=BZ.builtInTypes=BZ.builders=BZ.astNodesAreEquivalent=void 0;var e=m(),xQ=e.__importDefault(_8()),PQ=e.__importDefault(_6()),bQ=e.__importDefault(m6()),kQ=e.__importDefault(c6()),gQ=e.__importDefault(o6()),yQ=e.__importDefault(r6()),_Q=e.__importDefault(n6()),uQ=e.__importDefault(W0()),fQ=e.__importDefault(n8()),mQ=e.__importDefault(KZ()),hQ=e.__importDefault(U5()),cQ=e.__importDefault(Y5()),lQ=e.__importDefault(J5()),dQ=e.__importDefault(o0()),q5=D5();Object.defineProperty(BZ,"namedTypes",{enumerable:!0,get:function(){return q5.namedTypes}});var a=xQ.default([PQ.default,bQ.default,kQ.default,gQ.default,yQ.default,_Q.default,uQ.default,fQ.default,mQ.default,hQ.default,cQ.default,lQ.default,dQ.default]),oQ=a.astNodesAreEquivalent,sQ=a.builders,pQ=a.builtInTypes,rQ=a.defineMethod,iQ=a.eachField,aQ=a.finalize,nQ=a.getBuilderName,tQ=a.getFieldNames,eQ=a.getFieldValue,ZU=a.getSupertypeNames,$U=a.namedTypes,QU=a.NodePath,UU=a.Path,zU=a.PathVisitor,XU=a.someField,KU=a.Type,YU=a.use,HU=a.visit;BZ.astNodesAreEquivalent=oQ;BZ.builders=sQ;BZ.builtInTypes=pQ;BZ.defineMethod=rQ;BZ.eachField=iQ;BZ.finalize=aQ;BZ.getBuilderName=nQ;BZ.getFieldNames=tQ;BZ.getFieldValue=eQ;BZ.getSupertypeNames=ZU;BZ.NodePath=QU;BZ.Path=UU;BZ.PathVisitor=zU;BZ.someField=XU;BZ.Type=KU;BZ.use=YU;BZ.visit=HU;Object.assign(q5.namedTypes,$U)});var r0=OZ(j8(),1),E1=OZ(M5(),1);async function B5(U){let Q=new Set;function Z(q){return(q.type==="ExportNamedDeclaration"||q.type==="ExportDefaultDeclaration")&&q.declaration?.type==="ClassDeclaration"&&(q.declaration.superClass?.name==="Controller"||q.declaration.superClass?.name==="ResourceController")}function $(q){return q.type==="ClassDeclaration"&&(q.superClass?.name==="Controller"||q.superClass?.name==="ResourceController")}function H(q){return q.type==="ClassDeclaration"&&(q.superClass?.name==="ApiRouter"||q.superClass?.name==="ViewRouter")}function D(q){return(q.type==="ExportNamedDeclaration"||q.type==="ExportDefaultDeclaration")&&q.declaration?.type==="ClassDeclaration"&&(q.declaration.superClass?.name==="ApiRouter"||q.declaration.superClass?.name==="ViewRouter")}function X(q){for(let B of q.body)if(B.type==="ClassMethod"){if(B.params.length===0)continue;if(B.accessibility==="private"||B.accessibility==="protected")continue;let W=B.params[0].name,z="";try{z=B.params[0].typeAnnotation.typeAnnotation.typeName.name}catch(M){}if(z==="")continue;let K=E1.builders.identifier(W),J=E1.builders.newExpression(E1.builders.identifier(z),[]),G=E1.builders.assignmentPattern(K,J);B.params[0]=G,Q.add(z)}}function Y(q){for(let B of q)if(B.key.name==="routes"&&B.value.type==="ObjectExpression")for(let W of B.value.properties){if(W?.value?.type==="Identifier")continue;let z=W?.value?.callee?.object?.arguments??W?.value?.arguments;for(let K of z??[]){if(!(K.type==="ArrowFunctionExpression"||K.type==="FunctionExpression"))continue;let[J]=K.params;if(!J)continue;let G="";try{G=J.typeAnnotation.typeAnnotation.typeName.name}catch(F){}if(G==="")continue;let M=J.name,O=E1.builders.identifier(M),V=E1.builders.newExpression(E1.builders.identifier(G),[]),I=E1.builders.assignmentPattern(O,V);K.params[0]=I,Q.add(G)}}}function j(q){for(let B of q){if(B?.type!=="ImportDeclaration")continue;let W=B.specifiers??[],z=(K)=>Q.has(K.local?.name??K.imported?.name);if(B.importKind==="type"){if(!W.some(z))continue;B.importKind="value";for(let K of W)if(!z(K))K.importKind="type";continue}for(let K of W)if(K.importKind==="type"&&z(K))K.importKind="value"}}let E=await r0.parse(U,{parser:await import("./chunk-8b461343.js").then((m)=>OZ(m.default,1))});for(let q of E.program.body){if(!q||q?.type==="ImportDeclaration")continue;if(Z(q)){X(q.declaration.body);continue}if($(q)){X(q.body);continue}if(H(q)){Y(q.body.body);continue}if(D(q)){Y(q.declaration.body.body);continue}}return j(E.program.body),r0.print(E).code}var CU=/[\\/]http[\\/](controllers|routes)[\\/].+\.tsx?$/;function oU(){return{name:"gemi-custom-request",setup(U){U.onLoad({filter:CU},async(Q)=>{let Z=await Bun.file(Q.path).text();return{contents:await B5(Z),loader:Q.path.endsWith(".tsx")?"tsx":"ts"}})}}}
|
|
98
|
+
};`.indexOf(Q)<0)return(0,R.concat)([U,";"]);return U}});var j8=y((y0)=>{Object.defineProperty(y0,"__esModule",{value:!0});y0.run=y0.prettyPrint=y0.print=y0.visit=y0.types=y0.parse=void 0;var M8=m(),B9=M8.__importDefault(W8("fs")),O9=M8.__importStar(b1());y0.types=O9;var B8=cZ();Object.defineProperty(y0,"parse",{enumerable:!0,get:function(){return B8.parse}});var O8=q8(),R9=b1();Object.defineProperty(y0,"visit",{enumerable:!0,get:function(){return R9.visit}});function R8(U,Q){return new O8.Printer(Q).print(U)}y0.print=R8;function V9(U,Q){return new O8.Printer(Q).printGenerically(U)}y0.prettyPrint=V9;function j9(U,Q){return E9(process.argv[2],U,Q)}y0.run=j9;function E9(U,Q,Z){B9.default.readFile(U,"utf-8",function($,H){if($){console.error($);return}F9(H,Q,Z)})}function I9(U){process.stdout.write(U)}function F9(U,Q,Z){var $=Z&&Z.writeback||I9;Q((0,B8.parse)(U,Z),function(H){$(R8(H,Z).code)})}});var p=y((C8)=>{Object.defineProperty(C8,"__esModule",{value:!0});C8.Def=void 0;var i1=m(),T8=Object.prototype,f0=T8.toString,H1=T8.hasOwnProperty,G0=function(){function U(){}return U.prototype.assert=function(Q,Z){if(!this.check(Q,Z)){var $=T6(Q);throw Error($+" does not match type "+this)}return!0},U.prototype.arrayOf=function(){var Q=this;return new A6(Q)},U}(),A6=function(U){i1.__extends(Q,U);function Q(Z){var $=U.call(this)||this;return $.elemType=Z,$.kind="ArrayType",$}return Q.prototype.toString=function(){return"["+this.elemType+"]"},Q.prototype.check=function(Z,$){var H=this;return Array.isArray(Z)&&Z.every(function(D){return H.elemType.check(D,$)})},Q}(G0),E8=function(U){i1.__extends(Q,U);function Q(Z){var $=U.call(this)||this;return $.value=Z,$.kind="IdentityType",$}return Q.prototype.toString=function(){return String(this.value)},Q.prototype.check=function(Z,$){var H=Z===this.value;if(!H&&typeof $==="function")$(this,Z);return H},Q}(G0),I8=function(U){i1.__extends(Q,U);function Q(Z){var $=U.call(this)||this;return $.fields=Z,$.kind="ObjectType",$}return Q.prototype.toString=function(){return"{ "+this.fields.join(", ")+" }"},Q.prototype.check=function(Z,$){return f0.call(Z)===f0.call({})&&this.fields.every(function(H){return H.type.check(Z[H.name],$)})},Q}(G0),F8=function(U){i1.__extends(Q,U);function Q(Z){var $=U.call(this)||this;return $.types=Z,$.kind="OrType",$}return Q.prototype.toString=function(){return this.types.join(" | ")},Q.prototype.check=function(Z,$){return this.types.some(function(H){return H.check(Z,$)})},Q}(G0),_0=function(U){i1.__extends(Q,U);function Q(Z,$){var H=U.call(this)||this;return H.name=Z,H.predicate=$,H.kind="PredicateType",H}return Q.prototype.toString=function(){return this.name},Q.prototype.check=function(Z,$){var H=this.predicate(Z,$);if(!H&&typeof $==="function")$(this,Z);return H},Q}(G0),u0=function(){function U(Q,Z){this.type=Q,this.typeName=Z,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[]}return U.prototype.isSupertypeOf=function(Q){if(Q instanceof U){if(this.finalized!==!0||Q.finalized!==!0)throw Error("");return H1.call(Q.allSupertypes,this.typeName)}else throw Error(Q+" is not a Def")},U.prototype.checkAllFields=function(Q,Z){var $=this.allFields;if(this.finalized!==!0)throw Error(""+this.typeName);function H(D){var X=$[D],Y=X.type,j=X.getValue(Q);return Y.check(j,Z)}return Q!==null&&typeof Q==="object"&&Object.keys($).every(H)},U.prototype.bases=function(){var Q=[];for(var Z=0;Z<arguments.length;Z++)Q[Z]=arguments[Z];var $=this.baseNames;if(this.finalized){if(Q.length!==$.length)throw Error("");for(var H=0;H<Q.length;H++)if(Q[H]!==$[H])throw Error("");return this}return Q.forEach(function(D){if($.indexOf(D)<0)$.push(D)}),this},U}();C8.Def=u0;var A8=function(){function U(Q,Z,$,H){this.name=Q,this.type=Z,this.defaultFn=$,this.hidden=!!H}return U.prototype.toString=function(){return JSON.stringify(this.name)+": "+this.type},U.prototype.getValue=function(Q){var Z=Q[this.name];if(typeof Z<"u")return Z;if(typeof this.defaultFn==="function")Z=this.defaultFn.call(Q);return Z},U}();function T6(U){if(Array.isArray(U))return"["+U.map(T6).join(", ")+"]";if(U&&typeof U==="object")return"{ "+Object.keys(U).map(function(Q){return Q+": "+U[Q]}).join(", ")+" }";return JSON.stringify(U)}function S9(U){var Q={or:function(){var w=[];for(var v=0;v<arguments.length;v++)w[v]=arguments[v];return new F8(w.map(function(L){return Q.from(L)}))},from:function(w,v){if(w instanceof A6||w instanceof E8||w instanceof I8||w instanceof F8||w instanceof _0)return w;if(w instanceof u0)return w.type;if(Y.check(w)){if(w.length!==1)throw Error("only one element type is permitted for typed arrays");return new A6(Q.from(w[0]))}if(j.check(w))return new I8(Object.keys(w).map(function(x){return new A8(x,Q.from(w[x],x))}));if(typeof w==="function"){var L=Z.indexOf(w);if(L>=0)return $[L];if(typeof v!=="string")throw Error("missing name");return new _0(v,w)}return new E8(w)},def:function(w){return H1.call(G,w)?G[w]:G[w]=new O(w)},hasDef:function(w){return H1.call(G,w)}},Z=[],$=[];function H(w,v){var L=f0.call(v),x=new _0(w,function(f){return f0.call(f)===L});if(v&&typeof v.constructor==="function")Z.push(v.constructor),$.push(x);return x}var D=H("string","truthy"),X=H("function",function(){}),Y=H("array",[]),j=H("object",{}),E=H("RegExp",/./),q=H("Date",new Date),B=H("number",3),W=H("boolean",!0),z=H("null",null),K=H("undefined",void 0),J={string:D,function:X,array:Y,object:j,RegExp:E,Date:q,number:B,boolean:W,null:z,undefined:K},G=Object.create(null);function M(w){if(w&&typeof w==="object"){var v=w.type;if(typeof v==="string"&&H1.call(G,v)){var L=G[v];if(L.finalized)return L}}return null}var O=function(w){i1.__extends(v,w);function v(L){var x=w.call(this,new _0(L,function(f,_){return x.check(f,_)}),L)||this;return x}return v.prototype.check=function(L,x){if(this.finalized!==!0)throw Error("prematurely checking unfinalized type "+this.typeName);if(L===null||typeof L!=="object")return!1;var f=M(L);if(!f){if(this.typeName==="SourceLocation"||this.typeName==="Position")return this.checkAllFields(L,x);return!1}if(x&&f===this)return this.checkAllFields(L,x);if(!this.isSupertypeOf(f))return!1;if(!x)return!0;return f.checkAllFields(L,x)&&this.checkAllFields(L,!1)},v.prototype.build=function(){var L=this,x=[];for(var f=0;f<arguments.length;f++)x[f]=arguments[f];if(this.buildParams=x,this.buildable)return this;this.field("type",String,function(){return L.typeName}),this.buildable=!0;var _=function(d,c,Z1,J1){if(H1.call(d,c))return;var $1=L.allFields;if(!H1.call($1,c))throw Error(""+c);var Q1=$1[c],u1=Q1.type,O1;if(J1)O1=Z1;else if(Q1.defaultFn)O1=Q1.defaultFn.call(d);else{var a1="no value or default function given for field "+JSON.stringify(c)+" of "+L.typeName+"("+L.buildParams.map(function(f1){return $1[f1]}).join(", ")+")";throw Error(a1)}if(!u1.check(O1))throw Error(T6(O1)+" does not match field "+Q1+" of type "+L.typeName);d[c]=O1},i=function(){var d=[];for(var c=0;c<arguments.length;c++)d[c]=arguments[c];var Z1=d.length;if(!L.finalized)throw Error("attempting to instantiate unfinalized type "+L.typeName);var J1=Object.create(C);if(L.buildParams.forEach(function($1,Q1){if(Q1<Z1)_(J1,$1,d[Q1],!0);else _(J1,$1,null,!1)}),Object.keys(L.allFields).forEach(function($1){_(J1,$1,null,!1)}),J1.type!==L.typeName)throw Error("");return J1};return i.from=function(d){if(!L.finalized)throw Error("attempting to instantiate unfinalized type "+L.typeName);var c=Object.create(C);if(Object.keys(L.allFields).forEach(function(Z1){if(H1.call(d,Z1))_(c,Z1,d[Z1],!0);else _(c,Z1,null,!1)}),c.type!==L.typeName)throw Error("");return c},Object.defineProperty(F,P(this.typeName),{enumerable:!0,value:i}),this},v.prototype.field=function(L,x,f,_){if(this.finalized)return console.error("Ignoring attempt to redefine field "+JSON.stringify(L)+" of finalized type "+JSON.stringify(this.typeName)),this;return this.ownFields[L]=new A8(L,Q.from(x),f,_),this},v.prototype.finalize=function(){var L=this;if(!this.finalized){var x=this.allFields,f=this.allSupertypes;this.baseNames.forEach(function(i){var d=G[i];if(d instanceof u0)d.finalize(),C1(x,d.allFields),C1(f,d.allSupertypes);else{var c="unknown supertype name "+JSON.stringify(i)+" for subtype "+JSON.stringify(L.typeName);throw Error(c)}}),C1(x,this.ownFields),f[this.typeName]=this,this.fieldNames.length=0;for(var _ in x)if(H1.call(x,_)&&!x[_].hidden)this.fieldNames.push(_);if(Object.defineProperty(h,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,B1(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf("Expression")>=0)T1(this.typeName)}},v}(u0);function V(w){if(!H1.call(G,w))throw Error("");var v=G[w];if(v.finalized!==!0)throw Error("");return v.supertypeList.slice(1)}function I(w){var v={},L=Object.keys(G),x=L.length;for(var f=0;f<x;++f){var _=L[f],i=G[_];if(i.finalized!==!0)throw Error(""+_);for(var d=0;d<i.supertypeList.length;++d){var c=i.supertypeList[d];if(H1.call(w,c)){v[_]=c;break}}}return v}var F=Object.create(null),C={};function N(w,v){var L=C[w];if(K.check(v))delete C[w];else X.assert(v),Object.defineProperty(C,w,{enumerable:!0,configurable:!0,value:v});return L}function P(w){return w.replace(/^[A-Z]+/,function(v){var L=v.length;switch(L){case 0:return"";case 1:return v.toLowerCase();default:return v.slice(0,L-1).toLowerCase()+v.charAt(L-1)}})}function g(w){return w=P(w),w.replace(/(Expression)?$/,"Statement")}var h={};function l(w){var v=M(w);if(v)return v.fieldNames.slice(0);if("type"in w)throw Error("did not recognize object of type "+JSON.stringify(w.type));return Object.keys(w)}function z1(w,v){var L=M(w);if(L){var x=L.allFields[v];if(x)return x.getValue(w)}return w&&w[v]}function A1(w,v,L){l(w).forEach(function(x){v.call(this,x,z1(w,x))},L)}function _1(w,v,L){return l(w).some(function(x){return v.call(this,x,z1(w,x))},L)}function T1(w){var v=g(w);if(F[v])return;var L=F[P(w)];if(!L)return;var x=function(){var f=[];for(var _=0;_<arguments.length;_++)f[_]=arguments[_];return F.expressionStatement(L.apply(F,f))};x.from=function(){var f=[];for(var _=0;_<arguments.length;_++)f[_]=arguments[_];return F.expressionStatement(L.from.apply(F,f))},F[v]=x}function B1(w,v){v.length=0,v.push(w);var L=Object.create(null);for(var x=0;x<v.length;++x){w=v[x];var f=G[w];if(f.finalized!==!0)throw Error("");if(H1.call(L,w))delete v[L[w]];L[w]=x,v.push.apply(v,f.baseNames)}for(var _=0,i=_,d=v.length;i<d;++i)if(H1.call(v,i))v[_++]=v[i];v.length=_}function C1(w,v){return Object.keys(v).forEach(function(L){w[L]=v[L]}),w}function S1(){Object.keys(G).forEach(function(w){G[w].finalize()})}return{Type:Q,builtInTypes:J,getSupertypeNames:V,computeSupertypeLookupTable:I,builders:F,defineMethod:N,getBuilderName:P,getStatementBuilderName:g,namedTypes:h,getFieldNames:l,getFieldValue:z1,eachField:A1,someField:_1,finalize:S1}}C8.default=S9});var S6=y((C6,w8)=>{Object.defineProperty(C6,"__esModule",{value:!0});var v9=m(),L9=v9.__importDefault(p()),N9=Object.prototype,m0=N9.hasOwnProperty;function x9(U){var Q=U.use(L9.default),Z=Q.builtInTypes.array,$=Q.builtInTypes.number,H=function B(W,z,K){if(!(this instanceof B))throw Error("Path constructor cannot be invoked without 'new'");if(z){if(!(z instanceof B))throw Error("")}else z=null,K=null;this.value=W,this.parentPath=z,this.name=K,this.__childCache=null},D=H.prototype;function X(B){return B.__childCache||(B.__childCache=Object.create(null))}function Y(B,W){var z=X(B),K=B.getValueProperty(W),J=z[W];if(!m0.call(z,W)||J.value!==K)J=z[W]=new B.constructor(K,B,W);return J}D.getValueProperty=function(W){return this.value[W]},D.get=function(){var W=[];for(var z=0;z<arguments.length;z++)W[z]=arguments[z];var K=this,J=W.length;for(var G=0;G<J;++G)K=Y(K,W[G]);return K},D.each=function(W,z){var K=[],J=this.value.length,G=0;for(var G=0;G<J;++G)if(m0.call(this.value,G))K[G]=this.get(G);z=z||this;for(G=0;G<J;++G)if(m0.call(K,G))W.call(z,K[G])},D.map=function(W,z){var K=[];return this.each(function(J){K.push(W.call(this,J))},z),K},D.filter=function(W,z){var K=[];return this.each(function(J){if(W.call(this,J))K.push(J)},z),K};function j(){}function E(B,W,z,K){if(Z.assert(B.value),W===0)return j;var J=B.value.length;if(J<1)return j;var G=arguments.length;if(G===2)z=0,K=J;else if(G===3)z=Math.max(z,0),K=J;else z=Math.max(z,0),K=Math.min(K,J);$.assert(z),$.assert(K);var M=Object.create(null),O=X(B);for(var V=z;V<K;++V)if(m0.call(B.value,V)){var I=B.get(V);if(I.name!==V)throw Error("");var F=V+W;I.name=F,M[F]=I,delete O[V]}return delete O.length,function(){for(var C in M){var N=M[C];if(N.name!==+C)throw Error("");O[C]=N,B.value[C]=N.value}}}D.shift=function(){var W=E(this,-1),z=this.value.shift();return W(),z},D.unshift=function(){var W=[];for(var z=0;z<arguments.length;z++)W[z]=arguments[z];var K=E(this,W.length),J=this.value.unshift.apply(this.value,W);return K(),J},D.push=function(){var W=[];for(var z=0;z<arguments.length;z++)W[z]=arguments[z];return Z.assert(this.value),delete X(this).length,this.value.push.apply(this.value,W)},D.pop=function(){Z.assert(this.value);var W=X(this);return delete W[this.value.length-1],delete W.length,this.value.pop()},D.insertAt=function(W){var z=arguments.length,K=E(this,z-1,W);if(K===j&&z<=1)return this;W=Math.max(W,0);for(var J=1;J<z;++J)this.value[W+J-1]=arguments[J];return K(),this},D.insertBefore=function(){var W=[];for(var z=0;z<arguments.length;z++)W[z]=arguments[z];var K=this.parentPath,J=W.length,G=[this.name];for(var M=0;M<J;++M)G.push(W[M]);return K.insertAt.apply(K,G)},D.insertAfter=function(){var W=[];for(var z=0;z<arguments.length;z++)W[z]=arguments[z];var K=this.parentPath,J=W.length,G=[this.name+1];for(var M=0;M<J;++M)G.push(W[M]);return K.insertAt.apply(K,G)};function q(B){if(!(B instanceof H))throw Error("");var W=B.parentPath;if(!W)return B;var z=W.value,K=X(W);if(z[B.name]===B.value)K[B.name]=B;else if(Z.check(z)){var J=z.indexOf(B.value);if(J>=0)K[B.name=J]=B}else z[B.name]=B.value,K[B.name]=B;if(z[B.name]!==B.value)throw Error("");if(B.parentPath.get(B.name)!==B)throw Error("");return B}return D.replace=function(W){var z=[],K=this.parentPath.value,J=X(this.parentPath),G=arguments.length;if(q(this),Z.check(K)){var M=K.length,O=E(this.parentPath,G-1,this.name+1),V=[this.name,1];for(var I=0;I<G;++I)V.push(arguments[I]);var F=K.splice.apply(K,V);if(F[0]!==this.value)throw Error("");if(K.length!==M-1+G)throw Error("");if(O(),G===0)delete this.value,delete J[this.name],this.__childCache=null;else{if(K[this.name]!==W)throw Error("");if(this.value!==W)this.value=W,this.__childCache=null;for(I=0;I<G;++I)z.push(this.parentPath.get(this.name+I));if(z[0]!==this)throw Error("")}}else if(G===1){if(this.value!==W)this.__childCache=null;this.value=K[this.name]=W,z.push(this)}else if(G===0)delete K[this.name],delete this.value,this.__childCache=null;else throw Error("Could not replace path");return z},H}C6.default=x9;w8.exports=C6.default});var L8=y((w6,v8)=>{Object.defineProperty(w6,"__esModule",{value:!0});var b9=m(),k9=b9.__importDefault(p()),D0=Object.prototype.hasOwnProperty;function g9(U){var Q=U.use(k9.default),Z=Q.Type,$=Q.namedTypes,H=$.Node,D=$.Expression,X=Q.builtInTypes.array,Y=Q.builders,j=function O(V,I){if(!(this instanceof O))throw Error("Scope constructor cannot be invoked without 'new'");q.assert(V.value);var F;if(I){if(!(I instanceof O))throw Error("");F=I.depth+1}else I=null,F=0;Object.defineProperties(this,{path:{value:V},node:{value:V.value},isGlobal:{value:!I,enumerable:!0},depth:{value:F},parent:{value:I},bindings:{value:{}},types:{value:{}}})},E=[$.Program,$.Function,$.CatchClause],q=Z.or.apply(Z,E);j.isEstablishedBy=function(O){return q.check(O)};var B=j.prototype;B.didScan=!1,B.declares=function(O){return this.scan(),D0.call(this.bindings,O)},B.declaresType=function(O){return this.scan(),D0.call(this.types,O)},B.declareTemporary=function(O){if(O){if(!/^[a-z$_]/i.test(O))throw Error("")}else O="t$";O+=this.depth.toString(36)+"$",this.scan();var V=0;while(this.declares(O+V))++V;var I=O+V;return this.bindings[I]=Q.builders.identifier(I)},B.injectTemporary=function(O,V){O||(O=this.declareTemporary());var I=this.path.get("body");if($.BlockStatement.check(I.value))I=I.get("body");return I.unshift(Y.variableDeclaration("var",[Y.variableDeclarator(O,V||null)])),O},B.scan=function(O){if(O||!this.didScan){for(var V in this.bindings)delete this.bindings[V];W(this.path,this.bindings,this.types),this.didScan=!0}},B.getBindings=function(){return this.scan(),this.bindings},B.getTypes=function(){return this.scan(),this.types};function W(O,V,I){var F=O.value;if(q.assert(F),$.CatchClause.check(F)){var C=O.get("param");if(C.value)G(C,V)}else z(O,V,I)}function z(O,V,I){var F=O.value;if(O.parent&&$.FunctionExpression.check(O.parent.node)&&O.parent.node.id)G(O.parent.get("id"),V);if(!F);else if(X.check(F))O.each(function(C){J(C,V,I)});else if($.Function.check(F))O.get("params").each(function(C){G(C,V)}),J(O.get("body"),V,I);else if($.TypeAlias&&$.TypeAlias.check(F)||$.InterfaceDeclaration&&$.InterfaceDeclaration.check(F)||$.TSTypeAliasDeclaration&&$.TSTypeAliasDeclaration.check(F)||$.TSInterfaceDeclaration&&$.TSInterfaceDeclaration.check(F))M(O.get("id"),I);else if($.VariableDeclarator.check(F))G(O.get("id"),V),J(O.get("init"),V,I);else if(F.type==="ImportSpecifier"||F.type==="ImportNamespaceSpecifier"||F.type==="ImportDefaultSpecifier")G(O.get(F.local?"local":F.name?"name":"id"),V);else if(H.check(F)&&!D.check(F))Q.eachField(F,function(C,N){var P=O.get(C);if(!K(P,N))throw Error("");J(P,V,I)})}function K(O,V){if(O.value===V)return!0;if(Array.isArray(O.value)&&O.value.length===0&&Array.isArray(V)&&V.length===0)return!0;return!1}function J(O,V,I){var F=O.value;if(!F||D.check(F));else if($.FunctionDeclaration.check(F)&&F.id!==null)G(O.get("id"),V);else if($.ClassDeclaration&&$.ClassDeclaration.check(F))G(O.get("id"),V);else if(q.check(F)){if($.CatchClause.check(F)&&$.Identifier.check(F.param)){var C=F.param.name,N=D0.call(V,C);if(z(O.get("body"),V,I),!N)delete V[C]}}else z(O,V,I)}function G(O,V){var I=O.value;if($.Pattern.assert(I),$.Identifier.check(I))if(D0.call(V,I.name))V[I.name].push(O);else V[I.name]=[O];else if($.AssignmentPattern&&$.AssignmentPattern.check(I))G(O.get("left"),V);else if($.ObjectPattern&&$.ObjectPattern.check(I))O.get("properties").each(function(F){var C=F.value;if($.Pattern.check(C))G(F,V);else if($.Property.check(C))G(F.get("value"),V);else if($.SpreadProperty&&$.SpreadProperty.check(C))G(F.get("argument"),V)});else if($.ArrayPattern&&$.ArrayPattern.check(I))O.get("elements").each(function(F){var C=F.value;if($.Pattern.check(C))G(F,V);else if($.SpreadElement&&$.SpreadElement.check(C))G(F.get("argument"),V)});else if($.PropertyPattern&&$.PropertyPattern.check(I))G(O.get("pattern"),V);else if($.SpreadElementPattern&&$.SpreadElementPattern.check(I)||$.RestElement&&$.RestElement.check(I)||$.SpreadPropertyPattern&&$.SpreadPropertyPattern.check(I))G(O.get("argument"),V)}function M(O,V){var I=O.value;if($.Pattern.assert(I),$.Identifier.check(I))if(D0.call(V,I.name))V[I.name].push(O);else V[I.name]=[O]}return B.lookup=function(O){for(var V=this;V;V=V.parent)if(V.declares(O))break;return V},B.lookupType=function(O){for(var V=this;V;V=V.parent)if(V.declaresType(O))break;return V},B.getGlobalScope=function(){var O=this;while(!O.isGlobal)O=O.parent;return O},j}w6.default=g9;v8.exports=w6.default});var N6=y((L6,N8)=>{Object.defineProperty(L6,"__esModule",{value:!0});var v6=m(),_9=v6.__importDefault(p()),u9=v6.__importDefault(S6()),f9=v6.__importDefault(L8());function m9(U){var Q=U.use(_9.default),Z=Q.namedTypes,$=Q.builders,H=Q.builtInTypes.number,D=Q.builtInTypes.array,X=U.use(u9.default),Y=U.use(f9.default),j=function M(O,V,I){if(!(this instanceof M))throw Error("NodePath constructor cannot be invoked without 'new'");X.call(this,O,V,I)},E=j.prototype=Object.create(X.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(E,{node:{get:function(){return Object.defineProperty(this,"node",{configurable:!0,value:this._computeNode()}),this.node}},parent:{get:function(){return Object.defineProperty(this,"parent",{configurable:!0,value:this._computeParent()}),this.parent}},scope:{get:function(){return Object.defineProperty(this,"scope",{configurable:!0,value:this._computeScope()}),this.scope}}}),E.replace=function(){return delete this.node,delete this.parent,delete this.scope,X.prototype.replace.apply(this,arguments)},E.prune=function(){var M=this.parent;return this.replace(),J(M)},E._computeNode=function(){var M=this.value;if(Z.Node.check(M))return M;var O=this.parentPath;return O&&O.node||null},E._computeParent=function(){var M=this.value,O=this.parentPath;if(!Z.Node.check(M)){while(O&&!Z.Node.check(O.value))O=O.parentPath;if(O)O=O.parentPath}while(O&&!Z.Node.check(O.value))O=O.parentPath;return O||null},E._computeScope=function(){var M=this.value,O=this.parentPath,V=O&&O.scope;if(Z.Node.check(M)&&Y.isEstablishedBy(M))V=new Y(this,V);return V||null},E.getValueProperty=function(M){return Q.getFieldValue(this.value,M)},E.needsParens=function(M){var O=this.parentPath;if(!O)return!1;var V=this.value;if(!Z.Expression.check(V))return!1;if(V.type==="Identifier")return!1;while(!Z.Node.check(O.value))if(O=O.parentPath,!O)return!1;var I=O.value;switch(V.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return I.type==="MemberExpression"&&this.name==="object"&&I.object===V;case"BinaryExpression":case"LogicalExpression":switch(I.type){case"CallExpression":return this.name==="callee"&&I.callee===V;case"UnaryExpression":case"SpreadElement":case"SpreadProperty":return!0;case"MemberExpression":return this.name==="object"&&I.object===V;case"BinaryExpression":case"LogicalExpression":{var F=V,C=I.operator,N=W[C],P=F.operator,g=W[P];if(N>g)return!0;if(N===g&&this.name==="right"){if(I.right!==F)throw Error("Nodes must be equal");return!0}}default:return!1}case"SequenceExpression":switch(I.type){case"ForStatement":return!1;case"ExpressionStatement":return this.name!=="expression";default:return!0}case"YieldExpression":switch(I.type){case"BinaryExpression":case"LogicalExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"CallExpression":case"MemberExpression":case"NewExpression":case"ConditionalExpression":case"YieldExpression":return!0;default:return!1}case"Literal":return I.type==="MemberExpression"&&H.check(V.value)&&this.name==="object"&&I.object===V;case"AssignmentExpression":case"ConditionalExpression":switch(I.type){case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":return!0;case"CallExpression":return this.name==="callee"&&I.callee===V;case"ConditionalExpression":return this.name==="test"&&I.test===V;case"MemberExpression":return this.name==="object"&&I.object===V;default:return!1}default:if(I.type==="NewExpression"&&this.name==="callee"&&I.callee===V)return z(V)}if(M!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())return!0;return!1};function q(M){return Z.BinaryExpression.check(M)||Z.LogicalExpression.check(M)}function B(M){return Z.UnaryExpression.check(M)||Z.SpreadElement&&Z.SpreadElement.check(M)||Z.SpreadProperty&&Z.SpreadProperty.check(M)}var W={};[["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"]].forEach(function(M,O){M.forEach(function(V){W[V]=O})});function z(M){if(Z.CallExpression.check(M))return!0;if(D.check(M))return M.some(z);if(Z.Node.check(M))return Q.someField(M,function(O,V){return z(V)});return!1}E.canBeFirstInStatement=function(){var M=this.node;return!Z.FunctionExpression.check(M)&&!Z.ObjectExpression.check(M)},E.firstInStatement=function(){return K(this)};function K(M){for(var O,V;M.parent;M=M.parent){if(O=M.node,V=M.parent.node,Z.BlockStatement.check(V)&&M.parent.name==="body"&&M.name===0){if(V.body[0]!==O)throw Error("Nodes must be equal");return!0}if(Z.ExpressionStatement.check(V)&&M.name==="expression"){if(V.expression!==O)throw Error("Nodes must be equal");return!0}if(Z.SequenceExpression.check(V)&&M.parent.name==="expressions"&&M.name===0){if(V.expressions[0]!==O)throw Error("Nodes must be equal");continue}if(Z.CallExpression.check(V)&&M.name==="callee"){if(V.callee!==O)throw Error("Nodes must be equal");continue}if(Z.MemberExpression.check(V)&&M.name==="object"){if(V.object!==O)throw Error("Nodes must be equal");continue}if(Z.ConditionalExpression.check(V)&&M.name==="test"){if(V.test!==O)throw Error("Nodes must be equal");continue}if(q(V)&&M.name==="left"){if(V.left!==O)throw Error("Nodes must be equal");continue}if(Z.UnaryExpression.check(V)&&!V.prefix&&M.name==="argument"){if(V.argument!==O)throw Error("Nodes must be equal");continue}return!1}return!0}function J(M){if(Z.VariableDeclaration.check(M.node)){var O=M.get("declarations").value;if(!O||O.length===0)return M.prune()}else if(Z.ExpressionStatement.check(M.node)){if(!M.get("expression").value)return M.prune()}else if(Z.IfStatement.check(M.node))G(M);return M}function G(M){var O=M.get("test").value,V=M.get("alternate").value,I=M.get("consequent").value;if(!I&&!V){var F=$.expressionStatement(O);M.replace(F)}else if(!I&&V){var C=$.unaryExpression("!",O,!0);if(Z.UnaryExpression.check(O)&&O.operator==="!")C=O.argument;M.get("test").replace(C),M.get("consequent").replace(V),M.get("alternate").replace()}}return j}L6.default=m9;N8.exports=L6.default});var b8=y((x6,P8)=>{Object.defineProperty(x6,"__esModule",{value:!0});var x8=m(),c9=x8.__importDefault(p()),l9=x8.__importDefault(N6()),h0=Object.prototype.hasOwnProperty;function d9(U){var Q=U.use(c9.default),Z=U.use(l9.default),$=Q.builtInTypes.array,H=Q.builtInTypes.object,D=Q.builtInTypes.function,X,Y=function K(){if(!(this instanceof K))throw Error("PathVisitor constructor cannot be invoked without 'new'");this._reusableContextStack=[],this._methodNameTable=j(this),this._shouldVisitComments=h0.call(this._methodNameTable,"Block")||h0.call(this._methodNameTable,"Line"),this.Context=W(this),this._visiting=!1,this._changeReported=!1};function j(K){var J=Object.create(null);for(var G in K)if(/^visit[A-Z]/.test(G))J[G.slice(5)]=!0;var M=Q.computeSupertypeLookupTable(J),O=Object.create(null),V=Object.keys(M),I=V.length;for(var F=0;F<I;++F){var C=V[F];if(G="visit"+M[C],D.check(K[G]))O[C]=G}return O}Y.fromMethodsObject=function(J){if(J instanceof Y)return J;if(!H.check(J))return new Y;var G=function O(){if(!(this instanceof O))throw Error("Visitor constructor cannot be invoked without 'new'");Y.call(this)},M=G.prototype=Object.create(q);return M.constructor=G,E(M,J),E(G,Y),D.assert(G.fromMethodsObject),D.assert(G.visit),new G};function E(K,J){for(var G in J)if(h0.call(J,G))K[G]=J[G];return K}Y.visit=function(J,G){return Y.fromMethodsObject(G).visit(J)};var q=Y.prototype;q.visit=function(){if(this._visiting)throw Error("Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.");this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;var K=arguments.length,J=Array(K);for(var G=0;G<K;++G)J[G]=arguments[G];if(!(J[0]instanceof Z))J[0]=new Z({root:J[0]}).get("root");this.reset.apply(this,J);var M;try{var O=this.visitWithoutReset(J[0]);M=!0}finally{if(this._visiting=!1,!M&&this._abortRequested)return J[0].value}return O},q.AbortRequest=function(){},q.abort=function(){var K=this;K._abortRequested=!0;var J=new K.AbortRequest;throw J.cancel=function(){K._abortRequested=!1},J},q.reset=function(K){},q.visitWithoutReset=function(K){if(this instanceof this.Context)return this.visitor.visitWithoutReset(K);if(!(K instanceof Z))throw Error("");var J=K.value,G=J&&typeof J==="object"&&typeof J.type==="string"&&this._methodNameTable[J.type];if(G){var M=this.acquireContext(K);try{return M.invokeVisitorMethod(G)}finally{this.releaseContext(M)}}else return B(K,this)};function B(K,J){if(!(K instanceof Z))throw Error("");if(!(J instanceof Y))throw Error("");var G=K.value;if($.check(G))K.each(J.visitWithoutReset,J);else if(!H.check(G));else{var M=Q.getFieldNames(G);if(J._shouldVisitComments&&G.comments&&M.indexOf("comments")<0)M.push("comments");var O=M.length,V=[];for(var I=0;I<O;++I){var F=M[I];if(!h0.call(G,F))G[F]=Q.getFieldValue(G,F);V.push(K.get(F))}for(var I=0;I<O;++I)J.visitWithoutReset(V[I])}return K.value}q.acquireContext=function(K){if(this._reusableContextStack.length===0)return new this.Context(K);return this._reusableContextStack.pop().reset(K)},q.releaseContext=function(K){if(!(K instanceof this.Context))throw Error("");this._reusableContextStack.push(K),K.currentPath=null},q.reportChanged=function(){this._changeReported=!0},q.wasChangeReported=function(){return this._changeReported};function W(K){function J(M){if(!(this instanceof J))throw Error("");if(!(this instanceof Y))throw Error("");if(!(M instanceof Z))throw Error("");Object.defineProperty(this,"visitor",{value:K,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=M,this.needToCallTraverse=!0,Object.seal(this)}if(!(K instanceof Y))throw Error("");var G=J.prototype=Object.create(K);return G.constructor=J,E(G,z),J}var z=Object.create(null);return z.reset=function(J){if(!(this instanceof this.Context))throw Error("");if(!(J instanceof Z))throw Error("");return this.currentPath=J,this.needToCallTraverse=!0,this},z.invokeVisitorMethod=function(J){if(!(this instanceof this.Context))throw Error("");if(!(this.currentPath instanceof Z))throw Error("");var G=this.visitor[J].call(this,this.currentPath);if(G===!1)this.needToCallTraverse=!1;else if(G!==X){if(this.currentPath=this.currentPath.replace(G)[0],this.needToCallTraverse)this.traverse(this.currentPath)}if(this.needToCallTraverse!==!1)throw Error("Must either call this.traverse or return false in "+J);var M=this.currentPath;return M&&M.value},z.traverse=function(J,G){if(!(this instanceof this.Context))throw Error("");if(!(J instanceof Z))throw Error("");if(!(this.currentPath instanceof Z))throw Error("");return this.needToCallTraverse=!1,B(J,Y.fromMethodsObject(G||this.visitor))},z.visit=function(J,G){if(!(this instanceof this.Context))throw Error("");if(!(J instanceof Z))throw Error("");if(!(this.currentPath instanceof Z))throw Error("");return this.needToCallTraverse=!1,Y.fromMethodsObject(G||this.visitor).visitWithoutReset(J)},z.reportChanged=function(){this.visitor.reportChanged()},z.abort=function(){this.needToCallTraverse=!1,this.visitor.abort()},Y}x6.default=d9;P8.exports=x6.default});var g8=y((P6,k8)=>{Object.defineProperty(P6,"__esModule",{value:!0});var s9=m(),p9=s9.__importDefault(p());function r9(U){var Q=U.use(p9.default),Z=Q.getFieldNames,$=Q.getFieldValue,H=Q.builtInTypes.array,D=Q.builtInTypes.object,X=Q.builtInTypes.Date,Y=Q.builtInTypes.RegExp,j=Object.prototype.hasOwnProperty;function E(K,J,G){if(H.check(G))G.length=0;else G=null;return B(K,J,G)}E.assert=function(K,J){var G=[];if(!E(K,J,G))if(G.length===0){if(K!==J)throw Error("Nodes must be equal")}else throw Error("Nodes differ in the following path: "+G.map(q).join(""))};function q(K){if(/[_$a-z][_$a-z0-9]*/i.test(K))return"."+K;return"["+JSON.stringify(K)+"]"}function B(K,J,G){if(K===J)return!0;if(H.check(K))return W(K,J,G);if(D.check(K))return z(K,J,G);if(X.check(K))return X.check(J)&&+K===+J;if(Y.check(K))return Y.check(J)&&(K.source===J.source&&K.global===J.global&&K.multiline===J.multiline&&K.ignoreCase===J.ignoreCase);return K==J}function W(K,J,G){H.assert(K);var M=K.length;if(!H.check(J)||J.length!==M){if(G)G.push("length");return!1}for(var O=0;O<M;++O){if(G)G.push(O);if(O in K!==O in J)return!1;if(!B(K[O],J[O],G))return!1;if(G){var V=G.pop();if(V!==O)throw Error(""+V)}}return!0}function z(K,J,G){if(D.assert(K),!D.check(J))return!1;if(K.type!==J.type){if(G)G.push("type");return!1}var M=Z(K),O=M.length,V=Z(J),I=V.length;if(O===I){for(var F=0;F<O;++F){var C=M[F],N=$(K,C),P=$(J,C);if(G)G.push(C);if(!B(N,P,G))return!1;if(G){var g=G.pop();if(g!==C)throw Error(""+g)}}return!0}if(!G)return!1;var h=Object.create(null);for(F=0;F<O;++F)h[M[F]]=!0;for(F=0;F<I;++F){if(C=V[F],!j.call(h,C))return G.push(C),!1;delete h[C]}for(C in h){G.push(C);break}return!1}return E}P6.default=r9;k8.exports=P6.default});var _8=y((b6,y8)=>{Object.defineProperty(b6,"__esModule",{value:!0});var q0=m(),a9=q0.__importDefault(p()),n9=q0.__importDefault(b8()),t9=q0.__importDefault(g8()),e9=q0.__importDefault(S6()),Z$=q0.__importDefault(N6());function $$(U){var Q=Q$(),Z=Q.use(a9.default);U.forEach(Q.use),Z.finalize();var $=Q.use(n9.default);return{Type:Z.Type,builtInTypes:Z.builtInTypes,namedTypes:Z.namedTypes,builders:Z.builders,defineMethod:Z.defineMethod,getFieldNames:Z.getFieldNames,getFieldValue:Z.getFieldValue,eachField:Z.eachField,someField:Z.someField,getSupertypeNames:Z.getSupertypeNames,getBuilderName:Z.getBuilderName,astNodesAreEquivalent:Q.use(t9.default),finalize:Z.finalize,Path:Q.use(e9.default),NodePath:Q.use(Z$.default),PathVisitor:$,use:Q.use,visit:$.visit}}b6.default=$$;function Q$(){var U=[],Q=[];function Z(H){var D=U.indexOf(H);if(D===-1)D=U.length,U.push(H),Q[D]=H($);return Q[D]}var $={use:Z};return $}y8.exports=b6.default});var c0=y((u8)=>{Object.defineProperty(u8,"__esModule",{value:!0});u8.LogicalOperators=u8.AssignmentOperators=u8.BinaryOperators=void 0;u8.BinaryOperators=["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"];u8.AssignmentOperators=["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="];u8.LogicalOperators=["||","&&"]});var t=y((k6,m8)=>{Object.defineProperty(k6,"__esModule",{value:!0});var K$=m(),Y$=K$.__importDefault(p());function H$(U){var Q=U.use(Y$.default),Z=Q.Type,$=Q.builtInTypes,H=$.number;function D(E){return Z.from(function(q){return H.check(q)&&q>=E},H+" >= "+E)}var X={null:function(){return null},emptyArray:function(){return[]},false:function(){return!1},true:function(){return!0},undefined:function(){},"use strict":function(){return"use strict"}},Y=Z.or($.string,$.number,$.boolean,$.null,$.undefined),j=Z.from(function(E){if(E===null)return!0;var q=typeof E;if(q==="object"||q==="function")return!1;return!0},Y.toString());return{geq:D,defaults:X,isPrimitive:j}}k6.default=H$;m8.exports=k6.default});var _6=y((y6,c8)=>{Object.defineProperty(y6,"__esModule",{value:!0});var h8=m(),g6=c0(),G$=h8.__importDefault(p()),D$=h8.__importDefault(t());function q$(U){var Q=U.use(G$.default),Z=Q.Type,$=Z.def,H=Z.or,D=U.use(D$.default),X=D.defaults,Y=D.geq;$("Printable").field("loc",H($("SourceLocation"),null),X.null,!0),$("Node").bases("Printable").field("type",String).field("comments",H([$("Comment")],null),X.null,!0),$("SourceLocation").field("start",$("Position")).field("end",$("Position")).field("source",H(String,null),X.null),$("Position").field("line",Y(1)).field("column",Y(0)),$("File").bases("Node").build("program","name").field("program",$("Program")).field("name",H(String,null),X.null),$("Program").bases("Node").build("body").field("body",[$("Statement")]),$("Function").bases("Node").field("id",H($("Identifier"),null),X.null).field("params",[$("Pattern")]).field("body",$("BlockStatement")).field("generator",Boolean,X.false).field("async",Boolean,X.false),$("Statement").bases("Node"),$("EmptyStatement").bases("Statement").build(),$("BlockStatement").bases("Statement").build("body").field("body",[$("Statement")]),$("ExpressionStatement").bases("Statement").build("expression").field("expression",$("Expression")),$("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",$("Expression")).field("consequent",$("Statement")).field("alternate",H($("Statement"),null),X.null),$("LabeledStatement").bases("Statement").build("label","body").field("label",$("Identifier")).field("body",$("Statement")),$("BreakStatement").bases("Statement").build("label").field("label",H($("Identifier"),null),X.null),$("ContinueStatement").bases("Statement").build("label").field("label",H($("Identifier"),null),X.null),$("WithStatement").bases("Statement").build("object","body").field("object",$("Expression")).field("body",$("Statement")),$("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",$("Expression")).field("cases",[$("SwitchCase")]).field("lexical",Boolean,X.false),$("ReturnStatement").bases("Statement").build("argument").field("argument",H($("Expression"),null)),$("ThrowStatement").bases("Statement").build("argument").field("argument",$("Expression")),$("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",$("BlockStatement")).field("handler",H($("CatchClause"),null),function(){return this.handlers&&this.handlers[0]||null}).field("handlers",[$("CatchClause")],function(){return this.handler?[this.handler]:[]},!0).field("guardedHandlers",[$("CatchClause")],X.emptyArray).field("finalizer",H($("BlockStatement"),null),X.null),$("CatchClause").bases("Node").build("param","guard","body").field("param",$("Pattern")).field("guard",H($("Expression"),null),X.null).field("body",$("BlockStatement")),$("WhileStatement").bases("Statement").build("test","body").field("test",$("Expression")).field("body",$("Statement")),$("DoWhileStatement").bases("Statement").build("body","test").field("body",$("Statement")).field("test",$("Expression")),$("ForStatement").bases("Statement").build("init","test","update","body").field("init",H($("VariableDeclaration"),$("Expression"),null)).field("test",H($("Expression"),null)).field("update",H($("Expression"),null)).field("body",$("Statement")),$("ForInStatement").bases("Statement").build("left","right","body").field("left",H($("VariableDeclaration"),$("Expression"))).field("right",$("Expression")).field("body",$("Statement")),$("DebuggerStatement").bases("Statement").build(),$("Declaration").bases("Statement"),$("FunctionDeclaration").bases("Function","Declaration").build("id","params","body").field("id",$("Identifier")),$("FunctionExpression").bases("Function","Expression").build("id","params","body"),$("VariableDeclaration").bases("Declaration").build("kind","declarations").field("kind",H("var","let","const")).field("declarations",[$("VariableDeclarator")]),$("VariableDeclarator").bases("Node").build("id","init").field("id",$("Pattern")).field("init",H($("Expression"),null),X.null),$("Expression").bases("Node"),$("ThisExpression").bases("Expression").build(),$("ArrayExpression").bases("Expression").build("elements").field("elements",[H($("Expression"),null)]),$("ObjectExpression").bases("Expression").build("properties").field("properties",[$("Property")]),$("Property").bases("Node").build("kind","key","value").field("kind",H("init","get","set")).field("key",H($("Literal"),$("Identifier"))).field("value",$("Expression")),$("SequenceExpression").bases("Expression").build("expressions").field("expressions",[$("Expression")]);var j=H("-","+","!","~","typeof","void","delete");$("UnaryExpression").bases("Expression").build("operator","argument","prefix").field("operator",j).field("argument",$("Expression")).field("prefix",Boolean,X.true);var E=H.apply(void 0,g6.BinaryOperators);$("BinaryExpression").bases("Expression").build("operator","left","right").field("operator",E).field("left",$("Expression")).field("right",$("Expression"));var q=H.apply(void 0,g6.AssignmentOperators);$("AssignmentExpression").bases("Expression").build("operator","left","right").field("operator",q).field("left",H($("Pattern"),$("MemberExpression"))).field("right",$("Expression"));var B=H("++","--");$("UpdateExpression").bases("Expression").build("operator","argument","prefix").field("operator",B).field("argument",$("Expression")).field("prefix",Boolean);var W=H.apply(void 0,g6.LogicalOperators);$("LogicalExpression").bases("Expression").build("operator","left","right").field("operator",W).field("left",$("Expression")).field("right",$("Expression")),$("ConditionalExpression").bases("Expression").build("test","consequent","alternate").field("test",$("Expression")).field("consequent",$("Expression")).field("alternate",$("Expression")),$("NewExpression").bases("Expression").build("callee","arguments").field("callee",$("Expression")).field("arguments",[$("Expression")]),$("CallExpression").bases("Expression").build("callee","arguments").field("callee",$("Expression")).field("arguments",[$("Expression")]),$("MemberExpression").bases("Expression").build("object","property","computed").field("object",$("Expression")).field("property",H($("Identifier"),$("Expression"))).field("computed",Boolean,function(){var z=this.property.type;if(z==="Literal"||z==="MemberExpression"||z==="BinaryExpression")return!0;return!1}),$("Pattern").bases("Node"),$("SwitchCase").bases("Node").build("test","consequent").field("test",H($("Expression"),null)).field("consequent",[$("Statement")]),$("Identifier").bases("Expression","Pattern").build("name").field("name",String).field("optional",Boolean,X.false),$("Literal").bases("Expression").build("value").field("value",H(String,Boolean,null,Number,RegExp)).field("regex",H({pattern:String,flags:String},null),function(){if(this.value instanceof RegExp){var z="";if(this.value.ignoreCase)z+="i";if(this.value.multiline)z+="m";if(this.value.global)z+="g";return{pattern:this.value.source,flags:z}}return null}),$("Comment").bases("Printable").field("value",String).field("leading",Boolean,X.true).field("trailing",Boolean,X.false)}y6.default=q$;c8.exports=y6.default});var m6=y((f6,l8)=>{Object.defineProperty(f6,"__esModule",{value:!0});var u6=m(),M$=u6.__importDefault(_6()),B$=u6.__importDefault(p()),O$=u6.__importDefault(t());function R$(U){U.use(M$.default);var Q=U.use(B$.default),Z=Q.Type.def,$=Q.Type.or,H=U.use(O$.default).defaults;Z("Function").field("generator",Boolean,H.false).field("expression",Boolean,H.false).field("defaults",[$(Z("Expression"),null)],H.emptyArray).field("rest",$(Z("Identifier"),null),H.null),Z("RestElement").bases("Pattern").build("argument").field("argument",Z("Pattern")).field("typeAnnotation",$(Z("TypeAnnotation"),Z("TSTypeAnnotation"),null),H.null),Z("SpreadElementPattern").bases("Pattern").build("argument").field("argument",Z("Pattern")),Z("FunctionDeclaration").build("id","params","body","generator","expression").field("id",$(Z("Identifier"),null)),Z("FunctionExpression").build("id","params","body","generator","expression"),Z("ArrowFunctionExpression").bases("Function","Expression").build("params","body","expression").field("id",null,H.null).field("body",$(Z("BlockStatement"),Z("Expression"))).field("generator",!1,H.false),Z("ForOfStatement").bases("Statement").build("left","right","body").field("left",$(Z("VariableDeclaration"),Z("Pattern"))).field("right",Z("Expression")).field("body",Z("Statement")),Z("YieldExpression").bases("Expression").build("argument","delegate").field("argument",$(Z("Expression"),null)).field("delegate",Boolean,H.false),Z("GeneratorExpression").bases("Expression").build("body","blocks","filter").field("body",Z("Expression")).field("blocks",[Z("ComprehensionBlock")]).field("filter",$(Z("Expression"),null)),Z("ComprehensionExpression").bases("Expression").build("body","blocks","filter").field("body",Z("Expression")).field("blocks",[Z("ComprehensionBlock")]).field("filter",$(Z("Expression"),null)),Z("ComprehensionBlock").bases("Node").build("left","right","each").field("left",Z("Pattern")).field("right",Z("Expression")).field("each",Boolean),Z("Property").field("key",$(Z("Literal"),Z("Identifier"),Z("Expression"))).field("value",$(Z("Expression"),Z("Pattern"))).field("method",Boolean,H.false).field("shorthand",Boolean,H.false).field("computed",Boolean,H.false),Z("ObjectProperty").field("shorthand",Boolean,H.false),Z("PropertyPattern").bases("Pattern").build("key","pattern").field("key",$(Z("Literal"),Z("Identifier"),Z("Expression"))).field("pattern",Z("Pattern")).field("computed",Boolean,H.false),Z("ObjectPattern").bases("Pattern").build("properties").field("properties",[$(Z("PropertyPattern"),Z("Property"))]),Z("ArrayPattern").bases("Pattern").build("elements").field("elements",[$(Z("Pattern"),null)]),Z("SpreadElement").bases("Node").build("argument").field("argument",Z("Expression")),Z("ArrayExpression").field("elements",[$(Z("Expression"),Z("SpreadElement"),Z("RestElement"),null)]),Z("NewExpression").field("arguments",[$(Z("Expression"),Z("SpreadElement"))]),Z("CallExpression").field("arguments",[$(Z("Expression"),Z("SpreadElement"))]),Z("AssignmentPattern").bases("Pattern").build("left","right").field("left",Z("Pattern")).field("right",Z("Expression")),Z("MethodDefinition").bases("Declaration").build("kind","key","value","static").field("kind",$("constructor","method","get","set")).field("key",Z("Expression")).field("value",Z("Function")).field("computed",Boolean,H.false).field("static",Boolean,H.false);var D=$(Z("MethodDefinition"),Z("VariableDeclarator"),Z("ClassPropertyDefinition"),Z("ClassProperty"));Z("ClassProperty").bases("Declaration").build("key").field("key",$(Z("Literal"),Z("Identifier"),Z("Expression"))).field("computed",Boolean,H.false),Z("ClassPropertyDefinition").bases("Declaration").build("definition").field("definition",D),Z("ClassBody").bases("Declaration").build("body").field("body",[D]),Z("ClassDeclaration").bases("Declaration").build("id","body","superClass").field("id",$(Z("Identifier"),null)).field("body",Z("ClassBody")).field("superClass",$(Z("Expression"),null),H.null),Z("ClassExpression").bases("Expression").build("id","body","superClass").field("id",$(Z("Identifier"),null),H.null).field("body",Z("ClassBody")).field("superClass",$(Z("Expression"),null),H.null),Z("Super").bases("Expression").build(),Z("Specifier").bases("Node"),Z("ModuleSpecifier").bases("Specifier").field("local",$(Z("Identifier"),null),H.null).field("id",$(Z("Identifier"),null),H.null).field("name",$(Z("Identifier"),null),H.null),Z("ImportSpecifier").bases("ModuleSpecifier").build("imported","local").field("imported",Z("Identifier")),Z("ImportDefaultSpecifier").bases("ModuleSpecifier").build("local"),Z("ImportNamespaceSpecifier").bases("ModuleSpecifier").build("local"),Z("ImportDeclaration").bases("Declaration").build("specifiers","source","importKind").field("specifiers",[$(Z("ImportSpecifier"),Z("ImportNamespaceSpecifier"),Z("ImportDefaultSpecifier"))],H.emptyArray).field("source",Z("Literal")).field("importKind",$("value","type"),function(){return"value"}),Z("ExportNamedDeclaration").bases("Declaration").build("declaration","specifiers","source").field("declaration",$(Z("Declaration"),null)).field("specifiers",[Z("ExportSpecifier")],H.emptyArray).field("source",$(Z("Literal"),null),H.null),Z("ExportSpecifier").bases("ModuleSpecifier").build("local","exported").field("exported",Z("Identifier")),Z("ExportDefaultDeclaration").bases("Declaration").build("declaration").field("declaration",$(Z("Declaration"),Z("Expression"))),Z("ExportAllDeclaration").bases("Declaration").build("source").field("source",Z("Literal")),Z("TaggedTemplateExpression").bases("Expression").build("tag","quasi").field("tag",Z("Expression")).field("quasi",Z("TemplateLiteral")),Z("TemplateLiteral").bases("Expression").build("quasis","expressions").field("quasis",[Z("TemplateElement")]).field("expressions",[Z("Expression")]),Z("TemplateElement").bases("Node").build("value","tail").field("value",{cooked:String,raw:String}).field("tail",Boolean),Z("MetaProperty").bases("Expression").build("meta","property").field("meta",Z("Identifier")).field("property",Z("Identifier"))}f6.default=R$;l8.exports=f6.default});var c6=y((h6,o8)=>{Object.defineProperty(h6,"__esModule",{value:!0});var l0=m(),d8=c0(),j$=l0.__importDefault(m6()),E$=l0.__importDefault(p());function I$(U){U.use(j$.default);var Q=U.use(E$.default),Z=Q.Type.def,$=Q.Type.or,H=$.apply(void 0,l0.__spreadArrays(d8.BinaryOperators,["**"]));Z("BinaryExpression").field("operator",H);var D=$.apply(void 0,l0.__spreadArrays(d8.AssignmentOperators,["**="]));Z("AssignmentExpression").field("operator",D)}h6.default=I$;o8.exports=h6.default});var o6=y((d6,s8)=>{Object.defineProperty(d6,"__esModule",{value:!0});var l6=m(),A$=l6.__importDefault(c6()),T$=l6.__importDefault(p()),C$=l6.__importDefault(t());function S$(U){U.use(A$.default);var Q=U.use(T$.default),Z=Q.Type.def,$=U.use(C$.default).defaults;Z("Function").field("async",Boolean,$.false),Z("AwaitExpression").bases("Expression").build("argument").field("argument",Z("Expression"))}d6.default=S$;s8.exports=d6.default});var r6=y((p6,p8)=>{Object.defineProperty(p6,"__esModule",{value:!0});var s6=m(),v$=s6.__importDefault(o6()),L$=s6.__importDefault(p()),N$=s6.__importDefault(t());function x$(U){U.use(v$.default);var Q=U.use(L$.default),Z=Q.Type.def,$=Q.Type.or,H=U.use(N$.default).defaults;Z("ForOfStatement").field("await",Boolean,H.false),Z("SpreadProperty").bases("Node").build("argument").field("argument",Z("Expression")),Z("ObjectExpression").field("properties",[$(Z("Property"),Z("SpreadProperty"),Z("SpreadElement"))]),Z("TemplateElement").field("value",{cooked:$(String,null),raw:String}),Z("SpreadPropertyPattern").bases("Pattern").build("argument").field("argument",Z("Pattern")),Z("ObjectPattern").field("properties",[$(Z("PropertyPattern"),Z("Property"),Z("RestElement"),Z("SpreadPropertyPattern"))])}p6.default=x$;p8.exports=p6.default});var n6=y((a6,r8)=>{Object.defineProperty(a6,"__esModule",{value:!0});var i6=m(),b$=i6.__importDefault(r6()),k$=i6.__importDefault(p()),g$=i6.__importDefault(t());function y$(U){U.use(b$.default);var Q=U.use(k$.default),Z=Q.Type.def,$=Q.Type.or,H=U.use(g$.default).defaults;Z("CatchClause").field("param",$(Z("Pattern"),null),H.null)}a6.default=y$;r8.exports=a6.default});var W0=y((t6,i8)=>{Object.defineProperty(t6,"__esModule",{value:!0});var d0=m(),u$=c0(),f$=d0.__importDefault(n6()),m$=d0.__importDefault(p()),h$=d0.__importDefault(t());function c$(U){U.use(f$.default);var Q=U.use(m$.default),Z=Q.Type.def,$=Q.Type.or,H=U.use(h$.default),D=H.defaults;Z("ImportExpression").bases("Expression").build("source").field("source",Z("Expression")),Z("ExportAllDeclaration").build("source","exported").field("source",Z("Literal")).field("exported",$(Z("Identifier"),null)),Z("ChainElement").bases("Node").field("optional",Boolean,D.false),Z("CallExpression").bases("Expression","ChainElement"),Z("MemberExpression").bases("Expression","ChainElement"),Z("ChainExpression").bases("Expression").build("expression").field("expression",Z("ChainElement")),Z("OptionalCallExpression").bases("CallExpression").build("callee","arguments","optional").field("optional",Boolean,D.true),Z("OptionalMemberExpression").bases("MemberExpression").build("object","property","computed","optional").field("optional",Boolean,D.true);var X=$.apply(void 0,d0.__spreadArrays(u$.LogicalOperators,["??"]));Z("LogicalExpression").field("operator",X)}t6.default=c$;i8.exports=t6.default});var n8=y((ZZ,a8)=>{Object.defineProperty(ZZ,"__esModule",{value:!0});var e6=m(),d$=e6.__importDefault(W0()),o$=e6.__importDefault(p()),s$=e6.__importDefault(t());function p$(U){U.use(d$.default);var Q=U.use(o$.default),Z=Q.Type.def,$=Q.Type.or,H=U.use(s$.default).defaults;Z("JSXAttribute").bases("Node").build("name","value").field("name",$(Z("JSXIdentifier"),Z("JSXNamespacedName"))).field("value",$(Z("Literal"),Z("JSXExpressionContainer"),Z("JSXElement"),Z("JSXFragment"),null),H.null),Z("JSXIdentifier").bases("Identifier").build("name").field("name",String),Z("JSXNamespacedName").bases("Node").build("namespace","name").field("namespace",Z("JSXIdentifier")).field("name",Z("JSXIdentifier")),Z("JSXMemberExpression").bases("MemberExpression").build("object","property").field("object",$(Z("JSXIdentifier"),Z("JSXMemberExpression"))).field("property",Z("JSXIdentifier")).field("computed",Boolean,H.false);var D=$(Z("JSXIdentifier"),Z("JSXNamespacedName"),Z("JSXMemberExpression"));Z("JSXSpreadAttribute").bases("Node").build("argument").field("argument",Z("Expression"));var X=[$(Z("JSXAttribute"),Z("JSXSpreadAttribute"))];Z("JSXExpressionContainer").bases("Expression").build("expression").field("expression",$(Z("Expression"),Z("JSXEmptyExpression")));var Y=[$(Z("JSXText"),Z("JSXExpressionContainer"),Z("JSXSpreadChild"),Z("JSXElement"),Z("JSXFragment"),Z("Literal"))];Z("JSXElement").bases("Expression").build("openingElement","closingElement","children").field("openingElement",Z("JSXOpeningElement")).field("closingElement",$(Z("JSXClosingElement"),null),H.null).field("children",Y,H.emptyArray).field("name",D,function(){return this.openingElement.name},!0).field("selfClosing",Boolean,function(){return this.openingElement.selfClosing},!0).field("attributes",X,function(){return this.openingElement.attributes},!0),Z("JSXOpeningElement").bases("Node").build("name","attributes","selfClosing").field("name",D).field("attributes",X,H.emptyArray).field("selfClosing",Boolean,H.false),Z("JSXClosingElement").bases("Node").build("name").field("name",D),Z("JSXFragment").bases("Expression").build("openingFragment","closingFragment","children").field("openingFragment",Z("JSXOpeningFragment")).field("closingFragment",Z("JSXClosingFragment")).field("children",Y,H.emptyArray),Z("JSXOpeningFragment").bases("Node").build(),Z("JSXClosingFragment").bases("Node").build(),Z("JSXText").bases("Literal").build("value","raw").field("value",String).field("raw",String,function(){return this.value}),Z("JSXEmptyExpression").bases("Node").build(),Z("JSXSpreadChild").bases("Node").build("expression").field("expression",Z("Expression"))}ZZ.default=p$;a8.exports=ZZ.default});var o0=y((QZ,t8)=>{Object.defineProperty(QZ,"__esModule",{value:!0});var $Z=m(),i$=$Z.__importDefault(p()),a$=$Z.__importDefault(t()),n$=$Z.__importDefault(W0());function t$(U){U.use(n$.default);var Q=U.use(i$.default),Z=Q.Type,$=Q.Type.def,H=Z.or,D=U.use(a$.default),X=D.defaults;$("AwaitExpression").build("argument","all").field("argument",H($("Expression"),null)).field("all",Boolean,X.false),$("Decorator").bases("Node").build("expression").field("expression",$("Expression")),$("Property").field("decorators",H([$("Decorator")],null),X.null),$("MethodDefinition").field("decorators",H([$("Decorator")],null),X.null),$("PrivateName").bases("Expression","Pattern").build("id").field("id",$("Identifier")),$("ClassPrivateProperty").bases("ClassProperty").build("key","value").field("key",$("PrivateName")).field("value",H($("Expression"),null),X.null)}QZ.default=t$;t8.exports=QZ.default});var zZ=y((UZ,Z5)=>{Object.defineProperty(UZ,"__esModule",{value:!0});var e8=m(),ZQ=e8.__importDefault(p()),$Q=e8.__importDefault(t());function QQ(U){var Q=U.use(ZQ.default),Z=Q.Type.def,$=Q.Type.or,H=U.use($Q.default).defaults,D=$(Z("TypeAnnotation"),Z("TSTypeAnnotation"),null),X=$(Z("TypeParameterDeclaration"),Z("TSTypeParameterDeclaration"),null);Z("Identifier").field("typeAnnotation",D,H.null),Z("ObjectPattern").field("typeAnnotation",D,H.null),Z("Function").field("returnType",D,H.null).field("typeParameters",X,H.null),Z("ClassProperty").build("key","value","typeAnnotation","static").field("value",$(Z("Expression"),null)).field("static",Boolean,H.false).field("typeAnnotation",D,H.null),["ClassDeclaration","ClassExpression"].forEach(function(Y){Z(Y).field("typeParameters",X,H.null).field("superTypeParameters",$(Z("TypeParameterInstantiation"),Z("TSTypeParameterInstantiation"),null),H.null).field("implements",$([Z("ClassImplements")],[Z("TSExpressionWithTypeArguments")]),H.emptyArray)})}UZ.default=QQ;Z5.exports=UZ.default});var KZ=y((XZ,$5)=>{Object.defineProperty(XZ,"__esModule",{value:!0});var s0=m(),zQ=s0.__importDefault(o0()),XQ=s0.__importDefault(zZ()),KQ=s0.__importDefault(p()),YQ=s0.__importDefault(t());function HQ(U){U.use(zQ.default),U.use(XQ.default);var Q=U.use(KQ.default),Z=Q.Type.def,$=Q.Type.or,H=U.use(YQ.default).defaults;Z("Flow").bases("Node"),Z("FlowType").bases("Flow"),Z("AnyTypeAnnotation").bases("FlowType").build(),Z("EmptyTypeAnnotation").bases("FlowType").build(),Z("MixedTypeAnnotation").bases("FlowType").build(),Z("VoidTypeAnnotation").bases("FlowType").build(),Z("SymbolTypeAnnotation").bases("FlowType").build(),Z("NumberTypeAnnotation").bases("FlowType").build(),Z("BigIntTypeAnnotation").bases("FlowType").build(),Z("NumberLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),Z("NumericLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Number).field("raw",String),Z("BigIntLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",null).field("raw",String),Z("StringTypeAnnotation").bases("FlowType").build(),Z("StringLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",String).field("raw",String),Z("BooleanTypeAnnotation").bases("FlowType").build(),Z("BooleanLiteralTypeAnnotation").bases("FlowType").build("value","raw").field("value",Boolean).field("raw",String),Z("TypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",Z("FlowType")),Z("NullableTypeAnnotation").bases("FlowType").build("typeAnnotation").field("typeAnnotation",Z("FlowType")),Z("NullLiteralTypeAnnotation").bases("FlowType").build(),Z("NullTypeAnnotation").bases("FlowType").build(),Z("ThisTypeAnnotation").bases("FlowType").build(),Z("ExistsTypeAnnotation").bases("FlowType").build(),Z("ExistentialTypeParam").bases("FlowType").build(),Z("FunctionTypeAnnotation").bases("FlowType").build("params","returnType","rest","typeParameters").field("params",[Z("FunctionTypeParam")]).field("returnType",Z("FlowType")).field("rest",$(Z("FunctionTypeParam"),null)).field("typeParameters",$(Z("TypeParameterDeclaration"),null)),Z("FunctionTypeParam").bases("Node").build("name","typeAnnotation","optional").field("name",$(Z("Identifier"),null)).field("typeAnnotation",Z("FlowType")).field("optional",Boolean),Z("ArrayTypeAnnotation").bases("FlowType").build("elementType").field("elementType",Z("FlowType")),Z("ObjectTypeAnnotation").bases("FlowType").build("properties","indexers","callProperties").field("properties",[$(Z("ObjectTypeProperty"),Z("ObjectTypeSpreadProperty"))]).field("indexers",[Z("ObjectTypeIndexer")],H.emptyArray).field("callProperties",[Z("ObjectTypeCallProperty")],H.emptyArray).field("inexact",$(Boolean,void 0),H.undefined).field("exact",Boolean,H.false).field("internalSlots",[Z("ObjectTypeInternalSlot")],H.emptyArray),Z("Variance").bases("Node").build("kind").field("kind",$("plus","minus"));var D=$(Z("Variance"),"plus","minus",null);Z("ObjectTypeProperty").bases("Node").build("key","value","optional").field("key",$(Z("Literal"),Z("Identifier"))).field("value",Z("FlowType")).field("optional",Boolean).field("variance",D,H.null),Z("ObjectTypeIndexer").bases("Node").build("id","key","value").field("id",Z("Identifier")).field("key",Z("FlowType")).field("value",Z("FlowType")).field("variance",D,H.null).field("static",Boolean,H.false),Z("ObjectTypeCallProperty").bases("Node").build("value").field("value",Z("FunctionTypeAnnotation")).field("static",Boolean,H.false),Z("QualifiedTypeIdentifier").bases("Node").build("qualification","id").field("qualification",$(Z("Identifier"),Z("QualifiedTypeIdentifier"))).field("id",Z("Identifier")),Z("GenericTypeAnnotation").bases("FlowType").build("id","typeParameters").field("id",$(Z("Identifier"),Z("QualifiedTypeIdentifier"))).field("typeParameters",$(Z("TypeParameterInstantiation"),null)),Z("MemberTypeAnnotation").bases("FlowType").build("object","property").field("object",Z("Identifier")).field("property",$(Z("MemberTypeAnnotation"),Z("GenericTypeAnnotation"))),Z("UnionTypeAnnotation").bases("FlowType").build("types").field("types",[Z("FlowType")]),Z("IntersectionTypeAnnotation").bases("FlowType").build("types").field("types",[Z("FlowType")]),Z("TypeofTypeAnnotation").bases("FlowType").build("argument").field("argument",Z("FlowType")),Z("ObjectTypeSpreadProperty").bases("Node").build("argument").field("argument",Z("FlowType")),Z("ObjectTypeInternalSlot").bases("Node").build("id","value","optional","static","method").field("id",Z("Identifier")).field("value",Z("FlowType")).field("optional",Boolean).field("static",Boolean).field("method",Boolean),Z("TypeParameterDeclaration").bases("Node").build("params").field("params",[Z("TypeParameter")]),Z("TypeParameterInstantiation").bases("Node").build("params").field("params",[Z("FlowType")]),Z("TypeParameter").bases("FlowType").build("name","variance","bound","default").field("name",String).field("variance",D,H.null).field("bound",$(Z("TypeAnnotation"),null),H.null).field("default",$(Z("FlowType"),null),H.null),Z("ClassProperty").field("variance",D,H.null),Z("ClassImplements").bases("Node").build("id").field("id",Z("Identifier")).field("superClass",$(Z("Expression"),null),H.null).field("typeParameters",$(Z("TypeParameterInstantiation"),null),H.null),Z("InterfaceTypeAnnotation").bases("FlowType").build("body","extends").field("body",Z("ObjectTypeAnnotation")).field("extends",$([Z("InterfaceExtends")],null),H.null),Z("InterfaceDeclaration").bases("Declaration").build("id","body","extends").field("id",Z("Identifier")).field("typeParameters",$(Z("TypeParameterDeclaration"),null),H.null).field("body",Z("ObjectTypeAnnotation")).field("extends",[Z("InterfaceExtends")]),Z("DeclareInterface").bases("InterfaceDeclaration").build("id","body","extends"),Z("InterfaceExtends").bases("Node").build("id").field("id",Z("Identifier")).field("typeParameters",$(Z("TypeParameterInstantiation"),null),H.null),Z("TypeAlias").bases("Declaration").build("id","typeParameters","right").field("id",Z("Identifier")).field("typeParameters",$(Z("TypeParameterDeclaration"),null)).field("right",Z("FlowType")),Z("DeclareTypeAlias").bases("TypeAlias").build("id","typeParameters","right"),Z("OpaqueType").bases("Declaration").build("id","typeParameters","impltype","supertype").field("id",Z("Identifier")).field("typeParameters",$(Z("TypeParameterDeclaration"),null)).field("impltype",Z("FlowType")).field("supertype",$(Z("FlowType"),null)),Z("DeclareOpaqueType").bases("OpaqueType").build("id","typeParameters","supertype").field("impltype",$(Z("FlowType"),null)),Z("TypeCastExpression").bases("Expression").build("expression","typeAnnotation").field("expression",Z("Expression")).field("typeAnnotation",Z("TypeAnnotation")),Z("TupleTypeAnnotation").bases("FlowType").build("types").field("types",[Z("FlowType")]),Z("DeclareVariable").bases("Statement").build("id").field("id",Z("Identifier")),Z("DeclareFunction").bases("Statement").build("id").field("id",Z("Identifier")).field("predicate",$(Z("FlowPredicate"),null),H.null),Z("DeclareClass").bases("InterfaceDeclaration").build("id"),Z("DeclareModule").bases("Statement").build("id","body").field("id",$(Z("Identifier"),Z("Literal"))).field("body",Z("BlockStatement")),Z("DeclareModuleExports").bases("Statement").build("typeAnnotation").field("typeAnnotation",Z("TypeAnnotation")),Z("DeclareExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",$(Z("DeclareVariable"),Z("DeclareFunction"),Z("DeclareClass"),Z("FlowType"),Z("TypeAlias"),Z("DeclareOpaqueType"),Z("InterfaceDeclaration"),null)).field("specifiers",[$(Z("ExportSpecifier"),Z("ExportBatchSpecifier"))],H.emptyArray).field("source",$(Z("Literal"),null),H.null),Z("DeclareExportAllDeclaration").bases("Declaration").build("source").field("source",$(Z("Literal"),null),H.null),Z("ImportDeclaration").field("importKind",$("value","type","typeof"),function(){return"value"}),Z("FlowPredicate").bases("Flow"),Z("InferredPredicate").bases("FlowPredicate").build(),Z("DeclaredPredicate").bases("FlowPredicate").build("value").field("value",Z("Expression")),Z("Function").field("predicate",$(Z("FlowPredicate"),null),H.null),Z("CallExpression").field("typeArguments",$(null,Z("TypeParameterInstantiation")),H.null),Z("NewExpression").field("typeArguments",$(null,Z("TypeParameterInstantiation")),H.null),Z("EnumDeclaration").bases("Declaration").build("id","body").field("id",Z("Identifier")).field("body",$(Z("EnumBooleanBody"),Z("EnumNumberBody"),Z("EnumStringBody"),Z("EnumSymbolBody"))),Z("EnumBooleanBody").build("members","explicitType").field("members",[Z("EnumBooleanMember")]).field("explicitType",Boolean),Z("EnumNumberBody").build("members","explicitType").field("members",[Z("EnumNumberMember")]).field("explicitType",Boolean),Z("EnumStringBody").build("members","explicitType").field("members",$([Z("EnumStringMember")],[Z("EnumDefaultedMember")])).field("explicitType",Boolean),Z("EnumSymbolBody").build("members").field("members",[Z("EnumDefaultedMember")]),Z("EnumBooleanMember").build("id","init").field("id",Z("Identifier")).field("init",$(Z("Literal"),Boolean)),Z("EnumNumberMember").build("id","init").field("id",Z("Identifier")).field("init",Z("Literal")),Z("EnumStringMember").build("id","init").field("id",Z("Identifier")).field("init",Z("Literal")),Z("EnumDefaultedMember").build("id").field("id",Z("Identifier"))}XZ.default=HQ;$5.exports=XZ.default});var U5=y((HZ,Q5)=>{Object.defineProperty(HZ,"__esModule",{value:!0});var YZ=m(),GQ=YZ.__importDefault(W0()),DQ=YZ.__importDefault(p()),qQ=YZ.__importDefault(t());function WQ(U){U.use(GQ.default);var Q=U.use(DQ.default),Z=U.use(qQ.default).defaults,$=Q.Type.def,H=Q.Type.or;$("VariableDeclaration").field("declarations",[H($("VariableDeclarator"),$("Identifier"))]),$("Property").field("value",H($("Expression"),$("Pattern"))),$("ArrayPattern").field("elements",[H($("Pattern"),$("SpreadElement"),null)]),$("ObjectPattern").field("properties",[H($("Property"),$("PropertyPattern"),$("SpreadPropertyPattern"),$("SpreadProperty"))]),$("ExportSpecifier").bases("ModuleSpecifier").build("id","name"),$("ExportBatchSpecifier").bases("Specifier").build(),$("ExportDeclaration").bases("Declaration").build("default","declaration","specifiers","source").field("default",Boolean).field("declaration",H($("Declaration"),$("Expression"),null)).field("specifiers",[H($("ExportSpecifier"),$("ExportBatchSpecifier"))],Z.emptyArray).field("source",H($("Literal"),null),Z.null),$("Block").bases("Comment").build("value","leading","trailing"),$("Line").bases("Comment").build("value","leading","trailing")}HZ.default=WQ;Q5.exports=HZ.default});var DZ=y((GZ,z5)=>{Object.defineProperty(GZ,"__esModule",{value:!0});var JZ=m(),BQ=JZ.__importDefault(o0()),OQ=JZ.__importDefault(p()),RQ=JZ.__importDefault(t());function VQ(U){U.use(BQ.default);var Q=U.use(OQ.default),Z=U.use(RQ.default).defaults,$=Q.Type.def,H=Q.Type.or;$("Noop").bases("Statement").build(),$("DoExpression").bases("Expression").build("body").field("body",[$("Statement")]),$("BindExpression").bases("Expression").build("object","callee").field("object",H($("Expression"),null)).field("callee",$("Expression")),$("ParenthesizedExpression").bases("Expression").build("expression").field("expression",$("Expression")),$("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",$("Identifier")),$("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",$("Identifier")),$("CommentBlock").bases("Comment").build("value","leading","trailing"),$("CommentLine").bases("Comment").build("value","leading","trailing"),$("Directive").bases("Node").build("value").field("value",$("DirectiveLiteral")),$("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,Z["use strict"]),$("InterpreterDirective").bases("Node").build("value").field("value",String),$("BlockStatement").bases("Statement").build("body").field("body",[$("Statement")]).field("directives",[$("Directive")],Z.emptyArray),$("Program").bases("Node").build("body").field("body",[$("Statement")]).field("directives",[$("Directive")],Z.emptyArray).field("interpreter",H($("InterpreterDirective"),null),Z.null),$("StringLiteral").bases("Literal").build("value").field("value",String),$("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",H(String,null),Z.null).field("extra",{rawValue:Number,raw:String},function(){return{rawValue:this.value,raw:this.value+""}}),$("BigIntLiteral").bases("Literal").build("value").field("value",H(String,Number)).field("extra",{rawValue:String,raw:String},function(){return{rawValue:String(this.value),raw:this.value+"n"}}),$("NullLiteral").bases("Literal").build().field("value",null,Z.null),$("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),$("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,function(){return new RegExp(this.pattern,this.flags)});var D=H($("Property"),$("ObjectMethod"),$("ObjectProperty"),$("SpreadProperty"),$("SpreadElement"));$("ObjectExpression").bases("Expression").build("properties").field("properties",[D]),$("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",H("method","get","set")).field("key",H($("Literal"),$("Identifier"),$("Expression"))).field("params",[$("Pattern")]).field("body",$("BlockStatement")).field("computed",Boolean,Z.false).field("generator",Boolean,Z.false).field("async",Boolean,Z.false).field("accessibility",H($("Literal"),null),Z.null).field("decorators",H([$("Decorator")],null),Z.null),$("ObjectProperty").bases("Node").build("key","value").field("key",H($("Literal"),$("Identifier"),$("Expression"))).field("value",H($("Expression"),$("Pattern"))).field("accessibility",H($("Literal"),null),Z.null).field("computed",Boolean,Z.false);var X=H($("MethodDefinition"),$("VariableDeclarator"),$("ClassPropertyDefinition"),$("ClassProperty"),$("ClassPrivateProperty"),$("ClassMethod"),$("ClassPrivateMethod"));$("ClassBody").bases("Declaration").build("body").field("body",[X]),$("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",H($("Literal"),$("Identifier"),$("Expression"))),$("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",$("PrivateName")),["ClassMethod","ClassPrivateMethod"].forEach(function(j){$(j).field("kind",H("get","set","method","constructor"),function(){return"method"}).field("body",$("BlockStatement")).field("computed",Boolean,Z.false).field("static",H(Boolean,null),Z.null).field("abstract",H(Boolean,null),Z.null).field("access",H("public","private","protected",null),Z.null).field("accessibility",H("public","private","protected",null),Z.null).field("decorators",H([$("Decorator")],null),Z.null).field("optional",H(Boolean,null),Z.null)});var Y=H($("Property"),$("PropertyPattern"),$("SpreadPropertyPattern"),$("SpreadProperty"),$("ObjectProperty"),$("RestProperty"));$("ObjectPattern").bases("Pattern").build("properties").field("properties",[Y]).field("decorators",H([$("Decorator")],null),Z.null),$("SpreadProperty").bases("Node").build("argument").field("argument",$("Expression")),$("RestProperty").bases("Node").build("argument").field("argument",$("Expression")),$("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",H($("VariableDeclaration"),$("Expression"))).field("right",$("Expression")).field("body",$("Statement")),$("Import").bases("Expression").build()}GZ.default=VQ;z5.exports=GZ.default});var Y5=y((qZ,K5)=>{Object.defineProperty(qZ,"__esModule",{value:!0});var X5=m(),EQ=X5.__importDefault(DZ()),IQ=X5.__importDefault(KZ());function FQ(U){U.use(EQ.default),U.use(IQ.default)}qZ.default=FQ;K5.exports=qZ.default});var J5=y((WZ,H5)=>{Object.defineProperty(WZ,"__esModule",{value:!0});var p0=m(),TQ=p0.__importDefault(DZ()),CQ=p0.__importDefault(zZ()),SQ=p0.__importDefault(p()),wQ=p0.__importDefault(t());function vQ(U){U.use(TQ.default),U.use(CQ.default);var Q=U.use(SQ.default),Z=Q.namedTypes,$=Q.Type.def,H=Q.Type.or,D=U.use(wQ.default).defaults,X=Q.Type.from(function(q,B){if(Z.StringLiteral&&Z.StringLiteral.check(q,B))return!0;if(Z.Literal&&Z.Literal.check(q,B)&&typeof q.value==="string")return!0;return!1},"StringLiteral");$("TSType").bases("Node");var Y=H($("Identifier"),$("TSQualifiedName"));$("TSTypeReference").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("typeName","typeParameters").field("typeName",Y),$("TSHasOptionalTypeParameterInstantiation").field("typeParameters",H($("TSTypeParameterInstantiation"),null),D.null),$("TSHasOptionalTypeParameters").field("typeParameters",H($("TSTypeParameterDeclaration"),null,void 0),D.null),$("TSHasOptionalTypeAnnotation").field("typeAnnotation",H($("TSTypeAnnotation"),null),D.null),$("TSQualifiedName").bases("Node").build("left","right").field("left",Y).field("right",Y),$("TSAsExpression").bases("Expression","Pattern").build("expression","typeAnnotation").field("expression",$("Expression")).field("typeAnnotation",$("TSType")).field("extra",H({parenthesized:Boolean},null),D.null),$("TSNonNullExpression").bases("Expression","Pattern").build("expression").field("expression",$("Expression")),["TSAnyKeyword","TSBigIntKeyword","TSBooleanKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword","TSThisType"].forEach(function(q){$(q).bases("TSType").build()}),$("TSArrayType").bases("TSType").build("elementType").field("elementType",$("TSType")),$("TSLiteralType").bases("TSType").build("literal").field("literal",H($("NumericLiteral"),$("StringLiteral"),$("BooleanLiteral"),$("TemplateLiteral"),$("UnaryExpression"))),["TSUnionType","TSIntersectionType"].forEach(function(q){$(q).bases("TSType").build("types").field("types",[$("TSType")])}),$("TSConditionalType").bases("TSType").build("checkType","extendsType","trueType","falseType").field("checkType",$("TSType")).field("extendsType",$("TSType")).field("trueType",$("TSType")).field("falseType",$("TSType")),$("TSInferType").bases("TSType").build("typeParameter").field("typeParameter",$("TSTypeParameter")),$("TSParenthesizedType").bases("TSType").build("typeAnnotation").field("typeAnnotation",$("TSType"));var j=[H($("Identifier"),$("RestElement"),$("ArrayPattern"),$("ObjectPattern"))];["TSFunctionType","TSConstructorType"].forEach(function(q){$(q).bases("TSType","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters").field("parameters",j)}),$("TSDeclareFunction").bases("Declaration","TSHasOptionalTypeParameters").build("id","params","returnType").field("declare",Boolean,D.false).field("async",Boolean,D.false).field("generator",Boolean,D.false).field("id",H($("Identifier"),null),D.null).field("params",[$("Pattern")]).field("returnType",H($("TSTypeAnnotation"),$("Noop"),null),D.null),$("TSDeclareMethod").bases("Declaration","TSHasOptionalTypeParameters").build("key","params","returnType").field("async",Boolean,D.false).field("generator",Boolean,D.false).field("params",[$("Pattern")]).field("abstract",Boolean,D.false).field("accessibility",H("public","private","protected",void 0),D.undefined).field("static",Boolean,D.false).field("computed",Boolean,D.false).field("optional",Boolean,D.false).field("key",H($("Identifier"),$("StringLiteral"),$("NumericLiteral"),$("Expression"))).field("kind",H("get","set","method","constructor"),function(){return"method"}).field("access",H("public","private","protected",void 0),D.undefined).field("decorators",H([$("Decorator")],null),D.null).field("returnType",H($("TSTypeAnnotation"),$("Noop"),null),D.null),$("TSMappedType").bases("TSType").build("typeParameter","typeAnnotation").field("readonly",H(Boolean,"+","-"),D.false).field("typeParameter",$("TSTypeParameter")).field("optional",H(Boolean,"+","-"),D.false).field("typeAnnotation",H($("TSType"),null),D.null),$("TSTupleType").bases("TSType").build("elementTypes").field("elementTypes",[H($("TSType"),$("TSNamedTupleMember"))]),$("TSNamedTupleMember").bases("TSType").build("label","elementType","optional").field("label",$("Identifier")).field("optional",Boolean,D.false).field("elementType",$("TSType")),$("TSRestType").bases("TSType").build("typeAnnotation").field("typeAnnotation",$("TSType")),$("TSOptionalType").bases("TSType").build("typeAnnotation").field("typeAnnotation",$("TSType")),$("TSIndexedAccessType").bases("TSType").build("objectType","indexType").field("objectType",$("TSType")).field("indexType",$("TSType")),$("TSTypeOperator").bases("TSType").build("operator").field("operator",String).field("typeAnnotation",$("TSType")),$("TSTypeAnnotation").bases("Node").build("typeAnnotation").field("typeAnnotation",H($("TSType"),$("TSTypeAnnotation"))),$("TSIndexSignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",[$("Identifier")]).field("readonly",Boolean,D.false),$("TSPropertySignature").bases("Declaration","TSHasOptionalTypeAnnotation").build("key","typeAnnotation","optional").field("key",$("Expression")).field("computed",Boolean,D.false).field("readonly",Boolean,D.false).field("optional",Boolean,D.false).field("initializer",H($("Expression"),null),D.null),$("TSMethodSignature").bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("key","parameters","typeAnnotation").field("key",$("Expression")).field("computed",Boolean,D.false).field("optional",Boolean,D.false).field("parameters",j),$("TSTypePredicate").bases("TSTypeAnnotation","TSType").build("parameterName","typeAnnotation","asserts").field("parameterName",H($("Identifier"),$("TSThisType"))).field("typeAnnotation",H($("TSTypeAnnotation"),null),D.null).field("asserts",Boolean,D.false),["TSCallSignatureDeclaration","TSConstructSignatureDeclaration"].forEach(function(q){$(q).bases("Declaration","TSHasOptionalTypeParameters","TSHasOptionalTypeAnnotation").build("parameters","typeAnnotation").field("parameters",j)}),$("TSEnumMember").bases("Node").build("id","initializer").field("id",H($("Identifier"),X)).field("initializer",H($("Expression"),null),D.null),$("TSTypeQuery").bases("TSType").build("exprName").field("exprName",H(Y,$("TSImportType")));var E=H($("TSCallSignatureDeclaration"),$("TSConstructSignatureDeclaration"),$("TSIndexSignature"),$("TSMethodSignature"),$("TSPropertySignature"));$("TSTypeLiteral").bases("TSType").build("members").field("members",[E]),$("TSTypeParameter").bases("Identifier").build("name","constraint","default").field("name",String).field("constraint",H($("TSType"),void 0),D.undefined).field("default",H($("TSType"),void 0),D.undefined),$("TSTypeAssertion").bases("Expression","Pattern").build("typeAnnotation","expression").field("typeAnnotation",$("TSType")).field("expression",$("Expression")).field("extra",H({parenthesized:Boolean},null),D.null),$("TSTypeParameterDeclaration").bases("Declaration").build("params").field("params",[$("TSTypeParameter")]),$("TSTypeParameterInstantiation").bases("Node").build("params").field("params",[$("TSType")]),$("TSEnumDeclaration").bases("Declaration").build("id","members").field("id",$("Identifier")).field("const",Boolean,D.false).field("declare",Boolean,D.false).field("members",[$("TSEnumMember")]).field("initializer",H($("Expression"),null),D.null),$("TSTypeAliasDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","typeAnnotation").field("id",$("Identifier")).field("declare",Boolean,D.false).field("typeAnnotation",$("TSType")),$("TSModuleBlock").bases("Node").build("body").field("body",[$("Statement")]),$("TSModuleDeclaration").bases("Declaration").build("id","body").field("id",H(X,Y)).field("declare",Boolean,D.false).field("global",Boolean,D.false).field("body",H($("TSModuleBlock"),$("TSModuleDeclaration"),null),D.null),$("TSImportType").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("argument","qualifier","typeParameters").field("argument",X).field("qualifier",H(Y,void 0),D.undefined),$("TSImportEqualsDeclaration").bases("Declaration").build("id","moduleReference").field("id",$("Identifier")).field("isExport",Boolean,D.false).field("moduleReference",H(Y,$("TSExternalModuleReference"))),$("TSExternalModuleReference").bases("Declaration").build("expression").field("expression",X),$("TSExportAssignment").bases("Statement").build("expression").field("expression",$("Expression")),$("TSNamespaceExportDeclaration").bases("Declaration").build("id").field("id",$("Identifier")),$("TSInterfaceBody").bases("Node").build("body").field("body",[E]),$("TSExpressionWithTypeArguments").bases("TSType","TSHasOptionalTypeParameterInstantiation").build("expression","typeParameters").field("expression",Y),$("TSInterfaceDeclaration").bases("Declaration","TSHasOptionalTypeParameters").build("id","body").field("id",Y).field("declare",Boolean,D.false).field("extends",H([$("TSExpressionWithTypeArguments")],null),D.null).field("body",$("TSInterfaceBody")),$("TSParameterProperty").bases("Pattern").build("parameter").field("accessibility",H("public","private","protected",void 0),D.undefined).field("readonly",Boolean,D.false).field("parameter",H($("Identifier"),$("AssignmentPattern"))),$("ClassProperty").field("access",H("public","private","protected",void 0),D.undefined),$("ClassBody").field("body",[H($("MethodDefinition"),$("VariableDeclarator"),$("ClassPropertyDefinition"),$("ClassProperty"),$("ClassPrivateProperty"),$("ClassMethod"),$("ClassPrivateMethod"),$("TSDeclareMethod"),E)])}WZ.default=vQ;H5.exports=WZ.default});var D5=y((G5)=>{Object.defineProperty(G5,"__esModule",{value:!0});G5.namedTypes=void 0;var NQ;(function(U){})(NQ=G5.namedTypes||(G5.namedTypes={}))});var M5=y((BZ)=>{Object.defineProperty(BZ,"__esModule",{value:!0});BZ.visit=BZ.use=BZ.Type=BZ.someField=BZ.PathVisitor=BZ.Path=BZ.NodePath=BZ.namedTypes=BZ.getSupertypeNames=BZ.getFieldValue=BZ.getFieldNames=BZ.getBuilderName=BZ.finalize=BZ.eachField=BZ.defineMethod=BZ.builtInTypes=BZ.builders=BZ.astNodesAreEquivalent=void 0;var e=m(),xQ=e.__importDefault(_8()),PQ=e.__importDefault(_6()),bQ=e.__importDefault(m6()),kQ=e.__importDefault(c6()),gQ=e.__importDefault(o6()),yQ=e.__importDefault(r6()),_Q=e.__importDefault(n6()),uQ=e.__importDefault(W0()),fQ=e.__importDefault(n8()),mQ=e.__importDefault(KZ()),hQ=e.__importDefault(U5()),cQ=e.__importDefault(Y5()),lQ=e.__importDefault(J5()),dQ=e.__importDefault(o0()),q5=D5();Object.defineProperty(BZ,"namedTypes",{enumerable:!0,get:function(){return q5.namedTypes}});var a=xQ.default([PQ.default,bQ.default,kQ.default,gQ.default,yQ.default,_Q.default,uQ.default,fQ.default,mQ.default,hQ.default,cQ.default,lQ.default,dQ.default]),oQ=a.astNodesAreEquivalent,sQ=a.builders,pQ=a.builtInTypes,rQ=a.defineMethod,iQ=a.eachField,aQ=a.finalize,nQ=a.getBuilderName,tQ=a.getFieldNames,eQ=a.getFieldValue,ZU=a.getSupertypeNames,$U=a.namedTypes,QU=a.NodePath,UU=a.Path,zU=a.PathVisitor,XU=a.someField,KU=a.Type,YU=a.use,HU=a.visit;BZ.astNodesAreEquivalent=oQ;BZ.builders=sQ;BZ.builtInTypes=pQ;BZ.defineMethod=rQ;BZ.eachField=iQ;BZ.finalize=aQ;BZ.getBuilderName=nQ;BZ.getFieldNames=tQ;BZ.getFieldValue=eQ;BZ.getSupertypeNames=ZU;BZ.NodePath=QU;BZ.Path=UU;BZ.PathVisitor=zU;BZ.someField=XU;BZ.Type=KU;BZ.use=YU;BZ.visit=HU;Object.assign(q5.namedTypes,$U)});var r0=OZ(j8(),1),E1=OZ(M5(),1);async function B5(U){let Q=new Set;function Z(q){return(q.type==="ExportNamedDeclaration"||q.type==="ExportDefaultDeclaration")&&q.declaration?.type==="ClassDeclaration"&&(q.declaration.superClass?.name==="Controller"||q.declaration.superClass?.name==="ResourceController")}function $(q){return q.type==="ClassDeclaration"&&(q.superClass?.name==="Controller"||q.superClass?.name==="ResourceController")}function H(q){return q.type==="ClassDeclaration"&&(q.superClass?.name==="ApiRouter"||q.superClass?.name==="ViewRouter")}function D(q){return(q.type==="ExportNamedDeclaration"||q.type==="ExportDefaultDeclaration")&&q.declaration?.type==="ClassDeclaration"&&(q.declaration.superClass?.name==="ApiRouter"||q.declaration.superClass?.name==="ViewRouter")}function X(q){for(let B of q.body)if(B.type==="ClassMethod"){if(B.params.length===0)continue;if(B.accessibility==="private"||B.accessibility==="protected")continue;let W=B.params[0].name,z="";try{z=B.params[0].typeAnnotation.typeAnnotation.typeName.name}catch(M){}if(z==="")continue;let K=E1.builders.identifier(W),J=E1.builders.newExpression(E1.builders.identifier(z),[]),G=E1.builders.assignmentPattern(K,J);B.params[0]=G,Q.add(z)}}function Y(q){for(let B of q)if(B.key.name==="routes"&&B.value.type==="ObjectExpression")for(let W of B.value.properties){if(W?.value?.type==="Identifier")continue;let z=W?.value?.callee?.object?.arguments??W?.value?.arguments;for(let K of z??[]){if(!(K.type==="ArrowFunctionExpression"||K.type==="FunctionExpression"))continue;let[J]=K.params;if(!J)continue;let G="";try{G=J.typeAnnotation.typeAnnotation.typeName.name}catch(F){}if(G==="")continue;let M=J.name,O=E1.builders.identifier(M),V=E1.builders.newExpression(E1.builders.identifier(G),[]),I=E1.builders.assignmentPattern(O,V);K.params[0]=I,Q.add(G)}}}function j(q){for(let B of q){if(B?.type!=="ImportDeclaration")continue;let W=B.specifiers??[],z=(K)=>Q.has(K.local?.name??K.imported?.name);if(B.importKind==="type"){if(!W.some(z))continue;B.importKind="value";for(let K of W)if(!z(K))K.importKind="type";continue}for(let K of W)if(K.importKind==="type"&&z(K))K.importKind="value"}}let E=await r0.parse(U,{parser:await import("./chunk-4k7p344e.js").then((m)=>OZ(m.default,1))});for(let q of E.program.body){if(!q||q?.type==="ImportDeclaration")continue;if(Z(q)){X(q.declaration.body);continue}if($(q)){X(q.body);continue}if(H(q)){Y(q.body.body);continue}if(D(q)){Y(q.declaration.body.body);continue}}return j(E.program.body),r0.print(E).code}var CU=/[\\/]http[\\/](controllers|routes)[\\/].+\.tsx?$/;function oU(){return{name:"gemi-custom-request",setup(U){U.onLoad({filter:CU},async(Q)=>{let Z=await Bun.file(Q.path).text();return{contents:await B5(Z),loader:Q.path.endsWith(".tsx")?"tsx":"ts"}})}}}
|
|
99
99
|
export{oU as b};
|
|
100
100
|
|
|
101
|
-
//# debugId=
|
|
101
|
+
//# debugId=4BE6061D8D594D2F64756E2164756E21
|