@batijs/cli 0.0.598 → 0.0.600

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 (526) hide show
  1. package/dist/asset-package.json-5jAkHfQx.js +46 -0
  2. package/dist/asset-package.json-BM9mLhk2.js +40 -0
  3. package/dist/asset-package.json-BPEqUh6E.js +28 -0
  4. package/dist/asset-package.json-BXd32h89.js +40 -0
  5. package/dist/asset-package.json-BXoaSV75.js +36 -0
  6. package/dist/asset-package.json-BijLBPEY.js +30 -0
  7. package/dist/asset-package.json-BlleY_cq.js +53 -0
  8. package/dist/asset-package.json-Bqsrbjke.js +37 -0
  9. package/dist/asset-package.json-Bwbbt7PW.js +37 -0
  10. package/dist/asset-package.json-BybrrIGO.js +28 -0
  11. package/dist/asset-package.json-C-9uPVZo.js +38 -0
  12. package/dist/asset-package.json-C7659FIB.js +32 -0
  13. package/dist/asset-package.json-CAQfFXCC.js +28 -0
  14. package/dist/asset-package.json-CC5MrBf2.js +47 -0
  15. package/dist/asset-package.json-CLowOiBr.js +26 -0
  16. package/dist/asset-package.json-CPWwL6bZ.js +38 -0
  17. package/dist/asset-package.json-CROF-oF6.js +38 -0
  18. package/dist/asset-package.json-CiSvhX5b.js +32 -0
  19. package/dist/asset-package.json-CkQEFCMS.js +43 -0
  20. package/dist/asset-package.json-CoJwuHWR.js +77 -0
  21. package/dist/asset-package.json-D3TDnLpq.js +42 -0
  22. package/dist/asset-package.json-DHv9B9Wa.js +27 -0
  23. package/dist/asset-package.json-Dexw92bT.js +29 -0
  24. package/dist/asset-package.json-Dfr64mDV.js +69 -0
  25. package/dist/asset-package.json-Dkcvy7d9.js +38 -0
  26. package/dist/asset-package.json-Duwl6qEg.js +28 -0
  27. package/dist/asset-package.json-DvFCc3Mp.js +31 -0
  28. package/dist/asset-package.json-DvwXo7fn.js +40 -0
  29. package/dist/asset-package.json-HC49QzUo.js +45 -0
  30. package/dist/asset-package.json-JgKMEkcg.js +27 -0
  31. package/dist/asset-package.json-KJy4GxeC.js +29 -0
  32. package/dist/asset-package.json-YGAhbK5F.js +26 -0
  33. package/dist/asset-package.json-iC80yfHl.js +30 -0
  34. package/dist/asset-package.json-jnFwnnfq.js +32 -0
  35. package/dist/asset-package.json-vNjJ2So7.js +50 -0
  36. package/dist/asset-package.json-ynr-HN_E.js +30 -0
  37. package/dist/boilerplates/@batijs/auth0/bati.config.mjs +22 -0
  38. package/dist/boilerplates/@batijs/auth0/files/$.env.js +13 -21
  39. package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +8 -17
  40. package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +14 -22
  41. package/dist/boilerplates/@batijs/authjs/bati.config.mjs +17 -0
  42. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +5 -81
  43. package/dist/boilerplates/@batijs/authjs/files/asset-package.json.mjs +28 -0
  44. package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +1 -3
  45. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/adapters.d.mts +11 -0
  46. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/index.d.mts +1 -0
  47. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/jwt.d.mts +1 -0
  48. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/lib/utils/actions.d.mts +1 -0
  49. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/lib/utils/cookie.d.mts +1 -0
  50. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/lib/utils/env.d.mts +1 -0
  51. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/lib/utils/logger.d.mts +1 -0
  52. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/lib/utils/webauthn-utils.d.mts +1 -0
  53. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/providers/credentials.d.mts +1 -0
  54. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/providers/email.d.mts +1 -0
  55. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/providers/index.d.mts +1 -0
  56. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/providers/nodemailer.d.mts +1 -0
  57. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/providers/oauth.d.mts +1 -0
  58. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/providers/webauthn.d.mts +1 -0
  59. package/dist/boilerplates/@batijs/authjs/types/node_modules/.pnpm/@auth+core@0.41.1/node_modules/@auth/core/types.d.mts +22 -0
  60. package/dist/boilerplates/@batijs/authjs/types/server/authjs-handler.d.mts +27 -0
  61. package/dist/boilerplates/@batijs/aws/bati.config.mjs +37 -0
  62. package/dist/boilerplates/@batijs/aws/files/$README.md.js +9 -18
  63. package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +9 -19
  64. package/dist/boilerplates/@batijs/aws/files/$package.json.js +33 -124
  65. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +14 -22
  66. package/dist/boilerplates/@batijs/aws/files/$vite.config.ts.js +6 -12
  67. package/dist/boilerplates/@batijs/aws/files/asset-package.json.mjs +48 -0
  68. package/dist/boilerplates/@batijs/aws/files/cdk/$stack-name-suffix.json.js +9 -19
  69. package/dist/boilerplates/@batijs/aws/types/cdk/bin/infrastructure.d.mts +13 -0
  70. package/dist/boilerplates/@batijs/aws/types/cdk/lib/vike-stack.d.mts +14 -0
  71. package/dist/boilerplates/@batijs/aws/types/tests/aws_handler.spec.d.mts +1 -0
  72. package/dist/boilerplates/@batijs/aws/types/vitest.config.d.mts +6 -0
  73. package/dist/boilerplates/@batijs/biome/bati.config.mjs +17 -0
  74. package/dist/boilerplates/@batijs/biome/files/$biome.json.js +75 -104
  75. package/dist/boilerplates/@batijs/biome/files/$package.json.js +11 -75
  76. package/dist/boilerplates/@batijs/biome/files/asset-package.json.mjs +26 -0
  77. package/dist/boilerplates/@batijs/cloudflare/bati.config.mjs +31 -0
  78. package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +9 -19
  79. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +13 -89
  80. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +7 -15
  81. package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +16 -0
  82. package/dist/boilerplates/@batijs/cloudflare/files/asset-package.json.mjs +26 -0
  83. package/dist/boilerplates/@batijs/cloudflare/files/wrangler.jsonc +1 -1
  84. package/dist/boilerplates/@batijs/compiled/bati.config.mjs +25 -0
  85. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +5 -70
  86. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +12 -21
  87. package/dist/boilerplates/@batijs/compiled/files/asset-package.json.mjs +27 -0
  88. package/dist/boilerplates/@batijs/d1/bati.config.mjs +27 -0
  89. package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +9 -18
  90. package/dist/boilerplates/@batijs/d1/files/$package.json.js +5 -82
  91. package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +13 -21
  92. package/dist/boilerplates/@batijs/d1/files/asset-package.json.mjs +29 -0
  93. package/dist/boilerplates/@batijs/d1/types/database/d1/helpers.d.mts +9 -0
  94. package/dist/boilerplates/@batijs/d1-kysely/bati.config.mjs +14 -0
  95. package/dist/boilerplates/@batijs/d1-kysely/files/$package.json.js +11 -73
  96. package/dist/boilerplates/@batijs/d1-kysely/files/asset-package.json.mjs +24 -0
  97. package/dist/boilerplates/@batijs/d1-sqlite/bati.config.mjs +14 -0
  98. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +11 -87
  99. package/dist/boilerplates/@batijs/d1-sqlite/files/asset-package.json.mjs +28 -0
  100. package/dist/boilerplates/@batijs/d1-sqlite/types/database/d1/queries/todos.d.mts +8 -0
  101. package/dist/boilerplates/@batijs/drizzle/bati.config.mjs +32 -0
  102. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +6 -15
  103. package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +9 -18
  104. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +18 -111
  105. package/dist/boilerplates/@batijs/drizzle/files/asset-package.json.mjs +41 -0
  106. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.mts +13 -0
  107. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/todos.d.mts +60 -0
  108. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/schema/todos.d.mts +50 -0
  109. package/dist/boilerplates/@batijs/drizzle/types/drizzle.config.d.mts +5 -0
  110. package/dist/boilerplates/@batijs/edgeone/bati.config.mjs +14 -0
  111. package/dist/boilerplates/@batijs/edgeone/files/$package.json.js +9 -0
  112. package/dist/boilerplates/@batijs/edgeone/files/$vite.config.ts.js +15 -0
  113. package/dist/boilerplates/@batijs/edgeone/files/asset-package.json.mjs +25 -0
  114. package/dist/boilerplates/@batijs/eslint/bati.config.mjs +17 -0
  115. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +13 -91
  116. package/dist/boilerplates/@batijs/eslint/files/asset-package.json.mjs +35 -0
  117. package/dist/boilerplates/@batijs/eslint/types/eslint.config.d.mts +6 -0
  118. package/dist/boilerplates/@batijs/express/bati.config.mjs +17 -0
  119. package/dist/boilerplates/@batijs/express/files/$package.json.js +10 -88
  120. package/dist/boilerplates/@batijs/express/files/{server/entry.ts → +server.ts} +11 -8
  121. package/dist/boilerplates/@batijs/express/files/asset-package.json.mjs +35 -0
  122. package/dist/boilerplates/@batijs/express/types/+server.d.mts +6 -0
  123. package/dist/boilerplates/@batijs/fastify/bati.config.mjs +17 -0
  124. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +11 -89
  125. package/dist/boilerplates/@batijs/fastify/files/{server/entry.ts → +server.ts} +13 -8
  126. package/dist/boilerplates/@batijs/fastify/files/asset-package.json.mjs +36 -0
  127. package/dist/boilerplates/@batijs/fastify/types/+server.d.mts +6 -0
  128. package/dist/boilerplates/@batijs/google-analytics/bati.config.mjs +14 -0
  129. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +6 -20
  130. package/dist/boilerplates/@batijs/h3/bati.config.mjs +17 -0
  131. package/dist/boilerplates/@batijs/h3/files/$package.json.js +11 -93
  132. package/dist/boilerplates/@batijs/h3/files/{server/entry.ts → +server.ts} +14 -9
  133. package/dist/boilerplates/@batijs/h3/files/asset-package.json.mjs +36 -0
  134. package/dist/boilerplates/@batijs/h3/types/+server.d.mts +10 -0
  135. package/dist/boilerplates/@batijs/hono/bati.config.mjs +17 -0
  136. package/dist/boilerplates/@batijs/hono/files/$package.json.js +10 -98
  137. package/dist/boilerplates/@batijs/hono/files/+server.ts +17 -0
  138. package/dist/boilerplates/@batijs/hono/files/asset-package.json.mjs +43 -0
  139. package/dist/boilerplates/@batijs/hono/files/entry_aws_lambda.ts +2 -2
  140. package/dist/boilerplates/@batijs/hono/files/server/{entry.ts → hono.ts} +6 -20
  141. package/dist/boilerplates/@batijs/hono/types/+server.d.mts +11 -0
  142. package/dist/boilerplates/@batijs/hono/types/entry_aws_lambda.d.mts +8 -0
  143. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/handler.d.mts +245 -0
  144. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/index.d.mts +2 -0
  145. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/alb.d.mts +1 -0
  146. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/amplify-resolver.d.mts +1 -0
  147. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-authorizer.d.mts +1 -0
  148. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.mts +18 -0
  149. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/appsync-resolver.d.mts +1 -0
  150. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/autoscaling.d.mts +1 -0
  151. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cdk-custom-resource.d.mts +1 -0
  152. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudformation-custom-resource.d.mts +1 -0
  153. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudfront-request.d.mts +1 -0
  154. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudfront-response.d.mts +1 -0
  155. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudwatch-alarm.d.mts +1 -0
  156. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudwatch-events.d.mts +1 -0
  157. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cloudwatch-logs.d.mts +1 -0
  158. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codebuild-cloudwatch-state.d.mts +1 -0
  159. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codecommit.d.mts +1 -0
  160. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.mts +1 -0
  161. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.mts +1 -0
  162. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.mts +1 -0
  163. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch.d.mts +1 -0
  164. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/codepipeline.d.mts +1 -0
  165. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/create-auth-challenge.d.mts +1 -0
  166. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-email-sender.d.mts +1 -0
  167. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-message.d.mts +1 -0
  168. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-sms-sender.d.mts +1 -0
  169. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/define-auth-challenge.d.mts +1 -0
  170. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/inbound-federation.d.mts +1 -0
  171. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.mts +1 -0
  172. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-authentication.d.mts +1 -0
  173. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-confirmation.d.mts +1 -0
  174. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-authentication.d.mts +1 -0
  175. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-signup.d.mts +1 -0
  176. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v2.d.mts +1 -0
  177. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v3.d.mts +1 -0
  178. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation.d.mts +1 -0
  179. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/user-migration.d.mts +1 -0
  180. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/verify-auth-challenge-response.d.mts +1 -0
  181. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/connect-contact-flow.d.mts +1 -0
  182. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.mts +1 -0
  183. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/eventbridge.d.mts +1 -0
  184. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/guard-duty-event-notification.d.mts +1 -0
  185. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/iot-authorizer.d.mts +1 -0
  186. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/iot.d.mts +1 -0
  187. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/kinesis-firehose-transformation.d.mts +1 -0
  188. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/kinesis-stream.d.mts +1 -0
  189. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/lambda-function-url.d.mts +1 -0
  190. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/lex-v2.d.mts +1 -0
  191. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/lex.d.mts +1 -0
  192. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/msk.d.mts +1 -0
  193. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/s3-batch.d.mts +1 -0
  194. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/s3-event-notification.d.mts +1 -0
  195. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/s3.d.mts +1 -0
  196. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/secretsmanager.d.mts +1 -0
  197. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/self-managed-kafka.d.mts +1 -0
  198. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/ses.d.mts +1 -0
  199. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/sns.d.mts +1 -0
  200. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/sqs.d.mts +1 -0
  201. package/dist/boilerplates/@batijs/hono/types/node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/transfer-family-authorizer.d.mts +1 -0
  202. package/dist/boilerplates/@batijs/hono/types/server/hono.d.mts +7 -0
  203. package/dist/boilerplates/@batijs/kysely/bati.config.mjs +27 -0
  204. package/dist/boilerplates/@batijs/kysely/files/$.env.js +6 -15
  205. package/dist/boilerplates/@batijs/kysely/files/$TODO.md.js +10 -20
  206. package/dist/boilerplates/@batijs/kysely/files/$package.json.js +14 -116
  207. package/dist/boilerplates/@batijs/kysely/files/asset-package.json.mjs +45 -0
  208. package/dist/boilerplates/@batijs/kysely/files/database/kysely/db.ts +2 -2
  209. package/dist/boilerplates/@batijs/kysely/types/database/kysely/db.d.mts +8 -0
  210. package/dist/boilerplates/@batijs/kysely/types/database/kysely/migrate.d.mts +1 -0
  211. package/dist/boilerplates/@batijs/kysely/types/database/kysely/migrations/001_create_todos_table.d.mts +8 -0
  212. package/dist/boilerplates/@batijs/kysely/types/database/kysely/queries/todos.d.mts +19 -0
  213. package/dist/boilerplates/@batijs/kysely/types/database/kysely/types.d.mts +14 -0
  214. package/dist/boilerplates/@batijs/mantine/bati.config.mjs +18 -0
  215. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +8 -17
  216. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +9 -97
  217. package/dist/boilerplates/@batijs/mantine/files/asset-package.json.mjs +44 -0
  218. package/dist/boilerplates/@batijs/mantine/types/components/Link.d.mts +12 -0
  219. package/dist/boilerplates/@batijs/mantine/types/pages/+Layout.d.mts +9 -0
  220. package/dist/boilerplates/@batijs/oxlint/bati.config.mjs +14 -0
  221. package/dist/boilerplates/@batijs/oxlint/files/$.oxlintrc.json.js +41 -45
  222. package/dist/boilerplates/@batijs/oxlint/files/$package.json.js +10 -74
  223. package/dist/boilerplates/@batijs/oxlint/files/asset-package.json.mjs +26 -0
  224. package/dist/boilerplates/@batijs/plausible.io/bati.config.mjs +14 -0
  225. package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +9 -18
  226. package/dist/boilerplates/@batijs/pnpm/bati.config.mjs +17 -0
  227. package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +19 -35
  228. package/dist/boilerplates/@batijs/prettier/bati.config.mjs +17 -0
  229. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +5 -68
  230. package/dist/boilerplates/@batijs/prettier/files/asset-package.json.mjs +25 -0
  231. package/dist/boilerplates/@batijs/prisma/bati.config.mjs +26 -0
  232. package/dist/boilerplates/@batijs/prisma/files/$.env.js +6 -20
  233. package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +9 -19
  234. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +11 -76
  235. package/dist/boilerplates/@batijs/prisma/files/asset-package.json.mjs +27 -0
  236. package/dist/boilerplates/@batijs/react/bati.config.mjs +17 -0
  237. package/dist/boilerplates/@batijs/react/files/$README.md.js +14 -25
  238. package/dist/boilerplates/@batijs/react/files/$package.json.js +15 -185
  239. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +9 -17
  240. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +10 -19
  241. package/dist/boilerplates/@batijs/react/files/asset-package.json.mjs +75 -0
  242. package/dist/boilerplates/@batijs/react/files/pages/+config.ts +11 -13
  243. package/dist/boilerplates/@batijs/react/types/components/Link.d.mts +12 -0
  244. package/dist/boilerplates/@batijs/react/types/pages/+Head.d.mts +6 -0
  245. package/dist/boilerplates/@batijs/react/types/pages/+Layout.d.mts +10 -0
  246. package/dist/boilerplates/@batijs/react/types/pages/+config.d.mts +6 -0
  247. package/dist/boilerplates/@batijs/react/types/pages/+onPageTransitionEnd.d.mts +4 -0
  248. package/dist/boilerplates/@batijs/react/types/pages/+onPageTransitionStart.d.mts +6 -0
  249. package/dist/boilerplates/@batijs/react/types/pages/_error/+Page.d.mts +6 -0
  250. package/dist/boilerplates/@batijs/react/types/pages/index/+Page.d.mts +6 -0
  251. package/dist/boilerplates/@batijs/react/types/pages/index/Counter.d.mts +6 -0
  252. package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+Page.d.mts +6 -0
  253. package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+data.d.mts +10 -0
  254. package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+Page.d.mts +6 -0
  255. package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+data.d.mts +9 -0
  256. package/dist/boilerplates/@batijs/react/types/pages/star-wars/types.d.mts +12 -0
  257. package/dist/boilerplates/@batijs/react/types/pages/todo/+Page.d.mts +6 -0
  258. package/dist/boilerplates/@batijs/react/types/pages/todo/TodoList.d.mts +6 -0
  259. package/dist/boilerplates/@batijs/react-sentry/bati.config.mjs +14 -0
  260. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +5 -91
  261. package/dist/boilerplates/@batijs/react-sentry/files/asset-package.json.mjs +38 -0
  262. package/dist/boilerplates/@batijs/react-sentry/types/pages/sentry/+Page.d.mts +6 -0
  263. package/dist/boilerplates/@batijs/react-sentry/types/sentry.browser.config.d.mts +4 -0
  264. package/dist/boilerplates/@batijs/sentry/bati.config.mjs +22 -0
  265. package/dist/boilerplates/@batijs/sentry/files/$.env.js +9 -27
  266. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +9 -18
  267. package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +8 -16
  268. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +5 -81
  269. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +13 -25
  270. package/dist/boilerplates/@batijs/sentry/files/asset-package.json.mjs +26 -0
  271. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +19 -31
  272. package/dist/boilerplates/@batijs/shadcn-ui/bati.config.mjs +14 -0
  273. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +9 -19
  274. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +16 -98
  275. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +10 -18
  276. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +27 -38
  277. package/dist/boilerplates/@batijs/shadcn-ui/files/asset-package.json.mjs +34 -0
  278. package/dist/boilerplates/@batijs/shadcn-ui/types/lib/utils.d.mts +6 -0
  279. package/dist/boilerplates/@batijs/shared/bati.config.mjs +18 -0
  280. package/dist/boilerplates/@batijs/shared/files/$README.md.js +21 -43
  281. package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +15 -29
  282. package/dist/boilerplates/@batijs/shared/files/asset-const.mjs +4 -0
  283. package/dist/boilerplates/@batijs/shared/files/package.json +3 -3
  284. package/dist/boilerplates/@batijs/shared/files/vite.config.ts +0 -2
  285. package/dist/boilerplates/@batijs/shared/hooks/after.mjs +19 -0
  286. package/dist/boilerplates/@batijs/shared/hooks/asset-const.mjs +4 -0
  287. package/dist/boilerplates/@batijs/shared/types/vite.config.d.mts +6 -0
  288. package/dist/boilerplates/@batijs/shared-db/bati.config.mjs +14 -0
  289. package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.mts +26 -0
  290. package/dist/boilerplates/@batijs/shared-server/bati.config.mjs +14 -0
  291. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +5 -80
  292. package/dist/boilerplates/@batijs/shared-server/files/asset-package.json.mjs +30 -0
  293. package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.mts +29 -0
  294. package/dist/boilerplates/@batijs/shared-todo/bati.config.mjs +12 -0
  295. package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+config.d.mts +6 -0
  296. package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+data.d.mts +9 -0
  297. package/dist/boilerplates/@batijs/solid/bati.config.mjs +14 -0
  298. package/dist/boilerplates/@batijs/solid/files/$README.md.js +14 -25
  299. package/dist/boilerplates/@batijs/solid/files/$package.json.js +9 -177
  300. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +9 -17
  301. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +10 -19
  302. package/dist/boilerplates/@batijs/solid/files/asset-package.json.mjs +67 -0
  303. package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +11 -13
  304. package/dist/boilerplates/@batijs/solid/types/components/Link.d.mts +9 -0
  305. package/dist/boilerplates/@batijs/solid/types/pages/+Head.d.mts +6 -0
  306. package/dist/boilerplates/@batijs/solid/types/pages/+Layout.d.mts +8 -0
  307. package/dist/boilerplates/@batijs/solid/types/pages/+config.d.mts +6 -0
  308. package/dist/boilerplates/@batijs/solid/types/pages/+onPageTransitionEnd.d.mts +4 -0
  309. package/dist/boilerplates/@batijs/solid/types/pages/+onPageTransitionStart.d.mts +6 -0
  310. package/dist/boilerplates/@batijs/solid/types/pages/_error/+Page.d.mts +6 -0
  311. package/dist/boilerplates/@batijs/solid/types/pages/index/+Page.d.mts +6 -0
  312. package/dist/boilerplates/@batijs/solid/types/pages/index/Counter.d.mts +6 -0
  313. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+Page.d.mts +6 -0
  314. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+data.d.mts +10 -0
  315. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+Page.d.mts +6 -0
  316. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+data.d.mts +9 -0
  317. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/types.d.mts +12 -0
  318. package/dist/boilerplates/@batijs/solid/types/pages/todo/+Page.d.mts +6 -0
  319. package/dist/boilerplates/@batijs/solid/types/pages/todo/TodoList.d.mts +6 -0
  320. package/dist/boilerplates/@batijs/solid-sentry/bati.config.mjs +14 -0
  321. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +5 -89
  322. package/dist/boilerplates/@batijs/solid-sentry/files/asset-package.json.mjs +36 -0
  323. package/dist/boilerplates/@batijs/solid-sentry/types/pages/sentry/+Page.d.mts +6 -0
  324. package/dist/boilerplates/@batijs/solid-sentry/types/sentry.browser.config.d.mts +4 -0
  325. package/dist/boilerplates/@batijs/sqlite/bati.config.mjs +22 -0
  326. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +6 -15
  327. package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +10 -20
  328. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +8 -104
  329. package/dist/boilerplates/@batijs/sqlite/files/asset-package.json.mjs +40 -0
  330. package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/db.d.mts +6 -0
  331. package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/queries/todos.d.mts +11 -0
  332. package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/schema/all.d.mts +1 -0
  333. package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/schema/todos.d.mts +1 -0
  334. package/dist/boilerplates/@batijs/storybook/bati.config.mjs +23 -0
  335. package/dist/boilerplates/@batijs/storybook/hooks/after.mjs +20 -0
  336. package/dist/boilerplates/@batijs/tailwindcss/bati.config.mjs +17 -0
  337. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +5 -74
  338. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +10 -19
  339. package/dist/boilerplates/@batijs/tailwindcss/files/asset-package.json.mjs +30 -0
  340. package/dist/boilerplates/@batijs/telefunc/bati.config.mjs +14 -0
  341. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +5 -89
  342. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +11 -20
  343. package/dist/boilerplates/@batijs/telefunc/files/asset-package.json.mjs +36 -0
  344. package/dist/boilerplates/@batijs/telefunc/types/pages/todo/TodoList.telefunc.d.mts +8 -0
  345. package/dist/boilerplates/@batijs/telefunc/types/server/telefunc-handler.d.mts +6 -0
  346. package/dist/boilerplates/@batijs/trpc/bati.config.mjs +14 -0
  347. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +5 -95
  348. package/dist/boilerplates/@batijs/trpc/files/asset-package.json.mjs +38 -0
  349. package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.mts +11 -0
  350. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.mts +37 -0
  351. package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.mts +75 -0
  352. package/dist/boilerplates/@batijs/ts-rest/bati.config.mjs +17 -0
  353. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +9 -95
  354. package/dist/boilerplates/@batijs/ts-rest/files/asset-package.json.mjs +38 -0
  355. package/dist/boilerplates/@batijs/ts-rest/types/server/ts-rest-handler.d.mts +6 -0
  356. package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/client.d.mts +48 -0
  357. package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/contract.d.mts +36 -0
  358. package/dist/boilerplates/@batijs/universal-deploy/bati.config.mjs +14 -0
  359. package/dist/boilerplates/@batijs/universal-deploy/files/$package.json.js +20 -0
  360. package/dist/boilerplates/@batijs/universal-deploy/files/asset-package.json.mjs +24 -0
  361. package/dist/boilerplates/@batijs/vercel/bati.config.mjs +20 -0
  362. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +5 -71
  363. package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +15 -0
  364. package/dist/boilerplates/@batijs/vercel/files/asset-package.json.mjs +28 -0
  365. package/dist/boilerplates/@batijs/vue/bati.config.mjs +17 -0
  366. package/dist/boilerplates/@batijs/vue/files/$README.md.js +14 -25
  367. package/dist/boilerplates/@batijs/vue/files/$package.json.js +9 -125
  368. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +5 -14
  369. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +10 -19
  370. package/dist/boilerplates/@batijs/vue/files/asset-package.json.mjs +51 -0
  371. package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +11 -13
  372. package/dist/boilerplates/@batijs/vue/types/node_modules/.pnpm/vike-vue@0.9.11_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vike@0.4.257_@cloudflare+worke_095c9730d9ad192bd6a8085361c48586/node_modules/vike-vue/dist/types/VikeHooks.d.mts +17 -0
  373. package/dist/boilerplates/@batijs/vue/types/node_modules/.pnpm/vike-vue@0.9.11_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_vike@0.4.257_@cloudflare+worke_095c9730d9ad192bd6a8085361c48586/node_modules/vike-vue/dist/types/public.d.mts +1 -0
  374. package/dist/boilerplates/@batijs/vue/types/pages/+config.d.mts +6 -0
  375. package/dist/boilerplates/@batijs/vue/types/pages/+onCreateApp.d.mts +5 -0
  376. package/dist/boilerplates/@batijs/vue/types/pages/+onPageTransitionEnd.d.mts +4 -0
  377. package/dist/boilerplates/@batijs/vue/types/pages/+onPageTransitionStart.d.mts +6 -0
  378. package/dist/boilerplates/@batijs/vue/types/pages/star-wars/@id/+data.d.mts +10 -0
  379. package/dist/boilerplates/@batijs/vue/types/pages/star-wars/index/+data.d.mts +9 -0
  380. package/dist/boilerplates/@batijs/vue/types/pages/star-wars/types.d.mts +12 -0
  381. package/dist/boilerplates/@batijs/vue-sentry/bati.config.mjs +14 -0
  382. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +5 -83
  383. package/dist/boilerplates/@batijs/vue-sentry/files/asset-package.json.mjs +30 -0
  384. package/dist/boilerplates/@batijs/vue-sentry/types/sentry.browser.config.d.mts +4 -0
  385. package/dist/boilerplates/boilerplates.json +12 -6
  386. package/dist/index.js +2850 -3939
  387. package/package.json +12 -12
  388. package/dist/boilerplates/@batijs/auth0/bati.config.js +0 -25
  389. package/dist/boilerplates/@batijs/authjs/bati.config.js +0 -20
  390. package/dist/boilerplates/@batijs/authjs/types/server/authjs-handler.d.ts +0 -22
  391. package/dist/boilerplates/@batijs/aws/bati.config.js +0 -31
  392. package/dist/boilerplates/@batijs/aws/types/cdk/bin/infrastructure.d.ts +0 -11
  393. package/dist/boilerplates/@batijs/aws/types/cdk/lib/vike-stack.d.ts +0 -13
  394. package/dist/boilerplates/@batijs/aws/types/tests/aws_handler.spec.d.ts +0 -1
  395. package/dist/boilerplates/@batijs/aws/types/vitest.config.d.ts +0 -2
  396. package/dist/boilerplates/@batijs/biome/bati.config.js +0 -20
  397. package/dist/boilerplates/@batijs/cloudflare/bati.config.js +0 -30
  398. package/dist/boilerplates/@batijs/compiled/bati.config.js +0 -22
  399. package/dist/boilerplates/@batijs/d1/bati.config.js +0 -33
  400. package/dist/boilerplates/@batijs/d1/types/database/d1/helpers.d.ts +0 -5
  401. package/dist/boilerplates/@batijs/d1-kysely/bati.config.js +0 -17
  402. package/dist/boilerplates/@batijs/d1-sqlite/bati.config.js +0 -17
  403. package/dist/boilerplates/@batijs/d1-sqlite/types/database/d1/queries/todos.d.ts +0 -5
  404. package/dist/boilerplates/@batijs/drizzle/bati.config.js +0 -33
  405. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.ts +0 -7
  406. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/todos.d.ts +0 -54
  407. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/schema/todos.d.ts +0 -45
  408. package/dist/boilerplates/@batijs/drizzle/types/drizzle.config.d.ts +0 -3
  409. package/dist/boilerplates/@batijs/eslint/bati.config.js +0 -20
  410. package/dist/boilerplates/@batijs/eslint/types/eslint.config.d.ts +0 -2
  411. package/dist/boilerplates/@batijs/express/bati.config.js +0 -20
  412. package/dist/boilerplates/@batijs/express/types/server/entry.d.ts +0 -3
  413. package/dist/boilerplates/@batijs/fastify/bati.config.js +0 -20
  414. package/dist/boilerplates/@batijs/fastify/types/server/entry.d.ts +0 -3
  415. package/dist/boilerplates/@batijs/google-analytics/bati.config.js +0 -17
  416. package/dist/boilerplates/@batijs/h3/bati.config.js +0 -20
  417. package/dist/boilerplates/@batijs/h3/types/server/entry.d.ts +0 -3
  418. package/dist/boilerplates/@batijs/hono/bati.config.js +0 -20
  419. package/dist/boilerplates/@batijs/hono/types/entry_aws_lambda.d.ts +0 -3
  420. package/dist/boilerplates/@batijs/hono/types/server/entry.d.ts +0 -3
  421. package/dist/boilerplates/@batijs/kysely/bati.config.js +0 -35
  422. package/dist/boilerplates/@batijs/kysely/types/database/kysely/db.d.ts +0 -5
  423. package/dist/boilerplates/@batijs/kysely/types/database/kysely/migrate.d.ts +0 -1
  424. package/dist/boilerplates/@batijs/kysely/types/database/kysely/migrations/001_create_todos_table.d.ts +0 -4
  425. package/dist/boilerplates/@batijs/kysely/types/database/kysely/queries/todos.d.ts +0 -15
  426. package/dist/boilerplates/@batijs/kysely/types/database/kysely/types.d.ts +0 -10
  427. package/dist/boilerplates/@batijs/mantine/bati.config.js +0 -21
  428. package/dist/boilerplates/@batijs/mantine/types/components/Link.d.ts +0 -4
  429. package/dist/boilerplates/@batijs/mantine/types/pages/+Layout.d.ts +0 -4
  430. package/dist/boilerplates/@batijs/oxlint/bati.config.js +0 -17
  431. package/dist/boilerplates/@batijs/photon/bati.config.js +0 -17
  432. package/dist/boilerplates/@batijs/photon/files/$README.md.js +0 -33
  433. package/dist/boilerplates/@batijs/photon/files/$package.json.js +0 -95
  434. package/dist/boilerplates/@batijs/plausible.io/bati.config.js +0 -17
  435. package/dist/boilerplates/@batijs/pnpm/bati.config.js +0 -18
  436. package/dist/boilerplates/@batijs/prettier/bati.config.js +0 -20
  437. package/dist/boilerplates/@batijs/prisma/bati.config.js +0 -32
  438. package/dist/boilerplates/@batijs/react/bati.config.js +0 -20
  439. package/dist/boilerplates/@batijs/react/types/components/Link.d.ts +0 -4
  440. package/dist/boilerplates/@batijs/react/types/pages/+Head.d.ts +0 -1
  441. package/dist/boilerplates/@batijs/react/types/pages/+Layout.d.ts +0 -5
  442. package/dist/boilerplates/@batijs/react/types/pages/+config.d.ts +0 -283
  443. package/dist/boilerplates/@batijs/react/types/pages/+onPageTransitionEnd.d.ts +0 -1
  444. package/dist/boilerplates/@batijs/react/types/pages/+onPageTransitionStart.d.ts +0 -2
  445. package/dist/boilerplates/@batijs/react/types/pages/_error/+Page.d.ts +0 -1
  446. package/dist/boilerplates/@batijs/react/types/pages/index/+Page.d.ts +0 -1
  447. package/dist/boilerplates/@batijs/react/types/pages/index/Counter.d.ts +0 -1
  448. package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+Page.d.ts +0 -1
  449. package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+data.d.ts +0 -6
  450. package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+Page.d.ts +0 -1
  451. package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+data.d.ts +0 -5
  452. package/dist/boilerplates/@batijs/react/types/pages/star-wars/types.d.ts +0 -9
  453. package/dist/boilerplates/@batijs/react/types/pages/todo/+Page.d.ts +0 -1
  454. package/dist/boilerplates/@batijs/react/types/pages/todo/TodoList.d.ts +0 -1
  455. package/dist/boilerplates/@batijs/react-sentry/bati.config.js +0 -17
  456. package/dist/boilerplates/@batijs/react-sentry/types/pages/sentry/+Page.d.ts +0 -1
  457. package/dist/boilerplates/@batijs/react-sentry/types/sentry.browser.config.d.ts +0 -1
  458. package/dist/boilerplates/@batijs/sentry/bati.config.js +0 -25
  459. package/dist/boilerplates/@batijs/shadcn-ui/bati.config.js +0 -17
  460. package/dist/boilerplates/@batijs/shadcn-ui/types/lib/utils.d.ts +0 -2
  461. package/dist/boilerplates/@batijs/shared/bati.config.js +0 -19
  462. package/dist/boilerplates/@batijs/shared/hooks/after.js +0 -28
  463. package/dist/boilerplates/@batijs/shared/types/vite.config.d.ts +0 -2
  464. package/dist/boilerplates/@batijs/shared-db/bati.config.js +0 -17
  465. package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.ts +0 -22
  466. package/dist/boilerplates/@batijs/shared-server/bati.config.js +0 -17
  467. package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +0 -25
  468. package/dist/boilerplates/@batijs/shared-todo/bati.config.js +0 -15
  469. package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+config.d.ts +0 -3
  470. package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+data.d.ts +0 -5
  471. package/dist/boilerplates/@batijs/solid/bati.config.js +0 -17
  472. package/dist/boilerplates/@batijs/solid/types/components/Link.d.ts +0 -4
  473. package/dist/boilerplates/@batijs/solid/types/pages/+Head.d.ts +0 -1
  474. package/dist/boilerplates/@batijs/solid/types/pages/+Layout.d.ts +0 -6
  475. package/dist/boilerplates/@batijs/solid/types/pages/+config.d.ts +0 -193
  476. package/dist/boilerplates/@batijs/solid/types/pages/+onPageTransitionEnd.d.ts +0 -1
  477. package/dist/boilerplates/@batijs/solid/types/pages/+onPageTransitionStart.d.ts +0 -2
  478. package/dist/boilerplates/@batijs/solid/types/pages/_error/+Page.d.ts +0 -1
  479. package/dist/boilerplates/@batijs/solid/types/pages/index/+Page.d.ts +0 -1
  480. package/dist/boilerplates/@batijs/solid/types/pages/index/Counter.d.ts +0 -2
  481. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+Page.d.ts +0 -1
  482. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+data.d.ts +0 -6
  483. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+Page.d.ts +0 -1
  484. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+data.d.ts +0 -5
  485. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/types.d.ts +0 -9
  486. package/dist/boilerplates/@batijs/solid/types/pages/todo/+Page.d.ts +0 -1
  487. package/dist/boilerplates/@batijs/solid/types/pages/todo/TodoList.d.ts +0 -1
  488. package/dist/boilerplates/@batijs/solid-sentry/bati.config.js +0 -17
  489. package/dist/boilerplates/@batijs/solid-sentry/types/pages/sentry/+Page.d.ts +0 -1
  490. package/dist/boilerplates/@batijs/solid-sentry/types/sentry.browser.config.d.ts +0 -1
  491. package/dist/boilerplates/@batijs/sqlite/bati.config.js +0 -25
  492. package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/db.d.ts +0 -2
  493. package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/queries/todos.d.ts +0 -6
  494. package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/schema/all.d.ts +0 -1
  495. package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/schema/todos.d.ts +0 -1
  496. package/dist/boilerplates/@batijs/storybook/bati.config.js +0 -28
  497. package/dist/boilerplates/@batijs/storybook/hooks/after.js +0 -26
  498. package/dist/boilerplates/@batijs/tailwindcss/bati.config.js +0 -22
  499. package/dist/boilerplates/@batijs/telefunc/bati.config.js +0 -17
  500. package/dist/boilerplates/@batijs/telefunc/types/pages/todo/TodoList.telefunc.d.ts +0 -3
  501. package/dist/boilerplates/@batijs/telefunc/types/server/telefunc-handler.d.ts +0 -2
  502. package/dist/boilerplates/@batijs/trpc/bati.config.js +0 -17
  503. package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +0 -6
  504. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +0 -31
  505. package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.ts +0 -70
  506. package/dist/boilerplates/@batijs/ts-rest/bati.config.js +0 -20
  507. package/dist/boilerplates/@batijs/ts-rest/types/server/ts-rest-handler.d.ts +0 -2
  508. package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/client.d.ts +0 -43
  509. package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/contract.d.ts +0 -31
  510. package/dist/boilerplates/@batijs/vercel/bati.config.js +0 -21
  511. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +0 -19
  512. package/dist/boilerplates/@batijs/vue/bati.config.js +0 -20
  513. package/dist/boilerplates/@batijs/vue/types/pages/+config.d.ts +0 -3
  514. package/dist/boilerplates/@batijs/vue/types/pages/+onCreateApp.d.ts +0 -2
  515. package/dist/boilerplates/@batijs/vue/types/pages/+onPageTransitionEnd.d.ts +0 -1
  516. package/dist/boilerplates/@batijs/vue/types/pages/+onPageTransitionStart.d.ts +0 -2
  517. package/dist/boilerplates/@batijs/vue/types/pages/star-wars/@id/+data.d.ts +0 -6
  518. package/dist/boilerplates/@batijs/vue/types/pages/star-wars/index/+data.d.ts +0 -5
  519. package/dist/boilerplates/@batijs/vue/types/pages/star-wars/types.d.ts +0 -9
  520. package/dist/boilerplates/@batijs/vue-sentry/bati.config.js +0 -17
  521. package/dist/boilerplates/@batijs/vue-sentry/types/sentry.browser.config.d.ts +0 -1
  522. package/dist/chunk-CYY44RJP.js +0 -208140
  523. package/dist/chunk-IAWYWZSL.js +0 -42
  524. package/dist/chunk-IHX3I5SM.js +0 -46
  525. package/dist/jiti-PKZMRTZN-BIHN3GUM.js +0 -2981
  526. package/dist/src-5HGZFBZ3-CGUDMVWF.js +0 -468
