pecunia-root 0.1.1 → 0.1.3

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 (328) hide show
  1. package/dist/adapters/prisma-adapter/index.d.mts +1 -1
  2. package/dist/adapters/prisma-adapter/index.mjs +1 -1
  3. package/dist/adapters/prisma-adapter/index.mjs.map +1 -1
  4. package/dist/context/index.mjs +1 -1
  5. package/dist/context/index.mjs.map +1 -1
  6. package/dist/index.d.mts +1 -2
  7. package/dist/index.mjs +1 -2
  8. package/package.json +2 -16
  9. package/dist/_virtual/rolldown_runtime.mjs +0 -8
  10. package/dist/adapters/mongodb-adapter/index.d.mts +0 -35
  11. package/dist/adapters/mongodb-adapter/index.mjs +0 -314
  12. package/dist/adapters/mongodb-adapter/index.mjs.map +0 -1
  13. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs +0 -14
  14. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/code-points-data.mjs.map +0 -1
  15. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs +0 -54
  16. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/index.mjs.map +0 -1
  17. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs +0 -36
  18. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/memory-code-points.mjs.map +0 -1
  19. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs +0 -27
  20. package/dist/node_modules/.pnpm/@mongodb-js_saslprep@1.4.4/node_modules/@mongodb-js/saslprep/dist/node.mjs.map +0 -1
  21. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs +0 -3728
  22. package/dist/node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs.map +0 -1
  23. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs +0 -137
  24. package/dist/node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.mjs.map +0 -1
  25. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs +0 -211
  26. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.mjs.map +0 -1
  27. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs +0 -95
  28. package/dist/node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.mjs.map +0 -1
  29. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs +0 -158
  30. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.mjs.map +0 -1
  31. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs +0 -195
  32. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bson.mjs.map +0 -1
  33. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs +0 -710
  34. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/common.mjs.map +0 -1
  35. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs +0 -53
  36. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/ordered.mjs.map +0 -1
  37. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs +0 -63
  38. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/bulk/unordered.mjs.map +0 -1
  39. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs +0 -368
  40. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/change_stream.mjs.map +0 -1
  41. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs +0 -234
  42. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/auto_encrypter.mjs.map +0 -1
  43. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs +0 -545
  44. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/client_encryption.mjs.map +0 -1
  45. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs +0 -83
  46. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.mjs.map +0 -1
  47. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs +0 -146
  48. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/errors.mjs.map +0 -1
  49. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs +0 -58
  50. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/mongocryptd_manager.mjs.map +0 -1
  51. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs +0 -30
  52. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/aws.mjs.map +0 -1
  53. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs +0 -135
  54. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/azure.mjs.map +0 -1
  55. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs +0 -25
  56. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/gcp.mjs.map +0 -1
  57. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs +0 -47
  58. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/providers/index.mjs.map +0 -1
  59. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs +0 -362
  60. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/client-side-encryption/state_machine.mjs.map +0 -1
  61. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs +0 -58
  62. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/auth_provider.mjs.map +0 -1
  63. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs +0 -123
  64. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/aws_temporary_credentials.mjs.map +0 -1
  65. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs +0 -128
  66. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/gssapi.mjs.map +0 -1
  67. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs +0 -133
  68. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongo_credentials.mjs.map +0 -1
  69. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs +0 -126
  70. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_aws.mjs.map +0 -1
  71. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs +0 -79
  72. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/automated_callback_workflow.mjs.map +0 -1
  73. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs +0 -65
  74. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/azure_machine_workflow.mjs.map +0 -1
  75. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs +0 -127
  76. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/callback_workflow.mjs.map +0 -1
  77. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs +0 -47
  78. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/command_builders.mjs.map +0 -1
  79. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs +0 -44
  80. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/gcp_machine_workflow.mjs.map +0 -1
  81. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs +0 -101
  82. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/human_callback_workflow.mjs.map +0 -1
  83. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs +0 -33
  84. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/k8s_machine_workflow.mjs.map +0 -1
  85. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs +0 -53
  86. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_cache.mjs.map +0 -1
  87. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs +0 -29
  88. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc/token_machine_workflow.mjs.map +0 -1
  89. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs +0 -83
  90. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/mongodb_oidc.mjs.map +0 -1
  91. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs +0 -36
  92. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/plain.mjs.map +0 -1
  93. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs +0 -32
  94. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/providers.mjs.map +0 -1
  95. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs +0 -206
  96. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/scram.mjs.map +0 -1
  97. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs +0 -45
  98. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/auth/x509.mjs.map +0 -1
  99. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs +0 -213
  100. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/command_monitoring_events.mjs.map +0 -1
  101. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs +0 -411
  102. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/commands.mjs.map +0 -1
  103. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs +0 -288
  104. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connect.mjs.map +0 -1
  105. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs +0 -423
  106. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection.mjs.map +0 -1
  107. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs +0 -483
  108. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool.mjs.map +0 -1
  109. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs +0 -207
  110. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/connection_pool_events.mjs.map +0 -1
  111. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs +0 -116
  112. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/errors.mjs.map +0 -1
  113. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs +0 -183
  114. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/handshake/client_metadata.mjs.map +0 -1
  115. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs +0 -55
  116. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/metrics.mjs.map +0 -1
  117. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs +0 -60
  118. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/stream_description.mjs.map +0 -1
  119. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs +0 -139
  120. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/compression.mjs.map +0 -1
  121. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs +0 -28
  122. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/constants.mjs.map +0 -1
  123. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs +0 -117
  124. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_data.mjs.map +0 -1
  125. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs +0 -182
  126. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/on_demand/document.mjs.map +0 -1
  127. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs +0 -304
  128. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/responses.mjs.map +0 -1
  129. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs +0 -34
  130. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cmap/wire_protocol/shared.mjs.map +0 -1
  131. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs +0 -739
  132. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/collection.mjs.map +0 -1
  133. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs +0 -805
  134. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/connection_string.mjs.map +0 -1
  135. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs +0 -174
  136. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/constants.mjs.map +0 -1
  137. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs +0 -726
  138. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/abstract_cursor.mjs.map +0 -1
  139. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs +0 -172
  140. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/aggregation_cursor.mjs.map +0 -1
  141. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs +0 -103
  142. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/change_stream_cursor.mjs.map +0 -1
  143. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs +0 -66
  144. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/client_bulk_write_cursor.mjs.map +0 -1
  145. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs +0 -41
  146. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/explainable_cursor.mjs.map +0 -1
  147. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs +0 -365
  148. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/find_cursor.mjs.map +0 -1
  149. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs +0 -50
  150. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_collections_cursor.mjs.map +0 -1
  151. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs +0 -48
  152. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_indexes_cursor.mjs.map +0 -1
  153. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs +0 -23
  154. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/list_search_indexes_cursor.mjs.map +0 -1
  155. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs +0 -106
  156. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/cursor/run_command_cursor.mjs.map +0 -1
  157. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs +0 -428
  158. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/db.mjs.map +0 -1
  159. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs +0 -124
  160. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/deps.mjs.map +0 -1
  161. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs +0 -95
  162. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/encrypter.mjs.map +0 -1
  163. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs +0 -1305
  164. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/error.mjs.map +0 -1
  165. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs +0 -59
  166. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/explain.mjs.map +0 -1
  167. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs +0 -250
  168. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/download.mjs.map +0 -1
  169. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs +0 -170
  170. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/index.mjs.map +0 -1
  171. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs +0 -315
  172. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/gridfs/upload.mjs.map +0 -1
  173. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs +0 -925
  174. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/index.mjs.map +0 -1
  175. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs +0 -520
  176. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client.mjs.map +0 -1
  177. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs +0 -90
  178. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_client_auth_providers.mjs.map +0 -1
  179. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs +0 -582
  180. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_logger.mjs.map +0 -1
  181. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs +0 -64
  182. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/mongo_types.mjs.map +0 -1
  183. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs +0 -86
  184. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/aggregate.mjs.map +0 -1
  185. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs +0 -60
  186. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/client_bulk_write.mjs.map +0 -1
  187. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs +0 -264
  188. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/command_builder.mjs.map +0 -1
  189. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs +0 -109
  190. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/executor.mjs.map +0 -1
  191. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs +0 -172
  192. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/client_bulk_write/results_merger.mjs.map +0 -1
  193. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs +0 -68
  194. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/command.mjs.map +0 -1
  195. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs +0 -53
  196. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/count.mjs.map +0 -1
  197. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs +0 -123
  198. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/create_collection.mjs.map +0 -1
  199. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs +0 -119
  200. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/delete.mjs.map +0 -1
  201. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs +0 -65
  202. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/distinct.mjs.map +0 -1
  203. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs +0 -97
  204. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/drop.mjs.map +0 -1
  205. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs +0 -47
  206. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/estimated_document_count.mjs.map +0 -1
  207. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs +0 -188
  208. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/execute_operation.mjs.map +0 -1
  209. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs +0 -103
  210. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find.mjs.map +0 -1
  211. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs +0 -136
  212. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/find_and_modify.mjs.map +0 -1
  213. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs +0 -61
  214. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/get_more.mjs.map +0 -1
  215. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs +0 -179
  216. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/indexes.mjs.map +0 -1
  217. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs +0 -77
  218. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/insert.mjs.map +0 -1
  219. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs +0 -48
  220. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/kill_cursors.mjs.map +0 -1
  221. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs +0 -60
  222. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_collections.mjs.map +0 -1
  223. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs +0 -43
  224. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/list_databases.mjs.map +0 -1
  225. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs +0 -105
  226. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/operation.mjs.map +0 -1
  227. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs +0 -50
  228. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/profiling_level.mjs.map +0 -1
  229. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs +0 -39
  230. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/remove_user.mjs.map +0 -1
  231. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs +0 -49
  232. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/rename.mjs.map +0 -1
  233. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs +0 -58
  234. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/run_command.mjs.map +0 -1
  235. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs +0 -46
  236. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/create.mjs.map +0 -1
  237. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs +0 -48
  238. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/drop.mjs.map +0 -1
  239. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs +0 -46
  240. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/search_indexes/update.mjs.map +0 -1
  241. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs +0 -67
  242. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/set_profiling_level.mjs.map +0 -1
  243. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs +0 -37
  244. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/stats.mjs.map +0 -1
  245. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs +0 -171
  246. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/update.mjs.map +0 -1
  247. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs +0 -45
  248. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/operations/validate_collection.mjs.map +0 -1
  249. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs +0 -71
  250. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_concern.mjs.map +0 -1
  251. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs +0 -165
  252. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/read_preference.mjs.map +0 -1
  253. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs +0 -62
  254. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/resource_management.mjs.map +0 -1
  255. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs +0 -51
  256. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/common.mjs.map +0 -1
  257. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs +0 -156
  258. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/events.mjs.map +0 -1
  259. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs +0 -477
  260. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/monitor.mjs.map +0 -1
  261. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs +0 -315
  262. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server.mjs.map +0 -1
  263. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs +0 -157
  264. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_description.mjs.map +0 -1
  265. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs +0 -184
  266. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection.mjs.map +0 -1
  267. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs +0 -96
  268. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/server_selection_events.mjs.map +0 -1
  269. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs +0 -107
  270. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/srv_polling.mjs.map +0 -1
  271. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs +0 -540
  272. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology.mjs.map +0 -1
  273. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs +0 -298
  274. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sdam/topology_description.mjs.map +0 -1
  275. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs +0 -623
  276. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sessions.mjs.map +0 -1
  277. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs +0 -91
  278. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/sort.mjs.map +0 -1
  279. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs +0 -254
  280. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/timeout.mjs.map +0 -1
  281. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs +0 -138
  282. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/transactions.mjs.map +0 -1
  283. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs +0 -993
  284. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/utils.mjs.map +0 -1
  285. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs +0 -81
  286. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/write_concern.mjs.map +0 -1
  287. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs +0 -171
  288. package/dist/node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/package.mjs.map +0 -1
  289. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs +0 -295
  290. package/dist/node_modules/.pnpm/punycode@2.3.1/node_modules/punycode/punycode.mjs.map +0 -1
  291. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs +0 -81
  292. package/dist/node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.mjs.map +0 -1
  293. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs +0 -206
  294. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/index.mjs.map +0 -1
  295. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs +0 -33590
  296. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/mappingTable.mjs.map +0 -1
  297. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs +0 -37
  298. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/regexes.mjs.map +0 -1
  299. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs +0 -18
  300. package/dist/node_modules/.pnpm/tr46@5.1.1/node_modules/tr46/lib/statusMapping.mjs.map +0 -1
  301. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs +0 -252
  302. package/dist/node_modules/.pnpm/webidl-conversions@7.0.0/node_modules/webidl-conversions/lib/index.mjs.map +0 -1
  303. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs +0 -41
  304. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs.map +0 -1
  305. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs +0 -41
  306. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/Function.mjs.map +0 -1
  307. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs +0 -173
  308. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL-impl.mjs.map +0 -1
  309. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs +0 -334
  310. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URL.mjs.map +0 -1
  311. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs +0 -90
  312. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams-impl.mjs.map +0 -1
  313. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs +0 -356
  314. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/URLSearchParams.mjs.map +0 -1
  315. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs +0 -23
  316. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/encoding.mjs.map +0 -1
  317. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs +0 -29
  318. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/infra.mjs.map +0 -1
  319. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs +0 -140
  320. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/percent-encoding.mjs.map +0 -1
  321. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs +0 -831
  322. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/url-state-machine.mjs.map +0 -1
  323. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs +0 -77
  324. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/urlencoded.mjs.map +0 -1
  325. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs +0 -147
  326. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/lib/utils.mjs.map +0 -1
  327. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs +0 -17
  328. package/dist/node_modules/.pnpm/whatwg-url@14.2.0/node_modules/whatwg-url/webidl2js-wrapper.mjs.map +0 -1
