UNPKG

@sysce/stomp

Version:
2 lines 725 kB
/*! For license information please see worker.js.LICENSE.txt */ (()=>{var e={3913:(e,t,n)=>{!function(){"use strict";var e,r,i,a,s,o,l,u,c,p,d,h,m,f,g,E,b,A,y,T,D,C,k,_;function S(e){return W.Statement.hasOwnProperty(e.type)}s=n(140),o=n(649),e=s.Syntax,i={"??":(r={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,NullishCoalescing:3,LogicalOR:3,LogicalAND:4,BitwiseOR:5,BitwiseXOR:6,BitwiseAND:7,Equality:8,Relational:9,BitwiseSHIFT:10,Additive:11,Multiplicative:12,Exponentiation:13,Await:14,Unary:14,Postfix:15,OptionalChaining:16,Call:17,New:18,TaggedTemplate:19,Member:20,Primary:21}).NullishCoalescing,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var w=32,x=33;function v(e,t){var n="";for(t|=0;t>0;t>>>=1,e+=e)1&t&&(n+=e);return n}function I(e){var t=e.length;return t&&o.code.isLineTerminator(e.charCodeAt(t-1))}function N(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function P(e,t){var n,r;function i(e){return"object"==typeof e&&e instanceof Object&&!(e instanceof RegExp)}for(n in t)t.hasOwnProperty(n)&&(i(r=t[n])?i(e[n])?P(e[n],r):e[n]=P({},r):e[n]=r);return e}function F(e,t){return 8232==(-2&e)?(t?"u":"\\u")+(8232===e?"2028":"2029"):10===e||13===e?(t?"":"\\")+(10===e?"n":"r"):String.fromCharCode(e)}function L(e,t){var n;return 8===e?"\\b":12===e?"\\f":9===e?"\\t":(n=e.toString(16).toUpperCase(),c||e>255?"\\u"+"0000".slice(n.length)+n:0!==e||o.code.isDecimalDigit(t)?11===e?"\\x0B":"\\x"+"00".slice(n.length)+n:"\\0")}function O(e){if(92===e)return"\\\\";if(10===e)return"\\n";if(13===e)return"\\r";if(8232===e)return"\\u2028";if(8233===e)return"\\u2029";throw new Error("Incorrectly classified character")}function B(e){var t,n,r,i="";for(t=0,n=e.length;t<n;++t)r=e[t],i+=Array.isArray(r)?B(r):r;return i}function R(e,t){if(!C)return Array.isArray(e)?B(e):e;if(null==t){if(e instanceof a)return e;t={}}return null==t.loc?new a(null,null,C,e,t.name||null):new a(t.loc.start.line,t.loc.start.column,!0===C?t.loc.source||null:C,e,t.name||null)}function M(){return g||" "}function U(e,t){var n,r,i,a;return 0===(n=R(e).toString()).length?[t]:0===(r=R(t).toString()).length?[e]:(i=n.charCodeAt(n.length-1),a=r.charCodeAt(0),(43===i||45===i)&&i===a||o.code.isIdentifierPartES5(i)&&o.code.isIdentifierPartES5(a)||47===i&&105===a?[e,M(),t]:o.code.isWhiteSpace(i)||o.code.isLineTerminator(i)||o.code.isWhiteSpace(a)||o.code.isLineTerminator(a)?[e,t]:[e,g,t])}function H(e){return[l,e]}function q(e){var t;t=l,e(l+=u),l=t}function G(e,t){if("Line"===e.type){if(I(e.value))return"//"+e.value;var n="//"+e.value;return _||(n+="\n"),n}return T.format.indent.adjustMultilineComment&&/[\n\r]/.test(e.value)?function(e,t){var n,r,i,a,s,u,c,p;for(n=e.split(/\r\n|[\r\n]/),u=Number.MAX_VALUE,r=1,i=n.length;r<i;++r){for(a=n[r],s=0;s<a.length&&o.code.isWhiteSpace(a.charCodeAt(s));)++s;u>s&&(u=s)}for(void 0!==t?(c=l,"*"===n[1][u]&&(t+=" "),l=t):(1&u&&--u,c=l),r=1,i=n.length;r<i;++r)p=R(H(n[r].slice(u))),n[r]=C?p.join(""):p;return l=c,n.join("\n")}("/*"+e.value+"*/",t):"/*"+e.value+"*/"}function j(t,n){var r,i,a,s,c,p,d,h,m,f,g,E;if(t.leadingComments&&t.leadingComments.length>0){if(s=n,_){for(n=[],h=(a=t.leadingComments[0]).extendedRange,m=a.range,(E=((g=k.substring(h[0],m[0])).match(/\n/g)||[]).length)>0?(n.push(v("\n",E)),n.push(H(G(a)))):(n.push(g),n.push(G(a))),f=m,r=1,i=t.leadingComments.length;r<i;r++)m=(a=t.leadingComments[r]).range,E=(k.substring(f[1],m[0]).match(/\n/g)||[]).length,n.push(v("\n",E)),n.push(H(G(a))),f=m;E=(k.substring(m[1],h[1]).match(/\n/g)||[]).length,n.push(v("\n",E))}else for(a=t.leadingComments[0],n=[],A&&t.type===e.Program&&0===t.body.length&&n.push("\n"),n.push(G(a)),I(R(n).toString())||n.push("\n"),r=1,i=t.leadingComments.length;r<i;++r)I(R(d=[G(a=t.leadingComments[r])]).toString())||d.push("\n"),n.push(H(d));n.push(H(s))}if(t.trailingComments)if(_)h=(a=t.trailingComments[0]).extendedRange,m=a.range,(E=((g=k.substring(h[0],m[0])).match(/\n/g)||[]).length)>0?(n.push(v("\n",E)),n.push(H(G(a)))):(n.push(g),n.push(G(a)));else for(c=!I(R(n).toString()),p=v(" ",function(e){var t;for(t=e.length-1;t>=0&&!o.code.isLineTerminator(e.charCodeAt(t));--t);return e.length-1-t}(R([l,n,u]).toString())),r=0,i=t.trailingComments.length;r<i;++r)a=t.trailingComments[r],c?(n=0===r?[n,u]:[n,p]).push(G(a,p)):n=[n,H(G(a))],r===i-1||I(R(n).toString())||(n=[n,"\n"]);return n}function z(e,t,n){var r,i=0;for(r=e;r<t;r++)"\n"===k[r]&&i++;for(r=1;r<i;r++)n.push(f)}function V(e,t,n){return t<n?["(",e,")"]:e}function Y(e){var t,n,r;for(t=1,n=(r=e.split(/\r\n|\n/)).length;t<n;t++)r[t]=f+l+r[t];return r}function W(){}function Q(t){var n=t.name;return t.type===e.PrivateIdentifier&&(n="#"+n),R(n,t)}function X(e,t){return e.async?"async"+(t?M():g):""}function K(e){return e.generator&&!T.moz.starlessGenerator?"*"+g:""}function J(e){var t=e.value,n="";return t.async&&(n+=X(t,!e.computed)),t.generator&&(n+=K(t)?"*":""),n}W.prototype.maybeBlock=function(t,n){var r,i,a=this;return i=!T.comment||!t.leadingComments,t.type===e.BlockStatement&&i?[g,this.generateStatement(t,n)]:t.type===e.EmptyStatement&&i?";":(q((function(){r=[f,H(a.generateStatement(t,n))]})),r)},W.prototype.maybeBlockSuffix=function(t,n){var r=I(R(n).toString());return t.type!==e.BlockStatement||T.comment&&t.leadingComments||r?r?[n,l]:[n,f,l]:[n,g]},W.prototype.generatePattern=function(t,n,r){return t.type===e.Identifier?Q(t):this.generateExpression(t,n,r)},W.prototype.generateFunctionParams=function(t){var n,i,a,s;if(s=!1,t.type!==e.ArrowFunctionExpression||t.rest||t.defaults&&0!==t.defaults.length||1!==t.params.length||t.params[0].type!==e.Identifier){for((a=t.type===e.ArrowFunctionExpression?[X(t,!1)]:[]).push("("),t.defaults&&(s=!0),n=0,i=t.params.length;n<i;++n)s&&t.defaults[n]?a.push(this.generateAssignment(t.params[n],t.defaults[n],"=",r.Assignment,7)):a.push(this.generatePattern(t.params[n],r.Assignment,7)),n+1<i&&a.push(","+g);t.rest&&(t.params.length&&a.push(","+g),a.push("..."),a.push(Q(t.rest))),a.push(")")}else a=[X(t,!0),Q(t.params[0])];return a},W.prototype.generateFunctionBody=function(t){var n,i;return n=this.generateFunctionParams(t),t.type===e.ArrowFunctionExpression&&(n.push(g),n.push("=>")),t.expression?(n.push(g),"{"===(i=this.generateExpression(t.body,r.Assignment,7)).toString().charAt(0)&&(i=["(",i,")"]),n.push(i)):n.push(this.maybeBlock(t.body,9)),n},W.prototype.generateIterationForStatement=function(t,n,i){var a=["for"+(n.await?M()+"await":"")+g+"("],s=this;return q((function(){n.left.type===e.VariableDeclaration?q((function(){a.push(n.left.kind+M()),a.push(s.generateStatement(n.left.declarations[0],0))})):a.push(s.generateExpression(n.left,r.Call,7)),a=U(a,t),a=[U(a,s.generateExpression(n.right,r.Assignment,7)),")"]})),a.push(this.maybeBlock(n.body,i)),a},W.prototype.generatePropertyKey=function(e,t){var n=[];return t&&n.push("["),n.push(this.generateExpression(e,r.Assignment,7)),t&&n.push("]"),n},W.prototype.generateAssignment=function(e,t,n,i,a){return r.Assignment<i&&(a|=1),V([this.generateExpression(e,r.Call,a),g+n+g,this.generateExpression(t,r.Assignment,a)],r.Assignment,i)},W.prototype.semicolon=function(e){return!b&&e&w?"":";"},W.Statement={BlockStatement:function(e,t){var n,r,i=["{",f],a=this;return q((function(){var s,o,l,u;for(0===e.body.length&&_&&(n=e.range)[1]-n[0]>2&&("\n"===(r=k.substring(n[0]+1,n[1]-1))[0]&&(i=["{"]),i.push(r)),u=1,8&t&&(u|=16),s=0,o=e.body.length;s<o;++s)_&&(0===s&&(e.body[0].leadingComments&&(n=e.body[0].leadingComments[0].extendedRange,"\n"===(r=k.substring(n[0],n[1]))[0]&&(i=["{"])),e.body[0].leadingComments||z(e.range[0],e.body[0].range[0],i)),s>0&&(e.body[s-1].trailingComments||e.body[s].leadingComments||z(e.body[s-1].range[1],e.body[s].range[0],i))),s===o-1&&(u|=w),l=e.body[s].leadingComments&&_?a.generateStatement(e.body[s],u):H(a.generateStatement(e.body[s],u)),i.push(l),I(R(l).toString())||_&&s<o-1&&e.body[s+1].leadingComments||i.push(f),_&&s===o-1&&(e.body[s].trailingComments||z(e.body[s].range[1],e.range[1],i))})),i.push(H("}")),i},BreakStatement:function(e,t){return e.label?"break "+e.label.name+this.semicolon(t):"break"+this.semicolon(t)},ContinueStatement:function(e,t){return e.label?"continue "+e.label.name+this.semicolon(t):"continue"+this.semicolon(t)},ClassBody:function(e,t){var n=["{",f],i=this;return q((function(t){var a,s;for(a=0,s=e.body.length;a<s;++a)n.push(t),n.push(i.generateExpression(e.body[a],r.Sequence,7)),a+1<s&&n.push(f)})),I(R(n).toString())||n.push(f),n.push(l),n.push("}"),n},ClassDeclaration:function(e,t){var n,i;return n=["class"],e.id&&(n=U(n,this.generateExpression(e.id,r.Sequence,7))),e.superClass&&(i=U("extends",this.generateExpression(e.superClass,r.Unary,7)),n=U(n,i)),n.push(g),n.push(this.generateStatement(e.body,x)),n},DirectiveStatement:function(e,t){return T.raw&&e.raw?e.raw+this.semicolon(t):function(e){var t,n,r,i;for(i="double"===h?'"':"'",t=0,n=e.length;t<n;++t){if(39===(r=e.charCodeAt(t))){i='"';break}if(34===r){i="'";break}92===r&&++t}return i+e+i}(e.directive)+this.semicolon(t)},DoWhileStatement:function(e,t){var n=U("do",this.maybeBlock(e.body,1));return U(n=this.maybeBlockSuffix(e.body,n),["while"+g+"(",this.generateExpression(e.test,r.Sequence,7),")"+this.semicolon(t)])},CatchClause:function(e,t){var n,i=this;return q((function(){var t;e.param?(n=["catch"+g+"(",i.generateExpression(e.param,r.Sequence,7),")"],e.guard&&(t=i.generateExpression(e.guard,r.Sequence,7),n.splice(2,0," if ",t))):n=["catch"]})),n.push(this.maybeBlock(e.body,1)),n},DebuggerStatement:function(e,t){return"debugger"+this.semicolon(t)},EmptyStatement:function(e,t){return";"},ExportDefaultDeclaration:function(e,t){var n,i=["export"];return n=t&w?x:1,i=U(i,"default"),S(e.declaration)?U(i,this.generateStatement(e.declaration,n)):U(i,this.generateExpression(e.declaration,r.Assignment,7)+this.semicolon(t))},ExportNamedDeclaration:function(t,n){var i,a=["export"],s=this;return i=n&w?x:1,t.declaration?U(a,this.generateStatement(t.declaration,i)):(t.specifiers&&(0===t.specifiers.length?a=U(a,"{"+g+"}"):t.specifiers[0].type===e.ExportBatchSpecifier?a=U(a,this.generateExpression(t.specifiers[0],r.Sequence,7)):(a=U(a,"{"),q((function(e){var n,i;for(a.push(f),n=0,i=t.specifiers.length;n<i;++n)a.push(e),a.push(s.generateExpression(t.specifiers[n],r.Sequence,7)),n+1<i&&a.push(","+f)})),I(R(a).toString())||a.push(f),a.push(l+"}")),t.source?a=U(a,["from"+g,this.generateExpression(t.source,r.Sequence,7),this.semicolon(n)]):a.push(this.semicolon(n))),a)},ExportAllDeclaration:function(e,t){var n=["export"+g,"*"+g];return e.exported&&n.push("as "+e.exported.name+" "),U(n,["from"+g,this.generateExpression(e.source,r.Sequence,7),this.semicolon(t)])},ExpressionStatement:function(t,n){var i,a;return 123===(a=R(i=[this.generateExpression(t.expression,r.Sequence,7)]).toString()).charCodeAt(0)||function(e){var t;return"class"===e.slice(0,5)&&(123===(t=e.charCodeAt(5))||o.code.isWhiteSpace(t)||o.code.isLineTerminator(t))}(a)||function(e){var t;return"function"===e.slice(0,8)&&(40===(t=e.charCodeAt(8))||o.code.isWhiteSpace(t)||42===t||o.code.isLineTerminator(t))}(a)||function(e){var t,n,r;if("async"!==e.slice(0,5))return!1;if(!o.code.isWhiteSpace(e.charCodeAt(5)))return!1;for(n=6,r=e.length;n<r&&o.code.isWhiteSpace(e.charCodeAt(n));++n);return n!==r&&"function"===e.slice(n,n+8)&&(40===(t=e.charCodeAt(n+8))||o.code.isWhiteSpace(t)||42===t||o.code.isLineTerminator(t))}(a)||y&&16&n&&t.expression.type===e.Literal&&"string"==typeof t.expression.value?i=["(",i,")"+this.semicolon(n)]:i.push(this.semicolon(n)),i},ImportDeclaration:function(t,n){var i,a,s=this;return 0===t.specifiers.length?["import",g,this.generateExpression(t.source,r.Sequence,7),this.semicolon(n)]:(i=["import"],a=0,t.specifiers[a].type===e.ImportDefaultSpecifier&&(i=U(i,[this.generateExpression(t.specifiers[a],r.Sequence,7)]),++a),t.specifiers[a]&&(0!==a&&i.push(","),t.specifiers[a].type===e.ImportNamespaceSpecifier?i=U(i,[g,this.generateExpression(t.specifiers[a],r.Sequence,7)]):(i.push(g+"{"),t.specifiers.length-a==1?(i.push(g),i.push(this.generateExpression(t.specifiers[a],r.Sequence,7)),i.push(g+"}"+g)):(q((function(e){var n,o;for(i.push(f),n=a,o=t.specifiers.length;n<o;++n)i.push(e),i.push(s.generateExpression(t.specifiers[n],r.Sequence,7)),n+1<o&&i.push(","+f)})),I(R(i).toString())||i.push(f),i.push(l+"}"+g)))),i=U(i,["from"+g,this.generateExpression(t.source,r.Sequence,7),this.semicolon(n)]))},VariableDeclarator:function(e,t){var n=1&t?7:6;return e.init?[this.generateExpression(e.id,r.Assignment,n),g,"=",g,this.generateExpression(e.init,r.Assignment,n)]:this.generatePattern(e.id,r.Assignment,n)},VariableDeclaration:function(e,t){var n,r,i,a,s,o=this;function l(){for(a=e.declarations[0],T.comment&&a.leadingComments?(n.push("\n"),n.push(H(o.generateStatement(a,s)))):(n.push(M()),n.push(o.generateStatement(a,s))),r=1,i=e.declarations.length;r<i;++r)a=e.declarations[r],T.comment&&a.leadingComments?(n.push(","+f),n.push(H(o.generateStatement(a,s)))):(n.push(","+g),n.push(o.generateStatement(a,s)))}return n=[e.kind],s=1&t?1:0,e.declarations.length>1?q(l):l(),n.push(this.semicolon(t)),n},StaticBlock:function(e,t){return["static"+g,this.BlockStatement(e,t)]},ThrowStatement:function(e,t){return[U("throw",this.generateExpression(e.argument,r.Sequence,7)),this.semicolon(t)]},TryStatement:function(e,t){var n,r,i,a;if(n=["try",this.maybeBlock(e.block,1)],n=this.maybeBlockSuffix(e.block,n),e.handlers)for(r=0,i=e.handlers.length;r<i;++r)n=U(n,this.generateStatement(e.handlers[r],1)),(e.finalizer||r+1!==i)&&(n=this.maybeBlockSuffix(e.handlers[r].body,n));else{for(r=0,i=(a=e.guardedHandlers||[]).length;r<i;++r)n=U(n,this.generateStatement(a[r],1)),(e.finalizer||r+1!==i)&&(n=this.maybeBlockSuffix(a[r].body,n));if(e.handler)if(Array.isArray(e.handler))for(r=0,i=e.handler.length;r<i;++r)n=U(n,this.generateStatement(e.handler[r],1)),(e.finalizer||r+1!==i)&&(n=this.maybeBlockSuffix(e.handler[r].body,n));else n=U(n,this.generateStatement(e.handler,1)),e.finalizer&&(n=this.maybeBlockSuffix(e.handler.body,n))}return e.finalizer&&(n=U(n,["finally",this.maybeBlock(e.finalizer,1)])),n},SwitchStatement:function(e,t){var n,i,a,s,o,l=this;if(q((function(){n=["switch"+g+"(",l.generateExpression(e.discriminant,r.Sequence,7),")"+g+"{"+f]})),e.cases)for(o=1,a=0,s=e.cases.length;a<s;++a)a===s-1&&(o|=w),i=H(this.generateStatement(e.cases[a],o)),n.push(i),I(R(i).toString())||n.push(f);return n.push(H("}")),n},SwitchCase:function(t,n){var i,a,s,o,l,u=this;return q((function(){for(i=t.test?[U("case",u.generateExpression(t.test,r.Sequence,7)),":"]:["default:"],s=0,(o=t.consequent.length)&&t.consequent[0].type===e.BlockStatement&&(a=u.maybeBlock(t.consequent[0],1),i.push(a),s=1),s===o||I(R(i).toString())||i.push(f),l=1;s<o;++s)s===o-1&&n&w&&(l|=w),a=H(u.generateStatement(t.consequent[s],l)),i.push(a),s+1===o||I(R(a).toString())||i.push(f)})),i},IfStatement:function(t,n){var i,a,s=this;return q((function(){i=["if"+g+"(",s.generateExpression(t.test,r.Sequence,7),")"]})),a=1,n&w&&(a|=w),t.alternate?(i.push(this.maybeBlock(t.consequent,1)),i=this.maybeBlockSuffix(t.consequent,i),i=t.alternate.type===e.IfStatement?U(i,["else ",this.generateStatement(t.alternate,a)]):U(i,U("else",this.maybeBlock(t.alternate,a)))):i.push(this.maybeBlock(t.consequent,a)),i},ForStatement:function(t,n){var i,a=this;return q((function(){i=["for"+g+"("],t.init?t.init.type===e.VariableDeclaration?i.push(a.generateStatement(t.init,0)):(i.push(a.generateExpression(t.init,r.Sequence,6)),i.push(";")):i.push(";"),t.test?(i.push(g),i.push(a.generateExpression(t.test,r.Sequence,7)),i.push(";")):i.push(";"),t.update?(i.push(g),i.push(a.generateExpression(t.update,r.Sequence,7)),i.push(")")):i.push(")")})),i.push(this.maybeBlock(t.body,n&w?x:1)),i},ForInStatement:function(e,t){return this.generateIterationForStatement("in",e,t&w?x:1)},ForOfStatement:function(e,t){return this.generateIterationForStatement("of",e,t&w?x:1)},LabeledStatement:function(e,t){return[e.label.name+":",this.maybeBlock(e.body,t&w?x:1)]},Program:function(e,t){var n,r,i,a,s;for(a=e.body.length,n=[A&&a>0?"\n":""],s=17,i=0;i<a;++i)A||i!==a-1||(s|=w),_&&(0===i&&(e.body[0].leadingComments||z(e.range[0],e.body[i].range[0],n)),i>0&&(e.body[i-1].trailingComments||e.body[i].leadingComments||z(e.body[i-1].range[1],e.body[i].range[0],n))),r=H(this.generateStatement(e.body[i],s)),n.push(r),i+1<a&&!I(R(r).toString())&&(_&&e.body[i+1].leadingComments||n.push(f)),_&&i===a-1&&(e.body[i].trailingComments||z(e.body[i].range[1],e.range[1],n));return n},FunctionDeclaration:function(e,t){return[X(e,!0),"function",K(e)||M(),e.id?Q(e.id):"",this.generateFunctionBody(e)]},ReturnStatement:function(e,t){return e.argument?[U("return",this.generateExpression(e.argument,r.Sequence,7)),this.semicolon(t)]:["return"+this.semicolon(t)]},WhileStatement:function(e,t){var n,i=this;return q((function(){n=["while"+g+"(",i.generateExpression(e.test,r.Sequence,7),")"]})),n.push(this.maybeBlock(e.body,t&w?x:1)),n},WithStatement:function(e,t){var n,i=this;return q((function(){n=["with"+g+"(",i.generateExpression(e.object,r.Sequence,7),")"]})),n.push(this.maybeBlock(e.body,t&w?x:1)),n}},N(W.prototype,W.Statement),W.Expression={SequenceExpression:function(e,t,n){var i,a,s;for(r.Sequence<t&&(n|=1),i=[],a=0,s=e.expressions.length;a<s;++a)i.push(this.generateExpression(e.expressions[a],r.Assignment,n)),a+1<s&&i.push(","+g);return V(i,r.Sequence,t)},AssignmentExpression:function(e,t,n){return this.generateAssignment(e.left,e.right,e.operator,t,n)},ArrowFunctionExpression:function(e,t,n){return V(this.generateFunctionBody(e),r.ArrowFunction,t)},ConditionalExpression:function(e,t,n){return r.Conditional<t&&(n|=1),V([this.generateExpression(e.test,r.LogicalOR,n),g+"?"+g,this.generateExpression(e.consequent,r.Assignment,n),g+":"+g,this.generateExpression(e.alternate,r.Assignment,n)],r.Conditional,t)},LogicalExpression:function(e,t,n){return this.BinaryExpression(e,t,n)},BinaryExpression:function(t,n,a){var s,l,u,c,p,d;switch(l=c=i[t.operator],u=c+1,t.operator){case"**":l=r.Postfix,u=c;break;case"??":t.left.type!==e.LogicalExpression||"||"!==t.left.operator&&"&&"!==t.left.operator||(l=i[t.left.operator]+1),t.right.type===e.LogicalExpression&&"&&"===t.right.operator&&(u=i[t.right.operator]+1);break;case"||":t.left.type===e.LogicalExpression&&"??"===t.left.operator&&(l=i[t.left.operator]+1)}return c<n&&(a|=1),s=47===(d=(p=this.generateExpression(t.left,l,a)).toString()).charCodeAt(d.length-1)&&o.code.isIdentifierPartES5(t.operator.charCodeAt(0))?[p,M(),t.operator]:U(p,t.operator),p=this.generateExpression(t.right,u,a),"/"===t.operator&&"/"===p.toString().charAt(0)||"<"===t.operator.slice(-1)&&"!--"===p.toString().slice(0,3)?(s.push(M()),s.push(p)):s=U(s,p),"in"!==t.operator||1&a?V(s,c,n):["(",s,")"]},CallExpression:function(e,t,n){var i,a,s;for(i=[this.generateExpression(e.callee,r.Call,3)],e.optional&&i.push("?."),i.push("("),a=0,s=e.arguments.length;a<s;++a)i.push(this.generateExpression(e.arguments[a],r.Assignment,7)),a+1<s&&i.push(","+g);return i.push(")"),2&n?null===e.callee.id&&0===e.callee.params.length?V(i,t,r.Call):V(i,r.Call,t):["(",i,")"]},ChainExpression:function(e,t,n){return r.OptionalChaining<t&&(n|=2),V(this.generateExpression(e.expression,r.OptionalChaining,n),r.OptionalChaining,t)},NewExpression:function(e,t,n){var i,a,s,o,l;if(a=e.arguments.length,l=4&n&&!E&&0===a?5:1,i=U("new",this.generateExpression(e.callee,r.New,l)),!(4&n)||E||a>0){for(i.push("("),s=0,o=a;s<o;++s)i.push(this.generateExpression(e.arguments[s],r.Assignment,7)),s+1<o&&i.push(","+g);i.push(")")}return V(i,r.New,t)},MemberExpression:function(t,n,i){var a,s;return a=[this.generateExpression(t.object,r.Call,2&i?3:1)],t.computed?(t.optional&&a.push("?."),a.push("["),a.push(this.generateExpression(t.property,r.Sequence,2&i?7:5)),a.push("]")):(t.optional||t.object.type!==e.Literal||"number"!=typeof t.object.value||(s=R(a).toString()).indexOf(".")<0&&!/[eExX]/.test(s)&&o.code.isDecimalDigit(s.charCodeAt(s.length-1))&&!(s.length>=2&&48===s.charCodeAt(0))&&a.push(" "),a.push(t.optional?"?.":"."),a.push(Q(t.property))),V(a,r.Member,n)},MetaProperty:function(e,t,n){var i;return(i=[]).push("string"==typeof e.meta?e.meta:Q(e.meta)),i.push("."),i.push("string"==typeof e.property?e.property:Q(e.property)),V(i,r.Member,t)},UnaryExpression:function(e,t,n){var i,a,s,l,u;return a=this.generateExpression(e.argument,r.Unary,7),""===g?i=U(e.operator,a):(i=[e.operator],e.operator.length>2?i=U(i,a):(u=(l=R(i).toString()).charCodeAt(l.length-1),s=a.toString().charCodeAt(0),(43===u||45===u)&&u===s||o.code.isIdentifierPartES5(u)&&o.code.isIdentifierPartES5(s)?(i.push(M()),i.push(a)):i.push(a))),V(i,r.Unary,t)},YieldExpression:function(e,t,n){var i;return i=e.delegate?"yield*":"yield",e.argument&&(i=U(i,this.generateExpression(e.argument,r.Yield,7))),V(i,r.Yield,t)},AwaitExpression:function(e,t,n){return V(U(e.all?"await*":"await",this.generateExpression(e.argument,r.Await,7)),r.Await,t)},UpdateExpression:function(e,t,n){return e.prefix?V([e.operator,this.generateExpression(e.argument,r.Unary,7)],r.Unary,t):V([this.generateExpression(e.argument,r.Postfix,7),e.operator],r.Postfix,t)},FunctionExpression:function(e,t,n){var r=[X(e,!0),"function"];return e.id?(r.push(K(e)||M()),r.push(Q(e.id))):r.push(K(e)||g),r.push(this.generateFunctionBody(e)),r},ArrayPattern:function(e,t,n){return this.ArrayExpression(e,t,n,!0)},ArrayExpression:function(e,t,n,i){var a,s,o=this;return e.elements.length?(s=!i&&e.elements.length>1,a=["[",s?f:""],q((function(t){var n,i;for(n=0,i=e.elements.length;n<i;++n)e.elements[n]?(a.push(s?t:""),a.push(o.generateExpression(e.elements[n],r.Assignment,7))):(s&&a.push(t),n+1===i&&a.push(",")),n+1<i&&a.push(","+(s?f:g))})),s&&!I(R(a).toString())&&a.push(f),a.push(s?l:""),a.push("]"),a):"[]"},RestElement:function(e,t,n){return"..."+this.generatePattern(e.argument)},ClassExpression:function(e,t,n){var i,a;return i=["class"],e.id&&(i=U(i,this.generateExpression(e.id,r.Sequence,7))),e.superClass&&(a=U("extends",this.generateExpression(e.superClass,r.Unary,7)),i=U(i,a)),i.push(g),i.push(this.generateStatement(e.body,x)),i},MethodDefinition:function(e,t,n){var r,i;return r=e.static?["static"+g]:[],i="get"===e.kind||"set"===e.kind?[U(e.kind,this.generatePropertyKey(e.key,e.computed)),this.generateFunctionBody(e.value)]:[J(e),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)],U(r,i)},PrivateIdentifier:function(e,t,n){return Q(e)},Property:function(e,t,n){return"get"===e.kind||"set"===e.kind?[e.kind,M(),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)]:e.shorthand?"AssignmentPattern"===e.value.type?this.AssignmentPattern(e.value,r.Sequence,7):this.generatePropertyKey(e.key,e.computed):e.method?[J(e),this.generatePropertyKey(e.key,e.computed),this.generateFunctionBody(e.value)]:[this.generatePropertyKey(e.key,e.computed),":"+g,this.generateExpression(e.value,r.Assignment,7)]},PropertyDefinition:function(e,t,n){var i;return(i=e.static?["static "]:[]).push(this.generatePropertyKey(e.key,e.computed)),e.value&&(i.push(g+"="+g),i.push(this.generateExpression(e.value,r.Assignment,7))),i.push(this.semicolon(n)),i},ObjectExpression:function(e,t,n){var i,a,s,o,u=this;return e.properties.length?(i=e.properties.length>1,q((function(){s=u.generateExpression(e.properties[0],r.Sequence,7)})),i||(o=R(s).toString(),/[\r\n]/g.test(o))?(q((function(t){var n,o;if(a=["{",f,t,s],i)for(a.push(","+f),n=1,o=e.properties.length;n<o;++n)a.push(t),a.push(u.generateExpression(e.properties[n],r.Sequence,7)),n+1<o&&a.push(","+f)})),I(R(a).toString())||a.push(f),a.push(l),a.push("}"),a):["{",g,s,g,"}"]):"{}"},AssignmentPattern:function(e,t,n){return this.generateAssignment(e.left,e.right,"=",t,n)},ObjectPattern:function(t,n,i){var a,s,o,u,c,p=this;if(!t.properties.length)return"{}";if(u=!1,1===t.properties.length)(c=t.properties[0]).type===e.Property&&c.value.type!==e.Identifier&&(u=!0);else for(s=0,o=t.properties.length;s<o;++s)if((c=t.properties[s]).type===e.Property&&!c.shorthand){u=!0;break}return a=["{",u?f:""],q((function(e){var n,i;for(n=0,i=t.properties.length;n<i;++n)a.push(u?e:""),a.push(p.generateExpression(t.properties[n],r.Sequence,7)),n+1<i&&a.push(","+(u?f:g))})),u&&!I(R(a).toString())&&a.push(f),a.push(u?l:""),a.push("}"),a},ThisExpression:function(e,t,n){return"this"},Super:function(e,t,n){return"super"},Identifier:function(e,t,n){return Q(e)},ImportDefaultSpecifier:function(e,t,n){return Q(e.id||e.local)},ImportNamespaceSpecifier:function(e,t,n){var r=["*"],i=e.id||e.local;return i&&r.push(g+"as"+M()+Q(i)),r},ImportSpecifier:function(e,t,n){var r=e.imported,i=[r.name],a=e.local;return a&&a.name!==r.name&&i.push(M()+"as"+M()+Q(a)),i},ExportSpecifier:function(e,t,n){var r=e.local,i=[r.name],a=e.exported;return a&&a.name!==r.name&&i.push(M()+"as"+M()+Q(a)),i},Literal:function(t,n,r){var i;if(t.hasOwnProperty("raw")&&D&&T.raw)try{if((i=D(t.raw).body[0].expression).type===e.Literal&&i.value===t.value)return t.raw}catch(e){}return t.regex?"/"+t.regex.pattern+"/"+t.regex.flags:"string"==typeof t.bigint&&t.raw?t.raw:null===t.value?"null":"string"==typeof t.value?function(e){var t,n,r,i,a,s="",l=0,u=0;for(t=0,n=e.length;t<n;++t){if(39===(r=e.charCodeAt(t)))++l;else if(34===r)++u;else if(47===r&&c)s+="\\";else{if(o.code.isLineTerminator(r)||92===r){s+=O(r);continue}if(!o.code.isIdentifierPartES5(r)&&(c&&r<32||!c&&!m&&(r<32||r>126))){s+=L(r,e.charCodeAt(t+1));continue}}s+=String.fromCharCode(r)}if(a=(i=!("double"===h||"auto"===h&&u<l))?"'":'"',!(i?l:u))return a+s+a;for(e=s,s=a,t=0,n=e.length;t<n;++t)(39===(r=e.charCodeAt(t))&&i||34===r&&!i)&&(s+="\\"),s+=String.fromCharCode(r);return s+a}(t.value):"number"==typeof t.value?t.raw&&-1!==t.raw.indexOf("_")?t.raw:function(e){var t,n,r,i,a;if(e!=e)throw new Error("Numeric literal whose value is NaN");if(e<0||0===e&&1/e<0)throw new Error("Numeric literal whose value is negative");if(e===1/0)return c?"null":p?"1e400":"1e+400";if(t=""+e,!p||t.length<3)return t;for(n=t.indexOf("."),c||48!==t.charCodeAt(0)||1!==n||(n=0,t=t.slice(1)),r=t,t=t.replace("e+","e"),i=0,(a=r.indexOf("e"))>0&&(i=+r.slice(a+1),r=r.slice(0,a)),n>=0&&(i-=r.length-n-1,r=+(r.slice(0,n)+r.slice(n+1))+""),a=0;48===r.charCodeAt(r.length+a-1);)--a;return 0!==a&&(i-=a,r=r.slice(0,a)),0!==i&&(r+="e"+i),(r.length<t.length||d&&e>1e12&&Math.floor(e)===e&&(r="0x"+e.toString(16)).length<t.length)&&+r===e&&(t=r),t}(t.value):"boolean"==typeof t.value?t.value?"true":"false":function(e){var t,n,r,i,a,s,o,l;if(n=e.toString(),e.source){if(!(t=n.match(/\/([^/]*)$/)))return n;for(r=t[1],n="",o=!1,l=!1,i=0,a=e.source.length;i<a;++i)s=e.source.charCodeAt(i),l?(n+=F(s,l),l=!1):(o?93===s&&(o=!1):47===s?n+="\\":91===s&&(o=!0),n+=F(s,l),l=92===s);return"/"+n+"/"+r}return n}(t.value)},GeneratorExpression:function(e,t,n){return this.ComprehensionExpression(e,t,n)},ComprehensionExpression:function(t,n,i){var a,s,o,l,u=this;return a=t.type===e.GeneratorExpression?["("]:["["],T.moz.comprehensionExpressionStartsWithAssignment&&(l=this.generateExpression(t.body,r.Assignment,7),a.push(l)),t.blocks&&q((function(){for(s=0,o=t.blocks.length;s<o;++s)l=u.generateExpression(t.blocks[s],r.Sequence,7),s>0||T.moz.comprehensionExpressionStartsWithAssignment?a=U(a,l):a.push(l)})),t.filter&&(a=U(a,"if"+g),l=this.generateExpression(t.filter,r.Sequence,7),a=U(a,["(",l,")"])),T.moz.comprehensionExpressionStartsWithAssignment||(l=this.generateExpression(t.body,r.Assignment,7),a=U(a,l)),a.push(t.type===e.GeneratorExpression?")":"]"),a},ComprehensionBlock:function(t,n,i){var a;return a=U(a=t.left.type===e.VariableDeclaration?[t.left.kind,M(),this.generateStatement(t.left.declarations[0],0)]:this.generateExpression(t.left,r.Call,7),t.of?"of":"in"),a=U(a,this.generateExpression(t.right,r.Sequence,7)),["for"+g+"(",a,")"]},SpreadElement:function(e,t,n){return["...",this.generateExpression(e.argument,r.Assignment,7)]},TaggedTemplateExpression:function(e,t,n){var i=3;return 2&n||(i=1),V([this.generateExpression(e.tag,r.Call,i),this.generateExpression(e.quasi,r.Primary,4)],r.TaggedTemplate,t)},TemplateElement:function(e,t,n){return e.value.raw},TemplateLiteral:function(e,t,n){var i,a,s;for(i=["`"],a=0,s=e.quasis.length;a<s;++a)i.push(this.generateExpression(e.quasis[a],r.Primary,7)),a+1<s&&(i.push("${"+g),i.push(this.generateExpression(e.expressions[a],r.Sequence,7)),i.push(g+"}"));return i.push("`"),i},ModuleSpecifier:function(e,t,n){return this.Literal(e,t,n)},ImportExpression:function(e,t,n){return V(["import(",this.generateExpression(e.source,r.Assignment,7),")"],r.Call,t)}},N(W.prototype,W.Expression),W.prototype.generateExpression=function(t,n,i){var a,s;return s=t.type||e.Property,T.verbatim&&t.hasOwnProperty(T.verbatim)?function(e,t){var n;return R("string"==typeof(n=e[T.verbatim])?V(Y(n),r.Sequence,t):V(Y(n.content),null!=n.precedence?n.precedence:r.Sequence,t),e)}(t,n):(a=this[s](t,n,i),T.comment&&(a=j(t,a)),R(a,t))},W.prototype.generateStatement=function(t,n){var r,i;return r=this[t.type](t,n),T.comment&&(r=j(t,r)),i=R(r).toString(),t.type!==e.Program||A||""!==f||"\n"!==i.charAt(i.length-1)||(r=C?R(r).replaceRight(/\s+$/,""):i.replace(/\s+$/,"")),R(r,t)},n(6638),t.R_=function(e,i){var s,o,w={indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null};return null!=i?("string"==typeof i.indent&&(w.format.indent.style=i.indent),"number"==typeof i.base&&(w.format.indent.base=i.base),i=P(w,i),u=i.format.indent.style,l="string"==typeof i.base?i.base:v(u,i.format.indent.base)):(u=(i=w).format.indent.style,l=v(u,i.format.indent.base)),c=i.format.json,p=i.format.renumber,d=!c&&i.format.hexadecimal,h=c?"double":i.format.quotes,m=i.format.escapeless,f=i.format.newline,g=i.format.space,i.format.compact&&(f=g=u=l=""),E=i.format.parentheses,b=i.format.semicolons,A=i.format.safeConcatenation,y=i.directive,D=c?null:i.parse,C=i.sourceMap,k=i.sourceCode,_=i.format.preserveBlankLines&&null!==k,T=i,C&&(a=t.Xh?n.g.sourceMap.SourceNode:n(9125).SourceNode),s=function(e){var t;if(t=new W,S(e))return t.generateStatement(e,1);if(function(e){return W.Expression.hasOwnProperty(e.type)}(e))return t.generateExpression(e,r.Sequence,7);throw new Error("Unknown node type: "+e.type)}(e),C?(o=s.toStringWithSourceMap({file:i.file,sourceRoot:i.sourceMapRoot}),i.sourceContent&&o.map.setSourceContent(i.sourceMap,i.sourceContent),i.sourceMapWithCode?o:o.map.toString()):(o={code:s.toString(),map:null},i.sourceMapWithCode?o:o.code)},s.attachComments,P({},r),t.Xh=!1}()},140:(e,t)=>{!function e(t){"use strict";var n,r,i,a,s,o;function l(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&(n=e[t],r[t]="object"==typeof n&&null!==n?l(n):n);return r}function u(e,t){this.parent=e,this.key=t}function c(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function p(){}function d(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function h(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&"properties"===t}function m(e,t){for(var n=e.length-1;n>=0;--n)if(e[n].node===t)return!0;return!1}function f(e,t){return(new p).traverse(e,t)}function g(e,t){var n;return n=function(t,n){var r,i,a,s;for(i=t.length,a=0;i;)t[s=a+(r=i>>>1)].range[0]>e.range[0]?i=r:(a=s+1,i-=r+1);return a}(t),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),(n-=1)>=0&&(e.extendedRange[0]=t[n].range[1]),e}return n={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",StaticBlock:"StaticBlock",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",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"},i={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},r={Break:a={},Skip:s={},Remove:o={}},u.prototype.replace=function(e){this.parent[this.key]=e},u.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},p.prototype.path=function(){var e,t,n,r,i;function a(e,t){if(Array.isArray(t))for(n=0,r=t.length;n<r;++n)e.push(t[n]);else e.push(t)}if(!this.__current.path)return null;for(i=[],e=2,t=this.__leavelist.length;e<t;++e)a(i,this.__leavelist[e].path);return a(i,this.__current.path),i},p.prototype.type=function(){return this.current().type||this.__current.wrap},p.prototype.parents=function(){var e,t,n;for(n=[],e=1,t=this.__leavelist.length;e<t;++e)n.push(this.__leavelist[e].node);return n},p.prototype.current=function(){return this.__current.node},p.prototype.__execute=function(e,t){var n,r;return r=void 0,n=this.__current,this.__current=t,this.__state=null,e&&(r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=n,r},p.prototype.notify=function(e){this.__state=e},p.prototype.skip=function(){this.notify(s)},p.prototype.break=function(){this.notify(a)},p.prototype.remove=function(){this.notify(o)},p.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=i,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},p.prototype.traverse=function(e,t){var n,r,i,o,l,u,p,f,g,E,b,A;for(this.__initialize(e,t),A={},n=this.__worklist,r=this.__leavelist,n.push(new c(e,null,null,null)),r.push(new c(null,null,null,null));n.length;)if((i=n.pop())!==A){if(i.node){if(u=this.__execute(t.enter,i),this.__state===a||u===a)return;if(n.push(A),r.push(i),this.__state===s||u===s)continue;if(l=(o=i.node).type||i.wrap,!(E=this.__keys[l])){if(!this.__fallback)throw new Error("Unknown node type "+l+".");E=this.__fallback(o)}for(f=E.length;(f-=1)>=0;)if(b=o[p=E[f]])if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]&&!m(r,b[g])){if(h(l,E[f]))i=new c(b[g],[p,g],"Property",null);else{if(!d(b[g]))continue;i=new c(b[g],[p,g],null,null)}n.push(i)}}else if(d(b)){if(m(r,b))continue;n.push(new c(b,p,null,null))}}}else if(i=r.pop(),u=this.__execute(t.leave,i),this.__state===a||u===a)return},p.prototype.replace=function(e,t){var n,r,i,l,p,m,f,g,E,b,A,y,T;function D(e){var t,r,i,a;if(e.ref.remove())for(r=e.ref.key,a=e.ref.parent,t=n.length;t--;)if((i=n[t]).ref&&i.ref.parent===a){if(i.ref.key<r)break;--i.ref.key}}for(this.__initialize(e,t),A={},n=this.__worklist,r=this.__leavelist,m=new c(e,null,null,new u(y={root:e},"root")),n.push(m),r.push(m);n.length;)if((m=n.pop())!==A){if(void 0!==(p=this.__execute(t.enter,m))&&p!==a&&p!==s&&p!==o&&(m.ref.replace(p),m.node=p),this.__state!==o&&p!==o||(D(m),m.node=null),this.__state===a||p===a)return y.root;if((i=m.node)&&(n.push(A),r.push(m),this.__state!==s&&p!==s)){if(l=i.type||m.wrap,!(E=this.__keys[l])){if(!this.__fallback)throw new Error("Unknown node type "+l+".");E=this.__fallback(i)}for(f=E.length;(f-=1)>=0;)if(b=i[T=E[f]])if(Array.isArray(b)){for(g=b.length;(g-=1)>=0;)if(b[g]){if(h(l,E[f]))m=new c(b[g],[T,g],"Property",new u(b,g));else{if(!d(b[g]))continue;m=new c(b[g],[T,g],null,new u(b,g))}n.push(m)}}else d(b)&&n.push(new c(b,T,null,new u(i,T)))}}else if(m=r.pop(),void 0!==(p=this.__execute(t.leave,m))&&p!==a&&p!==s&&p!==o&&m.ref.replace(p),this.__state!==o&&p!==o||D(m),this.__state===a||p===a)return y.root;return y.root},t.Syntax=n,t.traverse=f,t.replace=function(e,t){return(new p).replace(e,t)},t.attachComments=function(e,t,n){var i,a,s,o,u=[];if(!e.range)throw new Error("attachComments needs range information");if(!n.length){if(t.length){for(s=0,a=t.length;s<a;s+=1)(i=l(t[s])).extendedRange=[0,e.range[0]],u.push(i);e.leadingComments=u}return e}for(s=0,a=t.length;s<a;s+=1)u.push(g(l(t[s]),n));return o=0,f(e,{enter:function(e){for(var t;o<u.length&&!((t=u[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),u.splice(o,1)):o+=1;return o===u.length?r.Break:u[o].extendedRange[0]>e.range[1]?r.Skip:void 0}}),o=0,f(e,{leave:function(e){for(var t;o<u.length&&(t=u[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),u.splice(o,1)):o+=1;return o===u.length?r.Break:u[o].extendedRange[0]>e.range[1]?r.Skip:void 0}}),e},t.VisitorKeys=i,t.VisitorOption=r,t.Controller=p,t.cloneEnvironment=function(){return e({})},t}(t)},3002:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655),i=r.__importDefault(n(9661)),a=r.__importDefault(n(1167)),s=r.__importDefault(n(8867));t.default=function(e){e.use(i.default);var t=e.use(a.default),n=e.use(s.default).defaults,r=t.Type.def,o=t.Type.or;r("Noop").bases("Statement").build(),r("DoExpression").bases("Expression").build("body").field("body",[r("Statement")]),r("BindExpression").bases("Expression").build("object","callee").field("object",o(r("Expression"),null)).field("callee",r("Expression")),r("ParenthesizedExpression").bases("Expression").build("expression").field("expression",r("Expression")),r("ExportNamespaceSpecifier").bases("Specifier").build("exported").field("exported",r("Identifier")),r("ExportDefaultSpecifier").bases("Specifier").build("exported").field("exported",r("Identifier")),r("CommentBlock").bases("Comment").build("value","leading","trailing"),r("CommentLine").bases("Comment").build("value","leading","trailing"),r("Directive").bases("Node").build("value").field("value",r("DirectiveLiteral")),r("DirectiveLiteral").bases("Node","Expression").build("value").field("value",String,n["use strict"]),r("InterpreterDirective").bases("Node").build("value").field("value",String),r("BlockStatement").bases("Statement").build("body").field("body",[r("Statement")]).field("directives",[r("Directive")],n.emptyArray),r("Program").bases("Node").build("body").field("body",[r("Statement")]).field("directives",[r("Directive")],n.emptyArray).field("interpreter",o(r("InterpreterDirective"),null),n.null),r("StringLiteral").bases("Literal").build("value").field("value",String),r("NumericLiteral").bases("Literal").build("value").field("value",Number).field("raw",o(String,null),n.null).field("extra",{rawValue:Number,raw:String},(function(){return{rawValue:this.value,raw:this.value+""}})),r("BigIntLiteral").bases("Literal").build("value").field("value",o(String,Number)).field("extra",{rawValue:String,raw:String},(function(){return{rawValue:String(this.value),raw:this.value+"n"}})),r("NullLiteral").bases("Literal").build().field("value",null,n.null),r("BooleanLiteral").bases("Literal").build("value").field("value",Boolean),r("RegExpLiteral").bases("Literal").build("pattern","flags").field("pattern",String).field("flags",String).field("value",RegExp,(function(){return new RegExp(this.pattern,this.flags)}));var l=o(r("Property"),r("ObjectMethod"),r("ObjectProperty"),r("SpreadProperty"),r("SpreadElement"));r("ObjectExpression").bases("Expression").build("properties").field("properties",[l]),r("ObjectMethod").bases("Node","Function").build("kind","key","params","body","computed").field("kind",o("method","get","set")).field("key",o(r("Literal"),r("Identifier"),r("Expression"))).field("params",[r("Pattern")]).field("body",r("BlockStatement")).field("computed",Boolean,n.false).field("generator",Boolean,n.false).field("async",Boolean,n.false).field("accessibility",o(r("Literal"),null),n.null).field("decorators",o([r("Decorator")],null),n.null),r("ObjectProperty").bases("Node").build("key","value").field("key",o(r("Literal"),r("Identifier"),r("Expression"))).field("value",o(r("Expression"),r("Pattern"))).field("accessibility",o(r("Literal"),null),n.null).field("computed",Boolean,n.false);var u=o(r("MethodDefinition"),r("VariableDeclarator"),r("ClassPropertyDefinition"),r("ClassProperty"),r("ClassPrivateProperty"),r("ClassMethod"),r("ClassPrivateMethod"));r("ClassBody").bases("Declaration").build("body").field("body",[u]),r("ClassMethod").bases("Declaration","Function").build("kind","key","params","body","computed","static").field("key",o(r("Literal"),r("Identifier"),r("Expression"))),r("ClassPrivateMethod").bases("Declaration","Function").build("key","params","body","kind","computed","static").field("key",r("PrivateName")),["ClassMethod","ClassPrivateMethod"].forEach((function(e){r(e).field("kind",o("get","set","method","constructor"),(function(){return"method"})).field("body",r("BlockStatement")).field("computed",Boolean,n.false).field("static",o(Boolean,null),n.null).field("abstract",o(Boolean,null),n.null).field("access",o("public","private","protected",null),n.null).field("accessibility",o("public","private","protected",null),n.null).field("decorators",o([r("Decorator")],null),n.null).field("optional",o(Boolean,null),n.null)}));var c=o(r("Property"),r("PropertyPattern"),r("SpreadPropertyPattern"),r("SpreadProperty"),r("ObjectProperty"),r("RestProperty"));r("ObjectPattern").bases("Pattern").build("properties").field("properties",[c]).field("decorators",o([r("Decorator")],null),n.null),r("SpreadProperty").bases("Node").build("argument").field("argument",r("Expression")),r("RestProperty").bases("Node").build("argument").field("argument",r("Expression")),r("ForAwaitStatement").bases("Statement").build("left","right","body").field("left",o(r("VariableDeclaration"),r("Expression"))).field("right",r("Expression")).field("body",r("Statement")),r("Import").bases("Expression").build()},e.exports=t.default},9152:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655),i=r.__importDefault(n(3002)),a=r.__importDefault(n(4749));t.default=function(e){e.use(i.default),e.use(a.default)},e.exports=t.default},5464:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalOperators=t.AssignmentOperators=t.BinaryOperators=void 0,t.BinaryOperators=["==","!=","===","!==","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","&","|","^","in","instanceof"],t.AssignmentOperators=["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&="],t.LogicalOperators=["||","&&"]},7211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655),i=n(5464),a=r.__importDefault(n(1167)),s=r.__importDefault(n(8867));t.default=function(e){var t=e.use(a.default).Type,n=t.def,r=t.or,o=e.use(s.default),l=o.defaults,u=o.geq;n("Printable").field("loc",r(n("SourceLocation"),null),l.null,!0),n("Node").bases("Printable").field("type",String).field("comments",r([n("Comment")],null),l.null,!0),n("SourceLocation").field("start",n("Position")).field("end",n("Position")).field("source",r(String,null),l.null),n("Position").field("line",u(1)).field("column",u(0)),n("File").bases("Node").build("program","name").field("program",n("Program")).field("name",r(String,null),l.null),n("Program").bases("Node").build("body").field("body",[n("Statement")]),n("Function").bases("Node").field("id",r(n("Identifier"),null),l.null).field("params",[n("Pattern")]).field("body",n("BlockStatement")).field("generator",Boolean,l.false).field("async",Boolean,l.false),n("Statement").bases("Node"),n("EmptyStatement").bases("Statement").build(),n("BlockStatement").bases("Statement").build("body").field("body",[n("Statement")]),n("ExpressionStatement").bases("Statement").build("expression").field("expression",n("Expression")),n("IfStatement").bases("Statement").build("test","consequent","alternate").field("test",n("Expression")).field("consequent",n("Statement")).field("alternate",r(n("Statement"),null),l.null),n("LabeledStatement").bases("Statement").build("label","body").field("label",n("Identifier")).field("body",n("Statement")),n("BreakStatement").bases("Statement").build("label").field("label",r(n("Identifier"),null),l.null),n("ContinueStatement").bases("Statement").build("label").field("label",r(n("Identifier"),null),l.null),n("WithStatement").bases("Statement").build("object","body").field("object",n("Expression")).field("body",n("Statement")),n("SwitchStatement").bases("Statement").build("discriminant","cases","lexical").field("discriminant",n("Expression")).field("cases",[n("SwitchCase")]).field("lexical",Boolean,l.false),n("ReturnStatement").bases("Statement").build("argument").field("argument",r(n("Expression"),null)),n("ThrowStatement").bases("Statement").build("argument").field("argument",n("Expression")),n("TryStatement").bases("Statement").build("block","handler","finalizer").field("block",n("BlockStatement")).field("handler",r(n("CatchClause"