@flipdish/portal-library 8.3.0 → 8.4.1

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 (418) hide show
  1. package/dist/components/organisms/AssetManager/LibraryTabContent/index.cjs.js +1 -1
  2. package/dist/components/organisms/AssetManager/LibraryTabContent/index.cjs.js.map +1 -1
  3. package/dist/components/organisms/AssetManager/LibraryTabContent/index.d.ts +1 -1
  4. package/dist/components/organisms/AssetManager/LibraryTabContent/index.js +1 -1
  5. package/dist/components/organisms/AssetManager/LibraryTabContent/index.js.map +1 -1
  6. package/dist/components/organisms/AssetManager/__mocks__/mockAssets.cjs.js +1 -1
  7. package/dist/components/organisms/AssetManager/__mocks__/mockAssets.cjs.js.map +1 -1
  8. package/dist/components/organisms/AssetManager/__mocks__/mockAssets.d.ts +2 -2
  9. package/dist/components/organisms/AssetManager/__mocks__/mockAssets.js +1 -1
  10. package/dist/components/organisms/AssetManager/__mocks__/mockAssets.js.map +1 -1
  11. package/dist/components/organisms/AssetManager/hooks/useGetAssets.cjs.js +1 -1
  12. package/dist/components/organisms/AssetManager/hooks/useGetAssets.cjs.js.map +1 -1
  13. package/dist/components/organisms/AssetManager/hooks/useGetAssets.js +1 -1
  14. package/dist/components/organisms/AssetManager/hooks/useGetAssets.js.map +1 -1
  15. package/dist/components/organisms/AssetManager/hooks/useUploadAsset.cjs.js.map +1 -1
  16. package/dist/components/organisms/AssetManager/hooks/useUploadAsset.d.ts +1 -1
  17. package/dist/components/organisms/AssetManager/hooks/useUploadAsset.js.map +1 -1
  18. package/dist/components/organisms/AssetManager/index.cjs.js +1 -1
  19. package/dist/components/organisms/AssetManager/index.cjs.js.map +1 -1
  20. package/dist/components/organisms/AssetManager/index.d.ts +1 -1
  21. package/dist/components/organisms/AssetManager/index.js +1 -1
  22. package/dist/components/organisms/AssetManager/index.js.map +1 -1
  23. package/dist/components/organisms/AssetManager/services/asset.service.cjs.js +1 -1
  24. package/dist/components/organisms/AssetManager/services/asset.service.cjs.js.map +1 -1
  25. package/dist/components/organisms/AssetManager/services/asset.service.d.ts +2 -2
  26. package/dist/components/organisms/AssetManager/services/asset.service.js +1 -1
  27. package/dist/components/organisms/AssetManager/services/asset.service.js.map +1 -1
  28. package/dist/components/organisms/FileUpload/components/FileDropZone.cjs.js +1 -1
  29. package/dist/components/organisms/FileUpload/components/FileDropZone.cjs.js.map +1 -1
  30. package/dist/components/organisms/FileUpload/components/FileDropZone.js +1 -1
  31. package/dist/components/organisms/FileUpload/components/FileDropZone.js.map +1 -1
  32. package/dist/mocks/msw/handlers.cjs.js +1 -1
  33. package/dist/mocks/msw/handlers.d.ts +1 -1
  34. package/dist/mocks/msw/handlers.js +1 -1
  35. package/dist/mocks/msw/server.cjs.js +1 -1
  36. package/dist/mocks/msw/server.d.ts +1 -1
  37. package/dist/mocks/msw/server.js +1 -1
  38. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.cjs.js +2 -0
  39. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.cjs.js.map +1 -0
  40. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.js +2 -0
  41. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.js.map +1 -0
  42. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.cjs.js +2 -0
  43. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.cjs.js.map +1 -0
  44. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.js → @mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.js} +2 -2
  45. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.js.map +1 -0
  46. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js +2 -0
  47. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js.map +1 -0
  48. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.d.d.ts +230 -0
  49. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js +2 -0
  50. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js.map +1 -0
  51. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.cjs.js +2 -0
  52. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.cjs.js.map +1 -0
  53. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.js +2 -0
  54. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.js.map +1 -0
  55. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-D_YqR8qU.d.d.ts +27 -0
  56. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.cjs.js +2 -0
  57. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.cjs.js.map +1 -0
  58. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.js +2 -0
  59. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.js.map +1 -0
  60. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/Interceptor-DJ2akVWI.d.d.ts +120 -0
  61. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.cjs.js +2 -0
  62. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.cjs.js.map +1 -0
  63. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.js +2 -0
  64. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.js.map +1 -0
  65. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.cjs.js +2 -0
  66. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.cjs.js.map +1 -0
  67. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.js +2 -0
  68. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.js.map +1 -0
  69. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.cjs.js +2 -0
  70. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.cjs.js.map +1 -0
  71. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.js +2 -0
  72. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.js.map +1 -0
  73. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.cjs.js +2 -0
  74. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.cjs.js.map +1 -0
  75. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.js +2 -0
  76. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.js.map +1 -0
  77. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.cjs.js +2 -0
  78. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.cjs.js.map +1 -0
  79. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.js +2 -0
  80. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.js.map +1 -0
  81. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.cjs.js +2 -0
  82. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.cjs.js.map +1 -0
  83. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.js +2 -0
  84. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.js.map +1 -0
  85. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.cjs.js +2 -0
  86. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.cjs.js.map +1 -0
  87. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.js +2 -0
  88. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.js.map +1 -0
  89. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.cjs.js +2 -0
  90. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.cjs.js.map +1 -0
  91. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.js → @mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.js} +2 -2
  92. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.js.map +1 -0
  93. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js +2 -0
  94. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js.map +1 -0
  95. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.d.d.ts +28 -0
  96. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.js +2 -0
  97. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.js.map +1 -0
  98. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.cjs.js +2 -0
  99. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.cjs.js.map +1 -0
  100. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.js +2 -0
  101. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.js.map +1 -0
  102. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse-CVs3ngx3.d.d.ts +1 -1
  103. package/dist/node_modules/.pnpm/msw@2.12.8_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.cjs.js +2 -0
  104. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js.map +1 -1
  105. package/dist/node_modules/.pnpm/msw@2.12.8_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.js +2 -0
  106. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js.map +1 -1
  107. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js.map +1 -1
  108. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js.map +1 -1
  109. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js.map +1 -1
  110. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js.map +1 -1
  111. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js.map +1 -1
  112. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js.map +1 -1
  113. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.d.d.ts +1 -1
  114. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js.map +1 -1
  115. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/http.js.map +1 -1
  116. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js.map +1 -1
  117. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/index.js.map +1 -1
  118. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js.map +1 -1
  119. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js.map +1 -1
  120. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js.map +1 -1
  121. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js.map +1 -1
  122. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js.map +1 -1
  123. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js.map +1 -1
  124. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js.map +1 -1
  125. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js.map +1 -1
  126. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js.map +1 -1
  127. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js.map +1 -1
  128. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js.map +1 -1
  129. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js.map +1 -1
  130. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js.map +1 -1
  131. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js.map +1 -1
  132. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js.map +1 -1
  133. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js.map +1 -1
  134. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js.map +1 -1
  135. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js.map +1 -1
  136. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js.map +1 -1
  137. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js.map +1 -1
  138. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js.map +1 -1
  139. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js.map +1 -1
  140. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js.map +1 -1
  141. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js.map +1 -1
  142. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js.map +1 -1
  143. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js.map +1 -1
  144. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js.map +1 -1
  145. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js.map +1 -1
  146. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js.map +1 -1
  147. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js.map +1 -1
  148. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js.map +1 -1
  149. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js.map +1 -1
  150. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js.map +1 -1
  151. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js.map +1 -1
  152. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js.map +1 -1
  153. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js.map +1 -1
  154. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js.map +1 -1
  155. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js.map +1 -1
  156. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js.map +1 -1
  157. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js.map +1 -1
  158. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js.map +1 -1
  159. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js.map +1 -1
  160. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js +1 -1
  161. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js.map +1 -1
  162. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js +1 -1
  163. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js.map +1 -1
  164. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js.map +1 -1
  165. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js.map +1 -1
  166. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js.map +1 -1
  167. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js.map +1 -1
  168. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js.map +1 -1
  169. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js.map +1 -1
  170. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js.map +1 -1
  171. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js.map +1 -1
  172. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js.map +1 -1
  173. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js.map +1 -1
  174. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js.map +1 -1
  175. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js.map +1 -1
  176. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js.map +1 -1
  177. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js.map +1 -1
  178. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js.map +1 -1
  179. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js.map +1 -1
  180. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js.map +1 -1
  181. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js.map +1 -1
  182. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js +1 -1
  183. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js.map +1 -1
  184. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js +1 -1
  185. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js.map +1 -1
  186. package/dist/node_modules/.pnpm/msw@2.12.8_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/node/index.cjs.js +2 -0
  187. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js.map +1 -1
  188. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/node/index.d.d.ts +3 -3
  189. package/dist/node_modules/.pnpm/msw@2.12.8_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/node/index.js +2 -0
  190. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/node/index.js.map +1 -1
  191. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js.map +1 -1
  192. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js.map +1 -1
  193. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js.map +1 -1
  194. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js.map +1 -1
  195. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/domain.cjs.js.map +1 -1
  196. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/domain.js.map +1 -1
  197. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/extract-hostname.cjs.js.map +1 -1
  198. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/extract-hostname.js.map +1 -1
  199. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/factory.cjs.js.map +1 -1
  200. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/factory.js.map +1 -1
  201. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-ip.cjs.js.map +1 -1
  202. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-ip.js.map +1 -1
  203. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-valid.cjs.js.map +1 -1
  204. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-valid.js.map +1 -1
  205. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/lookup/fast-path.cjs.js.map +1 -1
  206. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js.map +1 -1
  207. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/options.cjs.js.map +1 -1
  208. package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/options.js.map +1 -1
  209. package/dist/node_modules/.pnpm/{tldts@7.0.19 → tldts@7.0.22}/node_modules/tldts/dist/es6/index.cjs.js +1 -1
  210. package/dist/node_modules/.pnpm/{tldts@7.0.19 → tldts@7.0.22}/node_modules/tldts/dist/es6/index.cjs.js.map +1 -1
  211. package/dist/node_modules/.pnpm/{tldts@7.0.19 → tldts@7.0.22}/node_modules/tldts/dist/es6/index.js +1 -1
  212. package/dist/node_modules/.pnpm/{tldts@7.0.19 → tldts@7.0.22}/node_modules/tldts/dist/es6/index.js.map +1 -1
  213. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.cjs.js +2 -0
  214. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.cjs.js.map +1 -0
  215. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.js +2 -0
  216. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.js.map +1 -0
  217. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js +2 -0
  218. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js.map +1 -0
  219. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/suffix-trie.js +2 -0
  220. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/suffix-trie.js.map +1 -0
  221. package/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.cjs.js +1 -1
  222. package/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.js +1 -1
  223. package/dist/node_modules/.pnpm/type-fest@5.4.3/node_modules/type-fest/source/is-equal.d.d.ts +41 -0
  224. package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/is-never.d.d.ts +2 -2
  225. package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/merge.d.d.ts +21 -9
  226. package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/omit-index-signature.d.d.ts +8 -4
  227. package/dist/utilities/apiUtils.cjs.js +2 -0
  228. package/dist/utilities/apiUtils.cjs.js.map +1 -0
  229. package/dist/utilities/apiUtils.d.ts +32 -0
  230. package/dist/utilities/apiUtils.js +2 -0
  231. package/dist/utilities/apiUtils.js.map +1 -0
  232. package/package.json +3 -2
  233. package/dist/components/organisms/AssetManager/types/index.cjs.js +0 -2
  234. package/dist/components/organisms/AssetManager/types/index.cjs.js.map +0 -1
  235. package/dist/components/organisms/AssetManager/types/index.d.ts +0 -36
  236. package/dist/components/organisms/AssetManager/types/index.js +0 -2
  237. package/dist/components/organisms/AssetManager/types/index.js.map +0 -1
  238. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.cjs.js +0 -2
  239. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.cjs.js.map +0 -1
  240. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.js.map +0 -1
  241. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.cjs.js +0 -2
  242. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.cjs.js.map +0 -1
  243. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.js +0 -2
  244. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.js.map +0 -1
  245. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js +0 -2
  246. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js.map +0 -1
  247. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.d.d.ts +0 -225
  248. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js +0 -2
  249. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js.map +0 -1
  250. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-cb9a2eee.d.d.ts +0 -25
  251. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/Interceptor-dc0a39b5.d.d.ts +0 -123
  252. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.cjs.js +0 -2
  253. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.cjs.js.map +0 -1
  254. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.js +0 -2
  255. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.js.map +0 -1
  256. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.cjs.js +0 -2
  257. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.cjs.js.map +0 -1
  258. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.js +0 -2
  259. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.js.map +0 -1
  260. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.cjs.js +0 -2
  261. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.cjs.js.map +0 -1
  262. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.js +0 -2
  263. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.js.map +0 -1
  264. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.cjs.js +0 -2
  265. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.cjs.js.map +0 -1
  266. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.js +0 -2
  267. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.js.map +0 -1
  268. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.cjs.js +0 -2
  269. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.cjs.js.map +0 -1
  270. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.js +0 -2
  271. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.js.map +0 -1
  272. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.cjs.js +0 -2
  273. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.cjs.js.map +0 -1
  274. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.js +0 -2
  275. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.js.map +0 -1
  276. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.cjs.js +0 -2
  277. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.cjs.js.map +0 -1
  278. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.js +0 -2
  279. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.js.map +0 -1
  280. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.cjs.js +0 -2
  281. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.cjs.js.map +0 -1
  282. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.js +0 -2
  283. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.js.map +0 -1
  284. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.cjs.js +0 -2
  285. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.cjs.js.map +0 -1
  286. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.js +0 -2
  287. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.js.map +0 -1
  288. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.cjs.js +0 -2
  289. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.cjs.js.map +0 -1
  290. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.js.map +0 -1
  291. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.cjs.js +0 -2
  292. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.cjs.js.map +0 -1
  293. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.js +0 -2
  294. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.js.map +0 -1
  295. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js +0 -2
  296. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js.map +0 -1
  297. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.d.d.ts +0 -26
  298. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.js +0 -2
  299. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.js.map +0 -1
  300. package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.cjs.js +0 -2
  301. package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.js +0 -2
  302. package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/node/index.cjs.js +0 -2
  303. package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.30_typescript@5.4.5/node_modules/msw/lib/node/index.js +0 -2
  304. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.cjs.js +0 -2
  305. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.cjs.js.map +0 -1
  306. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.js +0 -2
  307. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.js.map +0 -1
  308. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js +0 -2
  309. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js.map +0 -1
  310. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.js +0 -2
  311. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.js.map +0 -1
  312. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js +0 -0
  313. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.d.d.ts +0 -0
  314. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js +0 -0
  315. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js +0 -0
  316. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.d.d.ts +0 -0
  317. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js +0 -0
  318. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js +0 -0
  319. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js +0 -0
  320. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js +0 -0
  321. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/http.js +0 -0
  322. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js +0 -0
  323. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/index.js +0 -0
  324. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js +0 -0
  325. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js +0 -0
  326. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/sharedOptions.d.d.ts +0 -0
  327. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/typeUtils.d.d.ts +0 -0
  328. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js +0 -0
  329. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js +0 -0
  330. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js +0 -0
  331. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js +0 -0
  332. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js +0 -0
  333. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js +0 -0
  334. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js +0 -0
  335. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js +0 -0
  336. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js +0 -0
  337. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.d.d.ts +0 -0
  338. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js +0 -0
  339. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js +0 -0
  340. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js +0 -0
  341. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js +0 -0
  342. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js +0 -0
  343. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js +0 -0
  344. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js +0 -0
  345. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js +0 -0
  346. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js +0 -0
  347. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js +0 -0
  348. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.d.d.ts +0 -0
  349. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js +0 -0
  350. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js +0 -0
  351. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js +0 -0
  352. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js +0 -0
  353. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js +0 -0
  354. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js +0 -0
  355. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js +0 -0
  356. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js +0 -0
  357. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js +0 -0
  358. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js +0 -0
  359. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js +0 -0
  360. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js +0 -0
  361. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js +0 -0
  362. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js +0 -0
  363. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js +0 -0
  364. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js +0 -0
  365. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js +0 -0
  366. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js +0 -0
  367. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js +0 -0
  368. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js +0 -0
  369. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js +0 -0
  370. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.d.ts +0 -0
  371. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js +0 -0
  372. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js +0 -0
  373. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js +0 -0
  374. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js +0 -0
  375. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js +0 -0
  376. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.d.d.ts +0 -0
  377. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js +0 -0
  378. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js +0 -0
  379. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js +0 -0
  380. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js +0 -0
  381. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js +0 -0
  382. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js +0 -0
  383. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js +0 -0
  384. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js +0 -0
  385. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js +0 -0
  386. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js +0 -0
  387. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js +0 -0
  388. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js +0 -0
  389. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js +0 -0
  390. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js +0 -0
  391. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js +0 -0
  392. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js +0 -0
  393. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.30_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.31_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js +0 -0
  394. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/domain.cjs.js +0 -0
  395. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/domain.js +0 -0
  396. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/extract-hostname.cjs.js +0 -0
  397. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/extract-hostname.js +0 -0
  398. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/factory.cjs.js +0 -0
  399. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/factory.js +0 -0
  400. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-ip.cjs.js +0 -0
  401. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-ip.js +0 -0
  402. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-valid.cjs.js +0 -0
  403. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/is-valid.js +0 -0
  404. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/lookup/fast-path.cjs.js +0 -0
  405. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js +0 -0
  406. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/options.cjs.js +0 -0
  407. /package/dist/node_modules/.pnpm/{tldts-core@7.0.19 → tldts-core@7.0.22}/node_modules/tldts-core/dist/es6/src/options.js +0 -0
  408. /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/if.d.d.ts +0 -0
  409. /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/internal/object.d.d.ts +0 -0
  410. /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/internal/type.d.d.ts +0 -0
  411. /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/is-any.d.d.ts +0 -0
  412. /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/is-optional-key-of.d.d.ts +0 -0
  413. /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/optional-keys-of.d.d.ts +0 -0
  414. /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/partial-deep.d.d.ts +0 -0
  415. /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/pick-index-signature.d.d.ts +0 -0
  416. /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/primitive.d.d.ts +0 -0
  417. /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/required-keys-of.d.d.ts +0 -0
  418. /package/dist/node_modules/.pnpm/{type-fest@5.3.1 → type-fest@5.4.3}/node_modules/type-fest/source/simplify.d.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientRequest-Ca8Qykuv.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.mjs"],"sourcesContent":["import { i as RequestController, o as INTERNAL_REQUEST_ID_HEADER_NAME, r as createRequestId, s as Interceptor, t as FetchResponse } from \"./fetchUtils-CoU35g3M.mjs\";\nimport { n as setRawRequest } from \"./getRawRequest-DnwmXyOW.mjs\";\nimport { a as isPropertyAccessible, i as emitAsync, r as isObject, t as handleRequest } from \"./handleRequest-Y97UwBbF.mjs\";\nimport { n as setRawRequestBodyStream } from \"./node-DwCc6iuP.mjs\";\nimport { Logger } from \"@open-draft/logger\";\nimport { invariant } from \"outvariant\";\nimport http, { IncomingMessage, STATUS_CODES, ServerResponse, globalAgent } from \"node:http\";\nimport https, { globalAgent as globalAgent$1 } from \"node:https\";\nimport net from \"node:net\";\nimport { HTTPParser } from \"_http_common\";\nimport { Readable } from \"node:stream\";\nimport { URL as URL$1, parse, urlToHttpOptions } from \"node:url\";\nimport { Agent } from \"http\";\n\n//#region src/interceptors/Socket/utils/normalizeSocketWriteArgs.ts\n/**\n* Normalizes the arguments provided to the `Writable.prototype.write()`\n* and `Writable.prototype.end()`.\n*/\nfunction normalizeSocketWriteArgs(args) {\n\tconst normalized = [\n\t\targs[0],\n\t\tvoid 0,\n\t\tvoid 0\n\t];\n\tif (typeof args[1] === \"string\") normalized[1] = args[1];\n\telse if (typeof args[1] === \"function\") normalized[2] = args[1];\n\tif (typeof args[2] === \"function\") normalized[2] = args[2];\n\treturn normalized;\n}\n\n//#endregion\n//#region src/interceptors/Socket/MockSocket.ts\nvar MockSocket = class extends net.Socket {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.options = options;\n\t\tthis.connecting = false;\n\t\tthis.connect();\n\t\tthis._final = (callback) => {\n\t\t\tcallback(null);\n\t\t};\n\t}\n\tconnect() {\n\t\tthis.connecting = true;\n\t\treturn this;\n\t}\n\twrite(...args) {\n\t\tconst [chunk, encoding, callback] = normalizeSocketWriteArgs(args);\n\t\tthis.options.write(chunk, encoding, callback);\n\t\treturn true;\n\t}\n\tend(...args) {\n\t\tconst [chunk, encoding, callback] = normalizeSocketWriteArgs(args);\n\t\tthis.options.write(chunk, encoding, callback);\n\t\treturn super.end.apply(this, args);\n\t}\n\tpush(chunk, encoding) {\n\t\tthis.options.read(chunk, encoding);\n\t\treturn super.push(chunk, encoding);\n\t}\n};\n\n//#endregion\n//#region src/interceptors/Socket/utils/baseUrlFromConnectionOptions.ts\nfunction baseUrlFromConnectionOptions(options) {\n\tif (\"href\" in options) return new URL(options.href);\n\tconst protocol = options.port === 443 ? \"https:\" : \"http:\";\n\tconst host = options.host;\n\tconst url = new URL(`${protocol}//${host}`);\n\tif (options.port) url.port = options.port.toString();\n\tif (options.path) url.pathname = options.path;\n\tif (options.auth) {\n\t\tconst [username, password] = options.auth.split(\":\");\n\t\turl.username = username;\n\t\turl.password = password;\n\t}\n\treturn url;\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/recordRawHeaders.ts\nconst kRawHeaders = Symbol(\"kRawHeaders\");\nconst kRestorePatches = Symbol(\"kRestorePatches\");\nfunction recordRawHeader(headers, args, behavior) {\n\tensureRawHeadersSymbol(headers, []);\n\tconst rawHeaders = Reflect.get(headers, kRawHeaders);\n\tif (behavior === \"set\") {\n\t\tfor (let index = rawHeaders.length - 1; index >= 0; index--) if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) rawHeaders.splice(index, 1);\n\t}\n\trawHeaders.push(args);\n}\n/**\n* Define the raw headers symbol on the given `Headers` instance.\n* If the symbol already exists, this function does nothing.\n*/\nfunction ensureRawHeadersSymbol(headers, rawHeaders) {\n\tif (Reflect.has(headers, kRawHeaders)) return;\n\tdefineRawHeadersSymbol(headers, rawHeaders);\n}\n/**\n* Define the raw headers symbol on the given `Headers` instance.\n* If the symbol already exists, it gets overridden.\n*/\nfunction defineRawHeadersSymbol(headers, rawHeaders) {\n\tObject.defineProperty(headers, kRawHeaders, {\n\t\tvalue: rawHeaders,\n\t\tenumerable: false,\n\t\tconfigurable: true\n\t});\n}\n/**\n* Patch the global `Headers` class to store raw headers.\n* This is for compatibility with `IncomingMessage.prototype.rawHeaders`.\n*\n* @note Node.js has their own raw headers symbol but it\n* only records the first header name in case of multi-value headers.\n* Any other headers are normalized before comparing. This makes it\n* incompatible with the `rawHeaders` format.\n*\n* let h = new Headers()\n* h.append('X-Custom', 'one')\n* h.append('x-custom', 'two')\n* h[Symbol('headers map')] // Map { 'X-Custom' => 'one, two' }\n*/\nfunction recordRawFetchHeaders() {\n\tif (Reflect.get(Headers, kRestorePatches)) return Reflect.get(Headers, kRestorePatches);\n\tconst { Headers: OriginalHeaders, Request: OriginalRequest, Response: OriginalResponse } = globalThis;\n\tconst { set, append, delete: headersDeleteMethod } = Headers.prototype;\n\tObject.defineProperty(Headers, kRestorePatches, {\n\t\tvalue: () => {\n\t\t\tHeaders.prototype.set = set;\n\t\t\tHeaders.prototype.append = append;\n\t\t\tHeaders.prototype.delete = headersDeleteMethod;\n\t\t\tglobalThis.Headers = OriginalHeaders;\n\t\t\tglobalThis.Request = OriginalRequest;\n\t\t\tglobalThis.Response = OriginalResponse;\n\t\t\tReflect.deleteProperty(Headers, kRestorePatches);\n\t\t},\n\t\tenumerable: false,\n\t\tconfigurable: true\n\t});\n\tObject.defineProperty(globalThis, \"Headers\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Headers, { construct(target, args, newTarget) {\n\t\t\tconst headersInit = args[0] || [];\n\t\t\tif (headersInit instanceof Headers && Reflect.has(headersInit, kRawHeaders)) {\n\t\t\t\tconst headers$1 = Reflect.construct(target, [Reflect.get(headersInit, kRawHeaders)], newTarget);\n\t\t\t\tensureRawHeadersSymbol(headers$1, [...Reflect.get(headersInit, kRawHeaders)]);\n\t\t\t\treturn headers$1;\n\t\t\t}\n\t\t\tconst headers = Reflect.construct(target, args, newTarget);\n\t\t\tif (!Reflect.has(headers, kRawHeaders)) ensureRawHeadersSymbol(headers, Array.isArray(headersInit) ? headersInit : Object.entries(headersInit));\n\t\t\treturn headers;\n\t\t} })\n\t});\n\tHeaders.prototype.set = new Proxy(Headers.prototype.set, { apply(target, thisArg, args) {\n\t\trecordRawHeader(thisArg, args, \"set\");\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tHeaders.prototype.append = new Proxy(Headers.prototype.append, { apply(target, thisArg, args) {\n\t\trecordRawHeader(thisArg, args, \"append\");\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tHeaders.prototype.delete = new Proxy(Headers.prototype.delete, { apply(target, thisArg, args) {\n\t\tconst rawHeaders = Reflect.get(thisArg, kRawHeaders);\n\t\tif (rawHeaders) {\n\t\t\tfor (let index = rawHeaders.length - 1; index >= 0; index--) if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) rawHeaders.splice(index, 1);\n\t\t}\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tObject.defineProperty(globalThis, \"Request\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Request, { construct(target, args, newTarget) {\n\t\t\tconst request = Reflect.construct(target, args, newTarget);\n\t\t\tconst inferredRawHeaders = [];\n\t\t\tif (typeof args[0] === \"object\" && args[0].headers != null) inferredRawHeaders.push(...inferRawHeaders(args[0].headers));\n\t\t\tif (typeof args[1] === \"object\" && args[1].headers != null) inferredRawHeaders.push(...inferRawHeaders(args[1].headers));\n\t\t\tif (inferredRawHeaders.length > 0) ensureRawHeadersSymbol(request.headers, inferredRawHeaders);\n\t\t\treturn request;\n\t\t} })\n\t});\n\tObject.defineProperty(globalThis, \"Response\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Response, { construct(target, args, newTarget) {\n\t\t\tconst response = Reflect.construct(target, args, newTarget);\n\t\t\tif (typeof args[1] === \"object\" && args[1].headers != null) ensureRawHeadersSymbol(response.headers, inferRawHeaders(args[1].headers));\n\t\t\treturn response;\n\t\t} })\n\t});\n}\nfunction restoreHeadersPrototype() {\n\tif (!Reflect.get(Headers, kRestorePatches)) return;\n\tReflect.get(Headers, kRestorePatches)();\n}\nfunction getRawFetchHeaders(headers) {\n\tif (!Reflect.has(headers, kRawHeaders)) return Array.from(headers.entries());\n\tconst rawHeaders = Reflect.get(headers, kRawHeaders);\n\treturn rawHeaders.length > 0 ? rawHeaders : Array.from(headers.entries());\n}\n/**\n* Infers the raw headers from the given `HeadersInit` provided\n* to the Request/Response constructor.\n*\n* If the `init.headers` is a Headers instance, use it directly.\n* That means the headers were created standalone and already have\n* the raw headers stored.\n* If the `init.headers` is a HeadersInit, create a new Headers\n* instance out of it.\n*/\nfunction inferRawHeaders(headers) {\n\tif (headers instanceof Headers) return Reflect.get(headers, kRawHeaders) || [];\n\treturn Reflect.get(new Headers(headers), kRawHeaders);\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/parserUtils.ts\n/**\n* @see https://github.com/nodejs/node/blob/f3adc11e37b8bfaaa026ea85c1cf22e3a0e29ae9/lib/_http_common.js#L180\n*/\nfunction freeParser(parser, socket) {\n\tif (parser._consumed) parser.unconsume();\n\tparser._headers = [];\n\tparser._url = \"\";\n\tparser.socket = null;\n\tparser.incoming = null;\n\tparser.outgoing = null;\n\tparser.maxHeaderPairs = 2e3;\n\tparser._consumed = false;\n\tparser.onIncoming = null;\n\tparser[HTTPParser.kOnHeaders] = null;\n\tparser[HTTPParser.kOnHeadersComplete] = null;\n\tparser[HTTPParser.kOnMessageBegin] = null;\n\tparser[HTTPParser.kOnMessageComplete] = null;\n\tparser[HTTPParser.kOnBody] = null;\n\tparser[HTTPParser.kOnExecute] = null;\n\tparser[HTTPParser.kOnTimeout] = null;\n\tparser.remove();\n\tparser.free();\n\tif (socket)\n /**\n\t* @note Unassigning the socket's parser will fail this assertion\n\t* if there's still some data being processed on the socket:\n\t* @see https://github.com/nodejs/node/blob/4e1f39b678b37017ac9baa0971e3aeecd3b67b51/lib/_http_client.js#L613\n\t*/\n\tif (socket.destroyed) socket.parser = null;\n\telse socket.once(\"end\", () => {\n\t\tsocket.parser = null;\n\t});\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/MockHttpSocket.ts\nconst kRequestId = Symbol(\"kRequestId\");\nvar MockHttpSocket = class extends MockSocket {\n\tconstructor(options) {\n\t\tsuper({\n\t\t\twrite: (chunk, encoding, callback) => {\n\t\t\t\tif (this.socketState !== \"passthrough\") this.writeBuffer.push([\n\t\t\t\t\tchunk,\n\t\t\t\t\tencoding,\n\t\t\t\t\tcallback\n\t\t\t\t]);\n\t\t\t\tif (chunk) {\n\t\t\t\t\t/**\n\t\t\t\t\t* Forward any writes to the mock socket to the underlying original socket.\n\t\t\t\t\t* This ensures functional duplex connections, like WebSocket.\n\t\t\t\t\t* @see https://github.com/mswjs/interceptors/issues/682\n\t\t\t\t\t*/\n\t\t\t\t\tif (this.socketState === \"passthrough\") this.originalSocket?.write(chunk, encoding, callback);\n\t\t\t\t\tthis.requestParser.execute(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk, encoding));\n\t\t\t\t}\n\t\t\t},\n\t\t\tread: (chunk) => {\n\t\t\t\tif (chunk !== null)\n /**\n\t\t\t\t* @todo We need to free the parser if the connection has been\n\t\t\t\t* upgraded to a non-HTTP protocol. It won't be able to parse data\n\t\t\t\t* from that point onward anyway. No need to keep it in memory.\n\t\t\t\t*/\n\t\t\t\tthis.responseParser.execute(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));\n\t\t\t}\n\t\t});\n\t\tthis.requestRawHeadersBuffer = [];\n\t\tthis.responseRawHeadersBuffer = [];\n\t\tthis.writeBuffer = [];\n\t\tthis.socketState = \"unknown\";\n\t\tthis.onRequestHeaders = (rawHeaders) => {\n\t\t\tthis.requestRawHeadersBuffer.push(...rawHeaders);\n\t\t};\n\t\tthis.onRequestStart = (versionMajor, versionMinor, rawHeaders, _, path, __, ___, ____, shouldKeepAlive) => {\n\t\t\tthis.shouldKeepAlive = shouldKeepAlive;\n\t\t\tconst url = new URL(path || \"\", this.baseUrl);\n\t\t\tconst method = this.connectionOptions.method?.toUpperCase() || \"GET\";\n\t\t\tconst headers = FetchResponse.parseRawHeaders([...this.requestRawHeadersBuffer, ...rawHeaders || []]);\n\t\t\tthis.requestRawHeadersBuffer.length = 0;\n\t\t\tconst canHaveBody = method !== \"GET\" && method !== \"HEAD\";\n\t\t\tif (url.username || url.password) {\n\t\t\t\tif (!headers.has(\"authorization\")) headers.set(\"authorization\", `Basic ${url.username}:${url.password}`);\n\t\t\t\turl.username = \"\";\n\t\t\t\turl.password = \"\";\n\t\t\t}\n\t\t\tthis.requestStream = new Readable({ read: () => {\n\t\t\t\tthis.flushWriteBuffer();\n\t\t\t} });\n\t\t\tconst requestId = createRequestId();\n\t\t\tthis.request = new Request(url, {\n\t\t\t\tmethod,\n\t\t\t\theaders,\n\t\t\t\tcredentials: \"same-origin\",\n\t\t\t\tduplex: canHaveBody ? \"half\" : void 0,\n\t\t\t\tbody: canHaveBody ? Readable.toWeb(this.requestStream) : null\n\t\t\t});\n\t\t\tReflect.set(this.request, kRequestId, requestId);\n\t\t\tsetRawRequest(this.request, Reflect.get(this, \"_httpMessage\"));\n\t\t\tsetRawRequestBodyStream(this.request, this.requestStream);\n\t\t\t/**\n\t\t\t* @fixme Stop relying on the \"X-Request-Id\" request header\n\t\t\t* to figure out if one interceptor has been invoked within another.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/378\n\t\t\t*/\n\t\t\tif (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) {\n\t\t\t\tthis.passthrough();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.onRequest({\n\t\t\t\trequestId,\n\t\t\t\trequest: this.request,\n\t\t\t\tsocket: this\n\t\t\t});\n\t\t};\n\t\tthis.onResponseHeaders = (rawHeaders) => {\n\t\t\tthis.responseRawHeadersBuffer.push(...rawHeaders);\n\t\t};\n\t\tthis.onResponseStart = (versionMajor, versionMinor, rawHeaders, method, url, status, statusText) => {\n\t\t\tconst headers = FetchResponse.parseRawHeaders([...this.responseRawHeadersBuffer, ...rawHeaders || []]);\n\t\t\tthis.responseRawHeadersBuffer.length = 0;\n\t\t\tconst response = new FetchResponse(\n\t\t\t\t/**\n\t\t\t\t* @note The Fetch API response instance exposed to the consumer\n\t\t\t\t* is created over the response stream of the HTTP parser. It is NOT\n\t\t\t\t* related to the Socket instance. This way, you can read response body\n\t\t\t\t* in response listener while the Socket instance delays the emission\n\t\t\t\t* of \"end\" and other events until those response listeners are finished.\n\t\t\t\t*/\n\t\t\t\tFetchResponse.isResponseWithBody(status) ? Readable.toWeb(this.responseStream = new Readable({ read() {} })) : null,\n\t\t\t\t{\n\t\t\t\t\turl,\n\t\t\t\t\tstatus,\n\t\t\t\t\tstatusText,\n\t\t\t\t\theaders\n\t\t\t\t}\n\t\t\t);\n\t\t\tinvariant(this.request, \"Failed to handle a response: request does not exist\");\n\t\t\tFetchResponse.setUrl(this.request.url, response);\n\t\t\t/**\n\t\t\t* @fixme Stop relying on the \"X-Request-Id\" request header\n\t\t\t* to figure out if one interceptor has been invoked within another.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/378\n\t\t\t*/\n\t\t\tif (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) return;\n\t\t\tthis.responseListenersPromise = this.onResponse({\n\t\t\t\tresponse,\n\t\t\t\tisMockedResponse: this.socketState === \"mock\",\n\t\t\t\trequestId: Reflect.get(this.request, kRequestId),\n\t\t\t\trequest: this.request,\n\t\t\t\tsocket: this\n\t\t\t});\n\t\t};\n\t\tthis.connectionOptions = options.connectionOptions;\n\t\tthis.createConnection = options.createConnection;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t\tthis.baseUrl = baseUrlFromConnectionOptions(this.connectionOptions);\n\t\tthis.requestParser = new HTTPParser();\n\t\tthis.requestParser.initialize(HTTPParser.REQUEST, {});\n\t\tthis.requestParser[HTTPParser.kOnHeaders] = this.onRequestHeaders.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnHeadersComplete] = this.onRequestStart.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnBody] = this.onRequestBody.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnMessageComplete] = this.onRequestEnd.bind(this);\n\t\tthis.responseParser = new HTTPParser();\n\t\tthis.responseParser.initialize(HTTPParser.RESPONSE, {});\n\t\tthis.responseParser[HTTPParser.kOnHeaders] = this.onResponseHeaders.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnHeadersComplete] = this.onResponseStart.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnBody] = this.onResponseBody.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnMessageComplete] = this.onResponseEnd.bind(this);\n\t\tthis.once(\"finish\", () => freeParser(this.requestParser, this));\n\t\tif (this.baseUrl.protocol === \"https:\") {\n\t\t\tReflect.set(this, \"encrypted\", true);\n\t\t\tReflect.set(this, \"authorized\", false);\n\t\t\tReflect.set(this, \"getProtocol\", () => \"TLSv1.3\");\n\t\t\tReflect.set(this, \"getSession\", () => void 0);\n\t\t\tReflect.set(this, \"isSessionReused\", () => false);\n\t\t\tReflect.set(this, \"getCipher\", () => ({\n\t\t\t\tname: \"AES256-SHA\",\n\t\t\t\tstandardName: \"TLS_RSA_WITH_AES_256_CBC_SHA\",\n\t\t\t\tversion: \"TLSv1.3\"\n\t\t\t}));\n\t\t}\n\t}\n\temit(event, ...args) {\n\t\tconst emitEvent = super.emit.bind(this, event, ...args);\n\t\tif (this.responseListenersPromise) {\n\t\t\tthis.responseListenersPromise.finally(emitEvent);\n\t\t\treturn this.listenerCount(event) > 0;\n\t\t}\n\t\treturn emitEvent();\n\t}\n\tdestroy(error) {\n\t\tfreeParser(this.responseParser, this);\n\t\tif (error) this.emit(\"error\", error);\n\t\treturn super.destroy(error);\n\t}\n\t/**\n\t* Establish this Socket connection as-is and pipe\n\t* its data/events through this Socket.\n\t*/\n\tpassthrough() {\n\t\tthis.socketState = \"passthrough\";\n\t\tif (this.destroyed) return;\n\t\tconst socket = this.createConnection();\n\t\tthis.originalSocket = socket;\n\t\t/**\n\t\t* @note Inherit the original socket's connection handle.\n\t\t* Without this, each push to the mock socket results in a\n\t\t* new \"connection\" listener being added (i.e. buffering pushes).\n\t\t* @see https://github.com/nodejs/node/blob/b18153598b25485ce4f54d0c5cb830a9457691ee/lib/net.js#L734\n\t\t*/\n\t\tif (\"_handle\" in socket) Object.defineProperty(this, \"_handle\", {\n\t\t\tvalue: socket._handle,\n\t\t\tenumerable: true,\n\t\t\twritable: true\n\t\t});\n\t\tthis.once(\"close\", () => {\n\t\t\tsocket.removeAllListeners();\n\t\t\tif (!socket.destroyed) socket.destroy();\n\t\t\tthis.originalSocket = void 0;\n\t\t});\n\t\tthis.address = socket.address.bind(socket);\n\t\tlet writeArgs;\n\t\tlet headersWritten = false;\n\t\twhile (writeArgs = this.writeBuffer.shift()) if (writeArgs !== void 0) {\n\t\t\tif (!headersWritten) {\n\t\t\t\tconst [chunk, encoding, callback] = writeArgs;\n\t\t\t\tconst chunkString = chunk.toString();\n\t\t\t\tconst chunkBeforeRequestHeaders = chunkString.slice(0, chunkString.indexOf(\"\\r\\n\") + 2);\n\t\t\t\tconst chunkAfterRequestHeaders = chunkString.slice(chunk.indexOf(\"\\r\\n\\r\\n\"));\n\t\t\t\tconst headersChunk = `${chunkBeforeRequestHeaders}${getRawFetchHeaders(this.request.headers).filter(([name]) => {\n\t\t\t\t\treturn name.toLowerCase() !== INTERNAL_REQUEST_ID_HEADER_NAME;\n\t\t\t\t}).map(([name, value]) => `${name}: ${value}`).join(\"\\r\\n\")}${chunkAfterRequestHeaders}`;\n\t\t\t\tsocket.write(headersChunk, encoding, callback);\n\t\t\t\theadersWritten = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsocket.write(...writeArgs);\n\t\t}\n\t\tif (Reflect.get(socket, \"encrypted\")) [\n\t\t\t\"encrypted\",\n\t\t\t\"authorized\",\n\t\t\t\"getProtocol\",\n\t\t\t\"getSession\",\n\t\t\t\"isSessionReused\",\n\t\t\t\"getCipher\"\n\t\t].forEach((propertyName) => {\n\t\t\tObject.defineProperty(this, propertyName, {\n\t\t\t\tenumerable: true,\n\t\t\t\tget: () => {\n\t\t\t\t\tconst value = Reflect.get(socket, propertyName);\n\t\t\t\t\treturn typeof value === \"function\" ? value.bind(socket) : value;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t\tsocket.on(\"lookup\", (...args) => this.emit(\"lookup\", ...args)).on(\"connect\", () => {\n\t\t\tthis.connecting = socket.connecting;\n\t\t\tthis.emit(\"connect\");\n\t\t}).on(\"secureConnect\", () => this.emit(\"secureConnect\")).on(\"secure\", () => this.emit(\"secure\")).on(\"session\", (session) => this.emit(\"session\", session)).on(\"ready\", () => this.emit(\"ready\")).on(\"drain\", () => this.emit(\"drain\")).on(\"data\", (chunk) => {\n\t\t\tthis.push(chunk);\n\t\t}).on(\"error\", (error) => {\n\t\t\tReflect.set(this, \"_hadError\", Reflect.get(socket, \"_hadError\"));\n\t\t\tthis.emit(\"error\", error);\n\t\t}).on(\"resume\", () => this.emit(\"resume\")).on(\"timeout\", () => this.emit(\"timeout\")).on(\"prefinish\", () => this.emit(\"prefinish\")).on(\"finish\", () => this.emit(\"finish\")).on(\"close\", (hadError) => this.emit(\"close\", hadError)).on(\"end\", () => this.emit(\"end\"));\n\t}\n\t/**\n\t* Convert the given Fetch API `Response` instance to an\n\t* HTTP message and push it to the socket.\n\t*/\n\tasync respondWith(response) {\n\t\tif (this.destroyed) return;\n\t\tinvariant(this.socketState !== \"mock\", \"[MockHttpSocket] Failed to respond to the \\\"%s %s\\\" request with \\\"%s %s\\\": the request has already been handled\", this.request?.method, this.request?.url, response.status, response.statusText);\n\t\tif (isPropertyAccessible(response, \"type\") && response.type === \"error\") {\n\t\t\tthis.errorWith(/* @__PURE__ */ new TypeError(\"Network error\"));\n\t\t\treturn;\n\t\t}\n\t\tthis.mockConnect();\n\t\tthis.socketState = \"mock\";\n\t\tthis.flushWriteBuffer();\n\t\tconst serverResponse = new ServerResponse(new IncomingMessage(this));\n\t\t/**\n\t\t* Assign a mock socket instance to the server response to\n\t\t* spy on the response chunk writes. Push the transformed response chunks\n\t\t* to this `MockHttpSocket` instance to trigger the \"data\" event.\n\t\t* @note Providing the same `MockSocket` instance when creating `ServerResponse`\n\t\t* does not have the same effect.\n\t\t* @see https://github.com/nodejs/node/blob/10099bb3f7fd97bb9dd9667188426866b3098e07/test/parallel/test-http-server-response-standalone.js#L32\n\t\t*/\n\t\tserverResponse.assignSocket(new MockSocket({\n\t\t\twrite: (chunk, encoding, callback) => {\n\t\t\t\tthis.push(chunk, encoding);\n\t\t\t\tcallback?.();\n\t\t\t},\n\t\t\tread() {}\n\t\t}));\n\t\t/**\n\t\t* @note Remove the `Connection` and `Date` response headers\n\t\t* injected by `ServerResponse` by default. Those are required\n\t\t* from the server but the interceptor is NOT technically a server.\n\t\t* It's confusing to add response headers that the developer didn't\n\t\t* specify themselves. They can always add these if they wish.\n\t\t* @see https://www.rfc-editor.org/rfc/rfc9110#field.date\n\t\t* @see https://www.rfc-editor.org/rfc/rfc9110#field.connection\n\t\t*/\n\t\tserverResponse.removeHeader(\"connection\");\n\t\tserverResponse.removeHeader(\"date\");\n\t\tconst rawResponseHeaders = getRawFetchHeaders(response.headers);\n\t\t/**\n\t\t* @note Call `.writeHead` in order to set the raw response headers\n\t\t* in the same case as they were provided by the developer. Using\n\t\t* `.setHeader()`/`.appendHeader()` normalizes header names.\n\t\t*/\n\t\tserverResponse.writeHead(response.status, response.statusText || STATUS_CODES[response.status], rawResponseHeaders);\n\t\tthis.once(\"error\", () => {\n\t\t\tserverResponse.destroy();\n\t\t});\n\t\tif (response.body) try {\n\t\t\tconst reader = response.body.getReader();\n\t\t\twhile (true) {\n\t\t\t\tconst { done, value } = await reader.read();\n\t\t\t\tif (done) {\n\t\t\t\t\tserverResponse.end();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tserverResponse.write(value);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tif (error instanceof Error) {\n\t\t\t\tserverResponse.destroy();\n\t\t\t\t/**\n\t\t\t\t* @note Destroy the request socket gracefully.\n\t\t\t\t* Response stream errors do NOT produce request errors.\n\t\t\t\t*/\n\t\t\t\tthis.destroy();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tserverResponse.destroy();\n\t\t\tthrow error;\n\t\t}\n\t\telse serverResponse.end();\n\t\tif (!this.shouldKeepAlive) {\n\t\t\tthis.emit(\"readable\");\n\t\t\t/**\n\t\t\t* @todo @fixme This is likely a hack.\n\t\t\t* Since we push null to the socket, it never propagates to the\n\t\t\t* parser, and the parser never calls \"onResponseEnd\" to close\n\t\t\t* the response stream. We are closing the stream here manually\n\t\t\t* but that shouldn't be the case.\n\t\t\t*/\n\t\t\tthis.responseStream?.push(null);\n\t\t\tthis.push(null);\n\t\t}\n\t}\n\t/**\n\t* Close this socket connection with the given error.\n\t*/\n\terrorWith(error) {\n\t\tthis.destroy(error);\n\t}\n\tmockConnect() {\n\t\tthis.connecting = false;\n\t\tconst isIPv6 = net.isIPv6(this.connectionOptions.hostname) || this.connectionOptions.family === 6;\n\t\tconst addressInfo = {\n\t\t\taddress: isIPv6 ? \"::1\" : \"127.0.0.1\",\n\t\t\tfamily: isIPv6 ? \"IPv6\" : \"IPv4\",\n\t\t\tport: this.connectionOptions.port\n\t\t};\n\t\tthis.address = () => addressInfo;\n\t\tthis.emit(\"lookup\", null, addressInfo.address, addressInfo.family === \"IPv6\" ? 6 : 4, this.connectionOptions.host);\n\t\tthis.emit(\"connect\");\n\t\tthis.emit(\"ready\");\n\t\tif (this.baseUrl.protocol === \"https:\") {\n\t\t\tthis.emit(\"secure\");\n\t\t\tthis.emit(\"secureConnect\");\n\t\t\tthis.emit(\"session\", this.connectionOptions.session || Buffer.from(\"mock-session-renegotiate\"));\n\t\t\tthis.emit(\"session\", Buffer.from(\"mock-session-resume\"));\n\t\t}\n\t}\n\tflushWriteBuffer() {\n\t\tfor (const writeCall of this.writeBuffer) if (typeof writeCall[2] === \"function\") {\n\t\t\twriteCall[2]();\n\t\t\t/**\n\t\t\t* @note Remove the callback from the write call\n\t\t\t* so it doesn't get called twice on passthrough\n\t\t\t* if `request.end()` was called within `request.write()`.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/684\n\t\t\t*/\n\t\t\twriteCall[2] = void 0;\n\t\t}\n\t}\n\tonRequestBody(chunk) {\n\t\tinvariant(this.requestStream, \"Failed to write to a request stream: stream does not exist\");\n\t\tthis.requestStream.push(chunk);\n\t}\n\tonRequestEnd() {\n\t\tif (this.requestStream) this.requestStream.push(null);\n\t}\n\tonResponseBody(chunk) {\n\t\tinvariant(this.responseStream, \"Failed to write to a response stream: stream does not exist\");\n\t\tthis.responseStream.push(chunk);\n\t}\n\tonResponseEnd() {\n\t\tif (this.responseStream) this.responseStream.push(null);\n\t}\n};\n\n//#endregion\n//#region src/interceptors/ClientRequest/agents.ts\nvar MockAgent = class extends http.Agent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.customAgent = options.customAgent;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t}\n\tcreateConnection(options, callback) {\n\t\tconst createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n\t\tconst createConnectionOptions = this.customAgent instanceof http.Agent ? {\n\t\t\t...options,\n\t\t\t...this.customAgent.options\n\t\t} : options;\n\t\treturn new MockHttpSocket({\n\t\t\tconnectionOptions: options,\n\t\t\tcreateConnection: createConnection.bind(this.customAgent || this, createConnectionOptions, callback),\n\t\t\tonRequest: this.onRequest.bind(this),\n\t\t\tonResponse: this.onResponse.bind(this)\n\t\t});\n\t}\n};\nvar MockHttpsAgent = class extends https.Agent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.customAgent = options.customAgent;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t}\n\tcreateConnection(options, callback) {\n\t\tconst createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n\t\tconst createConnectionOptions = this.customAgent instanceof http.Agent ? {\n\t\t\t...options,\n\t\t\t...this.customAgent.options\n\t\t} : options;\n\t\treturn new MockHttpSocket({\n\t\t\tconnectionOptions: options,\n\t\t\tcreateConnection: createConnection.bind(this.customAgent || this, createConnectionOptions, callback),\n\t\t\tonRequest: this.onRequest.bind(this),\n\t\t\tonResponse: this.onResponse.bind(this)\n\t\t});\n\t}\n};\n\n//#endregion\n//#region src/utils/getUrlByRequestOptions.ts\nconst logger$2 = new Logger(\"utils getUrlByRequestOptions\");\nconst DEFAULT_PATH = \"/\";\nconst DEFAULT_PROTOCOL = \"http:\";\nconst DEFAULT_HOSTNAME = \"localhost\";\nconst SSL_PORT = 443;\nfunction getAgent(options) {\n\treturn options.agent instanceof Agent ? options.agent : void 0;\n}\nfunction getProtocolByRequestOptions(options) {\n\tif (options.protocol) return options.protocol;\n\tconst agentProtocol = getAgent(options)?.protocol;\n\tif (agentProtocol) return agentProtocol;\n\tconst port = getPortByRequestOptions(options);\n\treturn options.cert || port === SSL_PORT ? \"https:\" : options.uri?.protocol || DEFAULT_PROTOCOL;\n}\nfunction getPortByRequestOptions(options) {\n\tif (options.port) return Number(options.port);\n\tconst agent = getAgent(options);\n\tif (agent?.options.port) return Number(agent.options.port);\n\tif (agent?.defaultPort) return Number(agent.defaultPort);\n}\nfunction getAuthByRequestOptions(options) {\n\tif (options.auth) {\n\t\tconst [username, password] = options.auth.split(\":\");\n\t\treturn {\n\t\t\tusername,\n\t\t\tpassword\n\t\t};\n\t}\n}\n/**\n* Returns true if host looks like an IPv6 address without surrounding brackets\n* It assumes any host containing `:` is definitely not IPv4 and probably IPv6,\n* but note that this could include invalid IPv6 addresses as well.\n*/\nfunction isRawIPv6Address(host) {\n\treturn host.includes(\":\") && !host.startsWith(\"[\") && !host.endsWith(\"]\");\n}\nfunction getHostname(options) {\n\tlet host = options.hostname || options.host;\n\tif (host) {\n\t\tif (isRawIPv6Address(host)) host = `[${host}]`;\n\t\treturn new URL(`http://${host}`).hostname;\n\t}\n\treturn DEFAULT_HOSTNAME;\n}\n/**\n* Creates a `URL` instance from a given `RequestOptions` object.\n*/\nfunction getUrlByRequestOptions(options) {\n\tlogger$2.info(\"request options\", options);\n\tif (options.uri) {\n\t\tlogger$2.info(\"constructing url from explicitly provided \\\"options.uri\\\": %s\", options.uri);\n\t\treturn new URL(options.uri.href);\n\t}\n\tlogger$2.info(\"figuring out url from request options...\");\n\tconst protocol = getProtocolByRequestOptions(options);\n\tlogger$2.info(\"protocol\", protocol);\n\tconst port = getPortByRequestOptions(options);\n\tlogger$2.info(\"port\", port);\n\tconst hostname = getHostname(options);\n\tlogger$2.info(\"hostname\", hostname);\n\tconst path = options.path || DEFAULT_PATH;\n\tlogger$2.info(\"path\", path);\n\tconst credentials = getAuthByRequestOptions(options);\n\tlogger$2.info(\"credentials\", credentials);\n\tconst authString = credentials ? `${credentials.username}:${credentials.password}@` : \"\";\n\tlogger$2.info(\"auth string:\", authString);\n\tconst portString = typeof port !== \"undefined\" ? `:${port}` : \"\";\n\tconst url = new URL(`${protocol}//${hostname}${portString}${path}`);\n\turl.username = credentials?.username || \"\";\n\turl.password = credentials?.password || \"\";\n\tlogger$2.info(\"created url:\", url);\n\treturn url;\n}\n\n//#endregion\n//#region src/utils/cloneObject.ts\nconst logger$1 = new Logger(\"cloneObject\");\nfunction isPlainObject(obj) {\n\tlogger$1.info(\"is plain object?\", obj);\n\tif (obj == null || !obj.constructor?.name) {\n\t\tlogger$1.info(\"given object is undefined, not a plain object...\");\n\t\treturn false;\n\t}\n\tlogger$1.info(\"checking the object constructor:\", obj.constructor.name);\n\treturn obj.constructor.name === \"Object\";\n}\nfunction cloneObject(obj) {\n\tlogger$1.info(\"cloning object:\", obj);\n\tconst enumerableProperties = Object.entries(obj).reduce((acc, [key, value]) => {\n\t\tlogger$1.info(\"analyzing key-value pair:\", key, value);\n\t\tacc[key] = isPlainObject(value) ? cloneObject(value) : value;\n\t\treturn acc;\n\t}, {});\n\treturn isPlainObject(obj) ? enumerableProperties : Object.assign(Object.getPrototypeOf(obj), enumerableProperties);\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/normalizeClientRequestArgs.ts\nconst logger = new Logger(\"http normalizeClientRequestArgs\");\nfunction resolveRequestOptions(args, url) {\n\tif (typeof args[1] === \"undefined\" || typeof args[1] === \"function\") {\n\t\tlogger.info(\"request options not provided, deriving from the url\", url);\n\t\treturn urlToHttpOptions(url);\n\t}\n\tif (args[1]) {\n\t\tlogger.info(\"has custom RequestOptions!\", args[1]);\n\t\tconst requestOptionsFromUrl = urlToHttpOptions(url);\n\t\tlogger.info(\"derived RequestOptions from the URL:\", requestOptionsFromUrl);\n\t\t/**\n\t\t* Clone the request options to lock their state\n\t\t* at the moment they are provided to `ClientRequest`.\n\t\t* @see https://github.com/mswjs/interceptors/issues/86\n\t\t*/\n\t\tlogger.info(\"cloning RequestOptions...\");\n\t\tconst clonedRequestOptions = cloneObject(args[1]);\n\t\tlogger.info(\"successfully cloned RequestOptions!\", clonedRequestOptions);\n\t\treturn {\n\t\t\t...requestOptionsFromUrl,\n\t\t\t...clonedRequestOptions\n\t\t};\n\t}\n\tlogger.info(\"using an empty object as request options\");\n\treturn {};\n}\n/**\n* Overrides the given `URL` instance with the explicit properties provided\n* on the `RequestOptions` object. The options object takes precedence,\n* and will replace URL properties like \"host\", \"path\", and \"port\", if specified.\n*/\nfunction overrideUrlByRequestOptions(url, options) {\n\turl.host = options.host || url.host;\n\turl.hostname = options.hostname || url.hostname;\n\turl.port = options.port ? options.port.toString() : url.port;\n\tif (options.path) {\n\t\tconst parsedOptionsPath = parse(options.path, false);\n\t\turl.pathname = parsedOptionsPath.pathname || \"\";\n\t\turl.search = parsedOptionsPath.search || \"\";\n\t}\n\treturn url;\n}\nfunction resolveCallback(args) {\n\treturn typeof args[1] === \"function\" ? args[1] : args[2];\n}\n/**\n* Normalizes parameters given to a `http.request` call\n* so it always has a `URL` and `RequestOptions`.\n*/\nfunction normalizeClientRequestArgs(defaultProtocol, args) {\n\tlet url;\n\tlet options;\n\tlet callback;\n\tlogger.info(\"arguments\", args);\n\tlogger.info(\"using default protocol:\", defaultProtocol);\n\tif (args.length === 0) {\n\t\tconst url$1 = new URL$1(\"http://localhost\");\n\t\treturn [url$1, resolveRequestOptions(args, url$1)];\n\t}\n\tif (typeof args[0] === \"string\") {\n\t\tlogger.info(\"first argument is a location string:\", args[0]);\n\t\turl = new URL$1(args[0]);\n\t\tlogger.info(\"created a url:\", url);\n\t\tconst requestOptionsFromUrl = urlToHttpOptions(url);\n\t\tlogger.info(\"request options from url:\", requestOptionsFromUrl);\n\t\toptions = resolveRequestOptions(args, url);\n\t\tlogger.info(\"resolved request options:\", options);\n\t\tcallback = resolveCallback(args);\n\t} else if (args[0] instanceof URL$1) {\n\t\turl = args[0];\n\t\tlogger.info(\"first argument is a URL:\", url);\n\t\tif (typeof args[1] !== \"undefined\" && isObject(args[1])) url = overrideUrlByRequestOptions(url, args[1]);\n\t\toptions = resolveRequestOptions(args, url);\n\t\tlogger.info(\"derived request options:\", options);\n\t\tcallback = resolveCallback(args);\n\t} else if (\"hash\" in args[0] && !(\"method\" in args[0])) {\n\t\tconst [legacyUrl] = args;\n\t\tlogger.info(\"first argument is a legacy URL:\", legacyUrl);\n\t\tif (legacyUrl.hostname === null) {\n\t\t\t/**\n\t\t\t* We are dealing with a relative url, so use the path as an \"option\" and\n\t\t\t* merge in any existing options, giving priority to existing options -- i.e. a path in any\n\t\t\t* existing options will take precedence over the one contained in the url. This is consistent\n\t\t\t* with the behaviour in ClientRequest.\n\t\t\t* @see https://github.com/nodejs/node/blob/d84f1312915fe45fe0febe888db692c74894c382/lib/_http_client.js#L122\n\t\t\t*/\n\t\t\tlogger.info(\"given legacy URL is relative (no hostname)\");\n\t\t\treturn isObject(args[1]) ? normalizeClientRequestArgs(defaultProtocol, [{\n\t\t\t\tpath: legacyUrl.path,\n\t\t\t\t...args[1]\n\t\t\t}, args[2]]) : normalizeClientRequestArgs(defaultProtocol, [{ path: legacyUrl.path }, args[1]]);\n\t\t}\n\t\tlogger.info(\"given legacy url is absolute\");\n\t\tconst resolvedUrl = new URL$1(legacyUrl.href);\n\t\treturn args[1] === void 0 ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl]) : typeof args[1] === \"function\" ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl, args[1]]) : normalizeClientRequestArgs(defaultProtocol, [\n\t\t\tresolvedUrl,\n\t\t\targs[1],\n\t\t\targs[2]\n\t\t]);\n\t} else if (isObject(args[0])) {\n\t\toptions = { ...args[0] };\n\t\tlogger.info(\"first argument is RequestOptions:\", options);\n\t\toptions.protocol = options.protocol || defaultProtocol;\n\t\tlogger.info(\"normalized request options:\", options);\n\t\turl = getUrlByRequestOptions(options);\n\t\tlogger.info(\"created a URL from RequestOptions:\", url.href);\n\t\tcallback = resolveCallback(args);\n\t} else throw new Error(`Failed to construct ClientRequest with these parameters: ${args}`);\n\toptions.protocol = options.protocol || url.protocol;\n\toptions.method = options.method || \"GET\";\n\t/**\n\t* Ensure that the default Agent is always set.\n\t* This prevents the protocol mismatch for requests with { agent: false },\n\t* where the global Agent is inferred.\n\t* @see https://github.com/mswjs/msw/issues/1150\n\t* @see https://github.com/nodejs/node/blob/418ff70b810f0e7112d48baaa72932a56cfa213b/lib/_http_client.js#L130\n\t* @see https://github.com/nodejs/node/blob/418ff70b810f0e7112d48baaa72932a56cfa213b/lib/_http_client.js#L157-L159\n\t*/\n\tif (!options._defaultAgent) {\n\t\tlogger.info(\"has no default agent, setting the default agent for \\\"%s\\\"\", options.protocol);\n\t\toptions._defaultAgent = options.protocol === \"https:\" ? globalAgent$1 : globalAgent;\n\t}\n\tlogger.info(\"successfully resolved url:\", url.href);\n\tlogger.info(\"successfully resolved options:\", options);\n\tlogger.info(\"successfully resolved callback:\", callback);\n\t/**\n\t* @note If the user-provided URL is not a valid URL in Node.js,\n\t* (e.g. the one provided by the JSDOM polyfills), case it to\n\t* string. Otherwise, this throws on Node.js incompatibility\n\t* (`ERR_INVALID_ARG_TYPE` on the connection listener)\n\t* @see https://github.com/node-fetch/node-fetch/issues/1376#issuecomment-966435555\n\t*/\n\tif (!(url instanceof URL$1)) url = url.toString();\n\treturn [\n\t\turl,\n\t\toptions,\n\t\tcallback\n\t];\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/index.ts\nvar ClientRequestInterceptor = class ClientRequestInterceptor extends Interceptor {\n\tstatic {\n\t\tthis.symbol = Symbol(\"client-request-interceptor\");\n\t}\n\tconstructor() {\n\t\tsuper(ClientRequestInterceptor.symbol);\n\t\tthis.onRequest = async ({ request, socket }) => {\n\t\t\tconst controller = new RequestController(request, {\n\t\t\t\tpassthrough() {\n\t\t\t\t\tsocket.passthrough();\n\t\t\t\t},\n\t\t\t\tasync respondWith(response) {\n\t\t\t\t\tawait socket.respondWith(response);\n\t\t\t\t},\n\t\t\t\terrorWith(reason) {\n\t\t\t\t\tif (reason instanceof Error) socket.errorWith(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t\tawait handleRequest({\n\t\t\t\trequest,\n\t\t\t\trequestId: Reflect.get(request, kRequestId),\n\t\t\t\tcontroller,\n\t\t\t\temitter: this.emitter\n\t\t\t});\n\t\t};\n\t\tthis.onResponse = async ({ requestId, request, response, isMockedResponse }) => {\n\t\t\treturn emitAsync(this.emitter, \"response\", {\n\t\t\t\trequestId,\n\t\t\t\trequest,\n\t\t\t\tresponse,\n\t\t\t\tisMockedResponse\n\t\t\t});\n\t\t};\n\t}\n\tsetup() {\n\t\tconst { ClientRequest: OriginalClientRequest, get: originalGet, request: originalRequest } = http;\n\t\tconst { get: originalHttpsGet, request: originalHttpsRequest } = https;\n\t\tconst onRequest = this.onRequest.bind(this);\n\t\tconst onResponse = this.onResponse.bind(this);\n\t\thttp.ClientRequest = new Proxy(http.ClientRequest, { construct: (target, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new (options.protocol === \"https:\" ? MockHttpsAgent : MockAgent)({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.construct(target, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttp.request = new Proxy(http.request, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new MockAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttp.get = new Proxy(http.get, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new MockAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttps.request = new Proxy(https.request, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"https:\", args);\n\t\t\toptions.agent = new MockHttpsAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttps.get = new Proxy(https.get, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"https:\", args);\n\t\t\toptions.agent = new MockHttpsAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\trecordRawFetchHeaders();\n\t\tthis.subscriptions.push(() => {\n\t\t\thttp.ClientRequest = OriginalClientRequest;\n\t\t\thttp.get = originalGet;\n\t\t\thttp.request = originalRequest;\n\t\t\thttps.get = originalHttpsGet;\n\t\t\thttps.request = originalHttpsRequest;\n\t\t\trestoreHeadersPrototype();\n\t\t});\n\t}\n};\n\n//#endregion\nexport { ClientRequestInterceptor as t };\n//# sourceMappingURL=ClientRequest-Ca8Qykuv.mjs.map"],"names":["normalizeSocketWriteArgs","args","normalized","MockSocket","net","Socket","constructor","options","super","this","connecting","connect","_final","callback","write","chunk","encoding","end","apply","push","read","kRawHeaders","Symbol","kRestorePatches","recordRawHeader","headers","behavior","ensureRawHeadersSymbol","rawHeaders","Reflect","get","index","length","toLowerCase","splice","has","Object","defineProperty","value","enumerable","configurable","defineRawHeadersSymbol","getRawFetchHeaders","Array","from","entries","inferRawHeaders","Headers","freeParser","parser","socket","_consumed","unconsume","_headers","_url","incoming","outgoing","maxHeaderPairs","onIncoming","HTTPParser","kOnHeaders","kOnHeadersComplete","kOnMessageBegin","kOnMessageComplete","kOnBody","kOnExecute","kOnTimeout","remove","free","destroyed","once","kRequestId","MockHttpSocket","socketState","writeBuffer","originalSocket","requestParser","execute","Buffer","isBuffer","responseParser","requestRawHeadersBuffer","responseRawHeadersBuffer","onRequestHeaders","onRequestStart","versionMajor","versionMinor","_","path","__","___","____","shouldKeepAlive","url","URL","baseUrl","method","connectionOptions","toUpperCase","FetchResponse","parseRawHeaders","canHaveBody","username","password","set","requestStream","Readable","flushWriteBuffer","requestId","createRequestId","request","Request","credentials","duplex","body","toWeb","setRawRequest","setRawRequestBodyStream","INTERNAL_REQUEST_ID_HEADER_NAME","passthrough","onRequest","onResponseHeaders","onResponseStart","status","statusText","response","isResponseWithBody","responseStream","invariant","setUrl","responseListenersPromise","onResponse","isMockedResponse","createConnection","href","protocol","port","host","toString","pathname","auth","split","baseUrlFromConnectionOptions","initialize","REQUEST","bind","onRequestBody","onRequestEnd","RESPONSE","onResponseBody","onResponseEnd","name","standardName","version","emit","event","emitEvent","finally","listenerCount","destroy","error","writeArgs","_handle","writable","removeAllListeners","address","headersWritten","shift","chunkString","chunkBeforeRequestHeaders","slice","indexOf","chunkAfterRequestHeaders","headersChunk","filter","map","join","forEach","propertyName","on","session","hadError","respondWith","isPropertyAccessible","type","errorWith","TypeError","mockConnect","serverResponse","ServerResponse","IncomingMessage","assignSocket","removeHeader","rawResponseHeaders","writeHead","STATUS_CODES","reader","getReader","done","Error","isIPv6","hostname","family","addressInfo","writeCall","MockAgent","http","Agent","customAgent","createConnectionOptions","MockHttpsAgent","https","logger$2","Logger","getAgent","agent","getPortByRequestOptions","Number","defaultPort","getUrlByRequestOptions","info","uri","agentProtocol","cert","getProtocolByRequestOptions","includes","startsWith","endsWith","isRawIPv6Address","getHostname","getAuthByRequestOptions","authString","logger$1","isPlainObject","obj","cloneObject","enumerableProperties","reduce","acc","key","assign","getPrototypeOf","logger","resolveRequestOptions","urlToHttpOptions","requestOptionsFromUrl","clonedRequestOptions","resolveCallback","normalizeClientRequestArgs","defaultProtocol","url$1","URL$1","isObject","parsedOptionsPath","parse","search","overrideUrlByRequestOptions","legacyUrl","resolvedUrl","_defaultAgent","globalAgent$1","globalAgent","ClientRequestInterceptor","Interceptor","symbol","async","controller","RequestController","reason","handleRequest","emitter","emitAsync","setup","ClientRequest","OriginalClientRequest","originalGet","originalRequest","originalHttpsGet","originalHttpsRequest","Proxy","construct","target","thisArg","OriginalHeaders","OriginalRequest","Response","OriginalResponse","globalThis","append","delete","headersDeleteMethod","prototype","deleteProperty","newTarget","headersInit","headers$1","isArray","inferredRawHeaders","recordRawFetchHeaders","subscriptions"],"mappings":"2hBAmBA,SAASA,EAAyBC,GACjC,MAAMC,EAAa,CAClBD,EAAK,QACL,OACA,GAKD,MAHuB,iBAAZA,EAAK,GAAiBC,EAAW,GAAKD,EAAK,GAC1B,mBAAZA,EAAK,KAAmBC,EAAW,GAAKD,EAAK,IACtC,mBAAZA,EAAK,KAAmBC,EAAW,GAAKD,EAAK,IACjDC,CACR,CAIA,IAAIC,EAAa,cAAcC,EAAIC,OAClC,WAAAC,CAAYC,GACXC,QACAC,KAAKF,QAAUA,EACfE,KAAKC,YAAa,EAClBD,KAAKE,UACLF,KAAKG,OAAUC,IACdA,EAAS,MAEX,CACA,OAAAF,GAEC,OADAF,KAAKC,YAAa,EACXD,IACR,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EACZ4H,UAAU,EACV7H,MAAO,IAAIiP,MAAMM,SAAU,CAAE,SAAAL,CAAUC,EAAQxR,EAAMoS,GACpD,MAAMxK,EAAWhG,QAAQ2P,UAAUC,EAAQxR,EAAMoS,GAEjD,MADuB,iBAAZpS,EAAK,IAAsC,MAAnBA,EAAK,GAAGwB,SAAiBE,EAAuBkG,EAASpG,QAASqB,EAAgB7C,EAAK,GAAGwB,UACtHoG,CACR,KAEF,CA0zBE6K,GACAjS,KAAKkS,cAAcxR,MAAK,KACvB2L,EAAKmE,cAAgBC,EACrBpE,EAAKhL,IAAMqP,EACXrE,EAAKhG,QAAUsK,EACfjE,EAAMrL,IAAMuP,EACZlE,EAAMrG,QAAUwK,EA9zBbzP,QAAQC,IAAIiB,QAASxB,IAC1BM,QAAQC,IAAIiB,QAASxB,EAArBM,KAg0BA","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{s as e,i as t,t as s,r as n,o}from"./fetchUtils-CoU35g3M.js";import{n as r}from"./getRawRequest-DnwmXyOW.js";import{t as i,i as a,r as u,a as c}from"./handleRequest-Y97UwBbF.js";import{n as h}from"./node-DwCc6iuP.js";import{Logger as p}from"../../../../../../@open-draft_logger@0.3.0/node_modules/@open-draft/logger/lib/index.js";import{invariant as l}from"../../../../../../outvariant@1.4.3/node_modules/outvariant/lib/index.js";import f,{globalAgent as d,ServerResponse as m,IncomingMessage as g,STATUS_CODES as R}from"node:http";import y,{globalAgent as q}from"node:https";import w from"node:net";import{HTTPParser as b}from"_http_common";import{Readable as k}from"node:stream";import{URL as v,urlToHttpOptions as H,parse as S}from"node:url";import{Agent as O}from"http";function P(e){const t=[e[0],void 0,void 0];return"string"==typeof e[1]?t[1]=e[1]:"function"==typeof e[1]&&(t[2]=e[1]),"function"==typeof e[2]&&(t[2]=e[2]),t}var A=class extends w.Socket{constructor(e){super(),this.options=e,this.connecting=!1,this.connect(),this._final=e=>{e(null)}}connect(){return this.connecting=!0,this}write(...e){const[t,s,n]=P(e);return this.options.write(t,s,n),!0}end(...e){const[t,s,n]=P(e);return this.options.write(t,s,n),super.end.apply(this,e)}push(e,t){return this.options.read(e,t),super.push(e,t)}};const C=Symbol("kRawHeaders"),B=Symbol("kRestorePatches");function x(e,t,s){j(e,[]);const n=Reflect.get(e,C);if("set"===s)for(let e=n.length-1;e>=0;e--)n[e][0].toLowerCase()===t[0].toLowerCase()&&n.splice(e,1);n.push(t)}function j(e,t){Reflect.has(e,C)||function(e,t){Object.defineProperty(e,C,{value:t,enumerable:!1,configurable:!0})}(e,t)}function L(e){if(!Reflect.has(e,C))return Array.from(e.entries());const t=Reflect.get(e,C);return t.length>0?t:Array.from(e.entries())}function _(e){return e instanceof Headers?Reflect.get(e,C)||[]:Reflect.get(new Headers(e),C)}function U(e,t){e._consumed&&e.unconsume(),e._headers=[],e._url="",e.socket=null,e.incoming=null,e.outgoing=null,e.maxHeaderPairs=2e3,e._consumed=!1,e.onIncoming=null,e[b.kOnHeaders]=null,e[b.kOnHeadersComplete]=null,e[b.kOnMessageBegin]=null,e[b.kOnMessageComplete]=null,e[b.kOnBody]=null,e[b.kOnExecute]=null,e[b.kOnTimeout]=null,e.remove(),e.free(),t&&(t.destroyed?t.parser=null:t.once("end",(()=>{t.parser=null})))}const E=Symbol("kRequestId");var T=class extends A{constructor(e){super({write:(e,t,s)=>{"passthrough"!==this.socketState&&this.writeBuffer.push([e,t,s]),e&&("passthrough"===this.socketState&&this.originalSocket?.write(e,t,s),this.requestParser.execute(Buffer.isBuffer(e)?e:Buffer.from(e,t)))},read:e=>{null!==e&&this.responseParser.execute(Buffer.isBuffer(e)?e:Buffer.from(e))}}),this.requestRawHeadersBuffer=[],this.responseRawHeadersBuffer=[],this.writeBuffer=[],this.socketState="unknown",this.onRequestHeaders=e=>{this.requestRawHeadersBuffer.push(...e)},this.onRequestStart=(e,t,i,a,u,c,p,l,f)=>{this.shouldKeepAlive=f;const d=new URL(u||"",this.baseUrl),m=this.connectionOptions.method?.toUpperCase()||"GET",g=s.parseRawHeaders([...this.requestRawHeadersBuffer,...i||[]]);this.requestRawHeadersBuffer.length=0;const R="GET"!==m&&"HEAD"!==m;(d.username||d.password)&&(g.has("authorization")||g.set("authorization",`Basic ${d.username}:${d.password}`),d.username="",d.password=""),this.requestStream=new k({read:()=>{this.flushWriteBuffer()}});const y=n();this.request=new Request(d,{method:m,headers:g,credentials:"same-origin",duplex:R?"half":void 0,body:R?k.toWeb(this.requestStream):null}),Reflect.set(this.request,E,y),r(this.request,Reflect.get(this,"_httpMessage")),h(this.request,this.requestStream),this.request.headers.has(o)?this.passthrough():this.onRequest({requestId:y,request:this.request,socket:this})},this.onResponseHeaders=e=>{this.responseRawHeadersBuffer.push(...e)},this.onResponseStart=(e,t,n,r,i,a,u)=>{const c=s.parseRawHeaders([...this.responseRawHeadersBuffer,...n||[]]);this.responseRawHeadersBuffer.length=0;const h=new s(s.isResponseWithBody(a)?k.toWeb(this.responseStream=new k({read(){}})):null,{url:i,status:a,statusText:u,headers:c});l(this.request,"Failed to handle a response: request does not exist"),s.setUrl(this.request.url,h),this.request.headers.has(o)||(this.responseListenersPromise=this.onResponse({response:h,isMockedResponse:"mock"===this.socketState,requestId:Reflect.get(this.request,E),request:this.request,socket:this}))},this.connectionOptions=e.connectionOptions,this.createConnection=e.createConnection,this.onRequest=e.onRequest,this.onResponse=e.onResponse,this.baseUrl=function(e){if("href"in e)return new URL(e.href);const t=443===e.port?"https:":"http:",s=e.host,n=new URL(`${t}//${s}`);if(e.port&&(n.port=e.port.toString()),e.path&&(n.pathname=e.path),e.auth){const[t,s]=e.auth.split(":");n.username=t,n.password=s}return n}(this.connectionOptions),this.requestParser=new b,this.requestParser.initialize(b.REQUEST,{}),this.requestParser[b.kOnHeaders]=this.onRequestHeaders.bind(this),this.requestParser[b.kOnHeadersComplete]=this.onRequestStart.bind(this),this.requestParser[b.kOnBody]=this.onRequestBody.bind(this),this.requestParser[b.kOnMessageComplete]=this.onRequestEnd.bind(this),this.responseParser=new b,this.responseParser.initialize(b.RESPONSE,{}),this.responseParser[b.kOnHeaders]=this.onResponseHeaders.bind(this),this.responseParser[b.kOnHeadersComplete]=this.onResponseStart.bind(this),this.responseParser[b.kOnBody]=this.onResponseBody.bind(this),this.responseParser[b.kOnMessageComplete]=this.onResponseEnd.bind(this),this.once("finish",(()=>U(this.requestParser,this))),"https:"===this.baseUrl.protocol&&(Reflect.set(this,"encrypted",!0),Reflect.set(this,"authorized",!1),Reflect.set(this,"getProtocol",(()=>"TLSv1.3")),Reflect.set(this,"getSession",(()=>{})),Reflect.set(this,"isSessionReused",(()=>!1)),Reflect.set(this,"getCipher",(()=>({name:"AES256-SHA",standardName:"TLS_RSA_WITH_AES_256_CBC_SHA",version:"TLSv1.3"}))))}emit(e,...t){const s=super.emit.bind(this,e,...t);return this.responseListenersPromise?(this.responseListenersPromise.finally(s),this.listenerCount(e)>0):s()}destroy(e){return U(this.responseParser,this),e&&this.emit("error",e),super.destroy(e)}passthrough(){if(this.socketState="passthrough",this.destroyed)return;const e=this.createConnection();let t;this.originalSocket=e,"_handle"in e&&Object.defineProperty(this,"_handle",{value:e._handle,enumerable:!0,writable:!0}),this.once("close",(()=>{e.removeAllListeners(),e.destroyed||e.destroy(),this.originalSocket=void 0})),this.address=e.address.bind(e);let s=!1;for(;t=this.writeBuffer.shift();)if(void 0!==t){if(!s){const[n,r,i]=t,a=n.toString(),u=a.slice(0,a.indexOf("\r\n")+2),c=a.slice(n.indexOf("\r\n\r\n")),h=`${u}${L(this.request.headers).filter((([e])=>e.toLowerCase()!==o)).map((([e,t])=>`${e}: ${t}`)).join("\r\n")}${c}`;e.write(h,r,i),s=!0;continue}e.write(...t)}Reflect.get(e,"encrypted")&&["encrypted","authorized","getProtocol","getSession","isSessionReused","getCipher"].forEach((t=>{Object.defineProperty(this,t,{enumerable:!0,get:()=>{const s=Reflect.get(e,t);return"function"==typeof s?s.bind(e):s}})})),e.on("lookup",((...e)=>this.emit("lookup",...e))).on("connect",(()=>{this.connecting=e.connecting,this.emit("connect")})).on("secureConnect",(()=>this.emit("secureConnect"))).on("secure",(()=>this.emit("secure"))).on("session",(e=>this.emit("session",e))).on("ready",(()=>this.emit("ready"))).on("drain",(()=>this.emit("drain"))).on("data",(e=>{this.push(e)})).on("error",(t=>{Reflect.set(this,"_hadError",Reflect.get(e,"_hadError")),this.emit("error",t)})).on("resume",(()=>this.emit("resume"))).on("timeout",(()=>this.emit("timeout"))).on("prefinish",(()=>this.emit("prefinish"))).on("finish",(()=>this.emit("finish"))).on("close",(e=>this.emit("close",e))).on("end",(()=>this.emit("end")))}async respondWith(e){if(this.destroyed)return;if(l("mock"!==this.socketState,'[MockHttpSocket] Failed to respond to the "%s %s" request with "%s %s": the request has already been handled',this.request?.method,this.request?.url,e.status,e.statusText),c(e,"type")&&"error"===e.type)return void this.errorWith(new TypeError("Network error"));this.mockConnect(),this.socketState="mock",this.flushWriteBuffer();const t=new m(new g(this));t.assignSocket(new A({write:(e,t,s)=>{this.push(e,t),s?.()},read(){}})),t.removeHeader("connection"),t.removeHeader("date");const s=L(e.headers);if(t.writeHead(e.status,e.statusText||R[e.status],s),this.once("error",(()=>{t.destroy()})),e.body)try{const s=e.body.getReader();for(;;){const{done:e,value:n}=await s.read();if(e){t.end();break}t.write(n)}}catch(e){if(e instanceof Error)return t.destroy(),void this.destroy();throw t.destroy(),e}else t.end();this.shouldKeepAlive||(this.emit("readable"),this.responseStream?.push(null),this.push(null))}errorWith(e){this.destroy(e)}mockConnect(){this.connecting=!1;const e=w.isIPv6(this.connectionOptions.hostname)||6===this.connectionOptions.family,t={address:e?"::1":"127.0.0.1",family:e?"IPv6":"IPv4",port:this.connectionOptions.port};this.address=()=>t,this.emit("lookup",null,t.address,"IPv6"===t.family?6:4,this.connectionOptions.host),this.emit("connect"),this.emit("ready"),"https:"===this.baseUrl.protocol&&(this.emit("secure"),this.emit("secureConnect"),this.emit("session",this.connectionOptions.session||Buffer.from("mock-session-renegotiate")),this.emit("session",Buffer.from("mock-session-resume")))}flushWriteBuffer(){for(const e of this.writeBuffer)"function"==typeof e[2]&&(e[2](),e[2]=void 0)}onRequestBody(e){l(this.requestStream,"Failed to write to a request stream: stream does not exist"),this.requestStream.push(e)}onRequestEnd(){this.requestStream&&this.requestStream.push(null)}onResponseBody(e){l(this.responseStream,"Failed to write to a response stream: stream does not exist"),this.responseStream.push(e)}onResponseEnd(){this.responseStream&&this.responseStream.push(null)}},$=class extends f.Agent{constructor(e){super(),this.customAgent=e.customAgent,this.onRequest=e.onRequest,this.onResponse=e.onResponse}createConnection(e,t){const s=this.customAgent instanceof f.Agent?this.customAgent.createConnection:super.createConnection,n=this.customAgent instanceof f.Agent?{...e,...this.customAgent.options}:e;return new T({connectionOptions:e,createConnection:s.bind(this.customAgent||this,n,t),onRequest:this.onRequest.bind(this),onResponse:this.onResponse.bind(this)})}},W=class extends y.Agent{constructor(e){super(),this.customAgent=e.customAgent,this.onRequest=e.onRequest,this.onResponse=e.onResponse}createConnection(e,t){const s=this.customAgent instanceof f.Agent?this.customAgent.createConnection:super.createConnection,n=this.customAgent instanceof f.Agent?{...e,...this.customAgent.options}:e;return new T({connectionOptions:e,createConnection:s.bind(this.customAgent||this,n,t),onRequest:this.onRequest.bind(this),onResponse:this.onResponse.bind(this)})}};const I=new p("utils getUrlByRequestOptions");function M(e){return e.agent instanceof O?e.agent:void 0}function z(e){if(e.port)return Number(e.port);const t=M(e);return t?.options.port?Number(t.options.port):t?.defaultPort?Number(t.defaultPort):void 0}function F(e){if(I.info("request options",e),e.uri)return I.info('constructing url from explicitly provided "options.uri": %s',e.uri),new URL(e.uri.href);I.info("figuring out url from request options...");const t=function(e){if(e.protocol)return e.protocol;const t=M(e)?.protocol;if(t)return t;const s=z(e);return e.cert||443===s?"https:":e.uri?.protocol||"http:"}(e);I.info("protocol",t);const s=z(e);I.info("port",s);const n=function(e){let t=e.hostname||e.host;return t?(function(e){return e.includes(":")&&!e.startsWith("[")&&!e.endsWith("]")}(t)&&(t=`[${t}]`),new URL(`http://${t}`).hostname):"localhost"}(e);I.info("hostname",n);const o=e.path||"/";I.info("path",o);const r=function(e){if(e.auth){const[t,s]=e.auth.split(":");return{username:t,password:s}}}(e);I.info("credentials",r);const i=r?`${r.username}:${r.password}@`:"";I.info("auth string:",i);const a=new URL(`${t}//${n}${void 0!==s?`:${s}`:""}${o}`);return a.username=r?.username||"",a.password=r?.password||"",I.info("created url:",a),a}const N=new p("cloneObject");function D(e){return N.info("is plain object?",e),null!=e&&e.constructor?.name?(N.info("checking the object constructor:",e.constructor.name),"Object"===e.constructor.name):(N.info("given object is undefined, not a plain object..."),!1)}function G(e){N.info("cloning object:",e);const t=Object.entries(e).reduce(((e,[t,s])=>(N.info("analyzing key-value pair:",t,s),e[t]=D(s)?G(s):s,e)),{});return D(e)?t:Object.assign(Object.getPrototypeOf(e),t)}const K=new p("http normalizeClientRequestArgs");function Q(e,t){if(void 0===e[1]||"function"==typeof e[1])return K.info("request options not provided, deriving from the url",t),H(t);if(e[1]){K.info("has custom RequestOptions!",e[1]);const s=H(t);K.info("derived RequestOptions from the URL:",s),K.info("cloning RequestOptions...");const n=G(e[1]);return K.info("successfully cloned RequestOptions!",n),{...s,...n}}return K.info("using an empty object as request options"),{}}function X(e){return"function"==typeof e[1]?e[1]:e[2]}function Y(e,t){let s,n,o;if(K.info("arguments",t),K.info("using default protocol:",e),0===t.length){const e=new v("http://localhost");return[e,Q(t,e)]}if("string"==typeof t[0]){K.info("first argument is a location string:",t[0]),s=new v(t[0]),K.info("created a url:",s);const e=H(s);K.info("request options from url:",e),n=Q(t,s),K.info("resolved request options:",n),o=X(t)}else if(t[0]instanceof v)s=t[0],K.info("first argument is a URL:",s),void 0!==t[1]&&u(t[1])&&(s=function(e,t){if(e.host=t.host||e.host,e.hostname=t.hostname||e.hostname,e.port=t.port?t.port.toString():e.port,t.path){const s=S(t.path,!1);e.pathname=s.pathname||"",e.search=s.search||""}return e}(s,t[1])),n=Q(t,s),K.info("derived request options:",n),o=X(t);else{if("hash"in t[0]&&!("method"in t[0])){const[s]=t;if(K.info("first argument is a legacy URL:",s),null===s.hostname)return K.info("given legacy URL is relative (no hostname)"),u(t[1])?Y(e,[{path:s.path,...t[1]},t[2]]):Y(e,[{path:s.path},t[1]]);K.info("given legacy url is absolute");const n=new v(s.href);return void 0===t[1]?Y(e,[n]):"function"==typeof t[1]?Y(e,[n,t[1]]):Y(e,[n,t[1],t[2]])}if(!u(t[0]))throw new Error(`Failed to construct ClientRequest with these parameters: ${t}`);n={...t[0]},K.info("first argument is RequestOptions:",n),n.protocol=n.protocol||e,K.info("normalized request options:",n),s=F(n),K.info("created a URL from RequestOptions:",s.href),o=X(t)}return n.protocol=n.protocol||s.protocol,n.method=n.method||"GET",n._defaultAgent||(K.info('has no default agent, setting the default agent for "%s"',n.protocol),n._defaultAgent="https:"===n.protocol?q:d),K.info("successfully resolved url:",s.href),K.info("successfully resolved options:",n),K.info("successfully resolved callback:",o),s instanceof v||(s=s.toString()),[s,n,o]}var J=class s extends e{static{this.symbol=Symbol("client-request-interceptor")}constructor(){super(s.symbol),this.onRequest=async({request:e,socket:s})=>{const n=new t(e,{passthrough(){s.passthrough()},async respondWith(e){await s.respondWith(e)},errorWith(e){e instanceof Error&&s.errorWith(e)}});await i({request:e,requestId:Reflect.get(e,E),controller:n,emitter:this.emitter})},this.onResponse=async({requestId:e,request:t,response:s,isMockedResponse:n})=>a(this.emitter,"response",{requestId:e,request:t,response:s,isMockedResponse:n})}setup(){const{ClientRequest:e,get:t,request:s}=f,{get:n,request:o}=y,r=this.onRequest.bind(this),i=this.onResponse.bind(this);f.ClientRequest=new Proxy(f.ClientRequest,{construct:(e,t)=>{const[s,n,o]=Y("http:",t);return n.agent=new("https:"===n.protocol?W:$)({customAgent:n.agent,onRequest:r,onResponse:i}),Reflect.construct(e,[s,n,o])}}),f.request=new Proxy(f.request,{apply:(e,t,s)=>{const[n,o,a]=Y("http:",s);return o.agent=new $({customAgent:o.agent,onRequest:r,onResponse:i}),Reflect.apply(e,t,[n,o,a])}}),f.get=new Proxy(f.get,{apply:(e,t,s)=>{const[n,o,a]=Y("http:",s);return o.agent=new $({customAgent:o.agent,onRequest:r,onResponse:i}),Reflect.apply(e,t,[n,o,a])}}),y.request=new Proxy(y.request,{apply:(e,t,s)=>{const[n,o,a]=Y("https:",s);return o.agent=new W({customAgent:o.agent,onRequest:r,onResponse:i}),Reflect.apply(e,t,[n,o,a])}}),y.get=new Proxy(y.get,{apply:(e,t,s)=>{const[n,o,a]=Y("https:",s);return o.agent=new W({customAgent:o.agent,onRequest:r,onResponse:i}),Reflect.apply(e,t,[n,o,a])}}),function(){if(Reflect.get(Headers,B))return Reflect.get(Headers,B);const{Headers:e,Request:t,Response:s}=globalThis,{set:n,append:o,delete:r}=Headers.prototype;Object.defineProperty(Headers,B,{value:()=>{Headers.prototype.set=n,Headers.prototype.append=o,Headers.prototype.delete=r,globalThis.Headers=e,globalThis.Request=t,globalThis.Response=s,Reflect.deleteProperty(Headers,B)},enumerable:!1,configurable:!0}),Object.defineProperty(globalThis,"Headers",{enumerable:!0,writable:!0,value:new Proxy(Headers,{construct(e,t,s){const n=t[0]||[];if(n instanceof Headers&&Reflect.has(n,C)){const t=Reflect.construct(e,[Reflect.get(n,C)],s);return j(t,[...Reflect.get(n,C)]),t}const o=Reflect.construct(e,t,s);return Reflect.has(o,C)||j(o,Array.isArray(n)?n:Object.entries(n)),o}})}),Headers.prototype.set=new Proxy(Headers.prototype.set,{apply:(e,t,s)=>(x(t,s,"set"),Reflect.apply(e,t,s))}),Headers.prototype.append=new Proxy(Headers.prototype.append,{apply:(e,t,s)=>(x(t,s,"append"),Reflect.apply(e,t,s))}),Headers.prototype.delete=new Proxy(Headers.prototype.delete,{apply(e,t,s){const n=Reflect.get(t,C);if(n)for(let e=n.length-1;e>=0;e--)n[e][0].toLowerCase()===s[0].toLowerCase()&&n.splice(e,1);return Reflect.apply(e,t,s)}}),Object.defineProperty(globalThis,"Request",{enumerable:!0,writable:!0,value:new Proxy(Request,{construct(e,t,s){const n=Reflect.construct(e,t,s),o=[];return"object"==typeof t[0]&&null!=t[0].headers&&o.push(..._(t[0].headers)),"object"==typeof t[1]&&null!=t[1].headers&&o.push(..._(t[1].headers)),o.length>0&&j(n.headers,o),n}})}),Object.defineProperty(globalThis,"Response",{enumerable:!0,writable:!0,value:new Proxy(Response,{construct(e,t,s){const n=Reflect.construct(e,t,s);return"object"==typeof t[1]&&null!=t[1].headers&&j(n.headers,_(t[1].headers)),n}})})}(),this.subscriptions.push((()=>{f.ClientRequest=e,f.get=t,f.request=s,y.get=n,y.request=o,Reflect.get(Headers,B)&&Reflect.get(Headers,B)()}))}};export{J as t};
