@kubb/core 3.0.0-alpha.15 → 3.0.0-alpha.16

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.
Files changed (108) hide show
  1. package/dist/acorn-75VVZH4M.cjs +3015 -0
  2. package/dist/acorn-75VVZH4M.cjs.map +1 -0
  3. package/dist/acorn-BDQRFTH5.js +3009 -0
  4. package/dist/acorn-BDQRFTH5.js.map +1 -0
  5. package/dist/angular-7QLNOURG.js +1537 -0
  6. package/dist/angular-7QLNOURG.js.map +1 -0
  7. package/dist/angular-G25ZDZ3P.cjs +1543 -0
  8. package/dist/angular-G25ZDZ3P.cjs.map +1 -0
  9. package/dist/babel-CZJUWSVJ.cjs +6905 -0
  10. package/dist/babel-CZJUWSVJ.cjs.map +1 -0
  11. package/dist/babel-GWHGORSH.js +6899 -0
  12. package/dist/babel-GWHGORSH.js.map +1 -0
  13. package/dist/{chunk-LCONSKJV.cjs → chunk-CLBBHMA3.cjs} +8 -8
  14. package/dist/{chunk-LCONSKJV.cjs.map → chunk-CLBBHMA3.cjs.map} +1 -1
  15. package/dist/{chunk-GWZ4GG5H.cjs → chunk-HRFBE6CG.cjs} +10 -10
  16. package/dist/{chunk-GWZ4GG5H.cjs.map → chunk-HRFBE6CG.cjs.map} +1 -1
  17. package/dist/{chunk-IUN6LRFH.js → chunk-IS3U2E4B.js} +5 -4
  18. package/dist/chunk-IS3U2E4B.js.map +1 -0
  19. package/dist/{chunk-Z5PJTU5Y.cjs → chunk-J23TXIBZ.cjs} +12 -4
  20. package/dist/chunk-J23TXIBZ.cjs.map +1 -0
  21. package/dist/{chunk-E6CN2CZC.js → chunk-JSL2IBGJ.js} +3 -3
  22. package/dist/{chunk-E6CN2CZC.js.map → chunk-JSL2IBGJ.js.map} +1 -1
  23. package/dist/{chunk-HSOPQXAZ.cjs → chunk-KQAXIDXD.cjs} +36 -35
  24. package/dist/chunk-KQAXIDXD.cjs.map +1 -0
  25. package/dist/chunk-OSWGRZMH.js +12927 -0
  26. package/dist/chunk-OSWGRZMH.js.map +1 -0
  27. package/dist/chunk-PXLB77EH.cjs +12933 -0
  28. package/dist/chunk-PXLB77EH.cjs.map +1 -0
  29. package/dist/chunk-PZ5AY32C.js +9 -0
  30. package/dist/chunk-PZ5AY32C.js.map +1 -0
  31. package/dist/{chunk-7SY2AKJK.cjs → chunk-Q7NER2U2.cjs} +6 -6
  32. package/dist/{chunk-7SY2AKJK.cjs.map → chunk-Q7NER2U2.cjs.map} +1 -1
  33. package/dist/{chunk-U4NVHXG7.cjs → chunk-UEIL3SRH.cjs} +4 -4
  34. package/dist/{chunk-U4NVHXG7.cjs.map → chunk-UEIL3SRH.cjs.map} +1 -1
  35. package/dist/{chunk-HBQM723K.js → chunk-ZEL4DI72.js} +3 -3
  36. package/dist/{chunk-HBQM723K.js.map → chunk-ZEL4DI72.js.map} +1 -1
  37. package/dist/estree-4BFMOGHF.js +4367 -0
  38. package/dist/estree-4BFMOGHF.js.map +1 -0
  39. package/dist/estree-TXDUNIHF.cjs +4375 -0
  40. package/dist/estree-TXDUNIHF.cjs.map +1 -0
  41. package/dist/flow-VXQDDICF.js +26262 -0
  42. package/dist/flow-VXQDDICF.js.map +1 -0
  43. package/dist/flow-XCGHVA4N.cjs +26268 -0
  44. package/dist/flow-XCGHVA4N.cjs.map +1 -0
  45. package/dist/glimmer-FBL5UTXI.js +2844 -0
  46. package/dist/glimmer-FBL5UTXI.js.map +1 -0
  47. package/dist/glimmer-SRXJA5DC.cjs +2852 -0
  48. package/dist/glimmer-SRXJA5DC.cjs.map +1 -0
  49. package/dist/graphql-FUGWBNAY.cjs +1250 -0
  50. package/dist/graphql-FUGWBNAY.cjs.map +1 -0
  51. package/dist/graphql-VWUEBAX7.js +1241 -0
  52. package/dist/graphql-VWUEBAX7.js.map +1 -0
  53. package/dist/html-PE4V7PIZ.cjs +2754 -0
  54. package/dist/html-PE4V7PIZ.cjs.map +1 -0
  55. package/dist/html-SRQHPYU4.js +2745 -0
  56. package/dist/html-SRQHPYU4.js.map +1 -0
  57. package/dist/index.cjs +35 -35
  58. package/dist/index.cjs.map +1 -1
  59. package/dist/index.js +6 -5
  60. package/dist/index.js.map +1 -1
  61. package/dist/logger.cjs +7 -7
  62. package/dist/logger.js +3 -2
  63. package/dist/markdown-7H53GZRF.js +3319 -0
  64. package/dist/markdown-7H53GZRF.js.map +1 -0
  65. package/dist/markdown-MR7POCQ6.cjs +3328 -0
  66. package/dist/markdown-MR7POCQ6.cjs.map +1 -0
  67. package/dist/meriyah-GDT4GDJH.cjs +2356 -0
  68. package/dist/meriyah-GDT4GDJH.cjs.map +1 -0
  69. package/dist/meriyah-MBZURH4I.js +2350 -0
  70. package/dist/meriyah-MBZURH4I.js.map +1 -0
  71. package/dist/mocks.cjs +23350 -18
  72. package/dist/mocks.cjs.map +1 -1
  73. package/dist/mocks.d.cts +2 -1
  74. package/dist/mocks.d.ts +2 -1
  75. package/dist/mocks.js +23312 -17
  76. package/dist/mocks.js.map +1 -1
  77. package/dist/postcss-4NLPAMPV.cjs +4945 -0
  78. package/dist/postcss-4NLPAMPV.cjs.map +1 -0
  79. package/dist/postcss-TPQQRMEX.js +4936 -0
  80. package/dist/postcss-TPQQRMEX.js.map +1 -0
  81. package/dist/{prompt-WQQUN22Z.js → prompt-EWVFJSYF.js} +4 -3
  82. package/dist/prompt-EWVFJSYF.js.map +1 -0
  83. package/dist/{prompt-KR6JRAMC.cjs → prompt-FDRFKJA5.cjs} +62 -62
  84. package/dist/{prompt-KR6JRAMC.cjs.map → prompt-FDRFKJA5.cjs.map} +1 -1
  85. package/dist/transformers.cjs +23 -23
  86. package/dist/transformers.js +1 -0
  87. package/dist/transformers.js.map +1 -1
  88. package/dist/typescript-FX5DO2QH.cjs +19 -0
  89. package/dist/typescript-FX5DO2QH.cjs.map +1 -0
  90. package/dist/typescript-IRGFXOHK.js +4 -0
  91. package/dist/typescript-IRGFXOHK.js.map +1 -0
  92. package/dist/utils.cjs +17 -17
  93. package/dist/utils.js +2 -1
  94. package/dist/yaml-KXYJMJO6.cjs +4216 -0
  95. package/dist/yaml-KXYJMJO6.cjs.map +1 -0
  96. package/dist/yaml-Q6KMUOXF.js +4207 -0
  97. package/dist/yaml-Q6KMUOXF.js.map +1 -0
  98. package/package.json +8 -8
  99. package/src/FileManager.ts +1 -1
  100. package/src/__snapshots__/barrel.json +2 -0
  101. package/src/__snapshots__/grouped.json +12 -6
  102. package/src/__snapshots__/ordered.json +12 -6
  103. package/src/build.ts +1 -1
  104. package/src/utils/parser.ts +1 -0
  105. package/dist/chunk-HSOPQXAZ.cjs.map +0 -1
  106. package/dist/chunk-IUN6LRFH.js.map +0 -1
  107. package/dist/chunk-Z5PJTU5Y.cjs.map +0 -1
  108. package/dist/prompt-WQQUN22Z.js.map +0 -1
