prettier 3.9.5 → 3.9.6
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/THIRD-PARTY-NOTICES.md +2 -2
- package/index.cjs +1 -1
- package/index.mjs +3 -1
- package/internal/experimental-cli.mjs +1 -1
- package/package.json +1 -1
- package/plugins/acorn.js +10 -10
- package/plugins/acorn.mjs +10 -10
- package/plugins/babel.js +1 -1
- package/plugins/babel.mjs +1 -1
- package/plugins/estree.js +1 -1
- package/plugins/estree.mjs +1 -1
- package/plugins/flow.js +3 -3
- package/plugins/flow.mjs +3 -3
- package/plugins/meriyah.js +1 -1
- package/plugins/meriyah.mjs +1 -1
- package/plugins/postcss.js +16 -16
- package/plugins/postcss.mjs +1 -1
- package/plugins/typescript.js +14 -14
- package/plugins/typescript.mjs +14 -14
- package/standalone.js +2 -2
- package/standalone.mjs +2 -2
package/plugins/babel.js
CHANGED
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
`)return e+2;if(xs(i))return e+1}return e}var Ps=wr;function Ir(a,e){return e===!1?!1:a.charAt(e)==="/"&&a.charAt(e+1)==="/"?ms(a,e):e}var gs=Ir;function Nr(a,e){let t=null,s=e;for(;s!==t;)t=s,s=ds(a,s),s=ys(a,s),s=gs(a,s),s=Ps(a,s);return s}var Ts=Nr;function bs(a){let e=[];for(let t of a)try{return t()}catch(s){e.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:e})}function kr(a){if(!a.startsWith("#!"))return"";let e=a.indexOf(`
|
|
12
12
|
`);return e===-1?a:a.slice(0,e)}var Ft=kr;var vr=Array.prototype.findLast??function(a){for(let e=this.length-1;e>=0;e--){let t=this[e];if(a(t,e,this))return t}},Lr=X("findLast",function(){if(Array.isArray(this))return vr}),As=Lr;var Bt=Symbol.for("comments");function Dr(a){return this[a<0?this.length+a:a]}var Mr=X("at",function(){if(Array.isArray(this)||typeof this=="string")return Dr}),Ss=Mr;function J(a){let e=new Set(a);return t=>e.has(t?.type)}function rt(a){return a.range?.[1]??a.end}function N(a){let e=a.range?.[0]??a.start,t=(a.declaration?.decorators??a.decorators)?.[0];return t?Math.min(N(t),e):e}var Or=5,Fr=8,Br=8,Cs=a=>e=>e.label?k(e.label):N(e)+a,Rr=a=>a.__contentEnd??rt(a),Es=["ExpressionStatement","Directive","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ReturnStatement","ThrowStatement","DoWhileStatement"],Ur=new Map([["BreakStatement",Cs(Or)],["ContinueStatement",Cs(Fr)],["DebuggerStatement",a=>N(a)+Br],["VariableDeclaration",a=>k(Ss(0,a.declarations,-1))],...Es.map(a=>[a,Rr])]),Ne=J(Es);function k(a){let{type:e}=a;return e==="IfStatement"?k(a.alternate??a.consequent):e==="ForInStatement"||e==="ForOfStatement"||e==="ForStatement"||e==="LabeledStatement"||e==="WithStatement"||e==="WhileStatement"?k(a.body):Ur.get(e)?.(a)??rt(a)}var at=J(["Block","CommentBlock","MultiLine"]),ws=J(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]);function nt(a,e,t){if(!a.has(e)){let s=t(e);a.set(e,s)}return a.get(e)}var _r=new WeakMap;function Is(a){return nt(_r,a,e=>at(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value))}function jr(a){return U(0,a,/[^\n]/g," ")}var Ns=jr;function Vr(a,e){for(let t of e){let s=N(t),i=k(t);a=a.slice(0,s)+Ns(a.slice(s,i))+a.slice(i)}return a}var qr=new WeakMap;function ks(a){let e=a[Bt];return nt(qr,e,t=>Vr(a.originalText,t))}function $r(a){if(!at(a))return[];if(!a.value.includes(`
|
|
13
13
|
`))return[];let e=[];for(let t of`*${a.value}*`.split(`
|
|
14
|
-
`)){if(t=t.trimStart(),!t.startsWith("*"))return[];e.push(t)}return e}var vs=new WeakMap;function zr(a){return nt(vs,a,$r)}function Ls(a){vs.delete(a)}function ke(a){return zr(a).length>0}function Ds(a){if(a.length<2)return;let e;for(let t=a.length-1;t>=0;t--){let s=a[t];if(e&&k(s)===N(e)&&ke(s)&&ke(e)&&(a.splice(t+1,1),s.value+="*//*"+e.value,s.range=[N(s),k(e)],Ls(s)),!ws(s)&&!at(s))throw new TypeError(`Unknown comment type: "${s.type}".`);e=s}}function Hr(a){return a!==null&&typeof a=="object"}var Ms=Hr;var gt=null;function Tt(a){if(gt!==null&&typeof gt.property){let e=gt;return gt=Tt.prototype=null,e}return gt=Tt.prototype=a??Object.create(null),new Tt}var Kr=10;for(let a=0;a<=Kr;a++)Tt();function ve(a){return Tt(a)}function Wr(a,e="type"){ve(a);function t(s){let i=s[e],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return t}var Os=Wr;var u=[["elements"],["left","right"],["value"],["directives","body"],["label"],["callee","typeArguments","arguments"],["test","consequent","alternate"],["body","test"],["expression"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["object","property"],["properties"],["decorators","key","typeParameters","params","returnType","body"],["decorators","key","value"],["argument"],["expressions"],["id","init"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body"],["declaration","specifiers","source","attributes"],["local"],["exported"],["decorators","variance","key","typeAnnotation","value"],["id"],["key","value"],["elementType"],["id","typeParameters"],["id","typeParameters","extends","body"],["id","body"],["typeAnnotation"],["id","typeParameters","right"],["name","typeAnnotation"],["types"],["qualification","id"],["elementTypes"],["expression","typeAnnotation"],["params"],["members"],["objectType","indexType"],["decorators","key","typeAnnotation","value"],["id","typeParameters","params","returnType","body"],["key","typeParameters","params","returnType"],["typeParameters","params","returnType"],["parameterName","typeAnnotation"],["checkType","extendsType","trueType","falseType"],["typeParameter"],["literal"],["expression","typeArguments"],["decorators","key","typeAnnotation"],["argument","cases"],["pattern","body","guard"],["properties","rest"],["node"]],Fs={ArrayExpression:u[0],AssignmentExpression:u[1],BinaryExpression:u[1],InterpreterDirective:[],Directive:u[2],DirectiveLiteral:[],BlockStatement:u[3],BreakStatement:u[4],CallExpression:u[5],CatchClause:["param","body"],ConditionalExpression:u[6],ContinueStatement:u[4],DebuggerStatement:[],DoWhileStatement:u[7],EmptyStatement:[],ExpressionStatement:u[8],File:["program"],ForInStatement:u[9],ForStatement:["init","test","update","body"],FunctionDeclaration:u[10],FunctionExpression:u[10],Identifier:["typeAnnotation","decorators"],IfStatement:u[6],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:u[1],MemberExpression:u[11],NewExpression:u[5],Program:u[3],ObjectExpression:u[12],ObjectMethod:u[13],ObjectProperty:u[14],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:u[15],SequenceExpression:u[16],ParenthesizedExpression:u[8],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:u[15],TryStatement:["block","handler","finalizer"],UnaryExpression:u[15],UpdateExpression:u[15],VariableDeclaration:["declarations"],VariableDeclarator:u[17],WhileStatement:u[7],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:u[18],ClassExpression:u[19],ClassDeclaration:u[19],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:u[20],ExportSpecifier:["local","exported"],ForOfStatement:u[9],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:u[21],ImportNamespaceSpecifier:u[21],ImportSpecifier:["imported","local"],MetaProperty:["meta","property"],ClassMethod:u[13],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:u[15],Super:[],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:u[15],AwaitExpression:u[15],ImportExpression:["source","options"],BigIntLiteral:[],ExportNamespaceSpecifier:u[22],OptionalMemberExpression:u[11],OptionalCallExpression:u[5],ClassProperty:u[23],ClassPrivateProperty:u[23],ClassPrivateMethod:u[13],PrivateName:u[24],StaticBlock:u[18],ImportAttribute:u[25],AnyTypeAnnotation:[],ArrayTypeAnnotation:u[26],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:u[27],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:u[28],DeclareModule:u[29],DeclareModuleExports:u[30],DeclareTypeAlias:u[31],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareVariable:["id","declarations"],DeclareExportDeclaration:u[20],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:u[2],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:u[32],GenericTypeAnnotation:u[27],InferredPredicate:[],InterfaceExtends:u[27],InterfaceDeclaration:u[28],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:u[33],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:u[30],NumberLiteralTypeAnnotation:[],BigIntLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:u[2],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:u[15],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],QualifiedTypeIdentifier:u[34],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:u[35],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:u[31],TypeAnnotation:u[30],TypeCastExpression:u[36],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:u[37],TypeParameterInstantiation:u[37],UnionTypeAnnotation:u[33],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:u[29],EnumBooleanBody:u[38],EnumNumberBody:u[38],EnumStringBody:u[38],EnumSymbolBody:u[38],EnumBooleanMember:u[17],EnumNumberMember:u[17],EnumStringMember:u[17],EnumDefaultedMember:u[24],IndexedAccessType:u[39],OptionalIndexedAccessType:u[39],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:u[8],JSXSpreadChild:u[8],JSXIdentifier:[],JSXMemberExpression:u[11],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXSpreadAttribute:u[15],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ClassAccessorProperty:u[40],Decorator:u[8],DoExpression:u[18],ExportDefaultSpecifier:u[22],ModuleExpression:u[18],TopicReference:[],VoidPattern:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:u[41],TSDeclareMethod:u[42],TSQualifiedName:u[1],TSCallSignatureDeclaration:u[43],TSConstructSignatureDeclaration:u[43],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:u[42],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:u[43],TSConstructorType:u[43],TSTypeReference:["typeName","typeArguments"],TSTypePredicate:u[44],TSTypeQuery:["exprName","typeArguments"],TSTypeLiteral:u[38],TSArrayType:u[26],TSTupleType:u[35],TSOptionalType:u[30],TSRestType:u[30],TSNamedTupleMember:["label","elementType"],TSUnionType:u[33],TSIntersectionType:u[33],TSConditionalType:u[45],TSInferType:u[46],TSParenthesizedType:u[30],TSTypeOperator:u[30],TSIndexedAccessType:u[39],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:u[47],TSClassImplements:u[48],TSInterfaceHeritage:u[48],TSInterfaceDeclaration:u[28],TSInterfaceBody:u[18],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:u[48],TSAsExpression:u[36],TSSatisfiesExpression:u[36],TSTypeAssertion:u[36],TSEnumBody:u[38],TSEnumDeclaration:u[29],TSEnumMember:["id","initializer"],TSModuleDeclaration:u[29],TSModuleBlock:u[18],TSImportType:["source","options","qualifier","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:u[8],TSNonNullExpression:u[8],TSExportAssignment:u[8],TSNamespaceExportDeclaration:u[24],TSTypeAnnotation:u[30],TSTypeParameterInstantiation:u[37],TSTypeParameterDeclaration:u[37],TSTypeParameter:["name","constraint","default"],ChainExpression:u[8],Literal:[],MethodDefinition:u[14],PrivateIdentifier:[],Property:u[25],PropertyDefinition:u[23],AccessorProperty:u[40],TSAbstractAccessorProperty:u[49],TSAbstractKeyword:[],TSAbstractMethodDefinition:u[25],TSAbstractPropertyDefinition:u[49],TSAsyncKeyword:[],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:u[8],AsExpression:u[36],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:u[32],ConditionalTypeAnnotation:u[45],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:u[29],DeclareHook:u[24],DeclareNamespace:u[29],EnumBigIntBody:u[38],EnumBigIntMember:u[17],EnumBody:u[38],HookDeclaration:u[41],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:u[46],KeyofTypeAnnotation:u[15],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:u[24],MatchExpression:u[50],MatchExpressionCase:u[51],MatchIdentifierPattern:u[24],MatchInstanceObjectPattern:u[52],MatchInstancePattern:["targetConstructor","properties"],MatchLiteralPattern:u[47],MatchMemberPattern:["base","property"],MatchObjectPattern:u[52],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:u[15],MatchStatement:u[50],MatchStatementCase:u[51],MatchUnaryPattern:u[15],MatchWildcardPattern:[],NeverTypeAnnotation:[],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:u[34],RecordDeclaration:["id","typeParameters","implements","body"],RecordDeclarationBody:u[0],RecordDeclarationImplements:["id","typeArguments"],RecordDeclarationProperty:["key","typeAnnotation","defaultValue"],RecordDeclarationStaticProperty:["key","typeAnnotation","value"],RecordExpression:["recordConstructor","typeArguments","properties"],RecordExpressionProperties:u[12],SatisfiesExpression:u[36],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:u[30],TypePredicate:u[44],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],NGChainedExpression:u[16],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:u[18],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:u[25],NGRoot:u[53],JsExpressionRoot:u[53],JsonRoot:u[53],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:u[30],TSJSDocNonNullableType:u[30]};var Jr=Os(Fs),Bs=Jr;function Rt(a,e){if(!Ms(a))return a;if(Array.isArray(a)){for(let s=0;s<a.length;s++)a[s]=Rt(a[s],e);return a}if(e.onEnter){let s=e.onEnter(a)??a;if(s!==a)return Rt(s,e);a=s}let t=Bs(a);for(let s=0;s<t.length;s++)a[t[s]]=Rt(a[t[s]],e);return e.onLeave&&(a=e.onLeave(a)||a),a}var Rs=Rt;var oo=J(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function Gr(a,e){let{text:t,astType:s}=e,i=s==="oxc-ts",{comments:r}=a;Ds(r);let n=a.type==="File"?a.program:a;n.interpreter&&(r.unshift(n.interpreter),delete n.interpreter),a.hashbang&&(i&&r.unshift(a.hashbang),delete a.hashbang),a.type==="Program"&&(a.range=[0,t.length]);let o;return a=Rs(a,{onEnter(h){switch(Xr(h,r,t),h.type){case"ParenthesizedExpression":{let{expression:c}=h,p=N(h);if(c.type==="TypeCastExpression")return c.range=[p,k(h)],c;let f=!1;if(!i){if(!o){o=[];for(let x of r)Is(x)&&o.push(k(x))}let d=As(0,o,x=>x<=p);f=d&&t.slice(d,p).trim().length===0}return f?void 0:(c.extra={...c.extra,parenthesized:!0},c)}case"TemplateLiteral":if(h.expressions.length!==h.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(s==="flow"||s==="hermes"||s==="espree"||s==="typescript"||i){let c=N(h)+1,p=k(h)-(h.tail?1:2);h.range=[c,p]}break;case"TSParenthesizedType":return h.typeAnnotation;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(h.types.length===1)return h.types[0];break;case"TupleTypeAnnotation":h.types&&!h.elementTypes&&(h.elementTypes=h.types);break;case"ImportDeclaration":s==="hermes"&&h.assertions&&!h.attributes&&(h.attributes=h.assertions,delete h.assertions);break}},onLeave(h){switch(h.type){case"LogicalExpression":if(Us(h))return Le(h);break}}}),a}function Us(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function Le(a){return Us(a)?Le({type:"LogicalExpression",operator:a.operator,left:Le({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[N(a.left),k(a.right.left)]}),right:a.right.right,range:[N(a),k(a)]}):a}function Xr(a,e,t){if(!Ne(a))return;let s=rt(a);if(t[s-1]!==";")return;let i=ks({[Bt]:e,originalText:t});s-=1;let r=i.slice(N(a),s),n=r.trimEnd();a.__contentEnd=s-(r.length-n.length)}var _s=Gr;function Yr(a,e){let t=new SyntaxError(a+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(t,e)}var Ut=Yr;var js="Unexpected parseExpression() input: ";function Qr(a){let{message:e,loc:t,reasonCode:s}=a;if(!t)return a;let{line:i,column:r}=t,n=a;(s==="MissingPlugin"||s==="MissingOneOfPlugins")&&(e="Unexpected token.",n=void 0);let o=` (${i}:${r})`;return e.endsWith(o)&&(e=e.slice(0,-o.length)),e.startsWith(js)&&(e=e.slice(js.length)),Ut(e,{loc:{start:{line:i,column:r+1}},cause:n})}var _t=Qr;var Zr=/\*\/$/,ta=/^\/\*\*?/,ea=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,sa=/(^|\s+)\/\/([^\n\r]*)/g,Vs=/^(\r?\n)+/,ia=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,qs=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ra=/(\r?\n|^) *\* ?/g,aa=[];function $s(a){let e=a.match(ea);return e?e[0].trimStart():""}function zs(a){a=U(0,a.replace(ta,"").replace(Zr,""),ra,"$1");let t="";for(;t!==a;)t=a,a=U(0,a,ia,`
|
|
14
|
+
`)){if(t=t.trimStart(),!t.startsWith("*"))return[];e.push(t)}return e}var vs=new WeakMap;function zr(a){return nt(vs,a,$r)}function Ls(a){vs.delete(a)}function ke(a){return zr(a).length>0}function Ds(a){if(a.length<2)return;let e;for(let t=a.length-1;t>=0;t--){let s=a[t];if(e&&k(s)===N(e)&&ke(s)&&ke(e)&&(a.splice(t+1,1),s.value+="*//*"+e.value,s.range=[N(s),k(e)],Ls(s)),!ws(s)&&!at(s))throw new TypeError(`Unknown comment type: "${s.type}".`);e=s}}function Hr(a){return a!==null&&typeof a=="object"}var Ms=Hr;var gt=null;function Tt(a){if(gt!==null&&typeof gt.property){let e=gt;return gt=Tt.prototype=null,e}return gt=Tt.prototype=a??Object.create(null),new Tt}var Kr=10;for(let a=0;a<=Kr;a++)Tt();function ve(a){return Tt(a)}function Wr(a,e="type"){ve(a);function t(s){let i=s[e],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return t}var Os=Wr;var u=[["elements"],["left","right"],["value"],["directives","body"],["label"],["callee","typeArguments","arguments"],["test","consequent","alternate"],["body","test"],["expression"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["object","property"],["properties"],["decorators","key","typeParameters","params","returnType","body"],["decorators","key","value"],["argument"],["expressions"],["id","init"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body"],["declaration","specifiers","source","attributes"],["local"],["exported"],["decorators","variance","key","typeAnnotation","value"],["id"],["key","value"],["elementType"],["id","typeParameters"],["id","typeParameters","extends","body"],["id","body"],["typeAnnotation"],["id","typeParameters","right"],["name","typeAnnotation"],["types"],["qualification","id"],["elementTypes"],["expression","typeAnnotation"],["params"],["members"],["objectType","indexType"],["decorators","key","typeAnnotation","value"],["id","typeParameters","params","returnType","body"],["key","typeParameters","params","returnType"],["typeParameters","params","returnType"],["parameterName","typeAnnotation"],["checkType","extendsType","trueType","falseType"],["typeParameter"],["literal"],["expression","typeArguments"],["decorators","key","typeAnnotation"],["argument","cases"],["pattern","body","guard"],["properties","rest"],["node"]],Fs={ArrayExpression:u[0],AssignmentExpression:u[1],BinaryExpression:u[1],InterpreterDirective:[],Directive:u[2],DirectiveLiteral:[],BlockStatement:u[3],BreakStatement:u[4],CallExpression:u[5],CatchClause:["param","body"],ConditionalExpression:u[6],ContinueStatement:u[4],DebuggerStatement:[],DoWhileStatement:u[7],EmptyStatement:[],ExpressionStatement:u[8],File:["program"],ForInStatement:u[9],ForStatement:["init","test","update","body"],FunctionDeclaration:u[10],FunctionExpression:u[10],Identifier:["typeAnnotation","decorators"],IfStatement:u[6],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:u[1],MemberExpression:u[11],NewExpression:u[5],Program:u[3],ObjectExpression:u[12],ObjectMethod:u[13],ObjectProperty:u[14],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:u[15],SequenceExpression:u[16],ParenthesizedExpression:u[8],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:u[15],TryStatement:["block","handler","finalizer"],UnaryExpression:u[15],UpdateExpression:u[15],VariableDeclaration:["declarations"],VariableDeclarator:u[17],WhileStatement:u[7],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:u[18],ClassExpression:u[19],ClassDeclaration:u[19],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:u[20],ExportSpecifier:["local","exported"],ForOfStatement:u[9],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:u[21],ImportNamespaceSpecifier:u[21],ImportSpecifier:["imported","local"],MetaProperty:["meta","property"],ClassMethod:u[13],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:u[15],Super:[],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:u[15],AwaitExpression:u[15],ImportExpression:["source","options"],BigIntLiteral:[],ExportNamespaceSpecifier:u[22],OptionalMemberExpression:u[11],OptionalCallExpression:u[5],ClassProperty:u[23],ClassPrivateProperty:u[23],ClassPrivateMethod:u[13],PrivateName:u[24],StaticBlock:u[18],ImportAttribute:u[25],AnyTypeAnnotation:[],ArrayTypeAnnotation:u[26],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:u[27],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:u[28],DeclareModule:u[29],DeclareModuleExports:u[30],DeclareTypeAlias:u[31],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareVariable:["id","declarations"],DeclareExportDeclaration:u[20],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:u[2],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:u[32],GenericTypeAnnotation:u[27],InferredPredicate:[],InterfaceExtends:u[27],InterfaceDeclaration:u[28],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:u[33],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:u[30],NumberLiteralTypeAnnotation:[],BigIntLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:u[2],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:u[15],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],QualifiedTypeIdentifier:u[34],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:u[35],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:u[31],TypeAnnotation:u[30],TypeCastExpression:u[36],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:u[37],TypeParameterInstantiation:u[37],UnionTypeAnnotation:u[33],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:u[29],EnumBooleanBody:u[38],EnumNumberBody:u[38],EnumStringBody:u[38],EnumSymbolBody:u[38],EnumBooleanMember:u[17],EnumNumberMember:u[17],EnumStringMember:u[17],EnumDefaultedMember:u[24],IndexedAccessType:u[39],OptionalIndexedAccessType:u[39],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:u[8],JSXSpreadChild:u[8],JSXIdentifier:[],JSXMemberExpression:u[11],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXSpreadAttribute:u[15],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ClassAccessorProperty:u[40],Decorator:u[8],DoExpression:u[18],ExportDefaultSpecifier:u[22],ModuleExpression:u[18],TopicReference:[],VoidPattern:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:u[41],TSDeclareMethod:u[42],TSQualifiedName:u[1],TSCallSignatureDeclaration:u[43],TSConstructSignatureDeclaration:u[43],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:u[42],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:u[43],TSConstructorType:u[43],TSTypeReference:["typeName","typeArguments"],TSTypePredicate:u[44],TSTypeQuery:["exprName","typeArguments"],TSTypeLiteral:u[38],TSArrayType:u[26],TSTupleType:u[35],TSOptionalType:u[30],TSRestType:u[30],TSNamedTupleMember:["label","elementType"],TSUnionType:u[33],TSIntersectionType:u[33],TSConditionalType:u[45],TSInferType:u[46],TSParenthesizedType:u[30],TSTypeOperator:u[30],TSIndexedAccessType:u[39],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:u[47],TSClassImplements:u[48],TSInterfaceHeritage:u[48],TSInterfaceDeclaration:u[28],TSInterfaceBody:u[18],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:u[48],TSAsExpression:u[36],TSSatisfiesExpression:u[36],TSTypeAssertion:u[36],TSEnumBody:u[38],TSEnumDeclaration:u[29],TSEnumMember:["id","initializer"],TSModuleDeclaration:u[29],TSModuleBlock:u[18],TSImportType:["source","options","qualifier","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:u[8],TSNonNullExpression:u[8],TSExportAssignment:u[8],TSNamespaceExportDeclaration:u[24],TSTypeAnnotation:u[30],TSTypeParameterInstantiation:u[37],TSTypeParameterDeclaration:u[37],TSTypeParameter:["name","constraint","default"],ChainExpression:u[8],Literal:[],MethodDefinition:u[14],PrivateIdentifier:[],Property:u[25],PropertyDefinition:u[23],AccessorProperty:u[40],TSAbstractAccessorProperty:u[49],TSAbstractKeyword:[],TSAbstractMethodDefinition:u[25],TSAbstractPropertyDefinition:u[49],TSAsyncKeyword:[],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:u[8],AsExpression:u[36],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:u[32],ConditionalTypeAnnotation:u[45],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:u[29],DeclareHook:u[24],DeclareNamespace:u[29],EnumBigIntBody:u[38],EnumBigIntMember:u[17],EnumBody:u[38],HookDeclaration:u[41],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:u[46],KeyofTypeAnnotation:u[15],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:u[24],MatchExpression:u[50],MatchExpressionCase:u[51],MatchIdentifierPattern:u[24],MatchInstanceObjectPattern:u[52],MatchInstancePattern:["targetConstructor","properties"],MatchLiteralPattern:u[47],MatchMemberPattern:["base","property"],MatchObjectPattern:u[52],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:u[15],MatchStatement:u[50],MatchStatementCase:u[51],MatchUnaryPattern:u[15],MatchWildcardPattern:[],NeverTypeAnnotation:[],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:u[34],RecordDeclaration:["id","typeParameters","implements","body"],RecordDeclarationBody:u[0],RecordDeclarationImplements:["id","typeArguments"],RecordDeclarationProperty:["key","typeAnnotation","defaultValue"],RecordDeclarationStaticProperty:["key","typeAnnotation","value"],RecordExpression:["recordConstructor","typeArguments","properties"],RecordExpressionProperties:u[12],SatisfiesExpression:u[36],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:u[30],TypePredicate:u[44],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],NGChainedExpression:u[16],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:u[18],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:u[25],NGRoot:u[53],JsExpressionRoot:u[53],JsonRoot:u[53],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:u[30],TSJSDocNonNullableType:u[30]};var Jr=Os(Fs),Bs=Jr;function Rt(a,e){if(!Ms(a))return a;if(Array.isArray(a)){for(let s=0;s<a.length;s++)a[s]=Rt(a[s],e);return a}if(e.onEnter){let s=e.onEnter(a)??a;if(s!==a)return Rt(s,e);a=s}let t=Bs(a);for(let s=0;s<t.length;s++)a[t[s]]=Rt(a[t[s]],e);return e.onLeave&&(a=e.onLeave(a)||a),a}var Rs=Rt;var oo=J(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function Gr(a,e){let{text:t,astType:s}=e,{comments:i}=a;Ds(i);let r=a.type==="File"?a.program:a;r.interpreter&&(i.unshift(r.interpreter),delete r.interpreter),a.hashbang&&((s==="oxc-ts"||s==="yuku-js"||s==="yuku-ts")&&i.unshift(a.hashbang),delete a.hashbang),a.type==="Program"&&(a.range=[0,t.length]);let n;return a=Rs(a,{onEnter(o){switch(Xr(o,i,t),o.type){case"ParenthesizedExpression":{let{expression:h}=o,c=N(o);if(h.type==="TypeCastExpression")return h.range=[c,k(o)],h;let p=!1;if(s!=="oxc-ts"){if(!n){n=[];for(let d of i)Is(d)&&n.push(k(d))}let f=As(0,n,d=>d<=c);p=f&&t.slice(f,c).trim().length===0}return p?void 0:(h.extra={...h.extra,parenthesized:!0},h)}case"TemplateLiteral":if(o.expressions.length!==o.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(s==="flow"||s==="hermes"||s==="espree"||s==="typescript"||s==="oxc-ts"||s==="yuku-ts"){let h=N(o)+1,c=k(o)-(o.tail?1:2);o.range=[h,c]}break;case"TSParenthesizedType":return o.typeAnnotation;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(o.types.length===1)return o.types[0];break;case"TupleTypeAnnotation":o.types&&!o.elementTypes&&(o.elementTypes=o.types);break;case"ImportDeclaration":s==="hermes"&&o.assertions&&!o.attributes&&(o.attributes=o.assertions,delete o.assertions);break}},onLeave(o){switch(o.type){case"LogicalExpression":if(Us(o))return Le(o);break}}}),a}function Us(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function Le(a){return Us(a)?Le({type:"LogicalExpression",operator:a.operator,left:Le({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[N(a.left),k(a.right.left)]}),right:a.right.right,range:[N(a),k(a)]}):a}function Xr(a,e,t){if(!Ne(a))return;let s=rt(a);if(t[s-1]!==";")return;let i=ks({[Bt]:e,originalText:t});s-=1;let r=i.slice(N(a),s),n=r.trimEnd();a.__contentEnd=s-(r.length-n.length)}var _s=Gr;function Yr(a,e){let t=new SyntaxError(a+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(t,e)}var Ut=Yr;var js="Unexpected parseExpression() input: ";function Qr(a){let{message:e,loc:t,reasonCode:s}=a;if(!t)return a;let{line:i,column:r}=t,n=a;(s==="MissingPlugin"||s==="MissingOneOfPlugins")&&(e="Unexpected token.",n=void 0);let o=` (${i}:${r})`;return e.endsWith(o)&&(e=e.slice(0,-o.length)),e.startsWith(js)&&(e=e.slice(js.length)),Ut(e,{loc:{start:{line:i,column:r+1}},cause:n})}var _t=Qr;var Zr=/\*\/$/,ta=/^\/\*\*?/,ea=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,sa=/(^|\s+)\/\/([^\n\r]*)/g,Vs=/^(\r?\n)+/,ia=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,qs=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ra=/(\r?\n|^) *\* ?/g,aa=[];function $s(a){let e=a.match(ea);return e?e[0].trimStart():""}function zs(a){a=U(0,a.replace(ta,"").replace(Zr,""),ra,"$1");let t="";for(;t!==a;)t=a,a=U(0,a,ia,`
|
|
15
15
|
$1 $2
|
|
16
16
|
`);a=a.replace(Vs,"").trimEnd();let s=Object.create(null),i=U(0,a,qs,"").replace(Vs,"").trimEnd(),r;for(;r=qs.exec(a);){let n=U(0,r[2],sa,"");if(typeof s[r[1]]=="string"||Array.isArray(s[r[1]])){let o=s[r[1]];s[r[1]]=[...aa,...Array.isArray(o)?o:[o],n]}else s[r[1]]=n}return{comments:i,pragmas:s}}var Hs=["noformat","noprettier"],Ks=["format","prettier"];function Ws(a){let e=Ft(a);e&&(a=a.slice(e.length+1));let t=$s(a),{pragmas:s,comments:i}=zs(t);return{shebang:e,text:a,pragmas:s,comments:i}}function Js(a){let{pragmas:e}=Ws(a);return Ks.some(t=>lt(e,t))}function Gs(a){let{pragmas:e}=Ws(a);return Hs.some(t=>lt(e,t))}function na(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:Js,hasIgnorePragma:Gs,locStart:N,locEnd:k,...a}}var G=na;var jt="module",De="commonjs";function Xs(a){if(typeof a=="string"){if(a=a.toLowerCase(),/\.(?:mjs|mts)$/i.test(a))return jt;if(/\.(?:cjs|cts)$/i.test(a))return De}}function oa(a){let{type:e="JsExpressionRoot",expression:t,comments:s=t?.comments??[],text:i,rootMarker:r}=a,n={type:e,comments:s,range:[0,i.length],rootMarker:r};return t&&(delete t.comments,n.node=t),n}var Vt=oa;var ot=a=>G(ua(a)),ha={sourceType:jt,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions",["partialApplication",{version:"2018-07"}],"decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},Ys="v8intrinsic",Qs=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],j=(a,e=ha)=>({...e,plugins:[...e.plugins,...a]}),ca=/@(?:no)?flow\b/;function la(a,e){if(e?.endsWith(".js.flow"))return!0;let t=Ft(a);t&&(a=a.slice(t.length));let s=Ts(a,0);return s!==!1&&(a=a.slice(0,s)),ca.test(a)}function pa(a,e,t){let s=a(e,t),i=s.errors.find(r=>!da.has(r.reasonCode));if(i)throw i;return s}function ua({isExpression:a=!1,optionsCombinations:e}){return(t,s={})=>{let{filepath:i}=s;if(typeof i!="string"&&(i=void 0),(s.parser==="babel"||s.parser==="__babel_estree")&&la(t,i))return s.parser="babel-flow",ti.parse(t,s);let r=e,n=s.__babelSourceType??Xs(i);n&&n!==jt&&(r=r.map(p=>({...p,sourceType:n,...n===De?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let o=/%[A-Z]/.test(t);t.includes("|>")?r=(o?[...Qs,Ys]:Qs).flatMap(f=>r.map(d=>j([f],d))):o&&(r=r.map(p=>j([Ys],p)));let h=a?Mt:Dt,c;try{c=bs(r.map(p=>()=>pa(h,t,p)))}catch({errors:[p]}){throw _t(p)}return a&&(c=Vt({expression:c,text:t,rootMarker:s.rootMarker})),_s(c,{text:t})}}var fa=["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ParamDupe","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","PatternIsOptional","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","DeclarationMissingInitializer","DecoratorAbstractMethod"],da=new Set(fa),Zs=[j(["jsx"])],ma=ot({optionsCombinations:Zs}),ya=ot({optionsCombinations:[j(["jsx","typescript"]),j(["typescript"])]}),xa=ot({isExpression:!0,optionsCombinations:[j(["jsx"])]}),Pa=ot({isExpression:!0,optionsCombinations:[j(["typescript"])]}),ti=ot({optionsCombinations:[j(["jsx",["flow",{all:!0}],"flowComments"])]}),ga=ot({optionsCombinations:Zs.map(a=>j(["estree"],a))});var Fe={};$t(Fe,{json:()=>Aa,"json-stringify":()=>Ea,json5:()=>Sa,jsonc:()=>Ca});function Ta(a){return Array.isArray(a)&&a.length>0}var Oe=Ta;var ei={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function ba(a){let e=Dt(a,ei),{program:t}=e;if(t.body.length===0&&t.directives.length===0&&!t.interpreter)return{comments:e.comments}}function bt(a,e={}){let{allowComments:t=!0,allowEmpty:s=!1}=e,i,r;try{i=Mt(a,ei),r=i.comments}catch(n){if(s&&n.code==="BABEL_PARSER_SYNTAX_ERROR"&&n.reasonCode==="ParseExpressionEmptyInput")try{({comments:r}=ba(a))}catch{}if(!r)throw _t(n)}if(!t&&Oe(r))throw H(r[0],"Comment");return(!s||i)&&ht(i),i=Vt({type:"JsonRoot",expression:i,comments:r,text:a}),i}function H(a,e){let[t,s]=[a.loc.start,a.loc.end].map(({line:i,column:r})=>({line:i,column:r+1}));return Ut(`${e} is not allowed in JSON.`,{loc:{start:t,end:s}})}function ht(a){switch(a.type){case"ArrayExpression":for(let e of a.elements)e!==null&&ht(e);return;case"ObjectExpression":for(let e of a.properties)ht(e);return;case"ObjectProperty":if(a.computed)throw H(a.key,"Computed key");if(a.shorthand)throw H(a.key,"Shorthand property");a.key.type!=="Identifier"&&ht(a.key),ht(a.value);return;case"UnaryExpression":{let{operator:e,argument:t}=a;if(e!=="+"&&e!=="-")throw H(a,`Operator '${a.operator}'`);if(t.type==="NumericLiteral"||t.type==="Identifier"&&(t.name==="Infinity"||t.name==="NaN"))return;throw H(t,`Operator '${e}' before '${t.type}'`)}case"Identifier":if(a.name!=="Infinity"&&a.name!=="NaN"&&a.name!=="undefined")throw H(a,`Identifier '${a.name}'`);return;case"TemplateLiteral":if(Oe(a.expressions))throw H(a.expressions[0],"'TemplateLiteral' with expression");for(let e of a.quasis)ht(e);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw H(a,`'${a.type}'`)}}var Aa=G({parse:a=>bt(a),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),Sa=G(a=>bt(a)),Ca=G(a=>bt(a,{allowEmpty:!0})),Ea=G({parse:a=>bt(a,{allowComments:!1}),astFormat:"estree-json"});var wa={...Me,...Fe};return ni(Ia);});
|
package/plugins/babel.mjs
CHANGED
|
@@ -11,6 +11,6 @@ var si=Object.defineProperty;var qt=(a,e)=>{for(var t in e)si(a,t,{get:e[t],enum
|
|
|
11
11
|
`)return e+2;if(ys(i))return e+1}return e}var xs=Ar;function Sr(a,e){return e===!1?!1:a.charAt(e)==="/"&&a.charAt(e+1)==="/"?ds(a,e):e}var Ps=Sr;function Cr(a,e){let t=null,s=e;for(;s!==t;)t=s,s=fs(a,s),s=ms(a,s),s=Ps(a,s),s=xs(a,s);return s}var gs=Cr;function Ts(a){let e=[];for(let t of a)try{return t()}catch(s){e.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:e})}function Er(a){if(!a.startsWith("#!"))return"";let e=a.indexOf(`
|
|
12
12
|
`);return e===-1?a:a.slice(0,e)}var Ft=Er;var wr=Array.prototype.findLast??function(a){for(let e=this.length-1;e>=0;e--){let t=this[e];if(a(t,e,this))return t}},Ir=X("findLast",function(){if(Array.isArray(this))return wr}),bs=Ir;var Bt=Symbol.for("comments");function Nr(a){return this[a<0?this.length+a:a]}var kr=X("at",function(){if(Array.isArray(this)||typeof this=="string")return Nr}),As=kr;function J(a){let e=new Set(a);return t=>e.has(t?.type)}function rt(a){return a.range?.[1]??a.end}function N(a){let e=a.range?.[0]??a.start,t=(a.declaration?.decorators??a.decorators)?.[0];return t?Math.min(N(t),e):e}var vr=5,Lr=8,Dr=8,Ss=a=>e=>e.label?k(e.label):N(e)+a,Mr=a=>a.__contentEnd??rt(a),Cs=["ExpressionStatement","Directive","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ReturnStatement","ThrowStatement","DoWhileStatement"],Or=new Map([["BreakStatement",Ss(vr)],["ContinueStatement",Ss(Lr)],["DebuggerStatement",a=>N(a)+Dr],["VariableDeclaration",a=>k(As(0,a.declarations,-1))],...Cs.map(a=>[a,Mr])]),Ie=J(Cs);function k(a){let{type:e}=a;return e==="IfStatement"?k(a.alternate??a.consequent):e==="ForInStatement"||e==="ForOfStatement"||e==="ForStatement"||e==="LabeledStatement"||e==="WithStatement"||e==="WhileStatement"?k(a.body):Or.get(e)?.(a)??rt(a)}var at=J(["Block","CommentBlock","MultiLine"]),Es=J(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]);function nt(a,e,t){if(!a.has(e)){let s=t(e);a.set(e,s)}return a.get(e)}var Fr=new WeakMap;function ws(a){return nt(Fr,a,e=>at(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/.test(e.value))}function Br(a){return U(0,a,/[^\n]/g," ")}var Is=Br;function Rr(a,e){for(let t of e){let s=N(t),i=k(t);a=a.slice(0,s)+Is(a.slice(s,i))+a.slice(i)}return a}var Ur=new WeakMap;function Ns(a){let e=a[Bt];return nt(Ur,e,t=>Rr(a.originalText,t))}function _r(a){if(!at(a))return[];if(!a.value.includes(`
|
|
13
13
|
`))return[];let e=[];for(let t of`*${a.value}*`.split(`
|
|
14
|
-
`)){if(t=t.trimStart(),!t.startsWith("*"))return[];e.push(t)}return e}var ks=new WeakMap;function jr(a){return nt(ks,a,_r)}function vs(a){ks.delete(a)}function Ne(a){return jr(a).length>0}function Ls(a){if(a.length<2)return;let e;for(let t=a.length-1;t>=0;t--){let s=a[t];if(e&&k(s)===N(e)&&Ne(s)&&Ne(e)&&(a.splice(t+1,1),s.value+="*//*"+e.value,s.range=[N(s),k(e)],vs(s)),!Es(s)&&!at(s))throw new TypeError(`Unknown comment type: "${s.type}".`);e=s}}function Vr(a){return a!==null&&typeof a=="object"}var Ds=Vr;var gt=null;function Tt(a){if(gt!==null&&typeof gt.property){let e=gt;return gt=Tt.prototype=null,e}return gt=Tt.prototype=a??Object.create(null),new Tt}var qr=10;for(let a=0;a<=qr;a++)Tt();function ke(a){return Tt(a)}function $r(a,e="type"){ke(a);function t(s){let i=s[e],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return t}var Ms=$r;var u=[["elements"],["left","right"],["value"],["directives","body"],["label"],["callee","typeArguments","arguments"],["test","consequent","alternate"],["body","test"],["expression"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["object","property"],["properties"],["decorators","key","typeParameters","params","returnType","body"],["decorators","key","value"],["argument"],["expressions"],["id","init"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body"],["declaration","specifiers","source","attributes"],["local"],["exported"],["decorators","variance","key","typeAnnotation","value"],["id"],["key","value"],["elementType"],["id","typeParameters"],["id","typeParameters","extends","body"],["id","body"],["typeAnnotation"],["id","typeParameters","right"],["name","typeAnnotation"],["types"],["qualification","id"],["elementTypes"],["expression","typeAnnotation"],["params"],["members"],["objectType","indexType"],["decorators","key","typeAnnotation","value"],["id","typeParameters","params","returnType","body"],["key","typeParameters","params","returnType"],["typeParameters","params","returnType"],["parameterName","typeAnnotation"],["checkType","extendsType","trueType","falseType"],["typeParameter"],["literal"],["expression","typeArguments"],["decorators","key","typeAnnotation"],["argument","cases"],["pattern","body","guard"],["properties","rest"],["node"]],Os={ArrayExpression:u[0],AssignmentExpression:u[1],BinaryExpression:u[1],InterpreterDirective:[],Directive:u[2],DirectiveLiteral:[],BlockStatement:u[3],BreakStatement:u[4],CallExpression:u[5],CatchClause:["param","body"],ConditionalExpression:u[6],ContinueStatement:u[4],DebuggerStatement:[],DoWhileStatement:u[7],EmptyStatement:[],ExpressionStatement:u[8],File:["program"],ForInStatement:u[9],ForStatement:["init","test","update","body"],FunctionDeclaration:u[10],FunctionExpression:u[10],Identifier:["typeAnnotation","decorators"],IfStatement:u[6],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:u[1],MemberExpression:u[11],NewExpression:u[5],Program:u[3],ObjectExpression:u[12],ObjectMethod:u[13],ObjectProperty:u[14],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:u[15],SequenceExpression:u[16],ParenthesizedExpression:u[8],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:u[15],TryStatement:["block","handler","finalizer"],UnaryExpression:u[15],UpdateExpression:u[15],VariableDeclaration:["declarations"],VariableDeclarator:u[17],WhileStatement:u[7],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:u[18],ClassExpression:u[19],ClassDeclaration:u[19],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:u[20],ExportSpecifier:["local","exported"],ForOfStatement:u[9],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:u[21],ImportNamespaceSpecifier:u[21],ImportSpecifier:["imported","local"],MetaProperty:["meta","property"],ClassMethod:u[13],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:u[15],Super:[],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:u[15],AwaitExpression:u[15],ImportExpression:["source","options"],BigIntLiteral:[],ExportNamespaceSpecifier:u[22],OptionalMemberExpression:u[11],OptionalCallExpression:u[5],ClassProperty:u[23],ClassPrivateProperty:u[23],ClassPrivateMethod:u[13],PrivateName:u[24],StaticBlock:u[18],ImportAttribute:u[25],AnyTypeAnnotation:[],ArrayTypeAnnotation:u[26],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:u[27],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:u[28],DeclareModule:u[29],DeclareModuleExports:u[30],DeclareTypeAlias:u[31],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareVariable:["id","declarations"],DeclareExportDeclaration:u[20],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:u[2],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:u[32],GenericTypeAnnotation:u[27],InferredPredicate:[],InterfaceExtends:u[27],InterfaceDeclaration:u[28],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:u[33],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:u[30],NumberLiteralTypeAnnotation:[],BigIntLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:u[2],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:u[15],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],QualifiedTypeIdentifier:u[34],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:u[35],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:u[31],TypeAnnotation:u[30],TypeCastExpression:u[36],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:u[37],TypeParameterInstantiation:u[37],UnionTypeAnnotation:u[33],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:u[29],EnumBooleanBody:u[38],EnumNumberBody:u[38],EnumStringBody:u[38],EnumSymbolBody:u[38],EnumBooleanMember:u[17],EnumNumberMember:u[17],EnumStringMember:u[17],EnumDefaultedMember:u[24],IndexedAccessType:u[39],OptionalIndexedAccessType:u[39],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:u[8],JSXSpreadChild:u[8],JSXIdentifier:[],JSXMemberExpression:u[11],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXSpreadAttribute:u[15],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ClassAccessorProperty:u[40],Decorator:u[8],DoExpression:u[18],ExportDefaultSpecifier:u[22],ModuleExpression:u[18],TopicReference:[],VoidPattern:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:u[41],TSDeclareMethod:u[42],TSQualifiedName:u[1],TSCallSignatureDeclaration:u[43],TSConstructSignatureDeclaration:u[43],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:u[42],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:u[43],TSConstructorType:u[43],TSTypeReference:["typeName","typeArguments"],TSTypePredicate:u[44],TSTypeQuery:["exprName","typeArguments"],TSTypeLiteral:u[38],TSArrayType:u[26],TSTupleType:u[35],TSOptionalType:u[30],TSRestType:u[30],TSNamedTupleMember:["label","elementType"],TSUnionType:u[33],TSIntersectionType:u[33],TSConditionalType:u[45],TSInferType:u[46],TSParenthesizedType:u[30],TSTypeOperator:u[30],TSIndexedAccessType:u[39],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:u[47],TSClassImplements:u[48],TSInterfaceHeritage:u[48],TSInterfaceDeclaration:u[28],TSInterfaceBody:u[18],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:u[48],TSAsExpression:u[36],TSSatisfiesExpression:u[36],TSTypeAssertion:u[36],TSEnumBody:u[38],TSEnumDeclaration:u[29],TSEnumMember:["id","initializer"],TSModuleDeclaration:u[29],TSModuleBlock:u[18],TSImportType:["source","options","qualifier","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:u[8],TSNonNullExpression:u[8],TSExportAssignment:u[8],TSNamespaceExportDeclaration:u[24],TSTypeAnnotation:u[30],TSTypeParameterInstantiation:u[37],TSTypeParameterDeclaration:u[37],TSTypeParameter:["name","constraint","default"],ChainExpression:u[8],Literal:[],MethodDefinition:u[14],PrivateIdentifier:[],Property:u[25],PropertyDefinition:u[23],AccessorProperty:u[40],TSAbstractAccessorProperty:u[49],TSAbstractKeyword:[],TSAbstractMethodDefinition:u[25],TSAbstractPropertyDefinition:u[49],TSAsyncKeyword:[],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:u[8],AsExpression:u[36],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:u[32],ConditionalTypeAnnotation:u[45],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:u[29],DeclareHook:u[24],DeclareNamespace:u[29],EnumBigIntBody:u[38],EnumBigIntMember:u[17],EnumBody:u[38],HookDeclaration:u[41],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:u[46],KeyofTypeAnnotation:u[15],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:u[24],MatchExpression:u[50],MatchExpressionCase:u[51],MatchIdentifierPattern:u[24],MatchInstanceObjectPattern:u[52],MatchInstancePattern:["targetConstructor","properties"],MatchLiteralPattern:u[47],MatchMemberPattern:["base","property"],MatchObjectPattern:u[52],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:u[15],MatchStatement:u[50],MatchStatementCase:u[51],MatchUnaryPattern:u[15],MatchWildcardPattern:[],NeverTypeAnnotation:[],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:u[34],RecordDeclaration:["id","typeParameters","implements","body"],RecordDeclarationBody:u[0],RecordDeclarationImplements:["id","typeArguments"],RecordDeclarationProperty:["key","typeAnnotation","defaultValue"],RecordDeclarationStaticProperty:["key","typeAnnotation","value"],RecordExpression:["recordConstructor","typeArguments","properties"],RecordExpressionProperties:u[12],SatisfiesExpression:u[36],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:u[30],TypePredicate:u[44],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],NGChainedExpression:u[16],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:u[18],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:u[25],NGRoot:u[53],JsExpressionRoot:u[53],JsonRoot:u[53],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:u[30],TSJSDocNonNullableType:u[30]};var zr=Ms(Os),Fs=zr;function Rt(a,e){if(!Ds(a))return a;if(Array.isArray(a)){for(let s=0;s<a.length;s++)a[s]=Rt(a[s],e);return a}if(e.onEnter){let s=e.onEnter(a)??a;if(s!==a)return Rt(s,e);a=s}let t=Fs(a);for(let s=0;s<t.length;s++)a[t[s]]=Rt(a[t[s]],e);return e.onLeave&&(a=e.onLeave(a)||a),a}var Bs=Rt;var so=J(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function Hr(a,e){let{text:t,astType:s}=e,i=s==="oxc-ts",{comments:r}=a;Ls(r);let n=a.type==="File"?a.program:a;n.interpreter&&(r.unshift(n.interpreter),delete n.interpreter),a.hashbang&&(i&&r.unshift(a.hashbang),delete a.hashbang),a.type==="Program"&&(a.range=[0,t.length]);let o;return a=Bs(a,{onEnter(h){switch(Kr(h,r,t),h.type){case"ParenthesizedExpression":{let{expression:c}=h,p=N(h);if(c.type==="TypeCastExpression")return c.range=[p,k(h)],c;let f=!1;if(!i){if(!o){o=[];for(let x of r)ws(x)&&o.push(k(x))}let d=bs(0,o,x=>x<=p);f=d&&t.slice(d,p).trim().length===0}return f?void 0:(c.extra={...c.extra,parenthesized:!0},c)}case"TemplateLiteral":if(h.expressions.length!==h.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(s==="flow"||s==="hermes"||s==="espree"||s==="typescript"||i){let c=N(h)+1,p=k(h)-(h.tail?1:2);h.range=[c,p]}break;case"TSParenthesizedType":return h.typeAnnotation;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(h.types.length===1)return h.types[0];break;case"TupleTypeAnnotation":h.types&&!h.elementTypes&&(h.elementTypes=h.types);break;case"ImportDeclaration":s==="hermes"&&h.assertions&&!h.attributes&&(h.attributes=h.assertions,delete h.assertions);break}},onLeave(h){switch(h.type){case"LogicalExpression":if(Rs(h))return ve(h);break}}}),a}function Rs(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function ve(a){return Rs(a)?ve({type:"LogicalExpression",operator:a.operator,left:ve({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[N(a.left),k(a.right.left)]}),right:a.right.right,range:[N(a),k(a)]}):a}function Kr(a,e,t){if(!Ie(a))return;let s=rt(a);if(t[s-1]!==";")return;let i=Ns({[Bt]:e,originalText:t});s-=1;let r=i.slice(N(a),s),n=r.trimEnd();a.__contentEnd=s-(r.length-n.length)}var Us=Hr;function Wr(a,e){let t=new SyntaxError(a+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(t,e)}var Ut=Wr;var _s="Unexpected parseExpression() input: ";function Jr(a){let{message:e,loc:t,reasonCode:s}=a;if(!t)return a;let{line:i,column:r}=t,n=a;(s==="MissingPlugin"||s==="MissingOneOfPlugins")&&(e="Unexpected token.",n=void 0);let o=` (${i}:${r})`;return e.endsWith(o)&&(e=e.slice(0,-o.length)),e.startsWith(_s)&&(e=e.slice(_s.length)),Ut(e,{loc:{start:{line:i,column:r+1}},cause:n})}var _t=Jr;var Gr=/\*\/$/,Xr=/^\/\*\*?/,Yr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Qr=/(^|\s+)\/\/([^\n\r]*)/g,js=/^(\r?\n)+/,Zr=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Vs=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ta=/(\r?\n|^) *\* ?/g,ea=[];function qs(a){let e=a.match(Yr);return e?e[0].trimStart():""}function $s(a){a=U(0,a.replace(Xr,"").replace(Gr,""),ta,"$1");let t="";for(;t!==a;)t=a,a=U(0,a,Zr,`
|
|
14
|
+
`)){if(t=t.trimStart(),!t.startsWith("*"))return[];e.push(t)}return e}var ks=new WeakMap;function jr(a){return nt(ks,a,_r)}function vs(a){ks.delete(a)}function Ne(a){return jr(a).length>0}function Ls(a){if(a.length<2)return;let e;for(let t=a.length-1;t>=0;t--){let s=a[t];if(e&&k(s)===N(e)&&Ne(s)&&Ne(e)&&(a.splice(t+1,1),s.value+="*//*"+e.value,s.range=[N(s),k(e)],vs(s)),!Es(s)&&!at(s))throw new TypeError(`Unknown comment type: "${s.type}".`);e=s}}function Vr(a){return a!==null&&typeof a=="object"}var Ds=Vr;var gt=null;function Tt(a){if(gt!==null&&typeof gt.property){let e=gt;return gt=Tt.prototype=null,e}return gt=Tt.prototype=a??Object.create(null),new Tt}var qr=10;for(let a=0;a<=qr;a++)Tt();function ke(a){return Tt(a)}function $r(a,e="type"){ke(a);function t(s){let i=s[e],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return t}var Ms=$r;var u=[["elements"],["left","right"],["value"],["directives","body"],["label"],["callee","typeArguments","arguments"],["test","consequent","alternate"],["body","test"],["expression"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["object","property"],["properties"],["decorators","key","typeParameters","params","returnType","body"],["decorators","key","value"],["argument"],["expressions"],["id","init"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body"],["declaration","specifiers","source","attributes"],["local"],["exported"],["decorators","variance","key","typeAnnotation","value"],["id"],["key","value"],["elementType"],["id","typeParameters"],["id","typeParameters","extends","body"],["id","body"],["typeAnnotation"],["id","typeParameters","right"],["name","typeAnnotation"],["types"],["qualification","id"],["elementTypes"],["expression","typeAnnotation"],["params"],["members"],["objectType","indexType"],["decorators","key","typeAnnotation","value"],["id","typeParameters","params","returnType","body"],["key","typeParameters","params","returnType"],["typeParameters","params","returnType"],["parameterName","typeAnnotation"],["checkType","extendsType","trueType","falseType"],["typeParameter"],["literal"],["expression","typeArguments"],["decorators","key","typeAnnotation"],["argument","cases"],["pattern","body","guard"],["properties","rest"],["node"]],Os={ArrayExpression:u[0],AssignmentExpression:u[1],BinaryExpression:u[1],InterpreterDirective:[],Directive:u[2],DirectiveLiteral:[],BlockStatement:u[3],BreakStatement:u[4],CallExpression:u[5],CatchClause:["param","body"],ConditionalExpression:u[6],ContinueStatement:u[4],DebuggerStatement:[],DoWhileStatement:u[7],EmptyStatement:[],ExpressionStatement:u[8],File:["program"],ForInStatement:u[9],ForStatement:["init","test","update","body"],FunctionDeclaration:u[10],FunctionExpression:u[10],Identifier:["typeAnnotation","decorators"],IfStatement:u[6],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:u[1],MemberExpression:u[11],NewExpression:u[5],Program:u[3],ObjectExpression:u[12],ObjectMethod:u[13],ObjectProperty:u[14],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:u[15],SequenceExpression:u[16],ParenthesizedExpression:u[8],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:u[15],TryStatement:["block","handler","finalizer"],UnaryExpression:u[15],UpdateExpression:u[15],VariableDeclaration:["declarations"],VariableDeclarator:u[17],WhileStatement:u[7],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:u[18],ClassExpression:u[19],ClassDeclaration:u[19],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:u[20],ExportSpecifier:["local","exported"],ForOfStatement:u[9],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:u[21],ImportNamespaceSpecifier:u[21],ImportSpecifier:["imported","local"],MetaProperty:["meta","property"],ClassMethod:u[13],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:u[15],Super:[],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:u[15],AwaitExpression:u[15],ImportExpression:["source","options"],BigIntLiteral:[],ExportNamespaceSpecifier:u[22],OptionalMemberExpression:u[11],OptionalCallExpression:u[5],ClassProperty:u[23],ClassPrivateProperty:u[23],ClassPrivateMethod:u[13],PrivateName:u[24],StaticBlock:u[18],ImportAttribute:u[25],AnyTypeAnnotation:[],ArrayTypeAnnotation:u[26],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:u[27],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:u[28],DeclareModule:u[29],DeclareModuleExports:u[30],DeclareTypeAlias:u[31],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareVariable:["id","declarations"],DeclareExportDeclaration:u[20],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:u[2],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:u[32],GenericTypeAnnotation:u[27],InferredPredicate:[],InterfaceExtends:u[27],InterfaceDeclaration:u[28],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:u[33],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:u[30],NumberLiteralTypeAnnotation:[],BigIntLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:u[2],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:u[15],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],QualifiedTypeIdentifier:u[34],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:u[35],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:u[31],TypeAnnotation:u[30],TypeCastExpression:u[36],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:u[37],TypeParameterInstantiation:u[37],UnionTypeAnnotation:u[33],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:u[29],EnumBooleanBody:u[38],EnumNumberBody:u[38],EnumStringBody:u[38],EnumSymbolBody:u[38],EnumBooleanMember:u[17],EnumNumberMember:u[17],EnumStringMember:u[17],EnumDefaultedMember:u[24],IndexedAccessType:u[39],OptionalIndexedAccessType:u[39],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:u[8],JSXSpreadChild:u[8],JSXIdentifier:[],JSXMemberExpression:u[11],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXSpreadAttribute:u[15],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ClassAccessorProperty:u[40],Decorator:u[8],DoExpression:u[18],ExportDefaultSpecifier:u[22],ModuleExpression:u[18],TopicReference:[],VoidPattern:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:u[41],TSDeclareMethod:u[42],TSQualifiedName:u[1],TSCallSignatureDeclaration:u[43],TSConstructSignatureDeclaration:u[43],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:u[42],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:u[43],TSConstructorType:u[43],TSTypeReference:["typeName","typeArguments"],TSTypePredicate:u[44],TSTypeQuery:["exprName","typeArguments"],TSTypeLiteral:u[38],TSArrayType:u[26],TSTupleType:u[35],TSOptionalType:u[30],TSRestType:u[30],TSNamedTupleMember:["label","elementType"],TSUnionType:u[33],TSIntersectionType:u[33],TSConditionalType:u[45],TSInferType:u[46],TSParenthesizedType:u[30],TSTypeOperator:u[30],TSIndexedAccessType:u[39],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:u[47],TSClassImplements:u[48],TSInterfaceHeritage:u[48],TSInterfaceDeclaration:u[28],TSInterfaceBody:u[18],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:u[48],TSAsExpression:u[36],TSSatisfiesExpression:u[36],TSTypeAssertion:u[36],TSEnumBody:u[38],TSEnumDeclaration:u[29],TSEnumMember:["id","initializer"],TSModuleDeclaration:u[29],TSModuleBlock:u[18],TSImportType:["source","options","qualifier","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:u[8],TSNonNullExpression:u[8],TSExportAssignment:u[8],TSNamespaceExportDeclaration:u[24],TSTypeAnnotation:u[30],TSTypeParameterInstantiation:u[37],TSTypeParameterDeclaration:u[37],TSTypeParameter:["name","constraint","default"],ChainExpression:u[8],Literal:[],MethodDefinition:u[14],PrivateIdentifier:[],Property:u[25],PropertyDefinition:u[23],AccessorProperty:u[40],TSAbstractAccessorProperty:u[49],TSAbstractKeyword:[],TSAbstractMethodDefinition:u[25],TSAbstractPropertyDefinition:u[49],TSAsyncKeyword:[],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:u[8],AsExpression:u[36],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:u[32],ConditionalTypeAnnotation:u[45],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:u[29],DeclareHook:u[24],DeclareNamespace:u[29],EnumBigIntBody:u[38],EnumBigIntMember:u[17],EnumBody:u[38],HookDeclaration:u[41],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:u[46],KeyofTypeAnnotation:u[15],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:u[24],MatchExpression:u[50],MatchExpressionCase:u[51],MatchIdentifierPattern:u[24],MatchInstanceObjectPattern:u[52],MatchInstancePattern:["targetConstructor","properties"],MatchLiteralPattern:u[47],MatchMemberPattern:["base","property"],MatchObjectPattern:u[52],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:u[15],MatchStatement:u[50],MatchStatementCase:u[51],MatchUnaryPattern:u[15],MatchWildcardPattern:[],NeverTypeAnnotation:[],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:u[34],RecordDeclaration:["id","typeParameters","implements","body"],RecordDeclarationBody:u[0],RecordDeclarationImplements:["id","typeArguments"],RecordDeclarationProperty:["key","typeAnnotation","defaultValue"],RecordDeclarationStaticProperty:["key","typeAnnotation","value"],RecordExpression:["recordConstructor","typeArguments","properties"],RecordExpressionProperties:u[12],SatisfiesExpression:u[36],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:u[30],TypePredicate:u[44],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],NGChainedExpression:u[16],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:u[18],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:u[25],NGRoot:u[53],JsExpressionRoot:u[53],JsonRoot:u[53],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:u[30],TSJSDocNonNullableType:u[30]};var zr=Ms(Os),Fs=zr;function Rt(a,e){if(!Ds(a))return a;if(Array.isArray(a)){for(let s=0;s<a.length;s++)a[s]=Rt(a[s],e);return a}if(e.onEnter){let s=e.onEnter(a)??a;if(s!==a)return Rt(s,e);a=s}let t=Fs(a);for(let s=0;s<t.length;s++)a[t[s]]=Rt(a[t[s]],e);return e.onLeave&&(a=e.onLeave(a)||a),a}var Bs=Rt;var so=J(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function Hr(a,e){let{text:t,astType:s}=e,{comments:i}=a;Ls(i);let r=a.type==="File"?a.program:a;r.interpreter&&(i.unshift(r.interpreter),delete r.interpreter),a.hashbang&&((s==="oxc-ts"||s==="yuku-js"||s==="yuku-ts")&&i.unshift(a.hashbang),delete a.hashbang),a.type==="Program"&&(a.range=[0,t.length]);let n;return a=Bs(a,{onEnter(o){switch(Kr(o,i,t),o.type){case"ParenthesizedExpression":{let{expression:h}=o,c=N(o);if(h.type==="TypeCastExpression")return h.range=[c,k(o)],h;let p=!1;if(s!=="oxc-ts"){if(!n){n=[];for(let d of i)ws(d)&&n.push(k(d))}let f=bs(0,n,d=>d<=c);p=f&&t.slice(f,c).trim().length===0}return p?void 0:(h.extra={...h.extra,parenthesized:!0},h)}case"TemplateLiteral":if(o.expressions.length!==o.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(s==="flow"||s==="hermes"||s==="espree"||s==="typescript"||s==="oxc-ts"||s==="yuku-ts"){let h=N(o)+1,c=k(o)-(o.tail?1:2);o.range=[h,c]}break;case"TSParenthesizedType":return o.typeAnnotation;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(o.types.length===1)return o.types[0];break;case"TupleTypeAnnotation":o.types&&!o.elementTypes&&(o.elementTypes=o.types);break;case"ImportDeclaration":s==="hermes"&&o.assertions&&!o.attributes&&(o.attributes=o.assertions,delete o.assertions);break}},onLeave(o){switch(o.type){case"LogicalExpression":if(Rs(o))return ve(o);break}}}),a}function Rs(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function ve(a){return Rs(a)?ve({type:"LogicalExpression",operator:a.operator,left:ve({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[N(a.left),k(a.right.left)]}),right:a.right.right,range:[N(a),k(a)]}):a}function Kr(a,e,t){if(!Ie(a))return;let s=rt(a);if(t[s-1]!==";")return;let i=Ns({[Bt]:e,originalText:t});s-=1;let r=i.slice(N(a),s),n=r.trimEnd();a.__contentEnd=s-(r.length-n.length)}var Us=Hr;function Wr(a,e){let t=new SyntaxError(a+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(t,e)}var Ut=Wr;var _s="Unexpected parseExpression() input: ";function Jr(a){let{message:e,loc:t,reasonCode:s}=a;if(!t)return a;let{line:i,column:r}=t,n=a;(s==="MissingPlugin"||s==="MissingOneOfPlugins")&&(e="Unexpected token.",n=void 0);let o=` (${i}:${r})`;return e.endsWith(o)&&(e=e.slice(0,-o.length)),e.startsWith(_s)&&(e=e.slice(_s.length)),Ut(e,{loc:{start:{line:i,column:r+1}},cause:n})}var _t=Jr;var Gr=/\*\/$/,Xr=/^\/\*\*?/,Yr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Qr=/(^|\s+)\/\/([^\n\r]*)/g,js=/^(\r?\n)+/,Zr=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Vs=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ta=/(\r?\n|^) *\* ?/g,ea=[];function qs(a){let e=a.match(Yr);return e?e[0].trimStart():""}function $s(a){a=U(0,a.replace(Xr,"").replace(Gr,""),ta,"$1");let t="";for(;t!==a;)t=a,a=U(0,a,Zr,`
|
|
15
15
|
$1 $2
|
|
16
16
|
`);a=a.replace(js,"").trimEnd();let s=Object.create(null),i=U(0,a,Vs,"").replace(js,"").trimEnd(),r;for(;r=Vs.exec(a);){let n=U(0,r[2],Qr,"");if(typeof s[r[1]]=="string"||Array.isArray(s[r[1]])){let o=s[r[1]];s[r[1]]=[...ea,...Array.isArray(o)?o:[o],n]}else s[r[1]]=n}return{comments:i,pragmas:s}}var zs=["noformat","noprettier"],Hs=["format","prettier"];function Ks(a){let e=Ft(a);e&&(a=a.slice(e.length+1));let t=qs(a),{pragmas:s,comments:i}=$s(t);return{shebang:e,text:a,pragmas:s,comments:i}}function Ws(a){let{pragmas:e}=Ks(a);return Hs.some(t=>lt(e,t))}function Js(a){let{pragmas:e}=Ks(a);return zs.some(t=>lt(e,t))}function sa(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:Ws,hasIgnorePragma:Js,locStart:N,locEnd:k,...a}}var G=sa;var jt="module",Le="commonjs";function Gs(a){if(typeof a=="string"){if(a=a.toLowerCase(),/\.(?:mjs|mts)$/i.test(a))return jt;if(/\.(?:cjs|cts)$/i.test(a))return Le}}function ia(a){let{type:e="JsExpressionRoot",expression:t,comments:s=t?.comments??[],text:i,rootMarker:r}=a,n={type:e,comments:s,range:[0,i.length],rootMarker:r};return t&&(delete t.comments,n.node=t),n}var Vt=ia;var ot=a=>G(ha(a)),ra={sourceType:jt,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions",["partialApplication",{version:"2018-07"}],"decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},Xs="v8intrinsic",Ys=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],j=(a,e=ra)=>({...e,plugins:[...e.plugins,...a]}),aa=/@(?:no)?flow\b/;function na(a,e){if(e?.endsWith(".js.flow"))return!0;let t=Ft(a);t&&(a=a.slice(t.length));let s=gs(a,0);return s!==!1&&(a=a.slice(0,s)),aa.test(a)}function oa(a,e,t){let s=a(e,t),i=s.errors.find(r=>!la.has(r.reasonCode));if(i)throw i;return s}function ha({isExpression:a=!1,optionsCombinations:e}){return(t,s={})=>{let{filepath:i}=s;if(typeof i!="string"&&(i=void 0),(s.parser==="babel"||s.parser==="__babel_estree")&&na(t,i))return s.parser="babel-flow",Zs.parse(t,s);let r=e,n=s.__babelSourceType??Gs(i);n&&n!==jt&&(r=r.map(p=>({...p,sourceType:n,...n===Le?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let o=/%[A-Z]/.test(t);t.includes("|>")?r=(o?[...Ys,Xs]:Ys).flatMap(f=>r.map(d=>j([f],d))):o&&(r=r.map(p=>j([Xs],p)));let h=a?Mt:Dt,c;try{c=Ts(r.map(p=>()=>oa(h,t,p)))}catch({errors:[p]}){throw _t(p)}return a&&(c=Vt({expression:c,text:t,rootMarker:s.rootMarker})),Us(c,{text:t})}}var ca=["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ParamDupe","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","PatternIsOptional","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","DeclarationMissingInitializer","DecoratorAbstractMethod"],la=new Set(ca),Qs=[j(["jsx"])],pa=ot({optionsCombinations:Qs}),ua=ot({optionsCombinations:[j(["jsx","typescript"]),j(["typescript"])]}),fa=ot({isExpression:!0,optionsCombinations:[j(["jsx"])]}),da=ot({isExpression:!0,optionsCombinations:[j(["typescript"])]}),Zs=ot({optionsCombinations:[j(["jsx",["flow",{all:!0}],"flowComments"])]}),ma=ot({optionsCombinations:Qs.map(a=>j(["estree"],a))});var Oe={};qt(Oe,{json:()=>Pa,"json-stringify":()=>ba,json5:()=>ga,jsonc:()=>Ta});function ya(a){return Array.isArray(a)&&a.length>0}var Me=ya;var ti={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function xa(a){let e=Dt(a,ti),{program:t}=e;if(t.body.length===0&&t.directives.length===0&&!t.interpreter)return{comments:e.comments}}function bt(a,e={}){let{allowComments:t=!0,allowEmpty:s=!1}=e,i,r;try{i=Mt(a,ti),r=i.comments}catch(n){if(s&&n.code==="BABEL_PARSER_SYNTAX_ERROR"&&n.reasonCode==="ParseExpressionEmptyInput")try{({comments:r}=xa(a))}catch{}if(!r)throw _t(n)}if(!t&&Me(r))throw H(r[0],"Comment");return(!s||i)&&ht(i),i=Vt({type:"JsonRoot",expression:i,comments:r,text:a}),i}function H(a,e){let[t,s]=[a.loc.start,a.loc.end].map(({line:i,column:r})=>({line:i,column:r+1}));return Ut(`${e} is not allowed in JSON.`,{loc:{start:t,end:s}})}function ht(a){switch(a.type){case"ArrayExpression":for(let e of a.elements)e!==null&&ht(e);return;case"ObjectExpression":for(let e of a.properties)ht(e);return;case"ObjectProperty":if(a.computed)throw H(a.key,"Computed key");if(a.shorthand)throw H(a.key,"Shorthand property");a.key.type!=="Identifier"&&ht(a.key),ht(a.value);return;case"UnaryExpression":{let{operator:e,argument:t}=a;if(e!=="+"&&e!=="-")throw H(a,`Operator '${a.operator}'`);if(t.type==="NumericLiteral"||t.type==="Identifier"&&(t.name==="Infinity"||t.name==="NaN"))return;throw H(t,`Operator '${e}' before '${t.type}'`)}case"Identifier":if(a.name!=="Infinity"&&a.name!=="NaN"&&a.name!=="undefined")throw H(a,`Identifier '${a.name}'`);return;case"TemplateLiteral":if(Me(a.expressions))throw H(a.expressions[0],"'TemplateLiteral' with expression");for(let e of a.quasis)ht(e);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw H(a,`'${a.type}'`)}}var Pa=G({parse:a=>bt(a),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),ga=G(a=>bt(a)),Ta=G(a=>bt(a,{allowEmpty:!0})),ba=G({parse:a=>bt(a,{allowComments:!1}),astFormat:"estree-json"});var Aa={...De,...Oe};export{ei as default,Aa as parsers};
|
package/plugins/estree.js
CHANGED
|
@@ -9,7 +9,7 @@ Expected it to be ${n}.`}var Mo=class extends Error{name="InvalidDocError";const
|
|
|
9
9
|
`,ql=`
|
|
10
10
|
`,Yl=ql;function qs(e){return e===Wl?Gl:e===Jl?Ul:Yl}var Ys=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var Hs=12288,Xs=65510,Vs=[12288,12288,65281,65376,65504,65510];var Ks=4352,$s=262141,jo=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var vo=(e,t)=>{let r=0,n=Math.floor(e.length/2)-1;for(;r<=n;){let o=Math.floor((r+n)/2),i=o*2;if(t<e[i])n=o-1;else if(t>e[i+1])r=o+1;else return!0}return!1};var Qs=19968,[Hl,Xl]=Vl(jo);function Vl(e){let t=e[0],r=e[1];for(let n=0;n<e.length;n+=2){let o=e[n],i=e[n+1];if(Qs>=o&&Qs<=i)return[o,i];i-o>r-t&&(t=o,r=i)}return[t,r]}var Ro=e=>e<Hs||e>Xs?!1:vo(Vs,e);var Wo=e=>e>=Hl&&e<=Xl?!0:e<Ks||e>$s?!1:vo(jo,e);var Kl=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC3F\uDC41\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])$/,zs=e=>Kl.test(e);var $l=/[^\x20-\x7F]/;function Ql(e){if(!e)return 0;if(!$l.test(e))return e.length;let t=0;e=e.replace(Ys(),r=>(t+=zs(r)?1:2,""));for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=Ro(n)||Wo(n)?2:1)}return t}var dt=Ql;var zl={type:0},Zl={type:1},Jo={value:"",length:0,queue:[],get root(){return Jo}};function Zs(e,t,r){let n=t.type===1?e.queue.slice(0,-1):[...e.queue,t],o="",i=0,s=0,u=0;for(let E of n)switch(E.type){case 0:f(),r.useTabs?a(1):c(r.tabWidth);break;case 3:{let{string:P}=E;f(),o+=P,i+=P.length;break}case 2:{let{width:P}=E;s+=1,u+=P;break}default:throw new Error(`Unexpected indent comment '${E.type}'.`)}return F(),{...e,value:o,length:i,queue:n};function a(E){o+=" ".repeat(E),i+=r.tabWidth*E}function c(E){o+=" ".repeat(E),i+=E}function f(){r.useTabs?y():F()}function y(){s>0&&a(s),A()}function F(){u>0&&c(u),A()}function A(){s=0,u=0}}function eu(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=Zl:n={type:2,width:t}:n={type:3,string:t},Zs(e,n,r)}function tu(e,t){return Zs(e,zl,t)}function em(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function En(e){let t=em(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var Go=class{#e=[];#t="";#n=0;#o=[];#r=[];#i(){let t=this.#t;t!==""&&(this.#e.push(t),this.#n+=t.length,this.#t="");for(let r of this.#r)this.#o.push(Math.min(r,this.#n));this.#r.length=0}markPosition(){if(this.#o.length+this.#r.length>=2)throw new Error("There are too many 'cursor' in doc.");this.#r.push(this.#n+this.#t.length)}write(t){this.#t+=t}trim(){let{text:t,count:r}=En(this.#t);return this.#t=t,this.#i(),r}finish(){return this.#i(),{text:this.#e.join(""),positions:this.#o}}},ru=Go;var nt=Symbol("MODE_BREAK"),Ct=Symbol("MODE_FLAT"),Uo=Symbol("DOC_FILL_PRINTED_LENGTH");function dn(e,t,r,n,o,i){if(r===Number.POSITIVE_INFINITY)return!0;let s=t.length,u=!1,a=[e],c="";for(;r>=0;){if(a.length===0){if(s===0)return!0;a.push(t[--s]);continue}let{mode:f,doc:y}=a.pop(),F=Xe(y);switch(F){case ze:y&&(u&&(c+=" ",r-=1,u=!1),c+=y,r-=dt(y));break;case Me:case Ue:{let A=F===Me?y:y.parts,E=y[Uo]??0;for(let P=A.length-1;P>=E;P--)a.push({mode:f,doc:A[P]});break}case Ze:case et:case tt:case Ne:a.push({mode:f,doc:y.contents});break;case lt:{let{text:A,count:E}=En(c);c=A,r+=E;break}case ge:{if(i&&y.break)return!1;let A=y.break?nt:f,E=y.expandedStates&&A===nt?w(0,y.expandedStates,-1):y.contents;a.push({mode:A,doc:E});break}case _e:{let E=(y.groupId?o[y.groupId]||Ct:f)===nt?y.breakContents:y.flatContents;E&&a.push({mode:f,doc:E});break}case Fe:if(f===nt||y.hard)return!0;y.soft||(u=!0);break;case rt:n=!0;break;case He:if(n)return!1;break}}return!1}function qo(e,t){let r=Object.create(null),n=t.printWidth,o=qs(t.endOfLine),i=0,s=[{indent:Jo,mode:nt,doc:e}],u=!1,a=[],c=new ru;for(Ns(e);s.length>0;){let{indent:E,mode:P,doc:C}=s.pop();switch(Xe(C)){case ze:{let I=o!==`
|
|
11
11
|
`?V(0,C,`
|
|
12
|
-
`,o):C;I&&(c.write(I),s.length>0&&(i+=dt(I)));break}case Me:for(let I=C.length-1;I>=0;I--)s.push({indent:E,mode:P,doc:C[I]});break;case ct:c.markPosition();break;case Ze:s.push({indent:tu(E,t),mode:P,doc:C.contents});break;case et:s.push({indent:eu(E,C.n,t),mode:P,doc:C.contents});break;case lt:i-=c.trim();break;case ge:{let I=(function(){if(P===Ct&&!u)return{indent:E,mode:C.break?nt:Ct,doc:C.contents};u=!1;let h=n-i,v=a.length>0,U={indent:E,mode:Ct,doc:C.contents};if(!C.break&&dn(U,s,h,v,r))return U;if(!C.expandedStates)return{indent:E,mode:nt,doc:C.contents};if(!C.break)for(let ae=1;ae<C.expandedStates.length-1;ae++){let fe={indent:E,mode:Ct,doc:C.expandedStates[ae]};if(dn(fe,s,h,v,r))return fe}return{indent:E,mode:nt,doc:w(0,C.expandedStates,-1)}})();s.push(I),C.id&&(r[C.id]=I.mode);break}case Ue:{let I=n-i,k=C[Uo]??0,{parts:h}=C,v=h.length-k;if(v===0)break;let U=h[k+0],ae=h[k+1],fe={indent:E,mode:Ct,doc:U},z={indent:E,mode:nt,doc:U},xe=dn(fe,[],I,a.length>0,r,!0);if(v===1){xe?s.push(fe):s.push(z);break}let De={indent:E,mode:Ct,doc:ae},xt={indent:E,mode:nt,doc:ae};if(v===2){xe?s.push(De,fe):s.push(xt,z);break}let bt=h[k+2],_={indent:E,mode:P,doc:{...C,[Uo]:k+2}},we=dn({indent:E,mode:Ct,doc:[U,ae,bt]},[],I,a.length>0,r,!0);s.push(_),we?s.push(De,fe):xe?s.push(xt,fe):s.push(xt,z);break}case _e:case tt:{let I=C.groupId?r[C.groupId]:P;if(I===nt){let k=C.type===_e?C.breakContents:C.negate?C.contents:m(C.contents);k&&s.push({indent:E,mode:P,doc:k})}if(I===Ct){let k=C.type===_e?C.flatContents:C.negate?m(C.contents):C.contents;k&&s.push({indent:E,mode:P,doc:k})}break}case rt:a.push({indent:E,mode:P,doc:C.contents});break;case He:a.length>0&&s.push({indent:E,mode:P,doc:_o});break;case Fe:switch(P){case Ct:if(!C.hard){C.soft||(c.write(" "),i+=1);break}u=!0;case nt:if(a.length>0){s.push({indent:E,mode:P,doc:C},...a.reverse()),a.length=0;break}C.literal?(c.write(o),i=0,E.root&&(E.root.value&&c.write(E.root.value),i=E.root.length)):(c.trim(),c.write(o+E.value),i=E.length);break}break;case Ne:s.push({indent:E,mode:P,doc:C.contents});break;case qe:break;default:throw new Ot(C)}s.length===0&&a.length>0&&(s.push(...a.reverse()),a.length=0)}let{text:f,positions:y}=c.finish();if(y.length!==2)return{formatted:f};let[F,A]=y;return{formatted:f,cursorNodeStart:F,cursorNodeText:f.slice(F,A)}}var St=class extends Error{name="ArgExpansionBailout"};function pr(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function tm(e,t){let r=null,n=t;for(;n!==r;)r=n,n=$i(e,n),n=tr(e,n),n=at(e,n);return n=rr(e,n),n=pt(e,n),n!==!1&&J(e,n)}var Gt=tm;var me=(e,{originalText:t})=>{let r=S(e);if(Gt(t,r))return!0;let n=It(e);return n===r?!1:Gt(t,n)};var rm=B(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Cn=rm;var nu=B(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function nm({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Fn=nm;function cr(e){return Fn(e)||Cn(e)||nu(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function ou(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!kt(e,e.typeAnnotation)}function om(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let o=r[n];if(n===0)return e.type==="Identifier"&&e.name===o;if(n===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===o){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===o){e=e.object;continue}return!1}}function lr(e,t){return t.some(r=>om(e,r))}var im=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function sm(e){return lr(e,im)}function um(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}function Yo(e){return M(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}function am(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function Ut(e,t){if(e?.type!=="CallExpression"||e.optional)return!1;let r=se(e);if(r.length===1){if(Yo(e)&&Ut(t))return wt(r[0]);if(um(e.callee))return Yo(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||q(r[0]))&&sm(e.callee))return r[2]&&!Ee(r[2])?!1:(r.length===2?wt(r[1]):am(r[1])&&ee(r[1]).length<=1)||Yo(r[1]);return!1}function pm(e,t){let r=t-1;r=at(e,r,{backwards:!0}),r=pt(e,r,{backwards:!0}),r=at(e,r,{backwards:!0});let n=pt(e,r,{backwards:!0});return r!==n}var xn=pm;var Ho=()=>!0;function Xo(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function cm(e,t){let r=e.node,n=[Xo(e,t)],{printer:o,originalText:i,locStart:s,locEnd:u}=t;if(o.isBlockComment?.(r)){let f=" ";J(i,u(r))&&(J(i,s(r),{backwards:!0})?f=d:f=T),n.push(f)}else n.push(d);let c=pt(i,at(i,u(r)));return c!==!1&&J(i,c)&&n.push(d),n}function lm(e,t,r){let n=e.node,o=Xo(e,t),{printer:i,originalText:s,locStart:u}=t,a=i.isBlockComment?.(n);if(r?.hasLineSuffix&&!r?.isBlock||J(s,u(n),{backwards:!0})){let c=xn(s,u(n));return{doc:No([d,c?d:"",o]),isBlock:a,hasLineSuffix:!0}}return!a||r?.hasLineSuffix?{doc:[No([" ",o]),je],isBlock:a,hasLineSuffix:!0}:{doc:[" ",o],isBlock:a,hasLineSuffix:!1}}function W(e,t,r={}){let{indent:n=!1,marker:o,filter:i=Ho}=r,s=new Set(e.node?.comments?.filter(c=>!(c.leading||c.trailing||c.marker!==o||!i(c))));if(s.size===0)return"";let u=e.map(({node:c})=>s.has(c)?Xo(e,t):"","comments").filter(Boolean),a=L(d,u);return n?m([d,a]):a}function An(e,t,r){let n=t[Symbol.for("printedComments")],o=r?.filter??Ho,i=new Set(e.node?.comments?.filter(s=>!n?.has(s)&&s.leading&&o(s)));return i.size===0?"":e.map(({node:s})=>i.has(s)?cm(e,t):"","comments").filter(Boolean)}function iu(e,t,r){let n=e.node?.comments,o=new Set(n?.filter(f=>f.trailing)),i=t[Symbol.for("printedComments")],s=r?.filter??Ho,u=new Set(n?.filter(f=>o.has(f)&&!i?.has(f)&&s(f)));if(u.size===0)return"";let a=[],c;return e.each(({node:f})=>{o.has(f)&&(c=lm(e,t,c),u.has(f)&&a.push(c.doc))},"comments"),a}function Tn(e,t,r){return{leading:An(e,t,r),trailing:iu(e,t,r)}}function Q(e,t,r,n){let o=An(e,r,n),i=iu(e,r,n);return o||i?mn(t,s=>[o,s,i]):t}function gn(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function $(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":M(t)||N(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function hn(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var mm=B(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]),fm=e=>{let{node:t}=e;return mm(t)?e.parent.type!=="DeclareExportDeclaration"&&!t.implicitDeclare:t.declare};function ne(e){return fm(e)?"declare ":""}var Dm=B(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function mr({node:e}){return e.abstract||Dm(e)?"abstract ":""}function qt(e){return e.accessibility?e.accessibility+" ":""}var su=e=>e.type==="UnaryExpression"&&e.operator==="!";function ym(e){return x(e)||!su(e)?!1:(e=e.argument,e=su(e)?e.argument:e,e.type==="LogicalExpression")}function fr(e,t,r){let{node:n}=e,o=n.type==="WithStatement"?"object":"test",i=r(o);return ym(n[o])?i:p([m([D,i]),D])}function Mt(e,t,r){let{node:n}=e;return x(n,g.Dangling,r)?[m([D,W(e,t,{filter:r})]),x(n,g.Dangling|g.Line,r)?d:D]:""}function Ie(e,t="es5"){return gn(e,t)?O(","):""}function R(e){return e.semi?";":""}var Em=e=>e.mark!=="commentBeforeArrow";function Ke(e,t,r,n,o){let i=e.node,s=ee(i),u=o&&i.typeParameters?r("typeParameters"):"";if(s.length===0)return[u,"(",Mt(e,t,Em),")"];let{parent:a}=e,c=Ut(a),f=uu(i),y=[];if(Ni(e,(E,P)=>{let C=P===s.length-1;C&&i.rest&&y.push("..."),y.push(r()),!C&&(y.push(","),c||f?y.push(" "):me(s[P],t)?y.push(d,d):y.push(T))}),n&&!Cm(e)){if(ue(u)||ue(y))throw new St;return p([Jt(u),"(",Jt(y),")"])}let F=s.every(E=>!j(E.decorators));return f&&F?[u,"(",...y,")"]:c?[u,"(",...y,")"]:(pr(a)||ou(a)||a.type==="TypeAlias"||a.type==="UnionTypeAnnotation"||a.type==="IntersectionTypeAnnotation"||a.type==="FunctionTypeAnnotation"&&a.returnType===i)&&s.length===1&&s[0].name===null&&i.this!==s[0]&&s[0].typeAnnotation&&i.typeParameters===null&&cr(s[0].typeAnnotation)&&!i.rest?t.arrowParens==="always"||i.type==="HookTypeAnnotation"?["(",...y,")"]:y:[u,"(",m([D,...y]),!ji(i)&&e.root.type!=="NGRoot"?Ie(t,"all"):"",D,")"]}function uu(e){if(!e)return!1;let t=ee(e);if(t.length!==1)return!1;let[r]=t;return!x(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&Ye(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&Ye(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||ie(r.right)&&r.right.properties.length===0||Y(r.right)&&r.right.elements.length===0))}function dm(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function Bt(e,t){let r=dm(e);if(!r)return!1;let n=e.typeParameters?.params;if(n){if(n.length>1)return!1;if(n.length===1){let o=n[0];if(o.constraint||o.default)return!1}}return ee(e).length===1&&(Ye(r)||ue(t))}function Cm(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function au(e){let t=ee(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function Yt(e,t){return(t==="params"||t==="this"||t==="rest")&&uu(e)}var Fm=/^[\$A-Z_a-z\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\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\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-\uA7AE\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][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\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\u08B6-\u08BD\u08D4-\u08E1\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\u0C80-\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\u0D54-\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\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-\u19D9\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\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\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-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\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]*$/,xm=e=>Fm.test(e),pu=xm;function Am(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var _t=Am;var cu=Object.freeze({character:"'",codePoint:39}),lu=Object.freeze({character:'"',codePoint:34}),Tm=Object.freeze({preferred:cu,alternate:lu}),gm=Object.freeze({preferred:lu,alternate:cu});function Sn(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?Tm:gm,{length:o}=e,i=0,s=0;for(let u=0;u<o;u++){let a=e.charCodeAt(u);a===r.codePoint?i++:a===n.codePoint&&s++}return(i>s?n:r).character}var hm=/\\(["'\\])|(["'])/g;function Sm(e,t){let r=t==='"'?"'":'"',n=V(0,e,hm,(o,i,s)=>i?i===r?r:o:s===t?"\\"+s:s);return t+n+t}var fu=Sm;function Bm(e,t){Re(/^(?<quote>["']).*\k<quote>$/s.test(e));let r=e.slice(1,-1),n;return t.parser==="json"||t.parser==="jsonc"||t.parser==="json-stringify"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?n='"':t.__isInHtmlAttribute?n="'":n=Sn(r,t.singleQuote),e.charAt(0)===n?e:fu(r,n)}var ot=Bm;var Du=e=>e.type==="TSEnumMember",yu=e=>Du(e)?"id":"key",vr=e=>e[yu(e)],Eu=e=>!Du(e)&&e.computed;function du(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}var bm=({parser:e})=>e==="typescript"||e==="babel-ts"||e==="oxc-ts";function Pm(e,t){let r=vr(e);if(r.type==="Identifier")return!0;if(!Ee(r)||bm(t))return!1;let n=_t(ye(r));return String(r.value)===n&&du(n)}function Cu(e,t){let{parser:r}=t;if(r==="json"||r==="jsonc")return!1;let n=vr(e);if(!q(n))return!1;let{value:o}=n;return ot(ye(n),t).slice(1,-1)!==o?!1:!!(!(r==="babel-ts"&&e.type==="ClassProperty"||(r==="typescript"||r==="oxc-ts")&&e.type==="PropertyDefinition")&&pu(o)||(r==="babel"||r==="acorn"||r==="oxc"||r==="espree"||r==="meriyah"||r==="__babel_estree")&&e.type!=="ImportAttribute"&&du(o)&&String(Number(o))===o)}var Im=new WeakMap;function Fu(e,t){return Z(Im,e.parent,()=>e.siblings.some(r=>{if(Eu(r))return!1;let n=vr(r);return q(n)&&!Cu(r,t)}))}function km(e,t){return(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&Fu(e,t))&&Pm(e.node,t)}function wm(e,t){return(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Fu(e,t))&&Cu(e.node,t)}function ve(e,t,r){let{node:n}=e,o=yu(n);if(Eu(n))return["[",r(o),"]"];if(km(e,t)){let i=vr(n),s=ot(JSON.stringify(i.type==="Identifier"?i.name:String(i.value)),t);return e.call(()=>Q(e,s,t),o)}if(wm(e,t)){let{value:i}=vr(n),s=/^\d/.test(i)?_t(i):i;return e.call(()=>Q(e,s,t),o)}return r(o)}var Lm=B(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),Om=B(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function Ko(e){return e.key==="elementTypes"&&Zt(e.parent)&&e.parent.elementTypes.length>1}function Ht(e){let{types:t}=e;if(t.some(n=>x(n)))return!1;let r=t.find(n=>Om(n));return r?t.every(n=>n===r||Lm(n)):!1}function Bn(e){let{key:t,node:r,parent:n}=e;return!(Ht(r)||t==="types"&&pe(n)||t==="types"&&At(n)||Ko(e))}function bn(e,t,r,n){let{node:o}=e;if(Ht(o))return L(" | ",e.map(r,"types"));let i=p(e.map(({isFirst:s})=>{let u=s?O("| "):[T,"| "],a=r();return x(e.node,g.Leading)?[u,Se(2,Q(e,a,t))]:[u,Q(e,Se(2,a),t)]},"types"));return Bn(e)&&(i=Q(e,i,t)),oe(e,t)?p([m([D,i]),D]):Ko(e)?p([m([O(["(",D]),i]),D,O(")")]):n?.assignmentLayout==="break-after-operator"||!Mm(e)?i:p(m([D,i]))}function Mm(e){let{key:t,parent:r}=e;return!(t==="typeAnnotation"&&r.type==="TSTypeAssertion"||t==="elementTypes"&&Zt(r)||(t==="trueType"||t==="falseType")&&Qe(r)||t==="params"&&Xi(r)||t==="typeAnnotation"&&r.type==="FunctionTypeParam"&&!r.name&&e.grandparent.this!==r||e.match(void 0,(n,o)=>o==="typeAnnotation"&&n.type==="FunctionTypeParam",(n,o)=>o==="params"&&n.type==="FunctionTypeAnnotation",(n,o)=>o==="value"&&n.type==="ObjectTypeProperty"&&pr(n)))}function xu(e){return cr(e)||Ye(e)?!0:pe(e)?Ht(e):!1}var _m=new WeakSet;function G(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let o=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let i=e.call(Au,r);(i==="=>"||i===":"&&x(n,g.Leading))&&(o=!0),_m.add(n)}return o?[" ",t(r)]:t(r)}var Au=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function Pn(e,t,r){let n=Au(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}var Nm=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&$e(r));function Dr(e,t,r,n){if(Nm(e))return In(e,t,r);let{node:o}=e,i=!1;if(o.type==="FunctionExpression"&&n?.expandLastArg){let{parent:y}=e;M(y)&&(se(y).length>1||ee(o).every(F=>F.type==="Identifier"&&!F.typeAnnotation))&&(i=!0)}let s=Ke(e,t,r,i),u=wn(e,r),a=Bt(o,u),f=o.type==="HookDeclaration"?"hook":"function";return[ne(e),o.async?"async ":"",f,o.generator?"*":""," ",o.id?r("id"):"",r("typeParameters"),p([a?p(s):s,u]),o.body?" ":"",r("body"),o.declare||!o.body?R(t):""]}function Rr(e,t,r){let{node:n}=e,{kind:o}=n,i=n.value||n,s=[];return!o||o==="init"||o==="method"||o==="constructor"?i.async&&s.push("async "):(Re(o==="get"||o==="set"),s.push(o," ")),i.generator&&s.push("*"),s.push(ve(e,t,r),n.optional?"?":"",n===i?In(e,t,r):r("value")),s}function In(e,t,r){let{node:n}=e,o=Ke(e,t,r),i=wn(e,r),s=au(n),u=Bt(n,i),a=[r("typeParameters"),p([s?p(o,{shouldBreak:!0}):u?p(o):o,i])];return n.body?a.push(" ",r("body")):a.push(R(t)),a}function jm(e){let t=ee(e);return t.length===1&&!e.typeParameters&&!x(e,g.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!x(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function kn(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return jm(r)}return!1}function wn(e,t){let{node:r}=e,o=[G(e,t,"returnType")];return r.predicate&&o.push(t("predicate")),o}function yr(e,t){if(t.semi)return!1;let{node:r}=e;if(r.type!=="ExpressionStatement"||Qo(e,t)||Zo(e,t)||zo(e,t))return!1;let{key:n,parent:o}=e;return!!((n==="body"&&(o.type==="Program"||o.type==="BlockStatement"||o.type==="StaticBlock"||o.type==="TSModuleBlock")||n==="consequent"&&o.type==="SwitchCase")&&e.call(()=>Tu(e,t),"expression"))}function Tu(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"TSTypeAssertion":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!kn(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:o}=r;if(n&&(o==="+"||o==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(H(r))return!0}return oe(e,t)?!0:sr(r)?e.call(()=>Tu(e,t),...an(r)):!1}var $o=({node:e,parent:t})=>e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function Qo(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&$o(e)&&H(e.node.expression)}function zo(e,t){return t.__isHtmlInlineEventHandler&&$o(e)}function Zo(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&$o(e)}function Ln(e,t){if(!yr(e,t))return!1;let r=w(0,re(e.node,g.Leading),-1);return!!(r&&nr(r))}var vm=B(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Rm(e,t){let{key:r,parent:n}=e;if(r==="types"&&pe(n)||r==="argument"&&n.type==="JSXSpreadAttribute"||r==="expression"&&n.type==="JSXSpreadChild"||r==="superClass"&&(n.type==="ClassDeclaration"||n.type==="ClassExpression")||(r==="id"||r==="typeParameters")&&vm(n)||r==="patterns"&&n.type==="MatchOrPattern"||tn(e))return!0;let{node:o}=e;return Lt(o)?!1:o.type==="ExpressionStatement"?Ln(e,t):pe(o)?Bn(e):!!H(o)}var gu=Rm;function Wm(e,t,r=0){let n=0;for(let o=r;o<e.length;++o)e[o]===" "?n=n+t-n%t:n++;return n}var hu=Wm;function Jm(e,t){let r=e.lastIndexOf(`
|
|
12
|
+
`,o):C;I&&(c.write(I),s.length>0&&(i+=dt(I)));break}case Me:for(let I=C.length-1;I>=0;I--)s.push({indent:E,mode:P,doc:C[I]});break;case ct:c.markPosition();break;case Ze:s.push({indent:tu(E,t),mode:P,doc:C.contents});break;case et:s.push({indent:eu(E,C.n,t),mode:P,doc:C.contents});break;case lt:i-=c.trim();break;case ge:{let I=(function(){if(P===Ct&&!u)return{indent:E,mode:C.break?nt:Ct,doc:C.contents};u=!1;let h=n-i,v=a.length>0,U={indent:E,mode:Ct,doc:C.contents};if(!C.break&&dn(U,s,h,v,r))return U;if(!C.expandedStates)return{indent:E,mode:nt,doc:C.contents};if(!C.break)for(let ae=1;ae<C.expandedStates.length-1;ae++){let fe={indent:E,mode:Ct,doc:C.expandedStates[ae]};if(dn(fe,s,h,v,r))return fe}return{indent:E,mode:nt,doc:w(0,C.expandedStates,-1)}})();s.push(I),C.id&&(r[C.id]=I.mode);break}case Ue:{let I=n-i,k=C[Uo]??0,{parts:h}=C,v=h.length-k;if(v===0)break;let U=h[k+0],ae=h[k+1],fe={indent:E,mode:Ct,doc:U},z={indent:E,mode:nt,doc:U},xe=dn(fe,[],I,a.length>0,r,!0);if(v===1){xe?s.push(fe):s.push(z);break}let De={indent:E,mode:Ct,doc:ae},xt={indent:E,mode:nt,doc:ae};if(v===2){xe?s.push(De,fe):s.push(xt,z);break}let bt=h[k+2],_={indent:E,mode:P,doc:{...C,[Uo]:k+2}},we=dn({indent:E,mode:Ct,doc:[U,ae,bt]},[],I,a.length>0,r,!0);s.push(_),we?s.push(De,fe):xe?s.push(xt,fe):s.push(xt,z);break}case _e:case tt:{let I=C.groupId?r[C.groupId]:P;if(I===nt){let k=C.type===_e?C.breakContents:C.negate?C.contents:m(C.contents);k&&s.push({indent:E,mode:P,doc:k})}if(I===Ct){let k=C.type===_e?C.flatContents:C.negate?m(C.contents):C.contents;k&&s.push({indent:E,mode:P,doc:k})}break}case rt:a.push({indent:E,mode:P,doc:C.contents});break;case He:a.length>0&&s.push({indent:E,mode:P,doc:_o});break;case Fe:switch(P){case Ct:if(!C.hard){C.soft||(c.write(" "),i+=1);break}u=!0;case nt:if(a.length>0){s.push({indent:E,mode:P,doc:C},...a.reverse()),a.length=0;break}C.literal?(c.write(o),i=0,E.root&&(E.root.value&&c.write(E.root.value),i=E.root.length)):(c.trim(),c.write(o+E.value),i=E.length);break}break;case Ne:s.push({indent:E,mode:P,doc:C.contents});break;case qe:break;default:throw new Ot(C)}s.length===0&&a.length>0&&(s.push(...a.reverse()),a.length=0)}let{text:f,positions:y}=c.finish();if(y.length!==2)return{formatted:f};let[F,A]=y;return{formatted:f,cursorNodeStart:F,cursorNodeText:f.slice(F,A)}}var St=class extends Error{name="ArgExpansionBailout"};function pr(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function tm(e,t){let r=null,n=t;for(;n!==r;)r=n,n=$i(e,n),n=tr(e,n),n=at(e,n);return n=rr(e,n),n=pt(e,n),n!==!1&&J(e,n)}var Gt=tm;var me=(e,{originalText:t})=>{let r=S(e);if(Gt(t,r))return!0;let n=It(e);return n===r?!1:Gt(t,n)};var rm=B(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Cn=rm;var nu=B(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function nm({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Fn=nm;function cr(e){return Fn(e)||Cn(e)||nu(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function ou(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!kt(e,e.typeAnnotation)}function om(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let o=r[n];if(n===0)return e.type==="Identifier"&&e.name===o;if(n===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===o){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===o){e=e.object;continue}return!1}}function lr(e,t){return t.some(r=>om(e,r))}var im=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function sm(e){return lr(e,im)}function um(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}function Yo(e){return M(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}function am(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function Ut(e,t){if(e?.type!=="CallExpression"||e.optional)return!1;let r=se(e);if(r.length===1){if(Yo(e)&&Ut(t))return wt(r[0]);if(um(e.callee))return Yo(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||q(r[0]))&&sm(e.callee))return r[2]&&!Ee(r[2])?!1:(r.length===2?wt(r[1]):am(r[1])&&ee(r[1]).length<=1)||Yo(r[1]);return!1}function pm(e,t){let r=t-1;r=at(e,r,{backwards:!0}),r=pt(e,r,{backwards:!0}),r=at(e,r,{backwards:!0});let n=pt(e,r,{backwards:!0});return r!==n}var xn=pm;var Ho=()=>!0;function Xo(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function cm(e,t){let r=e.node,n=[Xo(e,t)],{printer:o,originalText:i,locStart:s,locEnd:u}=t;if(o.isBlockComment?.(r)){let f=" ";J(i,u(r))&&(J(i,s(r),{backwards:!0})?f=d:f=T),n.push(f)}else n.push(d);let c=pt(i,at(i,u(r)));return c!==!1&&J(i,c)&&n.push(d),n}function lm(e,t,r){let n=e.node,o=Xo(e,t),{printer:i,originalText:s,locStart:u}=t,a=i.isBlockComment?.(n);if(r?.hasLineSuffix&&!r?.isBlock||J(s,u(n),{backwards:!0})){let c=xn(s,u(n));return{doc:No([d,c?d:"",o]),isBlock:a,hasLineSuffix:!0}}return!a||r?.hasLineSuffix?{doc:[No([" ",o]),je],isBlock:a,hasLineSuffix:!0}:{doc:[" ",o],isBlock:a,hasLineSuffix:!1}}function W(e,t,r={}){let{indent:n=!1,marker:o,filter:i=Ho}=r,s=new Set(e.node?.comments?.filter(c=>!(c.leading||c.trailing||c.marker!==o||!i(c))));if(s.size===0)return"";let u=e.map(({node:c})=>s.has(c)?Xo(e,t):"","comments").filter(Boolean),a=L(d,u);return n?m([d,a]):a}function An(e,t,r){let n=t[Symbol.for("printedComments")],o=r?.filter??Ho,i=new Set(e.node?.comments?.filter(s=>!n?.has(s)&&s.leading&&o(s)));return i.size===0?"":e.map(({node:s})=>i.has(s)?cm(e,t):"","comments").filter(Boolean)}function iu(e,t,r){let n=e.node?.comments,o=new Set(n?.filter(f=>f.trailing)),i=t[Symbol.for("printedComments")],s=r?.filter??Ho,u=new Set(n?.filter(f=>o.has(f)&&!i?.has(f)&&s(f)));if(u.size===0)return"";let a=[],c;return e.each(({node:f})=>{o.has(f)&&(c=lm(e,t,c),u.has(f)&&a.push(c.doc))},"comments"),a}function Tn(e,t,r){return{leading:An(e,t,r),trailing:iu(e,t,r)}}function Q(e,t,r,n){let o=An(e,r,n),i=iu(e,r,n);return o||i?mn(t,s=>[o,s,i]):t}function gn(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function $(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":M(t)||N(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function hn(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var mm=B(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]),fm=e=>{let{node:t}=e;return mm(t)?e.parent.type!=="DeclareExportDeclaration"&&!t.implicitDeclare:t.declare};function ne(e){return fm(e)?"declare ":""}var Dm=B(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function mr({node:e}){return e.abstract||Dm(e)?"abstract ":""}function qt(e){return e.accessibility?e.accessibility+" ":""}var su=e=>e.type==="UnaryExpression"&&e.operator==="!";function ym(e){return x(e)||!su(e)?!1:(e=e.argument,e=su(e)?e.argument:e,e.type==="LogicalExpression")}function fr(e,t,r){let{node:n}=e,o=n.type==="WithStatement"?"object":"test",i=r(o);return ym(n[o])?i:p([m([D,i]),D])}function Mt(e,t,r){let{node:n}=e;return x(n,g.Dangling,r)?[m([D,W(e,t,{filter:r})]),x(n,g.Dangling|g.Line,r)?d:D]:""}function Ie(e,t="es5"){return gn(e,t)?O(","):""}function R(e){return e.semi?";":""}var Em=e=>e.mark!=="commentBeforeArrow";function Ke(e,t,r,n,o){let i=e.node,s=ee(i),u=o&&i.typeParameters?r("typeParameters"):"";if(s.length===0)return[u,"(",Mt(e,t,Em),")"];let{parent:a}=e,c=Ut(a),f=uu(i),y=[];if(Ni(e,(E,P)=>{let C=P===s.length-1;C&&i.rest&&y.push("..."),y.push(r()),!C&&(y.push(","),c||f?y.push(" "):me(s[P],t)?y.push(d,d):y.push(T))}),n&&!Cm(e)){if(ue(u)||ue(y))throw new St;return p([Jt(u),"(",Jt(y),")"])}let F=s.every(E=>!j(E.decorators));return f&&F?[u,"(",...y,")"]:c?[u,"(",...y,")"]:(pr(a)||ou(a)||a.type==="TypeAlias"||a.type==="UnionTypeAnnotation"||a.type==="IntersectionTypeAnnotation"||a.type==="FunctionTypeAnnotation"&&a.returnType===i)&&s.length===1&&s[0].name===null&&i.this!==s[0]&&s[0].typeAnnotation&&i.typeParameters===null&&cr(s[0].typeAnnotation)&&!i.rest?t.arrowParens==="always"||i.type==="HookTypeAnnotation"?["(",...y,")"]:y:[u,"(",m([D,...y]),!ji(i)&&e.root.type!=="NGRoot"?Ie(t,"all"):"",D,")"]}function uu(e){if(!e)return!1;let t=ee(e);if(t.length!==1)return!1;let[r]=t;return!x(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&Ye(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&Ye(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||ie(r.right)&&r.right.properties.length===0||Y(r.right)&&r.right.elements.length===0))}function dm(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function Bt(e,t){let r=dm(e);if(!r)return!1;let n=e.typeParameters?.params;if(n){if(n.length>1)return!1;if(n.length===1){let o=n[0];if(o.constraint||o.default)return!1}}return ee(e).length===1&&(Ye(r)||ue(t))}function Cm(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function au(e){let t=ee(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function Yt(e,t){return(t==="params"||t==="this"||t==="rest")&&uu(e)}var Fm=/^[\$A-Z_a-z\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\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\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-\uA7AE\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][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\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\u08B6-\u08BD\u08D4-\u08E1\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\u0C80-\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\u0D54-\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\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-\u19D9\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\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\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\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\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-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\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]*$/,xm=e=>Fm.test(e),pu=xm;function Am(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var _t=Am;var cu=Object.freeze({character:"'",codePoint:39}),lu=Object.freeze({character:'"',codePoint:34}),Tm=Object.freeze({preferred:cu,alternate:lu}),gm=Object.freeze({preferred:lu,alternate:cu});function Sn(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?Tm:gm,{length:o}=e,i=0,s=0;for(let u=0;u<o;u++){let a=e.charCodeAt(u);a===r.codePoint?i++:a===n.codePoint&&s++}return(i>s?n:r).character}var hm=/\\(["'\\])|(["'])/g;function Sm(e,t){let r=t==='"'?"'":'"',n=V(0,e,hm,(o,i,s)=>i?i===r?r:o:s===t?"\\"+s:s);return t+n+t}var fu=Sm;function Bm(e,t){Re(/^(?<quote>["']).*\k<quote>$/s.test(e));let r=e.slice(1,-1),n;return t.parser==="json"||t.parser==="jsonc"||t.parser==="json-stringify"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?n='"':t.__isInHtmlAttribute?n="'":n=Sn(r,t.singleQuote),e.charAt(0)===n?e:fu(r,n)}var ot=Bm;var Du=e=>e.type==="TSEnumMember",yu=e=>Du(e)?"id":"key",vr=e=>e[yu(e)],Eu=e=>!Du(e)&&e.computed;function du(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}var bm=({parser:e})=>e==="typescript"||e==="babel-ts"||e==="oxc-ts"||e==="yuku-ts";function Pm(e,t){let r=vr(e);if(r.type==="Identifier")return!0;if(!Ee(r)||bm(t))return!1;let n=_t(ye(r));return String(r.value)===n&&du(n)}function Cu(e,t){let{parser:r}=t;if(r==="json"||r==="jsonc")return!1;let n=vr(e);if(!q(n))return!1;let{value:o}=n;return ot(ye(n),t).slice(1,-1)!==o||e.type==="TSMethodSignature"&&o==="new"?!1:!!(!(r==="babel-ts"&&e.type==="ClassProperty"||(r==="typescript"||r==="oxc-ts"||r==="yuku-ts")&&e.type==="PropertyDefinition")&&pu(o)||(r==="babel"||r==="acorn"||r==="oxc"||r==="yuku"||r==="espree"||r==="meriyah"||r==="__babel_estree")&&e.type!=="ImportAttribute"&&du(o)&&String(Number(o))===o)}var Im=new WeakMap;function Fu(e,t){return Z(Im,e.parent,()=>e.siblings.some(r=>{if(Eu(r))return!1;let n=vr(r);return q(n)&&!Cu(r,t)}))}function km(e,t){return(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&Fu(e,t))&&Pm(e.node,t)}function wm(e,t){return(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Fu(e,t))&&Cu(e.node,t)}function ve(e,t,r){let{node:n}=e,o=yu(n);if(Eu(n))return["[",r(o),"]"];if(km(e,t)){let i=vr(n),s=ot(JSON.stringify(i.type==="Identifier"?i.name:String(i.value)),t);return e.call(()=>Q(e,s,t),o)}if(wm(e,t)){let{value:i}=vr(n),s=/^\d/.test(i)?_t(i):i;return e.call(()=>Q(e,s,t),o)}return r(o)}var Lm=B(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),Om=B(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function Ko(e){return e.key==="elementTypes"&&Zt(e.parent)&&e.parent.elementTypes.length>1}function Ht(e){let{types:t}=e;if(t.some(n=>x(n)))return!1;let r=t.find(n=>Om(n));return r?t.every(n=>n===r||Lm(n)):!1}function Bn(e){let{key:t,node:r,parent:n}=e;return!(Ht(r)||t==="types"&&pe(n)||t==="types"&&At(n)||Ko(e))}function bn(e,t,r,n){let{node:o}=e;if(Ht(o))return L(" | ",e.map(r,"types"));let i=p(e.map(({isFirst:s})=>{let u=s?O("| "):[T,"| "],a=r();return x(e.node,g.Leading)?[u,Se(2,Q(e,a,t))]:[u,Q(e,Se(2,a),t)]},"types"));return Bn(e)&&(i=Q(e,i,t)),oe(e,t)?p([m([D,i]),D]):Ko(e)?p([m([O(["(",D]),i]),D,O(")")]):n?.assignmentLayout==="break-after-operator"||!Mm(e)?i:p(m([D,i]))}function Mm(e){let{key:t,parent:r}=e;return!(t==="typeAnnotation"&&r.type==="TSTypeAssertion"||t==="elementTypes"&&Zt(r)||(t==="trueType"||t==="falseType")&&Qe(r)||t==="params"&&Xi(r)||t==="typeAnnotation"&&r.type==="FunctionTypeParam"&&!r.name&&e.grandparent.this!==r||e.match(void 0,(n,o)=>o==="typeAnnotation"&&n.type==="FunctionTypeParam",(n,o)=>o==="params"&&n.type==="FunctionTypeAnnotation",(n,o)=>o==="value"&&n.type==="ObjectTypeProperty"&&pr(n)))}function xu(e){return cr(e)||Ye(e)?!0:pe(e)?Ht(e):!1}var _m=new WeakSet;function G(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let o=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let i=e.call(Au,r);(i==="=>"||i===":"&&x(n,g.Leading))&&(o=!0),_m.add(n)}return o?[" ",t(r)]:t(r)}var Au=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function Pn(e,t,r){let n=Au(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}var Nm=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&$e(r));function Dr(e,t,r,n){if(Nm(e))return In(e,t,r);let{node:o}=e,i=!1;if(o.type==="FunctionExpression"&&n?.expandLastArg){let{parent:y}=e;M(y)&&(se(y).length>1||ee(o).every(F=>F.type==="Identifier"&&!F.typeAnnotation))&&(i=!0)}let s=Ke(e,t,r,i),u=wn(e,r),a=Bt(o,u),f=o.type==="HookDeclaration"?"hook":"function";return[ne(e),o.async?"async ":"",f,o.generator?"*":""," ",o.id?r("id"):"",r("typeParameters"),p([a?p(s):s,u]),o.body?" ":"",r("body"),o.declare||!o.body?R(t):""]}function Rr(e,t,r){let{node:n}=e,{kind:o}=n,i=n.value||n,s=[];return!o||o==="init"||o==="method"||o==="constructor"?i.async&&s.push("async "):(Re(o==="get"||o==="set"),s.push(o," ")),i.generator&&s.push("*"),s.push(ve(e,t,r),n.optional?"?":"",n===i?In(e,t,r):r("value")),s}function In(e,t,r){let{node:n}=e,o=Ke(e,t,r),i=wn(e,r),s=au(n),u=Bt(n,i),a=[r("typeParameters"),p([s?p(o,{shouldBreak:!0}):u?p(o):o,i])];return n.body?a.push(" ",r("body")):a.push(R(t)),a}function jm(e){let t=ee(e);return t.length===1&&!e.typeParameters&&!x(e,g.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!x(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function kn(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return jm(r)}return!1}function wn(e,t){let{node:r}=e,o=[G(e,t,"returnType")];return r.predicate&&o.push(t("predicate")),o}function yr(e,t){if(t.semi)return!1;let{node:r}=e;if(r.type!=="ExpressionStatement"||Qo(e,t)||Zo(e,t)||zo(e,t))return!1;let{key:n,parent:o}=e;return!!((n==="body"&&(o.type==="Program"||o.type==="BlockStatement"||o.type==="StaticBlock"||o.type==="TSModuleBlock")||n==="consequent"&&o.type==="SwitchCase")&&e.call(()=>Tu(e,t),"expression"))}function Tu(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"TSTypeAssertion":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!kn(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:o}=r;if(n&&(o==="+"||o==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(H(r))return!0}return oe(e,t)?!0:sr(r)?e.call(()=>Tu(e,t),...an(r)):!1}var $o=({node:e,parent:t})=>e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function Qo(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&$o(e)&&H(e.node.expression)}function zo(e,t){return t.__isHtmlInlineEventHandler&&$o(e)}function Zo(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&$o(e)}function Ln(e,t){if(!yr(e,t))return!1;let r=w(0,re(e.node,g.Leading),-1);return!!(r&&nr(r))}var vm=B(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Rm(e,t){let{key:r,parent:n}=e;if(r==="types"&&pe(n)||r==="argument"&&n.type==="JSXSpreadAttribute"||r==="expression"&&n.type==="JSXSpreadChild"||r==="superClass"&&(n.type==="ClassDeclaration"||n.type==="ClassExpression")||(r==="id"||r==="typeParameters")&&vm(n)||r==="patterns"&&n.type==="MatchOrPattern"||tn(e))return!0;let{node:o}=e;return Lt(o)?!1:o.type==="ExpressionStatement"?Ln(e,t):pe(o)?Bn(e):!!H(o)}var gu=Rm;function Wm(e,t,r=0){let n=0;for(let o=r;o<e.length;++o)e[o]===" "?n=n+t-n%t:n++;return n}var hu=Wm;function Jm(e,t){let r=e.lastIndexOf(`
|
|
13
13
|
`);return r===-1?0:hu(e.slice(r+1).match(/^[\t ]*/)[0],t)}var Su=Jm;function On(e,t,r){if(Hm(e)){let i=Gm(e,t,r);if(i)return i}let n=Nt(e,t,r),o=e.map(({isLast:i,index:s})=>[r(),i?"":n[s]],"quasis");return[Be,"`",...o,"`"]}function bu(e,t,r){let n=r("quasi"),{node:o}=e,i="",s=re(o.quasi,g.Leading)[0];return s&&(te(t.originalText,S(o.typeArguments??o.tag),b(s))?i=D:i=" "),Et(n.label&&{tagged:!0,...n.label},[r("tag"),r("typeArguments"),i,Be,n])}function Gm(e,t,r){let{node:n}=e,o=n.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(o.length>1||o.some(i=>i.length>0)){t.__inJestEach=!0;let i=Nt(e,t,r);t.__inJestEach=!1;let s=i.map(y=>qo(y,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted),u=[{hasLineBreak:!1,cells:[]}];for(let y=1;y<n.quasis.length;y++){let F=w(0,u,-1),A=s[y-1];F.cells.push(A),A.includes(`
|
|
14
14
|
`)&&(F.hasLineBreak=!0),n.quasis[y].value.raw.includes(`
|
|
15
15
|
`)&&u.push({hasLineBreak:!1,cells:[]})}let a=Math.max(o.length,...u.map(y=>y.cells.length)),c=Array.from({length:a},()=>0),f=[{cells:o},...u.filter(y=>y.cells.length>0)];for(let y of f)if(!y.hasLineBreak)for(let[F,A]of y.cells.entries())c[F]=Math.max(c[F],dt(A));return[Be,"`",m([d,L(d,f.map(y=>L(" | ",y.cells.map((F,A)=>y.hasLineBreak?F:F+" ".repeat(c[A]-dt(F))))))]),d,"`"]}}var Um=new WeakMap;function qm(e,t){let{parent:r,index:n}=e;return Z(Um,r,i=>{let{tabWidth:s}=t,u=0;return i.quasis.map(c=>{let f=c.value.raw,y=f.includes(`
|