2
+ //# sourceMappingURL=ClientRequest-Ca8Qykuv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClientRequest-Ca8Qykuv.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.mjs"],"sourcesContent":["import { i as RequestController, o as INTERNAL_REQUEST_ID_HEADER_NAME, r as createRequestId, s as Interceptor, t as FetchResponse } from \"./fetchUtils-CoU35g3M.mjs\";\nimport { n as setRawRequest } from \"./getRawRequest-DnwmXyOW.mjs\";\nimport { a as isPropertyAccessible, i as emitAsync, r as isObject, t as handleRequest } from \"./handleRequest-Y97UwBbF.mjs\";\nimport { n as setRawRequestBodyStream } from \"./node-DwCc6iuP.mjs\";\nimport { Logger } from \"@open-draft/logger\";\nimport { invariant } from \"outvariant\";\nimport http, { IncomingMessage, STATUS_CODES, ServerResponse, globalAgent } from \"node:http\";\nimport https, { globalAgent as globalAgent$1 } from \"node:https\";\nimport net from \"node:net\";\nimport { HTTPParser } from \"_http_common\";\nimport { Readable } from \"node:stream\";\nimport { URL as URL$1, parse, urlToHttpOptions } from \"node:url\";\nimport { Agent } from \"http\";\n\n//#region src/interceptors/Socket/utils/normalizeSocketWriteArgs.ts\n/**\n* Normalizes the arguments provided to the `Writable.prototype.write()`\n* and `Writable.prototype.end()`.\n*/\nfunction normalizeSocketWriteArgs(args) {\n\tconst normalized = [\n\t\targs[0],\n\t\tvoid 0,\n\t\tvoid 0\n\t];\n\tif (typeof args[1] === \"string\") normalized[1] = args[1];\n\telse if (typeof args[1] === \"function\") normalized[2] = args[1];\n\tif (typeof args[2] === \"function\") normalized[2] = args[2];\n\treturn normalized;\n}\n\n//#endregion\n//#region src/interceptors/Socket/MockSocket.ts\nvar MockSocket = class extends net.Socket {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.options = options;\n\t\tthis.connecting = false;\n\t\tthis.connect();\n\t\tthis._final = (callback) => {\n\t\t\tcallback(null);\n\t\t};\n\t}\n\tconnect() {\n\t\tthis.connecting = true;\n\t\treturn this;\n\t}\n\twrite(...args) {\n\t\tconst [chunk, encoding, callback] = normalizeSocketWriteArgs(args);\n\t\tthis.options.write(chunk, encoding, callback);\n\t\treturn true;\n\t}\n\tend(...args) {\n\t\tconst [chunk, encoding, callback] = normalizeSocketWriteArgs(args);\n\t\tthis.options.write(chunk, encoding, callback);\n\t\treturn super.end.apply(this, args);\n\t}\n\tpush(chunk, encoding) {\n\t\tthis.options.read(chunk, encoding);\n\t\treturn super.push(chunk, encoding);\n\t}\n};\n\n//#endregion\n//#region src/interceptors/Socket/utils/baseUrlFromConnectionOptions.ts\nfunction baseUrlFromConnectionOptions(options) {\n\tif (\"href\" in options) return new URL(options.href);\n\tconst protocol = options.port === 443 ? \"https:\" : \"http:\";\n\tconst host = options.host;\n\tconst url = new URL(`${protocol}//${host}`);\n\tif (options.port) url.port = options.port.toString();\n\tif (options.path) url.pathname = options.path;\n\tif (options.auth) {\n\t\tconst [username, password] = options.auth.split(\":\");\n\t\turl.username = username;\n\t\turl.password = password;\n\t}\n\treturn url;\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/recordRawHeaders.ts\nconst kRawHeaders = Symbol(\"kRawHeaders\");\nconst kRestorePatches = Symbol(\"kRestorePatches\");\nfunction recordRawHeader(headers, args, behavior) {\n\tensureRawHeadersSymbol(headers, []);\n\tconst rawHeaders = Reflect.get(headers, kRawHeaders);\n\tif (behavior === \"set\") {\n\t\tfor (let index = rawHeaders.length - 1; index >= 0; index--) if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) rawHeaders.splice(index, 1);\n\t}\n\trawHeaders.push(args);\n}\n/**\n* Define the raw headers symbol on the given `Headers` instance.\n* If the symbol already exists, this function does nothing.\n*/\nfunction ensureRawHeadersSymbol(headers, rawHeaders) {\n\tif (Reflect.has(headers, kRawHeaders)) return;\n\tdefineRawHeadersSymbol(headers, rawHeaders);\n}\n/**\n* Define the raw headers symbol on the given `Headers` instance.\n* If the symbol already exists, it gets overridden.\n*/\nfunction defineRawHeadersSymbol(headers, rawHeaders) {\n\tObject.defineProperty(headers, kRawHeaders, {\n\t\tvalue: rawHeaders,\n\t\tenumerable: false,\n\t\tconfigurable: true\n\t});\n}\n/**\n* Patch the global `Headers` class to store raw headers.\n* This is for compatibility with `IncomingMessage.prototype.rawHeaders`.\n*\n* @note Node.js has their own raw headers symbol but it\n* only records the first header name in case of multi-value headers.\n* Any other headers are normalized before comparing. This makes it\n* incompatible with the `rawHeaders` format.\n*\n* let h = new Headers()\n* h.append('X-Custom', 'one')\n* h.append('x-custom', 'two')\n* h[Symbol('headers map')] // Map { 'X-Custom' => 'one, two' }\n*/\nfunction recordRawFetchHeaders() {\n\tif (Reflect.get(Headers, kRestorePatches)) return Reflect.get(Headers, kRestorePatches);\n\tconst { Headers: OriginalHeaders, Request: OriginalRequest, Response: OriginalResponse } = globalThis;\n\tconst { set, append, delete: headersDeleteMethod } = Headers.prototype;\n\tObject.defineProperty(Headers, kRestorePatches, {\n\t\tvalue: () => {\n\t\t\tHeaders.prototype.set = set;\n\t\t\tHeaders.prototype.append = append;\n\t\t\tHeaders.prototype.delete = headersDeleteMethod;\n\t\t\tglobalThis.Headers = OriginalHeaders;\n\t\t\tglobalThis.Request = OriginalRequest;\n\t\t\tglobalThis.Response = OriginalResponse;\n\t\t\tReflect.deleteProperty(Headers, kRestorePatches);\n\t\t},\n\t\tenumerable: false,\n\t\tconfigurable: true\n\t});\n\tObject.defineProperty(globalThis, \"Headers\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Headers, { construct(target, args, newTarget) {\n\t\t\tconst headersInit = args[0] || [];\n\t\t\tif (headersInit instanceof Headers && Reflect.has(headersInit, kRawHeaders)) {\n\t\t\t\tconst headers$1 = Reflect.construct(target, [Reflect.get(headersInit, kRawHeaders)], newTarget);\n\t\t\t\tensureRawHeadersSymbol(headers$1, [...Reflect.get(headersInit, kRawHeaders)]);\n\t\t\t\treturn headers$1;\n\t\t\t}\n\t\t\tconst headers = Reflect.construct(target, args, newTarget);\n\t\t\tif (!Reflect.has(headers, kRawHeaders)) ensureRawHeadersSymbol(headers, Array.isArray(headersInit) ? headersInit : Object.entries(headersInit));\n\t\t\treturn headers;\n\t\t} })\n\t});\n\tHeaders.prototype.set = new Proxy(Headers.prototype.set, { apply(target, thisArg, args) {\n\t\trecordRawHeader(thisArg, args, \"set\");\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tHeaders.prototype.append = new Proxy(Headers.prototype.append, { apply(target, thisArg, args) {\n\t\trecordRawHeader(thisArg, args, \"append\");\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tHeaders.prototype.delete = new Proxy(Headers.prototype.delete, { apply(target, thisArg, args) {\n\t\tconst rawHeaders = Reflect.get(thisArg, kRawHeaders);\n\t\tif (rawHeaders) {\n\t\t\tfor (let index = rawHeaders.length - 1; index >= 0; index--) if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) rawHeaders.splice(index, 1);\n\t\t}\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tObject.defineProperty(globalThis, \"Request\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Request, { construct(target, args, newTarget) {\n\t\t\tconst request = Reflect.construct(target, args, newTarget);\n\t\t\tconst inferredRawHeaders = [];\n\t\t\tif (typeof args[0] === \"object\" && args[0].headers != null) inferredRawHeaders.push(...inferRawHeaders(args[0].headers));\n\t\t\tif (typeof args[1] === \"object\" && args[1].headers != null) inferredRawHeaders.push(...inferRawHeaders(args[1].headers));\n\t\t\tif (inferredRawHeaders.length > 0) ensureRawHeadersSymbol(request.headers, inferredRawHeaders);\n\t\t\treturn request;\n\t\t} })\n\t});\n\tObject.defineProperty(globalThis, \"Response\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Response, { construct(target, args, newTarget) {\n\t\t\tconst response = Reflect.construct(target, args, newTarget);\n\t\t\tif (typeof args[1] === \"object\" && args[1].headers != null) ensureRawHeadersSymbol(response.headers, inferRawHeaders(args[1].headers));\n\t\t\treturn response;\n\t\t} })\n\t});\n}\nfunction restoreHeadersPrototype() {\n\tif (!Reflect.get(Headers, kRestorePatches)) return;\n\tReflect.get(Headers, kRestorePatches)();\n}\nfunction getRawFetchHeaders(headers) {\n\tif (!Reflect.has(headers, kRawHeaders)) return Array.from(headers.entries());\n\tconst rawHeaders = Reflect.get(headers, kRawHeaders);\n\treturn rawHeaders.length > 0 ? rawHeaders : Array.from(headers.entries());\n}\n/**\n* Infers the raw headers from the given `HeadersInit` provided\n* to the Request/Response constructor.\n*\n* If the `init.headers` is a Headers instance, use it directly.\n* That means the headers were created standalone and already have\n* the raw headers stored.\n* If the `init.headers` is a HeadersInit, create a new Headers\n* instance out of it.\n*/\nfunction inferRawHeaders(headers) {\n\tif (headers instanceof Headers) return Reflect.get(headers, kRawHeaders) || [];\n\treturn Reflect.get(new Headers(headers), kRawHeaders);\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/parserUtils.ts\n/**\n* @see https://github.com/nodejs/node/blob/f3adc11e37b8bfaaa026ea85c1cf22e3a0e29ae9/lib/_http_common.js#L180\n*/\nfunction freeParser(parser, socket) {\n\tif (parser._consumed) parser.unconsume();\n\tparser._headers = [];\n\tparser._url = \"\";\n\tparser.socket = null;\n\tparser.incoming = null;\n\tparser.outgoing = null;\n\tparser.maxHeaderPairs = 2e3;\n\tparser._consumed = false;\n\tparser.onIncoming = null;\n\tparser[HTTPParser.kOnHeaders] = null;\n\tparser[HTTPParser.kOnHeadersComplete] = null;\n\tparser[HTTPParser.kOnMessageBegin] = null;\n\tparser[HTTPParser.kOnMessageComplete] = null;\n\tparser[HTTPParser.kOnBody] = null;\n\tparser[HTTPParser.kOnExecute] = null;\n\tparser[HTTPParser.kOnTimeout] = null;\n\tparser.remove();\n\tparser.free();\n\tif (socket)\n /**\n\t* @note Unassigning the socket's parser will fail this assertion\n\t* if there's still some data being processed on the socket:\n\t* @see https://github.com/nodejs/node/blob/4e1f39b678b37017ac9baa0971e3aeecd3b67b51/lib/_http_client.js#L613\n\t*/\n\tif (socket.destroyed) socket.parser = null;\n\telse socket.once(\"end\", () => {\n\t\tsocket.parser = null;\n\t});\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/MockHttpSocket.ts\nconst kRequestId = Symbol(\"kRequestId\");\nvar MockHttpSocket = class extends MockSocket {\n\tconstructor(options) {\n\t\tsuper({\n\t\t\twrite: (chunk, encoding, callback) => {\n\t\t\t\tif (this.socketState !== \"passthrough\") this.writeBuffer.push([\n\t\t\t\t\tchunk,\n\t\t\t\t\tencoding,\n\t\t\t\t\tcallback\n\t\t\t\t]);\n\t\t\t\tif (chunk) {\n\t\t\t\t\t/**\n\t\t\t\t\t* Forward any writes to the mock socket to the underlying original socket.\n\t\t\t\t\t* This ensures functional duplex connections, like WebSocket.\n\t\t\t\t\t* @see https://github.com/mswjs/interceptors/issues/682\n\t\t\t\t\t*/\n\t\t\t\t\tif (this.socketState === \"passthrough\") this.originalSocket?.write(chunk, encoding, callback);\n\t\t\t\t\tthis.requestParser.execute(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk, encoding));\n\t\t\t\t}\n\t\t\t},\n\t\t\tread: (chunk) => {\n\t\t\t\tif (chunk !== null)\n /**\n\t\t\t\t* @todo We need to free the parser if the connection has been\n\t\t\t\t* upgraded to a non-HTTP protocol. It won't be able to parse data\n\t\t\t\t* from that point onward anyway. No need to keep it in memory.\n\t\t\t\t*/\n\t\t\t\tthis.responseParser.execute(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));\n\t\t\t}\n\t\t});\n\t\tthis.requestRawHeadersBuffer = [];\n\t\tthis.responseRawHeadersBuffer = [];\n\t\tthis.writeBuffer = [];\n\t\tthis.socketState = \"unknown\";\n\t\tthis.onRequestHeaders = (rawHeaders) => {\n\t\t\tthis.requestRawHeadersBuffer.push(...rawHeaders);\n\t\t};\n\t\tthis.onRequestStart = (versionMajor, versionMinor, rawHeaders, _, path, __, ___, ____, shouldKeepAlive) => {\n\t\t\tthis.shouldKeepAlive = shouldKeepAlive;\n\t\t\tconst url = new URL(path || \"\", this.baseUrl);\n\t\t\tconst method = this.connectionOptions.method?.toUpperCase() || \"GET\";\n\t\t\tconst headers = FetchResponse.parseRawHeaders([...this.requestRawHeadersBuffer, ...rawHeaders || []]);\n\t\t\tthis.requestRawHeadersBuffer.length = 0;\n\t\t\tconst canHaveBody = method !== \"GET\" && method !== \"HEAD\";\n\t\t\tif (url.username || url.password) {\n\t\t\t\tif (!headers.has(\"authorization\")) headers.set(\"authorization\", `Basic ${url.username}:${url.password}`);\n\t\t\t\turl.username = \"\";\n\t\t\t\turl.password = \"\";\n\t\t\t}\n\t\t\tthis.requestStream = new Readable({ read: () => {\n\t\t\t\tthis.flushWriteBuffer();\n\t\t\t} });\n\t\t\tconst requestId = createRequestId();\n\t\t\tthis.request = new Request(url, {\n\t\t\t\tmethod,\n\t\t\t\theaders,\n\t\t\t\tcredentials: \"same-origin\",\n\t\t\t\tduplex: canHaveBody ? \"half\" : void 0,\n\t\t\t\tbody: canHaveBody ? Readable.toWeb(this.requestStream) : null\n\t\t\t});\n\t\t\tReflect.set(this.request, kRequestId, requestId);\n\t\t\tsetRawRequest(this.request, Reflect.get(this, \"_httpMessage\"));\n\t\t\tsetRawRequestBodyStream(this.request, this.requestStream);\n\t\t\t/**\n\t\t\t* @fixme Stop relying on the \"X-Request-Id\" request header\n\t\t\t* to figure out if one interceptor has been invoked within another.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/378\n\t\t\t*/\n\t\t\tif (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) {\n\t\t\t\tthis.passthrough();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.onRequest({\n\t\t\t\trequestId,\n\t\t\t\trequest: this.request,\n\t\t\t\tsocket: this\n\t\t\t});\n\t\t};\n\t\tthis.onResponseHeaders = (rawHeaders) => {\n\t\t\tthis.responseRawHeadersBuffer.push(...rawHeaders);\n\t\t};\n\t\tthis.onResponseStart = (versionMajor, versionMinor, rawHeaders, method, url, status, statusText) => {\n\t\t\tconst headers = FetchResponse.parseRawHeaders([...this.responseRawHeadersBuffer, ...rawHeaders || []]);\n\t\t\tthis.responseRawHeadersBuffer.length = 0;\n\t\t\tconst response = new FetchResponse(\n\t\t\t\t/**\n\t\t\t\t* @note The Fetch API response instance exposed to the consumer\n\t\t\t\t* is created over the response stream of the HTTP parser. It is NOT\n\t\t\t\t* related to the Socket instance. This way, you can read response body\n\t\t\t\t* in response listener while the Socket instance delays the emission\n\t\t\t\t* of \"end\" and other events until those response listeners are finished.\n\t\t\t\t*/\n\t\t\t\tFetchResponse.isResponseWithBody(status) ? Readable.toWeb(this.responseStream = new Readable({ read() {} })) : null,\n\t\t\t\t{\n\t\t\t\t\turl,\n\t\t\t\t\tstatus,\n\t\t\t\t\tstatusText,\n\t\t\t\t\theaders\n\t\t\t\t}\n\t\t\t);\n\t\t\tinvariant(this.request, \"Failed to handle a response: request does not exist\");\n\t\t\tFetchResponse.setUrl(this.request.url, response);\n\t\t\t/**\n\t\t\t* @fixme Stop relying on the \"X-Request-Id\" request header\n\t\t\t* to figure out if one interceptor has been invoked within another.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/378\n\t\t\t*/\n\t\t\tif (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) return;\n\t\t\tthis.responseListenersPromise = this.onResponse({\n\t\t\t\tresponse,\n\t\t\t\tisMockedResponse: this.socketState === \"mock\",\n\t\t\t\trequestId: Reflect.get(this.request, kRequestId),\n\t\t\t\trequest: this.request,\n\t\t\t\tsocket: this\n\t\t\t});\n\t\t};\n\t\tthis.connectionOptions = options.connectionOptions;\n\t\tthis.createConnection = options.createConnection;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t\tthis.baseUrl = baseUrlFromConnectionOptions(this.connectionOptions);\n\t\tthis.requestParser = new HTTPParser();\n\t\tthis.requestParser.initialize(HTTPParser.REQUEST, {});\n\t\tthis.requestParser[HTTPParser.kOnHeaders] = this.onRequestHeaders.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnHeadersComplete] = this.onRequestStart.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnBody] = this.onRequestBody.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnMessageComplete] = this.onRequestEnd.bind(this);\n\t\tthis.responseParser = new HTTPParser();\n\t\tthis.responseParser.initialize(HTTPParser.RESPONSE, {});\n\t\tthis.responseParser[HTTPParser.kOnHeaders] = this.onResponseHeaders.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnHeadersComplete] = this.onResponseStart.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnBody] = this.onResponseBody.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnMessageComplete] = this.onResponseEnd.bind(this);\n\t\tthis.once(\"finish\", () => freeParser(this.requestParser, this));\n\t\tif (this.baseUrl.protocol === \"https:\") {\n\t\t\tReflect.set(this, \"encrypted\", true);\n\t\t\tReflect.set(this, \"authorized\", false);\n\t\t\tReflect.set(this, \"getProtocol\", () => \"TLSv1.3\");\n\t\t\tReflect.set(this, \"getSession\", () => void 0);\n\t\t\tReflect.set(this, \"isSessionReused\", () => false);\n\t\t\tReflect.set(this, \"getCipher\", () => ({\n\t\t\t\tname: \"AES256-SHA\",\n\t\t\t\tstandardName: \"TLS_RSA_WITH_AES_256_CBC_SHA\",\n\t\t\t\tversion: \"TLSv1.3\"\n\t\t\t}));\n\t\t}\n\t}\n\temit(event, ...args) {\n\t\tconst emitEvent = super.emit.bind(this, event, ...args);\n\t\tif (this.responseListenersPromise) {\n\t\t\tthis.responseListenersPromise.finally(emitEvent);\n\t\t\treturn this.listenerCount(event) > 0;\n\t\t}\n\t\treturn emitEvent();\n\t}\n\tdestroy(error) {\n\t\tfreeParser(this.responseParser, this);\n\t\tif (error) this.emit(\"error\", error);\n\t\treturn super.destroy(error);\n\t}\n\t/**\n\t* Establish this Socket connection as-is and pipe\n\t* its data/events through this Socket.\n\t*/\n\tpassthrough() {\n\t\tthis.socketState = \"passthrough\";\n\t\tif (this.destroyed) return;\n\t\tconst socket = this.createConnection();\n\t\tthis.originalSocket = socket;\n\t\t/**\n\t\t* @note Inherit the original socket's connection handle.\n\t\t* Without this, each push to the mock socket results in a\n\t\t* new \"connection\" listener being added (i.e. buffering pushes).\n\t\t* @see https://github.com/nodejs/node/blob/b18153598b25485ce4f54d0c5cb830a9457691ee/lib/net.js#L734\n\t\t*/\n\t\tif (\"_handle\" in socket) Object.defineProperty(this, \"_handle\", {\n\t\t\tvalue: socket._handle,\n\t\t\tenumerable: true,\n\t\t\twritable: true\n\t\t});\n\t\tthis.once(\"close\", () => {\n\t\t\tsocket.removeAllListeners();\n\t\t\tif (!socket.destroyed) socket.destroy();\n\t\t\tthis.originalSocket = void 0;\n\t\t});\n\t\tthis.address = socket.address.bind(socket);\n\t\tlet writeArgs;\n\t\tlet headersWritten = false;\n\t\twhile (writeArgs = this.writeBuffer.shift()) if (writeArgs !== void 0) {\n\t\t\tif (!headersWritten) {\n\t\t\t\tconst [chunk, encoding, callback] = writeArgs;\n\t\t\t\tconst chunkString = chunk.toString();\n\t\t\t\tconst chunkBeforeRequestHeaders = chunkString.slice(0, chunkString.indexOf(\"\\r\\n\") + 2);\n\t\t\t\tconst chunkAfterRequestHeaders = chunkString.slice(chunk.indexOf(\"\\r\\n\\r\\n\"));\n\t\t\t\tconst headersChunk = `${chunkBeforeRequestHeaders}${getRawFetchHeaders(this.request.headers).filter(([name]) => {\n\t\t\t\t\treturn name.toLowerCase() !== INTERNAL_REQUEST_ID_HEADER_NAME;\n\t\t\t\t}).map(([name, value]) => `${name}: ${value}`).join(\"\\r\\n\")}${chunkAfterRequestHeaders}`;\n\t\t\t\tsocket.write(headersChunk, encoding, callback);\n\t\t\t\theadersWritten = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsocket.write(...writeArgs);\n\t\t}\n\t\tif (Reflect.get(socket, \"encrypted\")) [\n\t\t\t\"encrypted\",\n\t\t\t\"authorized\",\n\t\t\t\"getProtocol\",\n\t\t\t\"getSession\",\n\t\t\t\"isSessionReused\",\n\t\t\t\"getCipher\"\n\t\t].forEach((propertyName) => {\n\t\t\tObject.defineProperty(this, propertyName, {\n\t\t\t\tenumerable: true,\n\t\t\t\tget: () => {\n\t\t\t\t\tconst value = Reflect.get(socket, propertyName);\n\t\t\t\t\treturn typeof value === \"function\" ? value.bind(socket) : value;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t\tsocket.on(\"lookup\", (...args) => this.emit(\"lookup\", ...args)).on(\"connect\", () => {\n\t\t\tthis.connecting = socket.connecting;\n\t\t\tthis.emit(\"connect\");\n\t\t}).on(\"secureConnect\", () => this.emit(\"secureConnect\")).on(\"secure\", () => this.emit(\"secure\")).on(\"session\", (session) => this.emit(\"session\", session)).on(\"ready\", () => this.emit(\"ready\")).on(\"drain\", () => this.emit(\"drain\")).on(\"data\", (chunk) => {\n\t\t\tthis.push(chunk);\n\t\t}).on(\"error\", (error) => {\n\t\t\tReflect.set(this, \"_hadError\", Reflect.get(socket, \"_hadError\"));\n\t\t\tthis.emit(\"error\", error);\n\t\t}).on(\"resume\", () => this.emit(\"resume\")).on(\"timeout\", () => this.emit(\"timeout\")).on(\"prefinish\", () => this.emit(\"prefinish\")).on(\"finish\", () => this.emit(\"finish\")).on(\"close\", (hadError) => this.emit(\"close\", hadError)).on(\"end\", () => this.emit(\"end\"));\n\t}\n\t/**\n\t* Convert the given Fetch API `Response` instance to an\n\t* HTTP message and push it to the socket.\n\t*/\n\tasync respondWith(response) {\n\t\tif (this.destroyed) return;\n\t\tinvariant(this.socketState !== \"mock\", \"[MockHttpSocket] Failed to respond to the \\\"%s %s\\\" request with \\\"%s %s\\\": the request has already been handled\", this.request?.method, this.request?.url, response.status, response.statusText);\n\t\tif (isPropertyAccessible(response, \"type\") && response.type === \"error\") {\n\t\t\tthis.errorWith(/* @__PURE__ */ new TypeError(\"Network error\"));\n\t\t\treturn;\n\t\t}\n\t\tthis.mockConnect();\n\t\tthis.socketState = \"mock\";\n\t\tthis.flushWriteBuffer();\n\t\tconst serverResponse = new ServerResponse(new IncomingMessage(this));\n\t\t/**\n\t\t* Assign a mock socket instance to the server response to\n\t\t* spy on the response chunk writes. Push the transformed response chunks\n\t\t* to this `MockHttpSocket` instance to trigger the \"data\" event.\n\t\t* @note Providing the same `MockSocket` instance when creating `ServerResponse`\n\t\t* does not have the same effect.\n\t\t* @see https://github.com/nodejs/node/blob/10099bb3f7fd97bb9dd9667188426866b3098e07/test/parallel/test-http-server-response-standalone.js#L32\n\t\t*/\n\t\tserverResponse.assignSocket(new MockSocket({\n\t\t\twrite: (chunk, encoding, callback) => {\n\t\t\t\tthis.push(chunk, encoding);\n\t\t\t\tcallback?.();\n\t\t\t},\n\t\t\tread() {}\n\t\t}));\n\t\t/**\n\t\t* @note Remove the `Connection` and `Date` response headers\n\t\t* injected by `ServerResponse` by default. Those are required\n\t\t* from the server but the interceptor is NOT technically a server.\n\t\t* It's confusing to add response headers that the developer didn't\n\t\t* specify themselves. They can always add these if they wish.\n\t\t* @see https://www.rfc-editor.org/rfc/rfc9110#field.date\n\t\t* @see https://www.rfc-editor.org/rfc/rfc9110#field.connection\n\t\t*/\n\t\tserverResponse.removeHeader(\"connection\");\n\t\tserverResponse.removeHeader(\"date\");\n\t\tconst rawResponseHeaders = getRawFetchHeaders(response.headers);\n\t\t/**\n\t\t* @note Call `.writeHead` in order to set the raw response headers\n\t\t* in the same case as they were provided by the developer. Using\n\t\t* `.setHeader()`/`.appendHeader()` normalizes header names.\n\t\t*/\n\t\tserverResponse.writeHead(response.status, response.statusText || STATUS_CODES[response.status], rawResponseHeaders);\n\t\tthis.once(\"error\", () => {\n\t\t\tserverResponse.destroy();\n\t\t});\n\t\tif (response.body) try {\n\t\t\tconst reader = response.body.getReader();\n\t\t\twhile (true) {\n\t\t\t\tconst { done, value } = await reader.read();\n\t\t\t\tif (done) {\n\t\t\t\t\tserverResponse.end();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tserverResponse.write(value);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tif (error instanceof Error) {\n\t\t\t\tserverResponse.destroy();\n\t\t\t\t/**\n\t\t\t\t* @note Destroy the request socket gracefully.\n\t\t\t\t* Response stream errors do NOT produce request errors.\n\t\t\t\t*/\n\t\t\t\tthis.destroy();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tserverResponse.destroy();\n\t\t\tthrow error;\n\t\t}\n\t\telse serverResponse.end();\n\t\tif (!this.shouldKeepAlive) {\n\t\t\tthis.emit(\"readable\");\n\t\t\t/**\n\t\t\t* @todo @fixme This is likely a hack.\n\t\t\t* Since we push null to the socket, it never propagates to the\n\t\t\t* parser, and the parser never calls \"onResponseEnd\" to close\n\t\t\t* the response stream. We are closing the stream here manually\n\t\t\t* but that shouldn't be the case.\n\t\t\t*/\n\t\t\tthis.responseStream?.push(null);\n\t\t\tthis.push(null);\n\t\t}\n\t}\n\t/**\n\t* Close this socket connection with the given error.\n\t*/\n\terrorWith(error) {\n\t\tthis.destroy(error);\n\t}\n\tmockConnect() {\n\t\tthis.connecting = false;\n\t\tconst isIPv6 = net.isIPv6(this.connectionOptions.hostname) || this.connectionOptions.family === 6;\n\t\tconst addressInfo = {\n\t\t\taddress: isIPv6 ? \"::1\" : \"127.0.0.1\",\n\t\t\tfamily: isIPv6 ? \"IPv6\" : \"IPv4\",\n\t\t\tport: this.connectionOptions.port\n\t\t};\n\t\tthis.address = () => addressInfo;\n\t\tthis.emit(\"lookup\", null, addressInfo.address, addressInfo.family === \"IPv6\" ? 6 : 4, this.connectionOptions.host);\n\t\tthis.emit(\"connect\");\n\t\tthis.emit(\"ready\");\n\t\tif (this.baseUrl.protocol === \"https:\") {\n\t\t\tthis.emit(\"secure\");\n\t\t\tthis.emit(\"secureConnect\");\n\t\t\tthis.emit(\"session\", this.connectionOptions.session || Buffer.from(\"mock-session-renegotiate\"));\n\t\t\tthis.emit(\"session\", Buffer.from(\"mock-session-resume\"));\n\t\t}\n\t}\n\tflushWriteBuffer() {\n\t\tfor (const writeCall of this.writeBuffer) if (typeof writeCall[2] === \"function\") {\n\t\t\twriteCall[2]();\n\t\t\t/**\n\t\t\t* @note Remove the callback from the write call\n\t\t\t* so it doesn't get called twice on passthrough\n\t\t\t* if `request.end()` was called within `request.write()`.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/684\n\t\t\t*/\n\t\t\twriteCall[2] = void 0;\n\t\t}\n\t}\n\tonRequestBody(chunk) {\n\t\tinvariant(this.requestStream, \"Failed to write to a request stream: stream does not exist\");\n\t\tthis.requestStream.push(chunk);\n\t}\n\tonRequestEnd() {\n\t\tif (this.requestStream) this.requestStream.push(null);\n\t}\n\tonResponseBody(chunk) {\n\t\tinvariant(this.responseStream, \"Failed to write to a response stream: stream does not exist\");\n\t\tthis.responseStream.push(chunk);\n\t}\n\tonResponseEnd() {\n\t\tif (this.responseStream) this.responseStream.push(null);\n\t}\n};\n\n//#endregion\n//#region src/interceptors/ClientRequest/agents.ts\nvar MockAgent = class extends http.Agent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.customAgent = options.customAgent;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t}\n\tcreateConnection(options, callback) {\n\t\tconst createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n\t\tconst createConnectionOptions = this.customAgent instanceof http.Agent ? {\n\t\t\t...options,\n\t\t\t...this.customAgent.options\n\t\t} : options;\n\t\treturn new MockHttpSocket({\n\t\t\tconnectionOptions: options,\n\t\t\tcreateConnection: createConnection.bind(this.customAgent || this, createConnectionOptions, callback),\n\t\t\tonRequest: this.onRequest.bind(this),\n\t\t\tonResponse: this.onResponse.bind(this)\n\t\t});\n\t}\n};\nvar MockHttpsAgent = class extends https.Agent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.customAgent = options.customAgent;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t}\n\tcreateConnection(options, callback) {\n\t\tconst createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n\t\tconst createConnectionOptions = this.customAgent instanceof http.Agent ? {\n\t\t\t...options,\n\t\t\t...this.customAgent.options\n\t\t} : options;\n\t\treturn new MockHttpSocket({\n\t\t\tconnectionOptions: options,\n\t\t\tcreateConnection: createConnection.bind(this.customAgent || this, createConnectionOptions, callback),\n\t\t\tonRequest: this.onRequest.bind(this),\n\t\t\tonResponse: this.onResponse.bind(this)\n\t\t});\n\t}\n};\n\n//#endregion\n//#region src/utils/getUrlByRequestOptions.ts\nconst logger$2 = new Logger(\"utils getUrlByRequestOptions\");\nconst DEFAULT_PATH = \"/\";\nconst DEFAULT_PROTOCOL = \"http:\";\nconst DEFAULT_HOSTNAME = \"localhost\";\nconst SSL_PORT = 443;\nfunction getAgent(options) {\n\treturn options.agent instanceof Agent ? options.agent : void 0;\n}\nfunction getProtocolByRequestOptions(options) {\n\tif (options.protocol) return options.protocol;\n\tconst agentProtocol = getAgent(options)?.protocol;\n\tif (agentProtocol) return agentProtocol;\n\tconst port = getPortByRequestOptions(options);\n\treturn options.cert || port === SSL_PORT ? \"https:\" : options.uri?.protocol || DEFAULT_PROTOCOL;\n}\nfunction getPortByRequestOptions(options) {\n\tif (options.port) return Number(options.port);\n\tconst agent = getAgent(options);\n\tif (agent?.options.port) return Number(agent.options.port);\n\tif (agent?.defaultPort) return Number(agent.defaultPort);\n}\nfunction getAuthByRequestOptions(options) {\n\tif (options.auth) {\n\t\tconst [username, password] = options.auth.split(\":\");\n\t\treturn {\n\t\t\tusername,\n\t\t\tpassword\n\t\t};\n\t}\n}\n/**\n* Returns true if host looks like an IPv6 address without surrounding brackets\n* It assumes any host containing `:` is definitely not IPv4 and probably IPv6,\n* but note that this could include invalid IPv6 addresses as well.\n*/\nfunction isRawIPv6Address(host) {\n\treturn host.includes(\":\") && !host.startsWith(\"[\") && !host.endsWith(\"]\");\n}\nfunction getHostname(options) {\n\tlet host = options.hostname || options.host;\n\tif (host) {\n\t\tif (isRawIPv6Address(host)) host = `[${host}]`;\n\t\treturn new URL(`http://${host}`).hostname;\n\t}\n\treturn DEFAULT_HOSTNAME;\n}\n/**\n* Creates a `URL` instance from a given `RequestOptions` object.\n*/\nfunction getUrlByRequestOptions(options) {\n\tlogger$2.info(\"request options\", options);\n\tif (options.uri) {\n\t\tlogger$2.info(\"constructing url from explicitly provided \\\"options.uri\\\": %s\", options.uri);\n\t\treturn new URL(options.uri.href);\n\t}\n\tlogger$2.info(\"figuring out url from request options...\");\n\tconst protocol = getProtocolByRequestOptions(options);\n\tlogger$2.info(\"protocol\", protocol);\n\tconst port = getPortByRequestOptions(options);\n\tlogger$2.info(\"port\", port);\n\tconst hostname = getHostname(options);\n\tlogger$2.info(\"hostname\", hostname);\n\tconst path = options.path || DEFAULT_PATH;\n\tlogger$2.info(\"path\", path);\n\tconst credentials = getAuthByRequestOptions(options);\n\tlogger$2.info(\"credentials\", credentials);\n\tconst authString = credentials ? `${credentials.username}:${credentials.password}@` : \"\";\n\tlogger$2.info(\"auth string:\", authString);\n\tconst portString = typeof port !== \"undefined\" ? `:${port}` : \"\";\n\tconst url = new URL(`${protocol}//${hostname}${portString}${path}`);\n\turl.username = credentials?.username || \"\";\n\turl.password = credentials?.password || \"\";\n\tlogger$2.info(\"created url:\", url);\n\treturn url;\n}\n\n//#endregion\n//#region src/utils/cloneObject.ts\nconst logger$1 = new Logger(\"cloneObject\");\nfunction isPlainObject(obj) {\n\tlogger$1.info(\"is plain object?\", obj);\n\tif (obj == null || !obj.constructor?.name) {\n\t\tlogger$1.info(\"given object is undefined, not a plain object...\");\n\t\treturn false;\n\t}\n\tlogger$1.info(\"checking the object constructor:\", obj.constructor.name);\n\treturn obj.constructor.name === \"Object\";\n}\nfunction cloneObject(obj) {\n\tlogger$1.info(\"cloning object:\", obj);\n\tconst enumerableProperties = Object.entries(obj).reduce((acc, [key, value]) => {\n\t\tlogger$1.info(\"analyzing key-value pair:\", key, value);\n\t\tacc[key] = isPlainObject(value) ? cloneObject(value) : value;\n\t\treturn acc;\n\t}, {});\n\treturn isPlainObject(obj) ? enumerableProperties : Object.assign(Object.getPrototypeOf(obj), enumerableProperties);\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/normalizeClientRequestArgs.ts\nconst logger = new Logger(\"http normalizeClientRequestArgs\");\nfunction resolveRequestOptions(args, url) {\n\tif (typeof args[1] === \"undefined\" || typeof args[1] === \"function\") {\n\t\tlogger.info(\"request options not provided, deriving from the url\", url);\n\t\treturn urlToHttpOptions(url);\n\t}\n\tif (args[1]) {\n\t\tlogger.info(\"has custom RequestOptions!\", args[1]);\n\t\tconst requestOptionsFromUrl = urlToHttpOptions(url);\n\t\tlogger.info(\"derived RequestOptions from the URL:\", requestOptionsFromUrl);\n\t\t/**\n\t\t* Clone the request options to lock their state\n\t\t* at the moment they are provided to `ClientRequest`.\n\t\t* @see https://github.com/mswjs/interceptors/issues/86\n\t\t*/\n\t\tlogger.info(\"cloning RequestOptions...\");\n\t\tconst clonedRequestOptions = cloneObject(args[1]);\n\t\tlogger.info(\"successfully cloned RequestOptions!\", clonedRequestOptions);\n\t\treturn {\n\t\t\t...requestOptionsFromUrl,\n\t\t\t...clonedRequestOptions\n\t\t};\n\t}\n\tlogger.info(\"using an empty object as request options\");\n\treturn {};\n}\n/**\n* Overrides the given `URL` instance with the explicit properties provided\n* on the `RequestOptions` object. The options object takes precedence,\n* and will replace URL properties like \"host\", \"path\", and \"port\", if specified.\n*/\nfunction overrideUrlByRequestOptions(url, options) {\n\turl.host = options.host || url.host;\n\turl.hostname = options.hostname || url.hostname;\n\turl.port = options.port ? options.port.toString() : url.port;\n\tif (options.path) {\n\t\tconst parsedOptionsPath = parse(options.path, false);\n\t\turl.pathname = parsedOptionsPath.pathname || \"\";\n\t\turl.search = parsedOptionsPath.search || \"\";\n\t}\n\treturn url;\n}\nfunction resolveCallback(args) {\n\treturn typeof args[1] === \"function\" ? args[1] : args[2];\n}\n/**\n* Normalizes parameters given to a `http.request` call\n* so it always has a `URL` and `RequestOptions`.\n*/\nfunction normalizeClientRequestArgs(defaultProtocol, args) {\n\tlet url;\n\tlet options;\n\tlet callback;\n\tlogger.info(\"arguments\", args);\n\tlogger.info(\"using default protocol:\", defaultProtocol);\n\tif (args.length === 0) {\n\t\tconst url$1 = new URL$1(\"http://localhost\");\n\t\treturn [url$1, resolveRequestOptions(args, url$1)];\n\t}\n\tif (typeof args[0] === \"string\") {\n\t\tlogger.info(\"first argument is a location string:\", args[0]);\n\t\turl = new URL$1(args[0]);\n\t\tlogger.info(\"created a url:\", url);\n\t\tconst requestOptionsFromUrl = urlToHttpOptions(url);\n\t\tlogger.info(\"request options from url:\", requestOptionsFromUrl);\n\t\toptions = resolveRequestOptions(args, url);\n\t\tlogger.info(\"resolved request options:\", options);\n\t\tcallback = resolveCallback(args);\n\t} else if (args[0] instanceof URL$1) {\n\t\turl = args[0];\n\t\tlogger.info(\"first argument is a URL:\", url);\n\t\tif (typeof args[1] !== \"undefined\" && isObject(args[1])) url = overrideUrlByRequestOptions(url, args[1]);\n\t\toptions = resolveRequestOptions(args, url);\n\t\tlogger.info(\"derived request options:\", options);\n\t\tcallback = resolveCallback(args);\n\t} else if (\"hash\" in args[0] && !(\"method\" in args[0])) {\n\t\tconst [legacyUrl] = args;\n\t\tlogger.info(\"first argument is a legacy URL:\", legacyUrl);\n\t\tif (legacyUrl.hostname === null) {\n\t\t\t/**\n\t\t\t* We are dealing with a relative url, so use the path as an \"option\" and\n\t\t\t* merge in any existing options, giving priority to existing options -- i.e. a path in any\n\t\t\t* existing options will take precedence over the one contained in the url. This is consistent\n\t\t\t* with the behaviour in ClientRequest.\n\t\t\t* @see https://github.com/nodejs/node/blob/d84f1312915fe45fe0febe888db692c74894c382/lib/_http_client.js#L122\n\t\t\t*/\n\t\t\tlogger.info(\"given legacy URL is relative (no hostname)\");\n\t\t\treturn isObject(args[1]) ? normalizeClientRequestArgs(defaultProtocol, [{\n\t\t\t\tpath: legacyUrl.path,\n\t\t\t\t...args[1]\n\t\t\t}, args[2]]) : normalizeClientRequestArgs(defaultProtocol, [{ path: legacyUrl.path }, args[1]]);\n\t\t}\n\t\tlogger.info(\"given legacy url is absolute\");\n\t\tconst resolvedUrl = new URL$1(legacyUrl.href);\n\t\treturn args[1] === void 0 ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl]) : typeof args[1] === \"function\" ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl, args[1]]) : normalizeClientRequestArgs(defaultProtocol, [\n\t\t\tresolvedUrl,\n\t\t\targs[1],\n\t\t\targs[2]\n\t\t]);\n\t} else if (isObject(args[0])) {\n\t\toptions = { ...args[0] };\n\t\tlogger.info(\"first argument is RequestOptions:\", options);\n\t\toptions.protocol = options.protocol || defaultProtocol;\n\t\tlogger.info(\"normalized request options:\", options);\n\t\turl = getUrlByRequestOptions(options);\n\t\tlogger.info(\"created a URL from RequestOptions:\", url.href);\n\t\tcallback = resolveCallback(args);\n\t} else throw new Error(`Failed to construct ClientRequest with these parameters: ${args}`);\n\toptions.protocol = options.protocol || url.protocol;\n\toptions.method = options.method || \"GET\";\n\t/**\n\t* Ensure that the default Agent is always set.\n\t* This prevents the protocol mismatch for requests with { agent: false },\n\t* where the global Agent is inferred.\n\t* @see https://github.com/mswjs/msw/issues/1150\n\t* @see https://github.com/nodejs/node/blob/418ff70b810f0e7112d48baaa72932a56cfa213b/lib/_http_client.js#L130\n\t* @see https://github.com/nodejs/node/blob/418ff70b810f0e7112d48baaa72932a56cfa213b/lib/_http_client.js#L157-L159\n\t*/\n\tif (!options._defaultAgent) {\n\t\tlogger.info(\"has no default agent, setting the default agent for \\\"%s\\\"\", options.protocol);\n\t\toptions._defaultAgent = options.protocol === \"https:\" ? globalAgent$1 : globalAgent;\n\t}\n\tlogger.info(\"successfully resolved url:\", url.href);\n\tlogger.info(\"successfully resolved options:\", options);\n\tlogger.info(\"successfully resolved callback:\", callback);\n\t/**\n\t* @note If the user-provided URL is not a valid URL in Node.js,\n\t* (e.g. the one provided by the JSDOM polyfills), case it to\n\t* string. Otherwise, this throws on Node.js incompatibility\n\t* (`ERR_INVALID_ARG_TYPE` on the connection listener)\n\t* @see https://github.com/node-fetch/node-fetch/issues/1376#issuecomment-966435555\n\t*/\n\tif (!(url instanceof URL$1)) url = url.toString();\n\treturn [\n\t\turl,\n\t\toptions,\n\t\tcallback\n\t];\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/index.ts\nvar ClientRequestInterceptor = class ClientRequestInterceptor extends Interceptor {\n\tstatic {\n\t\tthis.symbol = Symbol(\"client-request-interceptor\");\n\t}\n\tconstructor() {\n\t\tsuper(ClientRequestInterceptor.symbol);\n\t\tthis.onRequest = async ({ request, socket }) => {\n\t\t\tconst controller = new RequestController(request, {\n\t\t\t\tpassthrough() {\n\t\t\t\t\tsocket.passthrough();\n\t\t\t\t},\n\t\t\t\tasync respondWith(response) {\n\t\t\t\t\tawait socket.respondWith(response);\n\t\t\t\t},\n\t\t\t\terrorWith(reason) {\n\t\t\t\t\tif (reason instanceof Error) socket.errorWith(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t\tawait handleRequest({\n\t\t\t\trequest,\n\t\t\t\trequestId: Reflect.get(request, kRequestId),\n\t\t\t\tcontroller,\n\t\t\t\temitter: this.emitter\n\t\t\t});\n\t\t};\n\t\tthis.onResponse = async ({ requestId, request, response, isMockedResponse }) => {\n\t\t\treturn emitAsync(this.emitter, \"response\", {\n\t\t\t\trequestId,\n\t\t\t\trequest,\n\t\t\t\tresponse,\n\t\t\t\tisMockedResponse\n\t\t\t});\n\t\t};\n\t}\n\tsetup() {\n\t\tconst { ClientRequest: OriginalClientRequest, get: originalGet, request: originalRequest } = http;\n\t\tconst { get: originalHttpsGet, request: originalHttpsRequest } = https;\n\t\tconst onRequest = this.onRequest.bind(this);\n\t\tconst onResponse = this.onResponse.bind(this);\n\t\thttp.ClientRequest = new Proxy(http.ClientRequest, { construct: (target, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new (options.protocol === \"https:\" ? MockHttpsAgent : MockAgent)({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.construct(target, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttp.request = new Proxy(http.request, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new MockAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttp.get = new Proxy(http.get, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new MockAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttps.request = new Proxy(https.request, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"https:\", args);\n\t\t\toptions.agent = new MockHttpsAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttps.get = new Proxy(https.get, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"https:\", args);\n\t\t\toptions.agent = new MockHttpsAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\trecordRawFetchHeaders();\n\t\tthis.subscriptions.push(() => {\n\t\t\thttp.ClientRequest = OriginalClientRequest;\n\t\t\thttp.get = originalGet;\n\t\t\thttp.request = originalRequest;\n\t\t\thttps.get = originalHttpsGet;\n\t\t\thttps.request = originalHttpsRequest;\n\t\t\trestoreHeadersPrototype();\n\t\t});\n\t}\n};\n\n//#endregion\nexport { ClientRequestInterceptor as t };\n//# sourceMappingURL=ClientRequest-Ca8Qykuv.mjs.map"],"names":["normalizeSocketWriteArgs","args","normalized","MockSocket","net","Socket","constructor","options","super","this","connecting","connect","_final","callback","write","chunk","encoding","end","apply","push","read","kRawHeaders","Symbol","kRestorePatches","recordRawHeader","headers","behavior","ensureRawHeadersSymbol","rawHeaders","Reflect","get","index","length","toLowerCase","splice","has","Object","defineProperty","value","enumerable","configurable","defineRawHeadersSymbol","getRawFetchHeaders","Array","from","entries","inferRawHeaders","Headers","freeParser","parser","socket","_consumed","unconsume","_headers","_url","incoming","outgoing","maxHeaderPairs","onIncoming","HTTPParser","kOnHeaders","kOnHeadersComplete","kOnMessageBegin","kOnMessageComplete","kOnBody","kOnExecute","kOnTimeout","remove","free","destroyed","once","kRequestId","MockHttpSocket","socketState","writeBuffer","originalSocket","requestParser","execute","Buffer","isBuffer","responseParser","requestRawHeadersBuffer","responseRawHeadersBuffer","onRequestHeaders","onRequestStart","versionMajor","versionMinor","_","path","__","___","____","shouldKeepAlive","url","URL","baseUrl","method","connectionOptions","toUpperCase","FetchResponse","parseRawHeaders","canHaveBody","username","password","set","requestStream","Readable","flushWriteBuffer","requestId","createRequestId","request","Request","credentials","duplex","body","toWeb","setRawRequest","setRawRequestBodyStream","INTERNAL_REQUEST_ID_HEADER_NAME","passthrough","onRequest","onResponseHeaders","onResponseStart","status","statusText","response","isResponseWithBody","responseStream","invariant","setUrl","responseListenersPromise","onResponse","isMockedResponse","createConnection","href","protocol","port","host","toString","pathname","auth","split","baseUrlFromConnectionOptions","initialize","REQUEST","bind","onRequestBody","onRequestEnd","RESPONSE","onResponseBody","onResponseEnd","name","standardName","version","emit","event","emitEvent","finally","listenerCount","destroy","error","writeArgs","_handle","writable","removeAllListeners","address","headersWritten","shift","chunkString","chunkBeforeRequestHeaders","slice","indexOf","chunkAfterRequestHeaders","headersChunk","filter","map","join","forEach","propertyName","on","session","hadError","respondWith","isPropertyAccessible","type","errorWith","TypeError","mockConnect","serverResponse","ServerResponse","IncomingMessage","assignSocket","removeHeader","rawResponseHeaders","writeHead","STATUS_CODES","reader","getReader","done","Error","isIPv6","hostname","family","addressInfo","writeCall","MockAgent","http","Agent","customAgent","createConnectionOptions","MockHttpsAgent","https","logger$2","Logger","getAgent","agent","getPortByRequestOptions","Number","defaultPort","getUrlByRequestOptions","info","uri","agentProtocol","cert","getProtocolByRequestOptions","includes","startsWith","endsWith","isRawIPv6Address","getHostname","getAuthByRequestOptions","authString","logger$1","isPlainObject","obj","cloneObject","enumerableProperties","reduce","acc","key","assign","getPrototypeOf","logger","resolveRequestOptions","urlToHttpOptions","requestOptionsFromUrl","clonedRequestOptions","resolveCallback","normalizeClientRequestArgs","defaultProtocol","url$1","URL$1","isObject","parsedOptionsPath","parse","search","overrideUrlByRequestOptions","legacyUrl","resolvedUrl","_defaultAgent","globalAgent$1","globalAgent","ClientRequestInterceptor","Interceptor","symbol","async","controller","RequestController","reason","handleRequest","emitter","emitAsync","setup","ClientRequest","OriginalClientRequest","originalGet","originalRequest","originalHttpsGet","originalHttpsRequest","Proxy","construct","target","thisArg","OriginalHeaders","OriginalRequest","Response","OriginalResponse","globalThis","append","delete","headersDeleteMethod","prototype","deleteProperty","newTarget","headersInit","headers$1","isArray","inferredRawHeaders","recordRawFetchHeaders","subscriptions"],"mappings":"6wBAmBA,SAASA,EAAyBC,GACjC,MAAMC,EAAa,CAClBD,EAAK,QACL,OACA,GAKD,MAHuB,iBAAZA,EAAK,GAAiBC,EAAW,GAAKD,EAAK,GAC1B,mBAAZA,EAAK,KAAmBC,EAAW,GAAKD,EAAK,IACtC,mBAAZA,EAAK,KAAmBC,EAAW,GAAKD,EAAK,IACjDC,CACR,CAIA,IAAIC,EAAa,cAAcC,EAAIC,OAClC,WAAAC,CAAYC,GACXC,QACAC,KAAKF,QAAUA,EACfE,KAAKC,YAAa,EAClBD,KAAKE,UACLF,KAAKG,OAAUC,IACdA,EAAS,MAEX,CACA,OAAAF,GAEC,OADAF,KAAKC,YAAa,EACXD,IACR,CACA,KAAAK,IAASb,GACR,MAAOc,EAAOC,EAAUH,GAAYb,EAAyBC,GAE7D,OADAQ,KAAKF,QAAQO,MAAMC,EAAOC,EAAUH,IAC7B,CACR,CACA,GAAAI,IAAOhB,GACN,MAAOc,EAAOC,EAAUH,GAAYb,EAAyBC,GAE7D,OADAQ,KAAKF,QAAQO,MAAMC,EAAOC,EA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/logger/lib/index.d.js';
2
+ import { Emitter, Listener } from '../../../../../../strict-event-emitter@0.5.1/node_modules/strict-event-emitter/lib/index.d.js';
3
+
4
+ //#region src/RequestController.d.ts
5
+ interface RequestControllerSource {
6
+ passthrough(): void;
7
+ respondWith(response: Response): void;
8
+ errorWith(reason?: unknown): void;
9
+ }
10
+ declare class RequestController {
11
+ #private;
12
+ protected readonly request: Request;
13
+ protected readonly source: RequestControllerSource;
14
+ static PENDING: 0;
15
+ static PASSTHROUGH: 1;
16
+ static RESPONSE: 2;
17
+ static ERROR: 3;
18
+ readyState: number;
19
+ /**
20
+ * A Promise that resolves when this controller handles a request.
21
+ * See `controller.readyState` for more information on the handling result.
22
+ */
23
+ handled: Promise<void>;
24
+ constructor(request: Request, source: RequestControllerSource);
25
+ /**
26
+ * Perform this request as-is.
27
+ */
28
+ passthrough(): Promise<void>;
29
+ /**
30
+ * Respond to this request with the given `Response` instance.
31
+ *
32
+ * @example
33
+ * controller.respondWith(new Response())
34
+ * controller.respondWith(Response.json({ id }))
35
+ * controller.respondWith(Response.error())
36
+ */
37
+ respondWith(response: Response): void;
38
+ /**
39
+ * Error this request with the given reason.
40
+ *
41
+ * @example
42
+ * controller.errorWith()
43
+ * controller.errorWith(new Error('Oops!'))
44
+ * controller.errorWith({ message: 'Oops!'})
45
+ */
46
+ errorWith(reason?: unknown): void;
47
+ }
48
+ type HttpRequestEventMap = {
49
+ request: [args: {
50
+ request: Request;
51
+ requestId: string;
52
+ controller: RequestController;
53
+ }];
54
+ response: [args: {
55
+ response: Response;
56
+ isMockedResponse: boolean;
57
+ request: Request;
58
+ requestId: string;
59
+ }];
60
+ unhandledException: [args: {
61
+ error: unknown;
62
+ request: Request;
63
+ requestId: string;
64
+ controller: RequestController;
65
+ }];
66
+ };
67
+ //#endregion
68
+ //#region src/Interceptor.d.ts
69
+ type InterceptorEventMap = Record<string, any>;
70
+ type InterceptorSubscription = () => void;
71
+ declare enum InterceptorReadyState {
72
+ INACTIVE = "INACTIVE",
73
+ APPLYING = "APPLYING",
74
+ APPLIED = "APPLIED",
75
+ DISPOSING = "DISPOSING",
76
+ DISPOSED = "DISPOSED",
77
+ }
78
+ type ExtractEventNames<Events extends Record<string, any>> = Events extends Record<infer EventName, any> ? EventName : never;
79
+ declare class Interceptor<Events extends InterceptorEventMap> {
80
+ private readonly symbol;
81
+ protected emitter: Emitter<Events>;
82
+ protected subscriptions: Array<InterceptorSubscription>;
83
+ protected logger: Logger;
84
+ readyState: InterceptorReadyState;
85
+ constructor(symbol: symbol);
86
+ /**
87
+ * Determine if this interceptor can be applied
88
+ * in the current environment.
89
+ */
90
+ protected checkEnvironment(): boolean;
91
+ /**
92
+ * Apply this interceptor to the current process.
93
+ * Returns an already running interceptor instance if it's present.
94
+ */
95
+ apply(): void;
96
+ /**
97
+ * Setup the module augments and stubs necessary for this interceptor.
98
+ * This method is not run if there's a running interceptor instance
99
+ * to prevent instantiating an interceptor multiple times.
100
+ */
101
+ protected setup(): void;
102
+ /**
103
+ * Listen to the interceptor's public events.
104
+ */
105
+ on<EventName extends ExtractEventNames<Events>>(event: EventName, listener: Listener<Events[EventName]>): this;
106
+ once<EventName extends ExtractEventNames<Events>>(event: EventName, listener: Listener<Events[EventName]>): this;
107
+ off<EventName extends ExtractEventNames<Events>>(event: EventName, listener: Listener<Events[EventName]>): this;
108
+ removeAllListeners<EventName extends ExtractEventNames<Events>>(event?: EventName): this;
109
+ /**
110
+ * Disposes of any side-effects this interceptor has introduced.
111
+ */
112
+ dispose(): void;
113
+ private getInstance;
114
+ private setInstance;
115
+ private clearInstance;
116
+ }
117
+ //# sourceMappingURL=Interceptor-DJ2akVWI.d.cts.map
118
+
119
+ export { InterceptorReadyState as a, RequestController as f, Interceptor as r };
120
+ export type { InterceptorEventMap as i, HttpRequestEventMap as l, InterceptorSubscription as o, RequestControllerSource as p, ExtractEventNames as t };
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("./glossary-glQBRnVD.cjs.js"),t=require("./fetchUtils-CoU35g3M.cjs.js"),s=require("./bufferUtils-_8XfKIfX.cjs.js"),r=require("./getRawRequest-DnwmXyOW.cjs.js"),o=require("./handleRequest-Y97UwBbF.cjs.js"),n=require("./hasConfigurableGlobal-DBJA0vjm.cjs.js"),i=require("../../../../../../outvariant@1.4.3/node_modules/outvariant/lib/index.cjs.js"),a=require("../../../../../../is-node-process@1.2.0/node_modules/is-node-process/lib/index.cjs.js");var l=class{constructor(e,t){this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.type="",this.srcElement=null,this.currentTarget=null,this.eventPhase=0,this.isTrusted=!0,this.composed=!1,this.cancelable=!0,this.defaultPrevented=!1,this.bubbles=!0,this.lengthComputable=!0,this.loaded=0,this.total=0,this.cancelBubble=!1,this.returnValue=!0,this.type=e,this.target=t?.target||null,this.currentTarget=t?.currentTarget||null,this.timeStamp=Date.now()}composedPath(){return[]}initEvent(e,t,s){this.type=e,this.bubbles=!!t,this.cancelable=!!s}preventDefault(){this.defaultPrevented=!0}stopPropagation(){}stopImmediatePropagation(){}},u=class extends l{constructor(e,t){super(e),this.lengthComputable=t?.lengthComputable||!1,this.composed=t?.composed||!1,this.loaded=t?.loaded||0,this.total=t?.total||0}};const h="undefined"!=typeof ProgressEvent;function d(e,t){if(!(t in e))return null;if(Object.prototype.hasOwnProperty.call(e,t))return e;const s=Reflect.getPrototypeOf(e);return s?d(s,t):null}function c(e,t){return new Proxy(e,function(e){const{constructorCall:t,methodCall:s,getProperty:r,setProperty:o}=e,n={};void 0!==t&&(n.construct=function(e,s,r){const o=Reflect.construct.bind(null,e,s,r);return t.call(r,s,o)});return n.set=function(e,t,s){const r=()=>{const r=d(e,t)||e,o=Reflect.getOwnPropertyDescriptor(r,t);return void 0!==o?.set?(o.set.apply(e,[s]),!0):Reflect.defineProperty(r,t,{writable:!0,enumerable:!0,configurable:!0,value:s})};return void 0!==o?o.call(e,[t,s],r):r()},n.get=function(e,t,o){const n=()=>e[t],i=void 0!==r?r.call(e,[t,o],n):n();return"function"==typeof i?(...r)=>{const o=i.bind(e,...r);return void 0!==s?s.call(e,[t,r],o):o()}:i},n}(t))}function g(e){const t=new Headers,s=e.split(/[\r\n]+/);for(const e of s){if(""===e.trim())continue;const[s,...r]=e.split(": "),o=r.join(": ");t.append(s,o)}return t}async function p(e){const t=e.headers.get("content-length");return null!=t&&""!==t?Number(t):(await e.arrayBuffer()).byteLength}const f=Symbol("kIsRequestHandled"),q=a.isNodeProcess(),y=Symbol("kFetchRequest");var m=class{constructor(e,r){this.initialRequest=e,this.logger=r,this.method="GET",this.url=null,this[f]=!1,this.events=new Map,this.uploadEvents=new Map,this.requestId=t.r(),this.requestHeaders=new Headers,this.responseBuffer=new Uint8Array,this.request=c(e,{setProperty:([e,t],s)=>{if("ontimeout"===e){const r=e.slice(2);return this.request.addEventListener(r,t),s()}return s()},methodCall:([e,r],o)=>{switch(e){case"open":{const[e,t]=r;return void 0===t?(this.method="GET",this.url=b(e)):(this.method=e,this.url=b(t)),this.logger=this.logger.extend(`${this.method} ${this.url.href}`),this.logger.info("open",this.method,this.url.href),o()}case"addEventListener":{const[e,t]=r;return this.registerEvent(e,t),this.logger.info("addEventListener",e,t),o()}case"setRequestHeader":{const[e,t]=r;return this.requestHeaders.set(e,t),this.logger.info("setRequestHeader",e,t),o()}case"send":{const[e]=r;this.request.addEventListener("load",(()=>{if(void 0!==this.onResponse){const e=function(e,s){return new t.t(t.t.isResponseWithBody(e.status)?s:null,{url:e.responseURL,status:e.status,statusText:e.statusText,headers:g(e.getAllResponseHeaders())})}(this.request,this.request.response);this.onResponse.call(this,{response:e,isMockedResponse:this[f],request:i,requestId:this.requestId})}}));const n="string"==typeof e?s.n(e):e,i=this.toFetchApiRequest(n);this[y]=i.clone(),queueMicrotask((()=>{(this.onRequest?.call(this,{request:i,requestId:this.requestId})||Promise.resolve()).finally((()=>{if(!this[f])return this.logger.info("request callback settled but request has not been handled (readystate %d), performing as-is...",this.request.readyState),q&&this.request.setRequestHeader(t.o,this.requestId),o()}))}));break}default:return o()}}}),v(this.request,"upload",c(this.request.upload,{setProperty:([e,t],s)=>{switch(e){case"onloadstart":case"onprogress":case"onaboart":case"onerror":case"onload":case"ontimeout":case"onloadend":{const s=e.slice(2);this.registerUploadEvent(s,t)}}return s()},methodCall:([e,t],s)=>{if("addEventListener"===e){const[e,r]=t;return this.registerUploadEvent(e,r),this.logger.info("upload.addEventListener",e,r),s()}}}))}registerEvent(e,t){const s=(this.events.get(e)||[]).concat(t);this.events.set(e,s),this.logger.info('registered event "%s"',e,t)}registerUploadEvent(e,t){const s=(this.uploadEvents.get(e)||[]).concat(t);this.uploadEvents.set(e,s),this.logger.info('registered upload event "%s"',e,t)}async respondWith(e){if(this[f]=!0,this[y]){const e=await p(this[y]);this.trigger("loadstart",this.request.upload,{loaded:0,total:e}),this.trigger("progress",this.request.upload,{loaded:e,total:e}),this.trigger("load",this.request.upload,{loaded:e,total:e}),this.trigger("loadend",this.request.upload,{loaded:e,total:e})}this.logger.info("responding with a mocked response: %d %s",e.status,e.statusText),v(this.request,"status",e.status),v(this.request,"statusText",e.statusText),v(this.request,"responseURL",this.url.href),this.request.getResponseHeader=new Proxy(this.request.getResponseHeader,{apply:(t,s,r)=>{if(this.logger.info("getResponseHeader",r[0]),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning null"),null;const o=e.headers.get(r[0]);return this.logger.info('resolved response header "%s" to',r[0],o),o}}),this.request.getAllResponseHeaders=new Proxy(this.request.getAllResponseHeaders,{apply:()=>{if(this.logger.info("getAllResponseHeaders"),this.request.readyState<this.request.HEADERS_RECEIVED)return this.logger.info("headers not received yet, returning empty string"),"";const t=Array.from(e.headers.entries()).map((([e,t])=>`${e}: ${t}`)).join("\r\n");return this.logger.info("resolved all response headers to",t),t}}),Object.defineProperties(this.request,{response:{enumerable:!0,configurable:!1,get:()=>this.response},responseText:{enumerable:!0,configurable:!1,get:()=>this.responseText},responseXML:{enumerable:!0,configurable:!1,get:()=>this.responseXML}});const t=await p(e.clone());this.logger.info("calculated response body length",t),this.trigger("loadstart",this.request,{loaded:0,total:t}),this.setReadyState(this.request.HEADERS_RECEIVED),this.setReadyState(this.request.LOADING);const s=()=>{this.logger.info("finalizing the mocked response..."),this.setReadyState(this.request.DONE),this.trigger("load",this.request,{loaded:this.responseBuffer.byteLength,total:t}),this.trigger("loadend",this.request,{loaded:this.responseBuffer.byteLength,total:t})};if(e.body){this.logger.info("mocked response has body, streaming...");const r=e.body.getReader(),o=async()=>{const{value:e,done:n}=await r.read();if(n)return this.logger.info("response body stream done!"),void s();e&&(this.logger.info("read response body chunk:",e),this.responseBuffer=function(e,t){const s=new Uint8Array(e.byteLength+t.byteLength);return s.set(e,0),s.set(t,e.byteLength),s}(this.responseBuffer,e),this.trigger("progress",this.request,{loaded:this.responseBuffer.byteLength,total:t})),o()};o()}else s()}responseBufferToText(){return s.t(this.responseBuffer)}get response(){if(this.logger.info("getResponse (responseType: %s)",this.request.responseType),this.request.readyState!==this.request.DONE)return null;switch(this.request.responseType){case"json":{const e=function(e){try{return JSON.parse(e)}catch(e){return null}}(this.responseBufferToText());return this.logger.info("resolved response JSON",e),e}case"arraybuffer":{const e=s.r(this.responseBuffer);return this.logger.info("resolved response ArrayBuffer",e),e}case"blob":{const e=this.request.getResponseHeader("Content-Type")||"text/plain",t=new Blob([this.responseBufferToText()],{type:e});return this.logger.info("resolved response Blob (mime type: %s)",t,e),t}default:{const e=this.responseBufferToText();return this.logger.info('resolving "%s" response type as text',this.request.responseType,e),e}}}get responseText(){if(i.invariant(""===this.request.responseType||"text"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.LOADING&&this.request.readyState!==this.request.DONE)return"";const e=this.responseBufferToText();return this.logger.info('getResponseText: "%s"',e),e}get responseXML(){if(i.invariant(""===this.request.responseType||"document"===this.request.responseType,"InvalidStateError: The object is in invalid state."),this.request.readyState!==this.request.DONE)return null;const e=this.request.getResponseHeader("Content-Type")||"";return"undefined"==typeof DOMParser?(console.warn("Cannot retrieve XMLHttpRequest response body as XML: DOMParser is not defined. You are likely using an environment that is not browser or does not polyfill browser globals correctly."),null):(t=e,["application/xhtml+xml","application/xml","image/svg+xml","text/html","text/xml"].some((e=>t.startsWith(e)))?(new DOMParser).parseFromString(this.responseBufferToText(),e):null);var t}errorWith(e){this[f]=!0,this.logger.info("responding with an error"),this.setReadyState(this.request.DONE),this.trigger("error",this.request),this.trigger("loadend",this.request)}setReadyState(e){this.logger.info("setReadyState: %d -> %d",this.request.readyState,e),this.request.readyState!==e?(v(this.request,"readyState",e),this.logger.info("set readyState to: %d",e),e!==this.request.UNSENT&&(this.logger.info('triggering "readystatechange" event...'),this.trigger("readystatechange",this.request))):this.logger.info("ready state identical, skipping transition...")}trigger(e,t,s){const r=t[`on${e}`],o=function(e,t,s){const r=h?ProgressEvent:u;return["error","progress","loadstart","loadend","load","timeout","abort"].includes(t)?new r(t,{lengthComputable:!0,loaded:s?.loaded||0,total:s?.total||0}):new l(t,{target:e,currentTarget:e})}(t,e,s);this.logger.info('trigger "%s"',e,s||""),"function"==typeof r&&(this.logger.info('found a direct "%s" callback, calling...',e),r.call(t,o));const n=t instanceof XMLHttpRequestUpload?this.uploadEvents:this.events;for(const[s,r]of n)s===e&&(this.logger.info('found %d listener(s) for "%s" event, calling...',r.length,e),r.forEach((e=>e.call(t,o))))}toFetchApiRequest(e){this.logger.info("converting request to a Fetch API Request...");const t=e instanceof Document?e.documentElement.innerText:e,s=new Request(this.url.href,{method:this.method,headers:this.requestHeaders,credentials:this.request.withCredentials?"include":"same-origin",body:["GET","HEAD"].includes(this.method.toUpperCase())?null:t});return v(s,"headers",c(s.headers,{methodCall:([e,t],r)=>{switch(e){case"append":case"set":{const[e,s]=t;this.request.setRequestHeader(e,s);break}case"delete":{const[e]=t;console.warn(`XMLHttpRequest: Cannot remove a "${e}" header from the Fetch API representation of the "${s.method} ${s.url}" request. XMLHttpRequest headers cannot be removed.`);break}}return r()}})),r.n(s,this.request),this.logger.info("converted request to a Fetch API Request!",s),s}};function b(e){return"undefined"==typeof location?new URL(e):new URL(e.toString(),location.href)}function v(e,t,s){Reflect.defineProperty(e,t,{writable:!0,enumerable:!0,value:s})}var R=class s extends t.s{static{this.interceptorSymbol=Symbol("xhr")}constructor(){super(s.interceptorSymbol)}checkEnvironment(){return n.t("XMLHttpRequest")}setup(){const s=this.logger.extend("setup");s.info('patching "XMLHttpRequest" module...');const r=globalThis.XMLHttpRequest;i.invariant(!r[e.t],'Failed to patch the "XMLHttpRequest" module: already patched.'),globalThis.XMLHttpRequest=function({emitter:e,logger:s}){return new Proxy(globalThis.XMLHttpRequest,{construct(r,n,i){s.info("constructed new XMLHttpRequest");const a=Reflect.construct(r,n,i),l=Object.getOwnPropertyDescriptors(r.prototype);for(const e in l)Reflect.defineProperty(a,e,l[e]);const u=new m(a,s);return u.onRequest=async function({request:s,requestId:r}){const n=new t.i(s,{passthrough:()=>{this.logger.info("no mocked response received, performing request as-is...")},respondWith:async e=>{o.n(e)?this.errorWith(new TypeError("Network error")):await this.respondWith(e)},errorWith:e=>{this.logger.info("request errored!",{error:e}),e instanceof Error&&this.errorWith(e)}});this.logger.info("awaiting mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',e.listenerCount("request")),await o.t({request:s,requestId:r,controller:n,emitter:e})},u.onResponse=async function({response:t,isMockedResponse:s,request:r,requestId:o}){this.logger.info('emitting the "response" event for %s listener(s)...',e.listenerCount("response")),e.emit("response",{response:t,isMockedResponse:s,request:r,requestId:o})},u.request}})}({emitter:this.emitter,logger:this.logger}),s.info('native "XMLHttpRequest" module patched!',globalThis.XMLHttpRequest.name),Object.defineProperty(globalThis.XMLHttpRequest,e.t,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push((()=>{Object.defineProperty(globalThis.XMLHttpRequest,e.t,{value:void 0}),globalThis.XMLHttpRequest=r,s.info('native "XMLHttpRequest" module restored!',globalThis.XMLHttpRequest.name)}))}};exports.t=R;
2
+ //# sourceMappingURL=XMLHttpRequest-C8dIZpds.cjs.js.map