@highstate/designer 0.4.5 → 0.5.0

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 (1046) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{B_hR0Ok_.js → CDvc066L.js} +1 -1
  3. package/.output/public/_nuxt/{BA0u-n1q.js → D0Jq3pX9.js} +81 -81
  4. package/.output/public/_nuxt/{DE7L338O.js → DOPM99N_.js} +1 -1
  5. package/.output/public/_nuxt/{Cj8SV8PB.js → Dx2bEYXH.js} +1 -1
  6. package/.output/public/_nuxt/builds/latest.json +1 -1
  7. package/.output/public/_nuxt/builds/meta/cb8636dd-e396-496a-9bd3-892327ee4ea5.json +1 -0
  8. package/.output/public/_nuxt/entry.VNeMltv3.css +5 -0
  9. package/.output/server/index.mjs +137 -3642
  10. package/.output/server/index.mjs.map +1 -1
  11. package/.output/server/package.json +1 -1
  12. package/package.json +14 -12
  13. package/.output/public/_nuxt/builds/meta/befe985c-c66f-4500-9488-46464c80fbfc.json +0 -1
  14. package/.output/public/_nuxt/entry.7p8V-3Ph.css +0 -5
  15. package/.output/server/node_modules/.nitro/get-stream@5.2.0/buffer-stream.js +0 -52
  16. package/.output/server/node_modules/.nitro/get-stream@5.2.0/index.js +0 -60
  17. package/.output/server/node_modules/.nitro/get-stream@5.2.0/package.json +0 -50
  18. package/.output/server/node_modules/.nitro/get-stream@6.0.1/buffer-stream.js +0 -52
  19. package/.output/server/node_modules/.nitro/get-stream@6.0.1/index.js +0 -61
  20. package/.output/server/node_modules/.nitro/get-stream@6.0.1/package.json +0 -47
  21. package/.output/server/node_modules/.nitro/mimic-response@1.0.1/index.js +0 -32
  22. package/.output/server/node_modules/.nitro/mimic-response@1.0.1/package.json +0 -37
  23. package/.output/server/node_modules/.nitro/mimic-response@3.1.0/index.js +0 -77
  24. package/.output/server/node_modules/.nitro/mimic-response@3.1.0/package.json +0 -42
  25. package/.output/server/node_modules/.nitro/pathe@1.1.2/dist/index.mjs +0 -1
  26. package/.output/server/node_modules/.nitro/pathe@1.1.2/dist/shared/pathe.ff20891b.mjs +0 -221
  27. package/.output/server/node_modules/.nitro/pathe@1.1.2/package.json +0 -48
  28. package/.output/server/node_modules/.nitro/pathe@2.0.3/dist/index.mjs +0 -19
  29. package/.output/server/node_modules/.nitro/pathe@2.0.3/dist/shared/pathe.M-eThtNZ.mjs +0 -249
  30. package/.output/server/node_modules/.nitro/pathe@2.0.3/package.json +0 -61
  31. package/.output/server/node_modules/@grpc/grpc-js/build/src/admin.js +0 -30
  32. package/.output/server/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js +0 -174
  33. package/.output/server/node_modules/@grpc/grpc-js/build/src/call-credentials.js +0 -153
  34. package/.output/server/node_modules/@grpc/grpc-js/build/src/call-interface.js +0 -84
  35. package/.output/server/node_modules/@grpc/grpc-js/build/src/call-number.js +0 -24
  36. package/.output/server/node_modules/@grpc/grpc-js/build/src/call.js +0 -136
  37. package/.output/server/node_modules/@grpc/grpc-js/build/src/certificate-provider.js +0 -134
  38. package/.output/server/node_modules/@grpc/grpc-js/build/src/channel-credentials.js +0 -272
  39. package/.output/server/node_modules/@grpc/grpc-js/build/src/channel-options.js +0 -71
  40. package/.output/server/node_modules/@grpc/grpc-js/build/src/channel.js +0 -68
  41. package/.output/server/node_modules/@grpc/grpc-js/build/src/channelz.js +0 -584
  42. package/.output/server/node_modules/@grpc/grpc-js/build/src/client-interceptors.js +0 -428
  43. package/.output/server/node_modules/@grpc/grpc-js/build/src/client.js +0 -433
  44. package/.output/server/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js +0 -26
  45. package/.output/server/node_modules/@grpc/grpc-js/build/src/compression-filter.js +0 -295
  46. package/.output/server/node_modules/@grpc/grpc-js/build/src/connectivity-state.js +0 -28
  47. package/.output/server/node_modules/@grpc/grpc-js/build/src/constants.js +0 -64
  48. package/.output/server/node_modules/@grpc/grpc-js/build/src/control-plane-status.js +0 -42
  49. package/.output/server/node_modules/@grpc/grpc-js/build/src/deadline.js +0 -108
  50. package/.output/server/node_modules/@grpc/grpc-js/build/src/duration.js +0 -46
  51. package/.output/server/node_modules/@grpc/grpc-js/build/src/environment.js +0 -22
  52. package/.output/server/node_modules/@grpc/grpc-js/build/src/error.js +0 -40
  53. package/.output/server/node_modules/@grpc/grpc-js/build/src/experimental.js +0 -52
  54. package/.output/server/node_modules/@grpc/grpc-js/build/src/filter-stack.js +0 -82
  55. package/.output/server/node_modules/@grpc/grpc-js/build/src/filter.js +0 -38
  56. package/.output/server/node_modules/@grpc/grpc-js/build/src/http_proxy.js +0 -265
  57. package/.output/server/node_modules/@grpc/grpc-js/build/src/index.js +0 -144
  58. package/.output/server/node_modules/@grpc/grpc-js/build/src/internal-channel.js +0 -602
  59. package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js +0 -153
  60. package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js +0 -567
  61. package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js +0 -482
  62. package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js +0 -182
  63. package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancer.js +0 -116
  64. package/.output/server/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js +0 -294
  65. package/.output/server/node_modules/@grpc/grpc-js/build/src/logging.js +0 -122
  66. package/.output/server/node_modules/@grpc/grpc-js/build/src/make-client.js +0 -143
  67. package/.output/server/node_modules/@grpc/grpc-js/build/src/metadata.js +0 -249
  68. package/.output/server/node_modules/@grpc/grpc-js/build/src/picker.js +0 -86
  69. package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-dns.js +0 -349
  70. package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-ip.js +0 -104
  71. package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver-uds.js +0 -50
  72. package/.output/server/node_modules/@grpc/grpc-js/build/src/resolver.js +0 -87
  73. package/.output/server/node_modules/@grpc/grpc-js/build/src/resolving-call.js +0 -305
  74. package/.output/server/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js +0 -309
  75. package/.output/server/node_modules/@grpc/grpc-js/build/src/retrying-call.js +0 -665
  76. package/.output/server/node_modules/@grpc/grpc-js/build/src/server-call.js +0 -202
  77. package/.output/server/node_modules/@grpc/grpc-js/build/src/server-credentials.js +0 -305
  78. package/.output/server/node_modules/@grpc/grpc-js/build/src/server-interceptors.js +0 -770
  79. package/.output/server/node_modules/@grpc/grpc-js/build/src/server.js +0 -1569
  80. package/.output/server/node_modules/@grpc/grpc-js/build/src/service-config.js +0 -430
  81. package/.output/server/node_modules/@grpc/grpc-js/build/src/status-builder.js +0 -68
  82. package/.output/server/node_modules/@grpc/grpc-js/build/src/stream-decoder.js +0 -100
  83. package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-address.js +0 -202
  84. package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-call.js +0 -542
  85. package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js +0 -92
  86. package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js +0 -137
  87. package/.output/server/node_modules/@grpc/grpc-js/build/src/subchannel.js +0 -371
  88. package/.output/server/node_modules/@grpc/grpc-js/build/src/tls-helpers.js +0 -34
  89. package/.output/server/node_modules/@grpc/grpc-js/build/src/transport.js +0 -662
  90. package/.output/server/node_modules/@grpc/grpc-js/build/src/uri-parser.js +0 -125
  91. package/.output/server/node_modules/@grpc/grpc-js/package.json +0 -87
  92. package/.output/server/node_modules/@grpc/grpc-js/proto/channelz.proto +0 -564
  93. package/.output/server/node_modules/@grpc/proto-loader/build/src/index.js +0 -244
  94. package/.output/server/node_modules/@grpc/proto-loader/build/src/util.js +0 -89
  95. package/.output/server/node_modules/@grpc/proto-loader/package.json +0 -69
  96. package/.output/server/node_modules/@js-sdsl/ordered-map/dist/cjs/index.js +0 -795
  97. package/.output/server/node_modules/@js-sdsl/ordered-map/package.json +0 -138
  98. package/.output/server/node_modules/@logdna/tail-file/index.js +0 -3
  99. package/.output/server/node_modules/@logdna/tail-file/lib/tail-file.js +0 -326
  100. package/.output/server/node_modules/@logdna/tail-file/package.json +0 -162
  101. package/.output/server/node_modules/@protobufjs/aspromise/index.js +0 -52
  102. package/.output/server/node_modules/@protobufjs/aspromise/package.json +0 -21
  103. package/.output/server/node_modules/@protobufjs/base64/index.js +0 -139
  104. package/.output/server/node_modules/@protobufjs/base64/package.json +0 -21
  105. package/.output/server/node_modules/@protobufjs/codegen/index.js +0 -99
  106. package/.output/server/node_modules/@protobufjs/codegen/package.json +0 -13
  107. package/.output/server/node_modules/@protobufjs/eventemitter/index.js +0 -76
  108. package/.output/server/node_modules/@protobufjs/eventemitter/package.json +0 -21
  109. package/.output/server/node_modules/@protobufjs/fetch/index.js +0 -115
  110. package/.output/server/node_modules/@protobufjs/fetch/package.json +0 -25
  111. package/.output/server/node_modules/@protobufjs/float/index.js +0 -335
  112. package/.output/server/node_modules/@protobufjs/float/package.json +0 -26
  113. package/.output/server/node_modules/@protobufjs/inquire/index.js +0 -17
  114. package/.output/server/node_modules/@protobufjs/inquire/package.json +0 -21
  115. package/.output/server/node_modules/@protobufjs/path/index.js +0 -65
  116. package/.output/server/node_modules/@protobufjs/path/package.json +0 -21
  117. package/.output/server/node_modules/@protobufjs/pool/index.js +0 -48
  118. package/.output/server/node_modules/@protobufjs/pool/package.json +0 -21
  119. package/.output/server/node_modules/@protobufjs/utf8/index.js +0 -105
  120. package/.output/server/node_modules/@protobufjs/utf8/package.json +0 -21
  121. package/.output/server/node_modules/@pulumi/pulumi/asset/archive.js +0 -84
  122. package/.output/server/node_modules/@pulumi/pulumi/asset/asset.js +0 -84
  123. package/.output/server/node_modules/@pulumi/pulumi/asset/index.js +0 -21
  124. package/.output/server/node_modules/@pulumi/pulumi/automation/cmd.js +0 -270
  125. package/.output/server/node_modules/@pulumi/pulumi/automation/errors.js +0 -84
  126. package/.output/server/node_modules/@pulumi/pulumi/automation/events.js +0 -47
  127. package/.output/server/node_modules/@pulumi/pulumi/automation/index.js +0 -27
  128. package/.output/server/node_modules/@pulumi/pulumi/automation/localWorkspace.js +0 -1049
  129. package/.output/server/node_modules/@pulumi/pulumi/automation/minimumVersion.js +0 -28
  130. package/.output/server/node_modules/@pulumi/pulumi/automation/remoteStack.js +0 -130
  131. package/.output/server/node_modules/@pulumi/pulumi/automation/remoteWorkspace.js +0 -131
  132. package/.output/server/node_modules/@pulumi/pulumi/automation/server.js +0 -170
  133. package/.output/server/node_modules/@pulumi/pulumi/automation/stack.js +0 -995
  134. package/.output/server/node_modules/@pulumi/pulumi/automation/stackSettings.js +0 -24
  135. package/.output/server/node_modules/@pulumi/pulumi/errors.js +0 -126
  136. package/.output/server/node_modules/@pulumi/pulumi/log/index.js +0 -132
  137. package/.output/server/node_modules/@pulumi/pulumi/metadata.js +0 -46
  138. package/.output/server/node_modules/@pulumi/pulumi/output.js +0 -701
  139. package/.output/server/node_modules/@pulumi/pulumi/package.json +0 -95
  140. package/.output/server/node_modules/@pulumi/pulumi/proto/alias_pb.js +0 -631
  141. package/.output/server/node_modules/@pulumi/pulumi/proto/callback_grpc_pb.js +0 -61
  142. package/.output/server/node_modules/@pulumi/pulumi/proto/callback_pb.js +0 -582
  143. package/.output/server/node_modules/@pulumi/pulumi/proto/codegen/hcl_pb.js +0 -808
  144. package/.output/server/node_modules/@pulumi/pulumi/proto/engine_grpc_pb.js +0 -158
  145. package/.output/server/node_modules/@pulumi/pulumi/proto/engine_pb.js +0 -1058
  146. package/.output/server/node_modules/@pulumi/pulumi/proto/language_grpc_pb.js +0 -551
  147. package/.output/server/node_modules/@pulumi/pulumi/proto/language_pb.js +0 -7222
  148. package/.output/server/node_modules/@pulumi/pulumi/proto/plugin_pb.js +0 -1159
  149. package/.output/server/node_modules/@pulumi/pulumi/proto/provider_pb.js +0 -11300
  150. package/.output/server/node_modules/@pulumi/pulumi/proto/resource_grpc_pb.js +0 -312
  151. package/.output/server/node_modules/@pulumi/pulumi/proto/resource_pb.js +0 -7447
  152. package/.output/server/node_modules/@pulumi/pulumi/proto/source_pb.js +0 -230
  153. package/.output/server/node_modules/@pulumi/pulumi/resource.js +0 -774
  154. package/.output/server/node_modules/@pulumi/pulumi/runtime/asyncIterableUtil.js +0 -103
  155. package/.output/server/node_modules/@pulumi/pulumi/runtime/callbacks.js +0 -456
  156. package/.output/server/node_modules/@pulumi/pulumi/runtime/config.js +0 -129
  157. package/.output/server/node_modules/@pulumi/pulumi/runtime/debuggable.js +0 -137
  158. package/.output/server/node_modules/@pulumi/pulumi/runtime/dependsOn.js +0 -157
  159. package/.output/server/node_modules/@pulumi/pulumi/runtime/invoke.js +0 -533
  160. package/.output/server/node_modules/@pulumi/pulumi/runtime/resource.js +0 -850
  161. package/.output/server/node_modules/@pulumi/pulumi/runtime/rpc.js +0 -858
  162. package/.output/server/node_modules/@pulumi/pulumi/runtime/settings.js +0 -551
  163. package/.output/server/node_modules/@pulumi/pulumi/runtime/stack.js +0 -276
  164. package/.output/server/node_modules/@pulumi/pulumi/runtime/state.js +0 -187
  165. package/.output/server/node_modules/@pulumi/pulumi/utils.js +0 -89
  166. package/.output/server/node_modules/@pulumi/pulumi/version.js +0 -17
  167. package/.output/server/node_modules/@pulumi/query/asyncQueryable.js +0 -279
  168. package/.output/server/node_modules/@pulumi/query/base.js +0 -34
  169. package/.output/server/node_modules/@pulumi/query/index.js +0 -87
  170. package/.output/server/node_modules/@pulumi/query/interfaces.js +0 -24
  171. package/.output/server/node_modules/@pulumi/query/operators.js +0 -1269
  172. package/.output/server/node_modules/@pulumi/query/package.json +0 -22
  173. package/.output/server/node_modules/@pulumi/query/sources.js +0 -81
  174. package/.output/server/node_modules/@pulumi/query/util.js +0 -23
  175. package/.output/server/node_modules/@sinclair/typebox/build/esm/index.mjs +0 -80
  176. package/.output/server/node_modules/@sinclair/typebox/build/esm/system/policy.mjs +0 -54
  177. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/any/any.mjs +0 -6
  178. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/any/index.mjs +0 -1
  179. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/argument/argument.mjs +0 -6
  180. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/argument/index.mjs +0 -1
  181. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/array/array.mjs +0 -6
  182. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/array/index.mjs +0 -1
  183. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.mjs +0 -6
  184. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.mjs +0 -1
  185. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.mjs +0 -37
  186. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/awaited/index.mjs +0 -1
  187. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.mjs +0 -6
  188. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/bigint/index.mjs +0 -1
  189. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.mjs +0 -6
  190. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/boolean/index.mjs +0 -1
  191. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/index.mjs +0 -2
  192. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/type.mjs +0 -9
  193. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/clone/value.mjs +0 -36
  194. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/composite/composite.mjs +0 -42
  195. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/composite/index.mjs +0 -1
  196. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/computed/computed.mjs +0 -6
  197. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/computed/index.mjs +0 -1
  198. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/const/const.mjs +0 -54
  199. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/const/index.mjs +0 -1
  200. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.mjs +0 -6
  201. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor/index.mjs +0 -1
  202. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.mjs +0 -7
  203. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.mjs +0 -1
  204. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/immutable.mjs +0 -33
  205. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/index.mjs +0 -1
  206. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/create/type.mjs +0 -15
  207. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/date/date.mjs +0 -6
  208. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/date/index.mjs +0 -1
  209. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/discard/discard.mjs +0 -8
  210. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/discard/index.mjs +0 -1
  211. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/enum/enum.mjs +0 -18
  212. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/enum/index.mjs +0 -1
  213. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/error/error.mjs +0 -6
  214. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/error/index.mjs +0 -1
  215. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.mjs +0 -18
  216. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.mjs +0 -5
  217. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.mjs +0 -25
  218. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/exclude/index.mjs +0 -3
  219. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.mjs +0 -635
  220. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.mjs +0 -25
  221. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.mjs +0 -19
  222. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.mjs +0 -20
  223. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/extends.mjs +0 -23
  224. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extends/index.mjs +0 -5
  225. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.mjs +0 -18
  226. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.mjs +0 -5
  227. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/extract.mjs +0 -25
  228. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/extract/index.mjs +0 -3
  229. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/function/function.mjs +0 -6
  230. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/function/index.mjs +0 -1
  231. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/index.mjs +0 -3
  232. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/kind.mjs +0 -235
  233. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/type.mjs +0 -509
  234. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/guard/value.mjs +0 -70
  235. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.mjs +0 -4
  236. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/helpers/index.mjs +0 -1
  237. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/index.mjs +0 -4
  238. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.mjs +0 -22
  239. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.mjs +0 -20
  240. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.mjs +0 -32
  241. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.mjs +0 -91
  242. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.mjs +0 -1
  243. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.mjs +0 -7
  244. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.mjs +0 -1
  245. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.mjs +0 -115
  246. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/integer/index.mjs +0 -1
  247. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/integer/integer.mjs +0 -6
  248. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/index.mjs +0 -3
  249. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.mjs +0 -19
  250. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.mjs +0 -38
  251. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.mjs +0 -1
  252. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.mjs +0 -17
  253. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.mjs +0 -5
  254. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.mjs +0 -6
  255. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.mjs +0 -26
  256. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.mjs +0 -64
  257. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.mjs +0 -5
  258. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.mjs +0 -5
  259. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.mjs +0 -5
  260. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/iterator/index.mjs +0 -1
  261. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.mjs +0 -6
  262. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/index.mjs +0 -4
  263. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.mjs +0 -19
  264. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.mjs +0 -12
  265. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.mjs +0 -73
  266. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.mjs +0 -35
  267. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/literal/index.mjs +0 -1
  268. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/literal/literal.mjs +0 -10
  269. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/index.mjs +0 -3
  270. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.mjs +0 -9
  271. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.mjs +0 -9
  272. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.mjs +0 -102
  273. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/compute.mjs +0 -166
  274. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/index.mjs +0 -1
  275. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/module/module.mjs +0 -32
  276. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/never/index.mjs +0 -1
  277. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/never/never.mjs +0 -6
  278. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/not/index.mjs +0 -1
  279. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/not/not.mjs +0 -6
  280. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/null/index.mjs +0 -1
  281. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/null/null.mjs +0 -6
  282. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/number/index.mjs +0 -1
  283. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/number/number.mjs +0 -6
  284. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/object/index.mjs +0 -1
  285. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/object/object.mjs +0 -22
  286. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/index.mjs +0 -3
  287. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.mjs +0 -22
  288. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.mjs +0 -19
  289. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/omit/omit.mjs +0 -71
  290. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/index.mjs +0 -2
  291. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.mjs +0 -18
  292. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/optional/optional.mjs +0 -22
  293. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/parameters/index.mjs +0 -1
  294. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.mjs +0 -7
  295. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/index.mjs +0 -2
  296. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.mjs +0 -19
  297. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/partial/partial.mjs +0 -74
  298. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/patterns/index.mjs +0 -1
  299. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.mjs +0 -8
  300. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/index.mjs +0 -3
  301. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.mjs +0 -24
  302. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.mjs +0 -19
  303. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/pick/pick.mjs +0 -66
  304. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/promise/index.mjs +0 -1
  305. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs +0 -6
  306. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/index.mjs +0 -2
  307. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.mjs +0 -18
  308. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.mjs +0 -22
  309. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.mjs +0 -1
  310. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.mjs +0 -6
  311. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/record/index.mjs +0 -1
  312. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/record/record.mjs +0 -116
  313. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/recursive/index.mjs +0 -1
  314. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.mjs +0 -15
  315. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/ref/index.mjs +0 -1
  316. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/ref/ref.mjs +0 -10
  317. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/regexp/index.mjs +0 -1
  318. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.mjs +0 -8
  319. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/format.mjs +0 -26
  320. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/index.mjs +0 -2
  321. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/registry/type.mjs +0 -26
  322. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/index.mjs +0 -2
  323. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.mjs +0 -18
  324. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/required/required.mjs +0 -73
  325. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/rest/index.mjs +0 -1
  326. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/rest/rest.mjs +0 -15
  327. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/return-type/index.mjs +0 -1
  328. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.mjs +0 -7
  329. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.mjs +0 -1
  330. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/index.mjs +0 -2
  331. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/schema/schema.mjs +0 -1
  332. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/sets/index.mjs +0 -1
  333. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/sets/set.mjs +0 -48
  334. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/static/index.mjs +0 -1
  335. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/static/static.mjs +0 -1
  336. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/string/index.mjs +0 -1
  337. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/string/string.mjs +0 -6
  338. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbol/index.mjs +0 -1
  339. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.mjs +0 -6
  340. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbols/index.mjs +0 -1
  341. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.mjs +0 -10
  342. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.mjs +0 -49
  343. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.mjs +0 -53
  344. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.mjs +0 -7
  345. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.mjs +0 -167
  346. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.mjs +0 -33
  347. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.mjs +0 -55
  348. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.mjs +0 -13
  349. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.mjs +0 -9
  350. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/transform/index.mjs +0 -1
  351. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/transform/transform.mjs +0 -40
  352. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/tuple/index.mjs +0 -1
  353. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.mjs +0 -9
  354. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/index.mjs +0 -13
  355. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/javascript.mjs +0 -99
  356. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/json.mjs +0 -221
  357. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/type/type.mjs +0 -62
  358. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.mjs +0 -1
  359. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.mjs +0 -6
  360. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/undefined/index.mjs +0 -1
  361. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.mjs +0 -6
  362. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/index.mjs +0 -3
  363. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-create.mjs +0 -5
  364. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.mjs +0 -36
  365. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union-type.mjs +0 -1
  366. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/union/union.mjs +0 -10
  367. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unknown/index.mjs +0 -1
  368. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.mjs +0 -6
  369. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.mjs +0 -1
  370. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.mjs +0 -6
  371. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/void/index.mjs +0 -1
  372. package/.output/server/node_modules/@sinclair/typebox/build/esm/type/void/void.mjs +0 -6
  373. package/.output/server/node_modules/@sinclair/typebox/build/esm/value/guard/guard.mjs +0 -158
  374. package/.output/server/node_modules/@sinclair/typebox/build/esm/value/guard/index.mjs +0 -1
  375. package/.output/server/node_modules/@sinclair/typebox/package.json +0 -116
  376. package/.output/server/node_modules/@sindresorhus/is/dist/index.js +0 -434
  377. package/.output/server/node_modules/@sindresorhus/is/package.json +0 -96
  378. package/.output/server/node_modules/@szmarczak/http-timer/dist/source/index.js +0 -126
  379. package/.output/server/node_modules/@szmarczak/http-timer/package.json +0 -72
  380. package/.output/server/node_modules/abstract-level/abstract-chained-batch.js +0 -420
  381. package/.output/server/node_modules/abstract-level/abstract-iterator.js +0 -397
  382. package/.output/server/node_modules/abstract-level/abstract-level.js +0 -935
  383. package/.output/server/node_modules/abstract-level/index.js +0 -8
  384. package/.output/server/node_modules/abstract-level/lib/abstract-sublevel-iterator.js +0 -122
  385. package/.output/server/node_modules/abstract-level/lib/abstract-sublevel.js +0 -269
  386. package/.output/server/node_modules/abstract-level/lib/common.js +0 -33
  387. package/.output/server/node_modules/abstract-level/lib/default-chained-batch.js +0 -29
  388. package/.output/server/node_modules/abstract-level/lib/default-kv-iterator.js +0 -74
  389. package/.output/server/node_modules/abstract-level/lib/deferred-iterator.js +0 -110
  390. package/.output/server/node_modules/abstract-level/lib/deferred-queue.js +0 -86
  391. package/.output/server/node_modules/abstract-level/lib/errors.js +0 -21
  392. package/.output/server/node_modules/abstract-level/lib/event-monitor.js +0 -41
  393. package/.output/server/node_modules/abstract-level/lib/hooks.js +0 -79
  394. package/.output/server/node_modules/abstract-level/lib/prefixes.js +0 -21
  395. package/.output/server/node_modules/abstract-level/lib/prewrite-batch.js +0 -100
  396. package/.output/server/node_modules/abstract-level/lib/range-options.js +0 -26
  397. package/.output/server/node_modules/abstract-level/package.json +0 -62
  398. package/.output/server/node_modules/acorn/dist/acorn.mjs +0 -6145
  399. package/.output/server/node_modules/acorn/package.json +0 -50
  400. package/.output/server/node_modules/ajv/dist/ajv.js +0 -50
  401. package/.output/server/node_modules/ajv/dist/compile/codegen/code.js +0 -156
  402. package/.output/server/node_modules/ajv/dist/compile/codegen/index.js +0 -697
  403. package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
  404. package/.output/server/node_modules/ajv/dist/compile/errors.js +0 -123
  405. package/.output/server/node_modules/ajv/dist/compile/index.js +0 -242
  406. package/.output/server/node_modules/ajv/dist/compile/names.js +0 -28
  407. package/.output/server/node_modules/ajv/dist/compile/ref_error.js +0 -12
  408. package/.output/server/node_modules/ajv/dist/compile/resolve.js +0 -155
  409. package/.output/server/node_modules/ajv/dist/compile/rules.js +0 -26
  410. package/.output/server/node_modules/ajv/dist/compile/util.js +0 -178
  411. package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
  412. package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
  413. package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
  414. package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
  415. package/.output/server/node_modules/ajv/dist/compile/validate/index.js +0 -520
  416. package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
  417. package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
  418. package/.output/server/node_modules/ajv/dist/core.js +0 -618
  419. package/.output/server/node_modules/ajv/dist/refs/data.json +0 -13
  420. package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
  421. package/.output/server/node_modules/ajv/dist/runtime/equal.js +0 -7
  422. package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
  423. package/.output/server/node_modules/ajv/dist/runtime/uri.js +0 -6
  424. package/.output/server/node_modules/ajv/dist/runtime/validation_error.js +0 -11
  425. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
  426. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
  427. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
  428. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
  429. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
  430. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
  431. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
  432. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
  433. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
  434. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
  435. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
  436. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
  437. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
  438. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
  439. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
  440. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
  441. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
  442. package/.output/server/node_modules/ajv/dist/vocabularies/code.js +0 -131
  443. package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
  444. package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
  445. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
  446. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
  447. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
  448. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
  449. package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
  450. package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
  451. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
  452. package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
  453. package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
  454. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
  455. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
  456. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
  457. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
  458. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
  459. package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
  460. package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -24
  461. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
  462. package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
  463. package/.output/server/node_modules/ajv/package.json +0 -126
  464. package/.output/server/node_modules/atomic-sleep/index.js +0 -38
  465. package/.output/server/node_modules/atomic-sleep/package.json +0 -37
  466. package/.output/server/node_modules/better-lock/dist/better_lock.js +0 -377
  467. package/.output/server/node_modules/better-lock/dist/errors.js +0 -136
  468. package/.output/server/node_modules/better-lock/dist/index.js +0 -28
  469. package/.output/server/node_modules/better-lock/dist/internals.js +0 -75
  470. package/.output/server/node_modules/better-lock/dist/tools.js +0 -109
  471. package/.output/server/node_modules/better-lock/package.json +0 -60
  472. package/.output/server/node_modules/cacheable-lookup/package.json +0 -45
  473. package/.output/server/node_modules/cacheable-lookup/source/index.js +0 -436
  474. package/.output/server/node_modules/cacheable-request/package.json +0 -56
  475. package/.output/server/node_modules/cacheable-request/src/index.js +0 -251
  476. package/.output/server/node_modules/classic-level/binding.js +0 -1
  477. package/.output/server/node_modules/classic-level/chained-batch.js +0 -35
  478. package/.output/server/node_modules/classic-level/index.js +0 -177
  479. package/.output/server/node_modules/classic-level/iterator.js +0 -121
  480. package/.output/server/node_modules/classic-level/package.json +0 -71
  481. package/.output/server/node_modules/classic-level/prebuilds/linux-x64/classic-level.node +0 -0
  482. package/.output/server/node_modules/clone-response/package.json +0 -41
  483. package/.output/server/node_modules/clone-response/src/index.js +0 -17
  484. package/.output/server/node_modules/confbox/dist/index.mjs +0 -1
  485. package/.output/server/node_modules/confbox/dist/json5.mjs +0 -14
  486. package/.output/server/node_modules/confbox/dist/shared/confbox.9388d834.mjs +0 -1
  487. package/.output/server/node_modules/confbox/dist/shared/confbox.f9f03f05.mjs +0 -7
  488. package/.output/server/node_modules/confbox/dist/toml.mjs +0 -239
  489. package/.output/server/node_modules/confbox/dist/yaml.mjs +0 -32
  490. package/.output/server/node_modules/confbox/package.json +0 -86
  491. package/.output/server/node_modules/cross-spawn/index.js +0 -39
  492. package/.output/server/node_modules/cross-spawn/lib/enoent.js +0 -59
  493. package/.output/server/node_modules/cross-spawn/lib/parse.js +0 -91
  494. package/.output/server/node_modules/cross-spawn/lib/util/escape.js +0 -47
  495. package/.output/server/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
  496. package/.output/server/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
  497. package/.output/server/node_modules/cross-spawn/package.json +0 -73
  498. package/.output/server/node_modules/crypto-hash/index.js +0 -66
  499. package/.output/server/node_modules/crypto-hash/package.json +0 -54
  500. package/.output/server/node_modules/crypto-hash/thread.js +0 -10
  501. package/.output/server/node_modules/crypto-hash/utilities.js +0 -10
  502. package/.output/server/node_modules/decompress-response/index.js +0 -58
  503. package/.output/server/node_modules/decompress-response/package.json +0 -56
  504. package/.output/server/node_modules/defer-to-connect/dist/source/index.js +0 -47
  505. package/.output/server/node_modules/defer-to-connect/package.json +0 -71
  506. package/.output/server/node_modules/dettle/dist/debounce.js +0 -91
  507. package/.output/server/node_modules/dettle/dist/index.js +0 -5
  508. package/.output/server/node_modules/dettle/dist/throttle.js +0 -12
  509. package/.output/server/node_modules/dettle/package.json +0 -29
  510. package/.output/server/node_modules/dotenv/config.js +0 -9
  511. package/.output/server/node_modules/dotenv/lib/cli-options.js +0 -11
  512. package/.output/server/node_modules/dotenv/lib/env-options.js +0 -24
  513. package/.output/server/node_modules/dotenv/lib/main.js +0 -361
  514. package/.output/server/node_modules/dotenv/package.json +0 -61
  515. package/.output/server/node_modules/end-of-stream/index.js +0 -94
  516. package/.output/server/node_modules/end-of-stream/package.json +0 -37
  517. package/.output/server/node_modules/esprima/dist/esprima.js +0 -6709
  518. package/.output/server/node_modules/esprima/package.json +0 -112
  519. package/.output/server/node_modules/execa/index.js +0 -268
  520. package/.output/server/node_modules/execa/lib/command.js +0 -52
  521. package/.output/server/node_modules/execa/lib/error.js +0 -88
  522. package/.output/server/node_modules/execa/lib/kill.js +0 -115
  523. package/.output/server/node_modules/execa/lib/promise.js +0 -46
  524. package/.output/server/node_modules/execa/lib/stdio.js +0 -52
  525. package/.output/server/node_modules/execa/lib/stream.js +0 -97
  526. package/.output/server/node_modules/execa/package.json +0 -74
  527. package/.output/server/node_modules/fast-deep-equal/index.js +0 -46
  528. package/.output/server/node_modules/fast-deep-equal/package.json +0 -61
  529. package/.output/server/node_modules/fast-redact/index.js +0 -56
  530. package/.output/server/node_modules/fast-redact/lib/modifiers.js +0 -291
  531. package/.output/server/node_modules/fast-redact/lib/parse.js +0 -44
  532. package/.output/server/node_modules/fast-redact/lib/redactor.js +0 -108
  533. package/.output/server/node_modules/fast-redact/lib/restorer.js +0 -92
  534. package/.output/server/node_modules/fast-redact/lib/rx.js +0 -16
  535. package/.output/server/node_modules/fast-redact/lib/state.js +0 -20
  536. package/.output/server/node_modules/fast-redact/lib/validator.js +0 -33
  537. package/.output/server/node_modules/fast-redact/package.json +0 -50
  538. package/.output/server/node_modules/fast-uri/index.js +0 -303
  539. package/.output/server/node_modules/fast-uri/lib/schemes.js +0 -188
  540. package/.output/server/node_modules/fast-uri/lib/scopedChars.js +0 -30
  541. package/.output/server/node_modules/fast-uri/lib/utils.js +0 -244
  542. package/.output/server/node_modules/fast-uri/package.json +0 -68
  543. package/.output/server/node_modules/google-protobuf/google/protobuf/empty_pb.js +0 -147
  544. package/.output/server/node_modules/google-protobuf/google/protobuf/struct_pb.js +0 -955
  545. package/.output/server/node_modules/google-protobuf/google-protobuf.js +0 -149
  546. package/.output/server/node_modules/google-protobuf/package.json +0 -35
  547. package/.output/server/node_modules/got/dist/source/as-promise/create-rejection.js +0 -30
  548. package/.output/server/node_modules/got/dist/source/as-promise/index.js +0 -176
  549. package/.output/server/node_modules/got/dist/source/as-promise/normalize-arguments.js +0 -78
  550. package/.output/server/node_modules/got/dist/source/as-promise/parse-body.js +0 -25
  551. package/.output/server/node_modules/got/dist/source/as-promise/types.js +0 -42
  552. package/.output/server/node_modules/got/dist/source/core/calculate-retry-delay.js +0 -29
  553. package/.output/server/node_modules/got/dist/source/core/index.js +0 -1505
  554. package/.output/server/node_modules/got/dist/source/core/utils/dns-ip-version.js +0 -17
  555. package/.output/server/node_modules/got/dist/source/core/utils/get-body-size.js +0 -32
  556. package/.output/server/node_modules/got/dist/source/core/utils/get-buffer.js +0 -16
  557. package/.output/server/node_modules/got/dist/source/core/utils/is-form-data.js +0 -4
  558. package/.output/server/node_modules/got/dist/source/core/utils/is-response-ok.js +0 -8
  559. package/.output/server/node_modules/got/dist/source/core/utils/options-to-url.js +0 -53
  560. package/.output/server/node_modules/got/dist/source/core/utils/proxy-events.js +0 -17
  561. package/.output/server/node_modules/got/dist/source/core/utils/timed-out.js +0 -121
  562. package/.output/server/node_modules/got/dist/source/core/utils/unhandle.js +0 -22
  563. package/.output/server/node_modules/got/dist/source/core/utils/url-to-options.js +0 -24
  564. package/.output/server/node_modules/got/dist/source/core/utils/weakable-map.js +0 -29
  565. package/.output/server/node_modules/got/dist/source/create.js +0 -240
  566. package/.output/server/node_modules/got/dist/source/index.js +0 -132
  567. package/.output/server/node_modules/got/dist/source/types.js +0 -2
  568. package/.output/server/node_modules/got/dist/source/utils/deep-freeze.js +0 -12
  569. package/.output/server/node_modules/got/dist/source/utils/deprecation-warning.js +0 -13
  570. package/.output/server/node_modules/got/package.json +0 -131
  571. package/.output/server/node_modules/http-cache-semantics/index.js +0 -674
  572. package/.output/server/node_modules/http-cache-semantics/package.json +0 -18
  573. package/.output/server/node_modules/http2-wrapper/package.json +0 -54
  574. package/.output/server/node_modules/http2-wrapper/source/agent.js +0 -670
  575. package/.output/server/node_modules/http2-wrapper/source/auto.js +0 -149
  576. package/.output/server/node_modules/http2-wrapper/source/client-request.js +0 -445
  577. package/.output/server/node_modules/http2-wrapper/source/incoming-message.js +0 -58
  578. package/.output/server/node_modules/http2-wrapper/source/index.js +0 -28
  579. package/.output/server/node_modules/http2-wrapper/source/utils/calculate-server-name.js +0 -27
  580. package/.output/server/node_modules/http2-wrapper/source/utils/errors.js +0 -45
  581. package/.output/server/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.js +0 -13
  582. package/.output/server/node_modules/http2-wrapper/source/utils/proxy-events.js +0 -7
  583. package/.output/server/node_modules/http2-wrapper/source/utils/url-to-options.js +0 -25
  584. package/.output/server/node_modules/human-signals/build/src/core.js +0 -273
  585. package/.output/server/node_modules/human-signals/build/src/main.js +0 -71
  586. package/.output/server/node_modules/human-signals/build/src/realtime.js +0 -19
  587. package/.output/server/node_modules/human-signals/build/src/signals.js +0 -35
  588. package/.output/server/node_modules/human-signals/package.json +0 -64
  589. package/.output/server/node_modules/import-meta-resolve/index.js +0 -47
  590. package/.output/server/node_modules/import-meta-resolve/lib/errors.js +0 -507
  591. package/.output/server/node_modules/import-meta-resolve/lib/get-format.js +0 -159
  592. package/.output/server/node_modules/import-meta-resolve/lib/package-json-reader.js +0 -177
  593. package/.output/server/node_modules/import-meta-resolve/lib/resolve.js +0 -1297
  594. package/.output/server/node_modules/import-meta-resolve/lib/utils.js +0 -47
  595. package/.output/server/node_modules/import-meta-resolve/package.json +0 -95
  596. package/.output/server/node_modules/is-stream/index.js +0 -28
  597. package/.output/server/node_modules/is-stream/package.json +0 -42
  598. package/.output/server/node_modules/isexe/index.js +0 -57
  599. package/.output/server/node_modules/isexe/mode.js +0 -41
  600. package/.output/server/node_modules/isexe/package.json +0 -31
  601. package/.output/server/node_modules/isexe/windows.js +0 -42
  602. package/.output/server/node_modules/js-yaml/index.js +0 -7
  603. package/.output/server/node_modules/js-yaml/lib/js-yaml/common.js +0 -59
  604. package/.output/server/node_modules/js-yaml/lib/js-yaml/dumper.js +0 -850
  605. package/.output/server/node_modules/js-yaml/lib/js-yaml/exception.js +0 -43
  606. package/.output/server/node_modules/js-yaml/lib/js-yaml/loader.js +0 -1644
  607. package/.output/server/node_modules/js-yaml/lib/js-yaml/mark.js +0 -76
  608. package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/core.js +0 -18
  609. package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +0 -25
  610. package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +0 -28
  611. package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +0 -17
  612. package/.output/server/node_modules/js-yaml/lib/js-yaml/schema/json.js +0 -25
  613. package/.output/server/node_modules/js-yaml/lib/js-yaml/schema.js +0 -108
  614. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/binary.js +0 -138
  615. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/bool.js +0 -35
  616. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/float.js +0 -116
  617. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/int.js +0 -173
  618. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/function.js +0 -93
  619. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +0 -60
  620. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +0 -28
  621. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/map.js +0 -8
  622. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/merge.js +0 -12
  623. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/null.js +0 -34
  624. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/omap.js +0 -44
  625. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/pairs.js +0 -53
  626. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/seq.js +0 -8
  627. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/set.js +0 -29
  628. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/str.js +0 -8
  629. package/.output/server/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +0 -88
  630. package/.output/server/node_modules/js-yaml/lib/js-yaml/type.js +0 -61
  631. package/.output/server/node_modules/js-yaml/lib/js-yaml.js +0 -39
  632. package/.output/server/node_modules/js-yaml/package.json +0 -49
  633. package/.output/server/node_modules/json-buffer/index.js +0 -58
  634. package/.output/server/node_modules/json-buffer/package.json +0 -34
  635. package/.output/server/node_modules/json-schema-traverse/index.js +0 -93
  636. package/.output/server/node_modules/json-schema-traverse/package.json +0 -43
  637. package/.output/server/node_modules/keyv/package.json +0 -57
  638. package/.output/server/node_modules/keyv/src/index.js +0 -259
  639. package/.output/server/node_modules/level-supports/index.js +0 -26
  640. package/.output/server/node_modules/level-supports/package.json +0 -46
  641. package/.output/server/node_modules/level-transcoder/index.js +0 -158
  642. package/.output/server/node_modules/level-transcoder/lib/encoding.js +0 -105
  643. package/.output/server/node_modules/level-transcoder/lib/encodings.js +0 -135
  644. package/.output/server/node_modules/level-transcoder/lib/formats.js +0 -111
  645. package/.output/server/node_modules/level-transcoder/lib/text-endec.js +0 -19
  646. package/.output/server/node_modules/level-transcoder/package.json +0 -46
  647. package/.output/server/node_modules/lodash.camelcase/index.js +0 -599
  648. package/.output/server/node_modules/lodash.camelcase/package.json +0 -19
  649. package/.output/server/node_modules/long/package.json +0 -58
  650. package/.output/server/node_modules/long/umd/index.js +0 -1622
  651. package/.output/server/node_modules/long/umd/package.json +0 -3
  652. package/.output/server/node_modules/lowercase-keys/index.js +0 -10
  653. package/.output/server/node_modules/lowercase-keys/package.json +0 -38
  654. package/.output/server/node_modules/maybe-combine-errors/index.js +0 -60
  655. package/.output/server/node_modules/maybe-combine-errors/package.json +0 -33
  656. package/.output/server/node_modules/merge-stream/index.js +0 -41
  657. package/.output/server/node_modules/merge-stream/package.json +0 -19
  658. package/.output/server/node_modules/mimic-fn/index.js +0 -13
  659. package/.output/server/node_modules/mimic-fn/package.json +0 -42
  660. package/.output/server/node_modules/mlly/dist/index.mjs +0 -2606
  661. package/.output/server/node_modules/mlly/package.json +0 -50
  662. package/.output/server/node_modules/module-error/index.js +0 -22
  663. package/.output/server/node_modules/module-error/package.json +0 -36
  664. package/.output/server/node_modules/nano-spawn/package.json +0 -66
  665. package/.output/server/node_modules/nano-spawn/source/context.js +0 -12
  666. package/.output/server/node_modules/nano-spawn/source/index.js +0 -28
  667. package/.output/server/node_modules/nano-spawn/source/iterable.js +0 -61
  668. package/.output/server/node_modules/nano-spawn/source/options.js +0 -37
  669. package/.output/server/node_modules/nano-spawn/source/pipe.js +0 -43
  670. package/.output/server/node_modules/nano-spawn/source/result.js +0 -74
  671. package/.output/server/node_modules/nano-spawn/source/spawn.js +0 -44
  672. package/.output/server/node_modules/nano-spawn/source/windows.js +0 -76
  673. package/.output/server/node_modules/node-gyp-build/index.js +0 -6
  674. package/.output/server/node_modules/node-gyp-build/node-gyp-build.js +0 -207
  675. package/.output/server/node_modules/node-gyp-build/package.json +0 -43
  676. package/.output/server/node_modules/normalize-url/index.js +0 -216
  677. package/.output/server/node_modules/normalize-url/package.json +0 -50
  678. package/.output/server/node_modules/npm-run-path/index.js +0 -47
  679. package/.output/server/node_modules/npm-run-path/package.json +0 -44
  680. package/.output/server/node_modules/nypm/dist/index.mjs +0 -306
  681. package/.output/server/node_modules/nypm/package.json +0 -60
  682. package/.output/server/node_modules/on-exit-leak-free/index.js +0 -108
  683. package/.output/server/node_modules/on-exit-leak-free/package.json +0 -37
  684. package/.output/server/node_modules/once/once.js +0 -42
  685. package/.output/server/node_modules/once/package.json +0 -33
  686. package/.output/server/node_modules/onetime/index.js +0 -44
  687. package/.output/server/node_modules/onetime/package.json +0 -43
  688. package/.output/server/node_modules/p-cancelable/index.js +0 -111
  689. package/.output/server/node_modules/p-cancelable/package.json +0 -49
  690. package/.output/server/node_modules/path-key/index.js +0 -16
  691. package/.output/server/node_modules/path-key/package.json +0 -39
  692. package/.output/server/node_modules/pino/file.js +0 -12
  693. package/.output/server/node_modules/pino/lib/caller.js +0 -30
  694. package/.output/server/node_modules/pino/lib/constants.js +0 -28
  695. package/.output/server/node_modules/pino/lib/levels.js +0 -241
  696. package/.output/server/node_modules/pino/lib/meta.js +0 -3
  697. package/.output/server/node_modules/pino/lib/multistream.js +0 -188
  698. package/.output/server/node_modules/pino/lib/proto.js +0 -234
  699. package/.output/server/node_modules/pino/lib/redaction.js +0 -118
  700. package/.output/server/node_modules/pino/lib/symbols.js +0 -74
  701. package/.output/server/node_modules/pino/lib/time.js +0 -11
  702. package/.output/server/node_modules/pino/lib/tools.js +0 -394
  703. package/.output/server/node_modules/pino/lib/transport-stream.js +0 -56
  704. package/.output/server/node_modules/pino/lib/transport.js +0 -167
  705. package/.output/server/node_modules/pino/lib/worker.js +0 -194
  706. package/.output/server/node_modules/pino/package.json +0 -120
  707. package/.output/server/node_modules/pino/pino.js +0 -234
  708. package/.output/server/node_modules/pino-abstract-transport/index.js +0 -128
  709. package/.output/server/node_modules/pino-abstract-transport/package.json +0 -40
  710. package/.output/server/node_modules/pino-std-serializers/index.js +0 -36
  711. package/.output/server/node_modules/pino-std-serializers/lib/err-helpers.js +0 -118
  712. package/.output/server/node_modules/pino-std-serializers/lib/err-proto.js +0 -48
  713. package/.output/server/node_modules/pino-std-serializers/lib/err-with-cause.js +0 -48
  714. package/.output/server/node_modules/pino-std-serializers/lib/err.js +0 -45
  715. package/.output/server/node_modules/pino-std-serializers/lib/req.js +0 -100
  716. package/.output/server/node_modules/pino-std-serializers/lib/res.js +0 -47
  717. package/.output/server/node_modules/pino-std-serializers/package.json +0 -47
  718. package/.output/server/node_modules/pkg-types/dist/index.mjs +0 -157
  719. package/.output/server/node_modules/pkg-types/package.json +0 -47
  720. package/.output/server/node_modules/promise-make-counter/dist/index.js +0 -24
  721. package/.output/server/node_modules/promise-make-counter/package.json +0 -33
  722. package/.output/server/node_modules/promise-make-naked/dist/index.js +0 -25
  723. package/.output/server/node_modules/promise-make-naked/dist/utils.js +0 -4
  724. package/.output/server/node_modules/promise-make-naked/package.json +0 -29
  725. package/.output/server/node_modules/protobufjs/ext/descriptor/index.js +0 -1052
  726. package/.output/server/node_modules/protobufjs/google/protobuf/api.json +0 -118
  727. package/.output/server/node_modules/protobufjs/google/protobuf/descriptor.json +0 -739
  728. package/.output/server/node_modules/protobufjs/google/protobuf/source_context.json +0 -20
  729. package/.output/server/node_modules/protobufjs/google/protobuf/type.json +0 -202
  730. package/.output/server/node_modules/protobufjs/index.js +0 -4
  731. package/.output/server/node_modules/protobufjs/package.json +0 -112
  732. package/.output/server/node_modules/protobufjs/src/common.js +0 -399
  733. package/.output/server/node_modules/protobufjs/src/converter.js +0 -301
  734. package/.output/server/node_modules/protobufjs/src/decoder.js +0 -129
  735. package/.output/server/node_modules/protobufjs/src/encoder.js +0 -100
  736. package/.output/server/node_modules/protobufjs/src/enum.js +0 -198
  737. package/.output/server/node_modules/protobufjs/src/field.js +0 -377
  738. package/.output/server/node_modules/protobufjs/src/index-light.js +0 -104
  739. package/.output/server/node_modules/protobufjs/src/index-minimal.js +0 -36
  740. package/.output/server/node_modules/protobufjs/src/index.js +0 -12
  741. package/.output/server/node_modules/protobufjs/src/mapfield.js +0 -126
  742. package/.output/server/node_modules/protobufjs/src/message.js +0 -139
  743. package/.output/server/node_modules/protobufjs/src/method.js +0 -160
  744. package/.output/server/node_modules/protobufjs/src/namespace.js +0 -433
  745. package/.output/server/node_modules/protobufjs/src/object.js +0 -243
  746. package/.output/server/node_modules/protobufjs/src/oneof.js +0 -203
  747. package/.output/server/node_modules/protobufjs/src/parse.js +0 -893
  748. package/.output/server/node_modules/protobufjs/src/reader.js +0 -416
  749. package/.output/server/node_modules/protobufjs/src/reader_buffer.js +0 -51
  750. package/.output/server/node_modules/protobufjs/src/root.js +0 -368
  751. package/.output/server/node_modules/protobufjs/src/roots.js +0 -18
  752. package/.output/server/node_modules/protobufjs/src/rpc/service.js +0 -142
  753. package/.output/server/node_modules/protobufjs/src/rpc.js +0 -36
  754. package/.output/server/node_modules/protobufjs/src/service.js +0 -167
  755. package/.output/server/node_modules/protobufjs/src/tokenize.js +0 -416
  756. package/.output/server/node_modules/protobufjs/src/type.js +0 -589
  757. package/.output/server/node_modules/protobufjs/src/types.js +0 -196
  758. package/.output/server/node_modules/protobufjs/src/util/longbits.js +0 -200
  759. package/.output/server/node_modules/protobufjs/src/util/minimal.js +0 -438
  760. package/.output/server/node_modules/protobufjs/src/util.js +0 -212
  761. package/.output/server/node_modules/protobufjs/src/verifier.js +0 -177
  762. package/.output/server/node_modules/protobufjs/src/wrappers.js +0 -102
  763. package/.output/server/node_modules/protobufjs/src/writer.js +0 -465
  764. package/.output/server/node_modules/protobufjs/src/writer_buffer.js +0 -85
  765. package/.output/server/node_modules/pump/index.js +0 -86
  766. package/.output/server/node_modules/pump/package.json +0 -24
  767. package/.output/server/node_modules/quick-format-unescaped/index.js +0 -109
  768. package/.output/server/node_modules/quick-format-unescaped/package.json +0 -29
  769. package/.output/server/node_modules/quick-lru/index.js +0 -123
  770. package/.output/server/node_modules/quick-lru/package.json +0 -43
  771. package/.output/server/node_modules/real-require/package.json +0 -49
  772. package/.output/server/node_modules/real-require/src/index.js +0 -14
  773. package/.output/server/node_modules/remeda/dist/chunk-26ILFTOP.js +0 -1
  774. package/.output/server/node_modules/remeda/dist/chunk-2KIKGHAO.js +0 -1
  775. package/.output/server/node_modules/remeda/dist/chunk-2OQBQB3V.js +0 -1
  776. package/.output/server/node_modules/remeda/dist/chunk-2P44HXVH.js +0 -1
  777. package/.output/server/node_modules/remeda/dist/chunk-32MVV6O6.js +0 -1
  778. package/.output/server/node_modules/remeda/dist/chunk-3D3RWAVJ.js +0 -1
  779. package/.output/server/node_modules/remeda/dist/chunk-3FKP6OOU.js +0 -1
  780. package/.output/server/node_modules/remeda/dist/chunk-3IFJP4R5.js +0 -1
  781. package/.output/server/node_modules/remeda/dist/chunk-3T4TGMU4.js +0 -1
  782. package/.output/server/node_modules/remeda/dist/chunk-3UBK2BVM.js +0 -1
  783. package/.output/server/node_modules/remeda/dist/chunk-3XGGB2R4.js +0 -1
  784. package/.output/server/node_modules/remeda/dist/chunk-3ZJAREUD.js +0 -1
  785. package/.output/server/node_modules/remeda/dist/chunk-4NRWDO7P.js +0 -1
  786. package/.output/server/node_modules/remeda/dist/chunk-4UEQNEAO.js +0 -1
  787. package/.output/server/node_modules/remeda/dist/chunk-4YLWJIJ6.js +0 -1
  788. package/.output/server/node_modules/remeda/dist/chunk-4ZFFLFWV.js +0 -1
  789. package/.output/server/node_modules/remeda/dist/chunk-567G5ZXL.js +0 -1
  790. package/.output/server/node_modules/remeda/dist/chunk-57KROWWS.js +0 -1
  791. package/.output/server/node_modules/remeda/dist/chunk-5DU4ITSF.js +0 -1
  792. package/.output/server/node_modules/remeda/dist/chunk-5NQBDF4H.js +0 -1
  793. package/.output/server/node_modules/remeda/dist/chunk-5S4PYKVY.js +0 -1
  794. package/.output/server/node_modules/remeda/dist/chunk-5WKPQX7L.js +0 -1
  795. package/.output/server/node_modules/remeda/dist/chunk-6GTAPB47.js +0 -1
  796. package/.output/server/node_modules/remeda/dist/chunk-6OEKBHIX.js +0 -1
  797. package/.output/server/node_modules/remeda/dist/chunk-6RKHJ2CP.js +0 -1
  798. package/.output/server/node_modules/remeda/dist/chunk-6RL33UFT.js +0 -1
  799. package/.output/server/node_modules/remeda/dist/chunk-7QX4DO53.js +0 -1
  800. package/.output/server/node_modules/remeda/dist/chunk-A3PVMI4K.js +0 -1
  801. package/.output/server/node_modules/remeda/dist/chunk-A3ZTVFWP.js +0 -1
  802. package/.output/server/node_modules/remeda/dist/chunk-ADT4LUUN.js +0 -1
  803. package/.output/server/node_modules/remeda/dist/chunk-AHDTEY6L.js +0 -1
  804. package/.output/server/node_modules/remeda/dist/chunk-ALS6JP7S.js +0 -1
  805. package/.output/server/node_modules/remeda/dist/chunk-ANXBDSUI.js +0 -1
  806. package/.output/server/node_modules/remeda/dist/chunk-B6PG574O.js +0 -1
  807. package/.output/server/node_modules/remeda/dist/chunk-BCPWYWXN.js +0 -1
  808. package/.output/server/node_modules/remeda/dist/chunk-BO3LQZNF.js +0 -1
  809. package/.output/server/node_modules/remeda/dist/chunk-BSLJB6JE.js +0 -1
  810. package/.output/server/node_modules/remeda/dist/chunk-BXEO7YHQ.js +0 -1
  811. package/.output/server/node_modules/remeda/dist/chunk-BZNENX2T.js +0 -1
  812. package/.output/server/node_modules/remeda/dist/chunk-C4LV5VIX.js +0 -1
  813. package/.output/server/node_modules/remeda/dist/chunk-C4OZY4Z2.js +0 -1
  814. package/.output/server/node_modules/remeda/dist/chunk-C6IMN7SF.js +0 -1
  815. package/.output/server/node_modules/remeda/dist/chunk-CAZXBO45.js +0 -1
  816. package/.output/server/node_modules/remeda/dist/chunk-D6FCK2GA.js +0 -1
  817. package/.output/server/node_modules/remeda/dist/chunk-DAE7EJQ2.js +0 -1
  818. package/.output/server/node_modules/remeda/dist/chunk-DEVKGLTN.js +0 -2
  819. package/.output/server/node_modules/remeda/dist/chunk-DH3BPT6T.js +0 -1
  820. package/.output/server/node_modules/remeda/dist/chunk-DM52TTEP.js +0 -1
  821. package/.output/server/node_modules/remeda/dist/chunk-DSLWSGID.js +0 -1
  822. package/.output/server/node_modules/remeda/dist/chunk-EMIEIAAH.js +0 -1
  823. package/.output/server/node_modules/remeda/dist/chunk-ENOHV5LT.js +0 -1
  824. package/.output/server/node_modules/remeda/dist/chunk-ENS7GPLZ.js +0 -1
  825. package/.output/server/node_modules/remeda/dist/chunk-ETADWPSK.js +0 -1
  826. package/.output/server/node_modules/remeda/dist/chunk-EVIH3PFY.js +0 -1
  827. package/.output/server/node_modules/remeda/dist/chunk-FDH4IRIM.js +0 -1
  828. package/.output/server/node_modules/remeda/dist/chunk-FMPZ2CLX.js +0 -1
  829. package/.output/server/node_modules/remeda/dist/chunk-FRNNS7AX.js +0 -1
  830. package/.output/server/node_modules/remeda/dist/chunk-G2JPX77Y.js +0 -1
  831. package/.output/server/node_modules/remeda/dist/chunk-G5B2IDWB.js +0 -1
  832. package/.output/server/node_modules/remeda/dist/chunk-GDGEDZJG.js +0 -1
  833. package/.output/server/node_modules/remeda/dist/chunk-GGYFZTDW.js +0 -1
  834. package/.output/server/node_modules/remeda/dist/chunk-GIKF2ZNG.js +0 -1
  835. package/.output/server/node_modules/remeda/dist/chunk-GK5I7C4J.js +0 -1
  836. package/.output/server/node_modules/remeda/dist/chunk-GMMLSO2N.js +0 -1
  837. package/.output/server/node_modules/remeda/dist/chunk-GPLTWAVR.js +0 -1
  838. package/.output/server/node_modules/remeda/dist/chunk-GYH2VCL4.js +0 -1
  839. package/.output/server/node_modules/remeda/dist/chunk-H4OTHZJB.js +0 -1
  840. package/.output/server/node_modules/remeda/dist/chunk-HGKLN5KY.js +0 -1
  841. package/.output/server/node_modules/remeda/dist/chunk-HJSE3ESO.js +0 -1
  842. package/.output/server/node_modules/remeda/dist/chunk-HV3WACXG.js +0 -1
  843. package/.output/server/node_modules/remeda/dist/chunk-HVJXDSOP.js +0 -1
  844. package/.output/server/node_modules/remeda/dist/chunk-HVLRA6ZU.js +0 -1
  845. package/.output/server/node_modules/remeda/dist/chunk-I3D2BSWJ.js +0 -1
  846. package/.output/server/node_modules/remeda/dist/chunk-IXASGXCR.js +0 -1
  847. package/.output/server/node_modules/remeda/dist/chunk-J3IRE4DI.js +0 -1
  848. package/.output/server/node_modules/remeda/dist/chunk-J4EKWFDW.js +0 -1
  849. package/.output/server/node_modules/remeda/dist/chunk-J7R2OSHS.js +0 -1
  850. package/.output/server/node_modules/remeda/dist/chunk-JJZ7E4YG.js +0 -1
  851. package/.output/server/node_modules/remeda/dist/chunk-JK3VNB42.js +0 -1
  852. package/.output/server/node_modules/remeda/dist/chunk-K2FFNW24.js +0 -1
  853. package/.output/server/node_modules/remeda/dist/chunk-K3UJMX27.js +0 -1
  854. package/.output/server/node_modules/remeda/dist/chunk-KI5UAETW.js +0 -1
  855. package/.output/server/node_modules/remeda/dist/chunk-KQRZQWDE.js +0 -1
  856. package/.output/server/node_modules/remeda/dist/chunk-KVHF7QRD.js +0 -1
  857. package/.output/server/node_modules/remeda/dist/chunk-KZIKCQ56.js +0 -1
  858. package/.output/server/node_modules/remeda/dist/chunk-LDNOJYCI.js +0 -1
  859. package/.output/server/node_modules/remeda/dist/chunk-LE6I3KC6.js +0 -1
  860. package/.output/server/node_modules/remeda/dist/chunk-MQDP6CFS.js +0 -1
  861. package/.output/server/node_modules/remeda/dist/chunk-MSOX5OUI.js +0 -1
  862. package/.output/server/node_modules/remeda/dist/chunk-MYLLMFC7.js +0 -1
  863. package/.output/server/node_modules/remeda/dist/chunk-N4JUOEMS.js +0 -1
  864. package/.output/server/node_modules/remeda/dist/chunk-NFFV4IQT.js +0 -1
  865. package/.output/server/node_modules/remeda/dist/chunk-NJXNQM3G.js +0 -1
  866. package/.output/server/node_modules/remeda/dist/chunk-NMC53JVB.js +0 -1
  867. package/.output/server/node_modules/remeda/dist/chunk-NS6ZBRLP.js +0 -1
  868. package/.output/server/node_modules/remeda/dist/chunk-OAMXQXGR.js +0 -1
  869. package/.output/server/node_modules/remeda/dist/chunk-OCJMJQKO.js +0 -1
  870. package/.output/server/node_modules/remeda/dist/chunk-OIQJEOF7.js +0 -1
  871. package/.output/server/node_modules/remeda/dist/chunk-OLNQBNAJ.js +0 -1
  872. package/.output/server/node_modules/remeda/dist/chunk-OP5ZF26D.js +0 -1
  873. package/.output/server/node_modules/remeda/dist/chunk-OWH4IQQW.js +0 -1
  874. package/.output/server/node_modules/remeda/dist/chunk-P2PQB7KO.js +0 -1
  875. package/.output/server/node_modules/remeda/dist/chunk-P3DXEVTH.js +0 -1
  876. package/.output/server/node_modules/remeda/dist/chunk-P5WDBFN2.js +0 -1
  877. package/.output/server/node_modules/remeda/dist/chunk-P6LAFGAN.js +0 -1
  878. package/.output/server/node_modules/remeda/dist/chunk-PDQFB3TV.js +0 -1
  879. package/.output/server/node_modules/remeda/dist/chunk-PFSVCZNE.js +0 -1
  880. package/.output/server/node_modules/remeda/dist/chunk-PGMPBC5Q.js +0 -1
  881. package/.output/server/node_modules/remeda/dist/chunk-PIX5OHMW.js +0 -1
  882. package/.output/server/node_modules/remeda/dist/chunk-PULGOXDA.js +0 -1
  883. package/.output/server/node_modules/remeda/dist/chunk-PVYOMZ3I.js +0 -1
  884. package/.output/server/node_modules/remeda/dist/chunk-Q5ASJ5N7.js +0 -1
  885. package/.output/server/node_modules/remeda/dist/chunk-QDGUNRDA.js +0 -1
  886. package/.output/server/node_modules/remeda/dist/chunk-QDOP3ITN.js +0 -1
  887. package/.output/server/node_modules/remeda/dist/chunk-QEKOZYJ5.js +0 -1
  888. package/.output/server/node_modules/remeda/dist/chunk-QOEIYQAG.js +0 -1
  889. package/.output/server/node_modules/remeda/dist/chunk-QTQTP2VB.js +0 -1
  890. package/.output/server/node_modules/remeda/dist/chunk-R72GEKLP.js +0 -1
  891. package/.output/server/node_modules/remeda/dist/chunk-R7PILVSQ.js +0 -1
  892. package/.output/server/node_modules/remeda/dist/chunk-RBODUO3Q.js +0 -1
  893. package/.output/server/node_modules/remeda/dist/chunk-RZUYD7QY.js +0 -1
  894. package/.output/server/node_modules/remeda/dist/chunk-S52RID4A.js +0 -1
  895. package/.output/server/node_modules/remeda/dist/chunk-SBKJLULJ.js +0 -1
  896. package/.output/server/node_modules/remeda/dist/chunk-SDLIKNSY.js +0 -1
  897. package/.output/server/node_modules/remeda/dist/chunk-SFZGYJFI.js +0 -1
  898. package/.output/server/node_modules/remeda/dist/chunk-SGAFZVQH.js +0 -1
  899. package/.output/server/node_modules/remeda/dist/chunk-SSDL7ATG.js +0 -1
  900. package/.output/server/node_modules/remeda/dist/chunk-T4H4IOYC.js +0 -1
  901. package/.output/server/node_modules/remeda/dist/chunk-T4PLMLCP.js +0 -1
  902. package/.output/server/node_modules/remeda/dist/chunk-T5XG33UI.js +0 -1
  903. package/.output/server/node_modules/remeda/dist/chunk-U753ZCO5.js +0 -1
  904. package/.output/server/node_modules/remeda/dist/chunk-UA6DVSZ3.js +0 -1
  905. package/.output/server/node_modules/remeda/dist/chunk-UHDYHGOF.js +0 -1
  906. package/.output/server/node_modules/remeda/dist/chunk-UZ6BOIAH.js +0 -1
  907. package/.output/server/node_modules/remeda/dist/chunk-V6HCOU6T.js +0 -1
  908. package/.output/server/node_modules/remeda/dist/chunk-VCYTMP4D.js +0 -1
  909. package/.output/server/node_modules/remeda/dist/chunk-VFECZ57D.js +0 -1
  910. package/.output/server/node_modules/remeda/dist/chunk-VFSOOVKJ.js +0 -1
  911. package/.output/server/node_modules/remeda/dist/chunk-VG2NVNXT.js +0 -1
  912. package/.output/server/node_modules/remeda/dist/chunk-VIBSXWWU.js +0 -1
  913. package/.output/server/node_modules/remeda/dist/chunk-VMV5GVZ5.js +0 -1
  914. package/.output/server/node_modules/remeda/dist/chunk-VO5MRBXA.js +0 -1
  915. package/.output/server/node_modules/remeda/dist/chunk-VVM5DH6Z.js +0 -1
  916. package/.output/server/node_modules/remeda/dist/chunk-W2ARC73P.js +0 -1
  917. package/.output/server/node_modules/remeda/dist/chunk-W6ZHPGFP.js +0 -1
  918. package/.output/server/node_modules/remeda/dist/chunk-WFMWIRTS.js +0 -1
  919. package/.output/server/node_modules/remeda/dist/chunk-WIMGWYZL.js +0 -1
  920. package/.output/server/node_modules/remeda/dist/chunk-WOUS55DT.js +0 -1
  921. package/.output/server/node_modules/remeda/dist/chunk-WPTI67A4.js +0 -1
  922. package/.output/server/node_modules/remeda/dist/chunk-WWPMIW33.js +0 -1
  923. package/.output/server/node_modules/remeda/dist/chunk-WZOX4VKU.js +0 -1
  924. package/.output/server/node_modules/remeda/dist/chunk-XE3XIKTJ.js +0 -1
  925. package/.output/server/node_modules/remeda/dist/chunk-XHPQVWZM.js +0 -1
  926. package/.output/server/node_modules/remeda/dist/chunk-XMLUDZIW.js +0 -1
  927. package/.output/server/node_modules/remeda/dist/chunk-XPCYQPKH.js +0 -1
  928. package/.output/server/node_modules/remeda/dist/chunk-XUX3ZEXI.js +0 -1
  929. package/.output/server/node_modules/remeda/dist/chunk-XWBKJZIP.js +0 -1
  930. package/.output/server/node_modules/remeda/dist/chunk-XZ6COQKM.js +0 -1
  931. package/.output/server/node_modules/remeda/dist/chunk-Y3VKZ3P5.js +0 -1
  932. package/.output/server/node_modules/remeda/dist/chunk-YDIA5YQI.js +0 -1
  933. package/.output/server/node_modules/remeda/dist/chunk-YNNF733L.js +0 -1
  934. package/.output/server/node_modules/remeda/dist/chunk-YRJ25UV2.js +0 -1
  935. package/.output/server/node_modules/remeda/dist/chunk-YVJOC2U3.js +0 -1
  936. package/.output/server/node_modules/remeda/dist/chunk-YVMG2XEU.js +0 -1
  937. package/.output/server/node_modules/remeda/dist/chunk-ZJS5DNQW.js +0 -1
  938. package/.output/server/node_modules/remeda/dist/chunk-ZP6YI2JT.js +0 -1
  939. package/.output/server/node_modules/remeda/dist/chunk-ZRKG4NSC.js +0 -1
  940. package/.output/server/node_modules/remeda/dist/index.js +0 -1
  941. package/.output/server/node_modules/remeda/package.json +0 -85
  942. package/.output/server/node_modules/resolve-alpn/index.js +0 -43
  943. package/.output/server/node_modules/resolve-alpn/package.json +0 -34
  944. package/.output/server/node_modules/responselike/package.json +0 -39
  945. package/.output/server/node_modules/responselike/src/index.js +0 -34
  946. package/.output/server/node_modules/safe-stable-stringify/index.js +0 -625
  947. package/.output/server/node_modules/safe-stable-stringify/package.json +0 -65
  948. package/.output/server/node_modules/semver/classes/comparator.js +0 -141
  949. package/.output/server/node_modules/semver/classes/range.js +0 -554
  950. package/.output/server/node_modules/semver/classes/semver.js +0 -318
  951. package/.output/server/node_modules/semver/functions/clean.js +0 -6
  952. package/.output/server/node_modules/semver/functions/cmp.js +0 -52
  953. package/.output/server/node_modules/semver/functions/coerce.js +0 -60
  954. package/.output/server/node_modules/semver/functions/compare-build.js +0 -7
  955. package/.output/server/node_modules/semver/functions/compare-loose.js +0 -3
  956. package/.output/server/node_modules/semver/functions/compare.js +0 -5
  957. package/.output/server/node_modules/semver/functions/diff.js +0 -58
  958. package/.output/server/node_modules/semver/functions/eq.js +0 -3
  959. package/.output/server/node_modules/semver/functions/gt.js +0 -3
  960. package/.output/server/node_modules/semver/functions/gte.js +0 -3
  961. package/.output/server/node_modules/semver/functions/inc.js +0 -19
  962. package/.output/server/node_modules/semver/functions/lt.js +0 -3
  963. package/.output/server/node_modules/semver/functions/lte.js +0 -3
  964. package/.output/server/node_modules/semver/functions/major.js +0 -3
  965. package/.output/server/node_modules/semver/functions/minor.js +0 -3
  966. package/.output/server/node_modules/semver/functions/neq.js +0 -3
  967. package/.output/server/node_modules/semver/functions/parse.js +0 -16
  968. package/.output/server/node_modules/semver/functions/patch.js +0 -3
  969. package/.output/server/node_modules/semver/functions/prerelease.js +0 -6
  970. package/.output/server/node_modules/semver/functions/rcompare.js +0 -3
  971. package/.output/server/node_modules/semver/functions/rsort.js +0 -3
  972. package/.output/server/node_modules/semver/functions/satisfies.js +0 -10
  973. package/.output/server/node_modules/semver/functions/sort.js +0 -3
  974. package/.output/server/node_modules/semver/functions/valid.js +0 -6
  975. package/.output/server/node_modules/semver/index.js +0 -89
  976. package/.output/server/node_modules/semver/internal/constants.js +0 -35
  977. package/.output/server/node_modules/semver/internal/debug.js +0 -9
  978. package/.output/server/node_modules/semver/internal/identifiers.js +0 -23
  979. package/.output/server/node_modules/semver/internal/lrucache.js +0 -40
  980. package/.output/server/node_modules/semver/internal/parse-options.js +0 -15
  981. package/.output/server/node_modules/semver/internal/re.js +0 -219
  982. package/.output/server/node_modules/semver/package.json +0 -78
  983. package/.output/server/node_modules/semver/preload.js +0 -2
  984. package/.output/server/node_modules/semver/ranges/gtr.js +0 -4
  985. package/.output/server/node_modules/semver/ranges/intersects.js +0 -7
  986. package/.output/server/node_modules/semver/ranges/ltr.js +0 -4
  987. package/.output/server/node_modules/semver/ranges/max-satisfying.js +0 -25
  988. package/.output/server/node_modules/semver/ranges/min-satisfying.js +0 -24
  989. package/.output/server/node_modules/semver/ranges/min-version.js +0 -61
  990. package/.output/server/node_modules/semver/ranges/outside.js +0 -80
  991. package/.output/server/node_modules/semver/ranges/simplify.js +0 -47
  992. package/.output/server/node_modules/semver/ranges/subset.js +0 -247
  993. package/.output/server/node_modules/semver/ranges/to-comparators.js +0 -8
  994. package/.output/server/node_modules/semver/ranges/valid.js +0 -11
  995. package/.output/server/node_modules/shebang-command/index.js +0 -19
  996. package/.output/server/node_modules/shebang-command/package.json +0 -34
  997. package/.output/server/node_modules/shebang-regex/index.js +0 -2
  998. package/.output/server/node_modules/shebang-regex/package.json +0 -35
  999. package/.output/server/node_modules/signal-exit/index.js +0 -202
  1000. package/.output/server/node_modules/signal-exit/package.json +0 -38
  1001. package/.output/server/node_modules/signal-exit/signals.js +0 -53
  1002. package/.output/server/node_modules/sonic-boom/index.js +0 -719
  1003. package/.output/server/node_modules/sonic-boom/package.json +0 -52
  1004. package/.output/server/node_modules/split2/index.js +0 -141
  1005. package/.output/server/node_modules/split2/package.json +0 -39
  1006. package/.output/server/node_modules/strip-final-newline/index.js +0 -16
  1007. package/.output/server/node_modules/strip-final-newline/package.json +0 -40
  1008. package/.output/server/node_modules/stubborn-fs/dist/attemptify.js +0 -19
  1009. package/.output/server/node_modules/stubborn-fs/dist/constants.js +0 -8
  1010. package/.output/server/node_modules/stubborn-fs/dist/handlers.js +0 -36
  1011. package/.output/server/node_modules/stubborn-fs/dist/index.js +0 -53
  1012. package/.output/server/node_modules/stubborn-fs/dist/retryify.js +0 -46
  1013. package/.output/server/node_modules/stubborn-fs/dist/retryify_queue.js +0 -62
  1014. package/.output/server/node_modules/stubborn-fs/package.json +0 -28
  1015. package/.output/server/node_modules/thread-stream/index.js +0 -537
  1016. package/.output/server/node_modules/thread-stream/lib/indexes.js +0 -9
  1017. package/.output/server/node_modules/thread-stream/lib/wait.js +0 -61
  1018. package/.output/server/node_modules/thread-stream/lib/worker.js +0 -174
  1019. package/.output/server/node_modules/thread-stream/package.json +0 -57
  1020. package/.output/server/node_modules/tiny-readdir/dist/constants.js +0 -9
  1021. package/.output/server/node_modules/tiny-readdir/dist/index.js +0 -185
  1022. package/.output/server/node_modules/tiny-readdir/dist/utils.js +0 -9
  1023. package/.output/server/node_modules/tiny-readdir/package.json +0 -35
  1024. package/.output/server/node_modules/tinyexec/dist/main.js +0 -578
  1025. package/.output/server/node_modules/tinyexec/package.json +0 -66
  1026. package/.output/server/node_modules/tmp/lib/tmp.js +0 -784
  1027. package/.output/server/node_modules/tmp/package.json +0 -56
  1028. package/.output/server/node_modules/upath/build/code/upath.js +0 -171
  1029. package/.output/server/node_modules/upath/package.json +0 -60
  1030. package/.output/server/node_modules/uuidv7/dist/index.js +0 -403
  1031. package/.output/server/node_modules/uuidv7/package.json +0 -47
  1032. package/.output/server/node_modules/watcher/dist/constants.js +0 -16
  1033. package/.output/server/node_modules/watcher/dist/enums.js +0 -35
  1034. package/.output/server/node_modules/watcher/dist/lazy_map_set.js +0 -81
  1035. package/.output/server/node_modules/watcher/dist/utils.js +0 -120
  1036. package/.output/server/node_modules/watcher/dist/watcher.js +0 -396
  1037. package/.output/server/node_modules/watcher/dist/watcher_handler.js +0 -248
  1038. package/.output/server/node_modules/watcher/dist/watcher_locker.js +0 -139
  1039. package/.output/server/node_modules/watcher/dist/watcher_locks_resolver.js +0 -42
  1040. package/.output/server/node_modules/watcher/dist/watcher_poller.js +0 -116
  1041. package/.output/server/node_modules/watcher/dist/watcher_stats.js +0 -29
  1042. package/.output/server/node_modules/watcher/package.json +0 -37
  1043. package/.output/server/node_modules/which/package.json +0 -43
  1044. package/.output/server/node_modules/which/which.js +0 -125
  1045. package/.output/server/node_modules/wrappy/package.json +0 -29
  1046. package/.output/server/node_modules/wrappy/wrappy.js +0 -33