@@ -1,137 +0,0 @@
1
- import { __commonJSMin } from "../../../../../_virtual/rolldown_runtime.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js
4
- var require_memory_pager = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
- module.exports = Pager;
6
- function Pager(pageSize, opts) {
7
- if (!(this instanceof Pager)) return new Pager(pageSize, opts);
8
- this.length = 0;
9
- this.updates = [];
10
- this.path = new Uint16Array(4);
11
- this.pages = new Array(32768);
12
- this.maxPages = this.pages.length;
13
- this.level = 0;
14
- this.pageSize = pageSize || 1024;
15
- this.deduplicate = opts ? opts.deduplicate : null;
16
- this.zeros = this.deduplicate ? alloc(this.deduplicate.length) : null;
17
- }
18
- Pager.prototype.updated = function(page) {
19
- while (this.deduplicate && page.buffer[page.deduplicate] === this.deduplicate[page.deduplicate]) {
20
- page.deduplicate++;
21
- if (page.deduplicate === this.deduplicate.length) {
22
- page.deduplicate = 0;
23
- if (page.buffer.equals && page.buffer.equals(this.deduplicate)) page.buffer = this.deduplicate;
24
- break;
25
- }
26
- }
27
- if (page.updated || !this.updates) return;
28
- page.updated = true;
29
- this.updates.push(page);
30
- };
31
- Pager.prototype.lastUpdate = function() {
32
- if (!this.updates || !this.updates.length) return null;
33
- var page = this.updates.pop();
34
- page.updated = false;
35
- return page;
36
- };
37
- Pager.prototype._array = function(i, noAllocate) {
38
- if (i >= this.maxPages) {
39
- if (noAllocate) return;
40
- grow(this, i);
41
- }
42
- factor(i, this.path);
43
- var arr = this.pages;
44
- for (var j = this.level; j > 0; j--) {
45
- var p = this.path[j];
46
- var next = arr[p];
47
- if (!next) {
48
- if (noAllocate) return;
49
- next = arr[p] = new Array(32768);
50
- }
51
- arr = next;
52
- }
53
- return arr;
54
- };
55
- Pager.prototype.get = function(i, noAllocate) {
56
- var arr = this._array(i, noAllocate);
57
- var first = this.path[0];
58
- var page = arr && arr[first];
59
- if (!page && !noAllocate) {
60
- page = arr[first] = new Page(i, alloc(this.pageSize));
61
- if (i >= this.length) this.length = i + 1;
62
- }
63
- if (page && page.buffer === this.deduplicate && this.deduplicate && !noAllocate) {
64
- page.buffer = copy(page.buffer);
65
- page.deduplicate = 0;
66
- }
67
- return page;
68
- };
69
- Pager.prototype.set = function(i, buf) {
70
- var arr = this._array(i, false);
71
- var first = this.path[0];
72
- if (i >= this.length) this.length = i + 1;
73
- if (!buf || this.zeros && buf.equals && buf.equals(this.zeros)) {
74
- arr[first] = void 0;
75
- return;
76
- }
77
- if (this.deduplicate && buf.equals && buf.equals(this.deduplicate)) buf = this.deduplicate;
78
- var page = arr[first];
79
- var b = truncate(buf, this.pageSize);
80
- if (page) page.buffer = b;
81
- else arr[first] = new Page(i, b);
82
- };
83
- Pager.prototype.toBuffer = function() {
84
- var list = new Array(this.length);
85
- var empty = alloc(this.pageSize);
86
- var ptr = 0;
87
- while (ptr < list.length) {
88
- var arr = this._array(ptr, true);
89
- for (var i = 0; i < 32768 && ptr < list.length; i++) list[ptr++] = arr && arr[i] ? arr[i].buffer : empty;
90
- }
91
- return Buffer.concat(list);
92
- };
93
- function grow(pager, index) {
94
- while (pager.maxPages < index) {
95
- var old = pager.pages;
96
- pager.pages = new Array(32768);
97
- pager.pages[0] = old;
98
- pager.level++;
99
- pager.maxPages *= 32768;
100
- }
101
- }
102
- function truncate(buf, len) {
103
- if (buf.length === len) return buf;
104
- if (buf.length > len) return buf.slice(0, len);
105
- var cpy = alloc(len);
106
- buf.copy(cpy);
107
- return cpy;
108
- }
109
- function alloc(size) {
110
- if (Buffer.alloc) return Buffer.alloc(size);
111
- var buf = new Buffer(size);
112
- buf.fill(0);
113
- return buf;
114
- }
115
- function copy(buf) {
116
- var cpy = Buffer.allocUnsafe ? Buffer.allocUnsafe(buf.length) : new Buffer(buf.length);
117
- buf.copy(cpy);
118
- return cpy;
119
- }
120
- function Page(i, buf) {
121
- this.offset = i * buf.length;
122
- this.buffer = buf;
123
- this.updated = false;
124
- this.deduplicate = 0;
125
- }
126
- function factor(n, out) {
127
- n = (n - (out[0] = n & 32767)) / 32768;
128
- n = (n - (out[1] = n & 32767)) / 32768;
129
- out[3] = (n - (out[2] = n & 32767)) / 32768 & 32767;
130
- }
131
- }));
132
-
133
- //#endregion
134
- export default require_memory_pager();
135
-
136
- export { require_memory_pager };
137
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js"],"sourcesContent":["module.exports = Pager\n\nfunction Pager (pageSize, opts) {\n if (!(this instanceof Pager)) return new Pager(pageSize, opts)\n\n this.length = 0\n this.updates = []\n this.path = new Uint16Array(4)\n this.pages = new Array(32768)\n this.maxPages = this.pages.length\n this.level = 0\n this.pageSize = pageSize || 1024\n this.deduplicate = opts ? opts.deduplicate : null\n this.zeros = this.deduplicate ? alloc(this.deduplicate.length) : null\n}\n\nPager.prototype.updated = function (page) {\n while (this.deduplicate && page.buffer[page.deduplicate] === this.deduplicate[page.deduplicate]) {\n page.deduplicate++\n if (page.deduplicate === this.deduplicate.length) {\n page.deduplicate = 0\n if (page.buffer.equals && page.buffer.equals(this.deduplicate)) page.buffer = this.deduplicate\n break\n }\n }\n if (page.updated || !this.updates) return\n page.updated = true\n this.updates.push(page)\n}\n\nPager.prototype.lastUpdate = function () {\n if (!this.updates || !this.updates.length) return null\n var page = this.updates.pop()\n page.updated = false\n return page\n}\n\nPager.prototype._array = function (i, noAllocate) {\n if (i >= this.maxPages) {\n if (noAllocate) return\n grow(this, i)\n }\n\n factor(i, this.path)\n\n var arr = this.pages\n\n for (var j = this.level; j > 0; j--) {\n var p = this.path[j]\n var next = arr[p]\n\n if (!next) {\n if (noAllocate) return\n next = arr[p] = new Array(32768)\n }\n\n arr = next\n }\n\n return arr\n}\n\nPager.prototype.get = function (i, noAllocate) {\n var arr = this._array(i, noAllocate)\n var first = this.path[0]\n var page = arr && arr[first]\n\n if (!page && !noAllocate) {\n page = arr[first] = new Page(i, alloc(this.pageSize))\n if (i >= this.length) this.length = i + 1\n }\n\n if (page && page.buffer === this.deduplicate && this.deduplicate && !noAllocate) {\n page.buffer = copy(page.buffer)\n page.deduplicate = 0\n }\n\n return page\n}\n\nPager.prototype.set = function (i, buf) {\n var arr = this._array(i, false)\n var first = this.path[0]\n\n if (i >= this.length) this.length = i + 1\n\n if (!buf || (this.zeros && buf.equals && buf.equals(this.zeros))) {\n arr[first] = undefined\n return\n }\n\n if (this.deduplicate && buf.equals && buf.equals(this.deduplicate)) {\n buf = this.deduplicate\n }\n\n var page = arr[first]\n var b = truncate(buf, this.pageSize)\n\n if (page) page.buffer = b\n else arr[first] = new Page(i, b)\n}\n\nPager.prototype.toBuffer = function () {\n var list = new Array(this.length)\n var empty = alloc(this.pageSize)\n var ptr = 0\n\n while (ptr < list.length) {\n var arr = this._array(ptr, true)\n for (var i = 0; i < 32768 && ptr < list.length; i++) {\n list[ptr++] = (arr && arr[i]) ? arr[i].buffer : empty\n }\n }\n\n return Buffer.concat(list)\n}\n\nfunction grow (pager, index) {\n while (pager.maxPages < index) {\n var old = pager.pages\n pager.pages = new Array(32768)\n pager.pages[0] = old\n pager.level++\n pager.maxPages *= 32768\n }\n}\n\nfunction truncate (buf, len) {\n if (buf.length === len) return buf\n if (buf.length > len) return buf.slice(0, len)\n var cpy = alloc(len)\n buf.copy(cpy)\n return cpy\n}\n\nfunction alloc (size) {\n if (Buffer.alloc) return Buffer.alloc(size)\n var buf = new Buffer(size)\n buf.fill(0)\n return buf\n}\n\nfunction copy (buf) {\n var cpy = Buffer.allocUnsafe ? Buffer.allocUnsafe(buf.length) : new Buffer(buf.length)\n buf.copy(cpy)\n return cpy\n}\n\nfunction Page (i, buf) {\n this.offset = i * buf.length\n this.buffer = buf\n this.updated = false\n this.deduplicate = 0\n}\n\nfunction factor (n, out) {\n n = (n - (out[0] = (n & 32767))) / 32768\n n = (n - (out[1] = (n & 32767))) / 32768\n out[3] = ((n - (out[2] = (n & 32767))) / 32768) & 32767\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;AAAA,QAAO,UAAU;CAEjB,SAAS,MAAO,UAAU,MAAM;AAC9B,MAAI,EAAE,gBAAgB,OAAQ,QAAO,IAAI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KAAM,IAAI,GAAG,SAAS;;AAIpD,SAAO,OAAO,OAAO,KAAK;;CAG5B,SAAS,KAAM,OAAO,OAAO;AAC3B,SAAO,MAAM,WAAW,OAAO;GAC7B,IAAI,MAAM,MAAM;AAChB,SAAM,QAAQ,IAAI,MAAM,MAAM;AAC9B,SAAM,MAAM,KAAK;AACjB,SAAM;AACN,SAAM,YAAY;;;CAItB,SAAS,SAAU,KAAK,KAAK;AAC3B,MAAI,IAAI,WAAW,IAAK,QAAO;AAC/B,MAAI,IAAI,SAAS,IAAK,QAAO,IAAI,MAAM,GAAG,IAAI;EAC9C,IAAI,MAAM,MAAM,IAAI;AACpB,MAAI,KAAK,IAAI;AACb,SAAO;;CAGT,SAAS,MAAO,MAAM;AACpB,MAAI,OAAO,MAAO,QAAO,OAAO,MAAM,KAAK;EAC3C,IAAI,MAAM,IAAI,OAAO,KAAK;AAC1B,MAAI,KAAK,EAAE;AACX,SAAO;;CAGT,SAAS,KAAM,KAAK;EAClB,IAAI,MAAM,OAAO,cAAc,OAAO,YAAY,IAAI,OAAO,GAAG,IAAI,OAAO,IAAI,OAAO;AACtF,MAAI,KAAK,IAAI;AACb,SAAO;;CAGT,SAAS,KAAM,GAAG,KAAK;AACrB,OAAK,SAAS,IAAI,IAAI;AACtB,OAAK,SAAS;AACd,OAAK,UAAU;AACf,OAAK,cAAc;;CAGrB,SAAS,OAAQ,GAAG,KAAK;AACvB,OAAK,KAAK,IAAI,KAAM,IAAI,UAAW;AACnC,OAAK,KAAK,IAAI,KAAM,IAAI,UAAW;AACnC,MAAI,MAAO,KAAK,IAAI,KAAM,IAAI,UAAW,QAAS"}
@@ -1,211 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_whatwg_url } from "../../../../whatwg-url@14.2.0/node_modules/whatwg-url/index.mjs";
3
- import { require_redact } from "./redact.mjs";
4
-
5
- //#region ../../node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.js
6
- var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.CommaAndColonSeparatedRecord = exports.ConnectionString = exports.redactConnectionString = void 0;
9
- const whatwg_url_1 = require_whatwg_url();
10
- const redact_1 = require_redact();
11
- Object.defineProperty(exports, "redactConnectionString", {
12
- enumerable: true,
13
- get: function() {
14
- return redact_1.redactConnectionString;
15
- }
16
- });
17
- const DUMMY_HOSTNAME = "__this_is_a_placeholder__";
18
- function connectionStringHasValidScheme(connectionString) {
19
- return connectionString.startsWith("mongodb://") || connectionString.startsWith("mongodb+srv://");
20
- }
21
- const HOSTS_REGEX = /^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;
22
- var CaseInsensitiveMap = class extends Map {
23
- delete(name) {
24
- return super.delete(this._normalizeKey(name));
25
- }
26
- get(name) {
27
- return super.get(this._normalizeKey(name));
28
- }
29
- has(name) {
30
- return super.has(this._normalizeKey(name));
31
- }
32
- set(name, value) {
33
- return super.set(this._normalizeKey(name), value);
34
- }
35
- _normalizeKey(name) {
36
- name = `${name}`;
37
- for (const key of this.keys()) if (key.toLowerCase() === name.toLowerCase()) {
38
- name = key;
39
- break;
40
- }
41
- return name;
42
- }
43
- };
44
- function caseInsenstiveURLSearchParams(Ctor) {
45
- return class CaseInsenstiveURLSearchParams extends Ctor {
46
- append(name, value) {
47
- return super.append(this._normalizeKey(name), value);
48
- }
49
- delete(name) {
50
- return super.delete(this._normalizeKey(name));
51
- }
52
- get(name) {
53
- return super.get(this._normalizeKey(name));
54
- }
55
- getAll(name) {
56
- return super.getAll(this._normalizeKey(name));
57
- }
58
- has(name) {
59
- return super.has(this._normalizeKey(name));
60
- }
61
- set(name, value) {
62
- return super.set(this._normalizeKey(name), value);
63
- }
64
- keys() {
65
- return super.keys();
66
- }
67
- values() {
68
- return super.values();
69
- }
70
- entries() {
71
- return super.entries();
72
- }
73
- [Symbol.iterator]() {
74
- return super[Symbol.iterator]();
75
- }
76
- _normalizeKey(name) {
77
- return CaseInsensitiveMap.prototype._normalizeKey.call(this, name);
78
- }
79
- };
80
- }
81
- var URLWithoutHost = class extends whatwg_url_1.URL {};
82
- var MongoParseError = class extends Error {
83
- get name() {
84
- return "MongoParseError";
85
- }
86
- };
87
- var ConnectionString = class ConnectionString extends URLWithoutHost {
88
- constructor(uri, options = {}) {
89
- var _a;
90
- const { looseValidation } = options;
91
- if (!looseValidation && !connectionStringHasValidScheme(uri)) throw new MongoParseError("Invalid scheme, expected connection string to start with \"mongodb://\" or \"mongodb+srv://\"");
92
- const match = uri.match(HOSTS_REGEX);
93
- if (!match) throw new MongoParseError(`Invalid connection string "${uri}"`);
94
- const { protocol, username, password, hosts, rest } = (_a = match.groups) !== null && _a !== void 0 ? _a : {};
95
- if (!looseValidation) {
96
- if (!protocol || !hosts) throw new MongoParseError(`Protocol and host list are required in "${uri}"`);
97
- const illegalCharacters = /[:/?#[\]@]/gi;
98
- if (username === null || username === void 0 ? void 0 : username.match(illegalCharacters)) throw new MongoParseError(`Username contains unescaped characters ${username}`);
99
- if (!username || !password) {
100
- const uriWithoutProtocol = uri.replace(`${protocol}://`, "");
101
- if (uriWithoutProtocol.startsWith("@") || uriWithoutProtocol.startsWith(":")) throw new MongoParseError("URI contained empty userinfo section");
102
- }
103
- if (password === null || password === void 0 ? void 0 : password.match(illegalCharacters)) throw new MongoParseError("Password contains unescaped characters");
104
- }
105
- let authString = "";
106
- if (typeof username === "string") authString += username;
107
- if (typeof password === "string") authString += `:${password}`;
108
- if (authString) authString += "@";
109
- try {
110
- super(`${protocol.toLowerCase()}://${authString}${DUMMY_HOSTNAME}${rest}`);
111
- } catch (err) {
112
- if (looseValidation) new ConnectionString(uri, {
113
- ...options,
114
- looseValidation: false
115
- });
116
- if (typeof err.message === "string") err.message = err.message.replace(DUMMY_HOSTNAME, hosts);
117
- throw err;
118
- }
119
- this._hosts = hosts.split(",");
120
- if (!looseValidation) {
121
- if (this.isSRV && this.hosts.length !== 1) throw new MongoParseError("mongodb+srv URI cannot have multiple service names");
122
- if (this.isSRV && this.hosts.some((host) => host.includes(":"))) throw new MongoParseError("mongodb+srv URI cannot have port number");
123
- }
124
- if (!this.pathname) this.pathname = "/";
125
- Object.setPrototypeOf(this.searchParams, caseInsenstiveURLSearchParams(this.searchParams.constructor).prototype);
126
- }
127
- get host() {
128
- return DUMMY_HOSTNAME;
129
- }
130
- set host(_ignored) {
131
- throw new Error("No single host for connection string");
132
- }
133
- get hostname() {
134
- return DUMMY_HOSTNAME;
135
- }
136
- set hostname(_ignored) {
137
- throw new Error("No single host for connection string");
138
- }
139
- get port() {
140
- return "";
141
- }
142
- set port(_ignored) {
143
- throw new Error("No single host for connection string");
144
- }
145
- get href() {
146
- return this.toString();
147
- }
148
- set href(_ignored) {
149
- throw new Error("Cannot set href for connection strings");
150
- }
151
- get isSRV() {
152
- return this.protocol.includes("srv");
153
- }
154
- get hosts() {
155
- return this._hosts;
156
- }
157
- set hosts(list) {
158
- this._hosts = list;
159
- }
160
- toString() {
161
- return super.toString().replace(DUMMY_HOSTNAME, this.hosts.join(","));
162
- }
163
- clone() {
164
- return new ConnectionString(this.toString(), { looseValidation: true });
165
- }
166
- redact(options) {
167
- return (0, redact_1.redactValidConnectionString)(this, options);
168
- }
169
- typedSearchParams() {
170
- return this.searchParams;
171
- }
172
- [Symbol.for("nodejs.util.inspect.custom")]() {
173
- const { href, origin, protocol, username, password, hosts, pathname, search, searchParams, hash } = this;
174
- return {
175
- href,
176
- origin,
177
- protocol,
178
- username,
179
- password,
180
- hosts,
181
- pathname,
182
- search,
183
- searchParams,
184
- hash
185
- };
186
- }
187
- };
188
- exports.ConnectionString = ConnectionString;
189
- var CommaAndColonSeparatedRecord = class extends CaseInsensitiveMap {
190
- constructor(from) {
191
- super();
192
- for (const entry of (from !== null && from !== void 0 ? from : "").split(",")) {
193
- if (!entry) continue;
194
- const colonIndex = entry.indexOf(":");
195
- if (colonIndex === -1) this.set(entry, "");
196
- else this.set(entry.slice(0, colonIndex), entry.slice(colonIndex + 1));
197
- }
198
- }
199
- toString() {
200
- return [...this].map((entry) => entry.join(":")).join(",");
201
- }
202
- };
203
- exports.CommaAndColonSeparatedRecord = CommaAndColonSeparatedRecord;
204
- exports.default = ConnectionString;
205
- }));
206
-
207
- //#endregion
208
- export default require_lib();
209
-
210
- export { require_lib };
211
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CommaAndColonSeparatedRecord = exports.ConnectionString = exports.redactConnectionString = void 0;\nconst whatwg_url_1 = require(\"whatwg-url\");\nconst redact_1 = require(\"./redact\");\nObject.defineProperty(exports, \"redactConnectionString\", { enumerable: true, get: function () { return redact_1.redactConnectionString; } });\nconst DUMMY_HOSTNAME = '__this_is_a_placeholder__';\nfunction connectionStringHasValidScheme(connectionString) {\n return (connectionString.startsWith('mongodb://') ||\n connectionString.startsWith('mongodb+srv://'));\n}\nconst HOSTS_REGEX = /^(?<protocol>[^/]+):\\/\\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;\nclass CaseInsensitiveMap extends Map {\n delete(name) {\n return super.delete(this._normalizeKey(name));\n }\n get(name) {\n return super.get(this._normalizeKey(name));\n }\n has(name) {\n return super.has(this._normalizeKey(name));\n }\n set(name, value) {\n return super.set(this._normalizeKey(name), value);\n }\n _normalizeKey(name) {\n name = `${name}`;\n for (const key of this.keys()) {\n if (key.toLowerCase() === name.toLowerCase()) {\n name = key;\n break;\n }\n }\n return name;\n }\n}\nfunction caseInsenstiveURLSearchParams(Ctor) {\n return class CaseInsenstiveURLSearchParams extends Ctor {\n append(name, value) {\n return super.append(this._normalizeKey(name), value);\n }\n delete(name) {\n return super.delete(this._normalizeKey(name));\n }\n get(name) {\n return super.get(this._normalizeKey(name));\n }\n getAll(name) {\n return super.getAll(this._normalizeKey(name));\n }\n has(name) {\n return super.has(this._normalizeKey(name));\n }\n set(name, value) {\n return super.set(this._normalizeKey(name), value);\n }\n keys() {\n return super.keys();\n }\n values() {\n return super.values();\n }\n entries() {\n return super.entries();\n }\n [Symbol.iterator]() {\n return super[Symbol.iterator]();\n }\n _normalizeKey(name) {\n return CaseInsensitiveMap.prototype._normalizeKey.call(this, name);\n }\n };\n}\nclass URLWithoutHost extends whatwg_url_1.URL {\n}\nclass MongoParseError extends Error {\n get name() {\n return 'MongoParseError';\n }\n}\nclass ConnectionString extends URLWithoutHost {\n constructor(uri, options = {}) {\n var _a;\n const { looseValidation } = options;\n if (!looseValidation && !connectionStringHasValidScheme(uri)) {\n throw new MongoParseError('Invalid scheme, expected connection string to start with \"mongodb://\" or \"mongodb+srv://\"');\n }\n const match = uri.match(HOSTS_REGEX);\n if (!match) {\n throw new MongoParseError(`Invalid connection string \"${uri}\"`);\n }\n const { protocol, username, password, hosts, rest } = (_a = match.groups) !== null && _a !== void 0 ? _a : {};\n if (!looseValidation) {\n if (!protocol || !hosts) {\n throw new MongoParseError(`Protocol and host list are required in \"${uri}\"`);\n }\n try {\n decodeURIComponent(username !== null && username !== void 0 ? username : '');\n decodeURIComponent(password !== null && password !== void 0 ? password : '');\n }\n catch (err) {\n throw new MongoParseError(err.message);\n }\n const illegalCharacters = /[:/?#[\\]@]/gi;\n if (username === null || username === void 0 ? void 0 : username.match(illegalCharacters)) {\n throw new MongoParseError(`Username contains unescaped characters ${username}`);\n }\n if (!username || !password) {\n const uriWithoutProtocol = uri.replace(`${protocol}://`, '');\n if (uriWithoutProtocol.startsWith('@') || uriWithoutProtocol.startsWith(':')) {\n throw new MongoParseError('URI contained empty userinfo section');\n }\n }\n if (password === null || password === void 0 ? void 0 : password.match(illegalCharacters)) {\n throw new MongoParseError('Password contains unescaped characters');\n }\n }\n let authString = '';\n if (typeof username === 'string')\n authString += username;\n if (typeof password === 'string')\n authString += `:${password}`;\n if (authString)\n authString += '@';\n try {\n super(`${protocol.toLowerCase()}://${authString}${DUMMY_HOSTNAME}${rest}`);\n }\n catch (err) {\n if (looseValidation) {\n new ConnectionString(uri, {\n ...options,\n looseValidation: false\n });\n }\n if (typeof err.message === 'string') {\n err.message = err.message.replace(DUMMY_HOSTNAME, hosts);\n }\n throw err;\n }\n this._hosts = hosts.split(',');\n if (!looseValidation) {\n if (this.isSRV && this.hosts.length !== 1) {\n throw new MongoParseError('mongodb+srv URI cannot have multiple service names');\n }\n if (this.isSRV && this.hosts.some(host => host.includes(':'))) {\n throw new MongoParseError('mongodb+srv URI cannot have port number');\n }\n }\n if (!this.pathname) {\n this.pathname = '/';\n }\n Object.setPrototypeOf(this.searchParams, caseInsenstiveURLSearchParams(this.searchParams.constructor).prototype);\n }\n get host() { return DUMMY_HOSTNAME; }\n set host(_ignored) { throw new Error('No single host for connection string'); }\n get hostname() { return DUMMY_HOSTNAME; }\n set hostname(_ignored) { throw new Error('No single host for connection string'); }\n get port() { return ''; }\n set port(_ignored) { throw new Error('No single host for connection string'); }\n get href() { return this.toString(); }\n set href(_ignored) { throw new Error('Cannot set href for connection strings'); }\n get isSRV() {\n return this.protocol.includes('srv');\n }\n get hosts() {\n return this._hosts;\n }\n set hosts(list) {\n this._hosts = list;\n }\n toString() {\n return super.toString().replace(DUMMY_HOSTNAME, this.hosts.join(','));\n }\n clone() {\n return new ConnectionString(this.toString(), {\n looseValidation: true\n });\n }\n redact(options) {\n return (0, redact_1.redactValidConnectionString)(this, options);\n }\n typedSearchParams() {\n const sametype = false && new (caseInsenstiveURLSearchParams(whatwg_url_1.URLSearchParams))();\n return this.searchParams;\n }\n [Symbol.for('nodejs.util.inspect.custom')]() {\n const { href, origin, protocol, username, password, hosts, pathname, search, searchParams, hash } = this;\n return { href, origin, protocol, username, password, hosts, pathname, search, searchParams, hash };\n }\n}\nexports.ConnectionString = ConnectionString;\nclass CommaAndColonSeparatedRecord extends CaseInsensitiveMap {\n constructor(from) {\n super();\n for (const entry of (from !== null && from !== void 0 ? from : '').split(',')) {\n if (!entry)\n continue;\n const colonIndex = entry.indexOf(':');\n if (colonIndex === -1) {\n this.set(entry, '');\n }\n else {\n this.set(entry.slice(0, colonIndex), entry.slice(colonIndex + 1));\n }\n }\n }\n toString() {\n return [...this].map(entry => entry.join(':')).join(',');\n }\n}\nexports.CommaAndColonSeparatedRecord = CommaAndColonSeparatedRecord;\nexports.default = ConnectionString;\n//# sourceMappingURL=index.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,+BAA+B,QAAQ,mBAAmB,QAAQ,yBAAyB,KAAK;CACxG,MAAM;CACN,MAAM;AACN,QAAO,eAAe,SAAS,0BAA0B;EAAE,YAAY;EAAM,KAAK,WAAY;AAAE,UAAO,SAAS;;EAA2B,CAAC;CAC5I,MAAM,iBAAiB;CACvB,SAAS,+BAA+B,kBAAkB;AACtD,SAAQ,iBAAiB,WAAW,aAAa,IAC7C,iBAAiB,WAAW,iBAAiB;;CAErD,MAAM,cAAc;CACpB,IAAM,qBAAN,cAAiC,IAAI;EACjC,OAAO,MAAM;AACT,UAAO,MAAM,OAAO,KAAK,cAAc,KAAK,CAAC;;EAEjD,IAAI,MAAM;AACN,UAAO,MAAM,IAAI,KAAK,cAAc,KAAK,CAAC;;EAE9C,IAAI,MAAM;AACN,UAAO,MAAM,IAAI,KAAK,cAAc,KAAK,CAAC;;EAE9C,IAAI,MAAM,OAAO;AACb,UAAO,MAAM,IAAI,KAAK,cAAc,KAAK,EAAE,MAAM;;EAErD,cAAc,MAAM;AAChB,UAAO,GAAG;AACV,QAAK,MAAM,OAAO,KAAK,MAAM,CACzB,KAAI,IAAI,aAAa,K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AQ,SAAS,KAAK,IAAI,OAAO,IAAI,MAAM,IAAI,EAAE;AAC3E,QAAI,CAAC,MACD;IACJ,MAAM,aAAa,MAAM,QAAQ,IAAI;AACrC,QAAI,eAAe,GACf,MAAK,IAAI,OAAO,GAAG;QAGnB,MAAK,IAAI,MAAM,MAAM,GAAG,WAAW,EAAE,MAAM,MAAM,aAAa,EAAE,CAAC;;;EAI7E,WAAW;AACP,UAAO,CAAC,GAAG,KAAK,CAAC,KAAI,UAAS,MAAM,KAAK,IAAI,CAAC,CAAC,KAAK,IAAI;;;AAGhE,SAAQ,+BAA+B;AACvC,SAAQ,UAAU"}
@@ -1,95 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_lib } from "./index.mjs";
3
-
4
- //#region ../../node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.js
5
- var require_redact = /* @__PURE__ */ __commonJSMin(((exports) => {
6
- var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
7
- if (k2 === void 0) k2 = k;
8
- var desc = Object.getOwnPropertyDescriptor(m, k);
9
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
10
- enumerable: true,
11
- get: function() {
12
- return m[k];
13
- }
14
- };
15
- Object.defineProperty(o, k2, desc);
16
- }) : (function(o, m, k, k2) {
17
- if (k2 === void 0) k2 = k;
18
- o[k2] = m[k];
19
- }));
20
- var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
21
- Object.defineProperty(o, "default", {
22
- enumerable: true,
23
- value: v
24
- });
25
- }) : function(o, v) {
26
- o["default"] = v;
27
- });
28
- var __importStar = exports && exports.__importStar || function(mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) {
32
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- }
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.redactConnectionString = exports.redactValidConnectionString = void 0;
39
- const index_1 = __importStar(require_lib());
40
- function redactValidConnectionString(inputUrl, options) {
41
- var _a, _b;
42
- const url = inputUrl.clone();
43
- const replacementString = (_a = options === null || options === void 0 ? void 0 : options.replacementString) !== null && _a !== void 0 ? _a : "_credentials_";
44
- const redactUsernames = (_b = options === null || options === void 0 ? void 0 : options.redactUsernames) !== null && _b !== void 0 ? _b : true;
45
- if ((url.username || url.password) && redactUsernames) {
46
- url.username = replacementString;
47
- url.password = "";
48
- } else if (url.password) url.password = replacementString;
49
- if (url.searchParams.has("authMechanismProperties")) {
50
- const props = new index_1.CommaAndColonSeparatedRecord(url.searchParams.get("authMechanismProperties"));
51
- if (props.get("AWS_SESSION_TOKEN")) {
52
- props.set("AWS_SESSION_TOKEN", replacementString);
53
- url.searchParams.set("authMechanismProperties", props.toString());
54
- }
55
- }
56
- if (url.searchParams.has("tlsCertificateKeyFilePassword")) url.searchParams.set("tlsCertificateKeyFilePassword", replacementString);
57
- if (url.searchParams.has("proxyUsername") && redactUsernames) url.searchParams.set("proxyUsername", replacementString);
58
- if (url.searchParams.has("proxyPassword")) url.searchParams.set("proxyPassword", replacementString);
59
- return url;
60
- }
61
- exports.redactValidConnectionString = redactValidConnectionString;
62
- function redactConnectionString(uri, options) {
63
- var _a, _b;
64
- const replacementString = (_a = options === null || options === void 0 ? void 0 : options.replacementString) !== null && _a !== void 0 ? _a : "<credentials>";
65
- const redactUsernames = (_b = options === null || options === void 0 ? void 0 : options.redactUsernames) !== null && _b !== void 0 ? _b : true;
66
- let parsed;
67
- try {
68
- parsed = new index_1.default(uri);
69
- } catch (_c) {}
70
- if (parsed) {
71
- options = {
72
- ...options,
73
- replacementString: "___credentials___"
74
- };
75
- return parsed.redact(options).toString().replace(/___credentials___/g, replacementString);
76
- }
77
- const R = replacementString;
78
- const replacements = [
79
- (uri$1) => uri$1.replace(redactUsernames ? /(\/\/)(.*)(@)/g : /(\/\/[^@]*:)(.*)(@)/g, `$1${R}$3`),
80
- (uri$1) => uri$1.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi, `$1${R}`),
81
- (uri$1) => uri$1.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi, `$1${R}`),
82
- (uri$1) => redactUsernames ? uri$1.replace(/(proxyUsername=)([^&]+)/gi, `$1${R}`) : uri$1,
83
- (uri$1) => uri$1.replace(/(proxyPassword=)([^&]+)/gi, `$1${R}`)
84
- ];
85
- for (const replacer of replacements) uri = replacer(uri);
86
- return uri;
87
- }
88
- exports.redactConnectionString = redactConnectionString;
89
- }));
90
-
91
- //#endregion
92
- export default require_redact();
93
-
94
- export { require_redact };
95
- //# sourceMappingURL=redact.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"redact.mjs","names":["uri"],"sources":["../../../../../../../../../node_modules/.pnpm/mongodb-connection-string-url@3.0.2/node_modules/mongodb-connection-string-url/lib/redact.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.redactConnectionString = exports.redactValidConnectionString = void 0;\nconst index_1 = __importStar(require(\"./index\"));\nfunction redactValidConnectionString(inputUrl, options) {\n var _a, _b;\n const url = inputUrl.clone();\n const replacementString = (_a = options === null || options === void 0 ? void 0 : options.replacementString) !== null && _a !== void 0 ? _a : '_credentials_';\n const redactUsernames = (_b = options === null || options === void 0 ? void 0 : options.redactUsernames) !== null && _b !== void 0 ? _b : true;\n if ((url.username || url.password) && redactUsernames) {\n url.username = replacementString;\n url.password = '';\n }\n else if (url.password) {\n url.password = replacementString;\n }\n if (url.searchParams.has('authMechanismProperties')) {\n const props = new index_1.CommaAndColonSeparatedRecord(url.searchParams.get('authMechanismProperties'));\n if (props.get('AWS_SESSION_TOKEN')) {\n props.set('AWS_SESSION_TOKEN', replacementString);\n url.searchParams.set('authMechanismProperties', props.toString());\n }\n }\n if (url.searchParams.has('tlsCertificateKeyFilePassword')) {\n url.searchParams.set('tlsCertificateKeyFilePassword', replacementString);\n }\n if (url.searchParams.has('proxyUsername') && redactUsernames) {\n url.searchParams.set('proxyUsername', replacementString);\n }\n if (url.searchParams.has('proxyPassword')) {\n url.searchParams.set('proxyPassword', replacementString);\n }\n return url;\n}\nexports.redactValidConnectionString = redactValidConnectionString;\nfunction redactConnectionString(uri, options) {\n var _a, _b;\n const replacementString = (_a = options === null || options === void 0 ? void 0 : options.replacementString) !== null && _a !== void 0 ? _a : '<credentials>';\n const redactUsernames = (_b = options === null || options === void 0 ? void 0 : options.redactUsernames) !== null && _b !== void 0 ? _b : true;\n let parsed;\n try {\n parsed = new index_1.default(uri);\n }\n catch (_c) { }\n if (parsed) {\n options = { ...options, replacementString: '___credentials___' };\n return parsed.redact(options).toString().replace(/___credentials___/g, replacementString);\n }\n const R = replacementString;\n const replacements = [\n uri => uri.replace(redactUsernames ? /(\\/\\/)(.*)(@)/g : /(\\/\\/[^@]*:)(.*)(@)/g, `$1${R}$3`),\n uri => uri.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi, `$1${R}`),\n uri => uri.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi, `$1${R}`),\n uri => redactUsernames ? uri.replace(/(proxyUsername=)([^&]+)/gi, `$1${R}`) : uri,\n uri => uri.replace(/(proxyPassword=)([^&]+)/gi, `$1${R}`)\n ];\n for (const replacer of replacements) {\n uri = replacer(uri);\n }\n return uri;\n}\nexports.redactConnectionString = redactConnectionString;\n//# sourceMappingURL=redact.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;CACA,IAAI,qCAAgC,oBAAqB,OAAO,UAAU,SAAS,GAAG,GAAG,GAAG,IAAI;AAC5F,MAAI,OAAO,OAAW,MAAK;EAC3B,IAAI,OAAO,OAAO,yBAAyB,GAAG,EAAE;AAChD,MAAI,CAAC,SAAS,SAAS,OAAO,CAAC,EAAE,aAAa,KAAK,YAAY,KAAK,cAClE,QAAO;GAAE,YAAY;GAAM,KAAK,WAAW;AAAE,WAAO,EAAE;;GAAO;AAE/D,SAAO,eAAe,GAAG,IAAI,KAAK;OAChC,SAAS,GAAG,GAAG,GAAG,IAAI;AACxB,MAAI,OAAO,OAAW,MAAK;AAC3B,IAAE,MAAM,EAAE;;CAEd,IAAI,wCAAmC,uBAAwB,OAAO,UAAU,SAAS,GAAG,GAAG;AAC3F,SAAO,eAAe,GAAG,WAAW;GAAE,YAAY;GAAM,OAAO;GAAG,CAAC;MAClE,SAAS,GAAG,GAAG;AAChB,IAAE,aAAa;;CAEnB,IAAI,kCAA6B,gBAAiB,SAAU,KAAK;AAC7D,MAAI,OAAO,IAAI,WAAY,QAAO;EAClC,IAAI,SAAS,EAAE;AACf,MAAI,OAAO,MAAM;QAAK,IAAI,KAAK,IAAK,KAAI,MAAM,aAAa,OAAO,UAAU,eAAe,KAAK,KAAK,EAAE,CAAE,iBAAgB,QAAQ,KAAK,EAAE;;AACxI,qBAAmB,QAAQ,IAAI;AAC/B,SAAO;;AAEX,QAAO,eAAe,SAAS,cAAc,E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BAAmB,KAAK,YAAY,QAAQ,YAAY,KAAK,IAAI,KAAK,IAAI,QAAQ,qBAAqB,QAAQ,OAAO,KAAK,IAAI,KAAK;EAC1I,IAAI;AACJ,MAAI;AACA,YAAS,IAAI,QAAQ,QAAQ,IAAI;WAE9B,IAAI;AACX,MAAI,QAAQ;AACR,aAAU;IAAE,GAAG;IAAS,mBAAmB;IAAqB;AAChE,UAAO,OAAO,OAAO,QAAQ,CAAC,UAAU,CAAC,QAAQ,sBAAsB,kBAAkB;;EAE7F,MAAM,IAAI;EACV,MAAM,eAAe;IACjB,UAAOA,MAAI,QAAQ,kBAAkB,mBAAmB,wBAAwB,KAAK,EAAE,IAAI;IAC3F,UAAOA,MAAI,QAAQ,wCAAwC,KAAK,IAAI;IACpE,UAAOA,MAAI,QAAQ,6CAA6C,KAAK,IAAI;IACzE,UAAO,kBAAkBA,MAAI,QAAQ,6BAA6B,KAAK,IAAI,GAAGA;IAC9E,UAAOA,MAAI,QAAQ,6BAA6B,KAAK,IAAI;GAC5D;AACD,OAAK,MAAM,YAAY,aACnB,OAAM,SAAS,IAAI;AAEvB,SAAO;;AAEX,SAAQ,yBAAyB"}
@@ -1,158 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_bson } from "./bson.mjs";
3
- import { require_utils } from "./utils.mjs";
4
- import { require_execute_operation } from "./operations/execute_operation.mjs";
5
- import { require_list_databases } from "./operations/list_databases.mjs";
6
- import { require_remove_user } from "./operations/remove_user.mjs";
7
- import { require_run_command } from "./operations/run_command.mjs";
8
- import { require_validate_collection } from "./operations/validate_collection.mjs";
9
-
10
- //#region ../../node_modules/.pnpm/mongodb@6.21.0/node_modules/mongodb/lib/admin.js
11
- var require_admin = /* @__PURE__ */ __commonJSMin(((exports) => {
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.Admin = void 0;
14
- const bson_1 = require_bson();
15
- const execute_operation_1 = require_execute_operation();
16
- const list_databases_1 = require_list_databases();
17
- const remove_user_1 = require_remove_user();
18
- const run_command_1 = require_run_command();
19
- const validate_collection_1 = require_validate_collection();
20
- const utils_1 = require_utils();
21
- /**
22
- * The **Admin** class is an internal class that allows convenient access to
23
- * the admin functionality and commands for MongoDB.
24
- *
25
- * **ADMIN Cannot directly be instantiated**
26
- * @public
27
- *
28
- * @example
29
- * ```ts
30
- * import { MongoClient } from 'mongodb';
31
- *
32
- * const client = new MongoClient('mongodb://localhost:27017');
33
- * const admin = client.db().admin();
34
- * const dbInfo = await admin.listDatabases();
35
- * for (const db of dbInfo.databases) {
36
- * console.log(db.name);
37
- * }
38
- * ```
39
- */
40
- var Admin = class {
41
- /**
42
- * Create a new Admin instance
43
- * @internal
44
- */
45
- constructor(db) {
46
- this.s = { db };
47
- }
48
- /**
49
- * Execute a command
50
- *
51
- * The driver will ensure the following fields are attached to the command sent to the server:
52
- * - `lsid` - sourced from an implicit session or options.session
53
- * - `$readPreference` - defaults to primary or can be configured by options.readPreference
54
- * - `$db` - sourced from the name of this database
55
- *
56
- * If the client has a serverApi setting:
57
- * - `apiVersion`
58
- * - `apiStrict`
59
- * - `apiDeprecationErrors`
60
- *
61
- * When in a transaction:
62
- * - `readConcern` - sourced from readConcern set on the TransactionOptions
63
- * - `writeConcern` - sourced from writeConcern set on the TransactionOptions
64
- *
65
- * Attaching any of the above fields to the command will have no effect as the driver will overwrite the value.
66
- *
67
- * @param command - The command to execute
68
- * @param options - Optional settings for the command
69
- */
70
- async command(command, options) {
71
- return await (0, execute_operation_1.executeOperation)(this.s.db.client, new run_command_1.RunCommandOperation(new utils_1.MongoDBNamespace("admin"), command, {
72
- ...(0, bson_1.resolveBSONOptions)(options),
73
- session: options?.session,
74
- readPreference: options?.readPreference,
75
- timeoutMS: options?.timeoutMS ?? this.s.db.timeoutMS
76
- }));
77
- }
78
- /**
79
- * Retrieve the server build information
80
- *
81
- * @param options - Optional settings for the command
82
- */
83
- async buildInfo(options) {
84
- return await this.command({ buildinfo: 1 }, options);
85
- }
86
- /**
87
- * Retrieve the server build information
88
- *
89
- * @param options - Optional settings for the command
90
- */
91
- async serverInfo(options) {
92
- return await this.command({ buildinfo: 1 }, options);
93
- }
94
- /**
95
- * Retrieve this db's server status.
96
- *
97
- * @param options - Optional settings for the command
98
- */
99
- async serverStatus(options) {
100
- return await this.command({ serverStatus: 1 }, options);
101
- }
102
- /**
103
- * Ping the MongoDB server and retrieve results
104
- *
105
- * @param options - Optional settings for the command
106
- */
107
- async ping(options) {
108
- return await this.command({ ping: 1 }, options);
109
- }
110
- /**
111
- * Remove a user from a database
112
- *
113
- * @param username - The username to remove
114
- * @param options - Optional settings for the command
115
- */
116
- async removeUser(username, options) {
117
- return await (0, execute_operation_1.executeOperation)(this.s.db.client, new remove_user_1.RemoveUserOperation(this.s.db, username, {
118
- dbName: "admin",
119
- ...options
120
- }));
121
- }
122
- /**
123
- * Validate an existing collection
124
- *
125
- * @param collectionName - The name of the collection to validate.
126
- * @param options - Optional settings for the command
127
- */
128
- async validateCollection(collectionName, options = {}) {
129
- return await (0, execute_operation_1.executeOperation)(this.s.db.client, new validate_collection_1.ValidateCollectionOperation(this, collectionName, options));
130
- }
131
- /**
132
- * List the available databases
133
- *
134
- * @param options - Optional settings for the command
135
- */
136
- async listDatabases(options) {
137
- return await (0, execute_operation_1.executeOperation)(this.s.db.client, new list_databases_1.ListDatabasesOperation(this.s.db, {
138
- timeoutMS: this.s.db.timeoutMS,
139
- ...options
140
- }));
141
- }
142
- /**
143
- * Get ReplicaSet status
144
- *
145
- * @param options - Optional settings for the command
146
- */
147
- async replSetGetStatus(options) {
148
- return await this.command({ replSetGetStatus: 1 }, options);
149
- }
150
- };
151
- exports.Admin = Admin;
152
- }));
153
-
154
- //#endregion
155
- export default require_admin();
156
-
157
- export { require_admin };
158
- //# sourceMappingURL=admin.mjs.map