@@ -1,2981 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as createRequire_BATI_CLI } from 'module';
3
- const require = createRequire_BATI_CLI(import.meta.url);
4
-
5
- import {
6
- m,
7
- n,
8
- o,
9
- q
10
- } from "./chunk-IAWYWZSL.js";
11
- import "./chunk-IHX3I5SM.js";
12
-
13
- // ../core/dist/jiti-PKZMRTZN.js
14
- import { createRequire as BATI_core_createRequire } from "module";
15
- import { fileURLToPath as BATI_fileURLToPath } from "url";
16
- import { dirname as BATI_dirname } from "path";
17
- import { createRequire as Fi } from "module";
18
- var require2 = BATI_core_createRequire(import.meta.url);
19
- var __filename = BATI_fileURLToPath(import.meta.url);
20
- var __dirname = BATI_dirname(__filename);
21
- var Bi = o((Or, ji) => {
22
- "use strict";
23
- (() => {
24
- var Y = { "./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive": function(T) {
25
- function A(j) {
26
- return Promise.resolve().then(function() {
27
- var bt = new Error("Cannot find module '" + j + "'");
28
- throw bt.code = "MODULE_NOT_FOUND", bt;
29
- });
30
- }
31
- A.keys = () => [], A.resolve = A, A.id = "./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive", T.exports = A;
32
- } }, nt = {};
33
- function H(T) {
34
- var A = nt[T];
35
- if (A !== void 0) return A.exports;
36
- var j = nt[T] = { exports: {} };
37
- return Y[T](j, j.exports, H), j.exports;
38
- }
39
- H.n = (T) => {
40
- var A = T && T.__esModule ? () => T.default : () => T;
41
- return H.d(A, { a: A }), A;
42
- }, H.d = (T, A) => {
43
- for (var j in A) H.o(A, j) && !H.o(T, j) && Object.defineProperty(T, j, { enumerable: true, get: A[j] });
44
- }, H.o = (T, A) => Object.prototype.hasOwnProperty.call(T, A);
45
- var Se = {};
46
- (() => {
47
- "use strict";
48
- H.d(Se, { default: () => Mi });
49
- let T = m("os");
50
- var A = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], j = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], bt = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", Ht = { 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments" }, Kt = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", qi = { 5: Kt, "5module": Kt + " export import", 6: Kt + " const class extends export import super" }, Wi = /^in(stanceof)?$/, Gi = new RegExp("[" + bt + "]"), Hi = new RegExp("[" + bt + "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65]");
51
- function zt(t, e) {
52
- for (var i = 65536, s = 0; s < e.length; s += 2) {
53
- if ((i += e[s]) > t) return false;
54
- if ((i += e[s + 1]) >= t) return true;
55
- }
56
- return false;
57
- }
58
- function K(t, e) {
59
- return t < 65 ? t === 36 : t < 91 || (t < 97 ? t === 95 : t < 123 || (t <= 65535 ? t >= 170 && Gi.test(String.fromCharCode(t)) : e !== false && zt(t, j)));
60
- }
61
- function X(t, e) {
62
- return t < 48 ? t === 36 : t < 58 || !(t < 65) && (t < 91 || (t < 97 ? t === 95 : t < 123 || (t <= 65535 ? t >= 170 && Hi.test(String.fromCharCode(t)) : e !== false && (zt(t, j) || zt(t, A)))));
63
- }
64
- var S = function(t, e) {
65
- e === void 0 && (e = {}), this.label = t, this.keyword = e.keyword, this.beforeExpr = !!e.beforeExpr, this.startsExpr = !!e.startsExpr, this.isLoop = !!e.isLoop, this.isAssign = !!e.isAssign, this.prefix = !!e.prefix, this.postfix = !!e.postfix, this.binop = e.binop || null, this.updateContext = null;
66
- };
67
- function F(t, e) {
68
- return new S(t, { beforeExpr: true, binop: e });
69
- }
70
- var $ = { beforeExpr: true }, U = { startsExpr: true }, Jt = {};
71
- function b(t, e) {
72
- return e === void 0 && (e = {}), e.keyword = t, Jt[t] = new S(t, e);
73
- }
74
- var n2 = { num: new S("num", U), regexp: new S("regexp", U), string: new S("string", U), name: new S("name", U), privateId: new S("privateId", U), eof: new S("eof"), bracketL: new S("[", { beforeExpr: true, startsExpr: true }), bracketR: new S("]"), braceL: new S("{", { beforeExpr: true, startsExpr: true }), braceR: new S("}"), parenL: new S("(", { beforeExpr: true, startsExpr: true }), parenR: new S(")"), comma: new S(",", $), semi: new S(";", $), colon: new S(":", $), dot: new S("."), question: new S("?", $), questionDot: new S("?."), arrow: new S("=>", $), template: new S("template"), invalidTemplate: new S("invalidTemplate"), ellipsis: new S("...", $), backQuote: new S("`", U), dollarBraceL: new S("${", { beforeExpr: true, startsExpr: true }), eq: new S("=", { beforeExpr: true, isAssign: true }), assign: new S("_=", { beforeExpr: true, isAssign: true }), incDec: new S("++/--", { prefix: true, postfix: true, startsExpr: true }), prefix: new S("!/~", { beforeExpr: true, prefix: true, startsExpr: true }), logicalOR: F("||", 1), logicalAND: F("&&", 2), bitwiseOR: F("|", 3), bitwiseXOR: F("^", 4), bitwiseAND: F("&", 5), equality: F("==/!=/===/!==", 6), relational: F("</>/<=/>=", 7), bitShift: F("<</>>/>>>", 8), plusMin: new S("+/-", { beforeExpr: true, binop: 9, prefix: true, startsExpr: true }), modulo: F("%", 10), star: F("*", 10), slash: F("/", 10), starstar: new S("**", { beforeExpr: true }), coalesce: F("??", 1), _break: b("break"), _case: b("case", $), _catch: b("catch"), _continue: b("continue"), _debugger: b("debugger"), _default: b("default", $), _do: b("do", { isLoop: true, beforeExpr: true }), _else: b("else", $), _finally: b("finally"), _for: b("for", { isLoop: true }), _function: b("function", U), _if: b("if"), _return: b("return", $), _switch: b("switch"), _throw: b("throw", $), _try: b("try"), _var: b("var"), _const: b("const"), _while: b("while", { isLoop: true }), _with: b("with"), _new: b("new", { beforeExpr: true, startsExpr: true }), _this: b("this", U), _super: b("super", U), _class: b("class", U), _extends: b("extends", $), _export: b("export"), _import: b("import", U), _null: b("null", U), _true: b("true", U), _false: b("false", U), _in: b("in", { beforeExpr: true, binop: 7 }), _instanceof: b("instanceof", { beforeExpr: true, binop: 7 }), _typeof: b("typeof", { beforeExpr: true, prefix: true, startsExpr: true }), _void: b("void", { beforeExpr: true, prefix: true, startsExpr: true }), _delete: b("delete", { beforeExpr: true, prefix: true, startsExpr: true }) }, M = /\r\n?|\n|\u2028|\u2029/, Ki = new RegExp(M.source, "g");
75
- function ut(t) {
76
- return t === 10 || t === 13 || t === 8232 || t === 8233;
77
- }
78
- function Ce(t, e, i) {
79
- i === void 0 && (i = t.length);
80
- for (var s = e; s < i; s++) {
81
- var r = t.charCodeAt(s);
82
- if (ut(r)) return s < i - 1 && r === 13 && t.charCodeAt(s + 1) === 10 ? s + 2 : s + 1;
83
- }
84
- return -1;
85
- }
86
- var Ie = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, L = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ke = Object.prototype, zi = ke.hasOwnProperty, Ji = ke.toString, ft = Object.hasOwn || function(t, e) {
87
- return zi.call(t, e);
88
- }, we = Array.isArray || function(t) {
89
- return Ji.call(t) === "[object Array]";
90
- }, Re = /* @__PURE__ */ Object.create(null);
91
- function tt(t) {
92
- return Re[t] || (Re[t] = new RegExp("^(?:" + t.replace(/ /g, "|") + ")$"));
93
- }
94
- function Q(t) {
95
- return t <= 65535 ? String.fromCharCode(t) : (t -= 65536, String.fromCharCode(55296 + (t >> 10), 56320 + (1023 & t)));
96
- }
97
- var Yi = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, St = function(t, e) {
98
- this.line = t, this.column = e;
99
- };
100
- St.prototype.offset = function(t) {
101
- return new St(this.line, this.column + t);
102
- };
103
- var Pt = function(t, e, i) {
104
- this.start = e, this.end = i, t.sourceFile !== null && (this.source = t.sourceFile);
105
- };
106
- function Ae(t, e) {
107
- for (var i = 1, s = 0; ; ) {
108
- var r = Ce(t, s, e);
109
- if (r < 0) return new St(i, e - s);
110
- ++i, s = r;
111
- }
112
- }
113
- var Yt = { ecmaVersion: null, sourceType: "script", onInsertedSemicolon: null, onTrailingComma: null, allowReserved: null, allowReturnOutsideFunction: false, allowImportExportEverywhere: false, allowAwaitOutsideFunction: null, allowSuperOutsideMethod: null, allowHashBang: false, checkPrivateFields: true, locations: false, onToken: null, onComment: null, ranges: false, program: null, sourceFile: null, directSourceFile: null, preserveParens: false }, Te = false;
114
- function Qi(t) {
115
- var e = {};
116
- for (var i in Yt) e[i] = t && ft(t, i) ? t[i] : Yt[i];
117
- if (e.ecmaVersion === "latest" ? e.ecmaVersion = 1e8 : e.ecmaVersion == null ? (!Te && typeof console == "object" && console.warn && (Te = true, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
118
- Defaulting to 2020, but this will stop working in the future.`)), e.ecmaVersion = 11) : e.ecmaVersion >= 2015 && (e.ecmaVersion -= 2009), e.allowReserved == null && (e.allowReserved = e.ecmaVersion < 5), t && t.allowHashBang != null || (e.allowHashBang = e.ecmaVersion >= 14), we(e.onToken)) {
119
- var s = e.onToken;
120
- e.onToken = function(r) {
121
- return s.push(r);
122
- };
123
- }
124
- return we(e.onComment) && (e.onComment = /* @__PURE__ */ (function(r, a) {
125
- return function(o2, h, c, l, p, f) {
126
- var u = { type: o2 ? "Block" : "Line", value: h, start: c, end: l };
127
- r.locations && (u.loc = new Pt(this, p, f)), r.ranges && (u.range = [c, l]), a.push(u);
128
- };
129
- })(e, e.onComment)), e;
130
- }
131
- var Zi = 256, Pe = 259;
132
- function Qt(t, e) {
133
- return 2 | (t ? 4 : 0) | (e ? 8 : 0);
134
- }
135
- var N = function(t, e, i) {
136
- this.options = t = Qi(t), this.sourceFile = t.sourceFile, this.keywords = tt(qi[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
137
- var s = "";
138
- t.allowReserved !== true && (s = Ht[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (s += " await")), this.reservedWords = tt(s);
139
- var r = (s ? s + " " : "") + Ht.strict;
140
- this.reservedWordsStrict = tt(r), this.reservedWordsStrictBind = tt(r + " " + Ht.strictBind), this.input = String(e), this.containsEsc = false, i ? (this.pos = i, this.lineStart = this.input.lastIndexOf(`
141
- `, i - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(M).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = n2.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = true, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = false, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(1), this.regexpState = null, this.privateNameStack = [];
142
- }, z = { inFunction: { configurable: true }, inGenerator: { configurable: true }, inAsync: { configurable: true }, canAwait: { configurable: true }, allowSuper: { configurable: true }, allowDirectSuper: { configurable: true }, treatFunctionsAsVar: { configurable: true }, allowNewDotTarget: { configurable: true }, inClassStaticBlock: { configurable: true } };
143
- N.prototype.parse = function() {
144
- var t = this.options.program || this.startNode();
145
- return this.nextToken(), this.parseTopLevel(t);
146
- }, z.inFunction.get = function() {
147
- return (2 & this.currentVarScope().flags) > 0;
148
- }, z.inGenerator.get = function() {
149
- return (8 & this.currentVarScope().flags) > 0;
150
- }, z.inAsync.get = function() {
151
- return (4 & this.currentVarScope().flags) > 0;
152
- }, z.canAwait.get = function() {
153
- for (var t = this.scopeStack.length - 1; t >= 0; t--) {
154
- var e = this.scopeStack[t].flags;
155
- if (768 & e) return false;
156
- if (2 & e) return (4 & e) > 0;
157
- }
158
- return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
159
- }, z.allowSuper.get = function() {
160
- return (64 & this.currentThisScope().flags) > 0 || this.options.allowSuperOutsideMethod;
161
- }, z.allowDirectSuper.get = function() {
162
- return (128 & this.currentThisScope().flags) > 0;
163
- }, z.treatFunctionsAsVar.get = function() {
164
- return this.treatFunctionsAsVarInScope(this.currentScope());
165
- }, z.allowNewDotTarget.get = function() {
166
- for (var t = this.scopeStack.length - 1; t >= 0; t--) {
167
- var e = this.scopeStack[t].flags;
168
- if (768 & e || 2 & e && !(16 & e)) return true;
169
- }
170
- return false;
171
- }, z.inClassStaticBlock.get = function() {
172
- return (this.currentVarScope().flags & Zi) > 0;
173
- }, N.extend = function() {
174
- for (var t = [], e = arguments.length; e--; ) t[e] = arguments[e];
175
- for (var i = this, s = 0; s < t.length; s++) i = t[s](i);
176
- return i;
177
- }, N.parse = function(t, e) {
178
- return new this(e, t).parse();
179
- }, N.parseExpressionAt = function(t, e, i) {
180
- var s = new this(i, t, e);
181
- return s.nextToken(), s.parseExpression();
182
- }, N.tokenizer = function(t, e) {
183
- return new this(e, t);
184
- }, Object.defineProperties(N.prototype, z);
185
- var O = N.prototype, Xi = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
186
- O.strictDirective = function(t) {
187
- if (this.options.ecmaVersion < 5) return false;
188
- for (; ; ) {
189
- L.lastIndex = t, t += L.exec(this.input)[0].length;
190
- var e = Xi.exec(this.input.slice(t));
191
- if (!e) return false;
192
- if ((e[1] || e[2]) === "use strict") {
193
- L.lastIndex = t + e[0].length;
194
- var i = L.exec(this.input), s = i.index + i[0].length, r = this.input.charAt(s);
195
- return r === ";" || r === "}" || M.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "=");
196
- }
197
- t += e[0].length, L.lastIndex = t, t += L.exec(this.input)[0].length, this.input[t] === ";" && t++;
198
- }
199
- }, O.eat = function(t) {
200
- return this.type === t && (this.next(), true);
201
- }, O.isContextual = function(t) {
202
- return this.type === n2.name && this.value === t && !this.containsEsc;
203
- }, O.eatContextual = function(t) {
204
- return !!this.isContextual(t) && (this.next(), true);
205
- }, O.expectContextual = function(t) {
206
- this.eatContextual(t) || this.unexpected();
207
- }, O.canInsertSemicolon = function() {
208
- return this.type === n2.eof || this.type === n2.braceR || M.test(this.input.slice(this.lastTokEnd, this.start));
209
- }, O.insertSemicolon = function() {
210
- if (this.canInsertSemicolon()) return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), true;
211
- }, O.semicolon = function() {
212
- this.eat(n2.semi) || this.insertSemicolon() || this.unexpected();
213
- }, O.afterTrailingComma = function(t, e) {
214
- if (this.type === t) return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), e || this.next(), true;
215
- }, O.expect = function(t) {
216
- this.eat(t) || this.unexpected();
217
- }, O.unexpected = function(t) {
218
- this.raise(t ?? this.start, "Unexpected token");
219
- };
220
- var Nt = function() {
221
- this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
222
- };
223
- O.checkPatternErrors = function(t, e) {
224
- if (t) {
225
- t.trailingComma > -1 && this.raiseRecoverable(t.trailingComma, "Comma is not permitted after the rest element");
226
- var i = e ? t.parenthesizedAssign : t.parenthesizedBind;
227
- i > -1 && this.raiseRecoverable(i, e ? "Assigning to rvalue" : "Parenthesized pattern");
228
- }
229
- }, O.checkExpressionErrors = function(t, e) {
230
- if (!t) return false;
231
- var i = t.shorthandAssign, s = t.doubleProto;
232
- if (!e) return i >= 0 || s >= 0;
233
- i >= 0 && this.raise(i, "Shorthand property assignments are valid only in destructuring patterns"), s >= 0 && this.raiseRecoverable(s, "Redefinition of __proto__ property");
234
- }, O.checkYieldAwaitInDefaultParams = function() {
235
- this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos) && this.raise(this.yieldPos, "Yield expression cannot be a default value"), this.awaitPos && this.raise(this.awaitPos, "Await expression cannot be a default value");
236
- }, O.isSimpleAssignTarget = function(t) {
237
- return t.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(t.expression) : t.type === "Identifier" || t.type === "MemberExpression";
238
- };
239
- var m2 = N.prototype;
240
- m2.parseTopLevel = function(t) {
241
- var e = /* @__PURE__ */ Object.create(null);
242
- for (t.body || (t.body = []); this.type !== n2.eof; ) {
243
- var i = this.parseStatement(null, true, e);
244
- t.body.push(i);
245
- }
246
- if (this.inModule) for (var s = 0, r = Object.keys(this.undefinedExports); s < r.length; s += 1) {
247
- var a = r[s];
248
- this.raiseRecoverable(this.undefinedExports[a].start, "Export '" + a + "' is not defined");
249
- }
250
- return this.adaptDirectivePrologue(t.body), this.next(), t.sourceType = this.options.sourceType, this.finishNode(t, "Program");
251
- };
252
- var Zt = { kind: "loop" }, ts = { kind: "switch" };
253
- m2.isLet = function(t) {
254
- if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return false;
255
- L.lastIndex = this.pos;
256
- var e = L.exec(this.input), i = this.pos + e[0].length, s = this.input.charCodeAt(i);
257
- if (s === 91 || s === 92) return true;
258
- if (t) return false;
259
- if (s === 123 || s > 55295 && s < 56320) return true;
260
- if (K(s, true)) {
261
- for (var r = i + 1; X(s = this.input.charCodeAt(r), true); ) ++r;
262
- if (s === 92 || s > 55295 && s < 56320) return true;
263
- var a = this.input.slice(i, r);
264
- if (!Wi.test(a)) return true;
265
- }
266
- return false;
267
- }, m2.isAsyncFunction = function() {
268
- if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return false;
269
- L.lastIndex = this.pos;
270
- var t, e = L.exec(this.input), i = this.pos + e[0].length;
271
- return !(M.test(this.input.slice(this.pos, i)) || this.input.slice(i, i + 8) !== "function" || i + 8 !== this.input.length && (X(t = this.input.charCodeAt(i + 8)) || t > 55295 && t < 56320));
272
- }, m2.isUsingKeyword = function(t, e) {
273
- if (this.options.ecmaVersion < 17 || !this.isContextual(t ? "await" : "using")) return false;
274
- L.lastIndex = this.pos;
275
- var i = L.exec(this.input), s = this.pos + i[0].length;
276
- if (M.test(this.input.slice(this.pos, s))) return false;
277
- if (t) {
278
- var r, a = s + 5;
279
- if (this.input.slice(s, a) !== "using" || a === this.input.length || X(r = this.input.charCodeAt(a)) || r > 55295 && r < 56320) return false;
280
- L.lastIndex = a;
281
- var o2 = L.exec(this.input);
282
- if (o2 && M.test(this.input.slice(a, a + o2[0].length))) return false;
283
- }
284
- if (e) {
285
- var h, c = s + 2;
286
- if (!(this.input.slice(s, c) !== "of" || c !== this.input.length && (X(h = this.input.charCodeAt(c)) || h > 55295 && h < 56320))) return false;
287
- }
288
- var l = this.input.charCodeAt(s);
289
- return K(l, true) || l === 92;
290
- }, m2.isAwaitUsing = function(t) {
291
- return this.isUsingKeyword(true, t);
292
- }, m2.isUsing = function(t) {
293
- return this.isUsingKeyword(false, t);
294
- }, m2.parseStatement = function(t, e, i) {
295
- var s, r = this.type, a = this.startNode();
296
- switch (this.isLet(t) && (r = n2._var, s = "let"), r) {
297
- case n2._break:
298
- case n2._continue:
299
- return this.parseBreakContinueStatement(a, r.keyword);
300
- case n2._debugger:
301
- return this.parseDebuggerStatement(a);
302
- case n2._do:
303
- return this.parseDoStatement(a);
304
- case n2._for:
305
- return this.parseForStatement(a);
306
- case n2._function:
307
- return t && (this.strict || t !== "if" && t !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(a, false, !t);
308
- case n2._class:
309
- return t && this.unexpected(), this.parseClass(a, true);
310
- case n2._if:
311
- return this.parseIfStatement(a);
312
- case n2._return:
313
- return this.parseReturnStatement(a);
314
- case n2._switch:
315
- return this.parseSwitchStatement(a);
316
- case n2._throw:
317
- return this.parseThrowStatement(a);
318
- case n2._try:
319
- return this.parseTryStatement(a);
320
- case n2._const:
321
- case n2._var:
322
- return s = s || this.value, t && s !== "var" && this.unexpected(), this.parseVarStatement(a, s);
323
- case n2._while:
324
- return this.parseWhileStatement(a);
325
- case n2._with:
326
- return this.parseWithStatement(a);
327
- case n2.braceL:
328
- return this.parseBlock(true, a);
329
- case n2.semi:
330
- return this.parseEmptyStatement(a);
331
- case n2._export:
332
- case n2._import:
333
- if (this.options.ecmaVersion > 10 && r === n2._import) {
334
- L.lastIndex = this.pos;
335
- var o2 = L.exec(this.input), h = this.pos + o2[0].length, c = this.input.charCodeAt(h);
336
- if (c === 40 || c === 46) return this.parseExpressionStatement(a, this.parseExpression());
337
- }
338
- return this.options.allowImportExportEverywhere || (e || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), r === n2._import ? this.parseImport(a) : this.parseExport(a, i);
339
- default:
340
- if (this.isAsyncFunction()) return t && this.unexpected(), this.next(), this.parseFunctionStatement(a, true, !t);
341
- var l = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
342
- if (l) return e && this.options.sourceType === "script" && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), l === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(a, false, l), this.semicolon(), this.finishNode(a, "VariableDeclaration");
343
- var p = this.value, f = this.parseExpression();
344
- return r === n2.name && f.type === "Identifier" && this.eat(n2.colon) ? this.parseLabeledStatement(a, p, f, t) : this.parseExpressionStatement(a, f);
345
- }
346
- }, m2.parseBreakContinueStatement = function(t, e) {
347
- var i = e === "break";
348
- this.next(), this.eat(n2.semi) || this.insertSemicolon() ? t.label = null : this.type !== n2.name ? this.unexpected() : (t.label = this.parseIdent(), this.semicolon());
349
- for (var s = 0; s < this.labels.length; ++s) {
350
- var r = this.labels[s];
351
- if ((t.label == null || r.name === t.label.name) && (r.kind != null && (i || r.kind === "loop") || t.label && i)) break;
352
- }
353
- return s === this.labels.length && this.raise(t.start, "Unsyntactic " + e), this.finishNode(t, i ? "BreakStatement" : "ContinueStatement");
354
- }, m2.parseDebuggerStatement = function(t) {
355
- return this.next(), this.semicolon(), this.finishNode(t, "DebuggerStatement");
356
- }, m2.parseDoStatement = function(t) {
357
- return this.next(), this.labels.push(Zt), t.body = this.parseStatement("do"), this.labels.pop(), this.expect(n2._while), t.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(n2.semi) : this.semicolon(), this.finishNode(t, "DoWhileStatement");
358
- }, m2.parseForStatement = function(t) {
359
- this.next();
360
- var e = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
361
- if (this.labels.push(Zt), this.enterScope(0), this.expect(n2.parenL), this.type === n2.semi) return e > -1 && this.unexpected(e), this.parseFor(t, null);
362
- var i = this.isLet();
363
- if (this.type === n2._var || this.type === n2._const || i) {
364
- var s = this.startNode(), r = i ? "let" : this.value;
365
- return this.next(), this.parseVar(s, true, r), this.finishNode(s, "VariableDeclaration"), this.parseForAfterInit(t, s, e);
366
- }
367
- var a = this.isContextual("let"), o2 = false, h = this.isUsing(true) ? "using" : this.isAwaitUsing(true) ? "await using" : null;
368
- if (h) {
369
- var c = this.startNode();
370
- return this.next(), h === "await using" && this.next(), this.parseVar(c, true, h), this.finishNode(c, "VariableDeclaration"), this.parseForAfterInit(t, c, e);
371
- }
372
- var l = this.containsEsc, p = new Nt(), f = this.start, u = e > -1 ? this.parseExprSubscripts(p, "await") : this.parseExpression(true, p);
373
- return this.type === n2._in || (o2 = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (e > -1 ? (this.type === n2._in && this.unexpected(e), t.await = true) : o2 && this.options.ecmaVersion >= 8 && (u.start !== f || l || u.type !== "Identifier" || u.name !== "async" ? this.options.ecmaVersion >= 9 && (t.await = false) : this.unexpected()), a && o2 && this.raise(u.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(u, false, p), this.checkLValPattern(u), this.parseForIn(t, u)) : (this.checkExpressionErrors(p, true), e > -1 && this.unexpected(e), this.parseFor(t, u));
374
- }, m2.parseForAfterInit = function(t, e, i) {
375
- return (this.type === n2._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && e.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === n2._in ? i > -1 && this.unexpected(i) : t.await = i > -1), this.parseForIn(t, e)) : (i > -1 && this.unexpected(i), this.parseFor(t, e));
376
- }, m2.parseFunctionStatement = function(t, e, i) {
377
- return this.next(), this.parseFunction(t, Ct | (i ? 0 : Xt), false, e);
378
- }, m2.parseIfStatement = function(t) {
379
- return this.next(), t.test = this.parseParenExpression(), t.consequent = this.parseStatement("if"), t.alternate = this.eat(n2._else) ? this.parseStatement("if") : null, this.finishNode(t, "IfStatement");
380
- }, m2.parseReturnStatement = function(t) {
381
- return this.inFunction || this.options.allowReturnOutsideFunction || this.raise(this.start, "'return' outside of function"), this.next(), this.eat(n2.semi) || this.insertSemicolon() ? t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "ReturnStatement");
382
- }, m2.parseSwitchStatement = function(t) {
383
- var e;
384
- this.next(), t.discriminant = this.parseParenExpression(), t.cases = [], this.expect(n2.braceL), this.labels.push(ts), this.enterScope(0);
385
- for (var i = false; this.type !== n2.braceR; ) if (this.type === n2._case || this.type === n2._default) {
386
- var s = this.type === n2._case;
387
- e && this.finishNode(e, "SwitchCase"), t.cases.push(e = this.startNode()), e.consequent = [], this.next(), s ? e.test = this.parseExpression() : (i && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), i = true, e.test = null), this.expect(n2.colon);
388
- } else e || this.unexpected(), e.consequent.push(this.parseStatement(null));
389
- return this.exitScope(), e && this.finishNode(e, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(t, "SwitchStatement");
390
- }, m2.parseThrowStatement = function(t) {
391
- return this.next(), M.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), t.argument = this.parseExpression(), this.semicolon(), this.finishNode(t, "ThrowStatement");
392
- };
393
- var es = [];
394
- m2.parseCatchClauseParam = function() {
395
- var t = this.parseBindingAtom(), e = t.type === "Identifier";
396
- return this.enterScope(e ? 32 : 0), this.checkLValPattern(t, e ? 4 : 2), this.expect(n2.parenR), t;
397
- }, m2.parseTryStatement = function(t) {
398
- if (this.next(), t.block = this.parseBlock(), t.handler = null, this.type === n2._catch) {
399
- var e = this.startNode();
400
- this.next(), this.eat(n2.parenL) ? e.param = this.parseCatchClauseParam() : (this.options.ecmaVersion < 10 && this.unexpected(), e.param = null, this.enterScope(0)), e.body = this.parseBlock(false), this.exitScope(), t.handler = this.finishNode(e, "CatchClause");
401
- }
402
- return t.finalizer = this.eat(n2._finally) ? this.parseBlock() : null, t.handler || t.finalizer || this.raise(t.start, "Missing catch or finally clause"), this.finishNode(t, "TryStatement");
403
- }, m2.parseVarStatement = function(t, e, i) {
404
- return this.next(), this.parseVar(t, false, e, i), this.semicolon(), this.finishNode(t, "VariableDeclaration");
405
- }, m2.parseWhileStatement = function(t) {
406
- return this.next(), t.test = this.parseParenExpression(), this.labels.push(Zt), t.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(t, "WhileStatement");
407
- }, m2.parseWithStatement = function(t) {
408
- return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), t.object = this.parseParenExpression(), t.body = this.parseStatement("with"), this.finishNode(t, "WithStatement");
409
- }, m2.parseEmptyStatement = function(t) {
410
- return this.next(), this.finishNode(t, "EmptyStatement");
411
- }, m2.parseLabeledStatement = function(t, e, i, s) {
412
- for (var r = 0, a = this.labels; r < a.length; r += 1) a[r].name === e && this.raise(i.start, "Label '" + e + "' is already declared");
413
- for (var o2 = this.type.isLoop ? "loop" : this.type === n2._switch ? "switch" : null, h = this.labels.length - 1; h >= 0; h--) {
414
- var c = this.labels[h];
415
- if (c.statementStart !== t.start) break;
416
- c.statementStart = this.start, c.kind = o2;
417
- }
418
- return this.labels.push({ name: e, kind: o2, statementStart: this.start }), t.body = this.parseStatement(s ? s.indexOf("label") === -1 ? s + "label" : s : "label"), this.labels.pop(), t.label = i, this.finishNode(t, "LabeledStatement");
419
- }, m2.parseExpressionStatement = function(t, e) {
420
- return t.expression = e, this.semicolon(), this.finishNode(t, "ExpressionStatement");
421
- }, m2.parseBlock = function(t, e, i) {
422
- for (t === void 0 && (t = true), e === void 0 && (e = this.startNode()), e.body = [], this.expect(n2.braceL), t && this.enterScope(0); this.type !== n2.braceR; ) {
423
- var s = this.parseStatement(null);
424
- e.body.push(s);
425
- }
426
- return i && (this.strict = false), this.next(), t && this.exitScope(), this.finishNode(e, "BlockStatement");
427
- }, m2.parseFor = function(t, e) {
428
- return t.init = e, this.expect(n2.semi), t.test = this.type === n2.semi ? null : this.parseExpression(), this.expect(n2.semi), t.update = this.type === n2.parenR ? null : this.parseExpression(), this.expect(n2.parenR), t.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(t, "ForStatement");
429
- }, m2.parseForIn = function(t, e) {
430
- var i = this.type === n2._in;
431
- return this.next(), e.type === "VariableDeclaration" && e.declarations[0].init != null && (!i || this.options.ecmaVersion < 8 || this.strict || e.kind !== "var" || e.declarations[0].id.type !== "Identifier") && this.raise(e.start, (i ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"), t.left = e, t.right = i ? this.parseExpression() : this.parseMaybeAssign(), this.expect(n2.parenR), t.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(t, i ? "ForInStatement" : "ForOfStatement");
432
- }, m2.parseVar = function(t, e, i, s) {
433
- for (t.declarations = [], t.kind = i; ; ) {
434
- var r = this.startNode();
435
- if (this.parseVarId(r, i), this.eat(n2.eq) ? r.init = this.parseMaybeAssign(e) : s || i !== "const" || this.type === n2._in || this.options.ecmaVersion >= 6 && this.isContextual("of") ? s || i !== "using" && i !== "await using" || !(this.options.ecmaVersion >= 17) || this.type === n2._in || this.isContextual("of") ? s || r.id.type === "Identifier" || e && (this.type === n2._in || this.isContextual("of")) ? r.init = null : this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : this.raise(this.lastTokEnd, "Missing initializer in " + i + " declaration") : this.unexpected(), t.declarations.push(this.finishNode(r, "VariableDeclarator")), !this.eat(n2.comma)) break;
436
- }
437
- return t;
438
- }, m2.parseVarId = function(t, e) {
439
- t.id = e === "using" || e === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(t.id, e === "var" ? 1 : 2, false);
440
- };
441
- var Ct = 1, Xt = 2;
442
- function is(t, e) {
443
- var i = e.key.name, s = t[i], r = "true";
444
- return e.type !== "MethodDefinition" || e.kind !== "get" && e.kind !== "set" || (r = (e.static ? "s" : "i") + e.kind), s === "iget" && r === "iset" || s === "iset" && r === "iget" || s === "sget" && r === "sset" || s === "sset" && r === "sget" ? (t[i] = "true", false) : !!s || (t[i] = r, false);
445
- }
446
- function Lt(t, e) {
447
- var i = t.computed, s = t.key;
448
- return !i && (s.type === "Identifier" && s.name === e || s.type === "Literal" && s.value === e);
449
- }
450
- m2.parseFunction = function(t, e, i, s, r) {
451
- this.initFunction(t), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === n2.star && e & Xt && this.unexpected(), t.generator = this.eat(n2.star)), this.options.ecmaVersion >= 8 && (t.async = !!s), e & Ct && (t.id = 4 & e && this.type !== n2.name ? null : this.parseIdent(), !t.id || e & Xt || this.checkLValSimple(t.id, this.strict || t.generator || t.async ? this.treatFunctionsAsVar ? 1 : 2 : 3));
452
- var a = this.yieldPos, o2 = this.awaitPos, h = this.awaitIdentPos;
453
- return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Qt(t.async, t.generator)), e & Ct || (t.id = this.type === n2.name ? this.parseIdent() : null), this.parseFunctionParams(t), this.parseFunctionBody(t, i, false, r), this.yieldPos = a, this.awaitPos = o2, this.awaitIdentPos = h, this.finishNode(t, e & Ct ? "FunctionDeclaration" : "FunctionExpression");
454
- }, m2.parseFunctionParams = function(t) {
455
- this.expect(n2.parenL), t.params = this.parseBindingList(n2.parenR, false, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
456
- }, m2.parseClass = function(t, e) {
457
- this.next();
458
- var i = this.strict;
459
- this.strict = true, this.parseClassId(t, e), this.parseClassSuper(t);
460
- var s = this.enterClassBody(), r = this.startNode(), a = false;
461
- for (r.body = [], this.expect(n2.braceL); this.type !== n2.braceR; ) {
462
- var o2 = this.parseClassElement(t.superClass !== null);
463
- o2 && (r.body.push(o2), o2.type === "MethodDefinition" && o2.kind === "constructor" ? (a && this.raiseRecoverable(o2.start, "Duplicate constructor in the same class"), a = true) : o2.key && o2.key.type === "PrivateIdentifier" && is(s, o2) && this.raiseRecoverable(o2.key.start, "Identifier '#" + o2.key.name + "' has already been declared"));
464
- }
465
- return this.strict = i, this.next(), t.body = this.finishNode(r, "ClassBody"), this.exitClassBody(), this.finishNode(t, e ? "ClassDeclaration" : "ClassExpression");
466
- }, m2.parseClassElement = function(t) {
467
- if (this.eat(n2.semi)) return null;
468
- var e = this.options.ecmaVersion, i = this.startNode(), s = "", r = false, a = false, o2 = "method", h = false;
469
- if (this.eatContextual("static")) {
470
- if (e >= 13 && this.eat(n2.braceL)) return this.parseClassStaticBlock(i), i;
471
- this.isClassElementNameStart() || this.type === n2.star ? h = true : s = "static";
472
- }
473
- if (i.static = h, !s && e >= 8 && this.eatContextual("async") && (!this.isClassElementNameStart() && this.type !== n2.star || this.canInsertSemicolon() ? s = "async" : a = true), !s && (e >= 9 || !a) && this.eat(n2.star) && (r = true), !s && !a && !r) {
474
- var c = this.value;
475
- (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? o2 = c : s = c);
476
- }
477
- if (s ? (i.computed = false, i.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), i.key.name = s, this.finishNode(i.key, "Identifier")) : this.parseClassElementName(i), e < 13 || this.type === n2.parenL || o2 !== "method" || r || a) {
478
- var l = !i.static && Lt(i, "constructor"), p = l && t;
479
- l && o2 !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = l ? "constructor" : o2, this.parseClassMethod(i, r, a, p);
480
- } else this.parseClassField(i);
481
- return i;
482
- }, m2.isClassElementNameStart = function() {
483
- return this.type === n2.name || this.type === n2.privateId || this.type === n2.num || this.type === n2.string || this.type === n2.bracketL || this.type.keyword;
484
- }, m2.parseClassElementName = function(t) {
485
- this.type === n2.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), t.computed = false, t.key = this.parsePrivateIdent()) : this.parsePropertyName(t);
486
- }, m2.parseClassMethod = function(t, e, i, s) {
487
- var r = t.key;
488
- t.kind === "constructor" ? (e && this.raise(r.start, "Constructor can't be a generator"), i && this.raise(r.start, "Constructor can't be an async method")) : t.static && Lt(t, "prototype") && this.raise(r.start, "Classes may not have a static property named prototype");
489
- var a = t.value = this.parseMethod(e, i, s);
490
- return t.kind === "get" && a.params.length !== 0 && this.raiseRecoverable(a.start, "getter should have no params"), t.kind === "set" && a.params.length !== 1 && this.raiseRecoverable(a.start, "setter should have exactly one param"), t.kind === "set" && a.params[0].type === "RestElement" && this.raiseRecoverable(a.params[0].start, "Setter cannot use rest params"), this.finishNode(t, "MethodDefinition");
491
- }, m2.parseClassField = function(t) {
492
- return Lt(t, "constructor") ? this.raise(t.key.start, "Classes can't have a field named 'constructor'") : t.static && Lt(t, "prototype") && this.raise(t.key.start, "Classes can't have a static field named 'prototype'"), this.eat(n2.eq) ? (this.enterScope(576), t.value = this.parseMaybeAssign(), this.exitScope()) : t.value = null, this.semicolon(), this.finishNode(t, "PropertyDefinition");
493
- }, m2.parseClassStaticBlock = function(t) {
494
- t.body = [];
495
- var e = this.labels;
496
- for (this.labels = [], this.enterScope(320); this.type !== n2.braceR; ) {
497
- var i = this.parseStatement(null);
498
- t.body.push(i);
499
- }
500
- return this.next(), this.exitScope(), this.labels = e, this.finishNode(t, "StaticBlock");
501
- }, m2.parseClassId = function(t, e) {
502
- this.type === n2.name ? (t.id = this.parseIdent(), e && this.checkLValSimple(t.id, 2, false)) : (e === true && this.unexpected(), t.id = null);
503
- }, m2.parseClassSuper = function(t) {
504
- t.superClass = this.eat(n2._extends) ? this.parseExprSubscripts(null, false) : null;
505
- }, m2.enterClassBody = function() {
506
- var t = { declared: /* @__PURE__ */ Object.create(null), used: [] };
507
- return this.privateNameStack.push(t), t.declared;
508
- }, m2.exitClassBody = function() {
509
- var t = this.privateNameStack.pop(), e = t.declared, i = t.used;
510
- if (this.options.checkPrivateFields) for (var s = this.privateNameStack.length, r = s === 0 ? null : this.privateNameStack[s - 1], a = 0; a < i.length; ++a) {
511
- var o2 = i[a];
512
- ft(e, o2.name) || (r ? r.used.push(o2) : this.raiseRecoverable(o2.start, "Private field '#" + o2.name + "' must be declared in an enclosing class"));
513
- }
514
- }, m2.parseExportAllDeclaration = function(t, e) {
515
- return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (t.exported = this.parseModuleExportName(), this.checkExport(e, t.exported, this.lastTokStart)) : t.exported = null), this.expectContextual("from"), this.type !== n2.string && this.unexpected(), t.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (t.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(t, "ExportAllDeclaration");
516
- }, m2.parseExport = function(t, e) {
517
- if (this.next(), this.eat(n2.star)) return this.parseExportAllDeclaration(t, e);
518
- if (this.eat(n2._default)) return this.checkExport(e, "default", this.lastTokStart), t.declaration = this.parseExportDefaultDeclaration(), this.finishNode(t, "ExportDefaultDeclaration");
519
- if (this.shouldParseExportStatement()) t.declaration = this.parseExportDeclaration(t), t.declaration.type === "VariableDeclaration" ? this.checkVariableExport(e, t.declaration.declarations) : this.checkExport(e, t.declaration.id, t.declaration.id.start), t.specifiers = [], t.source = null, this.options.ecmaVersion >= 16 && (t.attributes = []);
520
- else {
521
- if (t.declaration = null, t.specifiers = this.parseExportSpecifiers(e), this.eatContextual("from")) this.type !== n2.string && this.unexpected(), t.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (t.attributes = this.parseWithClause());
522
- else {
523
- for (var i = 0, s = t.specifiers; i < s.length; i += 1) {
524
- var r = s[i];
525
- this.checkUnreserved(r.local), this.checkLocalExport(r.local), r.local.type === "Literal" && this.raise(r.local.start, "A string literal cannot be used as an exported binding without `from`.");
526
- }
527
- t.source = null, this.options.ecmaVersion >= 16 && (t.attributes = []);
528
- }
529
- this.semicolon();
530
- }
531
- return this.finishNode(t, "ExportNamedDeclaration");
532
- }, m2.parseExportDeclaration = function(t) {
533
- return this.parseStatement(null);
534
- }, m2.parseExportDefaultDeclaration = function() {
535
- var t;
536
- if (this.type === n2._function || (t = this.isAsyncFunction())) {
537
- var e = this.startNode();
538
- return this.next(), t && this.next(), this.parseFunction(e, 4 | Ct, false, t);
539
- }
540
- if (this.type === n2._class) {
541
- var i = this.startNode();
542
- return this.parseClass(i, "nullableID");
543
- }
544
- var s = this.parseMaybeAssign();
545
- return this.semicolon(), s;
546
- }, m2.checkExport = function(t, e, i) {
547
- t && (typeof e != "string" && (e = e.type === "Identifier" ? e.name : e.value), ft(t, e) && this.raiseRecoverable(i, "Duplicate export '" + e + "'"), t[e] = true);
548
- }, m2.checkPatternExport = function(t, e) {
549
- var i = e.type;
550
- if (i === "Identifier") this.checkExport(t, e, e.start);
551
- else if (i === "ObjectPattern") for (var s = 0, r = e.properties; s < r.length; s += 1) {
552
- var a = r[s];
553
- this.checkPatternExport(t, a);
554
- }
555
- else if (i === "ArrayPattern") for (var o2 = 0, h = e.elements; o2 < h.length; o2 += 1) {
556
- var c = h[o2];
557
- c && this.checkPatternExport(t, c);
558
- }
559
- else i === "Property" ? this.checkPatternExport(t, e.value) : i === "AssignmentPattern" ? this.checkPatternExport(t, e.left) : i === "RestElement" && this.checkPatternExport(t, e.argument);
560
- }, m2.checkVariableExport = function(t, e) {
561
- if (t) for (var i = 0, s = e; i < s.length; i += 1) {
562
- var r = s[i];
563
- this.checkPatternExport(t, r.id);
564
- }
565
- }, m2.shouldParseExportStatement = function() {
566
- return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
567
- }, m2.parseExportSpecifier = function(t) {
568
- var e = this.startNode();
569
- return e.local = this.parseModuleExportName(), e.exported = this.eatContextual("as") ? this.parseModuleExportName() : e.local, this.checkExport(t, e.exported, e.exported.start), this.finishNode(e, "ExportSpecifier");
570
- }, m2.parseExportSpecifiers = function(t) {
571
- var e = [], i = true;
572
- for (this.expect(n2.braceL); !this.eat(n2.braceR); ) {
573
- if (i) i = false;
574
- else if (this.expect(n2.comma), this.afterTrailingComma(n2.braceR)) break;
575
- e.push(this.parseExportSpecifier(t));
576
- }
577
- return e;
578
- }, m2.parseImport = function(t) {
579
- return this.next(), this.type === n2.string ? (t.specifiers = es, t.source = this.parseExprAtom()) : (t.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), t.source = this.type === n2.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (t.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(t, "ImportDeclaration");
580
- }, m2.parseImportSpecifier = function() {
581
- var t = this.startNode();
582
- return t.imported = this.parseModuleExportName(), this.eatContextual("as") ? t.local = this.parseIdent() : (this.checkUnreserved(t.imported), t.local = t.imported), this.checkLValSimple(t.local, 2), this.finishNode(t, "ImportSpecifier");
583
- }, m2.parseImportDefaultSpecifier = function() {
584
- var t = this.startNode();
585
- return t.local = this.parseIdent(), this.checkLValSimple(t.local, 2), this.finishNode(t, "ImportDefaultSpecifier");
586
- }, m2.parseImportNamespaceSpecifier = function() {
587
- var t = this.startNode();
588
- return this.next(), this.expectContextual("as"), t.local = this.parseIdent(), this.checkLValSimple(t.local, 2), this.finishNode(t, "ImportNamespaceSpecifier");
589
- }, m2.parseImportSpecifiers = function() {
590
- var t = [], e = true;
591
- if (this.type === n2.name && (t.push(this.parseImportDefaultSpecifier()), !this.eat(n2.comma))) return t;
592
- if (this.type === n2.star) return t.push(this.parseImportNamespaceSpecifier()), t;
593
- for (this.expect(n2.braceL); !this.eat(n2.braceR); ) {
594
- if (e) e = false;
595
- else if (this.expect(n2.comma), this.afterTrailingComma(n2.braceR)) break;
596
- t.push(this.parseImportSpecifier());
597
- }
598
- return t;
599
- }, m2.parseWithClause = function() {
600
- var t = [];
601
- if (!this.eat(n2._with)) return t;
602
- this.expect(n2.braceL);
603
- for (var e = {}, i = true; !this.eat(n2.braceR); ) {
604
- if (i) i = false;
605
- else if (this.expect(n2.comma), this.afterTrailingComma(n2.braceR)) break;
606
- var s = this.parseImportAttribute(), r = s.key.type === "Identifier" ? s.key.name : s.key.value;
607
- ft(e, r) && this.raiseRecoverable(s.key.start, "Duplicate attribute key '" + r + "'"), e[r] = true, t.push(s);
608
- }
609
- return t;
610
- }, m2.parseImportAttribute = function() {
611
- var t = this.startNode();
612
- return t.key = this.type === n2.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never"), this.expect(n2.colon), this.type !== n2.string && this.unexpected(), t.value = this.parseExprAtom(), this.finishNode(t, "ImportAttribute");
613
- }, m2.parseModuleExportName = function() {
614
- if (this.options.ecmaVersion >= 13 && this.type === n2.string) {
615
- var t = this.parseLiteral(this.value);
616
- return Yi.test(t.value) && this.raise(t.start, "An export name cannot include a lone surrogate."), t;
617
- }
618
- return this.parseIdent(true);
619
- }, m2.adaptDirectivePrologue = function(t) {
620
- for (var e = 0; e < t.length && this.isDirectiveCandidate(t[e]); ++e) t[e].directive = t[e].expression.raw.slice(1, -1);
621
- }, m2.isDirectiveCandidate = function(t) {
622
- return this.options.ecmaVersion >= 5 && t.type === "ExpressionStatement" && t.expression.type === "Literal" && typeof t.expression.value == "string" && (this.input[t.start] === '"' || this.input[t.start] === "'");
623
- };
624
- var q2 = N.prototype;
625
- q2.toAssignable = function(t, e, i) {
626
- if (this.options.ecmaVersion >= 6 && t) switch (t.type) {
627
- case "Identifier":
628
- this.inAsync && t.name === "await" && this.raise(t.start, "Cannot use 'await' as identifier inside an async function");
629
- break;
630
- case "ObjectPattern":
631
- case "ArrayPattern":
632
- case "AssignmentPattern":
633
- case "RestElement":
634
- break;
635
- case "ObjectExpression":
636
- t.type = "ObjectPattern", i && this.checkPatternErrors(i, true);
637
- for (var s = 0, r = t.properties; s < r.length; s += 1) {
638
- var a = r[s];
639
- this.toAssignable(a, e), a.type !== "RestElement" || a.argument.type !== "ArrayPattern" && a.argument.type !== "ObjectPattern" || this.raise(a.argument.start, "Unexpected token");
640
- }
641
- break;
642
- case "Property":
643
- t.kind !== "init" && this.raise(t.key.start, "Object pattern can't contain getter or setter"), this.toAssignable(t.value, e);
644
- break;
645
- case "ArrayExpression":
646
- t.type = "ArrayPattern", i && this.checkPatternErrors(i, true), this.toAssignableList(t.elements, e);
647
- break;
648
- case "SpreadElement":
649
- t.type = "RestElement", this.toAssignable(t.argument, e), t.argument.type === "AssignmentPattern" && this.raise(t.argument.start, "Rest elements cannot have a default value");
650
- break;
651
- case "AssignmentExpression":
652
- t.operator !== "=" && this.raise(t.left.end, "Only '=' operator can be used for specifying default value."), t.type = "AssignmentPattern", delete t.operator, this.toAssignable(t.left, e);
653
- break;
654
- case "ParenthesizedExpression":
655
- this.toAssignable(t.expression, e, i);
656
- break;
657
- case "ChainExpression":
658
- this.raiseRecoverable(t.start, "Optional chaining cannot appear in left-hand side");
659
- break;
660
- case "MemberExpression":
661
- if (!e) break;
662
- default:
663
- this.raise(t.start, "Assigning to rvalue");
664
- }
665
- else i && this.checkPatternErrors(i, true);
666
- return t;
667
- }, q2.toAssignableList = function(t, e) {
668
- for (var i = t.length, s = 0; s < i; s++) {
669
- var r = t[s];
670
- r && this.toAssignable(r, e);
671
- }
672
- if (i) {
673
- var a = t[i - 1];
674
- this.options.ecmaVersion === 6 && e && a && a.type === "RestElement" && a.argument.type !== "Identifier" && this.unexpected(a.argument.start);
675
- }
676
- return t;
677
- }, q2.parseSpread = function(t) {
678
- var e = this.startNode();
679
- return this.next(), e.argument = this.parseMaybeAssign(false, t), this.finishNode(e, "SpreadElement");
680
- }, q2.parseRestBinding = function() {
681
- var t = this.startNode();
682
- return this.next(), this.options.ecmaVersion === 6 && this.type !== n2.name && this.unexpected(), t.argument = this.parseBindingAtom(), this.finishNode(t, "RestElement");
683
- }, q2.parseBindingAtom = function() {
684
- if (this.options.ecmaVersion >= 6) switch (this.type) {
685
- case n2.bracketL:
686
- var t = this.startNode();
687
- return this.next(), t.elements = this.parseBindingList(n2.bracketR, true, true), this.finishNode(t, "ArrayPattern");
688
- case n2.braceL:
689
- return this.parseObj(true);
690
- }
691
- return this.parseIdent();
692
- }, q2.parseBindingList = function(t, e, i, s) {
693
- for (var r = [], a = true; !this.eat(t); ) if (a ? a = false : this.expect(n2.comma), e && this.type === n2.comma) r.push(null);
694
- else {
695
- if (i && this.afterTrailingComma(t)) break;
696
- if (this.type === n2.ellipsis) {
697
- var o2 = this.parseRestBinding();
698
- this.parseBindingListItem(o2), r.push(o2), this.type === n2.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(t);
699
- break;
700
- }
701
- r.push(this.parseAssignableListItem(s));
702
- }
703
- return r;
704
- }, q2.parseAssignableListItem = function(t) {
705
- var e = this.parseMaybeDefault(this.start, this.startLoc);
706
- return this.parseBindingListItem(e), e;
707
- }, q2.parseBindingListItem = function(t) {
708
- return t;
709
- }, q2.parseMaybeDefault = function(t, e, i) {
710
- if (i = i || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(n2.eq)) return i;
711
- var s = this.startNodeAt(t, e);
712
- return s.left = i, s.right = this.parseMaybeAssign(), this.finishNode(s, "AssignmentPattern");
713
- }, q2.checkLValSimple = function(t, e, i) {
714
- e === void 0 && (e = 0);
715
- var s = e !== 0;
716
- switch (t.type) {
717
- case "Identifier":
718
- this.strict && this.reservedWordsStrictBind.test(t.name) && this.raiseRecoverable(t.start, (s ? "Binding " : "Assigning to ") + t.name + " in strict mode"), s && (e === 2 && t.name === "let" && this.raiseRecoverable(t.start, "let is disallowed as a lexically bound name"), i && (ft(i, t.name) && this.raiseRecoverable(t.start, "Argument name clash"), i[t.name] = true), e !== 5 && this.declareName(t.name, e, t.start));
719
- break;
720
- case "ChainExpression":
721
- this.raiseRecoverable(t.start, "Optional chaining cannot appear in left-hand side");
722
- break;
723
- case "MemberExpression":
724
- s && this.raiseRecoverable(t.start, "Binding member expression");
725
- break;
726
- case "ParenthesizedExpression":
727
- return s && this.raiseRecoverable(t.start, "Binding parenthesized expression"), this.checkLValSimple(t.expression, e, i);
728
- default:
729
- this.raise(t.start, (s ? "Binding" : "Assigning to") + " rvalue");
730
- }
731
- }, q2.checkLValPattern = function(t, e, i) {
732
- switch (e === void 0 && (e = 0), t.type) {
733
- case "ObjectPattern":
734
- for (var s = 0, r = t.properties; s < r.length; s += 1) {
735
- var a = r[s];
736
- this.checkLValInnerPattern(a, e, i);
737
- }
738
- break;
739
- case "ArrayPattern":
740
- for (var o2 = 0, h = t.elements; o2 < h.length; o2 += 1) {
741
- var c = h[o2];
742
- c && this.checkLValInnerPattern(c, e, i);
743
- }
744
- break;
745
- default:
746
- this.checkLValSimple(t, e, i);
747
- }
748
- }, q2.checkLValInnerPattern = function(t, e, i) {
749
- switch (e === void 0 && (e = 0), t.type) {
750
- case "Property":
751
- this.checkLValInnerPattern(t.value, e, i);
752
- break;
753
- case "AssignmentPattern":
754
- this.checkLValPattern(t.left, e, i);
755
- break;
756
- case "RestElement":
757
- this.checkLValPattern(t.argument, e, i);
758
- break;
759
- default:
760
- this.checkLValPattern(t, e, i);
761
- }
762
- };
763
- var G = function(t, e, i, s, r) {
764
- this.token = t, this.isExpr = !!e, this.preserveSpace = !!i, this.override = s, this.generator = !!r;
765
- }, R = { b_stat: new G("{", false), b_expr: new G("{", true), b_tmpl: new G("${", false), p_stat: new G("(", false), p_expr: new G("(", true), q_tmpl: new G("`", true, true, function(t) {
766
- return t.tryReadTemplateToken();
767
- }), f_stat: new G("function", false), f_expr: new G("function", true), f_expr_gen: new G("function", true, false, null, true), f_gen: new G("function", false, false, null, true) }, dt = N.prototype;
768
- dt.initialContext = function() {
769
- return [R.b_stat];
770
- }, dt.curContext = function() {
771
- return this.context[this.context.length - 1];
772
- }, dt.braceIsBlock = function(t) {
773
- var e = this.curContext();
774
- return e === R.f_expr || e === R.f_stat || (t !== n2.colon || e !== R.b_stat && e !== R.b_expr ? t === n2._return || t === n2.name && this.exprAllowed ? M.test(this.input.slice(this.lastTokEnd, this.start)) : t === n2._else || t === n2.semi || t === n2.eof || t === n2.parenR || t === n2.arrow || (t === n2.braceL ? e === R.b_stat : t !== n2._var && t !== n2._const && t !== n2.name && !this.exprAllowed) : !e.isExpr);
775
- }, dt.inGeneratorContext = function() {
776
- for (var t = this.context.length - 1; t >= 1; t--) {
777
- var e = this.context[t];
778
- if (e.token === "function") return e.generator;
779
- }
780
- return false;
781
- }, dt.updateContext = function(t) {
782
- var e, i = this.type;
783
- i.keyword && t === n2.dot ? this.exprAllowed = false : (e = i.updateContext) ? e.call(this, t) : this.exprAllowed = i.beforeExpr;
784
- }, dt.overrideContext = function(t) {
785
- this.curContext() !== t && (this.context[this.context.length - 1] = t);
786
- }, n2.parenR.updateContext = n2.braceR.updateContext = function() {
787
- if (this.context.length !== 1) {
788
- var t = this.context.pop();
789
- t === R.b_stat && this.curContext().token === "function" && (t = this.context.pop()), this.exprAllowed = !t.isExpr;
790
- } else this.exprAllowed = true;
791
- }, n2.braceL.updateContext = function(t) {
792
- this.context.push(this.braceIsBlock(t) ? R.b_stat : R.b_expr), this.exprAllowed = true;
793
- }, n2.dollarBraceL.updateContext = function() {
794
- this.context.push(R.b_tmpl), this.exprAllowed = true;
795
- }, n2.parenL.updateContext = function(t) {
796
- var e = t === n2._if || t === n2._for || t === n2._with || t === n2._while;
797
- this.context.push(e ? R.p_stat : R.p_expr), this.exprAllowed = true;
798
- }, n2.incDec.updateContext = function() {
799
- }, n2._function.updateContext = n2._class.updateContext = function(t) {
800
- !t.beforeExpr || t === n2._else || t === n2.semi && this.curContext() !== R.p_stat || t === n2._return && M.test(this.input.slice(this.lastTokEnd, this.start)) || (t === n2.colon || t === n2.braceL) && this.curContext() === R.b_stat ? this.context.push(R.f_stat) : this.context.push(R.f_expr), this.exprAllowed = false;
801
- }, n2.colon.updateContext = function() {
802
- this.curContext().token === "function" && this.context.pop(), this.exprAllowed = true;
803
- }, n2.backQuote.updateContext = function() {
804
- this.curContext() === R.q_tmpl ? this.context.pop() : this.context.push(R.q_tmpl), this.exprAllowed = false;
805
- }, n2.star.updateContext = function(t) {
806
- if (t === n2._function) {
807
- var e = this.context.length - 1;
808
- this.context[e] === R.f_expr ? this.context[e] = R.f_expr_gen : this.context[e] = R.f_gen;
809
- }
810
- this.exprAllowed = true;
811
- }, n2.name.updateContext = function(t) {
812
- var e = false;
813
- this.options.ecmaVersion >= 6 && t !== n2.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (e = true), this.exprAllowed = e;
814
- };
815
- var x = N.prototype;
816
- function Ne(t) {
817
- return t.type === "Identifier" || t.type === "ParenthesizedExpression" && Ne(t.expression);
818
- }
819
- function te(t) {
820
- return t.type === "MemberExpression" && t.property.type === "PrivateIdentifier" || t.type === "ChainExpression" && te(t.expression) || t.type === "ParenthesizedExpression" && te(t.expression);
821
- }
822
- x.checkPropClash = function(t, e, i) {
823
- if (!(this.options.ecmaVersion >= 9 && t.type === "SpreadElement" || this.options.ecmaVersion >= 6 && (t.computed || t.method || t.shorthand))) {
824
- var s, r = t.key;
825
- switch (r.type) {
826
- case "Identifier":
827
- s = r.name;
828
- break;
829
- case "Literal":
830
- s = String(r.value);
831
- break;
832
- default:
833
- return;
834
- }
835
- var a = t.kind;
836
- if (this.options.ecmaVersion >= 6) s === "__proto__" && a === "init" && (e.proto && (i ? i.doubleProto < 0 && (i.doubleProto = r.start) : this.raiseRecoverable(r.start, "Redefinition of __proto__ property")), e.proto = true);
837
- else {
838
- var o2 = e[s = "$" + s];
839
- o2 ? (a === "init" ? this.strict && o2.init || o2.get || o2.set : o2.init || o2[a]) && this.raiseRecoverable(r.start, "Redefinition of property") : o2 = e[s] = { init: false, get: false, set: false }, o2[a] = true;
840
- }
841
- }
842
- }, x.parseExpression = function(t, e) {
843
- var i = this.start, s = this.startLoc, r = this.parseMaybeAssign(t, e);
844
- if (this.type === n2.comma) {
845
- var a = this.startNodeAt(i, s);
846
- for (a.expressions = [r]; this.eat(n2.comma); ) a.expressions.push(this.parseMaybeAssign(t, e));
847
- return this.finishNode(a, "SequenceExpression");
848
- }
849
- return r;
850
- }, x.parseMaybeAssign = function(t, e, i) {
851
- if (this.isContextual("yield")) {
852
- if (this.inGenerator) return this.parseYield(t);
853
- this.exprAllowed = false;
854
- }
855
- var s = false, r = -1, a = -1, o2 = -1;
856
- e ? (r = e.parenthesizedAssign, a = e.trailingComma, o2 = e.doubleProto, e.parenthesizedAssign = e.trailingComma = -1) : (e = new Nt(), s = true);
857
- var h = this.start, c = this.startLoc;
858
- this.type !== n2.parenL && this.type !== n2.name || (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = t === "await");
859
- var l = this.parseMaybeConditional(t, e);
860
- if (i && (l = i.call(this, l, h, c)), this.type.isAssign) {
861
- var p = this.startNodeAt(h, c);
862
- return p.operator = this.value, this.type === n2.eq && (l = this.toAssignable(l, false, e)), s || (e.parenthesizedAssign = e.trailingComma = e.doubleProto = -1), e.shorthandAssign >= l.start && (e.shorthandAssign = -1), this.type === n2.eq ? this.checkLValPattern(l) : this.checkLValSimple(l), p.left = l, this.next(), p.right = this.parseMaybeAssign(t), o2 > -1 && (e.doubleProto = o2), this.finishNode(p, "AssignmentExpression");
863
- }
864
- return s && this.checkExpressionErrors(e, true), r > -1 && (e.parenthesizedAssign = r), a > -1 && (e.trailingComma = a), l;
865
- }, x.parseMaybeConditional = function(t, e) {
866
- var i = this.start, s = this.startLoc, r = this.parseExprOps(t, e);
867
- if (this.checkExpressionErrors(e)) return r;
868
- if (this.eat(n2.question)) {
869
- var a = this.startNodeAt(i, s);
870
- return a.test = r, a.consequent = this.parseMaybeAssign(), this.expect(n2.colon), a.alternate = this.parseMaybeAssign(t), this.finishNode(a, "ConditionalExpression");
871
- }
872
- return r;
873
- }, x.parseExprOps = function(t, e) {
874
- var i = this.start, s = this.startLoc, r = this.parseMaybeUnary(e, false, false, t);
875
- return this.checkExpressionErrors(e) || r.start === i && r.type === "ArrowFunctionExpression" ? r : this.parseExprOp(r, i, s, -1, t);
876
- }, x.parseExprOp = function(t, e, i, s, r) {
877
- var a = this.type.binop;
878
- if (a != null && (!r || this.type !== n2._in) && a > s) {
879
- var o2 = this.type === n2.logicalOR || this.type === n2.logicalAND, h = this.type === n2.coalesce;
880
- h && (a = n2.logicalAND.binop);
881
- var c = this.value;
882
- this.next();
883
- var l = this.start, p = this.startLoc, f = this.parseExprOp(this.parseMaybeUnary(null, false, false, r), l, p, a, r), u = this.buildBinary(e, i, t, f, c, o2 || h);
884
- return (o2 && this.type === n2.coalesce || h && (this.type === n2.logicalOR || this.type === n2.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(u, e, i, s, r);
885
- }
886
- return t;
887
- }, x.buildBinary = function(t, e, i, s, r, a) {
888
- s.type === "PrivateIdentifier" && this.raise(s.start, "Private identifier can only be left side of binary expression");
889
- var o2 = this.startNodeAt(t, e);
890
- return o2.left = i, o2.operator = r, o2.right = s, this.finishNode(o2, a ? "LogicalExpression" : "BinaryExpression");
891
- }, x.parseMaybeUnary = function(t, e, i, s) {
892
- var r, a = this.start, o2 = this.startLoc;
893
- if (this.isContextual("await") && this.canAwait) r = this.parseAwait(s), e = true;
894
- else if (this.type.prefix) {
895
- var h = this.startNode(), c = this.type === n2.incDec;
896
- h.operator = this.value, h.prefix = true, this.next(), h.argument = this.parseMaybeUnary(null, true, c, s), this.checkExpressionErrors(t, true), c ? this.checkLValSimple(h.argument) : this.strict && h.operator === "delete" && Ne(h.argument) ? this.raiseRecoverable(h.start, "Deleting local variable in strict mode") : h.operator === "delete" && te(h.argument) ? this.raiseRecoverable(h.start, "Private fields can not be deleted") : e = true, r = this.finishNode(h, c ? "UpdateExpression" : "UnaryExpression");
897
- } else if (e || this.type !== n2.privateId) {
898
- if (r = this.parseExprSubscripts(t, s), this.checkExpressionErrors(t)) return r;
899
- for (; this.type.postfix && !this.canInsertSemicolon(); ) {
900
- var l = this.startNodeAt(a, o2);
901
- l.operator = this.value, l.prefix = false, l.argument = r, this.checkLValSimple(r), this.next(), r = this.finishNode(l, "UpdateExpression");
902
- }
903
- } else (s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), r = this.parsePrivateIdent(), this.type !== n2._in && this.unexpected();
904
- return i || !this.eat(n2.starstar) ? r : e ? void this.unexpected(this.lastTokStart) : this.buildBinary(a, o2, r, this.parseMaybeUnary(null, false, false, s), "**", false);
905
- }, x.parseExprSubscripts = function(t, e) {
906
- var i = this.start, s = this.startLoc, r = this.parseExprAtom(t, e);
907
- if (r.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") return r;
908
- var a = this.parseSubscripts(r, i, s, false, e);
909
- return t && a.type === "MemberExpression" && (t.parenthesizedAssign >= a.start && (t.parenthesizedAssign = -1), t.parenthesizedBind >= a.start && (t.parenthesizedBind = -1), t.trailingComma >= a.start && (t.trailingComma = -1)), a;
910
- }, x.parseSubscripts = function(t, e, i, s, r) {
911
- for (var a = this.options.ecmaVersion >= 8 && t.type === "Identifier" && t.name === "async" && this.lastTokEnd === t.end && !this.canInsertSemicolon() && t.end - t.start === 5 && this.potentialArrowAt === t.start, o2 = false; ; ) {
912
- var h = this.parseSubscript(t, e, i, s, a, o2, r);
913
- if (h.optional && (o2 = true), h === t || h.type === "ArrowFunctionExpression") {
914
- if (o2) {
915
- var c = this.startNodeAt(e, i);
916
- c.expression = h, h = this.finishNode(c, "ChainExpression");
917
- }
918
- return h;
919
- }
920
- t = h;
921
- }
922
- }, x.shouldParseAsyncArrow = function() {
923
- return !this.canInsertSemicolon() && this.eat(n2.arrow);
924
- }, x.parseSubscriptAsyncArrow = function(t, e, i, s) {
925
- return this.parseArrowExpression(this.startNodeAt(t, e), i, true, s);
926
- }, x.parseSubscript = function(t, e, i, s, r, a, o2) {
927
- var h = this.options.ecmaVersion >= 11, c = h && this.eat(n2.questionDot);
928
- s && c && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
929
- var l = this.eat(n2.bracketL);
930
- if (l || c && this.type !== n2.parenL && this.type !== n2.backQuote || this.eat(n2.dot)) {
931
- var p = this.startNodeAt(e, i);
932
- p.object = t, l ? (p.property = this.parseExpression(), this.expect(n2.bracketR)) : this.type === n2.privateId && t.type !== "Super" ? p.property = this.parsePrivateIdent() : p.property = this.parseIdent(this.options.allowReserved !== "never"), p.computed = !!l, h && (p.optional = c), t = this.finishNode(p, "MemberExpression");
933
- } else if (!s && this.eat(n2.parenL)) {
934
- var f = new Nt(), u = this.yieldPos, v = this.awaitPos, w = this.awaitIdentPos;
935
- this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
936
- var y = this.parseExprList(n2.parenR, this.options.ecmaVersion >= 8, false, f);
937
- if (r && !c && this.shouldParseAsyncArrow()) return this.checkPatternErrors(f, false), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = u, this.awaitPos = v, this.awaitIdentPos = w, this.parseSubscriptAsyncArrow(e, i, y, o2);
938
- this.checkExpressionErrors(f, true), this.yieldPos = u || this.yieldPos, this.awaitPos = v || this.awaitPos, this.awaitIdentPos = w || this.awaitIdentPos;
939
- var I = this.startNodeAt(e, i);
940
- I.callee = t, I.arguments = y, h && (I.optional = c), t = this.finishNode(I, "CallExpression");
941
- } else if (this.type === n2.backQuote) {
942
- (c || a) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
943
- var C = this.startNodeAt(e, i);
944
- C.tag = t, C.quasi = this.parseTemplate({ isTagged: true }), t = this.finishNode(C, "TaggedTemplateExpression");
945
- }
946
- return t;
947
- }, x.parseExprAtom = function(t, e, i) {
948
- this.type === n2.slash && this.readRegexp();
949
- var s, r = this.potentialArrowAt === this.start;
950
- switch (this.type) {
951
- case n2._super:
952
- return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), s = this.startNode(), this.next(), this.type !== n2.parenL || this.allowDirectSuper || this.raise(s.start, "super() call outside constructor of a subclass"), this.type !== n2.dot && this.type !== n2.bracketL && this.type !== n2.parenL && this.unexpected(), this.finishNode(s, "Super");
953
- case n2._this:
954
- return s = this.startNode(), this.next(), this.finishNode(s, "ThisExpression");
955
- case n2.name:
956
- var a = this.start, o2 = this.startLoc, h = this.containsEsc, c = this.parseIdent(false);
957
- if (this.options.ecmaVersion >= 8 && !h && c.name === "async" && !this.canInsertSemicolon() && this.eat(n2._function)) return this.overrideContext(R.f_expr), this.parseFunction(this.startNodeAt(a, o2), 0, false, true, e);
958
- if (r && !this.canInsertSemicolon()) {
959
- if (this.eat(n2.arrow)) return this.parseArrowExpression(this.startNodeAt(a, o2), [c], false, e);
960
- if (this.options.ecmaVersion >= 8 && c.name === "async" && this.type === n2.name && !h && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return c = this.parseIdent(false), !this.canInsertSemicolon() && this.eat(n2.arrow) || this.unexpected(), this.parseArrowExpression(this.startNodeAt(a, o2), [c], true, e);
961
- }
962
- return c;
963
- case n2.regexp:
964
- var l = this.value;
965
- return (s = this.parseLiteral(l.value)).regex = { pattern: l.pattern, flags: l.flags }, s;
966
- case n2.num:
967
- case n2.string:
968
- return this.parseLiteral(this.value);
969
- case n2._null:
970
- case n2._true:
971
- case n2._false:
972
- return (s = this.startNode()).value = this.type === n2._null ? null : this.type === n2._true, s.raw = this.type.keyword, this.next(), this.finishNode(s, "Literal");
973
- case n2.parenL:
974
- var p = this.start, f = this.parseParenAndDistinguishExpression(r, e);
975
- return t && (t.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(f) && (t.parenthesizedAssign = p), t.parenthesizedBind < 0 && (t.parenthesizedBind = p)), f;
976
- case n2.bracketL:
977
- return s = this.startNode(), this.next(), s.elements = this.parseExprList(n2.bracketR, true, true, t), this.finishNode(s, "ArrayExpression");
978
- case n2.braceL:
979
- return this.overrideContext(R.b_expr), this.parseObj(false, t);
980
- case n2._function:
981
- return s = this.startNode(), this.next(), this.parseFunction(s, 0);
982
- case n2._class:
983
- return this.parseClass(this.startNode(), false);
984
- case n2._new:
985
- return this.parseNew();
986
- case n2.backQuote:
987
- return this.parseTemplate();
988
- case n2._import:
989
- return this.options.ecmaVersion >= 11 ? this.parseExprImport(i) : this.unexpected();
990
- default:
991
- return this.parseExprAtomDefault();
992
- }
993
- }, x.parseExprAtomDefault = function() {
994
- this.unexpected();
995
- }, x.parseExprImport = function(t) {
996
- var e = this.startNode();
997
- if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === n2.parenL && !t) return this.parseDynamicImport(e);
998
- if (this.type === n2.dot) {
999
- var i = this.startNodeAt(e.start, e.loc && e.loc.start);
1000
- return i.name = "import", e.meta = this.finishNode(i, "Identifier"), this.parseImportMeta(e);
1001
- }
1002
- this.unexpected();
1003
- }, x.parseDynamicImport = function(t) {
1004
- if (this.next(), t.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16) this.eat(n2.parenR) ? t.options = null : (this.expect(n2.comma), this.afterTrailingComma(n2.parenR) ? t.options = null : (t.options = this.parseMaybeAssign(), this.eat(n2.parenR) || (this.expect(n2.comma), this.afterTrailingComma(n2.parenR) || this.unexpected())));
1005
- else if (!this.eat(n2.parenR)) {
1006
- var e = this.start;
1007
- this.eat(n2.comma) && this.eat(n2.parenR) ? this.raiseRecoverable(e, "Trailing comma is not allowed in import()") : this.unexpected(e);
1008
- }
1009
- return this.finishNode(t, "ImportExpression");
1010
- }, x.parseImportMeta = function(t) {
1011
- this.next();
1012
- var e = this.containsEsc;
1013
- return t.property = this.parseIdent(true), t.property.name !== "meta" && this.raiseRecoverable(t.property.start, "The only valid meta property for import is 'import.meta'"), e && this.raiseRecoverable(t.start, "'import.meta' must not contain escaped characters"), this.options.sourceType === "module" || this.options.allowImportExportEverywhere || this.raiseRecoverable(t.start, "Cannot use 'import.meta' outside a module"), this.finishNode(t, "MetaProperty");
1014
- }, x.parseLiteral = function(t) {
1015
- var e = this.startNode();
1016
- return e.value = t, e.raw = this.input.slice(this.start, this.end), e.raw.charCodeAt(e.raw.length - 1) === 110 && (e.bigint = e.value != null ? e.value.toString() : e.raw.slice(0, -1).replace(/_/g, "")), this.next(), this.finishNode(e, "Literal");
1017
- }, x.parseParenExpression = function() {
1018
- this.expect(n2.parenL);
1019
- var t = this.parseExpression();
1020
- return this.expect(n2.parenR), t;
1021
- }, x.shouldParseArrow = function(t) {
1022
- return !this.canInsertSemicolon();
1023
- }, x.parseParenAndDistinguishExpression = function(t, e) {
1024
- var i, s = this.start, r = this.startLoc, a = this.options.ecmaVersion >= 8;
1025
- if (this.options.ecmaVersion >= 6) {
1026
- this.next();
1027
- var o2, h = this.start, c = this.startLoc, l = [], p = true, f = false, u = new Nt(), v = this.yieldPos, w = this.awaitPos;
1028
- for (this.yieldPos = 0, this.awaitPos = 0; this.type !== n2.parenR; ) {
1029
- if (p ? p = false : this.expect(n2.comma), a && this.afterTrailingComma(n2.parenR, true)) {
1030
- f = true;
1031
- break;
1032
- }
1033
- if (this.type === n2.ellipsis) {
1034
- o2 = this.start, l.push(this.parseParenItem(this.parseRestBinding())), this.type === n2.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
1035
- break;
1036
- }
1037
- l.push(this.parseMaybeAssign(false, u, this.parseParenItem));
1038
- }
1039
- var y = this.lastTokEnd, I = this.lastTokEndLoc;
1040
- if (this.expect(n2.parenR), t && this.shouldParseArrow(l) && this.eat(n2.arrow)) return this.checkPatternErrors(u, false), this.checkYieldAwaitInDefaultParams(), this.yieldPos = v, this.awaitPos = w, this.parseParenArrowList(s, r, l, e);
1041
- l.length && !f || this.unexpected(this.lastTokStart), o2 && this.unexpected(o2), this.checkExpressionErrors(u, true), this.yieldPos = v || this.yieldPos, this.awaitPos = w || this.awaitPos, l.length > 1 ? ((i = this.startNodeAt(h, c)).expressions = l, this.finishNodeAt(i, "SequenceExpression", y, I)) : i = l[0];
1042
- } else i = this.parseParenExpression();
1043
- if (this.options.preserveParens) {
1044
- var C = this.startNodeAt(s, r);
1045
- return C.expression = i, this.finishNode(C, "ParenthesizedExpression");
1046
- }
1047
- return i;
1048
- }, x.parseParenItem = function(t) {
1049
- return t;
1050
- }, x.parseParenArrowList = function(t, e, i, s) {
1051
- return this.parseArrowExpression(this.startNodeAt(t, e), i, false, s);
1052
- };
1053
- var ss = [];
1054
- x.parseNew = function() {
1055
- this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
1056
- var t = this.startNode();
1057
- if (this.next(), this.options.ecmaVersion >= 6 && this.type === n2.dot) {
1058
- var e = this.startNodeAt(t.start, t.loc && t.loc.start);
1059
- e.name = "new", t.meta = this.finishNode(e, "Identifier"), this.next();
1060
- var i = this.containsEsc;
1061
- return t.property = this.parseIdent(true), t.property.name !== "target" && this.raiseRecoverable(t.property.start, "The only valid meta property for new is 'new.target'"), i && this.raiseRecoverable(t.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(t.start, "'new.target' can only be used in functions and class static block"), this.finishNode(t, "MetaProperty");
1062
- }
1063
- var s = this.start, r = this.startLoc;
1064
- return t.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), s, r, true, false), this.eat(n2.parenL) ? t.arguments = this.parseExprList(n2.parenR, this.options.ecmaVersion >= 8, false) : t.arguments = ss, this.finishNode(t, "NewExpression");
1065
- }, x.parseTemplateElement = function(t) {
1066
- var e = t.isTagged, i = this.startNode();
1067
- return this.type === n2.invalidTemplate ? (e || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), i.value = { raw: this.value.replace(/\r\n?/g, `
1068
- `), cooked: null }) : i.value = { raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, `
1069
- `), cooked: this.value }, this.next(), i.tail = this.type === n2.backQuote, this.finishNode(i, "TemplateElement");
1070
- }, x.parseTemplate = function(t) {
1071
- t === void 0 && (t = {});
1072
- var e = t.isTagged;
1073
- e === void 0 && (e = false);
1074
- var i = this.startNode();
1075
- this.next(), i.expressions = [];
1076
- var s = this.parseTemplateElement({ isTagged: e });
1077
- for (i.quasis = [s]; !s.tail; ) this.type === n2.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(n2.dollarBraceL), i.expressions.push(this.parseExpression()), this.expect(n2.braceR), i.quasis.push(s = this.parseTemplateElement({ isTagged: e }));
1078
- return this.next(), this.finishNode(i, "TemplateLiteral");
1079
- }, x.isAsyncProp = function(t) {
1080
- return !t.computed && t.key.type === "Identifier" && t.key.name === "async" && (this.type === n2.name || this.type === n2.num || this.type === n2.string || this.type === n2.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === n2.star) && !M.test(this.input.slice(this.lastTokEnd, this.start));
1081
- }, x.parseObj = function(t, e) {
1082
- var i = this.startNode(), s = true, r = {};
1083
- for (i.properties = [], this.next(); !this.eat(n2.braceR); ) {
1084
- if (s) s = false;
1085
- else if (this.expect(n2.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(n2.braceR)) break;
1086
- var a = this.parseProperty(t, e);
1087
- t || this.checkPropClash(a, r, e), i.properties.push(a);
1088
- }
1089
- return this.finishNode(i, t ? "ObjectPattern" : "ObjectExpression");
1090
- }, x.parseProperty = function(t, e) {
1091
- var i, s, r, a, o2 = this.startNode();
1092
- if (this.options.ecmaVersion >= 9 && this.eat(n2.ellipsis)) return t ? (o2.argument = this.parseIdent(false), this.type === n2.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(o2, "RestElement")) : (o2.argument = this.parseMaybeAssign(false, e), this.type === n2.comma && e && e.trailingComma < 0 && (e.trailingComma = this.start), this.finishNode(o2, "SpreadElement"));
1093
- this.options.ecmaVersion >= 6 && (o2.method = false, o2.shorthand = false, (t || e) && (r = this.start, a = this.startLoc), t || (i = this.eat(n2.star)));
1094
- var h = this.containsEsc;
1095
- return this.parsePropertyName(o2), !t && !h && this.options.ecmaVersion >= 8 && !i && this.isAsyncProp(o2) ? (s = true, i = this.options.ecmaVersion >= 9 && this.eat(n2.star), this.parsePropertyName(o2)) : s = false, this.parsePropertyValue(o2, t, i, s, r, a, e, h), this.finishNode(o2, "Property");
1096
- }, x.parseGetterSetter = function(t) {
1097
- var e = t.key.name;
1098
- this.parsePropertyName(t), t.value = this.parseMethod(false), t.kind = e;
1099
- var i = t.kind === "get" ? 0 : 1;
1100
- if (t.value.params.length !== i) {
1101
- var s = t.value.start;
1102
- t.kind === "get" ? this.raiseRecoverable(s, "getter should have no params") : this.raiseRecoverable(s, "setter should have exactly one param");
1103
- } else t.kind === "set" && t.value.params[0].type === "RestElement" && this.raiseRecoverable(t.value.params[0].start, "Setter cannot use rest params");
1104
- }, x.parsePropertyValue = function(t, e, i, s, r, a, o2, h) {
1105
- (i || s) && this.type === n2.colon && this.unexpected(), this.eat(n2.colon) ? (t.value = e ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, o2), t.kind = "init") : this.options.ecmaVersion >= 6 && this.type === n2.parenL ? (e && this.unexpected(), t.method = true, t.value = this.parseMethod(i, s), t.kind = "init") : e || h || !(this.options.ecmaVersion >= 5) || t.computed || t.key.type !== "Identifier" || t.key.name !== "get" && t.key.name !== "set" || this.type === n2.comma || this.type === n2.braceR || this.type === n2.eq ? this.options.ecmaVersion >= 6 && !t.computed && t.key.type === "Identifier" ? ((i || s) && this.unexpected(), this.checkUnreserved(t.key), t.key.name !== "await" || this.awaitIdentPos || (this.awaitIdentPos = r), e ? t.value = this.parseMaybeDefault(r, a, this.copyNode(t.key)) : this.type === n2.eq && o2 ? (o2.shorthandAssign < 0 && (o2.shorthandAssign = this.start), t.value = this.parseMaybeDefault(r, a, this.copyNode(t.key))) : t.value = this.copyNode(t.key), t.kind = "init", t.shorthand = true) : this.unexpected() : ((i || s) && this.unexpected(), this.parseGetterSetter(t));
1106
- }, x.parsePropertyName = function(t) {
1107
- if (this.options.ecmaVersion >= 6) {
1108
- if (this.eat(n2.bracketL)) return t.computed = true, t.key = this.parseMaybeAssign(), this.expect(n2.bracketR), t.key;
1109
- t.computed = false;
1110
- }
1111
- return t.key = this.type === n2.num || this.type === n2.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
1112
- }, x.initFunction = function(t) {
1113
- t.id = null, this.options.ecmaVersion >= 6 && (t.generator = t.expression = false), this.options.ecmaVersion >= 8 && (t.async = false);
1114
- }, x.parseMethod = function(t, e, i) {
1115
- var s = this.startNode(), r = this.yieldPos, a = this.awaitPos, o2 = this.awaitIdentPos;
1116
- return this.initFunction(s), this.options.ecmaVersion >= 6 && (s.generator = t), this.options.ecmaVersion >= 8 && (s.async = !!e), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | Qt(e, s.generator) | (i ? 128 : 0)), this.expect(n2.parenL), s.params = this.parseBindingList(n2.parenR, false, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(s, false, true, false), this.yieldPos = r, this.awaitPos = a, this.awaitIdentPos = o2, this.finishNode(s, "FunctionExpression");
1117
- }, x.parseArrowExpression = function(t, e, i, s) {
1118
- var r = this.yieldPos, a = this.awaitPos, o2 = this.awaitIdentPos;
1119
- return this.enterScope(16 | Qt(i, false)), this.initFunction(t), this.options.ecmaVersion >= 8 && (t.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, t.params = this.toAssignableList(e, true), this.parseFunctionBody(t, true, false, s), this.yieldPos = r, this.awaitPos = a, this.awaitIdentPos = o2, this.finishNode(t, "ArrowFunctionExpression");
1120
- }, x.parseFunctionBody = function(t, e, i, s) {
1121
- var r = e && this.type !== n2.braceL, a = this.strict, o2 = false;
1122
- if (r) t.body = this.parseMaybeAssign(s), t.expression = true, this.checkParams(t, false);
1123
- else {
1124
- var h = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(t.params);
1125
- a && !h || (o2 = this.strictDirective(this.end)) && h && this.raiseRecoverable(t.start, "Illegal 'use strict' directive in function with non-simple parameter list");
1126
- var c = this.labels;
1127
- this.labels = [], o2 && (this.strict = true), this.checkParams(t, !a && !o2 && !e && !i && this.isSimpleParamList(t.params)), this.strict && t.id && this.checkLValSimple(t.id, 5), t.body = this.parseBlock(false, void 0, o2 && !a), t.expression = false, this.adaptDirectivePrologue(t.body.body), this.labels = c;
1128
- }
1129
- this.exitScope();
1130
- }, x.isSimpleParamList = function(t) {
1131
- for (var e = 0, i = t; e < i.length; e += 1) if (i[e].type !== "Identifier") return false;
1132
- return true;
1133
- }, x.checkParams = function(t, e) {
1134
- for (var i = /* @__PURE__ */ Object.create(null), s = 0, r = t.params; s < r.length; s += 1) {
1135
- var a = r[s];
1136
- this.checkLValInnerPattern(a, 1, e ? null : i);
1137
- }
1138
- }, x.parseExprList = function(t, e, i, s) {
1139
- for (var r = [], a = true; !this.eat(t); ) {
1140
- if (a) a = false;
1141
- else if (this.expect(n2.comma), e && this.afterTrailingComma(t)) break;
1142
- var o2 = void 0;
1143
- i && this.type === n2.comma ? o2 = null : this.type === n2.ellipsis ? (o2 = this.parseSpread(s), s && this.type === n2.comma && s.trailingComma < 0 && (s.trailingComma = this.start)) : o2 = this.parseMaybeAssign(false, s), r.push(o2);
1144
- }
1145
- return r;
1146
- }, x.checkUnreserved = function(t) {
1147
- var e = t.start, i = t.end, s = t.name;
1148
- this.inGenerator && s === "yield" && this.raiseRecoverable(e, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && s === "await" && this.raiseRecoverable(e, "Cannot use 'await' as identifier inside an async function"), this.currentThisScope().flags & Pe || s !== "arguments" || this.raiseRecoverable(e, "Cannot use 'arguments' in class field initializer"), !this.inClassStaticBlock || s !== "arguments" && s !== "await" || this.raise(e, "Cannot use " + s + " in class static initialization block"), this.keywords.test(s) && this.raise(e, "Unexpected keyword '" + s + "'"), this.options.ecmaVersion < 6 && this.input.slice(e, i).indexOf("\\") !== -1 || (this.strict ? this.reservedWordsStrict : this.reservedWords).test(s) && (this.inAsync || s !== "await" || this.raiseRecoverable(e, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(e, "The keyword '" + s + "' is reserved"));
1149
- }, x.parseIdent = function(t) {
1150
- var e = this.parseIdentNode();
1151
- return this.next(!!t), this.finishNode(e, "Identifier"), t || (this.checkUnreserved(e), e.name !== "await" || this.awaitIdentPos || (this.awaitIdentPos = e.start)), e;
1152
- }, x.parseIdentNode = function() {
1153
- var t = this.startNode();
1154
- return this.type === n2.name ? t.name = this.value : this.type.keyword ? (t.name = this.type.keyword, t.name !== "class" && t.name !== "function" || this.lastTokEnd === this.lastTokStart + 1 && this.input.charCodeAt(this.lastTokStart) === 46 || this.context.pop(), this.type = n2.name) : this.unexpected(), t;
1155
- }, x.parsePrivateIdent = function() {
1156
- var t = this.startNode();
1157
- return this.type === n2.privateId ? t.name = this.value : this.unexpected(), this.next(), this.finishNode(t, "PrivateIdentifier"), this.options.checkPrivateFields && (this.privateNameStack.length === 0 ? this.raise(t.start, "Private field '#" + t.name + "' must be declared in an enclosing class") : this.privateNameStack[this.privateNameStack.length - 1].used.push(t)), t;
1158
- }, x.parseYield = function(t) {
1159
- this.yieldPos || (this.yieldPos = this.start);
1160
- var e = this.startNode();
1161
- return this.next(), this.type === n2.semi || this.canInsertSemicolon() || this.type !== n2.star && !this.type.startsExpr ? (e.delegate = false, e.argument = null) : (e.delegate = this.eat(n2.star), e.argument = this.parseMaybeAssign(t)), this.finishNode(e, "YieldExpression");
1162
- }, x.parseAwait = function(t) {
1163
- this.awaitPos || (this.awaitPos = this.start);
1164
- var e = this.startNode();
1165
- return this.next(), e.argument = this.parseMaybeUnary(null, true, false, t), this.finishNode(e, "AwaitExpression");
1166
- };
1167
- var Ot = N.prototype;
1168
- Ot.raise = function(t, e) {
1169
- var i = Ae(this.input, t);
1170
- e += " (" + i.line + ":" + i.column + ")", this.sourceFile && (e += " in " + this.sourceFile);
1171
- var s = new SyntaxError(e);
1172
- throw s.pos = t, s.loc = i, s.raisedAt = this.pos, s;
1173
- }, Ot.raiseRecoverable = Ot.raise, Ot.curPosition = function() {
1174
- if (this.options.locations) return new St(this.curLine, this.pos - this.lineStart);
1175
- };
1176
- var et = N.prototype, rs = function(t) {
1177
- this.flags = t, this.var = [], this.lexical = [], this.functions = [];
1178
- };
1179
- et.enterScope = function(t) {
1180
- this.scopeStack.push(new rs(t));
1181
- }, et.exitScope = function() {
1182
- this.scopeStack.pop();
1183
- }, et.treatFunctionsAsVarInScope = function(t) {
1184
- return 2 & t.flags || !this.inModule && 1 & t.flags;
1185
- }, et.declareName = function(t, e, i) {
1186
- var s = false;
1187
- if (e === 2) {
1188
- var r = this.currentScope();
1189
- s = r.lexical.indexOf(t) > -1 || r.functions.indexOf(t) > -1 || r.var.indexOf(t) > -1, r.lexical.push(t), this.inModule && 1 & r.flags && delete this.undefinedExports[t];
1190
- } else if (e === 4) this.currentScope().lexical.push(t);
1191
- else if (e === 3) {
1192
- var a = this.currentScope();
1193
- s = this.treatFunctionsAsVar ? a.lexical.indexOf(t) > -1 : a.lexical.indexOf(t) > -1 || a.var.indexOf(t) > -1, a.functions.push(t);
1194
- } else for (var o2 = this.scopeStack.length - 1; o2 >= 0; --o2) {
1195
- var h = this.scopeStack[o2];
1196
- if (h.lexical.indexOf(t) > -1 && !(32 & h.flags && h.lexical[0] === t) || !this.treatFunctionsAsVarInScope(h) && h.functions.indexOf(t) > -1) {
1197
- s = true;
1198
- break;
1199
- }
1200
- if (h.var.push(t), this.inModule && 1 & h.flags && delete this.undefinedExports[t], h.flags & Pe) break;
1201
- }
1202
- s && this.raiseRecoverable(i, "Identifier '" + t + "' has already been declared");
1203
- }, et.checkLocalExport = function(t) {
1204
- this.scopeStack[0].lexical.indexOf(t.name) === -1 && this.scopeStack[0].var.indexOf(t.name) === -1 && (this.undefinedExports[t.name] = t);
1205
- }, et.currentScope = function() {
1206
- return this.scopeStack[this.scopeStack.length - 1];
1207
- }, et.currentVarScope = function() {
1208
- for (var t = this.scopeStack.length - 1; ; t--) {
1209
- var e = this.scopeStack[t];
1210
- if (771 & e.flags) return e;
1211
- }
1212
- }, et.currentThisScope = function() {
1213
- for (var t = this.scopeStack.length - 1; ; t--) {
1214
- var e = this.scopeStack[t];
1215
- if (771 & e.flags && !(16 & e.flags)) return e;
1216
- }
1217
- };
1218
- var Dt = function(t, e, i) {
1219
- this.type = "", this.start = e, this.end = 0, t.options.locations && (this.loc = new Pt(t, i)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [e, 0]);
1220
- }, It = N.prototype;
1221
- function Le(t, e, i, s) {
1222
- return t.type = e, t.end = i, this.options.locations && (t.loc.end = s), this.options.ranges && (t.range[1] = i), t;
1223
- }
1224
- It.startNode = function() {
1225
- return new Dt(this, this.start, this.startLoc);
1226
- }, It.startNodeAt = function(t, e) {
1227
- return new Dt(this, t, e);
1228
- }, It.finishNode = function(t, e) {
1229
- return Le.call(this, t, e, this.lastTokEnd, this.lastTokEndLoc);
1230
- }, It.finishNodeAt = function(t, e, i, s) {
1231
- return Le.call(this, t, e, i, s);
1232
- }, It.copyNode = function(t) {
1233
- var e = new Dt(this, t.start, this.startLoc);
1234
- for (var i in t) e[i] = t[i];
1235
- return e;
1236
- };
1237
- var Oe = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", ee = Oe + " Extended_Pictographic", ie = ee + " EBase EComp EMod EPres ExtPict", ns = { 9: Oe, 10: ee, 11: ee, 12: ie, 13: ie, 14: ie }, as = { 9: "", 10: "", 11: "", 12: "", 13: "", 14: "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji" }, De = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", Ve = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Ue = Ve + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Me = Ue + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", je = Me + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Be = je + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", os = { 9: Ve, 10: Ue, 11: Me, 12: je, 13: Be, 14: Be + " Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz" }, Fe = {};
1238
- function hs(t) {
1239
- var e = Fe[t] = { binary: tt(ns[t] + " " + De), binaryOfStrings: tt(as[t]), nonBinary: { General_Category: tt(De), Script: tt(os[t]) } };
1240
- e.nonBinary.Script_Extensions = e.nonBinary.Script, e.nonBinary.gc = e.nonBinary.General_Category, e.nonBinary.sc = e.nonBinary.Script, e.nonBinary.scx = e.nonBinary.Script_Extensions;
1241
- }
1242
- for (var se = 0, $e = [9, 10, 11, 12, 13, 14]; se < $e.length; se += 1) hs($e[se]);
1243
- var d = N.prototype, Vt = function(t, e) {
1244
- this.parent = t, this.base = e || this;
1245
- };
1246
- Vt.prototype.separatedFrom = function(t) {
1247
- for (var e = this; e; e = e.parent) for (var i = t; i; i = i.parent) if (e.base === i.base && e !== i) return true;
1248
- return false;
1249
- }, Vt.prototype.sibling = function() {
1250
- return new Vt(this.parent, this.base);
1251
- };
1252
- var J = function(t) {
1253
- this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = Fe[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = false, this.switchV = false, this.switchN = false, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = false, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
1254
- };
1255
- function cs(t) {
1256
- return t === 105 || t === 109 || t === 115;
1257
- }
1258
- function qe(t) {
1259
- return t === 36 || t >= 40 && t <= 43 || t === 46 || t === 63 || t >= 91 && t <= 94 || t >= 123 && t <= 125;
1260
- }
1261
- function We(t) {
1262
- return t >= 65 && t <= 90 || t >= 97 && t <= 122;
1263
- }
1264
- J.prototype.reset = function(t, e, i) {
1265
- var s = i.indexOf("v") !== -1, r = i.indexOf("u") !== -1;
1266
- this.start = 0 | t, this.source = e + "", this.flags = i, s && this.parser.options.ecmaVersion >= 15 ? (this.switchU = true, this.switchV = true, this.switchN = true) : (this.switchU = r && this.parser.options.ecmaVersion >= 6, this.switchV = false, this.switchN = r && this.parser.options.ecmaVersion >= 9);
1267
- }, J.prototype.raise = function(t) {
1268
- this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + t);
1269
- }, J.prototype.at = function(t, e) {
1270
- e === void 0 && (e = false);
1271
- var i = this.source, s = i.length;
1272
- if (t >= s) return -1;
1273
- var r = i.charCodeAt(t);
1274
- if (!e && !this.switchU || r <= 55295 || r >= 57344 || t + 1 >= s) return r;
1275
- var a = i.charCodeAt(t + 1);
1276
- return a >= 56320 && a <= 57343 ? (r << 10) + a - 56613888 : r;
1277
- }, J.prototype.nextIndex = function(t, e) {
1278
- e === void 0 && (e = false);
1279
- var i = this.source, s = i.length;
1280
- if (t >= s) return s;
1281
- var r, a = i.charCodeAt(t);
1282
- return !e && !this.switchU || a <= 55295 || a >= 57344 || t + 1 >= s || (r = i.charCodeAt(t + 1)) < 56320 || r > 57343 ? t + 1 : t + 2;
1283
- }, J.prototype.current = function(t) {
1284
- return t === void 0 && (t = false), this.at(this.pos, t);
1285
- }, J.prototype.lookahead = function(t) {
1286
- return t === void 0 && (t = false), this.at(this.nextIndex(this.pos, t), t);
1287
- }, J.prototype.advance = function(t) {
1288
- t === void 0 && (t = false), this.pos = this.nextIndex(this.pos, t);
1289
- }, J.prototype.eat = function(t, e) {
1290
- return e === void 0 && (e = false), this.current(e) === t && (this.advance(e), true);
1291
- }, J.prototype.eatChars = function(t, e) {
1292
- e === void 0 && (e = false);
1293
- for (var i = this.pos, s = 0, r = t; s < r.length; s += 1) {
1294
- var a = r[s], o2 = this.at(i, e);
1295
- if (o2 === -1 || o2 !== a) return false;
1296
- i = this.nextIndex(i, e);
1297
- }
1298
- return this.pos = i, true;
1299
- }, d.validateRegExpFlags = function(t) {
1300
- for (var e = t.validFlags, i = t.flags, s = false, r = false, a = 0; a < i.length; a++) {
1301
- var o2 = i.charAt(a);
1302
- e.indexOf(o2) === -1 && this.raise(t.start, "Invalid regular expression flag"), i.indexOf(o2, a + 1) > -1 && this.raise(t.start, "Duplicate regular expression flag"), o2 === "u" && (s = true), o2 === "v" && (r = true);
1303
- }
1304
- this.options.ecmaVersion >= 15 && s && r && this.raise(t.start, "Invalid regular expression flag");
1305
- }, d.validateRegExpPattern = function(t) {
1306
- this.regexp_pattern(t), !t.switchN && this.options.ecmaVersion >= 9 && (function(e) {
1307
- for (var i in e) return true;
1308
- return false;
1309
- })(t.groupNames) && (t.switchN = true, this.regexp_pattern(t));
1310
- }, d.regexp_pattern = function(t) {
1311
- t.pos = 0, t.lastIntValue = 0, t.lastStringValue = "", t.lastAssertionIsQuantifiable = false, t.numCapturingParens = 0, t.maxBackReference = 0, t.groupNames = /* @__PURE__ */ Object.create(null), t.backReferenceNames.length = 0, t.branchID = null, this.regexp_disjunction(t), t.pos !== t.source.length && (t.eat(41) && t.raise("Unmatched ')'"), (t.eat(93) || t.eat(125)) && t.raise("Lone quantifier brackets")), t.maxBackReference > t.numCapturingParens && t.raise("Invalid escape");
1312
- for (var e = 0, i = t.backReferenceNames; e < i.length; e += 1) {
1313
- var s = i[e];
1314
- t.groupNames[s] || t.raise("Invalid named capture referenced");
1315
- }
1316
- }, d.regexp_disjunction = function(t) {
1317
- var e = this.options.ecmaVersion >= 16;
1318
- for (e && (t.branchID = new Vt(t.branchID, null)), this.regexp_alternative(t); t.eat(124); ) e && (t.branchID = t.branchID.sibling()), this.regexp_alternative(t);
1319
- e && (t.branchID = t.branchID.parent), this.regexp_eatQuantifier(t, true) && t.raise("Nothing to repeat"), t.eat(123) && t.raise("Lone quantifier brackets");
1320
- }, d.regexp_alternative = function(t) {
1321
- for (; t.pos < t.source.length && this.regexp_eatTerm(t); ) ;
1322
- }, d.regexp_eatTerm = function(t) {
1323
- return this.regexp_eatAssertion(t) ? (t.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(t) && t.switchU && t.raise("Invalid quantifier"), true) : !!(t.switchU ? this.regexp_eatAtom(t) : this.regexp_eatExtendedAtom(t)) && (this.regexp_eatQuantifier(t), true);
1324
- }, d.regexp_eatAssertion = function(t) {
1325
- var e = t.pos;
1326
- if (t.lastAssertionIsQuantifiable = false, t.eat(94) || t.eat(36)) return true;
1327
- if (t.eat(92)) {
1328
- if (t.eat(66) || t.eat(98)) return true;
1329
- t.pos = e;
1330
- }
1331
- if (t.eat(40) && t.eat(63)) {
1332
- var i = false;
1333
- if (this.options.ecmaVersion >= 9 && (i = t.eat(60)), t.eat(61) || t.eat(33)) return this.regexp_disjunction(t), t.eat(41) || t.raise("Unterminated group"), t.lastAssertionIsQuantifiable = !i, true;
1334
- }
1335
- return t.pos = e, false;
1336
- }, d.regexp_eatQuantifier = function(t, e) {
1337
- return e === void 0 && (e = false), !!this.regexp_eatQuantifierPrefix(t, e) && (t.eat(63), true);
1338
- }, d.regexp_eatQuantifierPrefix = function(t, e) {
1339
- return t.eat(42) || t.eat(43) || t.eat(63) || this.regexp_eatBracedQuantifier(t, e);
1340
- }, d.regexp_eatBracedQuantifier = function(t, e) {
1341
- var i = t.pos;
1342
- if (t.eat(123)) {
1343
- var s = 0, r = -1;
1344
- if (this.regexp_eatDecimalDigits(t) && (s = t.lastIntValue, t.eat(44) && this.regexp_eatDecimalDigits(t) && (r = t.lastIntValue), t.eat(125))) return r !== -1 && r < s && !e && t.raise("numbers out of order in {} quantifier"), true;
1345
- t.switchU && !e && t.raise("Incomplete quantifier"), t.pos = i;
1346
- }
1347
- return false;
1348
- }, d.regexp_eatAtom = function(t) {
1349
- return this.regexp_eatPatternCharacters(t) || t.eat(46) || this.regexp_eatReverseSolidusAtomEscape(t) || this.regexp_eatCharacterClass(t) || this.regexp_eatUncapturingGroup(t) || this.regexp_eatCapturingGroup(t);
1350
- }, d.regexp_eatReverseSolidusAtomEscape = function(t) {
1351
- var e = t.pos;
1352
- if (t.eat(92)) {
1353
- if (this.regexp_eatAtomEscape(t)) return true;
1354
- t.pos = e;
1355
- }
1356
- return false;
1357
- }, d.regexp_eatUncapturingGroup = function(t) {
1358
- var e = t.pos;
1359
- if (t.eat(40)) {
1360
- if (t.eat(63)) {
1361
- if (this.options.ecmaVersion >= 16) {
1362
- var i = this.regexp_eatModifiers(t), s = t.eat(45);
1363
- if (i || s) {
1364
- for (var r = 0; r < i.length; r++) {
1365
- var a = i.charAt(r);
1366
- i.indexOf(a, r + 1) > -1 && t.raise("Duplicate regular expression modifiers");
1367
- }
1368
- if (s) {
1369
- var o2 = this.regexp_eatModifiers(t);
1370
- i || o2 || t.current() !== 58 || t.raise("Invalid regular expression modifiers");
1371
- for (var h = 0; h < o2.length; h++) {
1372
- var c = o2.charAt(h);
1373
- (o2.indexOf(c, h + 1) > -1 || i.indexOf(c) > -1) && t.raise("Duplicate regular expression modifiers");
1374
- }
1375
- }
1376
- }
1377
- }
1378
- if (t.eat(58)) {
1379
- if (this.regexp_disjunction(t), t.eat(41)) return true;
1380
- t.raise("Unterminated group");
1381
- }
1382
- }
1383
- t.pos = e;
1384
- }
1385
- return false;
1386
- }, d.regexp_eatCapturingGroup = function(t) {
1387
- if (t.eat(40)) {
1388
- if (this.options.ecmaVersion >= 9 ? this.regexp_groupSpecifier(t) : t.current() === 63 && t.raise("Invalid group"), this.regexp_disjunction(t), t.eat(41)) return t.numCapturingParens += 1, true;
1389
- t.raise("Unterminated group");
1390
- }
1391
- return false;
1392
- }, d.regexp_eatModifiers = function(t) {
1393
- for (var e = "", i = 0; (i = t.current()) !== -1 && cs(i); ) e += Q(i), t.advance();
1394
- return e;
1395
- }, d.regexp_eatExtendedAtom = function(t) {
1396
- return t.eat(46) || this.regexp_eatReverseSolidusAtomEscape(t) || this.regexp_eatCharacterClass(t) || this.regexp_eatUncapturingGroup(t) || this.regexp_eatCapturingGroup(t) || this.regexp_eatInvalidBracedQuantifier(t) || this.regexp_eatExtendedPatternCharacter(t);
1397
- }, d.regexp_eatInvalidBracedQuantifier = function(t) {
1398
- return this.regexp_eatBracedQuantifier(t, true) && t.raise("Nothing to repeat"), false;
1399
- }, d.regexp_eatSyntaxCharacter = function(t) {
1400
- var e = t.current();
1401
- return !!qe(e) && (t.lastIntValue = e, t.advance(), true);
1402
- }, d.regexp_eatPatternCharacters = function(t) {
1403
- for (var e = t.pos, i = 0; (i = t.current()) !== -1 && !qe(i); ) t.advance();
1404
- return t.pos !== e;
1405
- }, d.regexp_eatExtendedPatternCharacter = function(t) {
1406
- var e = t.current();
1407
- return !(e === -1 || e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e === 91 || e === 94 || e === 124) && (t.advance(), true);
1408
- }, d.regexp_groupSpecifier = function(t) {
1409
- if (t.eat(63)) {
1410
- this.regexp_eatGroupName(t) || t.raise("Invalid group");
1411
- var e = this.options.ecmaVersion >= 16, i = t.groupNames[t.lastStringValue];
1412
- if (i) if (e) for (var s = 0, r = i; s < r.length; s += 1) r[s].separatedFrom(t.branchID) || t.raise("Duplicate capture group name");
1413
- else t.raise("Duplicate capture group name");
1414
- e ? (i || (t.groupNames[t.lastStringValue] = [])).push(t.branchID) : t.groupNames[t.lastStringValue] = true;
1415
- }
1416
- }, d.regexp_eatGroupName = function(t) {
1417
- if (t.lastStringValue = "", t.eat(60)) {
1418
- if (this.regexp_eatRegExpIdentifierName(t) && t.eat(62)) return true;
1419
- t.raise("Invalid capture group name");
1420
- }
1421
- return false;
1422
- }, d.regexp_eatRegExpIdentifierName = function(t) {
1423
- if (t.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(t)) {
1424
- for (t.lastStringValue += Q(t.lastIntValue); this.regexp_eatRegExpIdentifierPart(t); ) t.lastStringValue += Q(t.lastIntValue);
1425
- return true;
1426
- }
1427
- return false;
1428
- }, d.regexp_eatRegExpIdentifierStart = function(t) {
1429
- var e = t.pos, i = this.options.ecmaVersion >= 11, s = t.current(i);
1430
- return t.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, i) && (s = t.lastIntValue), (function(r) {
1431
- return K(r, true) || r === 36 || r === 95;
1432
- })(s) ? (t.lastIntValue = s, true) : (t.pos = e, false);
1433
- }, d.regexp_eatRegExpIdentifierPart = function(t) {
1434
- var e = t.pos, i = this.options.ecmaVersion >= 11, s = t.current(i);
1435
- return t.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(t, i) && (s = t.lastIntValue), (function(r) {
1436
- return X(r, true) || r === 36 || r === 95 || r === 8204 || r === 8205;
1437
- })(s) ? (t.lastIntValue = s, true) : (t.pos = e, false);
1438
- }, d.regexp_eatAtomEscape = function(t) {
1439
- return !!(this.regexp_eatBackReference(t) || this.regexp_eatCharacterClassEscape(t) || this.regexp_eatCharacterEscape(t) || t.switchN && this.regexp_eatKGroupName(t)) || (t.switchU && (t.current() === 99 && t.raise("Invalid unicode escape"), t.raise("Invalid escape")), false);
1440
- }, d.regexp_eatBackReference = function(t) {
1441
- var e = t.pos;
1442
- if (this.regexp_eatDecimalEscape(t)) {
1443
- var i = t.lastIntValue;
1444
- if (t.switchU) return i > t.maxBackReference && (t.maxBackReference = i), true;
1445
- if (i <= t.numCapturingParens) return true;
1446
- t.pos = e;
1447
- }
1448
- return false;
1449
- }, d.regexp_eatKGroupName = function(t) {
1450
- if (t.eat(107)) {
1451
- if (this.regexp_eatGroupName(t)) return t.backReferenceNames.push(t.lastStringValue), true;
1452
- t.raise("Invalid named reference");
1453
- }
1454
- return false;
1455
- }, d.regexp_eatCharacterEscape = function(t) {
1456
- return this.regexp_eatControlEscape(t) || this.regexp_eatCControlLetter(t) || this.regexp_eatZero(t) || this.regexp_eatHexEscapeSequence(t) || this.regexp_eatRegExpUnicodeEscapeSequence(t, false) || !t.switchU && this.regexp_eatLegacyOctalEscapeSequence(t) || this.regexp_eatIdentityEscape(t);
1457
- }, d.regexp_eatCControlLetter = function(t) {
1458
- var e = t.pos;
1459
- if (t.eat(99)) {
1460
- if (this.regexp_eatControlLetter(t)) return true;
1461
- t.pos = e;
1462
- }
1463
- return false;
1464
- }, d.regexp_eatZero = function(t) {
1465
- return t.current() === 48 && !Ut(t.lookahead()) && (t.lastIntValue = 0, t.advance(), true);
1466
- }, d.regexp_eatControlEscape = function(t) {
1467
- var e = t.current();
1468
- return e === 116 ? (t.lastIntValue = 9, t.advance(), true) : e === 110 ? (t.lastIntValue = 10, t.advance(), true) : e === 118 ? (t.lastIntValue = 11, t.advance(), true) : e === 102 ? (t.lastIntValue = 12, t.advance(), true) : e === 114 && (t.lastIntValue = 13, t.advance(), true);
1469
- }, d.regexp_eatControlLetter = function(t) {
1470
- var e = t.current();
1471
- return !!We(e) && (t.lastIntValue = e % 32, t.advance(), true);
1472
- }, d.regexp_eatRegExpUnicodeEscapeSequence = function(t, e) {
1473
- e === void 0 && (e = false);
1474
- var i, s = t.pos, r = e || t.switchU;
1475
- if (t.eat(117)) {
1476
- if (this.regexp_eatFixedHexDigits(t, 4)) {
1477
- var a = t.lastIntValue;
1478
- if (r && a >= 55296 && a <= 56319) {
1479
- var o2 = t.pos;
1480
- if (t.eat(92) && t.eat(117) && this.regexp_eatFixedHexDigits(t, 4)) {
1481
- var h = t.lastIntValue;
1482
- if (h >= 56320 && h <= 57343) return t.lastIntValue = 1024 * (a - 55296) + (h - 56320) + 65536, true;
1483
- }
1484
- t.pos = o2, t.lastIntValue = a;
1485
- }
1486
- return true;
1487
- }
1488
- if (r && t.eat(123) && this.regexp_eatHexDigits(t) && t.eat(125) && (i = t.lastIntValue) >= 0 && i <= 1114111) return true;
1489
- r && t.raise("Invalid unicode escape"), t.pos = s;
1490
- }
1491
- return false;
1492
- }, d.regexp_eatIdentityEscape = function(t) {
1493
- if (t.switchU) return !!this.regexp_eatSyntaxCharacter(t) || !!t.eat(47) && (t.lastIntValue = 47, true);
1494
- var e = t.current();
1495
- return !(e === 99 || t.switchN && e === 107) && (t.lastIntValue = e, t.advance(), true);
1496
- }, d.regexp_eatDecimalEscape = function(t) {
1497
- t.lastIntValue = 0;
1498
- var e = t.current();
1499
- if (e >= 49 && e <= 57) {
1500
- do
1501
- t.lastIntValue = 10 * t.lastIntValue + (e - 48), t.advance();
1502
- while ((e = t.current()) >= 48 && e <= 57);
1503
- return true;
1504
- }
1505
- return false;
1506
- };
1507
- function Ge(t) {
1508
- return We(t) || t === 95;
1509
- }
1510
- function ps(t) {
1511
- return Ge(t) || Ut(t);
1512
- }
1513
- function Ut(t) {
1514
- return t >= 48 && t <= 57;
1515
- }
1516
- function He(t) {
1517
- return t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102;
1518
- }
1519
- function Ke(t) {
1520
- return t >= 65 && t <= 70 ? t - 65 + 10 : t >= 97 && t <= 102 ? t - 97 + 10 : t - 48;
1521
- }
1522
- function ze(t) {
1523
- return t >= 48 && t <= 55;
1524
- }
1525
- d.regexp_eatCharacterClassEscape = function(t) {
1526
- var e = t.current();
1527
- if (/* @__PURE__ */ (function(r) {
1528
- return r === 100 || r === 68 || r === 115 || r === 83 || r === 119 || r === 87;
1529
- })(e)) return t.lastIntValue = -1, t.advance(), 1;
1530
- var i = false;
1531
- if (t.switchU && this.options.ecmaVersion >= 9 && ((i = e === 80) || e === 112)) {
1532
- var s;
1533
- if (t.lastIntValue = -1, t.advance(), t.eat(123) && (s = this.regexp_eatUnicodePropertyValueExpression(t)) && t.eat(125)) return i && s === 2 && t.raise("Invalid property name"), s;
1534
- t.raise("Invalid property name");
1535
- }
1536
- return 0;
1537
- }, d.regexp_eatUnicodePropertyValueExpression = function(t) {
1538
- var e = t.pos;
1539
- if (this.regexp_eatUnicodePropertyName(t) && t.eat(61)) {
1540
- var i = t.lastStringValue;
1541
- if (this.regexp_eatUnicodePropertyValue(t)) {
1542
- var s = t.lastStringValue;
1543
- return this.regexp_validateUnicodePropertyNameAndValue(t, i, s), 1;
1544
- }
1545
- }
1546
- if (t.pos = e, this.regexp_eatLoneUnicodePropertyNameOrValue(t)) {
1547
- var r = t.lastStringValue;
1548
- return this.regexp_validateUnicodePropertyNameOrValue(t, r);
1549
- }
1550
- return 0;
1551
- }, d.regexp_validateUnicodePropertyNameAndValue = function(t, e, i) {
1552
- ft(t.unicodeProperties.nonBinary, e) || t.raise("Invalid property name"), t.unicodeProperties.nonBinary[e].test(i) || t.raise("Invalid property value");
1553
- }, d.regexp_validateUnicodePropertyNameOrValue = function(t, e) {
1554
- return t.unicodeProperties.binary.test(e) ? 1 : t.switchV && t.unicodeProperties.binaryOfStrings.test(e) ? 2 : void t.raise("Invalid property name");
1555
- }, d.regexp_eatUnicodePropertyName = function(t) {
1556
- var e = 0;
1557
- for (t.lastStringValue = ""; Ge(e = t.current()); ) t.lastStringValue += Q(e), t.advance();
1558
- return t.lastStringValue !== "";
1559
- }, d.regexp_eatUnicodePropertyValue = function(t) {
1560
- var e = 0;
1561
- for (t.lastStringValue = ""; ps(e = t.current()); ) t.lastStringValue += Q(e), t.advance();
1562
- return t.lastStringValue !== "";
1563
- }, d.regexp_eatLoneUnicodePropertyNameOrValue = function(t) {
1564
- return this.regexp_eatUnicodePropertyValue(t);
1565
- }, d.regexp_eatCharacterClass = function(t) {
1566
- if (t.eat(91)) {
1567
- var e = t.eat(94), i = this.regexp_classContents(t);
1568
- return t.eat(93) || t.raise("Unterminated character class"), e && i === 2 && t.raise("Negated character class may contain strings"), true;
1569
- }
1570
- return false;
1571
- }, d.regexp_classContents = function(t) {
1572
- return t.current() === 93 ? 1 : t.switchV ? this.regexp_classSetExpression(t) : (this.regexp_nonEmptyClassRanges(t), 1);
1573
- }, d.regexp_nonEmptyClassRanges = function(t) {
1574
- for (; this.regexp_eatClassAtom(t); ) {
1575
- var e = t.lastIntValue;
1576
- if (t.eat(45) && this.regexp_eatClassAtom(t)) {
1577
- var i = t.lastIntValue;
1578
- !t.switchU || e !== -1 && i !== -1 || t.raise("Invalid character class"), e !== -1 && i !== -1 && e > i && t.raise("Range out of order in character class");
1579
- }
1580
- }
1581
- }, d.regexp_eatClassAtom = function(t) {
1582
- var e = t.pos;
1583
- if (t.eat(92)) {
1584
- if (this.regexp_eatClassEscape(t)) return true;
1585
- if (t.switchU) {
1586
- var i = t.current();
1587
- (i === 99 || ze(i)) && t.raise("Invalid class escape"), t.raise("Invalid escape");
1588
- }
1589
- t.pos = e;
1590
- }
1591
- var s = t.current();
1592
- return s !== 93 && (t.lastIntValue = s, t.advance(), true);
1593
- }, d.regexp_eatClassEscape = function(t) {
1594
- var e = t.pos;
1595
- if (t.eat(98)) return t.lastIntValue = 8, true;
1596
- if (t.switchU && t.eat(45)) return t.lastIntValue = 45, true;
1597
- if (!t.switchU && t.eat(99)) {
1598
- if (this.regexp_eatClassControlLetter(t)) return true;
1599
- t.pos = e;
1600
- }
1601
- return this.regexp_eatCharacterClassEscape(t) || this.regexp_eatCharacterEscape(t);
1602
- }, d.regexp_classSetExpression = function(t) {
1603
- var e, i = 1;
1604
- if (!this.regexp_eatClassSetRange(t)) if (e = this.regexp_eatClassSetOperand(t)) {
1605
- e === 2 && (i = 2);
1606
- for (var s = t.pos; t.eatChars([38, 38]); ) t.current() !== 38 && (e = this.regexp_eatClassSetOperand(t)) ? e !== 2 && (i = 1) : t.raise("Invalid character in character class");
1607
- if (s !== t.pos) return i;
1608
- for (; t.eatChars([45, 45]); ) this.regexp_eatClassSetOperand(t) || t.raise("Invalid character in character class");
1609
- if (s !== t.pos) return i;
1610
- } else t.raise("Invalid character in character class");
1611
- for (; ; ) if (!this.regexp_eatClassSetRange(t)) {
1612
- if (!(e = this.regexp_eatClassSetOperand(t))) return i;
1613
- e === 2 && (i = 2);
1614
- }
1615
- }, d.regexp_eatClassSetRange = function(t) {
1616
- var e = t.pos;
1617
- if (this.regexp_eatClassSetCharacter(t)) {
1618
- var i = t.lastIntValue;
1619
- if (t.eat(45) && this.regexp_eatClassSetCharacter(t)) {
1620
- var s = t.lastIntValue;
1621
- return i !== -1 && s !== -1 && i > s && t.raise("Range out of order in character class"), true;
1622
- }
1623
- t.pos = e;
1624
- }
1625
- return false;
1626
- }, d.regexp_eatClassSetOperand = function(t) {
1627
- return this.regexp_eatClassSetCharacter(t) ? 1 : this.regexp_eatClassStringDisjunction(t) || this.regexp_eatNestedClass(t);
1628
- }, d.regexp_eatNestedClass = function(t) {
1629
- var e = t.pos;
1630
- if (t.eat(91)) {
1631
- var i = t.eat(94), s = this.regexp_classContents(t);
1632
- if (t.eat(93)) return i && s === 2 && t.raise("Negated character class may contain strings"), s;
1633
- t.pos = e;
1634
- }
1635
- if (t.eat(92)) {
1636
- var r = this.regexp_eatCharacterClassEscape(t);
1637
- if (r) return r;
1638
- t.pos = e;
1639
- }
1640
- return null;
1641
- }, d.regexp_eatClassStringDisjunction = function(t) {
1642
- var e = t.pos;
1643
- if (t.eatChars([92, 113])) {
1644
- if (t.eat(123)) {
1645
- var i = this.regexp_classStringDisjunctionContents(t);
1646
- if (t.eat(125)) return i;
1647
- } else t.raise("Invalid escape");
1648
- t.pos = e;
1649
- }
1650
- return null;
1651
- }, d.regexp_classStringDisjunctionContents = function(t) {
1652
- for (var e = this.regexp_classString(t); t.eat(124); ) this.regexp_classString(t) === 2 && (e = 2);
1653
- return e;
1654
- }, d.regexp_classString = function(t) {
1655
- for (var e = 0; this.regexp_eatClassSetCharacter(t); ) e++;
1656
- return e === 1 ? 1 : 2;
1657
- }, d.regexp_eatClassSetCharacter = function(t) {
1658
- var e = t.pos;
1659
- if (t.eat(92)) return !(!this.regexp_eatCharacterEscape(t) && !this.regexp_eatClassSetReservedPunctuator(t)) || (t.eat(98) ? (t.lastIntValue = 8, true) : (t.pos = e, false));
1660
- var i = t.current();
1661
- return !(i < 0 || i === t.lookahead() && (function(s) {
1662
- return s === 33 || s >= 35 && s <= 38 || s >= 42 && s <= 44 || s === 46 || s >= 58 && s <= 64 || s === 94 || s === 96 || s === 126;
1663
- })(i)) && !(function(s) {
1664
- return s === 40 || s === 41 || s === 45 || s === 47 || s >= 91 && s <= 93 || s >= 123 && s <= 125;
1665
- })(i) && (t.advance(), t.lastIntValue = i, true);
1666
- }, d.regexp_eatClassSetReservedPunctuator = function(t) {
1667
- var e = t.current();
1668
- return !!(function(i) {
1669
- return i === 33 || i === 35 || i === 37 || i === 38 || i === 44 || i === 45 || i >= 58 && i <= 62 || i === 64 || i === 96 || i === 126;
1670
- })(e) && (t.lastIntValue = e, t.advance(), true);
1671
- }, d.regexp_eatClassControlLetter = function(t) {
1672
- var e = t.current();
1673
- return !(!Ut(e) && e !== 95) && (t.lastIntValue = e % 32, t.advance(), true);
1674
- }, d.regexp_eatHexEscapeSequence = function(t) {
1675
- var e = t.pos;
1676
- if (t.eat(120)) {
1677
- if (this.regexp_eatFixedHexDigits(t, 2)) return true;
1678
- t.switchU && t.raise("Invalid escape"), t.pos = e;
1679
- }
1680
- return false;
1681
- }, d.regexp_eatDecimalDigits = function(t) {
1682
- var e = t.pos, i = 0;
1683
- for (t.lastIntValue = 0; Ut(i = t.current()); ) t.lastIntValue = 10 * t.lastIntValue + (i - 48), t.advance();
1684
- return t.pos !== e;
1685
- }, d.regexp_eatHexDigits = function(t) {
1686
- var e = t.pos, i = 0;
1687
- for (t.lastIntValue = 0; He(i = t.current()); ) t.lastIntValue = 16 * t.lastIntValue + Ke(i), t.advance();
1688
- return t.pos !== e;
1689
- }, d.regexp_eatLegacyOctalEscapeSequence = function(t) {
1690
- if (this.regexp_eatOctalDigit(t)) {
1691
- var e = t.lastIntValue;
1692
- if (this.regexp_eatOctalDigit(t)) {
1693
- var i = t.lastIntValue;
1694
- e <= 3 && this.regexp_eatOctalDigit(t) ? t.lastIntValue = 64 * e + 8 * i + t.lastIntValue : t.lastIntValue = 8 * e + i;
1695
- } else t.lastIntValue = e;
1696
- return true;
1697
- }
1698
- return false;
1699
- }, d.regexp_eatOctalDigit = function(t) {
1700
- var e = t.current();
1701
- return ze(e) ? (t.lastIntValue = e - 48, t.advance(), true) : (t.lastIntValue = 0, false);
1702
- }, d.regexp_eatFixedHexDigits = function(t, e) {
1703
- var i = t.pos;
1704
- t.lastIntValue = 0;
1705
- for (var s = 0; s < e; ++s) {
1706
- var r = t.current();
1707
- if (!He(r)) return t.pos = i, false;
1708
- t.lastIntValue = 16 * t.lastIntValue + Ke(r), t.advance();
1709
- }
1710
- return true;
1711
- };
1712
- var re = function(t) {
1713
- this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new Pt(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
1714
- }, E = N.prototype;
1715
- function Je(t) {
1716
- return typeof BigInt != "function" ? null : BigInt(t.replace(/_/g, ""));
1717
- }
1718
- E.next = function(t) {
1719
- !t && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new re(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
1720
- }, E.getToken = function() {
1721
- return this.next(), new re(this);
1722
- }, typeof Symbol < "u" && (E[Symbol.iterator] = function() {
1723
- var t = this;
1724
- return { next: function() {
1725
- var e = t.getToken();
1726
- return { done: e.type === n2.eof, value: e };
1727
- } };
1728
- }), E.nextToken = function() {
1729
- var t = this.curContext();
1730
- return t && t.preserveSpace || this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length ? this.finishToken(n2.eof) : t.override ? t.override(this) : void this.readToken(this.fullCharCodeAtPos());
1731
- }, E.readToken = function(t) {
1732
- return K(t, this.options.ecmaVersion >= 6) || t === 92 ? this.readWord() : this.getTokenFromCode(t);
1733
- }, E.fullCharCodeAtPos = function() {
1734
- var t = this.input.charCodeAt(this.pos);
1735
- if (t <= 55295 || t >= 56320) return t;
1736
- var e = this.input.charCodeAt(this.pos + 1);
1737
- return e <= 56319 || e >= 57344 ? t : (t << 10) + e - 56613888;
1738
- }, E.skipBlockComment = function() {
1739
- var t = this.options.onComment && this.curPosition(), e = this.pos, i = this.input.indexOf("*/", this.pos += 2);
1740
- if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations) for (var s = void 0, r = e; (s = Ce(this.input, r, this.pos)) > -1; ) ++this.curLine, r = this.lineStart = s;
1741
- this.options.onComment && this.options.onComment(true, this.input.slice(e + 2, i), e, this.pos, t, this.curPosition());
1742
- }, E.skipLineComment = function(t) {
1743
- for (var e = this.pos, i = this.options.onComment && this.curPosition(), s = this.input.charCodeAt(this.pos += t); this.pos < this.input.length && !ut(s); ) s = this.input.charCodeAt(++this.pos);
1744
- this.options.onComment && this.options.onComment(false, this.input.slice(e + t, this.pos), e, this.pos, i, this.curPosition());
1745
- }, E.skipSpace = function() {
1746
- t: for (; this.pos < this.input.length; ) {
1747
- var t = this.input.charCodeAt(this.pos);
1748
- switch (t) {
1749
- case 32:
1750
- case 160:
1751
- ++this.pos;
1752
- break;
1753
- case 13:
1754
- this.input.charCodeAt(this.pos + 1) === 10 && ++this.pos;
1755
- case 10:
1756
- case 8232:
1757
- case 8233:
1758
- ++this.pos, this.options.locations && (++this.curLine, this.lineStart = this.pos);
1759
- break;
1760
- case 47:
1761
- switch (this.input.charCodeAt(this.pos + 1)) {
1762
- case 42:
1763
- this.skipBlockComment();
1764
- break;
1765
- case 47:
1766
- this.skipLineComment(2);
1767
- break;
1768
- default:
1769
- break t;
1770
- }
1771
- break;
1772
- default:
1773
- if (!(t > 8 && t < 14 || t >= 5760 && Ie.test(String.fromCharCode(t)))) break t;
1774
- ++this.pos;
1775
- }
1776
- }
1777
- }, E.finishToken = function(t, e) {
1778
- this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
1779
- var i = this.type;
1780
- this.type = t, this.value = e, this.updateContext(i);
1781
- }, E.readToken_dot = function() {
1782
- var t = this.input.charCodeAt(this.pos + 1);
1783
- if (t >= 48 && t <= 57) return this.readNumber(true);
1784
- var e = this.input.charCodeAt(this.pos + 2);
1785
- return this.options.ecmaVersion >= 6 && t === 46 && e === 46 ? (this.pos += 3, this.finishToken(n2.ellipsis)) : (++this.pos, this.finishToken(n2.dot));
1786
- }, E.readToken_slash = function() {
1787
- var t = this.input.charCodeAt(this.pos + 1);
1788
- return this.exprAllowed ? (++this.pos, this.readRegexp()) : t === 61 ? this.finishOp(n2.assign, 2) : this.finishOp(n2.slash, 1);
1789
- }, E.readToken_mult_modulo_exp = function(t) {
1790
- var e = this.input.charCodeAt(this.pos + 1), i = 1, s = t === 42 ? n2.star : n2.modulo;
1791
- return this.options.ecmaVersion >= 7 && t === 42 && e === 42 && (++i, s = n2.starstar, e = this.input.charCodeAt(this.pos + 2)), e === 61 ? this.finishOp(n2.assign, i + 1) : this.finishOp(s, i);
1792
- }, E.readToken_pipe_amp = function(t) {
1793
- var e = this.input.charCodeAt(this.pos + 1);
1794
- return e === t ? this.options.ecmaVersion >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(n2.assign, 3) : this.finishOp(t === 124 ? n2.logicalOR : n2.logicalAND, 2) : e === 61 ? this.finishOp(n2.assign, 2) : this.finishOp(t === 124 ? n2.bitwiseOR : n2.bitwiseAND, 1);
1795
- }, E.readToken_caret = function() {
1796
- return this.input.charCodeAt(this.pos + 1) === 61 ? this.finishOp(n2.assign, 2) : this.finishOp(n2.bitwiseXOR, 1);
1797
- }, E.readToken_plus_min = function(t) {
1798
- var e = this.input.charCodeAt(this.pos + 1);
1799
- return e === t ? e !== 45 || this.inModule || this.input.charCodeAt(this.pos + 2) !== 62 || this.lastTokEnd !== 0 && !M.test(this.input.slice(this.lastTokEnd, this.pos)) ? this.finishOp(n2.incDec, 2) : (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : e === 61 ? this.finishOp(n2.assign, 2) : this.finishOp(n2.plusMin, 1);
1800
- }, E.readToken_lt_gt = function(t) {
1801
- var e = this.input.charCodeAt(this.pos + 1), i = 1;
1802
- return e === t ? (i = t === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + i) === 61 ? this.finishOp(n2.assign, i + 1) : this.finishOp(n2.bitShift, i)) : e !== 33 || t !== 60 || this.inModule || this.input.charCodeAt(this.pos + 2) !== 45 || this.input.charCodeAt(this.pos + 3) !== 45 ? (e === 61 && (i = 2), this.finishOp(n2.relational, i)) : (this.skipLineComment(4), this.skipSpace(), this.nextToken());
1803
- }, E.readToken_eq_excl = function(t) {
1804
- var e = this.input.charCodeAt(this.pos + 1);
1805
- return e === 61 ? this.finishOp(n2.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : t === 61 && e === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(n2.arrow)) : this.finishOp(t === 61 ? n2.eq : n2.prefix, 1);
1806
- }, E.readToken_question = function() {
1807
- var t = this.options.ecmaVersion;
1808
- if (t >= 11) {
1809
- var e = this.input.charCodeAt(this.pos + 1);
1810
- if (e === 46) {
1811
- var i = this.input.charCodeAt(this.pos + 2);
1812
- if (i < 48 || i > 57) return this.finishOp(n2.questionDot, 2);
1813
- }
1814
- if (e === 63) return t >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(n2.assign, 3) : this.finishOp(n2.coalesce, 2);
1815
- }
1816
- return this.finishOp(n2.question, 1);
1817
- }, E.readToken_numberSign = function() {
1818
- var t = 35;
1819
- if (this.options.ecmaVersion >= 13 && (++this.pos, K(t = this.fullCharCodeAtPos(), true) || t === 92)) return this.finishToken(n2.privateId, this.readWord1());
1820
- this.raise(this.pos, "Unexpected character '" + Q(t) + "'");
1821
- }, E.getTokenFromCode = function(t) {
1822
- switch (t) {
1823
- case 46:
1824
- return this.readToken_dot();
1825
- case 40:
1826
- return ++this.pos, this.finishToken(n2.parenL);
1827
- case 41:
1828
- return ++this.pos, this.finishToken(n2.parenR);
1829
- case 59:
1830
- return ++this.pos, this.finishToken(n2.semi);
1831
- case 44:
1832
- return ++this.pos, this.finishToken(n2.comma);
1833
- case 91:
1834
- return ++this.pos, this.finishToken(n2.bracketL);
1835
- case 93:
1836
- return ++this.pos, this.finishToken(n2.bracketR);
1837
- case 123:
1838
- return ++this.pos, this.finishToken(n2.braceL);
1839
- case 125:
1840
- return ++this.pos, this.finishToken(n2.braceR);
1841
- case 58:
1842
- return ++this.pos, this.finishToken(n2.colon);
1843
- case 96:
1844
- if (this.options.ecmaVersion < 6) break;
1845
- return ++this.pos, this.finishToken(n2.backQuote);
1846
- case 48:
1847
- var e = this.input.charCodeAt(this.pos + 1);
1848
- if (e === 120 || e === 88) return this.readRadixNumber(16);
1849
- if (this.options.ecmaVersion >= 6) {
1850
- if (e === 111 || e === 79) return this.readRadixNumber(8);
1851
- if (e === 98 || e === 66) return this.readRadixNumber(2);
1852
- }
1853
- case 49:
1854
- case 50:
1855
- case 51:
1856
- case 52:
1857
- case 53:
1858
- case 54:
1859
- case 55:
1860
- case 56:
1861
- case 57:
1862
- return this.readNumber(false);
1863
- case 34:
1864
- case 39:
1865
- return this.readString(t);
1866
- case 47:
1867
- return this.readToken_slash();
1868
- case 37:
1869
- case 42:
1870
- return this.readToken_mult_modulo_exp(t);
1871
- case 124:
1872
- case 38:
1873
- return this.readToken_pipe_amp(t);
1874
- case 94:
1875
- return this.readToken_caret();
1876
- case 43:
1877
- case 45:
1878
- return this.readToken_plus_min(t);
1879
- case 60:
1880
- case 62:
1881
- return this.readToken_lt_gt(t);
1882
- case 61:
1883
- case 33:
1884
- return this.readToken_eq_excl(t);
1885
- case 63:
1886
- return this.readToken_question();
1887
- case 126:
1888
- return this.finishOp(n2.prefix, 1);
1889
- case 35:
1890
- return this.readToken_numberSign();
1891
- }
1892
- this.raise(this.pos, "Unexpected character '" + Q(t) + "'");
1893
- }, E.finishOp = function(t, e) {
1894
- var i = this.input.slice(this.pos, this.pos + e);
1895
- return this.pos += e, this.finishToken(t, i);
1896
- }, E.readRegexp = function() {
1897
- for (var t, e, i = this.pos; ; ) {
1898
- this.pos >= this.input.length && this.raise(i, "Unterminated regular expression");
1899
- var s = this.input.charAt(this.pos);
1900
- if (M.test(s) && this.raise(i, "Unterminated regular expression"), t) t = false;
1901
- else {
1902
- if (s === "[") e = true;
1903
- else if (s === "]" && e) e = false;
1904
- else if (s === "/" && !e) break;
1905
- t = s === "\\";
1906
- }
1907
- ++this.pos;
1908
- }
1909
- var r = this.input.slice(i, this.pos);
1910
- ++this.pos;
1911
- var a = this.pos, o2 = this.readWord1();
1912
- this.containsEsc && this.unexpected(a);
1913
- var h = this.regexpState || (this.regexpState = new J(this));
1914
- h.reset(i, r, o2), this.validateRegExpFlags(h), this.validateRegExpPattern(h);
1915
- var c = null;
1916
- try {
1917
- c = new RegExp(r, o2);
1918
- } catch {
1919
- }
1920
- return this.finishToken(n2.regexp, { pattern: r, flags: o2, value: c });
1921
- }, E.readInt = function(t, e, i) {
1922
- for (var s = this.options.ecmaVersion >= 12 && e === void 0, r = i && this.input.charCodeAt(this.pos) === 48, a = this.pos, o2 = 0, h = 0, c = 0, l = e ?? 1 / 0; c < l; ++c, ++this.pos) {
1923
- var p = this.input.charCodeAt(this.pos), f = void 0;
1924
- if (s && p === 95) r && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), h === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), c === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), h = p;
1925
- else {
1926
- if ((f = p >= 97 ? p - 97 + 10 : p >= 65 ? p - 65 + 10 : p >= 48 && p <= 57 ? p - 48 : 1 / 0) >= t) break;
1927
- h = p, o2 = o2 * t + f;
1928
- }
1929
- }
1930
- return s && h === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === a || e != null && this.pos - a !== e ? null : o2;
1931
- }, E.readRadixNumber = function(t) {
1932
- var e = this.pos;
1933
- this.pos += 2;
1934
- var i = this.readInt(t);
1935
- return i == null && this.raise(this.start + 2, "Expected number in radix " + t), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = Je(this.input.slice(e, this.pos)), ++this.pos) : K(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(n2.num, i);
1936
- }, E.readNumber = function(t) {
1937
- var e = this.pos;
1938
- t || this.readInt(10, void 0, true) !== null || this.raise(e, "Invalid number");
1939
- var i = this.pos - e >= 2 && this.input.charCodeAt(e) === 48;
1940
- i && this.strict && this.raise(e, "Invalid number");
1941
- var s = this.input.charCodeAt(this.pos);
1942
- if (!i && !t && this.options.ecmaVersion >= 11 && s === 110) {
1943
- var r = Je(this.input.slice(e, this.pos));
1944
- return ++this.pos, K(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(n2.num, r);
1945
- }
1946
- i && /[89]/.test(this.input.slice(e, this.pos)) && (i = false), s !== 46 || i || (++this.pos, this.readInt(10), s = this.input.charCodeAt(this.pos)), s !== 69 && s !== 101 || i || ((s = this.input.charCodeAt(++this.pos)) !== 43 && s !== 45 || ++this.pos, this.readInt(10) === null && this.raise(e, "Invalid number")), K(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
1947
- var a, o2 = (a = this.input.slice(e, this.pos), i ? parseInt(a, 8) : parseFloat(a.replace(/_/g, "")));
1948
- return this.finishToken(n2.num, o2);
1949
- }, E.readCodePoint = function() {
1950
- var t;
1951
- if (this.input.charCodeAt(this.pos) === 123) {
1952
- this.options.ecmaVersion < 6 && this.unexpected();
1953
- var e = ++this.pos;
1954
- t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(e, "Code point out of bounds");
1955
- } else t = this.readHexChar(4);
1956
- return t;
1957
- }, E.readString = function(t) {
1958
- for (var e = "", i = ++this.pos; ; ) {
1959
- this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
1960
- var s = this.input.charCodeAt(this.pos);
1961
- if (s === t) break;
1962
- s === 92 ? (e += this.input.slice(i, this.pos), e += this.readEscapedChar(false), i = this.pos) : s === 8232 || s === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (ut(s) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
1963
- }
1964
- return e += this.input.slice(i, this.pos++), this.finishToken(n2.string, e);
1965
- };
1966
- var Ye = {};
1967
- E.tryReadTemplateToken = function() {
1968
- this.inTemplateElement = true;
1969
- try {
1970
- this.readTmplToken();
1971
- } catch (t) {
1972
- if (t !== Ye) throw t;
1973
- this.readInvalidTemplateToken();
1974
- }
1975
- this.inTemplateElement = false;
1976
- }, E.invalidStringToken = function(t, e) {
1977
- if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Ye;
1978
- this.raise(t, e);
1979
- }, E.readTmplToken = function() {
1980
- for (var t = "", e = this.pos; ; ) {
1981
- this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
1982
- var i = this.input.charCodeAt(this.pos);
1983
- if (i === 96 || i === 36 && this.input.charCodeAt(this.pos + 1) === 123) return this.pos !== this.start || this.type !== n2.template && this.type !== n2.invalidTemplate ? (t += this.input.slice(e, this.pos), this.finishToken(n2.template, t)) : i === 36 ? (this.pos += 2, this.finishToken(n2.dollarBraceL)) : (++this.pos, this.finishToken(n2.backQuote));
1984
- if (i === 92) t += this.input.slice(e, this.pos), t += this.readEscapedChar(true), e = this.pos;
1985
- else if (ut(i)) {
1986
- switch (t += this.input.slice(e, this.pos), ++this.pos, i) {
1987
- case 13:
1988
- this.input.charCodeAt(this.pos) === 10 && ++this.pos;
1989
- case 10:
1990
- t += `
1991
- `;
1992
- break;
1993
- default:
1994
- t += String.fromCharCode(i);
1995
- }
1996
- this.options.locations && (++this.curLine, this.lineStart = this.pos), e = this.pos;
1997
- } else ++this.pos;
1998
- }
1999
- }, E.readInvalidTemplateToken = function() {
2000
- for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
2001
- case "\\":
2002
- ++this.pos;
2003
- break;
2004
- case "$":
2005
- if (this.input[this.pos + 1] !== "{") break;
2006
- case "`":
2007
- return this.finishToken(n2.invalidTemplate, this.input.slice(this.start, this.pos));
2008
- case "\r":
2009
- this.input[this.pos + 1] === `
2010
- ` && ++this.pos;
2011
- case `
2012
- `:
2013
- case "\u2028":
2014
- case "\u2029":
2015
- ++this.curLine, this.lineStart = this.pos + 1;
2016
- }
2017
- this.raise(this.start, "Unterminated template");
2018
- }, E.readEscapedChar = function(t) {
2019
- var e = this.input.charCodeAt(++this.pos);
2020
- switch (++this.pos, e) {
2021
- case 110:
2022
- return `
2023
- `;
2024
- case 114:
2025
- return "\r";
2026
- case 120:
2027
- return String.fromCharCode(this.readHexChar(2));
2028
- case 117:
2029
- return Q(this.readCodePoint());
2030
- case 116:
2031
- return " ";
2032
- case 98:
2033
- return "\b";
2034
- case 118:
2035
- return "\v";
2036
- case 102:
2037
- return "\f";
2038
- case 13:
2039
- this.input.charCodeAt(this.pos) === 10 && ++this.pos;
2040
- case 10:
2041
- return this.options.locations && (this.lineStart = this.pos, ++this.curLine), "";
2042
- case 56:
2043
- case 57:
2044
- if (this.strict && this.invalidStringToken(this.pos - 1, "Invalid escape sequence"), t) {
2045
- var i = this.pos - 1;
2046
- this.invalidStringToken(i, "Invalid escape sequence in template string");
2047
- }
2048
- default:
2049
- if (e >= 48 && e <= 55) {
2050
- var s = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], r = parseInt(s, 8);
2051
- return r > 255 && (s = s.slice(0, -1), r = parseInt(s, 8)), this.pos += s.length - 1, e = this.input.charCodeAt(this.pos), s === "0" && e !== 56 && e !== 57 || !this.strict && !t || this.invalidStringToken(this.pos - 1 - s.length, t ? "Octal literal in template string" : "Octal literal in strict mode"), String.fromCharCode(r);
2052
- }
2053
- return ut(e) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(e);
2054
- }
2055
- }, E.readHexChar = function(t) {
2056
- var e = this.pos, i = this.readInt(16, t);
2057
- return i === null && this.invalidStringToken(e, "Bad character escape sequence"), i;
2058
- }, E.readWord1 = function() {
2059
- this.containsEsc = false;
2060
- for (var t = "", e = true, i = this.pos, s = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
2061
- var r = this.fullCharCodeAtPos();
2062
- if (X(r, s)) this.pos += r <= 65535 ? 1 : 2;
2063
- else {
2064
- if (r !== 92) break;
2065
- this.containsEsc = true, t += this.input.slice(i, this.pos);
2066
- var a = this.pos;
2067
- this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
2068
- var o2 = this.readCodePoint();
2069
- (e ? K : X)(o2, s) || this.invalidStringToken(a, "Invalid Unicode escape"), t += Q(o2), i = this.pos;
2070
- }
2071
- e = false;
2072
- }
2073
- return t + this.input.slice(i, this.pos);
2074
- }, E.readWord = function() {
2075
- var t = this.readWord1(), e = n2.name;
2076
- return this.keywords.test(t) && (e = Jt[t]), this.finishToken(e, t);
2077
- }, N.acorn = { Parser: N, version: "8.15.0", defaultOptions: Yt, Position: St, SourceLocation: Pt, getLineInfo: Ae, Node: Dt, TokenType: S, tokTypes: n2, keywordTypes: Jt, TokContext: G, tokContexts: R, isIdentifierChar: X, isIdentifierStart: K, Token: re, isNewLine: ut, lineBreak: M, lineBreakG: Ki, nonASCIIwhitespace: Ie };
2078
- let mt = m("module"), D = m("fs");
2079
- String.fromCharCode;
2080
- let ls = /\/$|\/\?|\/#/, us = /^\.?\//;
2081
- function fs(t = "", e) {
2082
- return e ? ls.test(t) : t.endsWith("/");
2083
- }
2084
- function ds(t = "", e) {
2085
- if (!e) return t.endsWith("/") ? t : t + "/";
2086
- if (fs(t, true)) return t || "/";
2087
- let i = t, s = "", r = t.indexOf("#");
2088
- if (r !== -1 && (i = t.slice(0, r), s = t.slice(r), !i)) return s;
2089
- let [a, ...o2] = i.split("?");
2090
- return a + "/" + (o2.length > 0 ? `?${o2.join("?")}` : "") + s;
2091
- }
2092
- function ms(t) {
2093
- return t && t !== "/";
2094
- }
2095
- function Qe(t, ...e) {
2096
- let i = t || "";
2097
- for (let s of e.filter((r) => ms(r))) if (i) {
2098
- let r = s.replace(us, "");
2099
- i = ds(i) + r;
2100
- } else i = s;
2101
- return i;
2102
- }
2103
- let gs = /^[A-Za-z]:\//;
2104
- function gt(t = "") {
2105
- return t && t.replace(/\\/g, "/").replace(gs, (e) => e.toUpperCase());
2106
- }
2107
- let xs = /^[/\\]{2}/, vs = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, Ze = /^[A-Za-z]:$/, ys = /.(\.[^./]+|\.)$/, _s = function(t) {
2108
- if (t.length === 0) return ".";
2109
- let e = (t = gt(t)).match(xs), i = at(t), s = t[t.length - 1] === "/";
2110
- return (t = Xe(t, !i)).length === 0 ? i ? "/" : s ? "./" : "." : (s && (t += "/"), Ze.test(t) && (t += "/"), e ? i ? `//${t}` : `//./${t}` : i && !at(t) ? `/${t}` : t);
2111
- }, it = function(...t) {
2112
- let e = "";
2113
- for (let i of t) if (i) if (e.length > 0) {
2114
- let s = e[e.length - 1] === "/", r = i[0] === "/";
2115
- e += s && r ? i.slice(1) : s || r ? i : `/${i}`;
2116
- } else e += i;
2117
- return _s(e);
2118
- };
2119
- function Es() {
2120
- return typeof process < "u" && typeof process.cwd == "function" ? process.cwd().replace(/\\/g, "/") : "/";
2121
- }
2122
- let bs = function(...t) {
2123
- let e = "", i = false;
2124
- for (let s = (t = t.map((r) => gt(r))).length - 1; s >= -1 && !i; s--) {
2125
- let r = s >= 0 ? t[s] : Es();
2126
- r && r.length !== 0 && (e = `${r}/${e}`, i = at(r));
2127
- }
2128
- return e = Xe(e, !i), i && !at(e) ? `/${e}` : e.length > 0 ? e : ".";
2129
- };
2130
- function Xe(t, e) {
2131
- let i = "", s = 0, r = -1, a = 0, o2 = null;
2132
- for (let h = 0; h <= t.length; ++h) {
2133
- if (h < t.length) o2 = t[h];
2134
- else {
2135
- if (o2 === "/") break;
2136
- o2 = "/";
2137
- }
2138
- if (o2 === "/") {
2139
- if (!(r === h - 1 || a === 1)) if (a === 2) {
2140
- if (i.length < 2 || s !== 2 || i[i.length - 1] !== "." || i[i.length - 2] !== ".") {
2141
- if (i.length > 2) {
2142
- let c = i.lastIndexOf("/");
2143
- c === -1 ? (i = "", s = 0) : (i = i.slice(0, c), s = i.length - 1 - i.lastIndexOf("/")), r = h, a = 0;
2144
- continue;
2145
- }
2146
- if (i.length > 0) {
2147
- i = "", s = 0, r = h, a = 0;
2148
- continue;
2149
- }
2150
- }
2151
- e && (i += i.length > 0 ? "/.." : "..", s = 2);
2152
- } else i.length > 0 ? i += `/${t.slice(r + 1, h)}` : i = t.slice(r + 1, h), s = h - r - 1;
2153
- r = h, a = 0;
2154
- } else o2 === "." && a !== -1 ? ++a : a = -1;
2155
- }
2156
- return i;
2157
- }
2158
- let at = function(t) {
2159
- return vs.test(t);
2160
- }, ti = function(t) {
2161
- if (t === "..") return "";
2162
- let e = ys.exec(gt(t));
2163
- return e && e[1] || "";
2164
- }, Mt = function(t) {
2165
- let e = gt(t).replace(/\/$/, "").split("/").slice(0, -1);
2166
- return e.length === 1 && Ze.test(e[0]) && (e[0] += "/"), e.join("/") || (at(t) ? "/" : ".");
2167
- }, ei = function(t, e) {
2168
- let i = gt(t).split("/"), s = "";
2169
- for (let r = i.length - 1; r >= 0; r--) {
2170
- let a = i[r];
2171
- if (a) {
2172
- s = a;
2173
- break;
2174
- }
2175
- }
2176
- return e && s.endsWith(e) ? s.slice(0, -e.length) : s;
2177
- }, g = m("url"), st = m("assert"), ot = m("process"), ne = m("path"), Ss = m("v8"), jt = m("util"), ii = new Set(mt.builtinModules);
2178
- function ae(t) {
2179
- return t.replace(/\\/g, "/");
2180
- }
2181
- let Cs = {}.hasOwnProperty, Is = /^([A-Z][a-z\d]*)+$/, ks = /* @__PURE__ */ new Set(["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"]), V = {};
2182
- function oe(t, e = "and") {
2183
- return t.length < 3 ? t.join(` ${e} `) : `${t.slice(0, -1).join(", ")}, ${e} ${t[t.length - 1]}`;
2184
- }
2185
- let si = /* @__PURE__ */ new Map(), ri;
2186
- function W(t, e, i) {
2187
- return si.set(t, e), /* @__PURE__ */ (function(s, r) {
2188
- return a;
2189
- function a(...o2) {
2190
- let h = Error.stackTraceLimit;
2191
- he() && (Error.stackTraceLimit = 0);
2192
- let c = new s();
2193
- he() && (Error.stackTraceLimit = h);
2194
- let l = (function(p, f, u) {
2195
- let v = si.get(p);
2196
- if (st(v !== void 0, "expected `message` to be found"), typeof v == "function") return st(v.length <= f.length, `Code: ${p}; The provided arguments length (${f.length}) does not match the required ones (${v.length}).`), Reflect.apply(v, u, f);
2197
- let w = /%[dfijoOs]/g, y = 0;
2198
- for (; w.exec(v) !== null; ) y++;
2199
- return st(y === f.length, `Code: ${p}; The provided arguments length (${f.length}) does not match the required ones (${y}).`), f.length === 0 ? v : (f.unshift(v), Reflect.apply(jt.format, null, f));
2200
- })(r, o2, c);
2201
- return Object.defineProperties(c, { message: { value: l, enumerable: false, writable: true, configurable: true }, toString: { value() {
2202
- return `${this.name} [${r}]: ${this.message}`;
2203
- }, enumerable: false, writable: true, configurable: true } }), ws(c), c.code = r, c;
2204
- }
2205
- })(i, t);
2206
- }
2207
- function he() {
2208
- try {
2209
- if (Ss.startupSnapshot.isBuildingSnapshot()) return false;
2210
- } catch {
2211
- }
2212
- let t = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
2213
- return t === void 0 ? Object.isExtensible(Error) : Cs.call(t, "writable") && t.writable !== void 0 ? t.writable : t.set !== void 0;
2214
- }
2215
- V.ERR_INVALID_ARG_TYPE = W("ERR_INVALID_ARG_TYPE", (t, e, i) => {
2216
- st(typeof t == "string", "'name' must be a string"), Array.isArray(e) || (e = [e]);
2217
- let s = "The ";
2218
- if (t.endsWith(" argument")) s += `${t} `;
2219
- else {
2220
- let h = t.includes(".") ? "property" : "argument";
2221
- s += `"${t}" ${h} `;
2222
- }
2223
- s += "must be ";
2224
- let r = [], a = [], o2 = [];
2225
- for (let h of e) st(typeof h == "string", "All expected entries have to be of type string"), ks.has(h) ? r.push(h.toLowerCase()) : Is.exec(h) === null ? (st(h !== "object", 'The value "object" should be written as "Object"'), o2.push(h)) : a.push(h);
2226
- if (a.length > 0) {
2227
- let h = r.indexOf("object");
2228
- h !== -1 && (r.slice(h, 1), a.push("Object"));
2229
- }
2230
- return r.length > 0 && (s += `${r.length > 1 ? "one of type" : "of type"} ${oe(r, "or")}`, (a.length > 0 || o2.length > 0) && (s += " or ")), a.length > 0 && (s += `an instance of ${oe(a, "or")}`, o2.length > 0 && (s += " or ")), o2.length > 0 && (o2.length > 1 ? s += `one of ${oe(o2, "or")}` : (o2[0].toLowerCase() !== o2[0] && (s += "an "), s += `${o2[0]}`)), s += `. Received ${(function(h) {
2231
- if (h == null) return String(h);
2232
- if (typeof h == "function" && h.name) return `function ${h.name}`;
2233
- if (typeof h == "object") return h.constructor && h.constructor.name ? `an instance of ${h.constructor.name}` : `${(0, jt.inspect)(h, { depth: -1 })}`;
2234
- let c = (0, jt.inspect)(h, { colors: false });
2235
- return c.length > 28 && (c = `${c.slice(0, 25)}...`), `type ${typeof h} (${c})`;
2236
- })(i)}`, s;
2237
- }, TypeError), V.ERR_INVALID_MODULE_SPECIFIER = W("ERR_INVALID_MODULE_SPECIFIER", (t, e, i = void 0) => `Invalid module "${t}" ${e}${i ? ` imported from ${i}` : ""}`, TypeError), V.ERR_INVALID_PACKAGE_CONFIG = W("ERR_INVALID_PACKAGE_CONFIG", (t, e, i) => `Invalid package config ${t}${e ? ` while importing ${e}` : ""}${i ? `. ${i}` : ""}`, Error), V.ERR_INVALID_PACKAGE_TARGET = W("ERR_INVALID_PACKAGE_TARGET", (t, e, i, s = false, r = void 0) => {
2238
- let a = typeof i == "string" && !s && i.length > 0 && !i.startsWith("./");
2239
- return e === "." ? (st(s === false), `Invalid "exports" main target ${JSON.stringify(i)} defined in the package config ${t}package.json${r ? ` imported from ${r}` : ""}${a ? '; targets must start with "./"' : ""}`) : `Invalid "${s ? "imports" : "exports"}" target ${JSON.stringify(i)} defined for '${e}' in the package config ${t}package.json${r ? ` imported from ${r}` : ""}${a ? '; targets must start with "./"' : ""}`;
2240
- }, Error), V.ERR_MODULE_NOT_FOUND = W("ERR_MODULE_NOT_FOUND", (t, e, i = false) => `Cannot find ${i ? "module" : "package"} '${t}' imported from ${e}`, Error), V.ERR_NETWORK_IMPORT_DISALLOWED = W("ERR_NETWORK_IMPORT_DISALLOWED", "import of '%s' by %s is not supported: %s", Error), V.ERR_PACKAGE_IMPORT_NOT_DEFINED = W("ERR_PACKAGE_IMPORT_NOT_DEFINED", (t, e, i) => `Package import specifier "${t}" is not defined${e ? ` in package ${e}package.json` : ""} imported from ${i}`, TypeError), V.ERR_PACKAGE_PATH_NOT_EXPORTED = W("ERR_PACKAGE_PATH_NOT_EXPORTED", (t, e, i = void 0) => e === "." ? `No "exports" main defined in ${t}package.json${i ? ` imported from ${i}` : ""}` : `Package subpath '${e}' is not defined by "exports" in ${t}package.json${i ? ` imported from ${i}` : ""}`, Error), V.ERR_UNSUPPORTED_DIR_IMPORT = W("ERR_UNSUPPORTED_DIR_IMPORT", "Directory import '%s' is not supported resolving ES modules imported from %s", Error), V.ERR_UNSUPPORTED_RESOLVE_REQUEST = W("ERR_UNSUPPORTED_RESOLVE_REQUEST", 'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.', TypeError), V.ERR_UNKNOWN_FILE_EXTENSION = W("ERR_UNKNOWN_FILE_EXTENSION", (t, e) => `Unknown file extension "${t}" for ${e}`, TypeError), V.ERR_INVALID_ARG_VALUE = W("ERR_INVALID_ARG_VALUE", (t, e, i = "is invalid") => {
2241
- let s = (0, jt.inspect)(e);
2242
- return s.length > 128 && (s = `${s.slice(0, 128)}...`), `The ${t.includes(".") ? "property" : "argument"} '${t}' ${i}. Received ${s}`;
2243
- }, TypeError);
2244
- let ws = (function(t) {
2245
- let e = "__node_internal_" + t.name;
2246
- return Object.defineProperty(t, "name", { value: e }), t;
2247
- })(function(t) {
2248
- let e = he();
2249
- return e && (ri = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(t), e && (Error.stackTraceLimit = ri), t;
2250
- }), kt = {}.hasOwnProperty, { ERR_INVALID_PACKAGE_CONFIG: Rs } = V, ni = /* @__PURE__ */ new Map();
2251
- function ai(t, { base: e, specifier: i }) {
2252
- let s = ni.get(t);
2253
- if (s) return s;
2254
- let r;
2255
- try {
2256
- r = D.readFileSync(ne.toNamespacedPath(t), "utf8");
2257
- } catch (o2) {
2258
- let h = o2;
2259
- if (h.code !== "ENOENT") throw h;
2260
- }
2261
- let a = { exists: false, pjsonPath: t, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
2262
- if (r !== void 0) {
2263
- let o2;
2264
- try {
2265
- o2 = JSON.parse(r);
2266
- } catch (h) {
2267
- let c = h, l = new Rs(t, (e ? `"${i}" from ` : "") + (0, g.fileURLToPath)(e || i), c.message);
2268
- throw l.cause = c, l;
2269
- }
2270
- a.exists = true, kt.call(o2, "name") && typeof o2.name == "string" && (a.name = o2.name), kt.call(o2, "main") && typeof o2.main == "string" && (a.main = o2.main), kt.call(o2, "exports") && (a.exports = o2.exports), kt.call(o2, "imports") && (a.imports = o2.imports), !kt.call(o2, "type") || o2.type !== "commonjs" && o2.type !== "module" || (a.type = o2.type);
2271
- }
2272
- return ni.set(t, a), a;
2273
- }
2274
- function ce(t) {
2275
- let e = new URL("package.json", t);
2276
- for (; !e.pathname.endsWith("node_modules/package.json"); ) {
2277
- let i = ai((0, g.fileURLToPath)(e), { specifier: t });
2278
- if (i.exists) return i;
2279
- let s = e;
2280
- if (e = new URL("../package.json", e), e.pathname === s.pathname) break;
2281
- }
2282
- return { pjsonPath: (0, g.fileURLToPath)(e), exists: false, type: "none" };
2283
- }
2284
- function oi(t) {
2285
- return ce(t).type;
2286
- }
2287
- let { ERR_UNKNOWN_FILE_EXTENSION: As } = V, Ts = {}.hasOwnProperty, Ps = { __proto__: null, ".cjs": "commonjs", ".js": "module", ".json": "json", ".mjs": "module" }, hi = { __proto__: null, "data:": function(t) {
2288
- let { 1: e } = /^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(t.pathname) || [null, null, null];
2289
- return (function(i) {
2290
- return i && /\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(i) ? "module" : i === "application/json" ? "json" : null;
2291
- })(e);
2292
- }, "file:": function(t, e, i) {
2293
- let s = (function(o2) {
2294
- let h = o2.pathname, c = h.length;
2295
- for (; c--; ) {
2296
- let l = h.codePointAt(c);
2297
- if (l === 47) return "";
2298
- if (l === 46) return h.codePointAt(c - 1) === 47 ? "" : h.slice(c);
2299
- }
2300
- return "";
2301
- })(t);
2302
- if (s === ".js") {
2303
- let o2 = oi(t);
2304
- return o2 !== "none" ? o2 : "commonjs";
2305
- }
2306
- if (s === "") {
2307
- let o2 = oi(t);
2308
- return o2 === "none" || o2 === "commonjs" ? "commonjs" : "module";
2309
- }
2310
- let r = Ps[s];
2311
- if (r) return r;
2312
- if (i) return;
2313
- let a = (0, g.fileURLToPath)(t);
2314
- throw new As(s, a);
2315
- }, "http:": ci, "https:": ci, "node:": () => "builtin" };
2316
- function ci() {
2317
- }
2318
- let Bt = RegExp.prototype[Symbol.replace], { ERR_INVALID_MODULE_SPECIFIER: Ft, ERR_INVALID_PACKAGE_CONFIG: pi, ERR_INVALID_PACKAGE_TARGET: Ns, ERR_MODULE_NOT_FOUND: pe, ERR_PACKAGE_IMPORT_NOT_DEFINED: Ls, ERR_PACKAGE_PATH_NOT_EXPORTED: Os, ERR_UNSUPPORTED_DIR_IMPORT: Ds, ERR_UNSUPPORTED_RESOLVE_REQUEST: li } = V, ui = {}.hasOwnProperty, fi = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i, di = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i, Vs = /^\.|%|\\/, $t = /\*/g, Us = /%2f|%5c/i, mi = /* @__PURE__ */ new Set(), Ms = /[/\\]{2}/;
2319
- function gi(t, e, i, s, r, a, o2) {
2320
- if (ot.noDeprecation) return;
2321
- let h = (0, g.fileURLToPath)(s), c = Ms.exec(o2 ? t : e) !== null;
2322
- ot.emitWarning(`Use of deprecated ${c ? "double slash" : "leading or trailing slash matching"} resolving "${t}" for module request "${e}" ${e === i ? "" : `matched to "${i}" `}in the "${r ? "imports" : "exports"}" field module resolution of the package at ${h}${a ? ` imported from ${(0, g.fileURLToPath)(a)}` : ""}.`, "DeprecationWarning", "DEP0166");
2323
- }
2324
- function xi(t, e, i, s) {
2325
- if (ot.noDeprecation || (function(c, l) {
2326
- let p = c.protocol;
2327
- return Ts.call(hi, p) && hi[p](c, l, true) || null;
2328
- })(t, { parentURL: i.href }) !== "module") return;
2329
- let a = (0, g.fileURLToPath)(t.href), o2 = (0, g.fileURLToPath)(new g.URL(".", e)), h = (0, g.fileURLToPath)(i);
2330
- s ? ne.resolve(o2, s) !== a && ot.emitWarning(`Package ${o2} has a "main" field set to "${s}", excluding the full filename and extension to the resolved file at "${a.slice(o2.length)}", imported from ${h}.
2331
- Automatic extension resolution of the "main" field is deprecated for ES modules.`, "DeprecationWarning", "DEP0151") : ot.emitWarning(`No "main" or "exports" field defined in the package.json for ${o2} resolving the main entry point "${a.slice(o2.length)}", imported from ${h}.
2332
- Default "index" lookups for the main are deprecated for ES modules.`, "DeprecationWarning", "DEP0151");
2333
- }
2334
- function vi(t) {
2335
- try {
2336
- return (0, D.statSync)(t);
2337
- } catch {
2338
- }
2339
- }
2340
- function le(t) {
2341
- let e = (0, D.statSync)(t, { throwIfNoEntry: false }), i = e ? e.isFile() : void 0;
2342
- return i != null && i;
2343
- }
2344
- function js(t, e, i) {
2345
- let s;
2346
- if (e.main !== void 0) {
2347
- if (s = new g.URL(e.main, t), le(s)) return s;
2348
- let o2 = [`./${e.main}.js`, `./${e.main}.json`, `./${e.main}.node`, `./${e.main}/index.js`, `./${e.main}/index.json`, `./${e.main}/index.node`], h = -1;
2349
- for (; ++h < o2.length && (s = new g.URL(o2[h], t), !le(s)); ) s = void 0;
2350
- if (s) return xi(s, t, i, e.main), s;
2351
- }
2352
- let r = ["./index.js", "./index.json", "./index.node"], a = -1;
2353
- for (; ++a < r.length && (s = new g.URL(r[a], t), !le(s)); ) s = void 0;
2354
- if (s) return xi(s, t, i, e.main), s;
2355
- throw new pe((0, g.fileURLToPath)(new g.URL(".", t)), (0, g.fileURLToPath)(i));
2356
- }
2357
- function ue(t, e, i) {
2358
- return new Os((0, g.fileURLToPath)(new g.URL(".", e)), t, i && (0, g.fileURLToPath)(i));
2359
- }
2360
- function wt(t, e, i, s, r) {
2361
- return e = typeof e == "object" && e !== null ? JSON.stringify(e, null, "") : `${e}`, new Ns((0, g.fileURLToPath)(new g.URL(".", i)), t, e, s, r && (0, g.fileURLToPath)(r));
2362
- }
2363
- function Bs(t, e, i, s, r, a, o2, h, c) {
2364
- if (e !== "" && !a && t[t.length - 1] !== "/") throw wt(i, t, s, o2, r);
2365
- if (!t.startsWith("./")) {
2366
- if (o2 && !t.startsWith("../") && !t.startsWith("/")) {
2367
- let u = false;
2368
- try {
2369
- new g.URL(t), u = true;
2370
- } catch {
2371
- }
2372
- if (!u) return Ei(a ? Bt.call($t, t, () => e) : t + e, s, c);
2373
- }
2374
- throw wt(i, t, s, o2, r);
2375
- }
2376
- if (fi.exec(t.slice(2)) !== null) {
2377
- if (di.exec(t.slice(2)) !== null) throw wt(i, t, s, o2, r);
2378
- if (!h) {
2379
- let u = a ? i.replace("*", () => e) : i + e;
2380
- gi(a ? Bt.call($t, t, () => e) : t, u, i, s, o2, r, true);
2381
- }
2382
- }
2383
- let l = new g.URL(t, s), p = l.pathname, f = new g.URL(".", s).pathname;
2384
- if (!p.startsWith(f)) throw wt(i, t, s, o2, r);
2385
- if (e === "") return l;
2386
- if (fi.exec(e) !== null) {
2387
- let u = a ? i.replace("*", () => e) : i + e;
2388
- di.exec(e) === null ? h || gi(a ? Bt.call($t, t, () => e) : t, u, i, s, o2, r, false) : (function(v, w, y, I, C) {
2389
- let k = `request is not a valid match in pattern "${w}" for the "${I ? "imports" : "exports"}" resolution of ${(0, g.fileURLToPath)(y)}`;
2390
- throw new Ft(v, k, C && (0, g.fileURLToPath)(C));
2391
- })(u, i, s, o2, r);
2392
- }
2393
- return a ? new g.URL(Bt.call($t, l.href, () => e)) : new g.URL(e, l);
2394
- }
2395
- function Fs(t) {
2396
- let e = Number(t);
2397
- return `${e}` === t && e >= 0 && e < 4294967295;
2398
- }
2399
- function xt(t, e, i, s, r, a, o2, h, c) {
2400
- if (typeof e == "string") return Bs(e, i, s, t, r, a, o2, h, c);
2401
- if (Array.isArray(e)) {
2402
- let l = e;
2403
- if (l.length === 0) return null;
2404
- let p, f = -1;
2405
- for (; ++f < l.length; ) {
2406
- let u = l[f], v;
2407
- try {
2408
- v = xt(t, u, i, s, r, a, o2, h, c);
2409
- } catch (w) {
2410
- if (p = w, w.code === "ERR_INVALID_PACKAGE_TARGET") continue;
2411
- throw w;
2412
- }
2413
- if (v !== void 0) {
2414
- if (v !== null) return v;
2415
- p = null;
2416
- }
2417
- }
2418
- if (p == null) return null;
2419
- throw p;
2420
- }
2421
- if (typeof e == "object" && e !== null) {
2422
- let l = Object.getOwnPropertyNames(e), p = -1;
2423
- for (; ++p < l.length; ) if (Fs(l[p])) throw new pi((0, g.fileURLToPath)(t), r, '"exports" cannot contain numeric property keys.');
2424
- for (p = -1; ++p < l.length; ) {
2425
- let f = l[p];
2426
- if (f === "default" || c && c.has(f)) {
2427
- let u = xt(t, e[f], i, s, r, a, o2, h, c);
2428
- if (u === void 0) continue;
2429
- return u;
2430
- }
2431
- }
2432
- return null;
2433
- }
2434
- if (e === null) return null;
2435
- throw wt(s, e, t, o2, r);
2436
- }
2437
- function $s(t, e, i) {
2438
- if (ot.noDeprecation) return;
2439
- let s = (0, g.fileURLToPath)(e);
2440
- mi.has(s + "|" + t) || (mi.add(s + "|" + t), ot.emitWarning(`Use of deprecated trailing slash pattern mapping "${t}" in the "exports" field module resolution of the package at ${s}${i ? ` imported from ${(0, g.fileURLToPath)(i)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`, "DeprecationWarning", "DEP0155"));
2441
- }
2442
- function yi(t, e, i, s, r) {
2443
- let a = i.exports;
2444
- if ((function(p, f, u) {
2445
- if (typeof p == "string" || Array.isArray(p)) return true;
2446
- if (typeof p != "object" || p === null) return false;
2447
- let v = Object.getOwnPropertyNames(p), w = false, y = 0, I = -1;
2448
- for (; ++I < v.length; ) {
2449
- let C = v[I], k = C === "" || C[0] !== ".";
2450
- if (y++ === 0) w = k;
2451
- else if (w !== k) throw new pi((0, g.fileURLToPath)(f), u, `"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`);
2452
- }
2453
- return w;
2454
- })(a, t, s) && (a = { ".": a }), ui.call(a, e) && !e.includes("*") && !e.endsWith("/")) {
2455
- let p = xt(t, a[e], "", e, s, false, false, false, r);
2456
- if (p == null) throw ue(e, t, s);
2457
- return p;
2458
- }
2459
- let o2 = "", h = "", c = Object.getOwnPropertyNames(a), l = -1;
2460
- for (; ++l < c.length; ) {
2461
- let p = c[l], f = p.indexOf("*");
2462
- if (f !== -1 && e.startsWith(p.slice(0, f))) {
2463
- e.endsWith("/") && $s(e, t, s);
2464
- let u = p.slice(f + 1);
2465
- e.length >= p.length && e.endsWith(u) && _i(o2, p) === 1 && p.lastIndexOf("*") === f && (o2 = p, h = e.slice(f, e.length - u.length));
2466
- }
2467
- }
2468
- if (o2) {
2469
- let p = xt(t, a[o2], h, o2, s, true, false, e.endsWith("/"), r);
2470
- if (p == null) throw ue(e, t, s);
2471
- return p;
2472
- }
2473
- throw ue(e, t, s);
2474
- }
2475
- function _i(t, e) {
2476
- let i = t.indexOf("*"), s = e.indexOf("*"), r = i === -1 ? t.length : i + 1, a = s === -1 ? e.length : s + 1;
2477
- return r > a ? -1 : a > r || i === -1 ? 1 : s === -1 || t.length > e.length ? -1 : e.length > t.length ? 1 : 0;
2478
- }
2479
- function qs(t, e, i) {
2480
- if (t === "#" || t.startsWith("#/") || t.endsWith("/")) throw new Ft(t, "is not a valid internal imports specifier name", (0, g.fileURLToPath)(e));
2481
- let s, r = ce(e);
2482
- if (r.exists) {
2483
- s = (0, g.pathToFileURL)(r.pjsonPath);
2484
- let a = r.imports;
2485
- if (a) if (ui.call(a, t) && !t.includes("*")) {
2486
- let o2 = xt(s, a[t], "", t, e, false, true, false, i);
2487
- if (o2 != null) return o2;
2488
- } else {
2489
- let o2 = "", h = "", c = Object.getOwnPropertyNames(a), l = -1;
2490
- for (; ++l < c.length; ) {
2491
- let p = c[l], f = p.indexOf("*");
2492
- if (f !== -1 && t.startsWith(p.slice(0, -1))) {
2493
- let u = p.slice(f + 1);
2494
- t.length >= p.length && t.endsWith(u) && _i(o2, p) === 1 && p.lastIndexOf("*") === f && (o2 = p, h = t.slice(f, t.length - u.length));
2495
- }
2496
- }
2497
- if (o2) {
2498
- let p = xt(s, a[o2], h, o2, e, true, true, false, i);
2499
- if (p != null) return p;
2500
- }
2501
- }
2502
- }
2503
- throw (function(a, o2, h) {
2504
- return new Ls(a, o2 && (0, g.fileURLToPath)(new g.URL(".", o2)), (0, g.fileURLToPath)(h));
2505
- })(t, s, e);
2506
- }
2507
- function Ei(t, e, i) {
2508
- if (mt.builtinModules.includes(t)) return new g.URL("node:" + t);
2509
- let { packageName: s, packageSubpath: r, isScoped: a } = (function(p, f) {
2510
- let u = p.indexOf("/"), v = true, w = false;
2511
- p[0] === "@" && (w = true, u === -1 || p.length === 0 ? v = false : u = p.indexOf("/", u + 1));
2512
- let y = u === -1 ? p : p.slice(0, u);
2513
- if (Vs.exec(y) !== null && (v = false), !v) throw new Ft(p, "is not a valid package name", (0, g.fileURLToPath)(f));
2514
- return { packageName: y, packageSubpath: "." + (u === -1 ? "" : p.slice(u)), isScoped: w };
2515
- })(t, e), o2 = ce(e);
2516
- if (o2.exists) {
2517
- let p = (0, g.pathToFileURL)(o2.pjsonPath);
2518
- if (o2.name === s && o2.exports !== void 0 && o2.exports !== null) return yi(p, r, o2, e, i);
2519
- }
2520
- let h, c = new g.URL("./node_modules/" + s + "/package.json", e), l = (0, g.fileURLToPath)(c);
2521
- do {
2522
- let p = vi(l.slice(0, -13));
2523
- if (!p || !p.isDirectory()) {
2524
- h = l, c = new g.URL((a ? "../../../../node_modules/" : "../../../node_modules/") + s + "/package.json", c), l = (0, g.fileURLToPath)(c);
2525
- continue;
2526
- }
2527
- let f = ai(l, { base: e, specifier: t });
2528
- return f.exports !== void 0 && f.exports !== null ? yi(c, r, f, e, i) : r === "." ? js(c, f, e) : new g.URL(r, c);
2529
- } while (l.length !== h.length);
2530
- throw new pe(s, (0, g.fileURLToPath)(e), false);
2531
- }
2532
- function Ws(t, e, i, s) {
2533
- let r = e.protocol, a = r === "data:" || r === "http:" || r === "https:", o2;
2534
- if ((function(h) {
2535
- return h !== "" && (h[0] === "/" || (function(c) {
2536
- return c[0] === "." && (c.length === 1 || c[1] === "/" || c[1] === "." && (c.length === 2 || c[2] === "/"));
2537
- })(h));
2538
- })(t)) try {
2539
- o2 = new g.URL(t, e);
2540
- } catch (h) {
2541
- let c = new li(t, e);
2542
- throw c.cause = h, c;
2543
- }
2544
- else if (r === "file:" && t[0] === "#") o2 = qs(t, e, i);
2545
- else try {
2546
- o2 = new g.URL(t);
2547
- } catch (h) {
2548
- if (a && !mt.builtinModules.includes(t)) {
2549
- let c = new li(t, e);
2550
- throw c.cause = h, c;
2551
- }
2552
- o2 = Ei(t, e, i);
2553
- }
2554
- return st(o2 !== void 0, "expected to be defined"), o2.protocol !== "file:" ? o2 : (function(h, c) {
2555
- if (Us.exec(h.pathname) !== null) throw new Ft(h.pathname, 'must not include encoded "/" or "\\" characters', (0, g.fileURLToPath)(c));
2556
- let l;
2557
- try {
2558
- l = (0, g.fileURLToPath)(h);
2559
- } catch (f) {
2560
- let u = f;
2561
- throw Object.defineProperty(u, "input", { value: String(h) }), Object.defineProperty(u, "module", { value: String(c) }), u;
2562
- }
2563
- let p = vi(l.endsWith("/") ? l.slice(-1) : l);
2564
- if (p && p.isDirectory()) {
2565
- let f = new Ds(l, (0, g.fileURLToPath)(c));
2566
- throw f.url = String(h), f;
2567
- }
2568
- if (!p || !p.isFile()) {
2569
- let f = new pe(l || h.pathname, c && (0, g.fileURLToPath)(c), true);
2570
- throw f.url = String(h), f;
2571
- }
2572
- {
2573
- let f = (0, D.realpathSync)(l), { search: u, hash: v } = h;
2574
- (h = (0, g.pathToFileURL)(f + (l.endsWith(ne.sep) ? "/" : ""))).search = u, h.hash = v;
2575
- }
2576
- return h;
2577
- })(o2, e);
2578
- }
2579
- function Rt(t) {
2580
- return typeof t != "string" || t.startsWith("file://") ? ae((0, g.fileURLToPath)(t)) : ae(t);
2581
- }
2582
- function vt(t) {
2583
- return (0, g.pathToFileURL)(Rt(t)).toString();
2584
- }
2585
- let Gs = /* @__PURE__ */ new Set(["node", "import"]), Hs = [".mjs", ".cjs", ".js", ".json"], Ks = /* @__PURE__ */ new Set(["ERR_MODULE_NOT_FOUND", "ERR_UNSUPPORTED_DIR_IMPORT", "MODULE_NOT_FOUND", "ERR_PACKAGE_PATH_NOT_EXPORTED"]);
2586
- function bi(t, e, i) {
2587
- try {
2588
- return Ws(t, e, i);
2589
- } catch (s) {
2590
- if (!Ks.has(s?.code)) throw s;
2591
- }
2592
- }
2593
- function zs(t, e = {}) {
2594
- if (typeof t != "string") {
2595
- if (!(t instanceof URL)) throw new TypeError("input must be a `string` or `URL`");
2596
- t = Rt(t);
2597
- }
2598
- if (/(?:node|data|http|https):/.test(t)) return t;
2599
- if (ii.has(t)) return "node:" + t;
2600
- if (t.startsWith("file://") && (t = Rt(t)), at(t)) try {
2601
- if ((0, D.statSync)(t).isFile()) return vt(t);
2602
- } catch (o2) {
2603
- if (o2?.code !== "ENOENT") throw o2;
2604
- }
2605
- let i = e.conditions ? new Set(e.conditions) : Gs, s = (Array.isArray(e.url) ? e.url : [e.url]).filter(Boolean).map((o2) => new URL((function(h) {
2606
- return typeof h != "string" && (h = h.toString()), /(?:node|data|http|https|file):/.test(h) ? h : ii.has(h) ? "node:" + h : "file://" + encodeURI(ae(h));
2607
- })(o2.toString())));
2608
- s.length === 0 && s.push(new URL(vt(process.cwd())));
2609
- let r = [...s];
2610
- for (let o2 of s) o2.protocol === "file:" && r.push(new URL("./", o2), new URL(Qe(o2.pathname, "_index.js"), o2), new URL("node_modules", o2));
2611
- let a;
2612
- for (let o2 of r) {
2613
- if (a = bi(t, o2, i), a) break;
2614
- for (let h of ["", "/index"]) {
2615
- for (let c of e.extensions || Hs) if (a = bi(Qe(t, h) + c, o2, i), a) break;
2616
- if (a) break;
2617
- }
2618
- if (a) break;
2619
- }
2620
- if (!a) {
2621
- let o2 = new Error(`Cannot find module ${t} imported from ${r.join(", ")}`);
2622
- throw o2.code = "ERR_MODULE_NOT_FOUND", o2;
2623
- }
2624
- return vt(a);
2625
- }
2626
- function Js(t, e) {
2627
- return zs(t, e);
2628
- }
2629
- function Ys(t, e) {
2630
- return Rt(Js(t, e));
2631
- }
2632
- let Qs = /(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m, Zs = /\/\*.+?\*\/|\/\/.*(?=[nr])/g;
2633
- function Xs(t, e = {}) {
2634
- return e.stripComments && (t = t.replace(Zs, "")), Qs.test(t);
2635
- }
2636
- function Si(t) {
2637
- if (typeof t != "string") throw new TypeError("Expected a string");
2638
- return t.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
2639
- }
2640
- let tr = /* @__PURE__ */ new Set(["/", "\\", void 0]), Ci = /* @__PURE__ */ Symbol.for("pathe:normalizedAlias"), er = /[/\\]/;
2641
- function Ii(t) {
2642
- if (t[Ci]) return t;
2643
- let e = Object.fromEntries(Object.entries(t).sort(([i], [s]) => (function(r, a) {
2644
- return a.split("/").length - r.split("/").length;
2645
- })(i, s)));
2646
- for (let i in e) for (let s in e) s === i || i.startsWith(s) || e[i]?.startsWith(s) && tr.has(e[i][s.length]) && (e[i] = e[s] + e[i].slice(s.length));
2647
- return Object.defineProperty(e, Ci, { value: true, enumerable: false }), e;
2648
- }
2649
- function ki(t = "/") {
2650
- let e = t[t.length - 1];
2651
- return e === "/" || e === "\\";
2652
- }
2653
- var ir = { rE: "2.6.1" };
2654
- let sr = m("crypto");
2655
- var fe = H.n(sr);
2656
- let qt = /* @__PURE__ */ Object.create(null), At = (t) => globalThis.process?.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (t ? qt : globalThis), rt = new Proxy(qt, { get: (t, e) => At()[e] ?? qt[e], has: (t, e) => e in At() || e in qt, set: (t, e, i) => (At(true)[e] = i, true), deleteProperty(t, e) {
2657
- return e ? (delete At(true)[e], true) : false;
2658
- }, ownKeys() {
2659
- let t = At(true);
2660
- return Object.keys(t);
2661
- } }), rr = typeof process < "u" && process.env && process.env.NODE_ENV || "", nr = [["APPVEYOR"], ["AWS_AMPLIFY", "AWS_APP_ID", { ci: true }], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }], ["CLOUDFLARE_WORKERS", "WORKERS_CI", { ci: true }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", { ci: false }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["VERCEL", "VERCEL", { ci: false }], ["VERCEL", "VERCEL_ENV", { ci: false }], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }], ["CODESANDBOX", "CODESANDBOX_HOST", { ci: false }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"], ["ZEABUR"], ["CODESPHERE", "CODESPHERE_APP_ID", { ci: true }], ["RAILWAY", "RAILWAY_PROJECT_ID"], ["RAILWAY", "RAILWAY_SERVICE_ID"], ["DENO-DEPLOY", "DENO_DEPLOYMENT_ID"], ["FIREBASE_APP_HOSTING", "FIREBASE_APP_HOSTING", { ci: true }]], wi = (function() {
2662
- if (globalThis.process?.env) for (let t of nr) {
2663
- let e = t[1] || t[0];
2664
- if (globalThis.process?.env[e]) return { name: t[0].toLowerCase(), ...t[2] };
2665
- }
2666
- return globalThis.process?.env?.SHELL === "/bin/jsh" && globalThis.process?.versions?.webcontainer ? { name: "stackblitz", ci: false } : { name: "", ci: false };
2667
- })();
2668
- wi.name;
2669
- function ht(t) {
2670
- return !!t && t !== "false";
2671
- }
2672
- let de = globalThis.process?.platform || "", Nr = ht(rt.CI) || wi.ci !== false, ar = ht(globalThis.process?.stdout && globalThis.process?.stdout.isTTY), Lr = (ht(rt.DEBUG), rr === "test" || ht(rt.TEST)), Ri = (ht(rt.MINIMAL), /^win/i.test(de)), or = (/^linux/i.test(de), /^darwin/i.test(de), !ht(rt.NO_COLOR) && (ht(rt.FORCE_COLOR) || (ar || Ri) && rt.TERM), (globalThis.process?.versions?.node || "").replace(/^v/, "") || null), hr = (Number(or?.split(".")[0]), globalThis.process || /* @__PURE__ */ Object.create(null)), Ai = { versions: {} }, cr = (new Proxy(hr, { get: (t, e) => e === "env" ? rt : e in t ? t[e] : e in Ai ? Ai[e] : void 0 }), globalThis.process?.release?.name === "node"), pr = !!globalThis.Bun || !!globalThis.process?.versions?.bun, lr = !!globalThis.Deno, ur = !!globalThis.fastly, fr = [[!!globalThis.Netlify, "netlify"], [!!globalThis.EdgeRuntime, "edge-light"], [globalThis.navigator?.userAgent === "Cloudflare-Workers", "workerd"], [ur, "fastly"], [lr, "deno"], [pr, "bun"], [cr, "node"]];
2673
- (function() {
2674
- let t = fr.find((e) => e[0]);
2675
- t && t[1];
2676
- })();
2677
- let dr = m("tty"), mr = dr?.WriteStream?.prototype?.hasColors?.() ?? false, _ = (t, e) => {
2678
- if (!mr) return (r) => r;
2679
- let i = `\x1B[${t}m`, s = `\x1B[${e}m`;
2680
- return (r) => {
2681
- let a = r + "", o2 = a.indexOf(s);
2682
- if (o2 === -1) return i + a + s;
2683
- let h = i, c = 0, l = (e === 22 ? s : "") + i;
2684
- for (; o2 !== -1; ) h += a.slice(c, o2) + l, c = o2 + s.length, o2 = a.indexOf(s, c);
2685
- return h += a.slice(c) + s, h;
2686
- };
2687
- }, Ti = (_(0, 0), _(1, 22), _(2, 22), _(3, 23), _(4, 24), _(53, 55), _(7, 27), _(8, 28), _(9, 29), _(30, 39), _(31, 39)), yt = _(32, 39), Wt = _(33, 39), Pi = _(34, 39), gr = (_(35, 39), _(36, 39)), xr = (_(37, 39), _(90, 39));
2688
- _(40, 49), _(41, 49), _(42, 49), _(43, 49), _(44, 49), _(45, 49), _(46, 49), _(47, 49), _(100, 49), _(91, 39), _(92, 39), _(93, 39), _(94, 39), _(95, 39), _(96, 39), _(97, 39), _(101, 49), _(102, 49), _(103, 49), _(104, 49), _(105, 49), _(106, 49), _(107, 49);
2689
- function Ni(t) {
2690
- if (typeof t != "string" || t.startsWith("file://")) return false;
2691
- try {
2692
- return (0, D.lstatSync)(t).isDirectory();
2693
- } catch {
2694
- return false;
2695
- }
2696
- }
2697
- function Li(t, e = 8) {
2698
- return ((function() {
2699
- if (_t !== void 0) return _t;
2700
- try {
2701
- return _t = !!fe().getFips?.(), _t;
2702
- } catch {
2703
- return _t = false, _t;
2704
- }
2705
- })() ? fe().createHash("sha256") : fe().createHash("md5")).update(t).digest("hex").slice(0, e);
2706
- }
2707
- let Oi = { true: yt("true"), false: Wt("false"), "[rebuild]": Wt("[rebuild]"), "[esm]": Pi("[esm]"), "[cjs]": yt("[cjs]"), "[import]": Pi("[import]"), "[require]": yt("[require]"), "[native]": gr("[native]"), "[transpile]": Wt("[transpile]"), "[fallback]": Ti("[fallback]"), "[unknown]": Ti("[unknown]"), "[hit]": yt("[hit]"), "[miss]": Wt("[miss]"), "[json]": yt("[json]"), "[data]": yt("[data]") };
2708
- function P(t, ...e) {
2709
- if (!t.opts.debug) return;
2710
- let i = process.cwd();
2711
- console.log(xr(["[jiti]", ...e.map((s) => s in Oi ? Oi[s] : typeof s != "string" ? JSON.stringify(s) : s.replace(i, "."))].join(" ")));
2712
- }
2713
- function ct(t, e) {
2714
- return t.opts.interopDefault ? (function(i) {
2715
- let s = typeof i;
2716
- if (i === null || s !== "object" && s !== "function") return i;
2717
- let r = i.default, a = typeof r, o2 = r == null, h = a === "object" || a === "function";
2718
- return o2 && i instanceof Promise ? i : new Proxy(i, { get(c, l, p) {
2719
- if (l === "__esModule") return true;
2720
- if (l === "default") return o2 ? i : typeof r?.default == "function" && i.__esModule ? r.default : r;
2721
- if (Reflect.has(c, l)) return Reflect.get(c, l, p);
2722
- if (h && !(r instanceof Promise)) {
2723
- let f = Reflect.get(r, l, p);
2724
- return typeof f == "function" && (f = f.bind(r)), f;
2725
- }
2726
- }, apply: (c, l, p) => typeof c == "function" ? Reflect.apply(c, l, p) : a === "function" ? Reflect.apply(r, l, p) : void 0 });
2727
- })(e) : e;
2728
- }
2729
- let _t;
2730
- function Z(t, e) {
2731
- return !!Et(t, e);
2732
- }
2733
- function Et(t, e) {
2734
- let i = process.env[t];
2735
- if (!(t in process.env)) return e;
2736
- try {
2737
- return JSON.parse(i);
2738
- } catch {
2739
- return e;
2740
- }
2741
- }
2742
- let Di = /\.(c|m)?j(sx?)$/, Vi = /\.(c|m)?t(sx?)$/;
2743
- function Tt(t, e, i) {
2744
- let s, r;
2745
- if (t.isNativeRe.test(e)) return e;
2746
- t.alias && (e = (function(h, c) {
2747
- let l = gt(h);
2748
- c = Ii(c);
2749
- for (let [p, f] of Object.entries(c)) {
2750
- if (!l.startsWith(p)) continue;
2751
- let u = ki(p) ? p.slice(0, -1) : p;
2752
- if (ki(l[u.length])) return it(f, l.slice(p.length));
2753
- }
2754
- return l;
2755
- })(e, t.alias));
2756
- let a = i?.parentURL || t.url;
2757
- Ni(a) && (a = it(a, "_index.js"));
2758
- let o2 = (i?.async ? [i?.conditions, ["node", "import"], ["node", "require"]] : [i?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
2759
- for (let h of o2) {
2760
- try {
2761
- s = Ys(e, { url: a, conditions: h, extensions: t.opts.extensions });
2762
- } catch (c) {
2763
- r = c;
2764
- }
2765
- if (s) return s;
2766
- }
2767
- try {
2768
- return t.nativeRequire.resolve(e, { paths: i.paths });
2769
- } catch (h) {
2770
- r = h;
2771
- }
2772
- for (let h of t.additionalExts) if (s = me(t, e + h, a, i) || me(t, e + "/index" + h, a, i), s || (Vi.test(t.filename) || Vi.test(t.parentModule?.filename || "") || Di.test(e)) && (s = me(t, e.replace(Di, ".$1t$2"), a, i), s)) return s;
2773
- if (!i?.try) throw r;
2774
- }
2775
- function me(t, e, i, s) {
2776
- try {
2777
- return t.nativeRequire.resolve(e, { ...s, paths: [Mt(Rt(i)), ...s?.paths || []] });
2778
- } catch {
2779
- }
2780
- }
2781
- let Ui = m("perf_hooks"), vr = m("vm");
2782
- var yr = H.n(vr);
2783
- function ge(t, e, i) {
2784
- let s = t.parentCache || {};
2785
- if (e.startsWith("node:")) return pt(t, e, i.async);
2786
- if (e.startsWith("file:")) e = (0, g.fileURLToPath)(e);
2787
- else if (e.startsWith("data:")) {
2788
- if (!i.async) throw new Error("`data:` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.");
2789
- return P(t, "[native]", "[data]", "[import]", e), pt(t, e, true);
2790
- }
2791
- if (mt.builtinModules.includes(e) || e === ".pnp.js") return pt(t, e, i.async);
2792
- if (t.opts.tryNative && !t.opts.transformOptions) try {
2793
- if (!(e = Tt(t, e, i)) && i.try) return;
2794
- if (P(t, "[try-native]", i.async && t.nativeImport ? "[import]" : "[require]", e), i.async && t.nativeImport) return t.nativeImport(e).then((h) => (t.opts.moduleCache === false && delete t.nativeRequire.cache[e], ct(t, h)));
2795
- {
2796
- let h = t.nativeRequire(e);
2797
- return t.opts.moduleCache === false && delete t.nativeRequire.cache[e], ct(t, h);
2798
- }
2799
- } catch (h) {
2800
- P(t, `[try-native] Using fallback for ${e} because of an error:`, h);
2801
- }
2802
- let r = Tt(t, e, i);
2803
- if (!r && i.try) return;
2804
- let a = ti(r);
2805
- if (a === ".json") {
2806
- P(t, "[json]", r);
2807
- let h = t.nativeRequire(r);
2808
- return h && !("default" in h) && Object.defineProperty(h, "default", { value: h, enumerable: false }), h;
2809
- }
2810
- if (a && !t.opts.extensions.includes(a)) return P(t, "[native]", "[unknown]", i.async ? "[import]" : "[require]", r), pt(t, r, i.async);
2811
- if (t.isNativeRe.test(r)) return P(t, "[native]", i.async ? "[import]" : "[require]", r), pt(t, r, i.async);
2812
- if (s[r]) return ct(t, s[r]?.exports);
2813
- if (t.opts.moduleCache) {
2814
- let h = t.nativeRequire.cache[r];
2815
- if (h?.loaded) return ct(t, h.exports);
2816
- }
2817
- let o2 = (0, D.readFileSync)(r, "utf8");
2818
- return ve(t, o2, { id: e, filename: r, ext: a, cache: s, async: i.async });
2819
- }
2820
- function pt(t, e, i) {
2821
- return i && t.nativeImport ? t.nativeImport((function(s) {
2822
- return Ri && at(s) ? vt(s) : s;
2823
- })(e)).then((s) => ct(t, s)) : ct(t, t.nativeRequire(e));
2824
- }
2825
- let _r = "9";
2826
- function Er(t, e, i) {
2827
- if (!t.opts.fsCache || !e.filename) return i();
2828
- let s = ` /* v${_r}-${Li(e.source, 16)} */
2829
- `, r = `${ei(Mt(e.filename))}-${(function(c) {
2830
- let l = c.split(er).pop();
2831
- if (!l) return;
2832
- let p = l.lastIndexOf(".");
2833
- return p <= 0 ? l : l.slice(0, p);
2834
- })(e.filename)}` + (t.opts.sourceMaps ? "+map" : "") + (e.interopDefault ? ".i" : "") + `.${Li(e.filename)}` + (e.async ? ".mjs" : ".cjs");
2835
- e.jsx && e.filename.endsWith("x") && (r += "x");
2836
- let a = t.opts.fsCache, o2 = it(a, r);
2837
- if (!t.opts.rebuildFsCache && (0, D.existsSync)(o2)) {
2838
- let c = (0, D.readFileSync)(o2, "utf8");
2839
- if (c.endsWith(s)) return P(t, "[cache]", "[hit]", e.filename, "~>", o2), c;
2840
- }
2841
- P(t, "[cache]", "[miss]", e.filename);
2842
- let h = i();
2843
- return h.includes("__JITI_ERROR__") || ((0, D.writeFileSync)(o2, h + s, "utf8"), P(t, "[cache]", "[store]", e.filename, "~>", o2)), h;
2844
- }
2845
- function br(t) {
2846
- if (t.opts.fsCache === true && (t.opts.fsCache = (function(e) {
2847
- let i = e.filename && bs(e.filename, "../node_modules");
2848
- if (i && (0, D.existsSync)(i)) return it(i, ".cache/jiti");
2849
- let s = (0, T.tmpdir)();
2850
- if (process.env.TMPDIR && s === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
2851
- let r = process.env.TMPDIR;
2852
- delete process.env.TMPDIR, s = (0, T.tmpdir)(), process.env.TMPDIR = r;
2853
- }
2854
- return it(s, "jiti");
2855
- })(t)), t.opts.fsCache) try {
2856
- if ((0, D.mkdirSync)(t.opts.fsCache, { recursive: true }), !(function(e) {
2857
- try {
2858
- return (0, D.accessSync)(e, D.constants.W_OK), true;
2859
- } catch {
2860
- return false;
2861
- }
2862
- })(t.opts.fsCache)) throw new Error("directory is not writable!");
2863
- } catch (e) {
2864
- P(t, "Error creating cache directory at ", t.opts.fsCache, e), t.opts.fsCache = false;
2865
- }
2866
- }
2867
- function xe(t, e) {
2868
- let i = Er(t, e, () => {
2869
- let s = t.opts.transform({ ...t.opts.transformOptions, babel: { ...t.opts.sourceMaps ? { sourceFileName: e.filename, sourceMaps: "inline" } : {}, ...t.opts.transformOptions?.babel }, interopDefault: t.opts.interopDefault, ...e });
2870
- return s.error && t.opts.debug && P(t, s.error), s.code;
2871
- });
2872
- return i.startsWith("#!") && (i = "// " + i), i;
2873
- }
2874
- function ve(t, e, i = {}) {
2875
- let s = i.id || (i.filename ? ei(i.filename) : `_jitiEval.${i.ext || (i.async ? "mjs" : "js")}`), r = i.filename || Tt(t, s, { async: i.async }), a = i.ext || ti(r), o2 = i.cache || t.parentCache || {}, h = /\.[cm]?tsx?$/.test(a), c = a === ".mjs" || a === ".js" && (function(k) {
2876
- for (; k && k !== "." && k !== "/"; ) {
2877
- k = it(k, "..");
2878
- try {
2879
- let lt = (0, D.readFileSync)(it(k, "package.json"), "utf8");
2880
- try {
2881
- return JSON.parse(lt);
2882
- } catch {
2883
- }
2884
- break;
2885
- } catch {
2886
- }
2887
- }
2888
- })(r)?.type === "module", l = a === ".cjs", p = i.forceTranspile ?? (!l && !(c && i.async) && (h || c || t.isTransformRe.test(r) || Xs(e))), f = Ui.performance.now();
2889
- if (p) {
2890
- e = xe(t, { filename: r, source: e, ts: h, async: i.async ?? false, jsx: t.opts.jsx });
2891
- let k = Math.round(1e3 * (Ui.performance.now() - f)) / 1e3;
2892
- P(t, "[transpile]", i.async ? "[esm]" : "[cjs]", r, `(${k}ms)`);
2893
- } else {
2894
- if (P(t, "[native]", i.async ? "[import]" : "[require]", r), i.async) return Promise.resolve(pt(t, r, i.async)).catch((k) => (P(t, "Native import error:", k), P(t, "[fallback]", r), ve(t, e, { ...i, forceTranspile: true })));
2895
- try {
2896
- return pt(t, r, i.async);
2897
- } catch (k) {
2898
- P(t, "Native require error:", k), P(t, "[fallback]", r), e = xe(t, { filename: r, source: e, ts: h, async: i.async ?? false, jsx: t.opts.jsx });
2899
- }
2900
- }
2901
- let u = new mt.Module(r);
2902
- u.filename = r, t.parentModule && (u.parent = t.parentModule, Array.isArray(t.parentModule.children) && !t.parentModule.children.includes(u) && t.parentModule.children.push(u));
2903
- let v = Mi(r, t.opts, { parentModule: u, parentCache: o2, nativeImport: t.nativeImport, onError: t.onError, createRequire: t.createRequire }, true), w;
2904
- u.require = v, u.path = Mt(r), u.paths = mt.Module._nodeModulePaths(u.path), o2[r] = u, t.opts.moduleCache && (t.nativeRequire.cache[r] = u);
2905
- let y = (function(k, lt) {
2906
- return `(${lt?.async ? "async " : ""}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${k}
2907
- });`;
2908
- })(e, { async: i.async });
2909
- try {
2910
- w = yr().runInThisContext(y, { filename: r, lineOffset: 0, displayErrors: false });
2911
- } catch (k) {
2912
- k.name === "SyntaxError" && i.async && t.nativeImport ? (P(t, "[esm]", "[import]", "[fallback]", r), w = (function(lt, ye) {
2913
- let _e = `data:text/javascript;base64,${Buffer.from(`export default ${lt}`).toString("base64")}`;
2914
- return (...Ee) => ye(_e).then((Gt) => Gt.default(...Ee));
2915
- })(y, t.nativeImport)) : (t.opts.moduleCache && delete t.nativeRequire.cache[r], t.onError(k));
2916
- }
2917
- let I;
2918
- try {
2919
- I = w(u.exports, u.require, u, u.filename, Mt(u.filename), v.import, v.esmResolve);
2920
- } catch (k) {
2921
- t.opts.moduleCache && delete t.nativeRequire.cache[r], t.onError(k);
2922
- }
2923
- function C() {
2924
- if (u.exports && u.exports.__JITI_ERROR__) {
2925
- let { filename: k, line: lt, column: ye, code: _e, message: Ee } = u.exports.__JITI_ERROR__, Gt = new Error(`${_e}: ${Ee}
2926
- ${`${k}:${lt}:${ye}`}`);
2927
- Error.captureStackTrace(Gt, ge), t.onError(Gt);
2928
- }
2929
- return u.loaded = true, ct(t, u.exports);
2930
- }
2931
- return i.async ? Promise.resolve(I).then(C) : C();
2932
- }
2933
- let Sr = (0, T.platform)() === "win32";
2934
- function Mi(t, e = {}, i, s = false) {
2935
- let r = s ? e : (function(y) {
2936
- let I = { fsCache: Z("JITI_FS_CACHE", Z("JITI_CACHE", true)), rebuildFsCache: Z("JITI_REBUILD_FS_CACHE", false), moduleCache: Z("JITI_MODULE_CACHE", Z("JITI_REQUIRE_CACHE", true)), debug: Z("JITI_DEBUG", false), sourceMaps: Z("JITI_SOURCE_MAPS", false), interopDefault: Z("JITI_INTEROP_DEFAULT", true), extensions: Et("JITI_EXTENSIONS", [".js", ".mjs", ".cjs", ".ts", ".tsx", ".mts", ".cts", ".mtsx", ".ctsx"]), alias: Et("JITI_ALIAS", {}), nativeModules: Et("JITI_NATIVE_MODULES", []), transformModules: Et("JITI_TRANSFORM_MODULES", []), tryNative: Et("JITI_TRY_NATIVE", "Bun" in globalThis), jsx: Z("JITI_JSX", false) };
2937
- I.jsx && I.extensions.push(".jsx", ".tsx");
2938
- let C = {};
2939
- return y.cache !== void 0 && (C.fsCache = y.cache), y.requireCache !== void 0 && (C.moduleCache = y.requireCache), { ...I, ...C, ...y };
2940
- })(e), a = r.alias && Object.keys(r.alias).length > 0 ? Ii(r.alias || {}) : void 0, o2 = ["typescript", "jiti", ...r.nativeModules || []], h = new RegExp(`node_modules/(${o2.map((y) => Si(y)).join("|")})/`), c = [...r.transformModules || []], l = new RegExp(`node_modules/(${c.map((y) => Si(y)).join("|")})/`);
2941
- t || (t = process.cwd()), !s && Ni(t) && (t = it(t, "_index.js"));
2942
- let p = vt(t), f = [...r.extensions].filter((y) => y !== ".js"), u = i.createRequire(Sr ? t.replace(/\//g, "\\") : t), v = { filename: t, url: p, opts: r, alias: a, nativeModules: o2, transformModules: c, isNativeRe: h, isTransformRe: l, additionalExts: f, nativeRequire: u, onError: i.onError, parentModule: i.parentModule, parentCache: i.parentCache, nativeImport: i.nativeImport, createRequire: i.createRequire };
2943
- return s || P(v, "[init]", ...[["version:", ir.rE], ["module-cache:", r.moduleCache], ["fs-cache:", r.fsCache], ["rebuild-fs-cache:", r.rebuildFsCache], ["interop-defaults:", r.interopDefault]].flat()), s || br(v), Object.assign(function(y) {
2944
- return ge(v, y, { async: false });
2945
- }, { cache: r.moduleCache ? u.cache : /* @__PURE__ */ Object.create(null), extensions: u.extensions, main: u.main, options: r, resolve: Object.assign(function(y) {
2946
- return Tt(v, y, { async: false });
2947
- }, { paths: u.resolve.paths }), transform: (y) => xe(v, y), evalModule: (y, I) => ve(v, y, I), async import(y, I) {
2948
- let C = await ge(v, y, { ...I, async: true });
2949
- return I?.default ? C?.default ?? C : C;
2950
- }, esmResolve(y, I) {
2951
- typeof I == "string" && (I = { parentURL: I });
2952
- let C = Tt(v, y, { parentURL: p, ...I, async: true });
2953
- return !C || typeof C != "string" || C.startsWith("file://") ? C : vt(C);
2954
- } });
2955
- }
2956
- })(), ji.exports = Se.default;
2957
- })();
2958
- });
2959
- function wr(Y) {
2960
- throw Y;
2961
- }
2962
- function Ar(...Y) {
2963
- return be || (be = Fi(import.meta.url)("../dist/babel.cjs")), be(...Y);
2964
- }
2965
- function Tr(Y, nt = {}) {
2966
- return nt.transform || (nt = { ...nt, transform: Ar }), (0, $i.default)(Y, nt, { onError: wr, nativeImport: Rr, createRequire: Fi });
2967
- }
2968
- var $i;
2969
- var Rr;
2970
- var be;
2971
- var Vr;
2972
- var Pr = n(() => {
2973
- $i = q(Bi(), 1);
2974
- Rr = (Y) => import(Y);
2975
- Vr = Tr;
2976
- });
2977
- Pr();
2978
- export {
2979
- Tr as createJiti,
2980
- Vr as default
2981
- };