@@ -1,2606 +0,0 @@
1
- import { tokenizer } from 'acorn';
2
- import { builtinModules, createRequire } from 'node:module';
3
- import fs, { realpathSync, statSync, promises } from 'node:fs';
4
- import { joinURL } from 'ufo';
5
- import { normalize, isAbsolute, extname as extname$1 } from 'pathe';
6
- import { readPackageJSON } from 'pkg-types';
7
- import { fileURLToPath as fileURLToPath$1, URL as URL$1, pathToFileURL as pathToFileURL$1 } from 'node:url';
8
- import assert from 'node:assert';
9
- import process$1 from 'node:process';
10
- import path, { dirname } from 'node:path';
11
- import v8 from 'node:v8';
12
- import { format, inspect } from 'node:util';
13
-
14
- const BUILTIN_MODULES = new Set(builtinModules);
15
- function normalizeSlash(path) {
16
- return path.replace(/\\/g, "/");
17
- }
18
- function isObject(value) {
19
- return value !== null && typeof value === "object";
20
- }
21
- function matchAll(regex, string, addition) {
22
- const matches = [];
23
- for (const match of string.matchAll(regex)) {
24
- matches.push({
25
- ...addition,
26
- ...match.groups,
27
- code: match[0],
28
- start: match.index,
29
- end: (match.index || 0) + match[0].length
30
- });
31
- }
32
- return matches;
33
- }
34
- function clearImports(imports) {
35
- return (imports || "").replace(/(\/\/[^\n]*\n|\/\*.*\*\/)/g, "").replace(/\s+/g, " ");
36
- }
37
- function getImportNames(cleanedImports) {
38
- const topLevelImports = cleanedImports.replace(/{([^}]*)}/, "");
39
- const namespacedImport = topLevelImports.match(/\* as \s*(\S*)/)?.[1];
40
- const defaultImport = topLevelImports.split(",").find((index) => !/[*{}]/.test(index))?.trim() || undefined;
41
- return {
42
- namespacedImport,
43
- defaultImport
44
- };
45
- }
46
-
47
- /**
48
- * @typedef ErrnoExceptionFields
49
- * @property {number | undefined} [errnode]
50
- * @property {string | undefined} [code]
51
- * @property {string | undefined} [path]
52
- * @property {string | undefined} [syscall]
53
- * @property {string | undefined} [url]
54
- *
55
- * @typedef {Error & ErrnoExceptionFields} ErrnoException
56
- */
57
-
58
-
59
- const own$1 = {}.hasOwnProperty;
60
-
61
- const classRegExp = /^([A-Z][a-z\d]*)+$/;
62
- // Sorted by a rough estimate on most frequently used entries.
63
- const kTypes = new Set([
64
- 'string',
65
- 'function',
66
- 'number',
67
- 'object',
68
- // Accept 'Function' and 'Object' as alternative to the lower cased version.
69
- 'Function',
70
- 'Object',
71
- 'boolean',
72
- 'bigint',
73
- 'symbol'
74
- ]);
75
-
76
- const codes = {};
77
-
78
- /**
79
- * Create a list string in the form like 'A and B' or 'A, B, ..., and Z'.
80
- * We cannot use Intl.ListFormat because it's not available in
81
- * --without-intl builds.
82
- *
83
- * @param {Array<string>} array
84
- * An array of strings.
85
- * @param {string} [type]
86
- * The list type to be inserted before the last element.
87
- * @returns {string}
88
- */
89
- function formatList(array, type = 'and') {
90
- return array.length < 3
91
- ? array.join(` ${type} `)
92
- : `${array.slice(0, -1).join(', ')}, ${type} ${array[array.length - 1]}`
93
- }
94
-
95
- /** @type {Map<string, MessageFunction | string>} */
96
- const messages = new Map();
97
- const nodeInternalPrefix = '__node_internal_';
98
- /** @type {number} */
99
- let userStackTraceLimit;
100
-
101
- codes.ERR_INVALID_ARG_TYPE = createError(
102
- 'ERR_INVALID_ARG_TYPE',
103
- /**
104
- * @param {string} name
105
- * @param {Array<string> | string} expected
106
- * @param {unknown} actual
107
- */
108
- (name, expected, actual) => {
109
- assert(typeof name === 'string', "'name' must be a string");
110
- if (!Array.isArray(expected)) {
111
- expected = [expected];
112
- }
113
-
114
- let message = 'The ';
115
- if (name.endsWith(' argument')) {
116
- // For cases like 'first argument'
117
- message += `${name} `;
118
- } else {
119
- const type = name.includes('.') ? 'property' : 'argument';
120
- message += `"${name}" ${type} `;
121
- }
122
-
123
- message += 'must be ';
124
-
125
- /** @type {Array<string>} */
126
- const types = [];
127
- /** @type {Array<string>} */
128
- const instances = [];
129
- /** @type {Array<string>} */
130
- const other = [];
131
-
132
- for (const value of expected) {
133
- assert(
134
- typeof value === 'string',
135
- 'All expected entries have to be of type string'
136
- );
137
-
138
- if (kTypes.has(value)) {
139
- types.push(value.toLowerCase());
140
- } else if (classRegExp.exec(value) === null) {
141
- assert(
142
- value !== 'object',
143
- 'The value "object" should be written as "Object"'
144
- );
145
- other.push(value);
146
- } else {
147
- instances.push(value);
148
- }
149
- }
150
-
151
- // Special handle `object` in case other instances are allowed to outline
152
- // the differences between each other.
153
- if (instances.length > 0) {
154
- const pos = types.indexOf('object');
155
- if (pos !== -1) {
156
- types.slice(pos, 1);
157
- instances.push('Object');
158
- }
159
- }
160
-
161
- if (types.length > 0) {
162
- message += `${types.length > 1 ? 'one of type' : 'of type'} ${formatList(
163
- types,
164
- 'or'
165
- )}`;
166
- if (instances.length > 0 || other.length > 0) message += ' or ';
167
- }
168
-
169
- if (instances.length > 0) {
170
- message += `an instance of ${formatList(instances, 'or')}`;
171
- if (other.length > 0) message += ' or ';
172
- }
173
-
174
- if (other.length > 0) {
175
- if (other.length > 1) {
176
- message += `one of ${formatList(other, 'or')}`;
177
- } else {
178
- if (other[0].toLowerCase() !== other[0]) message += 'an ';
179
- message += `${other[0]}`;
180
- }
181
- }
182
-
183
- message += `. Received ${determineSpecificType(actual)}`;
184
-
185
- return message
186
- },
187
- TypeError
188
- );
189
-
190
- codes.ERR_INVALID_MODULE_SPECIFIER = createError(
191
- 'ERR_INVALID_MODULE_SPECIFIER',
192
- /**
193
- * @param {string} request
194
- * @param {string} reason
195
- * @param {string} [base]
196
- */
197
- (request, reason, base = undefined) => {
198
- return `Invalid module "${request}" ${reason}${
199
- base ? ` imported from ${base}` : ''
200
- }`
201
- },
202
- TypeError
203
- );
204
-
205
- codes.ERR_INVALID_PACKAGE_CONFIG = createError(
206
- 'ERR_INVALID_PACKAGE_CONFIG',
207
- /**
208
- * @param {string} path
209
- * @param {string} [base]
210
- * @param {string} [message]
211
- */
212
- (path, base, message) => {
213
- return `Invalid package config ${path}${
214
- base ? ` while importing ${base}` : ''
215
- }${message ? `. ${message}` : ''}`
216
- },
217
- Error
218
- );
219
-
220
- codes.ERR_INVALID_PACKAGE_TARGET = createError(
221
- 'ERR_INVALID_PACKAGE_TARGET',
222
- /**
223
- * @param {string} packagePath
224
- * @param {string} key
225
- * @param {unknown} target
226
- * @param {boolean} [isImport=false]
227
- * @param {string} [base]
228
- */
229
- (packagePath, key, target, isImport = false, base = undefined) => {
230
- const relatedError =
231
- typeof target === 'string' &&
232
- !isImport &&
233
- target.length > 0 &&
234
- !target.startsWith('./');
235
- if (key === '.') {
236
- assert(isImport === false);
237
- return (
238
- `Invalid "exports" main target ${JSON.stringify(target)} defined ` +
239
- `in the package config ${packagePath}package.json${
240
- base ? ` imported from ${base}` : ''
241
- }${relatedError ? '; targets must start with "./"' : ''}`
242
- )
243
- }
244
-
245
- return `Invalid "${
246
- isImport ? 'imports' : 'exports'
247
- }" target ${JSON.stringify(
248
- target
249
- )} defined for '${key}' in the package config ${packagePath}package.json${
250
- base ? ` imported from ${base}` : ''
251
- }${relatedError ? '; targets must start with "./"' : ''}`
252
- },
253
- Error
254
- );
255
-
256
- codes.ERR_MODULE_NOT_FOUND = createError(
257
- 'ERR_MODULE_NOT_FOUND',
258
- /**
259
- * @param {string} path
260
- * @param {string} base
261
- * @param {boolean} [exactUrl]
262
- */
263
- (path, base, exactUrl = false) => {
264
- return `Cannot find ${
265
- exactUrl ? 'module' : 'package'
266
- } '${path}' imported from ${base}`
267
- },
268
- Error
269
- );
270
-
271
- codes.ERR_NETWORK_IMPORT_DISALLOWED = createError(
272
- 'ERR_NETWORK_IMPORT_DISALLOWED',
273
- "import of '%s' by %s is not supported: %s",
274
- Error
275
- );
276
-
277
- codes.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError(
278
- 'ERR_PACKAGE_IMPORT_NOT_DEFINED',
279
- /**
280
- * @param {string} specifier
281
- * @param {string} packagePath
282
- * @param {string} base
283
- */
284
- (specifier, packagePath, base) => {
285
- return `Package import specifier "${specifier}" is not defined${
286
- packagePath ? ` in package ${packagePath}package.json` : ''
287
- } imported from ${base}`
288
- },
289
- TypeError
290
- );
291
-
292
- codes.ERR_PACKAGE_PATH_NOT_EXPORTED = createError(
293
- 'ERR_PACKAGE_PATH_NOT_EXPORTED',
294
- /**
295
- * @param {string} packagePath
296
- * @param {string} subpath
297
- * @param {string} [base]
298
- */
299
- (packagePath, subpath, base = undefined) => {
300
- if (subpath === '.')
301
- return `No "exports" main defined in ${packagePath}package.json${
302
- base ? ` imported from ${base}` : ''
303
- }`
304
- return `Package subpath '${subpath}' is not defined by "exports" in ${packagePath}package.json${
305
- base ? ` imported from ${base}` : ''
306
- }`
307
- },
308
- Error
309
- );
310
-
311
- codes.ERR_UNSUPPORTED_DIR_IMPORT = createError(
312
- 'ERR_UNSUPPORTED_DIR_IMPORT',
313
- "Directory import '%s' is not supported " +
314
- 'resolving ES modules imported from %s',
315
- Error
316
- );
317
-
318
- codes.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError(
319
- 'ERR_UNSUPPORTED_RESOLVE_REQUEST',
320
- 'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',
321
- TypeError
322
- );
323
-
324
- codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
325
- 'ERR_UNKNOWN_FILE_EXTENSION',
326
- /**
327
- * @param {string} extension
328
- * @param {string} path
329
- */
330
- (extension, path) => {
331
- return `Unknown file extension "${extension}" for ${path}`
332
- },
333
- TypeError
334
- );
335
-
336
- codes.ERR_INVALID_ARG_VALUE = createError(
337
- 'ERR_INVALID_ARG_VALUE',
338
- /**
339
- * @param {string} name
340
- * @param {unknown} value
341
- * @param {string} [reason='is invalid']
342
- */
343
- (name, value, reason = 'is invalid') => {
344
- let inspected = inspect(value);
345
-
346
- if (inspected.length > 128) {
347
- inspected = `${inspected.slice(0, 128)}...`;
348
- }
349
-
350
- const type = name.includes('.') ? 'property' : 'argument';
351
-
352
- return `The ${type} '${name}' ${reason}. Received ${inspected}`
353
- },
354
- TypeError
355
- // Note: extra classes have been shaken out.
356
- // , RangeError
357
- );
358
-
359
- /**
360
- * Utility function for registering the error codes. Only used here. Exported
361
- * *only* to allow for testing.
362
- * @param {string} sym
363
- * @param {MessageFunction | string} value
364
- * @param {ErrorConstructor} constructor
365
- * @returns {new (...parameters: Array<any>) => Error}
366
- */
367
- function createError(sym, value, constructor) {
368
- // Special case for SystemError that formats the error message differently
369
- // The SystemErrors only have SystemError as their base classes.
370
- messages.set(sym, value);
371
-
372
- return makeNodeErrorWithCode(constructor, sym)
373
- }
374
-
375
- /**
376
- * @param {ErrorConstructor} Base
377
- * @param {string} key
378
- * @returns {ErrorConstructor}
379
- */
380
- function makeNodeErrorWithCode(Base, key) {
381
- // @ts-expect-error It’s a Node error.
382
- return NodeError
383
- /**
384
- * @param {Array<unknown>} parameters
385
- */
386
- function NodeError(...parameters) {
387
- const limit = Error.stackTraceLimit;
388
- if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = 0;
389
- const error = new Base();
390
- // Reset the limit and setting the name property.
391
- if (isErrorStackTraceLimitWritable()) Error.stackTraceLimit = limit;
392
- const message = getMessage(key, parameters, error);
393
- Object.defineProperties(error, {
394
- // Note: no need to implement `kIsNodeError` symbol, would be hard,
395
- // probably.
396
- message: {
397
- value: message,
398
- enumerable: false,
399
- writable: true,
400
- configurable: true
401
- },
402
- toString: {
403
- /** @this {Error} */
404
- value() {
405
- return `${this.name} [${key}]: ${this.message}`
406
- },
407
- enumerable: false,
408
- writable: true,
409
- configurable: true
410
- }
411
- });
412
-
413
- captureLargerStackTrace(error);
414
- // @ts-expect-error It’s a Node error.
415
- error.code = key;
416
- return error
417
- }
418
- }
419
-
420
- /**
421
- * @returns {boolean}
422
- */
423
- function isErrorStackTraceLimitWritable() {
424
- // Do no touch Error.stackTraceLimit as V8 would attempt to install
425
- // it again during deserialization.
426
- try {
427
- if (v8.startupSnapshot.isBuildingSnapshot()) {
428
- return false
429
- }
430
- } catch {}
431
-
432
- const desc = Object.getOwnPropertyDescriptor(Error, 'stackTraceLimit');
433
- if (desc === undefined) {
434
- return Object.isExtensible(Error)
435
- }
436
-
437
- return own$1.call(desc, 'writable') && desc.writable !== undefined
438
- ? desc.writable
439
- : desc.set !== undefined
440
- }
441
-
442
- /**
443
- * This function removes unnecessary frames from Node.js core errors.
444
- * @template {(...parameters: unknown[]) => unknown} T
445
- * @param {T} wrappedFunction
446
- * @returns {T}
447
- */
448
- function hideStackFrames(wrappedFunction) {
449
- // We rename the functions that will be hidden to cut off the stacktrace
450
- // at the outermost one
451
- const hidden = nodeInternalPrefix + wrappedFunction.name;
452
- Object.defineProperty(wrappedFunction, 'name', {value: hidden});
453
- return wrappedFunction
454
- }
455
-
456
- const captureLargerStackTrace = hideStackFrames(
457
- /**
458
- * @param {Error} error
459
- * @returns {Error}
460
- */
461
- // @ts-expect-error: fine
462
- function (error) {
463
- const stackTraceLimitIsWritable = isErrorStackTraceLimitWritable();
464
- if (stackTraceLimitIsWritable) {
465
- userStackTraceLimit = Error.stackTraceLimit;
466
- Error.stackTraceLimit = Number.POSITIVE_INFINITY;
467
- }
468
-
469
- Error.captureStackTrace(error);
470
-
471
- // Reset the limit
472
- if (stackTraceLimitIsWritable) Error.stackTraceLimit = userStackTraceLimit;
473
-
474
- return error
475
- }
476
- );
477
-
478
- /**
479
- * @param {string} key
480
- * @param {Array<unknown>} parameters
481
- * @param {Error} self
482
- * @returns {string}
483
- */
484
- function getMessage(key, parameters, self) {
485
- const message = messages.get(key);
486
- assert(message !== undefined, 'expected `message` to be found');
487
-
488
- if (typeof message === 'function') {
489
- assert(
490
- message.length <= parameters.length, // Default options do not count.
491
- `Code: ${key}; The provided arguments length (${parameters.length}) does not ` +
492
- `match the required ones (${message.length}).`
493
- );
494
- return Reflect.apply(message, self, parameters)
495
- }
496
-
497
- const regex = /%[dfijoOs]/g;
498
- let expectedLength = 0;
499
- while (regex.exec(message) !== null) expectedLength++;
500
- assert(
501
- expectedLength === parameters.length,
502
- `Code: ${key}; The provided arguments length (${parameters.length}) does not ` +
503
- `match the required ones (${expectedLength}).`
504
- );
505
- if (parameters.length === 0) return message
506
-
507
- parameters.unshift(message);
508
- return Reflect.apply(format, null, parameters)
509
- }
510
-
511
- /**
512
- * Determine the specific type of a value for type-mismatch errors.
513
- * @param {unknown} value
514
- * @returns {string}
515
- */
516
- function determineSpecificType(value) {
517
- if (value === null || value === undefined) {
518
- return String(value)
519
- }
520
-
521
- if (typeof value === 'function' && value.name) {
522
- return `function ${value.name}`
523
- }
524
-
525
- if (typeof value === 'object') {
526
- if (value.constructor && value.constructor.name) {
527
- return `an instance of ${value.constructor.name}`
528
- }
529
-
530
- return `${inspect(value, {depth: -1})}`
531
- }
532
-
533
- let inspected = inspect(value, {colors: false});
534
-
535
- if (inspected.length > 28) {
536
- inspected = `${inspected.slice(0, 25)}...`;
537
- }
538
-
539
- return `type ${typeof value} (${inspected})`
540
- }
541
-
542
- // Manually “tree shaken” from:
543
- // <https://github.com/nodejs/node/blob/7c3dce0/lib/internal/modules/package_json_reader.js>
544
- // Last checked on: Apr 29, 2023.
545
- // Removed the native dependency.
546
- // Also: no need to cache, we do that in resolve already.
547
-
548
-
549
- const hasOwnProperty$1 = {}.hasOwnProperty;
550
-
551
- const {ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1} = codes;
552
-
553
- /** @type {Map<string, PackageConfig>} */
554
- const cache = new Map();
555
-
556
- /**
557
- * @param {string} jsonPath
558
- * @param {{specifier: URL | string, base?: URL}} options
559
- * @returns {PackageConfig}
560
- */
561
- function read(jsonPath, {base, specifier}) {
562
- const existing = cache.get(jsonPath);
563
-
564
- if (existing) {
565
- return existing
566
- }
567
-
568
- /** @type {string | undefined} */
569
- let string;
570
-
571
- try {
572
- string = fs.readFileSync(path.toNamespacedPath(jsonPath), 'utf8');
573
- } catch (error) {
574
- const exception = /** @type {ErrnoException} */ (error);
575
-
576
- if (exception.code !== 'ENOENT') {
577
- throw exception
578
- }
579
- }
580
-
581
- /** @type {PackageConfig} */
582
- const result = {
583
- exists: false,
584
- pjsonPath: jsonPath,
585
- main: undefined,
586
- name: undefined,
587
- type: 'none', // Ignore unknown types for forwards compatibility
588
- exports: undefined,
589
- imports: undefined
590
- };
591
-
592
- if (string !== undefined) {
593
- /** @type {Record<string, unknown>} */
594
- let parsed;
595
-
596
- try {
597
- parsed = JSON.parse(string);
598
- } catch (error_) {
599
- const cause = /** @type {ErrnoException} */ (error_);
600
- const error = new ERR_INVALID_PACKAGE_CONFIG$1(
601
- jsonPath,
602
- (base ? `"${specifier}" from ` : '') + fileURLToPath$1(base || specifier),
603
- cause.message
604
- );
605
- error.cause = cause;
606
- throw error
607
- }
608
-
609
- result.exists = true;
610
-
611
- if (
612
- hasOwnProperty$1.call(parsed, 'name') &&
613
- typeof parsed.name === 'string'
614
- ) {
615
- result.name = parsed.name;
616
- }
617
-
618
- if (
619
- hasOwnProperty$1.call(parsed, 'main') &&
620
- typeof parsed.main === 'string'
621
- ) {
622
- result.main = parsed.main;
623
- }
624
-
625
- if (hasOwnProperty$1.call(parsed, 'exports')) {
626
- // @ts-expect-error: assume valid.
627
- result.exports = parsed.exports;
628
- }
629
-
630
- if (hasOwnProperty$1.call(parsed, 'imports')) {
631
- // @ts-expect-error: assume valid.
632
- result.imports = parsed.imports;
633
- }
634
-
635
- // Ignore unknown types for forwards compatibility
636
- if (
637
- hasOwnProperty$1.call(parsed, 'type') &&
638
- (parsed.type === 'commonjs' || parsed.type === 'module')
639
- ) {
640
- result.type = parsed.type;
641
- }
642
- }
643
-
644
- cache.set(jsonPath, result);
645
-
646
- return result
647
- }
648
-
649
- /**
650
- * @param {URL | string} resolved
651
- * @returns {PackageConfig}
652
- */
653
- function getPackageScopeConfig(resolved) {
654
- // Note: in Node, this is now a native module.
655
- let packageJSONUrl = new URL('package.json', resolved);
656
-
657
- while (true) {
658
- const packageJSONPath = packageJSONUrl.pathname;
659
- if (packageJSONPath.endsWith('node_modules/package.json')) {
660
- break
661
- }
662
-
663
- const packageConfig = read(fileURLToPath$1(packageJSONUrl), {
664
- specifier: resolved
665
- });
666
-
667
- if (packageConfig.exists) {
668
- return packageConfig
669
- }
670
-
671
- const lastPackageJSONUrl = packageJSONUrl;
672
- packageJSONUrl = new URL('../package.json', packageJSONUrl);
673
-
674
- // Terminates at root where ../package.json equals ../../package.json
675
- // (can't just check "/package.json" for Windows support).
676
- if (packageJSONUrl.pathname === lastPackageJSONUrl.pathname) {
677
- break
678
- }
679
- }
680
-
681
- const packageJSONPath = fileURLToPath$1(packageJSONUrl);
682
- // ^^ Note: in Node, this is now a native module.
683
-
684
- return {
685
- pjsonPath: packageJSONPath,
686
- exists: false,
687
- type: 'none'
688
- }
689
- }
690
-
691
- /**
692
- * Returns the package type for a given URL.
693
- * @param {URL} url - The URL to get the package type for.
694
- * @returns {PackageType}
695
- */
696
- function getPackageType(url) {
697
- // To do @anonrig: Write a C++ function that returns only "type".
698
- return getPackageScopeConfig(url).type
699
- }
700
-
701
- // Manually “tree shaken” from:
702
- // <https://github.com/nodejs/node/blob/7c3dce0/lib/internal/modules/esm/get_format.js>
703
- // Last checked on: Apr 29, 2023.
704
-
705
-
706
- const {ERR_UNKNOWN_FILE_EXTENSION} = codes;
707
-
708
- const hasOwnProperty = {}.hasOwnProperty;
709
-
710
- /** @type {Record<string, string>} */
711
- const extensionFormatMap = {
712
- // @ts-expect-error: hush.
713
- __proto__: null,
714
- '.cjs': 'commonjs',
715
- '.js': 'module',
716
- '.json': 'json',
717
- '.mjs': 'module'
718
- };
719
-
720
- /**
721
- * @param {string | null} mime
722
- * @returns {string | null}
723
- */
724
- function mimeToFormat(mime) {
725
- if (
726
- mime &&
727
- /\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(mime)
728
- )
729
- return 'module'
730
- if (mime === 'application/json') return 'json'
731
- return null
732
- }
733
-
734
- /**
735
- * @callback ProtocolHandler
736
- * @param {URL} parsed
737
- * @param {{parentURL: string, source?: Buffer}} context
738
- * @param {boolean} ignoreErrors
739
- * @returns {string | null | void}
740
- */
741
-
742
- /**
743
- * @type {Record<string, ProtocolHandler>}
744
- */
745
- const protocolHandlers = {
746
- // @ts-expect-error: hush.
747
- __proto__: null,
748
- 'data:': getDataProtocolModuleFormat,
749
- 'file:': getFileProtocolModuleFormat,
750
- 'http:': getHttpProtocolModuleFormat,
751
- 'https:': getHttpProtocolModuleFormat,
752
- 'node:'() {
753
- return 'builtin'
754
- }
755
- };
756
-
757
- /**
758
- * @param {URL} parsed
759
- */
760
- function getDataProtocolModuleFormat(parsed) {
761
- const {1: mime} = /^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(
762
- parsed.pathname
763
- ) || [null, null, null];
764
- return mimeToFormat(mime)
765
- }
766
-
767
- /**
768
- * Returns the file extension from a URL.
769
- *
770
- * Should give similar result to
771
- * `require('node:path').extname(require('node:url').fileURLToPath(url))`
772
- * when used with a `file:` URL.
773
- *
774
- * @param {URL} url
775
- * @returns {string}
776
- */
777
- function extname(url) {
778
- const pathname = url.pathname;
779
- let index = pathname.length;
780
-
781
- while (index--) {
782
- const code = pathname.codePointAt(index);
783
-
784
- if (code === 47 /* `/` */) {
785
- return ''
786
- }
787
-
788
- if (code === 46 /* `.` */) {
789
- return pathname.codePointAt(index - 1) === 47 /* `/` */
790
- ? ''
791
- : pathname.slice(index)
792
- }
793
- }
794
-
795
- return ''
796
- }
797
-
798
- /**
799
- * @type {ProtocolHandler}
800
- */
801
- function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
802
- const value = extname(url);
803
-
804
- if (value === '.js') {
805
- const packageType = getPackageType(url);
806
-
807
- if (packageType !== 'none') {
808
- return packageType
809
- }
810
-
811
- return 'commonjs'
812
- }
813
-
814
- if (value === '') {
815
- const packageType = getPackageType(url);
816
-
817
- // Legacy behavior
818
- if (packageType === 'none' || packageType === 'commonjs') {
819
- return 'commonjs'
820
- }
821
-
822
- // Note: we don’t implement WASM, so we don’t need
823
- // `getFormatOfExtensionlessFile` from `formats`.
824
- return 'module'
825
- }
826
-
827
- const format = extensionFormatMap[value];
828
- if (format) return format
829
-
830
- // Explicit undefined return indicates load hook should rerun format check
831
- if (ignoreErrors) {
832
- return undefined
833
- }
834
-
835
- const filepath = fileURLToPath$1(url);
836
- throw new ERR_UNKNOWN_FILE_EXTENSION(value, filepath)
837
- }
838
-
839
- function getHttpProtocolModuleFormat() {
840
- // To do: HTTPS imports.
841
- }
842
-
843
- /**
844
- * @param {URL} url
845
- * @param {{parentURL: string}} context
846
- * @returns {string | null}
847
- */
848
- function defaultGetFormatWithoutErrors(url, context) {
849
- const protocol = url.protocol;
850
-
851
- if (!hasOwnProperty.call(protocolHandlers, protocol)) {
852
- return null
853
- }
854
-
855
- return protocolHandlers[protocol](url, context, true) || null
856
- }
857
-
858
- // Manually “tree shaken” from:
859
- // <https://github.com/nodejs/node/blob/81a9a97/lib/internal/modules/esm/resolve.js>
860
- // Last checked on: Apr 29, 2023.
861
-
862
-
863
- const RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];
864
-
865
- const {
866
- ERR_NETWORK_IMPORT_DISALLOWED,
867
- ERR_INVALID_MODULE_SPECIFIER,
868
- ERR_INVALID_PACKAGE_CONFIG,
869
- ERR_INVALID_PACKAGE_TARGET,
870
- ERR_MODULE_NOT_FOUND,
871
- ERR_PACKAGE_IMPORT_NOT_DEFINED,
872
- ERR_PACKAGE_PATH_NOT_EXPORTED,
873
- ERR_UNSUPPORTED_DIR_IMPORT,
874
- ERR_UNSUPPORTED_RESOLVE_REQUEST
875
- } = codes;
876
-
877
- const own = {}.hasOwnProperty;
878
-
879
- const invalidSegmentRegEx =
880
- /(^|\\|\/)((\.|%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;
881
- const deprecatedInvalidSegmentRegEx =
882
- /(^|\\|\/)((\.|%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;
883
- const invalidPackageNameRegEx = /^\.|%|\\/;
884
- const patternRegEx = /\*/g;
885
- const encodedSeparatorRegEx = /%2f|%5c/i;
886
- /** @type {Set<string>} */
887
- const emittedPackageWarnings = new Set();
888
-
889
- const doubleSlashRegEx = /[/\\]{2}/;
890
-
891
- /**
892
- *
893
- * @param {string} target
894
- * @param {string} request
895
- * @param {string} match
896
- * @param {URL} packageJsonUrl
897
- * @param {boolean} internal
898
- * @param {URL} base
899
- * @param {boolean} isTarget
900
- */
901
- function emitInvalidSegmentDeprecation(
902
- target,
903
- request,
904
- match,
905
- packageJsonUrl,
906
- internal,
907
- base,
908
- isTarget
909
- ) {
910
- // @ts-expect-error: apparently it does exist, TS.
911
- if (process$1.noDeprecation) {
912
- return
913
- }
914
-
915
- const pjsonPath = fileURLToPath$1(packageJsonUrl);
916
- const double = doubleSlashRegEx.exec(isTarget ? target : request) !== null;
917
- process$1.emitWarning(
918
- `Use of deprecated ${
919
- double ? 'double slash' : 'leading or trailing slash matching'
920
- } resolving "${target}" for module ` +
921
- `request "${request}" ${
922
- request === match ? '' : `matched to "${match}" `
923
- }in the "${
924
- internal ? 'imports' : 'exports'
925
- }" field module resolution of the package at ${pjsonPath}${
926
- base ? ` imported from ${fileURLToPath$1(base)}` : ''
927
- }.`,
928
- 'DeprecationWarning',
929
- 'DEP0166'
930
- );
931
- }
932
-
933
- /**
934
- * @param {URL} url
935
- * @param {URL} packageJsonUrl
936
- * @param {URL} base
937
- * @param {string} [main]
938
- * @returns {void}
939
- */
940
- function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
941
- // @ts-expect-error: apparently it does exist, TS.
942
- if (process$1.noDeprecation) {
943
- return
944
- }
945
-
946
- const format = defaultGetFormatWithoutErrors(url, {parentURL: base.href});
947
- if (format !== 'module') return
948
- const urlPath = fileURLToPath$1(url.href);
949
- const packagePath = fileURLToPath$1(new URL$1('.', packageJsonUrl));
950
- const basePath = fileURLToPath$1(base);
951
- if (!main) {
952
- process$1.emitWarning(
953
- `No "main" or "exports" field defined in the package.json for ${packagePath} resolving the main entry point "${urlPath.slice(
954
- packagePath.length
955
- )}", imported from ${basePath}.\nDefault "index" lookups for the main are deprecated for ES modules.`,
956
- 'DeprecationWarning',
957
- 'DEP0151'
958
- );
959
- } else if (path.resolve(packagePath, main) !== urlPath) {
960
- process$1.emitWarning(
961
- `Package ${packagePath} has a "main" field set to "${main}", ` +
962
- `excluding the full filename and extension to the resolved file at "${urlPath.slice(
963
- packagePath.length
964
- )}", imported from ${basePath}.\n Automatic extension resolution of the "main" field is ` +
965
- 'deprecated for ES modules.',
966
- 'DeprecationWarning',
967
- 'DEP0151'
968
- );
969
- }
970
- }
971
-
972
- /**
973
- * @param {string} path
974
- * @returns {Stats | undefined}
975
- */
976
- function tryStatSync(path) {
977
- // Note: from Node 15 onwards we can use `throwIfNoEntry: false` instead.
978
- try {
979
- return statSync(path)
980
- } catch {
981
- // Note: in Node code this returns `new Stats`,
982
- // but in Node 22 that’s marked as a deprecated internal API.
983
- // Which, well, we kinda are, but still to prevent that warning,
984
- // just yield `undefined`.
985
- }
986
- }
987
-
988
- /**
989
- * Legacy CommonJS main resolution:
990
- * 1. let M = pkg_url + (json main field)
991
- * 2. TRY(M, M.js, M.json, M.node)
992
- * 3. TRY(M/index.js, M/index.json, M/index.node)
993
- * 4. TRY(pkg_url/index.js, pkg_url/index.json, pkg_url/index.node)
994
- * 5. NOT_FOUND
995
- *
996
- * @param {URL} url
997
- * @returns {boolean}
998
- */
999
- function fileExists(url) {
1000
- const stats = statSync(url, {throwIfNoEntry: false});
1001
- const isFile = stats ? stats.isFile() : undefined;
1002
- return isFile === null || isFile === undefined ? false : isFile
1003
- }
1004
-
1005
- /**
1006
- * @param {URL} packageJsonUrl
1007
- * @param {PackageConfig} packageConfig
1008
- * @param {URL} base
1009
- * @returns {URL}
1010
- */
1011
- function legacyMainResolve(packageJsonUrl, packageConfig, base) {
1012
- /** @type {URL | undefined} */
1013
- let guess;
1014
- if (packageConfig.main !== undefined) {
1015
- guess = new URL$1(packageConfig.main, packageJsonUrl);
1016
- // Note: fs check redundances will be handled by Descriptor cache here.
1017
- if (fileExists(guess)) return guess
1018
-
1019
- const tries = [
1020
- `./${packageConfig.main}.js`,
1021
- `./${packageConfig.main}.json`,
1022
- `./${packageConfig.main}.node`,
1023
- `./${packageConfig.main}/index.js`,
1024
- `./${packageConfig.main}/index.json`,
1025
- `./${packageConfig.main}/index.node`
1026
- ];
1027
- let i = -1;
1028
-
1029
- while (++i < tries.length) {
1030
- guess = new URL$1(tries[i], packageJsonUrl);
1031
- if (fileExists(guess)) break
1032
- guess = undefined;
1033
- }
1034
-
1035
- if (guess) {
1036
- emitLegacyIndexDeprecation(
1037
- guess,
1038
- packageJsonUrl,
1039
- base,
1040
- packageConfig.main
1041
- );
1042
- return guess
1043
- }
1044
- // Fallthrough.
1045
- }
1046
-
1047
- const tries = ['./index.js', './index.json', './index.node'];
1048
- let i = -1;
1049
-
1050
- while (++i < tries.length) {
1051
- guess = new URL$1(tries[i], packageJsonUrl);
1052
- if (fileExists(guess)) break
1053
- guess = undefined;
1054
- }
1055
-
1056
- if (guess) {
1057
- emitLegacyIndexDeprecation(guess, packageJsonUrl, base, packageConfig.main);
1058
- return guess
1059
- }
1060
-
1061
- // Not found.
1062
- throw new ERR_MODULE_NOT_FOUND(
1063
- fileURLToPath$1(new URL$1('.', packageJsonUrl)),
1064
- fileURLToPath$1(base)
1065
- )
1066
- }
1067
-
1068
- /**
1069
- * @param {URL} resolved
1070
- * @param {URL} base
1071
- * @param {boolean} [preserveSymlinks]
1072
- * @returns {URL}
1073
- */
1074
- function finalizeResolution(resolved, base, preserveSymlinks) {
1075
- if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
1076
- throw new ERR_INVALID_MODULE_SPECIFIER(
1077
- resolved.pathname,
1078
- 'must not include encoded "/" or "\\" characters',
1079
- fileURLToPath$1(base)
1080
- )
1081
- }
1082
-
1083
- /** @type {string} */
1084
- let filePath;
1085
-
1086
- try {
1087
- filePath = fileURLToPath$1(resolved);
1088
- } catch (error) {
1089
- const cause = /** @type {ErrnoException} */ (error);
1090
- Object.defineProperty(cause, 'input', {value: String(resolved)});
1091
- Object.defineProperty(cause, 'module', {value: String(base)});
1092
- throw cause
1093
- }
1094
-
1095
- const stats = tryStatSync(
1096
- filePath.endsWith('/') ? filePath.slice(-1) : filePath
1097
- );
1098
-
1099
- if (stats && stats.isDirectory()) {
1100
- const error = new ERR_UNSUPPORTED_DIR_IMPORT(filePath, fileURLToPath$1(base));
1101
- // @ts-expect-error Add this for `import.meta.resolve`.
1102
- error.url = String(resolved);
1103
- throw error
1104
- }
1105
-
1106
- if (!stats || !stats.isFile()) {
1107
- const error = new ERR_MODULE_NOT_FOUND(
1108
- filePath || resolved.pathname,
1109
- base && fileURLToPath$1(base),
1110
- true
1111
- );
1112
- // @ts-expect-error Add this for `import.meta.resolve`.
1113
- error.url = String(resolved);
1114
- throw error
1115
- }
1116
-
1117
- {
1118
- const real = realpathSync(filePath);
1119
- const {search, hash} = resolved;
1120
- resolved = pathToFileURL$1(real + (filePath.endsWith(path.sep) ? '/' : ''));
1121
- resolved.search = search;
1122
- resolved.hash = hash;
1123
- }
1124
-
1125
- return resolved
1126
- }
1127
-
1128
- /**
1129
- * @param {string} specifier
1130
- * @param {URL | undefined} packageJsonUrl
1131
- * @param {URL} base
1132
- * @returns {Error}
1133
- */
1134
- function importNotDefined(specifier, packageJsonUrl, base) {
1135
- return new ERR_PACKAGE_IMPORT_NOT_DEFINED(
1136
- specifier,
1137
- packageJsonUrl && fileURLToPath$1(new URL$1('.', packageJsonUrl)),
1138
- fileURLToPath$1(base)
1139
- )
1140
- }
1141
-
1142
- /**
1143
- * @param {string} subpath
1144
- * @param {URL} packageJsonUrl
1145
- * @param {URL} base
1146
- * @returns {Error}
1147
- */
1148
- function exportsNotFound(subpath, packageJsonUrl, base) {
1149
- return new ERR_PACKAGE_PATH_NOT_EXPORTED(
1150
- fileURLToPath$1(new URL$1('.', packageJsonUrl)),
1151
- subpath,
1152
- base && fileURLToPath$1(base)
1153
- )
1154
- }
1155
-
1156
- /**
1157
- * @param {string} request
1158
- * @param {string} match
1159
- * @param {URL} packageJsonUrl
1160
- * @param {boolean} internal
1161
- * @param {URL} [base]
1162
- * @returns {never}
1163
- */
1164
- function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
1165
- const reason = `request is not a valid match in pattern "${match}" for the "${
1166
- internal ? 'imports' : 'exports'
1167
- }" resolution of ${fileURLToPath$1(packageJsonUrl)}`;
1168
- throw new ERR_INVALID_MODULE_SPECIFIER(
1169
- request,
1170
- reason,
1171
- base && fileURLToPath$1(base)
1172
- )
1173
- }
1174
-
1175
- /**
1176
- * @param {string} subpath
1177
- * @param {unknown} target
1178
- * @param {URL} packageJsonUrl
1179
- * @param {boolean} internal
1180
- * @param {URL} [base]
1181
- * @returns {Error}
1182
- */
1183
- function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
1184
- target =
1185
- typeof target === 'object' && target !== null
1186
- ? JSON.stringify(target, null, '')
1187
- : `${target}`;
1188
-
1189
- return new ERR_INVALID_PACKAGE_TARGET(
1190
- fileURLToPath$1(new URL$1('.', packageJsonUrl)),
1191
- subpath,
1192
- target,
1193
- internal,
1194
- base && fileURLToPath$1(base)
1195
- )
1196
- }
1197
-
1198
- /**
1199
- * @param {string} target
1200
- * @param {string} subpath
1201
- * @param {string} match
1202
- * @param {URL} packageJsonUrl
1203
- * @param {URL} base
1204
- * @param {boolean} pattern
1205
- * @param {boolean} internal
1206
- * @param {boolean} isPathMap
1207
- * @param {Set<string> | undefined} conditions
1208
- * @returns {URL}
1209
- */
1210
- function resolvePackageTargetString(
1211
- target,
1212
- subpath,
1213
- match,
1214
- packageJsonUrl,
1215
- base,
1216
- pattern,
1217
- internal,
1218
- isPathMap,
1219
- conditions
1220
- ) {
1221
- if (subpath !== '' && !pattern && target[target.length - 1] !== '/')
1222
- throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)
1223
-
1224
- if (!target.startsWith('./')) {
1225
- if (internal && !target.startsWith('../') && !target.startsWith('/')) {
1226
- let isURL = false;
1227
-
1228
- try {
1229
- new URL$1(target);
1230
- isURL = true;
1231
- } catch {
1232
- // Continue regardless of error.
1233
- }
1234
-
1235
- if (!isURL) {
1236
- const exportTarget = pattern
1237
- ? RegExpPrototypeSymbolReplace.call(
1238
- patternRegEx,
1239
- target,
1240
- () => subpath
1241
- )
1242
- : target + subpath;
1243
-
1244
- return packageResolve(exportTarget, packageJsonUrl, conditions)
1245
- }
1246
- }
1247
-
1248
- throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)
1249
- }
1250
-
1251
- if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {
1252
- if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
1253
- if (!isPathMap) {
1254
- const request = pattern
1255
- ? match.replace('*', () => subpath)
1256
- : match + subpath;
1257
- const resolvedTarget = pattern
1258
- ? RegExpPrototypeSymbolReplace.call(
1259
- patternRegEx,
1260
- target,
1261
- () => subpath
1262
- )
1263
- : target;
1264
- emitInvalidSegmentDeprecation(
1265
- resolvedTarget,
1266
- request,
1267
- match,
1268
- packageJsonUrl,
1269
- internal,
1270
- base,
1271
- true
1272
- );
1273
- }
1274
- } else {
1275
- throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)
1276
- }
1277
- }
1278
-
1279
- const resolved = new URL$1(target, packageJsonUrl);
1280
- const resolvedPath = resolved.pathname;
1281
- const packagePath = new URL$1('.', packageJsonUrl).pathname;
1282
-
1283
- if (!resolvedPath.startsWith(packagePath))
1284
- throw invalidPackageTarget(match, target, packageJsonUrl, internal, base)
1285
-
1286
- if (subpath === '') return resolved
1287
-
1288
- if (invalidSegmentRegEx.exec(subpath) !== null) {
1289
- const request = pattern
1290
- ? match.replace('*', () => subpath)
1291
- : match + subpath;
1292
- if (deprecatedInvalidSegmentRegEx.exec(subpath) === null) {
1293
- if (!isPathMap) {
1294
- const resolvedTarget = pattern
1295
- ? RegExpPrototypeSymbolReplace.call(
1296
- patternRegEx,
1297
- target,
1298
- () => subpath
1299
- )
1300
- : target;
1301
- emitInvalidSegmentDeprecation(
1302
- resolvedTarget,
1303
- request,
1304
- match,
1305
- packageJsonUrl,
1306
- internal,
1307
- base,
1308
- false
1309
- );
1310
- }
1311
- } else {
1312
- throwInvalidSubpath(request, match, packageJsonUrl, internal, base);
1313
- }
1314
- }
1315
-
1316
- if (pattern) {
1317
- return new URL$1(
1318
- RegExpPrototypeSymbolReplace.call(
1319
- patternRegEx,
1320
- resolved.href,
1321
- () => subpath
1322
- )
1323
- )
1324
- }
1325
-
1326
- return new URL$1(subpath, resolved)
1327
- }
1328
-
1329
- /**
1330
- * @param {string} key
1331
- * @returns {boolean}
1332
- */
1333
- function isArrayIndex(key) {
1334
- const keyNumber = Number(key);
1335
- if (`${keyNumber}` !== key) return false
1336
- return keyNumber >= 0 && keyNumber < 0xff_ff_ff_ff
1337
- }
1338
-
1339
- /**
1340
- * @param {URL} packageJsonUrl
1341
- * @param {unknown} target
1342
- * @param {string} subpath
1343
- * @param {string} packageSubpath
1344
- * @param {URL} base
1345
- * @param {boolean} pattern
1346
- * @param {boolean} internal
1347
- * @param {boolean} isPathMap
1348
- * @param {Set<string> | undefined} conditions
1349
- * @returns {URL | null}
1350
- */
1351
- function resolvePackageTarget(
1352
- packageJsonUrl,
1353
- target,
1354
- subpath,
1355
- packageSubpath,
1356
- base,
1357
- pattern,
1358
- internal,
1359
- isPathMap,
1360
- conditions
1361
- ) {
1362
- if (typeof target === 'string') {
1363
- return resolvePackageTargetString(
1364
- target,
1365
- subpath,
1366
- packageSubpath,
1367
- packageJsonUrl,
1368
- base,
1369
- pattern,
1370
- internal,
1371
- isPathMap,
1372
- conditions
1373
- )
1374
- }
1375
-
1376
- if (Array.isArray(target)) {
1377
- /** @type {Array<unknown>} */
1378
- const targetList = target;
1379
- if (targetList.length === 0) return null
1380
-
1381
- /** @type {ErrnoException | null | undefined} */
1382
- let lastException;
1383
- let i = -1;
1384
-
1385
- while (++i < targetList.length) {
1386
- const targetItem = targetList[i];
1387
- /** @type {URL | null} */
1388
- let resolveResult;
1389
- try {
1390
- resolveResult = resolvePackageTarget(
1391
- packageJsonUrl,
1392
- targetItem,
1393
- subpath,
1394
- packageSubpath,
1395
- base,
1396
- pattern,
1397
- internal,
1398
- isPathMap,
1399
- conditions
1400
- );
1401
- } catch (error) {
1402
- const exception = /** @type {ErrnoException} */ (error);
1403
- lastException = exception;
1404
- if (exception.code === 'ERR_INVALID_PACKAGE_TARGET') continue
1405
- throw error
1406
- }
1407
-
1408
- if (resolveResult === undefined) continue
1409
-
1410
- if (resolveResult === null) {
1411
- lastException = null;
1412
- continue
1413
- }
1414
-
1415
- return resolveResult
1416
- }
1417
-
1418
- if (lastException === undefined || lastException === null) {
1419
- return null
1420
- }
1421
-
1422
- throw lastException
1423
- }
1424
-
1425
- if (typeof target === 'object' && target !== null) {
1426
- const keys = Object.getOwnPropertyNames(target);
1427
- let i = -1;
1428
-
1429
- while (++i < keys.length) {
1430
- const key = keys[i];
1431
- if (isArrayIndex(key)) {
1432
- throw new ERR_INVALID_PACKAGE_CONFIG(
1433
- fileURLToPath$1(packageJsonUrl),
1434
- base,
1435
- '"exports" cannot contain numeric property keys.'
1436
- )
1437
- }
1438
- }
1439
-
1440
- i = -1;
1441
-
1442
- while (++i < keys.length) {
1443
- const key = keys[i];
1444
- if (key === 'default' || (conditions && conditions.has(key))) {
1445
- // @ts-expect-error: indexable.
1446
- const conditionalTarget = /** @type {unknown} */ (target[key]);
1447
- const resolveResult = resolvePackageTarget(
1448
- packageJsonUrl,
1449
- conditionalTarget,
1450
- subpath,
1451
- packageSubpath,
1452
- base,
1453
- pattern,
1454
- internal,
1455
- isPathMap,
1456
- conditions
1457
- );
1458
- if (resolveResult === undefined) continue
1459
- return resolveResult
1460
- }
1461
- }
1462
-
1463
- return null
1464
- }
1465
-
1466
- if (target === null) {
1467
- return null
1468
- }
1469
-
1470
- throw invalidPackageTarget(
1471
- packageSubpath,
1472
- target,
1473
- packageJsonUrl,
1474
- internal,
1475
- base
1476
- )
1477
- }
1478
-
1479
- /**
1480
- * @param {unknown} exports
1481
- * @param {URL} packageJsonUrl
1482
- * @param {URL} base
1483
- * @returns {boolean}
1484
- */
1485
- function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
1486
- if (typeof exports === 'string' || Array.isArray(exports)) return true
1487
- if (typeof exports !== 'object' || exports === null) return false
1488
-
1489
- const keys = Object.getOwnPropertyNames(exports);
1490
- let isConditionalSugar = false;
1491
- let i = 0;
1492
- let keyIndex = -1;
1493
- while (++keyIndex < keys.length) {
1494
- const key = keys[keyIndex];
1495
- const currentIsConditionalSugar = key === '' || key[0] !== '.';
1496
- if (i++ === 0) {
1497
- isConditionalSugar = currentIsConditionalSugar;
1498
- } else if (isConditionalSugar !== currentIsConditionalSugar) {
1499
- throw new ERR_INVALID_PACKAGE_CONFIG(
1500
- fileURLToPath$1(packageJsonUrl),
1501
- base,
1502
- '"exports" cannot contain some keys starting with \'.\' and some not.' +
1503
- ' The exports object must either be an object of package subpath keys' +
1504
- ' or an object of main entry condition name keys only.'
1505
- )
1506
- }
1507
- }
1508
-
1509
- return isConditionalSugar
1510
- }
1511
-
1512
- /**
1513
- * @param {string} match
1514
- * @param {URL} pjsonUrl
1515
- * @param {URL} base
1516
- */
1517
- function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
1518
- // @ts-expect-error: apparently it does exist, TS.
1519
- if (process$1.noDeprecation) {
1520
- return
1521
- }
1522
-
1523
- const pjsonPath = fileURLToPath$1(pjsonUrl);
1524
- if (emittedPackageWarnings.has(pjsonPath + '|' + match)) return
1525
- emittedPackageWarnings.add(pjsonPath + '|' + match);
1526
- process$1.emitWarning(
1527
- `Use of deprecated trailing slash pattern mapping "${match}" in the ` +
1528
- `"exports" field module resolution of the package at ${pjsonPath}${
1529
- base ? ` imported from ${fileURLToPath$1(base)}` : ''
1530
- }. Mapping specifiers ending in "/" is no longer supported.`,
1531
- 'DeprecationWarning',
1532
- 'DEP0155'
1533
- );
1534
- }
1535
-
1536
- /**
1537
- * @param {URL} packageJsonUrl
1538
- * @param {string} packageSubpath
1539
- * @param {Record<string, unknown>} packageConfig
1540
- * @param {URL} base
1541
- * @param {Set<string> | undefined} conditions
1542
- * @returns {URL}
1543
- */
1544
- function packageExportsResolve(
1545
- packageJsonUrl,
1546
- packageSubpath,
1547
- packageConfig,
1548
- base,
1549
- conditions
1550
- ) {
1551
- let exports = packageConfig.exports;
1552
-
1553
- if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) {
1554
- exports = {'.': exports};
1555
- }
1556
-
1557
- if (
1558
- own.call(exports, packageSubpath) &&
1559
- !packageSubpath.includes('*') &&
1560
- !packageSubpath.endsWith('/')
1561
- ) {
1562
- // @ts-expect-error: indexable.
1563
- const target = exports[packageSubpath];
1564
- const resolveResult = resolvePackageTarget(
1565
- packageJsonUrl,
1566
- target,
1567
- '',
1568
- packageSubpath,
1569
- base,
1570
- false,
1571
- false,
1572
- false,
1573
- conditions
1574
- );
1575
- if (resolveResult === null || resolveResult === undefined) {
1576
- throw exportsNotFound(packageSubpath, packageJsonUrl, base)
1577
- }
1578
-
1579
- return resolveResult
1580
- }
1581
-
1582
- let bestMatch = '';
1583
- let bestMatchSubpath = '';
1584
- const keys = Object.getOwnPropertyNames(exports);
1585
- let i = -1;
1586
-
1587
- while (++i < keys.length) {
1588
- const key = keys[i];
1589
- const patternIndex = key.indexOf('*');
1590
-
1591
- if (
1592
- patternIndex !== -1 &&
1593
- packageSubpath.startsWith(key.slice(0, patternIndex))
1594
- ) {
1595
- // When this reaches EOL, this can throw at the top of the whole function:
1596
- //
1597
- // if (StringPrototypeEndsWith(packageSubpath, '/'))
1598
- // throwInvalidSubpath(packageSubpath)
1599
- //
1600
- // To match "imports" and the spec.
1601
- if (packageSubpath.endsWith('/')) {
1602
- emitTrailingSlashPatternDeprecation(
1603
- packageSubpath,
1604
- packageJsonUrl,
1605
- base
1606
- );
1607
- }
1608
-
1609
- const patternTrailer = key.slice(patternIndex + 1);
1610
-
1611
- if (
1612
- packageSubpath.length >= key.length &&
1613
- packageSubpath.endsWith(patternTrailer) &&
1614
- patternKeyCompare(bestMatch, key) === 1 &&
1615
- key.lastIndexOf('*') === patternIndex
1616
- ) {
1617
- bestMatch = key;
1618
- bestMatchSubpath = packageSubpath.slice(
1619
- patternIndex,
1620
- packageSubpath.length - patternTrailer.length
1621
- );
1622
- }
1623
- }
1624
- }
1625
-
1626
- if (bestMatch) {
1627
- // @ts-expect-error: indexable.
1628
- const target = /** @type {unknown} */ (exports[bestMatch]);
1629
- const resolveResult = resolvePackageTarget(
1630
- packageJsonUrl,
1631
- target,
1632
- bestMatchSubpath,
1633
- bestMatch,
1634
- base,
1635
- true,
1636
- false,
1637
- packageSubpath.endsWith('/'),
1638
- conditions
1639
- );
1640
-
1641
- if (resolveResult === null || resolveResult === undefined) {
1642
- throw exportsNotFound(packageSubpath, packageJsonUrl, base)
1643
- }
1644
-
1645
- return resolveResult
1646
- }
1647
-
1648
- throw exportsNotFound(packageSubpath, packageJsonUrl, base)
1649
- }
1650
-
1651
- /**
1652
- * @param {string} a
1653
- * @param {string} b
1654
- */
1655
- function patternKeyCompare(a, b) {
1656
- const aPatternIndex = a.indexOf('*');
1657
- const bPatternIndex = b.indexOf('*');
1658
- const baseLengthA = aPatternIndex === -1 ? a.length : aPatternIndex + 1;
1659
- const baseLengthB = bPatternIndex === -1 ? b.length : bPatternIndex + 1;
1660
- if (baseLengthA > baseLengthB) return -1
1661
- if (baseLengthB > baseLengthA) return 1
1662
- if (aPatternIndex === -1) return 1
1663
- if (bPatternIndex === -1) return -1
1664
- if (a.length > b.length) return -1
1665
- if (b.length > a.length) return 1
1666
- return 0
1667
- }
1668
-
1669
- /**
1670
- * @param {string} name
1671
- * @param {URL} base
1672
- * @param {Set<string>} [conditions]
1673
- * @returns {URL}
1674
- */
1675
- function packageImportsResolve(name, base, conditions) {
1676
- if (name === '#' || name.startsWith('#/') || name.endsWith('/')) {
1677
- const reason = 'is not a valid internal imports specifier name';
1678
- throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, fileURLToPath$1(base))
1679
- }
1680
-
1681
- /** @type {URL | undefined} */
1682
- let packageJsonUrl;
1683
-
1684
- const packageConfig = getPackageScopeConfig(base);
1685
-
1686
- if (packageConfig.exists) {
1687
- packageJsonUrl = pathToFileURL$1(packageConfig.pjsonPath);
1688
- const imports = packageConfig.imports;
1689
- if (imports) {
1690
- if (own.call(imports, name) && !name.includes('*')) {
1691
- const resolveResult = resolvePackageTarget(
1692
- packageJsonUrl,
1693
- imports[name],
1694
- '',
1695
- name,
1696
- base,
1697
- false,
1698
- true,
1699
- false,
1700
- conditions
1701
- );
1702
- if (resolveResult !== null && resolveResult !== undefined) {
1703
- return resolveResult
1704
- }
1705
- } else {
1706
- let bestMatch = '';
1707
- let bestMatchSubpath = '';
1708
- const keys = Object.getOwnPropertyNames(imports);
1709
- let i = -1;
1710
-
1711
- while (++i < keys.length) {
1712
- const key = keys[i];
1713
- const patternIndex = key.indexOf('*');
1714
-
1715
- if (patternIndex !== -1 && name.startsWith(key.slice(0, -1))) {
1716
- const patternTrailer = key.slice(patternIndex + 1);
1717
- if (
1718
- name.length >= key.length &&
1719
- name.endsWith(patternTrailer) &&
1720
- patternKeyCompare(bestMatch, key) === 1 &&
1721
- key.lastIndexOf('*') === patternIndex
1722
- ) {
1723
- bestMatch = key;
1724
- bestMatchSubpath = name.slice(
1725
- patternIndex,
1726
- name.length - patternTrailer.length
1727
- );
1728
- }
1729
- }
1730
- }
1731
-
1732
- if (bestMatch) {
1733
- const target = imports[bestMatch];
1734
- const resolveResult = resolvePackageTarget(
1735
- packageJsonUrl,
1736
- target,
1737
- bestMatchSubpath,
1738
- bestMatch,
1739
- base,
1740
- true,
1741
- true,
1742
- false,
1743
- conditions
1744
- );
1745
-
1746
- if (resolveResult !== null && resolveResult !== undefined) {
1747
- return resolveResult
1748
- }
1749
- }
1750
- }
1751
- }
1752
- }
1753
-
1754
- throw importNotDefined(name, packageJsonUrl, base)
1755
- }
1756
-
1757
- /**
1758
- * @param {string} specifier
1759
- * @param {URL} base
1760
- */
1761
- function parsePackageName(specifier, base) {
1762
- let separatorIndex = specifier.indexOf('/');
1763
- let validPackageName = true;
1764
- let isScoped = false;
1765
- if (specifier[0] === '@') {
1766
- isScoped = true;
1767
- if (separatorIndex === -1 || specifier.length === 0) {
1768
- validPackageName = false;
1769
- } else {
1770
- separatorIndex = specifier.indexOf('/', separatorIndex + 1);
1771
- }
1772
- }
1773
-
1774
- const packageName =
1775
- separatorIndex === -1 ? specifier : specifier.slice(0, separatorIndex);
1776
-
1777
- // Package name cannot have leading . and cannot have percent-encoding or
1778
- // \\ separators.
1779
- if (invalidPackageNameRegEx.exec(packageName) !== null) {
1780
- validPackageName = false;
1781
- }
1782
-
1783
- if (!validPackageName) {
1784
- throw new ERR_INVALID_MODULE_SPECIFIER(
1785
- specifier,
1786
- 'is not a valid package name',
1787
- fileURLToPath$1(base)
1788
- )
1789
- }
1790
-
1791
- const packageSubpath =
1792
- '.' + (separatorIndex === -1 ? '' : specifier.slice(separatorIndex));
1793
-
1794
- return {packageName, packageSubpath, isScoped}
1795
- }
1796
-
1797
- /**
1798
- * @param {string} specifier
1799
- * @param {URL} base
1800
- * @param {Set<string> | undefined} conditions
1801
- * @returns {URL}
1802
- */
1803
- function packageResolve(specifier, base, conditions) {
1804
- if (builtinModules.includes(specifier)) {
1805
- return new URL$1('node:' + specifier)
1806
- }
1807
-
1808
- const {packageName, packageSubpath, isScoped} = parsePackageName(
1809
- specifier,
1810
- base
1811
- );
1812
-
1813
- // ResolveSelf
1814
- const packageConfig = getPackageScopeConfig(base);
1815
-
1816
- // Can’t test.
1817
- /* c8 ignore next 16 */
1818
- if (packageConfig.exists) {
1819
- const packageJsonUrl = pathToFileURL$1(packageConfig.pjsonPath);
1820
- if (
1821
- packageConfig.name === packageName &&
1822
- packageConfig.exports !== undefined &&
1823
- packageConfig.exports !== null
1824
- ) {
1825
- return packageExportsResolve(
1826
- packageJsonUrl,
1827
- packageSubpath,
1828
- packageConfig,
1829
- base,
1830
- conditions
1831
- )
1832
- }
1833
- }
1834
-
1835
- let packageJsonUrl = new URL$1(
1836
- './node_modules/' + packageName + '/package.json',
1837
- base
1838
- );
1839
- let packageJsonPath = fileURLToPath$1(packageJsonUrl);
1840
- /** @type {string} */
1841
- let lastPath;
1842
- do {
1843
- const stat = tryStatSync(packageJsonPath.slice(0, -13));
1844
- if (!stat || !stat.isDirectory()) {
1845
- lastPath = packageJsonPath;
1846
- packageJsonUrl = new URL$1(
1847
- (isScoped ? '../../../../node_modules/' : '../../../node_modules/') +
1848
- packageName +
1849
- '/package.json',
1850
- packageJsonUrl
1851
- );
1852
- packageJsonPath = fileURLToPath$1(packageJsonUrl);
1853
- continue
1854
- }
1855
-
1856
- // Package match.
1857
- const packageConfig = read(packageJsonPath, {base, specifier});
1858
- if (packageConfig.exports !== undefined && packageConfig.exports !== null) {
1859
- return packageExportsResolve(
1860
- packageJsonUrl,
1861
- packageSubpath,
1862
- packageConfig,
1863
- base,
1864
- conditions
1865
- )
1866
- }
1867
-
1868
- if (packageSubpath === '.') {
1869
- return legacyMainResolve(packageJsonUrl, packageConfig, base)
1870
- }
1871
-
1872
- return new URL$1(packageSubpath, packageJsonUrl)
1873
- // Cross-platform root check.
1874
- } while (packageJsonPath.length !== lastPath.length)
1875
-
1876
- throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath$1(base), false)
1877
- }
1878
-
1879
- /**
1880
- * @param {string} specifier
1881
- * @returns {boolean}
1882
- */
1883
- function isRelativeSpecifier(specifier) {
1884
- if (specifier[0] === '.') {
1885
- if (specifier.length === 1 || specifier[1] === '/') return true
1886
- if (
1887
- specifier[1] === '.' &&
1888
- (specifier.length === 2 || specifier[2] === '/')
1889
- ) {
1890
- return true
1891
- }
1892
- }
1893
-
1894
- return false
1895
- }
1896
-
1897
- /**
1898
- * @param {string} specifier
1899
- * @returns {boolean}
1900
- */
1901
- function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
1902
- if (specifier === '') return false
1903
- if (specifier[0] === '/') return true
1904
- return isRelativeSpecifier(specifier)
1905
- }
1906
-
1907
- /**
1908
- * The “Resolver Algorithm Specification” as detailed in the Node docs (which is
1909
- * sync and slightly lower-level than `resolve`).
1910
- *
1911
- * @param {string} specifier
1912
- * `/example.js`, `./example.js`, `../example.js`, `some-package`, `fs`, etc.
1913
- * @param {URL} base
1914
- * Full URL (to a file) that `specifier` is resolved relative from.
1915
- * @param {Set<string>} [conditions]
1916
- * Conditions.
1917
- * @param {boolean} [preserveSymlinks]
1918
- * Keep symlinks instead of resolving them.
1919
- * @returns {URL}
1920
- * A URL object to the found thing.
1921
- */
1922
- function moduleResolve(specifier, base, conditions, preserveSymlinks) {
1923
- // Note: The Node code supports `base` as a string (in this internal API) too,
1924
- // we don’t.
1925
- const protocol = base.protocol;
1926
- const isData = protocol === 'data:';
1927
- const isRemote = isData || protocol === 'http:' || protocol === 'https:';
1928
- // Order swapped from spec for minor perf gain.
1929
- // Ok since relative URLs cannot parse as URLs.
1930
- /** @type {URL | undefined} */
1931
- let resolved;
1932
-
1933
- if (shouldBeTreatedAsRelativeOrAbsolutePath(specifier)) {
1934
- try {
1935
- resolved = new URL$1(specifier, base);
1936
- } catch (error_) {
1937
- const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
1938
- error.cause = error_;
1939
- throw error
1940
- }
1941
- } else if (protocol === 'file:' && specifier[0] === '#') {
1942
- resolved = packageImportsResolve(specifier, base, conditions);
1943
- } else {
1944
- try {
1945
- resolved = new URL$1(specifier);
1946
- } catch (error_) {
1947
- // Note: actual code uses `canBeRequiredWithoutScheme`.
1948
- if (isRemote && !builtinModules.includes(specifier)) {
1949
- const error = new ERR_UNSUPPORTED_RESOLVE_REQUEST(specifier, base);
1950
- error.cause = error_;
1951
- throw error
1952
- }
1953
-
1954
- resolved = packageResolve(specifier, base, conditions);
1955
- }
1956
- }
1957
-
1958
- assert(resolved !== undefined, 'expected to be defined');
1959
-
1960
- if (resolved.protocol !== 'file:') {
1961
- return resolved
1962
- }
1963
-
1964
- return finalizeResolution(resolved, base)
1965
- }
1966
-
1967
- function fileURLToPath(id) {
1968
- if (typeof id === "string" && !id.startsWith("file://")) {
1969
- return normalizeSlash(id);
1970
- }
1971
- return normalizeSlash(fileURLToPath$1(id));
1972
- }
1973
- function pathToFileURL(id) {
1974
- return pathToFileURL$1(fileURLToPath(id)).toString();
1975
- }
1976
- const INVALID_CHAR_RE = /[\u0000-\u001F"#$&*+,/:;<=>?@[\]^`{|}\u007F]+/g;
1977
- function sanitizeURIComponent(name = "", replacement = "_") {
1978
- return name.replace(INVALID_CHAR_RE, replacement).replace(/%../g, replacement);
1979
- }
1980
- function sanitizeFilePath(filePath = "") {
1981
- return filePath.replace(/\?.*$/, "").split(/[/\\]/g).map((p) => sanitizeURIComponent(p)).join("/").replace(/^([A-Za-z])_\//, "$1:/");
1982
- }
1983
- function normalizeid(id) {
1984
- if (typeof id !== "string") {
1985
- id = id.toString();
1986
- }
1987
- if (/(node|data|http|https|file):/.test(id)) {
1988
- return id;
1989
- }
1990
- if (BUILTIN_MODULES.has(id)) {
1991
- return "node:" + id;
1992
- }
1993
- return "file://" + encodeURI(normalizeSlash(id));
1994
- }
1995
- async function loadURL(url) {
1996
- const code = await promises.readFile(fileURLToPath(url), "utf8");
1997
- return code;
1998
- }
1999
- function toDataURL(code) {
2000
- const base64 = Buffer.from(code).toString("base64");
2001
- return `data:text/javascript;base64,${base64}`;
2002
- }
2003
- function isNodeBuiltin(id = "") {
2004
- id = id.replace(/^node:/, "").split("/")[0];
2005
- return BUILTIN_MODULES.has(id);
2006
- }
2007
- const ProtocolRegex = /^(?<proto>.{2,}?):.+$/;
2008
- function getProtocol(id) {
2009
- const proto = id.match(ProtocolRegex);
2010
- return proto ? proto.groups?.proto : undefined;
2011
- }
2012
-
2013
- const DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]);
2014
- const DEFAULT_EXTENSIONS = [".mjs", ".cjs", ".js", ".json"];
2015
- const NOT_FOUND_ERRORS = /* @__PURE__ */ new Set([
2016
- "ERR_MODULE_NOT_FOUND",
2017
- "ERR_UNSUPPORTED_DIR_IMPORT",
2018
- "MODULE_NOT_FOUND",
2019
- "ERR_PACKAGE_PATH_NOT_EXPORTED"
2020
- ]);
2021
- function _tryModuleResolve(id, url, conditions) {
2022
- try {
2023
- return moduleResolve(id, url, conditions);
2024
- } catch (error) {
2025
- if (!NOT_FOUND_ERRORS.has(error?.code)) {
2026
- throw error;
2027
- }
2028
- }
2029
- }
2030
- function _resolve(id, options = {}) {
2031
- if (typeof id !== "string") {
2032
- if (id instanceof URL) {
2033
- id = fileURLToPath(id);
2034
- } else {
2035
- throw new TypeError("input must be a `string` or `URL`");
2036
- }
2037
- }
2038
- if (/(node|data|http|https):/.test(id)) {
2039
- return id;
2040
- }
2041
- if (BUILTIN_MODULES.has(id)) {
2042
- return "node:" + id;
2043
- }
2044
- if (id.startsWith("file://")) {
2045
- id = fileURLToPath(id);
2046
- }
2047
- if (isAbsolute(id)) {
2048
- try {
2049
- const stat = statSync(id);
2050
- if (stat.isFile()) {
2051
- return pathToFileURL(id);
2052
- }
2053
- } catch (error) {
2054
- if (error?.code !== "ENOENT") {
2055
- throw error;
2056
- }
2057
- }
2058
- }
2059
- const conditionsSet = options.conditions ? new Set(options.conditions) : DEFAULT_CONDITIONS_SET;
2060
- const _urls = (Array.isArray(options.url) ? options.url : [options.url]).filter(Boolean).map((url) => new URL(normalizeid(url.toString())));
2061
- if (_urls.length === 0) {
2062
- _urls.push(new URL(pathToFileURL(process.cwd())));
2063
- }
2064
- const urls = [..._urls];
2065
- for (const url of _urls) {
2066
- if (url.protocol === "file:") {
2067
- urls.push(
2068
- new URL("./", url),
2069
- // If url is directory
2070
- new URL(joinURL(url.pathname, "_index.js"), url),
2071
- // TODO: Remove in next major version?
2072
- new URL("node_modules", url)
2073
- );
2074
- }
2075
- }
2076
- let resolved;
2077
- for (const url of urls) {
2078
- resolved = _tryModuleResolve(id, url, conditionsSet);
2079
- if (resolved) {
2080
- break;
2081
- }
2082
- for (const prefix of ["", "/index"]) {
2083
- for (const extension of options.extensions || DEFAULT_EXTENSIONS) {
2084
- resolved = _tryModuleResolve(
2085
- joinURL(id, prefix) + extension,
2086
- url,
2087
- conditionsSet
2088
- );
2089
- if (resolved) {
2090
- break;
2091
- }
2092
- }
2093
- if (resolved) {
2094
- break;
2095
- }
2096
- }
2097
- if (resolved) {
2098
- break;
2099
- }
2100
- }
2101
- if (!resolved) {
2102
- const error = new Error(
2103
- `Cannot find module ${id} imported from ${urls.join(", ")}`
2104
- );
2105
- error.code = "ERR_MODULE_NOT_FOUND";
2106
- throw error;
2107
- }
2108
- return pathToFileURL(resolved);
2109
- }
2110
- function resolveSync(id, options) {
2111
- return _resolve(id, options);
2112
- }
2113
- function resolve(id, options) {
2114
- try {
2115
- return Promise.resolve(resolveSync(id, options));
2116
- } catch (error) {
2117
- return Promise.reject(error);
2118
- }
2119
- }
2120
- function resolvePathSync(id, options) {
2121
- return fileURLToPath(resolveSync(id, options));
2122
- }
2123
- function resolvePath(id, options) {
2124
- try {
2125
- return Promise.resolve(resolvePathSync(id, options));
2126
- } catch (error) {
2127
- return Promise.reject(error);
2128
- }
2129
- }
2130
- function createResolve(defaults) {
2131
- return (id, url) => {
2132
- return resolve(id, { url, ...defaults });
2133
- };
2134
- }
2135
- const NODE_MODULES_RE = /^(.+\/node_modules\/)([^/@]+|@[^/]+\/[^/]+)(\/?.*?)?$/;
2136
- function parseNodeModulePath(path) {
2137
- if (!path) {
2138
- return {};
2139
- }
2140
- path = normalize(fileURLToPath(path));
2141
- const match = NODE_MODULES_RE.exec(path);
2142
- if (!match) {
2143
- return {};
2144
- }
2145
- const [, dir, name, subpath] = match;
2146
- return {
2147
- dir,
2148
- name,
2149
- subpath: subpath ? `.${subpath}` : undefined
2150
- };
2151
- }
2152
- async function lookupNodeModuleSubpath(path) {
2153
- path = normalize(fileURLToPath(path));
2154
- const { name, subpath } = parseNodeModulePath(path);
2155
- if (!name || !subpath) {
2156
- return subpath;
2157
- }
2158
- const { exports } = await readPackageJSON(path).catch(() => {
2159
- }) || {};
2160
- if (exports) {
2161
- const resolvedSubpath = _findSubpath(subpath, exports);
2162
- if (resolvedSubpath) {
2163
- return resolvedSubpath;
2164
- }
2165
- }
2166
- return subpath;
2167
- }
2168
- function _findSubpath(subpath, exports) {
2169
- if (typeof exports === "string") {
2170
- exports = { ".": exports };
2171
- }
2172
- if (!subpath.startsWith(".")) {
2173
- subpath = subpath.startsWith("/") ? `.${subpath}` : `./${subpath}`;
2174
- }
2175
- if (subpath in (exports || {})) {
2176
- return subpath;
2177
- }
2178
- return _flattenExports(exports).find((p) => p.fsPath === subpath)?.subpath;
2179
- }
2180
- function _flattenExports(exports = {}, parentSubpath = "./") {
2181
- return Object.entries(exports).flatMap(([key, value]) => {
2182
- const [subpath, condition] = key.startsWith(".") ? [key.slice(1), undefined] : ["", key];
2183
- const _subPath = joinURL(parentSubpath, subpath);
2184
- if (typeof value === "string") {
2185
- return [{ subpath: _subPath, fsPath: value, condition }];
2186
- } else {
2187
- return _flattenExports(value, _subPath);
2188
- }
2189
- });
2190
- }
2191
-
2192
- const ESM_STATIC_IMPORT_RE = /(?<=\s|^|;|\})import\s*([\s"']*(?<imports>[\p{L}\p{M}\w\t\n\r $*,/{}@.]+)from\s*)?["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gmu;
2193
- const DYNAMIC_IMPORT_RE = /import\s*\((?<expression>(?:[^()]+|\((?:[^()]+|\([^()]*\))*\))*)\)/gm;
2194
- const IMPORT_NAMED_TYPE_RE = /(?<=\s|^|;|})import\s*type\s+([\s"']*(?<imports>[\w\t\n\r $*,/{}]+)from\s*)?["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][\s;]*/gm;
2195
- const EXPORT_DECAL_RE = /\bexport\s+(?<declaration>(async function\s*\*?|function\s*\*?|let|const enum|const|enum|var|class))\s+\*?(?<name>[\w$]+)(?<extraNames>.*,\s*[\s\w:[\]{}]*[\w$\]}]+)*/g;
2196
- const EXPORT_DECAL_TYPE_RE = /\bexport\s+(?<declaration>(interface|type|declare (async function|function|let|const enum|const|enum|var|class)))\s+(?<name>[\w$]+)/g;
2197
- const EXPORT_NAMED_RE = /\bexport\s*{(?<exports>[^}]+?)[\s,]*}(\s*from\s*["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][^\n;]*)?/g;
2198
- const EXPORT_NAMED_TYPE_RE = /\bexport\s+type\s*{(?<exports>[^}]+?)[\s,]*}(\s*from\s*["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][^\n;]*)?/g;
2199
- const EXPORT_NAMED_DESTRUCT = /\bexport\s+(let|var|const)\s+(?:{(?<exports1>[^}]+?)[\s,]*}|\[(?<exports2>[^\]]+?)[\s,]*])\s+=/gm;
2200
- const EXPORT_STAR_RE = /\bexport\s*(\*)(\s*as\s+(?<name>[\w$]+)\s+)?\s*(\s*from\s*["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][^\n;]*)?/g;
2201
- const EXPORT_DEFAULT_RE = /\bexport\s+default\s+(async function|function|class|true|false|\W|\d)|\bexport\s+default\s+(?<defaultName>.*)/g;
2202
- const TYPE_RE = /^\s*?type\s/;
2203
- function findStaticImports(code) {
2204
- return _filterStatement(
2205
- _tryGetLocations(code, "import"),
2206
- matchAll(ESM_STATIC_IMPORT_RE, code, { type: "static" })
2207
- );
2208
- }
2209
- function findDynamicImports(code) {
2210
- return _filterStatement(
2211
- _tryGetLocations(code, "import"),
2212
- matchAll(DYNAMIC_IMPORT_RE, code, { type: "dynamic" })
2213
- );
2214
- }
2215
- function findTypeImports(code) {
2216
- return [
2217
- ...matchAll(IMPORT_NAMED_TYPE_RE, code, { type: "type" }),
2218
- ...matchAll(ESM_STATIC_IMPORT_RE, code, { type: "static" }).filter(
2219
- (match) => /[^A-Za-z]type\s/.test(match.imports)
2220
- )
2221
- ];
2222
- }
2223
- function parseStaticImport(matched) {
2224
- const cleanedImports = clearImports(matched.imports);
2225
- const namedImports = {};
2226
- const _matches = cleanedImports.match(/{([^}]*)}/)?.[1]?.split(",") || [];
2227
- for (const namedImport of _matches) {
2228
- const _match = namedImport.match(/^\s*(\S*) as (\S*)\s*$/);
2229
- const source = _match?.[1] || namedImport.trim();
2230
- const importName = _match?.[2] || source;
2231
- if (source && !TYPE_RE.test(source)) {
2232
- namedImports[source] = importName;
2233
- }
2234
- }
2235
- const { namespacedImport, defaultImport } = getImportNames(cleanedImports);
2236
- return {
2237
- ...matched,
2238
- defaultImport,
2239
- namespacedImport,
2240
- namedImports
2241
- };
2242
- }
2243
- function parseTypeImport(matched) {
2244
- if (matched.type === "type") {
2245
- return parseStaticImport(matched);
2246
- }
2247
- const cleanedImports = clearImports(matched.imports);
2248
- const namedImports = {};
2249
- const _matches = cleanedImports.match(/{([^}]*)}/)?.[1]?.split(",") || [];
2250
- for (const namedImport of _matches) {
2251
- const _match = /\s+as\s+/.test(namedImport) ? namedImport.match(/^\s*type\s+(\S*) as (\S*)\s*$/) : namedImport.match(/^\s*type\s+(\S*)\s*$/);
2252
- const source = _match?.[1] || namedImport.trim();
2253
- const importName = _match?.[2] || source;
2254
- if (source && TYPE_RE.test(namedImport)) {
2255
- namedImports[source] = importName;
2256
- }
2257
- }
2258
- const { namespacedImport, defaultImport } = getImportNames(cleanedImports);
2259
- return {
2260
- ...matched,
2261
- defaultImport,
2262
- namespacedImport,
2263
- namedImports
2264
- };
2265
- }
2266
- function findExports(code) {
2267
- const declaredExports = matchAll(EXPORT_DECAL_RE, code, {
2268
- type: "declaration"
2269
- });
2270
- for (const declaredExport of declaredExports) {
2271
- const extraNamesStr = declaredExport.extraNames;
2272
- if (extraNamesStr) {
2273
- const extraNames = matchAll(
2274
- /({.*?})|(\[.*?])|(,\s*(?<name>\w+))/g,
2275
- extraNamesStr,
2276
- {}
2277
- ).map((m) => m.name).filter(Boolean);
2278
- declaredExport.names = [declaredExport.name, ...extraNames];
2279
- }
2280
- delete declaredExport.extraNames;
2281
- }
2282
- const namedExports = normalizeNamedExports(
2283
- matchAll(EXPORT_NAMED_RE, code, {
2284
- type: "named"
2285
- })
2286
- );
2287
- const destructuredExports = matchAll(
2288
- EXPORT_NAMED_DESTRUCT,
2289
- code,
2290
- { type: "named" }
2291
- );
2292
- for (const namedExport of destructuredExports) {
2293
- namedExport.exports = namedExport.exports1 || namedExport.exports2;
2294
- namedExport.names = namedExport.exports.replace(/^\r?\n?/, "").split(/\s*,\s*/g).filter((name) => !TYPE_RE.test(name)).map(
2295
- (name) => name.replace(/^.*?\s*:\s*/, "").replace(/\s*=\s*.*$/, "").trim()
2296
- );
2297
- }
2298
- const defaultExport = matchAll(EXPORT_DEFAULT_RE, code, {
2299
- type: "default",
2300
- name: "default"
2301
- });
2302
- const starExports = matchAll(EXPORT_STAR_RE, code, {
2303
- type: "star"
2304
- });
2305
- const exports = normalizeExports([
2306
- ...declaredExports,
2307
- ...namedExports,
2308
- ...destructuredExports,
2309
- ...defaultExport,
2310
- ...starExports
2311
- ]);
2312
- if (exports.length === 0) {
2313
- return [];
2314
- }
2315
- const exportLocations = _tryGetLocations(code, "export");
2316
- if (exportLocations && exportLocations.length === 0) {
2317
- return [];
2318
- }
2319
- return (
2320
- // Filter false positive export matches
2321
- _filterStatement(exportLocations, exports).filter((exp, index, exports2) => {
2322
- const nextExport = exports2[index + 1];
2323
- return !nextExport || exp.type !== nextExport.type || !exp.name || exp.name !== nextExport.name;
2324
- })
2325
- );
2326
- }
2327
- function findTypeExports(code) {
2328
- const declaredExports = matchAll(
2329
- EXPORT_DECAL_TYPE_RE,
2330
- code,
2331
- { type: "declaration" }
2332
- );
2333
- const namedExports = normalizeNamedExports(
2334
- matchAll(EXPORT_NAMED_TYPE_RE, code, {
2335
- type: "named"
2336
- })
2337
- );
2338
- const exports = normalizeExports([
2339
- ...declaredExports,
2340
- ...namedExports
2341
- ]);
2342
- if (exports.length === 0) {
2343
- return [];
2344
- }
2345
- const exportLocations = _tryGetLocations(code, "export");
2346
- if (exportLocations && exportLocations.length === 0) {
2347
- return [];
2348
- }
2349
- return (
2350
- // Filter false positive export matches
2351
- _filterStatement(exportLocations, exports).filter((exp, index, exports2) => {
2352
- const nextExport = exports2[index + 1];
2353
- return !nextExport || exp.type !== nextExport.type || !exp.name || exp.name !== nextExport.name;
2354
- })
2355
- );
2356
- }
2357
- function normalizeExports(exports) {
2358
- for (const exp of exports) {
2359
- if (!exp.name && exp.names && exp.names.length === 1) {
2360
- exp.name = exp.names[0];
2361
- }
2362
- if (exp.name === "default" && exp.type !== "default") {
2363
- exp._type = exp.type;
2364
- exp.type = "default";
2365
- }
2366
- if (!exp.names && exp.name) {
2367
- exp.names = [exp.name];
2368
- }
2369
- if (exp.type === "declaration" && exp.declaration) {
2370
- exp.declarationType = exp.declaration.replace(
2371
- /^declare\s*/,
2372
- ""
2373
- );
2374
- }
2375
- }
2376
- return exports;
2377
- }
2378
- function normalizeNamedExports(namedExports) {
2379
- for (const namedExport of namedExports) {
2380
- namedExport.names = namedExport.exports.replace(/^\r?\n?/, "").split(/\s*,\s*/g).filter((name) => !TYPE_RE.test(name)).map((name) => name.replace(/^.*?\sas\s/, "").trim());
2381
- }
2382
- return namedExports;
2383
- }
2384
- function findExportNames(code) {
2385
- return findExports(code).flatMap((exp) => exp.names).filter(Boolean);
2386
- }
2387
- async function resolveModuleExportNames(id, options) {
2388
- const url = await resolvePath(id, options);
2389
- const code = await loadURL(url);
2390
- const exports = findExports(code);
2391
- const exportNames = new Set(
2392
- exports.flatMap((exp) => exp.names).filter(Boolean)
2393
- );
2394
- for (const exp of exports) {
2395
- if (exp.type !== "star" || !exp.specifier) {
2396
- continue;
2397
- }
2398
- const subExports = await resolveModuleExportNames(exp.specifier, {
2399
- ...options,
2400
- url
2401
- });
2402
- for (const subExport of subExports) {
2403
- exportNames.add(subExport);
2404
- }
2405
- }
2406
- return [...exportNames];
2407
- }
2408
- function _filterStatement(locations, statements) {
2409
- return statements.filter((exp) => {
2410
- return !locations || locations.some((location) => {
2411
- return exp.start <= location.start && exp.end >= location.end;
2412
- });
2413
- });
2414
- }
2415
- function _tryGetLocations(code, label) {
2416
- try {
2417
- return _getLocations(code, label);
2418
- } catch {
2419
- }
2420
- }
2421
- function _getLocations(code, label) {
2422
- const tokens = tokenizer(code, {
2423
- ecmaVersion: "latest",
2424
- sourceType: "module",
2425
- allowHashBang: true,
2426
- allowAwaitOutsideFunction: true,
2427
- allowImportExportEverywhere: true
2428
- });
2429
- const locations = [];
2430
- for (const token of tokens) {
2431
- if (token.type.label === label) {
2432
- locations.push({
2433
- start: token.start,
2434
- end: token.end
2435
- });
2436
- }
2437
- }
2438
- return locations;
2439
- }
2440
-
2441
- function createCommonJS(url) {
2442
- const __filename = fileURLToPath(url);
2443
- const __dirname = dirname(__filename);
2444
- let _nativeRequire;
2445
- const getNativeRequire = () => {
2446
- if (!_nativeRequire) {
2447
- _nativeRequire = createRequire(url);
2448
- }
2449
- return _nativeRequire;
2450
- };
2451
- function require(id) {
2452
- return getNativeRequire()(id);
2453
- }
2454
- require.resolve = function requireResolve(id, options) {
2455
- return getNativeRequire().resolve(id, options);
2456
- };
2457
- return {
2458
- __filename,
2459
- __dirname,
2460
- require
2461
- };
2462
- }
2463
- function interopDefault(sourceModule, opts = {}) {
2464
- if (!isObject(sourceModule) || !("default" in sourceModule)) {
2465
- return sourceModule;
2466
- }
2467
- const defaultValue = sourceModule.default;
2468
- if (defaultValue === undefined || defaultValue === null) {
2469
- return sourceModule;
2470
- }
2471
- const _defaultType = typeof defaultValue;
2472
- if (_defaultType !== "object" && !(_defaultType === "function" && !opts.preferNamespace)) {
2473
- return opts.preferNamespace ? sourceModule : defaultValue;
2474
- }
2475
- for (const key in sourceModule) {
2476
- try {
2477
- if (!(key in defaultValue)) {
2478
- Object.defineProperty(defaultValue, key, {
2479
- enumerable: key !== "default",
2480
- configurable: key !== "default",
2481
- get() {
2482
- return sourceModule[key];
2483
- }
2484
- });
2485
- }
2486
- } catch {
2487
- }
2488
- }
2489
- return defaultValue;
2490
- }
2491
-
2492
- const EVAL_ESM_IMPORT_RE = /(?<=import .* from ["'])([^"']+)(?=["'])|(?<=export .* from ["'])([^"']+)(?=["'])|(?<=import\s*["'])([^"']+)(?=["'])|(?<=import\s*\(["'])([^"']+)(?=["']\))/g;
2493
- async function loadModule(id, options = {}) {
2494
- const url = await resolve(id, options);
2495
- const code = await loadURL(url);
2496
- return evalModule(code, { ...options, url });
2497
- }
2498
- async function evalModule(code, options = {}) {
2499
- const transformed = await transformModule(code, options);
2500
- const dataURL = toDataURL(transformed);
2501
- return import(dataURL).catch((error) => {
2502
- error.stack = error.stack.replace(
2503
- new RegExp(dataURL, "g"),
2504
- options.url || "_mlly_eval_"
2505
- );
2506
- throw error;
2507
- });
2508
- }
2509
- function transformModule(code, options = {}) {
2510
- if (options.url && options.url.endsWith(".json")) {
2511
- return Promise.resolve("export default " + code);
2512
- }
2513
- if (options.url) {
2514
- code = code.replace(/import\.meta\.url/g, `'${options.url}'`);
2515
- }
2516
- return Promise.resolve(code);
2517
- }
2518
- async function resolveImports(code, options) {
2519
- const imports = [...code.matchAll(EVAL_ESM_IMPORT_RE)].map((m) => m[0]);
2520
- if (imports.length === 0) {
2521
- return code;
2522
- }
2523
- const uniqueImports = [...new Set(imports)];
2524
- const resolved = /* @__PURE__ */ new Map();
2525
- await Promise.all(
2526
- uniqueImports.map(async (id) => {
2527
- let url = await resolve(id, options);
2528
- if (url.endsWith(".json")) {
2529
- const code2 = await loadURL(url);
2530
- url = toDataURL(await transformModule(code2, { url }));
2531
- }
2532
- resolved.set(id, url);
2533
- })
2534
- );
2535
- const re = new RegExp(
2536
- uniqueImports.map((index) => `(${index})`).join("|"),
2537
- "g"
2538
- );
2539
- return code.replace(re, (id) => resolved.get(id));
2540
- }
2541
-
2542
- const ESM_RE = /([\s;]|^)(import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m;
2543
- const CJS_RE = /([\s;]|^)(module.exports\b|exports\.\w|require\s*\(|global\.\w)/m;
2544
- const COMMENT_RE = /\/\*.+?\*\/|\/\/.*(?=[nr])/g;
2545
- const BUILTIN_EXTENSIONS = /* @__PURE__ */ new Set([".mjs", ".cjs", ".node", ".wasm"]);
2546
- function hasESMSyntax(code, opts = {}) {
2547
- if (opts.stripComments) {
2548
- code = code.replace(COMMENT_RE, "");
2549
- }
2550
- return ESM_RE.test(code);
2551
- }
2552
- function hasCJSSyntax(code, opts = {}) {
2553
- if (opts.stripComments) {
2554
- code = code.replace(COMMENT_RE, "");
2555
- }
2556
- return CJS_RE.test(code);
2557
- }
2558
- function detectSyntax(code, opts = {}) {
2559
- if (opts.stripComments) {
2560
- code = code.replace(COMMENT_RE, "");
2561
- }
2562
- const hasESM = hasESMSyntax(code, {});
2563
- const hasCJS = hasCJSSyntax(code, {});
2564
- return {
2565
- hasESM,
2566
- hasCJS,
2567
- isMixed: hasESM && hasCJS
2568
- };
2569
- }
2570
- const validNodeImportDefaults = {
2571
- allowedProtocols: ["node", "file", "data"]
2572
- };
2573
- async function isValidNodeImport(id, _options = {}) {
2574
- if (isNodeBuiltin(id)) {
2575
- return true;
2576
- }
2577
- const options = { ...validNodeImportDefaults, ..._options };
2578
- const proto = getProtocol(id);
2579
- if (proto && !options.allowedProtocols?.includes(proto)) {
2580
- return false;
2581
- }
2582
- if (proto === "data") {
2583
- return true;
2584
- }
2585
- const resolvedPath = await resolvePath(id, options);
2586
- const extension = extname$1(resolvedPath);
2587
- if (BUILTIN_EXTENSIONS.has(extension)) {
2588
- return true;
2589
- }
2590
- if (extension !== ".js") {
2591
- return false;
2592
- }
2593
- const package_ = await readPackageJSON(resolvedPath).catch(() => {
2594
- });
2595
- if (package_?.type === "module") {
2596
- return true;
2597
- }
2598
- if (/\.(\w+-)?esm?(-\w+)?\.js$|\/(esm?)\//.test(resolvedPath)) {
2599
- return false;
2600
- }
2601
- const code = options.code || await promises.readFile(resolvedPath, "utf8").catch(() => {
2602
- }) || "";
2603
- return !hasESMSyntax(code, { stripComments: options.stripComments });
2604
- }
2605
-
2606
- export { DYNAMIC_IMPORT_RE, ESM_STATIC_IMPORT_RE, EXPORT_DECAL_RE, EXPORT_DECAL_TYPE_RE, createCommonJS, createResolve, detectSyntax, evalModule, fileURLToPath, findDynamicImports, findExportNames, findExports, findStaticImports, findTypeExports, findTypeImports, getProtocol, hasCJSSyntax, hasESMSyntax, interopDefault, isNodeBuiltin, isValidNodeImport, loadModule, loadURL, lookupNodeModuleSubpath, normalizeid, parseNodeModulePath, parseStaticImport, parseTypeImport, pathToFileURL, resolve, resolveImports, resolveModuleExportNames, resolvePath, resolvePathSync, resolveSync, sanitizeFilePath, sanitizeURIComponent, toDataURL, transformModule };