cf 1.0.0-beta.10 → 1.0.0-beta.11

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 (305) hide show
  1. package/dist/{abuse-reports-BhSTEz7h.mjs → abuse-reports-DX5xgeka.mjs} +10 -10
  2. package/dist/{access-D4DN4XZF.mjs → access-DuHs0Mii.mjs} +1 -1
  3. package/dist/{account-tags-BWEIZLID.mjs → account-tags-CiKwgOWd.mjs} +5 -5
  4. package/dist/{accounts-ZQvIqGJz.mjs → accounts-DfXSHrkF.mjs} +62 -62
  5. package/dist/{acm-OQqE8FMc.mjs → acm-BgSr3Ig4.mjs} +7 -7
  6. package/dist/{addressing-DCFm17JQ.mjs → addressing-B70NFnrX.mjs} +49 -49
  7. package/dist/{agent-memory-BtfPt2me.mjs → agent-memory-DJRquHeq.mjs} +15 -15
  8. package/dist/{ai-B0_sZbmy.mjs → ai-CP2oIS-I.mjs} +16 -16
  9. package/dist/{ai-audit-DaubuhYF.mjs → ai-audit-Bn_BfMFS.mjs} +3 -3
  10. package/dist/{ai-gateway-CJ-1Dzzr.mjs → ai-gateway-CrrEtzUP.mjs} +44 -44
  11. package/dist/{ai-search-Dywa1kqX.mjs → ai-search-C4YWVTCa.mjs} +42 -42
  12. package/dist/{ai-security-2wxMPqKS.mjs → ai-security-Bt_fG65f.mjs} +4 -4
  13. package/dist/{alerting-yad9DYRv.mjs → alerting-CRr88fVR.mjs} +26 -26
  14. package/dist/{analytics-DKNw2fVc.mjs → analytics-XqS9OP5B.mjs} +10 -10
  15. package/dist/{analytics_engine-BA3kF46s.mjs → analytics_engine-CzmYem4f.mjs} +2 -2
  16. package/dist/{api-security-CSuYMpMO.mjs → api-security-gB1FHrHq.mjs} +57 -57
  17. package/dist/{argo-DMfNmOV4.mjs → argo-wFCAsYx7.mjs} +5 -5
  18. package/dist/{artifacts-Cb3hwClm.mjs → artifacts-qFjlNRqb.mjs} +20 -20
  19. package/dist/{audit-logs-BrjNuiLx.mjs → audit-logs-CpPUjMUP.mjs} +2 -2
  20. package/dist/auth-7Fk7PVIC.mjs +2 -0
  21. package/dist/auth-BmJ946bE.mjs +2 -0
  22. package/dist/auth-Br-t8vL_.mjs +2 -0
  23. package/dist/auth-token-DeG33BMQ.mjs +8 -0
  24. package/dist/{autoconfig-DPUztTL2.mjs → autoconfig-D-copdZG.mjs} +2 -2
  25. package/dist/{banner-ClclgnBn.mjs → banner-Xk4xBN8U.mjs} +1 -1
  26. package/dist/{basin-catalog-BLsQhJP4.mjs → basin-catalog-CshcpsAH.mjs} +17 -17
  27. package/dist/{billing-CRwD7oQS.mjs → billing-B-xNxxiP.mjs} +11 -11
  28. package/dist/{bot-management-CyW8F8Wm.mjs → bot-management-DhafeA2J.mjs} +4 -4
  29. package/dist/{botnet-feed-BBKsxf3Y.mjs → botnet-feed-D6uCLE_D.mjs} +5 -5
  30. package/dist/{brand-protection-DSeD8LXl.mjs → brand-protection-c3WiHbYn.mjs} +13 -13
  31. package/dist/{browser-run-BAcUTwB4.mjs → browser-run-D9_cwaSD.mjs} +24 -24
  32. package/dist/build-9ihDp-Gy.mjs +2 -0
  33. package/dist/{build-B5UYMEQH.mjs → build-DrG6TqMw.mjs} +1 -1
  34. package/dist/{builds-W1HEG7Bv.mjs → builds-Dl8if-2k.mjs} +32 -32
  35. package/dist/{cache-B7E_PXUp.mjs → cache-CIZokBjd.mjs} +24 -24
  36. package/dist/{certificate-authorities-D_uAJH9B.mjs → certificate-authorities-NUQzCDK8.mjs} +3 -3
  37. package/dist/{cf-Bh_fTFIj.mjs → cf-DfQfIu3q.mjs} +1 -1
  38. package/dist/{chunk-FT2NMTJB-1VFYM1Ro.mjs → chunk-FT2NMTJB-BFqlGcem.mjs} +1 -1
  39. package/dist/{chunk-KKDV4JPS-DdzLLtnl.mjs → chunk-KKDV4JPS-B_t8sDTz.mjs} +1 -1
  40. package/dist/{cli-BeXSqJAj.mjs → cli-aChy8ou_.mjs} +1 -1
  41. package/dist/{client-certificates-DqFcK_s1.mjs → client-certificates-qgLpBn8t.mjs} +6 -6
  42. package/dist/{client-side-security-DJXZ1XAu.mjs → client-side-security-DZO6Xw14.mjs} +14 -14
  43. package/dist/{cloud-connector-Czg1GdQi.mjs → cloud-connector-C7vGDCzX.mjs} +3 -3
  44. package/dist/{cloudflared-DGuau-lC.mjs → cloudflared-CEfZhSQH.mjs} +1 -1
  45. package/dist/{cloudforce-one-B1IhIZcp.mjs → cloudforce-one-CE7y5UkF.mjs} +237 -237
  46. package/dist/{command-xU78ACNA.mjs → command-07vhr56i.mjs} +1 -1
  47. package/dist/{command-DxSJy_ym.mjs → command-B6TpINoN.mjs} +1 -1
  48. package/dist/{command-BCag-xjk.mjs → command-BWC9CbE7.mjs} +1 -1
  49. package/dist/{command-B6DqnUwt.mjs → command-BsmF3J_l.mjs} +1 -1
  50. package/dist/command-C2pNxAeL.mjs +2 -0
  51. package/dist/{command-TCklVvOY.mjs → command-C65Ed0o9.mjs} +1 -1
  52. package/dist/{command-DUafPVUr.mjs → command-Cdx___59.mjs} +1 -1
  53. package/dist/{command-BOLlvEan.mjs → command-CrtDkZNs.mjs} +1 -1
  54. package/dist/{command-C__qB2mo.mjs → command-D0MKPucK.mjs} +1 -1
  55. package/dist/{command-DfffeX-k.mjs → command-DHdWKtqx.mjs} +1 -1
  56. package/dist/{command-DZookrfw.mjs → command-Ds5OVat3.mjs} +1 -1
  57. package/dist/{command-BrHTpaji.mjs → command-Dv6YavZa.mjs} +1 -1
  58. package/dist/{command-DzHL5LKI.mjs → command-dAYWrB5y.mjs} +1 -1
  59. package/dist/{command-K1-DZFJS.mjs → command-eM48o0J6.mjs} +1 -1
  60. package/dist/{command-6YTtWltE.mjs → command-maDJWJgu.mjs} +1 -1
  61. package/dist/{completions-Cm9brGAI.mjs → completions-D0280hul.mjs} +1 -1
  62. package/dist/{connector-interrupts-D93KTMkw.mjs → connector-interrupts-CVjFhU-C.mjs} +3 -3
  63. package/dist/{connector-telemetry-events-D6CmKR14.mjs → connector-telemetry-events-Bu3LKP6T.mjs} +3 -3
  64. package/dist/{connector-telemetry-snapshots-WO9IUk0e.mjs → connector-telemetry-snapshots-BbDTIc06.mjs} +3 -3
  65. package/dist/{connectors-DNT6GTW3.mjs → connectors-DGtx-rPI.mjs} +7 -7
  66. package/dist/{containers-Ce7IO-Ia.mjs → containers-CzNbBrYE.mjs} +2 -2
  67. package/dist/{containers-Btx7vCDP.mjs → containers-DEFrbNgO.mjs} +16 -16
  68. package/dist/{content-scan-C_ROsbTJ.mjs → content-scan-BCtWBCqd.mjs} +6 -6
  69. package/dist/{context-CEOHpZgd.mjs → context-CquYYyS3.mjs} +2 -2
  70. package/dist/{cps-BPQqyL2E.mjs → cps-C8BbnbuD.mjs} +1 -1
  71. package/dist/{csamScanner-D-oO5cxT.mjs → csamScanner-CsJ9H2fA.mjs} +3 -3
  72. package/dist/{ct-alerting-CnTRE1Fb.mjs → ct-alerting-CYsQZO2H.mjs} +3 -3
  73. package/dist/{custom-certificates-DvnFBZdJ.mjs → custom-certificates-CA8HqolM.mjs} +7 -7
  74. package/dist/{custom-csrs-BZ8TXbuQ.mjs → custom-csrs-D0P2vWJE.mjs} +5 -5
  75. package/dist/{custom-hostnames-CTqf-KlT.mjs → custom-hostnames-CzYMChbh.mjs} +12 -12
  76. package/dist/{custom-nameservers-B0CpnUVg.mjs → custom-nameservers-Cet3oF56.mjs} +5 -5
  77. package/dist/{custom-pages-DcoSGN56.mjs → custom-pages-DUkHIaTP.mjs} +10 -10
  78. package/dist/d1-B2duXfH2.mjs +41 -0
  79. package/dist/{dcv-delegation-yOtz90qE.mjs → dcv-delegation-BkdRVEAH.mjs} +2 -2
  80. package/dist/delegate.mjs +1 -1
  81. package/dist/{deploy-C4p6SzLH.mjs → deploy-BdWBEbLj.mjs} +1 -1
  82. package/dist/{deploy-input-DTjBGloL.mjs → deploy-input-LmLfj6kI.mjs} +1 -1
  83. package/dist/{dev-BML-bpNU.mjs → dev-BHkVwAea.mjs} +1 -1
  84. package/dist/{diagnostics-hOvnx5DT.mjs → diagnostics-9Wj5UWBL.mjs} +7 -7
  85. package/dist/{dialog-BlUXJKbA.mjs → dialog-Dpi-UVbz.mjs} +1 -1
  86. package/dist/discover-BYkHr5Ja.mjs +2 -0
  87. package/dist/{dist-DW47TUGh.mjs → dist-Cpb7_h4N.mjs} +1 -1
  88. package/dist/{dist-BuCJ_55d.mjs → dist-D1iG7guo.mjs} +1 -1
  89. package/dist/{dist-C3s9SXTd.mjs → dist-zep5OXGt.mjs} +1 -1
  90. package/dist/{dls-v6DyEWTd.mjs → dls-Caya7FZc.mjs} +8 -8
  91. package/dist/{dns-C9sUPsNt.mjs → dns-BLNa0GrP.mjs} +63 -63
  92. package/dist/{dns-firewall-EDiT-Zli.mjs → dns-firewall-ChCvC5rT.mjs} +8 -8
  93. package/dist/{dot-prop-IITUZ2XW-BilKo4kO.mjs → dot-prop-IITUZ2XW-BsZYdILY.mjs} +1 -1
  94. package/dist/dry-run-p9Q7nMZ5.mjs +2 -0
  95. package/dist/{durable-objects-C01phVwL.mjs → durable-objects-DuRbdp7N.mjs} +3 -3
  96. package/dist/{email-auth-BgvoEHJk.mjs → email-auth-C28s03aI.mjs} +3 -3
  97. package/dist/{email-routing-Bggn219w.mjs → email-routing-Ci-xjXIN.mjs} +24 -24
  98. package/dist/{email-security-_t7rzrzd.mjs → email-security-DPU6xvI9.mjs} +71 -71
  99. package/dist/{email-sending-_dKCs2VF.mjs → email-sending-kTVAlVKO.mjs} +23 -23
  100. package/dist/error-sanitization-BbEw--0B.mjs +2 -0
  101. package/dist/error-sanitization-p5rmb53x.mjs +2 -0
  102. package/dist/errors-cuuW88wR.mjs +3 -0
  103. package/dist/{fieldExtractors-Cm5QnkE0.mjs → fieldExtractors-ceaXu4zD.mjs} +4 -4
  104. package/dist/{firewall-CZEN8iA_.mjs → firewall-BND3qSY2.mjs} +18 -18
  105. package/dist/{flagship-B_SAI_ZL.mjs → flagship-DfxbNzgx.mjs} +15 -15
  106. package/dist/{fraud-9_9hobAh.mjs → fraud-DgyYv_CC.mjs} +3 -3
  107. package/dist/generate-9P8Q_RiO.mjs +2 -0
  108. package/dist/{generate-CLqGOlOx.mjs → generate-VxmGG8BF.mjs} +1 -1
  109. package/dist/{google-tag-gateway-O_N0vHRY.mjs → google-tag-gateway-v3p7murv.mjs} +3 -3
  110. package/dist/{healthchecks-Bt3Gw_JZ.mjs → healthchecks-CByb4qYA.mjs} +10 -10
  111. package/dist/{hostnames-DdOube3R.mjs → hostnames-3CqeMF5g.mjs} +6 -6
  112. package/dist/{hyperdrive-C14NAh9l.mjs → hyperdrive-CmyYTE-K.mjs} +9 -9
  113. package/dist/{iam-DUW7neMx.mjs → iam-CV_M681j.mjs} +24 -24
  114. package/dist/{images-B9dnr1z0.mjs → images-DaLPjskW.mjs} +38 -38
  115. package/dist/index.mjs +1 -1
  116. package/dist/{init-BGcAIvV7.mjs → init-CBKifk5L.mjs} +2 -2
  117. package/dist/{intel-BQpZMck3.mjs → intel-MpftjuPB.mjs} +37 -37
  118. package/dist/interactive-mJQ_IrGd.mjs +2 -0
  119. package/dist/{ips-PT_uQKAf.mjs → ips-WWvPwSBc.mjs} +1 -1
  120. package/dist/{k2-nPYti7Y0.mjs → k2-D0QYUFqT.mjs} +6 -6
  121. package/dist/{keyless-certificates-BHvas2q1.mjs → keyless-certificates-DqILy3t9.mjs} +6 -6
  122. package/dist/{keys-O5kAW9ox.mjs → keys-DhX4AcqF.mjs} +2 -2
  123. package/dist/{kv-BUP_ZLM_.mjs → kv-DLUfUL0_.mjs} +9 -9
  124. package/dist/{lazy-command-glNW3jzf.mjs → lazy-command--5YpWUVY.mjs} +1 -1
  125. package/dist/{leaked-credential-checks-De9hI1rl.mjs → leaked-credential-checks-C0U1oYM5.mjs} +8 -8
  126. package/dist/{load-balancers-Cs6bUHS1.mjs → load-balancers-BJKI9lm7.mjs} +39 -39
  127. package/dist/local-DkYQiSQQ.mjs +2 -0
  128. package/dist/{local-B5oRPTEN.mjs → local-rYpzEQb-.mjs} +1 -1
  129. package/dist/{local-runtime-CZnegFEM.mjs → local-runtime-DZTTIe6x.mjs} +1 -1
  130. package/dist/{login-C5nSIS-T.mjs → login-CnE2Ii_F.mjs} +1 -1
  131. package/dist/login-bnylLTit.mjs +5 -0
  132. package/dist/{logo-matches-BkQKdu4Z.mjs → logo-matches-DFZybI0C.mjs} +3 -3
  133. package/dist/{logos-C_sv-boo.mjs → logos-Da2YtqSN.mjs} +4 -4
  134. package/dist/{logpush-NUcyMKHi.mjs → logpush-Q7WIEHS1.mjs} +23 -23
  135. package/dist/{logs-BZT4PlqZ.mjs → logs-c3b3USyS.mjs} +12 -12
  136. package/dist/{magic-cloud-networking-DQnSdmgA.mjs → magic-cloud-networking-BoyDmFq3.mjs} +37 -37
  137. package/dist/{magic-network-monitoring-pHTU6aS8.mjs → magic-network-monitoring-BkUbpMUp.mjs} +18 -18
  138. package/dist/{magic-transit-5302bQNh.mjs → magic-transit-4-THD45G.mjs} +161 -161
  139. package/dist/{managed-defense-8OEfDzuO.mjs → managed-defense-CTMqSp6z.mjs} +9 -9
  140. package/dist/{managed-transforms-CCpUz4TY.mjs → managed-transforms-DcYAvqTe.mjs} +4 -4
  141. package/dist/{matches-BSiYXs99.mjs → matches-hnU16rSJ.mjs} +3 -3
  142. package/dist/{mcp-CCMiS75R.mjs → mcp-kZX4irfN.mjs} +15 -15
  143. package/dist/{mesh-DKBGTlCD.mjs → mesh-Dxzvvso6.mjs} +12 -12
  144. package/dist/{migrate-BJ9Go_wP.mjs → migrate-BNvUWrjy.mjs} +1 -1
  145. package/dist/{monetization-CFf_lb6x.mjs → monetization-Dsqj9DCA.mjs} +11 -11
  146. package/dist/{mtls-certificates-DsF3NFNs.mjs → mtls-certificates-BSbMwIna.mjs} +6 -6
  147. package/dist/{network-interconnects-YiRUBbjx.mjs → network-interconnects-osO_vAPu.mjs} +17 -17
  148. package/dist/{network-Bm0qYRqY.mjs → network-mEnXTEiG.mjs} +24 -24
  149. package/dist/{oauth-cNZUky3h.mjs → oauth-CeZ3d_dB.mjs} +2 -2
  150. package/dist/{oauth-clients-CP6alY0_.mjs → oauth-clients-CWPHi-Yn.mjs} +7 -7
  151. package/dist/{oauth-scopes-xl-pcWdg.mjs → oauth-scopes-CxpRD6d7.mjs} +1 -1
  152. package/dist/{oauth-DxGgIwFc.mjs → oauth-w0fWmrwU.mjs} +1 -1
  153. package/dist/{observability-Bp71PtlD.mjs → observability-BxL2RqWZ.mjs} +44 -44
  154. package/dist/{organization-Dbom1gTR.mjs → organization-DNieJ1xJ.mjs} +1 -1
  155. package/dist/{organizations-OUMVsuen.mjs → organizations-BIXPmTy5.mjs} +1 -1
  156. package/dist/{origin-ca-certificates-B3-T0-Nn.mjs → origin-ca-certificates-dVJvSIH8.mjs} +1 -1
  157. package/dist/{origin-post-quantum-encryption-CGB6AfPa.mjs → origin-post-quantum-encryption-CO6tDW1t.mjs} +3 -3
  158. package/dist/{origin-tls-client-auth-CgzzfAWr.mjs → origin-tls-client-auth-DeTY8aN2.mjs} +14 -14
  159. package/dist/output-ClYel9WX.mjs +2 -0
  160. package/dist/{page-rules-B9BQKU4_.mjs → page-rules-DA552Ra4.mjs} +7 -7
  161. package/dist/{pages-DZPdyuT4.mjs → pages-B0x7tidm.mjs} +27 -27
  162. package/dist/{pay-per-crawl-CnveMVDi.mjs → pay-per-crawl-DoTg9VP7.mjs} +32 -32
  163. package/dist/{pay-per-use-Bpxe8PHv.mjs → pay-per-use-yRO2QBfe.mjs} +3 -3
  164. package/dist/{pipelines-CHev3o5G.mjs → pipelines-CQxrm9ao.mjs} +20 -20
  165. package/dist/{precursor-C9PK9Bue.mjs → precursor-FiGYDRV9.mjs} +2 -2
  166. package/dist/previews-BthBa50j.mjs +4 -0
  167. package/dist/{progress-A61dRbXl.mjs → progress-TLUEIYE6.mjs} +1 -1
  168. package/dist/{prompt-CGUzvBgY.mjs → prompt-Ck_1PCHm.mjs} +1 -1
  169. package/dist/{queries-f-btyefs.mjs → queries-C0RRdol7.mjs} +4 -4
  170. package/dist/{queues-kLNdeb3q.mjs → queues-sLgvjsRP.mjs} +26 -26
  171. package/dist/{r2-D_awYx2p.mjs → r2-C2PllL6i.mjs} +63 -63
  172. package/dist/{radar-CU4T02Ag.mjs → radar-Bez6k9Dw.mjs} +1 -1
  173. package/dist/raw-fetch-DNxNCoeP.mjs +2 -0
  174. package/dist/{realtime-C0dvcBBM.mjs → realtime-D-HSXznX.mjs} +78 -78
  175. package/dist/{registrar-CHc-4vcf.mjs → registrar-DwHrG9QR.mjs} +9 -9
  176. package/dist/{registrar-sandbox-Dq8LV2AI.mjs → registrar-sandbox-jNukmzQP.mjs} +6 -6
  177. package/dist/{registry-Cg5lP8oo.mjs → registry-CsSLAAOE.mjs} +1 -1
  178. package/dist/{reporting-4u21g6Dk.mjs → reporting-DolhAb10.mjs} +7 -7
  179. package/dist/{request-headers-D31kdxrQ.mjs → request-headers-Lhj314mk.mjs} +1 -1
  180. package/dist/{request-tracers-CupJ_83j.mjs → request-tracers-w72hKc33.mjs} +2 -2
  181. package/dist/resolve-Djf2xgBx.mjs +2 -0
  182. package/dist/{resource-sharing-CO-Lh-u7.mjs → resource-sharing-DTrSkqI4.mjs} +18 -18
  183. package/dist/{resource-tagging-D0R5SzR6.mjs → resource-tagging-aURR4fIJ.mjs} +2 -2
  184. package/dist/{rules-BsmKzB9H.mjs → rules-C8a7cV-W.mjs} +8 -8
  185. package/dist/{rulesets-HOOnxHZZ.mjs → rulesets-RJ6yBefy.mjs} +17 -17
  186. package/dist/{rum-wcLEvVJl.mjs → rum-Bk1dPW4p.mjs} +14 -14
  187. package/dist/run-BJOAPmsz.mjs +2 -0
  188. package/dist/{run-CIJTelJL.mjs → run-iFM5TxtQ.mjs} +1 -1
  189. package/dist/{schema-flags-D8vL2oiF.mjs → schema-flags-PagOq-G2.mjs} +1 -1
  190. package/dist/{schema-GdBsV4P7.mjs → schema-v7mOxMdx.mjs} +1 -1
  191. package/dist/{scim-BkdJmAS8.mjs → scim-C0FmjkkV.mjs} +10 -10
  192. package/dist/{secrets-store-CHs0oYA0.mjs → secrets-store-cG_5RMzK.mjs} +11 -11
  193. package/dist/{security-insights-vsl-4xFa.mjs → security-insights-DVAqroY5.mjs} +20 -20
  194. package/dist/{security-txt-Fnl3LdSn.mjs → security-txt-rfrrdiZV.mjs} +4 -4
  195. package/dist/{session-CZTuHcbm.mjs → session-B6mFkaVZ.mjs} +1 -1
  196. package/dist/shared-BqsWoApw.mjs +2 -0
  197. package/dist/{smart-shield-DB0E7cZI.mjs → smart-shield-_HA814Im.mjs} +11 -11
  198. package/dist/{snippets-CFaF_NyG.mjs → snippets-mRelEw0p.mjs} +10 -10
  199. package/dist/{spawn-B0Sl8lUu.mjs → spawn-BzPhcLJI.mjs} +1 -1
  200. package/dist/{spectrum-DtG0jYjE.mjs → spectrum-BwtOiaDw.mjs} +11 -11
  201. package/dist/{speed-B-RiNHGK.mjs → speed-DmqsZtiJ.mjs} +11 -11
  202. package/dist/{src-CM3XaB4p.mjs → src--KDGqL5N.mjs} +5 -5
  203. package/dist/{ssl-DBVpCZAM.mjs → ssl-DCvfveJB.mjs} +16 -16
  204. package/dist/{startup-profile-CR7GMuLx.mjs → startup-profile-BCe9k9sR.mjs} +1 -1
  205. package/dist/startup-profile-WrwRyMwH.mjs +2 -0
  206. package/dist/{state-BaGRaYow.mjs → state-BPwdiNO_.mjs} +1 -1
  207. package/dist/state-a1tTOGjm.mjs +2 -0
  208. package/dist/{stream-cAdBvpS1.mjs → stream-aroClJeD.mjs} +56 -56
  209. package/dist/{submit-Bkd7l2rK.mjs → submit-BBKhoKT8.mjs} +2 -2
  210. package/dist/{tags--eph7JbN.mjs → tags-Djw0e-4j.mjs} +2 -2
  211. package/dist/telemetry-DoBQOGRk.mjs +2 -0
  212. package/dist/{telemetry-51etasAu.mjs → telemetry-DrFNujdx.mjs} +1 -1
  213. package/dist/{tenant-custom-nameservers-B5IIIwbz.mjs → tenant-custom-nameservers-XCbXryBZ.mjs} +1 -1
  214. package/dist/{tenant-Bj-He2xO.mjs → tenant-tc1wb_ym.mjs} +1 -1
  215. package/dist/{tools-BJZ0DDlL.mjs → tools-CB4NleeJ.mjs} +1 -1
  216. package/dist/{tunnels-CgtuRpcD.mjs → tunnels-C2FTswb6.mjs} +13 -13
  217. package/dist/{turnstile-Bmcnrzw7.mjs → turnstile-BV4Mdd-j.mjs} +6 -6
  218. package/dist/{ui-BQxRjahW.mjs → ui-D1hhIDIs.mjs} +1 -1
  219. package/dist/update-check-CFt6cMOi.mjs +2 -0
  220. package/dist/{update-check-DC0qP_8z.mjs → update-check-Dtj9fzNe.mjs} +1 -1
  221. package/dist/update-check-worker.mjs +1 -1
  222. package/dist/{url-info-DhVehaT8.mjs → url-info-CeegsDK7.mjs} +2 -2
  223. package/dist/{url-normalization-BpGDUUQc.mjs → url-normalization-Dbypc9wz.mjs} +4 -4
  224. package/dist/{url-scanner-DiLdqsQk.mjs → url-scanner-BFXMrpJF.mjs} +8 -8
  225. package/dist/{user-B6P5_OjP.mjs → user-3uwLMH78.mjs} +1 -1
  226. package/dist/{values-Cxx4Lxrd.mjs → values-BTncDc3U.mjs} +2 -2
  227. package/dist/{vectorize-YyxVpql-.mjs → vectorize-CtMAtx8r.mjs} +17 -17
  228. package/dist/version-oN1bmOgM.mjs +2 -0
  229. package/dist/{waiting-rooms-BdahlCdD.mjs → waiting-rooms-1xDvjF13.mjs} +25 -25
  230. package/dist/{web-assets-yaKxN4w_.mjs → web-assets-BfEprX1S.mjs} +29 -29
  231. package/dist/{web3-Bu9c_QAt.mjs → web3-DNbp5sZw.mjs} +13 -13
  232. package/dist/{workers-5GgoGA2e.mjs → workers-DK_JgS4Y.mjs} +18 -18
  233. package/dist/{workers-builds-h-1FJjE1.mjs → workers-builds-CdhwmmsQ.mjs} +7 -7
  234. package/dist/{workers-for-platforms-CV9iRrp9.mjs → workers-for-platforms-CP6IqxrK.mjs} +23 -23
  235. package/dist/{workers-vpc-C1oUHHqk.mjs → workers-vpc-LVfayM2-.mjs} +6 -6
  236. package/dist/{workflows-dtMlkj1-.mjs → workflows-CA5K8FFb.mjs} +23 -23
  237. package/dist/{wrangler-migration-CJEb9hY3.mjs → wrangler-migration-B0mKHqGd.mjs} +1 -1
  238. package/dist/{zaraz-838AbMEX.mjs → zaraz-BY60ZUQ4.mjs} +11 -11
  239. package/dist/{zero-trust-CYt-eELJ.mjs → zero-trust-CQNohO7_.mjs} +416 -416
  240. package/dist/{zone-uJwRLSnn.mjs → zone-BVDW2UGd.mjs} +2 -2
  241. package/dist/{zones-Dpofsnth.mjs → zones-CcZL0YQp.mjs} +44 -44
  242. package/package.json +9 -4
  243. package/dist/auth-BBlAI8HG.mjs +0 -2
  244. package/dist/auth-BIr56Mbx.mjs +0 -8
  245. package/dist/build-DLZ9gBNA.mjs +0 -2
  246. package/dist/command-CAtsHc1V.mjs +0 -2
  247. package/dist/d1-m7UfzBzl.mjs +0 -41
  248. package/dist/discover-DwczTkRX.mjs +0 -2
  249. package/dist/dry-run-Bq0JAsbX.mjs +0 -2
  250. package/dist/error-sanitization-CJ5OLJrh.mjs +0 -2
  251. package/dist/error-sanitization-hmi1CqE5.mjs +0 -2
  252. package/dist/generate-BPqoDbck.mjs +0 -2
  253. package/dist/interactive-SgAjen2z.mjs +0 -2
  254. package/dist/local-Bj-l0TP6.mjs +0 -2
  255. package/dist/login-CUup7w0e.mjs +0 -5
  256. package/dist/output-CvQFJkvi.mjs +0 -2
  257. package/dist/previews-BIMI1dTz.mjs +0 -4
  258. package/dist/raw-fetch-CvkmFO23.mjs +0 -2
  259. package/dist/resolve-PZuJ878-.mjs +0 -2
  260. package/dist/run-quhbAvQi.mjs +0 -2
  261. package/dist/sdk-BCzcRJCi.mjs +0 -3
  262. package/dist/shared-BS30oCf8.mjs +0 -2
  263. package/dist/startup-profile-CLmojOrn.mjs +0 -2
  264. package/dist/state-CpXhcMdX.mjs +0 -2
  265. package/dist/telemetry-Q3_UmwHj.mjs +0 -2
  266. package/dist/update-check-BqSpgzHk.mjs +0 -2
  267. package/dist/version-C0pInAZ9.mjs +0 -2
  268. /package/dist/{Page-CjJht2qT.mjs → Page-DAgOEX17.mjs} +0 -0
  269. /package/dist/{alerts-DY_7Nknx.mjs → alerts-D3iKtzoN.mjs} +0 -0
  270. /package/dist/{autorag-K396-M2S.mjs → autorag-pvRfDwne.mjs} +0 -0
  271. /package/dist/{body-parser-hh2avzkz.mjs → body-parser-NjzJZMOV.mjs} +0 -0
  272. /package/dist/{brands-DeLbFxSt.mjs → brands-DP5Ndir1.mjs} +0 -0
  273. /package/dist/{browser-extension-C1zmKFDG.mjs → browser-extension-Dee2Y1qn.mjs} +0 -0
  274. /package/dist/{chunk-WMOON6TZ-D_ToS88f.mjs → chunk-WMOON6TZ-B8xCqjB1.mjs} +0 -0
  275. /package/dist/{clear-CRfI7WS7.mjs → clear-qLKPlJqb.mjs} +0 -0
  276. /package/dist/{cli-types-DoVT5q_M.mjs → cli-types-_Kmwfpnp.mjs} +0 -0
  277. /package/dist/{connector-telemetry-events-latest-D8p_dR8s.mjs → connector-telemetry-events-latest-_aCmWeZx.mjs} +0 -0
  278. /package/dist/{connector-telemetry-snapshots-latest-COFmzmlk.mjs → connector-telemetry-snapshots-latest-CffEplpV.mjs} +0 -0
  279. /package/dist/{delegate-B6LetRpZ.mjs → delegate-CCGgla7X.mjs} +0 -0
  280. /package/dist/{discover-C5aiI6u0.mjs → discover-t6E9lpf3.mjs} +0 -0
  281. /package/dist/{domain-info-aiwP60Fo.mjs → domain-info-BQh9XapD.mjs} +0 -0
  282. /package/dist/{gt-DmcMNPX6.mjs → gt-KlYHH-UC.mjs} +0 -0
  283. /package/dist/{health-Bz33n-_F.mjs → health--10IShMi.mjs} +0 -0
  284. /package/dist/{input-validation-Dk52b0me.mjs → input-validation-0CeePPHp.mjs} +0 -0
  285. /package/dist/{interactive-C-o16XQs.mjs → interactive-D80kbTap.mjs} +0 -0
  286. /package/dist/{internal-BHrJbbdA.mjs → internal-BUs583vv.mjs} +0 -0
  287. /package/dist/{lifecycle-C7tAC1Mn.mjs → lifecycle-Cyc3fmyN.mjs} +0 -0
  288. /package/dist/{live-MeJQXIei.mjs → live-VCSxA0N9.mjs} +0 -0
  289. /package/dist/{open-PCXX3ZDZ-BKRik1gi.mjs → open-PCXX3ZDZ-C7gpxSsl.mjs} +0 -0
  290. /package/dist/{project-settings-DO6njFg_.mjs → project-settings-Bf6rReo1.mjs} +0 -0
  291. /package/dist/{r2-data-catalog-2jQrdAdo.mjs → r2-data-catalog-Bg7zq1IB.mjs} +0 -0
  292. /package/dist/{rate-limit-analytics-CU55zqCU.mjs → rate-limit-analytics-D3q0mGv2.mjs} +0 -0
  293. /package/dist/{rate-limits-CZ-qHDPK.mjs → rate-limits-BIxlBuMn.mjs} +0 -0
  294. /package/dist/{ready-BOpbZ1pN.mjs → ready-CAgelFmC.mjs} +0 -0
  295. /package/dist/{recent-submissions-KDqD2HyS.mjs → recent-submissions-B3TOjNmk.mjs} +0 -0
  296. /package/dist/{refute-DkF4XIMw.mjs → refute-BZNkFpBB.mjs} +0 -0
  297. /package/dist/{resolve-BCTrtcx7.mjs → resolve-CGKqk7q8.mjs} +0 -0
  298. /package/dist/{scan-logo-DQkf6glG.mjs → scan-logo-StecHiaf.mjs} +0 -0
  299. /package/dist/{scan-page-CMOJ_E0n.mjs → scan-page-B4adr-vD.mjs} +0 -0
  300. /package/dist/{search-Bre1Zwn3.mjs → search-Devngw4M.mjs} +0 -0
  301. /package/dist/{signed-url-24ZbX4yV.mjs → signed-url-ChR5eXXd.mjs} +0 -0
  302. /package/dist/{submission-info-BmkbZVqM.mjs → submission-info-BGb81HZN.mjs} +0 -0
  303. /package/dist/{total-queries-j8OAF_cE.mjs → total-queries-_wa6KxEl.mjs} +0 -0
  304. /package/dist/{tracked-domains-fe3EWYmF.mjs → tracked-domains-BesKGqfI.mjs} +0 -0
  305. /package/dist/{verify-CKgZYvln.mjs → verify-CYM5GlPu.mjs} +0 -0
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,n as t,r as n}from"./source-38bULAR8.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";import{A as i,At as a,C as o,Ct as s,Et as c,a as l,c as u,i as d,it as f,kt as p,l as m,n as h,s as g,t as _,w as v,xt as y}from"./dist-BuCJ_55d.mjs";import{a as b,i as x,n as S,o as C,r as w,s as T,t as E}from"./chunk-WMOON6TZ-D_ToS88f.mjs";import{C as D,E as O,S as ee,T as k,_ as te,i as ne,l as A,n as j,o as M,s as N,y as P}from"./interactive-C-o16XQs.mjs";import{n as re}from"./dist-DW47TUGh.mjs";import{n as ie,r as ae,t as oe}from"./dialog-BlUXJKbA.mjs";import{n as F}from"./wrangler-migration-CJEb9hY3.mjs";import{createRequire as I}from"node:module";import{basename as se,dirname as L,isAbsolute as ce,join as le,relative as ue,resolve as de}from"path";import{promises as fe}from"fs";import{appendFileSync as pe,existsSync as R,mkdirSync as me,promises as he,readFileSync as ge,statSync as _e,writeFileSync as ve}from"node:fs";import z,{basename as ye,join as B,relative as be,resolve as xe}from"node:path";import{fileURLToPath as Se}from"node:url";import V from"node:process";import Ce,{constants as we}from"node:os";import Te from"node:tty";import{readFile as Ee,readdir as De,stat as Oe,writeFile as ke}from"node:fs/promises";import{constants as Ae}from"os";import H from"node:assert";import{Buffer as je}from"node:buffer";import{Console as Me}from"node:console";import Ne from"node:child_process";import{InputConfigSchema as Pe,convertToWranglerConfig as Fe}from"@cloudflare/config";var Ie=t(((e,t)=>{t.exports=o,o.sync=s;var r=n(`fs`);function i(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function a(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:i(t,n)}function o(e,t,n){r.stat(e,function(r,i){n(r,r?!1:a(i,e,t))})}function s(e,t){return a(r.statSync(e),e,t)}})),Le=t(((e,t)=>{t.exports=i,i.sync=a;var r=n(`fs`);function i(e,t,n){r.stat(e,function(e,r){n(e,e?!1:o(r,t))})}function a(e,t){return o(r.statSync(e),t)}function o(e,t){return e.isFile()&&s(e,t)}function s(e,t){var n=e.mode,r=e.uid,i=e.gid,a=t.uid===void 0?process.getuid&&process.getuid():t.uid,o=t.gid===void 0?process.getgid&&process.getgid():t.gid,s=64,c=8,l=1,u=s|c;return n&l||n&c&&i===o||n&s&&r===a||n&u&&a===0}})),Re=t(((e,t)=>{n(`fs`);var r=process.platform===`win32`||global.TESTING_WINDOWS?Ie():Le();t.exports=i,i.sync=a;function i(e,t,n){if(typeof t==`function`&&(n=t,t={}),!n){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}function a(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),ze=t(((e,t)=>{let r=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=n(`path`),a=r?`;`:`:`,o=Re(),s=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),c=(e,t)=>{let n=t.colon||a,i=e.match(/\//)||r&&e.match(/\\/)?[``]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(n)],o=r?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=r?o.split(n):[``];return r&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:i,pathExt:s,pathExtExe:o}},l=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||={};let{pathEnv:r,pathExt:a,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise((a,o)=>{if(n===r.length)return t.all&&u.length?a(u):o(s(e));let c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(l,e);a(f(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d,n,0))}),f=(e,n,r)=>new Promise((i,s)=>{if(r===a.length)return i(d(n+1));let c=a[r];o(e+c,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+c);else return i(e+c);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};t.exports=l,l.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s<n.length;s++){let c=n[s],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<r.length;e++){let n=f+r[e];try{if(o.sync(n,{pathExt:a}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw s(e)}})),Be=t(((e,t)=>{let n=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`};t.exports=n,t.exports.default=n})),Ve=t(((e,t)=>{let r=n(`path`),i=ze(),a=Be();function o(e,t){let n=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=i.sync(e.command,{path:n[a({env:n})],pathExt:t?r.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=r.resolve(s?e.options.cwd:``,l),l}function s(e){return o(e)||o(e,!0)}t.exports=s})),He=t(((e,t)=>{let n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),Ue=t(((e,t)=>{t.exports=/^#!(.*)/})),We=t(((e,t)=>{let n=Ue();t.exports=(e=``)=>{let t=e.match(n);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,``).split(` `),a=r.split(`/`).pop();return a===`env`?i:i?`${a} ${i}`:a}})),Ge=t(((e,t)=>{let r=n(`fs`),i=We();function a(e){let t=Buffer.alloc(150),n;try{n=r.openSync(e,`r`),r.readSync(n,t,0,150,0),r.closeSync(n)}catch{}return i(t.toString())}t.exports=a})),Ke=t(((e,t)=>{let r=n(`path`),i=Ve(),a=He(),o=Ge(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),n=!c.test(t);if(e.options.forceShell||n){let n=l.test(t);e.command=r.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,n)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function f(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:d(r)}t.exports=f})),qe=t(((e,t)=>{let n=process.platform===`win32`;function r(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}})),Je=e(t(((e,t)=>{let r=n(`child_process`),i=Ke(),a=qe();function o(e,t,n){let o=i(e,t,n),s=r.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,n){let o=i(e,t,n),s=r.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}t.exports=o,t.exports.spawn=o,t.exports.sync=s,t.exports._parse=i,t.exports._enoent=a}))(),1);const Ye=async(e,t={})=>Xe({useSpinner:t.useSpinner??t.silent,startText:t.startText||Ze(e),doneText:t.doneText,promise(){let[n,...r]=e,i=new AbortController,a=(0,Je.spawn)(n,[...r],{stdio:t.silent?`pipe`:`inherit`,env:{...process.env,...t.env},cwd:t.cwd,signal:i.signal}),o=``;(t.captureOutput??t.silent)&&(a.stdout?.on(`data`,e=>{o+=e}),a.stderr?.on(`data`,e=>{o+=e}));let s=null;return new Promise((e,n)=>{let r=e=>{n(new ee(`Command cancelled`,e)),i.abort(e?`${e} received`:null)};process.on(`SIGTERM`,r).on(`SIGINT`,r),s=()=>{process.off(`SIGTERM`,r).off(`SIGINT`,r)},a.on(`close`,r=>{try{if(r!==0)throw Error(o,{cause:r});e((t.transformOutput??(e=>e))(te(o)))}catch(e){n(Error(o,{cause:e}))}}),a.on(`error`,e=>{n(e)})}).finally(()=>{s?.()})}}),Xe=async({promise:e,...t})=>{let n;t.useSpinner&&ne()&&(n=M()),n?.start(t?.startText),typeof e==`function`&&(e=e());try{let r=await e,i=typeof t.doneText==`function`?t.doneText(r):t.doneText;n?.stop(i)}catch(e){n?.stop(e.message)}finally{n?.stop()}return e};function Ze(e){if(process.platform===`win32`){let t=/[&<>[\]|{}^=;!'+,`~\s]/;return e.map(e=>e.match(t)?`"${e.replaceAll(`"`,`""`)}"`:e).join(` `)}else return e.map(e=>/["\s]/.test(e)&&!/'/.test(e)?`'`+e.replace(/(['\\])/g,`\\$1`)+`'`:/["'\s]/.test(e)?`"`+e.replace(/(["\\$`!])/g,`\\$1`)+`"`:e).join(` `)}const Qe=async(e,t,n={})=>{let{cwd:r=process.cwd(),force:i,dev:a,startText:o,doneText:l}=n,u=n.isWorkspaceRoot??!1;if(t.length===0){let n;switch(e){case`yarn`:break;default:n=`install`;break}await Ye([e,...n?[n]:[],...t,...e===`pnpm`||e===`nub`?[`--no-frozen-lockfile`]:[],...i===!0?[`--force`]:[],...$e(e,u)],{cwd:r,startText:o,doneText:l,silent:!0});return}let d,f;switch(e){case`yarn`:f=`add`,d=a?`-D`:``;break;case`bun`:f=`add`,d=a?`-d`:``;break;default:f=`install`,d=a?`--save-dev`:``;break}if(await Ye([e,f,...d?[d]:[],...t,...i===!0?[`--force`]:[],...$e(e,u)],{cwd:r,startText:o,doneText:l,silent:!0}),e===`npm`){let e=z.join(r,`package.json`),i=s(c(e),e),a=n.dev?i.devDependencies:i.dependencies;H(a,`dependencies should be defined`);for(let e of t){let t=e.lastIndexOf(`@`);if(t>0){let n=e.slice(0,t),r=e.slice(t+1);r!==`latest`&&(a[n]=r)}}await ke(e,JSON.stringify(i,null,2))}};function $e(e,t){if(!t)return[];switch(e){case`pnpm`:case`nub`:return[`--workspace-root`];case`yarn`:return[`-W`];case`npm`:case`bun`:return[]}}async function et(e,t){let n=[`wrangler@latest`];tt(`@cloudflare/workers-types`)&&n.push(`@cloudflare/workers-types@latest`),await Qe(e,n,{dev:!0,isWorkspaceRoot:t,startText:`Installing wrangler ${O(`A command line tool for building Cloudflare Workers`)}`,doneText:`${k(`installed`)} ${O(`via \`${e} install wrangler --save-dev\``)}`})}function tt(e){let t=z.join(process.cwd(),`package.json`);if(!R(t))return!1;let n=s(c(t),t);return!!(n.dependencies?.[e]||n.devDependencies?.[e])}function nt(e){let t=R(e);t||ve(e,``);let n=c(e),r=[],i=n.match(/^\/?\.wrangler(\/|\s|$)/m);if(i||r.push(`.wrangler`),n.match(/^\/?\.dev\.vars\*(\s|$)/m)||r.push(`.dev.vars*`),n.match(/^!\/?\.dev\.vars\.example(\s|$)/m)||r.push(`!.dev.vars.example`),n.match(/^\/?\.env\*?(\..*?)?(\s|$)/m)||r.push(`.env*`),n.match(/^!\/?\.env\.example(\s|$)/m)||r.push(`!.env.example`),r.length===0)return;let a=M();a.start(`Adding Wrangler files to the ${ye(e)} file`);let o=[...t?[``,...n.match(/\n\s*$/)?[]:[``]]:[]];!i&&r.length>1&&o.push(`# wrangler files`),r.forEach(e=>o.push(e)),o.push(``),pe(e,o.join(`
2
+ import{i as e,n as t,r as n}from"./source-38bULAR8.mjs";import{t as r}from"./cli-exit-Dqoo6Jgb.mjs";import{A as i,At as a,C as o,Ct as s,Et as c,a as l,c as u,i as d,it as f,kt as p,l as m,n as h,s as g,t as _,w as v,xt as y}from"./dist-D1iG7guo.mjs";import{a as b,i as x,n as S,o as C,r as w,s as T,t as E}from"./chunk-WMOON6TZ-B8xCqjB1.mjs";import{C as D,E as O,S as ee,T as k,_ as te,i as ne,l as A,n as j,o as M,s as N,y as P}from"./interactive-D80kbTap.mjs";import{n as re}from"./dist-Cpb7_h4N.mjs";import{n as ie,r as ae,t as oe}from"./dialog-Dpi-UVbz.mjs";import{n as F}from"./wrangler-migration-B0mKHqGd.mjs";import{createRequire as I}from"node:module";import{basename as se,dirname as L,isAbsolute as ce,join as le,relative as ue,resolve as de}from"path";import{promises as fe}from"fs";import{appendFileSync as pe,existsSync as R,mkdirSync as me,promises as he,readFileSync as ge,statSync as _e,writeFileSync as ve}from"node:fs";import z,{basename as ye,join as B,relative as be,resolve as xe}from"node:path";import{fileURLToPath as Se}from"node:url";import V from"node:process";import Ce,{constants as we}from"node:os";import Te from"node:tty";import{readFile as Ee,readdir as De,stat as Oe,writeFile as ke}from"node:fs/promises";import{constants as Ae}from"os";import H from"node:assert";import{Buffer as je}from"node:buffer";import{Console as Me}from"node:console";import Ne from"node:child_process";import{InputConfigSchema as Pe,convertToWranglerConfig as Fe}from"@cloudflare/config";var Ie=t(((e,t)=>{t.exports=o,o.sync=s;var r=n(`fs`);function i(e,t){var n=t.pathExt===void 0?process.env.PATHEXT:t.pathExt;if(!n||(n=n.split(`;`),n.indexOf(``)!==-1))return!0;for(var r=0;r<n.length;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function a(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:i(t,n)}function o(e,t,n){r.stat(e,function(r,i){n(r,r?!1:a(i,e,t))})}function s(e,t){return a(r.statSync(e),e,t)}})),Le=t(((e,t)=>{t.exports=i,i.sync=a;var r=n(`fs`);function i(e,t,n){r.stat(e,function(e,r){n(e,e?!1:o(r,t))})}function a(e,t){return o(r.statSync(e),t)}function o(e,t){return e.isFile()&&s(e,t)}function s(e,t){var n=e.mode,r=e.uid,i=e.gid,a=t.uid===void 0?process.getuid&&process.getuid():t.uid,o=t.gid===void 0?process.getgid&&process.getgid():t.gid,s=64,c=8,l=1,u=s|c;return n&l||n&c&&i===o||n&s&&r===a||n&u&&a===0}})),Re=t(((e,t)=>{n(`fs`);var r=process.platform===`win32`||global.TESTING_WINDOWS?Ie():Le();t.exports=i,i.sync=a;function i(e,t,n){if(typeof t==`function`&&(n=t,t={}),!n){if(typeof Promise!=`function`)throw TypeError(`callback not provided`);return new Promise(function(n,r){i(e,t||{},function(e,t){e?r(e):n(t)})})}r(e,t||{},function(e,r){e&&(e.code===`EACCES`||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)})}function a(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code===`EACCES`)return!1;throw e}}})),ze=t(((e,t)=>{let r=process.platform===`win32`||process.env.OSTYPE===`cygwin`||process.env.OSTYPE===`msys`,i=n(`path`),a=r?`;`:`:`,o=Re(),s=e=>Object.assign(Error(`not found: ${e}`),{code:`ENOENT`}),c=(e,t)=>{let n=t.colon||a,i=e.match(/\//)||r&&e.match(/\\/)?[``]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||``).split(n)],o=r?t.pathExt||process.env.PATHEXT||`.EXE;.CMD;.BAT;.COM`:``,s=r?o.split(n):[``];return r&&e.indexOf(`.`)!==-1&&s[0]!==``&&s.unshift(``),{pathEnv:i,pathExt:s,pathExtExe:o}},l=(e,t,n)=>{typeof t==`function`&&(n=t,t={}),t||={};let{pathEnv:r,pathExt:a,pathExtExe:l}=c(e,t),u=[],d=n=>new Promise((a,o)=>{if(n===r.length)return t.all&&u.length?a(u):o(s(e));let c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(l,e);a(f(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d,n,0))}),f=(e,n,r)=>new Promise((i,s)=>{if(r===a.length)return i(d(n+1));let c=a[r];o(e+c,{pathExt:l},(a,o)=>{if(!a&&o)if(t.all)u.push(e+c);else return i(e+c);return i(f(e,n,r+1))})});return n?d(0).then(e=>n(null,e),n):d(0)};t.exports=l,l.sync=(e,t)=>{t||={};let{pathEnv:n,pathExt:r,pathExtExe:a}=c(e,t),l=[];for(let s=0;s<n.length;s++){let c=n[s],u=/^".*"$/.test(c)?c.slice(1,-1):c,d=i.join(u,e),f=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let e=0;e<r.length;e++){let n=f+r[e];try{if(o.sync(n,{pathExt:a}))if(t.all)l.push(n);else return n}catch{}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw s(e)}})),Be=t(((e,t)=>{let n=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)===`win32`?Object.keys(t).reverse().find(e=>e.toUpperCase()===`PATH`)||`Path`:`PATH`};t.exports=n,t.exports.default=n})),Ve=t(((e,t)=>{let r=n(`path`),i=ze(),a=Be();function o(e,t){let n=e.options.env||process.env,o=process.cwd(),s=e.options.cwd!=null,c=s&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let l;try{l=i.sync(e.command,{path:n[a({env:n})],pathExt:t?r.delimiter:void 0})}catch{}finally{c&&process.chdir(o)}return l&&=r.resolve(s?e.options.cwd:``,l),l}function s(e){return o(e)||o(e,!0)}t.exports=s})),He=t(((e,t)=>{let n=/([()\][%!^"`<>&|;, *?])/g;function r(e){return e=e.replace(n,`^$1`),e}function i(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,`$1$1\\"`),e=e.replace(/(?=(\\+?)?)\1$/,`$1$1`),e=`"${e}"`,e=e.replace(n,`^$1`),t&&(e=e.replace(n,`^$1`)),e}t.exports.command=r,t.exports.argument=i})),Ue=t(((e,t)=>{t.exports=/^#!(.*)/})),We=t(((e,t)=>{let n=Ue();t.exports=(e=``)=>{let t=e.match(n);if(!t)return null;let[r,i]=t[0].replace(/#! ?/,``).split(` `),a=r.split(`/`).pop();return a===`env`?i:i?`${a} ${i}`:a}})),Ge=t(((e,t)=>{let r=n(`fs`),i=We();function a(e){let t=Buffer.alloc(150),n;try{n=r.openSync(e,`r`),r.readSync(n,t,0,150,0),r.closeSync(n)}catch{}return i(t.toString())}t.exports=a})),Ke=t(((e,t)=>{let r=n(`path`),i=Ve(),a=He(),o=Ge(),s=process.platform===`win32`,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function u(e){e.file=i(e);let t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,i(e)):e.file}function d(e){if(!s)return e;let t=u(e),n=!c.test(t);if(e.options.forceShell||n){let n=l.test(t);e.command=r.normalize(e.command),e.command=a.command(e.command),e.args=e.args.map(e=>a.argument(e,n)),e.args=[`/d`,`/s`,`/c`,`"${[e.command].concat(e.args).join(` `)}"`],e.command=process.env.comspec||`cmd.exe`,e.options.windowsVerbatimArguments=!0}return e}function f(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:d(r)}t.exports=f})),qe=t(((e,t)=>{let n=process.platform===`win32`;function r(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:`ENOENT`,errno:`ENOENT`,syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function i(e,t){if(!n)return;let r=e.emit;e.emit=function(n,i){if(n===`exit`){let n=a(i,t);if(n)return r.call(e,`error`,n)}return r.apply(e,arguments)}}function a(e,t){return n&&e===1&&!t.file?r(t.original,`spawn`):null}function o(e,t){return n&&e===1&&!t.file?r(t.original,`spawnSync`):null}t.exports={hookChildProcess:i,verifyENOENT:a,verifyENOENTSync:o,notFoundError:r}})),Je=e(t(((e,t)=>{let r=n(`child_process`),i=Ke(),a=qe();function o(e,t,n){let o=i(e,t,n),s=r.spawn(o.command,o.args,o.options);return a.hookChildProcess(s,o),s}function s(e,t,n){let o=i(e,t,n),s=r.spawnSync(o.command,o.args,o.options);return s.error=s.error||a.verifyENOENTSync(s.status,o),s}t.exports=o,t.exports.spawn=o,t.exports.sync=s,t.exports._parse=i,t.exports._enoent=a}))(),1);const Ye=async(e,t={})=>Xe({useSpinner:t.useSpinner??t.silent,startText:t.startText||Ze(e),doneText:t.doneText,promise(){let[n,...r]=e,i=new AbortController,a=(0,Je.spawn)(n,[...r],{stdio:t.silent?`pipe`:`inherit`,env:{...process.env,...t.env},cwd:t.cwd,signal:i.signal}),o=``;(t.captureOutput??t.silent)&&(a.stdout?.on(`data`,e=>{o+=e}),a.stderr?.on(`data`,e=>{o+=e}));let s=null;return new Promise((e,n)=>{let r=e=>{n(new ee(`Command cancelled`,e)),i.abort(e?`${e} received`:null)};process.on(`SIGTERM`,r).on(`SIGINT`,r),s=()=>{process.off(`SIGTERM`,r).off(`SIGINT`,r)},a.on(`close`,r=>{try{if(r!==0)throw Error(o,{cause:r});e((t.transformOutput??(e=>e))(te(o)))}catch(e){n(Error(o,{cause:e}))}}),a.on(`error`,e=>{n(e)})}).finally(()=>{s?.()})}}),Xe=async({promise:e,...t})=>{let n;t.useSpinner&&ne()&&(n=M()),n?.start(t?.startText),typeof e==`function`&&(e=e());try{let r=await e,i=typeof t.doneText==`function`?t.doneText(r):t.doneText;n?.stop(i)}catch(e){n?.stop(e.message)}finally{n?.stop()}return e};function Ze(e){if(process.platform===`win32`){let t=/[&<>[\]|{}^=;!'+,`~\s]/;return e.map(e=>e.match(t)?`"${e.replaceAll(`"`,`""`)}"`:e).join(` `)}else return e.map(e=>/["\s]/.test(e)&&!/'/.test(e)?`'`+e.replace(/(['\\])/g,`\\$1`)+`'`:/["'\s]/.test(e)?`"`+e.replace(/(["\\$`!])/g,`\\$1`)+`"`:e).join(` `)}const Qe=async(e,t,n={})=>{let{cwd:r=process.cwd(),force:i,dev:a,startText:o,doneText:l}=n,u=n.isWorkspaceRoot??!1;if(t.length===0){let n;switch(e){case`yarn`:break;default:n=`install`;break}await Ye([e,...n?[n]:[],...t,...e===`pnpm`||e===`nub`?[`--no-frozen-lockfile`]:[],...i===!0?[`--force`]:[],...$e(e,u)],{cwd:r,startText:o,doneText:l,silent:!0});return}let d,f;switch(e){case`yarn`:f=`add`,d=a?`-D`:``;break;case`bun`:f=`add`,d=a?`-d`:``;break;default:f=`install`,d=a?`--save-dev`:``;break}if(await Ye([e,f,...d?[d]:[],...t,...i===!0?[`--force`]:[],...$e(e,u)],{cwd:r,startText:o,doneText:l,silent:!0}),e===`npm`){let e=z.join(r,`package.json`),i=s(c(e),e),a=n.dev?i.devDependencies:i.dependencies;H(a,`dependencies should be defined`);for(let e of t){let t=e.lastIndexOf(`@`);if(t>0){let n=e.slice(0,t),r=e.slice(t+1);r!==`latest`&&(a[n]=r)}}await ke(e,JSON.stringify(i,null,2))}};function $e(e,t){if(!t)return[];switch(e){case`pnpm`:case`nub`:return[`--workspace-root`];case`yarn`:return[`-W`];case`npm`:case`bun`:return[]}}async function et(e,t){let n=[`wrangler@latest`];tt(`@cloudflare/workers-types`)&&n.push(`@cloudflare/workers-types@latest`),await Qe(e,n,{dev:!0,isWorkspaceRoot:t,startText:`Installing wrangler ${O(`A command line tool for building Cloudflare Workers`)}`,doneText:`${k(`installed`)} ${O(`via \`${e} install wrangler --save-dev\``)}`})}function tt(e){let t=z.join(process.cwd(),`package.json`);if(!R(t))return!1;let n=s(c(t),t);return!!(n.dependencies?.[e]||n.devDependencies?.[e])}function nt(e){let t=R(e);t||ve(e,``);let n=c(e),r=[],i=n.match(/^\/?\.wrangler(\/|\s|$)/m);if(i||r.push(`.wrangler`),n.match(/^\/?\.dev\.vars\*(\s|$)/m)||r.push(`.dev.vars*`),n.match(/^!\/?\.dev\.vars\.example(\s|$)/m)||r.push(`!.dev.vars.example`),n.match(/^\/?\.env\*?(\..*?)?(\s|$)/m)||r.push(`.env*`),n.match(/^!\/?\.env\.example(\s|$)/m)||r.push(`!.env.example`),r.length===0)return;let a=M();a.start(`Adding Wrangler files to the ${ye(e)} file`);let o=[...t?[``,...n.match(/\n\s*$/)?[]:[``]]:[]];!i&&r.length>1&&o.push(`# wrangler files`),r.forEach(e=>o.push(e)),o.push(``),pe(e,o.join(`
3
3
  `));let s=ye(e);a.stop(`${k(t?`updated`:`created`)} ${O(`${s} file`)}`)}function rt(e){let t=`${e}/.gitignore`,n=R(t),r=it(`${e}/.git`);!n&&!r||nt(t)}function it(e){try{return _e(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw Error(e)}}I(import.meta.url||(typeof __filename==`string`?__filename:`/`));var U={};w(U,{__addDisposableResource:()=>Mt,__assign:()=>It,__asyncDelegator:()=>wt,__asyncGenerator:()=>Ct,__asyncValues:()=>Tt,__await:()=>St,__awaiter:()=>mt,__classPrivateFieldGet:()=>kt,__classPrivateFieldIn:()=>jt,__classPrivateFieldSet:()=>At,__createBinding:()=>Lt,__decorate:()=>st,__disposeResources:()=>Nt,__esDecorate:()=>lt,__exportStar:()=>gt,__extends:()=>at,__generator:()=>ht,__importDefault:()=>Ot,__importStar:()=>Dt,__makeTemplateObject:()=>Et,__metadata:()=>pt,__param:()=>ct,__propKey:()=>dt,__read:()=>vt,__rest:()=>ot,__rewriteRelativeImportExtension:()=>Pt,__runInitializers:()=>ut,__setFunctionName:()=>ft,__spread:()=>yt,__spreadArray:()=>xt,__spreadArrays:()=>bt,__values:()=>_t,default:()=>Bt});function at(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Ft(e,t);function n(){this.constructor=e}x(n,`__`),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function ot(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function st(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function ct(e,t){return function(n,r){t(n,r,e)}}function lt(e,t,n,r,i,a){function o(e){if(e!==void 0&&typeof e!=`function`)throw TypeError(`Function expected`);return e}x(o,`accept`);for(var s=r.kind,c=s===`getter`?`get`:s===`setter`?`set`:`value`,l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var m={};for(var h in r)m[h]=h===`access`?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(e){if(f)throw TypeError(`Cannot add initializers after decoration has completed`);a.push(o(e||null))};var g=(0,n[p])(s===`accessor`?{get:u.get,set:u.set}:u[c],m);if(s===`accessor`){if(g===void 0)continue;if(typeof g!=`object`||!g)throw TypeError(`Object expected`);(d=o(g.get))&&(u.get=d),(d=o(g.set))&&(u.set=d),(d=o(g.init))&&i.unshift(d)}else (d=o(g))&&(s===`field`?i.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function ut(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function dt(e){return typeof e==`symbol`?e:`${e}`}function ft(e,t,n){return typeof t==`symbol`&&(t=t.description?`[${t.description}]`:``),Object.defineProperty(e,`name`,{configurable:!0,value:n?`${n} ${t}`:t})}function pt(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function mt(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return x(i,`adopt`),new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}x(o,`fulfilled`);function s(e){try{c(r.throw(e))}catch(e){a(e)}}x(s,`rejected`);function c(e){e.done?n(e.value):i(e.value).then(o,s)}x(c,`step`),c((r=r.apply(e,t||[])).next())})}function ht(e,t){var n={label:0,sent:x(function(){if(a[0]&1)throw a[1];return a[1]},`sent`),trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function gt(e,t){for(var n in e)n!==`default`&&!Object.prototype.hasOwnProperty.call(t,n)&&Lt(t,e,n)}function _t(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:x(function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}},`next`)};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function vt(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function yt(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(vt(arguments[t]));return e}function bt(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function xt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function St(e){return this instanceof St?(this.v=e,this):new St(e)}function Ct(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof St?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function wt(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:St(e[r](t)),done:!1}:i?i(t):t}:i}}function Tt(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof _t==`function`?_t(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}function Et(e,t){return Object.defineProperty?Object.defineProperty(e,`raw`,{value:t}):e.raw=t,e}function Dt(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Rt(e),r=0;r<n.length;r++)n[r]!==`default`&&Lt(t,e,n[r]);return W(t,e),t}function Ot(e){return e&&e.__esModule?e:{default:e}}function kt(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)}function At(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n}function jt(e,t){if(t===null||typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Cannot use 'in' operator on non-object`);return typeof e==`function`?t===e:e.has(t)}function Mt(e,t,n){if(t!=null){if(typeof t!=`object`&&typeof t!=`function`)throw TypeError(`Object expected.`);var r,i;if(n){if(!Symbol.asyncDispose)throw TypeError(`Symbol.asyncDispose is not defined.`);r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw TypeError(`Symbol.dispose is not defined.`);r=t[Symbol.dispose],n&&(i=r)}if(typeof r!=`function`)throw TypeError(`Object not disposable.`);i&&(r=x(function(){try{i.call(this)}catch(e){return Promise.reject(e)}},`dispose`)),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function Nt(e){function t(t){e.error=e.hasError?new zt(t,e.error,`An error was suppressed during disposal.`):t,e.hasError=!0}x(t,`fail`);var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return x(i,`next`),i()}function Pt(e,t){return typeof e==`string`&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,a){return n?t?`.jsx`:`.js`:r&&(!i||!a)?e:r+i+`.`+a.toLowerCase()+`js`}):e}var Ft,It,Lt,W,Rt,zt,Bt,G=S({"../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs"(){Ft=x(function(e,t){return Ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ft(e,t)},`extendStatics`),x(at,`__extends`),It=x(function(){return It=Object.assign||x(function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},`__assign`),It.apply(this,arguments)},`__assign`),x(ot,`__rest`),x(st,`__decorate`),x(ct,`__param`),x(lt,`__esDecorate`),x(ut,`__runInitializers`),x(dt,`__propKey`),x(ft,`__setFunctionName`),x(pt,`__metadata`),x(mt,`__awaiter`),x(ht,`__generator`),Lt=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:x(function(){return t[n]},`get`)}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]},x(gt,`__exportStar`),x(_t,`__values`),x(vt,`__read`),x(yt,`__spread`),x(bt,`__spreadArrays`),x(xt,`__spreadArray`),x(St,`__await`),x(Ct,`__asyncGenerator`),x(wt,`__asyncDelegator`),x(Tt,`__asyncValues`),x(Et,`__makeTemplateObject`),W=Object.create?function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}:function(e,t){e.default=t},Rt=x(function(e){return Rt=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},Rt(e)},`ownKeys`),x(Dt,`__importStar`),x(Ot,`__importDefault`),x(kt,`__classPrivateFieldGet`),x(At,`__classPrivateFieldSet`),x(jt,`__classPrivateFieldIn`),x(Mt,`__addDisposableResource`),zt=typeof SuppressedError==`function`?SuppressedError:function(e,t,n){var r=Error(n);return r.name=`SuppressedError`,r.error=e,r.suppressed=t,r},x(Nt,`__disposeResources`),x(Pt,`__rewriteRelativeImportExtension`),Bt={__extends:at,__assign:It,__rest:ot,__decorate:st,__param:ct,__esDecorate:lt,__runInitializers:ut,__propKey:dt,__setFunctionName:ft,__metadata:pt,__awaiter:mt,__generator:ht,__createBinding:Lt,__exportStar:gt,__values:_t,__read:vt,__spread:yt,__spreadArrays:bt,__spreadArray:xt,__await:St,__asyncGenerator:Ct,__asyncDelegator:wt,__asyncValues:Tt,__makeTemplateObject:Et,__importStar:Dt,__importDefault:Ot,__classPrivateFieldGet:kt,__classPrivateFieldSet:At,__classPrivateFieldIn:jt,__addDisposableResource:Mt,__disposeResources:Nt,__rewriteRelativeImportExtension:Pt}}}),K=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/shared.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.maybeSetModuleExports=void 0;var t=(G(),C(U)).__importDefault(q());function n(e){var n=e.use(t.default),r=n.Type,i=n.builtInTypes,a=i.number;function o(e){return r.from(function(t){return a.check(t)&&t>=e},a+` >= `+e)}x(o,`geq`);var s={null:x(function(){return null},`null`),emptyArray:x(function(){return[]},`emptyArray`),false:x(function(){return!1},`false`),true:x(function(){return!0},`true`),undefined:x(function(){},`undefined`),"use strict":x(function(){return`use strict`},`use strict`)},c=r.or(i.string,i.number,i.boolean,i.null,i.undefined);return{geq:o,defaults:s,isPrimitive:r.from(function(e){if(e===null)return!0;var t=typeof e;return!(t===`object`||t===`function`)},c.toString())}}x(n,`default_1`),e.default=n;function r(e){try{var t=e(),n=t.exports,r=n.default}catch{return}r&&r!==n&&typeof n==`object`&&(Object.assign(r,n,{default:r}),n.__esModule&&Object.defineProperty(r,`__esModule`,{value:!0}),t.exports=r)}x(r,`maybeSetModuleExports`),e.maybeSetModuleExports=r}}),q=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/types.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0}),e.Def=void 0;var n=(G(),C(U)),r=K(),i=Object.prototype,a=i.toString,o=i.hasOwnProperty,s=function(){function e(){}return x(e,`BaseType`),e.prototype.assert=function(e,t){if(!this.check(e,t)){var n=h(e);throw Error(n+` does not match type `+this)}return!0},e.prototype.arrayOf=function(){return new c(this)},e}(),c=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.elemType=t,n.kind=`ArrayType`,n}return x(t,`ArrayType`),t.prototype.toString=function(){return`[`+this.elemType+`]`},t.prototype.check=function(e,t){var n=this;return Array.isArray(e)&&e.every(function(e){return n.elemType.check(e,t)})},t}(s),l=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.value=t,n.kind=`IdentityType`,n}return x(t,`IdentityType`),t.prototype.toString=function(){return String(this.value)},t.prototype.check=function(e,t){var n=e===this.value;return!n&&typeof t==`function`&&t(this,e),n},t}(s),u=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.fields=t,n.kind=`ObjectType`,n}return x(t,`ObjectType`),t.prototype.toString=function(){return`{ `+this.fields.join(`, `)+` }`},t.prototype.check=function(e,t){return a.call(e)===a.call({})&&this.fields.every(function(n){return n.type.check(e[n.name],t)})},t}(s),d=function(e){n.__extends(t,e);function t(t){var n=e.call(this)||this;return n.types=t,n.kind=`OrType`,n}return x(t,`OrType`),t.prototype.toString=function(){return this.types.join(` | `)},t.prototype.check=function(e,t){return this.types.some(function(n){return n.check(e,!!t)})?!0:(typeof t==`function`&&t(this,e),!1)},t}(s),f=function(e){n.__extends(t,e);function t(t,n){var r=e.call(this)||this;return r.name=t,r.predicate=n,r.kind=`PredicateType`,r}return x(t,`PredicateType`),t.prototype.toString=function(){return this.name},t.prototype.check=function(e,t){var n=this.predicate(e,t);return!n&&typeof t==`function`&&t(this,e),n},t}(s),p=function(){function e(e,t){this.type=e,this.typeName=t,this.baseNames=[],this.ownFields=Object.create(null),this.allSupertypes=Object.create(null),this.supertypeList=[],this.allFields=Object.create(null),this.fieldNames=[],this.finalized=!1,this.buildable=!1,this.buildParams=[]}return x(e,`Def`),e.prototype.isSupertypeOf=function(t){if(t instanceof e){if(this.finalized!==!0||t.finalized!==!0)throw Error(``);return o.call(t.allSupertypes,this.typeName)}else throw Error(t+` is not a Def`)},e.prototype.checkAllFields=function(e,t){var n=this.allFields;if(this.finalized!==!0)throw Error(``+this.typeName);function r(r){var i=n[r],a=i.type,o=i.getValue(e);return a.check(o,t)}return x(r,`checkFieldByName`),typeof e==`object`&&!!e&&Object.keys(n).every(r)},e.prototype.bases=function(){var e=[...arguments],t=this.baseNames;if(this.finalized){if(e.length!==t.length)throw Error(``);for(var n=0;n<e.length;n++)if(e[n]!==t[n])throw Error(``);return this}return e.forEach(function(e){t.indexOf(e)<0&&t.push(e)}),this},e}();e.Def=p;var m=function(){function e(e,t,n,r){this.name=e,this.type=t,this.defaultFn=n,this.hidden=!!r}return x(e,`Field`),e.prototype.toString=function(){return JSON.stringify(this.name)+`: `+this.type},e.prototype.getValue=function(e){var t=e[this.name];return t===void 0&&typeof this.defaultFn==`function`&&(t=this.defaultFn.call(e)),t},e}();function h(e){return Array.isArray(e)?`[`+e.map(h).join(`, `)+`]`:e&&typeof e==`object`?`{ `+Object.keys(e).map(function(t){return t+`: `+e[t]}).join(`, `)+` }`:JSON.stringify(e)}x(h,`shallowStringify`);function g(e){var t={or:x(function(){return new d([...arguments].map(function(e){return t.from(e)}))},`or`),from:x(function(e,n){if(e instanceof c||e instanceof l||e instanceof u||e instanceof d||e instanceof f)return e;if(e instanceof p)return e.type;if(v.check(e)){if(e.length!==1)throw Error(`only one element type is permitted for typed arrays`);return new c(t.from(e[0]))}if(y.check(e))return new u(Object.keys(e).map(function(n){return new m(n,t.from(e[n],n))}));if(typeof e==`function`){var a=r.indexOf(e);if(a>=0)return i[a];if(typeof n!=`string`)throw Error(`missing name`);return new f(n,e)}return new l(e)},`from`),def:x(function(e){return o.call(O,e)?O[e]:O[e]=new k(e)},`def`),hasDef:x(function(e){return o.call(O,e)},`hasDef`)},r=[],i=[];function s(e,t){var n=a.call(t),o=new f(e,function(e){return a.call(e)===n});return t&&typeof t.constructor==`function`&&(r.push(t.constructor),i.push(o)),o}x(s,`defBuiltInType`);var g=s(`string`,`truthy`),_=s(`function`,function(){}),v=s(`array`,[]),y=s(`object`,{}),b=s(`RegExp`,/./),S=s(`Date`,new Date),C=s(`number`,3),w=s(`boolean`,!0),T=s(`null`,null),E=s(`undefined`,void 0),D={string:g,function:_,array:v,object:y,RegExp:b,Date:S,number:C,boolean:w,null:T,undefined:E,BigInt:typeof BigInt==`function`?s(`BigInt`,BigInt(1234)):new f(`BigInt`,function(){return!1})},O=Object.create(null);function ee(e){if(e&&typeof e==`object`){var t=e.type;if(typeof t==`string`&&o.call(O,t)){var n=O[t];if(n.finalized)return n}}return null}x(ee,`defFromValue`);var k=function(e){n.__extends(r,e);function r(t){var n=e.call(this,new f(t,function(e,t){return n.check(e,t)}),t)||this;return n}return x(r,`DefImpl`),r.prototype.check=function(e,t){if(this.finalized!==!0)throw Error(`prematurely checking unfinalized type `+this.typeName);if(typeof e!=`object`||!e)return!1;var n=ee(e);return n?t&&n===this?this.checkAllFields(e,t):this.isSupertypeOf(n)?t?n.checkAllFields(e,t)&&this.checkAllFields(e,!1):!0:!1:this.typeName===`SourceLocation`||this.typeName===`Position`?this.checkAllFields(e,t):!1},r.prototype.build=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.buildParams=t,this.buildable)return this;this.field(`type`,String,function(){return e.typeName}),this.buildable=!0;var r=x(function(t,n,r,i){if(!o.call(t,n)){var a=e.allFields;if(!o.call(a,n))throw Error(``+n);var s=a[n],c=s.type,l;if(i)l=r;else if(s.defaultFn)l=s.defaultFn.call(t);else{var u=`no value or default function given for field `+JSON.stringify(n)+` of `+e.typeName+`(`+e.buildParams.map(function(e){return a[e]}).join(`, `)+`)`;throw Error(u)}if(!c.check(l))throw Error(h(l)+` does not match field `+s+` of type `+e.typeName);t[n]=l}},`addParam`),i=x(function(){var t=[...arguments],n=t.length;if(!e.finalized)throw Error(`attempting to instantiate unfinalized type `+e.typeName);var i=Object.create(j);if(e.buildParams.forEach(function(e,a){a<n?r(i,e,t[a],!0):r(i,e,null,!1)}),Object.keys(e.allFields).forEach(function(e){r(i,e,null,!1)}),i.type!==e.typeName)throw Error(``);return i},`builder`);return i.from=function(t){if(!e.finalized)throw Error(`attempting to instantiate unfinalized type `+e.typeName);var n=Object.create(j);if(Object.keys(e.allFields).forEach(function(e){o.call(t,e)?r(n,e,t[e],!0):r(n,e,null,!1)}),n.type!==e.typeName)throw Error(``);return n},Object.defineProperty(A,N(this.typeName),{enumerable:!0,value:i}),this},r.prototype.field=function(e,n,r,i){return this.finalized?(console.error(`Ignoring attempt to redefine field `+JSON.stringify(e)+` of finalized type `+JSON.stringify(this.typeName)),this):(this.ownFields[e]=new m(e,t.from(n),r,i),this)},r.prototype.finalize=function(){var e=this;if(!this.finalized){var t=this.allFields,n=this.allSupertypes;for(var r in this.baseNames.forEach(function(r){var i=O[r];if(i instanceof p)i.finalize(),L(t,i.allFields),L(n,i.allSupertypes);else{var a=`unknown supertype name `+JSON.stringify(r)+` for subtype `+JSON.stringify(e.typeName);throw Error(a)}}),L(t,this.ownFields),n[this.typeName]=this,this.fieldNames.length=0,t)o.call(t,r)&&!t[r].hidden&&this.fieldNames.push(r);Object.defineProperty(re,this.typeName,{enumerable:!0,value:this.type}),this.finalized=!0,se(this.typeName,this.supertypeList),this.buildable&&this.supertypeList.lastIndexOf(`Expression`)>=0&&I(this.typeName)}},r}(p);function te(e){if(!o.call(O,e))throw Error(``);var t=O[e];if(t.finalized!==!0)throw Error(``);return t.supertypeList.slice(1)}x(te,`getSupertypeNames`);function ne(e){for(var t={},n=Object.keys(O),r=n.length,i=0;i<r;++i){var a=n[i],s=O[a];if(s.finalized!==!0)throw Error(``+a);for(var c=0;c<s.supertypeList.length;++c){var l=s.supertypeList[c];if(o.call(e,l)){t[a]=l;break}}}return t}x(ne,`computeSupertypeLookupTable`);var A=Object.create(null),j={};function M(e,t){var n=j[e];return E.check(t)?delete j[e]:(_.assert(t),Object.defineProperty(j,e,{enumerable:!0,configurable:!0,value:t})),n}x(M,`defineMethod`);function N(e){return e.replace(/^[A-Z]+/,function(e){var t=e.length;switch(t){case 0:return``;case 1:return e.toLowerCase();default:return e.slice(0,t-1).toLowerCase()+e.charAt(t-1)}})}x(N,`getBuilderName`);function P(e){return e=N(e),e.replace(/(Expression)?$/,`Statement`)}x(P,`getStatementBuilderName`);var re={};function ie(e){var t=ee(e);if(t)return t.fieldNames.slice(0);if(`type`in e)throw Error(`did not recognize object of type `+JSON.stringify(e.type));return Object.keys(e)}x(ie,`getFieldNames`);function ae(e,t){var n=ee(e);if(n){var r=n.allFields[t];if(r)return r.getValue(e)}return e&&e[t]}x(ae,`getFieldValue`);function oe(e,t,n){ie(e).forEach(function(n){t.call(this,n,ae(e,n))},n)}x(oe,`eachField`);function F(e,t,n){return ie(e).some(function(n){return t.call(this,n,ae(e,n))},n)}x(F,`someField`);function I(e){var t=P(e);if(!A[t]){var n=A[N(e)];if(n){var r=x(function(){var e=[...arguments];return A.expressionStatement(n.apply(A,e))},`builder`);r.from=function(){var e=[...arguments];return A.expressionStatement(n.from.apply(A,e))},A[t]=r}}}x(I,`wrapExpressionBuilderWithStatement`);function se(e,t){t.length=0,t.push(e);for(var n=Object.create(null),r=0;r<t.length;++r){e=t[r];var i=O[e];if(i.finalized!==!0)throw Error(``);o.call(n,e)&&delete t[n[e]],n[e]=r,t.push.apply(t,i.baseNames)}for(var a=0,s=a,c=t.length;s<c;++s)o.call(t,s)&&(t[a++]=t[s]);t.length=a}x(se,`populateSupertypeList`);function L(e,t){return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}x(L,`extend`);function ce(){Object.keys(O).forEach(function(e){O[e].finalize()})}return x(ce,`finalize`),{Type:t,builtInTypes:D,getSupertypeNames:te,computeSupertypeLookupTable:ne,builders:A,defineMethod:M,getBuilderName:N,getStatementBuilderName:P,namedTypes:re,getFieldNames:ie,getFieldValue:ae,eachField:oe,someField:F,finalize:ce}}x(g,`typesPlugin`),e.default=g,(0,r.maybeSetModuleExports)(function(){return t})}}),Vt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(q()),a=Object.prototype.hasOwnProperty;function o(e){var t=e.use(i.default),n=t.builtInTypes.array,r=t.builtInTypes.number,o=x(function e(t,n,r){if(!(this instanceof e))throw Error(`Path constructor cannot be invoked without 'new'`);if(n){if(!(n instanceof e))throw Error(``)}else n=null,r=null;this.value=t,this.parentPath=n,this.name=r,this.__childCache=null},`Path`),s=o.prototype;function c(e){return e.__childCache||=Object.create(null)}x(c,`getChildCache`);function l(e,t){var n=c(e),r=e.getValueProperty(t),i=n[t];return(!a.call(n,t)||i.value!==r)&&(i=n[t]=new e.constructor(r,e,t)),i}x(l,`getChildPath`),s.getValueProperty=x(function(e){return this.value[e]},`getValueProperty`),s.get=x(function(){for(var e=[...arguments],t=this,n=e.length,r=0;r<n;++r)t=l(t,e[r]);return t},`get`),s.each=x(function(e,t){for(var n=[],r=this.value.length,i=0,i=0;i<r;++i)a.call(this.value,i)&&(n[i]=this.get(i));for(t||=this,i=0;i<r;++i)a.call(n,i)&&e.call(t,n[i])},`each`),s.map=x(function(e,t){var n=[];return this.each(function(t){n.push(e.call(this,t))},t),n},`map`),s.filter=x(function(e,t){var n=[];return this.each(function(t){e.call(this,t)&&n.push(t)},t),n},`filter`);function u(){}x(u,`emptyMoves`);function d(e,t,i,o){if(n.assert(e.value),t===0)return u;var s=e.value.length;if(s<1)return u;var l=arguments.length;l===2?(i=0,o=s):l===3?(i=Math.max(i,0),o=s):(i=Math.max(i,0),o=Math.min(o,s)),r.assert(i),r.assert(o);for(var d=Object.create(null),f=c(e),p=i;p<o;++p)if(a.call(e.value,p)){var m=e.get(p);if(m.name!==p)throw Error(``);var h=p+t;m.name=h,d[h]=m,delete f[p]}return delete f.length,function(){for(var t in d){var n=d[t];if(n.name!==+t)throw Error(``);f[t]=n,e.value[t]=n.value}}}x(d,`getMoves`),s.shift=x(function(){var e=d(this,-1),t=this.value.shift();return e(),t},`shift`),s.unshift=x(function(){var e=[...arguments],t=d(this,e.length),n=this.value.unshift.apply(this.value,e);return t(),n},`unshift`),s.push=x(function(){var e=[...arguments];return n.assert(this.value),delete c(this).length,this.value.push.apply(this.value,e)},`push`),s.pop=x(function(){n.assert(this.value);var e=c(this);return delete e[this.value.length-1],delete e.length,this.value.pop()},`pop`),s.insertAt=x(function(e){var t=arguments.length,n=d(this,t-1,e);if(n===u&&t<=1)return this;e=Math.max(e,0);for(var r=1;r<t;++r)this.value[e+r-1]=arguments[r];return n(),this},`insertAt`),s.insertBefore=x(function(){for(var e=[...arguments],t=this.parentPath,n=e.length,r=[this.name],i=0;i<n;++i)r.push(e[i]);return t.insertAt.apply(t,r)},`insertBefore`),s.insertAfter=x(function(){for(var e=[...arguments],t=this.parentPath,n=e.length,r=[this.name+1],i=0;i<n;++i)r.push(e[i]);return t.insertAt.apply(t,r)},`insertAfter`);function f(e){if(!(e instanceof o))throw Error(``);var t=e.parentPath;if(!t)return e;var r=t.value,i=c(t);if(r[e.name]===e.value)i[e.name]=e;else if(n.check(r)){var a=r.indexOf(e.value);a>=0&&(i[e.name=a]=e)}else r[e.name]=e.value,i[e.name]=e;if(r[e.name]!==e.value||e.parentPath.get(e.name)!==e)throw Error(``);return e}return x(f,`repairRelationshipWithParent`),s.replace=x(function(e){var t=[],r=this.parentPath.value,i=c(this.parentPath),a=arguments.length;if(f(this),n.check(r)){for(var o=r.length,s=d(this.parentPath,a-1,this.name+1),l=[this.name,1],u=0;u<a;++u)l.push(arguments[u]);if(r.splice.apply(r,l)[0]!==this.value||r.length!==o-1+a)throw Error(``);if(s(),a===0)delete this.value,delete i[this.name],this.__childCache=null;else{if(r[this.name]!==e)throw Error(``);for(this.value!==e&&(this.value=e,this.__childCache=null),u=0;u<a;++u)t.push(this.parentPath.get(this.name+u));if(t[0]!==this)throw Error(``)}}else if(a===1)this.value!==e&&(this.__childCache=null),this.value=r[this.name]=e,t.push(this);else if(a===0)delete r[this.name],delete this.value,this.__childCache=null;else throw Error(`Could not replace path`);return t},`replace`),o}x(o,`pathPlugin`),e.default=o,(0,r.maybeSetModuleExports)(function(){return t})}}),Ht=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/scope.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(q()),a=Object.prototype.hasOwnProperty;function o(e){var t=e.use(i.default),n=t.Type,r=t.namedTypes,o=r.Node,s=r.Expression,c=t.builtInTypes.array,l=t.builders,u=x(function e(t,n){if(!(this instanceof e))throw Error(`Scope constructor cannot be invoked without 'new'`);f.check(t.value)||d.assert(t.value);var r;if(n){if(!(n instanceof e))throw Error(``);r=n.depth+1}else n=null,r=0;Object.defineProperties(this,{path:{value:t},node:{value:t.value},isGlobal:{value:!n,enumerable:!0},depth:{value:r},parent:{value:n},bindings:{value:{}},types:{value:{}}})},`Scope`),d=n.or(r.Program,r.Function,r.CatchClause),f=n.or(r.Function,r.ClassDeclaration,r.ClassExpression,r.InterfaceDeclaration,r.TSInterfaceDeclaration,r.TypeAlias,r.TSTypeAliasDeclaration),p=n.or(r.TypeParameter,r.TSTypeParameter);u.isEstablishedBy=function(e){return d.check(e)||f.check(e)};var m=u.prototype;m.didScan=!1,m.declares=function(e){return this.scan(),a.call(this.bindings,e)},m.declaresType=function(e){return this.scan(),a.call(this.types,e)},m.declareTemporary=function(e){if(e){if(!/^[a-z$_]/i.test(e))throw Error(``)}else e=`t$`;e+=this.depth.toString(36)+`$`,this.scan();for(var n=0;this.declares(e+n);)++n;var r=e+n;return this.bindings[r]=t.builders.identifier(r)},m.injectTemporary=function(e,t){e||=this.declareTemporary();var n=this.path.get(`body`);return r.BlockStatement.check(n.value)&&(n=n.get(`body`)),n.unshift(l.variableDeclaration(`var`,[l.variableDeclarator(e,t||null)])),e},m.scan=function(e){if(e||!this.didScan){for(var t in this.bindings)delete this.bindings[t];for(var t in this.types)delete this.types[t];h(this.path,this.bindings,this.types),this.didScan=!0}},m.getBindings=function(){return this.scan(),this.bindings},m.getTypes=function(){return this.scan(),this.types};function h(e,t,n){var i=e.value;if(f.check(i)){var a=e.get(`typeParameters`,`params`);c.check(a.value)&&a.each(function(e){S(e,n)})}d.check(i)&&(r.CatchClause.check(i)?y(e.get(`param`),t):g(e,t,n))}x(h,`scanScope`);function g(e,n,i){var a=e.value;e.parent&&r.FunctionExpression.check(e.parent.node)&&e.parent.node.id&&y(e.parent.get(`id`),n),a&&(c.check(a)?e.each(function(e){v(e,n,i)}):r.Function.check(a)?(e.get(`params`).each(function(e){y(e,n)}),v(e.get(`body`),n,i),g(e.get(`typeParameters`),n,i)):r.TypeAlias&&r.TypeAlias.check(a)||r.InterfaceDeclaration&&r.InterfaceDeclaration.check(a)||r.TSTypeAliasDeclaration&&r.TSTypeAliasDeclaration.check(a)||r.TSInterfaceDeclaration&&r.TSInterfaceDeclaration.check(a)?b(e.get(`id`),i):r.VariableDeclarator.check(a)?(y(e.get(`id`),n),v(e.get(`init`),n,i)):a.type===`ImportSpecifier`||a.type===`ImportNamespaceSpecifier`||a.type===`ImportDefaultSpecifier`?y(e.get(a.local?`local`:a.name?`name`:`id`),n):o.check(a)&&!s.check(a)&&t.eachField(a,function(t,r){var a=e.get(t);if(!_(a,r))throw Error(``);v(a,n,i)}))}x(g,`recursiveScanScope`);function _(e,t){return!!(e.value===t||Array.isArray(e.value)&&e.value.length===0&&Array.isArray(t)&&t.length===0)}x(_,`pathHasValue`);function v(e,t,n){var i=e.value;if(!(!i||s.check(i)))if(r.FunctionDeclaration.check(i)&&i.id!==null)y(e.get(`id`),t);else if(r.ClassDeclaration&&r.ClassDeclaration.check(i)&&i.id!==null)y(e.get(`id`),t),g(e.get(`typeParameters`),t,n);else if(r.InterfaceDeclaration&&r.InterfaceDeclaration.check(i)||r.TSInterfaceDeclaration&&r.TSInterfaceDeclaration.check(i))b(e.get(`id`),n);else if(d.check(i)){if(r.CatchClause.check(i)&&r.Identifier.check(i.param)){var o=i.param.name,c=a.call(t,o);g(e.get(`body`),t,n),c||delete t[o]}}else g(e,t,n)}x(v,`recursiveScanChild`);function y(e,t){var n=e.value;r.Pattern.assert(n),r.Identifier.check(n)?a.call(t,n.name)?t[n.name].push(e):t[n.name]=[e]:r.AssignmentPattern&&r.AssignmentPattern.check(n)?y(e.get(`left`),t):r.ObjectPattern&&r.ObjectPattern.check(n)?e.get(`properties`).each(function(e){var n=e.value;r.Pattern.check(n)?y(e,t):r.Property.check(n)||r.ObjectProperty&&r.ObjectProperty.check(n)?y(e.get(`value`),t):r.SpreadProperty&&r.SpreadProperty.check(n)&&y(e.get(`argument`),t)}):r.ArrayPattern&&r.ArrayPattern.check(n)?e.get(`elements`).each(function(e){var n=e.value;r.Pattern.check(n)?y(e,t):r.SpreadElement&&r.SpreadElement.check(n)&&y(e.get(`argument`),t)}):r.PropertyPattern&&r.PropertyPattern.check(n)?y(e.get(`pattern`),t):(r.SpreadElementPattern&&r.SpreadElementPattern.check(n)||r.RestElement&&r.RestElement.check(n)||r.SpreadPropertyPattern&&r.SpreadPropertyPattern.check(n))&&y(e.get(`argument`),t)}x(y,`addPattern`);function b(e,t){var n=e.value;r.Pattern.assert(n),r.Identifier.check(n)&&(a.call(t,n.name)?t[n.name].push(e):t[n.name]=[e])}x(b,`addTypePattern`);function S(e,t){var n=e.value;p.assert(n),a.call(t,n.name)?t[n.name].push(e):t[n.name]=[e]}return x(S,`addTypeParameter`),m.lookup=function(e){for(var t=this;t&&!t.declares(e);t=t.parent);return t},m.lookupType=function(e){for(var t=this;t&&!t.declaresType(e);t=t.parent);return t},m.getGlobalScope=function(){for(var e=this;!e.isGlobal;)e=e.parent;return e},u}x(o,`scopePlugin`),e.default=o,(0,r.maybeSetModuleExports)(function(){return t})}}),Ut=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/node-path.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importDefault(Vt()),a=n.__importDefault(Ht()),o=K();function s(e){var t=e.use(r.default),n=t.namedTypes,o=t.builders,s=t.builtInTypes.number,c=t.builtInTypes.array,l=e.use(i.default),u=e.use(a.default),d=x(function e(t,n,r){if(!(this instanceof e))throw Error(`NodePath constructor cannot be invoked without 'new'`);l.call(this,t,n,r)},`NodePath`),f=d.prototype=Object.create(l.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}});Object.defineProperties(f,{node:{get:x(function(){return Object.defineProperty(this,`node`,{configurable:!0,value:this._computeNode()}),this.node},`get`)},parent:{get:x(function(){return Object.defineProperty(this,`parent`,{configurable:!0,value:this._computeParent()}),this.parent},`get`)},scope:{get:x(function(){return Object.defineProperty(this,`scope`,{configurable:!0,value:this._computeScope()}),this.scope},`get`)}}),f.replace=function(){return delete this.node,delete this.parent,delete this.scope,l.prototype.replace.apply(this,arguments)},f.prune=function(){var e=this.parent;return this.replace(),v(e)},f._computeNode=function(){var e=this.value;if(n.Node.check(e))return e;var t=this.parentPath;return t&&t.node||null},f._computeParent=function(){var e=this.value,t=this.parentPath;if(!n.Node.check(e)){for(;t&&!n.Node.check(t.value);)t=t.parentPath;t&&=t.parentPath}for(;t&&!n.Node.check(t.value);)t=t.parentPath;return t||null},f._computeScope=function(){var e=this.value,t=this.parentPath,r=t&&t.scope;return n.Node.check(e)&&u.isEstablishedBy(e)&&(r=new u(this,r)),r||null},f.getValueProperty=function(e){return t.getFieldValue(this.value,e)},f.needsParens=function(e){var t=this.parentPath;if(!t)return!1;var r=this.value;if(!n.Expression.check(r)||r.type===`Identifier`)return!1;for(;!n.Node.check(t.value);)if(t=t.parentPath,!t)return!1;var i=t.value;switch(r.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return i.type===`MemberExpression`&&this.name===`object`&&i.object===r;case`BinaryExpression`:case`LogicalExpression`:switch(i.type){case`CallExpression`:return this.name===`callee`&&i.callee===r;case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:return!0;case`MemberExpression`:return this.name===`object`&&i.object===r;case`BinaryExpression`:case`LogicalExpression`:var a=r,o=h[i.operator],c=h[a.operator];if(o>c)return!0;if(o===c&&this.name===`right`){if(i.right!==a)throw Error(`Nodes must be equal`);return!0}default:return!1}case`SequenceExpression`:switch(i.type){case`ForStatement`:return!1;case`ExpressionStatement`:return this.name!==`expression`;default:return!0}case`YieldExpression`:switch(i.type){case`BinaryExpression`:case`LogicalExpression`:case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:case`CallExpression`:case`MemberExpression`:case`NewExpression`:case`ConditionalExpression`:case`YieldExpression`:return!0;default:return!1}case`Literal`:return i.type===`MemberExpression`&&s.check(r.value)&&this.name===`object`&&i.object===r;case`AssignmentExpression`:case`ConditionalExpression`:switch(i.type){case`UnaryExpression`:case`SpreadElement`:case`SpreadProperty`:case`BinaryExpression`:case`LogicalExpression`:return!0;case`CallExpression`:return this.name===`callee`&&i.callee===r;case`ConditionalExpression`:return this.name===`test`&&i.test===r;case`MemberExpression`:return this.name===`object`&&i.object===r;default:return!1}default:if(i.type===`NewExpression`&&this.name===`callee`&&i.callee===r)return g(r)}return!!(e!==!0&&!this.canBeFirstInStatement()&&this.firstInStatement())};function p(e){return n.BinaryExpression.check(e)||n.LogicalExpression.check(e)}x(p,`isBinary`);function m(e){return n.UnaryExpression.check(e)||n.SpreadElement&&n.SpreadElement.check(e)||n.SpreadProperty&&n.SpreadProperty.check(e)}x(m,`isUnaryLike`);var h={};[[`||`],[`&&`],[`|`],[`^`],[`&`],[`==`,`===`,`!=`,`!==`],[`<`,`>`,`<=`,`>=`,`in`,`instanceof`],[`>>`,`<<`,`>>>`],[`+`,`-`],[`*`,`/`,`%`]].forEach(function(e,t){e.forEach(function(e){h[e]=t})});function g(e){return n.CallExpression.check(e)?!0:c.check(e)?e.some(g):n.Node.check(e)?t.someField(e,function(e,t){return g(t)}):!1}x(g,`containsCallExpression`),f.canBeFirstInStatement=function(){var e=this.node;return!n.FunctionExpression.check(e)&&!n.ObjectExpression.check(e)},f.firstInStatement=function(){return _(this)};function _(e){for(var t,r;e.parent;e=e.parent){if(t=e.node,r=e.parent.node,n.BlockStatement.check(r)&&e.parent.name===`body`&&e.name===0){if(r.body[0]!==t)throw Error(`Nodes must be equal`);return!0}if(n.ExpressionStatement.check(r)&&e.name===`expression`){if(r.expression!==t)throw Error(`Nodes must be equal`);return!0}if(n.SequenceExpression.check(r)&&e.parent.name===`expressions`&&e.name===0){if(r.expressions[0]!==t)throw Error(`Nodes must be equal`);continue}if(n.CallExpression.check(r)&&e.name===`callee`){if(r.callee!==t)throw Error(`Nodes must be equal`);continue}if(n.MemberExpression.check(r)&&e.name===`object`){if(r.object!==t)throw Error(`Nodes must be equal`);continue}if(n.ConditionalExpression.check(r)&&e.name===`test`){if(r.test!==t)throw Error(`Nodes must be equal`);continue}if(p(r)&&e.name===`left`){if(r.left!==t)throw Error(`Nodes must be equal`);continue}if(n.UnaryExpression.check(r)&&!r.prefix&&e.name===`argument`){if(r.argument!==t)throw Error(`Nodes must be equal`);continue}return!1}return!0}x(_,`firstInStatement`);function v(e){if(n.VariableDeclaration.check(e.node)){var t=e.get(`declarations`).value;if(!t||t.length===0)return e.prune()}else if(n.ExpressionStatement.check(e.node)){if(!e.get(`expression`).value)return e.prune()}else n.IfStatement.check(e.node)&&y(e);return e}x(v,`cleanUpNodesAfterPrune`);function y(e){var t=e.get(`test`).value,r=e.get(`alternate`).value,i=e.get(`consequent`).value;if(!i&&!r){var a=o.expressionStatement(t);e.replace(a)}else if(!i&&r){var s=o.unaryExpression(`!`,t,!0);n.UnaryExpression.check(t)&&t.operator===`!`&&(s=t.argument),e.get(`test`).replace(s),e.get(`consequent`).replace(r),e.get(`alternate`).replace()}}return x(y,`cleanUpIfStatementAfterPrune`),d}x(s,`nodePathPlugin`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),Wt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path-visitor.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importDefault(Ut()),a=K(),o=Object.prototype.hasOwnProperty;function s(e){var t=e.use(r.default),n=e.use(i.default),a=t.builtInTypes.array,s=t.builtInTypes.object,c=t.builtInTypes.function,l,u=x(function e(){if(!(this instanceof e))throw Error(`PathVisitor constructor cannot be invoked without 'new'`);this._reusableContextStack=[],this._methodNameTable=d(this),this._shouldVisitComments=o.call(this._methodNameTable,`Block`)||o.call(this._methodNameTable,`Line`),this.Context=h(this),this._visiting=!1,this._changeReported=!1},`PathVisitor`);function d(e){var n=Object.create(null);for(var r in e)/^visit[A-Z]/.test(r)&&(n[r.slice(5)]=!0);for(var i=t.computeSupertypeLookupTable(n),a=Object.create(null),o=Object.keys(i),s=o.length,l=0;l<s;++l){var u=o[l];r=`visit`+i[u],c.check(e[r])&&(a[u]=r)}return a}x(d,`computeMethodNameTable`),u.fromMethodsObject=x(function(e){if(e instanceof u)return e;if(!s.check(e))return new u;var t=x(function e(){if(!(this instanceof e))throw Error(`Visitor constructor cannot be invoked without 'new'`);u.call(this)},`Visitor`),n=t.prototype=Object.create(p);return n.constructor=t,f(n,e),f(t,u),c.assert(t.fromMethodsObject),c.assert(t.visit),new t},`fromMethodsObject`);function f(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);return e}x(f,`extend`),u.visit=x(function(e,t){return u.fromMethodsObject(t).visit(e)},`visit`);var p=u.prototype;p.visit=function(){if(this._visiting)throw Error(`Recursively calling visitor.visit(path) resets visitor state. Try this.visit(path) or this.traverse(path) instead.`);this._visiting=!0,this._changeReported=!1,this._abortRequested=!1;var e=[...arguments];e[0]instanceof n||(e[0]=new n({root:e[0]}).get(`root`)),this.reset.apply(this,e);var t;try{var r=this.visitWithoutReset(e[0]);t=!0}finally{if(this._visiting=!1,!t&&this._abortRequested)return e[0].value}return r},p.AbortRequest=x(function(){},`AbortRequest`),p.abort=function(){var e=this;e._abortRequested=!0;var t=new e.AbortRequest;throw t.cancel=function(){e._abortRequested=!1},t},p.reset=function(e){},p.visitWithoutReset=function(e){if(this instanceof this.Context)return this.visitor.visitWithoutReset(e);if(!(e instanceof n))throw Error(``);var t=e.value,r=t&&typeof t==`object`&&typeof t.type==`string`&&this._methodNameTable[t.type];if(r){var i=this.acquireContext(e);try{return i.invokeVisitorMethod(r)}finally{this.releaseContext(i)}}else return m(e,this)};function m(e,r){if(!(e instanceof n)||!(r instanceof u))throw Error(``);var i=e.value;if(a.check(i))e.each(r.visitWithoutReset,r);else if(s.check(i)){var c=t.getFieldNames(i);r._shouldVisitComments&&i.comments&&c.indexOf(`comments`)<0&&c.push(`comments`);for(var l=c.length,d=[],f=0;f<l;++f){var p=c[f];o.call(i,p)||(i[p]=t.getFieldValue(i,p)),d.push(e.get(p))}for(var f=0;f<l;++f)r.visitWithoutReset(d[f])}return e.value}x(m,`visitChildren`),p.acquireContext=function(e){return this._reusableContextStack.length===0?new this.Context(e):this._reusableContextStack.pop().reset(e)},p.releaseContext=function(e){if(!(e instanceof this.Context))throw Error(``);this._reusableContextStack.push(e),e.currentPath=null},p.reportChanged=function(){this._changeReported=!0},p.wasChangeReported=function(){return this._changeReported};function h(e){function t(r){if(!(this instanceof t)||!(this instanceof u)||!(r instanceof n))throw Error(``);Object.defineProperty(this,`visitor`,{value:e,writable:!1,enumerable:!0,configurable:!1}),this.currentPath=r,this.needToCallTraverse=!0,Object.seal(this)}if(x(t,`Context`),!(e instanceof u))throw Error(``);var r=t.prototype=Object.create(e);return r.constructor=t,f(r,g),t}x(h,`makeContextConstructor`);var g=Object.create(null);return g.reset=x(function(e){if(!(this instanceof this.Context)||!(e instanceof n))throw Error(``);return this.currentPath=e,this.needToCallTraverse=!0,this},`reset`),g.invokeVisitorMethod=x(function(e){if(!(this instanceof this.Context)||!(this.currentPath instanceof n))throw Error(``);var t=this.visitor[e].call(this,this.currentPath);if(t===!1?this.needToCallTraverse=!1:t!==l&&(this.currentPath=this.currentPath.replace(t)[0],this.needToCallTraverse&&this.traverse(this.currentPath)),this.needToCallTraverse!==!1)throw Error(`Must either call this.traverse or return false in `+e);var r=this.currentPath;return r&&r.value},`invokeVisitorMethod`),g.traverse=x(function(e,t){if(!(this instanceof this.Context)||!(e instanceof n)||!(this.currentPath instanceof n))throw Error(``);return this.needToCallTraverse=!1,m(e,u.fromMethodsObject(t||this.visitor))},`traverse`),g.visit=x(function(e,t){if(!(this instanceof this.Context)||!(e instanceof n)||!(this.currentPath instanceof n))throw Error(``);return this.needToCallTraverse=!1,u.fromMethodsObject(t||this.visitor).visitWithoutReset(e)},`visit`),g.reportChanged=x(function(){this.visitor.reportChanged()},`reportChanged`),g.abort=x(function(){this.needToCallTraverse=!1,this.visitor.abort()},`abort`),u}x(s,`pathVisitorPlugin`),e.default=s,(0,a.maybeSetModuleExports)(function(){return t})}}),Gt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/equiv.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(q());function a(e){var t=e.use(i.default),n=t.getFieldNames,r=t.getFieldValue,a=t.builtInTypes.array,o=t.builtInTypes.object,s=t.builtInTypes.Date,c=t.builtInTypes.RegExp,l=Object.prototype.hasOwnProperty;function u(e,t,n){return a.check(n)?n.length=0:n=null,f(e,t,n)}x(u,`astNodesAreEquivalent`),u.assert=function(e,t){var n=[];if(!u(e,t,n))if(n.length===0){if(e!==t)throw Error(`Nodes must be equal`)}else throw Error(`Nodes differ in the following path: `+n.map(d).join(``))};function d(e){return/[_$a-z][_$a-z0-9]*/i.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}x(d,`subscriptForProperty`);function f(e,t,n){return e===t?!0:a.check(e)?p(e,t,n):o.check(e)?m(e,t,n):s.check(e)?s.check(t)&&+e==+t:c.check(e)?c.check(t)&&e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.ignoreCase===t.ignoreCase:e==t}x(f,`areEquivalent`);function p(e,t,n){a.assert(e);var r=e.length;if(!a.check(t)||t.length!==r)return n&&n.push(`length`),!1;for(var i=0;i<r;++i){if(n&&n.push(i),i in e!=i in t||!f(e[i],t[i],n))return!1;if(n){var o=n.pop();if(o!==i)throw Error(``+o)}}return!0}x(p,`arraysAreEquivalent`);function m(e,t,i){if(o.assert(e),!o.check(t))return!1;if(e.type!==t.type)return i&&i.push(`type`),!1;var a=n(e),s=a.length,c=n(t),u=c.length;if(s===u){for(var d=0;d<s;++d){var p=a[d],m=r(e,p),h=r(t,p);if(i&&i.push(p),!f(m,h,i))return!1;if(i){var g=i.pop();if(g!==p)throw Error(``+g)}}return!0}if(!i)return!1;var _=Object.create(null);for(d=0;d<s;++d)_[a[d]]=!0;for(d=0;d<u;++d){if(p=c[d],!l.call(_,p))return i.push(p),!1;delete _[p]}for(p in _){i.push(p);break}return!1}return x(m,`objectsAreEquivalent`),u}x(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Kt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/fork.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importDefault(Wt()),a=n.__importDefault(Gt()),o=n.__importDefault(Vt()),s=n.__importDefault(Ut()),c=K();function l(e){var t=u(),n=t.use(r.default);e.forEach(t.use),n.finalize();var c=t.use(i.default);return{Type:n.Type,builtInTypes:n.builtInTypes,namedTypes:n.namedTypes,builders:n.builders,defineMethod:n.defineMethod,getFieldNames:n.getFieldNames,getFieldValue:n.getFieldValue,eachField:n.eachField,someField:n.someField,getSupertypeNames:n.getSupertypeNames,getBuilderName:n.getBuilderName,astNodesAreEquivalent:t.use(a.default),finalize:n.finalize,Path:t.use(o.default),NodePath:t.use(s.default),PathVisitor:c,use:t.use,visit:c.visit}}x(l,`default_1`),e.default=l;function u(){var e=[],t=[];function n(n){var i=e.indexOf(n);return i===-1&&(i=e.length,e.push(n),t[i]=n(r)),t[i]}x(n,`use`);var r={use:n};return r}x(u,`createFork`),(0,c.maybeSetModuleExports)(function(){return t})}}),qt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/core.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=K();function r(){return{BinaryOperators:[`==`,`!=`,`===`,`!==`,`<`,`<=`,`>`,`>=`,`<<`,`>>`,`>>>`,`+`,`-`,`*`,`/`,`%`,`&`,`|`,`^`,`in`,`instanceof`],AssignmentOperators:[`=`,`+=`,`-=`,`*=`,`/=`,`%=`,`<<=`,`>>=`,`>>>=`,`|=`,`^=`,`&=`],LogicalOperators:[`||`,`&&`]}}x(r,`default_1`),e.default=r,(0,n.maybeSetModuleExports)(function(){return t})}}),Jt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2016.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(qt());function a(e){var t=e.use(i.default);return t.BinaryOperators.indexOf(`**`)<0&&t.BinaryOperators.push(`**`),t.AssignmentOperators.indexOf(`**=`)<0&&t.AssignmentOperators.push(`**=`),t}x(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Yt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2020.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(Jt());function a(e){var t=e.use(i.default);return t.LogicalOperators.indexOf(`??`)<0&&t.LogicalOperators.push(`??`),t}x(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Xt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/operators/es2021.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=K(),i=n.__importDefault(Yt());function a(e){var t=e.use(i.default);return t.LogicalOperators.forEach(function(e){var n=e+`=`;t.AssignmentOperators.indexOf(n)<0&&t.AssignmentOperators.push(n)}),t}x(a,`default_1`),e.default=a,(0,r.maybeSetModuleExports)(function(){return t})}}),Zt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/core.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(qt()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){var t=e.use(i.default).Type,n=t.def,o=t.or,s=e.use(a.default),c=s.defaults,l=s.geq,u=e.use(r.default),d=u.BinaryOperators,f=u.AssignmentOperators,p=u.LogicalOperators;n(`Printable`).field(`loc`,o(n(`SourceLocation`),null),c.null,!0),n(`Node`).bases(`Printable`).field(`type`,String).field(`comments`,o([n(`Comment`)],null),c.null,!0),n(`SourceLocation`).field(`start`,n(`Position`)).field(`end`,n(`Position`)).field(`source`,o(String,null),c.null),n(`Position`).field(`line`,l(1)).field(`column`,l(0)),n(`File`).bases(`Node`).build(`program`,`name`).field(`program`,n(`Program`)).field(`name`,o(String,null),c.null),n(`Program`).bases(`Node`).build(`body`).field(`body`,[n(`Statement`)]),n(`Function`).bases(`Node`).field(`id`,o(n(`Identifier`),null),c.null).field(`params`,[n(`Pattern`)]).field(`body`,n(`BlockStatement`)).field(`generator`,Boolean,c.false).field(`async`,Boolean,c.false),n(`Statement`).bases(`Node`),n(`EmptyStatement`).bases(`Statement`).build(),n(`BlockStatement`).bases(`Statement`).build(`body`).field(`body`,[n(`Statement`)]),n(`ExpressionStatement`).bases(`Statement`).build(`expression`).field(`expression`,n(`Expression`)),n(`IfStatement`).bases(`Statement`).build(`test`,`consequent`,`alternate`).field(`test`,n(`Expression`)).field(`consequent`,n(`Statement`)).field(`alternate`,o(n(`Statement`),null),c.null),n(`LabeledStatement`).bases(`Statement`).build(`label`,`body`).field(`label`,n(`Identifier`)).field(`body`,n(`Statement`)),n(`BreakStatement`).bases(`Statement`).build(`label`).field(`label`,o(n(`Identifier`),null),c.null),n(`ContinueStatement`).bases(`Statement`).build(`label`).field(`label`,o(n(`Identifier`),null),c.null),n(`WithStatement`).bases(`Statement`).build(`object`,`body`).field(`object`,n(`Expression`)).field(`body`,n(`Statement`)),n(`SwitchStatement`).bases(`Statement`).build(`discriminant`,`cases`,`lexical`).field(`discriminant`,n(`Expression`)).field(`cases`,[n(`SwitchCase`)]).field(`lexical`,Boolean,c.false),n(`ReturnStatement`).bases(`Statement`).build(`argument`).field(`argument`,o(n(`Expression`),null)),n(`ThrowStatement`).bases(`Statement`).build(`argument`).field(`argument`,n(`Expression`)),n(`TryStatement`).bases(`Statement`).build(`block`,`handler`,`finalizer`).field(`block`,n(`BlockStatement`)).field(`handler`,o(n(`CatchClause`),null),function(){return this.handlers&&this.handlers[0]||null}).field(`handlers`,[n(`CatchClause`)],function(){return this.handler?[this.handler]:[]},!0).field(`guardedHandlers`,[n(`CatchClause`)],c.emptyArray).field(`finalizer`,o(n(`BlockStatement`),null),c.null),n(`CatchClause`).bases(`Node`).build(`param`,`guard`,`body`).field(`param`,n(`Pattern`)).field(`guard`,o(n(`Expression`),null),c.null).field(`body`,n(`BlockStatement`)),n(`WhileStatement`).bases(`Statement`).build(`test`,`body`).field(`test`,n(`Expression`)).field(`body`,n(`Statement`)),n(`DoWhileStatement`).bases(`Statement`).build(`body`,`test`).field(`body`,n(`Statement`)).field(`test`,n(`Expression`)),n(`ForStatement`).bases(`Statement`).build(`init`,`test`,`update`,`body`).field(`init`,o(n(`VariableDeclaration`),n(`Expression`),null)).field(`test`,o(n(`Expression`),null)).field(`update`,o(n(`Expression`),null)).field(`body`,n(`Statement`)),n(`ForInStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,o(n(`VariableDeclaration`),n(`Expression`))).field(`right`,n(`Expression`)).field(`body`,n(`Statement`)),n(`DebuggerStatement`).bases(`Statement`).build(),n(`Declaration`).bases(`Statement`),n(`FunctionDeclaration`).bases(`Function`,`Declaration`).build(`id`,`params`,`body`).field(`id`,n(`Identifier`)),n(`FunctionExpression`).bases(`Function`,`Expression`).build(`id`,`params`,`body`),n(`VariableDeclaration`).bases(`Declaration`).build(`kind`,`declarations`).field(`kind`,o(`var`,`let`,`const`)).field(`declarations`,[n(`VariableDeclarator`)]),n(`VariableDeclarator`).bases(`Node`).build(`id`,`init`).field(`id`,n(`Pattern`)).field(`init`,o(n(`Expression`),null),c.null),n(`Expression`).bases(`Node`),n(`ThisExpression`).bases(`Expression`).build(),n(`ArrayExpression`).bases(`Expression`).build(`elements`).field(`elements`,[o(n(`Expression`),null)]),n(`ObjectExpression`).bases(`Expression`).build(`properties`).field(`properties`,[n(`Property`)]),n(`Property`).bases(`Node`).build(`kind`,`key`,`value`).field(`kind`,o(`init`,`get`,`set`)).field(`key`,o(n(`Literal`),n(`Identifier`))).field(`value`,n(`Expression`)),n(`SequenceExpression`).bases(`Expression`).build(`expressions`).field(`expressions`,[n(`Expression`)]);var m=o(`-`,`+`,`!`,`~`,`typeof`,`void`,`delete`);n(`UnaryExpression`).bases(`Expression`).build(`operator`,`argument`,`prefix`).field(`operator`,m).field(`argument`,n(`Expression`)).field(`prefix`,Boolean,c.true);var h=o.apply(void 0,d);n(`BinaryExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,h).field(`left`,n(`Expression`)).field(`right`,n(`Expression`));var g=o.apply(void 0,f);n(`AssignmentExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,g).field(`left`,o(n(`Pattern`),n(`MemberExpression`))).field(`right`,n(`Expression`));var _=o(`++`,`--`);n(`UpdateExpression`).bases(`Expression`).build(`operator`,`argument`,`prefix`).field(`operator`,_).field(`argument`,n(`Expression`)).field(`prefix`,Boolean);var v=o.apply(void 0,p);n(`LogicalExpression`).bases(`Expression`).build(`operator`,`left`,`right`).field(`operator`,v).field(`left`,n(`Expression`)).field(`right`,n(`Expression`)),n(`ConditionalExpression`).bases(`Expression`).build(`test`,`consequent`,`alternate`).field(`test`,n(`Expression`)).field(`consequent`,n(`Expression`)).field(`alternate`,n(`Expression`)),n(`NewExpression`).bases(`Expression`).build(`callee`,`arguments`).field(`callee`,n(`Expression`)).field(`arguments`,[n(`Expression`)]),n(`CallExpression`).bases(`Expression`).build(`callee`,`arguments`).field(`callee`,n(`Expression`)).field(`arguments`,[n(`Expression`)]),n(`MemberExpression`).bases(`Expression`).build(`object`,`property`,`computed`).field(`object`,n(`Expression`)).field(`property`,o(n(`Identifier`),n(`Expression`))).field(`computed`,Boolean,function(){var e=this.property.type;return e===`Literal`||e===`MemberExpression`||e===`BinaryExpression`}),n(`Pattern`).bases(`Node`),n(`SwitchCase`).bases(`Node`).build(`test`,`consequent`).field(`test`,o(n(`Expression`),null)).field(`consequent`,[n(`Statement`)]),n(`Identifier`).bases(`Expression`,`Pattern`).build(`name`).field(`name`,String).field(`optional`,Boolean,c.false),n(`Literal`).bases(`Expression`).build(`value`).field(`value`,o(String,Boolean,null,Number,RegExp,BigInt)),n(`Comment`).bases(`Printable`).field(`value`,String).field(`leading`,Boolean,c.true).field(`trailing`,Boolean,c.false)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),J=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es6.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Zt()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`Function`).field(`generator`,Boolean,s.false).field(`expression`,Boolean,s.false).field(`defaults`,[o(n(`Expression`),null)],s.emptyArray).field(`rest`,o(n(`Identifier`),null),s.null),n(`RestElement`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)).field(`typeAnnotation`,o(n(`TypeAnnotation`),n(`TSTypeAnnotation`),null),s.null),n(`SpreadElementPattern`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)),n(`FunctionDeclaration`).build(`id`,`params`,`body`,`generator`,`expression`).field(`id`,o(n(`Identifier`),null)),n(`FunctionExpression`).build(`id`,`params`,`body`,`generator`,`expression`),n(`ArrowFunctionExpression`).bases(`Function`,`Expression`).build(`params`,`body`,`expression`).field(`id`,null,s.null).field(`body`,o(n(`BlockStatement`),n(`Expression`))).field(`generator`,!1,s.false),n(`ForOfStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,o(n(`VariableDeclaration`),n(`Pattern`))).field(`right`,n(`Expression`)).field(`body`,n(`Statement`)),n(`YieldExpression`).bases(`Expression`).build(`argument`,`delegate`).field(`argument`,o(n(`Expression`),null)).field(`delegate`,Boolean,s.false),n(`GeneratorExpression`).bases(`Expression`).build(`body`,`blocks`,`filter`).field(`body`,n(`Expression`)).field(`blocks`,[n(`ComprehensionBlock`)]).field(`filter`,o(n(`Expression`),null)),n(`ComprehensionExpression`).bases(`Expression`).build(`body`,`blocks`,`filter`).field(`body`,n(`Expression`)).field(`blocks`,[n(`ComprehensionBlock`)]).field(`filter`,o(n(`Expression`),null)),n(`ComprehensionBlock`).bases(`Node`).build(`left`,`right`,`each`).field(`left`,n(`Pattern`)).field(`right`,n(`Expression`)).field(`each`,Boolean),n(`Property`).field(`key`,o(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`value`,o(n(`Expression`),n(`Pattern`))).field(`method`,Boolean,s.false).field(`shorthand`,Boolean,s.false).field(`computed`,Boolean,s.false),n(`ObjectProperty`).field(`shorthand`,Boolean,s.false),n(`PropertyPattern`).bases(`Pattern`).build(`key`,`pattern`).field(`key`,o(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`pattern`,n(`Pattern`)).field(`computed`,Boolean,s.false),n(`ObjectPattern`).bases(`Pattern`).build(`properties`).field(`properties`,[o(n(`PropertyPattern`),n(`Property`))]),n(`ArrayPattern`).bases(`Pattern`).build(`elements`).field(`elements`,[o(n(`Pattern`),null)]),n(`SpreadElement`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`)),n(`ArrayExpression`).field(`elements`,[o(n(`Expression`),n(`SpreadElement`),n(`RestElement`),null)]),n(`NewExpression`).field(`arguments`,[o(n(`Expression`),n(`SpreadElement`))]),n(`CallExpression`).field(`arguments`,[o(n(`Expression`),n(`SpreadElement`))]),n(`AssignmentPattern`).bases(`Pattern`).build(`left`,`right`).field(`left`,n(`Pattern`)).field(`right`,n(`Expression`)),n(`MethodDefinition`).bases(`Declaration`).build(`kind`,`key`,`value`,`static`).field(`kind`,o(`constructor`,`method`,`get`,`set`)).field(`key`,n(`Expression`)).field(`value`,n(`Function`)).field(`computed`,Boolean,s.false).field(`static`,Boolean,s.false);var c=o(n(`MethodDefinition`),n(`VariableDeclarator`),n(`ClassPropertyDefinition`),n(`ClassProperty`),n(`StaticBlock`));n(`ClassProperty`).bases(`Declaration`).build(`key`).field(`key`,o(n(`Literal`),n(`Identifier`),n(`Expression`))).field(`computed`,Boolean,s.false),n(`ClassPropertyDefinition`).bases(`Declaration`).build(`definition`).field(`definition`,c),n(`ClassBody`).bases(`Declaration`).build(`body`).field(`body`,[c]),n(`ClassDeclaration`).bases(`Declaration`).build(`id`,`body`,`superClass`).field(`id`,o(n(`Identifier`),null)).field(`body`,n(`ClassBody`)).field(`superClass`,o(n(`Expression`),null),s.null),n(`ClassExpression`).bases(`Expression`).build(`id`,`body`,`superClass`).field(`id`,o(n(`Identifier`),null),s.null).field(`body`,n(`ClassBody`)).field(`superClass`,o(n(`Expression`),null),s.null),n(`Super`).bases(`Expression`).build(),n(`Specifier`).bases(`Node`),n(`ModuleSpecifier`).bases(`Specifier`).field(`local`,o(n(`Identifier`),null),s.null).field(`id`,o(n(`Identifier`),null),s.null).field(`name`,o(n(`Identifier`),null),s.null),n(`ImportSpecifier`).bases(`ModuleSpecifier`).build(`imported`,`local`).field(`imported`,n(`Identifier`)),n(`ImportDefaultSpecifier`).bases(`ModuleSpecifier`).build(`local`),n(`ImportNamespaceSpecifier`).bases(`ModuleSpecifier`).build(`local`),n(`ImportDeclaration`).bases(`Declaration`).build(`specifiers`,`source`,`importKind`).field(`specifiers`,[o(n(`ImportSpecifier`),n(`ImportNamespaceSpecifier`),n(`ImportDefaultSpecifier`))],s.emptyArray).field(`source`,n(`Literal`)).field(`importKind`,o(`value`,`type`),function(){return`value`}),n(`ExportNamedDeclaration`).bases(`Declaration`).build(`declaration`,`specifiers`,`source`).field(`declaration`,o(n(`Declaration`),null)).field(`specifiers`,[n(`ExportSpecifier`)],s.emptyArray).field(`source`,o(n(`Literal`),null),s.null),n(`ExportSpecifier`).bases(`ModuleSpecifier`).build(`local`,`exported`).field(`exported`,n(`Identifier`)),n(`ExportDefaultDeclaration`).bases(`Declaration`).build(`declaration`).field(`declaration`,o(n(`Declaration`),n(`Expression`))),n(`ExportAllDeclaration`).bases(`Declaration`).build(`source`).field(`source`,n(`Literal`)),n(`TaggedTemplateExpression`).bases(`Expression`).build(`tag`,`quasi`).field(`tag`,n(`Expression`)).field(`quasi`,n(`TemplateLiteral`)),n(`TemplateLiteral`).bases(`Expression`).build(`quasis`,`expressions`).field(`quasis`,[n(`TemplateElement`)]).field(`expressions`,[n(`Expression`)]),n(`TemplateElement`).bases(`Node`).build(`value`,`tail`).field(`value`,{cooked:String,raw:String}).field(`tail`,Boolean),n(`MetaProperty`).bases(`Expression`).build(`meta`,`property`).field(`meta`,n(`Identifier`)).field(`property`,n(`Identifier`))}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),Qt=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2016.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Jt()),i=n.__importDefault(J()),a=K();function o(e){e.use(r.default),e.use(i.default)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),$t=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2017.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Qt()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default).Type.def,n=e.use(a.default).defaults;t(`Function`).field(`async`,Boolean,n.false),t(`AwaitExpression`).bases(`Expression`).build(`argument`).field(`argument`,t(`Expression`))}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),en=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2018.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault($t()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`ForOfStatement`).field(`await`,Boolean,s.false),n(`SpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`)),n(`ObjectExpression`).field(`properties`,[o(n(`Property`),n(`SpreadProperty`),n(`SpreadElement`))]),n(`TemplateElement`).field(`value`,{cooked:o(String,null),raw:String}),n(`SpreadPropertyPattern`).bases(`Pattern`).build(`argument`).field(`argument`,n(`Pattern`)),n(`ObjectPattern`).field(`properties`,[o(n(`PropertyPattern`),n(`Property`),n(`RestElement`),n(`SpreadPropertyPattern`))])}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),tn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2019.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(en()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`CatchClause`).field(`param`,o(n(`Pattern`),null),s.null)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),nn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2020.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Yt()),i=n.__importDefault(tn()),a=n.__importDefault(q()),o=n.__importStar(K());function s(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.Type.def,s=t.Type.or,c=e.use(o.default).defaults;n(`ImportExpression`).bases(`Expression`).build(`source`).field(`source`,n(`Expression`)),n(`ExportAllDeclaration`).bases(`Declaration`).build(`source`,`exported`).field(`source`,n(`Literal`)).field(`exported`,s(n(`Identifier`),null,void 0),c.null),n(`ChainElement`).bases(`Node`).field(`optional`,Boolean,c.false),n(`CallExpression`).bases(`Expression`,`ChainElement`),n(`MemberExpression`).bases(`Expression`,`ChainElement`),n(`ChainExpression`).bases(`Expression`).build(`expression`).field(`expression`,n(`ChainElement`)),n(`OptionalCallExpression`).bases(`CallExpression`).build(`callee`,`arguments`,`optional`).field(`optional`,Boolean,c.true),n(`OptionalMemberExpression`).bases(`MemberExpression`).build(`object`,`property`,`computed`,`optional`).field(`optional`,Boolean,c.true)}x(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),rn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2021.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(Xt()),i=n.__importDefault(nn()),a=K();function o(e){e.use(r.default),e.use(i.default)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),an=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es2022.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(rn()),i=n.__importDefault(q()),a=K();function o(e){e.use(r.default);var t=e.use(i.default).Type.def;t(`StaticBlock`).bases(`Declaration`).build(`body`).field(`body`,[t(`Statement`)])}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),on=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/es-proposals.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importStar(K()),a=n.__importDefault(an());function o(e){e.use(a.default);var t=e.use(r.default),n=t.Type,o=t.Type.def,s=n.or,c=e.use(i.default).defaults;o(`AwaitExpression`).build(`argument`,`all`).field(`argument`,s(o(`Expression`),null)).field(`all`,Boolean,c.false),o(`Decorator`).bases(`Node`).build(`expression`).field(`expression`,o(`Expression`)),o(`Property`).field(`decorators`,s([o(`Decorator`)],null),c.null),o(`MethodDefinition`).field(`decorators`,s([o(`Decorator`)],null),c.null),o(`PrivateName`).bases(`Expression`,`Pattern`).build(`id`).field(`id`,o(`Identifier`)),o(`ClassPrivateProperty`).bases(`ClassProperty`).build(`key`,`value`).field(`key`,o(`PrivateName`)).field(`value`,s(o(`Expression`),null),c.null),o(`ImportAttribute`).bases(`Node`).build(`key`,`value`).field(`key`,s(o(`Identifier`),o(`Literal`))).field(`value`,o(`Expression`)),[`ImportDeclaration`,`ExportAllDeclaration`,`ExportNamedDeclaration`].forEach(function(e){o(e).field(`assertions`,[o(`ImportAttribute`)],c.emptyArray)}),o(`RecordExpression`).bases(`Expression`).build(`properties`).field(`properties`,[s(o(`ObjectProperty`),o(`ObjectMethod`),o(`SpreadElement`))]),o(`TupleExpression`).bases(`Expression`).build(`elements`).field(`elements`,[s(o(`Expression`),o(`SpreadElement`),null)]),o(`ModuleExpression`).bases(`Node`).build(`body`).field(`body`,o(`Program`))}x(o,`default_1`),e.default=o,(0,i.maybeSetModuleExports)(function(){return t})}}),sn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/jsx.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(on()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=t.Type.def,o=t.Type.or,s=e.use(a.default).defaults;n(`JSXAttribute`).bases(`Node`).build(`name`,`value`).field(`name`,o(n(`JSXIdentifier`),n(`JSXNamespacedName`))).field(`value`,o(n(`Literal`),n(`JSXExpressionContainer`),n(`JSXElement`),n(`JSXFragment`),null),s.null),n(`JSXIdentifier`).bases(`Identifier`).build(`name`).field(`name`,String),n(`JSXNamespacedName`).bases(`Node`).build(`namespace`,`name`).field(`namespace`,n(`JSXIdentifier`)).field(`name`,n(`JSXIdentifier`)),n(`JSXMemberExpression`).bases(`MemberExpression`).build(`object`,`property`).field(`object`,o(n(`JSXIdentifier`),n(`JSXMemberExpression`))).field(`property`,n(`JSXIdentifier`)).field(`computed`,Boolean,s.false);var c=o(n(`JSXIdentifier`),n(`JSXNamespacedName`),n(`JSXMemberExpression`));n(`JSXSpreadAttribute`).bases(`Node`).build(`argument`).field(`argument`,n(`Expression`));var l=[o(n(`JSXAttribute`),n(`JSXSpreadAttribute`))];n(`JSXExpressionContainer`).bases(`Expression`).build(`expression`).field(`expression`,o(n(`Expression`),n(`JSXEmptyExpression`)));var u=[o(n(`JSXText`),n(`JSXExpressionContainer`),n(`JSXSpreadChild`),n(`JSXElement`),n(`JSXFragment`),n(`Literal`))];n(`JSXElement`).bases(`Expression`).build(`openingElement`,`closingElement`,`children`).field(`openingElement`,n(`JSXOpeningElement`)).field(`closingElement`,o(n(`JSXClosingElement`),null),s.null).field(`children`,u,s.emptyArray).field(`name`,c,function(){return this.openingElement.name},!0).field(`selfClosing`,Boolean,function(){return this.openingElement.selfClosing},!0).field(`attributes`,l,function(){return this.openingElement.attributes},!0),n(`JSXOpeningElement`).bases(`Node`).build(`name`,`attributes`,`selfClosing`).field(`name`,c).field(`attributes`,l,s.emptyArray).field(`selfClosing`,Boolean,s.false),n(`JSXClosingElement`).bases(`Node`).build(`name`).field(`name`,c),n(`JSXFragment`).bases(`Expression`).build(`openingFragment`,`closingFragment`,`children`).field(`openingFragment`,n(`JSXOpeningFragment`)).field(`closingFragment`,n(`JSXClosingFragment`)).field(`children`,u,s.emptyArray),n(`JSXOpeningFragment`).bases(`Node`).build(),n(`JSXClosingFragment`).bases(`Node`).build(),n(`JSXText`).bases(`Literal`).build(`value`,`raw`).field(`value`,String).field(`raw`,String,function(){return this.value}),n(`JSXEmptyExpression`).bases(`Node`).build(),n(`JSXSpreadChild`).bases(`Node`).build(`expression`).field(`expression`,n(`Expression`))}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),cn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/type-annotations.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importStar(K());function a(e){var t=e.use(r.default),n=t.Type.def,a=t.Type.or,o=e.use(i.default).defaults,s=a(n(`TypeAnnotation`),n(`TSTypeAnnotation`),null),c=a(n(`TypeParameterDeclaration`),n(`TSTypeParameterDeclaration`),null);n(`Identifier`).field(`typeAnnotation`,s,o.null),n(`ObjectPattern`).field(`typeAnnotation`,s,o.null),n(`Function`).field(`returnType`,s,o.null).field(`typeParameters`,c,o.null),n(`ClassProperty`).build(`key`,`value`,`typeAnnotation`,`static`).field(`value`,a(n(`Expression`),null)).field(`static`,Boolean,o.false).field(`typeAnnotation`,s,o.null),[`ClassDeclaration`,`ClassExpression`].forEach(function(e){n(e).field(`typeParameters`,c,o.null).field(`superTypeParameters`,a(n(`TypeParameterInstantiation`),n(`TSTypeParameterInstantiation`),null),o.null).field(`implements`,a([n(`ClassImplements`)],[n(`TSExpressionWithTypeArguments`)]),o.emptyArray)})}x(a,`default_1`),e.default=a,(0,i.maybeSetModuleExports)(function(){return t})}}),ln=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/flow.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(on()),i=n.__importDefault(cn()),a=n.__importDefault(q()),o=n.__importStar(K());function s(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.Type.def,s=t.Type.or,c=e.use(o.default).defaults;n(`Flow`).bases(`Node`),n(`FlowType`).bases(`Flow`),n(`AnyTypeAnnotation`).bases(`FlowType`).build(),n(`EmptyTypeAnnotation`).bases(`FlowType`).build(),n(`MixedTypeAnnotation`).bases(`FlowType`).build(),n(`VoidTypeAnnotation`).bases(`FlowType`).build(),n(`SymbolTypeAnnotation`).bases(`FlowType`).build(),n(`NumberTypeAnnotation`).bases(`FlowType`).build(),n(`BigIntTypeAnnotation`).bases(`FlowType`).build(),n(`NumberLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Number).field(`raw`,String),n(`NumericLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Number).field(`raw`,String),n(`BigIntLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,null).field(`raw`,String),n(`StringTypeAnnotation`).bases(`FlowType`).build(),n(`StringLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,String).field(`raw`,String),n(`BooleanTypeAnnotation`).bases(`FlowType`).build(),n(`BooleanLiteralTypeAnnotation`).bases(`FlowType`).build(`value`,`raw`).field(`value`,Boolean).field(`raw`,String),n(`TypeAnnotation`).bases(`Node`).build(`typeAnnotation`).field(`typeAnnotation`,n(`FlowType`)),n(`NullableTypeAnnotation`).bases(`FlowType`).build(`typeAnnotation`).field(`typeAnnotation`,n(`FlowType`)),n(`NullLiteralTypeAnnotation`).bases(`FlowType`).build(),n(`NullTypeAnnotation`).bases(`FlowType`).build(),n(`ThisTypeAnnotation`).bases(`FlowType`).build(),n(`ExistsTypeAnnotation`).bases(`FlowType`).build(),n(`ExistentialTypeParam`).bases(`FlowType`).build(),n(`FunctionTypeAnnotation`).bases(`FlowType`).build(`params`,`returnType`,`rest`,`typeParameters`).field(`params`,[n(`FunctionTypeParam`)]).field(`returnType`,n(`FlowType`)).field(`rest`,s(n(`FunctionTypeParam`),null)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null)),n(`FunctionTypeParam`).bases(`Node`).build(`name`,`typeAnnotation`,`optional`).field(`name`,s(n(`Identifier`),null)).field(`typeAnnotation`,n(`FlowType`)).field(`optional`,Boolean),n(`ArrayTypeAnnotation`).bases(`FlowType`).build(`elementType`).field(`elementType`,n(`FlowType`)),n(`ObjectTypeAnnotation`).bases(`FlowType`).build(`properties`,`indexers`,`callProperties`).field(`properties`,[s(n(`ObjectTypeProperty`),n(`ObjectTypeSpreadProperty`))]).field(`indexers`,[n(`ObjectTypeIndexer`)],c.emptyArray).field(`callProperties`,[n(`ObjectTypeCallProperty`)],c.emptyArray).field(`inexact`,s(Boolean,void 0),c.undefined).field(`exact`,Boolean,c.false).field(`internalSlots`,[n(`ObjectTypeInternalSlot`)],c.emptyArray),n(`Variance`).bases(`Node`).build(`kind`).field(`kind`,s(`plus`,`minus`));var l=s(n(`Variance`),`plus`,`minus`,null);n(`ObjectTypeProperty`).bases(`Node`).build(`key`,`value`,`optional`).field(`key`,s(n(`Literal`),n(`Identifier`))).field(`value`,n(`FlowType`)).field(`optional`,Boolean).field(`variance`,l,c.null),n(`ObjectTypeIndexer`).bases(`Node`).build(`id`,`key`,`value`).field(`id`,n(`Identifier`)).field(`key`,n(`FlowType`)).field(`value`,n(`FlowType`)).field(`variance`,l,c.null).field(`static`,Boolean,c.false),n(`ObjectTypeCallProperty`).bases(`Node`).build(`value`).field(`value`,n(`FunctionTypeAnnotation`)).field(`static`,Boolean,c.false),n(`QualifiedTypeIdentifier`).bases(`Node`).build(`qualification`,`id`).field(`qualification`,s(n(`Identifier`),n(`QualifiedTypeIdentifier`))).field(`id`,n(`Identifier`)),n(`GenericTypeAnnotation`).bases(`FlowType`).build(`id`,`typeParameters`).field(`id`,s(n(`Identifier`),n(`QualifiedTypeIdentifier`))).field(`typeParameters`,s(n(`TypeParameterInstantiation`),null)),n(`MemberTypeAnnotation`).bases(`FlowType`).build(`object`,`property`).field(`object`,n(`Identifier`)).field(`property`,s(n(`MemberTypeAnnotation`),n(`GenericTypeAnnotation`))),n(`IndexedAccessType`).bases(`FlowType`).build(`objectType`,`indexType`).field(`objectType`,n(`FlowType`)).field(`indexType`,n(`FlowType`)),n(`OptionalIndexedAccessType`).bases(`FlowType`).build(`objectType`,`indexType`,`optional`).field(`objectType`,n(`FlowType`)).field(`indexType`,n(`FlowType`)).field(`optional`,Boolean),n(`UnionTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`IntersectionTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`TypeofTypeAnnotation`).bases(`FlowType`).build(`argument`).field(`argument`,n(`FlowType`)),n(`ObjectTypeSpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,n(`FlowType`)),n(`ObjectTypeInternalSlot`).bases(`Node`).build(`id`,`value`,`optional`,`static`,`method`).field(`id`,n(`Identifier`)).field(`value`,n(`FlowType`)).field(`optional`,Boolean).field(`static`,Boolean).field(`method`,Boolean),n(`TypeParameterDeclaration`).bases(`Node`).build(`params`).field(`params`,[n(`TypeParameter`)]),n(`TypeParameterInstantiation`).bases(`Node`).build(`params`).field(`params`,[n(`FlowType`)]),n(`TypeParameter`).bases(`FlowType`).build(`name`,`variance`,`bound`,`default`).field(`name`,String).field(`variance`,l,c.null).field(`bound`,s(n(`TypeAnnotation`),null),c.null).field(`default`,s(n(`FlowType`),null),c.null),n(`ClassProperty`).field(`variance`,l,c.null),n(`ClassImplements`).bases(`Node`).build(`id`).field(`id`,n(`Identifier`)).field(`superClass`,s(n(`Expression`),null),c.null).field(`typeParameters`,s(n(`TypeParameterInstantiation`),null),c.null),n(`InterfaceTypeAnnotation`).bases(`FlowType`).build(`body`,`extends`).field(`body`,n(`ObjectTypeAnnotation`)).field(`extends`,s([n(`InterfaceExtends`)],null),c.null),n(`InterfaceDeclaration`).bases(`Declaration`).build(`id`,`body`,`extends`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null),c.null).field(`body`,n(`ObjectTypeAnnotation`)).field(`extends`,[n(`InterfaceExtends`)]),n(`DeclareInterface`).bases(`InterfaceDeclaration`).build(`id`,`body`,`extends`),n(`InterfaceExtends`).bases(`Node`).build(`id`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterInstantiation`),null),c.null),n(`TypeAlias`).bases(`Declaration`).build(`id`,`typeParameters`,`right`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null)).field(`right`,n(`FlowType`)),n(`DeclareTypeAlias`).bases(`TypeAlias`).build(`id`,`typeParameters`,`right`),n(`OpaqueType`).bases(`Declaration`).build(`id`,`typeParameters`,`impltype`,`supertype`).field(`id`,n(`Identifier`)).field(`typeParameters`,s(n(`TypeParameterDeclaration`),null)).field(`impltype`,n(`FlowType`)).field(`supertype`,s(n(`FlowType`),null)),n(`DeclareOpaqueType`).bases(`OpaqueType`).build(`id`,`typeParameters`,`supertype`).field(`impltype`,s(n(`FlowType`),null)),n(`TypeCastExpression`).bases(`Expression`).build(`expression`,`typeAnnotation`).field(`expression`,n(`Expression`)).field(`typeAnnotation`,n(`TypeAnnotation`)),n(`TupleTypeAnnotation`).bases(`FlowType`).build(`types`).field(`types`,[n(`FlowType`)]),n(`DeclareVariable`).bases(`Statement`).build(`id`).field(`id`,n(`Identifier`)),n(`DeclareFunction`).bases(`Statement`).build(`id`).field(`id`,n(`Identifier`)).field(`predicate`,s(n(`FlowPredicate`),null),c.null),n(`DeclareClass`).bases(`InterfaceDeclaration`).build(`id`),n(`DeclareModule`).bases(`Statement`).build(`id`,`body`).field(`id`,s(n(`Identifier`),n(`Literal`))).field(`body`,n(`BlockStatement`)),n(`DeclareModuleExports`).bases(`Statement`).build(`typeAnnotation`).field(`typeAnnotation`,n(`TypeAnnotation`)),n(`DeclareExportDeclaration`).bases(`Declaration`).build(`default`,`declaration`,`specifiers`,`source`).field(`default`,Boolean).field(`declaration`,s(n(`DeclareVariable`),n(`DeclareFunction`),n(`DeclareClass`),n(`FlowType`),n(`TypeAlias`),n(`DeclareOpaqueType`),n(`InterfaceDeclaration`),null)).field(`specifiers`,[s(n(`ExportSpecifier`),n(`ExportBatchSpecifier`))],c.emptyArray).field(`source`,s(n(`Literal`),null),c.null),n(`DeclareExportAllDeclaration`).bases(`Declaration`).build(`source`).field(`source`,s(n(`Literal`),null),c.null),n(`ImportDeclaration`).field(`importKind`,s(`value`,`type`,`typeof`),function(){return`value`}),n(`FlowPredicate`).bases(`Flow`),n(`InferredPredicate`).bases(`FlowPredicate`).build(),n(`DeclaredPredicate`).bases(`FlowPredicate`).build(`value`).field(`value`,n(`Expression`)),n(`Function`).field(`predicate`,s(n(`FlowPredicate`),null),c.null),n(`CallExpression`).field(`typeArguments`,s(null,n(`TypeParameterInstantiation`)),c.null),n(`NewExpression`).field(`typeArguments`,s(null,n(`TypeParameterInstantiation`)),c.null),n(`EnumDeclaration`).bases(`Declaration`).build(`id`,`body`).field(`id`,n(`Identifier`)).field(`body`,s(n(`EnumBooleanBody`),n(`EnumNumberBody`),n(`EnumStringBody`),n(`EnumSymbolBody`))),n(`EnumBooleanBody`).build(`members`,`explicitType`).field(`members`,[n(`EnumBooleanMember`)]).field(`explicitType`,Boolean),n(`EnumNumberBody`).build(`members`,`explicitType`).field(`members`,[n(`EnumNumberMember`)]).field(`explicitType`,Boolean),n(`EnumStringBody`).build(`members`,`explicitType`).field(`members`,s([n(`EnumStringMember`)],[n(`EnumDefaultedMember`)])).field(`explicitType`,Boolean),n(`EnumSymbolBody`).build(`members`).field(`members`,[n(`EnumDefaultedMember`)]),n(`EnumBooleanMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,s(n(`Literal`),Boolean)),n(`EnumNumberMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,n(`Literal`)),n(`EnumStringMember`).build(`id`,`init`).field(`id`,n(`Identifier`)).field(`init`,n(`Literal`)),n(`EnumDefaultedMember`).build(`id`).field(`id`,n(`Identifier`))}x(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),un=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/esprima.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(on()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){e.use(r.default);var t=e.use(i.default),n=e.use(a.default).defaults,o=t.Type.def,s=t.Type.or;o(`VariableDeclaration`).field(`declarations`,[s(o(`VariableDeclarator`),o(`Identifier`))]),o(`Property`).field(`value`,s(o(`Expression`),o(`Pattern`))),o(`ArrayPattern`).field(`elements`,[s(o(`Pattern`),o(`SpreadElement`),null)]),o(`ObjectPattern`).field(`properties`,[s(o(`Property`),o(`PropertyPattern`),o(`SpreadPropertyPattern`),o(`SpreadProperty`))]),o(`ExportSpecifier`).bases(`ModuleSpecifier`).build(`id`,`name`),o(`ExportBatchSpecifier`).bases(`Specifier`).build(),o(`ExportDeclaration`).bases(`Declaration`).build(`default`,`declaration`,`specifiers`,`source`).field(`default`,Boolean).field(`declaration`,s(o(`Declaration`),o(`Expression`),null)).field(`specifiers`,[s(o(`ExportSpecifier`),o(`ExportBatchSpecifier`))],n.emptyArray).field(`source`,s(o(`Literal`),null),n.null),o(`Block`).bases(`Comment`).build(`value`,`leading`,`trailing`),o(`Line`).bases(`Comment`).build(`value`,`leading`,`trailing`)}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),dn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/babel-core.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(on()),i=n.__importDefault(q()),a=n.__importStar(K());function o(e){var t,n,o,s,c;e.use(r.default);var l=e.use(i.default),u=e.use(a.default).defaults,d=l.Type.def,f=l.Type.or,p=l.builtInTypes.undefined;d(`Noop`).bases(`Statement`).build(),d(`DoExpression`).bases(`Expression`).build(`body`).field(`body`,[d(`Statement`)]),d(`BindExpression`).bases(`Expression`).build(`object`,`callee`).field(`object`,f(d(`Expression`),null)).field(`callee`,d(`Expression`)),d(`ParenthesizedExpression`).bases(`Expression`).build(`expression`).field(`expression`,d(`Expression`)),d(`ExportNamespaceSpecifier`).bases(`Specifier`).build(`exported`).field(`exported`,d(`Identifier`)),d(`ExportDefaultSpecifier`).bases(`Specifier`).build(`exported`).field(`exported`,d(`Identifier`)),d(`CommentBlock`).bases(`Comment`).build(`value`,`leading`,`trailing`),d(`CommentLine`).bases(`Comment`).build(`value`,`leading`,`trailing`),d(`Directive`).bases(`Node`).build(`value`).field(`value`,d(`DirectiveLiteral`)),d(`DirectiveLiteral`).bases(`Node`,`Expression`).build(`value`).field(`value`,String,u[`use strict`]),d(`InterpreterDirective`).bases(`Node`).build(`value`).field(`value`,String),d(`BlockStatement`).bases(`Statement`).build(`body`).field(`body`,[d(`Statement`)]).field(`directives`,[d(`Directive`)],u.emptyArray),d(`Program`).bases(`Node`).build(`body`).field(`body`,[d(`Statement`)]).field(`directives`,[d(`Directive`)],u.emptyArray).field(`interpreter`,f(d(`InterpreterDirective`),null),u.null);function m(e,t){return e===void 0&&(e=String),[`extra`,{rawValue:e,raw:String},x(function(){var e=l.getFieldValue(this,`value`);return{rawValue:e,raw:t?t(e):String(e)}},`getDefault`)]}x(m,`makeLiteralExtra`),(t=d(`StringLiteral`).bases(`Literal`).build(`value`).field(`value`,String)).field.apply(t,m(String,function(e){return JSON.stringify(e)})),(n=d(`NumericLiteral`).bases(`Literal`).build(`value`).field(`value`,Number).field(`raw`,f(String,null),u.null)).field.apply(n,m(Number)),(o=d(`BigIntLiteral`).bases(`Literal`).build(`value`).field(`value`,f(String,Number))).field.apply(o,m(String,function(e){return e+`n`})),(s=d(`DecimalLiteral`).bases(`Literal`).build(`value`).field(`value`,String)).field.apply(s,m(String,function(e){return e+`m`})),d(`NullLiteral`).bases(`Literal`).build().field(`value`,null,u.null),d(`BooleanLiteral`).bases(`Literal`).build(`value`).field(`value`,Boolean),(c=d(`RegExpLiteral`).bases(`Literal`).build(`pattern`,`flags`).field(`pattern`,String).field(`flags`,String).field(`value`,RegExp,function(){return new RegExp(this.pattern,this.flags)})).field.apply(c,m(f(RegExp,p),function(e){return`/${e.pattern}/${e.flags||``}`})).field(`regex`,{pattern:String,flags:String},function(){return{pattern:this.pattern,flags:this.flags}});var h=f(d(`Property`),d(`ObjectMethod`),d(`ObjectProperty`),d(`SpreadProperty`),d(`SpreadElement`));d(`ObjectExpression`).bases(`Expression`).build(`properties`).field(`properties`,[h]),d(`ObjectMethod`).bases(`Node`,`Function`).build(`kind`,`key`,`params`,`body`,`computed`).field(`kind`,f(`method`,`get`,`set`)).field(`key`,f(d(`Literal`),d(`Identifier`),d(`Expression`))).field(`params`,[d(`Pattern`)]).field(`body`,d(`BlockStatement`)).field(`computed`,Boolean,u.false).field(`generator`,Boolean,u.false).field(`async`,Boolean,u.false).field(`accessibility`,f(d(`Literal`),null),u.null).field(`decorators`,f([d(`Decorator`)],null),u.null),d(`ObjectProperty`).bases(`Node`).build(`key`,`value`).field(`key`,f(d(`Literal`),d(`Identifier`),d(`Expression`))).field(`value`,f(d(`Expression`),d(`Pattern`))).field(`accessibility`,f(d(`Literal`),null),u.null).field(`computed`,Boolean,u.false);var g=f(d(`MethodDefinition`),d(`VariableDeclarator`),d(`ClassPropertyDefinition`),d(`ClassProperty`),d(`ClassPrivateProperty`),d(`ClassMethod`),d(`ClassPrivateMethod`),d(`ClassAccessorProperty`),d(`StaticBlock`));d(`ClassBody`).bases(`Declaration`).build(`body`).field(`body`,[g]),d(`ClassMethod`).bases(`Declaration`,`Function`).build(`kind`,`key`,`params`,`body`,`computed`,`static`).field(`key`,f(d(`Literal`),d(`Identifier`),d(`Expression`))),d(`ClassPrivateMethod`).bases(`Declaration`,`Function`).build(`key`,`params`,`body`,`kind`,`computed`,`static`).field(`key`,d(`PrivateName`)),d(`ClassAccessorProperty`).bases(`Declaration`).build(`key`,`value`,`decorators`,`computed`,`static`).field(`key`,f(d(`Literal`),d(`Identifier`),d(`PrivateName`),d(`Expression`))).field(`value`,f(d(`Expression`),null),u.null),[`ClassMethod`,`ClassPrivateMethod`].forEach(function(e){d(e).field(`kind`,f(`get`,`set`,`method`,`constructor`),function(){return`method`}).field(`body`,d(`BlockStatement`)).field(`access`,f(`public`,`private`,`protected`,null),u.null)}),[`ClassMethod`,`ClassPrivateMethod`,`ClassAccessorProperty`].forEach(function(e){d(e).field(`computed`,Boolean,u.false).field(`static`,Boolean,u.false).field(`abstract`,Boolean,u.false).field(`accessibility`,f(`public`,`private`,`protected`,null),u.null).field(`decorators`,f([d(`Decorator`)],null),u.null).field(`definite`,Boolean,u.false).field(`optional`,Boolean,u.false).field(`override`,Boolean,u.false).field(`readonly`,Boolean,u.false)});var _=f(d(`Property`),d(`PropertyPattern`),d(`SpreadPropertyPattern`),d(`SpreadProperty`),d(`ObjectProperty`),d(`RestProperty`),d(`RestElement`));d(`ObjectPattern`).bases(`Pattern`).build(`properties`).field(`properties`,[_]).field(`decorators`,f([d(`Decorator`)],null),u.null),d(`SpreadProperty`).bases(`Node`).build(`argument`).field(`argument`,d(`Expression`)),d(`RestProperty`).bases(`Node`).build(`argument`).field(`argument`,d(`Expression`)),d(`ForAwaitStatement`).bases(`Statement`).build(`left`,`right`,`body`).field(`left`,f(d(`VariableDeclaration`),d(`Expression`))).field(`right`,d(`Expression`)).field(`body`,d(`Statement`)),d(`Import`).bases(`Expression`).build()}x(o,`default_1`),e.default=o,(0,a.maybeSetModuleExports)(function(){return t})}}),fn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/babel.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(q()),i=n.__importDefault(dn()),a=n.__importDefault(ln()),o=K();function s(e){var t=e.use(r.default).Type.def;e.use(i.default),e.use(a.default),t(`V8IntrinsicIdentifier`).bases(`Expression`).build(`name`).field(`name`,String),t(`TopicReference`).bases(`Expression`).build()}x(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),pn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/def/typescript.js"(e,t){Object.defineProperty(e,`__esModule`,{value:!0});var n=(G(),C(U)),r=n.__importDefault(dn()),i=n.__importDefault(cn()),a=n.__importDefault(q()),o=n.__importStar(K());function s(e){e.use(r.default),e.use(i.default);var t=e.use(a.default),n=t.namedTypes,s=t.Type.def,c=t.Type.or,l=e.use(o.default).defaults,u=t.Type.from(function(e,t){return!!(n.StringLiteral&&n.StringLiteral.check(e,t)||n.Literal&&n.Literal.check(e,t)&&typeof e.value==`string`)},`StringLiteral`);s(`TSType`).bases(`Node`);var d=c(s(`Identifier`),s(`TSQualifiedName`));s(`TSTypeReference`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`typeName`,`typeParameters`).field(`typeName`,d),s(`TSHasOptionalTypeParameterInstantiation`).field(`typeParameters`,c(s(`TSTypeParameterInstantiation`),null),l.null),s(`TSHasOptionalTypeParameters`).field(`typeParameters`,c(s(`TSTypeParameterDeclaration`),null,void 0),l.null),s(`TSHasOptionalTypeAnnotation`).field(`typeAnnotation`,c(s(`TSTypeAnnotation`),null),l.null),s(`TSQualifiedName`).bases(`Node`).build(`left`,`right`).field(`left`,d).field(`right`,d),s(`TSAsExpression`).bases(`Expression`,`Pattern`).build(`expression`,`typeAnnotation`).field(`expression`,s(`Expression`)).field(`typeAnnotation`,s(`TSType`)).field(`extra`,c({parenthesized:Boolean},null),l.null),s(`TSTypeCastExpression`).bases(`Expression`).build(`expression`,`typeAnnotation`).field(`expression`,s(`Expression`)).field(`typeAnnotation`,s(`TSType`)),s(`TSSatisfiesExpression`).bases(`Expression`,`Pattern`).build(`expression`,`typeAnnotation`).field(`expression`,s(`Expression`)).field(`typeAnnotation`,s(`TSType`)),s(`TSNonNullExpression`).bases(`Expression`,`Pattern`).build(`expression`).field(`expression`,s(`Expression`)),[`TSAnyKeyword`,`TSBigIntKeyword`,`TSBooleanKeyword`,`TSNeverKeyword`,`TSNullKeyword`,`TSNumberKeyword`,`TSObjectKeyword`,`TSStringKeyword`,`TSSymbolKeyword`,`TSUndefinedKeyword`,`TSUnknownKeyword`,`TSVoidKeyword`,`TSIntrinsicKeyword`,`TSThisType`].forEach(function(e){s(e).bases(`TSType`).build()}),s(`TSArrayType`).bases(`TSType`).build(`elementType`).field(`elementType`,s(`TSType`)),s(`TSLiteralType`).bases(`TSType`).build(`literal`).field(`literal`,c(s(`NumericLiteral`),s(`StringLiteral`),s(`BooleanLiteral`),s(`TemplateLiteral`),s(`UnaryExpression`),s(`BigIntLiteral`))),s(`TemplateLiteral`).field(`expressions`,c([s(`Expression`)],[s(`TSType`)])),[`TSUnionType`,`TSIntersectionType`].forEach(function(e){s(e).bases(`TSType`).build(`types`).field(`types`,[s(`TSType`)])}),s(`TSConditionalType`).bases(`TSType`).build(`checkType`,`extendsType`,`trueType`,`falseType`).field(`checkType`,s(`TSType`)).field(`extendsType`,s(`TSType`)).field(`trueType`,s(`TSType`)).field(`falseType`,s(`TSType`)),s(`TSInferType`).bases(`TSType`).build(`typeParameter`).field(`typeParameter`,s(`TSTypeParameter`)),s(`TSParenthesizedType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,s(`TSType`));var f=[c(s(`Identifier`),s(`RestElement`),s(`ArrayPattern`),s(`ObjectPattern`))];[`TSFunctionType`,`TSConstructorType`].forEach(function(e){s(e).bases(`TSType`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`parameters`).field(`parameters`,f)}),s(`TSDeclareFunction`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`params`,`returnType`).field(`declare`,Boolean,l.false).field(`async`,Boolean,l.false).field(`generator`,Boolean,l.false).field(`id`,c(s(`Identifier`),null),l.null).field(`params`,[s(`Pattern`)]).field(`returnType`,c(s(`TSTypeAnnotation`),s(`Noop`),null),l.null),s(`TSDeclareMethod`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`key`,`params`,`returnType`).field(`async`,Boolean,l.false).field(`generator`,Boolean,l.false).field(`params`,[s(`Pattern`)]).field(`abstract`,Boolean,l.false).field(`accessibility`,c(`public`,`private`,`protected`,void 0),l.undefined).field(`static`,Boolean,l.false).field(`computed`,Boolean,l.false).field(`optional`,Boolean,l.false).field(`key`,c(s(`Identifier`),s(`StringLiteral`),s(`NumericLiteral`),s(`Expression`))).field(`kind`,c(`get`,`set`,`method`,`constructor`),x(function(){return`method`},`getDefault`)).field(`access`,c(`public`,`private`,`protected`,void 0),l.undefined).field(`decorators`,c([s(`Decorator`)],null),l.null).field(`returnType`,c(s(`TSTypeAnnotation`),s(`Noop`),null),l.null),s(`TSMappedType`).bases(`TSType`).build(`typeParameter`,`typeAnnotation`).field(`readonly`,c(Boolean,`+`,`-`),l.false).field(`typeParameter`,s(`TSTypeParameter`)).field(`optional`,c(Boolean,`+`,`-`),l.false).field(`typeAnnotation`,c(s(`TSType`),null),l.null),s(`TSTupleType`).bases(`TSType`).build(`elementTypes`).field(`elementTypes`,[c(s(`TSType`),s(`TSNamedTupleMember`))]),s(`TSNamedTupleMember`).bases(`TSType`).build(`label`,`elementType`,`optional`).field(`label`,s(`Identifier`)).field(`optional`,Boolean,l.false).field(`elementType`,s(`TSType`)),s(`TSRestType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,s(`TSType`)),s(`TSOptionalType`).bases(`TSType`).build(`typeAnnotation`).field(`typeAnnotation`,s(`TSType`)),s(`TSIndexedAccessType`).bases(`TSType`).build(`objectType`,`indexType`).field(`objectType`,s(`TSType`)).field(`indexType`,s(`TSType`)),s(`TSTypeOperator`).bases(`TSType`).build(`operator`).field(`operator`,String).field(`typeAnnotation`,s(`TSType`)),s(`TSTypeAnnotation`).bases(`Node`).build(`typeAnnotation`).field(`typeAnnotation`,c(s(`TSType`),s(`TSTypeAnnotation`))),s(`TSIndexSignature`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`).build(`parameters`,`typeAnnotation`).field(`parameters`,[s(`Identifier`)]).field(`readonly`,Boolean,l.false),s(`TSPropertySignature`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`).build(`key`,`typeAnnotation`,`optional`).field(`key`,s(`Expression`)).field(`computed`,Boolean,l.false).field(`readonly`,Boolean,l.false).field(`optional`,Boolean,l.false).field(`initializer`,c(s(`Expression`),null),l.null),s(`TSMethodSignature`).bases(`Declaration`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`key`,`parameters`,`typeAnnotation`).field(`key`,s(`Expression`)).field(`computed`,Boolean,l.false).field(`optional`,Boolean,l.false).field(`parameters`,f),s(`TSTypePredicate`).bases(`TSTypeAnnotation`,`TSType`).build(`parameterName`,`typeAnnotation`,`asserts`).field(`parameterName`,c(s(`Identifier`),s(`TSThisType`))).field(`typeAnnotation`,c(s(`TSTypeAnnotation`),null),l.null).field(`asserts`,Boolean,l.false),[`TSCallSignatureDeclaration`,`TSConstructSignatureDeclaration`].forEach(function(e){s(e).bases(`Declaration`,`TSHasOptionalTypeParameters`,`TSHasOptionalTypeAnnotation`).build(`parameters`,`typeAnnotation`).field(`parameters`,f)}),s(`TSEnumMember`).bases(`Node`).build(`id`,`initializer`).field(`id`,c(s(`Identifier`),u)).field(`initializer`,c(s(`Expression`),null),l.null),s(`TSTypeQuery`).bases(`TSType`).build(`exprName`).field(`exprName`,c(d,s(`TSImportType`)));var p=c(s(`TSCallSignatureDeclaration`),s(`TSConstructSignatureDeclaration`),s(`TSIndexSignature`),s(`TSMethodSignature`),s(`TSPropertySignature`));s(`TSTypeLiteral`).bases(`TSType`).build(`members`).field(`members`,[p]),s(`TSTypeParameter`).bases(`Identifier`).build(`name`,`constraint`,`default`).field(`name`,c(s(`Identifier`),String)).field(`constraint`,c(s(`TSType`),void 0),l.undefined).field(`default`,c(s(`TSType`),void 0),l.undefined),s(`TSTypeAssertion`).bases(`Expression`,`Pattern`).build(`typeAnnotation`,`expression`).field(`typeAnnotation`,s(`TSType`)).field(`expression`,s(`Expression`)).field(`extra`,c({parenthesized:Boolean},null),l.null),s(`TSTypeParameterDeclaration`).bases(`Declaration`).build(`params`).field(`params`,[s(`TSTypeParameter`)]),s(`TSInstantiationExpression`).bases(`Expression`,`TSHasOptionalTypeParameterInstantiation`).build(`expression`,`typeParameters`).field(`expression`,s(`Expression`)),s(`TSTypeParameterInstantiation`).bases(`Node`).build(`params`).field(`params`,[s(`TSType`)]),s(`TSEnumDeclaration`).bases(`Declaration`).build(`id`,`members`).field(`id`,s(`Identifier`)).field(`const`,Boolean,l.false).field(`declare`,Boolean,l.false).field(`members`,[s(`TSEnumMember`)]).field(`initializer`,c(s(`Expression`),null),l.null),s(`TSTypeAliasDeclaration`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`typeAnnotation`).field(`id`,s(`Identifier`)).field(`declare`,Boolean,l.false).field(`typeAnnotation`,s(`TSType`)),s(`TSModuleBlock`).bases(`Node`).build(`body`).field(`body`,[s(`Statement`)]),s(`TSModuleDeclaration`).bases(`Declaration`).build(`id`,`body`).field(`id`,c(u,d)).field(`declare`,Boolean,l.false).field(`global`,Boolean,l.false).field(`body`,c(s(`TSModuleBlock`),s(`TSModuleDeclaration`),null),l.null),s(`TSImportType`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`argument`,`qualifier`,`typeParameters`).field(`argument`,u).field(`qualifier`,c(d,void 0),l.undefined),s(`TSImportEqualsDeclaration`).bases(`Declaration`).build(`id`,`moduleReference`).field(`id`,s(`Identifier`)).field(`isExport`,Boolean,l.false).field(`moduleReference`,c(d,s(`TSExternalModuleReference`))),s(`TSExternalModuleReference`).bases(`Declaration`).build(`expression`).field(`expression`,u),s(`TSExportAssignment`).bases(`Statement`).build(`expression`).field(`expression`,s(`Expression`)),s(`TSNamespaceExportDeclaration`).bases(`Declaration`).build(`id`).field(`id`,s(`Identifier`)),s(`TSInterfaceBody`).bases(`Node`).build(`body`).field(`body`,[p]),s(`TSExpressionWithTypeArguments`).bases(`TSType`,`TSHasOptionalTypeParameterInstantiation`).build(`expression`,`typeParameters`).field(`expression`,d),s(`TSInterfaceDeclaration`).bases(`Declaration`,`TSHasOptionalTypeParameters`).build(`id`,`body`).field(`id`,d).field(`declare`,Boolean,l.false).field(`extends`,c([s(`TSExpressionWithTypeArguments`)],null),l.null).field(`body`,s(`TSInterfaceBody`)),s(`TSParameterProperty`).bases(`Pattern`).build(`parameter`).field(`accessibility`,c(`public`,`private`,`protected`,void 0),l.undefined).field(`readonly`,Boolean,l.false).field(`parameter`,c(s(`Identifier`),s(`AssignmentPattern`))),s(`ClassProperty`).field(`access`,c(`public`,`private`,`protected`,void 0),l.undefined),s(`ClassAccessorProperty`).bases(`Declaration`,`TSHasOptionalTypeAnnotation`),s(`ClassBody`).field(`body`,[c(s(`MethodDefinition`),s(`VariableDeclarator`),s(`ClassPropertyDefinition`),s(`ClassProperty`),s(`ClassPrivateProperty`),s(`ClassAccessorProperty`),s(`ClassMethod`),s(`ClassPrivateMethod`),s(`StaticBlock`),s(`TSDeclareMethod`),p)])}x(s,`default_1`),e.default=s,(0,o.maybeSetModuleExports)(function(){return t})}}),mn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/gen/namedTypes.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.namedTypes=void 0,e.namedTypes||={}}}),hn=E({"../../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/main.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.visit=e.use=e.Type=e.someField=e.PathVisitor=e.Path=e.NodePath=e.namedTypes=e.getSupertypeNames=e.getFieldValue=e.getFieldNames=e.getBuilderName=e.finalize=e.eachField=e.defineMethod=e.builtInTypes=e.builders=e.astNodesAreEquivalent=void 0;var t=(G(),C(U)),n=t.__importDefault(Kt()),r=t.__importDefault(on()),i=t.__importDefault(sn()),a=t.__importDefault(ln()),o=t.__importDefault(un()),s=t.__importDefault(fn()),c=t.__importDefault(pn()),l=mn();Object.defineProperty(e,`namedTypes`,{enumerable:!0,get:x(function(){return l.namedTypes},`get`)});var u=(0,n.default)([r.default,i.default,a.default,o.default,s.default,c.default]),d=u.astNodesAreEquivalent,f=u.builders,p=u.builtInTypes,m=u.defineMethod,h=u.eachField,g=u.finalize,_=u.getBuilderName,v=u.getFieldNames,y=u.getFieldValue,b=u.getSupertypeNames,S=u.namedTypes,w=u.NodePath,T=u.Path,E=u.PathVisitor,D=u.someField,O=u.Type,ee=u.use,k=u.visit;e.astNodesAreEquivalent=d,e.builders=f,e.builtInTypes=p,e.defineMethod=m,e.eachField=h,e.finalize=g,e.getBuilderName=_,e.getFieldNames=v,e.getFieldValue=y,e.getSupertypeNames=b,e.NodePath=w,e.Path=T,e.PathVisitor=E,e.someField=D,e.Type=O,e.use=ee,e.visit=k,Object.assign(l.namedTypes,S)}}),gn=E({"../../node_modules/.pnpm/tiny-invariant@1.3.3/node_modules/tiny-invariant/dist/tiny-invariant.cjs.js"(e,t){var n=`Invariant failed`;function r(e,t){if(!e)throw Error(n)}x(r,`invariant`),t.exports=r}}),_n=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64.js"(e){var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}}}),vn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/base64-vlq.js"(e){var t=_n(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}x(o,`toVLQSigned`);function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}x(s,`fromVLQSigned`),e.encode=x(function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},`base64VLQ_encode`),e.decode=x(function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r},`base64VLQ_decode`)}}),yn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/util.js"(e){function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}x(t,`getArg`),e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}x(i,`urlParse`),e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}x(a,`urlGenerate`),e.urlGenerate=a;function o(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=n.split(/\/+/),c,l=0,u=s.length-1;u>=0;u--)c=s[u],c===`.`?s.splice(u,1):c===`..`?l++:l>0&&(c===``?(s.splice(u+1,l),l=0):(s.splice(u,2),l--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n}x(o,`normalize`),e.normalize=o;function s(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),s=i(e);if(s&&(e=s.path||`/`),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c=t.charAt(0)===`/`?t:o(e.replace(/\/+$/,``)+`/`+t);return s?(s.path=c,a(s)):c}x(s,`join`),e.join=s,e.isAbsolute=function(e){return e.charAt(0)===`/`||n.test(e)};function c(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}x(c,`relative`),e.relative=c;var l=function(){return!(`__proto__`in Object.create(null))}();function u(e){return e}x(u,`identity`);function d(e){return p(e)?`$`+e:e}x(d,`toSetString`),e.toSetString=l?u:d;function f(e){return p(e)?e.slice(1):e}x(f,`fromSetString`),e.fromSetString=l?u:f;function p(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}x(p,`isProtoString`);function m(e,t,n){var r=g(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:g(e.name,t.name)}x(m,`compareByOriginalPositions`),e.compareByOriginalPositions=m;function h(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=g(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:g(e.name,t.name)}x(h,`compareByGeneratedPositionsDeflated`),e.compareByGeneratedPositionsDeflated=h;function g(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}x(g,`strcmp`);function _(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=g(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:g(e.name,t.name)}x(_,`compareByGeneratedPositionsInflated`),e.compareByGeneratedPositionsInflated=_;function v(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,``))}x(v,`parseSourceMapInput`),e.parseSourceMapInput=v;function y(e,t,n){if(t||=``,e&&(e[e.length-1]!==`/`&&t[0]!==`/`&&(e+=`/`),t=e+t),n){var r=i(n);if(!r)throw Error(`sourceMapURL could not be parsed`);if(r.path){var c=r.path.lastIndexOf(`/`);c>=0&&(r.path=r.path.substring(0,c+1))}t=s(a(r),t)}return o(t)}x(y,`computeSourceURL`),e.computeSourceURL=y}}),bn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/array-set.js"(e){var t=yn(),n=Object.prototype.hasOwnProperty,r=typeof Map<`u`;function i(){this._array=[],this._set=r?new Map:Object.create(null)}x(i,`ArraySet`),i.fromArray=x(function(e,t){for(var n=new i,r=0,a=e.length;r<a;r++)n.add(e[r],t);return n},`ArraySet_fromArray`),i.prototype.size=x(function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},`ArraySet_size`),i.prototype.add=x(function(e,i){var a=r?e:t.toSetString(e),o=r?this.has(e):n.call(this._set,a),s=this._array.length;(!o||i)&&this._array.push(e),o||(r?this._set.set(e,s):this._set[a]=s)},`ArraySet_add`),i.prototype.has=x(function(e){if(r)return this._set.has(e);var i=t.toSetString(e);return n.call(this._set,i)},`ArraySet_has`),i.prototype.indexOf=x(function(e){if(r){var i=this._set.get(e);if(i>=0)return i}else{var a=t.toSetString(e);if(n.call(this._set,a))return this._set[a]}throw Error(`"`+e+`" is not in the set.`)},`ArraySet_indexOf`),i.prototype.at=x(function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},`ArraySet_at`),i.prototype.toArray=x(function(){return this._array.slice()},`ArraySet_toArray`),e.ArraySet=i}}),xn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/mapping-list.js"(e){var t=yn();function n(e,n){var r=e.generatedLine,i=n.generatedLine,a=e.generatedColumn,o=n.generatedColumn;return i>r||i==r&&o>=a||t.compareByGeneratedPositionsInflated(e,n)<=0}x(n,`generatedPositionAfter`);function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}x(r,`MappingList`),r.prototype.unsortedForEach=x(function(e,t){this._array.forEach(e,t)},`MappingList_forEach`),r.prototype.add=x(function(e){n(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},`MappingList_add`),r.prototype.toArray=x(function(){return this._sorted||=(this._array.sort(t.compareByGeneratedPositionsInflated),!0),this._array},`MappingList_toArray`),e.MappingList=r}}),Sn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-generator.js"(e){var t=vn(),n=yn(),r=bn().ArraySet,i=xn().MappingList;function a(e){e||={},this._file=n.getArg(e,`file`,null),this._sourceRoot=n.getArg(e,`sourceRoot`,null),this._skipValidation=n.getArg(e,`skipValidation`,!1),this._sources=new r,this._names=new r,this._mappings=new i,this._sourcesContents=null}x(a,`SourceMapGenerator`),a.prototype._version=3,a.fromSourceMap=x(function(e){var t=e.sourceRoot,r=new a({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var i={generated:{line:e.generatedLine,column:e.generatedColumn}};e.source!=null&&(i.source=e.source,t!=null&&(i.source=n.relative(t,i.source)),i.original={line:e.originalLine,column:e.originalColumn},e.name!=null&&(i.name=e.name)),r.addMapping(i)}),e.sources.forEach(function(i){var a=i;t!==null&&(a=n.relative(t,i)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r},`SourceMapGenerator_fromSourceMap`),a.prototype.addMapping=x(function(e){var t=n.getArg(e,`generated`),r=n.getArg(e,`original`,null),i=n.getArg(e,`source`,null),a=n.getArg(e,`name`,null);this._skipValidation||this._validateMapping(t,r,i,a),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:a})},`SourceMapGenerator_addMapping`),a.prototype.setSourceContent=x(function(e,t){var r=e;this._sourceRoot!=null&&(r=n.relative(this._sourceRoot,r)),t==null?this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null)):(this._sourcesContents||=Object.create(null),this._sourcesContents[n.toSetString(r)]=t)},`SourceMapGenerator_setSourceContent`),a.prototype.applySourceMap=x(function(e,t,i){var a=t;if(t==null){if(e.file==null)throw Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);a=e.file}var o=this._sourceRoot;o!=null&&(a=n.relative(o,a));var s=new r,c=new r;this._mappings.unsortedForEach(function(t){if(t.source===a&&t.originalLine!=null){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});r.source!=null&&(t.source=r.source,i!=null&&(t.source=n.join(i,t.source)),o!=null&&(t.source=n.relative(o,t.source)),t.originalLine=r.line,t.originalColumn=r.column,r.name!=null&&(t.name=r.name))}var l=t.source;l!=null&&!s.has(l)&&s.add(l);var u=t.name;u!=null&&!c.has(u)&&c.add(u)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var r=e.sourceContentFor(t);r!=null&&(i!=null&&(t=n.join(i,t)),o!=null&&(t=n.relative(o,t)),this.setSourceContent(t,r))},this)},`SourceMapGenerator_applySourceMap`),a.prototype._validateMapping=x(function(e,t,n,r){if(t&&typeof t.line!=`number`&&typeof t.column!=`number`)throw Error(`original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.`);if(!(e&&`line`in e&&`column`in e&&e.line>0&&e.column>=0&&!t&&!n&&!r)&&!(e&&`line`in e&&`column`in e&&t&&`line`in t&&`column`in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw Error(`Invalid mapping: `+JSON.stringify({generated:e,source:n,original:t,name:r}))},`SourceMapGenerator_validateMapping`),a.prototype._serializeMappings=x(function(){for(var e=0,r=1,i=0,a=0,o=0,s=0,c=``,l,u,d,f,p=this._mappings.toArray(),m=0,h=p.length;m<h;m++){if(u=p[m],l=``,u.generatedLine!==r)for(e=0;u.generatedLine!==r;)l+=`;`,r++;else if(m>0){if(!n.compareByGeneratedPositionsInflated(u,p[m-1]))continue;l+=`,`}l+=t.encode(u.generatedColumn-e),e=u.generatedColumn,u.source!=null&&(f=this._sources.indexOf(u.source),l+=t.encode(f-s),s=f,l+=t.encode(u.originalLine-1-a),a=u.originalLine-1,l+=t.encode(u.originalColumn-i),i=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),l+=t.encode(d-o),o=d)),c+=l}return c},`SourceMapGenerator_serializeMappings`),a.prototype._generateSourcesContent=x(function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;t!=null&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},`SourceMapGenerator_generateSourcesContent`),a.prototype.toJSON=x(function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},`SourceMapGenerator_toJSON`),a.prototype.toString=x(function(){return JSON.stringify(this.toJSON())},`SourceMapGenerator_toString`),e.SourceMapGenerator=a}}),Cn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/binary-search.js"(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}x(t,`recursiveSearch`),e.search=x(function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o},`search`)}}),wn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/quick-sort.js"(e){function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}x(t,`swap`);function n(e,t){return Math.round(e+Math.random()*(t-e))}x(n,`randomIntInRange`);function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}x(r,`doQuickSort`),e.quickSort=function(e,t){r(e,t,0,e.length-1)}}}),Tn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-map-consumer.js"(e){var t=yn(),n=Cn(),r=bn().ArraySet,i=vn(),a=wn().quickSort;function o(e,n){var r=e;return typeof e==`string`&&(r=t.parseSourceMapInput(e)),r.sections==null?new s(r,n):new l(r,n)}x(o,`SourceMapConsumer`),o.fromSourceMap=function(e,t){return s.fromSourceMap(e,t)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,`_generatedMappings`,{configurable:!0,enumerable:!0,get:x(function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings},`get`)}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,`_originalMappings`,{configurable:!0,enumerable:!0,get:x(function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings},`get`)}),o.prototype._charIsMappingSeparator=x(function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},`SourceMapConsumer_charIsMappingSeparator`),o.prototype._parseMappings=x(function(e,t){throw Error(`Subclasses must implement _parseMappings`)},`SourceMapConsumer_parseMappings`),o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=x(function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}var c=this.sourceRoot;s.map(function(e){var n=e.source===null?null:this._sources.at(e.source);return n=t.computeSourceURL(c,n,this._sourceMapURL),{source:n,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,i)},`SourceMapConsumer_eachMapping`),o.prototype.allGeneratedPositionsFor=x(function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},`SourceMapConsumer_allGeneratedPositionsFor`),e.SourceMapConsumer=o;function s(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),o=t.getArg(i,`sources`),s=t.getArg(i,`names`,[]),c=t.getArg(i,`sourceRoot`,null),l=t.getArg(i,`sourcesContent`,null),u=t.getArg(i,`mappings`),d=t.getArg(i,`file`,null);if(a!=this._version)throw Error(`Unsupported version: `+a);c&&=t.normalize(c),o=o.map(String).map(t.normalize).map(function(e){return c&&t.isAbsolute(c)&&t.isAbsolute(e)?t.relative(c,e):e}),this._names=r.fromArray(s.map(String),!0),this._sources=r.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(c,e,n)}),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=n,this.file=d}x(s,`BasicSourceMapConsumer`),s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.prototype._findSourceIndex=function(e){var n=e;if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1},s.fromSourceMap=x(function(e,n){var i=Object.create(s.prototype),o=i._names=r.fromArray(e._names.toArray(),!0),l=i._sources=r.fromArray(e._sources.toArray(),!0);i.sourceRoot=e._sourceRoot,i.sourcesContent=e._generateSourcesContent(i._sources.toArray(),i.sourceRoot),i.file=e._file,i._sourceMapURL=n,i._absoluteSources=i._sources.toArray().map(function(e){return t.computeSourceURL(i.sourceRoot,e,n)});for(var u=e._mappings.toArray().slice(),d=i.__generatedMappings=[],f=i.__originalMappings=[],p=0,m=u.length;p<m;p++){var h=u[p],g=new c;g.generatedLine=h.generatedLine,g.generatedColumn=h.generatedColumn,h.source&&(g.source=l.indexOf(h.source),g.originalLine=h.originalLine,g.originalColumn=h.originalColumn,h.name&&(g.name=o.indexOf(h.name)),f.push(g)),d.push(g)}return a(i.__originalMappings,t.compareByOriginalPositions),i},`SourceMapConsumer_fromSourceMap`),s.prototype._version=3,Object.defineProperty(s.prototype,`sources`,{get:x(function(){return this._absoluteSources.slice()},`get`)});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}x(c,`Mapping`),s.prototype._parseMappings=x(function(e,n){for(var r=1,o=0,s=0,l=0,u=0,d=0,f=e.length,p=0,m={},h={},g=[],_=[],v,y,b,x,S;p<f;)if(e.charAt(p)===`;`)r++,p++,o=0;else if(e.charAt(p)===`,`)p++;else{for(v=new c,v.generatedLine=r,x=p;x<f&&!this._charIsMappingSeparator(e,x);x++);if(y=e.slice(p,x),b=m[y],b)p+=y.length;else{for(b=[];p<x;)i.decode(e,p,h),S=h.value,p=h.rest,b.push(S);if(b.length===2)throw Error(`Found a source, but no line and column`);if(b.length===3)throw Error(`Found a source and line, but no column`);m[y]=b}v.generatedColumn=o+b[0],o=v.generatedColumn,b.length>1&&(v.source=u+b[1],u+=b[1],v.originalLine=s+b[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+b[3],l=v.originalColumn,b.length>4&&(v.name=d+b[4],d+=b[4])),_.push(v),typeof v.originalLine==`number`&&g.push(v)}a(_,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,a(g,t.compareByOriginalPositions),this.__originalMappings=g},`SourceMapConsumer_parseMappings`),s.prototype._findMapping=x(function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},`SourceMapConsumer_findMapping`),s.prototype.computeColumnSpans=x(function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},`SourceMapConsumer_computeColumnSpans`),s.prototype.originalPositionFor=x(function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),a=t.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},`SourceMapConsumer_originalPositionFor`),s.prototype.hasContentsOfAllSources=x(function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},`BasicSourceMapConsumer_hasContentsOfAllSources`),s.prototype.sourceContentFor=x(function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i=e;this.sourceRoot!=null&&(i=t.relative(this.sourceRoot,i));var a;if(this.sourceRoot!=null&&(a=t.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,``);if(a.scheme==`file`&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!a.path||a.path==`/`)&&this._sources.has(`/`+i))return this.sourcesContent[this._sources.indexOf(`/`+i)]}if(n)return null;throw Error(`"`+i+`" is not in the SourceMap.`)},`SourceMapConsumer_sourceContentFor`),s.prototype.generatedPositionFor=x(function(e){var n=t.getArg(e,`source`);if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},`SourceMapConsumer_generatedPositionFor`),e.BasicSourceMapConsumer=s;function l(e,n){var i=e;typeof e==`string`&&(i=t.parseSourceMapInput(e));var a=t.getArg(i,`version`),s=t.getArg(i,`sections`);if(a!=this._version)throw Error(`Unsupported version: `+a);this._sources=new r,this._names=new r;var c={line:-1,column:0};this._sections=s.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var r=t.getArg(e,`offset`),i=t.getArg(r,`line`),a=t.getArg(r,`column`);if(i<c.line||i===c.line&&a<c.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return c=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new o(t.getArg(e,`map`),n)}})}x(l,`IndexedSourceMapConsumer`),l.prototype=Object.create(o.prototype),l.prototype.constructor=o,l.prototype._version=3,Object.defineProperty(l.prototype,`sources`,{get:x(function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e},`get`)}),l.prototype.originalPositionFor=x(function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},`IndexedSourceMapConsumer_originalPositionFor`),l.prototype.hasContentsOfAllSources=x(function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},`IndexedSourceMapConsumer_hasContentsOfAllSources`),l.prototype.sourceContentFor=x(function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},`IndexedSourceMapConsumer_sourceContentFor`),l.prototype.generatedPositionFor=x(function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},`IndexedSourceMapConsumer_generatedPositionFor`),l.prototype._parseMappings=x(function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);l=t.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},`IndexedSourceMapConsumer_parseMappings`),e.IndexedSourceMapConsumer=l}}),En=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/lib/source-node.js"(e){var t=Sn().SourceMapGenerator,n=yn(),r=/(\r?\n)/,i=10,a=`$$$isSourceNode$$$`;function o(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[a]=!0,r!=null&&this.add(r)}x(o,`SourceNode`),o.fromStringWithSourceMap=x(function(e,t,i){var a=new o,s=e.split(r),c=0,l=x(function(){return e()+(e()||``);function e(){return c<s.length?s[c++]:void 0}},`shiftNextLine`),u=1,d=0,f=null;return t.eachMapping(function(e){if(f!==null)if(u<e.generatedLine)p(f,l()),u++,d=0;else{var t=s[c]||``,n=t.substr(0,e.generatedColumn-d);s[c]=t.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,n),f=e;return}for(;u<e.generatedLine;)a.add(l()),u++;if(d<e.generatedColumn){var t=s[c]||``;a.add(t.substr(0,e.generatedColumn)),s[c]=t.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),c<s.length&&(f&&p(f,l()),a.add(s.splice(c).join(``))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);r!=null&&(i!=null&&(e=n.join(i,e)),a.setSourceContent(e,r))}),a;function p(e,t){if(e===null||e.source===void 0)a.add(t);else{var r=i?n.join(i,e.source):e.source;a.add(new o(e.originalLine,e.originalColumn,r,t,e.name))}}},`SourceNode_fromStringWithSourceMap`),o.prototype.add=x(function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||typeof e==`string`)e&&this.children.push(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},`SourceNode_add`),o.prototype.prepend=x(function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else if(e[a]||typeof e==`string`)this.children.unshift(e);else throw TypeError(`Expected a SourceNode, string, or an array of SourceNodes and strings. Got `+e);return this},`SourceNode_prepend`),o.prototype.walk=x(function(e){for(var t,n=0,r=this.children.length;n<r;n++)t=this.children[n],t[a]?t.walk(e):t!==``&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},`SourceNode_walk`),o.prototype.join=x(function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},`SourceNode_join`),o.prototype.replaceRight=x(function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):typeof n==`string`?this.children[this.children.length-1]=n.replace(e,t):this.children.push(``.replace(e,t)),this},`SourceNode_replaceRight`),o.prototype.setSourceContent=x(function(e,t){this.sourceContents[n.toSetString(e)]=t},`SourceNode_setSourceContent`),o.prototype.walkSourceContents=x(function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),t=0,r=i.length;t<r;t++)e(n.fromSetString(i[t]),this.sourceContents[i[t]])},`SourceNode_walkSourceContents`),o.prototype.toString=x(function(){var e=``;return this.walk(function(t){e+=t}),e},`SourceNode_toString`),o.prototype.toStringWithSourceMap=x(function(e){var n={code:``,line:1,column:0},r=new t(e),a=!1,o=null,s=null,c=null,l=null;return this.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((o!==t.source||s!==t.line||c!==t.column||l!==t.name)&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),o=t.source,s=t.line,c=t.column,l=t.name,a=!0):a&&=(r.addMapping({generated:{line:n.line,column:n.column}}),o=null,!1);for(var u=0,d=e.length;u<d;u++)e.charCodeAt(u)===i?(n.line++,n.column=0,u+1===d?(o=null,a=!1):a&&r.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:n.code,map:r}},`SourceNode_toStringWithSourceMap`),e.SourceNode=o}}),Dn=E({"../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.js"(e){e.SourceMapGenerator=Sn().SourceMapGenerator,e.SourceMapConsumer=Tn().SourceMapConsumer,e.SourceNode=En().SourceNode}}),On=E({"../../node_modules/.pnpm/recast@0.23.11/node_modules/recast/lib/util.js"(e){Object.defineProperty(e,`__esModule`,{value:!0}),e.isTrailingCommaEnabled=e.getParentExportDeclaration=e.isExportDeclaration=e.fixFaultyLocations=e.getTrueLoc=e.composeSourceMaps=e.copyPos=e.comparePos=e.getUnionOfKeys=e.getOption=e.isBrowser=e.getLineTerminator=void 0;var t=(G(),C(U)),n=t.__importDefault(gn()),r=t.__importStar(hn()).namedTypes,i=t.__importDefault(Dn()),a=i.default.SourceMapConsumer,o=i.default.SourceMapGenerator,s=Object.prototype.hasOwnProperty;function c(){return l()?`
4
4
  `:b(`os`).EOL||`
5
5
  `}x(c,`getLineTerminator`),e.getLineTerminator=c;function l(){return typeof window<`u`&&window.document!==void 0}x(l,`isBrowser`),e.isBrowser=l;function u(e,t,n){return e&&s.call(e,t)?e[t]:n}x(u,`getOption`),e.getOption=u;function d(){for(var e=[...arguments],t={},n=e.length,r=0;r<n;++r)for(var i=Object.keys(e[r]),a=i.length,o=0;o<a;++o)t[i[o]]=!0;return t}x(d,`getUnionOfKeys`),e.getUnionOfKeys=d;function f(e,t){return e.line-t.line||e.column-t.column}x(f,`comparePos`),e.comparePos=f;function p(e){return{line:e.line,column:e.column}}x(p,`copyPos`),e.copyPos=p;function m(e,t){if(e){if(!t)return e}else return t||null;var n=new a(e),r=new a(t),i=new o({file:t.file,sourceRoot:t.sourceRoot}),c={};return r.eachMapping(function(e){var t=n.originalPositionFor({line:e.originalLine,column:e.originalColumn}),r=t.source;if(r!==null){i.addMapping({source:r,original:p(t),generated:{line:e.generatedLine,column:e.generatedColumn},name:e.name});var a=n.sourceContentFor(r);a&&!s.call(c,r)&&(c[r]=a,i.setSourceContent(r,a))}}),i.toJSON()}x(m,`composeSourceMaps`),e.composeSourceMaps=m;function h(e,t){if(!e.loc)return null;var n={start:e.loc.start,end:e.loc.end};function r(e){g(n,e.loc)}return x(r,`include`),e.declaration&&e.declaration.decorators&&S(e)&&e.declaration.decorators.forEach(r),f(n.start,n.end)<0&&(n.start=p(n.start),t.skipSpaces(n.start,!1,!0),f(n.start,n.end)<0&&(n.end=p(n.end),t.skipSpaces(n.end,!0,!0))),e.comments&&e.comments.forEach(r),n}x(h,`getTrueLoc`),e.getTrueLoc=h;function g(e,t){e&&t&&(f(t.start,e.start)<0&&(e.start=t.start),f(e.end,t.end)<0&&(e.end=t.end))}x(g,`expandLoc`);function _(e,t){var n=e.loc;if(n&&(n.start.line<1&&(n.start.line=1),n.end.line<1&&(n.end.line=1)),e.type===`File`&&(n.start=t.firstPos(),n.end=t.lastPos()),v(e,t),y(e,t),n&&e.decorators)e.decorators.forEach(function(e){g(n,e.loc)});else if(e.declaration&&S(e)){e.declaration.loc=null;var i=e.declaration.decorators;i&&i.forEach(function(e){g(n,e.loc)})}else if(r.MethodDefinition&&r.MethodDefinition.check(e)||r.Property.check(e)&&(e.method||e.shorthand))e.value.loc=null,r.FunctionExpression.check(e.value)&&(e.value.id=null);else if(e.type===`ObjectTypeProperty`){var a=e.loc,o=a&&a.end;o&&(o=p(o),t.prevPos(o)&&t.charAt(o)===`,`&&(o=t.skipSpaces(o,!0,!0))&&(a.end=o))}}x(_,`fixFaultyLocations`),e.fixFaultyLocations=_;function v(e,t){if(e.type!==`ForStatement`)return;function n(e){for(var n=e&&e.loc,r=n&&n.start,i=n&&p(n.end);r&&i&&f(r,i)<0&&(t.prevPos(i),t.charAt(i)===`;`);)n.end.line=i.line,n.end.column=i.column}x(n,`fix`),n(e.init),n(e.test),n(e.update)}x(v,`fixForLoopHead`);function y(e,t){if(e.type===`TemplateLiteral`&&e.quasis.length!==0){if(e.loc){var r=p(e.loc.start);(0,n.default)(t.charAt(r)==="`"),(0,n.default)(t.nextPos(r));var i=e.quasis[0];f(i.loc.start,r)<0&&(i.loc.start=r);var a=p(e.loc.end);(0,n.default)(t.prevPos(a)),(0,n.default)(t.charAt(a)==="`");var o=e.quasis[e.quasis.length-1];f(a,o.loc.end)<0&&(o.loc.end=a)}e.expressions.forEach(function(r,i){var a=t.skipSpaces(r.loc.start,!0,!1);if(t.prevPos(a)&&t.charAt(a)===`{`&&t.prevPos(a)&&t.charAt(a)===`$`){var o=e.quasis[i];f(a,o.loc.end)<0&&(o.loc.end=a)}var s=t.skipSpaces(r.loc.end,!1,!1);if(t.charAt(s)===`}`){(0,n.default)(t.nextPos(s));var c=e.quasis[i+1];f(c.loc.start,s)<0&&(c.loc.start=s)}})}}x(y,`fixTemplateLiteral`);function S(e){if(e)switch(e.type){case`ExportDeclaration`:case`ExportDefaultDeclaration`:case`ExportDefaultSpecifier`:case`DeclareExportDeclaration`:case`ExportNamedDeclaration`:case`ExportAllDeclaration`:return!0}return!1}x(S,`isExportDeclaration`),e.isExportDeclaration=S;function w(e){var t=e.getParentNode();return e.getName()===`declaration`&&S(t)?t:null}x(w,`getParentExportDeclaration`),e.getParentExportDeclaration=w;function T(e,t){var n=e.trailingComma;return typeof n==`object`?!!n[t]:!!n}x(T,`isTrailingCommaEnabled`),e.isTrailingCommaEnabled=T}}),kn=E({"../../node_modules/.pnpm/esprima@4.0.1/node_modules/esprima/dist/esprima.js"(e,t){x(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.esprima=r():n.esprima=r()},`webpackUniversalModuleDefinition`)(e,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return x(n,`__webpack_require__`),n.m=e,n.c=t,n.p=``,n(0)}([function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(1),i=n(3),a=n(8),o=n(15);function s(e,t,n){var o=null,s=x(function(e,t){n&&n(e,t),o&&o.visit(e,t)},`proxyDelegate`),c=typeof n==`function`?s:null,l=!1;if(t){l=typeof t.comment==`boolean`&&t.comment;var u=typeof t.attachComment==`boolean`&&t.attachComment;(l||u)&&(o=new r.CommentHandler,o.attach=u,t.comment=!0,c=s)}var d=!1;t&&typeof t.sourceType==`string`&&(d=t.sourceType===`module`);var f=t&&typeof t.jsx==`boolean`&&t.jsx?new i.JSXParser(e,t,c):new a.Parser(e,t,c),p=d?f.parseModule():f.parseScript();return l&&o&&(p.comments=o.comments),f.config.tokens&&(p.tokens=f.tokens),f.config.tolerant&&(p.errors=f.errorHandler.errors),p}x(s,`parse`),t.parse=s;function c(e,t,n){var r=t||{};return r.sourceType=`module`,s(e,r,n)}x(c,`parseModule`),t.parseModule=c;function l(e,t,n){var r=t||{};return r.sourceType=`script`,s(e,r,n)}x(l,`parseScript`),t.parseScript=l;function u(e,t,n){var r=new o.Tokenizer(e,t),i=[];try{for(;;){var a=r.getNextToken();if(!a)break;n&&(a=n(a)),i.push(a)}}catch(e){r.errorHandler.tolerate(e)}return r.errorHandler.tolerant&&(i.errors=r.errors()),i}x(u,`tokenize`),t.tokenize=u,t.Syntax=n(2).Syntax,t.version=`4.0.1`},function(e,t,n){Object.defineProperty(t,`__esModule`,{value:!0});var r=n(2);t.CommentHandler=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return x(e,`CommentHandler`),e.prototype.insertInnerComments=function(e,t){if(e.type===r.Syntax.BlockStatement&&e.body.length===0){for(var n=[],i=this.leading.length-1;i>=0;--i){var a=this.leading[i];t.end.offset>=a.start&&(n.unshift(a.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var r=this.trailing[n];r.start>=e.end.offset&&t.unshift(r.comment)}return this.trailing.length=0,t}var i=this.stack[this.stack.length-1];if(i&&i.node.trailingComments){var a=i.node.trailingComments[0];a&&a.range[0]>=e.end.offset&&(t=i.node.trailingComments,delete i.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t=[],n;this.stack.length>0;){var r=this.stack[this.stack.length-1];if(r&&r.start>=e.start.offset)n=r.node,this.stack.pop();else break}if(n){for(var i=(n.leadingComments?n.leadingComments.length:0)-1;i>=0;--i){var a=n.leadingComments[i];a.range[1]<=e.start.offset&&(t.unshift(a),n.leadingComments.splice(i,1))}return n.leadingComments&&n.leadingComments.length===0&&delete n.leadingComments,t}for(var i=this.leading.length-1;i>=0;--i){var r=this.leading[i];r.start<=e.start.offset&&(t.unshift(r.comment),this.leading.splice(i,1))}return t},e.prototype.visitNode=function(e,t){if(!(e.type===r.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),i=this.findLeadingComments(t);i.length>0&&(e.leadingComments=i),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n=e.type[0]===`L`?`Line`:`Block`,r={type:n,value:e.value};if(e.range&&(r.range=e.range),e.loc&&(r.loc=e.loc),this.comments.push(r),this.attach){var i={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(i.comment.loc=e.loc),e.type=n,this.leading.push(i),this.trailing.push(i)}},e.prototype.visit=function(e,t){e.type===`LineComment`||e.type===`BlockComment`?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}()},function(e,t){Object.defineProperty(t,`__esModule`,{value:!0}),t.Syntax={AssignmentExpression:`AssignmentExpression`,AssignmentPattern:`AssignmentPattern`,ArrayExpression:`ArrayExpression`,ArrayPattern:`ArrayPattern`,ArrowFunctionExpression:`ArrowFunctionExpression`,AwaitExpression:`AwaitExpression`,BlockStatement:`BlockStatement`,BinaryExpression:`BinaryExpression`,BreakStatement:`BreakStatement`,CallExpression:`CallExpression`,CatchClause:`CatchClause`,ClassBody:`ClassBody`,ClassDeclaration:`ClassDeclaration`,ClassExpression:`ClassExpression`,ConditionalExpression:`ConditionalExpression`,ContinueStatement:`ContinueStatement`,DoWhileStatement:`DoWhileStatement`,DebuggerStatement:`DebuggerStatement`,EmptyStatement:`EmptyStatement`,ExportAllDeclaration:`ExportAllDeclaration`,ExportDefaultDeclaration:`ExportDefaultDeclaration`,ExportNamedDeclaration:`ExportNamedDeclaration`,ExportSpecifier:`ExportSpecifier`,ExpressionStatement:`ExpressionStatement`,ForStatement:`ForStatement`,ForOfStatement:`ForOfStatement`,ForInStatement:`ForInStatement`,FunctionDeclaration:`FunctionDeclaration`,FunctionExpression:`FunctionExpression`,Identifier:`Identifier`,IfStatement:`IfStatement`,ImportDeclaration:`ImportDeclaration`,ImportDefaultSpecifier:`ImportDefaultSpecifier`,ImportNamespaceSpecifier:`ImportNamespaceSpecifier`,ImportSpecifier:`ImportSpecifier`,Literal:`Literal`,LabeledStatement:`LabeledStatement`,LogicalExpression:`LogicalExpression`,MemberExpression:`MemberExpression`,MetaProperty:`MetaProperty`,MethodDefinition:`MethodDefinition`,NewExpression:`NewExpression`,ObjectExpression:`ObjectExpression`,ObjectPattern:`ObjectPattern`,Program:`Program`,Property:`Property`,RestElement:`RestElement`,ReturnStatement:`ReturnStatement`,SequenceExpression:`SequenceExpression`,SpreadElement:`SpreadElement`,Super:`Super`,SwitchCase:`SwitchCase`,SwitchStatement:`SwitchStatement`,TaggedTemplateExpression:`TaggedTemplateExpression`,TemplateElement:`TemplateElement`,TemplateLiteral:`TemplateLiteral`,ThisExpression:`ThisExpression`,ThrowStatement:`ThrowStatement`,TryStatement:`TryStatement`,UnaryExpression:`UnaryExpression`,UpdateExpression:`UpdateExpression`,VariableDeclaration:`VariableDeclaration`,VariableDeclarator:`VariableDeclarator`,WhileStatement:`WhileStatement`,WithStatement:`WithStatement`,YieldExpression:`YieldExpression`}},function(e,t,n){var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){e(t,n);function r(){this.constructor=t}x(r,`__`),t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,`__esModule`,{value:!0});var i=n(4),a=n(5),o=n(6),s=n(7),c=n(8),l=n(13),u=n(14);l.TokenName[100]=`JSXIdentifier`,l.TokenName[101]=`JSXText`;function d(e){var t;switch(e.type){case o.JSXSyntax.JSXIdentifier:t=e.name;break;case o.JSXSyntax.JSXNamespacedName:var n=e;t=d(n.namespace)+`:`+d(n.name);break;case o.JSXSyntax.JSXMemberExpression:var r=e;t=d(r.object)+`.`+d(r.property);break}return t}x(d,`getQualifiedElementName`),t.JSXParser=function(e){r(t,e);function t(t,n,r){return e.call(this,t,n,r)||this}return x(t,`JSXParser`),t.prototype.parsePrimaryExpression=function(){return this.match(`<`)?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX(`}`),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t=`&`,n=!0,r=!1,a=!1,o=!1;!this.scanner.eof()&&n&&!r;){var s=this.scanner.source[this.scanner.index];if(s===e)break;if(r=s===`;`,t+=s,++this.scanner.index,!r)switch(t.length){case 2:a=s===`#`;break;case 3:a&&(o=s===`x`,n=o||i.Character.isDecimalDigit(s.charCodeAt(0)),a&&=!o);break;default:n&&=!(a&&!i.Character.isDecimalDigit(s.charCodeAt(0))),n&&=!(o&&!i.Character.isHexDigit(s.charCodeAt(0)));break}}if(n&&r&&t.length>2){var c=t.substr(1,t.length-2);a&&c.length>1?t=String.fromCharCode(parseInt(c.substr(1),10)):o&&c.length>2?t=String.fromCharCode(parseInt(`0`+c.substr(1),16)):!a&&!o&&u.XHTMLEntities[c]&&(t=u.XHTMLEntities[c])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(e===60||e===62||e===47||e===58||e===61||e===123||e===125){var t=this.scanner.source[this.scanner.index++];return{type:7,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(e===34||e===39){for(var n=this.scanner.index,r=this.scanner.source[this.scanner.index++],a=``;!this.scanner.eof();){var o=this.scanner.source[this.scanner.index++];if(o===r)break;o===`&`?a+=this.scanXHTMLEntity(r):a+=o}return{type:8,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(e===46){var s=this.scanner.source.charCodeAt(this.scanner.index+1),c=this.scanner.source.charCodeAt(this.scanner.index+2),t=s===46&&c===46?`...`:`.`,n=this.scanner.index;return this.scanner.index+=t.length,{type:7,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}if(e===96)return{type:10,value:``,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(i.Character.isIdentifierStart(e)&&e!==92){var n=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var o=this.scanner.source.charCodeAt(this.scanner.index);if(i.Character.isIdentifierPart(o)&&o!==92)++this.scanner.index;else if(o===45)++this.scanner.index;else break}return{type:100,value:this.scanner.source.slice(n,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:n,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t=``;!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if(n===`{`||n===`<`)break;++this.scanner.index,t+=n,i.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,n===`\r`&&this.scanner.source[this.scanner.index]===`
@@ -478,7 +478,7 @@ export default defineConfig({
478
478
  );
479
479
  `)}x(Jo,`createWakuServerFile`);async function Yo(e){let t=B(e,`waku.config.ts`);if(!R(t))throw Error(`Could not find Waku config file to modify`);P(`Updating Waku configuration in ${D(t)}`),ba(t,{visitProgram(e){let t=e.node.body.findLastIndex(e=>e.type===`ImportDeclaration`),n=e.get(`body`,t);if(!e.node.body.some(e=>e.type===`ImportDeclaration`&&e.source.value===`@cloudflare/vite-plugin`)){let e=Go.importDeclaration([Go.importSpecifier(Go.identifier(`cloudflare`))],Go.stringLiteral(`@cloudflare/vite-plugin`));n.insertAfter(e)}return this.traverse(e)},visitCallExpression:x(function(e){if(e.node.callee.name!==`defineConfig`)return this.traverse(e);let t=e.node.arguments[0];H(Ko.ObjectExpression.check(t));let n=t.properties.find(e=>Xo(e))?.value;H(Ko.ObjectExpression.check(n));let r=n.properties.find(e=>Zo(e));H(r&&Ko.ArrayExpression.check(r.value)),r.value.elements.some(e=>e?.type===`CallExpression`&&e.callee.type===`Identifier`&&e.callee.name===`cloudflare`)||r.value.elements.push(Go.callExpression(Go.identifier(`cloudflare`),[Go.objectExpression([Go.objectProperty(Go.identifier(`viteEnvironment`),Go.objectExpression([Go.objectProperty(Go.identifier(`name`),Go.stringLiteral(`rsc`)),Go.objectProperty(Go.identifier(`childEnvironments`),Go.arrayExpression([Go.stringLiteral(`ssr`)]))])),Go.objectProperty(Go.identifier(`inspectorPort`),Go.booleanLiteral(!1))])])),this.traverse(e)},`visitCallExpression`)})}x(Yo,`updateWakuConfig`);function Xo(e){return(Ko.Property.check(e)||Ko.ObjectProperty.check(e))&&Ko.Identifier.check(e.key)&&e.key.name===`vite`}x(Xo,`isViteProp`);function Zo(e){return(Ko.Property.check(e)||Ko.ObjectProperty.check(e))&&Ko.Identifier.check(e.key)&&e.key.name===`plugins`}x(Zo,`isPluginsProp`);var Qo=[{id:`analog`,name:`Analog`,class:Oa,frameworkPackageInfo:{name:`@analogjs/platform`,minimumVersion:`2.0.0`,maximumKnownMajorVersion:`2`},supportsCf:!1,supported:!0},{id:`angular`,name:`Angular`,class:Ma,frameworkPackageInfo:{name:`@angular/core`,minimumVersion:`19.0.0`,maximumKnownMajorVersion:`22`},supportsCf:!1,supported:!0},{id:`astro`,name:`Astro`,class:Ra,frameworkPackageInfo:{name:`astro`,minimumVersion:`4.0.0`,maximumKnownMajorVersion:`7`},supportsCf:!0,supported:!0},{id:`hono`,name:`Hono`,supported:!1},{id:`next`,name:`Next.js`,class:Ua,frameworkPackageInfo:{name:`next`,minimumVersion:`14.2.35`,maximumKnownMajorVersion:`16`},supportsCf:!0,supported:!0},{id:`nuxt`,name:`Nuxt`,class:Ka,frameworkPackageInfo:{name:`nuxt`,minimumVersion:`3.21.0`,maximumKnownMajorVersion:`4`},supportsCf:!1,supported:!0},{id:`qwik`,name:`Qwik`,class:Xa,frameworkPackageInfo:{name:`@builder.io/qwik`,minimumVersion:`1.1.0`,maximumKnownMajorVersion:`1`},supportsCf:!1,supported:!0},{id:`react-router`,name:`React Router`,class:xo,frameworkPackageInfo:{name:`react-router`,minimumVersion:`7.0.0`,maximumKnownMajorVersion:`8`},supportsCf:!0,supported:!0},{id:`solid-start`,name:`Solid Start`,class:Co,frameworkPackageInfo:{name:`@solidjs/start`,minimumVersion:`1.0.0`,maximumKnownMajorVersion:`2`},supportsCf:!1,supported:!0},{id:`svelte-kit`,name:`SvelteKit`,class:Do,frameworkPackageInfo:{name:`@sveltejs/kit`,minimumVersion:`2.20.3`,maximumKnownMajorVersion:`2`},supportsCf:!1,supported:!0},{id:`tanstack-start`,name:`TanStack Start`,class:Oo,frameworkPackageInfo:{name:`@tanstack/react-start`,minimumVersion:`1.132.0`,maximumKnownMajorVersion:`1`},supportsCf:!0,supported:!0},{id:`vite`,name:`Vite`,class:Ho,frameworkPackageInfo:{name:`vite`,minimumVersion:`6.0.0`,maximumKnownMajorVersion:`8`},supportsCf:!0,supported:!0},{id:`vike`,name:`Vike`,class:Mo,frameworkPackageInfo:{name:`vike`,minimumVersion:`0.0.0`,maximumKnownMajorVersion:`0`},supportsCf:!1,supported:!0},{id:`waku`,name:`Waku`,class:qo,frameworkPackageInfo:{name:`waku`,minimumVersion:`1.0.0-alpha.4`,maximumKnownMajorVersion:`1`},supportsCf:!1,supported:!0},{id:`cloudflare-pages`,name:`Cloudflare Pages`,supported:!1},{id:`hydrogen`,name:`Hydrogen`,supported:!1}],$o={id:`static`,name:`Static`,class:Eo,supportsCf:!0,supported:!0},es=[$o,...Qo];function ts(e){if(e===$o.id)return;let t=Qo.find(t=>t.id===e);return H(t,`Could not determine framework package info for ${JSON.stringify(e)}`),H(t.supported,`Framework unexpectedly not supported ${JSON.stringify(e)}`),t.frameworkPackageInfo}x(ts,`getFrameworkPackageInfo`);var ns=class extends Da{static{x(this,`NoOpFramework`)}async configure(){return{workerConfig:{}}}},rs=new Set(es.map(({id:e})=>e));function is(e){return rs.has(e)}x(is,`isKnownFramework`);function as(e){let t=es.find(t=>t.id===e)??$o;return new(t.supported===!1?ns:t.class)({id:t.id,name:t.name})}x(as,`getFrameworkClassInstance`);function os(e){let t=es.find(t=>t.id===e);return H(t,`Unexpected unknown framework id: ${JSON.stringify(e)}`),t.supported}x(os,`isFrameworkSupported`);function ss(e,t){if(t!==`cf`)return;let n=es.find(({id:t})=>t===e.id);if(!(n?.supported!==!0||n.supportsCf))throw new ua(`cf does not support ${e.name} projects yet. You can still use Wrangler to develop and deploy this project.`,{telemetryMessage:`autoconfig framework unsupported for cf`})}x(ss,`validateFrameworkTargetSupport`);var cs;(function(e){e.DEBUG=`debug`,e.LOG=`log`,e.INFO=`info`,e.WARN=`warn`,e.ERROR=`error`})(cs||={});var ls=class{static{x(this,`DefaultLogger`)}logLevel;constructor(e=cs.ERROR){this.logLevel=e}shouldLog(e){let t=[`debug`,`log`,`info`,`warn`,`error`];return t.indexOf(e)>=t.indexOf(this.logLevel)}debug(...e){this.shouldLog(cs.DEBUG)&&console.debug(...e)}log(...e){this.shouldLog(cs.LOG)&&console.log(...e)}info(...e){this.shouldLog(cs.INFO)&&console.info(...e)}warn(...e){this.shouldLog(cs.WARN)&&console.warn(...e)}error(...e){this.shouldLog(cs.ERROR)&&console.error(...e)}};function us(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r];!i||i===`.`||(i===`..`?n.length&&n[n.length-1]!==`..`?n.pop():t&&n.push(`..`):n.push(i))}return n}x(us,`normalizePathSegments`);function ds(e){let t=e.startsWith(`/`),n=e&&e[e.length-1]===`/`;return e=us(e.split(`/`),!t).join(`/`),!e&&!t&&(e=`.`),e&&n&&(e+=`/`),`${t?`/`:``}${e}`}x(ds,`normalize`);function fs(...e){let t=``;for(let n=0,r=e.length;n<r;n++){if(typeof e[n]!=`string`)throw TypeError(`Arguments to join must be strings`);let r=e[n].replace(/\\/gm,`/`);r&&(t.length?t+=`/`+r:t+=r)}return ds(t)}x(fs,`join`);var ps=class{static{x(this,`FileSystem`)}logger=new ls(`error`);cwd=`/`;basename(e){return this.join(e).split(`/`).pop()||``}relative(e,t){let n=this.isAbsolute(e)?e:this.join(this.cwd,e),r=this.isAbsolute(t)?t:this.join(this.cwd,t);if(n===r)return``;let i=[];if(r.startsWith(n))return r.substring(n.length).replace(/^\//,``);let a=this.join(n).split(`/`),o=this.join(r).split(`/`);for(let e=0,t=o.length;e<t&&o[e]===a?.[e];e++)i.push(o[e]);let s=o.length-i.length,c=a.length-i.length,l=c>0?Array(Math.max(s,c)).fill(`..`):[];return s>0&&l.push(...o.slice(-s)),l.join(`/`)}dirname(e){let t=this.join(e).split(`/`);return t.pop(),t.length===1&&t[0]===``?`/`:t.join(`/`)}join(...e){return fs(...e)}async gracefullyReadFile(e){try{return await this.readFile(e)}catch{return null}}async readJSON(e,t={}){try{return JSON.parse(await this.readFile(e))}catch(n){if(t.fail)throw n;let r=`Could not parse JSON file ${e}`;return n instanceof Error&&(r+=`
480
480
  ${n.name}: ${n.message}
481
- ${n.stack}`),this.logger.error(r),{}}}async findUp(e,t={}){let n=this.resolve(t.cwd||this.cwd),r=x(async()=>{let i=await this.readDir(n,!0),a=Object.entries(i).find(([n,r])=>{if(typeof e==`string`&&n===e||Array.isArray(e)&&e.includes(n))return t.type&&t.type,n});if(a?.[0])return this.join(n,a[0]);if(!(n===`/`||t.stopAt&&this.resolve(t.stopAt)===n))return n=this.join(n,`..`),r()},`readUp`);return r()}async findUpMultiple(e,t={}){let n=this.resolve(t.cwd||this.cwd),r=[],i=x(async()=>{let a=await this.readDir(n,!0);for(let[i,o]of Object.entries(a))(typeof e==`string`&&i===e||Array.isArray(e)&&e.includes(i))&&(t.type&&t.type===o||!t.type)&&r.push(this.resolve(n,i));return n===`/`||t.stopAt&&this.resolve(t.stopAt)===n?r:(n=this.join(n,`..`),i())},`readUp`);return i()}},ms=T(Fr(),1),hs=[`dev`,`serve`,`develop`,`start`,`run`,`web`],gs=[`netlify dev`],_s=[`build`],vs=[`netlify build`],ys=x(e=>gs.some(t=>e.includes(t)),`isExcludedDevScript`),bs=x(e=>vs.some(t=>e.includes(t)),`isExcludedBuildScript`),xs=x((e,t)=>e===t||e.endsWith(`:${t}`),`isScript`),Ss=x(e=>e===-1?2**53-1:e,`getSortIndex`),Cs=x(e=>(t,n)=>{let r=e.findIndex(e=>xs(t,e)),i=e.findIndex(e=>xs(n,e));return Ss(r)-Ss(i)},`sortScriptsByRelevance`),ws=x((e,t)=>hs.some(n=>xs(e,n)&&!ys(t)),`isNpmDevScript`),Ts=x((e,t)=>_s.some(n=>xs(e,n)&&!bs(t)),`isNpmBuildScript`);function Es(e,t={}){let n=Object.entries(t).filter(([,t])=>t.includes(e)).map(([e])=>e).sort(Cs(hs));return n.length>0?n:Object.keys(t).filter(e=>ws(e,t[e])).sort(Cs(hs))}x(Es,`getDevCommands`);function Ds(e,t={}){let n=Object.entries(t).filter(([,t])=>t.includes(e)).map(([e])=>e).sort(Cs(_s));return n.length>0?n:Object.keys(t).filter(e=>Ts(e,t[e])).sort(Cs(_s))}x(Ds,`getBuildCommands`);var X;(function(e){e.BackendFramework=`backend_framework`,e.FrontendFramework=`frontend_framework`,e.SSG=`static_site_generator`,e.BuildTool=`build_tool`})(X||={});var Os;(function(e){e[e.Forced=5]=`Forced`,e[e.NPM=4]=`NPM`,e[e.ConfigOnly=3]=`ConfigOnly`,e[e.Config=2]=`Config`,e[e.NPMHoisted=1]=`NPMHoisted`})(Os||={});var ks;(function(e){e.NodeModules=`node_modules`,e.PackageJSONPinned=`package_json_pinned`,e.PackageJSON=`package_json`})(ks||={});function As(e){let t=[];for(let n of e.sort(js))(t.length===0||t[0].detected.accuracy===n.detected.accuracy)&&t.push(n);return t}x(As,`filterByRelevance`);function js(e,t){let n=t.detected.accuracy-e.detected.accuracy;if(n===0){let n=[X.BackendFramework,X.FrontendFramework,X.BuildTool,X.SSG];return n.indexOf(t.category)-n.indexOf(e.category)}return n}x(js,`sortFrameworksBasedOnAccuracy`);function Ms(e){let t=e.filter(x(function(e){return!!e},`isDetection`)).sort((e,t)=>e.accuracy>t.accuracy?-1:+(e.accuracy<t.accuracy));if(t.length!==0)return t.slice(1).reduce((e,t)=>(e.config=e.config??t.config,e.configName=e.configName??t.configName,e.package=e.package??t.package,e.packageJSON=e.packageJSON??t.packageJSON,e),t[0])}x(Ms,`mergeDetections`);var Z=class{static{x(this,`BaseFramework`)}project;path;id;name;category;detected;version;configFiles=[];npmDependencies=[];excludedNpmDependencies=[];plugins=[];staticAssetsDirectory;env={};dev;build={command:`npm run build`,directory:`dist`};logo;constructor(e,t){this.project=e,this.path=t,e.packageManager?.runCommand&&(this.build.command=`${e.packageManager.runCommand} build`)}setDetected(e,t){return this.detected={accuracy:e},typeof t==`string`?this.detected.config=t:this.detected.package=t,this}async getVersionFromNodeModules(e){if(this.project.fs.getEnvironment()!==`browser`)try{let t=await this.project.fs.findUp(this.project.fs.join(`node_modules`,e,`package.json`),{cwd:this.path||this.project.baseDirectory,stopAt:this.project.root});if(t){let{version:e}=await this.project.fs.readJSON(t);if(typeof e==`string`)return(0,ms.parse)(e)||void 0}}catch{}}async npmDependenciesUsed(e){let t={...e.dependencies??{},...e.devDependencies??{}},n=Object.keys(t).find(e=>this.npmDependencies.includes(e));if(!Object.keys(t).some(e=>this.excludedNpmDependencies.includes(e))&&n!=null){let e=await this.getVersionFromNodeModules(n);if(e)return{name:n,version:e,versionAccuracy:ks.NodeModules};let r=t[n],i=(0,ms.parse)(r);if(i)return{name:n,version:i,versionAccuracy:ks.PackageJSONPinned};let a=(0,ms.parse)((0,ms.coerce)(r))||void 0;return a?{name:n,version:a,versionAccuracy:ks.PackageJSON}:{name:n,version:void 0,versionAccuracy:void 0}}}async detectNpmDependency(){if(this.npmDependencies.length){let e=this.path||this.project.baseDirectory,t=await this.project.getPackageJSON(e),n=await this.npmDependenciesUsed(t);if(n)return this.version=n.version,{accuracy:this.project.fs.join(e,`package.json`)===t.pkgPath?Os.NPM:Os.NPMHoisted,package:n,packageJSON:t}}}async detectConfigFile(e){if(e.length){let t=await this.project.fs.findUp(e,{cwd:this.path||this.project.baseDirectory,stopAt:this.project.root});if(t)return{accuracy:this.npmDependencies.length===0?Os.ConfigOnly:Os.Config,config:t,configName:this.project.fs.basename(t)}}}async detect(){let e=await this.detectNpmDependency(),t=await this.detectConfigFile(this.configFiles??[]);if(this.detected=Ms([this.detected?.accuracy===Os.Forced?this.detected:void 0,e,t]),this.detected)return this}getDevCommands(){if(this.dev?.command===void 0)return[];let e=Es(this.dev.command,this.detected?.packageJSON?.scripts);return e.length>0?e.map(e=>this.project.getNpmScriptCommand(e)):[this.dev.command]}getBuildCommands(){let e=Ds(this.build.command,this.detected?.packageJSON?.scripts);return e.length>0?e.map(e=>this.project.getNpmScriptCommand(e)):[this.build.command]}toJSON(){return{id:this.id,name:this.name,package:{name:this.detected?.package?.name||this.npmDependencies?.[0],version:this.detected?.package?.version?.raw||`unknown`,versionAccuracy:this.detected?.package?.versionAccuracy},category:this.category,dev:{commands:this.getDevCommands(),port:this.dev?.port,pollingStrategies:this.dev?.pollingStrategies},build:{commands:[this.build.command],directory:this.build.directory},staticAssetsDirectory:this.staticAssetsDirectory,env:this.env,logo:this.logo?Object.entries(this.logo).reduce((e,[t,n])=>({...e,[t]:`https://framework-info.netlify.app${n}`}),{}):void 0,plugins:this.plugins}}},Ns=class extends Z{static{x(this,`Analog`)}id=`analog`;name=`Analog`;configFiles=[];npmDependencies=[`@analogjs/platform`];category=X.SSG;dev={port:5173,command:`ng serve`,pollingStrategies:[{name:`TCP`}]};build={command:`ng build --prod`,directory:`dist/analog/public`};logo={default:`/logos/analog/default.svg`,light:`/logos/analog/default.svg`,dark:`/logos/analog/default.svg`}},Ps=T(Fr(),1),Fs=class extends Z{static{x(this,`Angular`)}id=`angular`;name=`Angular`;configFiles=[`angular.json`];npmDependencies=[`@angular/cli`];excludedNpmDependencies=[`@analogjs/platform`];category=X.FrontendFramework;dev={port:4200,command:`ng serve`,pollingStrategies:[{name:`TCP`}]};build={command:`ng build --prod`,directory:`dist/`};logo={default:`/logos/angular/default.svg`,light:`/logos/angular/default.svg`,dark:`/logos/angular/default.svg`};async detect(){if(await super.detect(),this.detected){if(this.version&&(0,Ps.gte)(this.version,`17.0.0-rc`)&&!process.env.NETLIFY_ANGULAR_PLUGIN_SKIP){this.plugins.push(`@netlify/angular-runtime`);let e=await this.project.fs.gracefullyReadFile(`angular.json`);if(e){let{projects:t,defaultProject:n}=JSON.parse(e),r=t[n??Object.keys(t)[0]],i=r?.architect?.build?.options?.outputPath;if(i){let e=r?.architect?.build?.builder?.endsWith(`:application`);this.build.directory=e?this.project.fs.join(i,`browser`):i}}}return this}}},Is=class extends Z{static{x(this,`Assemble`)}id=`assemble`;name=`Assemble`;npmDependencies=[`assemble`];category=X.SSG;build={command:`grunt build`,directory:`dist`};logo={default:`/logos/assemble/default.png`,light:`/logos/assemble/default.png`,dark:`/logos/assemble/default.png`}},Ls=T(Fr(),1),Rs=class extends Z{static{x(this,`Astro`)}id=`astro`;name=`Astro`;configFiles=[`astro.config.mjs`];npmDependencies=[`astro`];category=X.SSG;staticAssetsDirectory=`public`;dev={port:4321,command:`astro dev`,pollingStrategies:[{name:`TCP`}]};build={command:`astro build`,directory:`dist`};logo={default:`/logos/astro/light.svg`,light:`/logos/astro/light.svg`,dark:`/logos/astro/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.version&&(0,Ls.lt)(this.version,`3.0.0`)&&(this.dev.port=3e3),this}},zs=class extends Z{static{x(this,`Blitz`)}id=`blitz`;name=`Blitz.js`;npmDependencies=[`blitz`];category=X.SSG;dev={command:`blitz dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`blitz build`,directory:`out`};logo={default:`/logos/blitz/light.svg`,light:`/logos/blitz/light.svg`,dark:`/logos/blitz/dark.svg`}},Bs=class extends Z{static{x(this,`Brunch`)}id=`brunch`;name=`Brunch`;npmDependencies=[`brunch`];configFiles=[`brunch-config.js`];category=X.BuildTool;dev={command:`brunch watch --server`,port:3333,pollingStrategies:[{name:`TCP`}]};build={command:`brunch build`,directory:`public`};logo={default:`/logos/brunch/default.svg`,light:`/logos/brunch/default.svg`,dark:`/logos/brunch/default.svg`}},Vs=class extends Z{static{x(this,`Cecil`)}id=`cecil`;name=`Cecil`;configFiles=[`config.yml`];category=X.SSG;dev={command:`cecil serve`,port:8e3,pollingStrategies:[{name:`TCP`}]};build={command:`cecil build`,directory:`_site`};logo={default:`/logos/cecil/default.svg`,light:`/logos/cecil/default.svg`,dark:`/logos/cecil/default.svg`}},Hs=class extends Z{static{x(this,`DocPad`)}id=`docpad`;name=`DocPad`;npmDependencies=[`docpad`];category=X.SSG;dev={command:`docpad run`,port:9778,pollingStrategies:[{name:`TCP`}]};build={command:`docpad generate`,directory:`out`}},Us=class extends Z{static{x(this,`Docusaurus`)}id=`docusaurus`;name=`Docusaurus`;configFiles=[`docusaurus.config.js`,`siteConfig.js`];npmDependencies=[`@docusaurus/core`,`docusaurus`];category=X.SSG;staticAssetsDirectory=`static`;dev={command:`docusaurus start`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`docusaurus build`,directory:`build`};logo={default:`/logos/docusaurus/default.svg`,light:`/logos/docusaurus/default.svg`,dark:`/logos/docusaurus/default.svg`};env={BROWSER:`none`};async detect(){if(await super.detect(),this.detected)return this.isV1(this.detected)&&(this.build.command=`docusaurus-build`,this.build.directory=`build/<project-name>`,this.dev.command=`docusaurus-start`),this}isV1(e){return e.config?.endsWith(`siteConfig.js`)||e.package?.name===`docusaurus`}},Ws=class extends Z{static{x(this,`Eleventy`)}id=`eleventy`;name=`Eleventy`;configFiles=[`.eleventy.js`,`eleventy.config.js`,`eleventy.config.cjs`];npmDependencies=[`@11ty/eleventy`];category=X.SSG;dev={command:`eleventy --serve`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`eleventy`,directory:`_site`};logo={default:`/logos/eleventy/default.svg`,light:`/logos/eleventy/light.svg`,dark:`/logos/eleventy/dark.svg`}},Gs=class extends Z{static{x(this,`Ember`)}id=`ember`;name=`Ember.js`;configFiles=[`ember-cli-build.js`];npmDependencies=[`ember-cli`];category=X.FrontendFramework;dev={command:`ember serve`,port:4200,pollingStrategies:[{name:`TCP`}]};build={command:`ember build`,directory:`dist`};logo={default:`/logos/ember/default.svg`,light:`/logos/ember/light.svg`,dark:`/logos/ember/dark.svg`}},Ks=class extends Z{static{x(this,`Expo`)}id=`expo`;name=`Expo`;configFiles=[`app.json`];npmDependencies=[`expo`];category=X.FrontendFramework;dev={command:`expo start --web`,port:19006,pollingStrategies:[{name:`TCP`}]};build={command:`expo export -p web`,directory:`dist`};logo={default:`/logos/expo/default.svg`,light:`/logos/expo/light.svg`,dark:`/logos/expo/dark.svg`}},qs=T(Fr(),1),Js=class extends Z{static{x(this,`Gatsby`)}id=`gatsby`;name=`Gatsby`;configFiles=[`gatsby-config.js`,`gatsby-config.ts`];npmDependencies=[`gatsby`];category=X.SSG;staticAssetsDirectory=`static`;dev={command:`gatsby develop`,port:8e3,pollingStrategies:[{name:`TCP`}]};build={command:`gatsby build`,directory:`public`};logo={default:`/logos/gatsby/default.svg`,light:`/logos/gatsby/light.svg`,dark:`/logos/gatsby/dark.svg`};env={GATSBY_LOGGER:`yurnalist`,GATSBY_PRECOMPILE_DEVELOP_FUNCTIONS:`true`,AWS_LAMBDA_JS_RUNTIME:`nodejs14.x`,NODE_VERSION:`14`};async detect(){if(await super.detect(),this.detected){this.version&&(0,qs.gte)(this.version,`5.0.0`)&&(this.env.NODE_VERSION=`18`,this.env.AWS_LAMBDA_JS_RUNTIME=`nodejs18.x`);let e=await this.project.getCurrentNodeVersion();return e&&(0,qs.gte)(e,`12.13.0`)&&!process.env.NETLIFY_SKIP_GATSBY_BUILD_PLUGIN&&this.plugins.push(`@netlify/plugin-gatsby`),this}}},Ys=class extends Z{static{x(this,`Gridsome`)}id=`gridsome`;name=`Gridsome`;configFiles=[`gridsome.config.js`];npmDependencies=[`gridsome`];category=X.SSG;dev={command:`gridsome develop`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`gridsome build`,directory:`dist`};logo={default:`/logos/gridsome/default.svg`,light:`/logos/gridsome/light.svg`,dark:`/logos/gridsome/dark.svg`}},Xs=class extends Z{static{x(this,`Grunt`)}id=`grunt`;name=`Grunt`;npmDependencies=[`grunt`];category=X.BuildTool;build={command:`grunt build`,directory:`dist`};logo={default:`/logos/grunt/default.svg`,light:`/logos/grunt/default.svg`,dark:`/logos/grunt/default.svg`}},Zs=class extends Z{static{x(this,`Gulp`)}id=`gulp`;name=`gulp.js`;npmDependencies=[`gulp`];category=X.BuildTool;build={command:`gulp build`,directory:`dist`};logo={default:`/logos/gulp/default.svg`,light:`/logos/gulp/default.svg`,dark:`/logos/gulp/default.svg`}},Qs=class extends Z{static{x(this,`Harp`)}id=`harp`;name=`Harp`;npmDependencies=[`harp`];category=X.SSG;dev={command:`harp server`,port:9e3,pollingStrategies:[{name:`TCP`}]};build={command:`harp compile`,directory:`www`};logo={default:`/logos/harp/default.svg`,light:`/logos/harp/light.svg`,dark:`/logos/harp/default.svg`}},$s=class extends Z{static{x(this,`Hexo`)}id=`hexo`;name=`Hexo`;configFiles=[`_config.yml`];npmDependencies=[`hexo`];category=X.SSG;dev={command:`hexo server`,port:4e3,pollingStrategies:[{name:`TCP`}]};build={command:`hexo generate`,directory:`public`};logo={default:`/logos/hexo/default.svg`,light:`/logos/hexo/light.svg`,dark:`/logos/hexo/dark.svg`}},ec=class extends Z{static{x(this,`Hono`)}id=`hono`;name=`Hono`;npmDependencies=[`hono`];category=X.BackendFramework;logo={default:`/logos/hono/default.svg`,light:`/logos/hono/default.svg`,dark:`/logos/hono/default.svg`}},tc=class extends Z{static{x(this,`Hugo`)}id=`hugo`;name=`Hugo`;configFiles=[`config.json`,`config.toml`,`config.yaml`,`hugo.toml`];category=X.SSG;dev={command:`hugo server -w`,port:1313,pollingStrategies:[{name:`TCP`}]};build={command:`hugo`,directory:`public`};logo={default:`/logos/hugo/default.svg`,light:`/logos/hugo/default.svg`,dark:`/logos/hugo/default.svg`}},nc=[`remix.config.js`],rc={command:`remix dev --manual -c "netlify dev"`},ic={command:`remix build`,directory:`public`},ac=[`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`,`vite.config.ts`,`vite.config.mts`,`vite.config.cts`],oc={command:`shopify hydrogen dev`,port:5173},sc={command:`remix vite:build`,directory:`dist/client`},cc=class extends Z{static{x(this,`Hydrogen`)}id=`hydrogen`;name=`Hydrogen`;npmDependencies=[`@shopify/hydrogen`];configFiles=[...ac,...nc];category=X.SSG;logo={default:`/logos/hydrogen/default.svg`,light:`/logos/hydrogen/default.svg`,dark:`/logos/hydrogen/default.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.configName&&ac.includes(this.detected.configName)?(this.dev=oc,this.build=sc,this):(this.dev=rc,this.build=ic,this)}},lc=class extends Z{static{x(this,`Jekyll`)}id=`jekyll`;name=`Jekyll`;configFiles=[`_config.yml`,`_config.yaml`,`_config.toml`];category=X.SSG;dev={command:`bundle exec jekyll serve -w`,port:4e3,pollingStrategies:[{name:`TCP`}]};build={command:`bundle exec jekyll build`,directory:`_site`};logo={default:`/logos/jekyll/dark.svg`,light:`/logos/jekyll/light.svg`,dark:`/logos/jekyll/dark.svg`}},uc=class extends Z{static{x(this,`Mastra`)}id=`mastra`;name=`Mastra`;npmDependencies=[`@mastra/deployer-netlify`];category=X.BackendFramework;dev={command:`mastra dev`,port:4111};build={command:`mastra build`,directory:`dist`};logo={default:`/logos/mastra/light.svg`,light:`/logos/mastra/light.svg`,dark:`/logos/mastra/dark.svg`}},dc=class extends Z{static{x(this,`Metalsmith`)}id=`metalsmith`;name=`Metalsmith`;npmDependencies=[`metalsmith`];category=X.SSG;build={command:`metalsmith`,directory:`build`};logo={default:`/logos/metalsmith/default.svg`,light:`/logos/metalsmith/default.svg`,dark:`/logos/metalsmith/default.svg`}},fc=class extends Z{static{x(this,`Middleman`)}id=`middleman`;name=`Middleman`;configFiles=[`config.rb`];category=X.SSG;dev={command:`bundle exec middleman server`,port:4567,pollingStrategies:[{name:`TCP`}]};build={command:`bundle exec middleman build`,directory:`build`};logo={default:`/logos/middleman/default.svg`,light:`/logos/middleman/default.svg`,dark:`/logos/middleman/default.svg`}},pc=T(Fr(),1),mc=class extends Z{static{x(this,`Next`)}id=`next`;name=`Next.js`;category=X.SSG;npmDependencies=[`next`];excludedNpmDependencies=[`@nrwl/next`];configFiles=[`next.config.js`,`next.config.mjs`,`next.config.ts`];dev={command:`next`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`next build`,directory:`.next`};logo={default:`/logos/nextjs/light.svg`,light:`/logos/nextjs/light.svg`,dark:`/logos/nextjs/dark.svg`};async detect(){if(await super.detect(),this.detected){let e=await this.project.getCurrentNodeVersion();return e&&(0,pc.gte)(e,`10.13.0`)&&!process.env.NETLIFY_NEXT_PLUGIN_SKIP&&this.plugins.push(`@netlify/plugin-nextjs`),this}}},hc=class extends Z{static{x(this,`Nuxt`)}id=`nuxt`;name=`Nuxt`;npmDependencies=[`nuxt`,`nuxt-edge`,`nuxt3`];category=X.SSG;dev={command:`nuxt dev`,port:3e3,pollingStrategies:[{name:`TCP`}],clearPublishDirectory:!0};build={command:`nuxt build`,directory:`dist`};logo={default:`/logos/nuxt/default.svg`,light:`/logos/nuxt/light.svg`,dark:`/logos/nuxt/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.package?.version?.major!==void 0&&this.detected.package.version.major<3&&(this.build.command=`nuxt generate`,this.dev.command=`nuxt`),this}},gc=class extends Z{static{x(this,`Observable`)}id=`observable`;name=`Observable Framework`;npmDependencies=[`@observablehq/framework`];category=X.SSG;dev={command:`observable preview`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`observable build`,directory:`dist`};logo={default:`/logos/observable/default.svg`,light:`/logos/observable/default.svg`,dark:`/logos/observable/default.svg`}},_c=class extends Z{static{x(this,`Parcel`)}id=`parcel`;name=`Parcel`;npmDependencies=[`parcel-bundler`,`parcel`];category=X.BuildTool;dev={command:`parcel`,port:1234,pollingStrategies:[{name:`TCP`}]};build={command:`parcel build`,directory:`dist`};logo={default:`/logos/parcel/default.svg`,light:`/logos/parcel/default.svg`,dark:`/logos/parcel/default.svg`}},vc=class extends Z{static{x(this,`Phenomic`)}id=`phenomic`;name=`Phenomic`;npmDependencies=[`@phenomic/core`];category=X.SSG;dev={command:`phenomic start`,port:3333,pollingStrategies:[{name:`TCP`}]};build={command:`phenomic build`,directory:`public`};logo={default:`/logos/phenomic/default.svg`,light:`/logos/phenomic/default.svg`,dark:`/logos/phenomic/default.svg`}},yc=class extends Z{static{x(this,`Quasar`)}id=`quasar`;name=`Quasar`;npmDependencies=[`@quasar/app`,`quasar-cli`];category=X.FrontendFramework;dev={command:`quasar dev -p 8081`,port:8081,pollingStrategies:[{name:`TCP`}]};build={command:`quasar build`,directory:`dist/spa`};logo={default:`/logos/quasar/default.svg`,light:`/logos/quasar/default.svg`,dark:`/logos/quasar/default.svg`};async detect(){if(await super.detect(),this.detected)return this.isV017(this.detected)&&(this.name=`Quasar v0.17`,this.build.directory=`.quasar`,this.dev.command=`quasar dev -p 8080`,this.dev.port=8080),this}isV017(e){return e.package?.name===`quasar-cli`}},bc=class extends Z{static{x(this,`Qwik`)}id=`qwik`;name=`Qwik`;npmDependencies=[`@builder.io/qwik`];category=X.SSG;dev={command:`vite`,port:5173,pollingStrategies:[{name:`TCP`}]};logo={default:`/logos/qwik/default.svg`,light:`/logos/qwik/default.svg`,dark:`/logos/qwik/default.svg`}},xc=T(Fr(),1),Sc=class extends Z{static{x(this,`ReactRouter`)}id=`react-router`;name=`React Router`;npmDependencies=[`@react-router/dev`];excludedNpmDependencies=[`@shopify/hydrogen`];configFiles=[`react-router.config.ts`,`react-router.config.js`];category=X.SSG;dev={port:5173,command:`react-router dev`};build={command:`react-router build`,directory:`build/client`};logo={default:`/logos/react-router/light.svg`,light:`/logos/react-router/light.svg`,dark:`/logos/react-router/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.version&&(0,xc.lt)(this.version,`7.0.0`)?void 0:this}},Cc=class extends Z{static{x(this,`ReactStatic`)}id=`react-static`;name=`React Static`;npmDependencies=[`react-static`];configFiles=[`static.config.js`];category=X.SSG;dev={command:`react-static start`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`react-static build`,directory:`dist`};logo={default:`/logos/react-static/default.png`,light:`/logos/react-static/default.png`,dark:`/logos/react-static/default.png`}},wc=class extends Z{static{x(this,`CreateReactApp`)}id=`create-react-app`;name=`Create React App`;npmDependencies=[`react-scripts`];category=X.FrontendFramework;staticAssetsDirectory=`public`;dev={command:`react-scripts start`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`react-scripts build`,directory:`build`};logo={default:`/logos/create-react-app/default.svg`,light:`/logos/create-react-app/default.svg`,dark:`/logos/create-react-app/default.svg`};env={BROWSER:`none`,PORT:`3000`}},Tc=class extends Z{static{x(this,`RedwoodJS`)}id=`redwoodjs`;name=`RedwoodJS`;npmDependencies=[`@redwoodjs/core`];configFiles=[`redwood.toml`];category=X.SSG;staticAssetsDirectory=`public`;dev={command:`yarn rw dev`,port:8910,pollingStrategies:[{name:`TCP`}]};build={command:`rw deploy netlify`,directory:`web/dist`};env={AWS_LAMBDA_JS_RUNTIME:`nodejs20.x`,NODE_VERSION:`20`};logo={default:`/logos/redwoodjs/default.svg`,light:`/logos/redwoodjs/default.svg`,dark:`/logos/redwoodjs/default.svg`}},Ec=[`remix.config.js`],Dc={command:`remix watch`},Oc={command:`remix build`,directory:`public`},kc=[`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`,`vite.config.ts`,`vite.config.mts`,`vite.config.cts`],Ac={command:`remix vite:dev`,port:5173},jc={command:`remix vite:build`,directory:`build/client`},Mc=class extends Z{static{x(this,`Remix`)}id=`remix`;name=`Remix`;npmDependencies=[`@remix-run/react`,`@remix-run/dev`,`@remix-run/server-runtime`,`@netlify/remix-adapter`,`@netlify/remix-edge-adapter`,`@netlify/remix-runtime`,`remix`,`@remix-run/netlify`,`@remix-run/netlify-edge`];excludedNpmDependencies=[`@shopify/hydrogen`];configFiles=[...kc,...Ec];category=X.SSG;logo={default:`/logos/remix/default.svg`,light:`/logos/remix/light.svg`,dark:`/logos/remix/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.configName&&kc.includes(this.detected.configName)?(this.dev=Ac,this.build=jc,this):(this.dev=Dc,this.build=Oc,this)}},Nc=class extends Z{static{x(this,`Roots`)}id=`roots`;name=`Roots`;npmDependencies=[`roots`];category=X.SSG;dev={command:`roots watch`,port:1111,pollingStrategies:[{name:`TCP`}]};build={command:`roots compile`,directory:`public`};logo={default:`/logos/roots/default.svg`,light:`/logos/roots/default.svg`,dark:`/logos/roots/default.svg`}},Pc=class extends Z{static{x(this,`Sapper`)}id=`sapper`;name=`Sapper`;npmDependencies=[`sapper`];category=X.FrontendFramework;staticAssetsDirectory=`static`;dev={command:`sapper dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`sapper export`,directory:`__sapper__/export`};logo={default:`/logos/sapper/default.svg`,light:`/logos/sapper/default.svg`,dark:`/logos/sapper/default.svg`}},Fc=class extends Z{static{x(this,`SolidJs`)}id=`solid-js`;name=`SolidJS`;npmDependencies=[`solid-js`];excludedNpmDependencies=[`solid-start`,`@solidjs/start`,`@tanstack/solid-start`];category=X.SSG;dev={command:`vite dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist`};logo={default:`/logos/solid-js/default.svg`,light:`/logos/solid-js/default.svg`,dark:`/logos/solid-js/dark.svg`}},Ic=`solid-start`,Lc={command:`solid-start dev`,port:3e3},Rc={command:`solid-start build`,directory:`netlify`},zc=class extends Z{static{x(this,`SolidStart`)}id=`solid-start`;name=`Solid Start`;npmDependencies=[`solid-start`,`@solidjs/start`];category=X.SSG;dev={command:`vinxi dev`,port:3e3};build={command:`vinxi build`,directory:`dist`};logo={default:`/logos/solid-start/default.svg`,light:`/logos/solid-start/default.svg`,dark:`/logos/solid-start/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.package?.name===Ic?(this.dev=Lc,this.build=Rc,this):this}},Bc=class extends Z{static{x(this,`Stencil`)}id=`stencil`;name=`Stencil`;npmDependencies=[`@stencil/core`];configFiles=[`stencil.config.ts`];category=X.SSG;dev={command:`stencil build --dev --watch --serve`,port:3333,pollingStrategies:[{name:`TCP`}]};build={command:`stencil build`,directory:`www`};logo={default:`/logos/stencil/light.svg`,light:`/logos/stencil/light.svg`,dark:`/logos/stencil/dark.svg`};env={BROWSER:`none`,PORT:`3000`}},Vc=class extends Z{static{x(this,`SvelteKit`)}id=`svelte-kit`;name=`SvelteKit`;npmDependencies=[`@sveltejs/kit`];category=X.FrontendFramework;staticAssetsDirectory=`static`;dev={command:`vite dev`,port:5173,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`build`};logo={default:`/logos/svelte-kit/default.svg`,light:`/logos/svelte-kit/default.svg`,dark:`/logos/svelte-kit/default.svg`}},Hc=class extends Z{static{x(this,`Svelte`)}id=`svelte`;name=`Svelte`;npmDependencies=[`svelte`];excludedNpmDependencies=[`sapper`,`@sveltejs/kit`];category=X.FrontendFramework;staticAssetsDirectory=`static`;dev={command:`npm run dev`,port:5e3,pollingStrategies:[{name:`TCP`}]};build={command:`npm run build`,directory:`public`};logo={default:`/logos/svelte-kit/default.svg`,light:`/logos/svelte-kit/default.svg`,dark:`/logos/svelte-kit/default.svg`}},Uc=class extends Z{static{x(this,`TanStackRouter`)}id=`tanstack-router`;name=`TanStack Router`;npmDependencies=[`@tanstack/react-router`];excludedNpmDependencies=[`@tanstack/start`,`@tanstack/react-start`,`@tanstack/solid-start`];category=X.SSG;dev={command:`vite dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist`};logo={default:`/logos/tanstack-router/default.png`,light:`/logos/tanstack-router/default.png`,dark:`/logos/tanstack-router/default.png`}},Wc=T(Fr(),1),Gc=class extends Z{static{x(this,`TanStackStart`)}id=`tanstack-start`;name=`TanStack Start`;npmDependencies=[`@tanstack/start`,`@tanstack/react-start`,`@tanstack/solid-start`];category=X.SSG;dev={command:`vite dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist/client`};logo={default:`/logos/tanstack-start/default.png`,light:`/logos/tanstack-start/default.png`,dark:`/logos/tanstack-start/default.png`};async detect(){if(await super.detect(),this.detected)return this.version&&(0,Wc.lt)(this.version,`1.121.0`)&&(this.dev.command=`vinxi dev`,this.build.command=`vinxi build`),this.version&&(0,Wc.lt)(this.version,`1.132.0`)&&(this.build.directory=`dist`),this}},Kc=class extends Z{static{x(this,`Vike`)}id=`vike`;name=`Vike`;npmDependencies=[`vike`];category=X.SSG;dev={command:`vike dev`,port:3e3};build={command:`vike build`,directory:`dist/client`};logo={default:`/logos/vike/light.svg`,light:`/logos/vite/light.svg`,dark:`/logos/vite/dark.svg`}},qc=class extends Z{static{x(this,`Vite`)}id=`vite`;name=`Vite`;npmDependencies=[`vite`];excludedNpmDependencies=[`@remix-run/react`,`@remix-run/dev`,`@remix-run/server-runtime`,`@shopify/hydrogen`,`@builder.io/qwik`,`solid-start`,`@solidjs/start`,`solid-js`,`@tanstack/react-router`,`@tanstack/start`,`@sveltejs/kit`,`@analogjs/platform`,`@react-router/dev`,`vike`];category=X.BuildTool;dev={command:`vite`,port:5173,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist`};logo={default:`/logos/vite/default.svg`,light:`/logos/vite/default.svg`,dark:`/logos/vite/default.svg`}},Jc=class extends Z{static{x(this,`VitePress`)}id=`vitepress`;name=`VitePress`;npmDependencies=[`vitepress`];category=X.SSG;dev={command:`vitepress dev docs`,port:5173,pollingStrategies:[{name:`TCP`}]};build={command:`vitepress build docs`,directory:`docs/.vitepress/dist`};logo={default:`/logos/vitepress/default.svg`,light:`/logos/vitepress/default.svg`,dark:`/logos/vitepress/default.svg`}},Yc=class extends Z{static{x(this,`Vue`)}id=`vue`;name=`Vue.js`;npmDependencies=[`@vue/cli-service`];category=X.FrontendFramework;dev={command:`vue-cli-service serve`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`vue-cli-service build`,directory:`dist`};logo={default:`/logos/vue/default.svg`,light:`/logos/vue/default.svg`,dark:`/logos/vue/default.svg`}},Xc=class extends Z{static{x(this,`VuePress`)}id=`vuepress`;name=`VuePress`;npmDependencies=[`vuepress`];category=X.SSG;dev={command:`vuepress dev`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`vuepress build`,directory:`.vuepress/dist`};logo={default:`/logos/vuepress/default.svg`,light:`/logos/vuepress/default.svg`,dark:`/logos/vuepress/default.svg`}},Zc=class extends Z{static{x(this,`Waku`)}id=`waku`;name=`Waku`;npmDependencies=[`waku`];configFiles=[`waku.config.ts`,`waku.config.js`];category=X.SSG;dev={command:`waku dev`,port:3e3};build={command:`waku build`,directory:`dist/public`};logo={default:`/logos/waku/light.svg`,light:`/logos/waku/light.svg`,dark:`/logos/waku/dark.svg`}},Qc=class extends Z{static{x(this,`Wintersmith`)}id=`wintersmith`;name=`Wintersmith`;npmDependencies=[`wintersmith`];configFiles=[`config.json`];category=X.SSG;dev={command:`wintersmith preview`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`wintersmith build`,directory:`build`};logo={default:`/logos/wintersmith/default.svg`,light:`/logos/wintersmith/default.svg`,dark:`/logos/wintersmith/default.svg`}},$c=class extends Z{static{x(this,`WMR`)}id=`wmr`;name=`WMR`;npmDependencies=[`wmr`];category=X.BuildTool;dev={command:`wmr`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`wmr build`,directory:`dist`};logo={default:`/logos/wmr/default.svg`,light:`/logos/wmr/default.svg`,dark:`/logos/wmr/default.svg`}},el=[Rs,Us,Ws,Js,Ys,$s,tc,cc,lc,fc,mc,zs,hc,vc,bc,Sc,Cc,Tc,Mc,Fc,zc,Bc,Uc,Gc,Xc,Is,Hs,Qs,dc,Nc,Qc,Vs,class extends Z{static{x(this,`Zola`)}id=`zola`;name=`Zola`;configFiles=[`config.toml`];category=X.SSG;dev={command:`zola serve`,port:1111,pollingStrategies:[{name:`TCP`}]};build={command:`zola build`,directory:`public`}},gc,Ns,Kc,Zc,Jc,ec,uc,Fs,wc,Gs,Ks,yc,Pc,Hc,Vc,Yc,Bs,_c,Zs,Xs,qc,$c];async function tl(e,t){let n=el.map(e=>new e(t)),r=n.find(({id:t})=>t===e);if(r){r.detected={accuracy:Os.Forced};let t=await r.detect();if(t)return t;throw Error(`Forced framework "${e}" was not detected.`)}let i=n.map(({id:e})=>e).sort().join(`, `);throw Error(`Invalid framework "${e}". It should be one of: ${i}`)}x(tl,`getFramework`);var nl=T(Fr(),1),rl=class{static{x(this,`BaseBuildTool`)}project;id;name;version;configFiles=[];runFromRoot;logo;constructor(e){this.project=e}async detect(){let e=await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root});if(e){let t=await this.project.getPackageJSON(this.project.fs.dirname(e));return this.version=t.devDependencies?.[this.id],this}}toJSON(){return{id:this.id,name:this.name,version:this.version,logo:this.logo?Object.entries(this.logo).reduce((e,[t,n])=>({...e,[t]:`https://framework-info.netlify.app${n}`}),{}):void 0}}},il=class extends rl{static{x(this,`Bazel`)}id=`bazel`;name=`Bazel`;configFiles=[`.bazelrc`,`WORKSPACE`,`WORKSPACE.bazel`,`BUILD.bazel`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},al=class extends rl{static{x(this,`Buck`)}id=`buck`;name=`Buck`;configFiles=[`.buckconfig`,`BUCK`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},ol=class extends rl{static{x(this,`Gradle`)}id=`gradle`;name=`Gradle`;configFiles=[`build.gradle`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},sl=class extends rl{static{x(this,`Lage`)}id=`lage`;name=`Lage`;configFiles=[`lage.config.js`]},cl=class extends rl{static{x(this,`Lerna`)}id=`lerna`;name=`Lerna`;configFiles=[`lerna.json`];logo={default:`/logos/lerna/light.svg`,light:`/logos/lerna/light.svg`,dark:`/logos/lerna/dark.svg`}},ll=class extends rl{static{x(this,`Moon`)}id=`moon`;name=`MoonRepo`;configFiles=[`.moon`];async detect(){let e=await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,type:`directory`,stopAt:this.project.root});if(e){let t=await this.project.getPackageJSON(e);return this.version=t.devDependencies?.[this.id],this}}},ul=class extends rl{static{x(this,`Nix`)}id=`nix`;name=`Nix`;configFiles=[`default.nix`,`shell.nix`,`release.nix`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},dl=T(Qi(),1),fl=x((e,t,n)=>{let r=e instanceof RegExp?pl(e,n):e,i=t instanceof RegExp?pl(t,n):t,a=r!==null&&i!=null&&ml(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},`balanced`),pl=x((e,t)=>{let n=t.match(e);return n?n[0]:null},`maybeMatch`),ml=x((e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},`range`),hl=`\0SLASH`+Math.random()+`\0`,gl=`\0OPEN`+Math.random()+`\0`,_l=`\0CLOSE`+Math.random()+`\0`,vl=`\0COMMA`+Math.random()+`\0`,yl=`\0PERIOD`+Math.random()+`\0`,bl=new RegExp(hl,`g`),xl=new RegExp(gl,`g`),Sl=new RegExp(_l,`g`),Cl=new RegExp(vl,`g`),wl=new RegExp(yl,`g`),Tl=/\\\\/g,El=/\\{/g,Dl=/\\}/g,Ol=/\\,/g,kl=/\\\./g,Al=1e5;function jl(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}x(jl,`numeric`);function Ml(e){return e.replace(Tl,hl).replace(El,gl).replace(Dl,_l).replace(Ol,vl).replace(kl,yl)}x(Ml,`escapeBraces`);function Nl(e){return e.replace(bl,`\\`).replace(xl,`{`).replace(Sl,`}`).replace(Cl,`,`).replace(wl,`.`)}x(Nl,`unescapeBraces`);function Pl(e){if(!e)return[``];let t=[],n=fl(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=Pl(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}x(Pl,`parseCommaParts`);function Fl(e,t={}){if(!e)return[];let{max:n=Al}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),Bl(Ml(e),n,!0).map(Nl)}x(Fl,`expand`);function Il(e){return`{`+e+`}`}x(Il,`embrace`);function Ll(e){return/^-?0\d/.test(e)}x(Ll,`isPadded`);function Rl(e,t){return e<=t}x(Rl,`lte`);function zl(e,t){return e>=t}x(zl,`gte`);function Bl(e,t,n){let r=[],i=fl(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?Bl(i.post,t,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e<o.length&&e<t;e++){let t=a+`{`+i.body+`}`+o[e];r.push(t)}else{let s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),l=s||c,u=i.body.indexOf(`,`)>=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(e=i.pre+`{`+i.body+_l+i.post,Bl(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=Pl(i.body),d.length===1&&d[0]!==void 0&&(d=Bl(d[0],t,!1).map(Il),d.length===1))return o.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=jl(d[0]),t=jl(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.max(Math.abs(jl(d[2])),1):1,i=Rl;t<e&&(r*=-1,i=zl);let a=d.some(Ll);f=[];for(let o=e;i(o,t);o+=r){let e;if(c)e=String.fromCharCode(o),e===`\\`&&(e=``);else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e<d.length;e++)f.push.apply(f,Bl(d[e],t,!1))}for(let e=0;e<f.length;e++)for(let i=0;i<o.length&&r.length<t;i++){let t=a+f[e]+o[i];(!n||l||t)&&r.push(t)}}return r}x(Bl,`expand_`);var Vl=1024*64,Hl=x(e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>Vl)throw TypeError(`pattern is too long`)},`assertValidPattern`),Ul={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},Wl=x(e=>e.replace(/[[\]\\-]/g,`\\$&`),`braceEscape`),Gl=x(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regexpEscape`),Kl=x(e=>e.join(``),`rangesToString`),ql=x((e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;a<e.length;){let t=e.charAt(a);if((t===`!`||t===`^`)&&a===n+1){l=!0,a++;continue}if(t===`]`&&o&&!c){u=a+1;break}if(o=!0,t===`\\`&&!c){c=!0,a++;continue}if(t===`[`&&!c){for(let[t,[o,c,l]]of Object.entries(Ul))if(e.startsWith(t,a)){if(d)return[`$.`,!1,e.length-n,!0];a+=t.length,l?i.push(o):r.push(o),s||=c;continue WHILE}}if(c=!1,d){t>d?r.push(Wl(d)+`-`+Wl(t)):t===d&&r.push(Wl(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(Wl(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(Wl(t)),a++}if(u<a)return[``,!1,0,!1];if(!r.length&&!i.length)return[`$.`,!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l)return[Gl(r[0].length===2?r[0].slice(-1):r[0]),!1,u-n,!1];let f=`[`+(l?`^`:``)+Kl(r)+`]`,p=`[`+(l?``:`^`)+Kl(i)+`]`;return[r.length&&i.length?`(`+f+`|`+p+`)`:r.length?f:p,s,u-n,!0]},`parseClass`),Jl=x((e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`),`unescape`),Yl,Xl=new Set([`!`,`?`,`+`,`*`,`@`]),Zl=x(e=>Xl.has(e),`isExtglobType`),Ql=x(e=>Zl(e.type),`isExtglobAST`),$l=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),eu=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),tu=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),nu=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),ru=`(?!(?:^|/)\\.\\.?(?:$|/))`,iu=`(?!\\.)`,au=new Set([`[`,`.`]),ou=new Set([`..`,`.`]),su=new Set(`().*{}+?[]^$\\!`),cu=x(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regExpEscape`),lu=`[^/]`,uu=lu+`*?`,du=lu+`+?`,fu=0,pu=class{static{x(this,`AST`)}type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++fu;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...e){for(let t of e)if(t!==``){if(typeof t!=`string`&&!(t instanceof Yl&&t.#i===this))throw Error(`invalid part: `+t);this.#r.push(t)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;t<this.#a;t++){let n=e.#r[t];if(!(n instanceof Yl&&n.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(e){let t=new Yl(this.type,e);for(let e of this.#r)t.copyIn(e);return t}static#f(e,t,n,r,i){let a=r.maxExtglobRecursion??2,o=!1,s=!1,c=-1,l=!1;if(t.type===null){let u=n,d=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,d+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),d+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,d+=n;continue}if(!r.noext&&Zl(n)&&e.charAt(u)===`(`&&i<=a){t.push(d),d=``;let a=new Yl(n,t);u=Yl.#f(e,a,u,r,i+1),t.push(a);continue}d+=n}return t.push(d),u}let u=n+1,d=new Yl(null,t),f=[],p=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,p+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),p+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,p+=n;continue}if(!r.noext&&Zl(n)&&e.charAt(u)===`(`&&(i<=a||t&&t.#h(n))){let a=t&&t.#h(n)?0:1;d.push(p),p=``;let o=new Yl(n,d);d.push(o),u=Yl.#f(e,o,u,r,i+a);continue}if(n===`|`){d.push(p),p=``,f.push(d),d=new Yl(null,t);continue}if(n===`)`)return p===``&&t.#r.length===0&&(t.#u=!0),d.push(p),p=``,t.push(...f,d),u;p+=n}return t.type=null,t.#t=void 0,t.#r=[e.substring(n-1)],u}#p(e){return this.#m(e,eu)}#m(e,t=$l){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null)return!1;let n=e.#r[0];return!n||typeof n!=`object`||n.type===null?!1:this.#h(n.type,t)}#h(e,t=tu){return!!t.get(this.type)?.includes(e)}#g(e,t){let n=e.#r[0],r=new Yl(null,n,this.options);r.#r.push(``),n.push(r),this.#_(e,t)}#_(e,t){let n=e.#r[0];this.#r.splice(t,1,...n.#r);for(let e of n.#r)typeof e==`object`&&(e.#i=this);this.#l=void 0}#v(e){return!!nu.get(this.type)?.has(e)}#y(e){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null||this.#r.length!==1)return!1;let t=e.#r[0];return!t||typeof t!=`object`||t.type===null?!1:this.#v(t.type)}#b(e){let t=nu.get(this.type),n=e.#r[0],r=t?.get(n.type);if(!r)return!1;this.#r=n.#r;for(let e of this.#r)typeof e==`object`&&(e.#i=this);this.type=r,this.#l=void 0,this.#u=!1}static fromGlob(e,t={}){let n=new Yl(null,void 0,t);return Yl.#f(e,n,0,t,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(e){let t=e??!!this.#c.dot;if(this.#e===this&&(this.#x(),this.#d()),!Ql(this)){let n=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?Yl.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&ou.has(this.#r[0]))){let n=au,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?ru:o?iu:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,Jl(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,Jl(this.toString()),!1,!1]}let a=!n||e||t||!iu?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?iu:``)+du;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?iu:``)+uu+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,Jl(i),this.#t=!!this.#t,this.#n]}#x(){if(Ql(this)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#r.length;e++){let n=this.#r[e];typeof n==`object`&&(n.#x(),this.#m(n)?(t=!1,this.#_(n,e)):this.#p(n)?(t=!1,this.#g(n,e)):this.#y(n)&&(t=!1,this.#b(n)))}}while(!t&&++e<10)}else for(let e of this.#r)typeof e==`object`&&e.#x();this.#l=void 0}#S(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;s<e.length;s++){let c=e.charAt(s);if(r){r=!1,i+=(su.has(c)?`\\`:``)+c;continue}if(c===`*`){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?du:uu,t=!0;continue}else o=!1;if(c===`\\`){s===e.length-1?i+=`\\\\`:r=!0;continue}if(c===`[`){let[n,r,o,c]=ql(e,s);if(o){i+=n,a||=r,s+=o-1,t||=c;continue}}if(c===`?`){i+=lu,t=!0;continue}i+=cu(c)}return[i,Jl(e),!!t,a]}};Yl=pu;var mu=x((e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),`escape`),hu=x((e,t,n={})=>(Hl(t),!n.nocomment&&t.charAt(0)===`#`?!1:new Ku(t,n).match(e)),`minimatch`),gu=/^\*+([^+@!?*[(]*)$/,_u=x(e=>t=>!t.startsWith(`.`)&&t.endsWith(e),`starDotExtTest`),vu=x(e=>t=>t.endsWith(e),`starDotExtTestDot`),yu=x(e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),`starDotExtTestNocase`),bu=x(e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),`starDotExtTestNocaseDot`),xu=/^\*+\.\*+$/,Su=x(e=>!e.startsWith(`.`)&&e.includes(`.`),`starDotStarTest`),Cu=x(e=>e!==`.`&&e!==`..`&&e.includes(`.`),`starDotStarTestDot`),wu=/^\.\*+$/,Tu=x(e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),`dotStarTest`),Eu=/^\*+$/,Du=x(e=>e.length!==0&&!e.startsWith(`.`),`starTest`),Ou=x(e=>e.length!==0&&e!==`.`&&e!==`..`,`starTestDot`),ku=/^\?+([^+@!?*[(]*)?$/,Au=x(([e,t=``])=>{let n=Pu([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},`qmarksTestNocase`),ju=x(([e,t=``])=>{let n=Fu([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},`qmarksTestNocaseDot`),Mu=x(([e,t=``])=>{let n=Fu([e]);return t?e=>n(e)&&e.endsWith(t):n},`qmarksTestDot`),Nu=x(([e,t=``])=>{let n=Pu([e]);return t?e=>n(e)&&e.endsWith(t):n},`qmarksTest`),Pu=x(([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},`qmarksTestNoExt`),Fu=x(([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},`qmarksTestNoExtDot`),Iu=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,Lu={win32:{sep:`\\`},posix:{sep:`/`}};hu.sep=Iu===`win32`?Lu.win32.sep:Lu.posix.sep;var Ru=Symbol(`globstar **`);hu.GLOBSTAR=Ru;var zu=`[^/]*?`,Bu=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,Vu=`(?:(?!(?:\\/|^)\\.).)*?`;hu.filter=x((e,t={})=>n=>hu(n,e,t),`filter`);var Hu=x((e,t={})=>Object.assign({},e,t),`ext`);hu.defaults=x(e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return hu;let t=hu;return Object.assign(x((n,r,i={})=>t(n,r,Hu(e,i)),`m`),{Minimatch:class extends t.Minimatch{static{x(this,`Minimatch`)}constructor(t,n={}){super(t,Hu(e,n))}static defaults(n){return t.defaults(Hu(e,n)).Minimatch}},AST:class extends t.AST{static{x(this,`AST`)}constructor(t,n,r={}){super(t,n,Hu(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,Hu(e,r))}},unescape:x((n,r={})=>t.unescape(n,Hu(e,r)),`unescape`),escape:x((n,r={})=>t.escape(n,Hu(e,r)),`escape`),filter:x((n,r={})=>t.filter(n,Hu(e,r)),`filter`),defaults:x(n=>t.defaults(Hu(e,n)),`defaults`),makeRe:x((n,r={})=>t.makeRe(n,Hu(e,r)),`makeRe`),braceExpand:x((n,r={})=>t.braceExpand(n,Hu(e,r)),`braceExpand`),match:x((n,r,i={})=>t.match(n,r,Hu(e,i)),`match`),sep:t.sep,GLOBSTAR:Ru})},`defaults`);var Uu=x((e,t={})=>(Hl(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Fl(e,{max:t.braceExpandMax})),`braceExpand`);hu.braceExpand=Uu,hu.makeRe=x((e,t={})=>new Ku(e,t).makeRe(),`makeRe`),hu.match=x((e,t,n={})=>{let r=new Ku(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e},`match`);var Wu=/[?*]|[+@!]\(.*?\)|\[|\]/,Gu=x(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regExpEscape`),Ku=class{static{x(this,`Minimatch`)}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){Hl(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||Iu,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!Wu.test(e[2]))&&!Wu.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t of e)for(let e=0;e<t.length;e++)t[e]===`**`&&(t[e]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&!(this.isWindows&&/^[a-z]:$/i.test(r))&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=0,i=0;if(this.isWindows){let n=typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]),a=!n&&e[0]===``&&e[1]===``&&e[2]===`?`&&/^[a-z]:$/i.test(e[3]),o=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),s=!o&&t[0]===``&&t[1]===``&&t[2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3]),c=a?3:n?0:void 0,l=s?3:o?0:void 0;if(typeof c==`number`&&typeof l==`number`){let[n,a]=[e[c],t[l]];n.toLowerCase()===a.toLowerCase()&&(t[l]=n,i=l,r=c)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(Ru)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(Ru,i),o=t.lastIndexOf(Ru),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n<e.length-u;n++){let r=String(e[n]);if(t=!0,r===`.`||r===`..`||!this.options.dot&&r.startsWith(`.`))return!1}return n||t}let d=[[[],0]],f=d[0],p=0,m=[0];for(let e of c)e===Ru?(m.push(p),f=[[],0],d.push(f)):(f[0].push(e),p++);let h=d.length-1,g=e.length-u;for(let e of d)e[1]=g-(m[h--]+e[0].length);return!!this.#t(e,d,r,0,n,0,!!u)}#t(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if(n===`.`||n===`..`||!this.options.dot&&n.startsWith(`.`))return!1}return o}let[c,l]=s;for(;n<=l;){if(this.#n(e.slice(0,n+c.length),c,i,n,0)&&a<this.maxGlobstarRecursion){let s=this.#t(e,t,n+c.length,r+1,i,a+1,o);if(s!==!1)return s}let s=e[n];if(s===`.`||s===`..`||!this.options.dot&&s.startsWith(`.`))return!1;n++}return i||null}#n(e,t,n,r,i){let a,o,s,c;for(a=r,o=i,c=e.length,s=t.length;a<c&&o<s;a++,o++){this.debug(`matchOne loop`);let n=t[o],r=e[a];if(this.debug(t,n,r),n===!1||n===Ru)return!1;let i;if(typeof n==`string`?(i=r===n,this.debug(`string match`,n,r,i)):(i=n.test(r),this.debug(`pattern match`,n,r,i)),!i)return!1}if(a===c&&o===s)return!0;if(a===c)return n;if(o===s)return a===c-1&&e[a]===``;throw Error(`wtf?`)}braceExpand(){return Uu(this.pattern,this.options)}parse(e){Hl(e);let t=this.options;if(e===`**`)return Ru;if(e===``)return``;let n,r=null;(n=e.match(Eu))?r=t.dot?Ou:Du:(n=e.match(gu))?r=(t.nocase?t.dot?bu:yu:t.dot?vu:_u)(n[1]):(n=e.match(ku))?r=(t.nocase?t.dot?ju:Au:t.dot?Mu:Nu)(n):(n=e.match(xu))?r=t.dot?Cu:Su:(n=e.match(wu))&&(r=Tu);let i=pu.fromGlob(e,this.options).toMMPattern();return r&&typeof i==`object`&&Reflect.defineProperty(i,`test`,{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?zu:t.dot?Bu:Vu,r=new Set(t.nocase?[`i`]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?Gu(e):e===Ru?Ru:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==Ru||a===Ru||(a===void 0?i!==void 0&&i!==Ru?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==Ru&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=Ru))});let i=t.filter(e=>e!==Ru);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return hu.defaults(e).Minimatch}};hu.AST=pu,hu.Minimatch=Ku,hu.escape=mu,hu.unescape=Jl;function qu(e){let t=[],n=e.globParts[0];for(let e=0,r=n.length;e<r;e++){if(n[e].includes(`*`))return{dir:t.join(`/`),depth:n[e]};t.push(n[e])}return{dir:t.join(`/`)}}x(qu,`getDirFromPattern`);var Ju=x(async({entry:e,project:t,directory:n,packagePath:r})=>{if(e===`package.json`){let i={path:r};try{let{name:r}=await t.fs.readJSON(t.fs.join(n,e));i.name=r}catch{}return i}return null},`defaultIdentifyPackage`);async function Yu(e,t,n,r){let i={},a=e.jsWorkspaceRoot?e.fs.resolve(e.jsWorkspaceRoot,t):e.root?e.fs.resolve(e.root,t):e.fs.resolve(t);try{i=await e.fs.readDir(a,!0)}catch{}let o=Object.entries(i).map(async([i,o])=>{let s=await n({entry:i,type:o,packagePath:t,directory:a,project:e});return s?[s]:r&&o===`directory`?Yu(e,e.fs.join(t,i),n,r===`**`?r:void 0):[]});return(await Promise.all(o)).flat()}x(Yu,`findPackages`);async function Xu(e,t=[]){if(!t?.length)return[];let n=(await Promise.all(t.map(t=>{let n=new Ku(t.replace(/^!?(\.\/)/,(e,t)=>e.replace(t,``)));if(n.negate)return;let{dir:r,depth:i}=qu(n);return Yu(e,r,Ju,i)}))).flat().filter(Boolean),r=new Map;for(let i of n)for(let n of t){let t=new Ku(n.replace(/^!?(\.\/)/,(e,t)=>e.replace(t,``)));hu(i.path,t.pattern)&&(r.set(e.fs.join(i.path),i),t.negate&&r.delete(e.fs.join(i.path)))}return[...r.values()]}x(Xu,`getWorkspacePackages`);var Zu=class{static{x(this,`WorkspaceInfo`)}isRoot;rootDir;packages=[];hasPackage(e){return this.packages.findIndex(({path:t})=>t===e)>-1}getPackage(e){return this.packages.find(({path:t})=>t===e)}};async function Qu(e){let t=await e.fs.findUp(`pnpm-workspace.yaml`,{cwd:e.baseDirectory,stopAt:e.root});if(!t)return[];try{let{packages:n=[]}=(0,dl.parse)(await e.fs.readFile(t));return n}catch{return[]}}x(Qu,`detectPnpmWorkspaceGlobs`);async function $u(e){return Array.isArray(e.workspaces)?e.workspaces||[]:typeof e.workspaces==`object`&&e.workspaces.packages||[]}x($u,`detectNpmOrYarnWorkspaceGlobs`);async function ed(e){if(e.packageManager===void 0)throw Error(`Please run the packageManager detection before calling the workspace detection!`);if(e.packageManager===null||await e.isRedwoodProject())return null;let t=await e.getRootPackageJSON(),n=e.packageManager.name===`pnpm`?await Qu(e):await $u(t);if(!n||n.length===0)return null;e.events.emit(`detectedWorkspaceGlobs`,void 0);let r=new Zu;r.rootDir=e.jsWorkspaceRoot,r.packages=await Xu(e,n),r.isRoot=e.baseDirectory===e.jsWorkspaceRoot;let i=e.fs.relative(e.jsWorkspaceRoot,e.baseDirectory);return!r.isRoot&&!r.hasPackage(i)?null:r}x(ed,`detectWorkspaces`);var td=class extends rl{static{x(this,`Nx`)}id=`nx`;name=`Nx`;configFiles=[`nx.json`];logo={default:`/logos/nx/light.svg`,light:`/logos/nx/light.svg`,dark:`/logos/nx/dark.svg`};runFromRoot=!0;isIntegrated=!1;targets=new Map;async getCommands(e){let t=this.project.workspace?.getPackage(e)?.name||``,n=(this.targets.get(e)||[]).map(e=>e.name);try{let r=this.project.resolveFromPackage(e,`package.json`),i=await this.project.fs.readJSON(r,{fail:!0});n.push(...Object.keys(i?.scripts||{})),t=i.name||``}catch{}return t.length!==0&&n.length!==0?n.map(e=>{let n=`unknown`;return hs.includes(e)&&(n=`dev`),_s.includes(e)&&(n=`build`),{type:n,command:`nx run ${t}:${e}`}}):[]}async getDist(e){return this.isIntegrated?this.getOutputFromTarget(e):null}async getPort(e){if(!this.isIntegrated)return null;let t=this.targets.get(e)?.find(e=>hs.includes(e.name)),n=this.getExecutorFromTarget(t);if(!n)return null;switch(n){case`@nxtensions/astro:dev`:return 3e3;case`@nx/next:server`:case`@nrwl/next:server`:case`@nrwl/web:dev-server`:case`@nx/webpack:dev-server`:case`@angular-devkit/build-angular:dev-server`:return 4200;case`@nx-plus/vue:dev-server`:return 8e3;case`nx:run-commands`:case void 0:return null;default:return this.project.report({name:`UndetectedExecutor`,message:`Undetected executor for Nx integrated: ${n}`},{metadata:{executor:n}}),null}}async getOutputFromTarget(e){let{getProperty:t}=await import(`./dot-prop-IITUZ2XW-BilKo4kO.mjs`);try{let n=this.targets.get(e)?.find(e=>e.name===`build`);if(n){let r=`outputs`in n?n.outputs?.[0]:n.options?.outputPath;if(r){let i=this.project.frameworks?.get(e)?.[0],a=``;return i?.id===`next`&&(a=i.build.directory),this.project.fs.join(r.replace(`{workspaceRoot}/`,``).replace(/\{(.+)\}/g,(r,i)=>t({...n,projectRoot:e},i)),a)}}}catch{}return this.project.fs.join(`dist`,e)}getExecutorFromTarget(e){return e&&(`executor`in e?e.executor:e.builder)}async detectFramework(e){let t=e.find(e=>_s.includes(e.name)),n=this.getExecutorFromTarget(t);if(!(!t||!n))switch(n){case`@nrwl/next:build`:case`@nx/next:build`:return`next`;case`@nxtensions/astro:build`:return`astro`;case`@nx-plus/vue:browser`:return`vue`;case`@angular-devkit/build-angular:browser`:return`angular`;case`@nx/webpack:webpack`:case`@nrwl/web:build`:if(t.options?.webpackConfig?.includes?.(`react`))return`react-static`;this.project.report({name:`UndetectedNrwlWeb`,message:`Undetected @nrwl/web:build framework: ${JSON.stringify({target:t},null,2)}`});return;case`@nx/cypress:cypress`:case`@nrwl/cypress:cypress`:case`@nrwl/node:build`:return;case`nx:run-commands`:case void 0:return;default:this.project.report({name:`UndetectedExecutor`,message:`Undetected executor for Nx integrated: ${n}`},{metadata:{executor:n}})}}async detectWorkspaceFile(){let e=this.project.fs;try{let{projects:t}=await e.readJSON(e.join(this.project.jsWorkspaceRoot,`workspace.json`),{fail:!0}),n=[];for(let[r,{root:i,projectType:a,architect:o}]of Object.entries(t||{})){if(!i||r.endsWith(`-e2e`)||a!==`application`)continue;let t=Object.entries(o||{}).map(([e,t])=>({...t,name:e})),s=await this.detectFramework(t);this.targets.set(e.join(i),t),n.push({name:r,path:e.join(i),forcedFramework:s})}return n}catch{}return[]}async detectProjectJson(){let e=this.project.fs;try{let{workspaceLayout:t}=await e.readJSON(e.join(this.project.jsWorkspaceRoot,`nx.json`),{fail:!0}),n=t?.appsDir?[t.appsDir]:[`apps`,`packages`],r=x(async({entry:t,directory:n,packagePath:r})=>{if(t===`project.json`&&!r.endsWith(`-e2e`))try{let{projectType:i,name:a,targets:o}=await e.readJSON(e.join(n,t));if(i===`application`){let t=Object.entries(o||{}).map(([e,t])=>({...t,name:e})),n=await this.detectFramework(t);return this.targets.set(e.join(r),t),{name:a,path:e.join(r),forcedFramework:n}}}catch{}return null},`identifyPkg`);return(await Promise.all(n.map(async e=>Yu(this.project,e,r,`*`).catch(()=>[])))).flat()}catch{}return[]}async detect(){if(await super.detect()){let e=[...await this.detectWorkspaceFile(),...await this.detectProjectJson()];return e.length&&(this.isIntegrated=!0,this.project.workspace?this.project.workspace.packages.push(...e):(this.project.workspace=new Zu,this.project.workspace.isRoot=this.project.jsWorkspaceRoot===this.project.baseDirectory,this.project.workspace.rootDir=this.project.jsWorkspaceRoot,this.project.workspace.packages=e),this.project.events.emit(`detectWorkspaces`,this.project.workspace)),this}}},nd=class extends rl{static{x(this,`PNPM`)}id=`pnpm`;name=`PNPM`;runFromRoot=!0;async getCommands(e){let{name:t,scripts:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&Object.keys(n).length>0?Object.entries(n).map(([e,n])=>{let r=Ts(e,n);return{type:ws(e,n)?`dev`:r?`build`:`unknown`,command:`pnpm --filter ${t}${r?`...`:``} run ${e}`}}):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`pnpm`)return this}},rd=class extends rl{static{x(this,`Yarn`)}id=`yarn`;name=`Yarn`;runFromRoot=!0;async getCommands(e){let{name:t,scripts:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&Object.keys(n).length>0?Object.entries(n).map(([e,n])=>({type:ws(e,n)?`dev`:Ts(e,n)?`build`:`unknown`,command:`yarn workspace ${t} ${e}`})):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`yarn`)return this}},id=class extends rl{static{x(this,`NPM`)}id=`npm`;name=`NPM`;runFromRoot=!0;async getCommands(e){let{name:t,scripts:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&Object.keys(n).length>0?Object.entries(n).map(([e,n])=>({type:ws(e,n)?`dev`:Ts(e,n)?`build`:`unknown`,command:`npm --workspace ${t} run ${e}`})):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`npm`)return this}},ad=[il,al,ol,sl,cl,ll,ul,td,class extends rl{static{x(this,`Pants`)}id=`pants`;name=`Pants`;configFiles=[`pants.toml`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},class extends rl{static{x(this,`Rush`)}id=`rush`;name=`Rush`;configFiles=[`rush.json`];logo={default:`/logos/rush/light.svg`,light:`/logos/rush/light.svg`,dark:`/logos/rush/dark.svg`}},class extends rl{static{x(this,`Turbo`)}id=`turbo`;name=`TurboRepo`;configFiles=[`turbo.json`];runFromRoot=!0;logo={default:`/logos/turbo/light.svg`,light:`/logos/turbo/light.svg`,dark:`/logos/turbo/dark.svg`};async getCommands(e){let{scripts:t,name:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&t&&Object.values(t).length?Object.keys(t).map(e=>{let t=`unknown`;return hs.includes(e)&&(t=`dev`),_s.includes(e)&&(t=`build`),{type:t,command:`turbo run ${e} --filter ${n}`}}):[]}},nd,id,rd],od=class{static{x(this,`EventEmitter`)}callbacks=new Map;on(e,t){if(typeof t!=`function`)throw TypeError(`Callback parameter has to be a function.`);this.callbacks.has(e)||this.callbacks.set(e,[]),this.callbacks.get(e)?.push(t)}async emit(e,t){for(let n of this.callbacks.get(e)||[])await n(t)}},{default:sd}=T(la(),1).default,cd=x(e=>e instanceof Error||typeof e==`object`&&(e.errorClass||e.name)?e:typeof e==`string`?Error(e):typeof e==`object`&&e.message?Error(e.message):Error(`Unexpected error format: ${JSON.stringify(e)}`),`normalizeError`);function ld(e,t={}){let n=cd(e);(t.client||sd).notify(n,n=>{for(let[e,r]of Object.entries(t.metadata||{}))n.addMetadata(e,r);typeof e==`object`&&`documentation_url`in e&&n.addMetadata(`Documentation URL`,e.documentation_url),n.context=t.context,n.severity=t.severity||`error`,n.context=t.context})}x(ld,`report`);var ud=T(Fr(),1),dd={yarn:{name:`yarn`,installCommand:`yarn install`,runCommand:`yarn run`,localPackageCommand:`yarn`,remotePackageCommand:[`yarn`,`dlx`],lockFiles:[`yarn.lock`],forceEnvironment:`NETLIFY_USE_YARN`},pnpm:{name:`pnpm`,installCommand:`pnpm install`,runCommand:`pnpm run`,localPackageCommand:`pnpm`,remotePackageCommand:[`pnpm`,`dlx`],lockFiles:[`pnpm-lock.yaml`],forceEnvironment:`NETLIFY_USE_PNPM`},npm:{name:`npm`,installCommand:`npm install`,runCommand:`npm run`,localPackageCommand:`npx`,remotePackageCommand:[`npx`],lockFiles:[`package-lock.json`]},bun:{name:`bun`,installCommand:`bun install`,runCommand:`bun run`,localPackageCommand:`bunx`,remotePackageCommand:[`bunx`],lockFiles:[`bun.lockb`,`bun.lock`]}};function fd(e){let t=e.getEnv(`npm_config_user_agent`);if(t!==void 0){if(t.includes(`yarn`))return`yarn`;if(t.includes(`pnpm`))return`pnpm`;if(t.includes(`bun`))return`bun`;if(t.includes(`npm`))return`npm`}}x(fd,`sniffUserAgent`);var pd=Object.values(dd).reduce((e,t)=>t.lockFiles.reduce((e,n)=>({...e,[n]:t}),e),{}),md=x(async(e,t)=>{let n=t?.enableUserAgentSniffing?fd(e):void 0;try{let t=await e.fs.findUpMultiple(`package.json`,{cwd:e.baseDirectory,stopAt:e.root});if(!t.length)return n?dd[n]:null;for(let n of t){let{packageManager:t}=await e.fs.readJSON(n);if(t){let[e,n]=t.split(`@`);if(dd[e]){let t=dd[e];return t.version=(0,ud.parse)(n)||void 0,t}}}for(let t of Object.values(dd))if(t.forceEnvironment&&e.getEnv(t.forceEnvironment)===`true`)return t;let r=await e.fs.findUp(Object.keys(pd),{cwd:e.baseDirectory,stopAt:e.root});if(r){let t=pd[e.fs.basename(r)];if(!(t.forceEnvironment&&e.getEnv(t.forceEnvironment)===`false`))return t}}catch(t){e.report(t)}return n?dd[n]:dd.npm},`detectPackageManager`),hd=class{static{x(this,`LangRuntime`)}project;id;name;configFiles=[];constructor(e){this.project=e}async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}toJSON(){return{id:this.id,name:this.name}}},gd=class extends hd{static{x(this,`Brew`)}id=`brew`;name=`Brew`;configFiles=[`Brewfile.netlify`]},_d=class extends hd{static{x(this,`Bun`)}id=`bun`;name=`Bun`;configFiles=[`bun.lock`,`bun.lockb`,`bunfig.toml`]},vd=class extends hd{static{x(this,`Emacs`)}id=`emacs`;name=`Emacs`;configFiles=[`Cask`]},yd=class extends hd{static{x(this,`Dotnet`)}id=`dotnet`;name=`Dotnet`;configFiles=[`Program.cs`,`appsettings.json`]},bd=class extends hd{static{x(this,`Erlang`)}id=`erlang`;name=`Erlang`;configFiles=[`rebar.config`,`rebar.lock`]},xd=class extends hd{static{x(this,`Go`)}id=`go`;name=`Go`;configFiles=[`go.mod`,`.go-version`,`go.work`]},Sd=class extends hd{static{x(this,`Java`)}id=`java`;name=`Java`;configFiles=[`project.clj`,`build.boot`]},Cd=class extends hd{static{x(this,`Node`)}id=`node`;name=`NodeJS`;configFiles=[`.node-version`,`.nvmrc`,`package.json`]},wd=class extends hd{static{x(this,`Php`)}id=`php`;name=`Php`;configFiles=[`composer.json`]},Td=class extends hd{static{x(this,`Python`)}id=`python`;name=`Python`;configFiles=[`requirements.txt`,`Pipfile`]},Ed=[Cd,class extends hd{static{x(this,`Ruby`)}id=`ruby`;name=`Ruby`;configFiles=[`.ruby-version`,`Gemfile.lock`,`Gemfile`]},gd,_d,yd,vd,bd,xd,Sd,wd,class extends hd{static{x(this,`Rust`)}id=`rust`;name=`Rust`;configFiles=[`Cargo.toml`,`Cargo.lock`]},class extends hd{static{x(this,`Swift`)}id=`swift`;name=`Swift`;configFiles=[`.swift-version`,`Package.swift`]},Td];async function Dd(e,t,n){let r=t.buildSystems[0],i={...e};if(n&&r){let t=await r.getCommands?.(n)||[],a=t.find(e=>e.type===`build`),o=t.find(e=>e.type===`dev`),s=await r.getDist?.(n),c=await r.getPort?.(n);i.name=`${r.name} + ${e.name} ${n}`,a&&(i.buildCommand=a.command),o&&(i.devCommand=o.command),s&&(i.dist=s),c!=null&&(i.frameworkPort=c),r.runFromRoot&&a&&o&&(i.baseDirectory=``)}return i}x(Dd,`applyBuildSystemOverrides`);async function Od(e,t,n){let r=e.getDevCommands(),i=e.getBuildCommands(),a={name:e.name,buildCommand:i[0],devCommand:r[0],frameworkPort:e.dev?.port,dist:t.fs.join(n,e.build.directory),env:e.env||{},plugins_from_config_file:[],plugins_recommended:e.plugins||[],framework:{id:e.id,name:e.name},baseDirectory:n,packagePath:n,pollingStrategies:e.dev?.pollingStrategies?.map(({name:e})=>e)||[]};return e.dev?.clearPublishDirectory!==void 0&&(a.clearPublishDirectory=e.dev.clearPublishDirectory),n?.length&&t.workspace?.isRoot&&(a.dist=t.fs.join(n,e.build.directory)),Dd(a,t,n)}x(Od,`getSettings`);async function kd(e,t){if(e.frameworks===void 0)throw Error(`Please run the framework detection before calling the build settings!`);let n=t??e.relativeBaseDirectory??``,r=[];if(e.logger.debug(`[get-build-settings.ts] getBuildSettings for baseDirectory: ${n}`),e.workspace&&e.workspace.packages.length>0&&n.length===0)for(let[t,n]of[...e.frameworks.entries()])for(let i of n)r.push(Od(i,e,t));else for(let t of e.frameworks.get(n)||[])r.push(Od(t,e,n));return(await Promise.all(r)).filter(Boolean)}x(kd,`getBuildSettings`);var Ad=class{static{x(this,`Project`)}fs;root;baseDirectory;relativeBaseDirectory;packageManager;jsWorkspaceRoot;workspace;buildSystems;settings;frameworks;runtimes;#e={};bugsnag;logger;reportFn=ld;events=new od;_nodeVersion=null;setNodeVersion(e){return this._nodeVersion=(0,nl.parse)((0,nl.coerce)(e),{loose:!0}),this}async getCurrentNodeVersion(){if(this._nodeVersion)return this._nodeVersion;let e=(0,nl.parse)((0,nl.coerce)(this.getEnv(`NODE_VERSION`)),{loose:!0});if(e)return e;let t=await this.fs.gracefullyReadFile(`.nvmrc`);if(t)return(0,nl.parse)((0,nl.coerce)(t,{loose:!0}));let n=await this.fs.gracefullyReadFile(`.node_version`);return n?(0,nl.parse)((0,nl.coerce)(n,{loose:!0})):null}async isRedwoodProject(){return await this.fs.fileExists(this.fs.resolve(this.fs.cwd,`redwood.toml`))}constructor(e,t,n){this.fs=e,this.baseDirectory=e.resolve(n||``,t===void 0?e.cwd:t),this.root=n?e.resolve(e.cwd,n):void 0,this.relativeBaseDirectory=t!==void 0&&!e.isAbsolute(t)?t:e.relative(this.root||e.cwd,this.baseDirectory),this.fs.cwd=this.baseDirectory,this.logger=e.logger}setEnvironment(e){return this.#e=e,this}setReportFn(e){return this.reportFn=e,this}setBugsnag(e){return e&&(this.bugsnag=e),this}getEnv(e){return this.#e[e]}report(e,t={}){this.fs.logger.error(e),this.reportFn(e,{metadata:{build:{baseDirectory:this.baseDirectory,root:this.root},...t.metadata||{}},context:t.context,severity:t.severity,client:this.bugsnag})}getNpmScriptCommand(e){return`${this.packageManager?.runCommand||dd.npm.runCommand} ${e}`}async getRootPackageJSON(){let e=(await this.fs.findUpMultiple(`package.json`,{cwd:this.baseDirectory,stopAt:this.root})).pop();return e?(this.jsWorkspaceRoot=this.fs.dirname(e),this.fs.readJSON(e)):{}}async getPackageJSON(e){let t=await this.fs.findUp(`package.json`,{cwd:e||this.baseDirectory,stopAt:this.root});if(t){let e=await this.fs.readJSON(t);return Object.assign(e,{pkgPath:t})}return{pkgPath:null}}resolveFromPackage(e,...t){return this.jsWorkspaceRoot?this.fs.join(this.jsWorkspaceRoot,e,...t):this.baseDirectory.endsWith(e)&&!this.workspace?.isRoot?this.fs.join(this.baseDirectory,...t):this.fs.resolve(e,...t)}async detectPackageManager(e){if(this.logger.debug(`[project.ts]: detectPackageManager`),this.packageManager!==void 0)return this.packageManager;try{return this.packageManager=await md(this,e),await this.events.emit(`detectPackageManager`,this.packageManager),this.packageManager}catch{return null}}async detectWorkspaces(){if(this.logger.debug(`[project.ts]: detectWorkspaces`),this.workspace!==void 0)return this.workspace;await this.detectPackageManager();try{return this.workspace=await ed(this),await this.events.emit(`detectWorkspaces`,this.workspace),this.workspace}catch(e){return this.report(e),null}}async detectBuildSystem(){if(this.logger.debug(`[project.ts]: detectBuildSystem`),this.buildSystems!==void 0)return this.buildSystems;await this.detectWorkspaces();try{return this.buildSystems=(await Promise.all(ad.map(e=>new e(this).detect()))).filter(Boolean),await this.events.emit(`detectBuildsystems`,this.buildSystems),this.buildSystems}catch(e){return this.report(e),[]}}async detectRuntime(){this.logger.debug(`[project.ts]: detectRuntime`);try{return this.runtimes=(await Promise.all(Ed.map(e=>new e(this).detect()))).filter(Boolean),this.events.emit(`detectRuntimes`,this.runtimes),this.runtimes}catch(e){return this.report(e),[]}}async detectFrameworks(){if(this.logger.debug(`[project.ts]: detectFrameworks`),this.frameworks!==void 0)return[...this.frameworks.values()].flat();try{return await this.detectBuildSystem(),this.frameworks=new Map,this.workspace?await Promise.all(this.workspace.packages.map(async({path:e,forcedFramework:t})=>{if(t)try{let n=await tl(t,this);this.frameworks.set(e,[n])}catch{}else if(this.workspace){let t=await this.detectFrameworksInPath(this.fs.join(this.workspace.rootDir,e));this.frameworks.set(e,t)}})):this.frameworks.set(``,await this.detectFrameworksInPath()),await this.events.emit(`detectFrameworks`,this.frameworks),[...this.frameworks.values()].flat()}catch(e){return this.report(e),null}}async detectFrameworksInPath(e){this.logger.debug(`[project.ts]: detectFrameworksInPath - ${e}`);try{return As((await Promise.all(el.map(t=>new t(this,e).detect()))).filter(Boolean))}catch{return[]}}async getBuildSettings(e){if(this.logger.debug(`[project.ts]: getBuildSettings`),this.settings!==void 0)return this.settings;this.settings=[];try{await this.detectFrameworks(),this.settings=await kd(this,e),await this.events.emit(`detectSettings`,this.settings)}catch(e){this.report(e)}return this.settings}},jd=class{static{x(this,`Node`)}value;next;constructor(e){this.value=e}},Md=class{static{x(this,`Queue`)}#e;#t;#n;constructor(){this.clear()}enqueue(e){let t=new jd(e);this.#e?(this.#t.next=t,this.#t=t):(this.#e=t,this.#t=t),this.#n++}dequeue(){let e=this.#e;if(e)return this.#e=this.#e.next,this.#n--,e.value}clear(){this.#e=void 0,this.#t=void 0,this.#n=0}get size(){return this.#n}*[Symbol.iterator](){let e=this.#e;for(;e;)yield e.value,e=e.next}};function Nd(e){if(!((Number.isInteger(e)||e===1/0)&&e>0))throw TypeError("Expected `concurrency` to be a number from 1 and up");let t=new Md,n=0,r=x(()=>{n--,t.size>0&&t.dequeue()()},`next`),i=x(async(e,t,i)=>{n++;let a=(async()=>e(...i))();t(a);try{await a}catch{}r()},`run`),a=x((r,a,o)=>{t.enqueue(i.bind(void 0,r,a,o)),(async()=>{await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()})()},`enqueue`),o=x((e,...t)=>new Promise(n=>{a(e,n,t)}),`generator`);return Object.defineProperties(o,{activeCount:{get:x(()=>n,`get`)},pendingCount:{get:x(()=>t.size,`get`)},clearQueue:{value:x(()=>{t.clear()},`value`)}}),o}x(Nd,`pLimit`);var Pd=class extends Error{static{x(this,`EndError`)}constructor(e){super(),this.value=e}},Fd=x(async(e,t)=>t(await e),`testElement`),Id=x(async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Pd(t[0]);return!1},`finder`);async function Ld(e,t,{concurrency:n=1/0,preserveOrder:r=!0}={}){let i=Nd(n),a=[...e].map(e=>[e,i(Fd,e,t)]),o=Nd(r?1:1/0);try{await Promise.all(a.map(e=>o(Id,e)))}catch(e){if(e instanceof Pd)return e.value;throw e}}x(Ld,`pLocate`);var Rd={directory:`isDirectory`,file:`isFile`};function zd(e){if(!Object.hasOwnProperty.call(Rd,e))throw Error(`Invalid type specified: ${e}`)}x(zd,`checkType`);var Bd=x((e,t)=>t[Rd[e]](),`matchType`),Vd=x(e=>e instanceof URL?Se(e):e,`toPath`);async function Hd(e,{cwd:t=V.cwd(),type:n=`file`,allowSymlinks:r=!0,concurrency:i,preserveOrder:a}={}){zd(n),t=Vd(t);let o=r?he.stat:he.lstat;return Ld(e,async e=>{try{return Bd(n,await o(z.resolve(t,e)))}catch{return!1}},{concurrency:i,preserveOrder:a})}x(Hd,`locatePath`);function Ud(e){return e instanceof URL?Se(e):e}x(Ud,`toPath`);var Wd=Symbol(`findUpStop`);async function Gd(e,t={}){let n=z.resolve(Ud(t.cwd)??``),{root:r}=z.parse(n),i=z.resolve(n,Ud(t.stopAt??r)),a=t.limit??1/0,o=[e].flat(),s=x(async t=>{if(typeof e!=`function`)return Hd(o,t);let n=await e(t.cwd);return typeof n==`string`?Hd([n],t):n},`runMatcher`),c=[];for(;;){let e=await s({...t,cwd:n});if(e===Wd||(e&&c.push(z.resolve(n,e)),n===i||c.length>=a))break;n=z.dirname(n)}return c}x(Gd,`findUpMultiple`);async function Kd(e,t={}){return(await Gd(e,{...t,limit:1}))[0]}x(Kd,`findUp`);var qd=class extends ps{static{x(this,`NodeFS`)}constructor(){super(),this.cwd=process.cwd()}getEnvironment(){return`node`}isAbsolute(e){return ce(e)}dirname(e){return L(e)}resolve(...e){return de(...e)}relative(e,t){return ue(e,t)}basename(e){return se(e)}join(...e){return le(...e)}async fileExists(e){try{return await fe.stat(de(e)),!0}catch{return!1}}async readDir(e,t){try{return t?(await fe.readdir(de(e),{withFileTypes:!0})).reduce((e,t)=>({...e,[t.name]:t.isDirectory()?`directory`:`file`}),{}):fe.readdir(de(e))}catch{return[]}}async readFile(e){return(await fe.readFile(de(e),`utf-8`)).toString()}findUp(e,t={}){return Kd(e,t)}findUpMultiple(e,t={}){return Gd(e,t)}},Jd=10,Yd=x((e=0)=>t=>`\x1B[${t+e}m`,`wrapAnsi16`),Xd=x((e=0)=>t=>`\x1B[${38+e};5;${t}m`,`wrapAnsi256`),Zd=x((e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,`wrapAnsi16m`),Q={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Q.modifier);var Qd=Object.keys(Q.color),$d=Object.keys(Q.bgColor);[...Qd,...$d];function ef(){let e=new Map;for(let[t,n]of Object.entries(Q)){for(let[t,r]of Object.entries(n))Q[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[t]=Q[t],e.set(r[0],r[1]);Object.defineProperty(Q,t,{value:n,enumerable:!1})}return Object.defineProperty(Q,`codes`,{value:e,enumerable:!1}),Q.color.close=`\x1B[39m`,Q.bgColor.close=`\x1B[49m`,Q.color.ansi=Yd(),Q.color.ansi256=Xd(),Q.color.ansi16m=Zd(),Q.bgColor.ansi=Yd(Jd),Q.bgColor.ansi256=Xd(Jd),Q.bgColor.ansi16m=Zd(Jd),Object.defineProperties(Q,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:x(e=>Q.rgbToAnsi256(...Q.hexToRgb(e)),`value`),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:x((e,t,n)=>Q.ansi256ToAnsi(Q.rgbToAnsi256(e,t,n)),`value`),enumerable:!1},hexToAnsi:{value:x(e=>Q.ansi256ToAnsi(Q.hexToAnsi256(e)),`value`),enumerable:!1}}),Q}x(ef,`assembleStyles`);var tf=ef();function nf(e,t=globalThis.Deno?globalThis.Deno.args:V.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}x(nf,`hasFlag`);var{env:$}=V,rf;nf(`no-color`)||nf(`no-colors`)||nf(`color=false`)||nf(`color=never`)?rf=0:(nf(`color`)||nf(`colors`)||nf(`color=true`)||nf(`color=always`))&&(rf=1);function af(){if(`FORCE_COLOR`in $)return $.FORCE_COLOR===`true`?1:$.FORCE_COLOR===`false`?0:$.FORCE_COLOR.length===0?1:Math.min(Number.parseInt($.FORCE_COLOR,10),3)}x(af,`envForceColor`);function of(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}x(of,`translateLevel`);function sf(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=af();r!==void 0&&(rf=r);let i=n?rf:r;if(i===0)return 0;if(n){if(nf(`color=16m`)||nf(`color=full`)||nf(`color=truecolor`))return 3;if(nf(`color=256`))return 2}if(`TF_BUILD`in $&&`AGENT_NAME`in $)return 1;if(e&&!t&&i===void 0)return 0;let a=i||0;if($.TERM===`dumb`)return a;if(V.platform===`win32`){let e=Ce.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in $)return`GITHUB_ACTIONS`in $||`GITEA_ACTIONS`in $?3:[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in $)||$.CI_NAME===`codeship`?1:a;if(`TEAMCITY_VERSION`in $)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($.TEAMCITY_VERSION);if($.COLORTERM===`truecolor`||$.TERM===`xterm-kitty`)return 3;if(`TERM_PROGRAM`in $){let e=Number.parseInt(($.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch($.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test($.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($.TERM)||`COLORTERM`in $?1:a}x(sf,`_supportsColor`);function cf(e,t={}){return of(sf(e,{streamIsTTY:e&&e.isTTY,...t}))}x(cf,`createSupportsColor`);var lf={stdout:cf({isTTY:Te.isatty(1)}),stderr:cf({isTTY:Te.isatty(2)})};function uf(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}x(uf,`stringReplaceAll`);function df(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
481
+ ${n.stack}`),this.logger.error(r),{}}}async findUp(e,t={}){let n=this.resolve(t.cwd||this.cwd),r=x(async()=>{let i=await this.readDir(n,!0),a=Object.entries(i).find(([n,r])=>{if(typeof e==`string`&&n===e||Array.isArray(e)&&e.includes(n))return t.type&&t.type,n});if(a?.[0])return this.join(n,a[0]);if(!(n===`/`||t.stopAt&&this.resolve(t.stopAt)===n))return n=this.join(n,`..`),r()},`readUp`);return r()}async findUpMultiple(e,t={}){let n=this.resolve(t.cwd||this.cwd),r=[],i=x(async()=>{let a=await this.readDir(n,!0);for(let[i,o]of Object.entries(a))(typeof e==`string`&&i===e||Array.isArray(e)&&e.includes(i))&&(t.type&&t.type===o||!t.type)&&r.push(this.resolve(n,i));return n===`/`||t.stopAt&&this.resolve(t.stopAt)===n?r:(n=this.join(n,`..`),i())},`readUp`);return i()}},ms=T(Fr(),1),hs=[`dev`,`serve`,`develop`,`start`,`run`,`web`],gs=[`netlify dev`],_s=[`build`],vs=[`netlify build`],ys=x(e=>gs.some(t=>e.includes(t)),`isExcludedDevScript`),bs=x(e=>vs.some(t=>e.includes(t)),`isExcludedBuildScript`),xs=x((e,t)=>e===t||e.endsWith(`:${t}`),`isScript`),Ss=x(e=>e===-1?2**53-1:e,`getSortIndex`),Cs=x(e=>(t,n)=>{let r=e.findIndex(e=>xs(t,e)),i=e.findIndex(e=>xs(n,e));return Ss(r)-Ss(i)},`sortScriptsByRelevance`),ws=x((e,t)=>hs.some(n=>xs(e,n)&&!ys(t)),`isNpmDevScript`),Ts=x((e,t)=>_s.some(n=>xs(e,n)&&!bs(t)),`isNpmBuildScript`);function Es(e,t={}){let n=Object.entries(t).filter(([,t])=>t.includes(e)).map(([e])=>e).sort(Cs(hs));return n.length>0?n:Object.keys(t).filter(e=>ws(e,t[e])).sort(Cs(hs))}x(Es,`getDevCommands`);function Ds(e,t={}){let n=Object.entries(t).filter(([,t])=>t.includes(e)).map(([e])=>e).sort(Cs(_s));return n.length>0?n:Object.keys(t).filter(e=>Ts(e,t[e])).sort(Cs(_s))}x(Ds,`getBuildCommands`);var X;(function(e){e.BackendFramework=`backend_framework`,e.FrontendFramework=`frontend_framework`,e.SSG=`static_site_generator`,e.BuildTool=`build_tool`})(X||={});var Os;(function(e){e[e.Forced=5]=`Forced`,e[e.NPM=4]=`NPM`,e[e.ConfigOnly=3]=`ConfigOnly`,e[e.Config=2]=`Config`,e[e.NPMHoisted=1]=`NPMHoisted`})(Os||={});var ks;(function(e){e.NodeModules=`node_modules`,e.PackageJSONPinned=`package_json_pinned`,e.PackageJSON=`package_json`})(ks||={});function As(e){let t=[];for(let n of e.sort(js))(t.length===0||t[0].detected.accuracy===n.detected.accuracy)&&t.push(n);return t}x(As,`filterByRelevance`);function js(e,t){let n=t.detected.accuracy-e.detected.accuracy;if(n===0){let n=[X.BackendFramework,X.FrontendFramework,X.BuildTool,X.SSG];return n.indexOf(t.category)-n.indexOf(e.category)}return n}x(js,`sortFrameworksBasedOnAccuracy`);function Ms(e){let t=e.filter(x(function(e){return!!e},`isDetection`)).sort((e,t)=>e.accuracy>t.accuracy?-1:+(e.accuracy<t.accuracy));if(t.length!==0)return t.slice(1).reduce((e,t)=>(e.config=e.config??t.config,e.configName=e.configName??t.configName,e.package=e.package??t.package,e.packageJSON=e.packageJSON??t.packageJSON,e),t[0])}x(Ms,`mergeDetections`);var Z=class{static{x(this,`BaseFramework`)}project;path;id;name;category;detected;version;configFiles=[];npmDependencies=[];excludedNpmDependencies=[];plugins=[];staticAssetsDirectory;env={};dev;build={command:`npm run build`,directory:`dist`};logo;constructor(e,t){this.project=e,this.path=t,e.packageManager?.runCommand&&(this.build.command=`${e.packageManager.runCommand} build`)}setDetected(e,t){return this.detected={accuracy:e},typeof t==`string`?this.detected.config=t:this.detected.package=t,this}async getVersionFromNodeModules(e){if(this.project.fs.getEnvironment()!==`browser`)try{let t=await this.project.fs.findUp(this.project.fs.join(`node_modules`,e,`package.json`),{cwd:this.path||this.project.baseDirectory,stopAt:this.project.root});if(t){let{version:e}=await this.project.fs.readJSON(t);if(typeof e==`string`)return(0,ms.parse)(e)||void 0}}catch{}}async npmDependenciesUsed(e){let t={...e.dependencies??{},...e.devDependencies??{}},n=Object.keys(t).find(e=>this.npmDependencies.includes(e));if(!Object.keys(t).some(e=>this.excludedNpmDependencies.includes(e))&&n!=null){let e=await this.getVersionFromNodeModules(n);if(e)return{name:n,version:e,versionAccuracy:ks.NodeModules};let r=t[n],i=(0,ms.parse)(r);if(i)return{name:n,version:i,versionAccuracy:ks.PackageJSONPinned};let a=(0,ms.parse)((0,ms.coerce)(r))||void 0;return a?{name:n,version:a,versionAccuracy:ks.PackageJSON}:{name:n,version:void 0,versionAccuracy:void 0}}}async detectNpmDependency(){if(this.npmDependencies.length){let e=this.path||this.project.baseDirectory,t=await this.project.getPackageJSON(e),n=await this.npmDependenciesUsed(t);if(n)return this.version=n.version,{accuracy:this.project.fs.join(e,`package.json`)===t.pkgPath?Os.NPM:Os.NPMHoisted,package:n,packageJSON:t}}}async detectConfigFile(e){if(e.length){let t=await this.project.fs.findUp(e,{cwd:this.path||this.project.baseDirectory,stopAt:this.project.root});if(t)return{accuracy:this.npmDependencies.length===0?Os.ConfigOnly:Os.Config,config:t,configName:this.project.fs.basename(t)}}}async detect(){let e=await this.detectNpmDependency(),t=await this.detectConfigFile(this.configFiles??[]);if(this.detected=Ms([this.detected?.accuracy===Os.Forced?this.detected:void 0,e,t]),this.detected)return this}getDevCommands(){if(this.dev?.command===void 0)return[];let e=Es(this.dev.command,this.detected?.packageJSON?.scripts);return e.length>0?e.map(e=>this.project.getNpmScriptCommand(e)):[this.dev.command]}getBuildCommands(){let e=Ds(this.build.command,this.detected?.packageJSON?.scripts);return e.length>0?e.map(e=>this.project.getNpmScriptCommand(e)):[this.build.command]}toJSON(){return{id:this.id,name:this.name,package:{name:this.detected?.package?.name||this.npmDependencies?.[0],version:this.detected?.package?.version?.raw||`unknown`,versionAccuracy:this.detected?.package?.versionAccuracy},category:this.category,dev:{commands:this.getDevCommands(),port:this.dev?.port,pollingStrategies:this.dev?.pollingStrategies},build:{commands:[this.build.command],directory:this.build.directory},staticAssetsDirectory:this.staticAssetsDirectory,env:this.env,logo:this.logo?Object.entries(this.logo).reduce((e,[t,n])=>({...e,[t]:`https://framework-info.netlify.app${n}`}),{}):void 0,plugins:this.plugins}}},Ns=class extends Z{static{x(this,`Analog`)}id=`analog`;name=`Analog`;configFiles=[];npmDependencies=[`@analogjs/platform`];category=X.SSG;dev={port:5173,command:`ng serve`,pollingStrategies:[{name:`TCP`}]};build={command:`ng build --prod`,directory:`dist/analog/public`};logo={default:`/logos/analog/default.svg`,light:`/logos/analog/default.svg`,dark:`/logos/analog/default.svg`}},Ps=T(Fr(),1),Fs=class extends Z{static{x(this,`Angular`)}id=`angular`;name=`Angular`;configFiles=[`angular.json`];npmDependencies=[`@angular/cli`];excludedNpmDependencies=[`@analogjs/platform`];category=X.FrontendFramework;dev={port:4200,command:`ng serve`,pollingStrategies:[{name:`TCP`}]};build={command:`ng build --prod`,directory:`dist/`};logo={default:`/logos/angular/default.svg`,light:`/logos/angular/default.svg`,dark:`/logos/angular/default.svg`};async detect(){if(await super.detect(),this.detected){if(this.version&&(0,Ps.gte)(this.version,`17.0.0-rc`)&&!process.env.NETLIFY_ANGULAR_PLUGIN_SKIP){this.plugins.push(`@netlify/angular-runtime`);let e=await this.project.fs.gracefullyReadFile(`angular.json`);if(e){let{projects:t,defaultProject:n}=JSON.parse(e),r=t[n??Object.keys(t)[0]],i=r?.architect?.build?.options?.outputPath;if(i){let e=r?.architect?.build?.builder?.endsWith(`:application`);this.build.directory=e?this.project.fs.join(i,`browser`):i}}}return this}}},Is=class extends Z{static{x(this,`Assemble`)}id=`assemble`;name=`Assemble`;npmDependencies=[`assemble`];category=X.SSG;build={command:`grunt build`,directory:`dist`};logo={default:`/logos/assemble/default.png`,light:`/logos/assemble/default.png`,dark:`/logos/assemble/default.png`}},Ls=T(Fr(),1),Rs=class extends Z{static{x(this,`Astro`)}id=`astro`;name=`Astro`;configFiles=[`astro.config.mjs`];npmDependencies=[`astro`];category=X.SSG;staticAssetsDirectory=`public`;dev={port:4321,command:`astro dev`,pollingStrategies:[{name:`TCP`}]};build={command:`astro build`,directory:`dist`};logo={default:`/logos/astro/light.svg`,light:`/logos/astro/light.svg`,dark:`/logos/astro/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.version&&(0,Ls.lt)(this.version,`3.0.0`)&&(this.dev.port=3e3),this}},zs=class extends Z{static{x(this,`Blitz`)}id=`blitz`;name=`Blitz.js`;npmDependencies=[`blitz`];category=X.SSG;dev={command:`blitz dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`blitz build`,directory:`out`};logo={default:`/logos/blitz/light.svg`,light:`/logos/blitz/light.svg`,dark:`/logos/blitz/dark.svg`}},Bs=class extends Z{static{x(this,`Brunch`)}id=`brunch`;name=`Brunch`;npmDependencies=[`brunch`];configFiles=[`brunch-config.js`];category=X.BuildTool;dev={command:`brunch watch --server`,port:3333,pollingStrategies:[{name:`TCP`}]};build={command:`brunch build`,directory:`public`};logo={default:`/logos/brunch/default.svg`,light:`/logos/brunch/default.svg`,dark:`/logos/brunch/default.svg`}},Vs=class extends Z{static{x(this,`Cecil`)}id=`cecil`;name=`Cecil`;configFiles=[`config.yml`];category=X.SSG;dev={command:`cecil serve`,port:8e3,pollingStrategies:[{name:`TCP`}]};build={command:`cecil build`,directory:`_site`};logo={default:`/logos/cecil/default.svg`,light:`/logos/cecil/default.svg`,dark:`/logos/cecil/default.svg`}},Hs=class extends Z{static{x(this,`DocPad`)}id=`docpad`;name=`DocPad`;npmDependencies=[`docpad`];category=X.SSG;dev={command:`docpad run`,port:9778,pollingStrategies:[{name:`TCP`}]};build={command:`docpad generate`,directory:`out`}},Us=class extends Z{static{x(this,`Docusaurus`)}id=`docusaurus`;name=`Docusaurus`;configFiles=[`docusaurus.config.js`,`siteConfig.js`];npmDependencies=[`@docusaurus/core`,`docusaurus`];category=X.SSG;staticAssetsDirectory=`static`;dev={command:`docusaurus start`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`docusaurus build`,directory:`build`};logo={default:`/logos/docusaurus/default.svg`,light:`/logos/docusaurus/default.svg`,dark:`/logos/docusaurus/default.svg`};env={BROWSER:`none`};async detect(){if(await super.detect(),this.detected)return this.isV1(this.detected)&&(this.build.command=`docusaurus-build`,this.build.directory=`build/<project-name>`,this.dev.command=`docusaurus-start`),this}isV1(e){return e.config?.endsWith(`siteConfig.js`)||e.package?.name===`docusaurus`}},Ws=class extends Z{static{x(this,`Eleventy`)}id=`eleventy`;name=`Eleventy`;configFiles=[`.eleventy.js`,`eleventy.config.js`,`eleventy.config.cjs`];npmDependencies=[`@11ty/eleventy`];category=X.SSG;dev={command:`eleventy --serve`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`eleventy`,directory:`_site`};logo={default:`/logos/eleventy/default.svg`,light:`/logos/eleventy/light.svg`,dark:`/logos/eleventy/dark.svg`}},Gs=class extends Z{static{x(this,`Ember`)}id=`ember`;name=`Ember.js`;configFiles=[`ember-cli-build.js`];npmDependencies=[`ember-cli`];category=X.FrontendFramework;dev={command:`ember serve`,port:4200,pollingStrategies:[{name:`TCP`}]};build={command:`ember build`,directory:`dist`};logo={default:`/logos/ember/default.svg`,light:`/logos/ember/light.svg`,dark:`/logos/ember/dark.svg`}},Ks=class extends Z{static{x(this,`Expo`)}id=`expo`;name=`Expo`;configFiles=[`app.json`];npmDependencies=[`expo`];category=X.FrontendFramework;dev={command:`expo start --web`,port:19006,pollingStrategies:[{name:`TCP`}]};build={command:`expo export -p web`,directory:`dist`};logo={default:`/logos/expo/default.svg`,light:`/logos/expo/light.svg`,dark:`/logos/expo/dark.svg`}},qs=T(Fr(),1),Js=class extends Z{static{x(this,`Gatsby`)}id=`gatsby`;name=`Gatsby`;configFiles=[`gatsby-config.js`,`gatsby-config.ts`];npmDependencies=[`gatsby`];category=X.SSG;staticAssetsDirectory=`static`;dev={command:`gatsby develop`,port:8e3,pollingStrategies:[{name:`TCP`}]};build={command:`gatsby build`,directory:`public`};logo={default:`/logos/gatsby/default.svg`,light:`/logos/gatsby/light.svg`,dark:`/logos/gatsby/dark.svg`};env={GATSBY_LOGGER:`yurnalist`,GATSBY_PRECOMPILE_DEVELOP_FUNCTIONS:`true`,AWS_LAMBDA_JS_RUNTIME:`nodejs14.x`,NODE_VERSION:`14`};async detect(){if(await super.detect(),this.detected){this.version&&(0,qs.gte)(this.version,`5.0.0`)&&(this.env.NODE_VERSION=`18`,this.env.AWS_LAMBDA_JS_RUNTIME=`nodejs18.x`);let e=await this.project.getCurrentNodeVersion();return e&&(0,qs.gte)(e,`12.13.0`)&&!process.env.NETLIFY_SKIP_GATSBY_BUILD_PLUGIN&&this.plugins.push(`@netlify/plugin-gatsby`),this}}},Ys=class extends Z{static{x(this,`Gridsome`)}id=`gridsome`;name=`Gridsome`;configFiles=[`gridsome.config.js`];npmDependencies=[`gridsome`];category=X.SSG;dev={command:`gridsome develop`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`gridsome build`,directory:`dist`};logo={default:`/logos/gridsome/default.svg`,light:`/logos/gridsome/light.svg`,dark:`/logos/gridsome/dark.svg`}},Xs=class extends Z{static{x(this,`Grunt`)}id=`grunt`;name=`Grunt`;npmDependencies=[`grunt`];category=X.BuildTool;build={command:`grunt build`,directory:`dist`};logo={default:`/logos/grunt/default.svg`,light:`/logos/grunt/default.svg`,dark:`/logos/grunt/default.svg`}},Zs=class extends Z{static{x(this,`Gulp`)}id=`gulp`;name=`gulp.js`;npmDependencies=[`gulp`];category=X.BuildTool;build={command:`gulp build`,directory:`dist`};logo={default:`/logos/gulp/default.svg`,light:`/logos/gulp/default.svg`,dark:`/logos/gulp/default.svg`}},Qs=class extends Z{static{x(this,`Harp`)}id=`harp`;name=`Harp`;npmDependencies=[`harp`];category=X.SSG;dev={command:`harp server`,port:9e3,pollingStrategies:[{name:`TCP`}]};build={command:`harp compile`,directory:`www`};logo={default:`/logos/harp/default.svg`,light:`/logos/harp/light.svg`,dark:`/logos/harp/default.svg`}},$s=class extends Z{static{x(this,`Hexo`)}id=`hexo`;name=`Hexo`;configFiles=[`_config.yml`];npmDependencies=[`hexo`];category=X.SSG;dev={command:`hexo server`,port:4e3,pollingStrategies:[{name:`TCP`}]};build={command:`hexo generate`,directory:`public`};logo={default:`/logos/hexo/default.svg`,light:`/logos/hexo/light.svg`,dark:`/logos/hexo/dark.svg`}},ec=class extends Z{static{x(this,`Hono`)}id=`hono`;name=`Hono`;npmDependencies=[`hono`];category=X.BackendFramework;logo={default:`/logos/hono/default.svg`,light:`/logos/hono/default.svg`,dark:`/logos/hono/default.svg`}},tc=class extends Z{static{x(this,`Hugo`)}id=`hugo`;name=`Hugo`;configFiles=[`config.json`,`config.toml`,`config.yaml`,`hugo.toml`];category=X.SSG;dev={command:`hugo server -w`,port:1313,pollingStrategies:[{name:`TCP`}]};build={command:`hugo`,directory:`public`};logo={default:`/logos/hugo/default.svg`,light:`/logos/hugo/default.svg`,dark:`/logos/hugo/default.svg`}},nc=[`remix.config.js`],rc={command:`remix dev --manual -c "netlify dev"`},ic={command:`remix build`,directory:`public`},ac=[`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`,`vite.config.ts`,`vite.config.mts`,`vite.config.cts`],oc={command:`shopify hydrogen dev`,port:5173},sc={command:`remix vite:build`,directory:`dist/client`},cc=class extends Z{static{x(this,`Hydrogen`)}id=`hydrogen`;name=`Hydrogen`;npmDependencies=[`@shopify/hydrogen`];configFiles=[...ac,...nc];category=X.SSG;logo={default:`/logos/hydrogen/default.svg`,light:`/logos/hydrogen/default.svg`,dark:`/logos/hydrogen/default.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.configName&&ac.includes(this.detected.configName)?(this.dev=oc,this.build=sc,this):(this.dev=rc,this.build=ic,this)}},lc=class extends Z{static{x(this,`Jekyll`)}id=`jekyll`;name=`Jekyll`;configFiles=[`_config.yml`,`_config.yaml`,`_config.toml`];category=X.SSG;dev={command:`bundle exec jekyll serve -w`,port:4e3,pollingStrategies:[{name:`TCP`}]};build={command:`bundle exec jekyll build`,directory:`_site`};logo={default:`/logos/jekyll/dark.svg`,light:`/logos/jekyll/light.svg`,dark:`/logos/jekyll/dark.svg`}},uc=class extends Z{static{x(this,`Mastra`)}id=`mastra`;name=`Mastra`;npmDependencies=[`@mastra/deployer-netlify`];category=X.BackendFramework;dev={command:`mastra dev`,port:4111};build={command:`mastra build`,directory:`dist`};logo={default:`/logos/mastra/light.svg`,light:`/logos/mastra/light.svg`,dark:`/logos/mastra/dark.svg`}},dc=class extends Z{static{x(this,`Metalsmith`)}id=`metalsmith`;name=`Metalsmith`;npmDependencies=[`metalsmith`];category=X.SSG;build={command:`metalsmith`,directory:`build`};logo={default:`/logos/metalsmith/default.svg`,light:`/logos/metalsmith/default.svg`,dark:`/logos/metalsmith/default.svg`}},fc=class extends Z{static{x(this,`Middleman`)}id=`middleman`;name=`Middleman`;configFiles=[`config.rb`];category=X.SSG;dev={command:`bundle exec middleman server`,port:4567,pollingStrategies:[{name:`TCP`}]};build={command:`bundle exec middleman build`,directory:`build`};logo={default:`/logos/middleman/default.svg`,light:`/logos/middleman/default.svg`,dark:`/logos/middleman/default.svg`}},pc=T(Fr(),1),mc=class extends Z{static{x(this,`Next`)}id=`next`;name=`Next.js`;category=X.SSG;npmDependencies=[`next`];excludedNpmDependencies=[`@nrwl/next`];configFiles=[`next.config.js`,`next.config.mjs`,`next.config.ts`];dev={command:`next`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`next build`,directory:`.next`};logo={default:`/logos/nextjs/light.svg`,light:`/logos/nextjs/light.svg`,dark:`/logos/nextjs/dark.svg`};async detect(){if(await super.detect(),this.detected){let e=await this.project.getCurrentNodeVersion();return e&&(0,pc.gte)(e,`10.13.0`)&&!process.env.NETLIFY_NEXT_PLUGIN_SKIP&&this.plugins.push(`@netlify/plugin-nextjs`),this}}},hc=class extends Z{static{x(this,`Nuxt`)}id=`nuxt`;name=`Nuxt`;npmDependencies=[`nuxt`,`nuxt-edge`,`nuxt3`];category=X.SSG;dev={command:`nuxt dev`,port:3e3,pollingStrategies:[{name:`TCP`}],clearPublishDirectory:!0};build={command:`nuxt build`,directory:`dist`};logo={default:`/logos/nuxt/default.svg`,light:`/logos/nuxt/light.svg`,dark:`/logos/nuxt/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.package?.version?.major!==void 0&&this.detected.package.version.major<3&&(this.build.command=`nuxt generate`,this.dev.command=`nuxt`),this}},gc=class extends Z{static{x(this,`Observable`)}id=`observable`;name=`Observable Framework`;npmDependencies=[`@observablehq/framework`];category=X.SSG;dev={command:`observable preview`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`observable build`,directory:`dist`};logo={default:`/logos/observable/default.svg`,light:`/logos/observable/default.svg`,dark:`/logos/observable/default.svg`}},_c=class extends Z{static{x(this,`Parcel`)}id=`parcel`;name=`Parcel`;npmDependencies=[`parcel-bundler`,`parcel`];category=X.BuildTool;dev={command:`parcel`,port:1234,pollingStrategies:[{name:`TCP`}]};build={command:`parcel build`,directory:`dist`};logo={default:`/logos/parcel/default.svg`,light:`/logos/parcel/default.svg`,dark:`/logos/parcel/default.svg`}},vc=class extends Z{static{x(this,`Phenomic`)}id=`phenomic`;name=`Phenomic`;npmDependencies=[`@phenomic/core`];category=X.SSG;dev={command:`phenomic start`,port:3333,pollingStrategies:[{name:`TCP`}]};build={command:`phenomic build`,directory:`public`};logo={default:`/logos/phenomic/default.svg`,light:`/logos/phenomic/default.svg`,dark:`/logos/phenomic/default.svg`}},yc=class extends Z{static{x(this,`Quasar`)}id=`quasar`;name=`Quasar`;npmDependencies=[`@quasar/app`,`quasar-cli`];category=X.FrontendFramework;dev={command:`quasar dev -p 8081`,port:8081,pollingStrategies:[{name:`TCP`}]};build={command:`quasar build`,directory:`dist/spa`};logo={default:`/logos/quasar/default.svg`,light:`/logos/quasar/default.svg`,dark:`/logos/quasar/default.svg`};async detect(){if(await super.detect(),this.detected)return this.isV017(this.detected)&&(this.name=`Quasar v0.17`,this.build.directory=`.quasar`,this.dev.command=`quasar dev -p 8080`,this.dev.port=8080),this}isV017(e){return e.package?.name===`quasar-cli`}},bc=class extends Z{static{x(this,`Qwik`)}id=`qwik`;name=`Qwik`;npmDependencies=[`@builder.io/qwik`];category=X.SSG;dev={command:`vite`,port:5173,pollingStrategies:[{name:`TCP`}]};logo={default:`/logos/qwik/default.svg`,light:`/logos/qwik/default.svg`,dark:`/logos/qwik/default.svg`}},xc=T(Fr(),1),Sc=class extends Z{static{x(this,`ReactRouter`)}id=`react-router`;name=`React Router`;npmDependencies=[`@react-router/dev`];excludedNpmDependencies=[`@shopify/hydrogen`];configFiles=[`react-router.config.ts`,`react-router.config.js`];category=X.SSG;dev={port:5173,command:`react-router dev`};build={command:`react-router build`,directory:`build/client`};logo={default:`/logos/react-router/light.svg`,light:`/logos/react-router/light.svg`,dark:`/logos/react-router/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.version&&(0,xc.lt)(this.version,`7.0.0`)?void 0:this}},Cc=class extends Z{static{x(this,`ReactStatic`)}id=`react-static`;name=`React Static`;npmDependencies=[`react-static`];configFiles=[`static.config.js`];category=X.SSG;dev={command:`react-static start`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`react-static build`,directory:`dist`};logo={default:`/logos/react-static/default.png`,light:`/logos/react-static/default.png`,dark:`/logos/react-static/default.png`}},wc=class extends Z{static{x(this,`CreateReactApp`)}id=`create-react-app`;name=`Create React App`;npmDependencies=[`react-scripts`];category=X.FrontendFramework;staticAssetsDirectory=`public`;dev={command:`react-scripts start`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`react-scripts build`,directory:`build`};logo={default:`/logos/create-react-app/default.svg`,light:`/logos/create-react-app/default.svg`,dark:`/logos/create-react-app/default.svg`};env={BROWSER:`none`,PORT:`3000`}},Tc=class extends Z{static{x(this,`RedwoodJS`)}id=`redwoodjs`;name=`RedwoodJS`;npmDependencies=[`@redwoodjs/core`];configFiles=[`redwood.toml`];category=X.SSG;staticAssetsDirectory=`public`;dev={command:`yarn rw dev`,port:8910,pollingStrategies:[{name:`TCP`}]};build={command:`rw deploy netlify`,directory:`web/dist`};env={AWS_LAMBDA_JS_RUNTIME:`nodejs20.x`,NODE_VERSION:`20`};logo={default:`/logos/redwoodjs/default.svg`,light:`/logos/redwoodjs/default.svg`,dark:`/logos/redwoodjs/default.svg`}},Ec=[`remix.config.js`],Dc={command:`remix watch`},Oc={command:`remix build`,directory:`public`},kc=[`vite.config.js`,`vite.config.mjs`,`vite.config.cjs`,`vite.config.ts`,`vite.config.mts`,`vite.config.cts`],Ac={command:`remix vite:dev`,port:5173},jc={command:`remix vite:build`,directory:`build/client`},Mc=class extends Z{static{x(this,`Remix`)}id=`remix`;name=`Remix`;npmDependencies=[`@remix-run/react`,`@remix-run/dev`,`@remix-run/server-runtime`,`@netlify/remix-adapter`,`@netlify/remix-edge-adapter`,`@netlify/remix-runtime`,`remix`,`@remix-run/netlify`,`@remix-run/netlify-edge`];excludedNpmDependencies=[`@shopify/hydrogen`];configFiles=[...kc,...Ec];category=X.SSG;logo={default:`/logos/remix/default.svg`,light:`/logos/remix/light.svg`,dark:`/logos/remix/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.configName&&kc.includes(this.detected.configName)?(this.dev=Ac,this.build=jc,this):(this.dev=Dc,this.build=Oc,this)}},Nc=class extends Z{static{x(this,`Roots`)}id=`roots`;name=`Roots`;npmDependencies=[`roots`];category=X.SSG;dev={command:`roots watch`,port:1111,pollingStrategies:[{name:`TCP`}]};build={command:`roots compile`,directory:`public`};logo={default:`/logos/roots/default.svg`,light:`/logos/roots/default.svg`,dark:`/logos/roots/default.svg`}},Pc=class extends Z{static{x(this,`Sapper`)}id=`sapper`;name=`Sapper`;npmDependencies=[`sapper`];category=X.FrontendFramework;staticAssetsDirectory=`static`;dev={command:`sapper dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`sapper export`,directory:`__sapper__/export`};logo={default:`/logos/sapper/default.svg`,light:`/logos/sapper/default.svg`,dark:`/logos/sapper/default.svg`}},Fc=class extends Z{static{x(this,`SolidJs`)}id=`solid-js`;name=`SolidJS`;npmDependencies=[`solid-js`];excludedNpmDependencies=[`solid-start`,`@solidjs/start`,`@tanstack/solid-start`];category=X.SSG;dev={command:`vite dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist`};logo={default:`/logos/solid-js/default.svg`,light:`/logos/solid-js/default.svg`,dark:`/logos/solid-js/dark.svg`}},Ic=`solid-start`,Lc={command:`solid-start dev`,port:3e3},Rc={command:`solid-start build`,directory:`netlify`},zc=class extends Z{static{x(this,`SolidStart`)}id=`solid-start`;name=`Solid Start`;npmDependencies=[`solid-start`,`@solidjs/start`];category=X.SSG;dev={command:`vinxi dev`,port:3e3};build={command:`vinxi build`,directory:`dist`};logo={default:`/logos/solid-start/default.svg`,light:`/logos/solid-start/default.svg`,dark:`/logos/solid-start/dark.svg`};async detect(){if(await super.detect(),this.detected)return this.detected.package?.name===Ic?(this.dev=Lc,this.build=Rc,this):this}},Bc=class extends Z{static{x(this,`Stencil`)}id=`stencil`;name=`Stencil`;npmDependencies=[`@stencil/core`];configFiles=[`stencil.config.ts`];category=X.SSG;dev={command:`stencil build --dev --watch --serve`,port:3333,pollingStrategies:[{name:`TCP`}]};build={command:`stencil build`,directory:`www`};logo={default:`/logos/stencil/light.svg`,light:`/logos/stencil/light.svg`,dark:`/logos/stencil/dark.svg`};env={BROWSER:`none`,PORT:`3000`}},Vc=class extends Z{static{x(this,`SvelteKit`)}id=`svelte-kit`;name=`SvelteKit`;npmDependencies=[`@sveltejs/kit`];category=X.FrontendFramework;staticAssetsDirectory=`static`;dev={command:`vite dev`,port:5173,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`build`};logo={default:`/logos/svelte-kit/default.svg`,light:`/logos/svelte-kit/default.svg`,dark:`/logos/svelte-kit/default.svg`}},Hc=class extends Z{static{x(this,`Svelte`)}id=`svelte`;name=`Svelte`;npmDependencies=[`svelte`];excludedNpmDependencies=[`sapper`,`@sveltejs/kit`];category=X.FrontendFramework;staticAssetsDirectory=`static`;dev={command:`npm run dev`,port:5e3,pollingStrategies:[{name:`TCP`}]};build={command:`npm run build`,directory:`public`};logo={default:`/logos/svelte-kit/default.svg`,light:`/logos/svelte-kit/default.svg`,dark:`/logos/svelte-kit/default.svg`}},Uc=class extends Z{static{x(this,`TanStackRouter`)}id=`tanstack-router`;name=`TanStack Router`;npmDependencies=[`@tanstack/react-router`];excludedNpmDependencies=[`@tanstack/start`,`@tanstack/react-start`,`@tanstack/solid-start`];category=X.SSG;dev={command:`vite dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist`};logo={default:`/logos/tanstack-router/default.png`,light:`/logos/tanstack-router/default.png`,dark:`/logos/tanstack-router/default.png`}},Wc=T(Fr(),1),Gc=class extends Z{static{x(this,`TanStackStart`)}id=`tanstack-start`;name=`TanStack Start`;npmDependencies=[`@tanstack/start`,`@tanstack/react-start`,`@tanstack/solid-start`];category=X.SSG;dev={command:`vite dev`,port:3e3,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist/client`};logo={default:`/logos/tanstack-start/default.png`,light:`/logos/tanstack-start/default.png`,dark:`/logos/tanstack-start/default.png`};async detect(){if(await super.detect(),this.detected)return this.version&&(0,Wc.lt)(this.version,`1.121.0`)&&(this.dev.command=`vinxi dev`,this.build.command=`vinxi build`),this.version&&(0,Wc.lt)(this.version,`1.132.0`)&&(this.build.directory=`dist`),this}},Kc=class extends Z{static{x(this,`Vike`)}id=`vike`;name=`Vike`;npmDependencies=[`vike`];category=X.SSG;dev={command:`vike dev`,port:3e3};build={command:`vike build`,directory:`dist/client`};logo={default:`/logos/vike/light.svg`,light:`/logos/vite/light.svg`,dark:`/logos/vite/dark.svg`}},qc=class extends Z{static{x(this,`Vite`)}id=`vite`;name=`Vite`;npmDependencies=[`vite`];excludedNpmDependencies=[`@remix-run/react`,`@remix-run/dev`,`@remix-run/server-runtime`,`@shopify/hydrogen`,`@builder.io/qwik`,`solid-start`,`@solidjs/start`,`solid-js`,`@tanstack/react-router`,`@tanstack/start`,`@sveltejs/kit`,`@analogjs/platform`,`@react-router/dev`,`vike`];category=X.BuildTool;dev={command:`vite`,port:5173,pollingStrategies:[{name:`TCP`}]};build={command:`vite build`,directory:`dist`};logo={default:`/logos/vite/default.svg`,light:`/logos/vite/default.svg`,dark:`/logos/vite/default.svg`}},Jc=class extends Z{static{x(this,`VitePress`)}id=`vitepress`;name=`VitePress`;npmDependencies=[`vitepress`];category=X.SSG;dev={command:`vitepress dev docs`,port:5173,pollingStrategies:[{name:`TCP`}]};build={command:`vitepress build docs`,directory:`docs/.vitepress/dist`};logo={default:`/logos/vitepress/default.svg`,light:`/logos/vitepress/default.svg`,dark:`/logos/vitepress/default.svg`}},Yc=class extends Z{static{x(this,`Vue`)}id=`vue`;name=`Vue.js`;npmDependencies=[`@vue/cli-service`];category=X.FrontendFramework;dev={command:`vue-cli-service serve`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`vue-cli-service build`,directory:`dist`};logo={default:`/logos/vue/default.svg`,light:`/logos/vue/default.svg`,dark:`/logos/vue/default.svg`}},Xc=class extends Z{static{x(this,`VuePress`)}id=`vuepress`;name=`VuePress`;npmDependencies=[`vuepress`];category=X.SSG;dev={command:`vuepress dev`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`vuepress build`,directory:`.vuepress/dist`};logo={default:`/logos/vuepress/default.svg`,light:`/logos/vuepress/default.svg`,dark:`/logos/vuepress/default.svg`}},Zc=class extends Z{static{x(this,`Waku`)}id=`waku`;name=`Waku`;npmDependencies=[`waku`];configFiles=[`waku.config.ts`,`waku.config.js`];category=X.SSG;dev={command:`waku dev`,port:3e3};build={command:`waku build`,directory:`dist/public`};logo={default:`/logos/waku/light.svg`,light:`/logos/waku/light.svg`,dark:`/logos/waku/dark.svg`}},Qc=class extends Z{static{x(this,`Wintersmith`)}id=`wintersmith`;name=`Wintersmith`;npmDependencies=[`wintersmith`];configFiles=[`config.json`];category=X.SSG;dev={command:`wintersmith preview`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`wintersmith build`,directory:`build`};logo={default:`/logos/wintersmith/default.svg`,light:`/logos/wintersmith/default.svg`,dark:`/logos/wintersmith/default.svg`}},$c=class extends Z{static{x(this,`WMR`)}id=`wmr`;name=`WMR`;npmDependencies=[`wmr`];category=X.BuildTool;dev={command:`wmr`,port:8080,pollingStrategies:[{name:`TCP`}]};build={command:`wmr build`,directory:`dist`};logo={default:`/logos/wmr/default.svg`,light:`/logos/wmr/default.svg`,dark:`/logos/wmr/default.svg`}},el=[Rs,Us,Ws,Js,Ys,$s,tc,cc,lc,fc,mc,zs,hc,vc,bc,Sc,Cc,Tc,Mc,Fc,zc,Bc,Uc,Gc,Xc,Is,Hs,Qs,dc,Nc,Qc,Vs,class extends Z{static{x(this,`Zola`)}id=`zola`;name=`Zola`;configFiles=[`config.toml`];category=X.SSG;dev={command:`zola serve`,port:1111,pollingStrategies:[{name:`TCP`}]};build={command:`zola build`,directory:`public`}},gc,Ns,Kc,Zc,Jc,ec,uc,Fs,wc,Gs,Ks,yc,Pc,Hc,Vc,Yc,Bs,_c,Zs,Xs,qc,$c];async function tl(e,t){let n=el.map(e=>new e(t)),r=n.find(({id:t})=>t===e);if(r){r.detected={accuracy:Os.Forced};let t=await r.detect();if(t)return t;throw Error(`Forced framework "${e}" was not detected.`)}let i=n.map(({id:e})=>e).sort().join(`, `);throw Error(`Invalid framework "${e}". It should be one of: ${i}`)}x(tl,`getFramework`);var nl=T(Fr(),1),rl=class{static{x(this,`BaseBuildTool`)}project;id;name;version;configFiles=[];runFromRoot;logo;constructor(e){this.project=e}async detect(){let e=await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root});if(e){let t=await this.project.getPackageJSON(this.project.fs.dirname(e));return this.version=t.devDependencies?.[this.id],this}}toJSON(){return{id:this.id,name:this.name,version:this.version,logo:this.logo?Object.entries(this.logo).reduce((e,[t,n])=>({...e,[t]:`https://framework-info.netlify.app${n}`}),{}):void 0}}},il=class extends rl{static{x(this,`Bazel`)}id=`bazel`;name=`Bazel`;configFiles=[`.bazelrc`,`WORKSPACE`,`WORKSPACE.bazel`,`BUILD.bazel`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},al=class extends rl{static{x(this,`Buck`)}id=`buck`;name=`Buck`;configFiles=[`.buckconfig`,`BUCK`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},ol=class extends rl{static{x(this,`Gradle`)}id=`gradle`;name=`Gradle`;configFiles=[`build.gradle`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},sl=class extends rl{static{x(this,`Lage`)}id=`lage`;name=`Lage`;configFiles=[`lage.config.js`]},cl=class extends rl{static{x(this,`Lerna`)}id=`lerna`;name=`Lerna`;configFiles=[`lerna.json`];logo={default:`/logos/lerna/light.svg`,light:`/logos/lerna/light.svg`,dark:`/logos/lerna/dark.svg`}},ll=class extends rl{static{x(this,`Moon`)}id=`moon`;name=`MoonRepo`;configFiles=[`.moon`];async detect(){let e=await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,type:`directory`,stopAt:this.project.root});if(e){let t=await this.project.getPackageJSON(e);return this.version=t.devDependencies?.[this.id],this}}},ul=class extends rl{static{x(this,`Nix`)}id=`nix`;name=`Nix`;configFiles=[`default.nix`,`shell.nix`,`release.nix`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},dl=T(Qi(),1),fl=x((e,t,n)=>{let r=e instanceof RegExp?pl(e,n):e,i=t instanceof RegExp?pl(t,n):t,a=r!==null&&i!=null&&ml(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},`balanced`),pl=x((e,t)=>{let n=t.match(e);return n?n[0]:null},`maybeMatch`),ml=x((e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},`range`),hl=`\0SLASH`+Math.random()+`\0`,gl=`\0OPEN`+Math.random()+`\0`,_l=`\0CLOSE`+Math.random()+`\0`,vl=`\0COMMA`+Math.random()+`\0`,yl=`\0PERIOD`+Math.random()+`\0`,bl=new RegExp(hl,`g`),xl=new RegExp(gl,`g`),Sl=new RegExp(_l,`g`),Cl=new RegExp(vl,`g`),wl=new RegExp(yl,`g`),Tl=/\\\\/g,El=/\\{/g,Dl=/\\}/g,Ol=/\\,/g,kl=/\\\./g,Al=1e5;function jl(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}x(jl,`numeric`);function Ml(e){return e.replace(Tl,hl).replace(El,gl).replace(Dl,_l).replace(Ol,vl).replace(kl,yl)}x(Ml,`escapeBraces`);function Nl(e){return e.replace(bl,`\\`).replace(xl,`{`).replace(Sl,`}`).replace(Cl,`,`).replace(wl,`.`)}x(Nl,`unescapeBraces`);function Pl(e){if(!e)return[``];let t=[],n=fl(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=Pl(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}x(Pl,`parseCommaParts`);function Fl(e,t={}){if(!e)return[];let{max:n=Al}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),Bl(Ml(e),n,!0).map(Nl)}x(Fl,`expand`);function Il(e){return`{`+e+`}`}x(Il,`embrace`);function Ll(e){return/^-?0\d/.test(e)}x(Ll,`isPadded`);function Rl(e,t){return e<=t}x(Rl,`lte`);function zl(e,t){return e>=t}x(zl,`gte`);function Bl(e,t,n){let r=[],i=fl(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?Bl(i.post,t,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e<o.length&&e<t;e++){let t=a+`{`+i.body+`}`+o[e];r.push(t)}else{let s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),l=s||c,u=i.body.indexOf(`,`)>=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(e=i.pre+`{`+i.body+_l+i.post,Bl(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=Pl(i.body),d.length===1&&d[0]!==void 0&&(d=Bl(d[0],t,!1).map(Il),d.length===1))return o.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=jl(d[0]),t=jl(d[1]),n=Math.max(d[0].length,d[1].length),r=d.length===3&&d[2]!==void 0?Math.max(Math.abs(jl(d[2])),1):1,i=Rl;t<e&&(r*=-1,i=zl);let a=d.some(Ll);f=[];for(let o=e;i(o,t);o+=r){let e;if(c)e=String.fromCharCode(o),e===`\\`&&(e=``);else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e<d.length;e++)f.push.apply(f,Bl(d[e],t,!1))}for(let e=0;e<f.length;e++)for(let i=0;i<o.length&&r.length<t;i++){let t=a+f[e]+o[i];(!n||l||t)&&r.push(t)}}return r}x(Bl,`expand_`);var Vl=1024*64,Hl=x(e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>Vl)throw TypeError(`pattern is too long`)},`assertValidPattern`),Ul={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},Wl=x(e=>e.replace(/[[\]\\-]/g,`\\$&`),`braceEscape`),Gl=x(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regexpEscape`),Kl=x(e=>e.join(``),`rangesToString`),ql=x((e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;a<e.length;){let t=e.charAt(a);if((t===`!`||t===`^`)&&a===n+1){l=!0,a++;continue}if(t===`]`&&o&&!c){u=a+1;break}if(o=!0,t===`\\`&&!c){c=!0,a++;continue}if(t===`[`&&!c){for(let[t,[o,c,l]]of Object.entries(Ul))if(e.startsWith(t,a)){if(d)return[`$.`,!1,e.length-n,!0];a+=t.length,l?i.push(o):r.push(o),s||=c;continue WHILE}}if(c=!1,d){t>d?r.push(Wl(d)+`-`+Wl(t)):t===d&&r.push(Wl(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(Wl(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(Wl(t)),a++}if(u<a)return[``,!1,0,!1];if(!r.length&&!i.length)return[`$.`,!1,e.length-n,!0];if(i.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!l)return[Gl(r[0].length===2?r[0].slice(-1):r[0]),!1,u-n,!1];let f=`[`+(l?`^`:``)+Kl(r)+`]`,p=`[`+(l?``:`^`)+Kl(i)+`]`;return[r.length&&i.length?`(`+f+`|`+p+`)`:r.length?f:p,s,u-n,!0]},`parseClass`),Jl=x((e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`),`unescape`),Yl,Xl=new Set([`!`,`?`,`+`,`*`,`@`]),Zl=x(e=>Xl.has(e),`isExtglobType`),Ql=x(e=>Zl(e.type),`isExtglobAST`),$l=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),eu=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),tu=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),nu=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),ru=`(?!(?:^|/)\\.\\.?(?:$|/))`,iu=`(?!\\.)`,au=new Set([`[`,`.`]),ou=new Set([`..`,`.`]),su=new Set(`().*{}+?[]^$\\!`),cu=x(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regExpEscape`),lu=`[^/]`,uu=lu+`*?`,du=lu+`+?`,fu=0,pu=class{static{x(this,`AST`)}type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++fu;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&r<n.#r.length;r++)for(let t of e.#r){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(n.#r[r])}t=n,n=t.#i}}return this}push(...e){for(let t of e)if(t!==``){if(typeof t!=`string`&&!(t instanceof Yl&&t.#i===this))throw Error(`invalid part: `+t);this.#r.push(t)}}toJSON(){let e=this.type===null?this.#r.slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;t<this.#a;t++){let n=e.#r[t];if(!(n instanceof Yl&&n.type===`!`))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type===`!`)return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let e=this.#i?this.#i.#r.length:0;return this.#a===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(e){let t=new Yl(this.type,e);for(let e of this.#r)t.copyIn(e);return t}static#f(e,t,n,r,i){let a=r.maxExtglobRecursion??2,o=!1,s=!1,c=-1,l=!1;if(t.type===null){let u=n,d=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,d+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),d+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,d+=n;continue}if(!r.noext&&Zl(n)&&e.charAt(u)===`(`&&i<=a){t.push(d),d=``;let a=new Yl(n,t);u=Yl.#f(e,a,u,r,i+1),t.push(a);continue}d+=n}return t.push(d),u}let u=n+1,d=new Yl(null,t),f=[],p=``;for(;u<e.length;){let n=e.charAt(u++);if(o||n===`\\`){o=!o,p+=n;continue}if(s){u===c+1?(n===`^`||n===`!`)&&(l=!0):n===`]`&&!(u===c+2&&l)&&(s=!1),p+=n;continue}else if(n===`[`){s=!0,c=u,l=!1,p+=n;continue}if(!r.noext&&Zl(n)&&e.charAt(u)===`(`&&(i<=a||t&&t.#h(n))){let a=t&&t.#h(n)?0:1;d.push(p),p=``;let o=new Yl(n,d);d.push(o),u=Yl.#f(e,o,u,r,i+a);continue}if(n===`|`){d.push(p),p=``,f.push(d),d=new Yl(null,t);continue}if(n===`)`)return p===``&&t.#r.length===0&&(t.#u=!0),d.push(p),p=``,t.push(...f,d),u;p+=n}return t.type=null,t.#t=void 0,t.#r=[e.substring(n-1)],u}#p(e){return this.#m(e,eu)}#m(e,t=$l){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null)return!1;let n=e.#r[0];return!n||typeof n!=`object`||n.type===null?!1:this.#h(n.type,t)}#h(e,t=tu){return!!t.get(this.type)?.includes(e)}#g(e,t){let n=e.#r[0],r=new Yl(null,n,this.options);r.#r.push(``),n.push(r),this.#_(e,t)}#_(e,t){let n=e.#r[0];this.#r.splice(t,1,...n.#r);for(let e of n.#r)typeof e==`object`&&(e.#i=this);this.#l=void 0}#v(e){return!!nu.get(this.type)?.has(e)}#y(e){if(!e||typeof e!=`object`||e.type!==null||e.#r.length!==1||this.type===null||this.#r.length!==1)return!1;let t=e.#r[0];return!t||typeof t!=`object`||t.type===null?!1:this.#v(t.type)}#b(e){let t=nu.get(this.type),n=e.#r[0],r=t?.get(n.type);if(!r)return!1;this.#r=n.#r;for(let e of this.#r)typeof e==`object`&&(e.#i=this);this.type=r,this.#l=void 0,this.#u=!1}static fromGlob(e,t={}){let n=new Yl(null,void 0,t);return Yl.#f(e,n,0,t,0),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,n,r,i]=this.toRegExpSource();if(!(r||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;let a=(this.#c.nocase?`i`:``)+(i?`u`:``);return Object.assign(RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#c}toRegExpSource(e){let t=e??!!this.#c.dot;if(this.#e===this&&(this.#x(),this.#d()),!Ql(this)){let n=this.isStart()&&this.isEnd()&&!this.#r.some(e=>typeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?Yl.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&ou.has(this.#r[0]))){let n=au,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?ru:o?iu:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,Jl(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,Jl(this.toString()),!1,!1]}let a=!n||e||t||!iu?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?iu:``)+du;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?iu:``)+uu+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,Jl(i),this.#t=!!this.#t,this.#n]}#x(){if(Ql(this)){let e=0,t=!1;do{t=!0;for(let e=0;e<this.#r.length;e++){let n=this.#r[e];typeof n==`object`&&(n.#x(),this.#m(n)?(t=!1,this.#_(n,e)):this.#p(n)?(t=!1,this.#g(n,e)):this.#y(n)&&(t=!1,this.#b(n)))}}while(!t&&++e<10)}else for(let e of this.#r)typeof e==`object`&&e.#x();this.#l=void 0}#S(e){return this.#r.map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;s<e.length;s++){let c=e.charAt(s);if(r){r=!1,i+=(su.has(c)?`\\`:``)+c;continue}if(c===`*`){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?du:uu,t=!0;continue}else o=!1;if(c===`\\`){s===e.length-1?i+=`\\\\`:r=!0;continue}if(c===`[`){let[n,r,o,c]=ql(e,s);if(o){i+=n,a||=r,s+=o-1,t||=c;continue}}if(c===`?`){i+=lu,t=!0;continue}i+=cu(c)}return[i,Jl(e),!!t,a]}};Yl=pu;var mu=x((e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),`escape`),hu=x((e,t,n={})=>(Hl(t),!n.nocomment&&t.charAt(0)===`#`?!1:new Ku(t,n).match(e)),`minimatch`),gu=/^\*+([^+@!?*[(]*)$/,_u=x(e=>t=>!t.startsWith(`.`)&&t.endsWith(e),`starDotExtTest`),vu=x(e=>t=>t.endsWith(e),`starDotExtTestDot`),yu=x(e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),`starDotExtTestNocase`),bu=x(e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),`starDotExtTestNocaseDot`),xu=/^\*+\.\*+$/,Su=x(e=>!e.startsWith(`.`)&&e.includes(`.`),`starDotStarTest`),Cu=x(e=>e!==`.`&&e!==`..`&&e.includes(`.`),`starDotStarTestDot`),wu=/^\.\*+$/,Tu=x(e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),`dotStarTest`),Eu=/^\*+$/,Du=x(e=>e.length!==0&&!e.startsWith(`.`),`starTest`),Ou=x(e=>e.length!==0&&e!==`.`&&e!==`..`,`starTestDot`),ku=/^\?+([^+@!?*[(]*)?$/,Au=x(([e,t=``])=>{let n=Pu([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},`qmarksTestNocase`),ju=x(([e,t=``])=>{let n=Fu([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},`qmarksTestNocaseDot`),Mu=x(([e,t=``])=>{let n=Fu([e]);return t?e=>n(e)&&e.endsWith(t):n},`qmarksTestDot`),Nu=x(([e,t=``])=>{let n=Pu([e]);return t?e=>n(e)&&e.endsWith(t):n},`qmarksTest`),Pu=x(([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},`qmarksTestNoExt`),Fu=x(([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},`qmarksTestNoExtDot`),Iu=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,Lu={win32:{sep:`\\`},posix:{sep:`/`}};hu.sep=Iu===`win32`?Lu.win32.sep:Lu.posix.sep;var Ru=Symbol(`globstar **`);hu.GLOBSTAR=Ru;var zu=`[^/]*?`,Bu=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,Vu=`(?:(?!(?:\\/|^)\\.).)*?`;hu.filter=x((e,t={})=>n=>hu(n,e,t),`filter`);var Hu=x((e,t={})=>Object.assign({},e,t),`ext`);hu.defaults=x(e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return hu;let t=hu;return Object.assign(x((n,r,i={})=>t(n,r,Hu(e,i)),`m`),{Minimatch:class extends t.Minimatch{static{x(this,`Minimatch`)}constructor(t,n={}){super(t,Hu(e,n))}static defaults(n){return t.defaults(Hu(e,n)).Minimatch}},AST:class extends t.AST{static{x(this,`AST`)}constructor(t,n,r={}){super(t,n,Hu(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,Hu(e,r))}},unescape:x((n,r={})=>t.unescape(n,Hu(e,r)),`unescape`),escape:x((n,r={})=>t.escape(n,Hu(e,r)),`escape`),filter:x((n,r={})=>t.filter(n,Hu(e,r)),`filter`),defaults:x(n=>t.defaults(Hu(e,n)),`defaults`),makeRe:x((n,r={})=>t.makeRe(n,Hu(e,r)),`makeRe`),braceExpand:x((n,r={})=>t.braceExpand(n,Hu(e,r)),`braceExpand`),match:x((n,r,i={})=>t.match(n,r,Hu(e,i)),`match`),sep:t.sep,GLOBSTAR:Ru})},`defaults`);var Uu=x((e,t={})=>(Hl(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Fl(e,{max:t.braceExpandMax})),`braceExpand`);hu.braceExpand=Uu,hu.makeRe=x((e,t={})=>new Ku(e,t).makeRe(),`makeRe`),hu.match=x((e,t,n={})=>{let r=new Ku(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e},`match`);var Wu=/[?*]|[+@!]\(.*?\)|\[|\]/,Gu=x(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),`regExpEscape`),Ku=class{static{x(this,`Minimatch`)}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){Hl(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||Iu,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!Wu.test(e[2]))&&!Wu.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t of e)for(let e=0;e<t.length;e++)t[e]===`**`&&(t[e]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&!(this.isWindows&&/^[a-z]:$/i.test(r))&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,t,n=!1){let r=0,i=0;if(this.isWindows){let n=typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0]),a=!n&&e[0]===``&&e[1]===``&&e[2]===`?`&&/^[a-z]:$/i.test(e[3]),o=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),s=!o&&t[0]===``&&t[1]===``&&t[2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3]),c=a?3:n?0:void 0,l=s?3:o?0:void 0;if(typeof c==`number`&&typeof l==`number`){let[n,a]=[e[c],t[l]];n.toLowerCase()===a.toLowerCase()&&(t[l]=n,i=l,r=c)}}let{optimizationLevel:a=1}=this.options;return a>=2&&(e=this.levelTwoFileOptimize(e)),t.includes(Ru)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(Ru,i),o=t.lastIndexOf(Ru),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n<e.length-u;n++){let r=String(e[n]);if(t=!0,r===`.`||r===`..`||!this.options.dot&&r.startsWith(`.`))return!1}return n||t}let d=[[[],0]],f=d[0],p=0,m=[0];for(let e of c)e===Ru?(m.push(p),f=[[],0],d.push(f)):(f[0].push(e),p++);let h=d.length-1,g=e.length-u;for(let e of d)e[1]=g-(m[h--]+e[0].length);return!!this.#t(e,d,r,0,n,0,!!u)}#t(e,t,n,r,i,a,o){let s=t[r];if(!s){for(let t=n;t<e.length;t++){o=!0;let n=e[t];if(n===`.`||n===`..`||!this.options.dot&&n.startsWith(`.`))return!1}return o}let[c,l]=s;for(;n<=l;){if(this.#n(e.slice(0,n+c.length),c,i,n,0)&&a<this.maxGlobstarRecursion){let s=this.#t(e,t,n+c.length,r+1,i,a+1,o);if(s!==!1)return s}let s=e[n];if(s===`.`||s===`..`||!this.options.dot&&s.startsWith(`.`))return!1;n++}return i||null}#n(e,t,n,r,i){let a,o,s,c;for(a=r,o=i,c=e.length,s=t.length;a<c&&o<s;a++,o++){this.debug(`matchOne loop`);let n=t[o],r=e[a];if(this.debug(t,n,r),n===!1||n===Ru)return!1;let i;if(typeof n==`string`?(i=r===n,this.debug(`string match`,n,r,i)):(i=n.test(r),this.debug(`pattern match`,n,r,i)),!i)return!1}if(a===c&&o===s)return!0;if(a===c)return n;if(o===s)return a===c-1&&e[a]===``;throw Error(`wtf?`)}braceExpand(){return Uu(this.pattern,this.options)}parse(e){Hl(e);let t=this.options;if(e===`**`)return Ru;if(e===``)return``;let n,r=null;(n=e.match(Eu))?r=t.dot?Ou:Du:(n=e.match(gu))?r=(t.nocase?t.dot?bu:yu:t.dot?vu:_u)(n[1]):(n=e.match(ku))?r=(t.nocase?t.dot?ju:Au:t.dot?Mu:Nu)(n):(n=e.match(xu))?r=t.dot?Cu:Su:(n=e.match(wu))&&(r=Tu);let i=pu.fromGlob(e,this.options).toMMPattern();return r&&typeof i==`object`&&Reflect.defineProperty(i,`test`,{value:r}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,n=t.noglobstar?zu:t.dot?Bu:Vu,r=new Set(t.nocase?[`i`]:[]),i=e.map(e=>{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?Gu(e):e===Ru?Ru:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==Ru||a===Ru||(a===void 0?i!==void 0&&i!==Ru?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==Ru&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=Ru))});let i=t.filter(e=>e!==Ru);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return hu.defaults(e).Minimatch}};hu.AST=pu,hu.Minimatch=Ku,hu.escape=mu,hu.unescape=Jl;function qu(e){let t=[],n=e.globParts[0];for(let e=0,r=n.length;e<r;e++){if(n[e].includes(`*`))return{dir:t.join(`/`),depth:n[e]};t.push(n[e])}return{dir:t.join(`/`)}}x(qu,`getDirFromPattern`);var Ju=x(async({entry:e,project:t,directory:n,packagePath:r})=>{if(e===`package.json`){let i={path:r};try{let{name:r}=await t.fs.readJSON(t.fs.join(n,e));i.name=r}catch{}return i}return null},`defaultIdentifyPackage`);async function Yu(e,t,n,r){let i={},a=e.jsWorkspaceRoot?e.fs.resolve(e.jsWorkspaceRoot,t):e.root?e.fs.resolve(e.root,t):e.fs.resolve(t);try{i=await e.fs.readDir(a,!0)}catch{}let o=Object.entries(i).map(async([i,o])=>{let s=await n({entry:i,type:o,packagePath:t,directory:a,project:e});return s?[s]:r&&o===`directory`?Yu(e,e.fs.join(t,i),n,r===`**`?r:void 0):[]});return(await Promise.all(o)).flat()}x(Yu,`findPackages`);async function Xu(e,t=[]){if(!t?.length)return[];let n=(await Promise.all(t.map(t=>{let n=new Ku(t.replace(/^!?(\.\/)/,(e,t)=>e.replace(t,``)));if(n.negate)return;let{dir:r,depth:i}=qu(n);return Yu(e,r,Ju,i)}))).flat().filter(Boolean),r=new Map;for(let i of n)for(let n of t){let t=new Ku(n.replace(/^!?(\.\/)/,(e,t)=>e.replace(t,``)));hu(i.path,t.pattern)&&(r.set(e.fs.join(i.path),i),t.negate&&r.delete(e.fs.join(i.path)))}return[...r.values()]}x(Xu,`getWorkspacePackages`);var Zu=class{static{x(this,`WorkspaceInfo`)}isRoot;rootDir;packages=[];hasPackage(e){return this.packages.findIndex(({path:t})=>t===e)>-1}getPackage(e){return this.packages.find(({path:t})=>t===e)}};async function Qu(e){let t=await e.fs.findUp(`pnpm-workspace.yaml`,{cwd:e.baseDirectory,stopAt:e.root});if(!t)return[];try{let{packages:n=[]}=(0,dl.parse)(await e.fs.readFile(t));return n}catch{return[]}}x(Qu,`detectPnpmWorkspaceGlobs`);async function $u(e){return Array.isArray(e.workspaces)?e.workspaces||[]:typeof e.workspaces==`object`&&e.workspaces.packages||[]}x($u,`detectNpmOrYarnWorkspaceGlobs`);async function ed(e){if(e.packageManager===void 0)throw Error(`Please run the packageManager detection before calling the workspace detection!`);if(e.packageManager===null||await e.isRedwoodProject())return null;let t=await e.getRootPackageJSON(),n=e.packageManager.name===`pnpm`?await Qu(e):await $u(t);if(!n||n.length===0)return null;e.events.emit(`detectedWorkspaceGlobs`,void 0);let r=new Zu;r.rootDir=e.jsWorkspaceRoot,r.packages=await Xu(e,n),r.isRoot=e.baseDirectory===e.jsWorkspaceRoot;let i=e.fs.relative(e.jsWorkspaceRoot,e.baseDirectory);return!r.isRoot&&!r.hasPackage(i)?null:r}x(ed,`detectWorkspaces`);var td=class extends rl{static{x(this,`Nx`)}id=`nx`;name=`Nx`;configFiles=[`nx.json`];logo={default:`/logos/nx/light.svg`,light:`/logos/nx/light.svg`,dark:`/logos/nx/dark.svg`};runFromRoot=!0;isIntegrated=!1;targets=new Map;async getCommands(e){let t=this.project.workspace?.getPackage(e)?.name||``,n=(this.targets.get(e)||[]).map(e=>e.name);try{let r=this.project.resolveFromPackage(e,`package.json`),i=await this.project.fs.readJSON(r,{fail:!0});n.push(...Object.keys(i?.scripts||{})),t=i.name||``}catch{}return t.length!==0&&n.length!==0?n.map(e=>{let n=`unknown`;return hs.includes(e)&&(n=`dev`),_s.includes(e)&&(n=`build`),{type:n,command:`nx run ${t}:${e}`}}):[]}async getDist(e){return this.isIntegrated?this.getOutputFromTarget(e):null}async getPort(e){if(!this.isIntegrated)return null;let t=this.targets.get(e)?.find(e=>hs.includes(e.name)),n=this.getExecutorFromTarget(t);if(!n)return null;switch(n){case`@nxtensions/astro:dev`:return 3e3;case`@nx/next:server`:case`@nrwl/next:server`:case`@nrwl/web:dev-server`:case`@nx/webpack:dev-server`:case`@angular-devkit/build-angular:dev-server`:return 4200;case`@nx-plus/vue:dev-server`:return 8e3;case`nx:run-commands`:case void 0:return null;default:return this.project.report({name:`UndetectedExecutor`,message:`Undetected executor for Nx integrated: ${n}`},{metadata:{executor:n}}),null}}async getOutputFromTarget(e){let{getProperty:t}=await import(`./dot-prop-IITUZ2XW-BsZYdILY.mjs`);try{let n=this.targets.get(e)?.find(e=>e.name===`build`);if(n){let r=`outputs`in n?n.outputs?.[0]:n.options?.outputPath;if(r){let i=this.project.frameworks?.get(e)?.[0],a=``;return i?.id===`next`&&(a=i.build.directory),this.project.fs.join(r.replace(`{workspaceRoot}/`,``).replace(/\{(.+)\}/g,(r,i)=>t({...n,projectRoot:e},i)),a)}}}catch{}return this.project.fs.join(`dist`,e)}getExecutorFromTarget(e){return e&&(`executor`in e?e.executor:e.builder)}async detectFramework(e){let t=e.find(e=>_s.includes(e.name)),n=this.getExecutorFromTarget(t);if(!(!t||!n))switch(n){case`@nrwl/next:build`:case`@nx/next:build`:return`next`;case`@nxtensions/astro:build`:return`astro`;case`@nx-plus/vue:browser`:return`vue`;case`@angular-devkit/build-angular:browser`:return`angular`;case`@nx/webpack:webpack`:case`@nrwl/web:build`:if(t.options?.webpackConfig?.includes?.(`react`))return`react-static`;this.project.report({name:`UndetectedNrwlWeb`,message:`Undetected @nrwl/web:build framework: ${JSON.stringify({target:t},null,2)}`});return;case`@nx/cypress:cypress`:case`@nrwl/cypress:cypress`:case`@nrwl/node:build`:return;case`nx:run-commands`:case void 0:return;default:this.project.report({name:`UndetectedExecutor`,message:`Undetected executor for Nx integrated: ${n}`},{metadata:{executor:n}})}}async detectWorkspaceFile(){let e=this.project.fs;try{let{projects:t}=await e.readJSON(e.join(this.project.jsWorkspaceRoot,`workspace.json`),{fail:!0}),n=[];for(let[r,{root:i,projectType:a,architect:o}]of Object.entries(t||{})){if(!i||r.endsWith(`-e2e`)||a!==`application`)continue;let t=Object.entries(o||{}).map(([e,t])=>({...t,name:e})),s=await this.detectFramework(t);this.targets.set(e.join(i),t),n.push({name:r,path:e.join(i),forcedFramework:s})}return n}catch{}return[]}async detectProjectJson(){let e=this.project.fs;try{let{workspaceLayout:t}=await e.readJSON(e.join(this.project.jsWorkspaceRoot,`nx.json`),{fail:!0}),n=t?.appsDir?[t.appsDir]:[`apps`,`packages`],r=x(async({entry:t,directory:n,packagePath:r})=>{if(t===`project.json`&&!r.endsWith(`-e2e`))try{let{projectType:i,name:a,targets:o}=await e.readJSON(e.join(n,t));if(i===`application`){let t=Object.entries(o||{}).map(([e,t])=>({...t,name:e})),n=await this.detectFramework(t);return this.targets.set(e.join(r),t),{name:a,path:e.join(r),forcedFramework:n}}}catch{}return null},`identifyPkg`);return(await Promise.all(n.map(async e=>Yu(this.project,e,r,`*`).catch(()=>[])))).flat()}catch{}return[]}async detect(){if(await super.detect()){let e=[...await this.detectWorkspaceFile(),...await this.detectProjectJson()];return e.length&&(this.isIntegrated=!0,this.project.workspace?this.project.workspace.packages.push(...e):(this.project.workspace=new Zu,this.project.workspace.isRoot=this.project.jsWorkspaceRoot===this.project.baseDirectory,this.project.workspace.rootDir=this.project.jsWorkspaceRoot,this.project.workspace.packages=e),this.project.events.emit(`detectWorkspaces`,this.project.workspace)),this}}},nd=class extends rl{static{x(this,`PNPM`)}id=`pnpm`;name=`PNPM`;runFromRoot=!0;async getCommands(e){let{name:t,scripts:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&Object.keys(n).length>0?Object.entries(n).map(([e,n])=>{let r=Ts(e,n);return{type:ws(e,n)?`dev`:r?`build`:`unknown`,command:`pnpm --filter ${t}${r?`...`:``} run ${e}`}}):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`pnpm`)return this}},rd=class extends rl{static{x(this,`Yarn`)}id=`yarn`;name=`Yarn`;runFromRoot=!0;async getCommands(e){let{name:t,scripts:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&Object.keys(n).length>0?Object.entries(n).map(([e,n])=>({type:ws(e,n)?`dev`:Ts(e,n)?`build`:`unknown`,command:`yarn workspace ${t} ${e}`})):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`yarn`)return this}},id=class extends rl{static{x(this,`NPM`)}id=`npm`;name=`NPM`;runFromRoot=!0;async getCommands(e){let{name:t,scripts:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&Object.keys(n).length>0?Object.entries(n).map(([e,n])=>({type:ws(e,n)?`dev`:Ts(e,n)?`build`:`unknown`,command:`npm --workspace ${t} run ${e}`})):[]}async detect(){if(this.project.workspace&&this.project.packageManager?.name===`npm`)return this}},ad=[il,al,ol,sl,cl,ll,ul,td,class extends rl{static{x(this,`Pants`)}id=`pants`;name=`Pants`;configFiles=[`pants.toml`];async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}},class extends rl{static{x(this,`Rush`)}id=`rush`;name=`Rush`;configFiles=[`rush.json`];logo={default:`/logos/rush/light.svg`,light:`/logos/rush/light.svg`,dark:`/logos/rush/dark.svg`}},class extends rl{static{x(this,`Turbo`)}id=`turbo`;name=`TurboRepo`;configFiles=[`turbo.json`];runFromRoot=!0;logo={default:`/logos/turbo/light.svg`,light:`/logos/turbo/light.svg`,dark:`/logos/turbo/dark.svg`};async getCommands(e){let{scripts:t,name:n}=await this.project.fs.readJSON(this.project.resolveFromPackage(e,`package.json`));return n&&t&&Object.values(t).length?Object.keys(t).map(e=>{let t=`unknown`;return hs.includes(e)&&(t=`dev`),_s.includes(e)&&(t=`build`),{type:t,command:`turbo run ${e} --filter ${n}`}}):[]}},nd,id,rd],od=class{static{x(this,`EventEmitter`)}callbacks=new Map;on(e,t){if(typeof t!=`function`)throw TypeError(`Callback parameter has to be a function.`);this.callbacks.has(e)||this.callbacks.set(e,[]),this.callbacks.get(e)?.push(t)}async emit(e,t){for(let n of this.callbacks.get(e)||[])await n(t)}},{default:sd}=T(la(),1).default,cd=x(e=>e instanceof Error||typeof e==`object`&&(e.errorClass||e.name)?e:typeof e==`string`?Error(e):typeof e==`object`&&e.message?Error(e.message):Error(`Unexpected error format: ${JSON.stringify(e)}`),`normalizeError`);function ld(e,t={}){let n=cd(e);(t.client||sd).notify(n,n=>{for(let[e,r]of Object.entries(t.metadata||{}))n.addMetadata(e,r);typeof e==`object`&&`documentation_url`in e&&n.addMetadata(`Documentation URL`,e.documentation_url),n.context=t.context,n.severity=t.severity||`error`,n.context=t.context})}x(ld,`report`);var ud=T(Fr(),1),dd={yarn:{name:`yarn`,installCommand:`yarn install`,runCommand:`yarn run`,localPackageCommand:`yarn`,remotePackageCommand:[`yarn`,`dlx`],lockFiles:[`yarn.lock`],forceEnvironment:`NETLIFY_USE_YARN`},pnpm:{name:`pnpm`,installCommand:`pnpm install`,runCommand:`pnpm run`,localPackageCommand:`pnpm`,remotePackageCommand:[`pnpm`,`dlx`],lockFiles:[`pnpm-lock.yaml`],forceEnvironment:`NETLIFY_USE_PNPM`},npm:{name:`npm`,installCommand:`npm install`,runCommand:`npm run`,localPackageCommand:`npx`,remotePackageCommand:[`npx`],lockFiles:[`package-lock.json`]},bun:{name:`bun`,installCommand:`bun install`,runCommand:`bun run`,localPackageCommand:`bunx`,remotePackageCommand:[`bunx`],lockFiles:[`bun.lockb`,`bun.lock`]}};function fd(e){let t=e.getEnv(`npm_config_user_agent`);if(t!==void 0){if(t.includes(`yarn`))return`yarn`;if(t.includes(`pnpm`))return`pnpm`;if(t.includes(`bun`))return`bun`;if(t.includes(`npm`))return`npm`}}x(fd,`sniffUserAgent`);var pd=Object.values(dd).reduce((e,t)=>t.lockFiles.reduce((e,n)=>({...e,[n]:t}),e),{}),md=x(async(e,t)=>{let n=t?.enableUserAgentSniffing?fd(e):void 0;try{let t=await e.fs.findUpMultiple(`package.json`,{cwd:e.baseDirectory,stopAt:e.root});if(!t.length)return n?dd[n]:null;for(let n of t){let{packageManager:t}=await e.fs.readJSON(n);if(t){let[e,n]=t.split(`@`);if(dd[e]){let t=dd[e];return t.version=(0,ud.parse)(n)||void 0,t}}}for(let t of Object.values(dd))if(t.forceEnvironment&&e.getEnv(t.forceEnvironment)===`true`)return t;let r=await e.fs.findUp(Object.keys(pd),{cwd:e.baseDirectory,stopAt:e.root});if(r){let t=pd[e.fs.basename(r)];if(!(t.forceEnvironment&&e.getEnv(t.forceEnvironment)===`false`))return t}}catch(t){e.report(t)}return n?dd[n]:dd.npm},`detectPackageManager`),hd=class{static{x(this,`LangRuntime`)}project;id;name;configFiles=[];constructor(e){this.project=e}async detect(){if(await this.project.fs.findUp(this.configFiles,{cwd:this.project.baseDirectory,stopAt:this.project.root}))return this}toJSON(){return{id:this.id,name:this.name}}},gd=class extends hd{static{x(this,`Brew`)}id=`brew`;name=`Brew`;configFiles=[`Brewfile.netlify`]},_d=class extends hd{static{x(this,`Bun`)}id=`bun`;name=`Bun`;configFiles=[`bun.lock`,`bun.lockb`,`bunfig.toml`]},vd=class extends hd{static{x(this,`Emacs`)}id=`emacs`;name=`Emacs`;configFiles=[`Cask`]},yd=class extends hd{static{x(this,`Dotnet`)}id=`dotnet`;name=`Dotnet`;configFiles=[`Program.cs`,`appsettings.json`]},bd=class extends hd{static{x(this,`Erlang`)}id=`erlang`;name=`Erlang`;configFiles=[`rebar.config`,`rebar.lock`]},xd=class extends hd{static{x(this,`Go`)}id=`go`;name=`Go`;configFiles=[`go.mod`,`.go-version`,`go.work`]},Sd=class extends hd{static{x(this,`Java`)}id=`java`;name=`Java`;configFiles=[`project.clj`,`build.boot`]},Cd=class extends hd{static{x(this,`Node`)}id=`node`;name=`NodeJS`;configFiles=[`.node-version`,`.nvmrc`,`package.json`]},wd=class extends hd{static{x(this,`Php`)}id=`php`;name=`Php`;configFiles=[`composer.json`]},Td=class extends hd{static{x(this,`Python`)}id=`python`;name=`Python`;configFiles=[`requirements.txt`,`Pipfile`]},Ed=[Cd,class extends hd{static{x(this,`Ruby`)}id=`ruby`;name=`Ruby`;configFiles=[`.ruby-version`,`Gemfile.lock`,`Gemfile`]},gd,_d,yd,vd,bd,xd,Sd,wd,class extends hd{static{x(this,`Rust`)}id=`rust`;name=`Rust`;configFiles=[`Cargo.toml`,`Cargo.lock`]},class extends hd{static{x(this,`Swift`)}id=`swift`;name=`Swift`;configFiles=[`.swift-version`,`Package.swift`]},Td];async function Dd(e,t,n){let r=t.buildSystems[0],i={...e};if(n&&r){let t=await r.getCommands?.(n)||[],a=t.find(e=>e.type===`build`),o=t.find(e=>e.type===`dev`),s=await r.getDist?.(n),c=await r.getPort?.(n);i.name=`${r.name} + ${e.name} ${n}`,a&&(i.buildCommand=a.command),o&&(i.devCommand=o.command),s&&(i.dist=s),c!=null&&(i.frameworkPort=c),r.runFromRoot&&a&&o&&(i.baseDirectory=``)}return i}x(Dd,`applyBuildSystemOverrides`);async function Od(e,t,n){let r=e.getDevCommands(),i=e.getBuildCommands(),a={name:e.name,buildCommand:i[0],devCommand:r[0],frameworkPort:e.dev?.port,dist:t.fs.join(n,e.build.directory),env:e.env||{},plugins_from_config_file:[],plugins_recommended:e.plugins||[],framework:{id:e.id,name:e.name},baseDirectory:n,packagePath:n,pollingStrategies:e.dev?.pollingStrategies?.map(({name:e})=>e)||[]};return e.dev?.clearPublishDirectory!==void 0&&(a.clearPublishDirectory=e.dev.clearPublishDirectory),n?.length&&t.workspace?.isRoot&&(a.dist=t.fs.join(n,e.build.directory)),Dd(a,t,n)}x(Od,`getSettings`);async function kd(e,t){if(e.frameworks===void 0)throw Error(`Please run the framework detection before calling the build settings!`);let n=t??e.relativeBaseDirectory??``,r=[];if(e.logger.debug(`[get-build-settings.ts] getBuildSettings for baseDirectory: ${n}`),e.workspace&&e.workspace.packages.length>0&&n.length===0)for(let[t,n]of[...e.frameworks.entries()])for(let i of n)r.push(Od(i,e,t));else for(let t of e.frameworks.get(n)||[])r.push(Od(t,e,n));return(await Promise.all(r)).filter(Boolean)}x(kd,`getBuildSettings`);var Ad=class{static{x(this,`Project`)}fs;root;baseDirectory;relativeBaseDirectory;packageManager;jsWorkspaceRoot;workspace;buildSystems;settings;frameworks;runtimes;#e={};bugsnag;logger;reportFn=ld;events=new od;_nodeVersion=null;setNodeVersion(e){return this._nodeVersion=(0,nl.parse)((0,nl.coerce)(e),{loose:!0}),this}async getCurrentNodeVersion(){if(this._nodeVersion)return this._nodeVersion;let e=(0,nl.parse)((0,nl.coerce)(this.getEnv(`NODE_VERSION`)),{loose:!0});if(e)return e;let t=await this.fs.gracefullyReadFile(`.nvmrc`);if(t)return(0,nl.parse)((0,nl.coerce)(t,{loose:!0}));let n=await this.fs.gracefullyReadFile(`.node_version`);return n?(0,nl.parse)((0,nl.coerce)(n,{loose:!0})):null}async isRedwoodProject(){return await this.fs.fileExists(this.fs.resolve(this.fs.cwd,`redwood.toml`))}constructor(e,t,n){this.fs=e,this.baseDirectory=e.resolve(n||``,t===void 0?e.cwd:t),this.root=n?e.resolve(e.cwd,n):void 0,this.relativeBaseDirectory=t!==void 0&&!e.isAbsolute(t)?t:e.relative(this.root||e.cwd,this.baseDirectory),this.fs.cwd=this.baseDirectory,this.logger=e.logger}setEnvironment(e){return this.#e=e,this}setReportFn(e){return this.reportFn=e,this}setBugsnag(e){return e&&(this.bugsnag=e),this}getEnv(e){return this.#e[e]}report(e,t={}){this.fs.logger.error(e),this.reportFn(e,{metadata:{build:{baseDirectory:this.baseDirectory,root:this.root},...t.metadata||{}},context:t.context,severity:t.severity,client:this.bugsnag})}getNpmScriptCommand(e){return`${this.packageManager?.runCommand||dd.npm.runCommand} ${e}`}async getRootPackageJSON(){let e=(await this.fs.findUpMultiple(`package.json`,{cwd:this.baseDirectory,stopAt:this.root})).pop();return e?(this.jsWorkspaceRoot=this.fs.dirname(e),this.fs.readJSON(e)):{}}async getPackageJSON(e){let t=await this.fs.findUp(`package.json`,{cwd:e||this.baseDirectory,stopAt:this.root});if(t){let e=await this.fs.readJSON(t);return Object.assign(e,{pkgPath:t})}return{pkgPath:null}}resolveFromPackage(e,...t){return this.jsWorkspaceRoot?this.fs.join(this.jsWorkspaceRoot,e,...t):this.baseDirectory.endsWith(e)&&!this.workspace?.isRoot?this.fs.join(this.baseDirectory,...t):this.fs.resolve(e,...t)}async detectPackageManager(e){if(this.logger.debug(`[project.ts]: detectPackageManager`),this.packageManager!==void 0)return this.packageManager;try{return this.packageManager=await md(this,e),await this.events.emit(`detectPackageManager`,this.packageManager),this.packageManager}catch{return null}}async detectWorkspaces(){if(this.logger.debug(`[project.ts]: detectWorkspaces`),this.workspace!==void 0)return this.workspace;await this.detectPackageManager();try{return this.workspace=await ed(this),await this.events.emit(`detectWorkspaces`,this.workspace),this.workspace}catch(e){return this.report(e),null}}async detectBuildSystem(){if(this.logger.debug(`[project.ts]: detectBuildSystem`),this.buildSystems!==void 0)return this.buildSystems;await this.detectWorkspaces();try{return this.buildSystems=(await Promise.all(ad.map(e=>new e(this).detect()))).filter(Boolean),await this.events.emit(`detectBuildsystems`,this.buildSystems),this.buildSystems}catch(e){return this.report(e),[]}}async detectRuntime(){this.logger.debug(`[project.ts]: detectRuntime`);try{return this.runtimes=(await Promise.all(Ed.map(e=>new e(this).detect()))).filter(Boolean),this.events.emit(`detectRuntimes`,this.runtimes),this.runtimes}catch(e){return this.report(e),[]}}async detectFrameworks(){if(this.logger.debug(`[project.ts]: detectFrameworks`),this.frameworks!==void 0)return[...this.frameworks.values()].flat();try{return await this.detectBuildSystem(),this.frameworks=new Map,this.workspace?await Promise.all(this.workspace.packages.map(async({path:e,forcedFramework:t})=>{if(t)try{let n=await tl(t,this);this.frameworks.set(e,[n])}catch{}else if(this.workspace){let t=await this.detectFrameworksInPath(this.fs.join(this.workspace.rootDir,e));this.frameworks.set(e,t)}})):this.frameworks.set(``,await this.detectFrameworksInPath()),await this.events.emit(`detectFrameworks`,this.frameworks),[...this.frameworks.values()].flat()}catch(e){return this.report(e),null}}async detectFrameworksInPath(e){this.logger.debug(`[project.ts]: detectFrameworksInPath - ${e}`);try{return As((await Promise.all(el.map(t=>new t(this,e).detect()))).filter(Boolean))}catch{return[]}}async getBuildSettings(e){if(this.logger.debug(`[project.ts]: getBuildSettings`),this.settings!==void 0)return this.settings;this.settings=[];try{await this.detectFrameworks(),this.settings=await kd(this,e),await this.events.emit(`detectSettings`,this.settings)}catch(e){this.report(e)}return this.settings}},jd=class{static{x(this,`Node`)}value;next;constructor(e){this.value=e}},Md=class{static{x(this,`Queue`)}#e;#t;#n;constructor(){this.clear()}enqueue(e){let t=new jd(e);this.#e?(this.#t.next=t,this.#t=t):(this.#e=t,this.#t=t),this.#n++}dequeue(){let e=this.#e;if(e)return this.#e=this.#e.next,this.#n--,e.value}clear(){this.#e=void 0,this.#t=void 0,this.#n=0}get size(){return this.#n}*[Symbol.iterator](){let e=this.#e;for(;e;)yield e.value,e=e.next}};function Nd(e){if(!((Number.isInteger(e)||e===1/0)&&e>0))throw TypeError("Expected `concurrency` to be a number from 1 and up");let t=new Md,n=0,r=x(()=>{n--,t.size>0&&t.dequeue()()},`next`),i=x(async(e,t,i)=>{n++;let a=(async()=>e(...i))();t(a);try{await a}catch{}r()},`run`),a=x((r,a,o)=>{t.enqueue(i.bind(void 0,r,a,o)),(async()=>{await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()})()},`enqueue`),o=x((e,...t)=>new Promise(n=>{a(e,n,t)}),`generator`);return Object.defineProperties(o,{activeCount:{get:x(()=>n,`get`)},pendingCount:{get:x(()=>t.size,`get`)},clearQueue:{value:x(()=>{t.clear()},`value`)}}),o}x(Nd,`pLimit`);var Pd=class extends Error{static{x(this,`EndError`)}constructor(e){super(),this.value=e}},Fd=x(async(e,t)=>t(await e),`testElement`),Id=x(async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Pd(t[0]);return!1},`finder`);async function Ld(e,t,{concurrency:n=1/0,preserveOrder:r=!0}={}){let i=Nd(n),a=[...e].map(e=>[e,i(Fd,e,t)]),o=Nd(r?1:1/0);try{await Promise.all(a.map(e=>o(Id,e)))}catch(e){if(e instanceof Pd)return e.value;throw e}}x(Ld,`pLocate`);var Rd={directory:`isDirectory`,file:`isFile`};function zd(e){if(!Object.hasOwnProperty.call(Rd,e))throw Error(`Invalid type specified: ${e}`)}x(zd,`checkType`);var Bd=x((e,t)=>t[Rd[e]](),`matchType`),Vd=x(e=>e instanceof URL?Se(e):e,`toPath`);async function Hd(e,{cwd:t=V.cwd(),type:n=`file`,allowSymlinks:r=!0,concurrency:i,preserveOrder:a}={}){zd(n),t=Vd(t);let o=r?he.stat:he.lstat;return Ld(e,async e=>{try{return Bd(n,await o(z.resolve(t,e)))}catch{return!1}},{concurrency:i,preserveOrder:a})}x(Hd,`locatePath`);function Ud(e){return e instanceof URL?Se(e):e}x(Ud,`toPath`);var Wd=Symbol(`findUpStop`);async function Gd(e,t={}){let n=z.resolve(Ud(t.cwd)??``),{root:r}=z.parse(n),i=z.resolve(n,Ud(t.stopAt??r)),a=t.limit??1/0,o=[e].flat(),s=x(async t=>{if(typeof e!=`function`)return Hd(o,t);let n=await e(t.cwd);return typeof n==`string`?Hd([n],t):n},`runMatcher`),c=[];for(;;){let e=await s({...t,cwd:n});if(e===Wd||(e&&c.push(z.resolve(n,e)),n===i||c.length>=a))break;n=z.dirname(n)}return c}x(Gd,`findUpMultiple`);async function Kd(e,t={}){return(await Gd(e,{...t,limit:1}))[0]}x(Kd,`findUp`);var qd=class extends ps{static{x(this,`NodeFS`)}constructor(){super(),this.cwd=process.cwd()}getEnvironment(){return`node`}isAbsolute(e){return ce(e)}dirname(e){return L(e)}resolve(...e){return de(...e)}relative(e,t){return ue(e,t)}basename(e){return se(e)}join(...e){return le(...e)}async fileExists(e){try{return await fe.stat(de(e)),!0}catch{return!1}}async readDir(e,t){try{return t?(await fe.readdir(de(e),{withFileTypes:!0})).reduce((e,t)=>({...e,[t.name]:t.isDirectory()?`directory`:`file`}),{}):fe.readdir(de(e))}catch{return[]}}async readFile(e){return(await fe.readFile(de(e),`utf-8`)).toString()}findUp(e,t={}){return Kd(e,t)}findUpMultiple(e,t={}){return Gd(e,t)}},Jd=10,Yd=x((e=0)=>t=>`\x1B[${t+e}m`,`wrapAnsi16`),Xd=x((e=0)=>t=>`\x1B[${38+e};5;${t}m`,`wrapAnsi256`),Zd=x((e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,`wrapAnsi16m`),Q={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(Q.modifier);var Qd=Object.keys(Q.color),$d=Object.keys(Q.bgColor);[...Qd,...$d];function ef(){let e=new Map;for(let[t,n]of Object.entries(Q)){for(let[t,r]of Object.entries(n))Q[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[t]=Q[t],e.set(r[0],r[1]);Object.defineProperty(Q,t,{value:n,enumerable:!1})}return Object.defineProperty(Q,`codes`,{value:e,enumerable:!1}),Q.color.close=`\x1B[39m`,Q.bgColor.close=`\x1B[49m`,Q.color.ansi=Yd(),Q.color.ansi256=Xd(),Q.color.ansi16m=Zd(),Q.bgColor.ansi=Yd(Jd),Q.bgColor.ansi256=Xd(Jd),Q.bgColor.ansi16m=Zd(Jd),Object.defineProperties(Q,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:x(e=>Q.rgbToAnsi256(...Q.hexToRgb(e)),`value`),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:x((e,t,n)=>Q.ansi256ToAnsi(Q.rgbToAnsi256(e,t,n)),`value`),enumerable:!1},hexToAnsi:{value:x(e=>Q.ansi256ToAnsi(Q.hexToAnsi256(e)),`value`),enumerable:!1}}),Q}x(ef,`assembleStyles`);var tf=ef();function nf(e,t=globalThis.Deno?globalThis.Deno.args:V.argv){let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}x(nf,`hasFlag`);var{env:$}=V,rf;nf(`no-color`)||nf(`no-colors`)||nf(`color=false`)||nf(`color=never`)?rf=0:(nf(`color`)||nf(`colors`)||nf(`color=true`)||nf(`color=always`))&&(rf=1);function af(){if(`FORCE_COLOR`in $)return $.FORCE_COLOR===`true`?1:$.FORCE_COLOR===`false`?0:$.FORCE_COLOR.length===0?1:Math.min(Number.parseInt($.FORCE_COLOR,10),3)}x(af,`envForceColor`);function of(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}x(of,`translateLevel`);function sf(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=af();r!==void 0&&(rf=r);let i=n?rf:r;if(i===0)return 0;if(n){if(nf(`color=16m`)||nf(`color=full`)||nf(`color=truecolor`))return 3;if(nf(`color=256`))return 2}if(`TF_BUILD`in $&&`AGENT_NAME`in $)return 1;if(e&&!t&&i===void 0)return 0;let a=i||0;if($.TERM===`dumb`)return a;if(V.platform===`win32`){let e=Ce.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in $)return`GITHUB_ACTIONS`in $||`GITEA_ACTIONS`in $?3:[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in $)||$.CI_NAME===`codeship`?1:a;if(`TEAMCITY_VERSION`in $)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test($.TEAMCITY_VERSION);if($.COLORTERM===`truecolor`||$.TERM===`xterm-kitty`)return 3;if(`TERM_PROGRAM`in $){let e=Number.parseInt(($.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch($.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test($.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test($.TERM)||`COLORTERM`in $?1:a}x(sf,`_supportsColor`);function cf(e,t={}){return of(sf(e,{streamIsTTY:e&&e.isTTY,...t}))}x(cf,`createSupportsColor`);var lf={stdout:cf({isTTY:Te.isatty(1)}),stderr:cf({isTTY:Te.isatty(2)})};function uf(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.slice(a,r)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.slice(a),o}x(uf,`stringReplaceAll`);function df(e,t,n,r){let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.slice(i,o?r-1:r)+t+(o?`\r
482
482
  `:`
483
483
  `)+n,i=r+1,r=e.indexOf(`
484
484
  `,i)}while(r!==-1);return a+=e.slice(i),a}x(df,`stringEncaseCRLFWithFirstIndex`);var{stdout:ff,stderr:pf}=lf,mf=Symbol(`GENERATOR`),hf=Symbol(`STYLER`),gf=Symbol(`IS_EMPTY`),_f=[`ansi`,`ansi`,`ansi256`,`ansi16m`],vf=Object.create(null),yf=x((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=ff?ff.level:0;e.level=t.level===void 0?n:t.level},`applyOptions`),bf=x(e=>{let t=x((...e)=>e.join(` `),`chalk`);return yf(t,e),Object.setPrototypeOf(t,xf.prototype),t},`chalkFactory`);function xf(e){return bf(e)}x(xf,`createChalk`),Object.setPrototypeOf(xf.prototype,Function.prototype);for(let[e,t]of Object.entries(tf))vf[e]={get(){let n=Tf(this,wf(t.open,t.close,this[hf]),this[gf]);return Object.defineProperty(this,e,{value:n}),n}};vf.visible={get(){let e=Tf(this,this[hf],!0);return Object.defineProperty(this,`visible`,{value:e}),e}};var Sf=x((e,t,n,...r)=>e===`rgb`?t===`ansi16m`?tf[n].ansi16m(...r):t===`ansi256`?tf[n].ansi256(tf.rgbToAnsi256(...r)):tf[n].ansi(tf.rgbToAnsi(...r)):e===`hex`?Sf(`rgb`,t,n,...tf.hexToRgb(...r)):tf[n][e](...r),`getModelAnsi`);for(let e of[`rgb`,`hex`,`ansi256`]){vf[e]={get(){let{level:t}=this;return function(...n){let r=wf(Sf(e,_f[t],`color`,...n),tf.color.close,this[hf]);return Tf(this,r,this[gf])}}};let t=`bg`+e[0].toUpperCase()+e.slice(1);vf[t]={get(){let{level:t}=this;return function(...n){let r=wf(Sf(e,_f[t],`bgColor`,...n),tf.bgColor.close,this[hf]);return Tf(this,r,this[gf])}}}}var Cf=Object.defineProperties(()=>{},{...vf,level:{enumerable:!0,get(){return this[mf].level},set(e){this[mf].level=e}}}),wf=x((e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},`createStyler`),Tf=x((e,t,n)=>{let r=x((...e)=>Ef(r,e.length===1?``+e[0]:e.join(` `)),`builder`);return Object.setPrototypeOf(r,Cf),r[mf]=e,r[hf]=t,r[gf]=n,r},`createBuilder`),Ef=x((e,t)=>{if(e.level<=0||!t)return e[gf]?``:t;let n=e[hf];if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=uf(t,n.close,n.open),n=n.parent;let a=t.indexOf(`