@flipdish/portal-library 8.4.0 → 8.4.2

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 (419) 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 +2 -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/AssetManager/types/assets.type.cjs.js +2 -0
  29. package/dist/components/organisms/AssetManager/types/assets.type.cjs.js.map +1 -0
  30. package/dist/components/organisms/AssetManager/types/assets.type.d.ts +1 -0
  31. package/dist/components/organisms/AssetManager/types/assets.type.js +2 -0
  32. package/dist/components/organisms/AssetManager/types/assets.type.js.map +1 -0
  33. package/dist/mocks/msw/handlers.cjs.js +1 -1
  34. package/dist/mocks/msw/handlers.d.ts +1 -1
  35. package/dist/mocks/msw/handlers.js +1 -1
  36. package/dist/mocks/msw/server.cjs.js +1 -1
  37. package/dist/mocks/msw/server.d.ts +1 -1
  38. package/dist/mocks/msw/server.js +1 -1
  39. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.cjs.js +2 -0
  40. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.cjs.js.map +1 -0
  41. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.js +2 -0
  42. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.js.map +1 -0
  43. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.cjs.js +2 -0
  44. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.cjs.js.map +1 -0
  45. 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
  46. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.js.map +1 -0
  47. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js +2 -0
  48. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js.map +1 -0
  49. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.d.d.ts +230 -0
  50. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js +2 -0
  51. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js.map +1 -0
  52. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.cjs.js +2 -0
  53. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.cjs.js.map +1 -0
  54. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.js +2 -0
  55. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.js.map +1 -0
  56. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-D_YqR8qU.d.d.ts +27 -0
  57. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.cjs.js +2 -0
  58. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.cjs.js.map +1 -0
  59. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.js +2 -0
  60. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.js.map +1 -0
  61. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/Interceptor-DJ2akVWI.d.d.ts +120 -0
  62. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.cjs.js +2 -0
  63. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.cjs.js.map +1 -0
  64. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.js +2 -0
  65. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.js.map +1 -0
  66. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.cjs.js +2 -0
  67. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.cjs.js.map +1 -0
  68. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.js +2 -0
  69. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.js.map +1 -0
  70. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.cjs.js +2 -0
  71. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.cjs.js.map +1 -0
  72. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.js +2 -0
  73. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.js.map +1 -0
  74. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.cjs.js +2 -0
  75. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.cjs.js.map +1 -0
  76. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.js +2 -0
  77. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.js.map +1 -0
  78. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.cjs.js +2 -0
  79. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.cjs.js.map +1 -0
  80. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.js +2 -0
  81. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.js.map +1 -0
  82. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.cjs.js +2 -0
  83. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.cjs.js.map +1 -0
  84. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.js +2 -0
  85. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.js.map +1 -0
  86. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.cjs.js +2 -0
  87. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.cjs.js.map +1 -0
  88. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.js +2 -0
  89. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.js.map +1 -0
  90. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.cjs.js +2 -0
  91. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.cjs.js.map +1 -0
  92. 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
  93. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.js.map +1 -0
  94. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js +2 -0
  95. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js.map +1 -0
  96. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.d.d.ts +28 -0
  97. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.js +2 -0
  98. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.js.map +1 -0
  99. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.cjs.js +2 -0
  100. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.cjs.js.map +1 -0
  101. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.js +2 -0
  102. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.js.map +1 -0
  103. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse-CVs3ngx3.d.d.ts +1 -1
  104. package/dist/node_modules/.pnpm/msw@2.12.8_@types_node@20.19.32_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.cjs.js +2 -0
  105. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js.map +1 -1
  106. package/dist/node_modules/.pnpm/msw@2.12.8_@types_node@20.19.32_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.js +2 -0
  107. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js.map +1 -1
  108. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js.map +1 -1
  109. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js.map +1 -1
  110. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js.map +1 -1
  111. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js.map +1 -1
  112. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js.map +1 -1
  113. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js.map +1 -1
  114. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.d.d.ts +1 -1
  115. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js.map +1 -1
  116. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/http.js.map +1 -1
  117. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js.map +1 -1
  118. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/index.js.map +1 -1
  119. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js.map +1 -1
  120. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js.map +1 -1
  121. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js.map +1 -1
  122. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js.map +1 -1
  123. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js.map +1 -1
  124. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js.map +1 -1
  125. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js.map +1 -1
  126. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js.map +1 -1
  127. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js.map +1 -1
  128. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js.map +1 -1
  129. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js.map +1 -1
  130. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js.map +1 -1
  131. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js.map +1 -1
  132. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js.map +1 -1
  133. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js.map +1 -1
  134. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js.map +1 -1
  135. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js.map +1 -1
  136. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js.map +1 -1
  137. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js.map +1 -1
  138. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js.map +1 -1
  139. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js.map +1 -1
  140. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js.map +1 -1
  141. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js.map +1 -1
  142. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js.map +1 -1
  143. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js.map +1 -1
  144. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js.map +1 -1
  145. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js.map +1 -1
  146. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js.map +1 -1
  147. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js.map +1 -1
  148. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js.map +1 -1
  149. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js.map +1 -1
  150. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js.map +1 -1
  151. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js.map +1 -1
  152. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js.map +1 -1
  153. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js.map +1 -1
  154. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js.map +1 -1
  155. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js.map +1 -1
  156. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js.map +1 -1
  157. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js.map +1 -1
  158. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js.map +1 -1
  159. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js.map +1 -1
  160. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js.map +1 -1
  161. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js +1 -1
  162. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js.map +1 -1
  163. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js +1 -1
  164. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js.map +1 -1
  165. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js.map +1 -1
  166. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js.map +1 -1
  167. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js.map +1 -1
  168. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js.map +1 -1
  169. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js.map +1 -1
  170. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js.map +1 -1
  171. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js.map +1 -1
  172. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js.map +1 -1
  173. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js.map +1 -1
  174. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js.map +1 -1
  175. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js.map +1 -1
  176. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js.map +1 -1
  177. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js.map +1 -1
  178. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js.map +1 -1
  179. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js.map +1 -1
  180. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js.map +1 -1
  181. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js.map +1 -1
  182. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js.map +1 -1
  183. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js +1 -1
  184. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js.map +1 -1
  185. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js +1 -1
  186. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js.map +1 -1
  187. package/dist/node_modules/.pnpm/msw@2.12.8_@types_node@20.19.32_typescript@5.4.5/node_modules/msw/lib/node/index.cjs.js +2 -0
  188. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js.map +1 -1
  189. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/node/index.d.d.ts +3 -3
  190. package/dist/node_modules/.pnpm/msw@2.12.8_@types_node@20.19.32_typescript@5.4.5/node_modules/msw/lib/node/index.js +2 -0
  191. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/node/index.js.map +1 -1
  192. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js.map +1 -1
  193. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js.map +1 -1
  194. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js.map +1 -1
  195. package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.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.cjs.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/domain.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.cjs.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/extract-hostname.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.cjs.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/factory.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.cjs.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-ip.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.cjs.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/is-valid.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.cjs.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/lookup/fast-path.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.cjs.js.map +1 -1
  209. 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
  210. package/dist/node_modules/.pnpm/{tldts@7.0.19 → tldts@7.0.22}/node_modules/tldts/dist/es6/index.cjs.js +1 -1
  211. package/dist/node_modules/.pnpm/{tldts@7.0.19 → tldts@7.0.22}/node_modules/tldts/dist/es6/index.cjs.js.map +1 -1
  212. package/dist/node_modules/.pnpm/{tldts@7.0.19 → tldts@7.0.22}/node_modules/tldts/dist/es6/index.js +1 -1
  213. package/dist/node_modules/.pnpm/{tldts@7.0.19 → tldts@7.0.22}/node_modules/tldts/dist/es6/index.js.map +1 -1
  214. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.cjs.js +2 -0
  215. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.cjs.js.map +1 -0
  216. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.js +2 -0
  217. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.js.map +1 -0
  218. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js +2 -0
  219. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js.map +1 -0
  220. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/suffix-trie.js +2 -0
  221. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/suffix-trie.js.map +1 -0
  222. package/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.cjs.js +1 -1
  223. package/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.js +1 -1
  224. package/dist/node_modules/.pnpm/type-fest@5.4.3/node_modules/type-fest/source/is-equal.d.d.ts +41 -0
  225. 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
  226. 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
  227. 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
  228. package/dist/utilities/apiUtils.cjs.js +2 -0
  229. package/dist/utilities/apiUtils.cjs.js.map +1 -0
  230. package/dist/utilities/apiUtils.d.ts +32 -0
  231. package/dist/utilities/apiUtils.js +2 -0
  232. package/dist/utilities/apiUtils.js.map +1 -0
  233. package/package.json +2 -1
  234. package/dist/components/organisms/AssetManager/types/index.cjs.js +0 -2
  235. package/dist/components/organisms/AssetManager/types/index.cjs.js.map +0 -1
  236. package/dist/components/organisms/AssetManager/types/index.d.ts +0 -36
  237. package/dist/components/organisms/AssetManager/types/index.js +0 -2
  238. package/dist/components/organisms/AssetManager/types/index.js.map +0 -1
  239. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.cjs.js +0 -2
  240. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.cjs.js.map +0 -1
  241. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-VYSDLBSS.js.map +0 -1
  242. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.cjs.js +0 -2
  243. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.cjs.js.map +0 -1
  244. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.js +0 -2
  245. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/chunk-Z5TSB3T6.js.map +0 -1
  246. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js +0 -2
  247. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js.map +0 -1
  248. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.d.d.ts +0 -225
  249. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js +0 -2
  250. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js.map +0 -1
  251. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-cb9a2eee.d.d.ts +0 -25
  252. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/Interceptor-dc0a39b5.d.d.ts +0 -123
  253. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.cjs.js +0 -2
  254. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.cjs.js.map +0 -1
  255. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.js +0 -2
  256. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5UGIB6OX.js.map +0 -1
  257. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.cjs.js +0 -2
  258. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.cjs.js.map +0 -1
  259. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.js +0 -2
  260. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-5V3SIIW2.js.map +0 -1
  261. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.cjs.js +0 -2
  262. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.cjs.js.map +0 -1
  263. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.js +0 -2
  264. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.js.map +0 -1
  265. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.cjs.js +0 -2
  266. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.cjs.js.map +0 -1
  267. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.js +0 -2
  268. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.js.map +0 -1
  269. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.cjs.js +0 -2
  270. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.cjs.js.map +0 -1
  271. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.js +0 -2
  272. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-GKN5RBVR.js.map +0 -1
  273. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.cjs.js +0 -2
  274. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.cjs.js.map +0 -1
  275. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.js +0 -2
  276. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-JXGB54LE.js.map +0 -1
  277. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.cjs.js +0 -2
  278. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.cjs.js.map +0 -1
  279. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.js +0 -2
  280. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-OFW5L5ET.js.map +0 -1
  281. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.cjs.js +0 -2
  282. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.cjs.js.map +0 -1
  283. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.js +0 -2
  284. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-R6T7CL5E.js.map +0 -1
  285. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.cjs.js +0 -2
  286. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.cjs.js.map +0 -1
  287. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.js +0 -2
  288. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-SQ6RHTJR.js.map +0 -1
  289. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.cjs.js +0 -2
  290. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.cjs.js.map +0 -1
  291. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.js.map +0 -1
  292. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.cjs.js +0 -2
  293. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.cjs.js.map +0 -1
  294. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.js +0 -2
  295. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/chunk-YWNGXXUQ.js.map +0 -1
  296. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js +0 -2
  297. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js.map +0 -1
  298. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.d.d.ts +0 -26
  299. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.js +0 -2
  300. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.40.0/node_modules/@mswjs/interceptors/lib/node/index.js.map +0 -1
  301. package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.cjs.js +0 -2
  302. package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/core/HttpResponse.js +0 -2
  303. package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/node/index.cjs.js +0 -2
  304. package/dist/node_modules/.pnpm/msw@2.12.7_@types_node@20.19.31_typescript@5.4.5/node_modules/msw/lib/node/index.js +0 -2
  305. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.cjs.js +0 -2
  306. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.cjs.js.map +0 -1
  307. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.js +0 -2
  308. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/data/trie.js.map +0 -1
  309. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js +0 -2
  310. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js.map +0 -1
  311. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.js +0 -2
  312. package/dist/node_modules/.pnpm/tldts@7.0.19/node_modules/tldts/dist/es6/src/suffix-trie.js.map +0 -1
  313. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js +0 -0
  314. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.d.d.ts +0 -0
  315. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js +0 -0
  316. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js +0 -0
  317. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.d.d.ts +0 -0
  318. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js +0 -0
  319. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js +0 -0
  320. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js +0 -0
  321. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js +0 -0
  322. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/http.js +0 -0
  323. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js +0 -0
  324. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/index.js +0 -0
  325. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js +0 -0
  326. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js +0 -0
  327. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/sharedOptions.d.d.ts +0 -0
  328. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/typeUtils.d.d.ts +0 -0
  329. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js +0 -0
  330. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js +0 -0
  331. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js +0 -0
  332. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js +0 -0
  333. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js +0 -0
  334. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js +0 -0
  335. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js +0 -0
  336. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js +0 -0
  337. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js +0 -0
  338. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.d.d.ts +0 -0
  339. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js +0 -0
  340. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js +0 -0
  341. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js +0 -0
  342. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js +0 -0
  343. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js +0 -0
  344. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js +0 -0
  345. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js +0 -0
  346. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js +0 -0
  347. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js +0 -0
  348. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js +0 -0
  349. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.d.d.ts +0 -0
  350. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js +0 -0
  351. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js +0 -0
  352. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js +0 -0
  353. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js +0 -0
  354. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js +0 -0
  355. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js +0 -0
  356. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js +0 -0
  357. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js +0 -0
  358. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js +0 -0
  359. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js +0 -0
  360. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js +0 -0
  361. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js +0 -0
  362. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js +0 -0
  363. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js +0 -0
  364. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js +0 -0
  365. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js +0 -0
  366. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js +0 -0
  367. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js +0 -0
  368. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js +0 -0
  369. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js +0 -0
  370. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js +0 -0
  371. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.d.ts +0 -0
  372. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js +0 -0
  373. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js +0 -0
  374. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js +0 -0
  375. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js +0 -0
  376. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js +0 -0
  377. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.d.d.ts +0 -0
  378. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js +0 -0
  379. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js +0 -0
  380. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js +0 -0
  381. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js +0 -0
  382. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js +0 -0
  383. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js +0 -0
  384. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js +0 -0
  385. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js +0 -0
  386. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js +0 -0
  387. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js +0 -0
  388. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js +0 -0
  389. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js +0 -0
  390. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js +0 -0
  391. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js +0 -0
  392. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js +0 -0
  393. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js +0 -0
  394. /package/dist/node_modules/.pnpm/{msw@2.12.7_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.8_@types_node@20.19.32_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.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.cjs.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/domain.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.cjs.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/extract-hostname.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.cjs.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/factory.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.cjs.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-ip.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.cjs.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/is-valid.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.cjs.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/lookup/fast-path.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.cjs.js +0 -0
  408. /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
  409. /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
  410. /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
  411. /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
  412. /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
  413. /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
  414. /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
  415. /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
  416. /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
  417. /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
  418. /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
  419. /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":"XMLHttpRequest-C8dIZpds.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.mjs"],"sourcesContent":["import { t as IS_PATCHED_MODULE } from \"./glossary-glQBRnVD.mjs\";\nimport { 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 encodeBuffer, r as toArrayBuffer, t as decodeBuffer } from \"./bufferUtils-_8XfKIfX.mjs\";\nimport { n as setRawRequest } from \"./getRawRequest-DnwmXyOW.mjs\";\nimport { n as isResponseError, t as handleRequest } from \"./handleRequest-Y97UwBbF.mjs\";\nimport { t as hasConfigurableGlobal } from \"./hasConfigurableGlobal-DBJA0vjm.mjs\";\nimport { invariant } from \"outvariant\";\nimport { isNodeProcess } from \"is-node-process\";\n\n//#region src/interceptors/XMLHttpRequest/utils/concatArrayBuffer.ts\n/**\n* Concatenate two `Uint8Array` buffers.\n*/\nfunction concatArrayBuffer(left, right) {\n\tconst result = new Uint8Array(left.byteLength + right.byteLength);\n\tresult.set(left, 0);\n\tresult.set(right, left.byteLength);\n\treturn result;\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/polyfills/EventPolyfill.ts\nvar EventPolyfill = class {\n\tconstructor(type, options) {\n\t\tthis.NONE = 0;\n\t\tthis.CAPTURING_PHASE = 1;\n\t\tthis.AT_TARGET = 2;\n\t\tthis.BUBBLING_PHASE = 3;\n\t\tthis.type = \"\";\n\t\tthis.srcElement = null;\n\t\tthis.currentTarget = null;\n\t\tthis.eventPhase = 0;\n\t\tthis.isTrusted = true;\n\t\tthis.composed = false;\n\t\tthis.cancelable = true;\n\t\tthis.defaultPrevented = false;\n\t\tthis.bubbles = true;\n\t\tthis.lengthComputable = true;\n\t\tthis.loaded = 0;\n\t\tthis.total = 0;\n\t\tthis.cancelBubble = false;\n\t\tthis.returnValue = true;\n\t\tthis.type = type;\n\t\tthis.target = options?.target || null;\n\t\tthis.currentTarget = options?.currentTarget || null;\n\t\tthis.timeStamp = Date.now();\n\t}\n\tcomposedPath() {\n\t\treturn [];\n\t}\n\tinitEvent(type, bubbles, cancelable) {\n\t\tthis.type = type;\n\t\tthis.bubbles = !!bubbles;\n\t\tthis.cancelable = !!cancelable;\n\t}\n\tpreventDefault() {\n\t\tthis.defaultPrevented = true;\n\t}\n\tstopPropagation() {}\n\tstopImmediatePropagation() {}\n};\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/polyfills/ProgressEventPolyfill.ts\nvar ProgressEventPolyfill = class extends EventPolyfill {\n\tconstructor(type, init) {\n\t\tsuper(type);\n\t\tthis.lengthComputable = init?.lengthComputable || false;\n\t\tthis.composed = init?.composed || false;\n\t\tthis.loaded = init?.loaded || 0;\n\t\tthis.total = init?.total || 0;\n\t}\n};\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/utils/createEvent.ts\nconst SUPPORTS_PROGRESS_EVENT = typeof ProgressEvent !== \"undefined\";\nfunction createEvent(target, type, init) {\n\tconst progressEvents = [\n\t\t\"error\",\n\t\t\"progress\",\n\t\t\"loadstart\",\n\t\t\"loadend\",\n\t\t\"load\",\n\t\t\"timeout\",\n\t\t\"abort\"\n\t];\n\t/**\n\t* `ProgressEvent` is not supported in React Native.\n\t* @see https://github.com/mswjs/interceptors/issues/40\n\t*/\n\tconst ProgressEventClass = SUPPORTS_PROGRESS_EVENT ? ProgressEvent : ProgressEventPolyfill;\n\treturn progressEvents.includes(type) ? new ProgressEventClass(type, {\n\t\tlengthComputable: true,\n\t\tloaded: init?.loaded || 0,\n\t\ttotal: init?.total || 0\n\t}) : new EventPolyfill(type, {\n\t\ttarget,\n\t\tcurrentTarget: target\n\t});\n}\n\n//#endregion\n//#region src/utils/findPropertySource.ts\n/**\n* Returns the source object of the given property on the target object\n* (the target itself, any parent in its prototype, or null).\n*/\nfunction findPropertySource(target, propertyName) {\n\tif (!(propertyName in target)) return null;\n\tif (Object.prototype.hasOwnProperty.call(target, propertyName)) return target;\n\tconst prototype = Reflect.getPrototypeOf(target);\n\treturn prototype ? findPropertySource(prototype, propertyName) : null;\n}\n\n//#endregion\n//#region src/utils/createProxy.ts\nfunction createProxy(target, options) {\n\treturn new Proxy(target, optionsToProxyHandler(options));\n}\nfunction optionsToProxyHandler(options) {\n\tconst { constructorCall, methodCall, getProperty, setProperty } = options;\n\tconst handler = {};\n\tif (typeof constructorCall !== \"undefined\") handler.construct = function(target, args, newTarget) {\n\t\tconst next = Reflect.construct.bind(null, target, args, newTarget);\n\t\treturn constructorCall.call(newTarget, args, next);\n\t};\n\thandler.set = function(target, propertyName, nextValue) {\n\t\tconst next = () => {\n\t\t\tconst propertySource = findPropertySource(target, propertyName) || target;\n\t\t\tconst ownDescriptors = Reflect.getOwnPropertyDescriptor(propertySource, propertyName);\n\t\t\tif (typeof ownDescriptors?.set !== \"undefined\") {\n\t\t\t\townDescriptors.set.apply(target, [nextValue]);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn Reflect.defineProperty(propertySource, propertyName, {\n\t\t\t\twritable: true,\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: true,\n\t\t\t\tvalue: nextValue\n\t\t\t});\n\t\t};\n\t\tif (typeof setProperty !== \"undefined\") return setProperty.call(target, [propertyName, nextValue], next);\n\t\treturn next();\n\t};\n\thandler.get = function(target, propertyName, receiver) {\n\t\t/**\n\t\t* @note Using `Reflect.get()` here causes \"TypeError: Illegal invocation\".\n\t\t*/\n\t\tconst next = () => target[propertyName];\n\t\tconst value = typeof getProperty !== \"undefined\" ? getProperty.call(target, [propertyName, receiver], next) : next();\n\t\tif (typeof value === \"function\") return (...args) => {\n\t\t\tconst next$1 = value.bind(target, ...args);\n\t\t\tif (typeof methodCall !== \"undefined\") return methodCall.call(target, [propertyName, args], next$1);\n\t\t\treturn next$1();\n\t\t};\n\t\treturn value;\n\t};\n\treturn handler;\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/utils/isDomParserSupportedType.ts\nfunction isDomParserSupportedType(type) {\n\treturn [\n\t\t\"application/xhtml+xml\",\n\t\t\"application/xml\",\n\t\t\"image/svg+xml\",\n\t\t\"text/html\",\n\t\t\"text/xml\"\n\t].some((supportedType) => {\n\t\treturn type.startsWith(supportedType);\n\t});\n}\n\n//#endregion\n//#region src/utils/parseJson.ts\n/**\n* Parses a given string into JSON.\n* Gracefully handles invalid JSON by returning `null`.\n*/\nfunction parseJson(data) {\n\ttry {\n\t\treturn JSON.parse(data);\n\t} catch (_) {\n\t\treturn null;\n\t}\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/utils/createResponse.ts\n/**\n* Creates a Fetch API `Response` instance from the given\n* `XMLHttpRequest` instance and a response body.\n*/\nfunction createResponse(request, body) {\n\treturn new FetchResponse(FetchResponse.isResponseWithBody(request.status) ? body : null, {\n\t\turl: request.responseURL,\n\t\tstatus: request.status,\n\t\tstatusText: request.statusText,\n\t\theaders: createHeadersFromXMLHttpRequestHeaders(request.getAllResponseHeaders())\n\t});\n}\nfunction createHeadersFromXMLHttpRequestHeaders(headersString) {\n\tconst headers = new Headers();\n\tconst lines = headersString.split(/[\\r\\n]+/);\n\tfor (const line of lines) {\n\t\tif (line.trim() === \"\") continue;\n\t\tconst [name, ...parts] = line.split(\": \");\n\t\tconst value = parts.join(\": \");\n\t\theaders.append(name, value);\n\t}\n\treturn headers;\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/utils/getBodyByteLength.ts\n/**\n* Return a total byte length of the given request/response body.\n* If the `Content-Length` header is present, it will be used as the byte length.\n*/\nasync function getBodyByteLength(input) {\n\tconst explicitContentLength = input.headers.get(\"content-length\");\n\tif (explicitContentLength != null && explicitContentLength !== \"\") return Number(explicitContentLength);\n\treturn (await input.arrayBuffer()).byteLength;\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/XMLHttpRequestController.ts\nconst kIsRequestHandled = Symbol(\"kIsRequestHandled\");\nconst IS_NODE = isNodeProcess();\nconst kFetchRequest = Symbol(\"kFetchRequest\");\n/**\n* An `XMLHttpRequest` instance controller that allows us\n* to handle any given request instance (e.g. responding to it).\n*/\nvar XMLHttpRequestController = class {\n\tconstructor(initialRequest, logger) {\n\t\tthis.initialRequest = initialRequest;\n\t\tthis.logger = logger;\n\t\tthis.method = \"GET\";\n\t\tthis.url = null;\n\t\tthis[kIsRequestHandled] = false;\n\t\tthis.events = /* @__PURE__ */ new Map();\n\t\tthis.uploadEvents = /* @__PURE__ */ new Map();\n\t\tthis.requestId = createRequestId();\n\t\tthis.requestHeaders = new Headers();\n\t\tthis.responseBuffer = new Uint8Array();\n\t\tthis.request = createProxy(initialRequest, {\n\t\t\tsetProperty: ([propertyName, nextValue], invoke) => {\n\t\t\t\tswitch (propertyName) {\n\t\t\t\t\tcase \"ontimeout\": {\n\t\t\t\t\t\tconst eventName = propertyName.slice(2);\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t* @note Proxy callbacks to event listeners because JSDOM has trouble\n\t\t\t\t\t\t* translating these properties to callbacks. It seemed to be operating\n\t\t\t\t\t\t* on events exclusively.\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tthis.request.addEventListener(eventName, nextValue);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t\tdefault: return invoke();\n\t\t\t\t}\n\t\t\t},\n\t\t\tmethodCall: ([methodName, args], invoke) => {\n\t\t\t\tswitch (methodName) {\n\t\t\t\t\tcase \"open\": {\n\t\t\t\t\t\tconst [method, url] = args;\n\t\t\t\t\t\tif (typeof url === \"undefined\") {\n\t\t\t\t\t\t\tthis.method = \"GET\";\n\t\t\t\t\t\t\tthis.url = toAbsoluteUrl(method);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.method = method;\n\t\t\t\t\t\t\tthis.url = toAbsoluteUrl(url);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.logger = this.logger.extend(`${this.method} ${this.url.href}`);\n\t\t\t\t\t\tthis.logger.info(\"open\", this.method, this.url.href);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t\tcase \"addEventListener\": {\n\t\t\t\t\t\tconst [eventName, listener] = args;\n\t\t\t\t\t\tthis.registerEvent(eventName, listener);\n\t\t\t\t\t\tthis.logger.info(\"addEventListener\", eventName, listener);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t\tcase \"setRequestHeader\": {\n\t\t\t\t\t\tconst [name, value] = args;\n\t\t\t\t\t\tthis.requestHeaders.set(name, value);\n\t\t\t\t\t\tthis.logger.info(\"setRequestHeader\", name, value);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t\tcase \"send\": {\n\t\t\t\t\t\tconst [body] = args;\n\t\t\t\t\t\tthis.request.addEventListener(\"load\", () => {\n\t\t\t\t\t\t\tif (typeof this.onResponse !== \"undefined\") {\n\t\t\t\t\t\t\t\tconst fetchResponse = createResponse(\n\t\t\t\t\t\t\t\t\tthis.request,\n\t\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t\t* The `response` property is the right way to read\n\t\t\t\t\t\t\t\t\t* the ambiguous response body, as the request's \"responseType\" may differ.\n\t\t\t\t\t\t\t\t\t* @see https://xhr.spec.whatwg.org/#the-response-attribute\n\t\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\t\tthis.request.response\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\tthis.onResponse.call(this, {\n\t\t\t\t\t\t\t\t\tresponse: fetchResponse,\n\t\t\t\t\t\t\t\t\tisMockedResponse: this[kIsRequestHandled],\n\t\t\t\t\t\t\t\t\trequest: fetchRequest,\n\t\t\t\t\t\t\t\t\trequestId: this.requestId\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tconst requestBody = typeof body === \"string\" ? encodeBuffer(body) : body;\n\t\t\t\t\t\tconst fetchRequest = this.toFetchApiRequest(requestBody);\n\t\t\t\t\t\tthis[kFetchRequest] = fetchRequest.clone();\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t* @note Start request handling on the next tick so that the user\n\t\t\t\t\t\t* could add event listeners for \"loadend\" before the interceptor fires it.\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tqueueMicrotask(() => {\n\t\t\t\t\t\t\t(this.onRequest?.call(this, {\n\t\t\t\t\t\t\t\trequest: fetchRequest,\n\t\t\t\t\t\t\t\trequestId: this.requestId\n\t\t\t\t\t\t\t}) || Promise.resolve()).finally(() => {\n\t\t\t\t\t\t\t\tif (!this[kIsRequestHandled]) {\n\t\t\t\t\t\t\t\t\tthis.logger.info(\"request callback settled but request has not been handled (readystate %d), performing as-is...\", this.request.readyState);\n\t\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t\t* @note Set the intercepted request ID on the original request in Node.js\n\t\t\t\t\t\t\t\t\t* so that if it triggers any other interceptors, they don't attempt\n\t\t\t\t\t\t\t\t\t* to process it once again.\n\t\t\t\t\t\t\t\t\t*\n\t\t\t\t\t\t\t\t\t* For instance, XMLHttpRequest is often implemented via \"http.ClientRequest\"\n\t\t\t\t\t\t\t\t\t* and we don't want for both XHR and ClientRequest interceptors to\n\t\t\t\t\t\t\t\t\t* handle the same request at the same time (e.g. emit the \"response\" event twice).\n\t\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\t\tif (IS_NODE) this.request.setRequestHeader(INTERNAL_REQUEST_ID_HEADER_NAME, this.requestId);\n\t\t\t\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tdefault: return invoke();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t/**\n\t\t* Proxy the `.upload` property to gather the event listeners/callbacks.\n\t\t*/\n\t\tdefine(this.request, \"upload\", createProxy(this.request.upload, {\n\t\t\tsetProperty: ([propertyName, nextValue], invoke) => {\n\t\t\t\tswitch (propertyName) {\n\t\t\t\t\tcase \"onloadstart\":\n\t\t\t\t\tcase \"onprogress\":\n\t\t\t\t\tcase \"onaboart\":\n\t\t\t\t\tcase \"onerror\":\n\t\t\t\t\tcase \"onload\":\n\t\t\t\t\tcase \"ontimeout\":\n\t\t\t\t\tcase \"onloadend\": {\n\t\t\t\t\t\tconst eventName = propertyName.slice(2);\n\t\t\t\t\t\tthis.registerUploadEvent(eventName, nextValue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn invoke();\n\t\t\t},\n\t\t\tmethodCall: ([methodName, args], invoke) => {\n\t\t\t\tswitch (methodName) {\n\t\t\t\t\tcase \"addEventListener\": {\n\t\t\t\t\t\tconst [eventName, listener] = args;\n\t\t\t\t\t\tthis.registerUploadEvent(eventName, listener);\n\t\t\t\t\t\tthis.logger.info(\"upload.addEventListener\", eventName, listener);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}));\n\t}\n\tregisterEvent(eventName, listener) {\n\t\tconst nextEvents = (this.events.get(eventName) || []).concat(listener);\n\t\tthis.events.set(eventName, nextEvents);\n\t\tthis.logger.info(\"registered event \\\"%s\\\"\", eventName, listener);\n\t}\n\tregisterUploadEvent(eventName, listener) {\n\t\tconst nextEvents = (this.uploadEvents.get(eventName) || []).concat(listener);\n\t\tthis.uploadEvents.set(eventName, nextEvents);\n\t\tthis.logger.info(\"registered upload event \\\"%s\\\"\", eventName, listener);\n\t}\n\t/**\n\t* Responds to the current request with the given\n\t* Fetch API `Response` instance.\n\t*/\n\tasync respondWith(response) {\n\t\t/**\n\t\t* @note Since `XMLHttpRequestController` delegates the handling of the responses\n\t\t* to the \"load\" event listener that doesn't distinguish between the mocked and original\n\t\t* responses, mark the request that had a mocked response with a corresponding symbol.\n\t\t*\n\t\t* Mark this request as having a mocked response immediately since\n\t\t* calculating request/response total body length is asynchronous.\n\t\t*/\n\t\tthis[kIsRequestHandled] = true;\n\t\t/**\n\t\t* Dispatch request upload events for requests with a body.\n\t\t* @see https://github.com/mswjs/interceptors/issues/573\n\t\t*/\n\t\tif (this[kFetchRequest]) {\n\t\t\tconst totalRequestBodyLength = await getBodyByteLength(this[kFetchRequest]);\n\t\t\tthis.trigger(\"loadstart\", this.request.upload, {\n\t\t\t\tloaded: 0,\n\t\t\t\ttotal: totalRequestBodyLength\n\t\t\t});\n\t\t\tthis.trigger(\"progress\", this.request.upload, {\n\t\t\t\tloaded: totalRequestBodyLength,\n\t\t\t\ttotal: totalRequestBodyLength\n\t\t\t});\n\t\t\tthis.trigger(\"load\", this.request.upload, {\n\t\t\t\tloaded: totalRequestBodyLength,\n\t\t\t\ttotal: totalRequestBodyLength\n\t\t\t});\n\t\t\tthis.trigger(\"loadend\", this.request.upload, {\n\t\t\t\tloaded: totalRequestBodyLength,\n\t\t\t\ttotal: totalRequestBodyLength\n\t\t\t});\n\t\t}\n\t\tthis.logger.info(\"responding with a mocked response: %d %s\", response.status, response.statusText);\n\t\tdefine(this.request, \"status\", response.status);\n\t\tdefine(this.request, \"statusText\", response.statusText);\n\t\tdefine(this.request, \"responseURL\", this.url.href);\n\t\tthis.request.getResponseHeader = new Proxy(this.request.getResponseHeader, { apply: (_, __, args) => {\n\t\t\tthis.logger.info(\"getResponseHeader\", args[0]);\n\t\t\tif (this.request.readyState < this.request.HEADERS_RECEIVED) {\n\t\t\t\tthis.logger.info(\"headers not received yet, returning null\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tconst headerValue = response.headers.get(args[0]);\n\t\t\tthis.logger.info(\"resolved response header \\\"%s\\\" to\", args[0], headerValue);\n\t\t\treturn headerValue;\n\t\t} });\n\t\tthis.request.getAllResponseHeaders = new Proxy(this.request.getAllResponseHeaders, { apply: () => {\n\t\t\tthis.logger.info(\"getAllResponseHeaders\");\n\t\t\tif (this.request.readyState < this.request.HEADERS_RECEIVED) {\n\t\t\t\tthis.logger.info(\"headers not received yet, returning empty string\");\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tconst allHeaders = Array.from(response.headers.entries()).map(([headerName, headerValue]) => {\n\t\t\t\treturn `${headerName}: ${headerValue}`;\n\t\t\t}).join(\"\\r\\n\");\n\t\t\tthis.logger.info(\"resolved all response headers to\", allHeaders);\n\t\t\treturn allHeaders;\n\t\t} });\n\t\tObject.defineProperties(this.request, {\n\t\t\tresponse: {\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: false,\n\t\t\t\tget: () => this.response\n\t\t\t},\n\t\t\tresponseText: {\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: false,\n\t\t\t\tget: () => this.responseText\n\t\t\t},\n\t\t\tresponseXML: {\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: false,\n\t\t\t\tget: () => this.responseXML\n\t\t\t}\n\t\t});\n\t\tconst totalResponseBodyLength = await getBodyByteLength(response.clone());\n\t\tthis.logger.info(\"calculated response body length\", totalResponseBodyLength);\n\t\tthis.trigger(\"loadstart\", this.request, {\n\t\t\tloaded: 0,\n\t\t\ttotal: totalResponseBodyLength\n\t\t});\n\t\tthis.setReadyState(this.request.HEADERS_RECEIVED);\n\t\tthis.setReadyState(this.request.LOADING);\n\t\tconst finalizeResponse = () => {\n\t\t\tthis.logger.info(\"finalizing the mocked response...\");\n\t\t\tthis.setReadyState(this.request.DONE);\n\t\t\tthis.trigger(\"load\", this.request, {\n\t\t\t\tloaded: this.responseBuffer.byteLength,\n\t\t\t\ttotal: totalResponseBodyLength\n\t\t\t});\n\t\t\tthis.trigger(\"loadend\", this.request, {\n\t\t\t\tloaded: this.responseBuffer.byteLength,\n\t\t\t\ttotal: totalResponseBodyLength\n\t\t\t});\n\t\t};\n\t\tif (response.body) {\n\t\t\tthis.logger.info(\"mocked response has body, streaming...\");\n\t\t\tconst reader = response.body.getReader();\n\t\t\tconst readNextResponseBodyChunk = async () => {\n\t\t\t\tconst { value, done } = await reader.read();\n\t\t\t\tif (done) {\n\t\t\t\t\tthis.logger.info(\"response body stream done!\");\n\t\t\t\t\tfinalizeResponse();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (value) {\n\t\t\t\t\tthis.logger.info(\"read response body chunk:\", value);\n\t\t\t\t\tthis.responseBuffer = concatArrayBuffer(this.responseBuffer, value);\n\t\t\t\t\tthis.trigger(\"progress\", this.request, {\n\t\t\t\t\t\tloaded: this.responseBuffer.byteLength,\n\t\t\t\t\t\ttotal: totalResponseBodyLength\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treadNextResponseBodyChunk();\n\t\t\t};\n\t\t\treadNextResponseBodyChunk();\n\t\t} else finalizeResponse();\n\t}\n\tresponseBufferToText() {\n\t\treturn decodeBuffer(this.responseBuffer);\n\t}\n\tget response() {\n\t\tthis.logger.info(\"getResponse (responseType: %s)\", this.request.responseType);\n\t\tif (this.request.readyState !== this.request.DONE) return null;\n\t\tswitch (this.request.responseType) {\n\t\t\tcase \"json\": {\n\t\t\t\tconst responseJson = parseJson(this.responseBufferToText());\n\t\t\t\tthis.logger.info(\"resolved response JSON\", responseJson);\n\t\t\t\treturn responseJson;\n\t\t\t}\n\t\t\tcase \"arraybuffer\": {\n\t\t\t\tconst arrayBuffer = toArrayBuffer(this.responseBuffer);\n\t\t\t\tthis.logger.info(\"resolved response ArrayBuffer\", arrayBuffer);\n\t\t\t\treturn arrayBuffer;\n\t\t\t}\n\t\t\tcase \"blob\": {\n\t\t\t\tconst mimeType = this.request.getResponseHeader(\"Content-Type\") || \"text/plain\";\n\t\t\t\tconst responseBlob = new Blob([this.responseBufferToText()], { type: mimeType });\n\t\t\t\tthis.logger.info(\"resolved response Blob (mime type: %s)\", responseBlob, mimeType);\n\t\t\t\treturn responseBlob;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tconst responseText = this.responseBufferToText();\n\t\t\t\tthis.logger.info(\"resolving \\\"%s\\\" response type as text\", this.request.responseType, responseText);\n\t\t\t\treturn responseText;\n\t\t\t}\n\t\t}\n\t}\n\tget responseText() {\n\t\t/**\n\t\t* Throw when trying to read the response body as text when the\n\t\t* \"responseType\" doesn't expect text. This just respects the spec better.\n\t\t* @see https://xhr.spec.whatwg.org/#the-responsetext-attribute\n\t\t*/\n\t\tinvariant(this.request.responseType === \"\" || this.request.responseType === \"text\", \"InvalidStateError: The object is in invalid state.\");\n\t\tif (this.request.readyState !== this.request.LOADING && this.request.readyState !== this.request.DONE) return \"\";\n\t\tconst responseText = this.responseBufferToText();\n\t\tthis.logger.info(\"getResponseText: \\\"%s\\\"\", responseText);\n\t\treturn responseText;\n\t}\n\tget responseXML() {\n\t\tinvariant(this.request.responseType === \"\" || this.request.responseType === \"document\", \"InvalidStateError: The object is in invalid state.\");\n\t\tif (this.request.readyState !== this.request.DONE) return null;\n\t\tconst contentType = this.request.getResponseHeader(\"Content-Type\") || \"\";\n\t\tif (typeof DOMParser === \"undefined\") {\n\t\t\tconsole.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.\");\n\t\t\treturn null;\n\t\t}\n\t\tif (isDomParserSupportedType(contentType)) return new DOMParser().parseFromString(this.responseBufferToText(), contentType);\n\t\treturn null;\n\t}\n\terrorWith(error) {\n\t\t/**\n\t\t* @note Mark this request as handled even if it received a mock error.\n\t\t* This prevents the controller from trying to perform this request as-is.\n\t\t*/\n\t\tthis[kIsRequestHandled] = true;\n\t\tthis.logger.info(\"responding with an error\");\n\t\tthis.setReadyState(this.request.DONE);\n\t\tthis.trigger(\"error\", this.request);\n\t\tthis.trigger(\"loadend\", this.request);\n\t}\n\t/**\n\t* Transitions this request's `readyState` to the given one.\n\t*/\n\tsetReadyState(nextReadyState) {\n\t\tthis.logger.info(\"setReadyState: %d -> %d\", this.request.readyState, nextReadyState);\n\t\tif (this.request.readyState === nextReadyState) {\n\t\t\tthis.logger.info(\"ready state identical, skipping transition...\");\n\t\t\treturn;\n\t\t}\n\t\tdefine(this.request, \"readyState\", nextReadyState);\n\t\tthis.logger.info(\"set readyState to: %d\", nextReadyState);\n\t\tif (nextReadyState !== this.request.UNSENT) {\n\t\t\tthis.logger.info(\"triggering \\\"readystatechange\\\" event...\");\n\t\t\tthis.trigger(\"readystatechange\", this.request);\n\t\t}\n\t}\n\t/**\n\t* Triggers given event on the `XMLHttpRequest` instance.\n\t*/\n\ttrigger(eventName, target, options) {\n\t\tconst callback = target[`on${eventName}`];\n\t\tconst event = createEvent(target, eventName, options);\n\t\tthis.logger.info(\"trigger \\\"%s\\\"\", eventName, options || \"\");\n\t\tif (typeof callback === \"function\") {\n\t\t\tthis.logger.info(\"found a direct \\\"%s\\\" callback, calling...\", eventName);\n\t\t\tcallback.call(target, event);\n\t\t}\n\t\tconst events = target instanceof XMLHttpRequestUpload ? this.uploadEvents : this.events;\n\t\tfor (const [registeredEventName, listeners] of events) if (registeredEventName === eventName) {\n\t\t\tthis.logger.info(\"found %d listener(s) for \\\"%s\\\" event, calling...\", listeners.length, eventName);\n\t\t\tlisteners.forEach((listener) => listener.call(target, event));\n\t\t}\n\t}\n\t/**\n\t* Converts this `XMLHttpRequest` instance into a Fetch API `Request` instance.\n\t*/\n\ttoFetchApiRequest(body) {\n\t\tthis.logger.info(\"converting request to a Fetch API Request...\");\n\t\tconst resolvedBody = body instanceof Document ? body.documentElement.innerText : body;\n\t\tconst fetchRequest = new Request(this.url.href, {\n\t\t\tmethod: this.method,\n\t\t\theaders: this.requestHeaders,\n\t\t\tcredentials: this.request.withCredentials ? \"include\" : \"same-origin\",\n\t\t\tbody: [\"GET\", \"HEAD\"].includes(this.method.toUpperCase()) ? null : resolvedBody\n\t\t});\n\t\tdefine(fetchRequest, \"headers\", createProxy(fetchRequest.headers, { methodCall: ([methodName, args], invoke) => {\n\t\t\tswitch (methodName) {\n\t\t\t\tcase \"append\":\n\t\t\t\tcase \"set\": {\n\t\t\t\t\tconst [headerName, headerValue] = args;\n\t\t\t\t\tthis.request.setRequestHeader(headerName, headerValue);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"delete\": {\n\t\t\t\t\tconst [headerName] = args;\n\t\t\t\t\tconsole.warn(`XMLHttpRequest: Cannot remove a \"${headerName}\" header from the Fetch API representation of the \"${fetchRequest.method} ${fetchRequest.url}\" request. XMLHttpRequest headers cannot be removed.`);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn invoke();\n\t\t} }));\n\t\tsetRawRequest(fetchRequest, this.request);\n\t\tthis.logger.info(\"converted request to a Fetch API Request!\", fetchRequest);\n\t\treturn fetchRequest;\n\t}\n};\nfunction toAbsoluteUrl(url) {\n\t/**\n\t* @note XMLHttpRequest interceptor may run in environments\n\t* that implement XMLHttpRequest but don't implement \"location\"\n\t* (for example, React Native). If that's the case, return the\n\t* input URL as-is (nothing to be relative to).\n\t* @see https://github.com/mswjs/msw/issues/1777\n\t*/\n\tif (typeof location === \"undefined\") return new URL(url);\n\treturn new URL(url.toString(), location.href);\n}\nfunction define(target, property, value) {\n\tReflect.defineProperty(target, property, {\n\t\twritable: true,\n\t\tenumerable: true,\n\t\tvalue\n\t});\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/XMLHttpRequestProxy.ts\n/**\n* Create a proxied `XMLHttpRequest` class.\n* The proxied class establishes spies on certain methods,\n* allowing us to intercept requests and respond to them.\n*/\nfunction createXMLHttpRequestProxy({ emitter, logger }) {\n\treturn new Proxy(globalThis.XMLHttpRequest, { construct(target, args, newTarget) {\n\t\tlogger.info(\"constructed new XMLHttpRequest\");\n\t\tconst originalRequest = Reflect.construct(target, args, newTarget);\n\t\t/**\n\t\t* @note Forward prototype descriptors onto the proxied object.\n\t\t* XMLHttpRequest is implemented in JSDOM in a way that assigns\n\t\t* a bunch of descriptors, like \"set responseType()\" on the prototype.\n\t\t* With this propagation, we make sure that those descriptors trigger\n\t\t* when the user operates with the proxied request instance.\n\t\t*/\n\t\tconst prototypeDescriptors = Object.getOwnPropertyDescriptors(target.prototype);\n\t\tfor (const propertyName in prototypeDescriptors) Reflect.defineProperty(originalRequest, propertyName, prototypeDescriptors[propertyName]);\n\t\tconst xhrRequestController = new XMLHttpRequestController(originalRequest, logger);\n\t\txhrRequestController.onRequest = async function({ request, requestId }) {\n\t\t\tconst controller = new RequestController(request, {\n\t\t\t\tpassthrough: () => {\n\t\t\t\t\tthis.logger.info(\"no mocked response received, performing request as-is...\");\n\t\t\t\t},\n\t\t\t\trespondWith: async (response) => {\n\t\t\t\t\tif (isResponseError(response)) {\n\t\t\t\t\t\tthis.errorWith(/* @__PURE__ */ new TypeError(\"Network error\"));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tawait this.respondWith(response);\n\t\t\t\t},\n\t\t\t\terrorWith: (reason) => {\n\t\t\t\t\tthis.logger.info(\"request errored!\", { error: reason });\n\t\t\t\t\tif (reason instanceof Error) this.errorWith(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.logger.info(\"awaiting mocked response...\");\n\t\t\tthis.logger.info(\"emitting the \\\"request\\\" event for %s listener(s)...\", emitter.listenerCount(\"request\"));\n\t\t\tawait handleRequest({\n\t\t\t\trequest,\n\t\t\t\trequestId,\n\t\t\t\tcontroller,\n\t\t\t\temitter\n\t\t\t});\n\t\t};\n\t\txhrRequestController.onResponse = async function({ response, isMockedResponse, request, requestId }) {\n\t\t\tthis.logger.info(\"emitting the \\\"response\\\" event for %s listener(s)...\", emitter.listenerCount(\"response\"));\n\t\t\temitter.emit(\"response\", {\n\t\t\t\tresponse,\n\t\t\t\tisMockedResponse,\n\t\t\t\trequest,\n\t\t\t\trequestId\n\t\t\t});\n\t\t};\n\t\treturn xhrRequestController.request;\n\t} });\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/index.ts\nvar XMLHttpRequestInterceptor = class XMLHttpRequestInterceptor extends Interceptor {\n\tstatic {\n\t\tthis.interceptorSymbol = Symbol(\"xhr\");\n\t}\n\tconstructor() {\n\t\tsuper(XMLHttpRequestInterceptor.interceptorSymbol);\n\t}\n\tcheckEnvironment() {\n\t\treturn hasConfigurableGlobal(\"XMLHttpRequest\");\n\t}\n\tsetup() {\n\t\tconst logger = this.logger.extend(\"setup\");\n\t\tlogger.info(\"patching \\\"XMLHttpRequest\\\" module...\");\n\t\tconst PureXMLHttpRequest = globalThis.XMLHttpRequest;\n\t\tinvariant(!PureXMLHttpRequest[IS_PATCHED_MODULE], \"Failed to patch the \\\"XMLHttpRequest\\\" module: already patched.\");\n\t\tglobalThis.XMLHttpRequest = createXMLHttpRequestProxy({\n\t\t\temitter: this.emitter,\n\t\t\tlogger: this.logger\n\t\t});\n\t\tlogger.info(\"native \\\"XMLHttpRequest\\\" module patched!\", globalThis.XMLHttpRequest.name);\n\t\tObject.defineProperty(globalThis.XMLHttpRequest, IS_PATCHED_MODULE, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t\tvalue: true\n\t\t});\n\t\tthis.subscriptions.push(() => {\n\t\t\tObject.defineProperty(globalThis.XMLHttpRequest, IS_PATCHED_MODULE, { value: void 0 });\n\t\t\tglobalThis.XMLHttpRequest = PureXMLHttpRequest;\n\t\t\tlogger.info(\"native \\\"XMLHttpRequest\\\" module restored!\", globalThis.XMLHttpRequest.name);\n\t\t});\n\t}\n};\n\n//#endregion\nexport { XMLHttpRequestInterceptor as t };\n//# sourceMappingURL=XMLHttpRequest-C8dIZpds.mjs.map"],"names":["EventPolyfill","constructor","type","options","this","NONE","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE","srcElement","currentTarget","eventPhase","isTrusted","composed","cancelable","defaultPrevented","bubbles","lengthComputable","loaded","total","cancelBubble","returnValue","target","timeStamp","Date","now","composedPath","initEvent","preventDefault","stopPropagation","stopImmediatePropagation","ProgressEventPolyfill","init","super","SUPPORTS_PROGRESS_EVENT","ProgressEvent","findPropertySource","propertyName","Object","prototype","hasOwnProperty","call","Reflect","getPrototypeOf","createProxy","Proxy","constructorCall","methodCall","getProperty","setProperty","handler","construct","args","newTarget","next","bind","set","nextValue","propertySource","ownDescriptors","getOwnPropertyDescriptor","apply","defineProperty","writable","enumerable","configurable","value","get","receiver","next$1","optionsToProxyHandler","createHeadersFromXMLHttpRequestHeaders","headersString","headers","Headers","lines","split","line","trim","name","parts","join","append","async","getBodyByteLength","input","explicitContentLength","Number","arrayBuffer","byteLength","kIsRequestHandled","Symbol","IS_NODE","isNodeProcess","kFetchRequest","XMLHttpRequestController","initialRequest","logger","method","url","events","Map","uploadEvents","requestId","createRequestId","requestHeaders","responseBuffer","Uint8Array","request","invoke","eventName","slice","addEventListener","methodName","toAbsoluteUrl","extend","href","info","listener","registerEvent","body","onResponse","fetchResponse","FetchResponse","isResponseWithBody","status","responseURL","statusText","getAllResponseHeaders","createResponse","response","isMockedResponse","fetchRequest","requestBody","encodeBuffer","toFetchApiRequest","clone","queueMicrotask","onRequest","Promise","resolve","finally","readyState","setRequestHeader","INTERNAL_REQUEST_ID_HEADER_NAME","define","upload","registerUploadEvent","nextEvents","concat","respondWith","totalRequestBodyLength","trigger","getResponseHeader","_","__","HEADERS_RECEIVED","headerValue","allHeaders","Array","from","entries","map","headerName","defineProperties","responseText","responseXML","totalResponseBodyLength","setReadyState","LOADING","finalizeResponse","DONE","reader","getReader","readNextResponseBodyChunk","done","read","left","right","result","concatArrayBuffer","responseBufferToText","decodeBuffer","responseType","responseJson","data","JSON","parse","parseJson","toArrayBuffer","mimeType","responseBlob","Blob","invariant","contentType","DOMParser","console","warn","some","supportedType","startsWith","parseFromString","errorWith","error","nextReadyState","UNSENT","callback","event","ProgressEventClass","includes","createEvent","XMLHttpRequestUpload","registeredEventName","listeners","length","forEach","resolvedBody","Document","documentElement","innerText","Request","credentials","withCredentials","toUpperCase","setRawRequest","location","URL","toString","property","XMLHttpRequestInterceptor","Interceptor","interceptorSymbol","checkEnvironment","hasConfigurableGlobal","setup","PureXMLHttpRequest","globalThis","XMLHttpRequest","IS_PATCHED_MODULE","emitter","originalRequest","prototypeDescriptors","getOwnPropertyDescriptors","xhrRequestController","controller","RequestController","passthrough","isResponseError","TypeError","reason","Error","listenerCount","handleRequest","emit","createXMLHttpRequestProxy","subscriptions","push"],"mappings":"2hBAsBA,IAAIA,EAAgB,MACnB,WAAAC,CAAYC,EAAMC,GACjBC,KAAKC,KAAO,EACZD,KAAKE,gBAAkB,EACvBF,KAAKG,UAAY,EACjBH,KAAKI,eAAiB,EACtBJ,KAAKF,KAAO,GACZE,KAAKK,WAAa,KAClBL,KAAKM,cAAgB,KACrBN,KAAKO,WAAa,EAClBP,KAAKQ,WAAY,EACjBR,KAAKS,UAAW,EAChBT,KAAKU,YAAa,EAClBV,KAAKW,kBAAmB,EACx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H,GACnB9H,KAAKsM,UAA0B,IAAI8C,UAAU,wBAGxCpP,KAAKkJ,YAAYpB,IAExBwE,UAAY+C,IACXrP,KAAK6F,OAAOoB,KAAK,mBAAoB,CAAEsF,MAAO8C,IAC1CA,aAAkBC,OAAOtP,KAAKsM,UAAU+C,MAG9CrP,KAAK6F,OAAOoB,KAAK,+BACjBjH,KAAK6F,OAAOoB,KAAK,qDAAwD0H,EAAQY,cAAc,kBACzFC,EAAc,CACnBhJ,UACAL,YACA6I,aACAL,WAEF,EACAI,EAAqB1H,WAAatC,gBAAe+C,SAAEA,EAAQC,iBAAEA,EAAgBvB,QAAEA,EAAOL,UAAEA,IACvFnG,KAAK6F,OAAOoB,KAAK,sDAAyD0H,EAAQY,cAAc,aAChGZ,EAAQc,KAAK,WAAY,CACxB3H,WACAC,mBACAvB,UACAL,aAEF,EACO4I,EAAqBvI,OAC7B,GACD,CAmB8BkJ,CAA0B,CACrDf,QAAS3O,KAAK2O,QACd9I,OAAQ7F,KAAK6F,SAEdA,EAAOoB,KAAK,0CAA6CuH,WAAWC,eAAe9J,MACnFzC,OAAOwB,eAAe8K,WAAWC,eAAgBC,EAAmB,CACnE9K,YAAY,EACZC,cAAc,EACdC,OAAO,IAER9D,KAAK2P,cAAcC,MAAK,KACvB1N,OAAOwB,eAAe8K,WAAWC,eAAgBC,EAAmB,CAAE5K,WAAO,IAC7E0K,WAAWC,eAAiBF,EAC5B1I,EAAOoB,KAAK,2CAA8CuH,WAAWC,eAAe9J,QAEtF","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=new TextEncoder;exports.n=function(t){return e.encode(t)},exports.r=function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)},exports.t=function(e,t){return new TextDecoder(t).decode(e)};
