pagepilot-visual-editor 1.0.41 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/babel-BQODqR2n.js +7218 -0
- package/dist/babel-DWji6wpD.cjs +16 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/VariableLinkHint.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/sanitizeAgainstSchema.d.ts +5 -3
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/variableEditActions.d.ts +2 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/index.d.ts +1 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/useClearHoverOnCanvasScroll.d.ts +1 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/useDragSelection.d.ts +1 -2
- package/dist/editor-sample/App/hooks/page/useSaveHandler.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/DividerButton.styles.d.ts +4 -0
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.styles.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/TuneMenu.d.ts +4 -2
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/TuneMenu.styles.d.ts +1 -5
- package/dist/editor-sample/documents/editor/canvasScrollActivity.d.ts +5 -0
- package/dist/editor-sample/documents/editor/core.d.ts +199 -0
- package/dist/editor-sample/documents/editor/templateVariables.d.ts +6 -0
- package/dist/editor-sample/utils/rafThrottle.d.ts +4 -0
- package/dist/email-builder-core/blocks/EmailLayout/layoutType.d.ts +5 -0
- package/dist/estree-D0rbR2Tn.js +4824 -0
- package/dist/estree-DyF2pmOB.cjs +44 -0
- package/dist/{index-xCACDRV-.js → index-BUtnK58L.js} +1 -1
- package/dist/index-C-4OVLjk.cjs +1493 -0
- package/dist/{index-BVRFBf4A.cjs → index-DEnWBBqj.cjs} +1 -1
- package/dist/index-DvEcR48I.js +106322 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/render.cjs +70 -70
- package/dist/render.js +2035 -2029
- package/dist/{xlsx-DW2XG0Vs.cjs → xlsx-BsoVkcdE.cjs} +1 -1
- package/dist/{xlsx-QDrfGy9O.js → xlsx-D_Hwvvx2.js} +1 -1
- package/package.json +1 -1
- package/dist/index-D6uaGE9o.cjs +0 -1557
- package/dist/index-kjXqGRCj.js +0 -166284
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";var hi=Object.defineProperty;var zr=e=>{throw TypeError(e)};var Ti=(e,t,n)=>t in e?hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var on=(e,t,n)=>Ti(e,typeof t!="symbol"?t+"":t,n),Nn=(e,t,n)=>t.has(e)||zr("Cannot "+n);var X=(e,t,n)=>(Nn(e,t,"read from private field"),n?n.call(e):t.get(e)),Le=(e,t,n)=>t.has(e)?zr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),mt=(e,t,n,r)=>(Nn(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),sn=(e,t,n)=>(Nn(e,t,"access private method"),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Si=Object.defineProperty,ur=(e,t)=>{for(var n in t)Si(e,n,{get:t[n],enumerable:!0})},Ju={};ur(Ju,{languages:()=>Ei,options:()=>mi,printers:()=>Fi});var bi=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["bun","chakra","d8","deno","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["bun","chakra","d8","deno","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",aliases:["typescriptreact"],codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],qu={};ur(qu,{estree:()=>yi});function Bi(e){return Array.isArray(e)&&e.length>0}var R=Bi,vi=()=>{},Pi=vi;function v(e){let t=new Set(e);return n=>t.has(n==null?void 0:n.type)}var ar=(e,t)=>(n,r,...u)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,u);function ki(e){return this[e<0?this.length+e:e]}var wi=ar("at",function(){if(Array.isArray(this)||typeof this=="string")return ki}),L=wi;function Ce(e,t,n){if(!e.has(t)){let r=n(t);e.set(t,r)}return e.get(t)}function Ii(e){let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),t}var Ni=new WeakMap;function ie(e){return Ce(Ni,e,Ii)}function Mi(e,t){let{node:n}=e,r=0,u=()=>t(e,r++);n.this&&e.call(u,"this"),e.each(u,"params"),n.rest&&e.call(u,"rest")}function ji(e){var n;if(e.rest)return!0;let t=ie(e);return((n=L(0,t,-1))==null?void 0:n.type)==="RestElement"}var Li=e=>(e==null?void 0:e.type)==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const";function or({node:e,parent:t}){return(e==null?void 0:e.type)!=="EmptyStatement"?!1:t.type==="IfStatement"?t.consequent===e||t.alternate===e:t.type==="DoWhileStatement"||t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"||t.type==="LabeledStatement"||t.type==="WithStatement"||t.type==="WhileStatement"?t.body===e:!1}function bt(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}var Ru=e=>Number.isSafeInteger(e)&&e>=0;function hn(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function k(e){var r,u,a;let t=((r=e.range)==null?void 0:r[0])??e.start,n=(a=((u=e.declaration)==null?void 0:u.decorators)??e.decorators)==null?void 0:a[0];return n?Math.min(k(n),t):t}var Oi=5,Ji=8,qi=8,Qr=e=>t=>t.label?P(t.label):k(t)+e,Ri=e=>e.__contentEnd??hn(e),Xu=["ExpressionStatement","Directive","ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ReturnStatement","ThrowStatement","DoWhileStatement"],Xi=new Map([["BreakStatement",Qr(Oi)],["ContinueStatement",Qr(Ji)],["DebuggerStatement",e=>k(e)+qi],["VariableDeclaration",e=>P(L(0,e.declarations,-1))],...Xu.map(e=>[e,Ri])]),Wi=v(Xu),Xn=e=>{if(Wi(e)&&e.__contentEnd)return!0;let{type:t}=e;return t==="BreakStatement"||t==="ContinueStatement"||t==="DebuggerStatement"||t==="VariableDeclaration"?!0:t==="IfStatement"?Xn(e.alternate??e.consequent):t==="ForInStatement"||t==="ForOfStatement"||t==="ForStatement"||t==="LabeledStatement"||t==="WithStatement"||t==="WhileStatement"?Xn(e.body):!1};function P(e){var n;let{type:t}=e;return t==="IfStatement"?P(e.alternate??e.consequent):t==="ForInStatement"||t==="ForOfStatement"||t==="ForStatement"||t==="LabeledStatement"||t==="WithStatement"||t==="WhileStatement"?P(e.body):((n=Xi.get(t))==null?void 0:n(e))??hn(e)}function Tn(e,t){let n=k(e);return Ru(n)&&n===k(t)}function _i(e,t){let n=P(e);return Ru(n)&&n===P(t)}function $i(e,t){return Tn(e,t)&&_i(e,t)}function De(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function Ui(e){return e.type==="BigIntLiteral"||e.type==="Literal"&&!!e.bigint}function Gi(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function Me(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Wu(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}function z(e){return(e==null?void 0:e.type)==="StringLiteral"||(e==null?void 0:e.type)==="Literal"&&typeof e.value=="string"}var be=v(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),Vi=v(["SatisfiesExpression","TSSatisfiesExpression"]),ye=v(["TSUnionType","UnionTypeAnnotation"]),Qt=v(["TSIntersectionType","IntersectionTypeAnnotation"]),ir=v(["TupleTypeAnnotation","TSTupleType"]),Ve=v(["TSConditionalType","ConditionalTypeAnnotation"]),_u=v(["TSTypeAliasDeclaration","TypeAlias"]),xt=v(["ReturnStatement","ThrowStatement"]),Ki=v(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),ne=v(["ArrayExpression"]),Be=v(["ObjectExpression"]),sr=v(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),Ke=v(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Xt=v(["FunctionExpression","ArrowFunctionExpression"]),Z=v(["JSXElement","JSXFragment"]),Xe=v(["BinaryExpression","LogicalExpression","NGPipeExpression"]),J=v(["CallExpression","OptionalCallExpression"]),q=v(["MemberExpression","OptionalMemberExpression"]),Wt=v(["CallExpression","OptionalCallExpression","NewExpression"]),Ct=v(["CallExpression","OptionalCallExpression","NewExpression","ImportExpression"]),it=v(["ChainExpression","TSNonNullExpression"]),Hi=v(["TSArrayType","ArrayTypeAnnotation"]),zi=v(["TSTypeParameterInstantiation","TypeParameterInstantiation"]);function Wn(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:n}=e;return t.type!==n.type||!$i(t,n)?!1:z(t)?t.value===n.value&&De(t)===De(n):t.type==="Identifier"?t.name===n.name:!1}var Qi=v(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),Yi=(e,[t])=>(t==null?void 0:t.type)==="ComponentParameter"&&t.shorthand&&t.name===e&&t.local!==t.name||(t==null?void 0:t.type)==="MatchObjectPatternProperty"&&t.shorthand&&t.key===e||(t==null?void 0:t.type)==="ObjectProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||(t==null?void 0:t.type)==="Property"&&t.shorthand&&t.key===e&&!bt(t)&&t.value!==t.key||(t==null?void 0:t.type)==="ImportSpecifier"&&Wn(t)&&t.imported===e&&t.imported!==t.local||(t==null?void 0:t.type)==="ExportSpecifier"&&Wn(t)&&t.local===e&&t.local!==t.exported,Zi=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&ie(e).length===0&&!e.returnType&&!R(e.typeParameters)&&e.body),Yr=(e,[t])=>(t==null?void 0:t.typeAnnotation)===e&&Li(t),es=(e,[t,...n])=>Yr(e,[t])||(t==null?void 0:t.typeName)===e&&Yr(t,n);function ts(e,t){return Qi(e)||Yi(e,t)||Zi(e,t)?!1:e.type==="EmptyStatement"?or({node:e,parent:t[0]}):!(es(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var ns=ts;function rs(e){let t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}function pr(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=rs(e)}function K(e,t){t.leading=!0,t.trailing=!1,pr(e,t)}function fe(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),pr(e,t)}function W(e,t){t.leading=!1,t.trailing=!0,pr(e,t)}function lr(e){return(t,n,r)=>{if(n===!1)return!1;let u=!!(r!=null&&r.backwards),{length:a}=t,o=n;for(;o>=0&&o<a;){let i=t.charAt(o);if(e instanceof RegExp){if(!e.test(i))return o}else if(!e.includes(i))return o;u?o--:o++}return o===-1||o===a?o:!1}}var ht=lr(" "),us=lr(",; "),as=lr(/[^\n\r]/);function os(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}var cr=os,Zr=e=>e===`
|
|
2
|
+
`||e==="\r"||e==="\u2028"||e==="\u2029";function is(e,t,n){if(t===!1)return!1;let r=!!(n!=null&&n.backwards),u=e.charAt(t);if(r){if(e.charAt(t-1)==="\r"&&u===`
|
|
3
|
+
`)return t-2;if(Zr(u))return t-1}else{if(u==="\r"&&e.charAt(t+1)===`
|
|
4
|
+
`)return t+2;if(Zr(u))return t+1}return t}var Tt=is;function ss(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?as(e,t):t}var Dr=ss;function ps(e,t){let n=null,r=t;for(;r!==n;)n=r,r=ht(e,r),r=cr(e,r),r=Dr(e,r),r=Tt(e,r);return r}var Sn=ps;function ls(e,t){let n=Sn(e,t);return n===!1?"":e.charAt(n)}var qe=ls;function cs(e,t,n={}){let r=ht(e,n.backwards?t-1:t,n),u=Tt(e,r,n);return r!==u}var H=cs;function Ds(e,t,n){for(let r=t;r<n;++r)if(e.charAt(r)===`
|
|
5
|
+
`)return!0;return!1}var se=Ds,ys=new WeakMap;function fs(e){let t;return e.type==="ImportExpression"||e.type==="TSImportType"?(t=[e.source],e.options&&t.push(e.options)):e.type==="TSExternalModuleReference"?t=[e.expression]:t=e.arguments,t}function he(e){return Ce(ys,e,fs)}function _n(e,t){let{node:n}=e;n.type==="ImportExpression"||n.type==="TSImportType"?(e.call(()=>t(e,0),"source"),n.options&&e.call(()=>t(e,1),"options")):n.type==="TSExternalModuleReference"?e.call(()=>t(e,0),"expression"):e.each(t,"arguments")}function eu(e,t){if(e.type==="ImportExpression"||e.type==="TSImportType"){if(t===0||t===(e.options?-2:-1))return["source"];if(e.options&&(t===1||t===-1))return["options"];throw new RangeError("Invalid argument index")}if(e.type==="TSExternalModuleReference"){if(t===0||t===-1)return["expression"]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t<e.arguments.length)return["arguments",t];throw new RangeError("Invalid argument index")}var ds=Symbol.for("comments"),ms=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Fs=ar("replaceAll",function(){if(typeof this=="string")return ms}),Y=Fs;function Es(e){return Y(0,e,/[^\n]/g," ")}var As=Es;function gs(e,t){for(let n of t){let r=k(n),u=P(n);e=e.slice(0,r)+As(e.slice(r,u))+e.slice(u)}return e}var xs=new WeakMap;function Te(e){let t=e[ds];return Ce(xs,t,n=>gs(e.originalText,n))}function $u(e,t){let n=P(e)-1;if(t.originalText[n]===")")return n}function Cs(e,t){if($u(e,t)===void 0)return;let n=Te(t),r=P(e.typeArguments??e.callee),u=n.indexOf("(",r);if(u!==-1)return u}function hs(e,t,n){let r=$u(e,n);if(r===void 0||P(t)>r)return!1;let u=Cs(e,n);return u===void 0?!1:k(t)>u}var ve=v(["Block","CommentBlock","MultiLine"]),st=v(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]);function ze(e){return(e==null?void 0:e.type)==="ObjectProperty"||(e==null?void 0:e.type)==="Property"&&!bt(e)}function ut(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}var Ts=new WeakMap;function yr(e){return Ce(Ts,e,t=>ve(t)&&t.value[0]==="*"&&/@(?:type|satisfies)\b/.test(t.value))}function fr({comment:e,enclosingNode:t,followingNode:n,options:r}){if(((t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement"||(t==null?void 0:t.type)==="ForStatement")&&n&&n===t.body){let u=Te(r).lastIndexOf(")",k(n));if(k(e)>u)return K(n,e),!0}return!1}var Uu=(e,t)=>ve(e)&&!se(t,k(e),P(e)),dr=(e,t)=>st(e)||Uu(e,t);function $n(e,t){e.type==="BlockStatement"?Yt(e,t):K(e,t)}function Yt(e,t){let n=(e.body||e.properties).find(({type:r})=>r!=="EmptyStatement");n?K(n,t):fe(e,t)}function mr({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}){return(n==null?void 0:n.type)!=="IfStatement"||!r?!1:qe(u,P(e))===")"?(W(t,e),!0):r===n.consequent?(K(r,e),!0):t===n.consequent&&r===n.alternate?Ss({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}):!1}function Ss({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}){let o=Te(a).indexOf("else",P(n.consequent));return k(e)>=o?(K(r,e),!0):t.type!=="BlockStatement"&&dr(e,u)&&!se(u,P(t),k(e))?(W(t,e),!0):(fe(n,e),!0)}function Fr({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return((n==null?void 0:n.type)==="WhileStatement"||(n==null?void 0:n.type)==="WithStatement")&&r?qe(u,P(e))===")"?(W(t,e),!0):n.body===r?(K(r,e),!0):!1:!1}function Gu(e,{comment:t,text:n,options:r}){if(ye(e)&&Uu(t,n)&&!ut(t)){let u=Te(r).slice(P(t),k(e));return/^[ \t]*$/.test(u)}return!1}function tu(e,t){return K(Gu(e,t)?e.types[0]:e,t.comment),!0}function bs(e){return[Er,na,Ku,Yu,ks,mr,Fr,Vu,Hu,fr,Os,Js,Ar,ea,Rs,zu,Zu,ws,Vs,gr,xr,ua].some(t=>t(e))}function Bs(e){return[Er,Ps,Yu,Ku,ea,mr,Fr,Vu,Hu,fr,Zu,Ls,qs,Ar,ta,Us,Gs,Ks,gr,Qs,ra,Hs,xr].some(t=>t(e))}function vs(e){return[Er,na,mr,Fr,fr,zu,Ar,ta,gr,Ms,Ns,_s,ra,xr,ua].some(t=>t(e))}function Ps({comment:e,followingNode:t}){return t&&yr(e)?(K(t,e),!0):!1}function Vu({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return(n==null?void 0:n.type)!=="TryStatement"&&(n==null?void 0:n.type)!=="CatchClause"||!r?!1:n.type==="CatchClause"&&t?(W(t,e),!0):r.type==="BlockStatement"?(Yt(r,e),!0):r.type==="TryStatement"?($n(r.finalizer,e),!0):r.type==="CatchClause"?($n(r.body,e),!0):!1}function ks({comment:e,enclosingNode:t,followingNode:n}){return q(t)&&(n==null?void 0:n.type)==="Identifier"?(K(t,e),!0):!1}function ws({comment:e,enclosingNode:t,followingNode:n,options:r}){return!r.experimentalTernaries||!((t==null?void 0:t.type)==="ConditionalExpression"||Ve(t))?!1:(n==null?void 0:n.type)==="ConditionalExpression"||Ve(n)?(fe(t,e),!0):!1}function Ku({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u,options:a}){let o=t&&!se(u,P(t),k(e));return(!t||!o)&&((n==null?void 0:n.type)==="ConditionalExpression"||Ve(n))&&r?a.experimentalTernaries&&n.alternate===r&&!(ve(e)&&!se(a.originalText,k(e),P(e)))?(fe(n,e),!0):(K(r,e),!0):!1}var Is=v(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Hu({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){if(Is(n)){let{decorators:u}=n;if(R(u)&&(r==null?void 0:r.type)!=="Decorator")return W(L(0,u,-1),e),!0;if(n.body&&r===n.body)return Yt(n.body,e),!0;if(r){let{superClass:a}=n;if(a&&r===a&&t&&(t===n.id||t===n.typeParameters))return W(t,e),!0;for(let o of["implements","extends","mixins"])if(n[o]&&r===n[o][0])return t&&(t===n.id||t===n.typeParameters||t===a)?W(t,e):fe(n,e,o),!0}}return!1}var nu=v(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function zu({placement:e,comment:t,precedingNode:n,enclosingNode:r,followingNode:u,text:a}){return r&&n&&qe(a,P(t))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&n.type==="Identifier"&&r.key===n&&qe(a,P(n))!==":"?(W(n,t),!0):nu(r)&&!u&&e==="remaining"?(W(qe(a,P(t))==="("?n:r,t),!0):(n==null?void 0:n.type)==="Decorator"&&nu(r)&&(st(t)||e==="ownLine")?(W(n,t),!0):!1}var Qu=v(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function Ns({comment:e,precedingNode:t,enclosingNode:n,text:r}){return qe(r,P(e))!=="("?!1:t&&Qu(n)?(W(t,e),!0):!1}function Ms({comment:e,enclosingNode:t,text:n}){if((t==null?void 0:t.type)!=="ArrowFunctionExpression")return!1;let r=Sn(n,P(e));return r!==!1&&n.slice(r,r+2)==="=>"?(fe(t,e,"commentBeforeArrow"),!0):!1}function ru(e,t,n){let r=k(t),u=P(e);if(r>=u)return!1;let a=P(t),o=k(e);if(a<=o)return!1;let i=Te(n);return i.slice(0,k(t)).trimEnd().endsWith("(")&&i.slice(P(t)).trimStart().startsWith(")")}var js=v(["ComponentDeclaration","DeclareComponent","ComponentTypeAnnotation"]);function Er({comment:e,enclosingNode:t,options:n}){if(!t)return!1;if(Ct(t)&&he(t).length===0&&ru(t,e,n))return fe(t,e),!0;let r=aa(t)||js(t)||t.type==="HookTypeAnnotation"?t:t.type==="MethodDefinition"||t.type==="TSAbstractMethodDefinition"||t.type==="Property"&&bt(t)?t.value:void 0;return r&&ie(r).length===0&&ru(r,e,n)?(fe(r,e),!0):!1}function Yu({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return(t==null?void 0:t.type)==="FunctionTypeParam"&&(n==null?void 0:n.type)==="FunctionTypeAnnotation"&&(r==null?void 0:r.type)!=="FunctionTypeParam"||(t==null?void 0:t.type)==="ComponentTypeParameter"&&((n==null?void 0:n.type)==="DeclareComponent"||(n==null?void 0:n.type)==="ComponentTypeAnnotation")&&(r==null?void 0:r.type)!=="ComponentTypeParameter"||((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern"||(t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern"||(t==null?void 0:t.type)==="RestElement"||(t==null?void 0:t.type)==="TSParameterProperty")&&(aa(n)||((n==null?void 0:n.type)==="TSAbstractMethodDefinition"||(n==null?void 0:n.type)==="MethodDefinition")&&n.value.type==="TSEmptyBodyFunctionExpression")&&qe(u,P(e))===")"||((t==null?void 0:t.type)==="ComponentParameter"||(t==null?void 0:t.type)==="RestElement")&&((n==null?void 0:n.type)==="ComponentDeclaration"||(n==null?void 0:n.type)==="DeclareComponent")&&qe(u,P(e))===")"?(W(t,e),!0):!ve(e)&&(r==null?void 0:r.type)==="BlockStatement"&&Qu(n)&&(n.type==="MethodDefinition"?n.value.body:n.body)===r&&Sn(u,P(e))===k(r)?(Yt(r,e),!0):!1}function Zu({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(K(t,e),!0):!1}function Ls({comment:e,precedingNode:t,enclosingNode:n,options:r}){return Wt(n)&&n.callee===t&&n.arguments.length>0&&hs(n,e,r)?(K(n.arguments[0],e),!0):!1}function Os({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return ye(n)?(ut(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(W(t,e),!0):!1):(ye(r)&&ut(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function Js({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return n&&n.type==="MatchOrPattern"?(ut(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?(W(t,e),!0):!1):(r&&r.type==="MatchOrPattern"&&ut(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function qs({comment:e,enclosingNode:t}){return ze(t)?(K(t,e),!0):!1}function Ar({comment:e,enclosingNode:t,ast:n,isLastComment:r}){var u;return((u=n==null?void 0:n.body)==null?void 0:u.length)===0?(r?fe(n,e):K(n,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!R(t.directives)?(r?fe(t,e):K(t,e),!0):!1}function ea({comment:e,precedingNode:t,enclosingNode:n,text:r}){if((n==null?void 0:n.type)==="ImportSpecifier"||(n==null?void 0:n.type)==="ExportSpecifier")return K(n,e),!0;let u=(t==null?void 0:t.type)==="ImportSpecifier"&&(n==null?void 0:n.type)==="ImportDeclaration",a=(t==null?void 0:t.type)==="ExportSpecifier"&&(n==null?void 0:n.type)==="ExportNamedDeclaration";return(u||a)&&H(r,P(e))?(W(t,e),!0):!1}function Rs({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(K(t,e),!0):!1}var Xs=v(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),Ws=v(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function ta(e){let{comment:t,enclosingNode:n,followingNode:r,options:u,placement:a}=e;if(Xs(n)&&r&&a==="endOfLine"&&(Ws(r)||ve(t)))return tu(r,e);if(_u(n)&&r){let o=n.id,i=Te(u).indexOf("=",P(o));if(k(t)>=i)return tu(r,e)}return!1}function _s({comment:e,enclosingNode:t,precedingNode:n,followingNode:r,text:u}){return!r&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&(!n||n!==t.returnType)&&qe(u,P(e))===";"?(W(t,e),!0):!1}function na({comment:e,enclosingNode:t,followingNode:n}){if(ut(e)&&(t==null?void 0:t.type)==="TSMappedType"&&n===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function $s(e,t,n){let r=Te(n).indexOf("[",k(e));return P(t)<r}function gr({comment:e,enclosingNode:t,options:n}){if((t==null?void 0:t.type)==="TSMappedType"&&$s(t,e,n))return fe(t,e),!0}function Us({comment:e,enclosingNode:t,followingNode:n}){return!t||t.type!=="SwitchCase"||t.test||!n||n!==t.consequent[0]?!1:(n.type==="BlockStatement"&&st(e)?Yt(n,e):fe(t,e),!0)}function Gs({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return ye(t)&&(Hi(n)&&!r||Qt(n)||ye(n))?(W(L(0,t.types,-1),e),!0):!1}function Vs({comment:e,enclosingNode:t,precedingNode:n,followingNode:r}){if(((t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern")&&(r==null?void 0:r.type)==="TSTypeAnnotation")return n?W(n,e):fe(t,e),!0}function Ks({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return!r&&(n==null?void 0:n.type)==="UnaryExpression"&&((t==null?void 0:t.type)==="LogicalExpression"||(t==null?void 0:t.type)==="BinaryExpression")&&se(u,k(n.argument),k(t.right))&&dr(e,u)&&!se(u,k(t.right),k(e))?(W(t.right,e),!0):!1}function Hs({enclosingNode:e,followingNode:t,comment:n}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(ye(t)||Qt(t)))return K(t,n),!0}function xr({enclosingNode:e,precedingNode:t,followingNode:n,comment:r,text:u}){if(be(e)&&t===e.expression&&!dr(r,u))return n?K(n,r):W(e,r),!0}function zs(e,t,n){let r=Te(n).lastIndexOf("=>",k(t.body));return P(e)<r}function Qs({comment:e,enclosingNode:t,followingNode:n,precedingNode:r,options:u}){return(t==null?void 0:t.type)!=="ArrowFunctionExpression"||!n||!r||zs(e,t,u)?!1:($n(n,e),!0)}function ra({comment:e,enclosingNode:t,precedingNode:n,followingNode:r}){if(!r&&t&&n){if(t.type==="ExpressionStatement"&&t.expression===n)return W(t,e),!0;let u=n.type==="SequenceExpression",a=n.type==="AssignmentExpression";if((u||a)&&(t.type==="ArrowFunctionExpression"&&t.body===n||t.type==="VariableDeclarator"&&t.init===n||t.type==="ReturnStatement"&&t.argument===n||t.type==="AssignmentExpression"&&t.right===n))return W(u?L(0,n.expressions,-1):n.right,e),!0}return!1}function ua(e){let{followingNode:t,comment:n}=e;return Gu(t,e)?(K(t.types[0],n),!0):!1}var aa=v(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod","HookDeclaration"]),Ys={endOfLine:Bs,ownLine:bs,remaining:vs},Zs=Ys;function ep(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=Y(0,e,/[\s(]/g,""),e===""||e==="/*"||e==="/*::"}var tp=ep,S={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},oa=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(n,r,u)=>!(e&S.Leading&&!n.leading||e&S.Trailing&&!n.trailing||e&S.Dangling&&(n.leading||n.trailing)||e&S.Block&&!ve(n)||e&S.Line&&!st(n)||e&S.First&&r!==0||e&S.Last&&r!==u.length-1||e&S.PrettierIgnore&&!ut(n)||t&&!t(n))};function C(e,t,n){if(!R(e==null?void 0:e.comments))return!1;let r=oa(t,n);return r?e.comments.some(r):!0}function Ae(e,t,n){if(!Array.isArray(e==null?void 0:e.comments))return[];let r=oa(t,n);return r?e.comments.filter(r):e.comments}function bn(e){return(e==null?void 0:e.prettierIgnore)||C(e,S.PrettierIgnore)}function ia(e){let{node:t}=e;return(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression")&&(e.key==="callee"&&J(e.parent)||e.key==="tag"&&e.parent.type==="TaggedTemplateExpression")}var np=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(n=>[n,t])));function dn(e){return np.get(e)}var uu={"==":!0,"!=":!0,"===":!0,"!==":!0},pn={"*":!0,"/":!0,"%":!0},Un={">>":!0,">>>":!0,"<<":!0};function Cr(e,t){return!(dn(t)!==dn(e)||e==="**"||uu[e]&&uu[t]||t==="%"&&pn[e]||e==="%"&&pn[t]||t!==e&&pn[t]&&pn[e]||Un[e]&&Un[t])}function rp(e){return!!Un[e]||e==="|"||e==="^"||e==="&"}function up(e){return e.type==="LogicalExpression"&&e.operator==="??"}function ue(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ue(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ue(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:ue(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:ue(e.callee,t);case"ConditionalExpression":return ue(e.test,t);case"UpdateExpression":return!e.prefix&&ue(e.argument,t);case"BindExpression":return e.object&&ue(e.object,t);case"SequenceExpression":return ue(e.expressions[0],t);case"ChainExpression":case"TSNonNullExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ue(e.expression,t);default:return t(e)}}function ap(e){let{key:t,parent:n}=e;return t==="expression"&&n.type==="TSNonNullExpression"||t==="object"&&n.type==="MemberExpression"&&!n.optional||t==="callee"&&n.type==="CallExpression"&&!n.optional||t==="callee"&&n.type==="NewExpression"||t==="tag"&&n.type==="TaggedTemplateExpression"}var au=e=>{var t;return(t=e.extra)==null?void 0:t.parenthesized},op=v(["OptionalCallExpression","OptionalMemberExpression"]);function ip(e){let{node:t}=e,n=t;for(;n.type==="TSNonNullExpression";)if(n=n.expression,au(n))return!1;return op(n)?au(t)?!0:!(e.key==="expression"&&e.parent.type==="TSNonNullExpression"):!1}function sp(e){return(e.node.type==="ChainExpression"||ip(e))&&ap(e)}function pp(e){var u,a;let{node:t}=e;if(t.type!=="Identifier")return!1;if((u=t.extra)!=null&&u.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(t.name))return!0;let{key:n,parent:r}=e;if(n==="left"&&(t.name==="async"&&!r.await||t.name==="let")&&r.type==="ForOfStatement")return!0;if(t.name==="let"){let o=(a=e.findAncestor(i=>i.type==="ForOfStatement"||i.type==="ForInStatement"))==null?void 0:a.left;if(o&&ue(o,i=>i===t))return!0}if(n==="object"&&t.name==="let"&&r.type==="MemberExpression"&&r.computed&&!r.optional){let o=e.findAncestor(s=>s.type==="ExpressionStatement"||s.type==="ForStatement"||s.type==="ForInStatement"),i=o?o.type==="ExpressionStatement"?o.expression:o.type==="ForStatement"?o.init:o.left:void 0;if(i&&ue(i,s=>s===t))return!0}if(n==="expression")switch(t.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let o=e.findAncestor(i=>!be(i));if(o!==r&&o.type==="ExpressionStatement")return!0}}return!1}function lp(e){return e!==null&&typeof e=="object"}var sa=lp;function*cp(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,u=a=>sa(a)&&r(a);for(let a of n(e)){let o=e[a];if(Array.isArray(o))for(let i of o)u(i)&&(yield i);else u(o)&&(yield o)}}function*Dp(e,t){let n=[e];for(let r=0;r<n.length;r++){let u=n[r];for(let a of cp(u,t))yield a,n.push(a)}}function yp(e,{getVisitorKeys:t,predicate:n}){for(let r of Dp(e,{getVisitorKeys:t}))if(n(r))return!0;return!1}var jt=null;function Jt(e){if(jt!==null&&typeof jt.property){let t=jt;return jt=Jt.prototype=null,t}return jt=Jt.prototype=e??Object.create(null),new Jt}var fp=10;for(let e=0;e<=fp;e++)Jt();function dp(e){return Jt(e)}function mp(e,t="type"){dp(e);function n(r){let u=r[t],a=e[u];if(!Array.isArray(a))throw Object.assign(new Error(`Missing visitor keys for '${u}'.`),{node:r});return a}return n}var pa=mp,l=[["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"]],Fp={ArrayExpression:l[0],AssignmentExpression:l[1],BinaryExpression:l[1],InterpreterDirective:[],Directive:l[2],DirectiveLiteral:[],BlockStatement:l[3],BreakStatement:l[4],CallExpression:l[5],CatchClause:["param","body"],ConditionalExpression:l[6],ContinueStatement:l[4],DebuggerStatement:[],DoWhileStatement:l[7],EmptyStatement:[],ExpressionStatement:l[8],File:["program"],ForInStatement:l[9],ForStatement:["init","test","update","body"],FunctionDeclaration:l[10],FunctionExpression:l[10],Identifier:["typeAnnotation","decorators"],IfStatement:l[6],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:l[1],MemberExpression:l[11],NewExpression:l[5],Program:l[3],ObjectExpression:l[12],ObjectMethod:l[13],ObjectProperty:l[14],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:l[15],SequenceExpression:l[16],ParenthesizedExpression:l[8],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:l[15],TryStatement:["block","handler","finalizer"],UnaryExpression:l[15],UpdateExpression:l[15],VariableDeclaration:["declarations"],VariableDeclarator:l[17],WhileStatement:l[7],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:l[18],ClassExpression:l[19],ClassDeclaration:l[19],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:l[20],ExportSpecifier:["local","exported"],ForOfStatement:l[9],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:l[21],ImportNamespaceSpecifier:l[21],ImportSpecifier:["imported","local"],MetaProperty:["meta","property"],ClassMethod:l[13],ObjectPattern:["decorators","properties","typeAnnotation"],SpreadElement:l[15],Super:[],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:l[15],AwaitExpression:l[15],ImportExpression:["source","options"],BigIntLiteral:[],ExportNamespaceSpecifier:l[22],OptionalMemberExpression:l[11],OptionalCallExpression:l[5],ClassProperty:l[23],ClassPrivateProperty:l[23],ClassPrivateMethod:l[13],PrivateName:l[24],StaticBlock:l[18],ImportAttribute:l[25],AnyTypeAnnotation:[],ArrayTypeAnnotation:l[26],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:l[27],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:l[28],DeclareModule:l[29],DeclareModuleExports:l[30],DeclareTypeAlias:l[31],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareVariable:["id","declarations"],DeclareExportDeclaration:l[20],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:l[2],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:l[32],GenericTypeAnnotation:l[27],InferredPredicate:[],InterfaceExtends:l[27],InterfaceDeclaration:l[28],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:l[33],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:l[30],NumberLiteralTypeAnnotation:[],BigIntLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:l[2],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:l[15],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],QualifiedTypeIdentifier:l[34],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:l[35],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:l[31],TypeAnnotation:l[30],TypeCastExpression:l[36],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:l[37],TypeParameterInstantiation:l[37],UnionTypeAnnotation:l[33],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:l[29],EnumBooleanBody:l[38],EnumNumberBody:l[38],EnumStringBody:l[38],EnumSymbolBody:l[38],EnumBooleanMember:l[17],EnumNumberMember:l[17],EnumStringMember:l[17],EnumDefaultedMember:l[24],IndexedAccessType:l[39],OptionalIndexedAccessType:l[39],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:l[8],JSXSpreadChild:l[8],JSXIdentifier:[],JSXMemberExpression:l[11],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXSpreadAttribute:l[15],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ClassAccessorProperty:l[40],Decorator:l[8],DoExpression:l[18],ExportDefaultSpecifier:l[22],ModuleExpression:l[18],TopicReference:[],VoidPattern:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:l[41],TSDeclareMethod:l[42],TSQualifiedName:l[1],TSCallSignatureDeclaration:l[43],TSConstructSignatureDeclaration:l[43],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:l[42],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:l[43],TSConstructorType:l[43],TSTypeReference:["typeName","typeArguments"],TSTypePredicate:l[44],TSTypeQuery:["exprName","typeArguments"],TSTypeLiteral:l[38],TSArrayType:l[26],TSTupleType:l[35],TSOptionalType:l[30],TSRestType:l[30],TSNamedTupleMember:["label","elementType"],TSUnionType:l[33],TSIntersectionType:l[33],TSConditionalType:l[45],TSInferType:l[46],TSParenthesizedType:l[30],TSTypeOperator:l[30],TSIndexedAccessType:l[39],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:l[47],TSClassImplements:l[48],TSInterfaceHeritage:l[48],TSInterfaceDeclaration:l[28],TSInterfaceBody:l[18],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:l[48],TSAsExpression:l[36],TSSatisfiesExpression:l[36],TSTypeAssertion:l[36],TSEnumBody:l[38],TSEnumDeclaration:l[29],TSEnumMember:["id","initializer"],TSModuleDeclaration:l[29],TSModuleBlock:l[18],TSImportType:["source","options","qualifier","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:l[8],TSNonNullExpression:l[8],TSExportAssignment:l[8],TSNamespaceExportDeclaration:l[24],TSTypeAnnotation:l[30],TSTypeParameterInstantiation:l[37],TSTypeParameterDeclaration:l[37],TSTypeParameter:["name","constraint","default"],ChainExpression:l[8],Literal:[],MethodDefinition:l[14],PrivateIdentifier:[],Property:l[25],PropertyDefinition:l[23],AccessorProperty:l[40],TSAbstractAccessorProperty:l[49],TSAbstractKeyword:[],TSAbstractMethodDefinition:l[25],TSAbstractPropertyDefinition:l[49],TSAsyncKeyword:[],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:l[8],AsExpression:l[36],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:l[32],ConditionalTypeAnnotation:l[45],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:l[29],DeclareHook:l[24],DeclareNamespace:l[29],EnumBigIntBody:l[38],EnumBigIntMember:l[17],EnumBody:l[38],HookDeclaration:l[41],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:l[46],KeyofTypeAnnotation:l[15],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:l[24],MatchExpression:l[50],MatchExpressionCase:l[51],MatchIdentifierPattern:l[24],MatchInstanceObjectPattern:l[52],MatchInstancePattern:["targetConstructor","properties"],MatchLiteralPattern:l[47],MatchMemberPattern:["base","property"],MatchObjectPattern:l[52],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:l[15],MatchStatement:l[50],MatchStatementCase:l[51],MatchUnaryPattern:l[15],MatchWildcardPattern:[],NeverTypeAnnotation:[],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:l[34],RecordDeclaration:["id","typeParameters","implements","body"],RecordDeclarationBody:l[0],RecordDeclarationImplements:["id","typeArguments"],RecordDeclarationProperty:["key","typeAnnotation","defaultValue"],RecordDeclarationStaticProperty:["key","typeAnnotation","value"],RecordExpression:["recordConstructor","typeArguments","properties"],RecordExpressionProperties:l[12],SatisfiesExpression:l[36],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:l[30],TypePredicate:l[44],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],NGChainedExpression:l[16],NGEmptyExpression:[],NGPipeExpression:["left","right","arguments"],NGMicrosyntax:l[18],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:[],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:l[25],NGRoot:l[53],JsExpressionRoot:l[53],JsonRoot:l[53],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:l[30],TSJSDocNonNullableType:l[30]},Ep=pa(Fp),la=Ep;function Gn(e,t){return t(e)||yp(e,{getVisitorKeys:la,predicate:t})}function hr(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||J(e)||q(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||be(e)||it(e)}function Ap(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function ca(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function Re(e,t){return Z(t)?bn(t):C(t,S.Leading,n=>H(e,P(n)))}function gp(e,t){if(Re(t.originalText,e)||C(e,S.Leading,n=>se(t.originalText,k(n),P(n)))&&!Z(e))return!0;if(hr(e)){let n=e,r;for(;r=Ap(n);)if(n=r,Re(t.originalText,n))return!0}return!1}var xp=new WeakMap;function Da(e,t){return Ce(xp,e,n=>gp(n,t))}function Qe(e){for(;it(e);)e=e.expression;return e}function Cp(e,t,n){let{node:r,key:u,parent:a}=e;switch(a.type){case"ReturnStatement":case"ThrowStatement":if(hp(e,t))return!1;break;case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(u==="superClass"){let o=Qe(r);if(o.type==="ArrowFunctionExpression"||o.type==="AssignmentExpression"||o.type==="AwaitExpression"||o.type==="BinaryExpression"||o.type==="ConditionalExpression"||o.type==="LogicalExpression"||o.type==="NewExpression"||o.type==="ObjectExpression"||o.type==="SequenceExpression"||o.type==="TaggedTemplateExpression"||o.type==="UnaryExpression"||o.type==="UpdateExpression"||o.type==="YieldExpression"||o.type==="ClassExpression"&&R(o.decorators))return!0}break;case"ExportDefaultDeclaration":if(ya(e,t,n))return!0;break;case"Decorator":if(u==="expression"&&!Tp(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(o,i)=>i==="returnType"&&o.type==="ArrowFunctionExpression")&&!(r.type==="NullableTypeAnnotation"&&e.call(()=>n(e,t),"typeAnnotation"))&&Sp(r))return!0;break;case"VariableDeclarator":if(u==="init"&&e.match(void 0,void 0,(o,i)=>i==="declarations"&&o.type==="VariableDeclaration",(o,i)=>i==="left"&&o.type==="ForInStatement"))return!0;break;case"TSInstantiationExpression":if(u==="expression"&&(r.type==="AwaitExpression"||r.type==="YieldExpression"))return!0;break}}function hp(e,t){let{key:n,parent:r}=e;if(!(n==="argument"&&xt(r)))return!1;let{node:u}=e;return!!((u.type==="SequenceExpression"||u.type==="AssignmentExpression")&&Da(u,t))}function ya(e,t,n){let{node:r,parent:u}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?u.type==="ExportDefaultDeclaration"||!n(e,t):!hr(r)||u.type!=="ExportDefaultDeclaration"&&n(e,t)?!1:e.call(()=>ya(e,t,n),...ca(r))}function Tp(e){return e.type==="ChainExpression"&&(e=e.expression),Vn(e)||J(e)&&!e.optional&&Vn(e.callee)}function Vn(e){return e.type==="Identifier"?!0:q(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&Vn(e.object):!1}function Sp(e){return Gn(e,t=>t.type==="ObjectTypeAnnotation"&&Gn(t,n=>n.type==="FunctionTypeAnnotation"))}function fa(e,t){var o,i,s,p,f,D;if(e.isRoot)return!1;let{node:n,key:r,parent:u}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&vp(n)&&Ot(e))return!0;if(bp(n))return!1;if(n.type==="Identifier")return pp(e);if(n.type==="ObjectExpression"||n.type==="FunctionExpression"||n.type==="ClassExpression"||n.type==="DoExpression"){let c=(o=e.findAncestor(d=>d.type==="ExpressionStatement"))==null?void 0:o.expression;if(c&&ue(c,d=>d===n))return!0}if(n.type==="ObjectExpression"){let c=(i=e.findAncestor(d=>d.type==="ArrowFunctionExpression"))==null?void 0:i.body;if(c&&c.type!=="SequenceExpression"&&c.type!=="AssignmentExpression"&&ue(c,d=>d===n))return!0}let a=Cp(e,t,fa);if(typeof a=="boolean")return a;switch(n.type){case"UpdateExpression":if(u.type==="UnaryExpression")return n.prefix&&(n.operator==="++"&&u.operator==="+"||n.operator==="--"&&u.operator==="-");case"UnaryExpression":switch(u.type){case"UnaryExpression":return n.operator===u.operator&&(n.operator==="+"||n.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return r==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return r==="callee";case"BinaryExpression":return r==="left"&&n.type==="UnaryExpression"&&(u.operator==="in"||u.operator==="instanceof")?!0:r==="left"&&u.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(u.type==="UpdateExpression"||n.operator==="in"&&Bp(e))return!0;if(n.operator==="|>"&&((s=n.extra)!=null&&s.parenthesized)){let c=e.grandparent;if(c.type==="BinaryExpression"&&c.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(u.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!be(n);case"ConditionalExpression":return be(n)||up(n);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return r==="callee";case"ClassExpression":case"ClassDeclaration":return r==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"UnaryExpression":if(!C(n))return!0;break;case"MemberExpression":case"OptionalMemberExpression":return r==="object";case"AssignmentExpression":case"AssignmentPattern":return r==="left"&&(n.type==="TSTypeAssertion"||be(n));case"LogicalExpression":if(n.type==="LogicalExpression")return u.operator!==n.operator;case"BinaryExpression":{let{operator:c,type:d}=n;if(!c&&d!=="TSTypeAssertion")return!0;let y=dn(c),h=u.operator,g=dn(h);return!!(g>y||r==="right"&&g===y||g===y&&!Cr(h,c)||g<y&&c==="%"&&(h==="+"||h==="-")||rp(h))}default:return!1}break;case"SequenceExpression":return u.type!=="ForStatement";case"YieldExpression":if(u.type==="AwaitExpression"||u.type==="TSTypeAssertion")return!0;case"AwaitExpression":switch(u.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return r==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return r==="callee";case"ConditionalExpression":return r==="test";case"BinaryExpression":return!(!n.argument&&u.operator==="|>");default:return!1}case"TSFunctionType":if(e.match(c=>c.type==="TSFunctionType",(c,d)=>d==="typeAnnotation"&&c.type==="TSTypeAnnotation",(c,d)=>d==="returnType"&&c.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(r==="extendsType"&&Ve(n)&&u.type===n.type||r==="constraint"&&n.type==="TSConditionalType"&&u.type==="TSTypeParameter"||r==="typeAnnotation"&&n.type==="ConditionalTypeAnnotation"&&u.type==="TypeAnnotation"&&e.grandparent.type==="TypeParameter"&&e.grandparent.bound===u&&e.grandparent.usesExtendsBound||r==="checkType"&&Ve(u))return!0;if(r==="extendsType"&&u.type==="TSConditionalType"){let{typeAnnotation:c}=n.returnType||n.typeAnnotation;if(c.type==="TSTypePredicate"&&c.typeAnnotation&&(c=c.typeAnnotation.typeAnnotation),c.type==="TSInferType"&&c.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(ye(u)||Qt(u))return!0;case"TSInferType":if(n.type==="TSInferType"){if(u.type==="TSRestType")return!1;if(r==="types"&&(u.type==="TSUnionType"||u.type==="TSIntersectionType")&&n.typeParameter.type==="TSTypeParameter"&&n.typeParameter.constraint)return!0}case"TSTypeOperator":return u.type==="TSArrayType"||u.type==="TSOptionalType"||u.type==="TSRestType"||r==="objectType"&&u.type==="TSIndexedAccessType"||u.type==="TSTypeOperator"||u.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return r==="objectType"&&u.type==="TSIndexedAccessType"||r==="elementType"&&u.type==="TSArrayType";case"TypeOperator":return u.type==="ArrayTypeAnnotation"||u.type==="NullableTypeAnnotation"||r==="objectType"&&(u.type==="IndexedAccessType"||u.type==="OptionalIndexedAccessType")||u.type==="TypeOperator";case"TypeofTypeAnnotation":case"KeyofTypeAnnotation":return r==="objectType"&&(u.type==="IndexedAccessType"||u.type==="OptionalIndexedAccessType")||r==="elementType"&&u.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return u.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return u.type==="TypeOperator"||u.type==="KeyofTypeAnnotation"||u.type==="ArrayTypeAnnotation"||u.type==="NullableTypeAnnotation"||u.type==="IntersectionTypeAnnotation"||u.type==="UnionTypeAnnotation"||r==="objectType"&&(u.type==="IndexedAccessType"||u.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":if(u.type==="ArrayTypeAnnotation"||r==="objectType"&&(u.type==="IndexedAccessType"||u.type==="OptionalIndexedAccessType"))return!0;break;case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(n.type==="ComponentTypeAnnotation"&&(n.rendersType===null||n.rendersType===void 0))return!1;if(e.match(void 0,(d,y)=>y==="typeAnnotation"&&d.type==="TypeAnnotation",(d,y)=>y==="returnType"&&d.type==="ArrowFunctionExpression")||e.match(void 0,(d,y)=>y==="typeAnnotation"&&d.type==="NullableTypeAnnotation",(d,y)=>y==="typeAnnotation"&&d.type==="TypeAnnotation",(d,y)=>y==="returnType"&&d.type==="ArrowFunctionExpression")||e.match(void 0,(d,y)=>y==="typeAnnotation"&&d.type==="TypePredicate",(d,y)=>y==="typeAnnotation"&&d.type==="TypeAnnotation",(d,y)=>y==="returnType"&&d.type==="ArrowFunctionExpression"))return!0;let c=u.type==="NullableTypeAnnotation"?e.grandparent:u;return c.type==="UnionTypeAnnotation"||c.type==="IntersectionTypeAnnotation"||c.type==="ArrayTypeAnnotation"||r==="objectType"&&(c.type==="IndexedAccessType"||c.type==="OptionalIndexedAccessType")||r==="checkType"&&u.type==="ConditionalTypeAnnotation"||r==="extendsType"&&u.type==="ConditionalTypeAnnotation"&&((p=n.returnType)==null?void 0:p.type)==="InferTypeAnnotation"&&n.returnType.typeParameter.bound||c.type==="NullableTypeAnnotation"||u.type==="FunctionTypeParam"&&u.name===null&&ie(n).some(d=>{var y;return((y=d.typeAnnotation)==null?void 0:y.type)==="NullableTypeAnnotation"})}case"OptionalIndexedAccessType":return r==="objectType"&&u.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof n.value=="string"&&u.type==="ExpressionStatement"&&typeof u.directive!="string"){let c=e.grandparent;return c.type==="Program"||c.type==="BlockStatement"}return r==="object"&&q(u)&&Me(n);case"AssignmentExpression":return!((r==="init"||r==="update")&&u.type==="ForStatement"||r==="expression"&&n.left.type!=="ObjectPattern"&&u.type==="ExpressionStatement"||r==="key"&&u.type==="TSPropertySignature"||u.type==="AssignmentExpression"||r==="expressions"&&u.type==="SequenceExpression"&&e.match(void 0,void 0,(c,d)=>(d==="init"||d==="update")&&c.type==="ForStatement")||r==="value"&&u.type==="Property"&&e.match(void 0,void 0,(c,d)=>d==="properties"&&c.type==="ObjectPattern")||u.type==="NGChainedExpression"||r==="node"&&u.type==="JsExpressionRoot");case"ConditionalExpression":switch(u.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return r==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:r==="test";case"MemberExpression":case"OptionalMemberExpression":return r==="object";default:return!1}case"FunctionExpression":switch(u.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return r==="callee";case"TaggedTemplateExpression":return!0;case"ExportDefaultDeclaration":return r==="declaration";default:return!1}case"ArrowFunctionExpression":switch(u.type){case"BinaryExpression":return u.operator!=="|>"||((f=n.extra)==null?void 0:f.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return r==="callee";case"MemberExpression":case"OptionalMemberExpression":return r==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return r==="expression";case"ConditionalExpression":return r==="test";default:return!1}case"ClassExpression":switch(u.type){case"NewExpression":return r==="callee";case"ExportDefaultDeclaration":return r==="declaration";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"ChainExpression":case"TSNonNullExpression":if(sp(e))return!0;case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"ImportExpression":if(r==="callee"&&(u.type==="BindExpression"||u.type==="NewExpression")){let c=n;for(;c;)switch(c.type){case"CallExpression":case"ImportExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":c=c.object;break;case"TaggedTemplateExpression":c=c.tag;break;case"TSNonNullExpression":c=c.expression;break;default:return!1}}return!1;case"BindExpression":return r==="callee"&&(u.type==="BindExpression"||u.type==="NewExpression")||r==="object"&&q(u);case"NGPipeExpression":return!(u.type==="NGRoot"||u.type==="NGMicrosyntaxExpression"||u.type==="ObjectProperty"&&!((D=n.extra)!=null&&D.parenthesized)||ne(u)||r==="arguments"&&J(u)||r==="right"&&u.type==="NGPipeExpression"||r==="property"&&u.type==="MemberExpression"||u.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return r==="callee"||r==="left"&&u.type==="BinaryExpression"&&u.operator==="<"||!ne(u)&&u.type!=="ArrowFunctionExpression"&&u.type!=="AssignmentExpression"&&u.type!=="AssignmentPattern"&&u.type!=="BinaryExpression"&&u.type!=="ConditionalExpression"&&u.type!=="ExpressionStatement"&&u.type!=="JsExpressionRoot"&&u.type!=="JSXAttribute"&&u.type!=="JSXElement"&&u.type!=="JSXExpressionContainer"&&u.type!=="JSXFragment"&&u.type!=="LogicalExpression"&&!Wt(u)&&!ze(u)&&!xt(u)&&u.type!=="TypeCastExpression"&&u.type!=="VariableDeclarator"&&u.type!=="YieldExpression"&&u.type!=="MatchExpressionCase"&&!(r==="declaration"&&u.type==="ExportDefaultDeclaration");case"TSInstantiationExpression":return r==="object"&&q(u);case"MatchOrPattern":return u.type==="MatchAsPattern"}return!1}var bp=v(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function Bp(e){let t=0,{node:n}=e;for(;n;){let r=e.getParentNode(t++);if((r==null?void 0:r.type)==="ForStatement"&&r.init===n)return!0;n=r}return!1}function vp(e){return Be(e)}function Ot(e){let{parent:t,key:n}=e;switch(t.type){case"NGPipeExpression":if(n==="arguments"&&e.isLast)return e.callParent(Ot);break;case"ObjectProperty":if(n==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(n==="right")return e.callParent(Ot);break;case"ConditionalExpression":if(n==="alternate")return e.callParent(Ot);break;case"UnaryExpression":if(t.prefix&&e.callParent(Ot))return!0;break}return!1}var ce=fa,pt="string",We="array",Bt="cursor",lt="indent",ct="align",Dt="trim",ge="group",Ye="fill",Ne="if-break",yt="indent-if-break",ft="line-suffix",Ze="line-suffix-boundary",pe="line",$e="label",Ue="break-parent",da=new Set([Bt,lt,ct,Dt,ge,Ye,Ne,yt,ft,Ze,pe,$e,Ue]);function Pp(e){if(typeof e=="string")return pt;if(Array.isArray(e))return We;if(!e)return;let{type:t}=e;if(da.has(t))return t}var et=Pp,kp=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function wp(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
6
|
+
Expected it to be 'string' or 'object'.`;if(et(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=kp([...da].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'.
|
|
7
|
+
Expected it to be ${r}.`}var Ip=class extends Error{constructor(t){super(wp(t));on(this,"name","InvalidDocError");this.doc=t}},_t=Ip,ou={};function Np(e,t,n,r){let u=[e];for(;u.length>0;){let a=u.pop();if(a===ou){n(u.pop());continue}n&&u.push(a,ou);let o=et(a);if(!o)throw new _t(a);if((t==null?void 0:t(a))!==!1)switch(o){case We:case Ye:{let i=o===We?a:a.parts;for(let s=i.length,p=s-1;p>=0;--p)u.push(i[p]);break}case Ne:u.push(a.flatContents,a.breakContents);break;case ge:if(r&&a.expandedStates)for(let i=a.expandedStates.length,s=i-1;s>=0;--s)u.push(a.expandedStates[s]);else u.push(a.contents);break;case ct:case lt:case yt:case $e:case ft:u.push(a.contents);break;case pt:case Bt:case Dt:case Ze:case pe:case Ue:break;default:throw new _t(a)}}}var Tr=Np;function vt(e,t){if(typeof e=="string")return t(e);let n=new Map;return r(e);function r(a){return Ce(n,a,u)}function u(a){switch(et(a)){case We:return t(a.map(r));case Ye:return t({...a,parts:a.parts.map(r)});case Ne:return t({...a,breakContents:r(a.breakContents),flatContents:r(a.flatContents)});case ge:{let{expandedStates:o,contents:i}=a;return o?(o=o.map(r),i=o[0]):i=r(i),t({...a,contents:i,expandedStates:o})}case ct:case lt:case yt:case $e:case ft:return t({...a,contents:r(a.contents)});case pt:case Bt:case Dt:case Ze:case pe:case Ue:return t(a);default:throw new _t(a)}}}function ma(e,t,n){let r=n,u=!1;function a(o){if(u)return!1;let i=t(o);i!==void 0&&(u=!0,r=i)}return Tr(e,a),r}function Mp(e){if(e.type===ge&&e.break||e.type===pe&&e.hard||e.type===Ue)return!0}function ae(e){return ma(e,Mp,!1)}function iu(e){if(e.length>0){let t=L(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function jp(e){let t=new Set,n=[];function r(a){if(a.type===Ue&&iu(n),a.type===ge){if(n.push(a),t.has(a))return!1;t.add(a)}}function u(a){a.type===ge&&n.pop().break&&iu(n)}Tr(e,r,u,!0)}function Lp(e){return e.type===pe&&!e.hard?e.soft?"":" ":e.type===Ne?e.flatContents:e}function mn(e){return vt(e,Lp)}function Op(e){switch(et(e)){case Ye:{let{parts:t}=e;if(t.every(n=>n===""))return"";if(t.length===1)return t[0];break}case ge:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===ge&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case ct:case lt:case yt:case ft:if(!e.contents)return"";break;case Ne:if(!e.flatContents&&!e.breakContents)return"";break;case We:{let t=[];for(let n of e){if(!n)continue;let[r,...u]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof L(0,t,-1)=="string"?t[t.length-1]+=r:t.push(r),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case pt:case Bt:case Dt:case Ze:case pe:case $e:case Ue:break;default:throw new _t(e)}return e}function Sr(e){return vt(e,t=>Op(t))}function at(e,t=br){return vt(e,n=>typeof n=="string"?j(t,n.split(`
|
|
8
|
+
`)):n)}function Jp(e){if(e.type===pe)return!0}function qp(e){return ma(e,Jp,!1)}function Fa(e,t){return e.type===$e?{...e,contents:t(e.contents)}:t(e)}function Rp(e){let t=!0;return Tr(e,n=>{switch(et(n)){case pt:if(n==="")break;case Dt:case Ze:case pe:case Ue:return t=!1,!1}}),t}var Xp=Pi;function A(e){return{type:lt,contents:e}}function de(e,t){return{type:ct,contents:t,n:e}}function Wp(e){return de(Number.NEGATIVE_INFINITY,e)}function _p(e){return de({type:"root"},e)}function Ea(e){return de(-1,e)}function $p(e,t,n){let r=e;if(t>0){for(let u=0;u<Math.floor(t/n);++u)r=A(r);r=de(t%n,r),r=de(Number.NEGATIVE_INFINITY,r)}return r}var _e={type:Ue},ln={type:Bt};function Aa(e){return{type:Ye,parts:e}}function m(e,t={}){return Xp(t.expandedStates),{type:ge,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function nt(e,t){return m(e[0],{...t,expandedStates:e})}function I(e,t="",n={}){return{type:Ne,breakContents:e,flatContents:t,groupId:n.groupId}}function $t(e,t){return{type:yt,contents:e,groupId:t.groupId,negate:t.negate}}function j(e,t){let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function Zt(e,t){return e?{type:$e,label:e,contents:t}:t}var T={type:pe},F={type:pe,soft:!0},ga={type:pe,hard:!0},E=[ga,_e],Up={type:pe,hard:!0,literal:!0},br=[Up,_e];function su(e){return{type:ft,contents:e}}var xe={type:Ze},Gp="cr",Vp="crlf",Kp="\r",Hp=`\r
|
|
9
|
+
`,zp=`
|
|
10
|
+
`,Qp=zp;function Yp(e){return e===Gp?Kp:e===Vp?Hp:Qp}var Zp=()=>/[#*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,el=12288,tl=65510,nl=[12288,12288,65281,65376,65504,65510],rl=4352,ul=262141,xa=[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],Ca=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let u=Math.floor((n+r)/2),a=u*2;if(t<e[a])r=u-1;else if(t>e[a+1])n=u+1;else return!0}return!1},pu=19968,[al,ol]=il(xa);function il(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let u=e[r],a=e[r+1];if(pu>=u&&pu<=a)return[u,a];a-u>n-t&&(t=u,n=a)}return[t,n]}var sl=e=>e<el||e>tl?!1:Ca(nl,e),pl=e=>e>=al&&e<=ol?!0:e<rl||e>ul?!1:Ca(xa,e),ll=/^(?:[\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])$/,cl=e=>ll.test(e),Dl=/[^\x20-\x7F]/;function yl(e){if(!e)return 0;if(!Dl.test(e))return e.length;let t=0;e=e.replace(Zp(),n=>(t+=cl(n)?1:2,""));for(let n of e){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||r>=65024&&r<=65039||(t+=sl(r)||pl(r)?2:1)}return t}var St=yl,fl={type:0},dl={type:1},ha={value:"",length:0,queue:[],get root(){return ha}};function Ta(e,t,n){let r=t.type===1?e.queue.slice(0,-1):[...e.queue,t],u="",a=0,o=0,i=0;for(let y of r)switch(y.type){case 0:f(),n.useTabs?s(1):p(n.tabWidth);break;case 3:{let{string:h}=y;f(),u+=h,a+=h.length;break}case 2:{let{width:h}=y;o+=1,i+=h;break}default:throw new Error(`Unexpected indent comment '${y.type}'.`)}return c(),{...e,value:u,length:a,queue:r};function s(y){u+=" ".repeat(y),a+=n.tabWidth*y}function p(y){u+=" ".repeat(y),a+=y}function f(){n.useTabs?D():c()}function D(){o>0&&s(o),d()}function c(){i>0&&p(i),d()}function d(){o=0,i=0}}function ml(e,t,n){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let r;return typeof t=="number"?t<0?r=dl:r={type:2,width:t}:r={type:3,string:t},Ta(e,r,n)}function Fl(e,t){return Ta(e,fl,t)}function El(e){let t=0;for(let n=e.length-1;n>=0;n--){let r=e[n];if(r===" "||r===" ")t++;else break}return t}function Sa(e){let t=El(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var Ht,Oe,At,gt,rt,zt,Kn,Lu,Al=(Lu=class{constructor(){Le(this,zt);Le(this,Ht,[]);Le(this,Oe,"");Le(this,At,0);Le(this,gt,[]);Le(this,rt,[])}markPosition(){if(X(this,gt).length+X(this,rt).length>=2)throw new Error("There are too many 'cursor' in doc.");X(this,rt).push(X(this,At)+X(this,Oe).length)}write(e){mt(this,Oe,X(this,Oe)+e)}trim(){let{text:e,count:t}=Sa(X(this,Oe));return mt(this,Oe,e),sn(this,zt,Kn).call(this),t}finish(){return sn(this,zt,Kn).call(this),{text:X(this,Ht).join(""),positions:X(this,gt)}}},Ht=new WeakMap,Oe=new WeakMap,At=new WeakMap,gt=new WeakMap,rt=new WeakMap,zt=new WeakSet,Kn=function(){let e=X(this,Oe);e!==""&&(X(this,Ht).push(e),mt(this,At,X(this,At)+e.length),mt(this,Oe,""));for(let t of X(this,rt))X(this,gt).push(Math.min(t,X(this,At)));X(this,rt).length=0},Lu),gl=Al,Ee=Symbol("MODE_BREAK"),we=Symbol("MODE_FLAT"),Hn=Symbol("DOC_FILL_PRINTED_LENGTH");function cn(e,t,n,r,u,a){if(n===Number.POSITIVE_INFINITY)return!0;let o=t.length,i=!1,s=[e],p="";for(;n>=0;){if(s.length===0){if(o===0)return!0;s.push(t[--o]);continue}let{mode:f,doc:D}=s.pop(),c=et(D);switch(c){case pt:D&&(i&&(p+=" ",n-=1,i=!1),p+=D,n-=St(D));break;case We:case Ye:{let d=c===We?D:D.parts,y=D[Hn]??0;for(let h=d.length-1;h>=y;h--)s.push({mode:f,doc:d[h]});break}case lt:case ct:case yt:case $e:s.push({mode:f,doc:D.contents});break;case Dt:{let{text:d,count:y}=Sa(p);p=d,n+=y;break}case ge:{if(a&&D.break)return!1;let d=D.break?Ee:f,y=D.expandedStates&&d===Ee?L(0,D.expandedStates,-1):D.contents;s.push({mode:d,doc:y});break}case Ne:{let d=(D.groupId?u[D.groupId]||we:f)===Ee?D.breakContents:D.flatContents;d&&s.push({mode:f,doc:d});break}case pe:if(f===Ee||D.hard)return!0;D.soft||(i=!0);break;case ft:r=!0;break;case Ze:if(r)return!1;break}}return!1}function ba(e,t){let n=Object.create(null),r=t.printWidth,u=Yp(t.endOfLine),a=0,o=[{indent:ha,mode:Ee,doc:e}],i=!1,s=[],p=new gl;for(jp(e);o.length>0;){let{indent:y,mode:h,doc:g}=o.pop();switch(et(g)){case pt:{let x=u!==`
|
|
11
|
+
`?Y(0,g,`
|
|
12
|
+
`,u):g;x&&(p.write(x),o.length>0&&(a+=St(x)));break}case We:for(let x=g.length-1;x>=0;x--)o.push({indent:y,mode:h,doc:g[x]});break;case Bt:p.markPosition();break;case lt:o.push({indent:Fl(y,t),mode:h,doc:g.contents});break;case ct:o.push({indent:ml(y,g.n,t),mode:h,doc:g.contents});break;case Dt:a-=p.trim();break;case ge:{let x=function(){if(h===we&&!i)return{indent:y,mode:g.break?Ee:we,doc:g.contents};i=!1;let b=r-a,N=s.length>0,O={indent:y,mode:we,doc:g.contents};if(!g.break&&cn(O,o,b,N,n))return O;if(!g.expandedStates)return{indent:y,mode:Ee,doc:g.contents};if(!g.break)for(let M=1;M<g.expandedStates.length-1;M++){let V={indent:y,mode:we,doc:g.expandedStates[M]};if(cn(V,o,b,N,n))return V}return{indent:y,mode:Ee,doc:L(0,g.expandedStates,-1)}}();o.push(x),g.id&&(n[g.id]=x.mode);break}case Ye:{let x=r-a,b=g[Hn]??0,{parts:N}=g,O=N.length-b;if(O===0)break;let M=N[b+0],V=N[b+1],ee={indent:y,mode:we,doc:M},B={indent:y,mode:Ee,doc:M},_=cn(ee,[],x,s.length>0,n,!0);if(O===1){_?o.push(ee):o.push(B);break}let U={indent:y,mode:we,doc:V},Se={indent:y,mode:Ee,doc:V};if(O===2){_?o.push(U,ee):o.push(Se,B);break}let Pe=N[b+2],w={indent:y,mode:h,doc:{...g,[Hn]:b+2}},G=cn({indent:y,mode:we,doc:[M,V,Pe]},[],x,s.length>0,n,!0);o.push(w),G?o.push(U,ee):_?o.push(Se,ee):o.push(Se,B);break}case Ne:case yt:{let x=g.groupId?n[g.groupId]:h;if(x===Ee){let b=g.type===Ne?g.breakContents:g.negate?g.contents:A(g.contents);b&&o.push({indent:y,mode:h,doc:b})}if(x===we){let b=g.type===Ne?g.flatContents:g.negate?A(g.contents):g.contents;b&&o.push({indent:y,mode:h,doc:b})}break}case ft:s.push({indent:y,mode:h,doc:g.contents});break;case Ze:s.length>0&&o.push({indent:y,mode:h,doc:ga});break;case pe:switch(h){case we:if(!g.hard){g.soft||(p.write(" "),a+=1);break}i=!0;case Ee:if(s.length>0){o.push({indent:y,mode:h,doc:g},...s.reverse()),s.length=0;break}g.literal?(p.write(u),a=0,y.root&&(y.root.value&&p.write(y.root.value),a=y.root.length)):(p.trim(),p.write(u+y.value),a=y.length);break}break;case $e:o.push({indent:y,mode:h,doc:g.contents});break;case Ue:break;default:throw new _t(g)}o.length===0&&s.length>0&&(o.push(...s.reverse()),s.length=0)}let{text:f,positions:D}=p.finish();if(D.length!==2)return{formatted:f};let[c,d]=D;return{formatted:f,cursorNodeStart:c,cursorNodeText:f.slice(c,d)}}var Fn=class extends Error{constructor(){super(...arguments);on(this,"name","ArgExpansionBailout")}};function Br(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function xl(e,t){let n=null,r=t;for(;r!==n;)n=r,r=us(e,r),r=cr(e,r),r=ht(e,r);return r=Dr(e,r),r=Tt(e,r),r!==!1&&H(e,r)}var En=xl,je=(e,{originalText:t})=>{let n=P(e);if(En(t,n))return!0;let r=hn(e);return r===n?!1:En(t,r)},Cl=v(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),Ba=Cl,hl=v(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Tl({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var va=Tl;function vr(e){return va(e)||Ba(e)||hl(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function Sl(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!Tn(e,e.typeAnnotation)}function bl(e,t){let n=t.split(".");for(let r=n.length-1;r>=0;r--){let u=n[r];if(r===0)return e.type==="Identifier"&&e.name===u;if(r===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===u){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===u){e=e.object;continue}return!1}}function Pr(e,t){return t.some(n=>bl(e,n))}var Bl=["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 vl(e){return Pr(e,Bl)}function Pl(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}function Mn(e){return J(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}function kl(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function Bn(e,t){if((e==null?void 0:e.type)!=="CallExpression"||e.optional)return!1;let n=he(e);if(n.length===1){if(Mn(e)&&Bn(t))return Xt(n[0]);if(Pl(e.callee))return Mn(n[0])}else if((n.length===2||n.length===3)&&(n[0].type==="TemplateLiteral"||z(n[0]))&&vl(e.callee))return n[2]&&!Me(n[2])?!1:(n.length===2?Xt(n[1]):kl(n[1])&&ie(n[1]).length<=1)||Mn(n[1]);return!1}function wl(e,t){let n=t-1;n=ht(e,n,{backwards:!0}),n=Tt(e,n,{backwards:!0}),n=ht(e,n,{backwards:!0});let r=Tt(e,n,{backwards:!0});return n!==r}var Pa=wl,kr=()=>!0;function wr(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function Il(e,t){var p;let n=e.node,r=[wr(e,t)],{printer:u,originalText:a,locStart:o,locEnd:i}=t;if((p=u.isBlockComment)!=null&&p.call(u,n)){let f=" ";H(a,i(n))&&(H(a,o(n),{backwards:!0})?f=E:f=T),r.push(f)}else r.push(E);let s=Tt(a,ht(a,i(n)));return s!==!1&&H(a,s)&&r.push(E),r}function Nl(e,t,n){var p;let r=e.node,u=wr(e,t),{printer:a,originalText:o,locStart:i}=t,s=(p=a.isBlockComment)==null?void 0:p.call(a,r);if(n!=null&&n.hasLineSuffix&&!(n!=null&&n.isBlock)||H(o,i(r),{backwards:!0})){let f=Pa(o,i(r));return{doc:su([E,f?E:"",u]),isBlock:s,hasLineSuffix:!0}}return!s||n!=null&&n.hasLineSuffix?{doc:[su([" ",u]),_e],isBlock:s,hasLineSuffix:!0}:{doc:[" ",u],isBlock:s,hasLineSuffix:!1}}function Q(e,t,n={}){var p,f;let{indent:r=!1,marker:u,filter:a=kr}=n,o=new Set((f=(p=e.node)==null?void 0:p.comments)==null?void 0:f.filter(D=>!(D.leading||D.trailing||D.marker!==u||!a(D))));if(o.size===0)return"";let i=e.map(({node:D})=>o.has(D)?wr(e,t):"","comments").filter(Boolean),s=j(E,i);return r?A([E,s]):s}function Ir(e,t,n){var o,i;let r=t[Symbol.for("printedComments")],u=(n==null?void 0:n.filter)??kr,a=new Set((i=(o=e.node)==null?void 0:o.comments)==null?void 0:i.filter(s=>!(r!=null&&r.has(s))&&s.leading&&u(s)));return a.size===0?"":e.map(({node:s})=>a.has(s)?Il(e,t):"","comments").filter(Boolean)}function ka(e,t,n){var f;let r=(f=e.node)==null?void 0:f.comments,u=new Set(r==null?void 0:r.filter(D=>D.trailing)),a=t[Symbol.for("printedComments")],o=(n==null?void 0:n.filter)??kr,i=new Set(r==null?void 0:r.filter(D=>u.has(D)&&!(a!=null&&a.has(D))&&o(D)));if(i.size===0)return"";let s=[],p;return e.each(({node:D})=>{u.has(D)&&(p=Nl(e,t,p),i.has(D)&&s.push(p.doc))},"comments"),s}function wa(e,t,n){return{leading:Ir(e,t,n),trailing:ka(e,t,n)}}function re(e,t,n,r){let u=Ir(e,n,r),a=ka(e,n,r);return u||a?Fa(t,o=>[u,o,a]):t}function Ia(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function oe(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":J(t)||q(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function Na(e){return e.node.definite||e.match(void 0,(t,n)=>n==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var Ml=v(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]),jl=e=>{let{node:t}=e;return Ml(t)?e.parent.type!=="DeclareExportDeclaration"&&!t.implicitDeclare:t.declare};function me(e){return jl(e)?"declare ":""}var Ll=v(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function vn({node:e}){return e.abstract||Ll(e)?"abstract ":""}function Pn(e){return e.accessibility?e.accessibility+" ":""}var lu=e=>e.type==="UnaryExpression"&&e.operator==="!";function Ol(e){return C(e)||!lu(e)?!1:(e=e.argument,e=lu(e)?e.argument:e,e.type==="LogicalExpression")}function Nr(e,t,n){let{node:r}=e,u=r.type==="WithStatement"?"object":"test",a=n(u);return Ol(r[u])?a:m([A([F,a]),F])}function kn(e,t,n){let{node:r}=e;return C(r,S.Dangling,n)?[A([F,Q(e,t,{filter:n})]),C(r,S.Dangling|S.Line,n)?E:F]:""}function tt(e,t="es5"){return Ia(e,t)?I(","):""}function $(e){return e.semi?";":""}var Jl=e=>e.mark!=="commentBeforeArrow";function dt(e,t,n,r,u){let a=e.node,o=ie(a),i=u&&a.typeParameters?n("typeParameters"):"";if(o.length===0)return[i,"(",kn(e,t,Jl),")"];let{parent:s}=e,p=Bn(s),f=Ma(a),D=[];if(Mi(e,(d,y)=>{let h=y===o.length-1;h&&a.rest&&D.push("..."),D.push(n()),!h&&(D.push(","),p||f?D.push(" "):je(o[y],t)?D.push(E,E):D.push(T))}),r&&!Rl(e)){if(ae(i)||ae(D))throw new Fn;return m([mn(i),"(",mn(D),")"])}let c=o.every(d=>!R(d.decorators));return f&&c?[i,"(",...D,")"]:p?[i,"(",...D,")"]:(Br(s)||Sl(s)||s.type==="TypeAlias"||s.type==="UnionTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="FunctionTypeAnnotation"&&s.returnType===a)&&o.length===1&&o[0].name===null&&a.this!==o[0]&&o[0].typeAnnotation&&a.typeParameters===null&&vr(o[0].typeAnnotation)&&!a.rest?t.arrowParens==="always"||a.type==="HookTypeAnnotation"?["(",...D,")"]:D:[i,"(",A([F,...D]),!ji(a)&&e.root.type!=="NGRoot"?tt(t,"all"):"",F,")"]}function Ma(e){if(!e)return!1;let t=ie(e);if(t.length!==1)return!1;let[n]=t;return!C(n)&&(n.type==="ObjectPattern"||n.type==="ArrayPattern"||n.type==="Identifier"&&n.typeAnnotation&&(n.typeAnnotation.type==="TypeAnnotation"||n.typeAnnotation.type==="TSTypeAnnotation")&&Ke(n.typeAnnotation.typeAnnotation)||n.type==="FunctionTypeParam"&&Ke(n.typeAnnotation)&&n!==e.rest||n.type==="AssignmentPattern"&&(n.left.type==="ObjectPattern"||n.left.type==="ArrayPattern")&&(n.right.type==="Identifier"||Be(n.right)&&n.right.properties.length===0||ne(n.right)&&n.right.elements.length===0))}function ql(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function en(e,t){var u;let n=ql(e);if(!n)return!1;let r=(u=e.typeParameters)==null?void 0:u.params;if(r){if(r.length>1)return!1;if(r.length===1){let a=r[0];if(a.constraint||a.default)return!1}}return ie(e).length===1&&(Ke(n)||ae(t))}function Rl(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,n)=>{if(t.type==="CallExpression"&&n==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let r=t.callee.callee;return r.type==="Identifier"||r.type==="MemberExpression"&&!r.computed&&r.object.type==="Identifier"&&r.property.type==="Identifier"}return!1},(t,n)=>t.type==="VariableDeclarator"&&n==="init"||t.type==="ExportDefaultDeclaration"&&n==="declaration"||t.type==="TSExportAssignment"&&n==="expression"||t.type==="AssignmentExpression"&&n==="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 Xl(e){let t=ie(e);return t.length>1&&t.some(n=>n.type==="TSParameterProperty")}function qt(e,t){return(t==="params"||t==="this"||t==="rest")&&Ma(e)}var Wl=/^[\$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]*$/,_l=e=>Wl.test(e),$l=_l;function Ul(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 Ut=Ul,ja=Object.freeze({character:"'",codePoint:39}),La=Object.freeze({character:'"',codePoint:34}),Gl=Object.freeze({preferred:ja,alternate:La}),Vl=Object.freeze({preferred:La,alternate:ja});function Oa(e,t){let{preferred:n,alternate:r}=t===!0||t==="'"?Gl:Vl,{length:u}=e,a=0,o=0;for(let i=0;i<u;i++){let s=e.charCodeAt(i);s===n.codePoint?a++:s===r.codePoint&&o++}return(a>o?r:n).character}var Kl=/\\(["'\\])|(["'])/g;function Hl(e,t){let n=t==='"'?"'":'"',r=Y(0,e,Kl,(u,a,o)=>a?a===n?n:u:o===t?"\\"+o:o);return t+r+t}var zl=Hl;function Ql(e,t){let n=e.slice(1,-1),r;return t.parser==="json"||t.parser==="jsonc"||t.parser==="json-stringify"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?r='"':t.__isInHtmlAttribute?r="'":r=Oa(n,t.singleQuote),e.charAt(0)===r?e:zl(n,r)}var ot=Ql,Ja=e=>e.type==="TSEnumMember",qa=e=>Ja(e)?"id":"key",Gt=e=>e[qa(e)],Ra=e=>!Ja(e)&&e.computed;function Xa(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}var Yl=({parser:e})=>e==="typescript"||e==="babel-ts"||e==="oxc-ts";function Zl(e,t){let n=Gt(e);if(n.type==="Identifier")return!0;if(!Me(n)||Yl(t))return!1;let r=Ut(De(n));return String(n.value)===r&&Xa(r)}function Wa(e,t){let{parser:n}=t;if(n==="json"||n==="jsonc")return!1;let r=Gt(e);if(!z(r))return!1;let{value:u}=r;return ot(De(r),t).slice(1,-1)!==u?!1:!!(!(n==="babel-ts"&&e.type==="ClassProperty"||(n==="typescript"||n==="oxc-ts")&&e.type==="PropertyDefinition")&&$l(u)||(n==="babel"||n==="acorn"||n==="oxc"||n==="espree"||n==="meriyah"||n==="__babel_estree")&&e.type!=="ImportAttribute"&&Xa(u)&&String(Number(u))===u)}var ec=new WeakMap;function _a(e,t){return Ce(ec,e.parent,()=>e.siblings.some(n=>{if(Ra(n))return!1;let r=Gt(n);return z(r)&&!Wa(n,t)}))}function tc(e,t){return(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&_a(e,t))&&Zl(e.node,t)}function nc(e,t){return(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!_a(e,t))&&Wa(e.node,t)}function He(e,t,n){let{node:r}=e,u=qa(r);if(Ra(r))return["[",n(u),"]"];if(tc(e,t)){let a=Gt(r),o=ot(JSON.stringify(a.type==="Identifier"?a.name:String(a.value)),t);return e.call(()=>re(e,o,t),u)}if(nc(e,t)){let{value:a}=Gt(r),o=/^\d/.test(a)?Ut(a):a;return e.call(()=>re(e,o,t),u)}return n(u)}var rc=v(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),uc=v(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function $a(e){return e.key==="elementTypes"&&ir(e.parent)&&e.parent.elementTypes.length>1}function wn(e){let{types:t}=e;if(t.some(r=>C(r)))return!1;let n=t.find(r=>uc(r));return n?t.every(r=>r===n||rc(r)):!1}function Ua(e){let{key:t,node:n,parent:r}=e;return!(wn(n)||t==="types"&&ye(r)||t==="types"&&Qt(r)||$a(e))}function Ga(e,t,n,r){let{node:u}=e;if(wn(u))return j(" | ",e.map(n,"types"));let a=m(e.map(({isFirst:o})=>{let i=o?I("| "):[T,"| "],s=n();return C(e.node,S.Leading)?[i,de(2,re(e,s,t))]:[i,re(e,de(2,s),t)]},"types"));return Ua(e)&&(a=re(e,a,t)),ce(e,t)?m([A([F,a]),F]):$a(e)?m([A([I(["(",F]),a]),F,I(")")]):(r==null?void 0:r.assignmentLayout)==="break-after-operator"||!ac(e)?a:m(A([F,a]))}function ac(e){let{key:t,parent:n}=e;return!(t==="typeAnnotation"&&n.type==="TSTypeAssertion"||t==="elementTypes"&&ir(n)||(t==="trueType"||t==="falseType")&&Ve(n)||t==="params"&&zi(n)||t==="typeAnnotation"&&n.type==="FunctionTypeParam"&&!n.name&&e.grandparent.this!==n||e.match(void 0,(r,u)=>u==="typeAnnotation"&&r.type==="FunctionTypeParam",(r,u)=>u==="params"&&r.type==="FunctionTypeAnnotation",(r,u)=>u==="value"&&r.type==="ObjectTypeProperty"&&Br(r)))}function oc(e){return vr(e)||Ke(e)?!0:ye(e)?wn(e):!1}var ic=new WeakSet;function te(e,t,n="typeAnnotation"){let{node:{[n]:r}}=e;if(!r)return"";let u=!1;if(r.type==="TSTypeAnnotation"||r.type==="TypeAnnotation"){let a=e.call(Va,n);(a==="=>"||a===":"&&C(r,S.Leading))&&(u=!0),ic.add(r)}return u?[" ",t(n)]:t(n)}var Va=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,n)=>(n==="returnType"||n==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,n)=>n==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="typeAnnotation"&&t.type==="Identifier",(t,n)=>n==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="typeAnnotation"&&t.type==="Identifier",(t,n)=>n==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function Ka(e,t,n){let r=Va(e);return r?[r," ",n("typeAnnotation")]:n("typeAnnotation")}var sc=({node:e,key:t,parent:n})=>t==="value"&&e.type==="FunctionExpression"&&(n.type==="ObjectMethod"||n.type==="ClassMethod"||n.type==="ClassPrivateMethod"||n.type==="MethodDefinition"||n.type==="TSAbstractMethodDefinition"||n.type==="TSDeclareMethod"||n.type==="Property"&&bt(n));function Mr(e,t,n,r){if(sc(e))return jr(e,t,n);let{node:u}=e,a=!1;if(u.type==="FunctionExpression"&&(r!=null&&r.expandLastArg)){let{parent:f}=e;J(f)&&(he(f).length>1||ie(u).every(D=>D.type==="Identifier"&&!D.typeAnnotation))&&(a=!0)}let o=dt(e,t,n,a),i=Lr(e,n),s=en(u,i),p=u.type==="HookDeclaration"?"hook":"function";return[me(e),u.async?"async ":"",p,u.generator?"*":""," ",u.id?n("id"):"",n("typeParameters"),m([s?m(o):o,i]),u.body?" ":"",n("body"),u.declare||!u.body?$(t):""]}function zn(e,t,n){let{node:r}=e,{kind:u}=r,a=r.value||r,o=[];return!u||u==="init"||u==="method"||u==="constructor"?a.async&&o.push("async "):o.push(u," "),a.generator&&o.push("*"),o.push(He(e,t,n),r.optional?"?":"",r===a?jr(e,t,n):n("value")),o}function jr(e,t,n){let{node:r}=e,u=dt(e,t,n),a=Lr(e,n),o=Xl(r),i=en(r,a),s=[n("typeParameters"),m([o?m(u,{shouldBreak:!0}):i?m(u):u,a])];return r.body?s.push(" ",n("body")):s.push($(t)),s}function pc(e){let t=ie(e);return t.length===1&&!e.typeParameters&&!C(e,S.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!C(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function Ha(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:n}=e;return pc(n)}return!1}function Lr(e,t){let{node:n}=e,r=[te(e,t,"returnType")];return n.predicate&&r.push(t("predicate")),r}function Or(e,t){if(t.semi)return!1;let{node:n}=e;if(n.type!=="ExpressionStatement"||Qa(e,t)||Za(e,t)||Ya(e,t))return!1;let{key:r,parent:u}=e;return!!((r==="body"&&(u.type==="Program"||u.type==="BlockStatement"||u.type==="StaticBlock"||u.type==="TSModuleBlock")||r==="consequent"&&u.type==="SwitchCase")&&e.call(()=>za(e,t),"expression"))}function za(e,t){let{node:n}=e;switch(n.type){case"ParenthesizedExpression":case"TypeCastExpression":case"TSTypeAssertion":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!Ha(e,t))return!0;break;case"UnaryExpression":{let{prefix:r,operator:u}=n;if(r&&(u==="+"||u==="-"))return!0;break}case"BindExpression":if(!n.object)return!0;break;case"Literal":if(n.regex)return!0;break;default:if(Z(n))return!0}return ce(e,t)?!0:hr(n)?e.call(()=>za(e,t),...ca(n)):!1}var Jr=({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 Qa(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&Jr(e)&&Z(e.node.expression)}function Ya(e,t){return t.__isHtmlInlineEventHandler&&Jr(e)}function Za(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&Jr(e)}function eo(e,t){if(!Or(e,t))return!1;let n=L(0,Ae(e.node,S.Leading),-1);return!!(n&&yr(n))}var lc=v(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function cc(e,t){let{key:n,parent:r}=e;if(n==="types"&&ye(r)||n==="argument"&&r.type==="JSXSpreadAttribute"||n==="expression"&&r.type==="JSXSpreadChild"||n==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(n==="id"||n==="typeParameters")&&lc(r)||n==="patterns"&&r.type==="MatchOrPattern"||ia(e))return!0;let{node:u}=e;return bn(u)?!1:u.type==="ExpressionStatement"?eo(e,t):ye(u)?Ua(e):!!Z(u)}var Dc=cc;function yc(e,t,n=0){let r=0;for(let u=n;u<e.length;++u)e[u]===" "?r=r+t-r%t:r++;return r}var fc=yc;function dc(e,t){let n=e.lastIndexOf(`
|
|
13
|
+
`);return n===-1?0:fc(e.slice(n+1).match(/^[\t ]*/)[0],t)}var mc=dc;function to(e,t,n){if(Cc(e)){let a=Ec(e,t,n);if(a)return a}let r=tn(e,t,n),u=e.map(({isLast:a,index:o})=>[n(),a?"":r[o]],"quasis");return[xe,"`",...u,"`"]}function Fc(e,t,n){let r=n("quasi"),{node:u}=e,a="",o=Ae(u.quasi,S.Leading)[0];return o&&(se(t.originalText,P(u.typeArguments??u.tag),k(o))?a=F:a=" "),Zt(r.label&&{tagged:!0,...r.label},[n("tag"),n("typeArguments"),a,xe,r])}function Ec(e,t,n){let{node:r}=e,u=r.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(u.length>1||u.some(a=>a.length>0)){t.__inJestEach=!0;let a=tn(e,t,n);t.__inJestEach=!1;let o=a.map(D=>ba(D,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted),i=[{hasLineBreak:!1,cells:[]}];for(let D=1;D<r.quasis.length;D++){let c=L(0,i,-1),d=o[D-1];c.cells.push(d),d.includes(`
|
|
14
|
+
`)&&(c.hasLineBreak=!0),r.quasis[D].value.raw.includes(`
|
|
15
|
+
`)&&i.push({hasLineBreak:!1,cells:[]})}let s=Math.max(u.length,...i.map(D=>D.cells.length)),p=Array.from({length:s},()=>0),f=[{cells:u},...i.filter(D=>D.cells.length>0)];for(let D of f)if(!D.hasLineBreak)for(let[c,d]of D.cells.entries())p[c]=Math.max(p[c],St(d));return[xe,"`",A([E,j(E,f.map(D=>j(" | ",D.cells.map((c,d)=>D.hasLineBreak?c:c+" ".repeat(p[d]-St(c))))))]),E,"`"]}}var Ac=new WeakMap;function gc(e,t){let{parent:n,index:r}=e;return Ce(Ac,n,u=>{let{tabWidth:a}=t,o=0;return u.quasis.map(i=>{let s=i.value.raw,p=s.includes(`
|
|
16
|
+
`)?mc(s,a):o;return o=p,{indentSize:p,previousQuasiText:s}})})[r]}function xc(e,t,n){let{node:r,index:u}=e,a=n(),o=e.parent,{quasis:i}=o,s=P(i[u]),p=k(i[u+1]),f=se(t.originalText,s,p);if(!f){let d=ba(a,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;d.includes(`
|
|
17
|
+
`)?f=!0:a=d}f&&(C(r)||r.type==="Identifier"||q(Qe(r))||r.type==="ConditionalExpression"||r.type==="SequenceExpression"||be(r)||Xe(r))&&(a=[A([F,a]),F]);let{indentSize:D,previousQuasiText:c}=gc(e,t);return t.__inJestEach&&(D=Math.max(D,t.tabWidth)),a=D===0&&c.endsWith(`
|
|
18
|
+
`)?de(Number.NEGATIVE_INFINITY,a):$p(a,D,t.tabWidth),m(["${",a,xe,"}"])}function tn(e,t,n){return e.map(()=>xc(e,t,n),e.node.type==="TSTemplateLiteralType"?"types":"expressions")}function no(e,t){return vt(e,n=>typeof n=="string"?t?Y(0,n,/(\\*)`/g,"$1$1\\`"):ro(n):n)}function ro(e){return Y(0,e,/([\\`]|\$\{)/g,"\\$1")}var cu=/^[fx]?(?:describe|it|test)$/;function Cc({node:e,parent:t}){return e.type==="TemplateLiteral"&&t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&cu.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&cu.test(t.tag.object.object.name))}var Qn=[(e,t)=>t==="properties"&&e.type==="ObjectExpression",(e,t)=>t==="arguments"&&e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component",(e,t)=>t==="expression"&&e.type==="Decorator"];function hc(e){let t=r=>r.type==="TemplateLiteral",n=(r,u)=>ze(r)&&!r.computed&&r.key.type==="Identifier"&&r.key.name==="styles"&&u==="value";return e.match(t,(r,u)=>ne(r)&&u==="elements",n,...Qn)||e.match(t,n,...Qn)}function Tc(e){return e.match(t=>t.type==="TemplateLiteral",(t,n)=>ze(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&n==="value",...Qn)}function jn(e,t){return C(e,S.Block|S.Leading,({value:n})=>n===` ${t} `)}function uo({node:e,parent:t},n){return jn(e,n)||Sc(t)&&jn(t,n)||t.type==="ExpressionStatement"&&jn(t,n)}function Sc(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function bc(e,t,n,r){let{node:u}=n,a="";for(let[p,f]of u.quasis.entries()){let{raw:D}=f.value;p>0&&(a+="@prettier-placeholder-"+(p-1)+"-id"),a+=D}let o=await e(a,{parser:"scss"}),i=tn(n,r,t),s=Bc(o,i);if(!s)throw new Error("Couldn't insert all the expressions");return["`",A([E,s]),F,"`"]}function Bc(e,t){if(!R(t))return e;let n=0,r=vt(Sr(e),u=>typeof u!="string"||!u.includes("@prettier-placeholder")?u:u.split(/@prettier-placeholder-(\d+)-id/).map((a,o)=>o%2===0?at(a):(n++,t[a])));return t.length===n?r:null}function vc(e){return e.match(void 0,(t,n)=>n==="quasi"&&t.type==="TaggedTemplateExpression"&&Pr(t.tag,["css","css.global","css.resolve"]))||e.match(void 0,(t,n)=>n==="expression"&&t.type==="JSXExpressionContainer",(t,n)=>n==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(r=>r.type==="JSXAttribute"&&r.name.type==="JSXIdentifier"&&r.name.name==="jsx"))}function Dn(e){return e.type==="Identifier"&&e.name==="styled"}function Du(e){return/^[A-Z]/.test(e.object.name)&&e.property.name==="extend"}function Pc({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return Dn(t.object)||Du(t);case"CallExpression":return Dn(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Dn(t.callee.object.object)||Du(t.callee.object))||t.callee.object.type==="CallExpression"&&Dn(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function kc({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var wc=e=>vc(e)||Pc(e)||kc(e)||hc(e);async function Ic(e,t,n,r){let{node:u}=n,a=u.quasis.length,o=tn(n,r,t),i=[];for(let s=0;s<a;s++){let p=u.quasis[s],f=s===0,D=s===a-1,c=p.value.cooked,d=c.split(`
|
|
19
|
+
`),y=d.length;if(!D&&/#[^\n\r]*$/.test(d[y-1]))return null;let h=y>2&&d[0].trim()===""&&d[1].trim()==="",g=y>2&&d[y-1].trim()===""&&d[y-2].trim()==="",x=d.every(N=>/^\s*(?:#[^\n\r]*)?$/.test(N)),b;x?b=Nc(d):b=await e(c,{parser:"graphql"}),b?(b=no(b,!1),!f&&h&&i.push(""),i.push(b),!D&&g&&i.push("")):!f&&!D&&h&&i.push(""),D||i.push(o[s])}return["`",A([E,j(E,i)]),E,"`"]}function Nc(e){let t=[],n=!1,r=e.map(u=>u.trim());for(let[u,a]of r.entries())a!==""&&(r[u-1]===""&&n?t.push([E,a]):t.push(a),n=!0);return t.length===0?null:j(E,t)}function Mc({node:e,parent:t}){return uo({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}var Ln=0;async function ao(e,t,n,r,u){let{node:a}=r,o=Ln;Ln=Ln+1>>>0;let i=x=>`PRETTIER_HTML_PLACEHOLDER_${x}_${o}_IN_JS`,s=a.quasis.map((x,b,N)=>b===N.length-1?x.value.cooked:x.value.cooked+i(b)).join(""),p=tn(r,u,n),f=new RegExp(i("(\\d+)"),"g"),D=0,c=await t(s,{parser:e,__onHtmlRoot(x){D=x.children.length}}),d=vt(c,x=>{if(typeof x!="string")return x;let b=[],N=x.split(f);for(let O=0;O<N.length;O++){let M=N[O];if(O%2===0){M&&(M=ro(M),u.__embeddedInHtml&&(M=Y(0,M,/<\/(?=script\b)/gi,"<\\/")),b.push(M));continue}let V=Number(M);b.push(p[V])}return b}),y=/^\s/.test(s)?" ":"",h=/\s$/.test(s)?" ":"",g=u.htmlWhitespaceSensitivity==="ignore"?E:y&&h?T:null;return g?m(["`",A([g,m(d)]),g,"`"]):Zt({hug:!1},m(["`",y,D>1?A(m(d)):m(d),h,"`"]))}function jc(e){return uo(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,n)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&n==="quasi")}var Lc=ao.bind(void 0,"html"),Oc=ao.bind(void 0,"angular");async function Jc(e,t,n){let{node:r}=n,u=Y(0,r.quasis[0].value.raw,/((?:\\\\)*)\\`/g,(s,p)=>"\\".repeat(p.length/2)+"`"),a=qc(u),o=a!=="";o&&(u=Y(0,u,new RegExp(`^${a}`,"gm"),""));let i=no(await e(u,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",o?A([F,i]):[br,Wp(i)],F,"`"]}function qc(e){let t=e.match(/^([^\S\n]*)\S/m);return t===null?"":t[1]}function Rc({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var Xc=[{test:wc,print:bc},{test:Mc,print:Ic},{test:jc,print:Lc},{test:Tc,print:Oc},{test:Rc,print:Jc}].map(({test:e,print:t})=>({test:e,print:_c(t)}));function Wc(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||$c(t))return;let n=Xc.find(({test:r})=>r(e));if(n)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":n.print}function _c(e){return async(...t)=>{let n=await e(...t);return n&&Zt({embed:!0,...n.label},n)}}function $c({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Uc=Wc;function Gc(e,t){e.type==="ChainExpression"?Vc(t):(e.type==="OptionalMemberExpression"||e.type==="OptionalCallExpression")&&Kc(t)}function oo(e){if(q(e))return"object";if(J(e))return"callee";if(it(e))return"expression"}function An(e){let t=oo(e);if(t)return e[t]}function Vc(e){for(e=An(e);e.type==="MemberExpression"||e.type==="CallExpression"||e.type==="TSNonNullExpression";e=An(e)){let t=oo(e),n=e[t];n.type==="ChainExpression"&&(e[t]=n.expression)}}function Kc(e){for(e=An(e);e.type==="MemberExpression"||e.type==="CallExpression";e=An(e))e.type=`Optional${e.type}`}function yu(e,t,n){let r=t[n];(z(r)||Me(r))&&(e[n]=String(r.value)),r.type==="Identifier"&&(e[n]=r.name)}function Hc(e,t){(e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="TSMethodSignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute"||e.type==="RecordDeclarationProperty"||e.type==="RecordDeclarationStaticProperty")&&!e.computed&&yu(t,e,"key"),e.type==="TSEnumMember"&&yu(t,e,"id")}function zc(e,t){e.type==="RegExpLiteral"&&(t.flags=[...e.flags].sort().join("")),e.type==="Literal"&&"regex"in e&&(t.regex.flags=[...e.regex.flags].sort().join(""))}var Qc=new Set(["range","raw","comments","extra","start","end","loc","errors","tokens","trailingComma","docblock","__contentEnd"]),Ft=e=>{for(let t of e.quasis)delete t.value};function io(e,t,n){if(e.type==="Program"&&delete t.sourceType,Gc(e,t),Hc(e,t),zc(e,t),(Ui(e)||e.type==="BigIntLiteralTypeAnnotation")&&"bigint"in e&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!or({node:e,parent:n})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if(e.type==="JSXElement"&&e.openingElement.name.type==="JSXIdentifier"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(u=>u.type==="JSXAttribute"&&u.name.name==="jsx"))for(let{type:u,expression:a}of t.children)u==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&Ft(a);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&Ft(t.value.expression),e.type==="JSXAttribute"&&z(e.value)&&/["']|"|'/.test(e.value.value)&&(t.value.value=Y(0,e.value.value,/["']|"|'/g,'"'));let r=e.expression||e.callee;if(e.type==="Decorator"&&r.type==="CallExpression"&&r.callee.name==="Component"&&r.arguments.length===1){let u=e.expression.arguments[0].properties;for(let[a,o]of t.expression.arguments[0].properties.entries())switch(u[a].key.name){case"styles":ne(o.value)&&Ft(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&Ft(o.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&Ft(t.quasi),(e.type==="CallExpression"||e.type==="MemberExpression")&&!e.optional&&delete t.optional,e.type==="TemplateLiteral"&&Ft(t)}io.ignoredProperties=Qc;var Yc=/\*\/$/,Zc=/^\/\*\*?/,so=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,eD=/(^|\s+)\/\/([^\n\r]*)/g,fu=/^(\r?\n)+/,tD=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,du=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,nD=/(\r?\n|^) *\* ?/g,po=[];function rD(e){let t=e.match(so);return t?t[0].trimStart():""}function uD(e){var n;let t=(n=e.match(so))==null?void 0:n[0];return t==null?e:e.slice(t.length)}function aD(e){e=Y(0,e.replace(Zc,"").replace(Yc,""),nD,"$1");let t="";for(;t!==e;)t=e,e=Y(0,e,tD,`
|
|
20
|
+
$1 $2
|
|
21
|
+
`);e=e.replace(fu,"").trimEnd();let n=Object.create(null),r=Y(0,e,du,"").replace(fu,"").trimEnd(),u;for(;u=du.exec(e);){let a=Y(0,u[2],eD,"");if(typeof n[u[1]]=="string"||Array.isArray(n[u[1]])){let o=n[u[1]];n[u[1]]=[...po,...Array.isArray(o)?o:[o],a]}else n[u[1]]=a}return{comments:r,pragmas:n}}function oD({comments:e="",pragmas:t={}}){let n=Object.keys(t),r=n.flatMap(a=>mu(a,t[a])).map(a=>` * ${a}
|
|
22
|
+
`).join("");if(!e){if(n.length===0)return"";if(n.length===1&&!Array.isArray(t[n[0]])){let a=t[n[0]];return`/** ${mu(n[0],a)[0]} */`}}let u=e.split(`
|
|
23
|
+
`).map(a=>` * ${a}`).join(`
|
|
24
|
+
`)+`
|
|
25
|
+
`;return`/**
|
|
26
|
+
`+(e?u:"")+(e&&n.length>0?` *
|
|
27
|
+
`:"")+r+" */"}function mu(e,t){return[...po,...Array.isArray(t)?t:[t]].map(n=>`@${e} ${n}`.trim())}var iD="format";function sD(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
|
28
|
+
`);return t===-1?e:e.slice(0,t)}var pD=sD;function lD(e){let t=pD(e);t&&(e=e.slice(t.length+1));let n=rD(e),{pragmas:r,comments:u}=aD(n);return{shebang:t,text:e,pragmas:r,comments:u}}function cD(e){let{shebang:t,text:n,pragmas:r,comments:u}=lD(e),a=uD(n),o=oD({pragmas:{[iD]:"",...r},comments:u.trimStart()});return(t?`${t}
|
|
29
|
+
`:"")+o+(a.startsWith(`
|
|
30
|
+
`)?`
|
|
31
|
+
`:`
|
|
32
|
+
|
|
33
|
+
`)+a}function DD(e){if(!ve(e))return[];if(!e.value.includes(`
|
|
34
|
+
`))return[];let t=[];for(let n of`*${e.value}*`.split(`
|
|
35
|
+
`)){if(n=n.trimStart(),!n.startsWith("*"))return[];t.push(n)}return t}var yD=new WeakMap;function lo(e){return Ce(yD,e,DD)}function co(e){return lo(e).length>0}function fD(e,t){let n=e.node;if(st(n))return t.originalText.slice(k(n),P(n)).trimEnd();if(co(n))return dD(n);if(ve(n))return["/*",at(n.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(n))}function dD(e){let t=lo(e),n=e.value[0]==="*"&&e.value[1]!=="*";return["/",t.map((r,u)=>{if(u===0)return[r.trimEnd(),E];if(u===t.length-1)return[" ",r];let a=r.trimEnd(),o=[" ",a];return n&&a!=="*"&&r.endsWith(" ")?[o," ",_p(br)]:[o,E]}),"/"]}function mD(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Fe,Cn,Do,Ou,FD=(Ou=class{constructor(e){Le(this,Cn);Le(this,Fe);mt(this,Fe,new Set(e))}getLeadingWhitespaceCount(e){let t=X(this,Fe),n=0;for(let r=0;r<e.length&&t.has(e.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(e){let t=X(this,Fe),n=0;for(let r=e.length-1;r>=0&&t.has(e.charAt(r));r--)n++;return n}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return X(this,Fe).has(e.charAt(0))}hasTrailingWhitespace(e){return X(this,Fe).has(L(0,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let n=`[${mD([...X(this,Fe)].join(""))}]+`,r=new RegExp(t?`(${n})`:n);return e.split(r)}hasWhitespaceCharacter(e){let t=X(this,Fe);return Array.prototype.some.call(e,n=>t.has(n))}hasNonWhitespaceCharacter(e){let t=X(this,Fe);return Array.prototype.some.call(e,n=>!t.has(n))}isWhitespaceOnly(e){let t=X(this,Fe);return Array.prototype.every.call(e,n=>t.has(n))}dedentString(e){let t=sn(this,Cn,Do).call(this,e);return t===0?e:e.split(`
|
|
36
|
+
`).map(n=>n.slice(t)).join(`
|
|
37
|
+
`)}},Fe=new WeakMap,Cn=new WeakSet,Do=function(e){let t=Number.POSITIVE_INFINITY;for(let n of e.split(`
|
|
38
|
+
`)){if(n.length===0)continue;let r=this.getLeadingWhitespaceCount(n);if(r===0)return 0;n.length!==r&&r<t&&(t=r)}return t===Number.POSITIVE_INFINITY?0:t},Ou),ED=FD,yn=new ED(`
|
|
39
|
+
\r `);function Vt(e){return e.type==="JSXText"&&(yn.hasNonWhitespaceCharacter(De(e))||!/\n/.test(De(e)))}function AD(e){let{node:t,parent:n}=e;if(!Z(t)||!Z(n))return!1;let{index:r,siblings:u}=e,a;for(let o=r;o>0;o--){let i=u[o-1];if(!(i.type==="JSXText"&&!Vt(i))){a=i;break}}return(a==null?void 0:a.type)==="JSXExpressionContainer"&&a.expression.type==="JSXEmptyExpression"&&bn(a.expression)}function gD(e){return bn(e.node)||AD(e)}var qr=gD,xD=class extends Error{constructor(t,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(t[r])}.`);on(this,"name","UnexpectedNodeError");this.node=t}},Pt=xD;function CD(e){return e.type==="CallExpression"&&!e.optional&&e.arguments.length===1&&e.callee.type==="Identifier"&&e.callee.name==="Boolean"}var hD=0;function yo(e,t,n){var O;let{node:r,parent:u,grandparent:a,key:o}=e,i=o!=="body"&&(u.type==="IfStatement"||u.type==="WhileStatement"||u.type==="SwitchStatement"||u.type==="DoWhileStatement"),s=r.operator==="|>"&&((O=e.root.extra)==null?void 0:O.__isUsingHackPipeline),p=Yn(e,t,n,!1,i);if(i)return p;if(s)return m(p);if(o==="callee"&&Wt(u)||u.type==="UnaryExpression"&&!C(r)||q(u)&&!u.computed)return m([A([F,...p]),F]);let f=xt(u)||u.type==="JSXExpressionContainer"&&a.type==="JSXAttribute"||r.operator!=="|"&&u.type==="JsExpressionRoot"||r.type!=="NGPipeExpression"&&(u.type==="NGRoot"&&t.parser==="__ng_binding"||u.type==="NGMicrosyntaxExpression"&&a.type==="NGMicrosyntax"&&a.body.length===1)||r===u.body&&u.type==="ArrowFunctionExpression"||r!==u.body&&u.type==="ForStatement"||u.type==="ConditionalExpression"&&!xt(a)&&!Wt(a)||u.type==="TemplateLiteral"||o==="argument"&&u.type==="UnaryExpression"||o==="arguments"&&CD(u),D=u.type==="AssignmentExpression"||u.type==="VariableDeclarator"||u.type==="ClassProperty"||u.type==="PropertyDefinition"||u.type==="TSAbstractPropertyDefinition"||u.type==="ClassPrivateProperty"||ze(u),c=Xe(r.left)&&Cr(r.operator,r.left.operator);if(f||Kt(r)&&!c||!Kt(r)&&D)return m(p);if(p.length===0)return"";let d=Z(r.right),y=p.findIndex(M=>typeof M!="string"&&!Array.isArray(M)&&M.type===ge),h=p.slice(0,y===-1?1:y+1),g=p.slice(h.length,d?-1:void 0),x=Symbol("logicalChain-"+ ++hD),b=m([...h,A(g)],{id:x});if(!d)return b;let N=L(0,p,-1);return m([b,$t(N,{groupId:x})])}function Yn(e,t,n,r,u){var g;let{node:a}=e;if(!Xe(a))return[m(n())];let o=[];Cr(a.operator,a.left.operator)?o=e.call(()=>Yn(e,t,n,!0,u),"left"):o.push(m(n("left")));let i=Kt(a),s=a.right.type==="ChainExpression"?a.right.expression:a.right,p=(a.type==="NGPipeExpression"||a.operator==="|>"||TD(e,t))&&!Re(t.originalText,s),f=!C(s,S.Leading,yr)&&Re(t.originalText,s),D=a.type==="NGPipeExpression"?"|":a.operator,c=a.type==="NGPipeExpression"&&a.arguments.length>0?m(A([F,": ",j([T,": "],e.map(()=>de(2,m(n())),"arguments"))])):"",d;if(i)d=[D,Re(t.originalText,s)?A([T,n("right"),c]):[" ",n("right"),c]];else{let x=D==="|>"&&((g=e.root.extra)!=null&&g.__isUsingHackPipeline)?e.call(()=>Yn(e,t,n,!0,u),"right"):n("right");if(t.experimentalOperatorPosition==="start"){let b="";if(f)switch(et(x)){case We:b=x[0],x.shift();break;case $e:b=x.contents[0],x.contents.shift();break}d=[T,b,D," ",x,c]}else d=[p?T:"",D,p?" ":T,x,c]}let{parent:y}=e,h=C(a.left,S.Trailing|S.Line);if((h||!(u&&a.type==="LogicalExpression")&&y.type!==a.type&&a.left.type!==a.type&&a.right.type!==a.type)&&(d=m(d,{shouldBreak:h})),t.experimentalOperatorPosition==="start"?o.push(i||f?" ":"",d):o.push(p?"":" ",d),r&&C(a)){let x=Sr(re(e,o,t));return x.type===Ye?x.parts:Array.isArray(x)?x:[x]}return o}function Kt(e){return e.type!=="LogicalExpression"?!1:!!(Be(e.right)&&e.right.properties.length>0||ne(e.right)&&e.right.elements.length>0||Z(e.right))}var Fu=e=>e.type==="BinaryExpression"&&e.operator==="|";function TD(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&Fu(e.node)&&!e.hasAncestor(n=>!Fu(n)&&n.type!=="JsExpressionRoot")}function SD(e,t,n){let{node:r}=e;if(r.type.startsWith("NG"))switch(r.type){case"NGRoot":return n("node");case"NGPipeExpression":return yo(e,t,n);case"NGChainedExpression":return m(j([";",T],e.map(()=>vD(e)?n():["(",n(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":Eu(e)?" ":[";",T],n()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(r.name)?r.name:JSON.stringify(r.name);case"NGMicrosyntaxExpression":return[n("expression"),r.alias===null?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:u,parent:a}=e,o=Eu(e)||bD(e)||(u===1&&(r.key.name==="then"||r.key.name==="else"||r.key.name==="as")||u===2&&(r.key.name==="else"&&a.body[u-1].type==="NGMicrosyntaxKeyedExpression"&&a.body[u-1].key.name==="then"||r.key.name==="track"))&&a.body[0].type==="NGMicrosyntaxExpression";return[n("key"),o?" ":": ",n("expression")]}case"NGMicrosyntaxLet":return["let ",n("key"),r.value===null?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")];default:throw new Pt(r,"Angular")}}function Eu({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function bD(e){let{node:t}=e;return e.parent.body[1].key.name==="of"&&t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="track"&&t.key.type==="NGMicrosyntaxKey"}var BD=v(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function vD({node:e}){return Gn(e,BD)}function fo(e,t,n){let{node:r}=e;return m([j(T,e.map(n,"decorators")),Fo(r,t)?E:T])}function PD(e,t,n){return Eo(e.node)?[j(E,e.map(n,"declaration","decorators")),E]:""}function mo(e,t,n){let{node:r,parent:u}=e,{decorators:a}=r;if(!R(a)||Eo(u)||qr(e))return"";let o=r.type==="ClassExpression"||r.type==="ClassDeclaration"||Fo(r,t);return[e.key==="declaration"&&Ki(u)?E:o?_e:"",j(T,e.map(n,"decorators")),T]}function Fo(e,t){return e.decorators.some(n=>H(t.originalText,P(n)))}function Eo(e){var n;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=(n=e.declaration)==null?void 0:n.decorators;return R(t)&&Tn(e,t[0])}function Ao(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&Me(e.argument)}function Rr(e,t,n){let{node:r}=e,u=[],a=ir(r)?"elementTypes":"elements",o=r[a];if(o.length===0&&!r.inexact)u.push(m(["[",kn(e,t),"]"]));else{let i=L(0,o,-1),s=(i==null?void 0:i.type)!=="RestElement"&&!r.inexact,p=i===null,f=Symbol("array"),D=!t.__inJestEach&&o.length>1&&o.every((y,h,g)=>{if(!ne(y)&&!Be(y))return!1;let x=y==null?void 0:y.type,b=g[h+1];if(b&&x!==b.type)return!1;let N=ne(y)?"elements":"properties";return y[N]&&y[N].length>1})||C(r,S.Dangling|S.Line),c=go(r,t),d=s?p?",":Ia(t)?c?I(",","",{groupId:f}):I(","):"":"";u.push(m(["[",A([F,c?wD(e,t,n,d):[kD(e,t,n,a,r.inexact),d],Q(e,t)]),F,"]"],{shouldBreak:D,id:f}))}return u.push(oe(e),te(e,n)),u}function go(e,t){return ne(e)&&e.elements.length>0&&e.elements.every(n=>n&&(Me(n)||Ao(n)&&!C(n.argument))&&!C(n,S.Trailing|S.Line,r=>!H(t.originalText,k(r),{backwards:!0})))}function xo({node:e},{originalText:t}){let n=P(e);if(n===k(e))return!1;let{length:r}=t;for(;n<r&&t[n]!==",";)n=cr(t,Dr(t,n+1));return En(t,n)}function kD(e,t,n,r,u){let a=[];return e.each(({node:o,isLast:i})=>{a.push(o?m(n()):""),(!i||u)&&a.push([",",T,o&&xo(e,t)?F:""])},r),u&&a.push("..."),a}function wD(e,t,n,r){let u=[];return e.each(({isLast:a,next:o})=>{u.push([n(),a?r:","]),a||u.push(xo(e,t)?[E,E]:C(o,S.Leading|S.Line)?E:T)},"elements"),Aa(u)}function Au(e){return e.quasis.some(t=>t.value.raw.includes(`
|
|
40
|
+
`))}function Co(e,t){return(e.type==="TemplateLiteral"&&Au(e)||e.type==="TaggedTemplateExpression"&&Au(e.quasi))&&!H(t,k(e),{backwards:!0})}var ID=new WeakMap;function ho(e){return Ce(ID,e,t=>t.type==="ConditionalExpression"&&!ue(t,n=>n.type==="ObjectExpression"))}var ND=e=>e.type==="SequenceExpression";function MD(e,t,n,r={}){let u=[],a,o=[],i=!1,s=!r.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",p;(function x(){let{node:b}=e,N=jD(e,t,n,r);if(u.length===0)u.push(N);else{let{leading:O,trailing:M}=wa(e,t);u.push([O,N]),o.unshift(M)}s&&(i||(i=b.returnType&&ie(b).length>0||b.typeParameters||ie(b).some(O=>O.type!=="Identifier"))),!s||b.body.type!=="ArrowFunctionExpression"?(a=n("body",r),p=b.body):e.call(x,"body")})();let f=!Re(t.originalText,p)&&(ND(p)||LD(p,a,t)||!i&&ho(p)),D=e.key==="callee"&&Ct(e.parent),c=Symbol("arrow-chain"),d=OD(e,r,{signatureDocs:u,shouldBreak:i}),y=!1,h=!1,g=!1;return s&&(D||r.assignmentLayout)&&(h=!0,g=!C(e.node,S.Leading&S.Line),y=r.assignmentLayout==="chain-tail-arrow-chain"||D&&!f),a=JD(e,t,r,{bodyDoc:a,bodyComments:o,functionBody:p,shouldPutBodyOnSameLine:f}),m([m(h?A([g?F:"",d]):d,{shouldBreak:y,id:c})," =>",s?$t(a,{groupId:c}):m(a),s&&D?I(F,"",{groupId:c}):""])}function jD(e,t,n,r){let{node:u}=e,a=[];if(u.async&&a.push("async "),Ha(e,t))a.push(n(["params",0]));else{let i=r.expandLastArg||r.expandFirstArg,s=Lr(e,n);if(i){if(ae(s))throw new Fn;s=m(mn(s))}a.push(m([dt(e,t,n,i,!0),s]))}let o=Q(e,t,{marker:"commentBeforeArrow"});return o&&a.push(" ",o),a}function LD(e,t,n){var r,u;return ne(e)||Be(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||Z(e)||((r=t.label)==null?void 0:r.hug)!==!1&&(((u=t.label)==null?void 0:u.embed)||Co(e,n.originalText))}function OD(e,t,{signatureDocs:n,shouldBreak:r}){if(n.length===1)return n[0];let{parent:u,key:a}=e;return a!=="callee"&&Ct(u)||Xe(u)?m([n[0]," =>",A([T,j([" =>",T],n.slice(1))])],{shouldBreak:r}):a==="callee"&&Ct(u)||t.assignmentLayout?m(j([" =>",T],n),{shouldBreak:r}):m(A(j([" =>",T],n)),{shouldBreak:r})}function JD(e,t,n,{bodyDoc:r,bodyComments:u,functionBody:a,shouldPutBodyOnSameLine:o}){let{node:i,parent:s}=e,p=n.expandLastArg?tt(t,"all"):"",f=(n.expandLastArg||s.type==="JSXExpressionContainer")&&!C(i)?F:"";return o&&ho(a)?[" ",m([I("","("),A([F,r]),I("",")"),p,f]),u]:o?[" ",r,u]:[A([T,r,u]),p,f]}var qD=.25;function Xr(e,t){let{printWidth:n}=t;if(C(e))return!1;let r=n*qD;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=r||Ao(e)&&!C(e.argument))return!0;let u=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return u?u.length<=r:z(e)?ot(De(e),t).length<=r:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(`
|
|
41
|
+
`):e.type==="UnaryExpression"?Xr(e.argument,{printWidth:n}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=r-2:sr(e)}function Et(e){return q(e)||e.type==="BindExpression"&&!!e.object}function RD(e){if(e.length<=1)return!1;let t=0;for(let n of e)if(Xt(n)){if(t+=1,t>1)return!0}else if(n=Qe(n),J(n)){for(let r of he(n))if(Xt(r))return!0}return!1}function To(e){let{node:t,parent:n,key:r}=e;return r==="callee"&&J(t)&&J(n)&&n.arguments.length>0&&t.arguments.length>n.arguments.length}var XD=new Set(["!","-","+","~"]),WD=v(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]);function Ie(e,t=2){if(t<=0)return!1;let n=r=>Ie(r,t-1);if(e=Qe(e),Wu(e))return St(e.pattern??e.regex.pattern)<=5;if(sr(e)||WD(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(r=>!r.value.raw.includes(`
|
|
42
|
+
`))&&e.expressions.every(n);if(Be(e))return e.properties.every(r=>!r.computed&&(r.shorthand||r.value&&n(r.value)));if(ne(e))return e.elements.every(r=>r===null||n(r));if(Ct(e)){if(e.type==="ImportExpression"||Ie(e.callee,t)){let r=he(e);return r.length<=t&&r.every(n)}return!1}return q(e)?Ie(e.object,t)&&Ie(e.property,t):e.type==="UnaryExpression"&&XD.has(e.operator)||e.type==="UpdateExpression"?Ie(e.argument,t):!1}function _D(e,t,n){let{node:r}=e,u=he(r);if(u.length===0)return m(["(",kn(e,t),")"]);let a=u.length-1;if(GD(u)){let D=["("];return _n(e,(c,d)=>{D.push(n()),d!==a&&D.push(", ")}),D.push(")"),D}let o=!1,i=[];_n(e,({node:D},c)=>{let d=n();c===a||(je(D,t)?(o=!0,d=[d,",",E,E]):d=[d,",",T]),i.push(d)});let s=e.root.type!=="NGRoot"&&r.type!=="ImportExpression"&&r.type!=="TSImportType"&&r.type!=="TSExternalModuleReference"?tt(t,"all"):"";function p(){return m(["(",A([T,...i]),s,T,")"],{shouldBreak:!0})}if(o||e.parent.type!=="Decorator"&&RD(u))return p();if(UD(u)){let D=i.slice(1);if(D.some(ae))return p();let c;try{c=n(eu(r,0),{expandFirstArg:!0})}catch(d){if(d instanceof Fn)return p();throw d}return ae(c)?[_e,nt([["(",m(c,{shouldBreak:!0}),", ",...D,")"],p()])]:nt([["(",c,", ",...D,")"],["(",m(c,{shouldBreak:!0}),", ",...D,")"],p()])}if($D(u,i,t)){let D=i.slice(0,-1);if(D.some(ae))return p();let c;try{c=n(eu(r,-1),{expandLastArg:!0})}catch(d){if(d instanceof Fn)return p();throw d}return ae(c)?[_e,nt([["(",...D,m(c,{shouldBreak:!0}),")"],p()])]:nt([["(",...D,c,")"],["(",...D,m(c,{shouldBreak:!0}),")"],p()])}let f=["(",A([F,...i]),s,F,")"];return To(e)?f:m(f,{shouldBreak:i.some(ae)||o})}function gn(e,t=!1){if(Be(e)&&(e.properties.length>0||C(e))||ne(e)&&(e.elements.length>0||C(e))||(be(e)||e.type==="TSTypeAssertion")&&gn(e.expression)||e.type==="FunctionExpression"||e.type==="DoExpression"||e.type==="ModuleExpression")return!0;if(e.type==="ArrowFunctionExpression"){let{body:n}=e;if(n.type==="BlockStatement"||Z(n)||Be(n)||ne(n)||n.type==="ArrowFunctionExpression"&&gn(n,!0)||!t&&(n.type==="ConditionalExpression"||J(Qe(n))))return!0}return!1}function $D(e,t,n){var a,o;if(e.length===1){let i=L(0,t,-1);if((a=i.label)!=null&&a.embed&&((o=i.label)==null?void 0:o.hug)!==!1)return!0}let r=L(0,e,-1),u=L(0,e,-2);return!C(r,S.Leading)&&!C(r,S.Trailing)&&gn(r)&&(!u||u.type!==r.type)&&(e.length!==2||u.type!=="ArrowFunctionExpression"||!ne(r))&&!(e.length>1&&go(r,n))}function UD(e){if(e.length!==2)return!1;let[t,n]=e;return t.type==="ModuleExpression"&&VD(n)?!0:!C(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&n.type!=="FunctionExpression"&&n.type!=="ArrowFunctionExpression"&&n.type!=="ConditionalExpression"&&So(n)&&!gn(n)}function So(e){if(e.type==="ParenthesizedExpression")return So(e.expression);if(be(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let n=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;(n==null?void 0:n.params.length)===1&&(t=n.params[0])}return vr(t)&&Ie(e.expression,1)}return Ct(e)&&he(e).length>1?!1:Xe(e)?Ie(e.left,1)&&Ie(e.right,1):Wu(e)||Ie(e)}function GD(e){return e.length===2?gu(e,0):e.length===3?e[0].type==="Identifier"&&gu(e,1):!1}function gu(e,t){let n=e[t],r=e[t+1];return n.type==="ArrowFunctionExpression"&&ie(n).length===0&&n.body.type==="BlockStatement"&&r.type==="ArrayExpression"&&e.every(u=>!C(u))}function VD(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return ze(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||z(t.key)&&t.key.value==="type")&&z(t.value)&&t.value.value==="module":!1}var Zn=_D;function KD(e,t,n){return[n("object"),m(A([F,bo(e,t,n)]))]}function bo(e,t,n){return["::",n("callee")]}var HD=e=>J(e)&&he(e).length>0;function zD(e){let{node:t,ancestors:n}=e;for(let r of n){if(!(q(r)&&r.object===t||r.type==="TSNonNullExpression"&&r.expression===t))return r.type==="NewExpression"&&r.callee===t;t=r}return!1}function QD(e,t,n){var p;let r=n("object"),u=Bo(e,t,n),{node:a}=e,o=e.findAncestor(f=>!(q(f)||f.type==="TSNonNullExpression")),i=e.findAncestor(f=>!it(f)),s=o.type==="BindExpression"||o.type==="AssignmentExpression"&&o.left.type!=="Identifier"||zD(e)||a.computed||a.object.type==="Identifier"&&a.property.type==="Identifier"&&!q(i)||(i.type==="AssignmentExpression"||i.type==="VariableDeclarator")&&(HD(Qe(a.object))||((p=r.label)==null?void 0:p.memberChain));return Zt(r.label,[r,xe,s?u:m(A([F,u]))])}function Bo(e,t,n){let r=n("property"),{node:u}=e,a=oe(e);return u.computed?!u.property||Me(u.property)?[a,"[",r,"]"]:m([a,"[",A([F,r]),F,"]"]):[a,".",r]}function YD(e,t,n){let r=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",u=[];function a(w){let{originalText:G}=t,le=Sn(G,P(w));return G.charAt(le)===")"?le!==!1&&En(G,le+1):je(w,t)}function o(){let{node:w}=e;if(J(w)&&(Et(w.callee)||J(w.callee))&&!ce(e,t)){let G=a(w);u.unshift({node:w,hasTrailingEmptyLine:G,printed:[re(e,[oe(e),n("typeArguments"),Zn(e,t,n)],t),G?E:""]}),e.call(o,"callee")}else Et(w)&&!ce(e,t)?(u.unshift({node:w,printed:re(e,q(w)?Bo(e,t,n):bo(e,t,n),t)}),e.call(o,"object")):w.type==="ChainExpression"&&!ce(e,t)?e.call(o,"expression"):w.type==="TSNonNullExpression"&&!ce(e,t)?(u.unshift({node:w,printed:re(e,"!",t)}),e.call(o,"expression")):u.unshift({node:w,printed:n()})}let{node:i}=e;u.unshift({node:i,printed:[oe(e),n("typeArguments"),Zn(e,t,n)]}),i.callee&&e.call(o,"callee");let s=[],p=[u[0]],f=1;for(;f<u.length&&(u[f].node.type==="TSNonNullExpression"||u[f].node.type==="ChainExpression"||J(u[f].node)||q(u[f].node)&&u[f].node.computed&&Me(u[f].node.property));++f)p.push(u[f]);if(!J(u[0].node))for(;f+1<u.length&&Et(u[f].node)&&Et(u[f+1].node);++f)p.push(u[f]);s.push(p),p=[];let D=!1;for(;f<u.length;++f){if(D&&Et(u[f].node)){if(u[f].node.computed&&Me(u[f].node.property)){p.push(u[f]);continue}s.push(p),p=[],D=!1}(J(u[f].node)||u[f].node.type==="ImportExpression")&&(D=!0),p.push(u[f]),C(u[f].node,S.Trailing)&&(s.push(p),p=[],D=!1)}p.length>0&&s.push(p);function c(w){return/^[A-Z]|^[$_]+$/.test(w)}function d(w){return w.length<=t.tabWidth}function y(w){var It;let G=(It=w[1][0])==null?void 0:It.node.computed;if(w[0].length===1){let ke=w[0][0].node;return ke.type==="ThisExpression"||ke.type==="Identifier"&&(c(ke.name)||r&&d(ke.name)||G)}let le=L(0,w[0],-1).node;return q(le)&&le.property.type==="Identifier"&&(c(le.property.name)||G)}let h=s.length>=2&&!C(s[1][0].node)&&y(s);function g(w){return w.map(G=>G.printed)}function x(w){return w.length===0?"":A([E,j(E,w.map(g))])}let b=s.map(g),N=b,O=h?3:2,M=s.flat(),V=M.slice(1,-1).some(w=>C(w.node,S.Leading))||M.slice(0,-1).some(w=>C(w.node,S.Trailing))||s[O]&&C(s[O][0].node,S.Leading);if(s.length<=O&&!V&&s.every(w=>!L(0,w,-1).hasTrailingEmptyLine))return To(e)?N:m(N);let ee=L(0,s[h?1:0],-1).node,B=!J(ee)&&a(ee),_=[g(s[0]),h?s.slice(1,2).map(g):"",B?E:"",x(s.slice(h?2:1))],U=u.map(({node:w})=>w).filter(J);function Se(){let w=L(0,L(0,s,-1),-1).node,G=L(0,b,-1);return J(w)&&ae(G)&&U.slice(0,-1).some(le=>le.arguments.some(Xt))}let Pe;return V||U.length>2&&U.some(w=>w.arguments.some(G=>!Ie(G)))||b.slice(0,-1).some(ae)||Se()?Pe=m(_):Pe=[ae(N)||B?_e:"",nt([N,_])],Zt({memberChain:!0},Pe)}var ZD=YD;function xn(e,t,n){var D;let{node:r}=e,u=r.type==="NewExpression",a=oe(e),o=he(r),i=r.type!=="TSImportType"&&r.typeArguments?[n("typeArguments"),xe]:"",s=o.length===1&&Co(o[0],t.originalText);if(s||ty(e)||ny(e)||Bn(r,e.parent)){let c=[];if(_n(e,()=>{c.push(n())}),!(s&&((D=c[0].label)!=null&&D.embed)))return[xu(e,n),a,i,"(",j(", ",c),")"]}let p=r.type==="ImportExpression"||r.type==="TSImportType"||r.type==="TSExternalModuleReference";if(!p&&!u&&Et(r.callee)&&!e.call(()=>ce(e,t),"callee",...r.callee.type==="ChainExpression"?["expression"]:[]))return ZD(e,t,n);let f=[xu(e,n),a,i,Zn(e,t,n)];return p||J(r.callee)?m(f):f}function xu(e,t){let{node:n}=e;return n.type==="ImportExpression"?`import${n.phase?`.${n.phase}`:""}`:n.type==="TSImportType"?"import":n.type==="TSExternalModuleReference"?"require":[n.type==="NewExpression"?"new ":"",t("callee"),xe]}var ey=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function ty(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&Pr(t.callee,ey)))return!1;let n=he(t);return n.length===1&&z(n[0])&&!C(n[0])}function ny(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let n=he(t);return t.callee.name==="require"?(n.length===1&&z(n[0])||n.length>1)&&!C(n[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?n.length===1||n.length===2&&n[0].type==="ArrayExpression"||n.length===3&&z(n[0])&&n[1].type==="ArrayExpression":!1}function nn(e,t,n,r,u,a){let o=ay(e,t,n,r,a),i=a?n(a,{assignmentLayout:o}):"";switch(o){case"break-after-operator":return m([m(r),u,m(A([T,i]))]);case"never-break-after-operator":return m([m(r),u," ",i]);case"fluid":{let s=Symbol("assignment");return m([m(r),u,m(A(T),{id:s}),xe,$t(i,{groupId:s})])}case"break-lhs":return m([r,u," ",m(i)]);case"chain":return[m(r),u,T,i];case"chain-tail":return[m(r),u,A([T,i])];case"chain-tail-arrow-chain":return[m(r),u,i];case"only-left":return r}}function ry(e,t,n){let{node:r}=e;return nn(e,t,n,n("left"),[" ",r.operator],"right")}function uy(e,t,n){return nn(e,t,n,n("id")," =","init")}function ay(e,t,n,r,u){let{node:a}=e,o=a[u];if(!o)return"only-left";let i=!fn(o);if(e.match(fn,vo,f=>!i||f.type!=="ExpressionStatement"&&f.type!=="VariableDeclaration"))return i?o.type==="ArrowFunctionExpression"&&o.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!i&&fn(o.right)||ye(o)&&!wn(o)||Re(t.originalText,o)||C(o,S.Leading,co))return"break-after-operator";if(a.type==="ImportAttribute"||o.type==="CallExpression"&&o.callee.name==="require"||e.root.type==="JsonRoot")return"never-break-after-operator";let s=qp(r);if(iy(a)||ly(a)||Po(a)&&s)return"break-lhs";let p=cy(a,r,t);return e.call(()=>oy(e,t,n,p),u)?"break-after-operator":sy(a)?"break-lhs":!s&&(p||o.type==="TemplateLiteral"||o.type==="TaggedTemplateExpression"||Gi(o)||Me(o)||o.type==="ClassExpression")?"never-break-after-operator":"fluid"}function oy(e,t,n,r){let u=e.node;if(Xe(u)&&!Kt(u))return!0;switch(u.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!yy(u))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:p}=u;return Xe(p)&&!Kt(p)}let{consequent:i,alternate:s}=u;return i.type==="ConditionalExpression"||s.type==="ConditionalExpression"}case"ClassExpression":return R(u.decorators)}if(r)return!1;let a=u,o=[];for(;;)if(a.type==="UnaryExpression"||a.type==="AwaitExpression"||a.type==="YieldExpression"&&a.argument!==null)a=a.argument,o.push("argument");else if(a.type==="TSNonNullExpression")a=a.expression,o.push("expression");else break;return!!(z(a)||e.call(()=>ko(e,t,n),...o))}function iy(e){if(vo(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(n=>{var r;return ze(n)&&(!n.shorthand||((r=n.value)==null?void 0:r.type)==="AssignmentPattern")})}return!1}function fn(e){return e.type==="AssignmentExpression"}function vo(e){return fn(e)||e.type==="VariableDeclarator"}function sy(e){let t=py(e);if(R(t)){let n=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(r=>r[n]||r.default))return!0}return!1}function py(e){var t;if(_u(e))return(t=e.typeParameters)==null?void 0:t.params}function ly(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=Cu(t.typeAnnotation);return R(n)&&n.length>1&&n.some(r=>R(Cu(r))||r.type==="TSConditionalType")}function Po(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}function Cu(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t==null?void 0:t.params}function ko(e,t,n,r=!1){var o;let{node:u}=e,a=()=>ko(e,t,n,!0);if(it(u))return e.call(a,"expression");if(J(u)){if((o=xn(e,t,n).label)!=null&&o.memberChain)return!1;let i=he(u);return!(i.length===0||i.length===1&&Xr(i[0],t))||Dy(u,n)?!1:e.call(a,"callee")}return q(u)?e.call(a,"object"):r&&(u.type==="Identifier"||u.type==="ThisExpression")}function cy(e,t,n){return ze(e)?(t=Sr(t),typeof t=="string"&&St(t)<n.tabWidth+3):!1}function Dy(e,t){var r;let n=(r=e.typeArguments)==null?void 0:r.params;if(R(n)){if(n.length>1)return!0;if(n.length===1){let u=n[0];if(ye(u)||Qt(u)||u.type==="TSTypeLiteral"||u.type==="ObjectTypeAnnotation")return!0}if(ae(t("typeArguments")))return!0}return!1}function hu(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function yy(e){return hu(e.checkType)||hu(e.extendsType)}function fy(e,t,n){let{node:r}=e,u=["await"];if(r.argument){u.push(" ",n("argument"));let{parent:a}=e;if(J(a)&&a.callee===r||q(a)&&a.object===r){u=[A([F,...u]),F];let o=e.findAncestor(i=>i.type==="AwaitExpression"||i.type==="BlockStatement");if((o==null?void 0:o.type)!=="AwaitExpression"||!ue(o.argument,i=>i===r))return m(u)}}return u}var dy=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let n=this[t];if(e(n,t,this))return n}},my=ar("findLast",function(){if(Array.isArray(this))return dy}),Fy=my;function er(e,t,n,r){let{node:u}=e,a=[],o=Fy(0,u[r],i=>i.type!=="EmptyStatement");return e.each(({node:i})=>{i.type!=="EmptyStatement"&&(a.push(n()),i!==o&&(a.push(E),je(i,t)&&a.push(E)))},r),a}function wo(e,t,n){let r=Ey(e,t,n),{node:u,parent:a}=e;if(u.type==="Program"&&(a==null?void 0:a.type)!=="ModuleExpression")return r?[r,E]:"";let o=[];if(u.type==="StaticBlock"&&o.push("static "),o.push("{"),r)o.push(A([E,r]),E);else{let i=e.grandparent;a.type==="ArrowFunctionExpression"||a.type==="FunctionExpression"||a.type==="FunctionDeclaration"||a.type==="ComponentDeclaration"||a.type==="HookDeclaration"||a.type==="ObjectMethod"||a.type==="ClassMethod"||a.type==="ClassPrivateMethod"||a.type==="ForStatement"||a.type==="WhileStatement"||a.type==="DoWhileStatement"||a.type==="DoExpression"||a.type==="ModuleExpression"||a.type==="CatchClause"&&!i.finalizer||a.type==="TSModuleDeclaration"||a.type==="MatchStatementCase"||u.type==="StaticBlock"||o.push(E)}return o.push("}"),o}function Ey(e,t,n){let{node:r}=e,u=R(r.directives),a=r.body.some(s=>s.type!=="EmptyStatement"),o=C(r,S.Dangling);if(!u&&!a&&!o)return"";let i=[];return u&&(i.push(er(e,t,n,"directives")),(a||o)&&(i.push(E),je(L(0,r.directives,-1),t)&&i.push(E))),a&&i.push(er(e,t,n,"body")),o&&i.push(Q(e,t)),i}function Ay(e){let t=new WeakMap;return n=>Ce(t,n,()=>Symbol(e))}var gy=Ay,Io=["properties","indexers","callProperties","internalSlots"];function xy(e,t){let{node:n}=e;if(n.type==="ClassBody"||n.type==="TSInterfaceBody"){e.each(t,"body");return}if(n.type==="TSTypeLiteral"){e.each(t,"members");return}if(n.type==="RecordDeclarationBody"){e.each(t,"elements");return}if(n.type==="ObjectTypeAnnotation"){let r=Io.flatMap(u=>e.map(({node:a,index:o})=>({node:a,loc:k(a),selector:[u,o]}),u)).sort((u,a)=>u.loc-a.loc);for(let[u,{node:a,selector:o}]of r.entries())e.call(()=>{var i;return t({node:a,next:(i=r[u+1])==null?void 0:i.node,isLast:u===r.length-1})},...o)}}function Cy(e){if(e.type==="ObjectTypeAnnotation")return Io.some(n=>R(e[n]));let t=e.type==="RecordDeclarationBody"?e.elements:e.body;return R(t)}function Wr(e,t,n){let{node:r}=e,u=[],a=r.type==="ObjectTypeAnnotation",o=r.type==="RecordDeclarationBody",i=!No(e),s=i?T:E,p=C(r,S.Dangling),[f,D]=a&&r.exact?["{|","|}"]:"{}",c;if(xy(e,({node:d,next:y,isLast:h})=>{if(c??(c=d),u.push(n()),!o&&i&&a){let{parent:g}=e;g.inexact||!h?u.push(","):u.push(tt(t))}o&&d.type!=="MethodDefinition"&&u.push(","),!o&&!i&&(hy({node:d,next:y},t)||jo({node:d,next:y},t))&&u.push(";"),h||(u.push(s),je(d,t)&&u.push(E))}),p&&u.push(Q(e,t)),r.type==="ObjectTypeAnnotation"&&r.inexact){let d;C(r,S.Dangling)?d=[C(r,S.Line)||H(t.originalText,P(L(0,Ae(r),-1)))?E:T,"..."]:d=[c?T:"","..."],u.push(d)}if(i){let d=C(r,S.Dangling|S.Line)||t.objectWrap==="preserve"&&c&&se(t.originalText,k(r),k(c)),y;if(u.length===0)y=f+D;else{let h=t.bracketSpacing?T:F;y=[f,A([h,...u]),h,D]}return e.match(void 0,(h,g)=>g==="typeAnnotation",(h,g)=>g==="typeAnnotation",qt)||e.match(void 0,(h,g)=>h.type==="FunctionTypeParam"&&g==="typeAnnotation",qt)?y:m(y,{shouldBreak:d})}return[f,u.length>0?[A([E,u]),E]:"",D]}function No(e){let{node:t}=e;if(t.type==="ObjectTypeAnnotation"){let{key:n,parent:r}=e;return n==="body"&&(r.type==="InterfaceDeclaration"||r.type==="DeclareInterface"||r.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"||t.type==="RecordDeclarationBody"}function Je(e,t){let{parent:n}=e;return e.callParent(No)?n.type==="ObjectTypeAnnotation"?";":$(t):n.type==="TSTypeLiteral"?e.isLast?t.semi?I(";"):"":t.semi||jo({node:e.node,next:e.next},t)?";":I("",";"):""}var Tu=v(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),Mo=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:n}=e.key;return t==="Identifier"&&(n==="static"||n==="get"||n==="set")};function hy({node:e,next:t},n){var r;if(n.semi||!Tu(e))return!1;if(!e.value&&Mo(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let u=(r=t.key)==null?void 0:r.name;if(u==="in"||u==="instanceof")return!0}if(Tu(t)&&!t.static&&t.variance&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let u=t.value?t.value.generator:t.generator;return!!(t.computed||u)}case"TSIndexSignature":return!0}return!1}var Ty=v(["TSPropertySignature"]);function jo({node:e,next:t},n){return n.semi||!Ty(e)?!1:Mo(e)?!0:t&&t.type==="TSCallSignatureDeclaration"?!(e.type==="TSPropertySignature"&&e.typeAnnotation):!1}var Sy=gy("heritageGroup"),by=v(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function _r(e,t,n){let r=By(e,t,n),{node:u}=e;if(u.type==="ClassExpression"&&R(u.decorators)){let a=mo(e,t,n);return ce(e,t)?[A([F,a,r]),F]:[a,r]}return r}function By(e,t,n){let{node:r}=e,u=by(r),a=r.type==="RecordDeclaration",o=u?"interface":a?"record":"class",i=[me(e),vn(e),o],s=Oo(e),p=[],f=[];if(r.type!=="InterfaceTypeAnnotation"){r.id&&p.push(" ");for(let c of["id","typeParameters"])if(r[c]){let{leading:d,trailing:y}=e.call(()=>wa(e,t),c);p.push(d,n(c),A(y))}}if(r.superClass){let c=[ky(e,t,n),n("superTypeArguments")],d=e.call(()=>["extends ",re(e,c,t)],"superClass");s?f.push(T,m(d)):f.push(" ",d)}else f.push(On(e,t,n,"extends"));f.push(On(e,t,n,"mixins"),On(e,t,n,"implements"));let D;return s?(D=Sy(r),i.push(m([...p,A(f)],{id:D}))):i.push(...p,...f),!u&&s&&Cy(r.body)?i.push(I(E," ",{groupId:D})):i.push(" "),i.push(n("body")),i}function Lo(e){let t=e.superClass?1:0;for(let n of["extends","mixins","implements"])if(Array.isArray(e[n])&&(t+=e[n].length),t>1)return!0;return t>1}function vy(e){var r,u,a;let{node:t}=e;if(C(t.id,S.Trailing)||C(t.typeParameters,S.Trailing)||C(t.superClass)||Lo(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!t.superTypeArguments&&q(Qe(t.superClass));let n=((r=t.extends)==null?void 0:r[0])??((u=t.mixins)==null?void 0:u[0])??((a=t.implements)==null?void 0:a[0]);return n?n.type==="InterfaceExtends"&&n.id.type==="QualifiedTypeIdentifier"&&!n.typeParameters||(n.type==="TSClassImplements"||n.type==="TSInterfaceHeritage")&&q(n.expression)&&!n.typeArguments:!1}var Py=new WeakMap;function Oo(e){return Ce(Py,e.node,()=>vy(e))}function On(e,t,n,r){let{node:u}=e;if(!R(u[r]))return"";let a=Q(e,t,{marker:r}),o=j([",",T],e.map(n,r));if(!Lo(u)){let i=[`${r} `,a,o];return Oo(e)?[T,m(i)]:[" ",i]}return[T,a,a&&E,r,m(A([T,o]))]}function ky(e,t,n){let r=n("superClass"),{parent:u}=e;return u.type==="AssignmentExpression"?m(I(["(",A([F,r]),F,")"],r)):r}function Jo(e,t,n){let{node:r}=e,u=[];return R(r.decorators)&&u.push(fo(e,t,n)),u.push(Pn(r)),r.static&&u.push("static "),u.push(vn(e)),r.override&&u.push("override "),u.push(zn(e,t,n)),u}function qo(e,t,n){let{node:r}=e,u=[];R(r.decorators)&&u.push(fo(e,t,n)),u.push(me(e),Pn(r)),r.static&&u.push("static "),u.push(vn(e)),r.override&&u.push("override "),r.readonly&&u.push("readonly "),r.variance&&u.push(n("variance")),(r.type==="ClassAccessorProperty"||r.type==="AccessorProperty"||r.type==="TSAbstractAccessorProperty")&&u.push("accessor "),u.push(He(e,t,n),oe(e),Na(e),te(e,n));let a=r.type==="TSAbstractPropertyDefinition"||r.type==="TSAbstractAccessorProperty";return[nn(e,t,n,u," =",a?void 0:"value"),$(t)]}function wy(e,t){let n=Ae(e,S.Leading);if(n.length===0)return!1;let[r]=n,u=t.originalText,a=k(r);return se(u,a,P(r))||H(u,a,{backwards:!0})}function kt(e,t,n,r="body"){return e.call(({node:u})=>{let a=n();if(u.type==="EmptyStatement")return C(u,S.Leading)?[" ",a]:a;let o=u.type==="BlockStatement";return wy(u,t)?o?[E,a]:A([E,a]):o||u.type==="IfStatement"&&e.parent.type==="IfStatement"&&e.key==="alternate"?[" ",a]:A([T,a])},r)}var Iy=(e,t,n)=>kt(e,t,n,"consequent"),Ny=(e,t,n)=>kt(e,t,n,"alternate");function My(e,t,n){return[m(["do",kt(e,t,n)]),e.node.body.type==="BlockStatement"?" ":E,"while (",Nr(e,t,n),")",$(t)]}var jy=v(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function Ro(e){return jy(e)?Ro(e.expression):e}var Ly=v(["FunctionExpression","ArrowFunctionExpression"]);function Oy(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function Jy(e,t){if(Za(e,t)){let n=Ro(e.node.expression);return Ly(n)||Oy(n)}return!(!t.semi||Qa(e,t)||Ya(e,t))}function qy(e,t,n){let r=[n("expression")];if(Or(e,t)){if(eo(e,t)){let{node:u}=e,a=L(0,Ae(u,S.Leading),-1),o=Ir(e,t,{filter:i=>i===a});return re(e,[";",o,...r],t,{filter:i=>i!==a})}r.unshift(";")}else Jy(e,t)&&r.push(";");return r}function Ry(e,t,n){let{node:r}=e,u=kt(e,t,n),a=Q(e,t),o=a?[a,F]:"";return!r.init&&!r.test&&!r.update?[o,m(["for (;;)",u])]:[o,m(["for (",m([A([F,n("init"),";",T,n("test"),";",r.update?[T,n("update")]:""]),F]),")",u])]}function Xy(e,t,n){let{node:r}=e,u=r.type==="ForOfStatement";return m(["for",u&&r.await?" await":""," (",n("left")," ",u?"of":"in"," ",n("right"),")",kt(e,t,n)])}function Wy(e,t,n){if(t.__isVueBindings||t.__isVueForBindingLeft){let r=e.map(n,"program","body",0,"params");if(r.length===1)return r[0];let u=j([",",T],r);return t.__isVueForBindingLeft?["(",A([F,m(u)]),F,")"]:u}if(t.__isEmbeddedTypescriptGenericParameters){let r=e.map(n,"program","body",0,"typeParameters","params");return j([",",T],r)}}var _y=(e,{originalText:t})=>Pa(t,k(e));function Xo(e){return st(L(0,Ae(e,S.Dangling),-1))}function $y(e,t,n){let{node:r}=e,u=m(["if (",Nr(e,t,n),")",Iy(e,t,n)]);if(!r.alternate)return u;let{consequent:a}=r,o=a.type==="BlockStatement",i=[u],s=o;o||(i.push(E),s=!1);let p=Ae(r,S.Dangling);if(p.length>0){let[f]=p;_y(f,t)?i.push(o?[E,E]:E):H(t.originalText,k(f),{backwards:!0})?i.push(o?E:""):i.push(" "),i.push(Q(e,t),Xo(r)||H(t.originalText,P(L(0,p,-1)))?E:" "),s=!1}return i.push(s?" ":"","else",m(Ny(e,t,n))),i}function Uy(e,t){let{node:n}=e;switch(n.type){case"RegExpLiteral":return Su(n);case"BigIntLiteral":return tr(n.extra.raw);case"NumericLiteral":return Ut(n.extra.raw);case"StringLiteral":return at(ot(n.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(n.value);case"DirectiveLiteral":return bu(n.extra.raw,t);case"Literal":{if(n.regex)return Su(n.regex);if(n.bigint)return tr(n.raw);let{value:r}=n;return typeof r=="number"?Ut(n.raw):typeof r=="string"?Gy(e)?bu(n.raw,t):at(ot(n.raw,t)):String(r)}}}function Gy(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function tr(e){return e.toLowerCase()}function Su({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var Vy="use strict";function bu(e,t){let n=e.slice(1,-1);if(n===Vy||!(n.includes('"')||n.includes("'"))){let r=t.singleQuote?"'":'"';return r+n+r}return e}var Wo=v(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),Ky=v(["EnumBody","EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]);function wt(e,t,n){var g;let{node:r,parent:u}=e,a=Ky(r),o=r.type==="TSEnumBody"||a,i=Wo(r),s=a&&r.hasUnknownMembers,p=o?"members":i?"attributes":"properties",f=r[p],D=o||r.type==="ObjectPattern"&&u.type!=="FunctionDeclaration"&&u.type!=="FunctionExpression"&&u.type!=="ArrowFunctionExpression"&&u.type!=="ObjectMethod"&&u.type!=="ClassMethod"&&u.type!=="ClassPrivateMethod"&&u.type!=="AssignmentPattern"&&u.type!=="CatchClause"&&r.properties.some(x=>x.value&&(x.value.type==="ObjectPattern"||x.value.type==="ArrayPattern"))||r.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&f.length>0&&Hy(r,f[0],t),c=[],d=e.map(({node:x})=>{let b=[...c,n()];return c=[",",T],je(x,t)&&c.push(E),b},p);if(s){let x;if(C(r,S.Dangling)){let b=C(r,S.Line);x=[Q(e,t),b||H(t.originalText,P(L(0,Ae(r),-1)))?E:T,"..."]}else x=["..."];d.push([...c,...x])}let y=!(s||((g=L(0,f,-1))==null?void 0:g.type)==="RestElement"),h;if(d.length===0)h=m(["{",kn(e,t),"}",oe(e),te(e,n)]);else{let x=t.bracketSpacing?T:F;h=["{",A([x,...d]),y?tt(t):"",x,"}",oe(e),te(e,n)]}return e.match(x=>x.type==="ObjectPattern"&&!R(x.decorators),qt)||Ke(r)&&(e.match(void 0,(x,b)=>b==="typeAnnotation",(x,b)=>b==="typeAnnotation",qt)||e.match(void 0,(x,b)=>x.type==="FunctionTypeParam"&&b==="typeAnnotation",qt))||!D&&e.match(x=>x.type==="ObjectPattern",x=>x.type==="AssignmentExpression"||x.type==="VariableDeclarator")?h:m(h,{shouldBreak:D})}function Hy(e,t,n){let r=n.originalText,u=k(t),a=k(e);return Wo(e)&&(a=Te(n).lastIndexOf("{",u)),se(r,a,u)}function zy(e,t,n){let{node:r}=e;return["import",r.phase?` ${r.phase}`:"",Uo(r),Vo(e,t,n),Go(e,t,n),Ho(e,t,n),$(t)]}var _o=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function $o(e,t,n){let{node:r}=e,u=[PD(e,t,n),me(e),"export",_o(r)?" default":""],{declaration:a,exported:o}=r;return C(r,S.Dangling)&&(u.push(" ",Q(e,t)),Xo(r)&&u.push(E)),a?u.push(" ",n("declaration")):(u.push(Zy(r)),r.type==="ExportAllDeclaration"||r.type==="DeclareExportAllDeclaration"?(u.push(" *"),o&&u.push(" as ",n("exported"))):u.push(Vo(e,t,n)),u.push(Go(e,t,n),Ho(e,t,n))),u.push(Yy(r,t)),u}var Qy=v(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function Yy(e,t){return!e.declaration||_o(e)&&!Qy(e.declaration)?$(t):""}function $r(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function Uo(e,t){return $r(e.importKind,t)}function Zy(e){return $r(e.exportKind)}function Go(e,t,n){let{node:r}=e;return r.source?[Ko(r,t)?" from":""," ",n("source")]:""}function Vo(e,t,n){let{node:r}=e;if(!Ko(r,t))return"";let u=[" "];if(R(r.specifiers)){let a=[],o=[];e.each(()=>{let i=e.node.type;if(i==="ExportNamespaceSpecifier"||i==="ExportDefaultSpecifier"||i==="ImportNamespaceSpecifier"||i==="ImportDefaultSpecifier")a.push(n());else if(i==="ExportSpecifier"||i==="ImportSpecifier")o.push(n());else throw new Pt(r,"specifier")},"specifiers"),u.push(j(", ",a)),o.length>0&&(a.length>0&&u.push(", "),o.length>1||a.length>0||r.specifiers.some(i=>C(i))?u.push(m(["{",A([t.bracketSpacing?T:F,j([",",T],o)]),tt(t),t.bracketSpacing?T:F,"}"])):u.push(["{",t.bracketSpacing?" ":"",...o,t.bracketSpacing?" ":"","}"]))}else u.push("{}");return u}function Ko(e,t){return e.type!=="ImportDeclaration"||R(e.specifiers)||e.importKind==="type"?!0:Te(t).slice(k(e),k(e.source)).trimEnd().endsWith("from")}function e0(e,t){var r;let n=Te(t).slice(P(e.source),(r=e.attributes)!=null&&r[0]?k(e.attributes[0]):P(e)).trimStart();return n.startsWith("assert")?"assert":n.startsWith("with")||R(e.attributes)?"with":void 0}var t0=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[n]=t,{type:r,key:u,value:a}=n;return r==="ImportAttribute"&&(u.type==="Identifier"&&u.name==="type"||z(u)&&u.value==="type")&&z(a)&&!C(n)&&!C(u)&&!C(a)};function Ho(e,t,n){let{node:r}=e;if(!r.source)return"";let u=e0(r,t);if(!u)return"";let a=wt(e,t,n);return t0(r)&&(a=mn(a)),[` ${u} `,a]}function n0(e,t,n){let{node:r}=e,{type:u}=r,a=u.startsWith("Import"),o=a?"imported":"local",i=a?"local":"exported",s=r[o],p=r[i],f="",D="";return u==="ExportNamespaceSpecifier"||u==="ImportNamespaceSpecifier"?f="*":s&&(f=n(o)),p&&!Wn(r)&&(D=n(i)),[$r(u==="ImportSpecifier"?r.importKind:r.exportKind,!1),f,f&&D?" as ":"",D]}function Jn(e,t,n){let{node:r}=e;return r.shorthand?n("value"):nn(e,t,n,He(e,t,n),":","value")}function nr(e,t){return["...",t("argument"),te(e,t)]}function r0(e,t,n){let{node:r}=e,u=n();return Da(r,t)?["(",A([E,u]),E,")"]:Xe(r)||t.experimentalTernaries&&r.type==="ConditionalExpression"&&(r.consequent.type==="ConditionalExpression"||r.alternate.type==="ConditionalExpression")?m([I("("),A([F,u]),F,I(")")]):u}function Bu(e,t,n){let{node:r}=e;return[r.type==="ThrowStatement"?"throw":"return",r.argument?[" ",e.call(()=>r0(e,t,n),"argument")]:"",$(t)]}function u0(e,t){let{key:n,parent:r}=e;return!!(n==="argument"&&xt(r)&&ce(e,t)||n==="body"&&r.type==="ArrowFunctionExpression")}function a0(e,t,n){let{parent:r}=e;if(r.type==="ExpressionStatement"||r.type==="ForStatement"){let a=[];return e.each(({isFirst:o})=>{o?a.push(n()):a.push(",",A([T,n()]))},"expressions"),m(a)}let u=j([",",T],e.map(n,"expressions"));return u0(e,t)?m(I([A([F,u]),F],u)):m(u)}function o0(e,t,n){return[m(["switch (",A([F,n("discriminant")]),F,")"])," {",e.node.cases.length>0?A([E,j(E,e.map(({node:r,isLast:u})=>[n(),!u&&je(r,t)?E:""],"cases"))]):"",E,"}"]}function i0(e,t,n){let{node:r}=e,u=[];r.test?u.push("case ",n("test"),":"):u.push("default:"),C(r,S.Dangling)&&u.push(" ",Q(e,t));let a=r.consequent.filter(o=>o.type!=="EmptyStatement");if(a.length>0){let o=er(e,t,n,"consequent");u.push(a.length===1&&a[0].type==="BlockStatement"?[" ",o]:A([E,o]))}return u}function zo(e,t){let n=0;for(let r in e){let u=e[r];if(sa(u)&&typeof u.type=="string"&&(n++,n+=zo(u,t-n)),n>t)return n}return n}function vu(e,t=5){return zo(e,t)<=t}function s0(e){let t=[e];for(let n=0;n<t.length;n++){let r=t[n];for(let u of["test","consequent","alternate"]){let a=r[u];if(Z(a))return!0;a.type==="ConditionalExpression"&&t.push(a)}}return!1}function p0(e,t,n){let{node:r}=e,u=r.type==="ConditionalExpression",a=u?"alternate":"falseType",{parent:o}=e,i=u?n("test"):[n("checkType")," ","extends"," ",n("extendsType")];return o.type===r.type&&o[a]===r?de(2,i):i}var l0=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function c0(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let n,r=t;for(let u=0;!n;u++){let a=e.getParentNode(u);if(it(a)&&a.expression===r||J(a)&&a.callee===r||q(a)&&a.object===r){r=a;continue}a.type==="NewExpression"&&a.callee===r||be(a)&&a.expression===r?(n=e.getParentNode(u+1),r=a):n=a}return r===t?!1:n[l0.get(n.type)]===r}function D0(e,t,n){let{node:r}=e,u=r.type==="ConditionalExpression",a=u?"consequent":"trueType",o=u?"alternate":"falseType",i=u?["test"]:["checkType","extendsType"],s=r[a],p=r[o],f=[],D=!1,{parent:c}=e,d=c.type===r.type&&i.some(B=>c[B]===r),y=c.type===r.type&&!d,h,g,x=0;do g=h||r,h=e.getParentNode(x),x++;while(h&&h.type===r.type&&i.every(B=>h[B]!==g));let b=h||c,N=g;if(u&&(Z(r[i[0]])||Z(s)||Z(p)||s0(N))){D=!0,y=!0;let B=U=>[I("("),A([F,U]),F,I(")")],_=U=>U.type==="NullLiteral"||U.type==="Literal"&&U.value===null||U.type==="Identifier"&&U.name==="undefined";f.push(" ? ",_(s)?n(a):B(n(a))," : ",p.type===r.type||_(p)?n(o):B(n(o)))}else{let B=U=>t.useTabs?A(n(U)):de(2,n(U)),_=[T,"? ",s.type===r.type?I("","("):"",B(a),s.type===r.type?I("",")"):"",T,": ",B(o)];f.push(c.type!==r.type||c[o]===r||d?_:t.useTabs?Ea(A(_)):de(Math.max(0,t.tabWidth-2),_))}let O=B=>c===b?m(B):B,M=!D&&(q(c)||c.type==="NGPipeExpression"&&c.left===r)&&!c.computed,V=c0(e),ee=O([p0(e,t,n),y?f:A(f),u&&M&&!V?F:""]);return d||V?m([A([F,ee]),F]):ee}function y0(e,t){return(q(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function f0(e,t,n,r){return[...e.map(u=>Ae(u)),Ae(t),Ae(n)].flat().some(u=>ve(u)&&se(r.originalText,k(u),P(u)))}var d0=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function m0(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let n,r=t;for(let u=0;!n;u++){let a=e.getParentNode(u);if(it(a)&&a.expression===r||J(a)&&a.callee===r||q(a)&&a.object===r){r=a;continue}a.type==="NewExpression"&&a.callee===r||be(a)&&a.expression===r?(n=e.getParentNode(u+1),r=a):n=a}return r===t?!1:n[d0.get(n.type)]===r}var qn=e=>[I("("),A([F,e]),F,I(")")];function Ur(e,t,n,r){if(!t.experimentalTernaries)return D0(e,t,n);let{node:u}=e,a=u.type==="ConditionalExpression",o=Ve(u),i=a?"consequent":"trueType",s=a?"alternate":"falseType",p=a?["test"]:["checkType","extendsType"],f=u[i],D=u[s],c=p.map(Mt=>u[Mt]),{parent:d}=e,y=d.type===u.type,h=y&&p.some(Mt=>d[Mt]===u),g=y&&d[s]===u,x=f.type===u.type,b=D.type===u.type,N=b||g,O=t.tabWidth>2||t.useTabs,M,V,ee=0;do V=M||u,M=e.getParentNode(ee),ee++;while(M&&M.type===u.type&&p.every(Mt=>M[Mt]!==V));let B=M||d,_=r&&r.assignmentLayout&&r.assignmentLayout!=="break-after-operator"&&(d.type==="AssignmentExpression"||d.type==="VariableDeclarator"||d.type==="ClassProperty"||d.type==="PropertyDefinition"||d.type==="ClassPrivateProperty"||d.type==="ObjectProperty"||d.type==="Property"),U=xt(d)&&!(x||b),Se=a&&B.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",Pe=m0(e),w=y0(u,d),G=o&&ce(e,t),le=O?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",It=f0(c,f,D,t)||x||b,ke=!N&&!y&&!o&&(Se?f.type==="NullLiteral"||f.type==="Literal"&&f.value===null:Xr(f,t)&&vu(u.test,3)),Gr=N||g||o&&!y||y&&a&&vu(u.test,1)||ke,rn=[];C(u.test,S.Dangling)&&e.call(()=>{rn.push(Q(e,t))},"test"),C(u,S.Dangling)&&rn.push(Q(e,t));let Vr=Symbol("test"),Ai=Symbol("consequent"),un=Symbol("test-and-consequent"),gi=a?[qn(n("test")),u.test.type==="ConditionalExpression"?_e:""]:[n("checkType")," ","extends"," ",Ve(u.extendsType)||u.extendsType.type==="TSMappedType"?n("extendsType"):m(qn(n("extendsType")))],Kr=m([gi," ?"],{id:Vr}),xi=n(i),an=A([x||Se&&(Z(f)||y||N)?E:T,xi]),Ci=Gr?m([Kr,N?an:I(an,m(an,{id:Ai}),{groupId:Vr})],{id:un}):[Kr,an],In=n(s),Hr=ke?I(In,Ea(qn(In)),{groupId:un}):In,Nt=[Ci,rn.length>0?[A([E,rn]),E]:b?E:ke?I(T," ",{groupId:un}):T,":",b||!O?" ":Gr?I(le,I(N||ke?" ":le," "),{groupId:un}):I(le," "),b?Hr:m([A(Hr),Se&&!ke?F:""]),w&&!Pe?F:"",It?_e:""];return _&&!It?m(A([F,m(Nt)])):_||U?m(A(Nt)):Pe||o&&h?m([A([F,Nt]),G?F:""]):d===B?m(Nt):Nt}function F0(e,t,n){let{node:r}=e;return["try ",n("block"),r.handler?[" ",n("handler")]:"",r.finalizer?[" finally ",n("finalizer")]:""]}function E0(e,t,n){let{node:r}=e;if(r.param){let u=C(r.param,o=>!ve(o)||o.leading&&H(t.originalText,P(o))||o.trailing&&H(t.originalText,k(o),{backwards:!0})),a=n("param");return["catch ",u?["(",A([F,a]),F,") "]:["(",a,") "],n("body")]}return["catch ",n("body")]}function Qo(e,t,n){let{node:r}=e,u=e.map(n,"declarations"),a=e.key==="init"&&e.parent.type==="ForStatement"||e.key==="left"&&(e.parent.type==="ForInStatement"||e.parent.type==="ForOfStatement"),o=r.declarations.some(s=>s.init),i;return u.length===1&&!C(r.declarations[0])?i=u[0]:i=A(u[0]),m([me(e),r.kind,i?[" ",i]:"",A(u.slice(1).map(s=>[",",o&&!a?E:T,s])),a?"":$(t)])}function A0(e,t,n){let{node:r}=e,u=r.type==="WithStatement"?"with":"while";return m([u," (",Nr(e,t,n),")",kt(e,t,n)])}function g0(e,t,n,r){let{node:u}=e;if(sr(u))return Uy(e,t);switch(u.type){case"JsExpressionRoot":return n("node");case"JsonRoot":return[Q(e,t),n("node"),E];case"File":return Wy(e,t,n)??n("program");case"ExpressionStatement":return qy(e,t,n);case"ChainExpression":return n("expression");case"ParenthesizedExpression":return!C(u.expression)&&(Be(u.expression)||ne(u.expression))?["(",n("expression"),")"]:m(["(",A([F,n("expression")]),F,")"]);case"AssignmentExpression":return ry(e,t,n);case"VariableDeclarator":return uy(e,t,n);case"BinaryExpression":case"LogicalExpression":return yo(e,t,n);case"AssignmentPattern":return[n("left")," = ",n("right")];case"OptionalMemberExpression":case"MemberExpression":return QD(e,t,n);case"MetaProperty":return[n("meta"),".",n("property")];case"BindExpression":return KD(e,t,n);case"Identifier":return[u.name,oe(e),Na(e),te(e,n)];case"V8IntrinsicIdentifier":return["%",u.name];case"SpreadElement":return nr(e,n);case"RestElement":return nr(e,n);case"FunctionDeclaration":case"FunctionExpression":return Mr(e,t,n,r);case"ArrowFunctionExpression":return MD(e,t,n,r);case"YieldExpression":return[`yield${u.delegate?"*":""}`,u.argument?[" ",n("argument")]:""];case"AwaitExpression":return fy(e,t,n);case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return $o(e,t,n);case"ImportDeclaration":return zy(e,t,n);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return n0(e,t,n);case"ImportAttribute":return Jn(e,t,n);case"Program":case"BlockStatement":case"StaticBlock":return wo(e,t,n);case"ClassBody":return Wr(e,t,n);case"ThrowStatement":return Bu(e,t,n);case"ReturnStatement":return Bu(e,t,n);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return xn(e,t,n);case"ObjectExpression":case"ObjectPattern":return wt(e,t,n);case"Property":return bt(u)?zn(e,t,n):Jn(e,t,n);case"ObjectProperty":return Jn(e,t,n);case"ObjectMethod":return zn(e,t,n);case"Decorator":return["@",n("expression")];case"ArrayExpression":case"ArrayPattern":return Rr(e,t,n);case"SequenceExpression":return a0(e,t,n);case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[n("value"),$(t)];case"UnaryExpression":{let a=[u.operator];/[a-z]$/.test(u.operator)&&a.push(" ");let o=n("argument");return C(u.argument)?a.push(m(["(",A([F,o]),F,")"])):a.push(o),a}case"UpdateExpression":return[u.prefix?u.operator:"",n("argument"),u.prefix?"":u.operator];case"ConditionalExpression":return Ur(e,t,n,r);case"VariableDeclaration":return Qo(e,t,n);case"IfStatement":return $y(e,t,n);case"ForStatement":return Ry(e,t,n);case"WithStatement":case"WhileStatement":return A0(e,t,n);case"DoWhileStatement":return My(e,t,n);case"ForInStatement":case"ForOfStatement":return Xy(e,t,n);case"DoExpression":return[u.async?"async ":"","do ",n("body")];case"BreakStatement":case"ContinueStatement":return[u.type==="BreakStatement"?"break":"continue",u.label?[" ",n("label")]:"",$(t)];case"LabeledStatement":return[n("label"),`:${u.body.type==="EmptyStatement"&&!C(u.body,S.Leading)?"":" "}`,n("body")];case"TryStatement":return F0(e,t,n);case"CatchClause":return E0(e,t,n);case"SwitchStatement":return o0(e,t,n);case"SwitchCase":return i0(e,t,n);case"DebuggerStatement":return["debugger",$(t)];case"ClassDeclaration":case"ClassExpression":return _r(e,t,n);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Jo(e,t,n);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return qo(e,t,n);case"TemplateElement":return at(u.value.raw);case"TemplateLiteral":return to(e,t,n);case"TaggedTemplateExpression":return Fc(e,t,n);case"PrivateIdentifier":return["#",u.name];case"PrivateName":return["#",n("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",n("body")];case"VoidPattern":return"void";case"EmptyStatement":if(or(e))return";";default:throw new Pt(u,"ESTree")}}function Yo(e){return[e("elementType"),"[]"]}function Zo(e,t,n){let{parent:r,node:u,key:a}=e,o=u.type==="AsConstExpression"?"const":n("typeAnnotation"),i=[n("expression")," ",Vi(u)?"satisfies":"as"," ",o];return a==="callee"&&Wt(r)||a==="object"&&q(r)?m([A([F,...i]),F]):i}function x0(e,t,n){let{node:r}=e,u=[me(e),r.async?"async ":"","component"];r.id&&u.push(" ",n("id")),u.push(n("typeParameters"));let a=dt(e,t,n);return r.rendersType?u.push(m([a," ",n("rendersType")])):u.push(m([a])),r.body&&u.push(" ",n("body")),r.type==="DeclareComponent"&&u.push($(t)),u}function C0(e,t,n){let{node:r}=e;return r.shorthand?n("local"):[n("name")," as ",n("local")]}function h0(e,t,n){let{node:r}=e,u=[];return r.name&&u.push(n("name"),r.optional?"?: ":": "),u.push(n("typeAnnotation")),u}function T0(e,t,n){let{node:r}=e;return[r.explicitType?`of ${r.explicitType} `:"",wt(e,t,n)]}function S0(e,t,n){let{node:r}=e;return[r.type==="EnumSymbolBody"||r.explicitType?`of ${r.type.slice(4,-4).toLowerCase()} `:"",wt(e,t,n)]}function ei(e,t,n){let{node:r}=e,u=r.type==="TSEnumMember",a=u?He(e,t,n):n("id"),o=u?"initializer":"init";return r[o]?[a," = ",n(o)]:a}function ti(e,t){let{node:n}=e;return[me(e),n.const?"const ":"","enum ",t("id")," ",t("body")]}function ni(e,t,n){let{node:r}=e,u=[vn(e)];(r.type==="TSConstructorType"||r.type==="TSConstructSignatureDeclaration")&&u.push("new ");let a=dt(e,t,n,!1,!0),o=[];return r.type==="FunctionTypeAnnotation"?o.push(b0(e)?" => ":": ",n("returnType")):o.push(te(e,n,"returnType")),en(r,o)&&(a=m(a)),u.push(a,o),[m(u),r.type==="TSConstructSignatureDeclaration"||r.type==="TSCallSignatureDeclaration"?Je(e,t):""]}function b0(e){var r;let{node:t,parent:n}=e;return t.type==="FunctionTypeAnnotation"&&(Br(n)||!((n.type==="ObjectTypeProperty"||n.type==="ObjectTypeInternalSlot")&&!n.variance&&!n.optional&&Tn(n,t)||n.type==="ObjectTypeCallProperty"||((r=e.getParentNode(2))==null?void 0:r.type)==="DeclareFunction"))}function B0(e,t,n){return[me(e),"hook",e.node.id?[" ",n("id")]:"",$(t)]}function Pu(e){var n;let{node:t}=e;return t.type==="HookTypeAnnotation"&&((n=e.getParentNode(2))==null?void 0:n.type)==="DeclareHook"}function v0(e,t,n){let{node:r}=e,u=dt(e,t,n,!1,!0),a=[Pu(e)?": ":" => ",n("returnType")];return m([Pu(e)?"":"hook ",en(r,a)?m(u):u,a])}function ri(e,t,n){return[n("objectType"),oe(e),"[",n("indexType"),"]"]}function ui(e,t,n){return["infer ",n("typeParameter")]}function ai(e,t,n){let r=!1;return m(e.map(({isFirst:u,previous:a,node:o,index:i})=>{let s=n();if(u)return s;let p=Ke(o),f=Ke(a);return f&&p?[" & ",r?A(s):s]:!f&&!p||Re(t.originalText,o)?t.experimentalOperatorPosition==="start"?A([T,"& ",s]):A([" &",T,s]):(i>1&&(r=!0),[" & ",i>1?A(s):s])},"types"))}function P0(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function k0(e,t,n){let{node:r}=e;return[m([r.variance?n("variance"):"",m(["[",A([F,n("keyTparam")," in ",n("sourceType")]),F,"]"]),P0(r.optional),": ",n("propType")]),Je(e,t)]}function ku(e,t){return e==="+"||e==="-"?e+t:t}function w0(e,t,n){let{node:r}=e,u=!1;if(t.objectWrap==="preserve"){let i=Te(t),s=k(r)+1,p=i.slice(s),f=s+p.search(/\S/);se(t.originalText,s,f)&&(u=!0)}let a=[],o=Ae(r,S.Dangling);if(o.length>0){let i=L(0,o,-1),s=Q(e,t);a.push(...s.slice(0,-1),m([L(0,s,-1),st(i)||H(t.originalText,P(i))?E:T]))}return m(["{",A([t.bracketSpacing?T:F,...a,r.readonly?[ku(r.readonly,"readonly")," "]:"",m(["[",A([F,n("key")," in ",n("constraint"),r.nameType?[" as ",n("nameType")]:""]),F,"]"]),r.optional?ku(r.optional,"?"):"",r.typeAnnotation?": ":"",n("typeAnnotation"),t.semi?I(";"):""]),t.bracketSpacing?T:F,"}"],{shouldBreak:u})}function I0(e,t,n){let{node:r}=e;return[m(["match (",A([F,n("argument")]),F,")"])," {",r.cases.length>0?A([E,j(E,e.map(({node:u,isLast:a})=>[n(),!a&&je(u,t)?E:""],"cases"))]):"",E,"}"]}function N0(e,t,n){let{node:r}=e,u=C(r,S.Dangling)?[" ",Q(e,t)]:[],a=r.type==="MatchStatementCase"?[" ",n("body")]:A([T,n("body"),","]);return[n("pattern"),r.guard?m([A([T,"if (",n("guard"),")"])]):"",m([" =>",u,a])]}function M0(e,t,n){let{node:r}=e;switch(r.type){case"MatchOrPattern":return J0(e,t,n);case"MatchAsPattern":return[n("pattern")," as ",n("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return n("literal");case"MatchUnaryPattern":return[r.operator,n("argument")];case"MatchIdentifierPattern":return n("id");case"MatchMemberPattern":{let u=r.property.type==="Identifier"?[".",n("property")]:["[",A([F,n("property")]),F,"]"];return m([n("base"),u])}case"MatchBindingPattern":return[r.kind," ",n("id")];case"MatchObjectPattern":case"MatchInstanceObjectPattern":return j0(e,t,n);case"MatchInstancePattern":return m([n("targetConstructor")," ",n("properties")]);case"MatchArrayPattern":{let u=e.map(n,"elements");return r.rest&&u.push(n("rest")),m(["[",A([F,j([",",T],u)]),r.rest?"":I(","),F,"]"])}case"MatchObjectPatternProperty":return r.shorthand?n("pattern"):m([n("key"),":",A([T,n("pattern")])]);case"MatchRestPattern":{let u=["..."];return r.argument&&u.push(n("argument")),u}}}function j0(e,t,n){let{node:r}=e,u=e.map(n,"properties");return r.rest&&u.push(n("rest")),m(["{",A([F,j([",",T],u)]),r.rest?"":I(","),F,"}"])}var oi=v(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function L0(e){let{patterns:t}=e;if(t.some(r=>C(r)))return!1;let n=t.find(r=>r.type==="MatchObjectPattern");return n?t.every(r=>r===n||oi(r)):!1}function O0(e){return oi(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?L0(e):!1}function J0(e,t,n){let{node:r}=e,{parent:u}=e,a=u.type!=="MatchStatementCase"&&u.type!=="MatchExpressionCase"&&u.type!=="MatchArrayPattern"&&u.type!=="MatchObjectPatternProperty"&&!Re(t.originalText,r),o=O0(r),i=e.map(()=>{let p=n();return o||(p=de(2,p)),re(e,p,t)},"patterns");if(o)return j(" | ",i);let s=[I(["| "]),j([T,"| "],i)];return ce(e,t)?m([A([I([F]),s]),F]):u.type==="MatchArrayPattern"&&u.elements.length>1?m([A([I(["(",F]),s]),F,I(")")]):m(a?A(s):s)}function q0(e,t,n){let{node:r}=e,u=[me(e),"opaque type ",n("id"),n("typeParameters")];if(r.supertype&&u.push(": ",n("supertype")),r.lowerBound||r.upperBound){let a=[];r.lowerBound&&a.push(A([T,"super ",n("lowerBound")])),r.upperBound&&a.push(A([T,"extends ",n("upperBound")])),u.push(m(a))}return r.impltype&&u.push(" = ",n("impltype")),u.push($(t)),u}function ii(e,t,n){let{node:r}=e;return["...",...r.type==="TupleTypeSpreadElement"&&r.label?[n("label"),": "]:[],n("typeAnnotation")]}function si(e,t,n){let{node:r}=e;return[r.variance?n("variance"):"",n("label"),r.optional?"?":"",": ",n("elementType")]}function pi(e,t,n){let{node:r}=e,u=[me(e),"type ",n("id"),n("typeParameters")],a=r.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[nn(e,t,n,u," =",a),$(t)]}function R0(e,t,n){let{node:r}=e;return ie(r).length===1&&r.type.startsWith("TS")&&!r[n][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/.test(t.filepath))}function Rt(e,t,n,r){let{node:u}=e,a=u[r];if(!a)return"";if(!Array.isArray(a))return n(r);let o=Bn(e.grandparent),i=e.match(p=>!(p[r].length===1&&Ke(p[r][0])),void 0,(p,f)=>f==="typeAnnotation",p=>p.type==="Identifier",Po);if(a.length===0||!i&&(o||a.length===1&&(a[0].type==="NullableTypeAnnotation"||oc(a[0])))&&!a.some(p=>C(p,S.Line)||C(p,S.Last,f=>H(t.originalText,P(f)))))return["<",j(", ",e.map(n,r)),X0(e,t),">"];let s=u.type==="TSTypeParameterInstantiation"?"":R0(e,t,r)?",":tt(t);return m(["<",A([F,j([",",T],e.map(n,r))]),s,F,">"])}function X0(e,t){let{node:n}=e;if(!C(n,S.Dangling))return"";let r=!C(n,S.Line),u=Q(e,t,{indent:!r});return r?u:[u,E]}function li(e,t,n){let{node:r}=e,u=[r.const?"const ":""],a=r.type==="TSTypeParameter"?n("name"):r.name;if(r.variance&&u.push(n("variance")),r.in&&u.push("in "),r.out&&u.push("out "),u.push(a),r.bound&&(r.usesExtendsBound&&u.push(" extends "),u.push(te(e,n,"bound"))),r.constraint){let o=Symbol("constraint");u.push(" extends",m(A(T),{id:o}),xe,$t(n("constraint"),{groupId:o}))}if(r.default){let o=Symbol("default");u.push(" =",m(A(T),{id:o}),xe,$t(n("default"),{groupId:o}))}return m(u)}function ci(e,t){let{node:n}=e;return[n.type==="TSTypePredicate"&&n.asserts?"asserts ":n.type==="TypePredicate"&&n.kind?`${n.kind} `:"",t("parameterName"),n.typeAnnotation?[" is ",te(e,t)]:""]}function Di({node:e},t){let n=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(n),t("typeArguments")]}function W0(e,t,n,r){let{node:u}=e;if(Ba(u))return u.type.slice(0,-14).toLowerCase();switch(u.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return x0(e,t,n);case"ComponentParameter":return C0(e,t,n);case"ComponentTypeParameter":return h0(e,t,n);case"HookDeclaration":return Mr(e,t,n);case"DeclareHook":return B0(e,t,n);case"HookTypeAnnotation":return v0(e,t,n);case"DeclareFunction":return[me(e),"function ",n("id"),n("predicate"),$(t)];case"DeclareModule":return["declare module ",n("id")," ",n("body")];case"DeclareModuleExports":return["declare module.exports",te(e,n),$(t)];case"DeclareNamespace":return["declare namespace ",n("id")," ",n("body")];case"DeclareVariable":return Array.isArray(u.declarations)?Qo(e,t,n):[me(e),u.kind??"var"," ",n("id"),$(t)];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return $o(e,t,n);case"DeclareOpaqueType":case"OpaqueType":return q0(e,t,n);case"DeclareTypeAlias":case"TypeAlias":return pi(e,t,n);case"IntersectionTypeAnnotation":return ai(e,t,n);case"UnionTypeAnnotation":return Ga(e,t,n,r);case"ConditionalTypeAnnotation":return Ur(e,t,n);case"InferTypeAnnotation":return ui(e,t,n);case"FunctionTypeAnnotation":return ni(e,t,n);case"TupleTypeAnnotation":return Rr(e,t,n);case"TupleTypeLabeledElement":return si(e,t,n);case"TupleTypeSpreadElement":return ii(e,t,n);case"GenericTypeAnnotation":return[n("id"),Rt(e,t,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return ri(e,t,n);case"TypeAnnotation":return Ka(e,t,n);case"TypeParameter":return li(e,t,n);case"TypeofTypeAnnotation":return Di(e,n);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return Yo(n);case"DeclareEnum":case"EnumDeclaration":return ti(e,n);case"EnumBody":return T0(e,t,n);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return S0(e,t,n);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return ei(e,t,n);case"FunctionTypeParam":{let a=u.name?n("name"):e.parent.this===u?"this":"";return[a,oe(e),a?": ":"",n("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"RecordDeclaration":return _r(e,t,n);case"ObjectTypeAnnotation":case"RecordDeclarationBody":return Wr(e,t,n);case"ClassImplements":case"InterfaceExtends":return[n("id"),n("typeParameters")];case"RecordDeclarationImplements":return[n("id"),n("typeArguments")];case"NullableTypeAnnotation":return["?",n("typeAnnotation")];case"Variance":{let{kind:a}=u;return a==="plus"?"+":a==="minus"?"-":`${a} `}case"KeyofTypeAnnotation":return["keyof ",n("argument")];case"ObjectTypeCallProperty":return[u.static?"static ":"",n("value"),Je(e,t)];case"ObjectTypeMappedTypeProperty":return k0(e,t,n);case"ObjectTypeIndexer":return[u.static?"static ":"",u.variance?n("variance"):"","[",n("id"),u.id?": ":"",n("key"),"]: ",n("value"),Je(e,t)];case"ObjectTypeProperty":{let a="";return u.proto?a="proto ":u.static&&(a="static "),[a,u.kind!=="init"?u.kind+" ":"",u.variance?n("variance"):"",He(e,t,n),oe(e),bt(u)?"":": ",n("value"),Je(e,t)]}case"ObjectTypeInternalSlot":return[u.static?"static ":"","[[",n("id"),"]]",oe(e),u.method?"":": ",n("value"),Je(e,t)];case"ObjectTypeSpreadProperty":return nr(e,n);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[n("qualification"),".",n("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(u.value);case"StringLiteralTypeAnnotation":return at(ot(De(u),t));case"NumberLiteralTypeAnnotation":return Ut(De(u));case"BigIntLiteralTypeAnnotation":return tr(De(u));case"TypeCastExpression":return["(",n("expression"),te(e,n),")"];case"TypePredicate":return ci(e,n);case"TypeOperator":return[u.operator," ",n("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Rt(e,t,n,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...u.type==="DeclaredPredicate"?["(",n("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Zo(e,t,n);case"MatchExpression":case"MatchStatement":return I0(e,t,n);case"MatchExpressionCase":case"MatchStatementCase":return N0(e,t,n);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchInstancePattern":case"MatchInstanceObjectPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return M0(e,t,n);case"RecordExpression":return[n("recordConstructor"),n("typeArguments")," ",n("properties")];case"RecordExpressionProperties":return wt(e,t,n);case"RecordDeclarationProperty":case"RecordDeclarationStaticProperty":{let a=u.type==="RecordDeclarationStaticProperty",o=a?"value":"defaultValue";return[a?"static ":"",He(e,t,n),te(e,n),u[o]?[" = ",n(o)]:""]}}}function _0(e,t){let{node:n}=e,r=t.originalText.slice(k(n),P(n));return t.semi&&Xn(n)?r+=";":Or(e,t)&&(r=`;${r}`),n.type==="ClassExpression"&&R(n.decorators)?[A([F,r]),F]:r}var Rn=e=>e===""||e===T||e===E||e===F;function $0(e,t,n){var N,O,M,V,ee;let{node:r}=e;if(r.type==="JSXElement"&&of(r))return[n("openingElement"),n("closingElement")];let u=r.type==="JSXElement"?n("openingElement"):n("openingFragment"),a=r.type==="JSXElement"?n("closingElement"):n("closingFragment");if(r.children.length===1&&r.children[0].type==="JSXExpressionContainer"&&(r.children[0].expression.type==="TemplateLiteral"||r.children[0].expression.type==="TaggedTemplateExpression"))return[u,...e.map(n,"children"),a];r.children=r.children.map(B=>sf(B)?{type:"JSXText",value:" ",raw:" "}:B);let o=r.children.some(Z),i=r.children.filter(B=>B.type==="JSXExpressionContainer").length>1,s=r.type==="JSXElement"&&r.openingElement.attributes.length>1,p=ae(u)||o||s||i,f=e.parent.rootMarker==="mdx",D=t.singleQuote?"{' '}":'{" "}',c=f?T:I([D,F]," "),d=((O=(N=r.openingElement)==null?void 0:N.name)==null?void 0:O.name)==="fbt",y=U0(e,t,n,c,d),h=r.children.some(B=>Vt(B));for(let B=y.length-2;B>=0;B--){let _=y[B]===""&&y[B+1]==="",U=y[B]===E&&y[B+1]===""&&y[B+2]===E,Se=(y[B]===F||y[B]===E)&&y[B+1]===""&&y[B+2]===c,Pe=y[B]===c&&y[B+1]===""&&(y[B+2]===F||y[B+2]===E),w=y[B]===c&&y[B+1]===""&&y[B+2]===c,G=y[B]===F&&y[B+1]===""&&y[B+2]===E||y[B]===E&&y[B+1]===""&&y[B+2]===F;U&&h||_||Se||w||G?y.splice(B,2):Pe&&y.splice(B+1,2)}for(;y.length>0&&Rn(L(0,y,-1));)y.pop();for(;y.length>1&&Rn(y[0])&&Rn(y[1]);)y.shift(),y.shift();let g=[""];for(let[B,_]of y.entries()){if(_===c){if(B===1&&Rp(y[B-1])){if(y.length===2){g.push([g.pop(),D]);continue}g.push([D,E],"");continue}if(B===y.length-1){g.push([g.pop(),D]);continue}if(y[B-1]===""&&y[B-2]===E){g.push([g.pop(),D]);continue}}B%2===0?g.push([g.pop(),_]):g.push(_,""),ae(_)&&(p=!0)}let x=h?Aa(g):m(g,{shouldBreak:!0});if(((M=t.cursorNode)==null?void 0:M.type)==="JSXText"&&r.children.includes(t.cursorNode)?x=[ln,x,ln]:((V=t.nodeBeforeCursor)==null?void 0:V.type)==="JSXText"&&r.children.includes(t.nodeBeforeCursor)?x=[ln,x]:((ee=t.nodeAfterCursor)==null?void 0:ee.type)==="JSXText"&&r.children.includes(t.nodeAfterCursor)&&(x=[x,ln]),f)return x;let b=m([u,A([E,x]),E,a]);return p?b:nt([m([u,...y,a]),b])}function U0(e,t,n,r,u){let a="",o=[a];function i(p){a=p,o.push([o.pop(),p])}function s(p){p!==""&&(a=p,o.push(p,""))}return e.each(({node:p,next:f})=>{if(p.type==="JSXText"){let D=De(p);if(Vt(p)){let c=yn.split(D,!0);c[0]===""&&(c.shift(),/\n/.test(c[0])?s(Iu(u,c[1],p,f)):s(r),c.shift());let d;if(L(0,c,-1)===""&&(c.pop(),d=c.pop()),c.length===0)return;for(let[y,h]of c.entries())y%2===1?s(T):i(h);d!==void 0?/\n/.test(d)?s(Iu(u,a,p,f)):s(r):s(wu(u,a,p,f))}else/\n/.test(D)?D.match(/\n/g).length>1&&s(E):s(r)}else{let D=n();if(i(D),f&&Vt(f)){let c=yn.trim(De(f)),[d]=yn.split(c);s(wu(u,d,p,f))}else s(E)}},"children"),o}function wu(e,t,n,r){return e?"":n.type==="JSXElement"&&!n.closingElement||(r==null?void 0:r.type)==="JSXElement"&&!r.closingElement?t.length===1?F:E:F}function Iu(e,t,n,r){return e?E:t.length===1?n.type==="JSXElement"&&!n.closingElement||(r==null?void 0:r.type)==="JSXElement"&&!r.closingElement?E:F:E}var G0=v(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function V0(e,t,n){let{parent:r}=e;if(G0(r))return t;let u=K0(e),a=ce(e,n);return m([a?"":I("("),A([F,t]),F,a?"":I(")")],{shouldBreak:u})}function K0(e){return e.match(void 0,(t,n)=>n==="body"&&t.type==="ArrowFunctionExpression",(t,n)=>n==="arguments"&&J(t))&&(e.match(void 0,void 0,void 0,(t,n)=>n==="expression"&&t.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="expression"&&t.type==="JSXExpressionContainer"))}function H0(e,t,n){let{node:r}=e,u=[n("name")];if(r.value){let a;if(z(r.value)){let o=De(r.value),i=Y(0,Y(0,o.slice(1,-1),"'","'"),""",'"'),s=Oa(i,t.jsxSingleQuote);i=s==='"'?Y(0,i,'"',"""):Y(0,i,"'","'"),a=e.call(()=>re(e,at(s+i+s),t),"value")}else a=n("value");u.push("=",a)}return u}function z0(e,t,n){let{node:r}=e,u=(a,o)=>a.type==="JSXEmptyExpression"||!C(a)&&(ne(a)||Be(a)||a.type==="ArrowFunctionExpression"||a.type==="AwaitExpression"&&(u(a.argument,a)||a.argument.type==="JSXElement")||J(Qe(a))||a.type==="FunctionExpression"||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||a.type==="DoExpression"||Z(o)&&(a.type==="ConditionalExpression"||Xe(a)));return u(r.expression,e.parent)?m(["{",n("expression"),xe,"}"]):m(["{",A([F,n("expression")]),F,xe,"}"])}function Q0(e,t,n){var i,s;let{node:r}=e,u=C(r.name)||C(r.typeArguments);if(r.selfClosing&&r.attributes.length===0&&!u)return["<",n("name"),n("typeArguments")," />"];if(((i=r.attributes)==null?void 0:i.length)===1&&z(r.attributes[0].value)&&!r.attributes[0].value.value.includes(`
|
|
43
|
+
`)&&!u&&!C(r.attributes[0]))return m(["<",n("name"),n("typeArguments")," ",...e.map(n,"attributes"),r.selfClosing?" />":">"]);let a=(s=r.attributes)==null?void 0:s.some(p=>z(p.value)&&p.value.value.includes(`
|
|
44
|
+
`)),o=t.singleAttributePerLine&&r.attributes.length>1?E:T;return m(["<",n("name"),n("typeArguments"),A(e.map(({isFirst:p,previous:f})=>[p?o:je(f,t)?[E,E]:o,n()],"attributes")),...Y0(r,t,u)],{shouldBreak:a})}function Y0(e,t,n){return e.selfClosing?[T,"/>"]:Z0(e,t,n)?[">"]:[F,">"]}function Z0(e,t,n){let r=e.attributes.length>0&&C(L(0,e.attributes,-1),S.Trailing);return e.attributes.length===0&&!n||(t.bracketSameLine||t.jsxBracketSameLine)&&(!n||e.attributes.length>0)&&!r}function ef(e,t,n){let{node:r}=e,u=["</"],a=n("name");return C(r.name,S.Leading|S.Line)?u.push(A([E,a]),E):C(r.name,S.Leading|S.Block)?u.push(" ",a):u.push(a),u.push(">"),u}function tf(e,t){let{node:n}=e,r=C(n),u=C(n,S.Line),a=n.type==="JSXOpeningFragment";return[a?"<":"</",A([u?E:r&&!a?" ":"",Q(e,t)]),u?E:"",">"]}function nf(e,t,n){let r=re(e,$0(e,t,n),t);return V0(e,r,t)}function rf(e,t){let{node:n}=e,r=C(n,S.Line);return[Q(e,t,{indent:r}),r?E:""]}function uf(e,t,n){let{node:r}=e;return["{",e.call(({node:u})=>{let a=["...",n()];return C(u)?[A([F,re(e,a,t)]),F]:a},r.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function af(e,t,n){let{node:r}=e;if(r.type.startsWith("JSX"))switch(r.type){case"JSXAttribute":return H0(e,t,n);case"JSXIdentifier":return r.name;case"JSXNamespacedName":return j(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return j(".",[n("object"),n("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return uf(e,t,n);case"JSXExpressionContainer":return z0(e,t,n);case"JSXFragment":case"JSXElement":return nf(e,t,n);case"JSXOpeningElement":return Q0(e,t,n);case"JSXClosingElement":return ef(e,t,n);case"JSXOpeningFragment":case"JSXClosingFragment":return tf(e,t);case"JSXEmptyExpression":return rf(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Pt(r,"JSX")}}function of(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Vt(t)}function sf(e){return e.type==="JSXExpressionContainer"&&z(e.expression)&&e.expression.value===" "&&!C(e.expression)}function pf(e,t,n){let{node:r}=e,u=r.parameters.length>1?tt(t):"",a=m([A([F,j([", ",F],e.map(n,"parameters"))]),u,F]);return[e.key==="body"&&e.parent.type==="ClassBody"&&r.static?"static ":"",r.readonly?"readonly ":"","[",r.parameters?a:"","]",te(e,n),Je(e,t)]}function Nu(e,t,n){let{node:r}=e;return[r.postfix?"":n,te(e,t),r.postfix?n:""]}function lf(e,t,n){let{node:r}=e,u=[],a=r.kind&&r.kind!=="method"?`${r.kind} `:"";u.push(Pn(r),a,He(e,t,n),oe(e));let o=dt(e,t,n,!1,!0),i=te(e,n,"returnType"),s=en(r,i);return u.push(s?m(o):o),r.returnType&&u.push(m(i)),[m(u),Je(e,t)]}function cf(e,t,n){let{node:r}=e;return[me(e),r.kind==="global"?"":`${r.kind} `,n("id"),r.body?[" ",m(n("body"))]:$(t)]}function Df(e,t,n){let{node:r}=e,u=!(ne(r.expression)||Be(r.expression)),a=m(["<",A([F,n("typeAnnotation")]),F,">"]),o=[I("("),A([F,n("expression")]),F,I(")")];return u?nt([[a,n("expression")],[a,m(o,{shouldBreak:!0})],[a,n("expression")]]):m([a,n("expression")])}function yf(e,t,n,r){let{node:u}=e;if(u.type.startsWith("TS")){if(va(u))return u.type.slice(2,-7).toLowerCase();switch(u.type){case"TSThisType":return"this";case"TSTypeAssertion":return Df(e,t,n);case"TSDeclareFunction":return Mr(e,t,n);case"TSExportAssignment":return["export = ",n("expression"),$(t)];case"TSModuleBlock":return wo(e,t,n);case"TSInterfaceBody":case"TSTypeLiteral":return Wr(e,t,n);case"TSTypeAliasDeclaration":return pi(e,t,n);case"TSQualifiedName":return[n("left"),".",n("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return Jo(e,t,n);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return qo(e,t,n);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[n("expression"),n("typeArguments")];case"TSTemplateLiteralType":return to(e,t,n);case"TSNamedTupleMember":return si(e,t,n);case"TSRestType":return ii(e,t,n);case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return _r(e,t,n);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Rt(e,t,n,"params");case"TSTypeParameter":return li(e,t,n);case"TSAsExpression":case"TSSatisfiesExpression":return Zo(e,t,n);case"TSArrayType":return Yo(n);case"TSPropertySignature":return[u.readonly?"readonly ":"",He(e,t,n),oe(e),te(e,n),Je(e,t)];case"TSParameterProperty":return[Pn(u),u.static?"static ":"",u.override?"override ":"",u.readonly?"readonly ":"",n("parameter")];case"TSTypeQuery":return Di(e,n);case"TSIndexSignature":return pf(e,t,n);case"TSTypePredicate":return ci(e,n);case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return[xn(e,t,n),u.qualifier?[".",n("qualifier")]:"",Rt(e,t,n,"typeArguments")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return ri(e,t,n);case"TSTypeOperator":return[u.operator," ",n("typeAnnotation")];case"TSMappedType":return w0(e,t,n);case"TSMethodSignature":return lf(e,t,n);case"TSNamespaceExportDeclaration":return["export as namespace ",n("id"),$(t)];case"TSEnumDeclaration":return ti(e,n);case"TSEnumBody":return wt(e,t,n);case"TSEnumMember":return ei(e,t,n);case"TSImportEqualsDeclaration":return["import ",Uo(u,!1),n("id")," = ",n("moduleReference"),$(t)];case"TSExternalModuleReference":return xn(e,t,n);case"TSModuleDeclaration":return cf(e,t,n);case"TSConditionalType":return Ur(e,t,n);case"TSInferType":return ui(e,t,n);case"TSIntersectionType":return ai(e,t,n);case"TSUnionType":return Ga(e,t,n,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return ni(e,t,n);case"TSTupleType":return Rr(e,t,n);case"TSTypeReference":return[n("typeName"),Rt(e,t,n,"typeArguments")];case"TSTypeAnnotation":return Ka(e,t,n);case"TSEmptyBodyFunctionExpression":return jr(e,t,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Nu(e,n,"?");case"TSJSDocNonNullableType":return Nu(e,n,"!");default:throw new Pt(u,"TypeScript")}}}function ff(e,t,n,r){for(let u of[SD,af,W0,yf,g0]){let a=u(e,t,n,r);if(a!==void 0)return a}}var df=v(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function Mu(e,t,n,r){var s;e.isRoot&&((s=t.__onHtmlBindingRoot)==null||s.call(t,e.node,t));let{node:u}=e,a=qr(e)?_0(e,t):ff(e,t,n,r);if(!a)return"";if(df(u))return a;a=mf(e,t,a);let o=u.type!=="ClassExpression"&&R(u.decorators)?mo(e,t,n):"",i=ce(e,t);return!o&&!i?a:Fa(a,p=>[i?"(":"",o?m([o,p]):p,i?")":""])}function mf(e,t,n){let{node:r}=e;return(C(r,S.Leading)||C(r,S.Trailing))&&ia(e)?[A([F,re(e,n,t)]),F]:n}var Ff={experimental_avoidAstMutation:!0,experimental_locForRangeFormat:{locStart:k,locEnd:hn}},yi={features:Ff,massageAstNode:io,canAttachComment:ns,handleComments:Zs,isGap:tp,willPrintOwnComments:Dc,embed:Uc,insertPragma:cD,printComment:fD,printPrettierIgnored:Mu,print:Mu,getVisitorKeys:la,isBlockComment:ve,hasPrettierIgnore:qr},Ef=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".slnlaunch",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],fi={};ur(fi,{estree:()=>yi,"estree-json":()=>Tf});var Af={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},gf=pa(Af),xf=gf;function rr(e){return e.extra.raw}var Cf=new Set(["start","end","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function di(e,t){var r;let{type:n}=e;if(n==="ObjectProperty"){let{key:u}=e;if(u.type==="Identifier"){let{name:a}=u;t.key={type:"StringLiteral",value:a,extra:{rawValue:a}}}else if(u.type==="NumericLiteral"){let a=rr(u);String(Number(a))===a&&(t.key={type:"StringLiteral",value:a,extra:{rawValue:a}})}}if(n==="StringLiteral"&&delete t.extra.raw,n==="UnaryExpression"&&e.operator==="+")return t.argument;if((n==="ArrayExpression"||n==="ObjectExpression")&&(t.extra??(t.extra={}),(r=e.extra)!=null&&r.trailingComma&&delete t.extra.trailingComma),n==="ArrayExpression"){for(let[u,a]of e.elements.entries())a===null&&t.elements.splice(u,0,{type:"NullLiteral"});return}if(n==="TemplateLiteral"){let u=e.quasis[0].value.cooked;return{type:"StringLiteral",value:u,extra:{rawValue:u}}}}di.ignoredProperties=Cf;function hf(e,t,n){let{node:r}=e;switch(r.type){case"JsonRoot":return[n("node"),E];case"ArrayExpression":{if(r.elements.length===0)return"[]";let u=e.map(()=>e.node===null?"null":n(),"elements");return["[",A([E,j([",",E],u)]),E,"]"]}case"ObjectExpression":return r.properties.length===0?"{}":["{",A([E,j([",",E],e.map(n,"properties"))]),E,"}"];case"ObjectProperty":return[n("key"),": ",n("value")];case"UnaryExpression":return[r.operator==="+"?"":r.operator,n("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return r.value?"true":"false";case"StringLiteral":return ot(rr(r),t);case"NumericLiteral":{let u=rr(r);return ju(e)&&String(Number(u))===u?`"${u}"`:u}case"Identifier":return ju(e)?JSON.stringify(r.name):r.name;case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(r.value.cooked);default:throw new Pt(r,"JSON")}}function ju(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var Tf={massageAstNode:di,print:hf,getVisitorKeys:xf},Lt={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Ge="JavaScript",Sf={arrowParens:{category:Ge,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Lt.bracketSameLine,objectWrap:Lt.objectWrap,bracketSpacing:Lt.bracketSpacing,jsxBracketSameLine:{category:Ge,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Ge,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Ge,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Ge,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Lt.singleQuote,jsxSingleQuote:{category:Ge,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:Ge,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Ge,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Lt.singleAttributePerLine},mi=Sf,Fi={...qu,...fi},Ei=[...bi,...Ef];exports.default=Ju;exports.languages=Ei;exports.options=mi;exports.printers=Fi;
|