@@ -0,0 +1,4367 @@
1
+ import './chunk-PZ5AY32C.js';
2
+
3
+ // ../../node_modules/.pnpm/prettier@3.3.3/node_modules/prettier/plugins/estree.mjs
4
+ var Wa = Object.defineProperty;
5
+ var Js = (e) => {
6
+ throw TypeError(e);
7
+ };
8
+ var Ar = (e, t) => {
9
+ for (var r in t) Wa(e, r, { get: t[r], enumerable: true });
10
+ };
11
+ var qs = (e, t, r) => t.has(e) || Js("Cannot " + r);
12
+ var pt = (e, t, r) => (qs(e, t, "read from private field"), t.get(e));
13
+ var Ws = (e, t, r) => t.has(e) ? Js("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r);
14
+ var Gs = (e, t, r, n) => (qs(e, t, "write to private field"), t.set(e, r), r);
15
+ var _s = {};
16
+ Ar(_s, { languages: () => nm, options: () => va, printers: () => rm });
17
+ var Us = [{ linguistLanguageId: 183, name: "JavaScript", type: "programming", tmScope: "source.js", aceMode: "javascript", codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", color: "#f1e05a", aliases: ["js", "node"], extensions: [".js", "._js", ".bones", ".cjs", ".es", ".es6", ".frag", ".gs", ".jake", ".javascript", ".jsb", ".jscad", ".jsfl", ".jslib", ".jsm", ".jspre", ".jss", ".mjs", ".njs", ".pac", ".sjs", ".ssjs", ".xsjs", ".xsjslib", ".wxs"], filenames: ["Jakefile"], interpreters: ["chakra", "d8", "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", tmScope: "source.js", aceMode: "javascript", codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", color: "#f1e05a", aliases: [], extensions: [".js.flow"], filenames: [], interpreters: ["chakra", "d8", "gjs", "js", "node", "nodejs", "qjs", "rhino", "v8", "v8-shell"], parsers: ["flow", "babel-flow"], vscodeLanguageIds: ["javascript"] }, { linguistLanguageId: 183, name: "JSX", type: "programming", tmScope: "source.js.jsx", aceMode: "javascript", codemirrorMode: "jsx", codemirrorMimeType: "text/jsx", color: void 0, aliases: void 0, extensions: [".jsx"], filenames: void 0, interpreters: void 0, parsers: ["babel", "babel-flow", "babel-ts", "flow", "typescript", "espree", "meriyah"], vscodeLanguageIds: ["javascriptreact"], group: "JavaScript" }, { linguistLanguageId: 378, name: "TypeScript", type: "programming", color: "#3178c6", aliases: ["ts"], interpreters: ["deno", "ts-node"], extensions: [".ts", ".cts", ".mts"], tmScope: "source.ts", aceMode: "typescript", codemirrorMode: "javascript", codemirrorMimeType: "application/typescript", parsers: ["typescript", "babel-ts"], vscodeLanguageIds: ["typescript"] }, { linguistLanguageId: 94901924, name: "TSX", type: "programming", color: "#3178c6", group: "TypeScript", extensions: [".tsx"], tmScope: "source.tsx", aceMode: "javascript", codemirrorMode: "jsx", codemirrorMimeType: "text/jsx", parsers: ["typescript", "babel-ts"], vscodeLanguageIds: ["typescriptreact"] }];
18
+ var ws = {};
19
+ Ar(ws, { canAttachComment: () => fp, embed: () => Qu, experimentalFeatures: () => Kl, getCommentChildNodes: () => Ep, getVisitorKeys: () => gr, handleComments: () => Kn, insertPragma: () => pi, isBlockComment: () => re, isGap: () => Fp, massageAstNode: () => Cu, print: () => Ia, printComment: () => Pu, willPrintOwnComments: () => zn });
20
+ var Ga = (e, t, r, n) => {
21
+ if (!(e && t == null)) return t.replaceAll ? t.replaceAll(r, n) : r.global ? t.replace(r, n) : t.split(r).join(n);
22
+ };
23
+ var N = Ga;
24
+ var Ua = (e, t, r) => {
25
+ if (!(e && t == null)) return Array.isArray(t) || typeof t == "string" ? t[r < 0 ? t.length + r : r] : t.at(r);
26
+ };
27
+ var O = Ua;
28
+ function Na(e) {
29
+ return e !== null && typeof e == "object";
30
+ }
31
+ var Ns = Na;
32
+ function* Xa(e, t) {
33
+ let { getVisitorKeys: r, filter: n = () => true } = t, s = (u) => Ns(u) && n(u);
34
+ for (let u of r(e)) {
35
+ let i = e[u];
36
+ if (Array.isArray(i)) for (let a of i) s(a) && (yield a);
37
+ else s(i) && (yield i);
38
+ }
39
+ }
40
+ function* Ya(e, t) {
41
+ let r = [e];
42
+ for (let n = 0; n < r.length; n++) {
43
+ let s = r[n];
44
+ for (let u of Xa(s, t)) yield u, r.push(u);
45
+ }
46
+ }
47
+ function Xs(e, { getVisitorKeys: t, predicate: r }) {
48
+ for (let n of Ya(e, { getVisitorKeys: t })) if (r(n)) return true;
49
+ return false;
50
+ }
51
+ var Ys = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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-\uDDF5\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\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\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-\uDED7\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\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\uDD3D\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-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\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]|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\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;
52
+ function Hs(e) {
53
+ return e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510;
54
+ }
55
+ function Vs(e) {
56
+ return e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141;
57
+ }
58
+ var $s = (e) => !(Hs(e) || Vs(e));
59
+ var Ha = /[^\x20-\x7F]/u;
60
+ function Va(e) {
61
+ if (!e) return 0;
62
+ if (!Ha.test(e)) return e.length;
63
+ e = e.replace(Ys(), " ");
64
+ let t = 0;
65
+ for (let r of e) {
66
+ let n = r.codePointAt(0);
67
+ n <= 31 || n >= 127 && n <= 159 || n >= 768 && n <= 879 || (t += $s(n) ? 1 : 2);
68
+ }
69
+ return t;
70
+ }
71
+ var et = Va;
72
+ function Tr(e) {
73
+ return (t, r, n) => {
74
+ let s = !!(n != null && n.backwards);
75
+ if (r === false) return false;
76
+ let { length: u } = t, i = r;
77
+ for (; i >= 0 && i < u; ) {
78
+ let a = t.charAt(i);
79
+ if (e instanceof RegExp) {
80
+ if (!e.test(a)) return i;
81
+ } else if (!e.includes(a)) return i;
82
+ s ? i-- : i++;
83
+ }
84
+ return i === -1 || i === u ? i : false;
85
+ };
86
+ }
87
+ var Ge = Tr(" ");
88
+ var Ks = Tr(",; ");
89
+ var zs = Tr(/[^\n\r]/u);
90
+ function $a(e, t, r) {
91
+ let n = !!(r != null && r.backwards);
92
+ if (t === false) return false;
93
+ let s = e.charAt(t);
94
+ if (n) {
95
+ if (e.charAt(t - 1) === "\r" && s === `
96
+ `) return t - 2;
97
+ if (s === `
98
+ ` || s === "\r" || s === "\u2028" || s === "\u2029") return t - 1;
99
+ } else {
100
+ if (s === "\r" && e.charAt(t + 1) === `
101
+ `) return t + 2;
102
+ if (s === `
103
+ ` || s === "\r" || s === "\u2028" || s === "\u2029") return t + 1;
104
+ }
105
+ return t;
106
+ }
107
+ var Ue = $a;
108
+ function Ka(e, t, r = {}) {
109
+ let n = Ge(e, r.backwards ? t - 1 : t, r), s = Ue(e, n, r);
110
+ return n !== s;
111
+ }
112
+ var te = Ka;
113
+ function za(e, t) {
114
+ if (t === false) return false;
115
+ if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
116
+ for (let r = t + 2; r < e.length; ++r) if (e.charAt(r) === "*" && e.charAt(r + 1) === "/") return r + 2;
117
+ }
118
+ return t;
119
+ }
120
+ var Lt = za;
121
+ function Qa(e, t) {
122
+ return t === false ? false : e.charAt(t) === "/" && e.charAt(t + 1) === "/" ? zs(e, t) : t;
123
+ }
124
+ var wt = Qa;
125
+ function Za(e, t) {
126
+ let r = null, n = t;
127
+ for (; n !== r; ) r = n, n = Ks(e, n), n = Lt(e, n), n = Ge(e, n);
128
+ return n = wt(e, n), n = Ue(e, n), n !== false && te(e, n);
129
+ }
130
+ var Ot = Za;
131
+ function eo(e) {
132
+ return Array.isArray(e) && e.length > 0;
133
+ }
134
+ var w = eo;
135
+ var dr = "'";
136
+ var Qs = '"';
137
+ function to(e, t) {
138
+ let r = t === true || t === dr ? dr : Qs, n = r === dr ? Qs : dr, s = 0, u = 0;
139
+ for (let i of e) i === r ? s++ : i === n && u++;
140
+ return s > u ? n : r;
141
+ }
142
+ var xr = to;
143
+ function ro(e, t, r) {
144
+ let n = t === '"' ? "'" : '"', u = N(false, e, /\\(.)|(["'])/gsu, (i, a, o) => a === n ? a : o === t ? "\\" + o : o || (r && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a) ? a : "\\" + a));
145
+ return t + u + t;
146
+ }
147
+ var Zs = ro;
148
+ function no(e, t) {
149
+ let r = e.slice(1, -1), n = t.parser === "json" || t.parser === "jsonc" || t.parser === "json5" && t.quoteProps === "preserve" && !t.singleQuote ? '"' : t.__isInHtmlAttribute ? "'" : xr(r, t.singleQuote);
150
+ return Zs(r, n, !(t.parser === "css" || t.parser === "less" || t.parser === "scss" || t.__embeddedInHtml));
151
+ }
152
+ var tt = no;
153
+ function R(e) {
154
+ var n, s, u;
155
+ let t = ((n = e.range) == null ? void 0 : n[0]) ?? e.start, r = (u = ((s = e.declaration) == null ? void 0 : s.decorators) ?? e.decorators) == null ? void 0 : u[0];
156
+ return r ? Math.min(R(r), t) : t;
157
+ }
158
+ function k(e) {
159
+ var t;
160
+ return ((t = e.range) == null ? void 0 : t[1]) ?? e.end;
161
+ }
162
+ function ht(e, t) {
163
+ let r = R(e);
164
+ return Number.isInteger(r) && r === R(t);
165
+ }
166
+ function so(e, t) {
167
+ let r = k(e);
168
+ return Number.isInteger(r) && r === k(t);
169
+ }
170
+ function eu(e, t) {
171
+ return ht(e, t) && so(e, t);
172
+ }
173
+ var Qt = null;
174
+ function Zt(e) {
175
+ if (Qt !== null && typeof Qt.property) {
176
+ let t = Qt;
177
+ return Qt = Zt.prototype = null, t;
178
+ }
179
+ return Qt = Zt.prototype = e ?? /* @__PURE__ */ Object.create(null), new Zt();
180
+ }
181
+ var uo = 10;
182
+ for (let e = 0; e <= uo; e++) Zt();
183
+ function In(e) {
184
+ return Zt(e);
185
+ }
186
+ function io(e, t = "type") {
187
+ In(e);
188
+ function r(n) {
189
+ let s = n[t], u = e[s];
190
+ if (!Array.isArray(u)) throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), { node: n });
191
+ return u;
192
+ }
193
+ return r;
194
+ }
195
+ var hr = io;
196
+ var tu = { ArrayExpression: ["elements"], AssignmentExpression: ["left", "right"], BinaryExpression: ["left", "right"], InterpreterDirective: [], Directive: ["value"], DirectiveLiteral: [], BlockStatement: ["directives", "body"], BreakStatement: ["label"], CallExpression: ["callee", "arguments", "typeParameters", "typeArguments"], CatchClause: ["param", "body"], ConditionalExpression: ["test", "consequent", "alternate"], ContinueStatement: ["label"], DebuggerStatement: [], DoWhileStatement: ["test", "body"], EmptyStatement: [], ExpressionStatement: ["expression"], File: ["program"], ForInStatement: ["left", "right", "body"], ForStatement: ["init", "test", "update", "body"], FunctionDeclaration: ["id", "params", "body", "returnType", "typeParameters", "predicate"], FunctionExpression: ["id", "params", "body", "returnType", "typeParameters"], Identifier: ["typeAnnotation", "decorators"], IfStatement: ["test", "consequent", "alternate"], LabeledStatement: ["label", "body"], StringLiteral: [], NumericLiteral: [], NullLiteral: [], BooleanLiteral: [], RegExpLiteral: [], LogicalExpression: ["left", "right"], MemberExpression: ["object", "property"], NewExpression: ["callee", "arguments", "typeParameters", "typeArguments"], Program: ["directives", "body"], ObjectExpression: ["properties"], ObjectMethod: ["key", "params", "body", "decorators", "returnType", "typeParameters"], ObjectProperty: ["key", "value", "decorators"], RestElement: ["argument", "typeAnnotation", "decorators"], ReturnStatement: ["argument"], SequenceExpression: ["expressions"], ParenthesizedExpression: ["expression"], SwitchCase: ["test", "consequent"], SwitchStatement: ["discriminant", "cases"], ThisExpression: [], ThrowStatement: ["argument"], TryStatement: ["block", "handler", "finalizer"], UnaryExpression: ["argument"], UpdateExpression: ["argument"], VariableDeclaration: ["declarations"], VariableDeclarator: ["id", "init"], WhileStatement: ["test", "body"], WithStatement: ["object", "body"], AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"], ArrayPattern: ["elements", "typeAnnotation", "decorators"], ArrowFunctionExpression: ["params", "body", "returnType", "typeParameters", "predicate"], ClassBody: ["body"], ClassExpression: ["id", "body", "superClass", "mixins", "typeParameters", "superTypeParameters", "implements", "decorators", "superTypeArguments"], ClassDeclaration: ["id", "body", "superClass", "mixins", "typeParameters", "superTypeParameters", "implements", "decorators", "superTypeArguments"], ExportAllDeclaration: ["source", "attributes", "exported"], ExportDefaultDeclaration: ["declaration"], ExportNamedDeclaration: ["declaration", "specifiers", "source", "attributes"], ExportSpecifier: ["local", "exported"], ForOfStatement: ["left", "right", "body"], ImportDeclaration: ["specifiers", "source", "attributes"], ImportDefaultSpecifier: ["local"], ImportNamespaceSpecifier: ["local"], ImportSpecifier: ["local", "imported"], ImportExpression: ["source", "options", "attributes"], MetaProperty: ["meta", "property"], ClassMethod: ["key", "params", "body", "decorators", "returnType", "typeParameters"], ObjectPattern: ["properties", "typeAnnotation", "decorators"], SpreadElement: ["argument"], Super: [], TaggedTemplateExpression: ["tag", "quasi", "typeParameters", "typeArguments"], TemplateElement: [], TemplateLiteral: ["quasis", "expressions"], YieldExpression: ["argument"], AwaitExpression: ["argument"], Import: [], BigIntLiteral: [], ExportNamespaceSpecifier: ["exported"], OptionalMemberExpression: ["object", "property"], OptionalCallExpression: ["callee", "arguments", "typeParameters", "typeArguments"], ClassProperty: ["key", "value", "typeAnnotation", "decorators", "variance"], ClassAccessorProperty: ["key", "value", "typeAnnotation", "decorators"], ClassPrivateProperty: ["key", "value", "decorators", "typeAnnotation", "variance"], ClassPrivateMethod: ["key", "params", "body", "decorators", "returnType", "typeParameters"], PrivateName: ["id"], StaticBlock: ["body"], AnyTypeAnnotation: [], ArrayTypeAnnotation: ["elementType"], BooleanTypeAnnotation: [], BooleanLiteralTypeAnnotation: [], NullLiteralTypeAnnotation: [], ClassImplements: ["id", "typeParameters"], DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"], DeclareFunction: ["id", "predicate"], DeclareInterface: ["id", "typeParameters", "extends", "body"], DeclareModule: ["id", "body"], DeclareModuleExports: ["typeAnnotation"], DeclareTypeAlias: ["id", "typeParameters", "right"], DeclareOpaqueType: ["id", "typeParameters", "supertype"], DeclareVariable: ["id"], DeclareExportDeclaration: ["declaration", "specifiers", "source"], DeclareExportAllDeclaration: ["source"], DeclaredPredicate: ["value"], ExistsTypeAnnotation: [], FunctionTypeAnnotation: ["typeParameters", "params", "rest", "returnType", "this"], FunctionTypeParam: ["name", "typeAnnotation"], GenericTypeAnnotation: ["id", "typeParameters"], InferredPredicate: [], InterfaceExtends: ["id", "typeParameters"], InterfaceDeclaration: ["id", "typeParameters", "extends", "body"], InterfaceTypeAnnotation: ["extends", "body"], IntersectionTypeAnnotation: ["types"], MixedTypeAnnotation: [], EmptyTypeAnnotation: [], NullableTypeAnnotation: ["typeAnnotation"], NumberLiteralTypeAnnotation: [], NumberTypeAnnotation: [], ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"], ObjectTypeInternalSlot: ["id", "value"], ObjectTypeCallProperty: ["value"], ObjectTypeIndexer: ["id", "key", "value", "variance"], ObjectTypeProperty: ["key", "value", "variance"], ObjectTypeSpreadProperty: ["argument"], OpaqueType: ["id", "typeParameters", "supertype", "impltype"], QualifiedTypeIdentifier: ["id", "qualification"], StringLiteralTypeAnnotation: [], StringTypeAnnotation: [], SymbolTypeAnnotation: [], ThisTypeAnnotation: [], TupleTypeAnnotation: ["types", "elementTypes"], TypeofTypeAnnotation: ["argument", "typeArguments"], TypeAlias: ["id", "typeParameters", "right"], TypeAnnotation: ["typeAnnotation"], TypeCastExpression: ["expression", "typeAnnotation"], TypeParameter: ["bound", "default", "variance"], TypeParameterDeclaration: ["params"], TypeParameterInstantiation: ["params"], UnionTypeAnnotation: ["types"], Variance: [], VoidTypeAnnotation: [], EnumDeclaration: ["id", "body"], EnumBooleanBody: ["members"], EnumNumberBody: ["members"], EnumStringBody: ["members"], EnumSymbolBody: ["members"], EnumBooleanMember: ["id", "init"], EnumNumberMember: ["id", "init"], EnumStringMember: ["id", "init"], EnumDefaultedMember: ["id"], IndexedAccessType: ["objectType", "indexType"], OptionalIndexedAccessType: ["objectType", "indexType"], JSXAttribute: ["name", "value"], JSXClosingElement: ["name"], JSXElement: ["openingElement", "children", "closingElement"], JSXEmptyExpression: [], JSXExpressionContainer: ["expression"], JSXSpreadChild: ["expression"], JSXIdentifier: [], JSXMemberExpression: ["object", "property"], JSXNamespacedName: ["namespace", "name"], JSXOpeningElement: ["name", "attributes", "typeArguments", "typeParameters"], JSXSpreadAttribute: ["argument"], JSXText: [], JSXFragment: ["openingFragment", "children", "closingFragment"], JSXOpeningFragment: [], JSXClosingFragment: [], Noop: [], Placeholder: [], V8IntrinsicIdentifier: [], ArgumentPlaceholder: [], BindExpression: ["object", "callee"], ImportAttribute: ["key", "value"], Decorator: ["expression"], DoExpression: ["body"], ExportDefaultSpecifier: ["exported"], RecordExpression: ["properties"], TupleExpression: ["elements"], DecimalLiteral: [], ModuleExpression: ["body"], TopicReference: [], PipelineTopicExpression: ["expression"], PipelineBareFunction: ["callee"], PipelinePrimaryTopicReference: [], TSParameterProperty: ["parameter", "decorators"], TSDeclareFunction: ["id", "typeParameters", "params", "returnType", "body"], TSDeclareMethod: ["decorators", "key", "typeParameters", "params", "returnType"], TSQualifiedName: ["left", "right"], TSCallSignatureDeclaration: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSConstructSignatureDeclaration: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSPropertySignature: ["key", "typeAnnotation"], TSMethodSignature: ["key", "typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSIndexSignature: ["parameters", "typeAnnotation"], TSAnyKeyword: [], TSBooleanKeyword: [], TSBigIntKeyword: [], TSIntrinsicKeyword: [], TSNeverKeyword: [], TSNullKeyword: [], TSNumberKeyword: [], TSObjectKeyword: [], TSStringKeyword: [], TSSymbolKeyword: [], TSUndefinedKeyword: [], TSUnknownKeyword: [], TSVoidKeyword: [], TSThisType: [], TSFunctionType: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSConstructorType: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"], TSTypeReference: ["typeName", "typeParameters", "typeArguments"], TSTypePredicate: ["parameterName", "typeAnnotation"], TSTypeQuery: ["exprName", "typeParameters", "typeArguments"], TSTypeLiteral: ["members"], TSArrayType: ["elementType"], TSTupleType: ["elementTypes"], TSOptionalType: ["typeAnnotation"], TSRestType: ["typeAnnotation"], TSNamedTupleMember: ["label", "elementType"], TSUnionType: ["types"], TSIntersectionType: ["types"], TSConditionalType: ["checkType", "extendsType", "trueType", "falseType"], TSInferType: ["typeParameter"], TSParenthesizedType: ["typeAnnotation"], TSTypeOperator: ["typeAnnotation"], TSIndexedAccessType: ["objectType", "indexType"], TSMappedType: ["typeParameter", "typeAnnotation", "nameType"], TSLiteralType: ["literal"], TSExpressionWithTypeArguments: ["expression", "typeParameters"], TSInterfaceDeclaration: ["id", "typeParameters", "extends", "body"], TSInterfaceBody: ["body"], TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"], TSInstantiationExpression: ["expression", "typeParameters", "typeArguments"], TSAsExpression: ["expression", "typeAnnotation"], TSSatisfiesExpression: ["expression", "typeAnnotation"], TSTypeAssertion: ["typeAnnotation", "expression"], TSEnumDeclaration: ["id", "members"], TSEnumMember: ["id", "initializer"], TSModuleDeclaration: ["id", "body"], TSModuleBlock: ["body"], TSImportType: ["argument", "qualifier", "typeParameters", "typeArguments"], TSImportEqualsDeclaration: ["id", "moduleReference"], TSExternalModuleReference: ["expression"], TSNonNullExpression: ["expression"], TSExportAssignment: ["expression"], TSNamespaceExportDeclaration: ["id"], TSTypeAnnotation: ["typeAnnotation"], TSTypeParameterInstantiation: ["params"], TSTypeParameterDeclaration: ["params"], TSTypeParameter: ["constraint", "default", "name"], ChainExpression: ["expression"], ExperimentalRestProperty: ["argument"], ExperimentalSpreadProperty: ["argument"], Literal: [], MethodDefinition: ["decorators", "key", "value"], PrivateIdentifier: [], Property: ["key", "value"], PropertyDefinition: ["decorators", "key", "typeAnnotation", "value", "variance"], AccessorProperty: ["decorators", "key", "typeAnnotation", "value"], TSAbstractAccessorProperty: ["decorators", "key", "typeAnnotation"], TSAbstractKeyword: [], TSAbstractMethodDefinition: ["key", "value"], TSAbstractPropertyDefinition: ["decorators", "key", "typeAnnotation"], TSAsyncKeyword: [], TSClassImplements: ["expression", "typeArguments", "typeParameters"], TSDeclareKeyword: [], TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"], TSEnumBody: ["members"], TSExportKeyword: [], TSInterfaceHeritage: ["expression", "typeArguments", "typeParameters"], TSPrivateKeyword: [], TSProtectedKeyword: [], TSPublicKeyword: [], TSReadonlyKeyword: [], TSStaticKeyword: [], TSTemplateLiteralType: ["quasis", "types"], AsConstExpression: ["expression"], AsExpression: ["expression", "typeAnnotation"], BigIntLiteralTypeAnnotation: [], BigIntTypeAnnotation: [], ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"], ComponentParameter: ["name", "local"], ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"], ComponentTypeParameter: ["name", "typeAnnotation"], ConditionalTypeAnnotation: ["checkType", "extendsType", "trueType", "falseType"], DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"], DeclareEnum: ["id", "body"], DeclareHook: ["id"], DeclareNamespace: ["id", "body"], EnumBigIntBody: ["members"], EnumBigIntMember: ["id", "init"], HookDeclaration: ["id", "params", "body", "typeParameters", "returnType"], HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"], InferTypeAnnotation: ["typeParameter"], KeyofTypeAnnotation: ["argument"], ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"], QualifiedTypeofIdentifier: ["qualification", "id"], TupleTypeLabeledElement: ["label", "elementType", "variance"], TupleTypeSpreadElement: ["label", "typeAnnotation"], TypeOperator: ["typeAnnotation"], TypePredicate: ["parameterName", "typeAnnotation", "asserts"], NGRoot: ["node"], NGPipeExpression: ["left", "right", "arguments"], NGChainedExpression: ["expressions"], NGEmptyExpression: [], NGMicrosyntax: ["body"], NGMicrosyntaxKey: [], NGMicrosyntaxExpression: ["expression", "alias"], NGMicrosyntaxKeyedExpression: ["key", "expression"], NGMicrosyntaxLet: ["key", "value"], NGMicrosyntaxAs: ["key", "alias"], JsExpressionRoot: ["node"], JsonRoot: ["node"], TSJSDocAllType: [], TSJSDocUnknownType: [], TSJSDocNullableType: ["typeAnnotation"], TSJSDocNonNullableType: ["typeAnnotation"], NeverTypeAnnotation: [], UndefinedTypeAnnotation: [], UnknownTypeAnnotation: [], SatisfiesExpression: ["expression", "typeAnnotation"] };
197
+ var ao = hr(tu);
198
+ var gr = ao;
199
+ function oo(e) {
200
+ let t = new Set(e);
201
+ return (r) => t.has(r == null ? void 0 : r.type);
202
+ }
203
+ var v = oo;
204
+ var po = v(["Block", "CommentBlock", "MultiLine"]);
205
+ var re = po;
206
+ var co = v(["AnyTypeAnnotation", "ThisTypeAnnotation", "NumberTypeAnnotation", "VoidTypeAnnotation", "BooleanTypeAnnotation", "BigIntTypeAnnotation", "SymbolTypeAnnotation", "StringTypeAnnotation", "NeverTypeAnnotation", "UndefinedTypeAnnotation", "UnknownTypeAnnotation", "EmptyTypeAnnotation", "MixedTypeAnnotation"]);
207
+ var Sr = co;
208
+ function lo(e, t) {
209
+ let r = t.split(".");
210
+ for (let n = r.length - 1; n >= 0; n--) {
211
+ let s = r[n];
212
+ if (n === 0) return e.type === "Identifier" && e.name === s;
213
+ if (e.type !== "MemberExpression" || e.optional || e.computed || e.property.type !== "Identifier" || e.property.name !== s) return false;
214
+ e = e.object;
215
+ }
216
+ }
217
+ function mo(e, t) {
218
+ return t.some((r) => lo(e, r));
219
+ }
220
+ var ru = mo;
221
+ function yo({ type: e }) {
222
+ return e.startsWith("TS") && e.endsWith("Keyword");
223
+ }
224
+ var Br = yo;
225
+ function tr(e, t) {
226
+ return t(e) || Xs(e, { getVisitorKeys: gr, predicate: t });
227
+ }
228
+ function jt(e) {
229
+ return e.type === "AssignmentExpression" || e.type === "BinaryExpression" || e.type === "LogicalExpression" || e.type === "NGPipeExpression" || e.type === "ConditionalExpression" || L(e) || q(e) || e.type === "SequenceExpression" || e.type === "TaggedTemplateExpression" || e.type === "BindExpression" || e.type === "UpdateExpression" && !e.prefix || Te(e) || e.type === "TSNonNullExpression" || e.type === "ChainExpression";
230
+ }
231
+ function uu(e) {
232
+ return e.expressions ? e.expressions[0] : e.left ?? e.test ?? e.callee ?? e.object ?? e.tag ?? e.argument ?? e.expression;
233
+ }
234
+ function Pr(e) {
235
+ if (e.expressions) return ["expressions", 0];
236
+ if (e.left) return ["left"];
237
+ if (e.test) return ["test"];
238
+ if (e.object) return ["object"];
239
+ if (e.callee) return ["callee"];
240
+ if (e.tag) return ["tag"];
241
+ if (e.argument) return ["argument"];
242
+ if (e.expression) return ["expression"];
243
+ throw new Error("Unexpected node has no left side.");
244
+ }
245
+ var vt = v(["Line", "CommentLine", "SingleLine", "HashbangComment", "HTMLOpen", "HTMLClose", "Hashbang", "InterpreterDirective"]);
246
+ var iu = v(["ExportDefaultDeclaration", "DeclareExportDeclaration", "ExportNamedDeclaration", "ExportAllDeclaration", "DeclareExportAllDeclaration"]);
247
+ var U = v(["ArrayExpression", "TupleExpression"]);
248
+ var se = v(["ObjectExpression", "RecordExpression"]);
249
+ function au(e) {
250
+ return e.type === "LogicalExpression" && e.operator === "??";
251
+ }
252
+ function Ce(e) {
253
+ return e.type === "NumericLiteral" || e.type === "Literal" && typeof e.value == "number";
254
+ }
255
+ function jn(e) {
256
+ return e.type === "UnaryExpression" && (e.operator === "+" || e.operator === "-") && Ce(e.argument);
257
+ }
258
+ function Q(e) {
259
+ return !!(e && (e.type === "StringLiteral" || e.type === "Literal" && typeof e.value == "string"));
260
+ }
261
+ function vn(e) {
262
+ return e.type === "RegExpLiteral" || e.type === "Literal" && !!e.regex;
263
+ }
264
+ var kr = v(["Literal", "BooleanLiteral", "BigIntLiteral", "DecimalLiteral", "DirectiveLiteral", "NullLiteral", "NumericLiteral", "RegExpLiteral", "StringLiteral"]);
265
+ var Do = v(["Identifier", "ThisExpression", "Super", "PrivateName", "PrivateIdentifier", "Import"]);
266
+ var we = v(["ObjectTypeAnnotation", "TSTypeLiteral", "TSMappedType"]);
267
+ var _t = v(["FunctionExpression", "ArrowFunctionExpression"]);
268
+ function fo(e) {
269
+ return e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && e.body.type === "BlockStatement";
270
+ }
271
+ function Ln(e) {
272
+ return L(e) && e.callee.type === "Identifier" && ["async", "inject", "fakeAsync", "waitForAsync"].includes(e.callee.name);
273
+ }
274
+ var X = v(["JSXElement", "JSXFragment"]);
275
+ function gt(e) {
276
+ return e.method && e.kind === "init" || e.kind === "get" || e.kind === "set";
277
+ }
278
+ function Ir(e) {
279
+ return (e.type === "ObjectTypeProperty" || e.type === "ObjectTypeInternalSlot") && !e.static && !e.method && e.kind !== "get" && e.kind !== "set" && e.value.type === "FunctionTypeAnnotation";
280
+ }
281
+ function ou(e) {
282
+ return (e.type === "TypeAnnotation" || e.type === "TSTypeAnnotation") && e.typeAnnotation.type === "FunctionTypeAnnotation" && !e.static && !ht(e, e.typeAnnotation);
283
+ }
284
+ var De = v(["BinaryExpression", "LogicalExpression", "NGPipeExpression"]);
285
+ function Ft(e) {
286
+ return q(e) || e.type === "BindExpression" && !!e.object;
287
+ }
288
+ var Eo = v(["TSThisType", "NullLiteralTypeAnnotation", "BooleanLiteralTypeAnnotation", "StringLiteralTypeAnnotation", "BigIntLiteralTypeAnnotation", "NumberLiteralTypeAnnotation", "TSLiteralType", "TSTemplateLiteralType"]);
289
+ function Mt(e) {
290
+ return Br(e) || Sr(e) || Eo(e) || (e.type === "GenericTypeAnnotation" || e.type === "TSTypeReference") && !e.typeParameters && !e.typeArguments;
291
+ }
292
+ function Fo(e) {
293
+ return e.type === "Identifier" && (e.name === "beforeEach" || e.name === "beforeAll" || e.name === "afterEach" || e.name === "afterAll");
294
+ }
295
+ var Co = ["it", "it.only", "it.skip", "describe", "describe.only", "describe.skip", "test", "test.only", "test.skip", "test.step", "test.describe", "test.describe.only", "test.describe.parallel", "test.describe.parallel.only", "test.describe.serial", "test.describe.serial.only", "skip", "xit", "xdescribe", "xtest", "fit", "fdescribe", "ftest"];
296
+ function Ao(e) {
297
+ return ru(e, Co);
298
+ }
299
+ function St(e, t) {
300
+ if ((e == null ? void 0 : e.type) !== "CallExpression" || e.optional) return false;
301
+ let r = oe(e);
302
+ if (r.length === 1) {
303
+ if (Ln(e) && St(t)) return _t(r[0]);
304
+ if (Fo(e.callee)) return Ln(r[0]);
305
+ } else if ((r.length === 2 || r.length === 3) && (r[0].type === "TemplateLiteral" || Q(r[0])) && Ao(e.callee)) return r[2] && !Ce(r[2]) ? false : (r.length === 2 ? _t(r[1]) : fo(r[1]) && K(r[1]).length <= 1) || Ln(r[1]);
306
+ return false;
307
+ }
308
+ var pu = (e) => (t) => ((t == null ? void 0 : t.type) === "ChainExpression" && (t = t.expression), e(t));
309
+ var L = pu(v(["CallExpression", "OptionalCallExpression"]));
310
+ var q = pu(v(["MemberExpression", "OptionalMemberExpression"]));
311
+ function Mn(e, t = 5) {
312
+ return cu(e, t) <= t;
313
+ }
314
+ function cu(e, t) {
315
+ let r = 0;
316
+ for (let n in e) {
317
+ let s = e[n];
318
+ if (s && typeof s == "object" && typeof s.type == "string" && (r++, r += cu(s, t - r)), r > t) return r;
319
+ }
320
+ return r;
321
+ }
322
+ var To = 0.25;
323
+ function rr(e, t) {
324
+ let { printWidth: r } = t;
325
+ if (d(e)) return false;
326
+ let n = r * To;
327
+ if (e.type === "ThisExpression" || e.type === "Identifier" && e.name.length <= n || jn(e) && !d(e.argument)) return true;
328
+ let s = e.type === "Literal" && "regex" in e && e.regex.pattern || e.type === "RegExpLiteral" && e.pattern;
329
+ return s ? s.length <= n : Q(e) ? tt(fe(e), t).length <= n : e.type === "TemplateLiteral" ? e.expressions.length === 0 && e.quasis[0].value.raw.length <= n && !e.quasis[0].value.raw.includes(`
330
+ `) : e.type === "UnaryExpression" ? rr(e.argument, { printWidth: r }) : e.type === "CallExpression" && e.arguments.length === 0 && e.callee.type === "Identifier" ? e.callee.name.length <= n - 2 : kr(e);
331
+ }
332
+ function Oe(e, t) {
333
+ return X(t) ? Bt(t) : d(t, g.Leading, (r) => te(e, k(r)));
334
+ }
335
+ function nu(e) {
336
+ return e.quasis.some((t) => t.value.raw.includes(`
337
+ `));
338
+ }
339
+ function Lr(e, t) {
340
+ return (e.type === "TemplateLiteral" && nu(e) || e.type === "TaggedTemplateExpression" && nu(e.quasi)) && !te(t, R(e), { backwards: true });
341
+ }
342
+ function wr(e) {
343
+ if (!d(e)) return false;
344
+ let t = O(false, ct(e, g.Dangling), -1);
345
+ return t && !re(t);
346
+ }
347
+ function lu(e) {
348
+ if (e.length <= 1) return false;
349
+ let t = 0;
350
+ for (let r of e) if (_t(r)) {
351
+ if (t += 1, t > 1) return true;
352
+ } else if (L(r)) {
353
+ for (let n of oe(r)) if (_t(n)) return true;
354
+ }
355
+ return false;
356
+ }
357
+ function Or(e) {
358
+ let { node: t, parent: r, key: n } = e;
359
+ return n === "callee" && L(t) && L(r) && r.arguments.length > 0 && t.arguments.length > r.arguments.length;
360
+ }
361
+ var xo = /* @__PURE__ */ new Set(["!", "-", "+", "~"]);
362
+ function be(e, t = 2) {
363
+ if (t <= 0) return false;
364
+ if (e.type === "ChainExpression" || e.type === "TSNonNullExpression") return be(e.expression, t);
365
+ let r = (n) => be(n, t - 1);
366
+ if (vn(e)) return et(e.pattern ?? e.regex.pattern) <= 5;
367
+ if (kr(e) || Do(e) || e.type === "ArgumentPlaceholder") return true;
368
+ if (e.type === "TemplateLiteral") return e.quasis.every((n) => !n.value.raw.includes(`
369
+ `)) && e.expressions.every(r);
370
+ if (se(e)) return e.properties.every((n) => !n.computed && (n.shorthand || n.value && r(n.value)));
371
+ if (U(e)) return e.elements.every((n) => n === null || r(n));
372
+ if (lt(e)) {
373
+ if (e.type === "ImportExpression" || be(e.callee, t)) {
374
+ let n = oe(e);
375
+ return n.length <= t && n.every(r);
376
+ }
377
+ return false;
378
+ }
379
+ return q(e) ? be(e.object, t) && be(e.property, t) : e.type === "UnaryExpression" && xo.has(e.operator) || e.type === "UpdateExpression" ? be(e.argument, t) : false;
380
+ }
381
+ function fe(e) {
382
+ var t;
383
+ return ((t = e.extra) == null ? void 0 : t.raw) ?? e.raw;
384
+ }
385
+ function mu(e) {
386
+ return e;
387
+ }
388
+ function ae(e, t = "es5") {
389
+ return e.trailingComma === "es5" && t === "es5" || e.trailingComma === "all" && (t === "all" || t === "es5");
390
+ }
391
+ function ie(e, t) {
392
+ switch (e.type) {
393
+ case "BinaryExpression":
394
+ case "LogicalExpression":
395
+ case "AssignmentExpression":
396
+ case "NGPipeExpression":
397
+ return ie(e.left, t);
398
+ case "MemberExpression":
399
+ case "OptionalMemberExpression":
400
+ return ie(e.object, t);
401
+ case "TaggedTemplateExpression":
402
+ return e.tag.type === "FunctionExpression" ? false : ie(e.tag, t);
403
+ case "CallExpression":
404
+ case "OptionalCallExpression":
405
+ return e.callee.type === "FunctionExpression" ? false : ie(e.callee, t);
406
+ case "ConditionalExpression":
407
+ return ie(e.test, t);
408
+ case "UpdateExpression":
409
+ return !e.prefix && ie(e.argument, t);
410
+ case "BindExpression":
411
+ return e.object && ie(e.object, t);
412
+ case "SequenceExpression":
413
+ return ie(e.expressions[0], t);
414
+ case "ChainExpression":
415
+ case "TSSatisfiesExpression":
416
+ case "TSAsExpression":
417
+ case "TSNonNullExpression":
418
+ case "AsExpression":
419
+ case "AsConstExpression":
420
+ case "SatisfiesExpression":
421
+ return ie(e.expression, t);
422
+ default:
423
+ return t(e);
424
+ }
425
+ }
426
+ var su = { "==": true, "!=": true, "===": true, "!==": true };
427
+ var br = { "*": true, "/": true, "%": true };
428
+ var _n = { ">>": true, ">>>": true, "<<": true };
429
+ function nr(e, t) {
430
+ return !(er(t) !== er(e) || e === "**" || su[e] && su[t] || t === "%" && br[e] || e === "%" && br[t] || t !== e && br[t] && br[e] || _n[e] && _n[t]);
431
+ }
432
+ var ho = new Map([["|>"], ["??"], ["||"], ["&&"], ["|"], ["^"], ["&"], ["==", "===", "!=", "!=="], ["<", ">", "<=", ">=", "in", "instanceof"], [">>", "<<", ">>>"], ["+", "-"], ["*", "/", "%"], ["**"]].flatMap((e, t) => e.map((r) => [r, t])));
433
+ function er(e) {
434
+ return ho.get(e);
435
+ }
436
+ function yu(e) {
437
+ return !!_n[e] || e === "|" || e === "^" || e === "&";
438
+ }
439
+ function Du(e) {
440
+ var r;
441
+ if (e.rest) return true;
442
+ let t = K(e);
443
+ return ((r = O(false, t, -1)) == null ? void 0 : r.type) === "RestElement";
444
+ }
445
+ var wn = /* @__PURE__ */ new WeakMap();
446
+ function K(e) {
447
+ if (wn.has(e)) return wn.get(e);
448
+ let t = [];
449
+ return e.this && t.push(e.this), Array.isArray(e.parameters) ? t.push(...e.parameters) : Array.isArray(e.params) && t.push(...e.params), e.rest && t.push(e.rest), wn.set(e, t), t;
450
+ }
451
+ function fu(e, t) {
452
+ let { node: r } = e, n = 0, s = (u) => t(u, n++);
453
+ r.this && e.call(s, "this"), Array.isArray(r.parameters) ? e.each(s, "parameters") : Array.isArray(r.params) && e.each(s, "params"), r.rest && e.call(s, "rest");
454
+ }
455
+ var On = /* @__PURE__ */ new WeakMap();
456
+ function oe(e) {
457
+ if (On.has(e)) return On.get(e);
458
+ if (e.type === "ChainExpression") return oe(e.expression);
459
+ let t = e.arguments;
460
+ return e.type === "ImportExpression" && (t = [e.source], e.attributes && t.push(e.attributes), e.options && t.push(e.options)), On.set(e, t), t;
461
+ }
462
+ function Rt(e, t) {
463
+ let { node: r } = e;
464
+ if (r.type === "ChainExpression") return e.call(() => Rt(e, t), "expression");
465
+ r.type === "ImportExpression" ? (e.call((n) => t(n, 0), "source"), r.attributes && e.call((n) => t(n, 1), "attributes"), r.options && e.call((n) => t(n, 1), "options")) : e.each(t, "arguments");
466
+ }
467
+ function Rn(e, t) {
468
+ let r = [];
469
+ if (e.type === "ChainExpression" && (e = e.expression, r.push("expression")), e.type === "ImportExpression") {
470
+ if (t === 0 || t === (e.attributes || e.options ? -2 : -1)) return [...r, "source"];
471
+ if (e.attributes && (t === 1 || t === -1)) return [...r, "attributes"];
472
+ if (e.options && (t === 1 || t === -1)) return [...r, "options"];
473
+ throw new RangeError("Invalid argument index");
474
+ }
475
+ if (t < 0 && (t = e.arguments.length + t), t < 0 || t >= e.arguments.length) throw new RangeError("Invalid argument index");
476
+ return [...r, "arguments", t];
477
+ }
478
+ function sr(e) {
479
+ return e.value.trim() === "prettier-ignore" && !e.unignore;
480
+ }
481
+ function Bt(e) {
482
+ return (e == null ? void 0 : e.prettierIgnore) || d(e, g.PrettierIgnore);
483
+ }
484
+ var g = { Leading: 2, Trailing: 4, Dangling: 8, Block: 16, Line: 32, PrettierIgnore: 64, First: 128, Last: 256 };
485
+ var Eu = (e, t) => {
486
+ if (typeof e == "function" && (t = e, e = 0), e || t) return (r, n, s) => !(e & g.Leading && !r.leading || e & g.Trailing && !r.trailing || e & g.Dangling && (r.leading || r.trailing) || e & g.Block && !re(r) || e & g.Line && !vt(r) || e & g.First && n !== 0 || e & g.Last && n !== s.length - 1 || e & g.PrettierIgnore && !sr(r) || t && !t(r));
487
+ };
488
+ function d(e, t, r) {
489
+ if (!w(e == null ? void 0 : e.comments)) return false;
490
+ let n = Eu(t, r);
491
+ return n ? e.comments.some(n) : true;
492
+ }
493
+ function ct(e, t, r) {
494
+ if (!Array.isArray(e == null ? void 0 : e.comments)) return [];
495
+ let n = Eu(t, r);
496
+ return n ? e.comments.filter(n) : e.comments;
497
+ }
498
+ var pe = (e, { originalText: t }) => Ot(t, k(e));
499
+ function lt(e) {
500
+ return L(e) || e.type === "NewExpression" || e.type === "ImportExpression";
501
+ }
502
+ function Ae(e) {
503
+ return e && (e.type === "ObjectProperty" || e.type === "Property" && !gt(e));
504
+ }
505
+ var Te = v(["TSAsExpression", "TSSatisfiesExpression", "AsExpression", "AsConstExpression", "SatisfiesExpression"]);
506
+ var Ne = v(["UnionTypeAnnotation", "TSUnionType"]);
507
+ var _r = v(["IntersectionTypeAnnotation", "TSIntersectionType"]);
508
+ var go = /* @__PURE__ */ new Set(["range", "raw", "comments", "leadingComments", "trailingComments", "innerComments", "extra", "start", "end", "loc", "flags", "errors", "tokens"]);
509
+ var Jt = (e) => {
510
+ for (let t of e.quasis) delete t.value;
511
+ };
512
+ function Fu(e, t, r) {
513
+ var s, u;
514
+ if (e.type === "Program" && delete t.sourceType, (e.type === "BigIntLiteral" || e.type === "BigIntLiteralTypeAnnotation") && e.value && (t.value = e.value.toLowerCase()), (e.type === "BigIntLiteral" || e.type === "Literal") && e.bigint && (t.bigint = e.bigint.toLowerCase()), e.type === "DecimalLiteral" && (t.value = Number(e.value)), e.type === "Literal" && t.decimal && (t.decimal = Number(e.decimal)), e.type === "EmptyStatement" || e.type === "JSXText" || e.type === "JSXExpressionContainer" && (e.expression.type === "Literal" || e.expression.type === "StringLiteral") && e.expression.value === " ") return null;
515
+ if ((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 === "ObjectTypeProperty" || e.type === "ImportAttribute") && e.key && !e.computed) {
516
+ let { key: i } = e;
517
+ Q(i) || Ce(i) ? t.key = String(i.value) : i.type === "Identifier" && (t.key = i.name);
518
+ }
519
+ if (e.type === "JSXElement" && e.openingElement.name.name === "style" && e.openingElement.attributes.some((i) => i.type === "JSXAttribute" && i.name.name === "jsx")) for (let { type: i, expression: a } of t.children) i === "JSXExpressionContainer" && a.type === "TemplateLiteral" && Jt(a);
520
+ e.type === "JSXAttribute" && e.name.name === "css" && e.value.type === "JSXExpressionContainer" && e.value.expression.type === "TemplateLiteral" && Jt(t.value.expression), e.type === "JSXAttribute" && ((s = e.value) == null ? void 0 : s.type) === "Literal" && /["']|&quot;|&apos;/u.test(e.value.value) && (t.value.value = N(false, e.value.value, /["']|&quot;|&apos;/gu, '"'));
521
+ let n = e.expression || e.callee;
522
+ if (e.type === "Decorator" && n.type === "CallExpression" && n.callee.name === "Component" && n.arguments.length === 1) {
523
+ let i = e.expression.arguments[0].properties;
524
+ for (let [a, o] of t.expression.arguments[0].properties.entries()) switch (i[a].key.name) {
525
+ case "styles":
526
+ U(o.value) && Jt(o.value.elements[0]);
527
+ break;
528
+ case "template":
529
+ o.value.type === "TemplateLiteral" && Jt(o.value);
530
+ break;
531
+ }
532
+ }
533
+ 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") && Jt(t.quasi), e.type === "TemplateLiteral" && ((u = e.leadingComments) != null && u.some((a) => re(a) && ["GraphQL", "HTML"].some((o) => a.value === ` ${o} `)) || r.type === "CallExpression" && r.callee.name === "graphql" || !e.leadingComments) && Jt(t), e.type === "ChainExpression" && e.expression.type === "TSNonNullExpression" && (t.type = "TSNonNullExpression", t.expression.type = "ChainExpression"), e.type === "TSMappedType" && (delete t.key, delete t.constraint), e.type === "TSEnumDeclaration" && delete t.body;
534
+ }
535
+ Fu.ignoredProperties = go;
536
+ var Cu = Fu;
537
+ var rt = "string";
538
+ var _e = "array";
539
+ var nt = "cursor";
540
+ var Xe = "indent";
541
+ var Ye = "align";
542
+ var st = "trim";
543
+ var le = "group";
544
+ var Pe = "fill";
545
+ var xe = "if-break";
546
+ var He = "indent-if-break";
547
+ var Ve = "line-suffix";
548
+ var $e = "line-suffix-boundary";
549
+ var me = "line";
550
+ var je = "label";
551
+ var ve = "break-parent";
552
+ var jr = /* @__PURE__ */ new Set([nt, Xe, Ye, st, le, Pe, xe, He, Ve, $e, me, je, ve]);
553
+ function So(e) {
554
+ if (typeof e == "string") return rt;
555
+ if (Array.isArray(e)) return _e;
556
+ if (!e) return;
557
+ let { type: t } = e;
558
+ if (jr.has(t)) return t;
559
+ }
560
+ var ut = So;
561
+ var Bo = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
562
+ function bo(e) {
563
+ let t = e === null ? "null" : typeof e;
564
+ if (t !== "string" && t !== "object") return `Unexpected doc '${t}',
565
+ Expected it to be 'string' or 'object'.`;
566
+ if (ut(e)) throw new Error("doc is valid.");
567
+ let r = Object.prototype.toString.call(e);
568
+ if (r !== "[object Object]") return `Unexpected doc '${r}'.`;
569
+ let n = Bo([...jr].map((s) => `'${s}'`));
570
+ return `Unexpected doc.type '${e.type}'.
571
+ Expected it to be ${n}.`;
572
+ }
573
+ var Jn = class extends Error {
574
+ name = "InvalidDocError";
575
+ constructor(t) {
576
+ super(bo(t)), this.doc = t;
577
+ }
578
+ };
579
+ var Ct = Jn;
580
+ var Au = {};
581
+ function Po(e, t, r, n) {
582
+ let s = [e];
583
+ for (; s.length > 0; ) {
584
+ let u = s.pop();
585
+ if (u === Au) {
586
+ r(s.pop());
587
+ continue;
588
+ }
589
+ r && s.push(u, Au);
590
+ let i = ut(u);
591
+ if (!i) throw new Ct(u);
592
+ if ((t == null ? void 0 : t(u)) !== false) switch (i) {
593
+ case _e:
594
+ case Pe: {
595
+ let a = i === _e ? u : u.parts;
596
+ for (let o = a.length, c = o - 1; c >= 0; --c) s.push(a[c]);
597
+ break;
598
+ }
599
+ case xe:
600
+ s.push(u.flatContents, u.breakContents);
601
+ break;
602
+ case le:
603
+ if (n && u.expandedStates) for (let a = u.expandedStates.length, o = a - 1; o >= 0; --o) s.push(u.expandedStates[o]);
604
+ else s.push(u.contents);
605
+ break;
606
+ case Ye:
607
+ case Xe:
608
+ case He:
609
+ case je:
610
+ case Ve:
611
+ s.push(u.contents);
612
+ break;
613
+ case rt:
614
+ case nt:
615
+ case st:
616
+ case $e:
617
+ case me:
618
+ case ve:
619
+ break;
620
+ default:
621
+ throw new Ct(u);
622
+ }
623
+ }
624
+ }
625
+ var qn = Po;
626
+ var Tu = () => {
627
+ };
628
+ var vr = Tu;
629
+ function f(e) {
630
+ return { type: Xe, contents: e };
631
+ }
632
+ function he(e, t) {
633
+ return { type: Ye, contents: t, n: e };
634
+ }
635
+ function l(e, t = {}) {
636
+ return vr(t.expandedStates), { type: le, id: t.id, contents: e, break: !!t.shouldBreak, expandedStates: t.expandedStates };
637
+ }
638
+ function du(e) {
639
+ return he(Number.NEGATIVE_INFINITY, e);
640
+ }
641
+ function Mr(e) {
642
+ return he(-1, e);
643
+ }
644
+ function ze(e, t) {
645
+ return l(e[0], { ...t, expandedStates: e });
646
+ }
647
+ function qt(e) {
648
+ return { type: Pe, parts: e };
649
+ }
650
+ function b(e, t = "", r = {}) {
651
+ return { type: xe, breakContents: e, flatContents: t, groupId: r.groupId };
652
+ }
653
+ function At(e, t) {
654
+ return { type: He, contents: e, groupId: t.groupId, negate: t.negate };
655
+ }
656
+ function Wn(e) {
657
+ return { type: Ve, contents: e };
658
+ }
659
+ var ke = { type: $e };
660
+ var Ee = { type: ve };
661
+ var Gn = { type: me, hard: true };
662
+ var ko = { type: me, hard: true, literal: true };
663
+ var x = { type: me };
664
+ var E = { type: me, soft: true };
665
+ var F = [Gn, Ee];
666
+ var Rr = [ko, Ee];
667
+ var Un = { type: nt };
668
+ function P(e, t) {
669
+ let r = [];
670
+ for (let n = 0; n < t.length; n++) n !== 0 && r.push(e), r.push(t[n]);
671
+ return r;
672
+ }
673
+ function xu(e, t, r) {
674
+ let n = e;
675
+ if (t > 0) {
676
+ for (let s = 0; s < Math.floor(t / r); ++s) n = f(n);
677
+ n = he(t % r, n), n = he(Number.NEGATIVE_INFINITY, n);
678
+ }
679
+ return n;
680
+ }
681
+ function it(e, t) {
682
+ return e ? { type: je, label: e, contents: t } : t;
683
+ }
684
+ function mt(e, t) {
685
+ if (typeof e == "string") return t(e);
686
+ let r = /* @__PURE__ */ new Map();
687
+ return n(e);
688
+ function n(u) {
689
+ if (r.has(u)) return r.get(u);
690
+ let i = s(u);
691
+ return r.set(u, i), i;
692
+ }
693
+ function s(u) {
694
+ switch (ut(u)) {
695
+ case _e:
696
+ return t(u.map(n));
697
+ case Pe:
698
+ return t({ ...u, parts: u.parts.map(n) });
699
+ case xe:
700
+ return t({ ...u, breakContents: n(u.breakContents), flatContents: n(u.flatContents) });
701
+ case le: {
702
+ let { expandedStates: i, contents: a } = u;
703
+ return i ? (i = i.map(n), a = i[0]) : a = n(a), t({ ...u, contents: a, expandedStates: i });
704
+ }
705
+ case Ye:
706
+ case Xe:
707
+ case He:
708
+ case je:
709
+ case Ve:
710
+ return t({ ...u, contents: n(u.contents) });
711
+ case rt:
712
+ case nt:
713
+ case st:
714
+ case $e:
715
+ case me:
716
+ case ve:
717
+ return t(u);
718
+ default:
719
+ throw new Ct(u);
720
+ }
721
+ }
722
+ }
723
+ function gu(e, t, r) {
724
+ let n = r, s = false;
725
+ function u(i) {
726
+ if (s) return false;
727
+ let a = t(i);
728
+ a !== void 0 && (s = true, n = a);
729
+ }
730
+ return qn(e, u), n;
731
+ }
732
+ function Io(e) {
733
+ if (e.type === le && e.break || e.type === me && e.hard || e.type === ve) return true;
734
+ }
735
+ function ne(e) {
736
+ return gu(e, Io, false);
737
+ }
738
+ function hu(e) {
739
+ if (e.length > 0) {
740
+ let t = O(false, e, -1);
741
+ !t.expandedStates && !t.break && (t.break = "propagated");
742
+ }
743
+ return null;
744
+ }
745
+ function Su(e) {
746
+ let t = /* @__PURE__ */ new Set(), r = [];
747
+ function n(u) {
748
+ if (u.type === ve && hu(r), u.type === le) {
749
+ if (r.push(u), t.has(u)) return false;
750
+ t.add(u);
751
+ }
752
+ }
753
+ function s(u) {
754
+ u.type === le && r.pop().break && hu(r);
755
+ }
756
+ qn(e, n, s, true);
757
+ }
758
+ function Lo(e) {
759
+ return e.type === me && !e.hard ? e.soft ? "" : " " : e.type === xe ? e.flatContents : e;
760
+ }
761
+ function ur(e) {
762
+ return mt(e, Lo);
763
+ }
764
+ function wo(e) {
765
+ switch (ut(e)) {
766
+ case Pe:
767
+ if (e.parts.every((t) => t === "")) return "";
768
+ break;
769
+ case le:
770
+ if (!e.contents && !e.id && !e.break && !e.expandedStates) return "";
771
+ if (e.contents.type === le && e.contents.id === e.id && e.contents.break === e.break && e.contents.expandedStates === e.expandedStates) return e.contents;
772
+ break;
773
+ case Ye:
774
+ case Xe:
775
+ case He:
776
+ case Ve:
777
+ if (!e.contents) return "";
778
+ break;
779
+ case xe:
780
+ if (!e.flatContents && !e.breakContents) return "";
781
+ break;
782
+ case _e: {
783
+ let t = [];
784
+ for (let r of e) {
785
+ if (!r) continue;
786
+ let [n, ...s] = Array.isArray(r) ? r : [r];
787
+ typeof n == "string" && typeof O(false, t, -1) == "string" ? t[t.length - 1] += n : t.push(n), t.push(...s);
788
+ }
789
+ return t.length === 0 ? "" : t.length === 1 ? t[0] : t;
790
+ }
791
+ case rt:
792
+ case nt:
793
+ case st:
794
+ case $e:
795
+ case me:
796
+ case je:
797
+ case ve:
798
+ break;
799
+ default:
800
+ throw new Ct(e);
801
+ }
802
+ return e;
803
+ }
804
+ function Wt(e) {
805
+ return mt(e, (t) => wo(t));
806
+ }
807
+ function Ie(e, t = Rr) {
808
+ return mt(e, (r) => typeof r == "string" ? P(t, r.split(`
809
+ `)) : r);
810
+ }
811
+ function Oo(e) {
812
+ if (e.type === me) return true;
813
+ }
814
+ function Bu(e) {
815
+ return gu(e, Oo, false);
816
+ }
817
+ function ir(e, t) {
818
+ return e.type === je ? { ...e, contents: t(e.contents) } : t(e);
819
+ }
820
+ function _o(e) {
821
+ let t = `*${e.value}*`.split(`
822
+ `);
823
+ return t.length > 1 && t.every((r) => r.trimStart()[0] === "*");
824
+ }
825
+ var bu = _o;
826
+ function Pu(e, t) {
827
+ let r = e.node;
828
+ if (vt(r)) return t.originalText.slice(R(r), k(r)).trimEnd();
829
+ if (re(r)) return bu(r) ? jo(r) : ["/*", Ie(r.value), "*/"];
830
+ throw new Error("Not a comment: " + JSON.stringify(r));
831
+ }
832
+ function jo(e) {
833
+ let t = e.value.split(`
834
+ `);
835
+ return ["/*", P(F, t.map((r, n) => n === 0 ? r.trimEnd() : " " + (n < t.length - 1 ? r.trim() : r.trimStart()))), "*/"];
836
+ }
837
+ var Kn = {};
838
+ Ar(Kn, { endOfLine: () => Go, ownLine: () => Wo, remaining: () => Uo });
839
+ function vo(e) {
840
+ let t = e.type || e.kind || "(unknown type)", r = 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 || "");
841
+ return r.length > 20 && (r = r.slice(0, 19) + "\u2026"), t + (r ? " " + r : "");
842
+ }
843
+ function Nn(e, t) {
844
+ (e.comments ?? (e.comments = [])).push(t), t.printed = false, t.nodeDescription = vo(e);
845
+ }
846
+ function ce(e, t) {
847
+ t.leading = true, t.trailing = false, Nn(e, t);
848
+ }
849
+ function Le(e, t, r) {
850
+ t.leading = false, t.trailing = false, r && (t.marker = r), Nn(e, t);
851
+ }
852
+ function z(e, t) {
853
+ t.leading = false, t.trailing = true, Nn(e, t);
854
+ }
855
+ function Mo(e, t) {
856
+ let r = null, n = t;
857
+ for (; n !== r; ) r = n, n = Ge(e, n), n = Lt(e, n), n = wt(e, n), n = Ue(e, n);
858
+ return n;
859
+ }
860
+ var yt = Mo;
861
+ function Ro(e, t) {
862
+ let r = yt(e, t);
863
+ return r === false ? "" : e.charAt(r);
864
+ }
865
+ var ge = Ro;
866
+ function Jo(e, t, r) {
867
+ for (let n = t; n < r; ++n) if (e.charAt(n) === `
868
+ `) return true;
869
+ return false;
870
+ }
871
+ var de = Jo;
872
+ function qo(e) {
873
+ return re(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/u.test(e.value);
874
+ }
875
+ var ku = qo;
876
+ function Wo(e) {
877
+ return [Mu, Lu, _u, ep, Xo, Yn, Hn, Iu, wu, sp, rp, $n, vu, up, Ou, ju, Vn, Yo, yp].some((t) => t(e));
878
+ }
879
+ function Go(e) {
880
+ return [No, _u, Lu, vu, Yn, Hn, Iu, wu, ju, tp, np, $n, op, Vn, lp, mp].some((t) => t(e));
881
+ }
882
+ function Uo(e) {
883
+ return [Mu, Yn, Hn, Ho, Zo, Ou, $n, Qo, zo, cp, Vn, pp].some((t) => t(e));
884
+ }
885
+ function bt(e, t) {
886
+ let r = (e.body || e.properties).find(({ type: n }) => n !== "EmptyStatement");
887
+ r ? ce(r, t) : Le(e, t);
888
+ }
889
+ function Xn(e, t) {
890
+ e.type === "BlockStatement" ? bt(e, t) : ce(e, t);
891
+ }
892
+ function No({ comment: e, followingNode: t }) {
893
+ return t && ku(e) ? (ce(t, e), true) : false;
894
+ }
895
+ function Yn({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
896
+ if ((r == null ? void 0 : r.type) !== "IfStatement" || !n) return false;
897
+ if (ge(s, k(e)) === ")") return z(t, e), true;
898
+ if (t === r.consequent && n === r.alternate) {
899
+ if (t.type === "BlockStatement") z(t, e);
900
+ else {
901
+ let i = vt(e) || e.loc.start.line === e.loc.end.line, a = e.loc.start.line === t.loc.start.line;
902
+ i && a ? z(t, e) : Le(r, e);
903
+ }
904
+ return true;
905
+ }
906
+ return n.type === "BlockStatement" ? (bt(n, e), true) : n.type === "IfStatement" ? (Xn(n.consequent, e), true) : r.consequent === n ? (ce(n, e), true) : false;
907
+ }
908
+ function Hn({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
909
+ return (r == null ? void 0 : r.type) !== "WhileStatement" || !n ? false : ge(s, k(e)) === ")" ? (z(t, e), true) : n.type === "BlockStatement" ? (bt(n, e), true) : r.body === n ? (ce(n, e), true) : false;
910
+ }
911
+ function Iu({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
912
+ return (r == null ? void 0 : r.type) !== "TryStatement" && (r == null ? void 0 : r.type) !== "CatchClause" || !n ? false : r.type === "CatchClause" && t ? (z(t, e), true) : n.type === "BlockStatement" ? (bt(n, e), true) : n.type === "TryStatement" ? (Xn(n.finalizer, e), true) : n.type === "CatchClause" ? (Xn(n.body, e), true) : false;
913
+ }
914
+ function Xo({ comment: e, enclosingNode: t, followingNode: r }) {
915
+ return q(t) && (r == null ? void 0 : r.type) === "Identifier" ? (ce(t, e), true) : false;
916
+ }
917
+ function Yo({ comment: e, enclosingNode: t, followingNode: r, options: n }) {
918
+ return !n.experimentalTernaries || !((t == null ? void 0 : t.type) === "ConditionalExpression" || (t == null ? void 0 : t.type) === "ConditionalTypeAnnotation" || (t == null ? void 0 : t.type) === "TSConditionalType") ? false : (r == null ? void 0 : r.type) === "ConditionalExpression" || (r == null ? void 0 : r.type) === "ConditionalTypeAnnotation" || (r == null ? void 0 : r.type) === "TSConditionalType" ? (Le(t, e), true) : false;
919
+ }
920
+ function Lu({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s, options: u }) {
921
+ let i = t && !de(s, k(t), R(e));
922
+ return (!t || !i) && ((r == null ? void 0 : r.type) === "ConditionalExpression" || (r == null ? void 0 : r.type) === "ConditionalTypeAnnotation" || (r == null ? void 0 : r.type) === "TSConditionalType") && n ? u.experimentalTernaries && r.alternate === n && !(re(e) && !de(u.originalText, R(e), k(e))) ? (Le(r, e), true) : (ce(n, e), true) : false;
923
+ }
924
+ function Ho({ comment: e, precedingNode: t, enclosingNode: r }) {
925
+ return Ae(r) && r.shorthand && r.key === t && r.value.type === "AssignmentPattern" ? (z(r.value.left, e), true) : false;
926
+ }
927
+ var Vo = /* @__PURE__ */ new Set(["ClassDeclaration", "ClassExpression", "DeclareClass", "DeclareInterface", "InterfaceDeclaration", "TSInterfaceDeclaration"]);
928
+ function wu({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
929
+ if (Vo.has(r == null ? void 0 : r.type)) {
930
+ if (w(r.decorators) && (n == null ? void 0 : n.type) !== "Decorator") return z(O(false, r.decorators, -1), e), true;
931
+ if (r.body && n === r.body) return bt(r.body, e), true;
932
+ if (n) {
933
+ if (r.superClass && n === r.superClass && t && (t === r.id || t === r.typeParameters)) return z(t, e), true;
934
+ for (let s of ["implements", "extends", "mixins"]) if (r[s] && n === r[s][0]) return t && (t === r.id || t === r.typeParameters || t === r.superClass) ? z(t, e) : Le(r, e, s), true;
935
+ }
936
+ }
937
+ return false;
938
+ }
939
+ var $o = /* @__PURE__ */ new Set(["ClassMethod", "ClassProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod", "MethodDefinition", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty"]);
940
+ function Ou({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
941
+ return r && t && ge(n, k(e)) === "(" && (r.type === "Property" || r.type === "TSDeclareMethod" || r.type === "TSAbstractMethodDefinition") && t.type === "Identifier" && r.key === t && ge(n, k(t)) !== ":" ? (z(t, e), true) : (t == null ? void 0 : t.type) === "Decorator" && $o.has(r == null ? void 0 : r.type) ? (z(t, e), true) : false;
942
+ }
943
+ var Ko = /* @__PURE__ */ new Set(["FunctionDeclaration", "FunctionExpression", "ClassMethod", "MethodDefinition", "ObjectMethod"]);
944
+ function zo({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
945
+ return ge(n, k(e)) !== "(" ? false : t && Ko.has(r == null ? void 0 : r.type) ? (z(t, e), true) : false;
946
+ }
947
+ function Qo({ comment: e, enclosingNode: t, text: r }) {
948
+ if ((t == null ? void 0 : t.type) !== "ArrowFunctionExpression") return false;
949
+ let n = yt(r, k(e));
950
+ return n !== false && r.slice(n, n + 2) === "=>" ? (Le(t, e), true) : false;
951
+ }
952
+ function Zo({ comment: e, enclosingNode: t, text: r }) {
953
+ return ge(r, k(e)) !== ")" ? false : t && (Ru(t) && K(t).length === 0 || lt(t) && oe(t).length === 0) ? (Le(t, e), true) : ((t == null ? void 0 : t.type) === "MethodDefinition" || (t == null ? void 0 : t.type) === "TSAbstractMethodDefinition") && K(t.value).length === 0 ? (Le(t.value, e), true) : false;
954
+ }
955
+ function ep({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
956
+ return (t == null ? void 0 : t.type) === "ComponentTypeParameter" && ((r == null ? void 0 : r.type) === "DeclareComponent" || (r == null ? void 0 : r.type) === "ComponentTypeAnnotation") && (n == null ? void 0 : n.type) !== "ComponentTypeParameter" ? (z(t, e), true) : ((t == null ? void 0 : t.type) === "ComponentParameter" || (t == null ? void 0 : t.type) === "RestElement") && (r == null ? void 0 : r.type) === "ComponentDeclaration" && ge(s, k(e)) === ")" ? (z(t, e), true) : false;
957
+ }
958
+ function _u({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n, text: s }) {
959
+ return (t == null ? void 0 : t.type) === "FunctionTypeParam" && (r == null ? void 0 : r.type) === "FunctionTypeAnnotation" && (n == null ? void 0 : n.type) !== "FunctionTypeParam" ? (z(t, e), true) : ((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") && Ru(r) && ge(s, k(e)) === ")" ? (z(t, e), true) : !re(e) && ((r == null ? void 0 : r.type) === "FunctionDeclaration" || (r == null ? void 0 : r.type) === "FunctionExpression" || (r == null ? void 0 : r.type) === "ObjectMethod") && (n == null ? void 0 : n.type) === "BlockStatement" && r.body === n && yt(s, k(e)) === R(n) ? (bt(n, e), true) : false;
960
+ }
961
+ function ju({ comment: e, enclosingNode: t }) {
962
+ return (t == null ? void 0 : t.type) === "LabeledStatement" ? (ce(t, e), true) : false;
963
+ }
964
+ function Vn({ comment: e, enclosingNode: t }) {
965
+ return ((t == null ? void 0 : t.type) === "ContinueStatement" || (t == null ? void 0 : t.type) === "BreakStatement") && !t.label ? (z(t, e), true) : false;
966
+ }
967
+ function tp({ comment: e, precedingNode: t, enclosingNode: r }) {
968
+ return L(r) && t && r.callee === t && r.arguments.length > 0 ? (ce(r.arguments[0], e), true) : false;
969
+ }
970
+ function rp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
971
+ return Ne(r) ? (sr(e) && (n.prettierIgnore = true, e.unignore = true), t ? (z(t, e), true) : false) : (Ne(n) && sr(e) && (n.types[0].prettierIgnore = true, e.unignore = true), false);
972
+ }
973
+ function np({ comment: e, enclosingNode: t }) {
974
+ return Ae(t) ? (ce(t, e), true) : false;
975
+ }
976
+ function $n({ comment: e, enclosingNode: t, ast: r, isLastComment: n }) {
977
+ var s;
978
+ return ((s = r == null ? void 0 : r.body) == null ? void 0 : s.length) === 0 ? (n ? Le(r, e) : ce(r, e), true) : (t == null ? void 0 : t.type) === "Program" && t.body.length === 0 && !w(t.directives) ? (n ? Le(t, e) : ce(t, e), true) : false;
979
+ }
980
+ function sp({ comment: e, enclosingNode: t }) {
981
+ return (t == null ? void 0 : t.type) === "ForInStatement" || (t == null ? void 0 : t.type) === "ForOfStatement" ? (ce(t, e), true) : false;
982
+ }
983
+ function vu({ comment: e, precedingNode: t, enclosingNode: r, text: n }) {
984
+ if ((r == null ? void 0 : r.type) === "ImportSpecifier" || (r == null ? void 0 : r.type) === "ExportSpecifier") return ce(r, e), true;
985
+ let s = (t == null ? void 0 : t.type) === "ImportSpecifier" && (r == null ? void 0 : r.type) === "ImportDeclaration", u = (t == null ? void 0 : t.type) === "ExportSpecifier" && (r == null ? void 0 : r.type) === "ExportNamedDeclaration";
986
+ return (s || u) && te(n, k(e)) ? (z(t, e), true) : false;
987
+ }
988
+ function up({ comment: e, enclosingNode: t }) {
989
+ return (t == null ? void 0 : t.type) === "AssignmentPattern" ? (ce(t, e), true) : false;
990
+ }
991
+ var ip = /* @__PURE__ */ new Set(["VariableDeclarator", "AssignmentExpression", "TypeAlias", "TSTypeAliasDeclaration"]);
992
+ var ap = /* @__PURE__ */ new Set(["ObjectExpression", "RecordExpression", "ArrayExpression", "TupleExpression", "TemplateLiteral", "TaggedTemplateExpression", "ObjectTypeAnnotation", "TSTypeLiteral"]);
993
+ function op({ comment: e, enclosingNode: t, followingNode: r }) {
994
+ return ip.has(t == null ? void 0 : t.type) && r && (ap.has(r.type) || re(e)) ? (ce(r, e), true) : false;
995
+ }
996
+ function pp({ comment: e, enclosingNode: t, followingNode: r, text: n }) {
997
+ return !r && ((t == null ? void 0 : t.type) === "TSMethodSignature" || (t == null ? void 0 : t.type) === "TSDeclareFunction" || (t == null ? void 0 : t.type) === "TSAbstractMethodDefinition") && ge(n, k(e)) === ";" ? (z(t, e), true) : false;
998
+ }
999
+ function Mu({ comment: e, enclosingNode: t, followingNode: r }) {
1000
+ if (sr(e) && (t == null ? void 0 : t.type) === "TSMappedType" && (r == null ? void 0 : r.type) === "TSTypeParameter" && r.constraint) return t.prettierIgnore = true, e.unignore = true, true;
1001
+ }
1002
+ function cp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
1003
+ return (r == null ? void 0 : r.type) !== "TSMappedType" ? false : (n == null ? void 0 : n.type) === "TSTypeParameter" && n.name ? (ce(n.name, e), true) : (t == null ? void 0 : t.type) === "TSTypeParameter" && t.constraint ? (z(t.constraint, e), true) : false;
1004
+ }
1005
+ function lp({ comment: e, enclosingNode: t, followingNode: r }) {
1006
+ return !t || t.type !== "SwitchCase" || t.test || !r || r !== t.consequent[0] ? false : (r.type === "BlockStatement" && vt(e) ? bt(r, e) : Le(t, e), true);
1007
+ }
1008
+ function mp({ comment: e, precedingNode: t, enclosingNode: r, followingNode: n }) {
1009
+ return Ne(t) && ((r.type === "TSArrayType" || r.type === "ArrayTypeAnnotation") && !n || _r(r)) ? (z(O(false, t.types, -1), e), true) : false;
1010
+ }
1011
+ function yp({ comment: e, enclosingNode: t, precedingNode: r, followingNode: n }) {
1012
+ if (((t == null ? void 0 : t.type) === "ObjectPattern" || (t == null ? void 0 : t.type) === "ArrayPattern") && (n == null ? void 0 : n.type) === "TSTypeAnnotation") return r ? z(r, e) : Le(t, e), true;
1013
+ }
1014
+ var Ru = v(["ArrowFunctionExpression", "FunctionExpression", "FunctionDeclaration", "ObjectMethod", "ClassMethod", "TSDeclareFunction", "TSCallSignatureDeclaration", "TSConstructSignatureDeclaration", "TSMethodSignature", "TSConstructorType", "TSFunctionType", "TSDeclareMethod"]);
1015
+ var Dp = /* @__PURE__ */ new Set(["EmptyStatement", "TemplateElement", "Import", "TSEmptyBodyFunctionExpression", "ChainExpression"]);
1016
+ function fp(e) {
1017
+ return !Dp.has(e.type);
1018
+ }
1019
+ function Ep(e, t) {
1020
+ var r;
1021
+ if ((t.parser === "typescript" || t.parser === "flow" || t.parser === "acorn" || t.parser === "espree" || t.parser === "meriyah" || t.parser === "__babel_estree") && e.type === "MethodDefinition" && ((r = e.value) == null ? void 0 : r.type) === "FunctionExpression" && K(e.value).length === 0 && !e.value.returnType && !w(e.value.typeParameters) && e.value.body) return [...e.decorators || [], e.key, e.value.body];
1022
+ }
1023
+ function zn(e) {
1024
+ let { node: t, parent: r } = e;
1025
+ return (X(t) || r && (r.type === "JSXSpreadAttribute" || r.type === "JSXSpreadChild" || Ne(r) || (r.type === "ClassDeclaration" || r.type === "ClassExpression") && r.superClass === t)) && (!Bt(t) || Ne(r));
1026
+ }
1027
+ function Fp(e, { parser: t }) {
1028
+ if (t === "flow" || t === "babel-flow") return e = N(false, e, /[\s(]/gu, ""), e === "" || e === "/*" || e === "/*::";
1029
+ }
1030
+ function Ju(e) {
1031
+ switch (e) {
1032
+ case "cr":
1033
+ return "\r";
1034
+ case "crlf":
1035
+ return `\r
1036
+ `;
1037
+ default:
1038
+ return `
1039
+ `;
1040
+ }
1041
+ }
1042
+ var Se = Symbol("MODE_BREAK");
1043
+ var at = Symbol("MODE_FLAT");
1044
+ var ar = Symbol("cursor");
1045
+ function qu() {
1046
+ return { value: "", length: 0, queue: [] };
1047
+ }
1048
+ function Cp(e, t) {
1049
+ return Qn(e, { type: "indent" }, t);
1050
+ }
1051
+ function Ap(e, t, r) {
1052
+ return t === Number.NEGATIVE_INFINITY ? e.root || qu() : t < 0 ? Qn(e, { type: "dedent" }, r) : t ? t.type === "root" ? { ...e, root: e } : Qn(e, { type: typeof t == "string" ? "stringAlign" : "numberAlign", n: t }, r) : e;
1053
+ }
1054
+ function Qn(e, t, r) {
1055
+ let n = t.type === "dedent" ? e.queue.slice(0, -1) : [...e.queue, t], s = "", u = 0, i = 0, a = 0;
1056
+ for (let p of n) switch (p.type) {
1057
+ case "indent":
1058
+ m(), r.useTabs ? o(1) : c(r.tabWidth);
1059
+ break;
1060
+ case "stringAlign":
1061
+ m(), s += p.n, u += p.n.length;
1062
+ break;
1063
+ case "numberAlign":
1064
+ i += 1, a += p.n;
1065
+ break;
1066
+ default:
1067
+ throw new Error(`Unexpected type '${p.type}'`);
1068
+ }
1069
+ return y(), { ...e, value: s, length: u, queue: n };
1070
+ function o(p) {
1071
+ s += " ".repeat(p), u += r.tabWidth * p;
1072
+ }
1073
+ function c(p) {
1074
+ s += " ".repeat(p), u += p;
1075
+ }
1076
+ function m() {
1077
+ r.useTabs ? D() : y();
1078
+ }
1079
+ function D() {
1080
+ i > 0 && o(i), C();
1081
+ }
1082
+ function y() {
1083
+ a > 0 && c(a), C();
1084
+ }
1085
+ function C() {
1086
+ i = 0, a = 0;
1087
+ }
1088
+ }
1089
+ function Zn(e) {
1090
+ let t = 0, r = 0, n = e.length;
1091
+ e: for (; n--; ) {
1092
+ let s = e[n];
1093
+ if (s === ar) {
1094
+ r++;
1095
+ continue;
1096
+ }
1097
+ for (let u = s.length - 1; u >= 0; u--) {
1098
+ let i = s[u];
1099
+ if (i === " " || i === " ") t++;
1100
+ else {
1101
+ e[n] = s.slice(0, u + 1);
1102
+ break e;
1103
+ }
1104
+ }
1105
+ }
1106
+ if (t > 0 || r > 0) for (e.length = n + 1; r-- > 0; ) e.push(ar);
1107
+ return t;
1108
+ }
1109
+ function Jr(e, t, r, n, s, u) {
1110
+ if (r === Number.POSITIVE_INFINITY) return true;
1111
+ let i = t.length, a = [e], o = [];
1112
+ for (; r >= 0; ) {
1113
+ if (a.length === 0) {
1114
+ if (i === 0) return true;
1115
+ a.push(t[--i]);
1116
+ continue;
1117
+ }
1118
+ let { mode: c, doc: m } = a.pop(), D = ut(m);
1119
+ switch (D) {
1120
+ case rt:
1121
+ o.push(m), r -= et(m);
1122
+ break;
1123
+ case _e:
1124
+ case Pe: {
1125
+ let y = D === _e ? m : m.parts;
1126
+ for (let C = y.length - 1; C >= 0; C--) a.push({ mode: c, doc: y[C] });
1127
+ break;
1128
+ }
1129
+ case Xe:
1130
+ case Ye:
1131
+ case He:
1132
+ case je:
1133
+ a.push({ mode: c, doc: m.contents });
1134
+ break;
1135
+ case st:
1136
+ r += Zn(o);
1137
+ break;
1138
+ case le: {
1139
+ if (u && m.break) return false;
1140
+ let y = m.break ? Se : c, C = m.expandedStates && y === Se ? O(false, m.expandedStates, -1) : m.contents;
1141
+ a.push({ mode: y, doc: C });
1142
+ break;
1143
+ }
1144
+ case xe: {
1145
+ let C = (m.groupId ? s[m.groupId] || at : c) === Se ? m.breakContents : m.flatContents;
1146
+ C && a.push({ mode: c, doc: C });
1147
+ break;
1148
+ }
1149
+ case me:
1150
+ if (c === Se || m.hard) return true;
1151
+ m.soft || (o.push(" "), r--);
1152
+ break;
1153
+ case Ve:
1154
+ n = true;
1155
+ break;
1156
+ case $e:
1157
+ if (n) return false;
1158
+ break;
1159
+ }
1160
+ }
1161
+ return false;
1162
+ }
1163
+ function es(e, t) {
1164
+ let r = {}, n = t.printWidth, s = Ju(t.endOfLine), u = 0, i = [{ ind: qu(), mode: Se, doc: e }], a = [], o = false, c = [], m = 0;
1165
+ for (Su(e); i.length > 0; ) {
1166
+ let { ind: y, mode: C, doc: p } = i.pop();
1167
+ switch (ut(p)) {
1168
+ case rt: {
1169
+ let A = s !== `
1170
+ ` ? N(false, p, `
1171
+ `, s) : p;
1172
+ a.push(A), i.length > 0 && (u += et(A));
1173
+ break;
1174
+ }
1175
+ case _e:
1176
+ for (let A = p.length - 1; A >= 0; A--) i.push({ ind: y, mode: C, doc: p[A] });
1177
+ break;
1178
+ case nt:
1179
+ if (m >= 2) throw new Error("There are too many 'cursor' in doc.");
1180
+ a.push(ar), m++;
1181
+ break;
1182
+ case Xe:
1183
+ i.push({ ind: Cp(y, t), mode: C, doc: p.contents });
1184
+ break;
1185
+ case Ye:
1186
+ i.push({ ind: Ap(y, p.n, t), mode: C, doc: p.contents });
1187
+ break;
1188
+ case st:
1189
+ u -= Zn(a);
1190
+ break;
1191
+ case le:
1192
+ switch (C) {
1193
+ case at:
1194
+ if (!o) {
1195
+ i.push({ ind: y, mode: p.break ? Se : at, doc: p.contents });
1196
+ break;
1197
+ }
1198
+ case Se: {
1199
+ o = false;
1200
+ let A = { ind: y, mode: at, doc: p.contents }, T = n - u, S = c.length > 0;
1201
+ if (!p.break && Jr(A, i, T, S, r)) i.push(A);
1202
+ else if (p.expandedStates) {
1203
+ let B = O(false, p.expandedStates, -1);
1204
+ if (p.break) {
1205
+ i.push({ ind: y, mode: Se, doc: B });
1206
+ break;
1207
+ } else for (let _ = 1; _ < p.expandedStates.length + 1; _++) if (_ >= p.expandedStates.length) {
1208
+ i.push({ ind: y, mode: Se, doc: B });
1209
+ break;
1210
+ } else {
1211
+ let J = p.expandedStates[_], j = { ind: y, mode: at, doc: J };
1212
+ if (Jr(j, i, T, S, r)) {
1213
+ i.push(j);
1214
+ break;
1215
+ }
1216
+ }
1217
+ } else i.push({ ind: y, mode: Se, doc: p.contents });
1218
+ break;
1219
+ }
1220
+ }
1221
+ p.id && (r[p.id] = O(false, i, -1).mode);
1222
+ break;
1223
+ case Pe: {
1224
+ let A = n - u, { parts: T } = p;
1225
+ if (T.length === 0) break;
1226
+ let [S, B] = T, _ = { ind: y, mode: at, doc: S }, J = { ind: y, mode: Se, doc: S }, j = Jr(_, [], A, c.length > 0, r, true);
1227
+ if (T.length === 1) {
1228
+ j ? i.push(_) : i.push(J);
1229
+ break;
1230
+ }
1231
+ let h = { ind: y, mode: at, doc: B }, W = { ind: y, mode: Se, doc: B };
1232
+ if (T.length === 2) {
1233
+ j ? i.push(h, _) : i.push(W, J);
1234
+ break;
1235
+ }
1236
+ T.splice(0, 2);
1237
+ let Fe = { ind: y, mode: C, doc: qt(T) }, H = T[0];
1238
+ Jr({ ind: y, mode: at, doc: [S, B, H] }, [], A, c.length > 0, r, true) ? i.push(Fe, h, _) : j ? i.push(Fe, W, _) : i.push(Fe, W, J);
1239
+ break;
1240
+ }
1241
+ case xe:
1242
+ case He: {
1243
+ let A = p.groupId ? r[p.groupId] : C;
1244
+ if (A === Se) {
1245
+ let T = p.type === xe ? p.breakContents : p.negate ? p.contents : f(p.contents);
1246
+ T && i.push({ ind: y, mode: C, doc: T });
1247
+ }
1248
+ if (A === at) {
1249
+ let T = p.type === xe ? p.flatContents : p.negate ? f(p.contents) : p.contents;
1250
+ T && i.push({ ind: y, mode: C, doc: T });
1251
+ }
1252
+ break;
1253
+ }
1254
+ case Ve:
1255
+ c.push({ ind: y, mode: C, doc: p.contents });
1256
+ break;
1257
+ case $e:
1258
+ c.length > 0 && i.push({ ind: y, mode: C, doc: Gn });
1259
+ break;
1260
+ case me:
1261
+ switch (C) {
1262
+ case at:
1263
+ if (p.hard) o = true;
1264
+ else {
1265
+ p.soft || (a.push(" "), u += 1);
1266
+ break;
1267
+ }
1268
+ case Se:
1269
+ if (c.length > 0) {
1270
+ i.push({ ind: y, mode: C, doc: p }, ...c.reverse()), c.length = 0;
1271
+ break;
1272
+ }
1273
+ p.literal ? y.root ? (a.push(s, y.root.value), u = y.root.length) : (a.push(s), u = 0) : (u -= Zn(a), a.push(s + y.value), u = y.length);
1274
+ break;
1275
+ }
1276
+ break;
1277
+ case je:
1278
+ i.push({ ind: y, mode: C, doc: p.contents });
1279
+ break;
1280
+ case ve:
1281
+ break;
1282
+ default:
1283
+ throw new Ct(p);
1284
+ }
1285
+ i.length === 0 && c.length > 0 && (i.push(...c.reverse()), c.length = 0);
1286
+ }
1287
+ let D = a.indexOf(ar);
1288
+ if (D !== -1) {
1289
+ let y = a.indexOf(ar, D + 1), C = a.slice(0, D).join(""), p = a.slice(D + 1, y).join(""), A = a.slice(y + 1).join("");
1290
+ return { formatted: C + p + A, cursorNodeStart: C.length, cursorNodeText: p };
1291
+ }
1292
+ return { formatted: a.join("") };
1293
+ }
1294
+ function Tp(e, t, r = 0) {
1295
+ let n = 0;
1296
+ for (let s = r; s < e.length; ++s) e[s] === " " ? n = n + t - n % t : n++;
1297
+ return n;
1298
+ }
1299
+ var Wu = Tp;
1300
+ function dp(e, t) {
1301
+ let r = e.lastIndexOf(`
1302
+ `);
1303
+ return r === -1 ? 0 : Wu(e.slice(r + 1).match(/^[\t ]*/u)[0], t);
1304
+ }
1305
+ var Gu = dp;
1306
+ function qr(e, t, r) {
1307
+ let { node: n } = e;
1308
+ if (n.type === "TemplateLiteral" && gp(e)) {
1309
+ let c = xp(e, r, t);
1310
+ if (c) return c;
1311
+ }
1312
+ let u = "expressions";
1313
+ n.type === "TSTemplateLiteralType" && (u = "types");
1314
+ let i = [], a = e.map(t, u);
1315
+ i.push(ke, "`");
1316
+ let o = 0;
1317
+ return e.each(({ index: c, node: m }) => {
1318
+ if (i.push(t()), m.tail) return;
1319
+ let { tabWidth: D } = r, y = m.value.raw, C = y.includes(`
1320
+ `) ? Gu(y, D) : o;
1321
+ o = C;
1322
+ let p = a[c], A = n[u][c], T = de(r.originalText, k(m), R(n.quasis[c + 1]));
1323
+ if (!T) {
1324
+ let B = es(p, { ...r, printWidth: Number.POSITIVE_INFINITY }).formatted;
1325
+ B.includes(`
1326
+ `) ? T = true : p = B;
1327
+ }
1328
+ T && (d(A) || A.type === "Identifier" || q(A) || A.type === "ConditionalExpression" || A.type === "SequenceExpression" || Te(A) || De(A)) && (p = [f([E, p]), E]);
1329
+ let S = C === 0 && y.endsWith(`
1330
+ `) ? he(Number.NEGATIVE_INFINITY, p) : xu(p, C, D);
1331
+ i.push(l(["${", S, ke, "}"]));
1332
+ }, "quasis"), i.push("`"), i;
1333
+ }
1334
+ function Uu(e, t) {
1335
+ let r = t("quasi");
1336
+ return it(r.label && { tagged: true, ...r.label }, [t("tag"), t(e.node.typeArguments ? "typeArguments" : "typeParameters"), ke, r]);
1337
+ }
1338
+ function xp(e, t, r) {
1339
+ let { node: n } = e, s = n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);
1340
+ if (s.length > 1 || s.some((u) => u.length > 0)) {
1341
+ t.__inJestEach = true;
1342
+ let u = e.map(r, "expressions");
1343
+ t.__inJestEach = false;
1344
+ let i = [], a = u.map((y) => "${" + es(y, { ...t, printWidth: Number.POSITIVE_INFINITY, endOfLine: "lf" }).formatted + "}"), o = [{ hasLineBreak: false, cells: [] }];
1345
+ for (let y = 1; y < n.quasis.length; y++) {
1346
+ let C = O(false, o, -1), p = a[y - 1];
1347
+ C.cells.push(p), p.includes(`
1348
+ `) && (C.hasLineBreak = true), n.quasis[y].value.raw.includes(`
1349
+ `) && o.push({ hasLineBreak: false, cells: [] });
1350
+ }
1351
+ let c = Math.max(s.length, ...o.map((y) => y.cells.length)), m = Array.from({ length: c }).fill(0), D = [{ cells: s }, ...o.filter((y) => y.cells.length > 0)];
1352
+ for (let { cells: y } of D.filter((C) => !C.hasLineBreak)) for (let [C, p] of y.entries()) m[C] = Math.max(m[C], et(p));
1353
+ return i.push(ke, "`", f([F, P(F, D.map((y) => P(" | ", y.cells.map((C, p) => y.hasLineBreak ? C : C + " ".repeat(m[p] - et(C))))))]), F, "`"), i;
1354
+ }
1355
+ }
1356
+ function hp(e, t) {
1357
+ let { node: r } = e, n = t();
1358
+ return d(r) && (n = l([f([E, n]), E])), ["${", n, ke, "}"];
1359
+ }
1360
+ function Gt(e, t) {
1361
+ return e.map((r) => hp(r, t), "expressions");
1362
+ }
1363
+ function Wr(e, t) {
1364
+ return mt(e, (r) => typeof r == "string" ? t ? N(false, r, /(\\*)`/gu, "$1$1\\`") : ts(r) : r);
1365
+ }
1366
+ function ts(e) {
1367
+ return N(false, e, /([\\`]|\$\{)/gu, String.raw`\$1`);
1368
+ }
1369
+ function gp({ node: e, parent: t }) {
1370
+ let r = /^[fx]?(?:describe|it|test)$/u;
1371
+ return 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" && r.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" && r.test(t.tag.object.object.name));
1372
+ }
1373
+ var ns = [(e, t) => e.type === "ObjectExpression" && t === "properties", (e, t) => e.type === "CallExpression" && e.callee.type === "Identifier" && e.callee.name === "Component" && t === "arguments", (e, t) => e.type === "Decorator" && t === "expression"];
1374
+ function Nu(e) {
1375
+ let t = (n) => n.type === "TemplateLiteral", r = (n, s) => Ae(n) && !n.computed && n.key.type === "Identifier" && n.key.name === "styles" && s === "value";
1376
+ return e.match(t, (n, s) => U(n) && s === "elements", r, ...ns) || e.match(t, r, ...ns);
1377
+ }
1378
+ function Xu(e) {
1379
+ return e.match((t) => t.type === "TemplateLiteral", (t, r) => Ae(t) && !t.computed && t.key.type === "Identifier" && t.key.name === "template" && r === "value", ...ns);
1380
+ }
1381
+ function rs(e, t) {
1382
+ return d(e, g.Block | g.Leading, ({ value: r }) => r === ` ${t} `);
1383
+ }
1384
+ function Gr({ node: e, parent: t }, r) {
1385
+ return rs(e, r) || Sp(t) && rs(t, r) || t.type === "ExpressionStatement" && rs(t, r);
1386
+ }
1387
+ function Sp(e) {
1388
+ return e.type === "AsConstExpression" || e.type === "TSAsExpression" && e.typeAnnotation.type === "TSTypeReference" && e.typeAnnotation.typeName.type === "Identifier" && e.typeAnnotation.typeName.name === "const";
1389
+ }
1390
+ async function Bp(e, t, r) {
1391
+ let { node: n } = r, s = n.quasis.map((m) => m.value.raw), u = 0, i = s.reduce((m, D, y) => y === 0 ? D : m + "@prettier-placeholder-" + u++ + "-id" + D, ""), a = await e(i, { parser: "scss" }), o = Gt(r, t), c = bp(a, o);
1392
+ if (!c) throw new Error("Couldn't insert all the expressions");
1393
+ return ["`", f([F, c]), E, "`"];
1394
+ }
1395
+ function bp(e, t) {
1396
+ if (!w(t)) return e;
1397
+ let r = 0, n = mt(Wt(e), (s) => typeof s != "string" || !s.includes("@prettier-placeholder") ? s : s.split(/@prettier-placeholder-(\d+)-id/u).map((u, i) => i % 2 === 0 ? Ie(u) : (r++, t[u])));
1398
+ return t.length === r ? n : null;
1399
+ }
1400
+ function Pp({ node: e, parent: t, grandparent: r }) {
1401
+ return r && e.quasis && t.type === "JSXExpressionContainer" && r.type === "JSXElement" && r.openingElement.name.name === "style" && r.openingElement.attributes.some((n) => n.type === "JSXAttribute" && n.name.name === "jsx") || (t == null ? void 0 : t.type) === "TaggedTemplateExpression" && t.tag.type === "Identifier" && t.tag.name === "css" || (t == null ? void 0 : t.type) === "TaggedTemplateExpression" && t.tag.type === "MemberExpression" && t.tag.object.name === "css" && (t.tag.property.name === "global" || t.tag.property.name === "resolve");
1402
+ }
1403
+ function Ur(e) {
1404
+ return e.type === "Identifier" && e.name === "styled";
1405
+ }
1406
+ function Yu(e) {
1407
+ return /^[A-Z]/u.test(e.object.name) && e.property.name === "extend";
1408
+ }
1409
+ function kp({ parent: e }) {
1410
+ if (!e || e.type !== "TaggedTemplateExpression") return false;
1411
+ let t = e.tag.type === "ParenthesizedExpression" ? e.tag.expression : e.tag;
1412
+ switch (t.type) {
1413
+ case "MemberExpression":
1414
+ return Ur(t.object) || Yu(t);
1415
+ case "CallExpression":
1416
+ return Ur(t.callee) || t.callee.type === "MemberExpression" && (t.callee.object.type === "MemberExpression" && (Ur(t.callee.object.object) || Yu(t.callee.object)) || t.callee.object.type === "CallExpression" && Ur(t.callee.object.callee));
1417
+ case "Identifier":
1418
+ return t.name === "css";
1419
+ default:
1420
+ return false;
1421
+ }
1422
+ }
1423
+ function Ip({ parent: e, grandparent: t }) {
1424
+ return (t == null ? void 0 : t.type) === "JSXAttribute" && e.type === "JSXExpressionContainer" && t.name.type === "JSXIdentifier" && t.name.name === "css";
1425
+ }
1426
+ function Lp(e) {
1427
+ if (Pp(e) || kp(e) || Ip(e) || Nu(e)) return Bp;
1428
+ }
1429
+ var Hu = Lp;
1430
+ async function wp(e, t, r) {
1431
+ let { node: n } = r, s = n.quasis.length, u = Gt(r, t), i = [];
1432
+ for (let a = 0; a < s; a++) {
1433
+ let o = n.quasis[a], c = a === 0, m = a === s - 1, D = o.value.cooked, y = D.split(`
1434
+ `), C = y.length, p = u[a], A = C > 2 && y[0].trim() === "" && y[1].trim() === "", T = C > 2 && y[C - 1].trim() === "" && y[C - 2].trim() === "", S = y.every((_) => /^\s*(?:#[^\n\r]*)?$/u.test(_));
1435
+ if (!m && /#[^\n\r]*$/u.test(y[C - 1])) return null;
1436
+ let B = null;
1437
+ S ? B = Op(y) : B = await e(D, { parser: "graphql" }), B ? (B = Wr(B, false), !c && A && i.push(""), i.push(B), !m && T && i.push("")) : !c && !m && A && i.push(""), p && i.push(p);
1438
+ }
1439
+ return ["`", f([F, P(F, i)]), F, "`"];
1440
+ }
1441
+ function Op(e) {
1442
+ let t = [], r = false, n = e.map((s) => s.trim());
1443
+ for (let [s, u] of n.entries()) u !== "" && (n[s - 1] === "" && r ? t.push([F, u]) : t.push(u), r = true);
1444
+ return t.length === 0 ? null : P(F, t);
1445
+ }
1446
+ function _p({ node: e, parent: t }) {
1447
+ return Gr({ 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");
1448
+ }
1449
+ function jp(e) {
1450
+ if (_p(e)) return wp;
1451
+ }
1452
+ var Vu = jp;
1453
+ var ss = 0;
1454
+ async function $u(e, t, r, n, s) {
1455
+ let { node: u } = n, i = ss;
1456
+ ss = ss + 1 >>> 0;
1457
+ let a = (S) => `PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`, o = u.quasis.map((S, B, _) => B === _.length - 1 ? S.value.cooked : S.value.cooked + a(B)).join(""), c = Gt(n, r), m = new RegExp(a(String.raw`(\d+)`), "gu"), D = 0, y = await t(o, { parser: e, __onHtmlRoot(S) {
1458
+ D = S.children.length;
1459
+ } }), C = mt(y, (S) => {
1460
+ if (typeof S != "string") return S;
1461
+ let B = [], _ = S.split(m);
1462
+ for (let J = 0; J < _.length; J++) {
1463
+ let j = _[J];
1464
+ if (J % 2 === 0) {
1465
+ j && (j = ts(j), s.__embeddedInHtml && (j = N(false, j, /<\/(?=script\b)/giu, String.raw`<\/`)), B.push(j));
1466
+ continue;
1467
+ }
1468
+ let h = Number(j);
1469
+ B.push(c[h]);
1470
+ }
1471
+ return B;
1472
+ }), p = /^\s/u.test(o) ? " " : "", A = /\s$/u.test(o) ? " " : "", T = s.htmlWhitespaceSensitivity === "ignore" ? F : p && A ? x : null;
1473
+ return T ? l(["`", f([T, l(C)]), T, "`"]) : it({ hug: false }, l(["`", p, D > 1 ? f(l(C)) : l(C), A, "`"]));
1474
+ }
1475
+ function vp(e) {
1476
+ return Gr(e, "HTML") || e.match((t) => t.type === "TemplateLiteral", (t, r) => t.type === "TaggedTemplateExpression" && t.tag.type === "Identifier" && t.tag.name === "html" && r === "quasi");
1477
+ }
1478
+ var Mp = $u.bind(void 0, "html");
1479
+ var Rp = $u.bind(void 0, "angular");
1480
+ function Jp(e) {
1481
+ if (vp(e)) return Mp;
1482
+ if (Xu(e)) return Rp;
1483
+ }
1484
+ var Ku = Jp;
1485
+ async function qp(e, t, r) {
1486
+ let { node: n } = r, s = N(false, n.quasis[0].value.raw, /((?:\\\\)*)\\`/gu, (o, c) => "\\".repeat(c.length / 2) + "`"), u = Wp(s), i = u !== "";
1487
+ i && (s = N(false, s, new RegExp(`^${u}`, "gmu"), ""));
1488
+ let a = Wr(await e(s, { parser: "markdown", __inJsTemplate: true }), true);
1489
+ return ["`", i ? f([E, a]) : [Rr, du(a)], E, "`"];
1490
+ }
1491
+ function Wp(e) {
1492
+ let t = e.match(/^([^\S\n]*)\S/mu);
1493
+ return t === null ? "" : t[1];
1494
+ }
1495
+ function Gp(e) {
1496
+ if (Up(e)) return qp;
1497
+ }
1498
+ function Up({ node: e, parent: t }) {
1499
+ return (t == null ? void 0 : t.type) === "TaggedTemplateExpression" && e.quasis.length === 1 && t.tag.type === "Identifier" && (t.tag.name === "md" || t.tag.name === "markdown");
1500
+ }
1501
+ var zu = Gp;
1502
+ function Np(e) {
1503
+ let { node: t } = e;
1504
+ if (t.type !== "TemplateLiteral" || Xp(t)) return;
1505
+ let r;
1506
+ for (let n of [Hu, Vu, Ku, zu]) if (r = n(e), !!r) return t.quasis.length === 1 && t.quasis[0].value.raw.trim() === "" ? "``" : async (...s) => {
1507
+ let u = await r(...s);
1508
+ return u && it({ embed: true, ...u.label }, u);
1509
+ };
1510
+ }
1511
+ function Xp({ quasis: e }) {
1512
+ return e.some(({ value: { cooked: t } }) => t === null);
1513
+ }
1514
+ var Qu = Np;
1515
+ var Yp = /\*\/$/;
1516
+ var Hp = /^\/\*\*?/;
1517
+ var ri = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/;
1518
+ var Vp = /(^|\s+)\/\/([^\n\r]*)/g;
1519
+ var Zu = /^(\r?\n)+/;
1520
+ var $p = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g;
1521
+ var ei = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g;
1522
+ var Kp = /(\r?\n|^) *\* ?/g;
1523
+ var ni = [];
1524
+ function si(e) {
1525
+ let t = e.match(ri);
1526
+ return t ? t[0].trimStart() : "";
1527
+ }
1528
+ function ui(e) {
1529
+ let t = e.match(ri), r = t == null ? void 0 : t[0];
1530
+ return r == null ? e : e.slice(r.length);
1531
+ }
1532
+ function ii(e) {
1533
+ let t = `
1534
+ `;
1535
+ e = N(false, e.replace(Hp, "").replace(Yp, ""), Kp, "$1");
1536
+ let r = "";
1537
+ for (; r !== e; ) r = e, e = N(false, e, $p, `${t}$1 $2${t}`);
1538
+ e = e.replace(Zu, "").trimEnd();
1539
+ let n = /* @__PURE__ */ Object.create(null), s = N(false, e, ei, "").replace(Zu, "").trimEnd(), u;
1540
+ for (; u = ei.exec(e); ) {
1541
+ let i = N(false, u[2], Vp, "");
1542
+ if (typeof n[u[1]] == "string" || Array.isArray(n[u[1]])) {
1543
+ let a = n[u[1]];
1544
+ n[u[1]] = [...ni, ...Array.isArray(a) ? a : [a], i];
1545
+ } else n[u[1]] = i;
1546
+ }
1547
+ return { comments: s, pragmas: n };
1548
+ }
1549
+ function ai({ comments: e = "", pragmas: t = {} }) {
1550
+ let r = `
1551
+ `, n = "/**", s = " *", u = " */", i = Object.keys(t), a = i.flatMap((c) => ti(c, t[c])).map((c) => `${s} ${c}${r}`).join("");
1552
+ if (!e) {
1553
+ if (i.length === 0) return "";
1554
+ if (i.length === 1 && !Array.isArray(t[i[0]])) {
1555
+ let c = t[i[0]];
1556
+ return `${n} ${ti(i[0], c)[0]}${u}`;
1557
+ }
1558
+ }
1559
+ let o = e.split(r).map((c) => `${s} ${c}`).join(r) + r;
1560
+ return n + r + (e ? o : "") + (e && i.length > 0 ? s + r : "") + a + u;
1561
+ }
1562
+ function ti(e, t) {
1563
+ return [...ni, ...Array.isArray(t) ? t : [t]].map((r) => `@${e} ${r}`.trim());
1564
+ }
1565
+ function zp(e) {
1566
+ if (!e.startsWith("#!")) return "";
1567
+ let t = e.indexOf(`
1568
+ `);
1569
+ return t === -1 ? e : e.slice(0, t);
1570
+ }
1571
+ var oi = zp;
1572
+ function Qp(e) {
1573
+ let t = oi(e);
1574
+ t && (e = e.slice(t.length + 1));
1575
+ let r = si(e), { pragmas: n, comments: s } = ii(r);
1576
+ return { shebang: t, text: e, pragmas: n, comments: s };
1577
+ }
1578
+ function pi(e) {
1579
+ let { shebang: t, text: r, pragmas: n, comments: s } = Qp(e), u = ui(r), i = ai({ pragmas: { format: "", ...n }, comments: s.trimStart() });
1580
+ return (t ? `${t}
1581
+ ` : "") + i + (u.startsWith(`
1582
+ `) ? `
1583
+ ` : `
1584
+
1585
+ `) + u;
1586
+ }
1587
+ function Zp(e, t) {
1588
+ let { originalText: r, [Symbol.for("comments")]: n, locStart: s, locEnd: u, [Symbol.for("printedComments")]: i } = t, { node: a } = e, o = s(a), c = u(a);
1589
+ for (let m of n) s(m) >= o && u(m) <= c && i.add(m);
1590
+ return r.slice(o, c);
1591
+ }
1592
+ var ci = Zp;
1593
+ function us(e, t) {
1594
+ var u, i, a, o, c, m, D, y, C;
1595
+ if (e.isRoot) return false;
1596
+ let { node: r, key: n, parent: s } = e;
1597
+ if (t.__isInHtmlInterpolation && !t.bracketSpacing && nc(r) && or(e)) return true;
1598
+ if (ec(r)) return false;
1599
+ if (r.type === "Identifier") {
1600
+ if ((u = r.extra) != null && u.parenthesized && /^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name) || n === "left" && (r.name === "async" && !s.await || r.name === "let") && s.type === "ForOfStatement") return true;
1601
+ if (r.name === "let") {
1602
+ let p = (i = e.findAncestor((A) => A.type === "ForOfStatement")) == null ? void 0 : i.left;
1603
+ if (p && ie(p, (A) => A === r)) return true;
1604
+ }
1605
+ if (n === "object" && r.name === "let" && s.type === "MemberExpression" && s.computed && !s.optional) {
1606
+ let p = e.findAncestor((T) => T.type === "ExpressionStatement" || T.type === "ForStatement" || T.type === "ForInStatement"), A = p ? p.type === "ExpressionStatement" ? p.expression : p.type === "ForStatement" ? p.init : p.left : void 0;
1607
+ if (A && ie(A, (T) => T === r)) return true;
1608
+ }
1609
+ if (n === "expression") switch (r.name) {
1610
+ case "await":
1611
+ case "interface":
1612
+ case "module":
1613
+ case "using":
1614
+ case "yield":
1615
+ case "let":
1616
+ case "component":
1617
+ case "hook":
1618
+ case "type": {
1619
+ let p = e.findAncestor((A) => !Te(A));
1620
+ if (p !== s && p.type === "ExpressionStatement") return true;
1621
+ }
1622
+ }
1623
+ return false;
1624
+ }
1625
+ if (r.type === "ObjectExpression" || r.type === "FunctionExpression" || r.type === "ClassExpression" || r.type === "DoExpression") {
1626
+ let p = (a = e.findAncestor((A) => A.type === "ExpressionStatement")) == null ? void 0 : a.expression;
1627
+ if (p && ie(p, (A) => A === r)) return true;
1628
+ }
1629
+ if (r.type === "ObjectExpression") {
1630
+ let p = (o = e.findAncestor((A) => A.type === "ArrowFunctionExpression")) == null ? void 0 : o.body;
1631
+ if (p && p.type !== "SequenceExpression" && p.type !== "AssignmentExpression" && ie(p, (A) => A === r)) return true;
1632
+ }
1633
+ switch (s.type) {
1634
+ case "ParenthesizedExpression":
1635
+ return false;
1636
+ case "ClassDeclaration":
1637
+ case "ClassExpression":
1638
+ if (n === "superClass" && (r.type === "ArrowFunctionExpression" || r.type === "AssignmentExpression" || r.type === "AwaitExpression" || r.type === "BinaryExpression" || r.type === "ConditionalExpression" || r.type === "LogicalExpression" || r.type === "NewExpression" || r.type === "ObjectExpression" || r.type === "SequenceExpression" || r.type === "TaggedTemplateExpression" || r.type === "UnaryExpression" || r.type === "UpdateExpression" || r.type === "YieldExpression" || r.type === "TSNonNullExpression" || r.type === "ClassExpression" && w(r.decorators))) return true;
1639
+ break;
1640
+ case "ExportDefaultDeclaration":
1641
+ return li(e, t) || r.type === "SequenceExpression";
1642
+ case "Decorator":
1643
+ if (n === "expression" && !uc(r)) return true;
1644
+ break;
1645
+ case "TypeAnnotation":
1646
+ if (e.match(void 0, void 0, (p, A) => A === "returnType" && p.type === "ArrowFunctionExpression") && rc(r)) return true;
1647
+ break;
1648
+ case "BinaryExpression":
1649
+ if (n === "left" && (s.operator === "in" || s.operator === "instanceof") && r.type === "UnaryExpression") return true;
1650
+ break;
1651
+ case "VariableDeclarator":
1652
+ if (n === "init" && e.match(void 0, void 0, (p, A) => A === "declarations" && p.type === "VariableDeclaration", (p, A) => A === "left" && p.type === "ForInStatement")) return true;
1653
+ break;
1654
+ }
1655
+ switch (r.type) {
1656
+ case "UpdateExpression":
1657
+ if (s.type === "UnaryExpression") return r.prefix && (r.operator === "++" && s.operator === "+" || r.operator === "--" && s.operator === "-");
1658
+ case "UnaryExpression":
1659
+ switch (s.type) {
1660
+ case "UnaryExpression":
1661
+ return r.operator === s.operator && (r.operator === "+" || r.operator === "-");
1662
+ case "BindExpression":
1663
+ return true;
1664
+ case "MemberExpression":
1665
+ case "OptionalMemberExpression":
1666
+ return n === "object";
1667
+ case "TaggedTemplateExpression":
1668
+ return true;
1669
+ case "NewExpression":
1670
+ case "CallExpression":
1671
+ case "OptionalCallExpression":
1672
+ return n === "callee";
1673
+ case "BinaryExpression":
1674
+ return n === "left" && s.operator === "**";
1675
+ case "TSNonNullExpression":
1676
+ return true;
1677
+ default:
1678
+ return false;
1679
+ }
1680
+ case "BinaryExpression":
1681
+ if (s.type === "UpdateExpression" || r.operator === "in" && tc(e)) return true;
1682
+ if (r.operator === "|>" && ((c = r.extra) != null && c.parenthesized)) {
1683
+ let p = e.grandparent;
1684
+ if (p.type === "BinaryExpression" && p.operator === "|>") return true;
1685
+ }
1686
+ case "TSTypeAssertion":
1687
+ case "TSAsExpression":
1688
+ case "TSSatisfiesExpression":
1689
+ case "AsExpression":
1690
+ case "AsConstExpression":
1691
+ case "SatisfiesExpression":
1692
+ case "LogicalExpression":
1693
+ switch (s.type) {
1694
+ case "TSAsExpression":
1695
+ case "TSSatisfiesExpression":
1696
+ case "AsExpression":
1697
+ case "AsConstExpression":
1698
+ case "SatisfiesExpression":
1699
+ return !Te(r);
1700
+ case "ConditionalExpression":
1701
+ return Te(r) || au(r);
1702
+ case "CallExpression":
1703
+ case "NewExpression":
1704
+ case "OptionalCallExpression":
1705
+ return n === "callee";
1706
+ case "ClassExpression":
1707
+ case "ClassDeclaration":
1708
+ return n === "superClass";
1709
+ case "TSTypeAssertion":
1710
+ case "TaggedTemplateExpression":
1711
+ case "UnaryExpression":
1712
+ case "JSXSpreadAttribute":
1713
+ case "SpreadElement":
1714
+ case "BindExpression":
1715
+ case "AwaitExpression":
1716
+ case "TSNonNullExpression":
1717
+ case "UpdateExpression":
1718
+ return true;
1719
+ case "MemberExpression":
1720
+ case "OptionalMemberExpression":
1721
+ return n === "object";
1722
+ case "AssignmentExpression":
1723
+ case "AssignmentPattern":
1724
+ return n === "left" && (r.type === "TSTypeAssertion" || Te(r));
1725
+ case "LogicalExpression":
1726
+ if (r.type === "LogicalExpression") return s.operator !== r.operator;
1727
+ case "BinaryExpression": {
1728
+ let { operator: p, type: A } = r;
1729
+ if (!p && A !== "TSTypeAssertion") return true;
1730
+ let T = er(p), S = s.operator, B = er(S);
1731
+ return B > T || n === "right" && B === T || B === T && !nr(S, p) ? true : B < T && p === "%" ? S === "+" || S === "-" : !!yu(S);
1732
+ }
1733
+ default:
1734
+ return false;
1735
+ }
1736
+ case "SequenceExpression":
1737
+ switch (s.type) {
1738
+ case "ReturnStatement":
1739
+ return false;
1740
+ case "ForStatement":
1741
+ return false;
1742
+ case "ExpressionStatement":
1743
+ return n !== "expression";
1744
+ case "ArrowFunctionExpression":
1745
+ return n !== "body";
1746
+ default:
1747
+ return true;
1748
+ }
1749
+ case "YieldExpression":
1750
+ if (s.type === "AwaitExpression" || s.type === "TSTypeAssertion") return true;
1751
+ case "AwaitExpression":
1752
+ switch (s.type) {
1753
+ case "TaggedTemplateExpression":
1754
+ case "UnaryExpression":
1755
+ case "LogicalExpression":
1756
+ case "SpreadElement":
1757
+ case "TSAsExpression":
1758
+ case "TSSatisfiesExpression":
1759
+ case "TSNonNullExpression":
1760
+ case "AsExpression":
1761
+ case "AsConstExpression":
1762
+ case "SatisfiesExpression":
1763
+ case "BindExpression":
1764
+ return true;
1765
+ case "MemberExpression":
1766
+ case "OptionalMemberExpression":
1767
+ return n === "object";
1768
+ case "NewExpression":
1769
+ case "CallExpression":
1770
+ case "OptionalCallExpression":
1771
+ return n === "callee";
1772
+ case "ConditionalExpression":
1773
+ return n === "test";
1774
+ case "BinaryExpression":
1775
+ return !(!r.argument && s.operator === "|>");
1776
+ default:
1777
+ return false;
1778
+ }
1779
+ case "TSFunctionType":
1780
+ if (e.match((p) => p.type === "TSFunctionType", (p, A) => A === "typeAnnotation" && p.type === "TSTypeAnnotation", (p, A) => A === "returnType" && p.type === "ArrowFunctionExpression")) return true;
1781
+ case "TSConditionalType":
1782
+ case "TSConstructorType":
1783
+ if (n === "extendsType" && s.type === "TSConditionalType") {
1784
+ if (r.type === "TSConditionalType") return true;
1785
+ let { typeAnnotation: p } = r.returnType || r.typeAnnotation;
1786
+ if (p.type === "TSTypePredicate" && p.typeAnnotation && (p = p.typeAnnotation.typeAnnotation), p.type === "TSInferType" && p.typeParameter.constraint) return true;
1787
+ }
1788
+ if (n === "checkType" && s.type === "TSConditionalType") return true;
1789
+ case "TSUnionType":
1790
+ case "TSIntersectionType":
1791
+ if ((s.type === "TSUnionType" || s.type === "TSIntersectionType") && s.types.length > 1 && (!r.types || r.types.length > 1)) return true;
1792
+ case "TSInferType":
1793
+ if (r.type === "TSInferType") {
1794
+ if (s.type === "TSRestType") return false;
1795
+ if (n === "types" && (s.type === "TSUnionType" || s.type === "TSIntersectionType") && r.typeParameter.type === "TSTypeParameter" && r.typeParameter.constraint) return true;
1796
+ }
1797
+ case "TSTypeOperator":
1798
+ return s.type === "TSArrayType" || s.type === "TSOptionalType" || s.type === "TSRestType" || n === "objectType" && s.type === "TSIndexedAccessType" || s.type === "TSTypeOperator" || s.type === "TSTypeAnnotation" && e.grandparent.type.startsWith("TSJSDoc");
1799
+ case "TSTypeQuery":
1800
+ return n === "objectType" && s.type === "TSIndexedAccessType" || n === "elementType" && s.type === "TSArrayType";
1801
+ case "TypeOperator":
1802
+ return s.type === "ArrayTypeAnnotation" || s.type === "NullableTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType") || s.type === "TypeOperator";
1803
+ case "TypeofTypeAnnotation":
1804
+ return n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType") || n === "elementType" && s.type === "ArrayTypeAnnotation";
1805
+ case "ArrayTypeAnnotation":
1806
+ return s.type === "NullableTypeAnnotation";
1807
+ case "IntersectionTypeAnnotation":
1808
+ case "UnionTypeAnnotation":
1809
+ return s.type === "TypeOperator" || s.type === "ArrayTypeAnnotation" || s.type === "NullableTypeAnnotation" || s.type === "IntersectionTypeAnnotation" || s.type === "UnionTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType");
1810
+ case "InferTypeAnnotation":
1811
+ case "NullableTypeAnnotation":
1812
+ return s.type === "ArrayTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType");
1813
+ case "ComponentTypeAnnotation":
1814
+ case "FunctionTypeAnnotation": {
1815
+ if (r.type === "ComponentTypeAnnotation" && (r.rendersType === null || r.rendersType === void 0)) return false;
1816
+ if (e.match(void 0, (A, T) => T === "typeAnnotation" && A.type === "TypeAnnotation", (A, T) => T === "returnType" && A.type === "ArrowFunctionExpression") || e.match(void 0, (A, T) => T === "typeAnnotation" && A.type === "TypePredicate", (A, T) => T === "typeAnnotation" && A.type === "TypeAnnotation", (A, T) => T === "returnType" && A.type === "ArrowFunctionExpression")) return true;
1817
+ let p = s.type === "NullableTypeAnnotation" ? e.grandparent : s;
1818
+ return p.type === "UnionTypeAnnotation" || p.type === "IntersectionTypeAnnotation" || p.type === "ArrayTypeAnnotation" || n === "objectType" && (p.type === "IndexedAccessType" || p.type === "OptionalIndexedAccessType") || n === "checkType" && s.type === "ConditionalTypeAnnotation" || n === "extendsType" && s.type === "ConditionalTypeAnnotation" && ((m = r.returnType) == null ? void 0 : m.type) === "InferTypeAnnotation" && ((D = r.returnType) == null ? void 0 : D.typeParameter.bound) || p.type === "NullableTypeAnnotation" || s.type === "FunctionTypeParam" && s.name === null && K(r).some((A) => {
1819
+ var T;
1820
+ return ((T = A.typeAnnotation) == null ? void 0 : T.type) === "NullableTypeAnnotation";
1821
+ });
1822
+ }
1823
+ case "ConditionalTypeAnnotation":
1824
+ if (n === "extendsType" && s.type === "ConditionalTypeAnnotation" && r.type === "ConditionalTypeAnnotation" || n === "checkType" && s.type === "ConditionalTypeAnnotation") return true;
1825
+ case "OptionalIndexedAccessType":
1826
+ return n === "objectType" && s.type === "IndexedAccessType";
1827
+ case "StringLiteral":
1828
+ case "NumericLiteral":
1829
+ case "Literal":
1830
+ if (typeof r.value == "string" && s.type === "ExpressionStatement" && !s.directive) {
1831
+ let p = e.grandparent;
1832
+ return p.type === "Program" || p.type === "BlockStatement";
1833
+ }
1834
+ return n === "object" && s.type === "MemberExpression" && typeof r.value == "number";
1835
+ case "AssignmentExpression": {
1836
+ let p = e.grandparent;
1837
+ return n === "body" && s.type === "ArrowFunctionExpression" ? true : n === "key" && (s.type === "ClassProperty" || s.type === "PropertyDefinition") && s.computed || (n === "init" || n === "update") && s.type === "ForStatement" ? false : s.type === "ExpressionStatement" ? r.left.type === "ObjectPattern" : !(n === "key" && s.type === "TSPropertySignature" || s.type === "AssignmentExpression" || s.type === "SequenceExpression" && p.type === "ForStatement" && (p.init === s || p.update === s) || n === "value" && s.type === "Property" && p.type === "ObjectPattern" && p.properties.includes(s) || s.type === "NGChainedExpression");
1838
+ }
1839
+ case "ConditionalExpression":
1840
+ switch (s.type) {
1841
+ case "TaggedTemplateExpression":
1842
+ case "UnaryExpression":
1843
+ case "SpreadElement":
1844
+ case "BinaryExpression":
1845
+ case "LogicalExpression":
1846
+ case "NGPipeExpression":
1847
+ case "ExportDefaultDeclaration":
1848
+ case "AwaitExpression":
1849
+ case "JSXSpreadAttribute":
1850
+ case "TSTypeAssertion":
1851
+ case "TypeCastExpression":
1852
+ case "TSAsExpression":
1853
+ case "TSSatisfiesExpression":
1854
+ case "AsExpression":
1855
+ case "AsConstExpression":
1856
+ case "SatisfiesExpression":
1857
+ case "TSNonNullExpression":
1858
+ return true;
1859
+ case "NewExpression":
1860
+ case "CallExpression":
1861
+ case "OptionalCallExpression":
1862
+ return n === "callee";
1863
+ case "ConditionalExpression":
1864
+ return t.experimentalTernaries ? false : n === "test";
1865
+ case "MemberExpression":
1866
+ case "OptionalMemberExpression":
1867
+ return n === "object";
1868
+ default:
1869
+ return false;
1870
+ }
1871
+ case "FunctionExpression":
1872
+ switch (s.type) {
1873
+ case "NewExpression":
1874
+ case "CallExpression":
1875
+ case "OptionalCallExpression":
1876
+ return n === "callee";
1877
+ case "TaggedTemplateExpression":
1878
+ return true;
1879
+ default:
1880
+ return false;
1881
+ }
1882
+ case "ArrowFunctionExpression":
1883
+ switch (s.type) {
1884
+ case "BinaryExpression":
1885
+ return s.operator !== "|>" || ((y = r.extra) == null ? void 0 : y.parenthesized);
1886
+ case "NewExpression":
1887
+ case "CallExpression":
1888
+ case "OptionalCallExpression":
1889
+ return n === "callee";
1890
+ case "MemberExpression":
1891
+ case "OptionalMemberExpression":
1892
+ return n === "object";
1893
+ case "TSAsExpression":
1894
+ case "TSSatisfiesExpression":
1895
+ case "AsExpression":
1896
+ case "AsConstExpression":
1897
+ case "SatisfiesExpression":
1898
+ case "TSNonNullExpression":
1899
+ case "BindExpression":
1900
+ case "TaggedTemplateExpression":
1901
+ case "UnaryExpression":
1902
+ case "LogicalExpression":
1903
+ case "AwaitExpression":
1904
+ case "TSTypeAssertion":
1905
+ return true;
1906
+ case "ConditionalExpression":
1907
+ return n === "test";
1908
+ default:
1909
+ return false;
1910
+ }
1911
+ case "ClassExpression":
1912
+ switch (s.type) {
1913
+ case "NewExpression":
1914
+ return n === "callee";
1915
+ default:
1916
+ return false;
1917
+ }
1918
+ case "OptionalMemberExpression":
1919
+ case "OptionalCallExpression":
1920
+ case "CallExpression":
1921
+ case "MemberExpression":
1922
+ if (sc(e)) return true;
1923
+ case "TaggedTemplateExpression":
1924
+ case "TSNonNullExpression":
1925
+ if (n === "callee" && (s.type === "BindExpression" || s.type === "NewExpression")) {
1926
+ let p = r;
1927
+ for (; p; ) switch (p.type) {
1928
+ case "CallExpression":
1929
+ case "OptionalCallExpression":
1930
+ return true;
1931
+ case "MemberExpression":
1932
+ case "OptionalMemberExpression":
1933
+ case "BindExpression":
1934
+ p = p.object;
1935
+ break;
1936
+ case "TaggedTemplateExpression":
1937
+ p = p.tag;
1938
+ break;
1939
+ case "TSNonNullExpression":
1940
+ p = p.expression;
1941
+ break;
1942
+ default:
1943
+ return false;
1944
+ }
1945
+ }
1946
+ return false;
1947
+ case "BindExpression":
1948
+ return n === "callee" && (s.type === "BindExpression" || s.type === "NewExpression") || n === "object" && q(s);
1949
+ case "NGPipeExpression":
1950
+ return !(s.type === "NGRoot" || s.type === "NGMicrosyntaxExpression" || s.type === "ObjectProperty" && !((C = r.extra) != null && C.parenthesized) || U(s) || n === "arguments" && L(s) || n === "right" && s.type === "NGPipeExpression" || n === "property" && s.type === "MemberExpression" || s.type === "AssignmentExpression");
1951
+ case "JSXFragment":
1952
+ case "JSXElement":
1953
+ return n === "callee" || n === "left" && s.type === "BinaryExpression" && s.operator === "<" || !U(s) && s.type !== "ArrowFunctionExpression" && s.type !== "AssignmentExpression" && s.type !== "AssignmentPattern" && s.type !== "BinaryExpression" && s.type !== "NewExpression" && s.type !== "ConditionalExpression" && s.type !== "ExpressionStatement" && s.type !== "JsExpressionRoot" && s.type !== "JSXAttribute" && s.type !== "JSXElement" && s.type !== "JSXExpressionContainer" && s.type !== "JSXFragment" && s.type !== "LogicalExpression" && !L(s) && !Ae(s) && s.type !== "ReturnStatement" && s.type !== "ThrowStatement" && s.type !== "TypeCastExpression" && s.type !== "VariableDeclarator" && s.type !== "YieldExpression";
1954
+ case "TSInstantiationExpression":
1955
+ return n === "object" && q(s);
1956
+ }
1957
+ return false;
1958
+ }
1959
+ var ec = 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"]);
1960
+ function tc(e) {
1961
+ let t = 0, { node: r } = e;
1962
+ for (; r; ) {
1963
+ let n = e.getParentNode(t++);
1964
+ if ((n == null ? void 0 : n.type) === "ForStatement" && n.init === r) return true;
1965
+ r = n;
1966
+ }
1967
+ return false;
1968
+ }
1969
+ function rc(e) {
1970
+ return tr(e, (t) => t.type === "ObjectTypeAnnotation" && tr(t, (r) => r.type === "FunctionTypeAnnotation"));
1971
+ }
1972
+ function nc(e) {
1973
+ return se(e);
1974
+ }
1975
+ function or(e) {
1976
+ let { parent: t, key: r } = e;
1977
+ switch (t.type) {
1978
+ case "NGPipeExpression":
1979
+ if (r === "arguments" && e.isLast) return e.callParent(or);
1980
+ break;
1981
+ case "ObjectProperty":
1982
+ if (r === "value") return e.callParent(() => e.key === "properties" && e.isLast);
1983
+ break;
1984
+ case "BinaryExpression":
1985
+ case "LogicalExpression":
1986
+ if (r === "right") return e.callParent(or);
1987
+ break;
1988
+ case "ConditionalExpression":
1989
+ if (r === "alternate") return e.callParent(or);
1990
+ break;
1991
+ case "UnaryExpression":
1992
+ if (t.prefix) return e.callParent(or);
1993
+ break;
1994
+ }
1995
+ return false;
1996
+ }
1997
+ function li(e, t) {
1998
+ let { node: r, parent: n } = e;
1999
+ return r.type === "FunctionExpression" || r.type === "ClassExpression" ? n.type === "ExportDefaultDeclaration" || !us(e, t) : !jt(r) || n.type !== "ExportDefaultDeclaration" && us(e, t) ? false : e.call(() => li(e, t), ...Pr(r));
2000
+ }
2001
+ function sc(e) {
2002
+ let { node: t, parent: r, grandparent: n, key: s } = e;
2003
+ return !!((t.type === "OptionalMemberExpression" || t.type === "OptionalCallExpression") && (s === "object" && r.type === "MemberExpression" || s === "callee" && (r.type === "CallExpression" || r.type === "NewExpression") || r.type === "TSNonNullExpression" && n.type === "MemberExpression" && n.object === r) || e.match(() => t.type === "CallExpression" || t.type === "MemberExpression", (u, i) => i === "expression" && u.type === "ChainExpression") && (e.match(void 0, void 0, (u, i) => i === "callee" && (u.type === "CallExpression" && !u.optional || u.type === "NewExpression") || i === "object" && u.type === "MemberExpression" && !u.optional) || e.match(void 0, void 0, (u, i) => i === "expression" && u.type === "TSNonNullExpression", (u, i) => i === "object" && u.type === "MemberExpression")) || e.match(() => t.type === "CallExpression" || t.type === "MemberExpression", (u, i) => i === "expression" && u.type === "TSNonNullExpression", (u, i) => i === "expression" && u.type === "ChainExpression", (u, i) => i === "object" && u.type === "MemberExpression"));
2004
+ }
2005
+ function is(e) {
2006
+ return e.type === "Identifier" ? true : q(e) ? !e.computed && !e.optional && e.property.type === "Identifier" && is(e.object) : false;
2007
+ }
2008
+ function uc(e) {
2009
+ return e.type === "ChainExpression" && (e = e.expression), is(e) || L(e) && !e.optional && is(e.callee);
2010
+ }
2011
+ var Be = us;
2012
+ function ic(e, t) {
2013
+ let r = t - 1;
2014
+ r = Ge(e, r, { backwards: true }), r = Ue(e, r, { backwards: true }), r = Ge(e, r, { backwards: true });
2015
+ let n = Ue(e, r, { backwards: true });
2016
+ return r !== n;
2017
+ }
2018
+ var mi = ic;
2019
+ var ac = () => true;
2020
+ function as(e, t) {
2021
+ let r = e.node;
2022
+ return r.printed = true, t.printer.printComment(e, t);
2023
+ }
2024
+ function oc(e, t) {
2025
+ var m;
2026
+ let r = e.node, n = [as(e, t)], { printer: s, originalText: u, locStart: i, locEnd: a } = t;
2027
+ if ((m = s.isBlockComment) == null ? void 0 : m.call(s, r)) {
2028
+ let D = te(u, a(r)) ? te(u, i(r), { backwards: true }) ? F : x : " ";
2029
+ n.push(D);
2030
+ } else n.push(F);
2031
+ let c = Ue(u, Ge(u, a(r)));
2032
+ return c !== false && te(u, c) && n.push(F), n;
2033
+ }
2034
+ function pc(e, t, r) {
2035
+ var c;
2036
+ let n = e.node, s = as(e, t), { printer: u, originalText: i, locStart: a } = t, o = (c = u.isBlockComment) == null ? void 0 : c.call(u, n);
2037
+ if (r != null && r.hasLineSuffix && !(r != null && r.isBlock) || te(i, a(n), { backwards: true })) {
2038
+ let m = mi(i, a(n));
2039
+ return { doc: Wn([F, m ? F : "", s]), isBlock: o, hasLineSuffix: true };
2040
+ }
2041
+ return !o || r != null && r.hasLineSuffix ? { doc: [Wn([" ", s]), Ee], isBlock: o, hasLineSuffix: true } : { doc: [" ", s], isBlock: o, hasLineSuffix: false };
2042
+ }
2043
+ function M(e, t, r = {}) {
2044
+ let { node: n } = e;
2045
+ if (!w(n == null ? void 0 : n.comments)) return "";
2046
+ let { indent: s = false, marker: u, filter: i = ac } = r, a = [];
2047
+ if (e.each(({ node: c }) => {
2048
+ c.leading || c.trailing || c.marker !== u || !i(c) || a.push(as(e, t));
2049
+ }, "comments"), a.length === 0) return "";
2050
+ let o = P(F, a);
2051
+ return s ? f([F, o]) : o;
2052
+ }
2053
+ function os(e, t) {
2054
+ let r = e.node;
2055
+ if (!r) return {};
2056
+ let n = t[Symbol.for("printedComments")];
2057
+ if ((r.comments || []).filter((o) => !n.has(o)).length === 0) return { leading: "", trailing: "" };
2058
+ let u = [], i = [], a;
2059
+ return e.each(() => {
2060
+ let o = e.node;
2061
+ if (n != null && n.has(o)) return;
2062
+ let { leading: c, trailing: m } = o;
2063
+ c ? u.push(oc(e, t)) : m && (a = pc(e, t, a), i.push(a.doc));
2064
+ }, "comments"), { leading: u, trailing: i };
2065
+ }
2066
+ function ye(e, t, r) {
2067
+ let { leading: n, trailing: s } = os(e, r);
2068
+ return !n && !s ? t : ir(t, (u) => [n, u, s]);
2069
+ }
2070
+ var ps = class extends Error {
2071
+ name = "UnexpectedNodeError";
2072
+ constructor(t, r, n = "type") {
2073
+ super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`), this.node = t;
2074
+ }
2075
+ };
2076
+ var Me = ps;
2077
+ function cs(e) {
2078
+ if (typeof e != "string") throw new TypeError("Expected a string");
2079
+ return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
2080
+ }
2081
+ var Re;
2082
+ var ls = class {
2083
+ constructor(t) {
2084
+ Ws(this, Re);
2085
+ Gs(this, Re, new Set(t));
2086
+ }
2087
+ getLeadingWhitespaceCount(t) {
2088
+ let r = pt(this, Re), n = 0;
2089
+ for (let s = 0; s < t.length && r.has(t.charAt(s)); s++) n++;
2090
+ return n;
2091
+ }
2092
+ getTrailingWhitespaceCount(t) {
2093
+ let r = pt(this, Re), n = 0;
2094
+ for (let s = t.length - 1; s >= 0 && r.has(t.charAt(s)); s--) n++;
2095
+ return n;
2096
+ }
2097
+ getLeadingWhitespace(t) {
2098
+ let r = this.getLeadingWhitespaceCount(t);
2099
+ return t.slice(0, r);
2100
+ }
2101
+ getTrailingWhitespace(t) {
2102
+ let r = this.getTrailingWhitespaceCount(t);
2103
+ return t.slice(t.length - r);
2104
+ }
2105
+ hasLeadingWhitespace(t) {
2106
+ return pt(this, Re).has(t.charAt(0));
2107
+ }
2108
+ hasTrailingWhitespace(t) {
2109
+ return pt(this, Re).has(O(false, t, -1));
2110
+ }
2111
+ trimStart(t) {
2112
+ let r = this.getLeadingWhitespaceCount(t);
2113
+ return t.slice(r);
2114
+ }
2115
+ trimEnd(t) {
2116
+ let r = this.getTrailingWhitespaceCount(t);
2117
+ return t.slice(0, t.length - r);
2118
+ }
2119
+ trim(t) {
2120
+ return this.trimEnd(this.trimStart(t));
2121
+ }
2122
+ split(t, r = false) {
2123
+ let n = `[${cs([...pt(this, Re)].join(""))}]+`, s = new RegExp(r ? `(${n})` : n, "u");
2124
+ return t.split(s);
2125
+ }
2126
+ hasWhitespaceCharacter(t) {
2127
+ let r = pt(this, Re);
2128
+ return Array.prototype.some.call(t, (n) => r.has(n));
2129
+ }
2130
+ hasNonWhitespaceCharacter(t) {
2131
+ let r = pt(this, Re);
2132
+ return Array.prototype.some.call(t, (n) => !r.has(n));
2133
+ }
2134
+ isWhitespaceOnly(t) {
2135
+ let r = pt(this, Re);
2136
+ return Array.prototype.every.call(t, (n) => r.has(n));
2137
+ }
2138
+ };
2139
+ Re = /* @__PURE__ */ new WeakMap();
2140
+ var yi = ls;
2141
+ var Nr = new yi(`
2142
+ \r `);
2143
+ var ms = (e) => e === "" || e === x || e === F || e === E;
2144
+ function cc(e, t, r) {
2145
+ var _, J, j;
2146
+ let { node: n } = e;
2147
+ if (n.type === "JSXElement" && gc(n)) return [r("openingElement"), r("closingElement")];
2148
+ let s = n.type === "JSXElement" ? r("openingElement") : r("openingFragment"), u = n.type === "JSXElement" ? r("closingElement") : r("closingFragment");
2149
+ if (n.children.length === 1 && n.children[0].type === "JSXExpressionContainer" && (n.children[0].expression.type === "TemplateLiteral" || n.children[0].expression.type === "TaggedTemplateExpression")) return [s, ...e.map(r, "children"), u];
2150
+ n.children = n.children.map((h) => Sc(h) ? { type: "JSXText", value: " ", raw: " " } : h);
2151
+ let i = n.children.some(X), a = n.children.filter((h) => h.type === "JSXExpressionContainer").length > 1, o = n.type === "JSXElement" && n.openingElement.attributes.length > 1, c = ne(s) || i || o || a, m = e.parent.rootMarker === "mdx", D = t.singleQuote ? "{' '}" : '{" "}', y = m ? " " : b([D, E], " "), C = ((J = (_ = n.openingElement) == null ? void 0 : _.name) == null ? void 0 : J.name) === "fbt", p = lc(e, t, r, y, C), A = n.children.some((h) => pr(h));
2152
+ for (let h = p.length - 2; h >= 0; h--) {
2153
+ let W = p[h] === "" && p[h + 1] === "", Fe = p[h] === F && p[h + 1] === "" && p[h + 2] === F, H = (p[h] === E || p[h] === F) && p[h + 1] === "" && p[h + 2] === y, ue = p[h] === y && p[h + 1] === "" && (p[h + 2] === E || p[h + 2] === F), Z = p[h] === y && p[h + 1] === "" && p[h + 2] === y, It = p[h] === E && p[h + 1] === "" && p[h + 2] === F || p[h] === F && p[h + 1] === "" && p[h + 2] === E;
2154
+ Fe && A || W || H || Z || It ? p.splice(h, 2) : ue && p.splice(h + 1, 2);
2155
+ }
2156
+ for (; p.length > 0 && ms(O(false, p, -1)); ) p.pop();
2157
+ for (; p.length > 1 && ms(p[0]) && ms(p[1]); ) p.shift(), p.shift();
2158
+ let T = [];
2159
+ for (let [h, W] of p.entries()) {
2160
+ if (W === y) {
2161
+ if (h === 1 && p[h - 1] === "") {
2162
+ if (p.length === 2) {
2163
+ T.push(D);
2164
+ continue;
2165
+ }
2166
+ T.push([D, F]);
2167
+ continue;
2168
+ } else if (h === p.length - 1) {
2169
+ T.push(D);
2170
+ continue;
2171
+ } else if (p[h - 1] === "" && p[h - 2] === F) {
2172
+ T.push(D);
2173
+ continue;
2174
+ }
2175
+ }
2176
+ T.push(W), ne(W) && (c = true);
2177
+ }
2178
+ let S = A ? qt(T) : l(T, { shouldBreak: true });
2179
+ if (((j = t.cursorNode) == null ? void 0 : j.type) === "JSXText" && n.children.includes(t.cursorNode) && (S = [Un, S, Un]), m) return S;
2180
+ let B = l([s, f([F, S]), F, u]);
2181
+ return c ? B : ze([l([s, ...p, u]), B]);
2182
+ }
2183
+ function lc(e, t, r, n, s) {
2184
+ let u = [];
2185
+ return e.each(({ node: i, next: a }) => {
2186
+ if (i.type === "JSXText") {
2187
+ let o = fe(i);
2188
+ if (pr(i)) {
2189
+ let c = Nr.split(o, true);
2190
+ c[0] === "" && (u.push(""), c.shift(), /\n/u.test(c[0]) ? u.push(fi(s, c[1], i, a)) : u.push(n), c.shift());
2191
+ let m;
2192
+ if (O(false, c, -1) === "" && (c.pop(), m = c.pop()), c.length === 0) return;
2193
+ for (let [D, y] of c.entries()) D % 2 === 1 ? u.push(x) : u.push(y);
2194
+ m !== void 0 ? /\n/u.test(m) ? u.push(fi(s, O(false, u, -1), i, a)) : u.push(n) : u.push(Di(s, O(false, u, -1), i, a));
2195
+ } else /\n/u.test(o) ? o.match(/\n/gu).length > 1 && u.push("", F) : u.push("", n);
2196
+ } else {
2197
+ let o = r();
2198
+ if (u.push(o), a && pr(a)) {
2199
+ let m = Nr.trim(fe(a)), [D] = Nr.split(m);
2200
+ u.push(Di(s, D, i, a));
2201
+ } else u.push(F);
2202
+ }
2203
+ }, "children"), u;
2204
+ }
2205
+ function Di(e, t, r, n) {
2206
+ return e ? "" : r.type === "JSXElement" && !r.closingElement || (n == null ? void 0 : n.type) === "JSXElement" && !n.closingElement ? t.length === 1 ? E : F : E;
2207
+ }
2208
+ function fi(e, t, r, n) {
2209
+ return e ? F : t.length === 1 ? r.type === "JSXElement" && !r.closingElement || (n == null ? void 0 : n.type) === "JSXElement" && !n.closingElement ? F : E : F;
2210
+ }
2211
+ var mc = /* @__PURE__ */ new Set(["ArrayExpression", "TupleExpression", "JSXAttribute", "JSXElement", "JSXExpressionContainer", "JSXFragment", "ExpressionStatement", "CallExpression", "OptionalCallExpression", "ConditionalExpression", "JsExpressionRoot"]);
2212
+ function yc(e, t, r) {
2213
+ let { parent: n } = e;
2214
+ if (mc.has(n.type)) return t;
2215
+ let s = e.match(void 0, (i) => i.type === "ArrowFunctionExpression", L, (i) => i.type === "JSXExpressionContainer"), u = Be(e, r);
2216
+ return l([u ? "" : b("("), f([E, t]), E, u ? "" : b(")")], { shouldBreak: s });
2217
+ }
2218
+ function Dc(e, t, r) {
2219
+ let { node: n } = e, s = [];
2220
+ if (s.push(r("name")), n.value) {
2221
+ let u;
2222
+ if (Q(n.value)) {
2223
+ let i = fe(n.value), a = N(false, N(false, i.slice(1, -1), "&apos;", "'"), "&quot;", '"'), o = xr(a, t.jsxSingleQuote);
2224
+ a = o === '"' ? N(false, a, '"', "&quot;") : N(false, a, "'", "&apos;"), u = e.call(() => ye(e, Ie(o + a + o), t), "value");
2225
+ } else u = r("value");
2226
+ s.push("=", u);
2227
+ }
2228
+ return s;
2229
+ }
2230
+ function fc(e, t, r) {
2231
+ let { node: n } = e, s = (u, i) => u.type === "JSXEmptyExpression" || !d(u) && (U(u) || se(u) || u.type === "ArrowFunctionExpression" || u.type === "AwaitExpression" && (s(u.argument, u) || u.argument.type === "JSXElement") || L(u) || u.type === "ChainExpression" && L(u.expression) || u.type === "FunctionExpression" || u.type === "TemplateLiteral" || u.type === "TaggedTemplateExpression" || u.type === "DoExpression" || X(i) && (u.type === "ConditionalExpression" || De(u)));
2232
+ return s(n.expression, e.parent) ? l(["{", r("expression"), ke, "}"]) : l(["{", f([E, r("expression")]), E, ke, "}"]);
2233
+ }
2234
+ function Ec(e, t, r) {
2235
+ var a, o;
2236
+ let { node: n } = e, s = d(n.name) || d(n.typeParameters) || d(n.typeArguments);
2237
+ if (n.selfClosing && n.attributes.length === 0 && !s) return ["<", r("name"), n.typeArguments ? r("typeArguments") : r("typeParameters"), " />"];
2238
+ if (((a = n.attributes) == null ? void 0 : a.length) === 1 && Q(n.attributes[0].value) && !n.attributes[0].value.value.includes(`
2239
+ `) && !s && !d(n.attributes[0])) return l(["<", r("name"), n.typeArguments ? r("typeArguments") : r("typeParameters"), " ", ...e.map(r, "attributes"), n.selfClosing ? " />" : ">"]);
2240
+ let u = (o = n.attributes) == null ? void 0 : o.some((c) => Q(c.value) && c.value.value.includes(`
2241
+ `)), i = t.singleAttributePerLine && n.attributes.length > 1 ? F : x;
2242
+ return l(["<", r("name"), n.typeArguments ? r("typeArguments") : r("typeParameters"), f(e.map(() => [i, r()], "attributes")), ...Fc(n, t, s)], { shouldBreak: u });
2243
+ }
2244
+ function Fc(e, t, r) {
2245
+ return e.selfClosing ? [x, "/>"] : Cc(e, t, r) ? [">"] : [E, ">"];
2246
+ }
2247
+ function Cc(e, t, r) {
2248
+ let n = e.attributes.length > 0 && d(O(false, e.attributes, -1), g.Trailing);
2249
+ return e.attributes.length === 0 && !r || (t.bracketSameLine || t.jsxBracketSameLine) && (!r || e.attributes.length > 0) && !n;
2250
+ }
2251
+ function Ac(e, t, r) {
2252
+ let { node: n } = e, s = [];
2253
+ s.push("</");
2254
+ let u = r("name");
2255
+ return d(n.name, g.Leading | g.Line) ? s.push(f([F, u]), F) : d(n.name, g.Leading | g.Block) ? s.push(" ", u) : s.push(u), s.push(">"), s;
2256
+ }
2257
+ function Tc(e, t) {
2258
+ let { node: r } = e, n = d(r), s = d(r, g.Line), u = r.type === "JSXOpeningFragment";
2259
+ return [u ? "<" : "</", f([s ? F : n && !u ? " " : "", M(e, t)]), s ? F : "", ">"];
2260
+ }
2261
+ function dc(e, t, r) {
2262
+ let n = ye(e, cc(e, t, r), t);
2263
+ return yc(e, n, t);
2264
+ }
2265
+ function xc(e, t) {
2266
+ let { node: r } = e, n = d(r, g.Line);
2267
+ return [M(e, t, { indent: n }), n ? F : ""];
2268
+ }
2269
+ function hc(e, t, r) {
2270
+ let { node: n } = e;
2271
+ return ["{", e.call(({ node: s }) => {
2272
+ let u = ["...", r()];
2273
+ return !d(s) || !zn(e) ? u : [f([E, ye(e, u, t)]), E];
2274
+ }, n.type === "JSXSpreadAttribute" ? "argument" : "expression"), "}"];
2275
+ }
2276
+ function Ei(e, t, r) {
2277
+ let { node: n } = e;
2278
+ if (n.type.startsWith("JSX")) switch (n.type) {
2279
+ case "JSXAttribute":
2280
+ return Dc(e, t, r);
2281
+ case "JSXIdentifier":
2282
+ return n.name;
2283
+ case "JSXNamespacedName":
2284
+ return P(":", [r("namespace"), r("name")]);
2285
+ case "JSXMemberExpression":
2286
+ return P(".", [r("object"), r("property")]);
2287
+ case "JSXSpreadAttribute":
2288
+ case "JSXSpreadChild":
2289
+ return hc(e, t, r);
2290
+ case "JSXExpressionContainer":
2291
+ return fc(e, t, r);
2292
+ case "JSXFragment":
2293
+ case "JSXElement":
2294
+ return dc(e, t, r);
2295
+ case "JSXOpeningElement":
2296
+ return Ec(e, t, r);
2297
+ case "JSXClosingElement":
2298
+ return Ac(e, t, r);
2299
+ case "JSXOpeningFragment":
2300
+ case "JSXClosingFragment":
2301
+ return Tc(e, t);
2302
+ case "JSXEmptyExpression":
2303
+ return xc(e, t);
2304
+ case "JSXText":
2305
+ throw new Error("JSXText should be handled by JSXElement");
2306
+ default:
2307
+ throw new Me(n, "JSX");
2308
+ }
2309
+ }
2310
+ function gc(e) {
2311
+ if (e.children.length === 0) return true;
2312
+ if (e.children.length > 1) return false;
2313
+ let t = e.children[0];
2314
+ return t.type === "JSXText" && !pr(t);
2315
+ }
2316
+ function pr(e) {
2317
+ return e.type === "JSXText" && (Nr.hasNonWhitespaceCharacter(fe(e)) || !/\n/u.test(fe(e)));
2318
+ }
2319
+ function Sc(e) {
2320
+ return e.type === "JSXExpressionContainer" && Q(e.expression) && e.expression.value === " " && !d(e.expression);
2321
+ }
2322
+ function Fi(e) {
2323
+ let { node: t, parent: r } = e;
2324
+ if (!X(t) || !X(r)) return false;
2325
+ let { index: n, siblings: s } = e, u;
2326
+ for (let i = n; i > 0; i--) {
2327
+ let a = s[i - 1];
2328
+ if (!(a.type === "JSXText" && !pr(a))) {
2329
+ u = a;
2330
+ break;
2331
+ }
2332
+ }
2333
+ return (u == null ? void 0 : u.type) === "JSXExpressionContainer" && u.expression.type === "JSXEmptyExpression" && Bt(u.expression);
2334
+ }
2335
+ function Bc(e) {
2336
+ return Bt(e.node) || Fi(e);
2337
+ }
2338
+ var Xr = Bc;
2339
+ var bc = 0;
2340
+ function Yr(e, t, r) {
2341
+ var J;
2342
+ let { node: n, parent: s, grandparent: u, key: i } = e, a = i !== "body" && (s.type === "IfStatement" || s.type === "WhileStatement" || s.type === "SwitchStatement" || s.type === "DoWhileStatement"), o = n.operator === "|>" && ((J = e.root.extra) == null ? void 0 : J.__isUsingHackPipeline), c = ys(e, r, t, false, a);
2343
+ if (a) return c;
2344
+ if (o) return l(c);
2345
+ if (L(s) && s.callee === n || s.type === "UnaryExpression" || q(s) && !s.computed) return l([f([E, ...c]), E]);
2346
+ let m = s.type === "ReturnStatement" || s.type === "ThrowStatement" || s.type === "JSXExpressionContainer" && u.type === "JSXAttribute" || n.operator !== "|" && s.type === "JsExpressionRoot" || n.type !== "NGPipeExpression" && (s.type === "NGRoot" && t.parser === "__ng_binding" || s.type === "NGMicrosyntaxExpression" && u.type === "NGMicrosyntax" && u.body.length === 1) || n === s.body && s.type === "ArrowFunctionExpression" || n !== s.body && s.type === "ForStatement" || s.type === "ConditionalExpression" && u.type !== "ReturnStatement" && u.type !== "ThrowStatement" && !L(u) || s.type === "TemplateLiteral", D = s.type === "AssignmentExpression" || s.type === "VariableDeclarator" || s.type === "ClassProperty" || s.type === "PropertyDefinition" || s.type === "TSAbstractPropertyDefinition" || s.type === "ClassPrivateProperty" || Ae(s), y = De(n.left) && nr(n.operator, n.left.operator);
2347
+ if (m || Ut(n) && !y || !Ut(n) && D) return l(c);
2348
+ if (c.length === 0) return "";
2349
+ let C = X(n.right), p = c.findIndex((j) => typeof j != "string" && !Array.isArray(j) && j.type === le), A = c.slice(0, p === -1 ? 1 : p + 1), T = c.slice(A.length, C ? -1 : void 0), S = Symbol("logicalChain-" + ++bc), B = l([...A, f(T)], { id: S });
2350
+ if (!C) return B;
2351
+ let _ = O(false, c, -1);
2352
+ return l([B, At(_, { groupId: S })]);
2353
+ }
2354
+ function ys(e, t, r, n, s) {
2355
+ var A;
2356
+ let { node: u } = e;
2357
+ if (!De(u)) return [l(t())];
2358
+ let i = [];
2359
+ nr(u.operator, u.left.operator) ? i = e.call((T) => ys(T, t, r, true, s), "left") : i.push(l(t("left")));
2360
+ let a = Ut(u), o = (u.operator === "|>" || u.type === "NGPipeExpression" || Pc(e, r)) && !Oe(r.originalText, u.right), c = u.type === "NGPipeExpression" ? "|" : u.operator, m = u.type === "NGPipeExpression" && u.arguments.length > 0 ? l(f([E, ": ", P([x, ": "], e.map(() => he(2, l(t())), "arguments"))])) : "", D;
2361
+ if (a) D = [c, " ", t("right"), m];
2362
+ else {
2363
+ let S = c === "|>" && ((A = e.root.extra) == null ? void 0 : A.__isUsingHackPipeline) ? e.call((B) => ys(B, t, r, true, s), "right") : t("right");
2364
+ D = [o ? x : "", c, o ? " " : x, S, m];
2365
+ }
2366
+ let { parent: y } = e, C = d(u.left, g.Trailing | g.Line), p = C || !(s && u.type === "LogicalExpression") && y.type !== u.type && u.left.type !== u.type && u.right.type !== u.type;
2367
+ if (i.push(o ? "" : " ", p ? l(D, { shouldBreak: C }) : D), n && d(u)) {
2368
+ let T = Wt(ye(e, i, r));
2369
+ return T.type === Pe ? T.parts : Array.isArray(T) ? T : [T];
2370
+ }
2371
+ return i;
2372
+ }
2373
+ function Ut(e) {
2374
+ return e.type !== "LogicalExpression" ? false : !!(se(e.right) && e.right.properties.length > 0 || U(e.right) && e.right.elements.length > 0 || X(e.right));
2375
+ }
2376
+ var Ci = (e) => e.type === "BinaryExpression" && e.operator === "|";
2377
+ function Pc(e, t) {
2378
+ return (t.parser === "__vue_expression" || t.parser === "__vue_ts_expression") && Ci(e.node) && !e.hasAncestor((r) => !Ci(r) && r.type !== "JsExpressionRoot");
2379
+ }
2380
+ function Ti(e, t, r) {
2381
+ let { node: n } = e;
2382
+ if (n.type.startsWith("NG")) switch (n.type) {
2383
+ case "NGRoot":
2384
+ return [r("node"), d(n.node) ? " //" + ct(n.node)[0].value.trimEnd() : ""];
2385
+ case "NGPipeExpression":
2386
+ return Yr(e, t, r);
2387
+ case "NGChainedExpression":
2388
+ return l(P([";", x], e.map(() => Ic(e) ? r() : ["(", r(), ")"], "expressions")));
2389
+ case "NGEmptyExpression":
2390
+ return "";
2391
+ case "NGMicrosyntax":
2392
+ return e.map(() => [e.isFirst ? "" : Ai(e) ? " " : [";", x], r()], "body");
2393
+ case "NGMicrosyntaxKey":
2394
+ return /^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name) ? n.name : JSON.stringify(n.name);
2395
+ case "NGMicrosyntaxExpression":
2396
+ return [r("expression"), n.alias === null ? "" : [" as ", r("alias")]];
2397
+ case "NGMicrosyntaxKeyedExpression": {
2398
+ let { index: s, parent: u } = e, i = Ai(e) || (s === 1 && (n.key.name === "then" || n.key.name === "else" || n.key.name === "as") || (s === 2 || s === 3) && (n.key.name === "else" && u.body[s - 1].type === "NGMicrosyntaxKeyedExpression" && u.body[s - 1].key.name === "then" || n.key.name === "track")) && u.body[0].type === "NGMicrosyntaxExpression";
2399
+ return [r("key"), i ? " " : ": ", r("expression")];
2400
+ }
2401
+ case "NGMicrosyntaxLet":
2402
+ return ["let ", r("key"), n.value === null ? "" : [" = ", r("value")]];
2403
+ case "NGMicrosyntaxAs":
2404
+ return [r("key"), " as ", r("alias")];
2405
+ default:
2406
+ throw new Me(n, "Angular");
2407
+ }
2408
+ }
2409
+ function Ai({ node: e, index: t }) {
2410
+ return e.type === "NGMicrosyntaxKeyedExpression" && e.key.name === "of" && t === 1;
2411
+ }
2412
+ var kc = v(["CallExpression", "OptionalCallExpression", "AssignmentExpression"]);
2413
+ function Ic({ node: e }) {
2414
+ return tr(e, kc);
2415
+ }
2416
+ function Ds(e, t, r) {
2417
+ let { node: n } = e;
2418
+ return l([P(x, e.map(r, "decorators")), hi(n, t) ? F : x]);
2419
+ }
2420
+ function di(e, t, r) {
2421
+ return gi(e.node) ? [P(F, e.map(r, "declaration", "decorators")), F] : "";
2422
+ }
2423
+ function xi(e, t, r) {
2424
+ let { node: n, parent: s } = e, { decorators: u } = n;
2425
+ if (!w(u) || gi(s) || Xr(e)) return "";
2426
+ let i = n.type === "ClassExpression" || n.type === "ClassDeclaration" || hi(n, t);
2427
+ return [e.key === "declaration" && iu(s) ? F : i ? Ee : "", P(x, e.map(r, "decorators")), x];
2428
+ }
2429
+ function hi(e, t) {
2430
+ return e.decorators.some((r) => te(t.originalText, k(r)));
2431
+ }
2432
+ function gi(e) {
2433
+ var r;
2434
+ if (e.type !== "ExportDefaultDeclaration" && e.type !== "ExportNamedDeclaration" && e.type !== "DeclareExportDeclaration") return false;
2435
+ let t = (r = e.declaration) == null ? void 0 : r.decorators;
2436
+ return w(t) && ht(e, t[0]);
2437
+ }
2438
+ var Dt = class extends Error {
2439
+ name = "ArgExpansionBailout";
2440
+ };
2441
+ function Lc(e, t, r) {
2442
+ let { node: n } = e, s = oe(n);
2443
+ if (s.length === 0) return ["(", M(e, t), ")"];
2444
+ let u = s.length - 1;
2445
+ if (_c(s)) {
2446
+ let y = ["("];
2447
+ return Rt(e, (C, p) => {
2448
+ y.push(r()), p !== u && y.push(", ");
2449
+ }), y.push(")"), y;
2450
+ }
2451
+ let i = false, a = [];
2452
+ Rt(e, ({ node: y }, C) => {
2453
+ let p = r();
2454
+ C === u || (pe(y, t) ? (i = true, p = [p, ",", F, F]) : p = [p, ",", x]), a.push(p);
2455
+ });
2456
+ let o = n.type === "ImportExpression" || n.callee.type === "Import", c = !t.parser.startsWith("__ng_") && !o && ae(t, "all") ? "," : "";
2457
+ function m() {
2458
+ return l(["(", f([x, ...a]), c, x, ")"], { shouldBreak: true });
2459
+ }
2460
+ if (i || e.parent.type !== "Decorator" && lu(s)) return m();
2461
+ if (Oc(s)) {
2462
+ let y = a.slice(1);
2463
+ if (y.some(ne)) return m();
2464
+ let C;
2465
+ try {
2466
+ C = r(Rn(n, 0), { expandFirstArg: true });
2467
+ } catch (p) {
2468
+ if (p instanceof Dt) return m();
2469
+ throw p;
2470
+ }
2471
+ return ne(C) ? [Ee, ze([["(", l(C, { shouldBreak: true }), ", ", ...y, ")"], m()])] : ze([["(", C, ", ", ...y, ")"], ["(", l(C, { shouldBreak: true }), ", ", ...y, ")"], m()]);
2472
+ }
2473
+ if (wc(s, a, t)) {
2474
+ let y = a.slice(0, -1);
2475
+ if (y.some(ne)) return m();
2476
+ let C;
2477
+ try {
2478
+ C = r(Rn(n, -1), { expandLastArg: true });
2479
+ } catch (p) {
2480
+ if (p instanceof Dt) return m();
2481
+ throw p;
2482
+ }
2483
+ return ne(C) ? [Ee, ze([["(", ...y, l(C, { shouldBreak: true }), ")"], m()])] : ze([["(", ...y, C, ")"], ["(", ...y, l(C, { shouldBreak: true }), ")"], m()]);
2484
+ }
2485
+ let D = ["(", f([E, ...a]), b(c), E, ")"];
2486
+ return Or(e) ? D : l(D, { shouldBreak: a.some(ne) || i });
2487
+ }
2488
+ function cr(e, t = false) {
2489
+ return se(e) && (e.properties.length > 0 || d(e)) || U(e) && (e.elements.length > 0 || d(e)) || e.type === "TSTypeAssertion" && cr(e.expression) || Te(e) && cr(e.expression) || e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && (!e.returnType || !e.returnType.typeAnnotation || e.returnType.typeAnnotation.type !== "TSTypeReference" || jc(e.body)) && (e.body.type === "BlockStatement" || e.body.type === "ArrowFunctionExpression" && cr(e.body, true) || se(e.body) || U(e.body) || !t && (L(e.body) || e.body.type === "ConditionalExpression") || X(e.body)) || e.type === "DoExpression" || e.type === "ModuleExpression";
2490
+ }
2491
+ function wc(e, t, r) {
2492
+ var u, i;
2493
+ let n = O(false, e, -1);
2494
+ if (e.length === 1) {
2495
+ let a = O(false, t, -1);
2496
+ if ((u = a.label) != null && u.embed && ((i = a.label) == null ? void 0 : i.hug) !== false) return true;
2497
+ }
2498
+ let s = O(false, e, -2);
2499
+ return !d(n, g.Leading) && !d(n, g.Trailing) && cr(n) && (!s || s.type !== n.type) && (e.length !== 2 || s.type !== "ArrowFunctionExpression" || !U(n)) && !(e.length > 1 && fs(n, r));
2500
+ }
2501
+ function Oc(e) {
2502
+ if (e.length !== 2) return false;
2503
+ let [t, r] = e;
2504
+ return t.type === "ModuleExpression" && vc(r) ? true : !d(t) && (t.type === "FunctionExpression" || t.type === "ArrowFunctionExpression" && t.body.type === "BlockStatement") && r.type !== "FunctionExpression" && r.type !== "ArrowFunctionExpression" && r.type !== "ConditionalExpression" && Bi(r) && !cr(r);
2505
+ }
2506
+ function Bi(e) {
2507
+ if (e.type === "ParenthesizedExpression") return Bi(e.expression);
2508
+ if (Te(e) || e.type === "TypeCastExpression") {
2509
+ let { typeAnnotation: t } = e;
2510
+ 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") {
2511
+ let r = t.typeArguments ?? t.typeParameters;
2512
+ (r == null ? void 0 : r.params.length) === 1 && (t = r.params[0]);
2513
+ }
2514
+ return Mt(t) && be(e.expression, 1);
2515
+ }
2516
+ return lt(e) && oe(e).length > 1 ? false : De(e) ? be(e.left, 1) && be(e.right, 1) : vn(e) || be(e);
2517
+ }
2518
+ function _c(e) {
2519
+ return e.length === 2 ? Si(e, 0) : e.length === 3 ? e[0].type === "Identifier" && Si(e, 1) : false;
2520
+ }
2521
+ function Si(e, t) {
2522
+ let r = e[t], n = e[t + 1];
2523
+ return r.type === "ArrowFunctionExpression" && K(r).length === 0 && r.body.type === "BlockStatement" && n.type === "ArrayExpression" && !e.some((s) => d(s));
2524
+ }
2525
+ function jc(e) {
2526
+ return e.type === "BlockStatement" && (e.body.some((t) => t.type !== "EmptyStatement") || d(e, g.Dangling));
2527
+ }
2528
+ function vc(e) {
2529
+ return e.type === "ObjectExpression" && e.properties.length === 1 && Ae(e.properties[0]) && e.properties[0].key.type === "Identifier" && e.properties[0].key.name === "type" && Q(e.properties[0].value) && e.properties[0].value.value === "module";
2530
+ }
2531
+ var lr = Lc;
2532
+ var Mc = (e) => ((e.type === "ChainExpression" || e.type === "TSNonNullExpression") && (e = e.expression), L(e) && oe(e).length > 0);
2533
+ function bi(e, t, r) {
2534
+ var c;
2535
+ let n = r("object"), s = Es(e, t, r), { node: u } = e, i = e.findAncestor((m) => !(q(m) || m.type === "TSNonNullExpression")), a = e.findAncestor((m) => !(m.type === "ChainExpression" || m.type === "TSNonNullExpression")), o = i && (i.type === "NewExpression" || i.type === "BindExpression" || i.type === "AssignmentExpression" && i.left.type !== "Identifier") || u.computed || u.object.type === "Identifier" && u.property.type === "Identifier" && !q(a) || (a.type === "AssignmentExpression" || a.type === "VariableDeclarator") && (Mc(u.object) || ((c = n.label) == null ? void 0 : c.memberChain));
2536
+ return it(n.label, [n, o ? s : l(f([E, s]))]);
2537
+ }
2538
+ function Es(e, t, r) {
2539
+ let n = r("property"), { node: s } = e, u = V(e);
2540
+ return s.computed ? !s.property || Ce(s.property) ? [u, "[", n, "]"] : l([u, "[", f([E, n]), E, "]"]) : [u, ".", n];
2541
+ }
2542
+ function Pi(e, t, r) {
2543
+ if (e.node.type === "ChainExpression") return e.call(() => Pi(e, t, r), "expression");
2544
+ let { parent: n } = e, s = !n || n.type === "ExpressionStatement", u = [];
2545
+ function i(I) {
2546
+ let { originalText: G } = t, ee = yt(G, k(I));
2547
+ return G.charAt(ee) === ")" ? ee !== false && Ot(G, ee + 1) : pe(I, t);
2548
+ }
2549
+ function a(I) {
2550
+ let { node: G } = I;
2551
+ if (G.type === "ChainExpression") return I.call(() => a(I), "expression");
2552
+ if (L(G) && (Ft(G.callee) || L(G.callee))) {
2553
+ let ee = i(G);
2554
+ u.unshift({ node: G, hasTrailingEmptyLine: ee, printed: [ye(I, [V(I), Qe(I, t, r), lr(I, t, r)], t), ee ? F : ""] }), I.call((qe) => a(qe), "callee");
2555
+ } else Ft(G) ? (u.unshift({ node: G, needsParens: Be(I, t), printed: ye(I, q(G) ? Es(I, t, r) : Hr(I, t, r), t) }), I.call((ee) => a(ee), "object")) : G.type === "TSNonNullExpression" ? (u.unshift({ node: G, printed: ye(I, "!", t) }), I.call((ee) => a(ee), "expression")) : u.unshift({ node: G, printed: r() });
2556
+ }
2557
+ let { node: o } = e;
2558
+ u.unshift({ node: o, printed: [V(e), Qe(e, t, r), lr(e, t, r)] }), o.callee && e.call((I) => a(I), "callee");
2559
+ let c = [], m = [u[0]], D = 1;
2560
+ for (; D < u.length && (u[D].node.type === "TSNonNullExpression" || L(u[D].node) || q(u[D].node) && u[D].node.computed && Ce(u[D].node.property)); ++D) m.push(u[D]);
2561
+ if (!L(u[0].node)) for (; D + 1 < u.length && (Ft(u[D].node) && Ft(u[D + 1].node)); ++D) m.push(u[D]);
2562
+ c.push(m), m = [];
2563
+ let y = false;
2564
+ for (; D < u.length; ++D) {
2565
+ if (y && Ft(u[D].node)) {
2566
+ if (u[D].node.computed && Ce(u[D].node.property)) {
2567
+ m.push(u[D]);
2568
+ continue;
2569
+ }
2570
+ c.push(m), m = [], y = false;
2571
+ }
2572
+ (L(u[D].node) || u[D].node.type === "ImportExpression") && (y = true), m.push(u[D]), d(u[D].node, g.Trailing) && (c.push(m), m = [], y = false);
2573
+ }
2574
+ m.length > 0 && c.push(m);
2575
+ function C(I) {
2576
+ return /^[A-Z]|^[$_]+$/u.test(I);
2577
+ }
2578
+ function p(I) {
2579
+ return I.length <= t.tabWidth;
2580
+ }
2581
+ function A(I) {
2582
+ var qe;
2583
+ let G = (qe = I[1][0]) == null ? void 0 : qe.node.computed;
2584
+ if (I[0].length === 1) {
2585
+ let xt = I[0][0].node;
2586
+ return xt.type === "ThisExpression" || xt.type === "Identifier" && (C(xt.name) || s && p(xt.name) || G);
2587
+ }
2588
+ let ee = O(false, I[0], -1).node;
2589
+ return q(ee) && ee.property.type === "Identifier" && (C(ee.property.name) || G);
2590
+ }
2591
+ let T = c.length >= 2 && !d(c[1][0].node) && A(c);
2592
+ function S(I) {
2593
+ let G = I.map((ee) => ee.printed);
2594
+ return I.length > 0 && O(false, I, -1).needsParens ? ["(", ...G, ")"] : G;
2595
+ }
2596
+ function B(I) {
2597
+ return I.length === 0 ? "" : f([F, P(F, I.map(S))]);
2598
+ }
2599
+ let _ = c.map(S), J = _, j = T ? 3 : 2, h = c.flat(), W = h.slice(1, -1).some((I) => d(I.node, g.Leading)) || h.slice(0, -1).some((I) => d(I.node, g.Trailing)) || c[j] && d(c[j][0].node, g.Leading);
2600
+ if (c.length <= j && !W && !c.some((I) => O(false, I, -1).hasTrailingEmptyLine)) return Or(e) ? J : l(J);
2601
+ let Fe = O(false, c[T ? 1 : 0], -1).node, H = !L(Fe) && i(Fe), ue = [S(c[0]), T ? c.slice(1, 2).map(S) : "", H ? F : "", B(c.slice(T ? 2 : 1))], Z = u.map(({ node: I }) => I).filter(L);
2602
+ function It() {
2603
+ let I = O(false, O(false, c, -1), -1).node, G = O(false, _, -1);
2604
+ return L(I) && ne(G) && Z.slice(0, -1).some((ee) => ee.arguments.some(_t));
2605
+ }
2606
+ let $t;
2607
+ return W || Z.length > 2 && Z.some((I) => !I.arguments.every((G) => be(G))) || _.slice(0, -1).some(ne) || It() ? $t = l(ue) : $t = [ne(J) || H ? Ee : "", ze([J, ue])], it({ memberChain: true }, $t);
2608
+ }
2609
+ var ki = Pi;
2610
+ function Vr(e, t, r) {
2611
+ var m;
2612
+ let { node: n } = e, s = n.type === "NewExpression", u = n.type === "ImportExpression", i = V(e), a = oe(n), o = a.length === 1 && Lr(a[0], t.originalText);
2613
+ if (o || Rc(e) || St(n, e.parent)) {
2614
+ let D = [];
2615
+ if (Rt(e, () => {
2616
+ D.push(r());
2617
+ }), !(o && ((m = D[0].label) != null && m.embed))) return [s ? "new " : "", Ii(e, r), i, Qe(e, t, r), "(", P(", ", D), ")"];
2618
+ }
2619
+ if (!u && !s && Ft(n.callee) && !e.call((D) => Be(D, t), "callee", ...n.callee.type === "ChainExpression" ? ["expression"] : [])) return ki(e, t, r);
2620
+ let c = [s ? "new " : "", Ii(e, r), i, Qe(e, t, r), lr(e, t, r)];
2621
+ return u || L(n.callee) ? l(c) : c;
2622
+ }
2623
+ function Ii(e, t) {
2624
+ let { node: r } = e;
2625
+ return r.type === "ImportExpression" ? `import${r.phase ? `.${r.phase}` : ""}` : t("callee");
2626
+ }
2627
+ function Rc(e) {
2628
+ let { node: t } = e;
2629
+ if (t.type !== "CallExpression" || t.optional || t.callee.type !== "Identifier") return false;
2630
+ let r = oe(t);
2631
+ return t.callee.name === "require" ? r.length === 1 && Q(r[0]) || r.length > 1 : t.callee.name === "define" && e.parent.type === "ExpressionStatement" ? r.length === 1 || r.length === 2 && r[0].type === "ArrayExpression" || r.length === 3 && Q(r[0]) && r[1].type === "ArrayExpression" : false;
2632
+ }
2633
+ function Tt(e, t, r, n, s, u) {
2634
+ let i = Jc(e, t, r, n, u), a = u ? r(u, { assignmentLayout: i }) : "";
2635
+ switch (i) {
2636
+ case "break-after-operator":
2637
+ return l([l(n), s, l(f([x, a]))]);
2638
+ case "never-break-after-operator":
2639
+ return l([l(n), s, " ", a]);
2640
+ case "fluid": {
2641
+ let o = Symbol("assignment");
2642
+ return l([l(n), s, l(f(x), { id: o }), ke, At(a, { groupId: o })]);
2643
+ }
2644
+ case "break-lhs":
2645
+ return l([n, s, " ", l(a)]);
2646
+ case "chain":
2647
+ return [l(n), s, x, a];
2648
+ case "chain-tail":
2649
+ return [l(n), s, f([x, a])];
2650
+ case "chain-tail-arrow-chain":
2651
+ return [l(n), s, a];
2652
+ case "only-left":
2653
+ return n;
2654
+ }
2655
+ }
2656
+ function wi(e, t, r) {
2657
+ let { node: n } = e;
2658
+ return Tt(e, t, r, r("left"), [" ", n.operator], "right");
2659
+ }
2660
+ function Oi(e, t, r) {
2661
+ return Tt(e, t, r, r("id"), " =", "init");
2662
+ }
2663
+ function Jc(e, t, r, n, s) {
2664
+ let { node: u } = e, i = u[s];
2665
+ if (!i) return "only-left";
2666
+ let a = !$r(i);
2667
+ if (e.match($r, _i, (y) => !a || y.type !== "ExpressionStatement" && y.type !== "VariableDeclaration")) return a ? i.type === "ArrowFunctionExpression" && i.body.type === "ArrowFunctionExpression" ? "chain-tail-arrow-chain" : "chain-tail" : "chain";
2668
+ if (!a && $r(i.right) || Oe(t.originalText, i)) return "break-after-operator";
2669
+ if (u.type === "ImportAttribute" || i.type === "CallExpression" && i.callee.name === "require" || t.parser === "json5" || t.parser === "jsonc" || t.parser === "json") return "never-break-after-operator";
2670
+ let m = Bu(n);
2671
+ if (Wc(u) || Xc(u) || Fs(u) && m) return "break-lhs";
2672
+ let D = Hc(u, n, t);
2673
+ return e.call(() => qc(e, t, r, D), s) ? "break-after-operator" : Gc(u) ? "break-lhs" : !m && (D || i.type === "TemplateLiteral" || i.type === "TaggedTemplateExpression" || i.type === "BooleanLiteral" || Ce(i) || i.type === "ClassExpression") ? "never-break-after-operator" : "fluid";
2674
+ }
2675
+ function qc(e, t, r, n) {
2676
+ let s = e.node;
2677
+ if (De(s) && !Ut(s)) return true;
2678
+ switch (s.type) {
2679
+ case "StringLiteralTypeAnnotation":
2680
+ case "SequenceExpression":
2681
+ return true;
2682
+ case "TSConditionalType":
2683
+ case "ConditionalTypeAnnotation":
2684
+ if (!t.experimentalTernaries && !Kc(s)) break;
2685
+ return true;
2686
+ case "ConditionalExpression": {
2687
+ if (!t.experimentalTernaries) {
2688
+ let { test: c } = s;
2689
+ return De(c) && !Ut(c);
2690
+ }
2691
+ let { consequent: a, alternate: o } = s;
2692
+ return a.type === "ConditionalExpression" || o.type === "ConditionalExpression";
2693
+ }
2694
+ case "ClassExpression":
2695
+ return w(s.decorators);
2696
+ }
2697
+ if (n) return false;
2698
+ let u = s, i = [];
2699
+ for (; ; ) if (u.type === "UnaryExpression" || u.type === "AwaitExpression" || u.type === "YieldExpression" && u.argument !== null) u = u.argument, i.push("argument");
2700
+ else if (u.type === "TSNonNullExpression") u = u.expression, i.push("expression");
2701
+ else break;
2702
+ return !!(Q(u) || e.call(() => ji(e, t, r), ...i));
2703
+ }
2704
+ function Wc(e) {
2705
+ if (_i(e)) {
2706
+ let t = e.left || e.id;
2707
+ return t.type === "ObjectPattern" && t.properties.length > 2 && t.properties.some((r) => {
2708
+ var n;
2709
+ return Ae(r) && (!r.shorthand || ((n = r.value) == null ? void 0 : n.type) === "AssignmentPattern");
2710
+ });
2711
+ }
2712
+ return false;
2713
+ }
2714
+ function $r(e) {
2715
+ return e.type === "AssignmentExpression";
2716
+ }
2717
+ function _i(e) {
2718
+ return $r(e) || e.type === "VariableDeclarator";
2719
+ }
2720
+ function Gc(e) {
2721
+ let t = Nc(e);
2722
+ if (w(t)) {
2723
+ let r = e.type === "TSTypeAliasDeclaration" ? "constraint" : "bound";
2724
+ if (t.length > 1 && t.some((n) => n[r] || n.default)) return true;
2725
+ }
2726
+ return false;
2727
+ }
2728
+ var Uc = v(["TSTypeAliasDeclaration", "TypeAlias"]);
2729
+ function Nc(e) {
2730
+ var t;
2731
+ if (Uc(e)) return (t = e.typeParameters) == null ? void 0 : t.params;
2732
+ }
2733
+ function Xc(e) {
2734
+ if (e.type !== "VariableDeclarator") return false;
2735
+ let { typeAnnotation: t } = e.id;
2736
+ if (!t || !t.typeAnnotation) return false;
2737
+ let r = Li(t.typeAnnotation);
2738
+ return w(r) && r.length > 1 && r.some((n) => w(Li(n)) || n.type === "TSConditionalType");
2739
+ }
2740
+ function Fs(e) {
2741
+ var t;
2742
+ return e.type === "VariableDeclarator" && ((t = e.init) == null ? void 0 : t.type) === "ArrowFunctionExpression";
2743
+ }
2744
+ var Yc = v(["TSTypeReference", "GenericTypeAnnotation"]);
2745
+ function Li(e) {
2746
+ var t;
2747
+ if (Yc(e)) return (t = e.typeArguments ?? e.typeParameters) == null ? void 0 : t.params;
2748
+ }
2749
+ function ji(e, t, r, n = false) {
2750
+ var i;
2751
+ let { node: s } = e, u = () => ji(e, t, r, true);
2752
+ if (s.type === "ChainExpression" || s.type === "TSNonNullExpression") return e.call(u, "expression");
2753
+ if (L(s)) {
2754
+ if ((i = Vr(e, t, r).label) != null && i.memberChain) return false;
2755
+ let o = oe(s);
2756
+ return !(o.length === 0 || o.length === 1 && rr(o[0], t)) || Vc(s, r) ? false : e.call(u, "callee");
2757
+ }
2758
+ return q(s) ? e.call(u, "object") : n && (s.type === "Identifier" || s.type === "ThisExpression");
2759
+ }
2760
+ function Hc(e, t, r) {
2761
+ return Ae(e) ? (t = Wt(t), typeof t == "string" && et(t) < r.tabWidth + 3) : false;
2762
+ }
2763
+ function Vc(e, t) {
2764
+ let r = $c(e);
2765
+ if (w(r)) {
2766
+ if (r.length > 1) return true;
2767
+ if (r.length === 1) {
2768
+ let s = r[0];
2769
+ if (Ne(s) || _r(s) || s.type === "TSTypeLiteral" || s.type === "ObjectTypeAnnotation") return true;
2770
+ }
2771
+ let n = e.typeParameters ? "typeParameters" : "typeArguments";
2772
+ if (ne(t(n))) return true;
2773
+ }
2774
+ return false;
2775
+ }
2776
+ function $c(e) {
2777
+ var t;
2778
+ return (t = e.typeParameters ?? e.typeArguments) == null ? void 0 : t.params;
2779
+ }
2780
+ function Kc(e) {
2781
+ function t(r) {
2782
+ switch (r.type) {
2783
+ case "FunctionTypeAnnotation":
2784
+ case "GenericTypeAnnotation":
2785
+ case "TSFunctionType":
2786
+ return !!r.typeParameters;
2787
+ case "TSTypeReference":
2788
+ return !!(r.typeArguments ?? r.typeParameters);
2789
+ default:
2790
+ return false;
2791
+ }
2792
+ }
2793
+ return t(e.checkType) || t(e.extendsType);
2794
+ }
2795
+ function Je(e, t, r, n, s) {
2796
+ let u = e.node, i = K(u), a = s ? Qe(e, r, t) : "";
2797
+ if (i.length === 0) return [a, "(", M(e, r, { filter: (p) => ge(r.originalText, k(p)) === ")" }), ")"];
2798
+ let { parent: o } = e, c = St(o), m = Cs(u), D = [];
2799
+ if (fu(e, (p, A) => {
2800
+ let T = A === i.length - 1;
2801
+ T && u.rest && D.push("..."), D.push(t()), !T && (D.push(","), c || m ? D.push(" ") : pe(i[A], r) ? D.push(F, F) : D.push(x));
2802
+ }), n && !Qc(e)) {
2803
+ if (ne(a) || ne(D)) throw new Dt();
2804
+ return l([ur(a), "(", ur(D), ")"]);
2805
+ }
2806
+ let y = i.every((p) => !w(p.decorators));
2807
+ return m && y ? [a, "(", ...D, ")"] : c ? [a, "(", ...D, ")"] : (Ir(o) || ou(o) || o.type === "TypeAlias" || o.type === "UnionTypeAnnotation" || o.type === "IntersectionTypeAnnotation" || o.type === "FunctionTypeAnnotation" && o.returnType === u) && i.length === 1 && i[0].name === null && u.this !== i[0] && i[0].typeAnnotation && u.typeParameters === null && Mt(i[0].typeAnnotation) && !u.rest ? r.arrowParens === "always" || u.type === "HookTypeAnnotation" ? ["(", ...D, ")"] : D : [a, "(", f([E, ...D]), b(!Du(u) && ae(r, "all") ? "," : ""), E, ")"];
2808
+ }
2809
+ function Cs(e) {
2810
+ if (!e) return false;
2811
+ let t = K(e);
2812
+ if (t.length !== 1) return false;
2813
+ let [r] = t;
2814
+ return !d(r) && (r.type === "ObjectPattern" || r.type === "ArrayPattern" || r.type === "Identifier" && r.typeAnnotation && (r.typeAnnotation.type === "TypeAnnotation" || r.typeAnnotation.type === "TSTypeAnnotation") && we(r.typeAnnotation.typeAnnotation) || r.type === "FunctionTypeParam" && we(r.typeAnnotation) && r !== e.rest || r.type === "AssignmentPattern" && (r.left.type === "ObjectPattern" || r.left.type === "ArrayPattern") && (r.right.type === "Identifier" || se(r.right) && r.right.properties.length === 0 || U(r.right) && r.right.elements.length === 0));
2815
+ }
2816
+ function zc(e) {
2817
+ let t;
2818
+ return e.returnType ? (t = e.returnType, t.typeAnnotation && (t = t.typeAnnotation)) : e.typeAnnotation && (t = e.typeAnnotation), t;
2819
+ }
2820
+ function ot(e, t) {
2821
+ var s;
2822
+ let r = zc(e);
2823
+ if (!r) return false;
2824
+ let n = (s = e.typeParameters) == null ? void 0 : s.params;
2825
+ if (n) {
2826
+ if (n.length > 1) return false;
2827
+ if (n.length === 1) {
2828
+ let u = n[0];
2829
+ if (u.constraint || u.default) return false;
2830
+ }
2831
+ }
2832
+ return K(e).length === 1 && (we(r) || ne(t));
2833
+ }
2834
+ function Qc(e) {
2835
+ return e.match((t) => t.type === "ArrowFunctionExpression" && t.body.type === "BlockStatement", (t, r) => {
2836
+ if (t.type === "CallExpression" && r === "arguments" && t.arguments.length === 1 && t.callee.type === "CallExpression") {
2837
+ let n = t.callee.callee;
2838
+ return n.type === "Identifier" || n.type === "MemberExpression" && !n.computed && n.object.type === "Identifier" && n.property.type === "Identifier";
2839
+ }
2840
+ return false;
2841
+ }, (t, r) => t.type === "VariableDeclarator" && r === "init" || t.type === "ExportDefaultDeclaration" && r === "declaration" || t.type === "TSExportAssignment" && r === "expression" || t.type === "AssignmentExpression" && r === "right" && t.left.type === "MemberExpression" && t.left.object.type === "Identifier" && t.left.object.name === "module" && t.left.property.type === "Identifier" && t.left.property.name === "exports", (t) => t.type !== "VariableDeclaration" || t.kind === "const" && t.declarations.length === 1);
2842
+ }
2843
+ function vi(e) {
2844
+ let t = K(e);
2845
+ return t.length > 1 && t.some((r) => r.type === "TSParameterProperty");
2846
+ }
2847
+ var Zc = v(["VoidTypeAnnotation", "TSVoidKeyword", "NullLiteralTypeAnnotation", "TSNullKeyword"]);
2848
+ var el = v(["ObjectTypeAnnotation", "TSTypeLiteral", "GenericTypeAnnotation", "TSTypeReference"]);
2849
+ function tl(e) {
2850
+ let { types: t } = e;
2851
+ if (t.some((n) => d(n))) return false;
2852
+ let r = t.find((n) => el(n));
2853
+ return r ? t.every((n) => n === r || Zc(n)) : false;
2854
+ }
2855
+ function As(e) {
2856
+ return Mt(e) || we(e) ? true : Ne(e) ? tl(e) : false;
2857
+ }
2858
+ function Mi(e, t, r) {
2859
+ let n = t.semi ? ";" : "", { node: s } = e, u = [$(e), "opaque type ", r("id"), r("typeParameters")];
2860
+ return s.supertype && u.push(": ", r("supertype")), s.impltype && u.push(" = ", r("impltype")), u.push(n), u;
2861
+ }
2862
+ function Kr(e, t, r) {
2863
+ let n = t.semi ? ";" : "", { node: s } = e, u = [$(e)];
2864
+ u.push("type ", r("id"), r("typeParameters"));
2865
+ let i = s.type === "TSTypeAliasDeclaration" ? "typeAnnotation" : "right";
2866
+ return [Tt(e, t, r, u, " =", i), n];
2867
+ }
2868
+ function zr(e, t, r) {
2869
+ let n = false;
2870
+ return l(e.map(({ isFirst: s, previous: u, node: i, index: a }) => {
2871
+ let o = r();
2872
+ if (s) return o;
2873
+ let c = we(i), m = we(u);
2874
+ return m && c ? [" & ", n ? f(o) : o] : !m && !c ? f([" &", x, o]) : (a > 1 && (n = true), [" & ", a > 1 ? f(o) : o]);
2875
+ }, "types"));
2876
+ }
2877
+ function Qr(e, t, r) {
2878
+ let { node: n } = e, { parent: s } = e, u = s.type !== "TypeParameterInstantiation" && (s.type !== "TSConditionalType" || !t.experimentalTernaries) && (s.type !== "ConditionalTypeAnnotation" || !t.experimentalTernaries) && s.type !== "TSTypeParameterInstantiation" && s.type !== "GenericTypeAnnotation" && s.type !== "TSTypeReference" && s.type !== "TSTypeAssertion" && s.type !== "TupleTypeAnnotation" && s.type !== "TSTupleType" && !(s.type === "FunctionTypeParam" && !s.name && e.grandparent.this !== s) && !((s.type === "TypeAlias" || s.type === "VariableDeclarator" || s.type === "TSTypeAliasDeclaration") && Oe(t.originalText, n)), i = As(n), a = e.map((m) => {
2879
+ let D = r();
2880
+ return i || (D = he(2, D)), ye(m, D, t);
2881
+ }, "types");
2882
+ if (i) return P(" | ", a);
2883
+ let o = u && !Oe(t.originalText, n), c = [b([o ? x : "", "| "]), P([x, "| "], a)];
2884
+ return Be(e, t) ? l([f(c), E]) : (s.type === "TupleTypeAnnotation" || s.type === "TSTupleType") && s[s.type === "TupleTypeAnnotation" && s.types ? "types" : "elementTypes"].length > 1 ? l([f([b(["(", E]), c]), E, b(")")]) : l(u ? f(c) : c);
2885
+ }
2886
+ function rl(e) {
2887
+ var n;
2888
+ let { node: t, parent: r } = e;
2889
+ return t.type === "FunctionTypeAnnotation" && (Ir(r) || !((r.type === "ObjectTypeProperty" || r.type === "ObjectTypeInternalSlot") && !r.variance && !r.optional && ht(r, t) || r.type === "ObjectTypeCallProperty" || ((n = e.getParentNode(2)) == null ? void 0 : n.type) === "DeclareFunction"));
2890
+ }
2891
+ function Zr(e, t, r) {
2892
+ let { node: n } = e, s = [Nt(e)];
2893
+ (n.type === "TSConstructorType" || n.type === "TSConstructSignatureDeclaration") && s.push("new ");
2894
+ let u = Je(e, r, t, false, true), i = [];
2895
+ return n.type === "FunctionTypeAnnotation" ? i.push(rl(e) ? " => " : ": ", r("returnType")) : i.push(Y(e, r, n.returnType ? "returnType" : "typeAnnotation")), ot(n, i) && (u = l(u)), s.push(u, i), l(s);
2896
+ }
2897
+ function en(e, t, r) {
2898
+ return [r("objectType"), V(e), "[", r("indexType"), "]"];
2899
+ }
2900
+ function tn(e, t, r) {
2901
+ return ["infer ", r("typeParameter")];
2902
+ }
2903
+ function Ts(e, t, r) {
2904
+ let { node: n } = e;
2905
+ return [n.postfix ? "" : r, Y(e, t), n.postfix ? r : ""];
2906
+ }
2907
+ function rn(e, t, r) {
2908
+ let { node: n } = e;
2909
+ return ["...", ...n.type === "TupleTypeSpreadElement" && n.label ? [r("label"), ": "] : [], r("typeAnnotation")];
2910
+ }
2911
+ function nn(e, t, r) {
2912
+ let { node: n } = e;
2913
+ return [n.variance ? r("variance") : "", r("label"), n.optional ? "?" : "", ": ", r("elementType")];
2914
+ }
2915
+ var nl = /* @__PURE__ */ new WeakSet();
2916
+ function Y(e, t, r = "typeAnnotation") {
2917
+ let { node: { [r]: n } } = e;
2918
+ if (!n) return "";
2919
+ let s = false;
2920
+ if (n.type === "TSTypeAnnotation" || n.type === "TypeAnnotation") {
2921
+ let u = e.call(Ri, r);
2922
+ (u === "=>" || u === ":" && d(n, g.Leading)) && (s = true), nl.add(n);
2923
+ }
2924
+ return s ? [" ", t(r)] : t(r);
2925
+ }
2926
+ var Ri = (e) => e.match((t) => t.type === "TSTypeAnnotation", (t, r) => (r === "returnType" || r === "typeAnnotation") && (t.type === "TSFunctionType" || t.type === "TSConstructorType")) ? "=>" : e.match((t) => t.type === "TSTypeAnnotation", (t, r) => r === "typeAnnotation" && (t.type === "TSJSDocNullableType" || t.type === "TSJSDocNonNullableType" || t.type === "TSTypePredicate")) || e.match((t) => t.type === "TypeAnnotation", (t, r) => r === "typeAnnotation" && t.type === "Identifier", (t, r) => r === "id" && t.type === "DeclareFunction") || e.match((t) => t.type === "TypeAnnotation", (t, r) => r === "typeAnnotation" && t.type === "Identifier", (t, r) => r === "id" && t.type === "DeclareHook") || e.match((t) => t.type === "TypeAnnotation", (t, r) => r === "bound" && t.type === "TypeParameter" && t.usesExtendsBound) ? "" : ":";
2927
+ function sn(e, t, r) {
2928
+ let n = Ri(e);
2929
+ return n ? [n, " ", r("typeAnnotation")] : r("typeAnnotation");
2930
+ }
2931
+ function un(e) {
2932
+ return [e("elementType"), "[]"];
2933
+ }
2934
+ function an({ node: e }, t) {
2935
+ let r = e.type === "TSTypeQuery" ? "exprName" : "argument", n = e.type === "TypeofTypeAnnotation" || e.typeArguments ? "typeArguments" : "typeParameters";
2936
+ return ["typeof ", t(r), t(n)];
2937
+ }
2938
+ function on(e, t) {
2939
+ let { node: r } = e;
2940
+ return [r.type === "TSTypePredicate" && r.asserts ? "asserts " : r.type === "TypePredicate" && r.kind ? `${r.kind} ` : "", t("parameterName"), r.typeAnnotation ? [" is ", Y(e, t)] : ""];
2941
+ }
2942
+ function V(e) {
2943
+ let { node: t } = e;
2944
+ return !t.optional || t.type === "Identifier" && t === e.parent.key ? "" : L(t) || q(t) && t.computed || t.type === "OptionalIndexedAccessType" ? "?." : "?";
2945
+ }
2946
+ function pn(e) {
2947
+ return e.node.definite || e.match(void 0, (t, r) => r === "id" && t.type === "VariableDeclarator" && t.definite) ? "!" : "";
2948
+ }
2949
+ var sl = /* @__PURE__ */ new Set(["DeclareClass", "DeclareComponent", "DeclareFunction", "DeclareHook", "DeclareVariable", "DeclareExportDeclaration", "DeclareExportAllDeclaration", "DeclareOpaqueType", "DeclareTypeAlias", "DeclareEnum", "DeclareInterface"]);
2950
+ function $(e) {
2951
+ let { node: t } = e;
2952
+ return t.declare || sl.has(t.type) && e.parent.type !== "DeclareExportDeclaration" ? "declare " : "";
2953
+ }
2954
+ var ul = /* @__PURE__ */ new Set(["TSAbstractMethodDefinition", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]);
2955
+ function Nt({ node: e }) {
2956
+ return e.abstract || ul.has(e.type) ? "abstract " : "";
2957
+ }
2958
+ function Qe(e, t, r) {
2959
+ let n = e.node;
2960
+ return n.typeArguments ? r("typeArguments") : n.typeParameters ? r("typeParameters") : "";
2961
+ }
2962
+ function Hr(e, t, r) {
2963
+ return ["::", r("callee")];
2964
+ }
2965
+ function ft(e, t, r) {
2966
+ return e.type === "EmptyStatement" ? ";" : e.type === "BlockStatement" || r ? [" ", t] : f([x, t]);
2967
+ }
2968
+ function cn(e, t) {
2969
+ return ["...", t("argument"), Y(e, t)];
2970
+ }
2971
+ function Xt(e) {
2972
+ return e.accessibility ? e.accessibility + " " : "";
2973
+ }
2974
+ function il(e, t, r, n) {
2975
+ let { node: s } = e, u = s.inexact ? "..." : "";
2976
+ return d(s, g.Dangling) ? l([r, u, M(e, t, { indent: true }), E, n]) : [r, u, n];
2977
+ }
2978
+ function Yt(e, t, r) {
2979
+ let { node: n } = e, s = [], u = n.type === "TupleExpression" ? "#[" : "[", i = "]", a = n.type === "TupleTypeAnnotation" && n.types ? "types" : n.type === "TSTupleType" || n.type === "TupleTypeAnnotation" ? "elementTypes" : "elements", o = n[a];
2980
+ if (o.length === 0) s.push(il(e, t, u, i));
2981
+ else {
2982
+ let c = O(false, o, -1), m = (c == null ? void 0 : c.type) !== "RestElement" && !n.inexact, D = c === null, y = Symbol("array"), C = !t.__inJestEach && o.length > 1 && o.every((T, S, B) => {
2983
+ let _ = T == null ? void 0 : T.type;
2984
+ if (!U(T) && !se(T)) return false;
2985
+ let J = B[S + 1];
2986
+ if (J && _ !== J.type) return false;
2987
+ let j = U(T) ? "elements" : "properties";
2988
+ return T[j] && T[j].length > 1;
2989
+ }), p = fs(n, t), A = m ? D ? "," : ae(t) ? p ? b(",", "", { groupId: y }) : b(",") : "" : "";
2990
+ s.push(l([u, f([E, p ? ol(e, t, r, A) : [al(e, t, a, n.inexact, r), A], M(e, t)]), E, i], { shouldBreak: C, id: y }));
2991
+ }
2992
+ return s.push(V(e), Y(e, r)), s;
2993
+ }
2994
+ function fs(e, t) {
2995
+ return U(e) && e.elements.length > 1 && e.elements.every((r) => r && (Ce(r) || jn(r) && !d(r.argument)) && !d(r, g.Trailing | g.Line, (n) => !te(t.originalText, R(n), { backwards: true })));
2996
+ }
2997
+ function Ji({ node: e }, { originalText: t }) {
2998
+ let r = (s) => Lt(t, wt(t, s)), n = (s) => t[s] === "," ? s : n(r(s + 1));
2999
+ return Ot(t, n(k(e)));
3000
+ }
3001
+ function al(e, t, r, n, s) {
3002
+ let u = [];
3003
+ return e.each(({ node: i, isLast: a }) => {
3004
+ u.push(i ? l(s()) : ""), (!a || n) && u.push([",", x, i && Ji(e, t) ? E : ""]);
3005
+ }, r), n && u.push("..."), u;
3006
+ }
3007
+ function ol(e, t, r, n) {
3008
+ let s = [];
3009
+ return e.each(({ isLast: u, next: i }) => {
3010
+ s.push([r(), u ? n : ","]), u || s.push(Ji(e, t) ? [F, F] : d(i, g.Leading | g.Line) ? F : x);
3011
+ }, "elements"), qt(s);
3012
+ }
3013
+ var qi = new Proxy(() => {
3014
+ }, { get: () => qi });
3015
+ var ln = qi;
3016
+ var pl = /^[\$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]*$/;
3017
+ var cl = (e) => pl.test(e);
3018
+ var Wi = cl;
3019
+ function ll(e) {
3020
+ return e.length === 1 ? e : e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u, "$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u, "$1").replace(/^([+-])?\./u, "$10.").replace(/(\.\d+?)0+(?=e|$)/u, "$1").replace(/\.(?=e|$)/u, "");
3021
+ }
3022
+ var Ze = ll;
3023
+ var mn = /* @__PURE__ */ new WeakMap();
3024
+ function Ui(e) {
3025
+ return /^(?:\d+|\d+\.\d+)$/u.test(e);
3026
+ }
3027
+ function Gi(e, t) {
3028
+ return t.parser === "json" || t.parser === "jsonc" || !Q(e.key) || tt(fe(e.key), t).slice(1, -1) !== e.key.value ? false : !!(Wi(e.key.value) && !(t.parser === "babel-ts" && e.type === "ClassProperty" || t.parser === "typescript" && e.type === "PropertyDefinition") || Ui(e.key.value) && String(Number(e.key.value)) === e.key.value && e.type !== "ImportAttribute" && (t.parser === "babel" || t.parser === "acorn" || t.parser === "espree" || t.parser === "meriyah" || t.parser === "__babel_estree"));
3029
+ }
3030
+ function ml(e, t) {
3031
+ let { key: r } = e.node;
3032
+ return (r.type === "Identifier" || Ce(r) && Ui(Ze(fe(r))) && String(r.value) === Ze(fe(r)) && !(t.parser === "typescript" || t.parser === "babel-ts")) && (t.parser === "json" || t.parser === "jsonc" || t.quoteProps === "consistent" && mn.get(e.parent));
3033
+ }
3034
+ function Et(e, t, r) {
3035
+ let { node: n } = e;
3036
+ if (n.computed) return ["[", r("key"), "]"];
3037
+ let { parent: s } = e, { key: u } = n;
3038
+ if (t.quoteProps === "consistent" && !mn.has(s)) {
3039
+ let i = e.siblings.some((a) => !a.computed && Q(a.key) && !Gi(a, t));
3040
+ mn.set(s, i);
3041
+ }
3042
+ if (ml(e, t)) {
3043
+ let i = tt(JSON.stringify(u.type === "Identifier" ? u.name : u.value.toString()), t);
3044
+ return e.call((a) => ye(a, i, t), "key");
3045
+ }
3046
+ return Gi(n, t) && (t.quoteProps === "as-needed" || t.quoteProps === "consistent" && !mn.get(s)) ? e.call((i) => ye(i, /^\d/u.test(u.value) ? Ze(u.value) : u.value, t), "key") : r("key");
3047
+ }
3048
+ function yn(e, t, r) {
3049
+ let { node: n } = e;
3050
+ return n.shorthand ? r("value") : Tt(e, t, r, Et(e, t, r), ":", "value");
3051
+ }
3052
+ var yl = ({ node: e, key: t, parent: r }) => t === "value" && e.type === "FunctionExpression" && (r.type === "ObjectMethod" || r.type === "ClassMethod" || r.type === "ClassPrivateMethod" || r.type === "MethodDefinition" || r.type === "TSAbstractMethodDefinition" || r.type === "TSDeclareMethod" || r.type === "Property" && gt(r));
3053
+ function Dn(e, t, r, n) {
3054
+ if (yl(e)) return fn(e, r, t);
3055
+ let { node: s } = e, u = false;
3056
+ if ((s.type === "FunctionDeclaration" || s.type === "FunctionExpression") && (n != null && n.expandLastArg)) {
3057
+ let { parent: m } = e;
3058
+ L(m) && (oe(m).length > 1 || K(s).every((D) => D.type === "Identifier" && !D.typeAnnotation)) && (u = true);
3059
+ }
3060
+ let i = [$(e), s.async ? "async " : "", `function${s.generator ? "*" : ""} `, s.id ? t("id") : ""], a = Je(e, t, r, u), o = Ht(e, t), c = ot(s, o);
3061
+ return i.push(Qe(e, r, t), l([c ? l(a) : a, o]), s.body ? " " : "", t("body")), r.semi && (s.declare || !s.body) && i.push(";"), i;
3062
+ }
3063
+ function mr(e, t, r) {
3064
+ let { node: n } = e, { kind: s } = n, u = n.value || n, i = [];
3065
+ return !s || s === "init" || s === "method" || s === "constructor" ? u.async && i.push("async ") : (ln.ok(s === "get" || s === "set"), i.push(s, " ")), u.generator && i.push("*"), i.push(Et(e, t, r), n.optional || n.key.optional ? "?" : "", n === u ? fn(e, t, r) : r("value")), i;
3066
+ }
3067
+ function fn(e, t, r) {
3068
+ let { node: n } = e, s = Je(e, r, t), u = Ht(e, r), i = vi(n), a = ot(n, u), o = [Qe(e, t, r), l([i ? l(s, { shouldBreak: true }) : a ? l(s) : s, u])];
3069
+ return n.body ? o.push(" ", r("body")) : o.push(t.semi ? ";" : ""), o;
3070
+ }
3071
+ function Dl(e) {
3072
+ let t = K(e);
3073
+ return t.length === 1 && !e.typeParameters && !d(e, g.Dangling) && t[0].type === "Identifier" && !t[0].typeAnnotation && !d(t[0]) && !t[0].optional && !e.predicate && !e.returnType;
3074
+ }
3075
+ function En(e, t) {
3076
+ if (t.arrowParens === "always") return false;
3077
+ if (t.arrowParens === "avoid") {
3078
+ let { node: r } = e;
3079
+ return Dl(r);
3080
+ }
3081
+ return false;
3082
+ }
3083
+ function Ht(e, t) {
3084
+ let { node: r } = e, s = [Y(e, t, "returnType")];
3085
+ return r.predicate && s.push(t("predicate")), s;
3086
+ }
3087
+ function Ni(e, t, r) {
3088
+ let { node: n } = e, s = t.semi ? ";" : "", u = [];
3089
+ if (n.argument) {
3090
+ let o = r("argument");
3091
+ fl(t, n.argument) ? o = ["(", f([F, o]), F, ")"] : (De(n.argument) || n.argument.type === "SequenceExpression" || t.experimentalTernaries && n.argument.type === "ConditionalExpression" && (n.argument.consequent.type === "ConditionalExpression" || n.argument.alternate.type === "ConditionalExpression")) && (o = l([b("("), f([E, o]), E, b(")")])), u.push(" ", o);
3092
+ }
3093
+ let i = d(n, g.Dangling), a = s && i && d(n, g.Last | g.Line);
3094
+ return a && u.push(s), i && u.push(" ", M(e, t)), a || u.push(s), u;
3095
+ }
3096
+ function Xi(e, t, r) {
3097
+ return ["return", Ni(e, t, r)];
3098
+ }
3099
+ function Yi(e, t, r) {
3100
+ return ["throw", Ni(e, t, r)];
3101
+ }
3102
+ function fl(e, t) {
3103
+ if (Oe(e.originalText, t) || d(t, g.Leading, (r) => de(e.originalText, R(r), k(r))) && !X(t)) return true;
3104
+ if (jt(t)) {
3105
+ let r = t, n;
3106
+ for (; n = uu(r); ) if (r = n, Oe(e.originalText, r)) return true;
3107
+ }
3108
+ return false;
3109
+ }
3110
+ var ds = /* @__PURE__ */ new WeakMap();
3111
+ function Hi(e) {
3112
+ return ds.has(e) || ds.set(e, e.type === "ConditionalExpression" && !ie(e, (t) => t.type === "ObjectExpression")), ds.get(e);
3113
+ }
3114
+ var Vi = (e) => e.type === "SequenceExpression";
3115
+ function $i(e, t, r, n = {}) {
3116
+ let s = [], u, i = [], a = false, o = !n.expandLastArg && e.node.body.type === "ArrowFunctionExpression", c;
3117
+ (function T() {
3118
+ let { node: S } = e, B = El(e, t, r, n);
3119
+ if (s.length === 0) s.push(B);
3120
+ else {
3121
+ let { leading: _, trailing: J } = os(e, t);
3122
+ s.push([_, B]), i.unshift(J);
3123
+ }
3124
+ o && (a || (a = S.returnType && K(S).length > 0 || S.typeParameters || K(S).some((_) => _.type !== "Identifier"))), !o || S.body.type !== "ArrowFunctionExpression" ? (u = r("body", n), c = S.body) : e.call(T, "body");
3125
+ })();
3126
+ let m = !Oe(t.originalText, c) && (Vi(c) || Fl(c, u, t) || !a && Hi(c)), D = e.key === "callee" && lt(e.parent), y = Symbol("arrow-chain"), C = Cl(e, n, { signatureDocs: s, shouldBreak: a }), p, A = false;
3127
+ return o && (D || n.assignmentLayout) && (A = true, p = n.assignmentLayout === "chain-tail-arrow-chain" || D && !m), u = Al(e, t, n, { bodyDoc: u, bodyComments: i, functionBody: c, shouldPutBodyOnSameLine: m }), l([l(A ? f([E, C]) : C, { shouldBreak: p, id: y }), " =>", o ? At(u, { groupId: y }) : l(u), o && D ? b(E, "", { groupId: y }) : ""]);
3128
+ }
3129
+ function El(e, t, r, n) {
3130
+ let { node: s } = e, u = [];
3131
+ if (s.async && u.push("async "), En(e, t)) u.push(r(["params", 0]));
3132
+ else {
3133
+ let a = n.expandLastArg || n.expandFirstArg, o = Ht(e, r);
3134
+ if (a) {
3135
+ if (ne(o)) throw new Dt();
3136
+ o = l(ur(o));
3137
+ }
3138
+ u.push(l([Je(e, r, t, a, true), o]));
3139
+ }
3140
+ let i = M(e, t, { filter(a) {
3141
+ let o = yt(t.originalText, k(a));
3142
+ return o !== false && t.originalText.slice(o, o + 2) === "=>";
3143
+ } });
3144
+ return i && u.push(" ", i), u;
3145
+ }
3146
+ function Fl(e, t, r) {
3147
+ var n, s;
3148
+ return U(e) || se(e) || e.type === "ArrowFunctionExpression" || e.type === "DoExpression" || e.type === "BlockStatement" || X(e) || ((n = t.label) == null ? void 0 : n.hug) !== false && (((s = t.label) == null ? void 0 : s.embed) || Lr(e, r.originalText));
3149
+ }
3150
+ function Cl(e, t, { signatureDocs: r, shouldBreak: n }) {
3151
+ if (r.length === 1) return r[0];
3152
+ let { parent: s, key: u } = e;
3153
+ return u !== "callee" && lt(s) || De(s) ? l([r[0], " =>", f([x, P([" =>", x], r.slice(1))])], { shouldBreak: n }) : u === "callee" && lt(s) || t.assignmentLayout ? l(P([" =>", x], r), { shouldBreak: n }) : l(f(P([" =>", x], r)), { shouldBreak: n });
3154
+ }
3155
+ function Al(e, t, r, { bodyDoc: n, bodyComments: s, functionBody: u, shouldPutBodyOnSameLine: i }) {
3156
+ let { node: a, parent: o } = e, c = r.expandLastArg && ae(t, "all") ? b(",") : "", m = (r.expandLastArg || o.type === "JSXExpressionContainer") && !d(a) ? E : "";
3157
+ return i && Hi(u) ? [" ", l([b("", "("), f([E, n]), b("", ")"), c, m]), s] : (Vi(u) && (n = l(["(", f([E, n]), E, ")"])), i ? [" ", n, s] : [f([x, n, s]), c, m]);
3158
+ }
3159
+ var Tl = (e, t, r) => {
3160
+ if (!(e && t == null)) {
3161
+ if (t.findLast) return t.findLast(r);
3162
+ for (let n = t.length - 1; n >= 0; n--) {
3163
+ let s = t[n];
3164
+ if (r(s, n, t)) return s;
3165
+ }
3166
+ }
3167
+ };
3168
+ var Ki = Tl;
3169
+ function yr(e, t, r, n) {
3170
+ let { node: s } = e, u = [], i = Ki(false, s[n], (a) => a.type !== "EmptyStatement");
3171
+ return e.each(({ node: a }) => {
3172
+ a.type !== "EmptyStatement" && (u.push(r()), a !== i && (u.push(F), pe(a, t) && u.push(F)));
3173
+ }, n), u;
3174
+ }
3175
+ function Fn(e, t, r) {
3176
+ let n = dl(e, t, r), { node: s, parent: u } = e;
3177
+ if (s.type === "Program" && (u == null ? void 0 : u.type) !== "ModuleExpression") return n ? [n, F] : "";
3178
+ let i = [];
3179
+ if (s.type === "StaticBlock" && i.push("static "), i.push("{"), n) i.push(f([F, n]), F);
3180
+ else {
3181
+ let a = e.grandparent;
3182
+ u.type === "ArrowFunctionExpression" || u.type === "FunctionExpression" || u.type === "FunctionDeclaration" || u.type === "ComponentDeclaration" || u.type === "HookDeclaration" || u.type === "ObjectMethod" || u.type === "ClassMethod" || u.type === "ClassPrivateMethod" || u.type === "ForStatement" || u.type === "WhileStatement" || u.type === "DoWhileStatement" || u.type === "DoExpression" || u.type === "ModuleExpression" || u.type === "CatchClause" && !a.finalizer || u.type === "TSModuleDeclaration" || s.type === "StaticBlock" || i.push(F);
3183
+ }
3184
+ return i.push("}"), i;
3185
+ }
3186
+ function dl(e, t, r) {
3187
+ let { node: n } = e, s = w(n.directives), u = n.body.some((o) => o.type !== "EmptyStatement"), i = d(n, g.Dangling);
3188
+ if (!s && !u && !i) return "";
3189
+ let a = [];
3190
+ return s && (a.push(yr(e, t, r, "directives")), (u || i) && (a.push(F), pe(O(false, n.directives, -1), t) && a.push(F))), u && a.push(yr(e, t, r, "body")), i && a.push(M(e, t)), a;
3191
+ }
3192
+ function xl(e) {
3193
+ let t = /* @__PURE__ */ new WeakMap();
3194
+ return function(r) {
3195
+ return t.has(r) || t.set(r, Symbol(e)), t.get(r);
3196
+ };
3197
+ }
3198
+ var Cn = xl;
3199
+ function hl(e) {
3200
+ switch (e) {
3201
+ case null:
3202
+ return "";
3203
+ case "PlusOptional":
3204
+ return "+?";
3205
+ case "MinusOptional":
3206
+ return "-?";
3207
+ case "Optional":
3208
+ return "?";
3209
+ }
3210
+ }
3211
+ function zi(e, t, r) {
3212
+ let { node: n } = e;
3213
+ return l([n.variance ? r("variance") : "", "[", f([r("keyTparam"), " in ", r("sourceType")]), "]", hl(n.optional), ": ", r("propType")]);
3214
+ }
3215
+ function xs(e, t) {
3216
+ return e === "+" || e === "-" ? e + t : t;
3217
+ }
3218
+ function Qi(e, t, r) {
3219
+ let { node: n } = e, s = de(t.originalText, R(n), R(n.typeParameter));
3220
+ return l(["{", f([t.bracketSpacing ? x : E, l([r("typeParameter"), n.optional ? xs(n.optional, "?") : "", n.typeAnnotation ? ": " : "", r("typeAnnotation")]), t.semi ? b(";") : ""]), M(e, t), t.bracketSpacing ? x : E, "}"], { shouldBreak: s });
3221
+ }
3222
+ var Dr = Cn("typeParameters");
3223
+ function gl(e, t, r) {
3224
+ let { node: n } = e;
3225
+ return K(n).length === 1 && n.type.startsWith("TS") && !n[r][0].constraint && e.parent.type === "ArrowFunctionExpression" && !(t.filepath && /\.ts$/u.test(t.filepath));
3226
+ }
3227
+ function Pt(e, t, r, n) {
3228
+ let { node: s } = e;
3229
+ if (!s[n]) return "";
3230
+ if (!Array.isArray(s[n])) return r(n);
3231
+ let u = St(e.grandparent), i = e.match((c) => !(c[n].length === 1 && we(c[n][0])), void 0, (c, m) => m === "typeAnnotation", (c) => c.type === "Identifier", Fs);
3232
+ if (s[n].length === 0 || !i && (u || s[n].length === 1 && (s[n][0].type === "NullableTypeAnnotation" || As(s[n][0])))) return ["<", P(", ", e.map(r, n)), Sl(e, t), ">"];
3233
+ let o = s.type === "TSTypeParameterInstantiation" ? "" : gl(e, t, n) ? "," : ae(t) ? b(",") : "";
3234
+ return l(["<", f([E, P([",", x], e.map(r, n))]), o, E, ">"], { id: Dr(s) });
3235
+ }
3236
+ function Sl(e, t) {
3237
+ let { node: r } = e;
3238
+ if (!d(r, g.Dangling)) return "";
3239
+ let n = !d(r, g.Line), s = M(e, t, { indent: !n });
3240
+ return n ? s : [s, F];
3241
+ }
3242
+ function An(e, t, r) {
3243
+ let { node: n, parent: s } = e, u = [n.type === "TSTypeParameter" && n.const ? "const " : ""], i = n.type === "TSTypeParameter" ? r("name") : n.name;
3244
+ if (s.type === "TSMappedType") return s.readonly && u.push(xs(s.readonly, "readonly"), " "), u.push("[", i), n.constraint && u.push(" in ", r("constraint")), s.nameType && u.push(" as ", e.callParent(() => r("nameType"))), u.push("]"), u;
3245
+ if (n.variance && u.push(r("variance")), n.in && u.push("in "), n.out && u.push("out "), u.push(i), n.bound && (n.usesExtendsBound && u.push(" extends "), u.push(Y(e, r, "bound"))), n.constraint) {
3246
+ let a = Symbol("constraint");
3247
+ u.push(" extends", l(f(x), { id: a }), ke, At(r("constraint"), { groupId: a }));
3248
+ }
3249
+ return n.default && u.push(" = ", r("default")), l(u);
3250
+ }
3251
+ var Zi = v(["ClassProperty", "PropertyDefinition", "ClassPrivateProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]);
3252
+ function Tn(e, t, r) {
3253
+ let { node: n } = e, s = [$(e), Nt(e), "class"], u = d(n.id, g.Trailing) || d(n.typeParameters, g.Trailing) || d(n.superClass) || w(n.extends) || w(n.mixins) || w(n.implements), i = [], a = [];
3254
+ if (n.id && i.push(" ", r("id")), i.push(r("typeParameters")), n.superClass) {
3255
+ let o = [bl(e, t, r), r(n.superTypeArguments ? "superTypeArguments" : "superTypeParameters")], c = e.call((m) => ["extends ", ye(m, o, t)], "superClass");
3256
+ u ? a.push(x, l(c)) : a.push(" ", c);
3257
+ } else a.push(hs(e, t, r, "extends"));
3258
+ if (a.push(hs(e, t, r, "mixins"), hs(e, t, r, "implements")), u) {
3259
+ let o;
3260
+ ta(n) ? o = [...i, f(a)] : o = f([...i, a]), s.push(l(o, { id: ea(n) }));
3261
+ } else s.push(...i, ...a);
3262
+ return s.push(" ", r("body")), s;
3263
+ }
3264
+ var ea = Cn("heritageGroup");
3265
+ function gs(e) {
3266
+ return b(F, "", { groupId: ea(e) });
3267
+ }
3268
+ function Bl(e) {
3269
+ return ["extends", "mixins", "implements"].reduce((t, r) => t + (Array.isArray(e[r]) ? e[r].length : 0), e.superClass ? 1 : 0) > 1;
3270
+ }
3271
+ function ta(e) {
3272
+ return e.typeParameters && !d(e.typeParameters, g.Trailing | g.Line) && !Bl(e);
3273
+ }
3274
+ function hs(e, t, r, n) {
3275
+ let { node: s } = e;
3276
+ if (!w(s[n])) return "";
3277
+ let u = M(e, t, { marker: n });
3278
+ return [ta(s) ? b(" ", x, { groupId: Dr(s.typeParameters) }) : x, u, u && F, n, l(f([x, P([",", x], e.map(r, n))]))];
3279
+ }
3280
+ function bl(e, t, r) {
3281
+ let n = r("superClass"), { parent: s } = e;
3282
+ return s.type === "AssignmentExpression" ? l(b(["(", f([E, n]), E, ")"], n)) : n;
3283
+ }
3284
+ function dn(e, t, r) {
3285
+ let { node: n } = e, s = [];
3286
+ return w(n.decorators) && s.push(Ds(e, t, r)), s.push(Xt(n)), n.static && s.push("static "), s.push(Nt(e)), n.override && s.push("override "), s.push(mr(e, t, r)), s;
3287
+ }
3288
+ function xn(e, t, r) {
3289
+ let { node: n } = e, s = [], u = t.semi ? ";" : "";
3290
+ w(n.decorators) && s.push(Ds(e, t, r)), s.push(Xt(n), $(e)), n.static && s.push("static "), s.push(Nt(e)), n.override && s.push("override "), n.readonly && s.push("readonly "), n.variance && s.push(r("variance")), (n.type === "ClassAccessorProperty" || n.type === "AccessorProperty" || n.type === "TSAbstractAccessorProperty") && s.push("accessor "), s.push(Et(e, t, r), V(e), pn(e), Y(e, r));
3291
+ let i = n.type === "TSAbstractPropertyDefinition" || n.type === "TSAbstractAccessorProperty";
3292
+ return [Tt(e, t, r, s, " =", i ? void 0 : "value"), u];
3293
+ }
3294
+ function ra(e, t, r) {
3295
+ let { node: n } = e, s = [];
3296
+ return e.each(({ node: u, next: i, isLast: a }) => {
3297
+ s.push(r()), !t.semi && Zi(u) && Pl(u, i) && s.push(";"), a || (s.push(F), pe(u, t) && s.push(F));
3298
+ }, "body"), d(n, g.Dangling) && s.push(M(e, t)), [w(n.body) ? gs(e.parent) : "", "{", s.length > 0 ? [f([F, s]), F] : "", "}"];
3299
+ }
3300
+ function Pl(e, t) {
3301
+ var s;
3302
+ let { type: r, name: n } = e.key;
3303
+ if (!e.computed && r === "Identifier" && (n === "static" || n === "get" || n === "set") && !e.value && !e.typeAnnotation) return true;
3304
+ if (!t || t.static || t.accessibility || t.readonly) return false;
3305
+ if (!t.computed) {
3306
+ let u = (s = t.key) == null ? void 0 : s.name;
3307
+ if (u === "in" || u === "instanceof") return true;
3308
+ }
3309
+ if (Zi(t) && t.variance && !t.static && !t.declare) return true;
3310
+ switch (t.type) {
3311
+ case "ClassProperty":
3312
+ case "PropertyDefinition":
3313
+ case "TSAbstractPropertyDefinition":
3314
+ return t.computed;
3315
+ case "MethodDefinition":
3316
+ case "TSAbstractMethodDefinition":
3317
+ case "ClassMethod":
3318
+ case "ClassPrivateMethod": {
3319
+ if ((t.value ? t.value.async : t.async) || t.kind === "get" || t.kind === "set") return false;
3320
+ let i = t.value ? t.value.generator : t.generator;
3321
+ return !!(t.computed || i);
3322
+ }
3323
+ case "TSIndexSignature":
3324
+ return true;
3325
+ }
3326
+ return false;
3327
+ }
3328
+ function na(e, t) {
3329
+ if (t.semi || Ss(e, t) || bs(e, t)) return false;
3330
+ let { node: r, key: n, parent: s } = e;
3331
+ return !!(r.type === "ExpressionStatement" && (n === "body" && (s.type === "Program" || s.type === "BlockStatement" || s.type === "StaticBlock" || s.type === "TSModuleBlock") || n === "consequent" && s.type === "SwitchCase") && e.call(() => sa(e, t), "expression"));
3332
+ }
3333
+ function sa(e, t) {
3334
+ let { node: r } = e;
3335
+ switch (r.type) {
3336
+ case "ParenthesizedExpression":
3337
+ case "TypeCastExpression":
3338
+ case "ArrayExpression":
3339
+ case "ArrayPattern":
3340
+ case "TemplateLiteral":
3341
+ case "TemplateElement":
3342
+ case "RegExpLiteral":
3343
+ return true;
3344
+ case "ArrowFunctionExpression":
3345
+ if (!En(e, t)) return true;
3346
+ break;
3347
+ case "UnaryExpression": {
3348
+ let { prefix: n, operator: s } = r;
3349
+ if (n && (s === "+" || s === "-")) return true;
3350
+ break;
3351
+ }
3352
+ case "BindExpression":
3353
+ if (!r.object) return true;
3354
+ break;
3355
+ case "Literal":
3356
+ if (r.regex) return true;
3357
+ break;
3358
+ default:
3359
+ if (X(r)) return true;
3360
+ }
3361
+ return Be(e, t) ? true : jt(r) ? e.call(() => sa(e, t), ...Pr(r)) : false;
3362
+ }
3363
+ function Ss({ node: e, parent: t }, r) {
3364
+ return (r.parentParser === "markdown" || r.parentParser === "mdx") && e.type === "ExpressionStatement" && X(e.expression) && t.type === "Program" && t.body.length === 1;
3365
+ }
3366
+ function Bs(e) {
3367
+ switch (e.type) {
3368
+ case "MemberExpression":
3369
+ switch (e.property.type) {
3370
+ case "Identifier":
3371
+ case "NumericLiteral":
3372
+ case "StringLiteral":
3373
+ return Bs(e.object);
3374
+ }
3375
+ return false;
3376
+ case "Identifier":
3377
+ return true;
3378
+ default:
3379
+ return false;
3380
+ }
3381
+ }
3382
+ function bs({ node: e, parent: t }, r) {
3383
+ return (r.parser === "__vue_event_binding" || r.parser === "__vue_ts_event_binding") && e.type === "ExpressionStatement" && t.type === "Program" && t.body.length === 1;
3384
+ }
3385
+ function ua(e, t, r) {
3386
+ let n = [r("expression")];
3387
+ return bs(e, t) ? Bs(e.node.expression) && n.push(";") : Ss(e, t) || t.semi && n.push(";"), n;
3388
+ }
3389
+ function ia(e, t, r) {
3390
+ if (t.__isVueBindings || t.__isVueForBindingLeft) {
3391
+ let n = e.map(r, "program", "body", 0, "params");
3392
+ if (n.length === 1) return n[0];
3393
+ let s = P([",", x], n);
3394
+ return t.__isVueForBindingLeft ? ["(", f([E, l(s)]), E, ")"] : s;
3395
+ }
3396
+ if (t.__isEmbeddedTypescriptGenericParameters) {
3397
+ let n = e.map(r, "program", "body", 0, "typeParameters", "params");
3398
+ return P([",", x], n);
3399
+ }
3400
+ }
3401
+ function pa(e, t) {
3402
+ let { node: r } = e;
3403
+ switch (r.type) {
3404
+ case "RegExpLiteral":
3405
+ return aa(r);
3406
+ case "BigIntLiteral":
3407
+ return hn(r.extra.raw);
3408
+ case "NumericLiteral":
3409
+ return Ze(r.extra.raw);
3410
+ case "StringLiteral":
3411
+ return Ie(tt(r.extra.raw, t));
3412
+ case "NullLiteral":
3413
+ return "null";
3414
+ case "BooleanLiteral":
3415
+ return String(r.value);
3416
+ case "DecimalLiteral":
3417
+ return Ze(r.value) + "m";
3418
+ case "DirectiveLiteral":
3419
+ return oa(r.extra.raw, t);
3420
+ case "Literal": {
3421
+ if (r.regex) return aa(r.regex);
3422
+ if (r.bigint) return hn(r.raw);
3423
+ if (r.decimal) return Ze(r.decimal) + "m";
3424
+ let { value: n } = r;
3425
+ return typeof n == "number" ? Ze(r.raw) : typeof n == "string" ? kl(e) ? oa(r.raw, t) : Ie(tt(r.raw, t)) : String(n);
3426
+ }
3427
+ }
3428
+ }
3429
+ function kl(e) {
3430
+ if (e.key !== "expression") return;
3431
+ let { parent: t } = e;
3432
+ return t.type === "ExpressionStatement" && t.directive;
3433
+ }
3434
+ function hn(e) {
3435
+ return e.toLowerCase();
3436
+ }
3437
+ function aa({ pattern: e, flags: t }) {
3438
+ return t = [...t].sort().join(""), `/${e}/${t}`;
3439
+ }
3440
+ function oa(e, t) {
3441
+ let r = e.slice(1, -1);
3442
+ if (r.includes('"') || r.includes("'")) return e;
3443
+ let n = t.singleQuote ? "'" : '"';
3444
+ return n + r + n;
3445
+ }
3446
+ function Il(e, t, r) {
3447
+ let n = e.originalText.slice(t, r);
3448
+ for (let s of e[Symbol.for("comments")]) {
3449
+ let u = R(s);
3450
+ if (u > r) break;
3451
+ let i = k(s);
3452
+ if (i < t) continue;
3453
+ let a = i - u;
3454
+ n = n.slice(0, u - t) + " ".repeat(a) + n.slice(i - t);
3455
+ }
3456
+ return n;
3457
+ }
3458
+ var fr = Il;
3459
+ function ca(e, t, r) {
3460
+ let { node: n } = e;
3461
+ return ["import", n.module ? " module" : "", n.phase ? ` ${n.phase}` : "", ks(n), ya(e, t, r), ma(e, t, r), fa(e, t, r), t.semi ? ";" : ""];
3462
+ }
3463
+ var la = (e) => e.type === "ExportDefaultDeclaration" || e.type === "DeclareExportDeclaration" && e.default;
3464
+ function gn(e, t, r) {
3465
+ let { node: n } = e, s = [di(e, t, r), $(e), "export", la(n) ? " default" : ""], { declaration: u, exported: i } = n;
3466
+ return d(n, g.Dangling) && (s.push(" ", M(e, t)), wr(n) && s.push(F)), u ? s.push(" ", r("declaration")) : (s.push(Ol(n)), n.type === "ExportAllDeclaration" || n.type === "DeclareExportAllDeclaration" ? (s.push(" *"), i && s.push(" as ", r("exported"))) : s.push(ya(e, t, r)), s.push(ma(e, t, r), fa(e, t, r))), s.push(wl(n, t)), s;
3467
+ }
3468
+ var Ll = v(["ClassDeclaration", "ComponentDeclaration", "FunctionDeclaration", "TSInterfaceDeclaration", "DeclareClass", "DeclareComponent", "DeclareFunction", "DeclareHook", "HookDeclaration", "TSDeclareFunction", "EnumDeclaration"]);
3469
+ function wl(e, t) {
3470
+ return t.semi && (!e.declaration || la(e) && !Ll(e.declaration)) ? ";" : "";
3471
+ }
3472
+ function Ps(e, t = true) {
3473
+ return e && e !== "value" ? `${t ? " " : ""}${e}${t ? "" : " "}` : "";
3474
+ }
3475
+ function ks(e, t) {
3476
+ return Ps(e.importKind, t);
3477
+ }
3478
+ function Ol(e) {
3479
+ return Ps(e.exportKind);
3480
+ }
3481
+ function ma(e, t, r) {
3482
+ let { node: n } = e;
3483
+ if (!n.source) return "";
3484
+ let s = [];
3485
+ return Da(n, t) && s.push(" from"), s.push(" ", r("source")), s;
3486
+ }
3487
+ function ya(e, t, r) {
3488
+ let { node: n } = e;
3489
+ if (!Da(n, t)) return "";
3490
+ let s = [" "];
3491
+ if (w(n.specifiers)) {
3492
+ let u = [], i = [];
3493
+ e.each(() => {
3494
+ let a = e.node.type;
3495
+ if (a === "ExportNamespaceSpecifier" || a === "ExportDefaultSpecifier" || a === "ImportNamespaceSpecifier" || a === "ImportDefaultSpecifier") u.push(r());
3496
+ else if (a === "ExportSpecifier" || a === "ImportSpecifier") i.push(r());
3497
+ else throw new Me(n, "specifier");
3498
+ }, "specifiers"), s.push(P(", ", u)), i.length > 0 && (u.length > 0 && s.push(", "), i.length > 1 || u.length > 0 || n.specifiers.some((o) => d(o)) ? s.push(l(["{", f([t.bracketSpacing ? x : E, P([",", x], i)]), b(ae(t) ? "," : ""), t.bracketSpacing ? x : E, "}"])) : s.push(["{", t.bracketSpacing ? " " : "", ...i, t.bracketSpacing ? " " : "", "}"]));
3499
+ } else s.push("{}");
3500
+ return s;
3501
+ }
3502
+ function Da(e, t) {
3503
+ return e.type !== "ImportDeclaration" || w(e.specifiers) || e.importKind === "type" ? true : fr(t, R(e), R(e.source)).trimEnd().endsWith("from");
3504
+ }
3505
+ function _l(e, t) {
3506
+ var n, s;
3507
+ if ((n = e.extra) != null && n.deprecatedAssertSyntax) return "assert";
3508
+ let r = fr(t, k(e.source), (s = e.attributes) != null && s[0] ? R(e.attributes[0]) : k(e)).trimStart();
3509
+ return r.startsWith("assert") ? "assert" : r.startsWith("with") || w(e.attributes) ? "with" : void 0;
3510
+ }
3511
+ function fa(e, t, r) {
3512
+ let { node: n } = e;
3513
+ if (!n.source) return "";
3514
+ let s = _l(n, t);
3515
+ if (!s) return "";
3516
+ let u = [` ${s} {`];
3517
+ return w(n.attributes) && (t.bracketSpacing && u.push(" "), u.push(P(", ", e.map(r, "attributes"))), t.bracketSpacing && u.push(" ")), u.push("}"), u;
3518
+ }
3519
+ function Ea(e, t, r) {
3520
+ let { node: n } = e, { type: s } = n, u = s.startsWith("Import"), i = u ? "imported" : "local", a = u ? "local" : "exported", o = n[i], c = n[a], m = "", D = "";
3521
+ return s === "ExportNamespaceSpecifier" || s === "ImportNamespaceSpecifier" ? m = "*" : o && (m = r(i)), c && !jl(n) && (D = r(a)), [Ps(s === "ImportSpecifier" ? n.importKind : n.exportKind, false), m, m && D ? " as " : "", D];
3522
+ }
3523
+ function jl(e) {
3524
+ if (e.type !== "ImportSpecifier" && e.type !== "ExportSpecifier") return false;
3525
+ let { local: t, [e.type === "ImportSpecifier" ? "imported" : "exported"]: r } = e;
3526
+ if (t.type !== r.type || !eu(t, r)) return false;
3527
+ if (Q(t)) return t.value === r.value && fe(t) === fe(r);
3528
+ switch (t.type) {
3529
+ case "Identifier":
3530
+ return t.name === r.name;
3531
+ default:
3532
+ return false;
3533
+ }
3534
+ }
3535
+ function dt(e, t, r) {
3536
+ var j;
3537
+ let n = t.semi ? ";" : "", { node: s } = e, u = s.type === "ObjectTypeAnnotation", i = s.type === "TSEnumDeclaration" || s.type === "EnumBooleanBody" || s.type === "EnumNumberBody" || s.type === "EnumBigIntBody" || s.type === "EnumStringBody" || s.type === "EnumSymbolBody", a = [s.type === "TSTypeLiteral" || i ? "members" : s.type === "TSInterfaceBody" ? "body" : "properties"];
3538
+ u && a.push("indexers", "callProperties", "internalSlots");
3539
+ let o = a.flatMap((h) => e.map(({ node: W }) => ({ node: W, printed: r(), loc: R(W) }), h));
3540
+ a.length > 1 && o.sort((h, W) => h.loc - W.loc);
3541
+ let { parent: c, key: m } = e, D = u && m === "body" && (c.type === "InterfaceDeclaration" || c.type === "DeclareInterface" || c.type === "DeclareClass"), y = s.type === "TSInterfaceBody" || i || D || s.type === "ObjectPattern" && c.type !== "FunctionDeclaration" && c.type !== "FunctionExpression" && c.type !== "ArrowFunctionExpression" && c.type !== "ObjectMethod" && c.type !== "ClassMethod" && c.type !== "ClassPrivateMethod" && c.type !== "AssignmentPattern" && c.type !== "CatchClause" && s.properties.some((h) => h.value && (h.value.type === "ObjectPattern" || h.value.type === "ArrayPattern")) || s.type !== "ObjectPattern" && o.length > 0 && de(t.originalText, R(s), o[0].loc), C = D ? ";" : s.type === "TSInterfaceBody" || s.type === "TSTypeLiteral" ? b(n, ";") : ",", p = s.type === "RecordExpression" ? "#{" : s.exact ? "{|" : "{", A = s.exact ? "|}" : "}", T = [], S = o.map((h) => {
3542
+ let W = [...T, l(h.printed)];
3543
+ return T = [C, x], (h.node.type === "TSPropertySignature" || h.node.type === "TSMethodSignature" || h.node.type === "TSConstructSignatureDeclaration" || h.node.type === "TSCallSignatureDeclaration") && d(h.node, g.PrettierIgnore) && T.shift(), pe(h.node, t) && T.push(F), W;
3544
+ });
3545
+ if (s.inexact || s.hasUnknownMembers) {
3546
+ let h;
3547
+ if (d(s, g.Dangling)) {
3548
+ let W = d(s, g.Line);
3549
+ h = [M(e, t), W || te(t.originalText, k(O(false, ct(s), -1))) ? F : x, "..."];
3550
+ } else h = ["..."];
3551
+ S.push([...T, ...h]);
3552
+ }
3553
+ let B = (j = O(false, o, -1)) == null ? void 0 : j.node, _ = !(s.inexact || s.hasUnknownMembers || B && (B.type === "RestElement" || (B.type === "TSPropertySignature" || B.type === "TSCallSignatureDeclaration" || B.type === "TSMethodSignature" || B.type === "TSConstructSignatureDeclaration") && d(B, g.PrettierIgnore))), J;
3554
+ if (S.length === 0) {
3555
+ if (!d(s, g.Dangling)) return [p, A, Y(e, r)];
3556
+ J = l([p, M(e, t, { indent: true }), E, A, V(e), Y(e, r)]);
3557
+ } else J = [D && w(s.properties) ? gs(c) : "", p, f([t.bracketSpacing ? x : E, ...S]), b(_ && (C !== "," || ae(t)) ? C : ""), t.bracketSpacing ? x : E, A, V(e), Y(e, r)];
3558
+ return e.match((h) => h.type === "ObjectPattern" && !w(h.decorators), Is) || we(s) && (e.match(void 0, (h, W) => W === "typeAnnotation", (h, W) => W === "typeAnnotation", Is) || e.match(void 0, (h, W) => h.type === "FunctionTypeParam" && W === "typeAnnotation", Is)) || !y && e.match((h) => h.type === "ObjectPattern", (h) => h.type === "AssignmentExpression" || h.type === "VariableDeclarator") ? J : l(J, { shouldBreak: y });
3559
+ }
3560
+ function Is(e, t) {
3561
+ return (t === "params" || t === "parameters" || t === "this" || t === "rest") && Cs(e);
3562
+ }
3563
+ function vl(e) {
3564
+ let t = [e];
3565
+ for (let r = 0; r < t.length; r++) {
3566
+ let n = t[r];
3567
+ for (let s of ["test", "consequent", "alternate"]) {
3568
+ let u = n[s];
3569
+ if (X(u)) return true;
3570
+ u.type === "ConditionalExpression" && t.push(u);
3571
+ }
3572
+ }
3573
+ return false;
3574
+ }
3575
+ function Ml(e, t, r) {
3576
+ let { node: n } = e, s = n.type === "ConditionalExpression", u = s ? "alternate" : "falseType", { parent: i } = e, a = s ? r("test") : [r("checkType"), " ", "extends", " ", r("extendsType")];
3577
+ return i.type === n.type && i[u] === n ? he(2, a) : a;
3578
+ }
3579
+ var Rl = /* @__PURE__ */ new Map([["AssignmentExpression", "right"], ["VariableDeclarator", "init"], ["ReturnStatement", "argument"], ["ThrowStatement", "argument"], ["UnaryExpression", "argument"], ["YieldExpression", "argument"], ["AwaitExpression", "argument"]]);
3580
+ function Jl(e) {
3581
+ let { node: t } = e;
3582
+ if (t.type !== "ConditionalExpression") return false;
3583
+ let r, n = t;
3584
+ for (let s = 0; !r; s++) {
3585
+ let u = e.getParentNode(s);
3586
+ if (u.type === "ChainExpression" && u.expression === n || L(u) && u.callee === n || q(u) && u.object === n || u.type === "TSNonNullExpression" && u.expression === n) {
3587
+ n = u;
3588
+ continue;
3589
+ }
3590
+ u.type === "NewExpression" && u.callee === n || Te(u) && u.expression === n ? (r = e.getParentNode(s + 1), n = u) : r = u;
3591
+ }
3592
+ return n === t ? false : r[Rl.get(r.type)] === n;
3593
+ }
3594
+ function Fa(e, t, r) {
3595
+ let { node: n } = e, s = n.type === "ConditionalExpression", u = s ? "consequent" : "trueType", i = s ? "alternate" : "falseType", a = s ? ["test"] : ["checkType", "extendsType"], o = n[u], c = n[i], m = [], D = false, { parent: y } = e, C = y.type === n.type && a.some((H) => y[H] === n), p = y.type === n.type && !C, A, T, S = 0;
3596
+ do
3597
+ T = A || n, A = e.getParentNode(S), S++;
3598
+ while (A && A.type === n.type && a.every((H) => A[H] !== T));
3599
+ let B = A || y, _ = T;
3600
+ if (s && (X(n[a[0]]) || X(o) || X(c) || vl(_))) {
3601
+ D = true, p = true;
3602
+ let H = (Z) => [b("("), f([E, Z]), E, b(")")], ue = (Z) => Z.type === "NullLiteral" || Z.type === "Literal" && Z.value === null || Z.type === "Identifier" && Z.name === "undefined";
3603
+ m.push(" ? ", ue(o) ? r(u) : H(r(u)), " : ", c.type === n.type || ue(c) ? r(i) : H(r(i)));
3604
+ } else {
3605
+ let H = (Z) => t.useTabs ? f(r(Z)) : he(2, r(Z)), ue = [x, "? ", o.type === n.type ? b("", "(") : "", H(u), o.type === n.type ? b("", ")") : "", x, ": ", H(i)];
3606
+ m.push(y.type !== n.type || y[i] === n || C ? ue : t.useTabs ? Mr(f(ue)) : he(Math.max(0, t.tabWidth - 2), ue));
3607
+ }
3608
+ let J = [u, i, ...a].some((H) => d(n[H], (ue) => re(ue) && de(t.originalText, R(ue), k(ue)))), j = (H) => y === B ? l(H, { shouldBreak: J }) : J ? [H, Ee] : H, h = !D && (q(y) || y.type === "NGPipeExpression" && y.left === n) && !y.computed, W = Jl(e), Fe = j([Ml(e, t, r), p ? m : f(m), s && h && !W ? E : ""]);
3609
+ return C || W ? l([f([E, Fe]), E]) : Fe;
3610
+ }
3611
+ function ql(e, t) {
3612
+ return (q(t) || t.type === "NGPipeExpression" && t.left === e) && !t.computed;
3613
+ }
3614
+ function Wl(e, t, r, n) {
3615
+ return [...e.map((u) => ct(u)), ct(t), ct(r)].flat().some((u) => re(u) && de(n.originalText, R(u), k(u)));
3616
+ }
3617
+ var Gl = /* @__PURE__ */ new Map([["AssignmentExpression", "right"], ["VariableDeclarator", "init"], ["ReturnStatement", "argument"], ["ThrowStatement", "argument"], ["UnaryExpression", "argument"], ["YieldExpression", "argument"], ["AwaitExpression", "argument"]]);
3618
+ function Ul(e) {
3619
+ let { node: t } = e;
3620
+ if (t.type !== "ConditionalExpression") return false;
3621
+ let r, n = t;
3622
+ for (let s = 0; !r; s++) {
3623
+ let u = e.getParentNode(s);
3624
+ if (u.type === "ChainExpression" && u.expression === n || L(u) && u.callee === n || q(u) && u.object === n || u.type === "TSNonNullExpression" && u.expression === n) {
3625
+ n = u;
3626
+ continue;
3627
+ }
3628
+ u.type === "NewExpression" && u.callee === n || Te(u) && u.expression === n ? (r = e.getParentNode(s + 1), n = u) : r = u;
3629
+ }
3630
+ return n === t ? false : r[Gl.get(r.type)] === n;
3631
+ }
3632
+ var Ls = (e) => [b("("), f([E, e]), E, b(")")];
3633
+ function Vt(e, t, r, n) {
3634
+ if (!t.experimentalTernaries) return Fa(e, t, r);
3635
+ let { node: s } = e, u = s.type === "ConditionalExpression", i = s.type === "TSConditionalType" || s.type === "ConditionalTypeAnnotation", a = u ? "consequent" : "trueType", o = u ? "alternate" : "falseType", c = u ? ["test"] : ["checkType", "extendsType"], m = s[a], D = s[o], y = c.map((We) => s[We]), { parent: C } = e, p = C.type === s.type, A = p && c.some((We) => C[We] === s), T = p && C[o] === s, S = m.type === s.type, B = D.type === s.type, _ = B || T, J = t.tabWidth > 2 || t.useTabs, j, h, W = 0;
3636
+ do
3637
+ h = j || s, j = e.getParentNode(W), W++;
3638
+ while (j && j.type === s.type && c.every((We) => j[We] !== h));
3639
+ let Fe = j || C, H = n && n.assignmentLayout && n.assignmentLayout !== "break-after-operator" && (C.type === "AssignmentExpression" || C.type === "VariableDeclarator" || C.type === "ClassProperty" || C.type === "PropertyDefinition" || C.type === "ClassPrivateProperty" || C.type === "ObjectProperty" || C.type === "Property"), ue = (C.type === "ReturnStatement" || C.type === "ThrowStatement") && !(S || B), Z = u && Fe.type === "JSXExpressionContainer" && e.grandparent.type !== "JSXAttribute", It = Ul(e), $t = ql(s, C), I = i && Be(e, t), G = J ? t.useTabs ? " " : " ".repeat(t.tabWidth - 1) : "", ee = Wl(y, m, D, t) || S || B, qe = !_ && !p && !i && (Z ? m.type === "NullLiteral" || m.type === "Literal" && m.value === null : rr(m, t) && Mn(s.test, 3)), xt = _ || T || i && !p || p && u && Mn(s.test, 1) || qe, js = [];
3640
+ !S && d(m, g.Dangling) && e.call((We) => {
3641
+ js.push(M(We, t), F);
3642
+ }, "consequent");
3643
+ let Kt = [];
3644
+ d(s.test, g.Dangling) && e.call((We) => {
3645
+ Kt.push(M(We, t));
3646
+ }, "test"), !B && d(D, g.Dangling) && e.call((We) => {
3647
+ Kt.push(M(We, t));
3648
+ }, "alternate"), d(s, g.Dangling) && Kt.push(M(e, t));
3649
+ let vs = Symbol("test"), Ma = Symbol("consequent"), Fr = Symbol("test-and-consequent"), Ra = u ? [Ls(r("test")), s.test.type === "ConditionalExpression" ? Ee : ""] : [r("checkType"), " ", "extends", " ", s.extendsType.type === "TSConditionalType" || s.extendsType.type === "ConditionalTypeAnnotation" || s.extendsType.type === "TSMappedType" ? r("extendsType") : l(Ls(r("extendsType")))], Ms = l([Ra, " ?"], { id: vs }), Ja = r(a), Cr = f([S || Z && (X(m) || p || _) ? F : x, js, Ja]), qa = xt ? l([Ms, _ ? Cr : b(Cr, l(Cr, { id: Ma }), { groupId: vs })], { id: Fr }) : [Ms, Cr], kn = r(o), Rs = qe ? b(kn, Mr(Ls(kn)), { groupId: Fr }) : kn, zt = [qa, Kt.length > 0 ? [f([F, Kt]), F] : B ? F : qe ? b(x, " ", { groupId: Fr }) : x, ":", B ? " " : J ? xt ? b(G, b(_ || qe ? " " : G, " "), { groupId: Fr }) : b(G, " ") : " ", B ? Rs : l([f(Rs), Z && !qe ? E : ""]), $t && !It ? E : "", ee ? Ee : ""];
3650
+ return H && !ee ? l(f([E, l(zt)])) : H || ue ? l(f(zt)) : It || i && A ? l([f([E, zt]), I ? E : ""]) : C === Fe ? l(zt) : zt;
3651
+ }
3652
+ function Ca(e, t, r, n) {
3653
+ let { node: s } = e;
3654
+ if (kr(s)) return pa(e, t);
3655
+ let u = t.semi ? ";" : "", i = [];
3656
+ switch (s.type) {
3657
+ case "JsExpressionRoot":
3658
+ return r("node");
3659
+ case "JsonRoot":
3660
+ return [r("node"), F];
3661
+ case "File":
3662
+ return ia(e, t, r) ?? r("program");
3663
+ case "EmptyStatement":
3664
+ return "";
3665
+ case "ExpressionStatement":
3666
+ return ua(e, t, r);
3667
+ case "ChainExpression":
3668
+ return r("expression");
3669
+ case "ParenthesizedExpression":
3670
+ return !d(s.expression) && (se(s.expression) || U(s.expression)) ? ["(", r("expression"), ")"] : l(["(", f([E, r("expression")]), E, ")"]);
3671
+ case "AssignmentExpression":
3672
+ return wi(e, t, r);
3673
+ case "VariableDeclarator":
3674
+ return Oi(e, t, r);
3675
+ case "BinaryExpression":
3676
+ case "LogicalExpression":
3677
+ return Yr(e, t, r);
3678
+ case "AssignmentPattern":
3679
+ return [r("left"), " = ", r("right")];
3680
+ case "OptionalMemberExpression":
3681
+ case "MemberExpression":
3682
+ return bi(e, t, r);
3683
+ case "MetaProperty":
3684
+ return [r("meta"), ".", r("property")];
3685
+ case "BindExpression":
3686
+ return s.object && i.push(r("object")), i.push(l(f([E, Hr(e, t, r)]))), i;
3687
+ case "Identifier":
3688
+ return [s.name, V(e), pn(e), Y(e, r)];
3689
+ case "V8IntrinsicIdentifier":
3690
+ return ["%", s.name];
3691
+ case "SpreadElement":
3692
+ case "SpreadElementPattern":
3693
+ case "SpreadPropertyPattern":
3694
+ case "RestElement":
3695
+ return cn(e, r);
3696
+ case "FunctionDeclaration":
3697
+ case "FunctionExpression":
3698
+ return Dn(e, r, t, n);
3699
+ case "ArrowFunctionExpression":
3700
+ return $i(e, t, r, n);
3701
+ case "YieldExpression":
3702
+ return i.push("yield"), s.delegate && i.push("*"), s.argument && i.push(" ", r("argument")), i;
3703
+ case "AwaitExpression":
3704
+ if (i.push("await"), s.argument) {
3705
+ i.push(" ", r("argument"));
3706
+ let { parent: a } = e;
3707
+ if (L(a) && a.callee === s || q(a) && a.object === s) {
3708
+ i = [f([E, ...i]), E];
3709
+ let o = e.findAncestor((c) => c.type === "AwaitExpression" || c.type === "BlockStatement");
3710
+ if ((o == null ? void 0 : o.type) !== "AwaitExpression" || !ie(o.argument, (c) => c === s)) return l(i);
3711
+ }
3712
+ }
3713
+ return i;
3714
+ case "ExportDefaultDeclaration":
3715
+ case "ExportNamedDeclaration":
3716
+ case "ExportAllDeclaration":
3717
+ return gn(e, t, r);
3718
+ case "ImportDeclaration":
3719
+ return ca(e, t, r);
3720
+ case "ImportSpecifier":
3721
+ case "ExportSpecifier":
3722
+ case "ImportNamespaceSpecifier":
3723
+ case "ExportNamespaceSpecifier":
3724
+ case "ImportDefaultSpecifier":
3725
+ case "ExportDefaultSpecifier":
3726
+ return Ea(e, t, r);
3727
+ case "ImportAttribute":
3728
+ return yn(e, t, r);
3729
+ case "Import":
3730
+ return "import";
3731
+ case "Program":
3732
+ case "BlockStatement":
3733
+ case "StaticBlock":
3734
+ return Fn(e, t, r);
3735
+ case "ClassBody":
3736
+ return ra(e, t, r);
3737
+ case "ThrowStatement":
3738
+ return Yi(e, t, r);
3739
+ case "ReturnStatement":
3740
+ return Xi(e, t, r);
3741
+ case "NewExpression":
3742
+ case "ImportExpression":
3743
+ case "OptionalCallExpression":
3744
+ case "CallExpression":
3745
+ return Vr(e, t, r);
3746
+ case "ObjectExpression":
3747
+ case "ObjectPattern":
3748
+ case "RecordExpression":
3749
+ return dt(e, t, r);
3750
+ case "Property":
3751
+ return gt(s) ? mr(e, t, r) : yn(e, t, r);
3752
+ case "ObjectProperty":
3753
+ return yn(e, t, r);
3754
+ case "ObjectMethod":
3755
+ return mr(e, t, r);
3756
+ case "Decorator":
3757
+ return ["@", r("expression")];
3758
+ case "ArrayExpression":
3759
+ case "ArrayPattern":
3760
+ case "TupleExpression":
3761
+ return Yt(e, t, r);
3762
+ case "SequenceExpression": {
3763
+ let { parent: a } = e;
3764
+ if (a.type === "ExpressionStatement" || a.type === "ForStatement") {
3765
+ let o = [];
3766
+ return e.each(({ isFirst: c }) => {
3767
+ c ? o.push(r()) : o.push(",", f([x, r()]));
3768
+ }, "expressions"), l(o);
3769
+ }
3770
+ return l(P([",", x], e.map(r, "expressions")));
3771
+ }
3772
+ case "ThisExpression":
3773
+ return "this";
3774
+ case "Super":
3775
+ return "super";
3776
+ case "Directive":
3777
+ return [r("value"), u];
3778
+ case "UnaryExpression":
3779
+ return i.push(s.operator), /[a-z]$/u.test(s.operator) && i.push(" "), d(s.argument) ? i.push(l(["(", f([E, r("argument")]), E, ")"])) : i.push(r("argument")), i;
3780
+ case "UpdateExpression":
3781
+ return [s.prefix ? s.operator : "", r("argument"), s.prefix ? "" : s.operator];
3782
+ case "ConditionalExpression":
3783
+ return Vt(e, t, r, n);
3784
+ case "VariableDeclaration": {
3785
+ let a = e.map(r, "declarations"), o = e.parent, c = o.type === "ForStatement" || o.type === "ForInStatement" || o.type === "ForOfStatement", m = s.declarations.some((y) => y.init), D;
3786
+ return a.length === 1 && !d(s.declarations[0]) ? D = a[0] : a.length > 0 && (D = f(a[0])), i = [$(e), s.kind, D ? [" ", D] : "", f(a.slice(1).map((y) => [",", m && !c ? F : x, y]))], c && o.body !== s || i.push(u), l(i);
3787
+ }
3788
+ case "WithStatement":
3789
+ return l(["with (", r("object"), ")", ft(s.body, r("body"))]);
3790
+ case "IfStatement": {
3791
+ let a = ft(s.consequent, r("consequent")), o = l(["if (", l([f([E, r("test")]), E]), ")", a]);
3792
+ if (i.push(o), s.alternate) {
3793
+ let c = d(s.consequent, g.Trailing | g.Line) || wr(s), m = s.consequent.type === "BlockStatement" && !c;
3794
+ i.push(m ? " " : F), d(s, g.Dangling) && i.push(M(e, t), c ? F : " "), i.push("else", l(ft(s.alternate, r("alternate"), s.alternate.type === "IfStatement")));
3795
+ }
3796
+ return i;
3797
+ }
3798
+ case "ForStatement": {
3799
+ let a = ft(s.body, r("body")), o = M(e, t), c = o ? [o, E] : "";
3800
+ return !s.init && !s.test && !s.update ? [c, l(["for (;;)", a])] : [c, l(["for (", l([f([E, r("init"), ";", x, r("test"), ";", x, r("update")]), E]), ")", a])];
3801
+ }
3802
+ case "WhileStatement":
3803
+ return l(["while (", l([f([E, r("test")]), E]), ")", ft(s.body, r("body"))]);
3804
+ case "ForInStatement":
3805
+ return l(["for (", r("left"), " in ", r("right"), ")", ft(s.body, r("body"))]);
3806
+ case "ForOfStatement":
3807
+ return l(["for", s.await ? " await" : "", " (", r("left"), " of ", r("right"), ")", ft(s.body, r("body"))]);
3808
+ case "DoWhileStatement": {
3809
+ let a = ft(s.body, r("body"));
3810
+ return i = [l(["do", a])], s.body.type === "BlockStatement" ? i.push(" ") : i.push(F), i.push("while (", l([f([E, r("test")]), E]), ")", u), i;
3811
+ }
3812
+ case "DoExpression":
3813
+ return [s.async ? "async " : "", "do ", r("body")];
3814
+ case "BreakStatement":
3815
+ case "ContinueStatement":
3816
+ return i.push(s.type === "BreakStatement" ? "break" : "continue"), s.label && i.push(" ", r("label")), i.push(u), i;
3817
+ case "LabeledStatement":
3818
+ return s.body.type === "EmptyStatement" ? [r("label"), ":;"] : [r("label"), ": ", r("body")];
3819
+ case "TryStatement":
3820
+ return ["try ", r("block"), s.handler ? [" ", r("handler")] : "", s.finalizer ? [" finally ", r("finalizer")] : ""];
3821
+ case "CatchClause":
3822
+ if (s.param) {
3823
+ let a = d(s.param, (c) => !re(c) || c.leading && te(t.originalText, k(c)) || c.trailing && te(t.originalText, R(c), { backwards: true })), o = r("param");
3824
+ return ["catch ", a ? ["(", f([E, o]), E, ") "] : ["(", o, ") "], r("body")];
3825
+ }
3826
+ return ["catch ", r("body")];
3827
+ case "SwitchStatement":
3828
+ return [l(["switch (", f([E, r("discriminant")]), E, ")"]), " {", s.cases.length > 0 ? f([F, P(F, e.map(({ node: a, isLast: o }) => [r(), !o && pe(a, t) ? F : ""], "cases"))]) : "", F, "}"];
3829
+ case "SwitchCase": {
3830
+ s.test ? i.push("case ", r("test"), ":") : i.push("default:"), d(s, g.Dangling) && i.push(" ", M(e, t));
3831
+ let a = s.consequent.filter((o) => o.type !== "EmptyStatement");
3832
+ if (a.length > 0) {
3833
+ let o = yr(e, t, r, "consequent");
3834
+ i.push(a.length === 1 && a[0].type === "BlockStatement" ? [" ", o] : f([F, o]));
3835
+ }
3836
+ return i;
3837
+ }
3838
+ case "DebuggerStatement":
3839
+ return ["debugger", u];
3840
+ case "ClassDeclaration":
3841
+ case "ClassExpression":
3842
+ return Tn(e, t, r);
3843
+ case "ClassMethod":
3844
+ case "ClassPrivateMethod":
3845
+ case "MethodDefinition":
3846
+ return dn(e, t, r);
3847
+ case "ClassProperty":
3848
+ case "PropertyDefinition":
3849
+ case "ClassPrivateProperty":
3850
+ case "ClassAccessorProperty":
3851
+ case "AccessorProperty":
3852
+ return xn(e, t, r);
3853
+ case "TemplateElement":
3854
+ return Ie(s.value.raw);
3855
+ case "TemplateLiteral":
3856
+ return qr(e, r, t);
3857
+ case "TaggedTemplateExpression":
3858
+ return Uu(e, r);
3859
+ case "PrivateIdentifier":
3860
+ return ["#", s.name];
3861
+ case "PrivateName":
3862
+ return ["#", r("id")];
3863
+ case "TopicReference":
3864
+ return "%";
3865
+ case "ArgumentPlaceholder":
3866
+ return "?";
3867
+ case "ModuleExpression":
3868
+ return ["module ", r("body")];
3869
+ case "InterpreterDirective":
3870
+ default:
3871
+ throw new Me(s, "ESTree");
3872
+ }
3873
+ }
3874
+ function Sn(e, t, r) {
3875
+ let { parent: n, node: s, key: u } = e, i = [r("expression")];
3876
+ switch (s.type) {
3877
+ case "AsConstExpression":
3878
+ i.push(" as const");
3879
+ break;
3880
+ case "AsExpression":
3881
+ case "TSAsExpression":
3882
+ i.push(" as ", r("typeAnnotation"));
3883
+ break;
3884
+ case "SatisfiesExpression":
3885
+ case "TSSatisfiesExpression":
3886
+ i.push(" satisfies ", r("typeAnnotation"));
3887
+ break;
3888
+ }
3889
+ return u === "callee" && L(n) || u === "object" && q(n) ? l([f([E, ...i]), E]) : i;
3890
+ }
3891
+ function Aa(e, t, r) {
3892
+ let { node: n } = e, s = [$(e), "component"];
3893
+ n.id && s.push(" ", r("id")), s.push(r("typeParameters"));
3894
+ let u = Nl(e, r, t);
3895
+ return n.rendersType ? s.push(l([u, " ", r("rendersType")])) : s.push(l([u])), n.body && s.push(" ", r("body")), t.semi && n.type === "DeclareComponent" && s.push(";"), s;
3896
+ }
3897
+ function Nl(e, t, r) {
3898
+ let { node: n } = e, s = n.params;
3899
+ if (n.rest && (s = [...s, n.rest]), s.length === 0) return ["(", M(e, r, { filter: (i) => ge(r.originalText, k(i)) === ")" }), ")"];
3900
+ let u = [];
3901
+ return Yl(e, (i, a) => {
3902
+ let o = a === s.length - 1;
3903
+ o && n.rest && u.push("..."), u.push(t()), !o && (u.push(","), pe(s[a], r) ? u.push(F, F) : u.push(x));
3904
+ }), ["(", f([E, ...u]), b(ae(r, "all") && !Xl(n, s) ? "," : ""), E, ")"];
3905
+ }
3906
+ function Xl(e, t) {
3907
+ var r;
3908
+ return e.rest || ((r = O(false, t, -1)) == null ? void 0 : r.type) === "RestElement";
3909
+ }
3910
+ function Yl(e, t) {
3911
+ let { node: r } = e, n = 0, s = (u) => t(u, n++);
3912
+ e.each(s, "params"), r.rest && e.call(s, "rest");
3913
+ }
3914
+ function Ta(e, t, r) {
3915
+ let { node: n } = e;
3916
+ return n.shorthand ? r("local") : [r("name"), " as ", r("local")];
3917
+ }
3918
+ function da(e, t, r) {
3919
+ let { node: n } = e, s = [];
3920
+ return n.name && s.push(r("name"), n.optional ? "?: " : ": "), s.push(r("typeAnnotation")), s;
3921
+ }
3922
+ function xa(e, t, r) {
3923
+ return dt(e, r, t);
3924
+ }
3925
+ function Bn(e, t) {
3926
+ let { node: r } = e, n = t("id");
3927
+ r.computed && (n = ["[", n, "]"]);
3928
+ let s = "";
3929
+ return r.initializer && (s = t("initializer")), r.init && (s = t("init")), s ? [n, " = ", s] : n;
3930
+ }
3931
+ function ha(e, t, r) {
3932
+ let { node: n } = e, s;
3933
+ if (n.type === "EnumSymbolBody" || n.explicitType) switch (n.type) {
3934
+ case "EnumBooleanBody":
3935
+ s = "boolean";
3936
+ break;
3937
+ case "EnumNumberBody":
3938
+ s = "number";
3939
+ break;
3940
+ case "EnumBigIntBody":
3941
+ s = "bigint";
3942
+ break;
3943
+ case "EnumStringBody":
3944
+ s = "string";
3945
+ break;
3946
+ case "EnumSymbolBody":
3947
+ s = "symbol";
3948
+ break;
3949
+ }
3950
+ return [s ? `of ${s} ` : "", xa(e, t, r)];
3951
+ }
3952
+ function bn(e, t, r) {
3953
+ let { node: n } = e;
3954
+ return [$(e), n.const ? "const " : "", "enum ", t("id"), " ", n.type === "TSEnumDeclaration" ? xa(e, t, r) : t("body")];
3955
+ }
3956
+ function Sa(e, t, r) {
3957
+ let { node: n } = e, s = ["hook"];
3958
+ n.id && s.push(" ", r("id"));
3959
+ let u = Je(e, r, t, false, true), i = Ht(e, r), a = ot(n, i);
3960
+ return s.push(l([a ? l(u) : u, i]), n.body ? " " : "", r("body")), s;
3961
+ }
3962
+ function Ba(e, t, r) {
3963
+ let { node: n } = e, s = [$(e), "hook"];
3964
+ return n.id && s.push(" ", r("id")), t.semi && s.push(";"), s;
3965
+ }
3966
+ function ga(e) {
3967
+ var r;
3968
+ let { node: t } = e;
3969
+ return t.type === "HookTypeAnnotation" && ((r = e.getParentNode(2)) == null ? void 0 : r.type) === "DeclareHook";
3970
+ }
3971
+ function ba(e, t, r) {
3972
+ let { node: n } = e, s = [];
3973
+ s.push(ga(e) ? "" : "hook ");
3974
+ let u = Je(e, r, t, false, true), i = [];
3975
+ return i.push(ga(e) ? ": " : " => ", r("returnType")), ot(n, i) && (u = l(u)), s.push(u, i), l(s);
3976
+ }
3977
+ function Pn(e, t, r) {
3978
+ let { node: n } = e, s = [$(e), "interface"], u = [], i = [];
3979
+ n.type !== "InterfaceTypeAnnotation" && u.push(" ", r("id"), r("typeParameters"));
3980
+ let a = n.typeParameters && !d(n.typeParameters, g.Trailing | g.Line);
3981
+ return w(n.extends) && i.push(a ? b(" ", x, { groupId: Dr(n.typeParameters) }) : x, "extends ", (n.extends.length === 1 ? mu : f)(P([",", x], e.map(r, "extends")))), d(n.id, g.Trailing) || w(n.extends) ? a ? s.push(l([...u, f(i)])) : s.push(l(f([...u, ...i]))) : s.push(...u, ...i), s.push(" ", r("body")), l(s);
3982
+ }
3983
+ function Pa(e, t, r) {
3984
+ let { node: n } = e;
3985
+ if (Sr(n)) return n.type.slice(0, -14).toLowerCase();
3986
+ let s = t.semi ? ";" : "";
3987
+ switch (n.type) {
3988
+ case "ComponentDeclaration":
3989
+ case "DeclareComponent":
3990
+ case "ComponentTypeAnnotation":
3991
+ return Aa(e, t, r);
3992
+ case "ComponentParameter":
3993
+ return Ta(e, t, r);
3994
+ case "ComponentTypeParameter":
3995
+ return da(e, t, r);
3996
+ case "HookDeclaration":
3997
+ return Sa(e, t, r);
3998
+ case "DeclareHook":
3999
+ return Ba(e, t, r);
4000
+ case "HookTypeAnnotation":
4001
+ return ba(e, t, r);
4002
+ case "DeclareClass":
4003
+ return Tn(e, t, r);
4004
+ case "DeclareFunction":
4005
+ return [$(e), "function ", r("id"), r("predicate"), s];
4006
+ case "DeclareModule":
4007
+ return ["declare module ", r("id"), " ", r("body")];
4008
+ case "DeclareModuleExports":
4009
+ return ["declare module.exports", Y(e, r), s];
4010
+ case "DeclareNamespace":
4011
+ return ["declare namespace ", r("id"), " ", r("body")];
4012
+ case "DeclareVariable":
4013
+ return [$(e), n.kind ?? "var", " ", r("id"), s];
4014
+ case "DeclareExportDeclaration":
4015
+ case "DeclareExportAllDeclaration":
4016
+ return gn(e, t, r);
4017
+ case "DeclareOpaqueType":
4018
+ case "OpaqueType":
4019
+ return Mi(e, t, r);
4020
+ case "DeclareTypeAlias":
4021
+ case "TypeAlias":
4022
+ return Kr(e, t, r);
4023
+ case "IntersectionTypeAnnotation":
4024
+ return zr(e, t, r);
4025
+ case "UnionTypeAnnotation":
4026
+ return Qr(e, t, r);
4027
+ case "ConditionalTypeAnnotation":
4028
+ return Vt(e, t, r);
4029
+ case "InferTypeAnnotation":
4030
+ return tn(e, t, r);
4031
+ case "FunctionTypeAnnotation":
4032
+ return Zr(e, t, r);
4033
+ case "TupleTypeAnnotation":
4034
+ return Yt(e, t, r);
4035
+ case "TupleTypeLabeledElement":
4036
+ return nn(e, t, r);
4037
+ case "TupleTypeSpreadElement":
4038
+ return rn(e, t, r);
4039
+ case "GenericTypeAnnotation":
4040
+ return [r("id"), Pt(e, t, r, "typeParameters")];
4041
+ case "IndexedAccessType":
4042
+ case "OptionalIndexedAccessType":
4043
+ return en(e, t, r);
4044
+ case "TypeAnnotation":
4045
+ return sn(e, t, r);
4046
+ case "TypeParameter":
4047
+ return An(e, t, r);
4048
+ case "TypeofTypeAnnotation":
4049
+ return an(e, r);
4050
+ case "ExistsTypeAnnotation":
4051
+ return "*";
4052
+ case "ArrayTypeAnnotation":
4053
+ return un(r);
4054
+ case "DeclareEnum":
4055
+ case "EnumDeclaration":
4056
+ return bn(e, r, t);
4057
+ case "EnumBooleanBody":
4058
+ case "EnumNumberBody":
4059
+ case "EnumBigIntBody":
4060
+ case "EnumStringBody":
4061
+ case "EnumSymbolBody":
4062
+ return ha(e, r, t);
4063
+ case "EnumBooleanMember":
4064
+ case "EnumNumberMember":
4065
+ case "EnumBigIntMember":
4066
+ case "EnumStringMember":
4067
+ case "EnumDefaultedMember":
4068
+ return Bn(e, r);
4069
+ case "FunctionTypeParam": {
4070
+ let u = n.name ? r("name") : e.parent.this === n ? "this" : "";
4071
+ return [u, V(e), u ? ": " : "", r("typeAnnotation")];
4072
+ }
4073
+ case "DeclareInterface":
4074
+ case "InterfaceDeclaration":
4075
+ case "InterfaceTypeAnnotation":
4076
+ return Pn(e, t, r);
4077
+ case "ClassImplements":
4078
+ case "InterfaceExtends":
4079
+ return [r("id"), r("typeParameters")];
4080
+ case "NullableTypeAnnotation":
4081
+ return ["?", r("typeAnnotation")];
4082
+ case "Variance": {
4083
+ let { kind: u } = n;
4084
+ return ln.ok(u === "plus" || u === "minus"), u === "plus" ? "+" : "-";
4085
+ }
4086
+ case "KeyofTypeAnnotation":
4087
+ return ["keyof ", r("argument")];
4088
+ case "ObjectTypeCallProperty":
4089
+ return [n.static ? "static " : "", r("value")];
4090
+ case "ObjectTypeMappedTypeProperty":
4091
+ return zi(e, t, r);
4092
+ case "ObjectTypeIndexer":
4093
+ return [n.static ? "static " : "", n.variance ? r("variance") : "", "[", r("id"), n.id ? ": " : "", r("key"), "]: ", r("value")];
4094
+ case "ObjectTypeProperty": {
4095
+ let u = "";
4096
+ return n.proto ? u = "proto " : n.static && (u = "static "), [u, n.kind !== "init" ? n.kind + " " : "", n.variance ? r("variance") : "", Et(e, t, r), V(e), gt(n) ? "" : ": ", r("value")];
4097
+ }
4098
+ case "ObjectTypeAnnotation":
4099
+ return dt(e, t, r);
4100
+ case "ObjectTypeInternalSlot":
4101
+ return [n.static ? "static " : "", "[[", r("id"), "]]", V(e), n.method ? "" : ": ", r("value")];
4102
+ case "ObjectTypeSpreadProperty":
4103
+ return cn(e, r);
4104
+ case "QualifiedTypeofIdentifier":
4105
+ case "QualifiedTypeIdentifier":
4106
+ return [r("qualification"), ".", r("id")];
4107
+ case "NullLiteralTypeAnnotation":
4108
+ return "null";
4109
+ case "BooleanLiteralTypeAnnotation":
4110
+ return String(n.value);
4111
+ case "StringLiteralTypeAnnotation":
4112
+ return Ie(tt(fe(n), t));
4113
+ case "NumberLiteralTypeAnnotation":
4114
+ return Ze(n.raw ?? n.extra.raw);
4115
+ case "BigIntLiteralTypeAnnotation":
4116
+ return hn(n.raw ?? n.extra.raw);
4117
+ case "TypeCastExpression":
4118
+ return ["(", r("expression"), Y(e, r), ")"];
4119
+ case "TypePredicate":
4120
+ return on(e, r);
4121
+ case "TypeOperator":
4122
+ return [n.operator, " ", r("typeAnnotation")];
4123
+ case "TypeParameterDeclaration":
4124
+ case "TypeParameterInstantiation":
4125
+ return Pt(e, t, r, "params");
4126
+ case "InferredPredicate":
4127
+ case "DeclaredPredicate":
4128
+ return [e.key === "predicate" && e.parent.type !== "DeclareFunction" && !e.parent.returnType ? ": " : " ", "%checks", ...n.type === "DeclaredPredicate" ? ["(", r("value"), ")"] : []];
4129
+ case "AsExpression":
4130
+ case "AsConstExpression":
4131
+ case "SatisfiesExpression":
4132
+ return Sn(e, t, r);
4133
+ }
4134
+ }
4135
+ function ka(e, t, r) {
4136
+ var i;
4137
+ let { node: n } = e;
4138
+ if (!n.type.startsWith("TS")) return;
4139
+ if (Br(n)) return n.type.slice(2, -7).toLowerCase();
4140
+ let s = t.semi ? ";" : "", u = [];
4141
+ switch (n.type) {
4142
+ case "TSThisType":
4143
+ return "this";
4144
+ case "TSTypeAssertion": {
4145
+ let a = !(U(n.expression) || se(n.expression)), o = l(["<", f([E, r("typeAnnotation")]), E, ">"]), c = [b("("), f([E, r("expression")]), E, b(")")];
4146
+ return a ? ze([[o, r("expression")], [o, l(c, { shouldBreak: true })], [o, r("expression")]]) : l([o, r("expression")]);
4147
+ }
4148
+ case "TSDeclareFunction":
4149
+ return Dn(e, r, t);
4150
+ case "TSExportAssignment":
4151
+ return ["export = ", r("expression"), s];
4152
+ case "TSModuleBlock":
4153
+ return Fn(e, t, r);
4154
+ case "TSInterfaceBody":
4155
+ case "TSTypeLiteral":
4156
+ return dt(e, t, r);
4157
+ case "TSTypeAliasDeclaration":
4158
+ return Kr(e, t, r);
4159
+ case "TSQualifiedName":
4160
+ return [r("left"), ".", r("right")];
4161
+ case "TSAbstractMethodDefinition":
4162
+ case "TSDeclareMethod":
4163
+ return dn(e, t, r);
4164
+ case "TSAbstractAccessorProperty":
4165
+ case "TSAbstractPropertyDefinition":
4166
+ return xn(e, t, r);
4167
+ case "TSInterfaceHeritage":
4168
+ case "TSClassImplements":
4169
+ case "TSExpressionWithTypeArguments":
4170
+ case "TSInstantiationExpression":
4171
+ return [r("expression"), r(n.typeArguments ? "typeArguments" : "typeParameters")];
4172
+ case "TSTemplateLiteralType":
4173
+ return qr(e, r, t);
4174
+ case "TSNamedTupleMember":
4175
+ return nn(e, t, r);
4176
+ case "TSRestType":
4177
+ return rn(e, t, r);
4178
+ case "TSOptionalType":
4179
+ return [r("typeAnnotation"), "?"];
4180
+ case "TSInterfaceDeclaration":
4181
+ return Pn(e, t, r);
4182
+ case "TSTypeParameterDeclaration":
4183
+ case "TSTypeParameterInstantiation":
4184
+ return Pt(e, t, r, "params");
4185
+ case "TSTypeParameter":
4186
+ return An(e, t, r);
4187
+ case "TSAsExpression":
4188
+ case "TSSatisfiesExpression":
4189
+ return Sn(e, t, r);
4190
+ case "TSArrayType":
4191
+ return un(r);
4192
+ case "TSPropertySignature":
4193
+ return [n.readonly ? "readonly " : "", Et(e, t, r), V(e), Y(e, r)];
4194
+ case "TSParameterProperty":
4195
+ return [Xt(n), n.static ? "static " : "", n.override ? "override " : "", n.readonly ? "readonly " : "", r("parameter")];
4196
+ case "TSTypeQuery":
4197
+ return an(e, r);
4198
+ case "TSIndexSignature": {
4199
+ let a = n.parameters.length > 1 ? b(ae(t) ? "," : "") : "", o = l([f([E, P([", ", E], e.map(r, "parameters"))]), a, E]), c = e.parent.type === "ClassBody" && e.key === "body";
4200
+ return [c && n.static ? "static " : "", n.readonly ? "readonly " : "", "[", n.parameters ? o : "", "]", Y(e, r), c ? s : ""];
4201
+ }
4202
+ case "TSTypePredicate":
4203
+ return on(e, r);
4204
+ case "TSNonNullExpression":
4205
+ return [r("expression"), "!"];
4206
+ case "TSImportType":
4207
+ return [n.isTypeOf ? "typeof " : "", "import(", r("argument"), ")", n.qualifier ? [".", r("qualifier")] : "", Pt(e, t, r, n.typeArguments ? "typeArguments" : "typeParameters")];
4208
+ case "TSLiteralType":
4209
+ return r("literal");
4210
+ case "TSIndexedAccessType":
4211
+ return en(e, t, r);
4212
+ case "TSTypeOperator":
4213
+ return [n.operator, " ", r("typeAnnotation")];
4214
+ case "TSMappedType":
4215
+ return Qi(e, t, r);
4216
+ case "TSMethodSignature": {
4217
+ let a = n.kind && n.kind !== "method" ? `${n.kind} ` : "";
4218
+ u.push(Xt(n), a, n.computed ? "[" : "", r("key"), n.computed ? "]" : "", V(e));
4219
+ let o = Je(e, r, t, false, true), c = n.returnType ? "returnType" : "typeAnnotation", m = n[c], D = m ? Y(e, r, c) : "", y = ot(n, D);
4220
+ return u.push(y ? l(o) : o), m && u.push(l(D)), l(u);
4221
+ }
4222
+ case "TSNamespaceExportDeclaration":
4223
+ return ["export as namespace ", r("id"), t.semi ? ";" : ""];
4224
+ case "TSEnumDeclaration":
4225
+ return bn(e, r, t);
4226
+ case "TSEnumMember":
4227
+ return Bn(e, r);
4228
+ case "TSImportEqualsDeclaration":
4229
+ return [n.isExport ? "export " : "", "import ", ks(n, false), r("id"), " = ", r("moduleReference"), t.semi ? ";" : ""];
4230
+ case "TSExternalModuleReference":
4231
+ return ["require(", r("expression"), ")"];
4232
+ case "TSModuleDeclaration": {
4233
+ let { parent: a } = e, o = a.type === "TSModuleDeclaration", c = ((i = n.body) == null ? void 0 : i.type) === "TSModuleDeclaration";
4234
+ if (o) u.push(".");
4235
+ else if (u.push($(e)), !(n.kind === "global" || n.global)) {
4236
+ let D = n.kind ?? (Q(n.id) || fr(t, R(n), R(n.id)).trim().endsWith("module") ? "module" : "namespace");
4237
+ u.push(D, " ");
4238
+ }
4239
+ return u.push(r("id")), c ? u.push(r("body")) : n.body ? u.push(" ", l(r("body"))) : u.push(s), u;
4240
+ }
4241
+ case "TSConditionalType":
4242
+ return Vt(e, t, r);
4243
+ case "TSInferType":
4244
+ return tn(e, t, r);
4245
+ case "TSIntersectionType":
4246
+ return zr(e, t, r);
4247
+ case "TSUnionType":
4248
+ return Qr(e, t, r);
4249
+ case "TSFunctionType":
4250
+ case "TSCallSignatureDeclaration":
4251
+ case "TSConstructorType":
4252
+ case "TSConstructSignatureDeclaration":
4253
+ return Zr(e, t, r);
4254
+ case "TSTupleType":
4255
+ return Yt(e, t, r);
4256
+ case "TSTypeReference":
4257
+ return [r("typeName"), Pt(e, t, r, n.typeArguments ? "typeArguments" : "typeParameters")];
4258
+ case "TSTypeAnnotation":
4259
+ return sn(e, t, r);
4260
+ case "TSEmptyBodyFunctionExpression":
4261
+ return fn(e, t, r);
4262
+ case "TSJSDocAllType":
4263
+ return "*";
4264
+ case "TSJSDocUnknownType":
4265
+ return "?";
4266
+ case "TSJSDocNullableType":
4267
+ return Ts(e, r, "?");
4268
+ case "TSJSDocNonNullableType":
4269
+ return Ts(e, r, "!");
4270
+ case "TSParenthesizedType":
4271
+ default:
4272
+ throw new Me(n, "TypeScript");
4273
+ }
4274
+ }
4275
+ function Hl(e, t, r, n) {
4276
+ if (Xr(e)) return ci(e, t);
4277
+ for (let s of [Ti, Ei, Pa, ka, Ca]) {
4278
+ let u = s(e, t, r, n);
4279
+ if (u !== void 0) return u;
4280
+ }
4281
+ }
4282
+ var Vl = v(["ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "ClassPrivateProperty", "MethodDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod"]);
4283
+ function $l(e, t, r, n) {
4284
+ var D;
4285
+ e.isRoot && ((D = t.__onHtmlBindingRoot) == null || D.call(t, e.node, t));
4286
+ let s = Hl(e, t, r, n);
4287
+ if (!s) return "";
4288
+ let { node: u } = e;
4289
+ if (Vl(u)) return s;
4290
+ let i = w(u.decorators), a = xi(e, t, r), o = u.type === "ClassExpression";
4291
+ if (i && !o) return ir(s, (y) => l([a, y]));
4292
+ let c = Be(e, t), m = na(e, t);
4293
+ return !a && !c && !m ? s : ir(s, (y) => [m ? ";" : "", c ? "(" : "", c && o && i ? [f([x, a, y]), x] : [a, y], c ? ")" : ""]);
4294
+ }
4295
+ var Ia = $l;
4296
+ var Kl = { avoidAstMutation: true };
4297
+ var La = [{ linguistLanguageId: 174, name: "JSON.stringify", type: "data", color: "#292929", tmScope: "source.json", aceMode: "json", codemirrorMode: "javascript", codemirrorMimeType: "application/json", aliases: ["geojson", "jsonl", "topojson"], extensions: [".importmap"], filenames: ["package.json", "package-lock.json", "composer.json"], parsers: ["json-stringify"], vscodeLanguageIds: ["json"] }, { linguistLanguageId: 174, name: "JSON", type: "data", color: "#292929", tmScope: "source.json", aceMode: "json", codemirrorMode: "javascript", codemirrorMimeType: "application/json", aliases: ["geojson", "jsonl", "topojson"], extensions: [".json", ".4DForm", ".4DProject", ".avsc", ".geojson", ".gltf", ".har", ".ice", ".JSON-tmLanguage", ".mcmeta", ".tfstate", ".tfstate.backup", ".topojson", ".webapp", ".webmanifest", ".yy", ".yyp"], filenames: [".all-contributorsrc", ".arcconfig", ".auto-changelog", ".c8rc", ".htmlhintrc", ".imgbotconfig", ".nycrc", ".tern-config", ".tern-project", ".watchmanconfig", "Pipfile.lock", "composer.lock", "flake.lock", "mcmod.info", ".babelrc", ".jscsrc", ".jshintrc", ".jslintrc", ".swcrc"], parsers: ["json"], vscodeLanguageIds: ["json"] }, { linguistLanguageId: 423, name: "JSON with Comments", type: "data", color: "#292929", group: "JSON", tmScope: "source.js", aceMode: "javascript", codemirrorMode: "javascript", codemirrorMimeType: "text/javascript", aliases: ["jsonc"], extensions: [".jsonc", ".code-snippets", ".code-workspace", ".sublime-build", ".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: [], parsers: ["jsonc"], vscodeLanguageIds: ["jsonc"] }, { linguistLanguageId: 175, name: "JSON5", type: "data", color: "#267CB9", extensions: [".json5"], tmScope: "source.js", aceMode: "javascript", codemirrorMode: "javascript", codemirrorMimeType: "application/json", parsers: ["json5"], vscodeLanguageIds: ["json5"] }];
4298
+ var Os = {};
4299
+ Ar(Os, { getVisitorKeys: () => Oa, massageAstNode: () => ja, print: () => Zl });
4300
+ var zl = { JsonRoot: ["node"], ArrayExpression: ["elements"], ObjectExpression: ["properties"], ObjectProperty: ["key", "value"], UnaryExpression: ["argument"], NullLiteral: [], BooleanLiteral: [], StringLiteral: [], NumericLiteral: [], Identifier: [], TemplateLiteral: ["quasis"], TemplateElement: [] };
4301
+ var wa = zl;
4302
+ var Ql = hr(wa);
4303
+ var Oa = Ql;
4304
+ function Zl(e, t, r) {
4305
+ let { node: n } = e;
4306
+ switch (n.type) {
4307
+ case "JsonRoot":
4308
+ return [r("node"), F];
4309
+ case "ArrayExpression": {
4310
+ if (n.elements.length === 0) return "[]";
4311
+ let s = e.map(() => e.node === null ? "null" : r(), "elements");
4312
+ return ["[", f([F, P([",", F], s)]), F, "]"];
4313
+ }
4314
+ case "ObjectExpression":
4315
+ return n.properties.length === 0 ? "{}" : ["{", f([F, P([",", F], e.map(r, "properties"))]), F, "}"];
4316
+ case "ObjectProperty":
4317
+ return [r("key"), ": ", r("value")];
4318
+ case "UnaryExpression":
4319
+ return [n.operator === "+" ? "" : n.operator, r("argument")];
4320
+ case "NullLiteral":
4321
+ return "null";
4322
+ case "BooleanLiteral":
4323
+ return n.value ? "true" : "false";
4324
+ case "StringLiteral":
4325
+ return JSON.stringify(n.value);
4326
+ case "NumericLiteral":
4327
+ return _a(e) ? JSON.stringify(String(n.value)) : JSON.stringify(n.value);
4328
+ case "Identifier":
4329
+ return _a(e) ? JSON.stringify(n.name) : n.name;
4330
+ case "TemplateLiteral":
4331
+ return r(["quasis", 0]);
4332
+ case "TemplateElement":
4333
+ return JSON.stringify(n.value.cooked);
4334
+ default:
4335
+ throw new Me(n, "JSON");
4336
+ }
4337
+ }
4338
+ function _a(e) {
4339
+ return e.key === "key" && e.parent.type === "ObjectProperty";
4340
+ }
4341
+ var em = /* @__PURE__ */ new Set(["start", "end", "extra", "loc", "comments", "leadingComments", "trailingComments", "innerComments", "errors", "range", "tokens"]);
4342
+ function ja(e, t) {
4343
+ let { type: r } = e;
4344
+ if (r === "ObjectProperty") {
4345
+ let { key: n } = e;
4346
+ n.type === "Identifier" ? t.key = { type: "StringLiteral", value: n.name } : n.type === "NumericLiteral" && (t.key = { type: "StringLiteral", value: String(n.value) });
4347
+ return;
4348
+ }
4349
+ if (r === "UnaryExpression" && e.operator === "+") return t.argument;
4350
+ if (r === "ArrayExpression") {
4351
+ for (let [n, s] of e.elements.entries()) s === null && t.elements.splice(n, 0, { type: "NullLiteral" });
4352
+ return;
4353
+ }
4354
+ if (r === "TemplateLiteral") return { type: "StringLiteral", value: e.quasis[0].value.cooked };
4355
+ }
4356
+ ja.ignoredProperties = em;
4357
+ var Er = { bracketSpacing: { category: "Common", type: "boolean", default: true, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, singleQuote: { category: "Common", type: "boolean", default: false, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: false, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: false, description: "Enforce single attribute per line in HTML, Vue and JSX." } };
4358
+ var kt = "JavaScript";
4359
+ var tm = { arrowParens: { category: kt, 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: Er.bracketSameLine, bracketSpacing: Er.bracketSpacing, jsxBracketSameLine: { category: kt, type: "boolean", description: "Put > on the last line instead of at a new line.", deprecated: "2.4.0" }, semi: { category: kt, type: "boolean", default: true, description: "Print semicolons.", oppositeDescription: "Do not print semicolons, except at the beginning of lines which may need them." }, experimentalTernaries: { category: kt, type: "boolean", default: false, 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: Er.singleQuote, jsxSingleQuote: { category: kt, type: "boolean", default: false, description: "Use single quotes in JSX." }, quoteProps: { category: kt, 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: kt, 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: Er.singleAttributePerLine };
4360
+ var va = tm;
4361
+ var rm = { estree: ws, "estree-json": Os };
4362
+ var nm = [...Us, ...La];
4363
+ var $d = _s;
4364
+
4365
+ export { $d as default, nm as languages, va as options, rm as printers };
4366
+ //# sourceMappingURL=estree-4BFMOGHF.js.map
4367
+ //# sourceMappingURL=estree-4BFMOGHF.js.map