2
+ //# sourceMappingURL=bufferUtils-_8XfKIfX.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bufferUtils-_8XfKIfX.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.mjs"],"sourcesContent":["//#region src/utils/bufferUtils.ts\nconst encoder = new TextEncoder();\nfunction encodeBuffer(text) {\n\treturn encoder.encode(text);\n}\nfunction decodeBuffer(buffer, encoding) {\n\treturn new TextDecoder(encoding).decode(buffer);\n}\n/**\n* Create an `ArrayBuffer` from the given `Uint8Array`.\n* Takes the byte offset into account to produce the right buffer\n* in the case when the buffer is bigger than the data view.\n*/\nfunction toArrayBuffer(array) {\n\treturn array.buffer.slice(array.byteOffset, array.byteOffset + array.byteLength);\n}\n\n//#endregion\nexport { encodeBuffer as n, toArrayBuffer as r, decodeBuffer as t };\n//# sourceMappingURL=bufferUtils-_8XfKIfX.mjs.map"],"names":["encoder","TextEncoder","text","encode","array","buffer","slice","byteOffset","byteLength","encoding","TextDecoder","decode"],"mappings":"aACA,MAAMA,EAAU,IAAIC,sBACpB,SAAsBC,GACrB,OAAOF,EAAQG,OAAOD,EACvB,YASA,SAAuBE,GACtB,OAAOA,EAAMC,OAAOC,MAAMF,EAAMG,WAAYH,EAAMG,WAAaH,EAAMI,WACtE,YAVA,SAAsBH,EAAQI,GAC7B,OAAO,IAAIC,YAAYD,GAAUE,OAAON,EACzC","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ const e=new TextEncoder;function t(t){return e.encode(t)}function n(e,t){return new TextDecoder(t).decode(e)}function r(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}export{t as n,r,n as t};
2
+ //# sourceMappingURL=bufferUtils-_8XfKIfX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bufferUtils-_8XfKIfX.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.mjs"],"sourcesContent":["//#region src/utils/bufferUtils.ts\nconst encoder = new TextEncoder();\nfunction encodeBuffer(text) {\n\treturn encoder.encode(text);\n}\nfunction decodeBuffer(buffer, encoding) {\n\treturn new TextDecoder(encoding).decode(buffer);\n}\n/**\n* Create an `ArrayBuffer` from the given `Uint8Array`.\n* Takes the byte offset into account to produce the right buffer\n* in the case when the buffer is bigger than the data view.\n*/\nfunction toArrayBuffer(array) {\n\treturn array.buffer.slice(array.byteOffset, array.byteOffset + array.byteLength);\n}\n\n//#endregion\nexport { encodeBuffer as n, toArrayBuffer as r, decodeBuffer as t };\n//# sourceMappingURL=bufferUtils-_8XfKIfX.mjs.map"],"names":["encoder","TextEncoder","encodeBuffer","text","encode","decodeBuffer","buffer","encoding","TextDecoder","decode","toArrayBuffer","array","slice","byteOffset","byteLength"],"mappings":"AACA,MAAMA,EAAU,IAAIC,YACpB,SAASC,EAAaC,GACrB,OAAOH,EAAQI,OAAOD,EACvB,CACA,SAASE,EAAaC,EAAQC,GAC7B,OAAO,IAAIC,YAAYD,GAAUE,OAAOH,EACzC,CAMA,SAASI,EAAcC,GACtB,OAAOA,EAAML,OAAOM,MAAMD,EAAME,WAAYF,EAAME,WAAaF,EAAMG,WACtE","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("./glossary-glQBRnVD.cjs.js"),t=require("./fetchUtils-CoU35g3M.cjs.js"),r=require("./getRawRequest-DnwmXyOW.cjs.js"),o=require("./handleRequest-Y97UwBbF.cjs.js"),s=require("./hasConfigurableGlobal-DBJA0vjm.cjs.js"),n=require("../../../../../../@open-draft_deferred-promise@2.2.0/node_modules/@open-draft/deferred-promise/build/index.cjs.js"),i=require("../../../../../../outvariant@1.4.3/node_modules/outvariant/lib/index.cjs.js"),c=require("../../../../../../@open-draft_until@2.1.0/node_modules/@open-draft/until/lib/index.cjs.js"),a=require("node:zlib");function l(e){return Object.assign(new TypeError("Failed to fetch"),{cause:e})}const u=["content-encoding","content-language","content-location","content-type","content-length"],d=Symbol("kRedirectCount");function h(e,t){return e.origin===t.origin&&"null"===e.origin||e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}var f=class extends TransformStream{constructor(){const e=a.createBrotliDecompress({flush:a.constants.BROTLI_OPERATION_FLUSH,finishFlush:a.constants.BROTLI_OPERATION_FLUSH});super({async transform(t,r){const o=Buffer.from(t),s=await new Promise(((t,s)=>{e.write(o,(e=>{e&&s(e)})),e.flush(),e.once("data",(e=>t(e))),e.once("error",(e=>s(e))),e.once("end",(()=>r.terminate()))})).catch((e=>{r.error(e)}));r.enqueue(s)}})}},p=class extends TransformStream{constructor(e,...t){super({},...t);const r=[super.readable,...e].reduce(((e,t)=>e.pipeThrough(t)));Object.defineProperty(this,"readable",{get:()=>r})}};function g(e){if(null===e.body)return null;const t=function(e){if(""===e)return null;const t=function(e){return e.toLowerCase().split(",").map((e=>e.trim()))}(e);return 0===t.length?null:new p(t.reduceRight(((e,t)=>"gzip"===t||"x-gzip"===t?e.concat(new DecompressionStream("gzip")):"deflate"===t?e.concat(new DecompressionStream("deflate")):"br"===t?e.concat(new f):(e.length=0,e)),[]))}(e.headers.get("content-encoding")||"");return t?(e.body.pipeTo(t.writable),t.readable):null}var m=class a extends t.s{static{this.symbol=Symbol("fetch")}constructor(){super(a.symbol)}checkEnvironment(){return s.t("fetch")}async setup(){const s=globalThis.fetch;i.invariant(!s[e.t],'Failed to patch the "fetch" module: already patched.'),globalThis.fetch=async(e,i)=>{const a=t.r(),f="string"!=typeof e||"undefined"==typeof location||t.n(e)?e:new URL(e,location.href),p=new Request(f,i);e instanceof Request&&r.n(p,e);const m=new n.DeferredPromise,b=new t.i(p,{passthrough:async()=>{this.logger.info("request has not been handled, passthrough...");const e=p.clone(),{error:t,data:r}=await c.until((()=>s(p)));if(t)return m.reject(t);if(this.logger.info("original fetch performed",r),this.emitter.listenerCount("response")>0){this.logger.info('emitting the "response" event...');const t=r.clone();await o.i(this.emitter,"response",{response:t,isMockedResponse:!1,request:e,requestId:a})}m.resolve(r)},respondWith:async e=>{if(o.n(e))return this.logger.info("request has errored!",{response:e}),void m.reject(l(e));this.logger.info("received mocked response!",{rawResponse:e});const r=g(e),s=null===r?e:new t.t(r,e);if(t.t.setUrl(p.url,s),t.t.isRedirectResponse(s.status)){if("error"===p.redirect)return void m.reject(l("unexpected redirect"));if("follow"===p.redirect)return void async function(e,t){if(303!==t.status&&null!=e.body)return Promise.reject(l());const r=new URL(e.url);let o;try{o=new URL(t.headers.get("location"),e.url)}catch(e){return Promise.reject(l(e))}if("http:"!==o.protocol&&"https:"!==o.protocol)return Promise.reject(l("URL scheme must be a HTTP(S) scheme"));if(Reflect.get(e,d)>20)return Promise.reject(l("redirect count exceeded"));if(Object.defineProperty(e,d,{value:(Reflect.get(e,d)||0)+1}),"cors"===e.mode&&(o.username||o.password)&&!h(r,o))return Promise.reject(l('cross origin not allowed for request mode "cors"'));const s={};([301,302].includes(t.status)&&"POST"===e.method||303===t.status&&!["HEAD","GET"].includes(e.method))&&(s.method="GET",s.body=null,u.forEach((t=>{e.headers.delete(t)}))),h(r,o)||(e.headers.delete("authorization"),e.headers.delete("proxy-authorization"),e.headers.delete("cookie"),e.headers.delete("host")),s.headers=e.headers;const n=await fetch(new Request(o,s));return Object.defineProperty(n,"redirected",{value:!0,configurable:!0}),n}(p,s).then((e=>{m.resolve(e)}),(e=>{m.reject(e)}))}this.emitter.listenerCount("response")>0&&(this.logger.info('emitting the "response" event...'),await o.i(this.emitter,"response",{response:s.clone(),isMockedResponse:!0,request:p,requestId:a})),m.resolve(s)},errorWith:e=>{this.logger.info("request has been aborted!",{reason:e}),m.reject(e)}});return this.logger.info("[%s] %s",p.method,p.url),this.logger.info("awaiting for the mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',this.emitter.listenerCount("request")),await o.t({request:p,requestId:a,emitter:this.emitter,controller:b}),m},Object.defineProperty(globalThis.fetch,e.t,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push((()=>{Object.defineProperty(globalThis.fetch,e.t,{value:void 0}),globalThis.fetch=s,this.logger.info('restored native "globalThis.fetch"!',globalThis.fetch.name)}))}};exports.t=m;
2
+ //# sourceMappingURL=fetch-G1DVwDKG.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-G1DVwDKG.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.mjs"],"sourcesContent":["import { t as IS_PATCHED_MODULE } from \"./glossary-glQBRnVD.mjs\";\nimport { i as RequestController, n as canParseUrl, r as createRequestId, s as Interceptor, t as FetchResponse } from \"./fetchUtils-CoU35g3M.mjs\";\nimport { n as setRawRequest } from \"./getRawRequest-DnwmXyOW.mjs\";\nimport { i as emitAsync, n as isResponseError, t as handleRequest } from \"./handleRequest-Y97UwBbF.mjs\";\nimport { t as hasConfigurableGlobal } from \"./hasConfigurableGlobal-DBJA0vjm.mjs\";\nimport { DeferredPromise } from \"@open-draft/deferred-promise\";\nimport { invariant } from \"outvariant\";\nimport { until } from \"@open-draft/until\";\nimport zlib from \"node:zlib\";\n\n//#region src/interceptors/fetch/utils/createNetworkError.ts\nfunction createNetworkError(cause) {\n\treturn Object.assign(/* @__PURE__ */ new TypeError(\"Failed to fetch\"), { cause });\n}\n\n//#endregion\n//#region src/interceptors/fetch/utils/followRedirect.ts\nconst REQUEST_BODY_HEADERS = [\n\t\"content-encoding\",\n\t\"content-language\",\n\t\"content-location\",\n\t\"content-type\",\n\t\"content-length\"\n];\nconst kRedirectCount = Symbol(\"kRedirectCount\");\n/**\n* @see https://github.com/nodejs/undici/blob/a6dac3149c505b58d2e6d068b97f4dc993da55f0/lib/web/fetch/index.js#L1210\n*/\nasync function followFetchRedirect(request, response) {\n\tif (response.status !== 303 && request.body != null) return Promise.reject(createNetworkError());\n\tconst requestUrl = new URL(request.url);\n\tlet locationUrl;\n\ttry {\n\t\tlocationUrl = new URL(response.headers.get(\"location\"), request.url);\n\t} catch (error) {\n\t\treturn Promise.reject(createNetworkError(error));\n\t}\n\tif (!(locationUrl.protocol === \"http:\" || locationUrl.protocol === \"https:\")) return Promise.reject(createNetworkError(\"URL scheme must be a HTTP(S) scheme\"));\n\tif (Reflect.get(request, kRedirectCount) > 20) return Promise.reject(createNetworkError(\"redirect count exceeded\"));\n\tObject.defineProperty(request, kRedirectCount, { value: (Reflect.get(request, kRedirectCount) || 0) + 1 });\n\tif (request.mode === \"cors\" && (locationUrl.username || locationUrl.password) && !sameOrigin(requestUrl, locationUrl)) return Promise.reject(createNetworkError(\"cross origin not allowed for request mode \\\"cors\\\"\"));\n\tconst requestInit = {};\n\tif ([301, 302].includes(response.status) && request.method === \"POST\" || response.status === 303 && ![\"HEAD\", \"GET\"].includes(request.method)) {\n\t\trequestInit.method = \"GET\";\n\t\trequestInit.body = null;\n\t\tREQUEST_BODY_HEADERS.forEach((headerName) => {\n\t\t\trequest.headers.delete(headerName);\n\t\t});\n\t}\n\tif (!sameOrigin(requestUrl, locationUrl)) {\n\t\trequest.headers.delete(\"authorization\");\n\t\trequest.headers.delete(\"proxy-authorization\");\n\t\trequest.headers.delete(\"cookie\");\n\t\trequest.headers.delete(\"host\");\n\t}\n\t/**\n\t* @note Undici \"safely\" extracts the request body.\n\t* I suspect we cannot dispatch this request again\n\t* since its body has been read and the stream is locked.\n\t*/\n\trequestInit.headers = request.headers;\n\tconst finalResponse = await fetch(new Request(locationUrl, requestInit));\n\tObject.defineProperty(finalResponse, \"redirected\", {\n\t\tvalue: true,\n\t\tconfigurable: true\n\t});\n\treturn finalResponse;\n}\n/**\n* @see https://github.com/nodejs/undici/blob/a6dac3149c505b58d2e6d068b97f4dc993da55f0/lib/web/fetch/util.js#L761\n*/\nfunction sameOrigin(left, right) {\n\tif (left.origin === right.origin && left.origin === \"null\") return true;\n\tif (left.protocol === right.protocol && left.hostname === right.hostname && left.port === right.port) return true;\n\treturn false;\n}\n\n//#endregion\n//#region src/interceptors/fetch/utils/brotli-decompress.ts\nvar BrotliDecompressionStream = class extends TransformStream {\n\tconstructor() {\n\t\tconst decompress = zlib.createBrotliDecompress({\n\t\t\tflush: zlib.constants.BROTLI_OPERATION_FLUSH,\n\t\t\tfinishFlush: zlib.constants.BROTLI_OPERATION_FLUSH\n\t\t});\n\t\tsuper({ async transform(chunk, controller) {\n\t\t\tconst buffer = Buffer.from(chunk);\n\t\t\tconst decompressed = await new Promise((resolve, reject) => {\n\t\t\t\tdecompress.write(buffer, (error) => {\n\t\t\t\t\tif (error) reject(error);\n\t\t\t\t});\n\t\t\t\tdecompress.flush();\n\t\t\t\tdecompress.once(\"data\", (data) => resolve(data));\n\t\t\t\tdecompress.once(\"error\", (error) => reject(error));\n\t\t\t\tdecompress.once(\"end\", () => controller.terminate());\n\t\t\t}).catch((error) => {\n\t\t\t\tcontroller.error(error);\n\t\t\t});\n\t\t\tcontroller.enqueue(decompressed);\n\t\t} });\n\t}\n};\n\n//#endregion\n//#region src/interceptors/fetch/utils/decompression.ts\nvar PipelineStream = class extends TransformStream {\n\tconstructor(transformStreams, ...strategies) {\n\t\tsuper({}, ...strategies);\n\t\tconst readable = [super.readable, ...transformStreams].reduce((readable$1, transform) => readable$1.pipeThrough(transform));\n\t\tObject.defineProperty(this, \"readable\", { get() {\n\t\t\treturn readable;\n\t\t} });\n\t}\n};\nfunction parseContentEncoding(contentEncoding) {\n\treturn contentEncoding.toLowerCase().split(\",\").map((coding) => coding.trim());\n}\nfunction createDecompressionStream(contentEncoding) {\n\tif (contentEncoding === \"\") return null;\n\tconst codings = parseContentEncoding(contentEncoding);\n\tif (codings.length === 0) return null;\n\treturn new PipelineStream(codings.reduceRight((transformers, coding) => {\n\t\tif (coding === \"gzip\" || coding === \"x-gzip\") return transformers.concat(new DecompressionStream(\"gzip\"));\n\t\telse if (coding === \"deflate\") return transformers.concat(new DecompressionStream(\"deflate\"));\n\t\telse if (coding === \"br\") return transformers.concat(new BrotliDecompressionStream());\n\t\telse transformers.length = 0;\n\t\treturn transformers;\n\t}, []));\n}\nfunction decompressResponse(response) {\n\tif (response.body === null) return null;\n\tconst decompressionStream = createDecompressionStream(response.headers.get(\"content-encoding\") || \"\");\n\tif (!decompressionStream) return null;\n\tresponse.body.pipeTo(decompressionStream.writable);\n\treturn decompressionStream.readable;\n}\n\n//#endregion\n//#region src/interceptors/fetch/index.ts\nvar FetchInterceptor = class FetchInterceptor extends Interceptor {\n\tstatic {\n\t\tthis.symbol = Symbol(\"fetch\");\n\t}\n\tconstructor() {\n\t\tsuper(FetchInterceptor.symbol);\n\t}\n\tcheckEnvironment() {\n\t\treturn hasConfigurableGlobal(\"fetch\");\n\t}\n\tasync setup() {\n\t\tconst pureFetch = globalThis.fetch;\n\t\tinvariant(!pureFetch[IS_PATCHED_MODULE], \"Failed to patch the \\\"fetch\\\" module: already patched.\");\n\t\tglobalThis.fetch = async (input, init) => {\n\t\t\tconst requestId = createRequestId();\n\t\t\t/**\n\t\t\t* @note Resolve potentially relative request URL\n\t\t\t* against the present `location`. This is mainly\n\t\t\t* for native `fetch` in JSDOM.\n\t\t\t* @see https://github.com/mswjs/msw/issues/1625\n\t\t\t*/\n\t\t\tconst resolvedInput = typeof input === \"string\" && typeof location !== \"undefined\" && !canParseUrl(input) ? new URL(input, location.href) : input;\n\t\t\tconst request = new Request(resolvedInput, init);\n\t\t\t/**\n\t\t\t* @note Set the raw request only if a Request instance was provided to fetch.\n\t\t\t*/\n\t\t\tif (input instanceof Request) setRawRequest(request, input);\n\t\t\tconst responsePromise = new DeferredPromise();\n\t\t\tconst controller = new RequestController(request, {\n\t\t\t\tpassthrough: async () => {\n\t\t\t\t\tthis.logger.info(\"request has not been handled, passthrough...\");\n\t\t\t\t\t/**\n\t\t\t\t\t* @note Clone the request instance right before performing it.\n\t\t\t\t\t* This preserves any modifications made to the intercepted request\n\t\t\t\t\t* in the \"request\" listener. This also allows the user to read the\n\t\t\t\t\t* request body in the \"response\" listener (otherwise \"unusable\").\n\t\t\t\t\t*/\n\t\t\t\t\tconst requestCloneForResponseEvent = request.clone();\n\t\t\t\t\tconst { error: responseError, data: originalResponse } = await until(() => pureFetch(request));\n\t\t\t\t\tif (responseError) return responsePromise.reject(responseError);\n\t\t\t\t\tthis.logger.info(\"original fetch performed\", originalResponse);\n\t\t\t\t\tif (this.emitter.listenerCount(\"response\") > 0) {\n\t\t\t\t\t\tthis.logger.info(\"emitting the \\\"response\\\" event...\");\n\t\t\t\t\t\tconst responseClone = originalResponse.clone();\n\t\t\t\t\t\tawait emitAsync(this.emitter, \"response\", {\n\t\t\t\t\t\t\tresponse: responseClone,\n\t\t\t\t\t\t\tisMockedResponse: false,\n\t\t\t\t\t\t\trequest: requestCloneForResponseEvent,\n\t\t\t\t\t\t\trequestId\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tresponsePromise.resolve(originalResponse);\n\t\t\t\t},\n\t\t\t\trespondWith: async (rawResponse) => {\n\t\t\t\t\tif (isResponseError(rawResponse)) {\n\t\t\t\t\t\tthis.logger.info(\"request has errored!\", { response: rawResponse });\n\t\t\t\t\t\tresponsePromise.reject(createNetworkError(rawResponse));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tthis.logger.info(\"received mocked response!\", { rawResponse });\n\t\t\t\t\tconst decompressedStream = decompressResponse(rawResponse);\n\t\t\t\t\tconst response = decompressedStream === null ? rawResponse : new FetchResponse(decompressedStream, rawResponse);\n\t\t\t\t\tFetchResponse.setUrl(request.url, response);\n\t\t\t\t\t/**\n\t\t\t\t\t* Undici's handling of following redirect responses.\n\t\t\t\t\t* Treat the \"manual\" redirect mode as a regular mocked response.\n\t\t\t\t\t* This way, the client can manually follow the redirect it receives.\n\t\t\t\t\t* @see https://github.com/nodejs/undici/blob/a6dac3149c505b58d2e6d068b97f4dc993da55f0/lib/web/fetch/index.js#L1173\n\t\t\t\t\t*/\n\t\t\t\t\tif (FetchResponse.isRedirectResponse(response.status)) {\n\t\t\t\t\t\tif (request.redirect === \"error\") {\n\t\t\t\t\t\t\tresponsePromise.reject(createNetworkError(\"unexpected redirect\"));\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (request.redirect === \"follow\") {\n\t\t\t\t\t\t\tfollowFetchRedirect(request, response).then((response$1) => {\n\t\t\t\t\t\t\t\tresponsePromise.resolve(response$1);\n\t\t\t\t\t\t\t}, (reason) => {\n\t\t\t\t\t\t\t\tresponsePromise.reject(reason);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (this.emitter.listenerCount(\"response\") > 0) {\n\t\t\t\t\t\tthis.logger.info(\"emitting the \\\"response\\\" event...\");\n\t\t\t\t\t\tawait emitAsync(this.emitter, \"response\", {\n\t\t\t\t\t\t\tresponse: response.clone(),\n\t\t\t\t\t\t\tisMockedResponse: true,\n\t\t\t\t\t\t\trequest,\n\t\t\t\t\t\t\trequestId\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tresponsePromise.resolve(response);\n\t\t\t\t},\n\t\t\t\terrorWith: (reason) => {\n\t\t\t\t\tthis.logger.info(\"request has been aborted!\", { reason });\n\t\t\t\t\tresponsePromise.reject(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.logger.info(\"[%s] %s\", request.method, request.url);\n\t\t\tthis.logger.info(\"awaiting for the mocked response...\");\n\t\t\tthis.logger.info(\"emitting the \\\"request\\\" event for %s listener(s)...\", this.emitter.listenerCount(\"request\"));\n\t\t\tawait handleRequest({\n\t\t\t\trequest,\n\t\t\t\trequestId,\n\t\t\t\temitter: this.emitter,\n\t\t\t\tcontroller\n\t\t\t});\n\t\t\treturn responsePromise;\n\t\t};\n\t\tObject.defineProperty(globalThis.fetch, IS_PATCHED_MODULE, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t\tvalue: true\n\t\t});\n\t\tthis.subscriptions.push(() => {\n\t\t\tObject.defineProperty(globalThis.fetch, IS_PATCHED_MODULE, { value: void 0 });\n\t\t\tglobalThis.fetch = pureFetch;\n\t\t\tthis.logger.info(\"restored native \\\"globalThis.fetch\\\"!\", globalThis.fetch.name);\n\t\t});\n\t}\n};\n\n//#endregion\nexport { FetchInterceptor as t };\n//# sourceMappingURL=fetch-G1DVwDKG.mjs.map"],"names":["createNetworkError","cause","Object","assign","TypeError","REQUEST_BODY_HEADERS","kRedirectCount","Symbol","sameOrigin","left","right","origin","protocol","hostname","port","BrotliDecompressionStream","TransformStream","constructor","decompress","zlib","createBrotliDecompress","flush","constants","BROTLI_OPERATION_FLUSH","finishFlush","super","transform","chunk","controller","buffer","Buffer","from","decompressed","Promise","resolve","reject","write","error","once","data","terminate","catch","enqueue","PipelineStream","transformStreams","strategies","readable","reduce","readable$1","pipeThrough","defineProperty","this","get","decompressResponse","response","body","decompressionStream","contentEncoding","codings","toLowerCase","split","map","coding","trim","parseContentEncoding","length","reduceRight","transformers","concat","DecompressionStream","createDecompressionStream","headers","pipeTo","writable","FetchInterceptor","Interceptor","symbol","checkEnvironment","hasConfigurableGlobal","setup","pureFetch","globalThis","fetch","invariant","IS_PATCHED_MODULE","async","input","init","requestId","createRequestId","resolvedInput","location","canParseUrl","URL","href","request","Request","setRawRequest","responsePromise","DeferredPromise","RequestController","passthrough","logger","info","requestCloneForResponseEvent","clone","responseError","originalResponse","until","emitter","listenerCount","responseClone","emitAsync","isMockedResponse","respondWith","rawResponse","isResponseError","decompressedStream","FetchResponse","setUrl","url","isRedirectResponse","status","redirect","requestUrl","locationUrl","Reflect","value","mode","username","password","requestInit","includes","method","forEach","headerName","delete","finalResponse","configurable","followFetchRedirect","then","response$1","reason","errorWith","handleRequest","enumerable","subscriptions","push","name"],"mappings":"wkBAWA,SAASA,EAAmBC,GAC3B,OAAOC,OAAOC,OAAuB,IAAIC,UAAU,mBAAoB,CAAEH,SAC1E,CAIA,MAAMI,EAAuB,CAC5B,mBACA,mBACA,mBACA,eACA,kBAEKC,EAAiBC,OAAO,kBA+C9B,SAASC,EAAWC,EAAMC,GACzB,OAAID,EA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D,UACAP,YACAqB,QAAS1D,KAAK0D,QACdjF,eAEMsE,GAERhG,OAAOgD,eAAe+B,WAAWC,MAAOE,EAAAA,EAAmB,CAC1D6D,YAAY,EACZP,cAAc,EACdX,OAAO,IAER5E,KAAK+F,cAAcC,MAAK,KACvBjJ,OAAOgD,eAAe+B,WAAWC,MAAOE,EAAAA,EAAmB,CAAE2C,WAAO,IACpE9C,WAAWC,MAAQF,EACnB7B,KAAKmD,OAAOC,KAAK,sCAAyCtB,WAAWC,MAAMkE,QAE7E","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{t as e}from"./glossary-glQBRnVD.js";import{s as t,r,n as o,i as s,t as n}from"./fetchUtils-CoU35g3M.js";import{n as i}from"./getRawRequest-DnwmXyOW.js";import{n as a,i as c,t as l}from"./handleRequest-Y97UwBbF.js";import{t as u}from"./hasConfigurableGlobal-DBJA0vjm.js";import{DeferredPromise as d}from"../../../../../../@open-draft_deferred-promise@2.2.0/node_modules/@open-draft/deferred-promise/build/index.js";import{invariant as h}from"../../../../../../outvariant@1.4.3/node_modules/outvariant/lib/index.js";import{until as f}from"../../../../../../@open-draft_until@2.1.0/node_modules/@open-draft/until/lib/index.js";import m from"node:zlib";function p(e){return Object.assign(new TypeError("Failed to fetch"),{cause:e})}const g=["content-encoding","content-language","content-location","content-type","content-length"],b=Symbol("kRedirectCount");function w(e,t){return e.origin===t.origin&&"null"===e.origin||e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port}var y=class extends TransformStream{constructor(){const e=m.createBrotliDecompress({flush:m.constants.BROTLI_OPERATION_FLUSH,finishFlush:m.constants.BROTLI_OPERATION_FLUSH});super({async transform(t,r){const o=Buffer.from(t),s=await new Promise(((t,s)=>{e.write(o,(e=>{e&&s(e)})),e.flush(),e.once("data",(e=>t(e))),e.once("error",(e=>s(e))),e.once("end",(()=>r.terminate()))})).catch((e=>{r.error(e)}));r.enqueue(s)}})}},j=class extends TransformStream{constructor(e,...t){super({},...t);const r=[super.readable,...e].reduce(((e,t)=>e.pipeThrough(t)));Object.defineProperty(this,"readable",{get:()=>r})}};function R(e){if(null===e.body)return null;const t=function(e){if(""===e)return null;const t=function(e){return e.toLowerCase().split(",").map((e=>e.trim()))}(e);return 0===t.length?null:new j(t.reduceRight(((e,t)=>"gzip"===t||"x-gzip"===t?e.concat(new DecompressionStream("gzip")):"deflate"===t?e.concat(new DecompressionStream("deflate")):"br"===t?e.concat(new y):(e.length=0,e)),[]))}(e.headers.get("content-encoding")||"");return t?(e.body.pipeTo(t.writable),t.readable):null}var v=class m extends t{static{this.symbol=Symbol("fetch")}constructor(){super(m.symbol)}checkEnvironment(){return u("fetch")}async setup(){const t=globalThis.fetch;h(!t[e],'Failed to patch the "fetch" module: already patched.'),globalThis.fetch=async(e,u)=>{const h=r(),m="string"!=typeof e||"undefined"==typeof location||o(e)?e:new URL(e,location.href),y=new Request(m,u);e instanceof Request&&i(y,e);const j=new d,v=new s(y,{passthrough:async()=>{this.logger.info("request has not been handled, passthrough...");const e=y.clone(),{error:r,data:o}=await f((()=>t(y)));if(r)return j.reject(r);if(this.logger.info("original fetch performed",o),this.emitter.listenerCount("response")>0){this.logger.info('emitting the "response" event...');const t=o.clone();await c(this.emitter,"response",{response:t,isMockedResponse:!1,request:e,requestId:h})}j.resolve(o)},respondWith:async e=>{if(a(e))return this.logger.info("request has errored!",{response:e}),void j.reject(p(e));this.logger.info("received mocked response!",{rawResponse:e});const t=R(e),r=null===t?e:new n(t,e);if(n.setUrl(y.url,r),n.isRedirectResponse(r.status)){if("error"===y.redirect)return void j.reject(p("unexpected redirect"));if("follow"===y.redirect)return void async function(e,t){if(303!==t.status&&null!=e.body)return Promise.reject(p());const r=new URL(e.url);let o;try{o=new URL(t.headers.get("location"),e.url)}catch(e){return Promise.reject(p(e))}if("http:"!==o.protocol&&"https:"!==o.protocol)return Promise.reject(p("URL scheme must be a HTTP(S) scheme"));if(Reflect.get(e,b)>20)return Promise.reject(p("redirect count exceeded"));if(Object.defineProperty(e,b,{value:(Reflect.get(e,b)||0)+1}),"cors"===e.mode&&(o.username||o.password)&&!w(r,o))return Promise.reject(p('cross origin not allowed for request mode "cors"'));const s={};([301,302].includes(t.status)&&"POST"===e.method||303===t.status&&!["HEAD","GET"].includes(e.method))&&(s.method="GET",s.body=null,g.forEach((t=>{e.headers.delete(t)}))),w(r,o)||(e.headers.delete("authorization"),e.headers.delete("proxy-authorization"),e.headers.delete("cookie"),e.headers.delete("host")),s.headers=e.headers;const n=await fetch(new Request(o,s));return Object.defineProperty(n,"redirected",{value:!0,configurable:!0}),n}(y,r).then((e=>{j.resolve(e)}),(e=>{j.reject(e)}))}this.emitter.listenerCount("response")>0&&(this.logger.info('emitting the "response" event...'),await c(this.emitter,"response",{response:r.clone(),isMockedResponse:!0,request:y,requestId:h})),j.resolve(r)},errorWith:e=>{this.logger.info("request has been aborted!",{reason:e}),j.reject(e)}});return this.logger.info("[%s] %s",y.method,y.url),this.logger.info("awaiting for the mocked response..."),this.logger.info('emitting the "request" event for %s listener(s)...',this.emitter.listenerCount("request")),await l({request:y,requestId:h,emitter:this.emitter,controller:v}),j},Object.defineProperty(globalThis.fetch,e,{enumerable:!0,configurable:!0,value:!0}),this.subscriptions.push((()=>{Object.defineProperty(globalThis.fetch,e,{value:void 0}),globalThis.fetch=t,this.logger.info('restored native "globalThis.fetch"!',globalThis.fetch.name)}))}};export{v as t};
2
+ //# sourceMappingURL=fetch-G1DVwDKG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-G1DVwDKG.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.mjs"],"sourcesContent":["import { t as IS_PATCHED_MODULE } from \"./glossary-glQBRnVD.mjs\";\nimport { i as RequestController, n as canParseUrl, r as createRequestId, s as Interceptor, t as FetchResponse } from \"./fetchUtils-CoU35g3M.mjs\";\nimport { n as setRawRequest } from \"./getRawRequest-DnwmXyOW.mjs\";\nimport { i as emitAsync, n as isResponseError, t as handleRequest } from \"./handleRequest-Y97UwBbF.mjs\";\nimport { t as hasConfigurableGlobal } from \"./hasConfigurableGlobal-DBJA0vjm.mjs\";\nimport { DeferredPromise } from \"@open-draft/deferred-promise\";\nimport { invariant } from \"outvariant\";\nimport { until } from \"@open-draft/until\";\nimport zlib from \"node:zlib\";\n\n//#region src/interceptors/fetch/utils/createNetworkError.ts\nfunction createNetworkError(cause) {\n\treturn Object.assign(/* @__PURE__ */ new TypeError(\"Failed to fetch\"), { cause });\n}\n\n//#endregion\n//#region src/interceptors/fetch/utils/followRedirect.ts\nconst REQUEST_BODY_HEADERS = [\n\t\"content-encoding\",\n\t\"content-language\",\n\t\"content-location\",\n\t\"content-type\",\n\t\"content-length\"\n];\nconst kRedirectCount = Symbol(\"kRedirectCount\");\n/**\n* @see https://github.com/nodejs/undici/blob/a6dac3149c505b58d2e6d068b97f4dc993da55f0/lib/web/fetch/index.js#L1210\n*/\nasync function followFetchRedirect(request, response) {\n\tif (response.status !== 303 && request.body != null) return Promise.reject(createNetworkError());\n\tconst requestUrl = new URL(request.url);\n\tlet locationUrl;\n\ttry {\n\t\tlocationUrl = new URL(response.headers.get(\"location\"), request.url);\n\t} catch (error) {\n\t\treturn Promise.reject(createNetworkError(error));\n\t}\n\tif (!(locationUrl.protocol === \"http:\" || locationUrl.protocol === \"https:\")) return Promise.reject(createNetworkError(\"URL scheme must be a HTTP(S) scheme\"));\n\tif (Reflect.get(request, kRedirectCount) > 20) return Promise.reject(createNetworkError(\"redirect count exceeded\"));\n\tObject.defineProperty(request, kRedirectCount, { value: (Reflect.get(request, kRedirectCount) || 0) + 1 });\n\tif (request.mode === \"cors\" && (locationUrl.username || locationUrl.password) && !sameOrigin(requestUrl, locationUrl)) return Promise.reject(createNetworkError(\"cross origin not allowed for request mode \\\"cors\\\"\"));\n\tconst requestInit = {};\n\tif ([301, 302].includes(response.status) && request.method === \"POST\" || response.status === 303 && ![\"HEAD\", \"GET\"].includes(request.method)) {\n\t\trequestInit.method = \"GET\";\n\t\trequestInit.body = null;\n\t\tREQUEST_BODY_HEADERS.forEach((headerName) => {\n\t\t\trequest.headers.delete(headerName);\n\t\t});\n\t}\n\tif (!sameOrigin(requestUrl, locationUrl)) {\n\t\trequest.headers.delete(\"authorization\");\n\t\trequest.headers.delete(\"proxy-authorization\");\n\t\trequest.headers.delete(\"cookie\");\n\t\trequest.headers.delete(\"host\");\n\t}\n\t/**\n\t* @note Undici \"safely\" extracts the request body.\n\t* I suspect we cannot dispatch this request again\n\t* since its body has been read and the stream is locked.\n\t*/\n\trequestInit.headers = request.headers;\n\tconst finalResponse = await fetch(new Request(locationUrl, requestInit));\n\tObject.defineProperty(finalResponse, \"redirected\", {\n\t\tvalue: true,\n\t\tconfigurable: true\n\t});\n\treturn finalResponse;\n}\n/**\n* @see https://github.com/nodejs/undici/blob/a6dac3149c505b58d2e6d068b97f4dc993da55f0/lib/web/fetch/util.js#L761\n*/\nfunction sameOrigin(left, right) {\n\tif (left.origin === right.origin && left.origin === \"null\") return true;\n\tif (left.protocol === right.protocol && left.hostname === right.hostname && left.port === right.port) return true;\n\treturn false;\n}\n\n//#endregion\n//#region src/interceptors/fetch/utils/brotli-decompress.ts\nvar BrotliDecompressionStream = class extends TransformStream {\n\tconstructor() {\n\t\tconst decompress = zlib.createBrotliDecompress({\n\t\t\tflush: zlib.constants.BROTLI_OPERATION_FLUSH,\n\t\t\tfinishFlush: zlib.constants.BROTLI_OPERATION_FLUSH\n\t\t});\n\t\tsuper({ async transform(chunk, controller) {\n\t\t\tconst buffer = Buffer.from(chunk);\n\t\t\tconst decompressed = await new Promise((resolve, reject) => {\n\t\t\t\tdecompress.write(buffer, (error) => {\n\t\t\t\t\tif (error) reject(error);\n\t\t\t\t});\n\t\t\t\tdecompress.flush();\n\t\t\t\tdecompress.once(\"data\", (data) => resolve(data));\n\t\t\t\tdecompress.once(\"error\", (error) => reject(error));\n\t\t\t\tdecompress.once(\"end\", () => controller.terminate());\n\t\t\t}).catch((error) => {\n\t\t\t\tcontroller.error(error);\n\t\t\t});\n\t\t\tcontroller.enqueue(decompressed);\n\t\t} });\n\t}\n};\n\n//#endregion\n//#region src/interceptors/fetch/utils/decompression.ts\nvar PipelineStream = class extends TransformStream {\n\tconstructor(transformStreams, ...strategies) {\n\t\tsuper({}, ...strategies);\n\t\tconst readable = [super.readable, ...transformStreams].reduce((readable$1, transform) => readable$1.pipeThrough(transform));\n\t\tObject.defineProperty(this, \"readable\", { get() {\n\t\t\treturn readable;\n\t\t} });\n\t}\n};\nfunction parseContentEncoding(contentEncoding) {\n\treturn contentEncoding.toLowerCase().split(\",\").map((coding) => coding.trim());\n}\nfunction createDecompressionStream(contentEncoding) {\n\tif (contentEncoding === \"\") return null;\n\tconst codings = parseContentEncoding(contentEncoding);\n\tif (codings.length === 0) return null;\n\treturn new PipelineStream(codings.reduceRight((transformers, coding) => {\n\t\tif (coding === \"gzip\" || coding === \"x-gzip\") return transformers.concat(new DecompressionStream(\"gzip\"));\n\t\telse if (coding === \"deflate\") return transformers.concat(new DecompressionStream(\"deflate\"));\n\t\telse if (coding === \"br\") return transformers.concat(new BrotliDecompressionStream());\n\t\telse transformers.length = 0;\n\t\treturn transformers;\n\t}, []));\n}\nfunction decompressResponse(response) {\n\tif (response.body === null) return null;\n\tconst decompressionStream = createDecompressionStream(response.headers.get(\"content-encoding\") || \"\");\n\tif (!decompressionStream) return null;\n\tresponse.body.pipeTo(decompressionStream.writable);\n\treturn decompressionStream.readable;\n}\n\n//#endregion\n//#region src/interceptors/fetch/index.ts\nvar FetchInterceptor = class FetchInterceptor extends Interceptor {\n\tstatic {\n\t\tthis.symbol = Symbol(\"fetch\");\n\t}\n\tconstructor() {\n\t\tsuper(FetchInterceptor.symbol);\n\t}\n\tcheckEnvironment() {\n\t\treturn hasConfigurableGlobal(\"fetch\");\n\t}\n\tasync setup() {\n\t\tconst pureFetch = globalThis.fetch;\n\t\tinvariant(!pureFetch[IS_PATCHED_MODULE], \"Failed to patch the \\\"fetch\\\" module: already patched.\");\n\t\tglobalThis.fetch = async (input, init) => {\n\t\t\tconst requestId = createRequestId();\n\t\t\t/**\n\t\t\t* @note Resolve potentially relative request URL\n\t\t\t* against the present `location`. This is mainly\n\t\t\t* for native `fetch` in JSDOM.\n\t\t\t* @see https://github.com/mswjs/msw/issues/1625\n\t\t\t*/\n\t\t\tconst resolvedInput = typeof input === \"string\" && typeof location !== \"undefined\" && !canParseUrl(input) ? new URL(input, location.href) : input;\n\t\t\tconst request = new Request(resolvedInput, init);\n\t\t\t/**\n\t\t\t* @note Set the raw request only if a Request instance was provided to fetch.\n\t\t\t*/\n\t\t\tif (input instanceof Request) setRawRequest(request, input);\n\t\t\tconst responsePromise = new DeferredPromise();\n\t\t\tconst controller = new RequestController(request, {\n\t\t\t\tpassthrough: async () => {\n\t\t\t\t\tthis.logger.info(\"request has not been handled, passthrough...\");\n\t\t\t\t\t/**\n\t\t\t\t\t* @note Clone the request instance right before performing it.\n\t\t\t\t\t* This preserves any modifications made to the intercepted request\n\t\t\t\t\t* in the \"request\" listener. This also allows the user to read the\n\t\t\t\t\t* request body in the \"response\" listener (otherwise \"unusable\").\n\t\t\t\t\t*/\n\t\t\t\t\tconst requestCloneForResponseEvent = request.clone();\n\t\t\t\t\tconst { error: responseError, data: originalResponse } = await until(() => pureFetch(request));\n\t\t\t\t\tif (responseError) return responsePromise.reject(responseError);\n\t\t\t\t\tthis.logger.info(\"original fetch performed\", originalResponse);\n\t\t\t\t\tif (this.emitter.listenerCount(\"response\") > 0) {\n\t\t\t\t\t\tthis.logger.info(\"emitting the \\\"response\\\" event...\");\n\t\t\t\t\t\tconst responseClone = originalResponse.clone();\n\t\t\t\t\t\tawait emitAsync(this.emitter, \"response\", {\n\t\t\t\t\t\t\tresponse: responseClone,\n\t\t\t\t\t\t\tisMockedResponse: false,\n\t\t\t\t\t\t\trequest: requestCloneForResponseEvent,\n\t\t\t\t\t\t\trequestId\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tresponsePromise.resolve(originalResponse);\n\t\t\t\t},\n\t\t\t\trespondWith: async (rawResponse) => {\n\t\t\t\t\tif (isResponseError(rawResponse)) {\n\t\t\t\t\t\tthis.logger.info(\"request has errored!\", { response: rawResponse });\n\t\t\t\t\t\tresponsePromise.reject(createNetworkError(rawResponse));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tthis.logger.info(\"received mocked response!\", { rawResponse });\n\t\t\t\t\tconst decompressedStream = decompressResponse(rawResponse);\n\t\t\t\t\tconst response = decompressedStream === null ? rawResponse : new FetchResponse(decompressedStream, rawResponse);\n\t\t\t\t\tFetchResponse.setUrl(request.url, response);\n\t\t\t\t\t/**\n\t\t\t\t\t* Undici's handling of following redirect responses.\n\t\t\t\t\t* Treat the \"manual\" redirect mode as a regular mocked response.\n\t\t\t\t\t* This way, the client can manually follow the redirect it receives.\n\t\t\t\t\t* @see https://github.com/nodejs/undici/blob/a6dac3149c505b58d2e6d068b97f4dc993da55f0/lib/web/fetch/index.js#L1173\n\t\t\t\t\t*/\n\t\t\t\t\tif (FetchResponse.isRedirectResponse(response.status)) {\n\t\t\t\t\t\tif (request.redirect === \"error\") {\n\t\t\t\t\t\t\tresponsePromise.reject(createNetworkError(\"unexpected redirect\"));\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (request.redirect === \"follow\") {\n\t\t\t\t\t\t\tfollowFetchRedirect(request, response).then((response$1) => {\n\t\t\t\t\t\t\t\tresponsePromise.resolve(response$1);\n\t\t\t\t\t\t\t}, (reason) => {\n\t\t\t\t\t\t\t\tresponsePromise.reject(reason);\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (this.emitter.listenerCount(\"response\") > 0) {\n\t\t\t\t\t\tthis.logger.info(\"emitting the \\\"response\\\" event...\");\n\t\t\t\t\t\tawait emitAsync(this.emitter, \"response\", {\n\t\t\t\t\t\t\tresponse: response.clone(),\n\t\t\t\t\t\t\tisMockedResponse: true,\n\t\t\t\t\t\t\trequest,\n\t\t\t\t\t\t\trequestId\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tresponsePromise.resolve(response);\n\t\t\t\t},\n\t\t\t\terrorWith: (reason) => {\n\t\t\t\t\tthis.logger.info(\"request has been aborted!\", { reason });\n\t\t\t\t\tresponsePromise.reject(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.logger.info(\"[%s] %s\", request.method, request.url);\n\t\t\tthis.logger.info(\"awaiting for the mocked response...\");\n\t\t\tthis.logger.info(\"emitting the \\\"request\\\" event for %s listener(s)...\", this.emitter.listenerCount(\"request\"));\n\t\t\tawait handleRequest({\n\t\t\t\trequest,\n\t\t\t\trequestId,\n\t\t\t\temitter: this.emitter,\n\t\t\t\tcontroller\n\t\t\t});\n\t\t\treturn responsePromise;\n\t\t};\n\t\tObject.defineProperty(globalThis.fetch, IS_PATCHED_MODULE, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t\tvalue: true\n\t\t});\n\t\tthis.subscriptions.push(() => {\n\t\t\tObject.defineProperty(globalThis.fetch, IS_PATCHED_MODULE, { value: void 0 });\n\t\t\tglobalThis.fetch = pureFetch;\n\t\t\tthis.logger.info(\"restored native \\\"globalThis.fetch\\\"!\", globalThis.fetch.name);\n\t\t});\n\t}\n};\n\n//#endregion\nexport { FetchInterceptor as t };\n//# sourceMappingURL=fetch-G1DVwDKG.mjs.map"],"names":["createNetworkError","cause","Object","assign","TypeError","REQUEST_BODY_HEADERS","kRedirectCount","Symbol","sameOrigin","left","right","origin","protocol","hostname","port","BrotliDecompressionStream","TransformStream","constructor","decompress","zlib","createBrotliDecompress","flush","constants","BROTLI_OPERATION_FLUSH","finishFlush","super","transform","chunk","controller","buffer","Buffer","from","decompressed","Promise","resolve","reject","write","error","once","data","terminate","catch","enqueue","PipelineStream","transformStreams","strategies","readable","reduce","readable$1","pipeThrough","defineProperty","this","get","decompressResponse","response","body","decompressionStream","contentEncoding","codings","toLowerCase","split","map","coding","trim","parseContentEncoding","length","reduceRight","transformers","concat","DecompressionStream","createDecompressionStream","headers","pipeTo","writable","FetchInterceptor","Interceptor","symbol","checkEnvironment","hasConfigurableGlobal","setup","pureFetch","globalThis","fetch","invariant","IS_PATCHED_MODULE","async","input","init","requestId","createRequestId","resolvedInput","location","canParseUrl","URL","href","request","Request","setRawRequest","responsePromise","DeferredPromise","RequestController","passthrough","logger","info","requestCloneForResponseEvent","clone","responseError","originalResponse","until","emitter","listenerCount","responseClone","emitAsync","isMockedResponse","respondWith","rawResponse","isResponseError","decompressedStream","FetchResponse","setUrl","url","isRedirectResponse","status","redirect","requestUrl","locationUrl","Reflect","value","mode","username","password","requestInit","includes","method","forEach","headerName","delete","finalResponse","configurable","followFetchRedirect","then","response$1","reason","errorWith","handleRequest","enumerable","subscriptions","push","name"],"mappings":"gpBAWA,SAASA,EAAmBC,GAC3B,OAAOC,OAAOC,OAAuB,IAAIC,UAAU,mBAAoB,CAAEH,SAC1E,CAIA,MAAMI,EAAuB,CAC5B,mBACA,mBACA,mBACA,eACA,kBAEKC,EAAiBC,OAAO,kBA+C9B,SAASC,EAAWC,EAAMC,GACzB,OAAID,EAAKE,SAAWD,EAAMC,QAA0B,SAAhBF,EAAKE,QACrCF,EAAKG,WAAaF,EAAME,UAAYH,EAAKI,WAAaH,EAAMG,UAAYJ,EAAKK,OAASJ,EAAMI,IAEjG,CAIA,IAAIC,EAA4B,cAAcC,gBAC7C,WAAAC,GACC,MAAMC,EAAaC,EAAKC,uBAAuB,CAC9CC,MAAOF,EAAKG,UAAUC,uBACtBC,YAAaL,EAAKG,UAAUC,yBAE7BE,MAAM,CAAE,eAAMC,CAAUC,EAAOC,GAC9B,MAAMC,EAASC,OAAOC,KAAKJ,GACrBK,QAAqB,IAAIC,SAAQ,CAACC,EAASC,KAChDjB,EAAWkB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AAQxB,QAAQiE,OAAO,SAOxBL,EAAY5D,QAAUwB,EAAQxB,QAC9B,MAAMkE,QAAsBvD,MAAM,IAAIc,QAAQ6B,EAAaM,IAK3D,OAJAjI,OAAOgD,eAAeuF,EAAe,aAAc,CAClDV,OAAO,EACPW,cAAc,IAERD,CACR,CAmJOE,CAAoB5C,EAASzC,GAAUsF,MAAMC,IAC5C3C,EAAgBhE,QAAQ2G,MACrBC,IACH5C,EAAgB/D,OAAO2G,KAI1B,CACI3F,KAAK0D,QAAQC,cAAc,YAAc,IAC5C3D,KAAKmD,OAAOC,KAAK,0CACXS,EAAU7D,KAAK0D,QAAS,WAAY,CACzCvD,SAAUA,EAASmD,QACnBQ,kBAAkB,EAClBlB,UACAP,eAGFU,EAAgBhE,QAAQoB,IAEzByF,UAAYD,IACX3F,KAAKmD,OAAOC,KAAK,4BAA6B,CAAEuC,WAChD5C,EAAgB/D,OAAO2G,MAYzB,OATA3F,KAAKmD,OAAOC,KAAK,UAAWR,EAAQsC,OAAQtC,EAAQyB,KACpDrE,KAAKmD,OAAOC,KAAK,uCACjBpD,KAAKmD,OAAOC,KAAK,qDAAwDpD,KAAK0D,QAAQC,cAAc,kBAC9FkC,EAAc,CACnBjD,UACAP,YACAqB,QAAS1D,KAAK0D,QACdjF,eAEMsE,GAERhG,OAAOgD,eAAe+B,WAAWC,MAAOE,EAAmB,CAC1D6D,YAAY,EACZP,cAAc,EACdX,OAAO,IAER5E,KAAK+F,cAAcC,MAAK,KACvBjJ,OAAOgD,eAAe+B,WAAWC,MAAOE,EAAmB,CAAE2C,WAAO,IACpE9C,WAAWC,MAAQF,EACnB7B,KAAKmD,OAAOC,KAAK,sCAAyCtB,WAAWC,MAAMkE,QAE7E","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";var t=require("../../../../../../@open-draft_logger@0.3.0/node_modules/@open-draft/logger/lib/index.cjs.js"),e=require("../../../../../../strict-event-emitter@0.5.1/node_modules/strict-event-emitter/lib/index.cjs.js"),s=require("../../../../../../@open-draft_deferred-promise@2.2.0/node_modules/@open-draft/deferred-promise/build/index.cjs.js"),i=require("../../../../../../outvariant@1.4.3/node_modules/outvariant/lib/index.cjs.js");function r(t){return globalThis[t]||void 0}function n(t){delete globalThis[t]}let o=function(t){return t.INACTIVE="INACTIVE",t.APPLYING="APPLYING",t.APPLIED="APPLIED",t.DISPOSING="DISPOSING",t.DISPOSED="DISPOSED",t}({});var a=class t extends Error{constructor(e){super(e),this.name="InterceptorError",Object.setPrototypeOf(this,t.prototype)}},h=class t{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(e,i){this.request=e,this.source=i,this.readyState=t.PENDING,this.handled=new s.DeferredPromise}get#t(){return this.handled}async passthrough(){i.invariant.as(a,this.readyState===t.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=t.PASSTHROUGH,await this.source.passthrough(),this.#t.resolve()}respondWith(e){i.invariant.as(a,this.readyState===t.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,e.status,e.statusText||"OK",this.readyState),this.readyState=t.RESPONSE,this.#t.resolve(),this.source.respondWith(e)}errorWith(e){i.invariant.as(a,this.readyState===t.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,e?.toString(),this.readyState),this.readyState=t.ERROR,this.source.errorWith(e),this.#t.resolve()}};function d(t){try{return new URL(t),!0}catch(t){return!1}}function l(t,e){const s=Object.getOwnPropertySymbols(e).find((e=>e.description===t));if(s)return Reflect.get(e,s)}var u=class t extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(t){return t>=200&&t<=599}static isRedirectResponse(e){return t.STATUS_CODES_WITH_REDIRECT.includes(e)}static isResponseWithBody(e){return!t.STATUS_CODES_WITHOUT_BODY.includes(e)}static setUrl(t,e){if(!t||"about:"===t||!d(t))return;const s=l("state",e);s?s.urlList.push(new URL(t)):Object.defineProperty(e,"url",{value:t,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(t){const e=new Headers;for(let s=0;s<t.length;s+=2)e.append(t[s],t[s+1]);return e}constructor(e,s={}){const i=s.status??200,r=t.isConfigurableStatusCode(i)?i:200;if(super(t.isResponseWithBody(i)?e:null,{status:r,statusText:s.statusText,headers:s.headers}),i!==r){const t=l("state",this);t?t.status=i:Object.defineProperty(this,"status",{value:i,enumerable:!0,configurable:!0,writable:!1})}t.setUrl(s.url,this)}};exports.a=a,exports.c=o,exports.i=h,exports.l=n,exports.n=d,exports.o="x-interceptors-internal-request-id",exports.r=function(){return Math.random().toString(16).slice(2)},exports.s=class{constructor(s){this.symbol=s,this.readyState=o.INACTIVE,this.emitter=new e.Emitter,this.subscriptions=[],this.logger=new t.Logger(s.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const t=this.logger.extend("apply");if(t.info("applying the interceptor..."),this.readyState===o.APPLIED)return void t.info("intercepted already applied!");if(!this.checkEnvironment())return void t.info("the interceptor cannot be applied in this environment!");this.readyState=o.APPLYING;const e=this.getInstance();if(e)return t.info("found a running instance, reusing..."),this.on=(s,i)=>(t.info('proxying the "%s" listener',s),e.emitter.addListener(s,i),this.subscriptions.push((()=>{e.emitter.removeListener(s,i),t.info('removed proxied "%s" listener!',s)})),this),void(this.readyState=o.APPLIED);t.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=o.APPLIED}setup(){}on(t,e){const s=this.logger.extend("on");return this.readyState===o.DISPOSING||this.readyState===o.DISPOSED?(s.info("cannot listen to events, already disposed!"),this):(s.info('adding "%s" event listener:',t,e),this.emitter.on(t,e),this)}once(t,e){return this.emitter.once(t,e),this}off(t,e){return this.emitter.off(t,e),this}removeAllListeners(t){return this.emitter.removeAllListeners(t),this}dispose(){const t=this.logger.extend("dispose");if(this.readyState!==o.DISPOSED)if(t.info("disposing the interceptor..."),this.readyState=o.DISPOSING,this.getInstance()){if(this.clearInstance(),t.info("global symbol deleted:",r(this.symbol)),this.subscriptions.length>0){t.info("disposing of %d subscriptions...",this.subscriptions.length);for(const t of this.subscriptions)t();this.subscriptions=[],t.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),t.info("destroyed the listener!"),this.readyState=o.DISPOSED}else t.info("no interceptors running, skipping dispose...");else t.info("cannot dispose, already disposed!")}getInstance(){const t=r(this.symbol);return this.logger.info("retrieved global instance:",t?.constructor?.name),t}setInstance(){var t,e;t=this.symbol,e=this,globalThis[t]=e,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){n(this.symbol),this.logger.info("cleared global instance!",this.symbol.description)}},exports.t=u,exports.u=r;
2
+ //# sourceMappingURL=fetchUtils-CoU35g3M.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchUtils-CoU35g3M.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.mjs"],"sourcesContent":["import { Logger } from \"@open-draft/logger\";\nimport { Emitter } from \"strict-event-emitter\";\nimport { DeferredPromise } from \"@open-draft/deferred-promise\";\nimport { invariant } from \"outvariant\";\n\n//#region src/Interceptor.ts\n/**\n* Request header name to detect when a single request\n* is being handled by nested interceptors (XHR -> ClientRequest).\n* Obscure by design to prevent collisions with user-defined headers.\n* Ideally, come up with the Interceptor-level mechanism for this.\n* @see https://github.com/mswjs/interceptors/issues/378\n*/\nconst INTERNAL_REQUEST_ID_HEADER_NAME = \"x-interceptors-internal-request-id\";\nfunction getGlobalSymbol(symbol) {\n\treturn globalThis[symbol] || void 0;\n}\nfunction setGlobalSymbol(symbol, value) {\n\tglobalThis[symbol] = value;\n}\nfunction deleteGlobalSymbol(symbol) {\n\tdelete globalThis[symbol];\n}\nlet InterceptorReadyState = /* @__PURE__ */ function(InterceptorReadyState$1) {\n\tInterceptorReadyState$1[\"INACTIVE\"] = \"INACTIVE\";\n\tInterceptorReadyState$1[\"APPLYING\"] = \"APPLYING\";\n\tInterceptorReadyState$1[\"APPLIED\"] = \"APPLIED\";\n\tInterceptorReadyState$1[\"DISPOSING\"] = \"DISPOSING\";\n\tInterceptorReadyState$1[\"DISPOSED\"] = \"DISPOSED\";\n\treturn InterceptorReadyState$1;\n}({});\nvar Interceptor = class {\n\tconstructor(symbol) {\n\t\tthis.symbol = symbol;\n\t\tthis.readyState = InterceptorReadyState.INACTIVE;\n\t\tthis.emitter = new Emitter();\n\t\tthis.subscriptions = [];\n\t\tthis.logger = new Logger(symbol.description);\n\t\tthis.emitter.setMaxListeners(0);\n\t\tthis.logger.info(\"constructing the interceptor...\");\n\t}\n\t/**\n\t* Determine if this interceptor can be applied\n\t* in the current environment.\n\t*/\n\tcheckEnvironment() {\n\t\treturn true;\n\t}\n\t/**\n\t* Apply this interceptor to the current process.\n\t* Returns an already running interceptor instance if it's present.\n\t*/\n\tapply() {\n\t\tconst logger = this.logger.extend(\"apply\");\n\t\tlogger.info(\"applying the interceptor...\");\n\t\tif (this.readyState === InterceptorReadyState.APPLIED) {\n\t\t\tlogger.info(\"intercepted already applied!\");\n\t\t\treturn;\n\t\t}\n\t\tif (!this.checkEnvironment()) {\n\t\t\tlogger.info(\"the interceptor cannot be applied in this environment!\");\n\t\t\treturn;\n\t\t}\n\t\tthis.readyState = InterceptorReadyState.APPLYING;\n\t\tconst runningInstance = this.getInstance();\n\t\tif (runningInstance) {\n\t\t\tlogger.info(\"found a running instance, reusing...\");\n\t\t\tthis.on = (event, listener) => {\n\t\t\t\tlogger.info(\"proxying the \\\"%s\\\" listener\", event);\n\t\t\t\trunningInstance.emitter.addListener(event, listener);\n\t\t\t\tthis.subscriptions.push(() => {\n\t\t\t\t\trunningInstance.emitter.removeListener(event, listener);\n\t\t\t\t\tlogger.info(\"removed proxied \\\"%s\\\" listener!\", event);\n\t\t\t\t});\n\t\t\t\treturn this;\n\t\t\t};\n\t\t\tthis.readyState = InterceptorReadyState.APPLIED;\n\t\t\treturn;\n\t\t}\n\t\tlogger.info(\"no running instance found, setting up a new instance...\");\n\t\tthis.setup();\n\t\tthis.setInstance();\n\t\tthis.readyState = InterceptorReadyState.APPLIED;\n\t}\n\t/**\n\t* Setup the module augments and stubs necessary for this interceptor.\n\t* This method is not run if there's a running interceptor instance\n\t* to prevent instantiating an interceptor multiple times.\n\t*/\n\tsetup() {}\n\t/**\n\t* Listen to the interceptor's public events.\n\t*/\n\ton(event, listener) {\n\t\tconst logger = this.logger.extend(\"on\");\n\t\tif (this.readyState === InterceptorReadyState.DISPOSING || this.readyState === InterceptorReadyState.DISPOSED) {\n\t\t\tlogger.info(\"cannot listen to events, already disposed!\");\n\t\t\treturn this;\n\t\t}\n\t\tlogger.info(\"adding \\\"%s\\\" event listener:\", event, listener);\n\t\tthis.emitter.on(event, listener);\n\t\treturn this;\n\t}\n\tonce(event, listener) {\n\t\tthis.emitter.once(event, listener);\n\t\treturn this;\n\t}\n\toff(event, listener) {\n\t\tthis.emitter.off(event, listener);\n\t\treturn this;\n\t}\n\tremoveAllListeners(event) {\n\t\tthis.emitter.removeAllListeners(event);\n\t\treturn this;\n\t}\n\t/**\n\t* Disposes of any side-effects this interceptor has introduced.\n\t*/\n\tdispose() {\n\t\tconst logger = this.logger.extend(\"dispose\");\n\t\tif (this.readyState === InterceptorReadyState.DISPOSED) {\n\t\t\tlogger.info(\"cannot dispose, already disposed!\");\n\t\t\treturn;\n\t\t}\n\t\tlogger.info(\"disposing the interceptor...\");\n\t\tthis.readyState = InterceptorReadyState.DISPOSING;\n\t\tif (!this.getInstance()) {\n\t\t\tlogger.info(\"no interceptors running, skipping dispose...\");\n\t\t\treturn;\n\t\t}\n\t\tthis.clearInstance();\n\t\tlogger.info(\"global symbol deleted:\", getGlobalSymbol(this.symbol));\n\t\tif (this.subscriptions.length > 0) {\n\t\t\tlogger.info(\"disposing of %d subscriptions...\", this.subscriptions.length);\n\t\t\tfor (const dispose of this.subscriptions) dispose();\n\t\t\tthis.subscriptions = [];\n\t\t\tlogger.info(\"disposed of all subscriptions!\", this.subscriptions.length);\n\t\t}\n\t\tthis.emitter.removeAllListeners();\n\t\tlogger.info(\"destroyed the listener!\");\n\t\tthis.readyState = InterceptorReadyState.DISPOSED;\n\t}\n\tgetInstance() {\n\t\tconst instance = getGlobalSymbol(this.symbol);\n\t\tthis.logger.info(\"retrieved global instance:\", instance?.constructor?.name);\n\t\treturn instance;\n\t}\n\tsetInstance() {\n\t\tsetGlobalSymbol(this.symbol, this);\n\t\tthis.logger.info(\"set global instance!\", this.symbol.description);\n\t}\n\tclearInstance() {\n\t\tdeleteGlobalSymbol(this.symbol);\n\t\tthis.logger.info(\"cleared global instance!\", this.symbol.description);\n\t}\n};\n\n//#endregion\n//#region src/InterceptorError.ts\nvar InterceptorError = class InterceptorError extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t\tthis.name = \"InterceptorError\";\n\t\tObject.setPrototypeOf(this, InterceptorError.prototype);\n\t}\n};\n\n//#endregion\n//#region src/RequestController.ts\nvar RequestController = class RequestController {\n\tstatic {\n\t\tthis.PENDING = 0;\n\t}\n\tstatic {\n\t\tthis.PASSTHROUGH = 1;\n\t}\n\tstatic {\n\t\tthis.RESPONSE = 2;\n\t}\n\tstatic {\n\t\tthis.ERROR = 3;\n\t}\n\tconstructor(request, source) {\n\t\tthis.request = request;\n\t\tthis.source = source;\n\t\tthis.readyState = RequestController.PENDING;\n\t\tthis.handled = new DeferredPromise();\n\t}\n\tget #handled() {\n\t\treturn this.handled;\n\t}\n\t/**\n\t* Perform this request as-is.\n\t*/\n\tasync passthrough() {\n\t\tinvariant.as(InterceptorError, this.readyState === RequestController.PENDING, \"Failed to passthrough the \\\"%s %s\\\" request: the request has already been handled\", this.request.method, this.request.url);\n\t\tthis.readyState = RequestController.PASSTHROUGH;\n\t\tawait this.source.passthrough();\n\t\tthis.#handled.resolve();\n\t}\n\t/**\n\t* Respond to this request with the given `Response` instance.\n\t*\n\t* @example\n\t* controller.respondWith(new Response())\n\t* controller.respondWith(Response.json({ id }))\n\t* controller.respondWith(Response.error())\n\t*/\n\trespondWith(response) {\n\t\tinvariant.as(InterceptorError, this.readyState === RequestController.PENDING, \"Failed to respond to the \\\"%s %s\\\" request with \\\"%d %s\\\": the request has already been handled (%d)\", this.request.method, this.request.url, response.status, response.statusText || \"OK\", this.readyState);\n\t\tthis.readyState = RequestController.RESPONSE;\n\t\tthis.#handled.resolve();\n\t\t/**\n\t\t* @note Although `source.respondWith()` is potentially asynchronous,\n\t\t* do NOT await it for backward-compatibility. Awaiting it will short-circuit\n\t\t* the request listener invocation as soon as a listener responds to a request.\n\t\t* Ideally, that's what we want, but that's not what we promise the user.\n\t\t*/\n\t\tthis.source.respondWith(response);\n\t}\n\t/**\n\t* Error this request with the given reason.\n\t*\n\t* @example\n\t* controller.errorWith()\n\t* controller.errorWith(new Error('Oops!'))\n\t* controller.errorWith({ message: 'Oops!'})\n\t*/\n\terrorWith(reason) {\n\t\tinvariant.as(InterceptorError, this.readyState === RequestController.PENDING, \"Failed to error the \\\"%s %s\\\" request with \\\"%s\\\": the request has already been handled (%d)\", this.request.method, this.request.url, reason?.toString(), this.readyState);\n\t\tthis.readyState = RequestController.ERROR;\n\t\tthis.source.errorWith(reason);\n\t\tthis.#handled.resolve();\n\t}\n};\n\n//#endregion\n//#region src/createRequestId.ts\n/**\n* Generate a random ID string to represent a request.\n* @example\n* createRequestId()\n* // \"f774b6c9c600f\"\n*/\nfunction createRequestId() {\n\treturn Math.random().toString(16).slice(2);\n}\n\n//#endregion\n//#region src/utils/canParseUrl.ts\n/**\n* Returns a boolean indicating whether the given URL string\n* can be parsed into a `URL` instance.\n* A substitute for `URL.canParse()` for Node.js 18.\n*/\nfunction canParseUrl(url) {\n\ttry {\n\t\tnew URL(url);\n\t\treturn true;\n\t} catch (_error) {\n\t\treturn false;\n\t}\n}\n\n//#endregion\n//#region src/utils/getValueBySymbol.ts\n/**\n* Returns the value behind the symbol with the given name.\n*/\nfunction getValueBySymbol(symbolName, source) {\n\tconst symbol = Object.getOwnPropertySymbols(source).find((symbol$1) => {\n\t\treturn symbol$1.description === symbolName;\n\t});\n\tif (symbol) return Reflect.get(source, symbol);\n}\n\n//#endregion\n//#region src/utils/fetchUtils.ts\nvar FetchResponse = class FetchResponse extends Response {\n\tstatic {\n\t\tthis.STATUS_CODES_WITHOUT_BODY = [\n\t\t\t101,\n\t\t\t103,\n\t\t\t204,\n\t\t\t205,\n\t\t\t304\n\t\t];\n\t}\n\tstatic {\n\t\tthis.STATUS_CODES_WITH_REDIRECT = [\n\t\t\t301,\n\t\t\t302,\n\t\t\t303,\n\t\t\t307,\n\t\t\t308\n\t\t];\n\t}\n\tstatic isConfigurableStatusCode(status) {\n\t\treturn status >= 200 && status <= 599;\n\t}\n\tstatic isRedirectResponse(status) {\n\t\treturn FetchResponse.STATUS_CODES_WITH_REDIRECT.includes(status);\n\t}\n\t/**\n\t* Returns a boolean indicating whether the given response status\n\t* code represents a response that can have a body.\n\t*/\n\tstatic isResponseWithBody(status) {\n\t\treturn !FetchResponse.STATUS_CODES_WITHOUT_BODY.includes(status);\n\t}\n\tstatic setUrl(url, response) {\n\t\tif (!url || url === \"about:\" || !canParseUrl(url)) return;\n\t\tconst state = getValueBySymbol(\"state\", response);\n\t\tif (state) state.urlList.push(new URL(url));\n\t\telse Object.defineProperty(response, \"url\", {\n\t\t\tvalue: url,\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t\twritable: false\n\t\t});\n\t}\n\t/**\n\t* Parses the given raw HTTP headers into a Fetch API `Headers` instance.\n\t*/\n\tstatic parseRawHeaders(rawHeaders) {\n\t\tconst headers = new Headers();\n\t\tfor (let line = 0; line < rawHeaders.length; line += 2) headers.append(rawHeaders[line], rawHeaders[line + 1]);\n\t\treturn headers;\n\t}\n\tconstructor(body, init = {}) {\n\t\tconst status = init.status ?? 200;\n\t\tconst safeStatus = FetchResponse.isConfigurableStatusCode(status) ? status : 200;\n\t\tconst finalBody = FetchResponse.isResponseWithBody(status) ? body : null;\n\t\tsuper(finalBody, {\n\t\t\tstatus: safeStatus,\n\t\t\tstatusText: init.statusText,\n\t\t\theaders: init.headers\n\t\t});\n\t\tif (status !== safeStatus) {\n\t\t\t/**\n\t\t\t* @note Undici keeps an internal \"Symbol(state)\" that holds\n\t\t\t* the actual value of response status. Update that in Node.js.\n\t\t\t*/\n\t\t\tconst state = getValueBySymbol(\"state\", this);\n\t\t\tif (state) state.status = status;\n\t\t\telse Object.defineProperty(this, \"status\", {\n\t\t\t\tvalue: status,\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: true,\n\t\t\t\twritable: false\n\t\t\t});\n\t\t}\n\t\tFetchResponse.setUrl(init.url, this);\n\t}\n};\n\n//#endregion\nexport { InterceptorError as a, InterceptorReadyState as c, RequestController as i, deleteGlobalSymbol as l, canParseUrl as n, INTERNAL_REQUEST_ID_HEADER_NAME as o, createRequestId as r, Interceptor as s, FetchResponse as t, getGlobalSymbol as u };\n//# sourceMappingURL=fetchUtils-CoU35g3M.mjs.map"],"names":["getGlobalSymbol","symbol","globalThis","deleteGlobalSymbol","InterceptorReadyState","InterceptorReadyState$1","InterceptorError","Error","constructor","message","super","this","name","Object","setPrototypeOf","prototype","RequestController","PENDING","PASSTHROUGH","RESPONSE","ERROR","request","source","readyState","handled","DeferredPromise","passthrough","invariant","as","method","url","resolve","respondWith","response","status","statusText","errorWith","reason","toString","canParseUrl","URL","_error","getValueBySymbol","symbolName","getOwnPropertySymbols","find","symbol$1","description","Reflect","get","FetchResponse","Response","STATUS_CODES_WITHOUT_BODY","STATUS_CODES_WITH_REDIRECT","isConfigurableStatusCode","isRedirectResponse","includes","isResponseWithBody","setUrl","state","urlList","push","defineProperty","value","enumerable","configurable","writable","parseRawHeaders","rawHeaders","headers","Headers","line","length","append","body","init","safeStatus","Math","random","slice","INACTIVE","emitter","Emitter","subscriptions","logger","Logger","setMaxListeners","info","checkEnvironment","apply","extend","APPLIED","APPLYING","runningInstance","getInstance","on","event","listener","addListener","removeListener","setup","setInstance","DISPOSING","DISPOSED","once","off","removeAllListeners","dispose","clearInstance","instance"],"mappings":"+bAcA,SAASA,EAAgBC,GACxB,OAAOC,WAAWD,SAAW,CAC9B,CAIA,SAASE,EAAmBF,UACpBC,WAAWD,EACnB,CACG,IAACG,EAAwC,SAASC,GAMpD,OALAA,EAAkC,SAAI,WACtCA,EAAkC,SAAI,WACtCA,EAAiC,QAAI,UACrCA,EAAmC,UAAI,YACvCA,EAAkC,SAAI,WAC/BA,CACR,CAP4C,CAO1C,CAAA,GACC,IAgICC,EAAmB,MAAMA,UAAyBC,MACrD,WAAAC,CAAYC,GACXC,MAAMD,GACNE,KAAKC,KAAO,mBACZC,OAAOC,eAAeH,KAAML,EAAiBS,UAC9C,GAKGC,EAAoB,MAAMA,SAE5BL,KAAKM,QAAU,CACjB,QAEEN,KAAKO,YAAc,CACrB,QAEEP,KAAKQ,SAAW,CAClB,QAEER,KAAKS,MAAQ,CACf,CACC,WAAAZ,CAAYa,EAASC,GACpBX,KAAKU,QAAUA,EACfV,KAAKW,OAASA,EACdX,KAAKY,WAAaP,EAAkBC,QACpCN,KAAKa,QAAU,IAAIC,iBACpB,CACA,KAAID,GACH,OAAOb,KAAKa,OACb,CAIA,iBAAME,GACLC,EAAAA,UAAUC,GAAGtB,EAAkBK,KAAKY,aAAeP,EAAkBC,QAAS,kFAAqFN,KAAKU,QAAQQ,OAAQlB,KAAKU,QAAQS,KACrMnB,KAAKY,WAAaP,EAAkBE,kBAC9BP,KAAKW,OAAOI,cAClBf,MAAKa,EAASO,SACf,CASA,WAAAC,CAAYC,GACXN,YAAUC,GAAGtB,EAAkBK,KAAKY,aAAeP,EAAkBC,QAAS,mGAAwGN,KAAKU,QAAQQ,OAAQlB,KAAKU,QAAQS,IAAKG,EAASC,OAAQD,EAASE,YAAc,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CY,EAAOG,KAAK,mCAAoC5E,KAAKwE,cAAcX,QACnE,IAAK,MAAMmC,KAAWhG,KAAKwE,cAAewB,IAC1ChG,KAAKwE,cAAgB,GACrBC,EAAOG,KAAK,iCAAkC5E,KAAKwE,cAAcX,OAClE,CACA7D,KAAKsE,QAAQyB,qBACbtB,EAAOG,KAAK,2BACZ5E,KAAKY,WAAanB,EAAsBmG,QAXxC,MAFCnB,EAAOG,KAAK,qDANZH,EAAOG,KAAK,oCAoBd,CACA,WAAAO,GACC,MAAMe,EAAW7G,EAAgBW,KAAKV,QAEtC,OADAU,KAAKyE,OAAOG,KAAK,6BAA8BsB,GAAUrG,aAAaI,MAC/DiG,CACR,CACA,WAAAR,GAlID,IAAyBpG,EAAQ8D,EAAR9D,EAmIPU,KAAKV,OAnIU8D,EAmIFpD,KAlI9BT,WAAWD,GAAU8D,EAmIpBpD,KAAKyE,OAAOG,KAAK,uBAAwB5E,KAAKV,OAAO8C,YACtD,CACA,aAAA6D,GACCzG,EAAmBQ,KAAKV,QACxBU,KAAKyE,OAAOG,KAAK,2BAA4B5E,KAAKV,OAAO8C,YAC1D","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{Logger as t}from"../../../../../../@open-draft_logger@0.3.0/node_modules/@open-draft/logger/lib/index.js";import{Emitter as e}from"../../../../../../strict-event-emitter@0.5.1/node_modules/strict-event-emitter/lib/index.js";import{DeferredPromise as s}from"../../../../../../@open-draft_deferred-promise@2.2.0/node_modules/@open-draft/deferred-promise/build/index.js";import{invariant as i}from"../../../../../../outvariant@1.4.3/node_modules/outvariant/lib/index.js";const r="x-interceptors-internal-request-id";function n(t){return globalThis[t]||void 0}function o(t){delete globalThis[t]}let a=function(t){return t.INACTIVE="INACTIVE",t.APPLYING="APPLYING",t.APPLIED="APPLIED",t.DISPOSING="DISPOSING",t.DISPOSED="DISPOSED",t}({});var h=class{constructor(s){this.symbol=s,this.readyState=a.INACTIVE,this.emitter=new e,this.subscriptions=[],this.logger=new t(s.description),this.emitter.setMaxListeners(0),this.logger.info("constructing the interceptor...")}checkEnvironment(){return!0}apply(){const t=this.logger.extend("apply");if(t.info("applying the interceptor..."),this.readyState===a.APPLIED)return void t.info("intercepted already applied!");if(!this.checkEnvironment())return void t.info("the interceptor cannot be applied in this environment!");this.readyState=a.APPLYING;const e=this.getInstance();if(e)return t.info("found a running instance, reusing..."),this.on=(s,i)=>(t.info('proxying the "%s" listener',s),e.emitter.addListener(s,i),this.subscriptions.push((()=>{e.emitter.removeListener(s,i),t.info('removed proxied "%s" listener!',s)})),this),void(this.readyState=a.APPLIED);t.info("no running instance found, setting up a new instance..."),this.setup(),this.setInstance(),this.readyState=a.APPLIED}setup(){}on(t,e){const s=this.logger.extend("on");return this.readyState===a.DISPOSING||this.readyState===a.DISPOSED?(s.info("cannot listen to events, already disposed!"),this):(s.info('adding "%s" event listener:',t,e),this.emitter.on(t,e),this)}once(t,e){return this.emitter.once(t,e),this}off(t,e){return this.emitter.off(t,e),this}removeAllListeners(t){return this.emitter.removeAllListeners(t),this}dispose(){const t=this.logger.extend("dispose");if(this.readyState!==a.DISPOSED)if(t.info("disposing the interceptor..."),this.readyState=a.DISPOSING,this.getInstance()){if(this.clearInstance(),t.info("global symbol deleted:",n(this.symbol)),this.subscriptions.length>0){t.info("disposing of %d subscriptions...",this.subscriptions.length);for(const t of this.subscriptions)t();this.subscriptions=[],t.info("disposed of all subscriptions!",this.subscriptions.length)}this.emitter.removeAllListeners(),t.info("destroyed the listener!"),this.readyState=a.DISPOSED}else t.info("no interceptors running, skipping dispose...");else t.info("cannot dispose, already disposed!")}getInstance(){const t=n(this.symbol);return this.logger.info("retrieved global instance:",t?.constructor?.name),t}setInstance(){var t,e;t=this.symbol,e=this,globalThis[t]=e,this.logger.info("set global instance!",this.symbol.description)}clearInstance(){o(this.symbol),this.logger.info("cleared global instance!",this.symbol.description)}},d=class t extends Error{constructor(e){super(e),this.name="InterceptorError",Object.setPrototypeOf(this,t.prototype)}},l=class t{static{this.PENDING=0}static{this.PASSTHROUGH=1}static{this.RESPONSE=2}static{this.ERROR=3}constructor(e,i){this.request=e,this.source=i,this.readyState=t.PENDING,this.handled=new s}get#t(){return this.handled}async passthrough(){i.as(d,this.readyState===t.PENDING,'Failed to passthrough the "%s %s" request: the request has already been handled',this.request.method,this.request.url),this.readyState=t.PASSTHROUGH,await this.source.passthrough(),this.#t.resolve()}respondWith(e){i.as(d,this.readyState===t.PENDING,'Failed to respond to the "%s %s" request with "%d %s": the request has already been handled (%d)',this.request.method,this.request.url,e.status,e.statusText||"OK",this.readyState),this.readyState=t.RESPONSE,this.#t.resolve(),this.source.respondWith(e)}errorWith(e){i.as(d,this.readyState===t.PENDING,'Failed to error the "%s %s" request with "%s": the request has already been handled (%d)',this.request.method,this.request.url,e?.toString(),this.readyState),this.readyState=t.ERROR,this.source.errorWith(e),this.#t.resolve()}};function c(){return Math.random().toString(16).slice(2)}function u(t){try{return new URL(t),!0}catch(t){return!1}}function p(t,e){const s=Object.getOwnPropertySymbols(e).find((e=>e.description===t));if(s)return Reflect.get(e,s)}var f=class t extends Response{static{this.STATUS_CODES_WITHOUT_BODY=[101,103,204,205,304]}static{this.STATUS_CODES_WITH_REDIRECT=[301,302,303,307,308]}static isConfigurableStatusCode(t){return t>=200&&t<=599}static isRedirectResponse(e){return t.STATUS_CODES_WITH_REDIRECT.includes(e)}static isResponseWithBody(e){return!t.STATUS_CODES_WITHOUT_BODY.includes(e)}static setUrl(t,e){if(!t||"about:"===t||!u(t))return;const s=p("state",e);s?s.urlList.push(new URL(t)):Object.defineProperty(e,"url",{value:t,enumerable:!0,configurable:!0,writable:!1})}static parseRawHeaders(t){const e=new Headers;for(let s=0;s<t.length;s+=2)e.append(t[s],t[s+1]);return e}constructor(e,s={}){const i=s.status??200,r=t.isConfigurableStatusCode(i)?i:200;if(super(t.isResponseWithBody(i)?e:null,{status:r,statusText:s.statusText,headers:s.headers}),i!==r){const t=p("state",this);t?t.status=i:Object.defineProperty(this,"status",{value:i,enumerable:!0,configurable:!0,writable:!1})}t.setUrl(s.url,this)}};export{d as a,a as c,l as i,o as l,u as n,r as o,c as r,h as s,f as t,n as u};
2
+ //# sourceMappingURL=fetchUtils-CoU35g3M.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchUtils-CoU35g3M.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.mjs"],"sourcesContent":["import { Logger } from \"@open-draft/logger\";\nimport { Emitter } from \"strict-event-emitter\";\nimport { DeferredPromise } from \"@open-draft/deferred-promise\";\nimport { invariant } from \"outvariant\";\n\n//#region src/Interceptor.ts\n/**\n* Request header name to detect when a single request\n* is being handled by nested interceptors (XHR -> ClientRequest).\n* Obscure by design to prevent collisions with user-defined headers.\n* Ideally, come up with the Interceptor-level mechanism for this.\n* @see https://github.com/mswjs/interceptors/issues/378\n*/\nconst INTERNAL_REQUEST_ID_HEADER_NAME = \"x-interceptors-internal-request-id\";\nfunction getGlobalSymbol(symbol) {\n\treturn globalThis[symbol] || void 0;\n}\nfunction setGlobalSymbol(symbol, value) {\n\tglobalThis[symbol] = value;\n}\nfunction deleteGlobalSymbol(symbol) {\n\tdelete globalThis[symbol];\n}\nlet InterceptorReadyState = /* @__PURE__ */ function(InterceptorReadyState$1) {\n\tInterceptorReadyState$1[\"INACTIVE\"] = \"INACTIVE\";\n\tInterceptorReadyState$1[\"APPLYING\"] = \"APPLYING\";\n\tInterceptorReadyState$1[\"APPLIED\"] = \"APPLIED\";\n\tInterceptorReadyState$1[\"DISPOSING\"] = \"DISPOSING\";\n\tInterceptorReadyState$1[\"DISPOSED\"] = \"DISPOSED\";\n\treturn InterceptorReadyState$1;\n}({});\nvar Interceptor = class {\n\tconstructor(symbol) {\n\t\tthis.symbol = symbol;\n\t\tthis.readyState = InterceptorReadyState.INACTIVE;\n\t\tthis.emitter = new Emitter();\n\t\tthis.subscriptions = [];\n\t\tthis.logger = new Logger(symbol.description);\n\t\tthis.emitter.setMaxListeners(0);\n\t\tthis.logger.info(\"constructing the interceptor...\");\n\t}\n\t/**\n\t* Determine if this interceptor can be applied\n\t* in the current environment.\n\t*/\n\tcheckEnvironment() {\n\t\treturn true;\n\t}\n\t/**\n\t* Apply this interceptor to the current process.\n\t* Returns an already running interceptor instance if it's present.\n\t*/\n\tapply() {\n\t\tconst logger = this.logger.extend(\"apply\");\n\t\tlogger.info(\"applying the interceptor...\");\n\t\tif (this.readyState === InterceptorReadyState.APPLIED) {\n\t\t\tlogger.info(\"intercepted already applied!\");\n\t\t\treturn;\n\t\t}\n\t\tif (!this.checkEnvironment()) {\n\t\t\tlogger.info(\"the interceptor cannot be applied in this environment!\");\n\t\t\treturn;\n\t\t}\n\t\tthis.readyState = InterceptorReadyState.APPLYING;\n\t\tconst runningInstance = this.getInstance();\n\t\tif (runningInstance) {\n\t\t\tlogger.info(\"found a running instance, reusing...\");\n\t\t\tthis.on = (event, listener) => {\n\t\t\t\tlogger.info(\"proxying the \\\"%s\\\" listener\", event);\n\t\t\t\trunningInstance.emitter.addListener(event, listener);\n\t\t\t\tthis.subscriptions.push(() => {\n\t\t\t\t\trunningInstance.emitter.removeListener(event, listener);\n\t\t\t\t\tlogger.info(\"removed proxied \\\"%s\\\" listener!\", event);\n\t\t\t\t});\n\t\t\t\treturn this;\n\t\t\t};\n\t\t\tthis.readyState = InterceptorReadyState.APPLIED;\n\t\t\treturn;\n\t\t}\n\t\tlogger.info(\"no running instance found, setting up a new instance...\");\n\t\tthis.setup();\n\t\tthis.setInstance();\n\t\tthis.readyState = InterceptorReadyState.APPLIED;\n\t}\n\t/**\n\t* Setup the module augments and stubs necessary for this interceptor.\n\t* This method is not run if there's a running interceptor instance\n\t* to prevent instantiating an interceptor multiple times.\n\t*/\n\tsetup() {}\n\t/**\n\t* Listen to the interceptor's public events.\n\t*/\n\ton(event, listener) {\n\t\tconst logger = this.logger.extend(\"on\");\n\t\tif (this.readyState === InterceptorReadyState.DISPOSING || this.readyState === InterceptorReadyState.DISPOSED) {\n\t\t\tlogger.info(\"cannot listen to events, already disposed!\");\n\t\t\treturn this;\n\t\t}\n\t\tlogger.info(\"adding \\\"%s\\\" event listener:\", event, listener);\n\t\tthis.emitter.on(event, listener);\n\t\treturn this;\n\t}\n\tonce(event, listener) {\n\t\tthis.emitter.once(event, listener);\n\t\treturn this;\n\t}\n\toff(event, listener) {\n\t\tthis.emitter.off(event, listener);\n\t\treturn this;\n\t}\n\tremoveAllListeners(event) {\n\t\tthis.emitter.removeAllListeners(event);\n\t\treturn this;\n\t}\n\t/**\n\t* Disposes of any side-effects this interceptor has introduced.\n\t*/\n\tdispose() {\n\t\tconst logger = this.logger.extend(\"dispose\");\n\t\tif (this.readyState === InterceptorReadyState.DISPOSED) {\n\t\t\tlogger.info(\"cannot dispose, already disposed!\");\n\t\t\treturn;\n\t\t}\n\t\tlogger.info(\"disposing the interceptor...\");\n\t\tthis.readyState = InterceptorReadyState.DISPOSING;\n\t\tif (!this.getInstance()) {\n\t\t\tlogger.info(\"no interceptors running, skipping dispose...\");\n\t\t\treturn;\n\t\t}\n\t\tthis.clearInstance();\n\t\tlogger.info(\"global symbol deleted:\", getGlobalSymbol(this.symbol));\n\t\tif (this.subscriptions.length > 0) {\n\t\t\tlogger.info(\"disposing of %d subscriptions...\", this.subscriptions.length);\n\t\t\tfor (const dispose of this.subscriptions) dispose();\n\t\t\tthis.subscriptions = [];\n\t\t\tlogger.info(\"disposed of all subscriptions!\", this.subscriptions.length);\n\t\t}\n\t\tthis.emitter.removeAllListeners();\n\t\tlogger.info(\"destroyed the listener!\");\n\t\tthis.readyState = InterceptorReadyState.DISPOSED;\n\t}\n\tgetInstance() {\n\t\tconst instance = getGlobalSymbol(this.symbol);\n\t\tthis.logger.info(\"retrieved global instance:\", instance?.constructor?.name);\n\t\treturn instance;\n\t}\n\tsetInstance() {\n\t\tsetGlobalSymbol(this.symbol, this);\n\t\tthis.logger.info(\"set global instance!\", this.symbol.description);\n\t}\n\tclearInstance() {\n\t\tdeleteGlobalSymbol(this.symbol);\n\t\tthis.logger.info(\"cleared global instance!\", this.symbol.description);\n\t}\n};\n\n//#endregion\n//#region src/InterceptorError.ts\nvar InterceptorError = class InterceptorError extends Error {\n\tconstructor(message) {\n\t\tsuper(message);\n\t\tthis.name = \"InterceptorError\";\n\t\tObject.setPrototypeOf(this, InterceptorError.prototype);\n\t}\n};\n\n//#endregion\n//#region src/RequestController.ts\nvar RequestController = class RequestController {\n\tstatic {\n\t\tthis.PENDING = 0;\n\t}\n\tstatic {\n\t\tthis.PASSTHROUGH = 1;\n\t}\n\tstatic {\n\t\tthis.RESPONSE = 2;\n\t}\n\tstatic {\n\t\tthis.ERROR = 3;\n\t}\n\tconstructor(request, source) {\n\t\tthis.request = request;\n\t\tthis.source = source;\n\t\tthis.readyState = RequestController.PENDING;\n\t\tthis.handled = new DeferredPromise();\n\t}\n\tget #handled() {\n\t\treturn this.handled;\n\t}\n\t/**\n\t* Perform this request as-is.\n\t*/\n\tasync passthrough() {\n\t\tinvariant.as(InterceptorError, this.readyState === RequestController.PENDING, \"Failed to passthrough the \\\"%s %s\\\" request: the request has already been handled\", this.request.method, this.request.url);\n\t\tthis.readyState = RequestController.PASSTHROUGH;\n\t\tawait this.source.passthrough();\n\t\tthis.#handled.resolve();\n\t}\n\t/**\n\t* Respond to this request with the given `Response` instance.\n\t*\n\t* @example\n\t* controller.respondWith(new Response())\n\t* controller.respondWith(Response.json({ id }))\n\t* controller.respondWith(Response.error())\n\t*/\n\trespondWith(response) {\n\t\tinvariant.as(InterceptorError, this.readyState === RequestController.PENDING, \"Failed to respond to the \\\"%s %s\\\" request with \\\"%d %s\\\": the request has already been handled (%d)\", this.request.method, this.request.url, response.status, response.statusText || \"OK\", this.readyState);\n\t\tthis.readyState = RequestController.RESPONSE;\n\t\tthis.#handled.resolve();\n\t\t/**\n\t\t* @note Although `source.respondWith()` is potentially asynchronous,\n\t\t* do NOT await it for backward-compatibility. Awaiting it will short-circuit\n\t\t* the request listener invocation as soon as a listener responds to a request.\n\t\t* Ideally, that's what we want, but that's not what we promise the user.\n\t\t*/\n\t\tthis.source.respondWith(response);\n\t}\n\t/**\n\t* Error this request with the given reason.\n\t*\n\t* @example\n\t* controller.errorWith()\n\t* controller.errorWith(new Error('Oops!'))\n\t* controller.errorWith({ message: 'Oops!'})\n\t*/\n\terrorWith(reason) {\n\t\tinvariant.as(InterceptorError, this.readyState === RequestController.PENDING, \"Failed to error the \\\"%s %s\\\" request with \\\"%s\\\": the request has already been handled (%d)\", this.request.method, this.request.url, reason?.toString(), this.readyState);\n\t\tthis.readyState = RequestController.ERROR;\n\t\tthis.source.errorWith(reason);\n\t\tthis.#handled.resolve();\n\t}\n};\n\n//#endregion\n//#region src/createRequestId.ts\n/**\n* Generate a random ID string to represent a request.\n* @example\n* createRequestId()\n* // \"f774b6c9c600f\"\n*/\nfunction createRequestId() {\n\treturn Math.random().toString(16).slice(2);\n}\n\n//#endregion\n//#region src/utils/canParseUrl.ts\n/**\n* Returns a boolean indicating whether the given URL string\n* can be parsed into a `URL` instance.\n* A substitute for `URL.canParse()` for Node.js 18.\n*/\nfunction canParseUrl(url) {\n\ttry {\n\t\tnew URL(url);\n\t\treturn true;\n\t} catch (_error) {\n\t\treturn false;\n\t}\n}\n\n//#endregion\n//#region src/utils/getValueBySymbol.ts\n/**\n* Returns the value behind the symbol with the given name.\n*/\nfunction getValueBySymbol(symbolName, source) {\n\tconst symbol = Object.getOwnPropertySymbols(source).find((symbol$1) => {\n\t\treturn symbol$1.description === symbolName;\n\t});\n\tif (symbol) return Reflect.get(source, symbol);\n}\n\n//#endregion\n//#region src/utils/fetchUtils.ts\nvar FetchResponse = class FetchResponse extends Response {\n\tstatic {\n\t\tthis.STATUS_CODES_WITHOUT_BODY = [\n\t\t\t101,\n\t\t\t103,\n\t\t\t204,\n\t\t\t205,\n\t\t\t304\n\t\t];\n\t}\n\tstatic {\n\t\tthis.STATUS_CODES_WITH_REDIRECT = [\n\t\t\t301,\n\t\t\t302,\n\t\t\t303,\n\t\t\t307,\n\t\t\t308\n\t\t];\n\t}\n\tstatic isConfigurableStatusCode(status) {\n\t\treturn status >= 200 && status <= 599;\n\t}\n\tstatic isRedirectResponse(status) {\n\t\treturn FetchResponse.STATUS_CODES_WITH_REDIRECT.includes(status);\n\t}\n\t/**\n\t* Returns a boolean indicating whether the given response status\n\t* code represents a response that can have a body.\n\t*/\n\tstatic isResponseWithBody(status) {\n\t\treturn !FetchResponse.STATUS_CODES_WITHOUT_BODY.includes(status);\n\t}\n\tstatic setUrl(url, response) {\n\t\tif (!url || url === \"about:\" || !canParseUrl(url)) return;\n\t\tconst state = getValueBySymbol(\"state\", response);\n\t\tif (state) state.urlList.push(new URL(url));\n\t\telse Object.defineProperty(response, \"url\", {\n\t\t\tvalue: url,\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t\twritable: false\n\t\t});\n\t}\n\t/**\n\t* Parses the given raw HTTP headers into a Fetch API `Headers` instance.\n\t*/\n\tstatic parseRawHeaders(rawHeaders) {\n\t\tconst headers = new Headers();\n\t\tfor (let line = 0; line < rawHeaders.length; line += 2) headers.append(rawHeaders[line], rawHeaders[line + 1]);\n\t\treturn headers;\n\t}\n\tconstructor(body, init = {}) {\n\t\tconst status = init.status ?? 200;\n\t\tconst safeStatus = FetchResponse.isConfigurableStatusCode(status) ? status : 200;\n\t\tconst finalBody = FetchResponse.isResponseWithBody(status) ? body : null;\n\t\tsuper(finalBody, {\n\t\t\tstatus: safeStatus,\n\t\t\tstatusText: init.statusText,\n\t\t\theaders: init.headers\n\t\t});\n\t\tif (status !== safeStatus) {\n\t\t\t/**\n\t\t\t* @note Undici keeps an internal \"Symbol(state)\" that holds\n\t\t\t* the actual value of response status. Update that in Node.js.\n\t\t\t*/\n\t\t\tconst state = getValueBySymbol(\"state\", this);\n\t\t\tif (state) state.status = status;\n\t\t\telse Object.defineProperty(this, \"status\", {\n\t\t\t\tvalue: status,\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: true,\n\t\t\t\twritable: false\n\t\t\t});\n\t\t}\n\t\tFetchResponse.setUrl(init.url, this);\n\t}\n};\n\n//#endregion\nexport { InterceptorError as a, InterceptorReadyState as c, RequestController as i, deleteGlobalSymbol as l, canParseUrl as n, INTERNAL_REQUEST_ID_HEADER_NAME as o, createRequestId as r, Interceptor as s, FetchResponse as t, getGlobalSymbol as u };\n//# sourceMappingURL=fetchUtils-CoU35g3M.mjs.map"],"names":["INTERNAL_REQUEST_ID_HEADER_NAME","getGlobalSymbol","symbol","globalThis","deleteGlobalSymbol","InterceptorReadyState","InterceptorReadyState$1","Interceptor","constructor","this","readyState","INACTIVE","emitter","Emitter","subscriptions","logger","Logger","description","setMaxListeners","info","checkEnvironment","apply","extend","APPLIED","APPLYING","runningInstance","getInstance","on","event","listener","addListener","push","removeListener","setup","setInstance","DISPOSING","DISPOSED","once","off","removeAllListeners","dispose","clearInstance","length","instance","name","value","InterceptorError","Error","message","super","Object","setPrototypeOf","prototype","RequestController","PENDING","PASSTHROUGH","RESPONSE","ERROR","request","source","handled","DeferredPromise","passthrough","invariant","as","method","url","resolve","respondWith","response","status","statusText","errorWith","reason","toString","createRequestId","Math","random","slice","canParseUrl","URL","_error","getValueBySymbol","symbolName","getOwnPropertySymbols","find","symbol$1","Reflect","get","FetchResponse","Response","STATUS_CODES_WITHOUT_BODY","STATUS_CODES_WITH_REDIRECT","isConfigurableStatusCode","isRedirectResponse","includes","isResponseWithBody","setUrl","state","urlList","defineProperty","enumerable","configurable","writable","parseRawHeaders","rawHeaders","headers","Headers","line","append","body","init","safeStatus"],"mappings":"2dAaK,MAACA,EAAkC,qCACxC,SAASC,EAAgBC,GACxB,OAAOC,WAAWD,SAAW,CAC9B,CAIA,SAASE,EAAmBF,UACpBC,WAAWD,EACnB,CACG,IAACG,EAAwC,SAASC,GAMpD,OALAA,EAAkC,SAAI,WACtCA,EAAkC,SAAI,WACtCA,EAAiC,QAAI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GAAUwC,EAAO,KACnD,CAChBxC,OAAQ0C,EACRzC,WAAYwC,EAAKxC,WACjBmC,QAASK,EAAKL,UAEXpC,IAAW0C,EAAY,CAK1B,MAAMd,EAAQhB,EAAiB,QAASzE,MACpCyF,EAAOA,EAAM5B,OAASA,EACrBpB,OAAOkD,eAAe3F,KAAM,SAAU,CAC1CoC,MAAOyB,EACP+B,YAAY,EACZC,cAAc,EACdC,UAAU,GAEZ,CACAd,EAAcQ,OAAOc,EAAK7C,IAAKzD,KAChC","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";const t=Symbol("kRawRequest");exports.n=function(e,s){Reflect.set(e,t,s)};
2
+ //# sourceMappingURL=getRawRequest-DnwmXyOW.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRawRequest-DnwmXyOW.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.mjs"],"sourcesContent":["//#region src/getRawRequest.ts\nconst kRawRequest = Symbol(\"kRawRequest\");\n/**\n* Returns a raw request instance associated with this request.\n*\n* @example\n* interceptor.on('request', ({ request }) => {\n* const rawRequest = getRawRequest(request)\n*\n* if (rawRequest instanceof http.ClientRequest) {\n* console.log(rawRequest.rawHeaders)\n* }\n* })\n*/\nfunction getRawRequest(request) {\n\treturn Reflect.get(request, kRawRequest);\n}\nfunction setRawRequest(request, rawRequest) {\n\tReflect.set(request, kRawRequest, rawRequest);\n}\n\n//#endregion\nexport { setRawRequest as n, getRawRequest as t };\n//# sourceMappingURL=getRawRequest-DnwmXyOW.mjs.map"],"names":["kRawRequest","Symbol","request","rawRequest","Reflect","set"],"mappings":"aACA,MAAMA,EAAcC,OAAO,yBAgB3B,SAAuBC,EAASC,GAC/BC,QAAQC,IAAIH,EAASF,EAAaG,EACnC","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ const e=Symbol("kRawRequest");function t(t,n){Reflect.set(t,e,n)}export{t as n};
2
+ //# sourceMappingURL=getRawRequest-DnwmXyOW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRawRequest-DnwmXyOW.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.mjs"],"sourcesContent":["//#region src/getRawRequest.ts\nconst kRawRequest = Symbol(\"kRawRequest\");\n/**\n* Returns a raw request instance associated with this request.\n*\n* @example\n* interceptor.on('request', ({ request }) => {\n* const rawRequest = getRawRequest(request)\n*\n* if (rawRequest instanceof http.ClientRequest) {\n* console.log(rawRequest.rawHeaders)\n* }\n* })\n*/\nfunction getRawRequest(request) {\n\treturn Reflect.get(request, kRawRequest);\n}\nfunction setRawRequest(request, rawRequest) {\n\tReflect.set(request, kRawRequest, rawRequest);\n}\n\n//#endregion\nexport { setRawRequest as n, getRawRequest as t };\n//# sourceMappingURL=getRawRequest-DnwmXyOW.mjs.map"],"names":["kRawRequest","Symbol","setRawRequest","request","rawRequest","Reflect","set"],"mappings":"AACA,MAAMA,EAAcC,OAAO,eAgB3B,SAASC,EAAcC,EAASC,GAC/BC,QAAQC,IAAIH,EAASH,EAAaI,EACnC","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";const t=Symbol("isPatchedModule");exports.t=t;
2
+ //# sourceMappingURL=glossary-glQBRnVD.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glossary-glQBRnVD.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.mjs"],"sourcesContent":["//#region src/glossary.ts\nconst IS_PATCHED_MODULE = Symbol(\"isPatchedModule\");\n\n//#endregion\nexport { IS_PATCHED_MODULE as t };\n//# sourceMappingURL=glossary-glQBRnVD.mjs.map"],"names":["IS_PATCHED_MODULE","Symbol"],"mappings":"aACK,MAACA,EAAoBC,OAAO","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ const o=Symbol("isPatchedModule");export{o as t};
2
+ //# sourceMappingURL=glossary-glQBRnVD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glossary-glQBRnVD.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.mjs"],"sourcesContent":["//#region src/glossary.ts\nconst IS_PATCHED_MODULE = Symbol(\"isPatchedModule\");\n\n//#endregion\nexport { IS_PATCHED_MODULE as t };\n//# sourceMappingURL=glossary-glQBRnVD.mjs.map"],"names":["IS_PATCHED_MODULE","Symbol"],"mappings":"AACK,MAACA,EAAoBC,OAAO","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("./fetchUtils-CoU35g3M.cjs.js"),r=require("../../../../../../@open-draft_deferred-promise@2.2.0/node_modules/@open-draft/deferred-promise/build/index.cjs.js"),t=require("../../../../../../@open-draft_until@2.1.0/node_modules/@open-draft/until/lib/index.cjs.js");function n(e,r){try{return e[r],!0}catch{return!1}}async function o(e,r,...t){const n=e.listeners(r);if(0!==n.length)for(const r of n)await r.apply(e,t)}function s(e,r=!1){return r?Object.prototype.toString.call(e).startsWith("[object "):"[object Object]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&e instanceof Response&&n(e,"type")&&"error"===e.type}exports.a=n,exports.i=o,exports.n=a,exports.r=s,exports.t=async function(i){const c=async e=>{return e instanceof Error?(await i.controller.errorWith(e),!0):a(e)?(await i.controller.respondWith(e),!0):s(r=e,!0)&&n(r,"status")&&n(r,"statusText")&&n(r,"bodyUsed")?(await i.controller.respondWith(e),!0):!!s(e)&&(await i.controller.errorWith(e),!0);var r},l=async r=>{if(r instanceof e.a)throw d.error;return function(e){return null!=e&&e instanceof Error&&"code"in e&&"errno"in e}(r)?(await i.controller.errorWith(r),!0):r instanceof Response&&await c(r)},u=new r.DeferredPromise;if(i.request.signal){if(i.request.signal.aborted)return void await i.controller.errorWith(i.request.signal.reason);i.request.signal.addEventListener("abort",(()=>{u.reject(i.request.signal.reason)}),{once:!0})}const d=await t.until((async()=>{const e=o(i.emitter,"request",{requestId:i.requestId,request:i.request,controller:i.controller});await Promise.race([u,e,i.controller.handled])}));if("rejected"!==u.state){var p;if(!d.error)return i.controller.readyState===e.i.PENDING?await i.controller.passthrough():i.controller.handled;if(await l(d.error))return;if(i.emitter.listenerCount("unhandledException")>0){const r=new e.i(i.request,{passthrough(){},async respondWith(e){await c(e)},async errorWith(e){await i.controller.errorWith(e)}});if(await o(i.emitter,"unhandledException",{error:d.error,request:i.request,requestId:i.requestId,controller:r}),r.readyState!==e.i.PENDING)return}await i.controller.respondWith((p=d.error,new Response(JSON.stringify(p instanceof Error?{name:p.name,message:p.message,stack:p.stack}:p),{status:500,statusText:"Unhandled Exception",headers:{"Content-Type":"application/json"}})))}else await i.controller.errorWith(u.rejectionReason)};
2
+ //# sourceMappingURL=handleRequest-Y97UwBbF.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleRequest-Y97UwBbF.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.mjs"],"sourcesContent":["import { a as InterceptorError, i as RequestController } from \"./fetchUtils-CoU35g3M.mjs\";\nimport { DeferredPromise } from \"@open-draft/deferred-promise\";\nimport { until } from \"@open-draft/until\";\n\n//#region src/utils/isPropertyAccessible.ts\n/**\n* A function that validates if property access is possible on an object\n* without throwing. It returns `true` if the property access is possible\n* and `false` otherwise.\n*\n* Environments like miniflare will throw on property access on certain objects\n* like Request and Response, for unimplemented properties.\n*/\nfunction isPropertyAccessible(obj, key) {\n\ttry {\n\t\tobj[key];\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n//#endregion\n//#region src/utils/emitAsync.ts\n/**\n* Emits an event on the given emitter but executes\n* the listeners sequentially. This accounts for asynchronous\n* listeners (e.g. those having \"sleep\" and handling the request).\n*/\nasync function emitAsync(emitter, eventName, ...data) {\n\tconst listeners = emitter.listeners(eventName);\n\tif (listeners.length === 0) return;\n\tfor (const listener of listeners) await listener.apply(emitter, data);\n}\n\n//#endregion\n//#region src/utils/isObject.ts\n/**\n* Determines if a given value is an instance of object.\n*/\nfunction isObject(value, loose = false) {\n\treturn loose ? Object.prototype.toString.call(value).startsWith(\"[object \") : Object.prototype.toString.call(value) === \"[object Object]\";\n}\n\n//#endregion\n//#region src/utils/responseUtils.ts\n/**\n* Creates a generic 500 Unhandled Exception response.\n*/\nfunction createServerErrorResponse(body) {\n\treturn new Response(JSON.stringify(body instanceof Error ? {\n\t\tname: body.name,\n\t\tmessage: body.message,\n\t\tstack: body.stack\n\t} : body), {\n\t\tstatus: 500,\n\t\tstatusText: \"Unhandled Exception\",\n\t\theaders: { \"Content-Type\": \"application/json\" }\n\t});\n}\n/**\n* Check if the given response is a `Response.error()`.\n*\n* @note Some environments, like Miniflare (Cloudflare) do not\n* implement the \"Response.type\" property and throw on its access.\n* Safely check if we can access \"type\" on \"Response\" before continuing.\n* @see https://github.com/mswjs/msw/issues/1834\n*/\nfunction isResponseError(response) {\n\treturn response != null && response instanceof Response && isPropertyAccessible(response, \"type\") && response.type === \"error\";\n}\n/**\n* Check if the given value is a `Response` or a Response-like object.\n* This is different from `value instanceof Response` because it supports\n* custom `Response` constructors, like the one when using Undici directly.\n*/\nfunction isResponseLike(value) {\n\treturn isObject(value, true) && isPropertyAccessible(value, \"status\") && isPropertyAccessible(value, \"statusText\") && isPropertyAccessible(value, \"bodyUsed\");\n}\n\n//#endregion\n//#region src/utils/isNodeLikeError.ts\nfunction isNodeLikeError(error) {\n\tif (error == null) return false;\n\tif (!(error instanceof Error)) return false;\n\treturn \"code\" in error && \"errno\" in error;\n}\n\n//#endregion\n//#region src/utils/handleRequest.ts\nasync function handleRequest(options) {\n\tconst handleResponse = async (response) => {\n\t\tif (response instanceof Error) {\n\t\t\tawait options.controller.errorWith(response);\n\t\t\treturn true;\n\t\t}\n\t\tif (isResponseError(response)) {\n\t\t\tawait options.controller.respondWith(response);\n\t\t\treturn true;\n\t\t}\n\t\t/**\n\t\t* Handle normal responses or response-like objects.\n\t\t* @note This must come before the arbitrary object check\n\t\t* since Response instances are, in fact, objects.\n\t\t*/\n\t\tif (isResponseLike(response)) {\n\t\t\tawait options.controller.respondWith(response);\n\t\t\treturn true;\n\t\t}\n\t\tif (isObject(response)) {\n\t\t\tawait options.controller.errorWith(response);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t};\n\tconst handleResponseError = async (error) => {\n\t\tif (error instanceof InterceptorError) throw result.error;\n\t\tif (isNodeLikeError(error)) {\n\t\t\tawait options.controller.errorWith(error);\n\t\t\treturn true;\n\t\t}\n\t\tif (error instanceof Response) return await handleResponse(error);\n\t\treturn false;\n\t};\n\tconst requestAbortPromise = new DeferredPromise();\n\t/**\n\t* @note `signal` is not always defined in React Native.\n\t*/\n\tif (options.request.signal) {\n\t\tif (options.request.signal.aborted) {\n\t\t\tawait options.controller.errorWith(options.request.signal.reason);\n\t\t\treturn;\n\t\t}\n\t\toptions.request.signal.addEventListener(\"abort\", () => {\n\t\t\trequestAbortPromise.reject(options.request.signal.reason);\n\t\t}, { once: true });\n\t}\n\tconst result = await until(async () => {\n\t\tconst requestListenersPromise = emitAsync(options.emitter, \"request\", {\n\t\t\trequestId: options.requestId,\n\t\t\trequest: options.request,\n\t\t\tcontroller: options.controller\n\t\t});\n\t\tawait Promise.race([\n\t\t\trequestAbortPromise,\n\t\t\trequestListenersPromise,\n\t\t\toptions.controller.handled\n\t\t]);\n\t});\n\tif (requestAbortPromise.state === \"rejected\") {\n\t\tawait options.controller.errorWith(requestAbortPromise.rejectionReason);\n\t\treturn;\n\t}\n\tif (result.error) {\n\t\tif (await handleResponseError(result.error)) return;\n\t\tif (options.emitter.listenerCount(\"unhandledException\") > 0) {\n\t\t\tconst unhandledExceptionController = new RequestController(options.request, {\n\t\t\t\tpassthrough() {},\n\t\t\t\tasync respondWith(response) {\n\t\t\t\t\tawait handleResponse(response);\n\t\t\t\t},\n\t\t\t\tasync errorWith(reason) {\n\t\t\t\t\t/**\n\t\t\t\t\t* @note Handle the result of the unhandled controller\n\t\t\t\t\t* in the same way as the original request controller.\n\t\t\t\t\t* The exception here is that thrown errors within the\n\t\t\t\t\t* \"unhandledException\" event do NOT result in another\n\t\t\t\t\t* emit of the same event. They are forwarded as-is.\n\t\t\t\t\t*/\n\t\t\t\t\tawait options.controller.errorWith(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t\tawait emitAsync(options.emitter, \"unhandledException\", {\n\t\t\t\terror: result.error,\n\t\t\t\trequest: options.request,\n\t\t\t\trequestId: options.requestId,\n\t\t\t\tcontroller: unhandledExceptionController\n\t\t\t});\n\t\t\tif (unhandledExceptionController.readyState !== RequestController.PENDING) return;\n\t\t}\n\t\tawait options.controller.respondWith(createServerErrorResponse(result.error));\n\t\treturn;\n\t}\n\tif (options.controller.readyState === RequestController.PENDING) return await options.controller.passthrough();\n\treturn options.controller.handled;\n}\n\n//#endregion\nexport { isPropertyAccessible as a, emitAsync as i, isResponseError as n, isObject as r, handleRequest as t };\n//# sourceMappingURL=handleRequest-Y97UwBbF.mjs.map"],"names":["isPropertyAccessible","obj","key","async","emitAsync","emitter","eventName","data","listeners","length","listener","apply","isObject","value","loose","Object","prototype","toString","call","startsWith","isResponseError","response","Response","type","options","handleResponse","Error","controller","errorWith","respondWith","handleResponseError","error","InterceptorError","result","isNodeLikeError","requestAbortPromise","DeferredPromise","request","signal","aborted","reason","addEventListener","reject","once","until","requestListenersPromise","requestId","Promise","race","handled","state","body","readyState","RequestController","PENDING","passthrough","listenerCount","unhandledExceptionController","JSON","stringify","name","message","stack","status","statusText","headers","rejectionReason"],"mappings":"iSAaA,SAASA,EAAqBC,EAAKC,GAClC,IAEC,OADAD,EAAIC,IACG,CACR,CAAE,M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 -0,0 +1,2 @@
1
+ import{i as e,a as r}from"./fetchUtils-CoU35g3M.js";import{DeferredPromise as t}from"../../../../../../@open-draft_deferred-promise@2.2.0/node_modules/@open-draft/deferred-promise/build/index.js";import{until as n}from"../../../../../../@open-draft_until@2.1.0/node_modules/@open-draft/until/lib/index.js";function o(e,r){try{return e[r],!0}catch{return!1}}async function a(e,r,...t){const n=e.listeners(r);if(0!==n.length)for(const r of n)await r.apply(e,t)}function s(e,r=!1){return r?Object.prototype.toString.call(e).startsWith("[object "):"[object Object]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&e instanceof Response&&o(e,"type")&&"error"===e.type}async function c(c){const l=async e=>{return e instanceof Error?(await c.controller.errorWith(e),!0):i(e)?(await c.controller.respondWith(e),!0):s(r=e,!0)&&o(r,"status")&&o(r,"statusText")&&o(r,"bodyUsed")?(await c.controller.respondWith(e),!0):!!s(e)&&(await c.controller.errorWith(e),!0);var r},u=async e=>{if(e instanceof r)throw f.error;return function(e){return null!=e&&e instanceof Error&&"code"in e&&"errno"in e}(e)?(await c.controller.errorWith(e),!0):e instanceof Response&&await l(e)},d=new t;if(c.request.signal){if(c.request.signal.aborted)return void await c.controller.errorWith(c.request.signal.reason);c.request.signal.addEventListener("abort",(()=>{d.reject(c.request.signal.reason)}),{once:!0})}const f=await n((async()=>{const e=a(c.emitter,"request",{requestId:c.requestId,request:c.request,controller:c.controller});await Promise.race([d,e,c.controller.handled])}));if("rejected"!==d.state){var p;if(!f.error)return c.controller.readyState===e.PENDING?await c.controller.passthrough():c.controller.handled;if(await u(f.error))return;if(c.emitter.listenerCount("unhandledException")>0){const r=new e(c.request,{passthrough(){},async respondWith(e){await l(e)},async errorWith(e){await c.controller.errorWith(e)}});if(await a(c.emitter,"unhandledException",{error:f.error,request:c.request,requestId:c.requestId,controller:r}),r.readyState!==e.PENDING)return}await c.controller.respondWith((p=f.error,new Response(JSON.stringify(p instanceof Error?{name:p.name,message:p.message,stack:p.stack}:p),{status:500,statusText:"Unhandled Exception",headers:{"Content-Type":"application/json"}})))}else await c.controller.errorWith(d.rejectionReason)}export{o as a,a as i,i as n,s as r,c as t};
2
+ //# sourceMappingURL=handleRequest-Y97UwBbF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleRequest-Y97UwBbF.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.mjs"],"sourcesContent":["import { a as InterceptorError, i as RequestController } from \"./fetchUtils-CoU35g3M.mjs\";\nimport { DeferredPromise } from \"@open-draft/deferred-promise\";\nimport { until } from \"@open-draft/until\";\n\n//#region src/utils/isPropertyAccessible.ts\n/**\n* A function that validates if property access is possible on an object\n* without throwing. It returns `true` if the property access is possible\n* and `false` otherwise.\n*\n* Environments like miniflare will throw on property access on certain objects\n* like Request and Response, for unimplemented properties.\n*/\nfunction isPropertyAccessible(obj, key) {\n\ttry {\n\t\tobj[key];\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n//#endregion\n//#region src/utils/emitAsync.ts\n/**\n* Emits an event on the given emitter but executes\n* the listeners sequentially. This accounts for asynchronous\n* listeners (e.g. those having \"sleep\" and handling the request).\n*/\nasync function emitAsync(emitter, eventName, ...data) {\n\tconst listeners = emitter.listeners(eventName);\n\tif (listeners.length === 0) return;\n\tfor (const listener of listeners) await listener.apply(emitter, data);\n}\n\n//#endregion\n//#region src/utils/isObject.ts\n/**\n* Determines if a given value is an instance of object.\n*/\nfunction isObject(value, loose = false) {\n\treturn loose ? Object.prototype.toString.call(value).startsWith(\"[object \") : Object.prototype.toString.call(value) === \"[object Object]\";\n}\n\n//#endregion\n//#region src/utils/responseUtils.ts\n/**\n* Creates a generic 500 Unhandled Exception response.\n*/\nfunction createServerErrorResponse(body) {\n\treturn new Response(JSON.stringify(body instanceof Error ? {\n\t\tname: body.name,\n\t\tmessage: body.message,\n\t\tstack: body.stack\n\t} : body), {\n\t\tstatus: 500,\n\t\tstatusText: \"Unhandled Exception\",\n\t\theaders: { \"Content-Type\": \"application/json\" }\n\t});\n}\n/**\n* Check if the given response is a `Response.error()`.\n*\n* @note Some environments, like Miniflare (Cloudflare) do not\n* implement the \"Response.type\" property and throw on its access.\n* Safely check if we can access \"type\" on \"Response\" before continuing.\n* @see https://github.com/mswjs/msw/issues/1834\n*/\nfunction isResponseError(response) {\n\treturn response != null && response instanceof Response && isPropertyAccessible(response, \"type\") && response.type === \"error\";\n}\n/**\n* Check if the given value is a `Response` or a Response-like object.\n* This is different from `value instanceof Response` because it supports\n* custom `Response` constructors, like the one when using Undici directly.\n*/\nfunction isResponseLike(value) {\n\treturn isObject(value, true) && isPropertyAccessible(value, \"status\") && isPropertyAccessible(value, \"statusText\") && isPropertyAccessible(value, \"bodyUsed\");\n}\n\n//#endregion\n//#region src/utils/isNodeLikeError.ts\nfunction isNodeLikeError(error) {\n\tif (error == null) return false;\n\tif (!(error instanceof Error)) return false;\n\treturn \"code\" in error && \"errno\" in error;\n}\n\n//#endregion\n//#region src/utils/handleRequest.ts\nasync function handleRequest(options) {\n\tconst handleResponse = async (response) => {\n\t\tif (response instanceof Error) {\n\t\t\tawait options.controller.errorWith(response);\n\t\t\treturn true;\n\t\t}\n\t\tif (isResponseError(response)) {\n\t\t\tawait options.controller.respondWith(response);\n\t\t\treturn true;\n\t\t}\n\t\t/**\n\t\t* Handle normal responses or response-like objects.\n\t\t* @note This must come before the arbitrary object check\n\t\t* since Response instances are, in fact, objects.\n\t\t*/\n\t\tif (isResponseLike(response)) {\n\t\t\tawait options.controller.respondWith(response);\n\t\t\treturn true;\n\t\t}\n\t\tif (isObject(response)) {\n\t\t\tawait options.controller.errorWith(response);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t};\n\tconst handleResponseError = async (error) => {\n\t\tif (error instanceof InterceptorError) throw result.error;\n\t\tif (isNodeLikeError(error)) {\n\t\t\tawait options.controller.errorWith(error);\n\t\t\treturn true;\n\t\t}\n\t\tif (error instanceof Response) return await handleResponse(error);\n\t\treturn false;\n\t};\n\tconst requestAbortPromise = new DeferredPromise();\n\t/**\n\t* @note `signal` is not always defined in React Native.\n\t*/\n\tif (options.request.signal) {\n\t\tif (options.request.signal.aborted) {\n\t\t\tawait options.controller.errorWith(options.request.signal.reason);\n\t\t\treturn;\n\t\t}\n\t\toptions.request.signal.addEventListener(\"abort\", () => {\n\t\t\trequestAbortPromise.reject(options.request.signal.reason);\n\t\t}, { once: true });\n\t}\n\tconst result = await until(async () => {\n\t\tconst requestListenersPromise = emitAsync(options.emitter, \"request\", {\n\t\t\trequestId: options.requestId,\n\t\t\trequest: options.request,\n\t\t\tcontroller: options.controller\n\t\t});\n\t\tawait Promise.race([\n\t\t\trequestAbortPromise,\n\t\t\trequestListenersPromise,\n\t\t\toptions.controller.handled\n\t\t]);\n\t});\n\tif (requestAbortPromise.state === \"rejected\") {\n\t\tawait options.controller.errorWith(requestAbortPromise.rejectionReason);\n\t\treturn;\n\t}\n\tif (result.error) {\n\t\tif (await handleResponseError(result.error)) return;\n\t\tif (options.emitter.listenerCount(\"unhandledException\") > 0) {\n\t\t\tconst unhandledExceptionController = new RequestController(options.request, {\n\t\t\t\tpassthrough() {},\n\t\t\t\tasync respondWith(response) {\n\t\t\t\t\tawait handleResponse(response);\n\t\t\t\t},\n\t\t\t\tasync errorWith(reason) {\n\t\t\t\t\t/**\n\t\t\t\t\t* @note Handle the result of the unhandled controller\n\t\t\t\t\t* in the same way as the original request controller.\n\t\t\t\t\t* The exception here is that thrown errors within the\n\t\t\t\t\t* \"unhandledException\" event do NOT result in another\n\t\t\t\t\t* emit of the same event. They are forwarded as-is.\n\t\t\t\t\t*/\n\t\t\t\t\tawait options.controller.errorWith(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t\tawait emitAsync(options.emitter, \"unhandledException\", {\n\t\t\t\terror: result.error,\n\t\t\t\trequest: options.request,\n\t\t\t\trequestId: options.requestId,\n\t\t\t\tcontroller: unhandledExceptionController\n\t\t\t});\n\t\t\tif (unhandledExceptionController.readyState !== RequestController.PENDING) return;\n\t\t}\n\t\tawait options.controller.respondWith(createServerErrorResponse(result.error));\n\t\treturn;\n\t}\n\tif (options.controller.readyState === RequestController.PENDING) return await options.controller.passthrough();\n\treturn options.controller.handled;\n}\n\n//#endregion\nexport { isPropertyAccessible as a, emitAsync as i, isResponseError as n, isObject as r, handleRequest as t };\n//# sourceMappingURL=handleRequest-Y97UwBbF.mjs.map"],"names":["isPropertyAccessible","obj","key","async","emitAsync","emitter","eventName","data","listeners","length","listener","apply","isObject","value","loose","Object","prototype","toString","call","startsWith","isResponseError","response","Response","type","handleRequest","options","handleResponse","Error","controller","errorWith","respondWith","handleResponseError","error","InterceptorError","result","isNodeLikeError","requestAbortPromise","DeferredPromise","request","signal","aborted","reason","addEventListener","reject","once","until","requestListenersPromise","requestId","Promise","race","handled","state","body","readyState","RequestController","PENDING","passthrough","listenerCount","unhandledExceptionController","JSON","stringify","name","message","stack","status","statusText","headers","rejectionReason"],"mappings":"kTAaA,SAASA,EAAqBC,EAAKC,GAClC,IAEC,OADAD,EAAIC,IACG,CACR,CAAE,MACD,OAAO,CACR,CACD,CASAC,eAAeC,EAAUC,EAASC,KAAcC,GAC/C,MAAMC,EAAYH,EAAQG,UAAUF,GACpC,GAAyB,IAArBE,EAAUC,OACd,IAAK,MAAMC,KAAYF,QAAiBE,EAASC,MAAMN,EAASE,EACjE,CAOA,SAASK,EAASC,EAAOC,GAAQ,GAChC,OAAOA,EAAQC,OAAOC,UAAUC,SAASC,KAAKL,GAAOM,WAAW,YAAwD,oBAA1CJ,OAAOC,UAAUC,SAASC,KAAKL,EAC9G,CA0BA,SAASO,EAAgBC,GACxB,OAAmB,MAAZA,GAAoBA,aAAoBC,UAAYtB,EAAqBqB,EAAU,SAA6B,UAAlBA,EAASE,IAC/G,CAoBApB,eAAeqB,EAAcC,GAC5B,MAAMC,EAAiBvB,MAAOkB,IAC7B,OAAIA,aAAoBM,aACjBF,EAAQG,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AQoD,cAAc,sBAAwB,EAAG,CAC5D,MAAMC,EAA+B,IAAIJ,EAAkB7B,EAAQa,QAAS,CAC3E,WAAAkB,GAAe,EACf,iBAAM1B,CAAYT,SACXK,EAAeL,EACtB,EACA,eAAMQ,CAAUY,SAQThB,EAAQG,WAAWC,UAAUY,EACpC,IAQD,SANMrC,EAAUqB,EAAQpB,QAAS,qBAAsB,CACtD2B,MAAOE,EAAOF,MACdM,QAASb,EAAQa,QACjBS,UAAWtB,EAAQsB,UACnBnB,WAAY8B,IAETA,EAA6BL,aAAeC,EAAkBC,QAAS,MAC5E,OACM9B,EAAQG,WAAWE,aAnIQsB,EAmI8BlB,EAAOF,MAlIhE,IAAIV,SAASqC,KAAKC,UAAUR,aAAgBzB,MAAQ,CAC1DkC,KAAMT,EAAKS,KACXC,QAASV,EAAKU,QACdC,MAAOX,EAAKW,OACTX,GAAO,CACVY,OAAQ,IACRC,WAAY,sBACZC,QAAS,CAAE,eAAgB,uBA+F5B,YAFOzC,EAAQG,WAAWC,UAAUO,EAAoB+B,gBAmCzD","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";exports.t=function(e){const o=Object.getOwnPropertyDescriptor(globalThis,e);return void 0!==o&&(("function"!=typeof o.get||void 0!==o.get())&&((void 0!==o.get||null!=o.value)&&(!(void 0===o.set&&!o.configurable)||(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1))))};
2
+ //# sourceMappingURL=hasConfigurableGlobal-DBJA0vjm.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasConfigurableGlobal-DBJA0vjm.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.mjs"],"sourcesContent":["//#region src/utils/hasConfigurableGlobal.ts\n/**\n* Returns a boolean indicating whether the given global property\n* is defined and is configurable.\n*/\nfunction hasConfigurableGlobal(propertyName) {\n\tconst descriptor = Object.getOwnPropertyDescriptor(globalThis, propertyName);\n\tif (typeof descriptor === \"undefined\") return false;\n\tif (typeof descriptor.get === \"function\" && typeof descriptor.get() === \"undefined\") return false;\n\tif (typeof descriptor.get === \"undefined\" && descriptor.value == null) return false;\n\tif (typeof descriptor.set === \"undefined\" && !descriptor.configurable) {\n\t\tconsole.error(`[MSW] Failed to apply interceptor: the global \\`${propertyName}\\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`);\n\t\treturn false;\n\t}\n\treturn true;\n}\n\n//#endregion\nexport { hasConfigurableGlobal as t };\n//# sourceMappingURL=hasConfigurableGlobal-DBJA0vjm.mjs.map"],"names":["propertyName","descriptor","Object","getOwnPropertyDescriptor","globalThis","get","value","set","configurable","console","error"],"mappings":"uBAKA,SAA+BA,GAC9B,MAAMC,EAAaC,OAAOC,yBAAyBC,WAAYJ,GAC/D,YAA0B,IAAfC,KACmB,mBAAnBA,EAAWI,UAAkD,IAArBJ,EAAWI,eAChC,IAAnBJ,EAAWI,KAA2C,MAApBJ,EAAWK,gBAC1B,IAAnBL,EAAWM,MAAwBN,EAAWO,gBACxDC,QAAQC,MAAM,mDAAmDV,wKAC1D,KAGT","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- function e(e){const o=Object.getOwnPropertyDescriptor(globalThis,e);return void 0!==o&&(("function"!=typeof o.get||void 0!==o.get())&&((void 0!==o.get||null!=o.value)&&(!(void 0===o.set&&!o.configurable)||(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1))))}export{e as hasConfigurableGlobal};
2
- //# sourceMappingURL=chunk-TX5GBTFY.js.map
1
+ function e(e){const o=Object.getOwnPropertyDescriptor(globalThis,e);return void 0!==o&&(("function"!=typeof o.get||void 0!==o.get())&&((void 0!==o.get||null!=o.value)&&(!(void 0===o.set&&!o.configurable)||(console.error(`[MSW] Failed to apply interceptor: the global \`${e}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`),!1))))}export{e as t};
2
+ //# sourceMappingURL=hasConfigurableGlobal-DBJA0vjm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hasConfigurableGlobal-DBJA0vjm.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.mjs"],"sourcesContent":["//#region src/utils/hasConfigurableGlobal.ts\n/**\n* Returns a boolean indicating whether the given global property\n* is defined and is configurable.\n*/\nfunction hasConfigurableGlobal(propertyName) {\n\tconst descriptor = Object.getOwnPropertyDescriptor(globalThis, propertyName);\n\tif (typeof descriptor === \"undefined\") return false;\n\tif (typeof descriptor.get === \"function\" && typeof descriptor.get() === \"undefined\") return false;\n\tif (typeof descriptor.get === \"undefined\" && descriptor.value == null) return false;\n\tif (typeof descriptor.set === \"undefined\" && !descriptor.configurable) {\n\t\tconsole.error(`[MSW] Failed to apply interceptor: the global \\`${propertyName}\\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`);\n\t\treturn false;\n\t}\n\treturn true;\n}\n\n//#endregion\nexport { hasConfigurableGlobal as t };\n//# sourceMappingURL=hasConfigurableGlobal-DBJA0vjm.mjs.map"],"names":["hasConfigurableGlobal","propertyName","descriptor","Object","getOwnPropertyDescriptor","globalThis","get","value","set","configurable","console","error"],"mappings":"AAKA,SAASA,EAAsBC,GAC9B,MAAMC,EAAaC,OAAOC,yBAAyBC,WAAYJ,GAC/D,YAA0B,IAAfC,KACmB,mBAAnBA,EAAWI,UAAkD,IAArBJ,EAAWI,eAChC,IAAnBJ,EAAWI,KAA2C,MAApBJ,EAAWK,gBAC1B,IAAnBL,EAAWM,MAAwBN,EAAWO,gBACxDC,QAAQC,MAAM,mDAAmDV,wKAC1D,KAGT","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("./fetchUtils-CoU35g3M.cjs.js"),t=require("./bufferUtils-_8XfKIfX.cjs.js");exports.FetchResponse=e.t,exports.INTERNAL_REQUEST_ID_HEADER_NAME=e.o,exports.Interceptor=e.s,exports.InterceptorReadyState=e.c,exports.RequestController=e.i,exports.createRequestId=e.r,exports.deleteGlobalSymbol=e.l,exports.getGlobalSymbol=e.u,exports.decodeBuffer=t.t,exports.encodeBuffer=t.n,exports.getCleanUrl=function(e,t=!0){return[t&&e.origin,e.pathname].filter(Boolean).join("")};
2
+ //# sourceMappingURL=index.cjs.js.map