@relative-ci/core 5.3.0-beta.1 → 5.3.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (704) hide show
  1. package/lib/cjs/__/@actions/http-client/__/undici/index.js +226 -0
  2. package/lib/cjs/__/@actions/http-client/__/undici/index.js.map +1 -0
  3. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/abort-signal.js +73 -0
  4. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/abort-signal.js.map +1 -0
  5. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-connect.js +131 -0
  6. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-connect.js.map +1 -0
  7. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-pipeline.js +276 -0
  8. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-pipeline.js.map +1 -0
  9. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-request.js +238 -0
  10. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-request.js.map +1 -0
  11. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-stream.js +246 -0
  12. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-stream.js.map +1 -0
  13. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-upgrade.js +131 -0
  14. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/api-upgrade.js.map +1 -0
  15. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/index.js +25 -0
  16. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/index.js.map +1 -0
  17. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/readable.js +405 -0
  18. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/readable.js.map +1 -0
  19. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/util.js +114 -0
  20. package/lib/cjs/__/@actions/http-client/__/undici/lib/api/util.js.map +1 -0
  21. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/connect.js +266 -0
  22. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/connect.js.map +1 -0
  23. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/constants.js +130 -0
  24. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/constants.js.map +1 -0
  25. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/diagnostics.js +222 -0
  26. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/diagnostics.js.map +1 -0
  27. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/errors.js +418 -0
  28. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/errors.js.map +1 -0
  29. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/request.js +417 -0
  30. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/request.js.map +1 -0
  31. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/symbols.js +80 -0
  32. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/symbols.js.map +1 -0
  33. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/tree.js +166 -0
  34. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/tree.js.map +1 -0
  35. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/util.js +755 -0
  36. package/lib/cjs/__/@actions/http-client/__/undici/lib/core/util.js.map +1 -0
  37. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/agent.js +149 -0
  38. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/agent.js.map +1 -0
  39. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js +227 -0
  40. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js.map +1 -0
  41. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js +1397 -0
  42. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js.map +1 -0
  43. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js +768 -0
  44. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js.map +1 -0
  45. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client.js +650 -0
  46. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/client.js.map +1 -0
  47. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js +206 -0
  48. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js.map +1 -0
  49. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js +83 -0
  50. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js.map +1 -0
  51. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js +177 -0
  52. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +1 -0
  53. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js +129 -0
  54. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js.map +1 -0
  55. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js +211 -0
  56. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js.map +1 -0
  57. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js +49 -0
  58. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js.map +1 -0
  59. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool.js +126 -0
  60. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/pool.js.map +1 -0
  61. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js +299 -0
  62. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js.map +1 -0
  63. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js +50 -0
  64. package/lib/cjs/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js.map +1 -0
  65. package/lib/cjs/__/@actions/http-client/__/undici/lib/global.js +47 -0
  66. package/lib/cjs/__/@actions/http-client/__/undici/lib/global.js.map +1 -0
  67. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js +56 -0
  68. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js.map +1 -0
  69. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js +237 -0
  70. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js.map +1 -0
  71. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/retry-handler.js +395 -0
  72. package/lib/cjs/__/@actions/http-client/__/undici/lib/handler/retry-handler.js.map +1 -0
  73. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dns.js +397 -0
  74. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dns.js.map +1 -0
  75. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dump.js +139 -0
  76. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/dump.js.map +1 -0
  77. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js +35 -0
  78. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js.map +1 -0
  79. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect.js +38 -0
  80. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/redirect.js.map +1 -0
  81. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/retry.js +33 -0
  82. package/lib/cjs/__/@actions/http-client/__/undici/lib/interceptor/retry.js.map +1 -0
  83. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/constants.js +288 -0
  84. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/constants.js.map +1 -0
  85. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js +23 -0
  86. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
  87. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js +23 -0
  88. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
  89. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/utils.js +28 -0
  90. package/lib/cjs/__/@actions/http-client/__/undici/lib/llhttp/utils.js.map +1 -0
  91. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-agent.js +183 -0
  92. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-agent.js.map +1 -0
  93. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-client.js +83 -0
  94. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-client.js.map +1 -0
  95. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-errors.js +42 -0
  96. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-errors.js.map +1 -0
  97. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js +224 -0
  98. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js.map +1 -0
  99. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-pool.js +83 -0
  100. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-pool.js.map +1 -0
  101. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js +35 -0
  102. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js.map +1 -0
  103. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-utils.js +390 -0
  104. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/mock-utils.js.map +1 -0
  105. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js +63 -0
  106. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
  107. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pluralizer.js +41 -0
  108. package/lib/cjs/__/@actions/http-client/__/undici/lib/mock/pluralizer.js.map +1 -0
  109. package/lib/cjs/__/@actions/http-client/__/undici/lib/util/timers.js +435 -0
  110. package/lib/cjs/__/@actions/http-client/__/undici/lib/util/timers.js.map +1 -0
  111. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cache.js +886 -0
  112. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cache.js.map +1 -0
  113. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js +169 -0
  114. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js.map +1 -0
  115. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/symbols.js +19 -0
  116. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/symbols.js.map +1 -0
  117. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/util.js +65 -0
  118. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cache/util.js.map +1 -0
  119. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/constants.js +24 -0
  120. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/constants.js.map +1 -0
  121. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/index.js +201 -0
  122. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/index.js.map +1 -0
  123. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/parse.js +338 -0
  124. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/parse.js.map +1 -0
  125. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/util.js +294 -0
  126. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/cookies/util.js.map +1 -0
  127. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js +417 -0
  128. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js.map +1 -0
  129. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js +508 -0
  130. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js.map +1 -0
  131. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/util.js +49 -0
  132. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/eventsource/util.js.map +1 -0
  133. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/body.js +560 -0
  134. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/body.js.map +1 -0
  135. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/constants.js +136 -0
  136. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/constants.js.map +1 -0
  137. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js +762 -0
  138. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js.map +1 -0
  139. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js +60 -0
  140. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js.map +1 -0
  141. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/file.js +146 -0
  142. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/file.js.map +1 -0
  143. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js +499 -0
  144. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js.map +1 -0
  145. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js +275 -0
  146. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js.map +1 -0
  147. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/global.js +52 -0
  148. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/global.js.map +1 -0
  149. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/headers.js +709 -0
  150. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/headers.js.map +1 -0
  151. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/index.js +2235 -0
  152. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/index.js.map +1 -0
  153. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/request.js +1069 -0
  154. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/request.js.map +1 -0
  155. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/response.js +640 -0
  156. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/response.js.map +1 -0
  157. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js +21 -0
  158. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js.map +1 -0
  159. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/util.js +1662 -0
  160. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/util.js.map +1 -0
  161. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js +716 -0
  162. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js.map +1 -0
  163. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js +302 -0
  164. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js.map +1 -0
  165. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js +361 -0
  166. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js.map +1 -0
  167. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js +92 -0
  168. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js.map +1 -0
  169. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js +22 -0
  170. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js.map +1 -0
  171. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/util.js +417 -0
  172. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/fileapi/util.js.map +1 -0
  173. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/connection.js +391 -0
  174. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/connection.js.map +1 -0
  175. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/constants.js +78 -0
  176. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/constants.js.map +1 -0
  177. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/events.js +350 -0
  178. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/events.js.map +1 -0
  179. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/frame.js +110 -0
  180. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/frame.js.map +1 -0
  181. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js +89 -0
  182. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js.map +1 -0
  183. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js +451 -0
  184. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js.map +1 -0
  185. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/sender.js +120 -0
  186. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/sender.js.map +1 -0
  187. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js +24 -0
  188. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js.map +1 -0
  189. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/util.js +336 -0
  190. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/util.js.map +1 -0
  191. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js +618 -0
  192. package/lib/cjs/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js.map +1 -0
  193. package/lib/cjs/__/@actions/http-client/lib/index.js +2 -2
  194. package/lib/cjs/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
  195. package/lib/cjs/__/@octokit/core/dist-src/index.js.map +1 -0
  196. package/lib/cjs/__/@octokit/core/dist-src/version.js.map +1 -0
  197. package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/endpoint/dist-bundle/index.js +1 -1
  198. package/lib/cjs/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
  199. package/lib/cjs/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
  200. package/lib/cjs/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
  201. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
  202. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
  203. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
  204. package/lib/cjs/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
  205. package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/request/dist-bundle/index.js +5 -4
  206. package/lib/cjs/__/@octokit/request/dist-bundle/index.js.map +1 -0
  207. package/lib/cjs/__/@octokit/request-error/dist-src/index.js.map +1 -0
  208. package/lib/cjs/__/before-after-hook/index.js.map +1 -0
  209. package/lib/cjs/__/before-after-hook/lib/add.js.map +1 -0
  210. package/lib/cjs/__/before-after-hook/lib/register.js.map +1 -0
  211. package/lib/cjs/__/before-after-hook/lib/remove.js.map +1 -0
  212. package/lib/cjs/__/cross-spawn/index.js +1 -1
  213. package/lib/cjs/__/env-ci/lib/git.js +1 -1
  214. package/lib/cjs/__/{env-ci/__/execa → execa}/index.js +3 -3
  215. package/lib/cjs/__/execa/index.js.map +1 -0
  216. package/lib/cjs/__/execa/lib/command.js.map +1 -0
  217. package/lib/cjs/__/execa/lib/error.js.map +1 -0
  218. package/lib/cjs/__/execa/lib/promise.js.map +1 -0
  219. package/lib/cjs/__/execa/lib/stdio.js.map +1 -0
  220. package/lib/cjs/__/{env-ci/__/execa → execa}/lib/stream.js +1 -1
  221. package/lib/cjs/__/execa/lib/stream.js.map +1 -0
  222. package/lib/cjs/__/execa/lib/verbose.js.map +1 -0
  223. package/lib/cjs/__/get-stream/source/array-buffer.js.map +1 -0
  224. package/lib/cjs/__/human-signals/build/src/core.js.map +1 -0
  225. package/lib/cjs/__/human-signals/build/src/main.js.map +1 -0
  226. package/lib/cjs/__/human-signals/build/src/realtime.js.map +1 -0
  227. package/lib/cjs/__/human-signals/build/src/signals.js.map +1 -0
  228. package/lib/cjs/__/is-stream/index.js.map +1 -0
  229. package/lib/cjs/__/json-with-bigint/json-with-bigint.js +151 -0
  230. package/lib/cjs/__/json-with-bigint/json-with-bigint.js.map +1 -0
  231. package/lib/cjs/__/npm-run-path/__/path-key/index.js.map +1 -0
  232. package/lib/cjs/__/{env-ci/__/npm-run-path → npm-run-path}/index.js +1 -1
  233. package/lib/cjs/__/npm-run-path/index.js.map +1 -0
  234. package/lib/cjs/__/path-key/index.js +1 -1
  235. package/lib/cjs/__/signal-exit/dist/mjs/index.js.map +1 -0
  236. package/lib/cjs/__/signal-exit/dist/mjs/signals.js.map +1 -0
  237. package/lib/cjs/__/strip-final-newline/index.js.map +1 -0
  238. package/lib/cjs/__/undici/index.js +1 -1
  239. package/lib/cjs/__/undici/lib/api/api-connect.js +3 -3
  240. package/lib/cjs/__/undici/lib/api/api-pipeline.js +3 -3
  241. package/lib/cjs/__/undici/lib/api/api-request.js +3 -3
  242. package/lib/cjs/__/undici/lib/api/api-stream.js +3 -3
  243. package/lib/cjs/__/undici/lib/api/api-upgrade.js +3 -3
  244. package/lib/cjs/__/undici/lib/core/util.js +14 -14
  245. package/lib/cjs/__/undici/lib/fetch/body.js +8 -8
  246. package/lib/cjs/__/undici/lib/fetch/constants.js +3 -3
  247. package/lib/cjs/__/undici/lib/fetch/dataURL.js +5 -5
  248. package/lib/cjs/__/undici/lib/fetch/file.js +3 -3
  249. package/lib/cjs/__/undici/lib/fetch/formdata.js +3 -3
  250. package/lib/cjs/__/undici/lib/fetch/index.js +3 -3
  251. package/lib/cjs/__/undici/lib/fetch/index.js.map +1 -1
  252. package/lib/cjs/__/undici/lib/fetch/util.js +6 -6
  253. package/lib/cjs/__/undici/lib/fileapi/util.js +6 -6
  254. package/lib/cjs/__/undici/lib/websocket/events.js +3 -3
  255. package/lib/cjs/__/universal-user-agent/index.js.map +1 -0
  256. package/lib/cjs/_virtual/api-request2.js +6 -0
  257. package/lib/cjs/_virtual/api-request2.js.map +1 -0
  258. package/lib/cjs/_virtual/constants2.js +6 -0
  259. package/lib/cjs/_virtual/constants2.js.map +1 -0
  260. package/lib/cjs/_virtual/index10.js +2 -2
  261. package/lib/cjs/_virtual/index11.js +2 -2
  262. package/lib/cjs/_virtual/index14.js +2 -2
  263. package/lib/cjs/_virtual/index15.js +6 -0
  264. package/lib/cjs/_virtual/index15.js.map +1 -0
  265. package/lib/cjs/_virtual/index16.js +6 -0
  266. package/lib/cjs/_virtual/index16.js.map +1 -0
  267. package/lib/cjs/_virtual/index2.js +1 -1
  268. package/lib/cjs/_virtual/index3.js +1 -1
  269. package/lib/cjs/_virtual/index4.js +1 -1
  270. package/lib/cjs/_virtual/index8.js +2 -2
  271. package/lib/cjs/_virtual/mock-interceptor2.js +6 -0
  272. package/lib/cjs/_virtual/mock-interceptor2.js.map +1 -0
  273. package/lib/cjs/_virtual/utils4.js +6 -0
  274. package/lib/cjs/_virtual/utils4.js.map +1 -0
  275. package/lib/cjs/env/load.js +1 -1
  276. package/lib/cjs/env/load.js.map +1 -1
  277. package/lib/esm/__/@actions/http-client/__/undici/index.js +220 -0
  278. package/lib/esm/__/@actions/http-client/__/undici/index.js.map +1 -0
  279. package/lib/esm/__/@actions/http-client/__/undici/lib/api/abort-signal.js +71 -0
  280. package/lib/esm/__/@actions/http-client/__/undici/lib/api/abort-signal.js.map +1 -0
  281. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-connect.js +124 -0
  282. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-connect.js.map +1 -0
  283. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-pipeline.js +268 -0
  284. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-pipeline.js.map +1 -0
  285. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-request.js +231 -0
  286. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-request.js.map +1 -0
  287. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-stream.js +238 -0
  288. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-stream.js.map +1 -0
  289. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-upgrade.js +124 -0
  290. package/lib/esm/__/@actions/http-client/__/undici/lib/api/api-upgrade.js.map +1 -0
  291. package/lib/esm/__/@actions/http-client/__/undici/lib/api/index.js +23 -0
  292. package/lib/esm/__/@actions/http-client/__/undici/lib/api/index.js.map +1 -0
  293. package/lib/esm/__/@actions/http-client/__/undici/lib/api/readable.js +398 -0
  294. package/lib/esm/__/@actions/http-client/__/undici/lib/api/readable.js.map +1 -0
  295. package/lib/esm/__/@actions/http-client/__/undici/lib/api/util.js +108 -0
  296. package/lib/esm/__/@actions/http-client/__/undici/lib/api/util.js.map +1 -0
  297. package/lib/esm/__/@actions/http-client/__/undici/lib/core/connect.js +258 -0
  298. package/lib/esm/__/@actions/http-client/__/undici/lib/core/connect.js.map +1 -0
  299. package/lib/esm/__/@actions/http-client/__/undici/lib/core/constants.js +128 -0
  300. package/lib/esm/__/@actions/http-client/__/undici/lib/core/constants.js.map +1 -0
  301. package/lib/esm/__/@actions/http-client/__/undici/lib/core/diagnostics.js +215 -0
  302. package/lib/esm/__/@actions/http-client/__/undici/lib/core/diagnostics.js.map +1 -0
  303. package/lib/esm/__/@actions/http-client/__/undici/lib/core/errors.js +416 -0
  304. package/lib/esm/__/@actions/http-client/__/undici/lib/core/errors.js.map +1 -0
  305. package/lib/esm/__/@actions/http-client/__/undici/lib/core/request.js +411 -0
  306. package/lib/esm/__/@actions/http-client/__/undici/lib/core/request.js.map +1 -0
  307. package/lib/esm/__/@actions/http-client/__/undici/lib/core/symbols.js +78 -0
  308. package/lib/esm/__/@actions/http-client/__/undici/lib/core/symbols.js.map +1 -0
  309. package/lib/esm/__/@actions/http-client/__/undici/lib/core/tree.js +164 -0
  310. package/lib/esm/__/@actions/http-client/__/undici/lib/core/tree.js.map +1 -0
  311. package/lib/esm/__/@actions/http-client/__/undici/lib/core/util.js +742 -0
  312. package/lib/esm/__/@actions/http-client/__/undici/lib/core/util.js.map +1 -0
  313. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/agent.js +147 -0
  314. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/agent.js.map +1 -0
  315. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js +225 -0
  316. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/balanced-pool.js.map +1 -0
  317. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js +1391 -0
  318. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h1.js.map +1 -0
  319. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js +761 -0
  320. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client-h2.js.map +1 -0
  321. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client.js +642 -0
  322. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/client.js.map +1 -0
  323. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js +204 -0
  324. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher-base.js.map +1 -0
  325. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js +77 -0
  326. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/dispatcher.js.map +1 -0
  327. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js +175 -0
  328. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/env-http-proxy-agent.js.map +1 -0
  329. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js +127 -0
  330. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/fixed-queue.js.map +1 -0
  331. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js +209 -0
  332. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-base.js.map +1 -0
  333. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js +47 -0
  334. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool-stats.js.map +1 -0
  335. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool.js +124 -0
  336. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/pool.js.map +1 -0
  337. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js +293 -0
  338. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/proxy-agent.js.map +1 -0
  339. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js +48 -0
  340. package/lib/esm/__/@actions/http-client/__/undici/lib/dispatcher/retry-agent.js.map +1 -0
  341. package/lib/esm/__/@actions/http-client/__/undici/lib/global.js +45 -0
  342. package/lib/esm/__/@actions/http-client/__/undici/lib/global.js.map +1 -0
  343. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js +54 -0
  344. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/decorator-handler.js.map +1 -0
  345. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js +230 -0
  346. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/redirect-handler.js.map +1 -0
  347. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/retry-handler.js +389 -0
  348. package/lib/esm/__/@actions/http-client/__/undici/lib/handler/retry-handler.js.map +1 -0
  349. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dns.js +390 -0
  350. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dns.js.map +1 -0
  351. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dump.js +137 -0
  352. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/dump.js.map +1 -0
  353. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js +33 -0
  354. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect-interceptor.js.map +1 -0
  355. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect.js +36 -0
  356. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/redirect.js.map +1 -0
  357. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/retry.js +31 -0
  358. package/lib/esm/__/@actions/http-client/__/undici/lib/interceptor/retry.js.map +1 -0
  359. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/constants.js +286 -0
  360. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/constants.js.map +1 -0
  361. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js +17 -0
  362. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp-wasm.js.map +1 -0
  363. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js +17 -0
  364. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/llhttp_simd-wasm.js.map +1 -0
  365. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/utils.js +26 -0
  366. package/lib/esm/__/@actions/http-client/__/undici/lib/llhttp/utils.js.map +1 -0
  367. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-agent.js +181 -0
  368. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-agent.js.map +1 -0
  369. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-client.js +77 -0
  370. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-client.js.map +1 -0
  371. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-errors.js +40 -0
  372. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-errors.js.map +1 -0
  373. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js +222 -0
  374. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-interceptor.js.map +1 -0
  375. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-pool.js +77 -0
  376. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-pool.js.map +1 -0
  377. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js +33 -0
  378. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-symbols.js.map +1 -0
  379. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-utils.js +383 -0
  380. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/mock-utils.js.map +1 -0
  381. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js +56 -0
  382. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pending-interceptors-formatter.js.map +1 -0
  383. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pluralizer.js +39 -0
  384. package/lib/esm/__/@actions/http-client/__/undici/lib/mock/pluralizer.js.map +1 -0
  385. package/lib/esm/__/@actions/http-client/__/undici/lib/util/timers.js +433 -0
  386. package/lib/esm/__/@actions/http-client/__/undici/lib/util/timers.js.map +1 -0
  387. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cache.js +880 -0
  388. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cache.js.map +1 -0
  389. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js +167 -0
  390. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/cachestorage.js.map +1 -0
  391. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/symbols.js +17 -0
  392. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/symbols.js.map +1 -0
  393. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/util.js +59 -0
  394. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cache/util.js.map +1 -0
  395. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/constants.js +22 -0
  396. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/constants.js.map +1 -0
  397. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/index.js +199 -0
  398. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/index.js.map +1 -0
  399. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/parse.js +332 -0
  400. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/parse.js.map +1 -0
  401. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/util.js +292 -0
  402. package/lib/esm/__/@actions/http-client/__/undici/lib/web/cookies/util.js.map +1 -0
  403. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js +411 -0
  404. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource-stream.js.map +1 -0
  405. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js +502 -0
  406. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/eventsource.js.map +1 -0
  407. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/util.js +47 -0
  408. package/lib/esm/__/@actions/http-client/__/undici/lib/web/eventsource/util.js.map +1 -0
  409. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/body.js +551 -0
  410. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/body.js.map +1 -0
  411. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/constants.js +134 -0
  412. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/constants.js.map +1 -0
  413. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js +756 -0
  414. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/data-url.js.map +1 -0
  415. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js +58 -0
  416. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/dispatcher-weakref.js.map +1 -0
  417. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/file.js +140 -0
  418. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/file.js.map +1 -0
  419. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js +492 -0
  420. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata-parser.js.map +1 -0
  421. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js +268 -0
  422. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/formdata.js.map +1 -0
  423. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/global.js +50 -0
  424. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/global.js.map +1 -0
  425. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/headers.js +702 -0
  426. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/headers.js.map +1 -0
  427. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/index.js +2224 -0
  428. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/index.js.map +1 -0
  429. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/request.js +1061 -0
  430. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/request.js.map +1 -0
  431. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/response.js +633 -0
  432. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/response.js.map +1 -0
  433. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js +19 -0
  434. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/symbols.js.map +1 -0
  435. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/util.js +1652 -0
  436. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/util.js.map +1 -0
  437. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js +709 -0
  438. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fetch/webidl.js.map +1 -0
  439. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js +300 -0
  440. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/encoding.js.map +1 -0
  441. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js +359 -0
  442. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/filereader.js.map +1 -0
  443. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js +90 -0
  444. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/progressevent.js.map +1 -0
  445. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js +20 -0
  446. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/symbols.js.map +1 -0
  447. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/util.js +409 -0
  448. package/lib/esm/__/@actions/http-client/__/undici/lib/web/fileapi/util.js.map +1 -0
  449. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/connection.js +389 -0
  450. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/connection.js.map +1 -0
  451. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/constants.js +76 -0
  452. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/constants.js.map +1 -0
  453. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/events.js +344 -0
  454. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/events.js.map +1 -0
  455. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/frame.js +108 -0
  456. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/frame.js.map +1 -0
  457. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js +83 -0
  458. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/permessage-deflate.js.map +1 -0
  459. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js +444 -0
  460. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/receiver.js.map +1 -0
  461. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/sender.js +118 -0
  462. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/sender.js.map +1 -0
  463. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js +22 -0
  464. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/symbols.js.map +1 -0
  465. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/util.js +330 -0
  466. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/util.js.map +1 -0
  467. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js +612 -0
  468. package/lib/esm/__/@actions/http-client/__/undici/lib/web/websocket/websocket.js.map +1 -0
  469. package/lib/esm/__/@actions/http-client/lib/index.js +2 -2
  470. package/lib/esm/__/@octokit/auth-token/dist-bundle/index.js.map +1 -0
  471. package/lib/esm/__/@octokit/core/dist-src/index.js.map +1 -0
  472. package/lib/esm/__/@octokit/core/dist-src/version.js.map +1 -0
  473. package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/endpoint/dist-bundle/index.js +1 -1
  474. package/lib/esm/__/@octokit/endpoint/dist-bundle/index.js.map +1 -0
  475. package/lib/esm/__/@octokit/graphql/dist-bundle/index.js.map +1 -0
  476. package/lib/esm/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +1 -0
  477. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +1 -0
  478. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +1 -0
  479. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +1 -0
  480. package/lib/esm/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +1 -0
  481. package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/request/dist-bundle/index.js +5 -4
  482. package/lib/esm/__/@octokit/request/dist-bundle/index.js.map +1 -0
  483. package/lib/esm/__/@octokit/request-error/dist-src/index.js.map +1 -0
  484. package/lib/esm/__/before-after-hook/index.js.map +1 -0
  485. package/lib/esm/__/before-after-hook/lib/add.js.map +1 -0
  486. package/lib/esm/__/before-after-hook/lib/register.js.map +1 -0
  487. package/lib/esm/__/before-after-hook/lib/remove.js.map +1 -0
  488. package/lib/esm/__/cross-spawn/index.js +1 -1
  489. package/lib/esm/__/env-ci/lib/git.js +1 -1
  490. package/lib/esm/__/{env-ci/__/execa → execa}/index.js +1 -1
  491. package/lib/esm/__/execa/index.js.map +1 -0
  492. package/lib/esm/__/execa/lib/command.js.map +1 -0
  493. package/lib/esm/__/execa/lib/error.js.map +1 -0
  494. package/lib/esm/__/execa/lib/promise.js.map +1 -0
  495. package/lib/esm/__/execa/lib/stdio.js.map +1 -0
  496. package/lib/esm/__/{env-ci/__/execa → execa}/lib/stream.js +1 -1
  497. package/lib/esm/__/execa/lib/stream.js.map +1 -0
  498. package/lib/esm/__/execa/lib/verbose.js.map +1 -0
  499. package/lib/esm/__/get-stream/source/array-buffer.js.map +1 -0
  500. package/lib/esm/__/human-signals/build/src/core.js.map +1 -0
  501. package/lib/esm/__/human-signals/build/src/main.js.map +1 -0
  502. package/lib/esm/__/human-signals/build/src/realtime.js.map +1 -0
  503. package/lib/esm/__/human-signals/build/src/signals.js.map +1 -0
  504. package/lib/esm/__/is-stream/index.js.map +1 -0
  505. package/lib/esm/__/java-properties/dist-node/index.js +1 -1
  506. package/lib/esm/__/json-with-bigint/json-with-bigint.js +148 -0
  507. package/lib/esm/__/json-with-bigint/json-with-bigint.js.map +1 -0
  508. package/lib/esm/__/npm-run-path/__/path-key/index.js.map +1 -0
  509. package/lib/esm/__/{env-ci/__/npm-run-path → npm-run-path}/index.js +1 -1
  510. package/lib/esm/__/npm-run-path/index.js.map +1 -0
  511. package/lib/esm/__/path-key/index.js +1 -1
  512. package/lib/esm/__/signal-exit/dist/mjs/index.js.map +1 -0
  513. package/lib/esm/__/signal-exit/dist/mjs/signals.js.map +1 -0
  514. package/lib/esm/__/strip-final-newline/index.js.map +1 -0
  515. package/lib/esm/__/undici/index.js +1 -1
  516. package/lib/esm/__/undici/lib/api/api-connect.js +2 -2
  517. package/lib/esm/__/undici/lib/api/api-pipeline.js +2 -2
  518. package/lib/esm/__/undici/lib/api/api-request.js +2 -2
  519. package/lib/esm/__/undici/lib/api/api-request.js.map +1 -1
  520. package/lib/esm/__/undici/lib/api/api-stream.js +2 -2
  521. package/lib/esm/__/undici/lib/api/api-stream.js.map +1 -1
  522. package/lib/esm/__/undici/lib/api/api-upgrade.js +2 -2
  523. package/lib/esm/__/undici/lib/api/api-upgrade.js.map +1 -1
  524. package/lib/esm/__/undici/lib/core/util.js +10 -10
  525. package/lib/esm/__/undici/lib/core/util.js.map +1 -1
  526. package/lib/esm/__/undici/lib/fetch/body.js +6 -6
  527. package/lib/esm/__/undici/lib/fetch/body.js.map +1 -1
  528. package/lib/esm/__/undici/lib/fetch/constants.js +2 -2
  529. package/lib/esm/__/undici/lib/fetch/constants.js.map +1 -1
  530. package/lib/esm/__/undici/lib/fetch/dataURL.js +4 -4
  531. package/lib/esm/__/undici/lib/fetch/dataURL.js.map +1 -1
  532. package/lib/esm/__/undici/lib/fetch/file.js +2 -2
  533. package/lib/esm/__/undici/lib/fetch/file.js.map +1 -1
  534. package/lib/esm/__/undici/lib/fetch/formdata.js +2 -2
  535. package/lib/esm/__/undici/lib/fetch/index.js +2 -2
  536. package/lib/esm/__/undici/lib/fetch/index.js.map +1 -1
  537. package/lib/esm/__/undici/lib/fetch/util.js +4 -4
  538. package/lib/esm/__/undici/lib/fetch/util.js.map +1 -1
  539. package/lib/esm/__/undici/lib/fileapi/util.js +4 -4
  540. package/lib/esm/__/undici/lib/fileapi/util.js.map +1 -1
  541. package/lib/esm/__/undici/lib/websocket/events.js +2 -2
  542. package/lib/esm/__/universal-user-agent/index.js.map +1 -0
  543. package/lib/esm/_virtual/api-request2.js +4 -0
  544. package/lib/esm/_virtual/api-request2.js.map +1 -0
  545. package/lib/esm/_virtual/constants2.js +4 -0
  546. package/lib/esm/_virtual/constants2.js.map +1 -0
  547. package/lib/esm/_virtual/index10.js +4 -2
  548. package/lib/esm/_virtual/index10.js.map +1 -1
  549. package/lib/esm/_virtual/index11.js +2 -2
  550. package/lib/esm/_virtual/index14.js +2 -2
  551. package/lib/esm/_virtual/index15.js +4 -0
  552. package/lib/esm/_virtual/index15.js.map +1 -0
  553. package/lib/esm/_virtual/index16.js +4 -0
  554. package/lib/esm/_virtual/index16.js.map +1 -0
  555. package/lib/esm/_virtual/index2.js +1 -1
  556. package/lib/esm/_virtual/index3.js +1 -1
  557. package/lib/esm/_virtual/index4.js +1 -1
  558. package/lib/esm/_virtual/index5.js +2 -6
  559. package/lib/esm/_virtual/index5.js.map +1 -1
  560. package/lib/esm/_virtual/index6.js +6 -2
  561. package/lib/esm/_virtual/index6.js.map +1 -1
  562. package/lib/esm/_virtual/index8.js +2 -4
  563. package/lib/esm/_virtual/index8.js.map +1 -1
  564. package/lib/esm/_virtual/index9.js +2 -2
  565. package/lib/esm/_virtual/mock-interceptor2.js +4 -0
  566. package/lib/esm/_virtual/mock-interceptor2.js.map +1 -0
  567. package/lib/esm/_virtual/utils4.js +4 -0
  568. package/lib/esm/_virtual/utils4.js.map +1 -0
  569. package/lib/esm/env/load.js +1 -1
  570. package/lib/esm/env/load.js.map +1 -1
  571. package/lib/types/env/load.d.ts +5 -5
  572. package/lib/types/utils/log-response.d.ts +5 -5
  573. package/lib/types/utils/logger.d.ts +5 -5
  574. package/package.json +9 -9
  575. package/lib/cjs/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +0 -1
  576. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/index.js.map +0 -1
  577. package/lib/cjs/__/@actions/github/__/@octokit/core/dist-src/version.js.map +0 -1
  578. package/lib/cjs/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +0 -1
  579. package/lib/cjs/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +0 -1
  580. package/lib/cjs/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +0 -1
  581. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +0 -1
  582. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +0 -1
  583. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +0 -1
  584. package/lib/cjs/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +0 -1
  585. package/lib/cjs/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +0 -1
  586. package/lib/cjs/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +0 -1
  587. package/lib/cjs/__/@actions/github/__/before-after-hook/index.js.map +0 -1
  588. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/add.js.map +0 -1
  589. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/register.js.map +0 -1
  590. package/lib/cjs/__/@actions/github/__/before-after-hook/lib/remove.js.map +0 -1
  591. package/lib/cjs/__/@actions/github/__/universal-user-agent/index.js.map +0 -1
  592. package/lib/cjs/__/env-ci/__/execa/index.js.map +0 -1
  593. package/lib/cjs/__/env-ci/__/execa/lib/command.js.map +0 -1
  594. package/lib/cjs/__/env-ci/__/execa/lib/error.js.map +0 -1
  595. package/lib/cjs/__/env-ci/__/execa/lib/promise.js.map +0 -1
  596. package/lib/cjs/__/env-ci/__/execa/lib/stdio.js.map +0 -1
  597. package/lib/cjs/__/env-ci/__/execa/lib/stream.js.map +0 -1
  598. package/lib/cjs/__/env-ci/__/execa/lib/verbose.js.map +0 -1
  599. package/lib/cjs/__/env-ci/__/get-stream/source/array-buffer.js.map +0 -1
  600. package/lib/cjs/__/env-ci/__/human-signals/build/src/core.js.map +0 -1
  601. package/lib/cjs/__/env-ci/__/human-signals/build/src/main.js.map +0 -1
  602. package/lib/cjs/__/env-ci/__/human-signals/build/src/realtime.js.map +0 -1
  603. package/lib/cjs/__/env-ci/__/human-signals/build/src/signals.js.map +0 -1
  604. package/lib/cjs/__/env-ci/__/is-stream/index.js.map +0 -1
  605. package/lib/cjs/__/env-ci/__/npm-run-path/index.js.map +0 -1
  606. package/lib/cjs/__/env-ci/__/path-key/index.js.map +0 -1
  607. package/lib/cjs/__/env-ci/__/signal-exit/dist/mjs/index.js.map +0 -1
  608. package/lib/cjs/__/env-ci/__/signal-exit/dist/mjs/signals.js.map +0 -1
  609. package/lib/cjs/__/env-ci/__/strip-final-newline/index.js.map +0 -1
  610. package/lib/esm/__/@actions/github/__/@octokit/auth-token/dist-bundle/index.js.map +0 -1
  611. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/index.js.map +0 -1
  612. package/lib/esm/__/@actions/github/__/@octokit/core/dist-src/version.js.map +0 -1
  613. package/lib/esm/__/@actions/github/__/@octokit/endpoint/dist-bundle/index.js.map +0 -1
  614. package/lib/esm/__/@actions/github/__/@octokit/graphql/dist-bundle/index.js.map +0 -1
  615. package/lib/esm/__/@actions/github/__/@octokit/plugin-paginate-rest/dist-bundle/index.js.map +0 -1
  616. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js.map +0 -1
  617. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js.map +0 -1
  618. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/index.js.map +0 -1
  619. package/lib/esm/__/@actions/github/__/@octokit/plugin-rest-endpoint-methods/dist-src/version.js.map +0 -1
  620. package/lib/esm/__/@actions/github/__/@octokit/request/dist-bundle/index.js.map +0 -1
  621. package/lib/esm/__/@actions/github/__/@octokit/request-error/dist-src/index.js.map +0 -1
  622. package/lib/esm/__/@actions/github/__/before-after-hook/index.js.map +0 -1
  623. package/lib/esm/__/@actions/github/__/before-after-hook/lib/add.js.map +0 -1
  624. package/lib/esm/__/@actions/github/__/before-after-hook/lib/register.js.map +0 -1
  625. package/lib/esm/__/@actions/github/__/before-after-hook/lib/remove.js.map +0 -1
  626. package/lib/esm/__/@actions/github/__/universal-user-agent/index.js.map +0 -1
  627. package/lib/esm/__/env-ci/__/execa/index.js.map +0 -1
  628. package/lib/esm/__/env-ci/__/execa/lib/command.js.map +0 -1
  629. package/lib/esm/__/env-ci/__/execa/lib/error.js.map +0 -1
  630. package/lib/esm/__/env-ci/__/execa/lib/promise.js.map +0 -1
  631. package/lib/esm/__/env-ci/__/execa/lib/stdio.js.map +0 -1
  632. package/lib/esm/__/env-ci/__/execa/lib/stream.js.map +0 -1
  633. package/lib/esm/__/env-ci/__/execa/lib/verbose.js.map +0 -1
  634. package/lib/esm/__/env-ci/__/get-stream/source/array-buffer.js.map +0 -1
  635. package/lib/esm/__/env-ci/__/human-signals/build/src/core.js.map +0 -1
  636. package/lib/esm/__/env-ci/__/human-signals/build/src/main.js.map +0 -1
  637. package/lib/esm/__/env-ci/__/human-signals/build/src/realtime.js.map +0 -1
  638. package/lib/esm/__/env-ci/__/human-signals/build/src/signals.js.map +0 -1
  639. package/lib/esm/__/env-ci/__/is-stream/index.js.map +0 -1
  640. package/lib/esm/__/env-ci/__/npm-run-path/index.js.map +0 -1
  641. package/lib/esm/__/env-ci/__/path-key/index.js.map +0 -1
  642. package/lib/esm/__/env-ci/__/signal-exit/dist/mjs/index.js.map +0 -1
  643. package/lib/esm/__/env-ci/__/signal-exit/dist/mjs/signals.js.map +0 -1
  644. package/lib/esm/__/env-ci/__/strip-final-newline/index.js.map +0 -1
  645. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/auth-token/dist-bundle/index.js +0 -0
  646. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/index.js +0 -0
  647. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/version.js +0 -0
  648. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/graphql/dist-bundle/index.js +0 -0
  649. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-paginate-rest/dist-bundle/index.js +0 -0
  650. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +0 -0
  651. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +0 -0
  652. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/index.js +0 -0
  653. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/version.js +0 -0
  654. /package/lib/cjs/__/{@actions/github/__/@octokit → @octokit}/request-error/dist-src/index.js +0 -0
  655. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/index.js +0 -0
  656. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/add.js +0 -0
  657. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/register.js +0 -0
  658. /package/lib/cjs/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/remove.js +0 -0
  659. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/command.js +0 -0
  660. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/error.js +0 -0
  661. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/promise.js +0 -0
  662. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/stdio.js +0 -0
  663. /package/lib/cjs/__/{env-ci/__/execa → execa}/lib/verbose.js +0 -0
  664. /package/lib/cjs/__/{env-ci/__/get-stream → get-stream}/source/array-buffer.js +0 -0
  665. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/core.js +0 -0
  666. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/main.js +0 -0
  667. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/realtime.js +0 -0
  668. /package/lib/cjs/__/{env-ci/__/human-signals → human-signals}/build/src/signals.js +0 -0
  669. /package/lib/cjs/__/{env-ci/__/is-stream → is-stream}/index.js +0 -0
  670. /package/lib/cjs/__/{env-ci → npm-run-path}/__/path-key/index.js +0 -0
  671. /package/lib/cjs/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/index.js +0 -0
  672. /package/lib/cjs/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/signals.js +0 -0
  673. /package/lib/cjs/__/{env-ci/__/strip-final-newline → strip-final-newline}/index.js +0 -0
  674. /package/lib/cjs/__/{@actions/github/__/universal-user-agent → universal-user-agent}/index.js +0 -0
  675. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/auth-token/dist-bundle/index.js +0 -0
  676. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/index.js +0 -0
  677. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/core/dist-src/version.js +0 -0
  678. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/graphql/dist-bundle/index.js +0 -0
  679. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-paginate-rest/dist-bundle/index.js +0 -0
  680. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +0 -0
  681. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +0 -0
  682. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/index.js +0 -0
  683. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/plugin-rest-endpoint-methods/dist-src/version.js +0 -0
  684. /package/lib/esm/__/{@actions/github/__/@octokit → @octokit}/request-error/dist-src/index.js +0 -0
  685. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/index.js +0 -0
  686. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/add.js +0 -0
  687. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/register.js +0 -0
  688. /package/lib/esm/__/{@actions/github/__/before-after-hook → before-after-hook}/lib/remove.js +0 -0
  689. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/command.js +0 -0
  690. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/error.js +0 -0
  691. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/promise.js +0 -0
  692. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/stdio.js +0 -0
  693. /package/lib/esm/__/{env-ci/__/execa → execa}/lib/verbose.js +0 -0
  694. /package/lib/esm/__/{env-ci/__/get-stream → get-stream}/source/array-buffer.js +0 -0
  695. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/core.js +0 -0
  696. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/main.js +0 -0
  697. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/realtime.js +0 -0
  698. /package/lib/esm/__/{env-ci/__/human-signals → human-signals}/build/src/signals.js +0 -0
  699. /package/lib/esm/__/{env-ci/__/is-stream → is-stream}/index.js +0 -0
  700. /package/lib/esm/__/{env-ci → npm-run-path}/__/path-key/index.js +0 -0
  701. /package/lib/esm/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/index.js +0 -0
  702. /package/lib/esm/__/{env-ci/__/signal-exit → signal-exit}/dist/mjs/signals.js +0 -0
  703. /package/lib/esm/__/{env-ci/__/strip-final-newline → strip-final-newline}/index.js +0 -0
  704. /package/lib/esm/__/{@actions/github/__/universal-user-agent → universal-user-agent}/index.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retry-handler.js","sources":["../../../../../../../../../../../node_modules/@actions/http-client/node_modules/undici/lib/handler/retry-handler.js"],"sourcesContent":["'use strict'\nconst assert = require('node:assert')\n\nconst { kRetryHandlerDefaultRetry } = require('../core/symbols')\nconst { RequestRetryError } = require('../core/errors')\nconst {\n isDisturbed,\n parseHeaders,\n parseRangeHeader,\n wrapRequestBody\n} = require('../core/util')\n\nfunction calculateRetryAfterHeader (retryAfter) {\n const current = Date.now()\n return new Date(retryAfter).getTime() - current\n}\n\nclass RetryHandler {\n constructor (opts, handlers) {\n const { retryOptions, ...dispatchOpts } = opts\n const {\n // Retry scoped\n retry: retryFn,\n maxRetries,\n maxTimeout,\n minTimeout,\n timeoutFactor,\n // Response scoped\n methods,\n errorCodes,\n retryAfter,\n statusCodes\n } = retryOptions ?? {}\n\n this.dispatch = handlers.dispatch\n this.handler = handlers.handler\n this.opts = { ...dispatchOpts, body: wrapRequestBody(opts.body) }\n this.abort = null\n this.aborted = false\n this.retryOpts = {\n retry: retryFn ?? RetryHandler[kRetryHandlerDefaultRetry],\n retryAfter: retryAfter ?? true,\n maxTimeout: maxTimeout ?? 30 * 1000, // 30s,\n minTimeout: minTimeout ?? 500, // .5s\n timeoutFactor: timeoutFactor ?? 2,\n maxRetries: maxRetries ?? 5,\n // What errors we should retry\n methods: methods ?? ['GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE'],\n // Indicates which errors to retry\n statusCodes: statusCodes ?? [500, 502, 503, 504, 429],\n // List of errors to retry\n errorCodes: errorCodes ?? [\n 'ECONNRESET',\n 'ECONNREFUSED',\n 'ENOTFOUND',\n 'ENETDOWN',\n 'ENETUNREACH',\n 'EHOSTDOWN',\n 'EHOSTUNREACH',\n 'EPIPE',\n 'UND_ERR_SOCKET'\n ]\n }\n\n this.retryCount = 0\n this.retryCountCheckpoint = 0\n this.start = 0\n this.end = null\n this.etag = null\n this.resume = null\n\n // Handle possible onConnect duplication\n this.handler.onConnect(reason => {\n this.aborted = true\n if (this.abort) {\n this.abort(reason)\n } else {\n this.reason = reason\n }\n })\n }\n\n onRequestSent () {\n if (this.handler.onRequestSent) {\n this.handler.onRequestSent()\n }\n }\n\n onUpgrade (statusCode, headers, socket) {\n if (this.handler.onUpgrade) {\n this.handler.onUpgrade(statusCode, headers, socket)\n }\n }\n\n onConnect (abort) {\n if (this.aborted) {\n abort(this.reason)\n } else {\n this.abort = abort\n }\n }\n\n onBodySent (chunk) {\n if (this.handler.onBodySent) return this.handler.onBodySent(chunk)\n }\n\n static [kRetryHandlerDefaultRetry] (err, { state, opts }, cb) {\n const { statusCode, code, headers } = err\n const { method, retryOptions } = opts\n const {\n maxRetries,\n minTimeout,\n maxTimeout,\n timeoutFactor,\n statusCodes,\n errorCodes,\n methods\n } = retryOptions\n const { counter } = state\n\n // Any code that is not a Undici's originated and allowed to retry\n if (code && code !== 'UND_ERR_REQ_RETRY' && !errorCodes.includes(code)) {\n cb(err)\n return\n }\n\n // If a set of method are provided and the current method is not in the list\n if (Array.isArray(methods) && !methods.includes(method)) {\n cb(err)\n return\n }\n\n // If a set of status code are provided and the current status code is not in the list\n if (\n statusCode != null &&\n Array.isArray(statusCodes) &&\n !statusCodes.includes(statusCode)\n ) {\n cb(err)\n return\n }\n\n // If we reached the max number of retries\n if (counter > maxRetries) {\n cb(err)\n return\n }\n\n let retryAfterHeader = headers?.['retry-after']\n if (retryAfterHeader) {\n retryAfterHeader = Number(retryAfterHeader)\n retryAfterHeader = Number.isNaN(retryAfterHeader)\n ? calculateRetryAfterHeader(retryAfterHeader)\n : retryAfterHeader * 1e3 // Retry-After is in seconds\n }\n\n const retryTimeout =\n retryAfterHeader > 0\n ? Math.min(retryAfterHeader, maxTimeout)\n : Math.min(minTimeout * timeoutFactor ** (counter - 1), maxTimeout)\n\n setTimeout(() => cb(null), retryTimeout)\n }\n\n onHeaders (statusCode, rawHeaders, resume, statusMessage) {\n const headers = parseHeaders(rawHeaders)\n\n this.retryCount += 1\n\n if (statusCode >= 300) {\n if (this.retryOpts.statusCodes.includes(statusCode) === false) {\n return this.handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n } else {\n this.abort(\n new RequestRetryError('Request failed', statusCode, {\n headers,\n data: {\n count: this.retryCount\n }\n })\n )\n return false\n }\n }\n\n // Checkpoint for resume from where we left it\n if (this.resume != null) {\n this.resume = null\n\n // Only Partial Content 206 supposed to provide Content-Range,\n // any other status code that partially consumed the payload\n // should not be retry because it would result in downstream\n // wrongly concatanete multiple responses.\n if (statusCode !== 206 && (this.start > 0 || statusCode !== 200)) {\n this.abort(\n new RequestRetryError('server does not support the range header and the payload was partially consumed', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n )\n return false\n }\n\n const contentRange = parseRangeHeader(headers['content-range'])\n // If no content range\n if (!contentRange) {\n this.abort(\n new RequestRetryError('Content-Range mismatch', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n )\n return false\n }\n\n // Let's start with a weak etag check\n if (this.etag != null && this.etag !== headers.etag) {\n this.abort(\n new RequestRetryError('ETag mismatch', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n )\n return false\n }\n\n const { start, size, end = size - 1 } = contentRange\n\n assert(this.start === start, 'content-range mismatch')\n assert(this.end == null || this.end === end, 'content-range mismatch')\n\n this.resume = resume\n return true\n }\n\n if (this.end == null) {\n if (statusCode === 206) {\n // First time we receive 206\n const range = parseRangeHeader(headers['content-range'])\n\n if (range == null) {\n return this.handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n }\n\n const { start, size, end = size - 1 } = range\n assert(\n start != null && Number.isFinite(start),\n 'content-range mismatch'\n )\n assert(end != null && Number.isFinite(end), 'invalid content-length')\n\n this.start = start\n this.end = end\n }\n\n // We make our best to checkpoint the body for further range headers\n if (this.end == null) {\n const contentLength = headers['content-length']\n this.end = contentLength != null ? Number(contentLength) - 1 : null\n }\n\n assert(Number.isFinite(this.start))\n assert(\n this.end == null || Number.isFinite(this.end),\n 'invalid content-length'\n )\n\n this.resume = resume\n this.etag = headers.etag != null ? headers.etag : null\n\n // Weak etags are not useful for comparison nor cache\n // for instance not safe to assume if the response is byte-per-byte\n // equal\n if (this.etag != null && this.etag.startsWith('W/')) {\n this.etag = null\n }\n\n return this.handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n }\n\n const err = new RequestRetryError('Request failed', statusCode, {\n headers,\n data: { count: this.retryCount }\n })\n\n this.abort(err)\n\n return false\n }\n\n onData (chunk) {\n this.start += chunk.length\n\n return this.handler.onData(chunk)\n }\n\n onComplete (rawTrailers) {\n this.retryCount = 0\n return this.handler.onComplete(rawTrailers)\n }\n\n onError (err) {\n if (this.aborted || isDisturbed(this.opts.body)) {\n return this.handler.onError(err)\n }\n\n // We reconcile in case of a mix between network errors\n // and server error response\n if (this.retryCount - this.retryCountCheckpoint > 0) {\n // We count the difference between the last checkpoint and the current retry count\n this.retryCount =\n this.retryCountCheckpoint +\n (this.retryCount - this.retryCountCheckpoint)\n } else {\n this.retryCount += 1\n }\n\n this.retryOpts.retry(\n err,\n {\n state: { counter: this.retryCount },\n opts: { retryOptions: this.retryOpts, ...this.opts }\n },\n onRetry.bind(this)\n )\n\n function onRetry (err) {\n if (err != null || this.aborted || isDisturbed(this.opts.body)) {\n return this.handler.onError(err)\n }\n\n if (this.start !== 0) {\n const headers = { range: `bytes=${this.start}-${this.end ?? ''}` }\n\n // Weak etag check - weak etags will make comparison algorithms never match\n if (this.etag != null) {\n headers['if-match'] = this.etag\n }\n\n this.opts = {\n ...this.opts,\n headers: {\n ...this.opts.headers,\n ...headers\n }\n }\n }\n\n try {\n this.retryCountCheckpoint = this.retryCount\n this.dispatch(this.opts, this)\n } catch (err) {\n this.handler.onError(err)\n }\n }\n }\n}\n\nmodule.exports = RetryHandler\n"],"names":["require$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;;;;;;AACA,CAAA,MAAM,MAAM,GAAGA;;CAEf,MAAM,EAAE,yBAAyB,EAAE,GAAGC,iBAAA;CACtC,MAAM,EAAE,iBAAiB,EAAE,GAAGC,gBAAA;CAC9B,MAAM;AACN,GAAE,WAAW;AACb,GA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AEA,OAAM,IAAI;AACV,SAAQ,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC;SACjC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI;OACrC,CAAO,CAAC,OAAO,GAAG,EAAE;AACpB,SAAQ,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG;AAChC,OAAA;AACA,KAAA;AACA,GAAA;AACA;;AAEA,CAAA,YAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,397 @@
1
+ 'use strict';
2
+
3
+ var require$$0 = require('node:net');
4
+ var require$$1 = require('node:dns');
5
+ var decoratorHandler = require('../handler/decorator-handler.js');
6
+ var errors = require('../core/errors.js');
7
+
8
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
+
10
+ var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
11
+ var require$$1__default = /*#__PURE__*/_interopDefault(require$$1);
12
+
13
+ var dns;
14
+ var hasRequiredDns;
15
+
16
+ function requireDns () {
17
+ if (hasRequiredDns) return dns;
18
+ hasRequiredDns = 1;
19
+ const { isIP } = require$$0__default.default;
20
+ const { lookup } = require$$1__default.default;
21
+ const DecoratorHandler = decoratorHandler.__require();
22
+ const { InvalidArgumentError, InformationalError } = errors.__require();
23
+ const maxInt = Math.pow(2, 31) - 1;
24
+
25
+ class DNSInstance {
26
+ #maxTTL = 0
27
+ #maxItems = 0
28
+ #records = new Map()
29
+ dualStack = true
30
+ affinity = null
31
+ lookup = null
32
+ pick = null
33
+
34
+ constructor (opts) {
35
+ this.#maxTTL = opts.maxTTL;
36
+ this.#maxItems = opts.maxItems;
37
+ this.dualStack = opts.dualStack;
38
+ this.affinity = opts.affinity;
39
+ this.lookup = opts.lookup ?? this.#defaultLookup;
40
+ this.pick = opts.pick ?? this.#defaultPick;
41
+ }
42
+
43
+ get full () {
44
+ return this.#records.size === this.#maxItems
45
+ }
46
+
47
+ runLookup (origin, opts, cb) {
48
+ const ips = this.#records.get(origin.hostname);
49
+
50
+ // If full, we just return the origin
51
+ if (ips == null && this.full) {
52
+ cb(null, origin.origin);
53
+ return
54
+ }
55
+
56
+ const newOpts = {
57
+ affinity: this.affinity,
58
+ dualStack: this.dualStack,
59
+ lookup: this.lookup,
60
+ pick: this.pick,
61
+ ...opts.dns,
62
+ maxTTL: this.#maxTTL,
63
+ maxItems: this.#maxItems
64
+ };
65
+
66
+ // If no IPs we lookup
67
+ if (ips == null) {
68
+ this.lookup(origin, newOpts, (err, addresses) => {
69
+ if (err || addresses == null || addresses.length === 0) {
70
+ cb(err ?? new InformationalError('No DNS entries found'));
71
+ return
72
+ }
73
+
74
+ this.setRecords(origin, addresses);
75
+ const records = this.#records.get(origin.hostname);
76
+
77
+ const ip = this.pick(
78
+ origin,
79
+ records,
80
+ newOpts.affinity
81
+ );
82
+
83
+ let port;
84
+ if (typeof ip.port === 'number') {
85
+ port = `:${ip.port}`;
86
+ } else if (origin.port !== '') {
87
+ port = `:${origin.port}`;
88
+ } else {
89
+ port = '';
90
+ }
91
+
92
+ cb(
93
+ null,
94
+ `${origin.protocol}//${
95
+ ip.family === 6 ? `[${ip.address}]` : ip.address
96
+ }${port}`
97
+ );
98
+ });
99
+ } else {
100
+ // If there's IPs we pick
101
+ const ip = this.pick(
102
+ origin,
103
+ ips,
104
+ newOpts.affinity
105
+ );
106
+
107
+ // If no IPs we lookup - deleting old records
108
+ if (ip == null) {
109
+ this.#records.delete(origin.hostname);
110
+ this.runLookup(origin, opts, cb);
111
+ return
112
+ }
113
+
114
+ let port;
115
+ if (typeof ip.port === 'number') {
116
+ port = `:${ip.port}`;
117
+ } else if (origin.port !== '') {
118
+ port = `:${origin.port}`;
119
+ } else {
120
+ port = '';
121
+ }
122
+
123
+ cb(
124
+ null,
125
+ `${origin.protocol}//${
126
+ ip.family === 6 ? `[${ip.address}]` : ip.address
127
+ }${port}`
128
+ );
129
+ }
130
+ }
131
+
132
+ #defaultLookup (origin, opts, cb) {
133
+ lookup(
134
+ origin.hostname,
135
+ {
136
+ all: true,
137
+ family: this.dualStack === false ? this.affinity : 0,
138
+ order: 'ipv4first'
139
+ },
140
+ (err, addresses) => {
141
+ if (err) {
142
+ return cb(err)
143
+ }
144
+
145
+ const results = new Map();
146
+
147
+ for (const addr of addresses) {
148
+ // On linux we found duplicates, we attempt to remove them with
149
+ // the latest record
150
+ results.set(`${addr.address}:${addr.family}`, addr);
151
+ }
152
+
153
+ cb(null, results.values());
154
+ }
155
+ );
156
+ }
157
+
158
+ #defaultPick (origin, hostnameRecords, affinity) {
159
+ let ip = null;
160
+ const { records, offset } = hostnameRecords;
161
+
162
+ let family;
163
+ if (this.dualStack) {
164
+ if (affinity == null) {
165
+ // Balance between ip families
166
+ if (offset == null || offset === maxInt) {
167
+ hostnameRecords.offset = 0;
168
+ affinity = 4;
169
+ } else {
170
+ hostnameRecords.offset++;
171
+ affinity = (hostnameRecords.offset & 1) === 1 ? 6 : 4;
172
+ }
173
+ }
174
+
175
+ if (records[affinity] != null && records[affinity].ips.length > 0) {
176
+ family = records[affinity];
177
+ } else {
178
+ family = records[affinity === 4 ? 6 : 4];
179
+ }
180
+ } else {
181
+ family = records[affinity];
182
+ }
183
+
184
+ // If no IPs we return null
185
+ if (family == null || family.ips.length === 0) {
186
+ return ip
187
+ }
188
+
189
+ if (family.offset == null || family.offset === maxInt) {
190
+ family.offset = 0;
191
+ } else {
192
+ family.offset++;
193
+ }
194
+
195
+ const position = family.offset % family.ips.length;
196
+ ip = family.ips[position] ?? null;
197
+
198
+ if (ip == null) {
199
+ return ip
200
+ }
201
+
202
+ if (Date.now() - ip.timestamp > ip.ttl) { // record TTL is already in ms
203
+ // We delete expired records
204
+ // It is possible that they have different TTL, so we manage them individually
205
+ family.ips.splice(position, 1);
206
+ return this.pick(origin, hostnameRecords, affinity)
207
+ }
208
+
209
+ return ip
210
+ }
211
+
212
+ setRecords (origin, addresses) {
213
+ const timestamp = Date.now();
214
+ const records = { records: { 4: null, 6: null } };
215
+ for (const record of addresses) {
216
+ record.timestamp = timestamp;
217
+ if (typeof record.ttl === 'number') {
218
+ // The record TTL is expected to be in ms
219
+ record.ttl = Math.min(record.ttl, this.#maxTTL);
220
+ } else {
221
+ record.ttl = this.#maxTTL;
222
+ }
223
+
224
+ const familyRecords = records.records[record.family] ?? { ips: [] };
225
+
226
+ familyRecords.ips.push(record);
227
+ records.records[record.family] = familyRecords;
228
+ }
229
+
230
+ this.#records.set(origin.hostname, records);
231
+ }
232
+
233
+ getHandler (meta, opts) {
234
+ return new DNSDispatchHandler(this, meta, opts)
235
+ }
236
+ }
237
+
238
+ class DNSDispatchHandler extends DecoratorHandler {
239
+ #state = null
240
+ #opts = null
241
+ #dispatch = null
242
+ #handler = null
243
+ #origin = null
244
+
245
+ constructor (state, { origin, handler, dispatch }, opts) {
246
+ super(handler);
247
+ this.#origin = origin;
248
+ this.#handler = handler;
249
+ this.#opts = { ...opts };
250
+ this.#state = state;
251
+ this.#dispatch = dispatch;
252
+ }
253
+
254
+ onError (err) {
255
+ switch (err.code) {
256
+ case 'ETIMEDOUT':
257
+ case 'ECONNREFUSED': {
258
+ if (this.#state.dualStack) {
259
+ // We delete the record and retry
260
+ this.#state.runLookup(this.#origin, this.#opts, (err, newOrigin) => {
261
+ if (err) {
262
+ return this.#handler.onError(err)
263
+ }
264
+
265
+ const dispatchOpts = {
266
+ ...this.#opts,
267
+ origin: newOrigin
268
+ };
269
+
270
+ this.#dispatch(dispatchOpts, this);
271
+ });
272
+
273
+ // if dual-stack disabled, we error out
274
+ return
275
+ }
276
+
277
+ this.#handler.onError(err);
278
+ return
279
+ }
280
+ case 'ENOTFOUND':
281
+ this.#state.deleteRecord(this.#origin);
282
+ // eslint-disable-next-line no-fallthrough
283
+ default:
284
+ this.#handler.onError(err);
285
+ break
286
+ }
287
+ }
288
+ }
289
+
290
+ dns = interceptorOpts => {
291
+ if (
292
+ interceptorOpts?.maxTTL != null &&
293
+ (typeof interceptorOpts?.maxTTL !== 'number' || interceptorOpts?.maxTTL < 0)
294
+ ) {
295
+ throw new InvalidArgumentError('Invalid maxTTL. Must be a positive number')
296
+ }
297
+
298
+ if (
299
+ interceptorOpts?.maxItems != null &&
300
+ (typeof interceptorOpts?.maxItems !== 'number' ||
301
+ interceptorOpts?.maxItems < 1)
302
+ ) {
303
+ throw new InvalidArgumentError(
304
+ 'Invalid maxItems. Must be a positive number and greater than zero'
305
+ )
306
+ }
307
+
308
+ if (
309
+ interceptorOpts?.affinity != null &&
310
+ interceptorOpts?.affinity !== 4 &&
311
+ interceptorOpts?.affinity !== 6
312
+ ) {
313
+ throw new InvalidArgumentError('Invalid affinity. Must be either 4 or 6')
314
+ }
315
+
316
+ if (
317
+ interceptorOpts?.dualStack != null &&
318
+ typeof interceptorOpts?.dualStack !== 'boolean'
319
+ ) {
320
+ throw new InvalidArgumentError('Invalid dualStack. Must be a boolean')
321
+ }
322
+
323
+ if (
324
+ interceptorOpts?.lookup != null &&
325
+ typeof interceptorOpts?.lookup !== 'function'
326
+ ) {
327
+ throw new InvalidArgumentError('Invalid lookup. Must be a function')
328
+ }
329
+
330
+ if (
331
+ interceptorOpts?.pick != null &&
332
+ typeof interceptorOpts?.pick !== 'function'
333
+ ) {
334
+ throw new InvalidArgumentError('Invalid pick. Must be a function')
335
+ }
336
+
337
+ const dualStack = interceptorOpts?.dualStack ?? true;
338
+ let affinity;
339
+ if (dualStack) {
340
+ affinity = interceptorOpts?.affinity ?? null;
341
+ } else {
342
+ affinity = interceptorOpts?.affinity ?? 4;
343
+ }
344
+
345
+ const opts = {
346
+ maxTTL: interceptorOpts?.maxTTL ?? 10e3, // Expressed in ms
347
+ lookup: interceptorOpts?.lookup ?? null,
348
+ pick: interceptorOpts?.pick ?? null,
349
+ dualStack,
350
+ affinity,
351
+ maxItems: interceptorOpts?.maxItems ?? Infinity
352
+ };
353
+
354
+ const instance = new DNSInstance(opts);
355
+
356
+ return dispatch => {
357
+ return function dnsInterceptor (origDispatchOpts, handler) {
358
+ const origin =
359
+ origDispatchOpts.origin.constructor === URL
360
+ ? origDispatchOpts.origin
361
+ : new URL(origDispatchOpts.origin);
362
+
363
+ if (isIP(origin.hostname) !== 0) {
364
+ return dispatch(origDispatchOpts, handler)
365
+ }
366
+
367
+ instance.runLookup(origin, origDispatchOpts, (err, newOrigin) => {
368
+ if (err) {
369
+ return handler.onError(err)
370
+ }
371
+
372
+ let dispatchOpts = null;
373
+ dispatchOpts = {
374
+ ...origDispatchOpts,
375
+ servername: origin.hostname, // For SNI on TLS
376
+ origin: newOrigin,
377
+ headers: {
378
+ host: origin.hostname,
379
+ ...origDispatchOpts.headers
380
+ }
381
+ };
382
+
383
+ dispatch(
384
+ dispatchOpts,
385
+ instance.getHandler({ origin, dispatch, handler }, origDispatchOpts)
386
+ );
387
+ });
388
+
389
+ return true
390
+ }
391
+ }
392
+ };
393
+ return dns;
394
+ }
395
+
396
+ exports.__require = requireDns;
397
+ //# sourceMappingURL=dns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dns.js","sources":["../../../../../../../../../../../node_modules/@actions/http-client/node_modules/undici/lib/interceptor/dns.js"],"sourcesContent":["'use strict'\nconst { isIP } = require('node:net')\nconst { lookup } = require('node:dns')\nconst DecoratorHandler = require('../handler/decorator-handler')\nconst { InvalidArgumentError, InformationalError } = require('../core/errors')\nconst maxInt = Math.pow(2, 31) - 1\n\nclass DNSInstance {\n #maxTTL = 0\n #maxItems = 0\n #records = new Map()\n dualStack = true\n affinity = null\n lookup = null\n pick = null\n\n constructor (opts) {\n this.#maxTTL = opts.maxTTL\n this.#maxItems = opts.maxItems\n this.dualStack = opts.dualStack\n this.affinity = opts.affinity\n this.lookup = opts.lookup ?? this.#defaultLookup\n this.pick = opts.pick ?? this.#defaultPick\n }\n\n get full () {\n return this.#records.size === this.#maxItems\n }\n\n runLookup (origin, opts, cb) {\n const ips = this.#records.get(origin.hostname)\n\n // If full, we just return the origin\n if (ips == null && this.full) {\n cb(null, origin.origin)\n return\n }\n\n const newOpts = {\n affinity: this.affinity,\n dualStack: this.dualStack,\n lookup: this.lookup,\n pick: this.pick,\n ...opts.dns,\n maxTTL: this.#maxTTL,\n maxItems: this.#maxItems\n }\n\n // If no IPs we lookup\n if (ips == null) {\n this.lookup(origin, newOpts, (err, addresses) => {\n if (err || addresses == null || addresses.length === 0) {\n cb(err ?? new InformationalError('No DNS entries found'))\n return\n }\n\n this.setRecords(origin, addresses)\n const records = this.#records.get(origin.hostname)\n\n const ip = this.pick(\n origin,\n records,\n newOpts.affinity\n )\n\n let port\n if (typeof ip.port === 'number') {\n port = `:${ip.port}`\n } else if (origin.port !== '') {\n port = `:${origin.port}`\n } else {\n port = ''\n }\n\n cb(\n null,\n `${origin.protocol}//${\n ip.family === 6 ? `[${ip.address}]` : ip.address\n }${port}`\n )\n })\n } else {\n // If there's IPs we pick\n const ip = this.pick(\n origin,\n ips,\n newOpts.affinity\n )\n\n // If no IPs we lookup - deleting old records\n if (ip == null) {\n this.#records.delete(origin.hostname)\n this.runLookup(origin, opts, cb)\n return\n }\n\n let port\n if (typeof ip.port === 'number') {\n port = `:${ip.port}`\n } else if (origin.port !== '') {\n port = `:${origin.port}`\n } else {\n port = ''\n }\n\n cb(\n null,\n `${origin.protocol}//${\n ip.family === 6 ? `[${ip.address}]` : ip.address\n }${port}`\n )\n }\n }\n\n #defaultLookup (origin, opts, cb) {\n lookup(\n origin.hostname,\n {\n all: true,\n family: this.dualStack === false ? this.affinity : 0,\n order: 'ipv4first'\n },\n (err, addresses) => {\n if (err) {\n return cb(err)\n }\n\n const results = new Map()\n\n for (const addr of addresses) {\n // On linux we found duplicates, we attempt to remove them with\n // the latest record\n results.set(`${addr.address}:${addr.family}`, addr)\n }\n\n cb(null, results.values())\n }\n )\n }\n\n #defaultPick (origin, hostnameRecords, affinity) {\n let ip = null\n const { records, offset } = hostnameRecords\n\n let family\n if (this.dualStack) {\n if (affinity == null) {\n // Balance between ip families\n if (offset == null || offset === maxInt) {\n hostnameRecords.offset = 0\n affinity = 4\n } else {\n hostnameRecords.offset++\n affinity = (hostnameRecords.offset & 1) === 1 ? 6 : 4\n }\n }\n\n if (records[affinity] != null && records[affinity].ips.length > 0) {\n family = records[affinity]\n } else {\n family = records[affinity === 4 ? 6 : 4]\n }\n } else {\n family = records[affinity]\n }\n\n // If no IPs we return null\n if (family == null || family.ips.length === 0) {\n return ip\n }\n\n if (family.offset == null || family.offset === maxInt) {\n family.offset = 0\n } else {\n family.offset++\n }\n\n const position = family.offset % family.ips.length\n ip = family.ips[position] ?? null\n\n if (ip == null) {\n return ip\n }\n\n if (Date.now() - ip.timestamp > ip.ttl) { // record TTL is already in ms\n // We delete expired records\n // It is possible that they have different TTL, so we manage them individually\n family.ips.splice(position, 1)\n return this.pick(origin, hostnameRecords, affinity)\n }\n\n return ip\n }\n\n setRecords (origin, addresses) {\n const timestamp = Date.now()\n const records = { records: { 4: null, 6: null } }\n for (const record of addresses) {\n record.timestamp = timestamp\n if (typeof record.ttl === 'number') {\n // The record TTL is expected to be in ms\n record.ttl = Math.min(record.ttl, this.#maxTTL)\n } else {\n record.ttl = this.#maxTTL\n }\n\n const familyRecords = records.records[record.family] ?? { ips: [] }\n\n familyRecords.ips.push(record)\n records.records[record.family] = familyRecords\n }\n\n this.#records.set(origin.hostname, records)\n }\n\n getHandler (meta, opts) {\n return new DNSDispatchHandler(this, meta, opts)\n }\n}\n\nclass DNSDispatchHandler extends DecoratorHandler {\n #state = null\n #opts = null\n #dispatch = null\n #handler = null\n #origin = null\n\n constructor (state, { origin, handler, dispatch }, opts) {\n super(handler)\n this.#origin = origin\n this.#handler = handler\n this.#opts = { ...opts }\n this.#state = state\n this.#dispatch = dispatch\n }\n\n onError (err) {\n switch (err.code) {\n case 'ETIMEDOUT':\n case 'ECONNREFUSED': {\n if (this.#state.dualStack) {\n // We delete the record and retry\n this.#state.runLookup(this.#origin, this.#opts, (err, newOrigin) => {\n if (err) {\n return this.#handler.onError(err)\n }\n\n const dispatchOpts = {\n ...this.#opts,\n origin: newOrigin\n }\n\n this.#dispatch(dispatchOpts, this)\n })\n\n // if dual-stack disabled, we error out\n return\n }\n\n this.#handler.onError(err)\n return\n }\n case 'ENOTFOUND':\n this.#state.deleteRecord(this.#origin)\n // eslint-disable-next-line no-fallthrough\n default:\n this.#handler.onError(err)\n break\n }\n }\n}\n\nmodule.exports = interceptorOpts => {\n if (\n interceptorOpts?.maxTTL != null &&\n (typeof interceptorOpts?.maxTTL !== 'number' || interceptorOpts?.maxTTL < 0)\n ) {\n throw new InvalidArgumentError('Invalid maxTTL. Must be a positive number')\n }\n\n if (\n interceptorOpts?.maxItems != null &&\n (typeof interceptorOpts?.maxItems !== 'number' ||\n interceptorOpts?.maxItems < 1)\n ) {\n throw new InvalidArgumentError(\n 'Invalid maxItems. Must be a positive number and greater than zero'\n )\n }\n\n if (\n interceptorOpts?.affinity != null &&\n interceptorOpts?.affinity !== 4 &&\n interceptorOpts?.affinity !== 6\n ) {\n throw new InvalidArgumentError('Invalid affinity. Must be either 4 or 6')\n }\n\n if (\n interceptorOpts?.dualStack != null &&\n typeof interceptorOpts?.dualStack !== 'boolean'\n ) {\n throw new InvalidArgumentError('Invalid dualStack. Must be a boolean')\n }\n\n if (\n interceptorOpts?.lookup != null &&\n typeof interceptorOpts?.lookup !== 'function'\n ) {\n throw new InvalidArgumentError('Invalid lookup. Must be a function')\n }\n\n if (\n interceptorOpts?.pick != null &&\n typeof interceptorOpts?.pick !== 'function'\n ) {\n throw new InvalidArgumentError('Invalid pick. Must be a function')\n }\n\n const dualStack = interceptorOpts?.dualStack ?? true\n let affinity\n if (dualStack) {\n affinity = interceptorOpts?.affinity ?? null\n } else {\n affinity = interceptorOpts?.affinity ?? 4\n }\n\n const opts = {\n maxTTL: interceptorOpts?.maxTTL ?? 10e3, // Expressed in ms\n lookup: interceptorOpts?.lookup ?? null,\n pick: interceptorOpts?.pick ?? null,\n dualStack,\n affinity,\n maxItems: interceptorOpts?.maxItems ?? Infinity\n }\n\n const instance = new DNSInstance(opts)\n\n return dispatch => {\n return function dnsInterceptor (origDispatchOpts, handler) {\n const origin =\n origDispatchOpts.origin.constructor === URL\n ? origDispatchOpts.origin\n : new URL(origDispatchOpts.origin)\n\n if (isIP(origin.hostname) !== 0) {\n return dispatch(origDispatchOpts, handler)\n }\n\n instance.runLookup(origin, origDispatchOpts, (err, newOrigin) => {\n if (err) {\n return handler.onError(err)\n }\n\n let dispatchOpts = null\n dispatchOpts = {\n ...origDispatchOpts,\n servername: origin.hostname, // For SNI on TLS\n origin: newOrigin,\n headers: {\n host: origin.hostname,\n ...origDispatchOpts.headers\n }\n }\n\n dispatch(\n dispatchOpts,\n instance.getHandler({ origin, dispatch, handler }, origDispatchOpts)\n )\n })\n\n return true\n }\n }\n}\n"],"names":["require$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;;;;;;;CACA,MAAM,EAAE,IAAI,EAAE,GAAGA;CACjB,MAAM,EAAE,MAAM,EAAE,GAAGC;AACnB,CAAA,MAAM,gBAAgB,GAAGC,0BAAA;AACzB,CAAA,MAAM,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,GAAGC,gBAAA;CACrD,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG;;AAEjC,CAAA,MAAM,WAAW,CAAC;AAClB,GAAE,OAAO,GAAG;AACZ,GAAE,SAAS,GAAG;GACZ,QAAQ,GAAG,IAAI,GAAG;AACpB,GAAE,SAAS,GAAG;AACd,GAAE,QAAQ,GAAG;AACb,GAAE,MAAM,GAAG;AACX,GAAE,IAAI,GAAG;;AAET,GAAE,WAAW,CAAC,CAAC,IAAI,EAAE;AACrB,KAAI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;AACxB,KAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;AAC1B,KAAI,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;AAC1B,KAAI,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;KACrB,IAAI,C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G;AAC3B,SAAQ,YAAY,GAAG;AACvB,WAAU,GAAG,gBAAgB;AAC7B,WAAU,UAAU,EAAE,MAAM,CAAC,QAAQ;WAC3B,MAAM,EAAE,SAAS;AAC3B,WAAU,OAAO,EAAE;AACnB,aAAY,IAAI,EAAE,MAAM,CAAC,QAAQ;aACrB,GAAG,gBAAgB,CAAC;AAChC;AACA;;AAEA,SAAQ,QAAQ;AAChB,WAAU,YAAY;AACtB,WAAU,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,gBAAgB;AAC7E;OACA,CAAO;;AAEP,OAAM,OAAO;AACb,KAAA;AACA,GAAA;AACA,CAAA;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,139 @@
1
+ 'use strict';
2
+
3
+ var util = require('../core/util.js');
4
+ var errors = require('../core/errors.js');
5
+ var decoratorHandler = require('../handler/decorator-handler.js');
6
+
7
+ var dump;
8
+ var hasRequiredDump;
9
+
10
+ function requireDump () {
11
+ if (hasRequiredDump) return dump;
12
+ hasRequiredDump = 1;
13
+
14
+ const util$1 = util.__require();
15
+ const { InvalidArgumentError, RequestAbortedError } = errors.__require();
16
+ const DecoratorHandler = decoratorHandler.__require();
17
+
18
+ class DumpHandler extends DecoratorHandler {
19
+ #maxSize = 1024 * 1024
20
+ #abort = null
21
+ #dumped = false
22
+ #aborted = false
23
+ #size = 0
24
+ #reason = null
25
+ #handler = null
26
+
27
+ constructor ({ maxSize }, handler) {
28
+ super(handler);
29
+
30
+ if (maxSize != null && (!Number.isFinite(maxSize) || maxSize < 1)) {
31
+ throw new InvalidArgumentError('maxSize must be a number greater than 0')
32
+ }
33
+
34
+ this.#maxSize = maxSize ?? this.#maxSize;
35
+ this.#handler = handler;
36
+ }
37
+
38
+ onConnect (abort) {
39
+ this.#abort = abort;
40
+
41
+ this.#handler.onConnect(this.#customAbort.bind(this));
42
+ }
43
+
44
+ #customAbort (reason) {
45
+ this.#aborted = true;
46
+ this.#reason = reason;
47
+ }
48
+
49
+ // TODO: will require adjustment after new hooks are out
50
+ onHeaders (statusCode, rawHeaders, resume, statusMessage) {
51
+ const headers = util$1.parseHeaders(rawHeaders);
52
+ const contentLength = headers['content-length'];
53
+
54
+ if (contentLength != null && contentLength > this.#maxSize) {
55
+ throw new RequestAbortedError(
56
+ `Response size (${contentLength}) larger than maxSize (${
57
+ this.#maxSize
58
+ })`
59
+ )
60
+ }
61
+
62
+ if (this.#aborted) {
63
+ return true
64
+ }
65
+
66
+ return this.#handler.onHeaders(
67
+ statusCode,
68
+ rawHeaders,
69
+ resume,
70
+ statusMessage
71
+ )
72
+ }
73
+
74
+ onError (err) {
75
+ if (this.#dumped) {
76
+ return
77
+ }
78
+
79
+ err = this.#reason ?? err;
80
+
81
+ this.#handler.onError(err);
82
+ }
83
+
84
+ onData (chunk) {
85
+ this.#size = this.#size + chunk.length;
86
+
87
+ if (this.#size >= this.#maxSize) {
88
+ this.#dumped = true;
89
+
90
+ if (this.#aborted) {
91
+ this.#handler.onError(this.#reason);
92
+ } else {
93
+ this.#handler.onComplete([]);
94
+ }
95
+ }
96
+
97
+ return true
98
+ }
99
+
100
+ onComplete (trailers) {
101
+ if (this.#dumped) {
102
+ return
103
+ }
104
+
105
+ if (this.#aborted) {
106
+ this.#handler.onError(this.reason);
107
+ return
108
+ }
109
+
110
+ this.#handler.onComplete(trailers);
111
+ }
112
+ }
113
+
114
+ function createDumpInterceptor (
115
+ { maxSize: defaultMaxSize } = {
116
+ maxSize: 1024 * 1024
117
+ }
118
+ ) {
119
+ return dispatch => {
120
+ return function Intercept (opts, handler) {
121
+ const { dumpMaxSize = defaultMaxSize } =
122
+ opts;
123
+
124
+ const dumpHandler = new DumpHandler(
125
+ { maxSize: dumpMaxSize },
126
+ handler
127
+ );
128
+
129
+ return dispatch(opts, dumpHandler)
130
+ }
131
+ }
132
+ }
133
+
134
+ dump = createDumpInterceptor;
135
+ return dump;
136
+ }
137
+
138
+ exports.__require = requireDump;
139
+ //# sourceMappingURL=dump.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dump.js","sources":["../../../../../../../../../../../node_modules/@actions/http-client/node_modules/undici/lib/interceptor/dump.js"],"sourcesContent":["'use strict'\n\nconst util = require('../core/util')\nconst { InvalidArgumentError, RequestAbortedError } = require('../core/errors')\nconst DecoratorHandler = require('../handler/decorator-handler')\n\nclass DumpHandler extends DecoratorHandler {\n #maxSize = 1024 * 1024\n #abort = null\n #dumped = false\n #aborted = false\n #size = 0\n #reason = null\n #handler = null\n\n constructor ({ maxSize }, handler) {\n super(handler)\n\n if (maxSize != null && (!Number.isFinite(maxSize) || maxSize < 1)) {\n throw new InvalidArgumentError('maxSize must be a number greater than 0')\n }\n\n this.#maxSize = maxSize ?? this.#maxSize\n this.#handler = handler\n }\n\n onConnect (abort) {\n this.#abort = abort\n\n this.#handler.onConnect(this.#customAbort.bind(this))\n }\n\n #customAbort (reason) {\n this.#aborted = true\n this.#reason = reason\n }\n\n // TODO: will require adjustment after new hooks are out\n onHeaders (statusCode, rawHeaders, resume, statusMessage) {\n const headers = util.parseHeaders(rawHeaders)\n const contentLength = headers['content-length']\n\n if (contentLength != null && contentLength > this.#maxSize) {\n throw new RequestAbortedError(\n `Response size (${contentLength}) larger than maxSize (${\n this.#maxSize\n })`\n )\n }\n\n if (this.#aborted) {\n return true\n }\n\n return this.#handler.onHeaders(\n statusCode,\n rawHeaders,\n resume,\n statusMessage\n )\n }\n\n onError (err) {\n if (this.#dumped) {\n return\n }\n\n err = this.#reason ?? err\n\n this.#handler.onError(err)\n }\n\n onData (chunk) {\n this.#size = this.#size + chunk.length\n\n if (this.#size >= this.#maxSize) {\n this.#dumped = true\n\n if (this.#aborted) {\n this.#handler.onError(this.#reason)\n } else {\n this.#handler.onComplete([])\n }\n }\n\n return true\n }\n\n onComplete (trailers) {\n if (this.#dumped) {\n return\n }\n\n if (this.#aborted) {\n this.#handler.onError(this.reason)\n return\n }\n\n this.#handler.onComplete(trailers)\n }\n}\n\nfunction createDumpInterceptor (\n { maxSize: defaultMaxSize } = {\n maxSize: 1024 * 1024\n }\n) {\n return dispatch => {\n return function Intercept (opts, handler) {\n const { dumpMaxSize = defaultMaxSize } =\n opts\n\n const dumpHandler = new DumpHandler(\n { maxSize: dumpMaxSize },\n handler\n )\n\n return dispatch(opts, dumpHandler)\n }\n }\n}\n\nmodule.exports = createDumpInterceptor\n"],"names":["util","require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;;;AAEA,CAAA,MAAMA,MAAI,GAAGC,cAAA;AACb,CAAA,MAAM,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,GAAGC,gBAAA;AACtD,CAAA,MAAM,gBAAgB,GAAGC,0BAAA;;CAEzB,MAAM,WAAW,SAAS,gBAAgB,CAAC;GACzC,QAAQ,GAAG,IAAI,GAAG;AACpB,GAAE,MAAM,GAAG;AACX,GAAE,OAAO,GAAG;AACZ,GAAE,QAAQ,GAAG;AACb,GAAE,KAAK,GAAG;AACV,GAAE,OAAO,GAAG;AACZ,GAAE,QAAQ,GAAG;;GAEX,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE;KACjC,KAAK,CAAC,OAAO;;AAEjB,KAAI,IAAI,OAAO,IAAI,IAAI,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,OAAO,GAAG,CAAC,CAAC,EAAE;AACvE,OAAM,MAAM,IAAI,oBAAoB,CAAC,yCAAyC;AAC9E,KAAA;;AAEA,KAAI,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,IAAI,CAAC;KAChC,IAAI,CAAC,QAAQ,GAAG;AACpB,GAAA;;AAEA,GAAE,SAAS,CAAC,CAAC,KAAK,EAAE;KAChB,IAAI,CAAC,MAAM,GAAG;;AAElB,KAAI,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;AACxD,GAAA;;AAEA,GAA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C,OAAO;AAC1C,OAAA,CAAO,MAAM;AACb,SAAQ,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE;AACnC,OAAA;AACA,KAAA;;AAEA,KAAI,OAAO;AACX,GAAA;;AAEA,GAAE,UAAU,CAAC,CAAC,QAAQ,EAAE;AACxB,KAAI,IAAI,IAAI,CAAC,OAAO,EAAE;OAChB;AACN,KAAA;;AAEA,KAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;OACjB,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM;OACjC;AACN,KAAA;;AAEA,KAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ;AACrC,GAAA;AACA;;AAEA,CAAA,SAAS,qBAAqB;AAC9B,GAAE,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG;KAC5B,OAAO,EAAE,IAAI,GAAG;AACpB;GACE;GACA,OAAO,QAAQ,IAAI;AACrB,KAAI,OAAO,SAAS,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE;AAC9C,OAAM,MAAM,EAAE,WAAW,GAAG,cAAc,EAAE;SACpC;;AAER,OAAM,MAAM,WAAW,GAAG,IAAI,WAAW;AACzC,SAAQ,EAAE,OAAO,EAAE,WAAW,EAAE;SACxB;AACR;;AAEA,OAAM,OAAO,QAAQ,CAAC,IAAI,EAAE,WAAW;AACvC,KAAA;AACA,GAAA;AACA,CAAA;;AAEA,CAAA,IAAc,GAAG;;;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ var redirectHandler = require('../handler/redirect-handler.js');
4
+
5
+ var redirectInterceptor;
6
+ var hasRequiredRedirectInterceptor;
7
+
8
+ function requireRedirectInterceptor () {
9
+ if (hasRequiredRedirectInterceptor) return redirectInterceptor;
10
+ hasRequiredRedirectInterceptor = 1;
11
+
12
+ const RedirectHandler = redirectHandler.__require();
13
+
14
+ function createRedirectInterceptor ({ maxRedirections: defaultMaxRedirections }) {
15
+ return (dispatch) => {
16
+ return function Intercept (opts, handler) {
17
+ const { maxRedirections = defaultMaxRedirections } = opts;
18
+
19
+ if (!maxRedirections) {
20
+ return dispatch(opts, handler)
21
+ }
22
+
23
+ const redirectHandler = new RedirectHandler(dispatch, maxRedirections, opts, handler);
24
+ opts = { ...opts, maxRedirections: 0 }; // Stop sub dispatcher from also redirecting.
25
+ return dispatch(opts, redirectHandler)
26
+ }
27
+ }
28
+ }
29
+
30
+ redirectInterceptor = createRedirectInterceptor;
31
+ return redirectInterceptor;
32
+ }
33
+
34
+ exports.__require = requireRedirectInterceptor;
35
+ //# sourceMappingURL=redirect-interceptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redirect-interceptor.js","sources":["../../../../../../../../../../../node_modules/@actions/http-client/node_modules/undici/lib/interceptor/redirect-interceptor.js"],"sourcesContent":["'use strict'\n\nconst RedirectHandler = require('../handler/redirect-handler')\n\nfunction createRedirectInterceptor ({ maxRedirections: defaultMaxRedirections }) {\n return (dispatch) => {\n return function Intercept (opts, handler) {\n const { maxRedirections = defaultMaxRedirections } = opts\n\n if (!maxRedirections) {\n return dispatch(opts, handler)\n }\n\n const redirectHandler = new RedirectHandler(dispatch, maxRedirections, opts, handler)\n opts = { ...opts, maxRedirections: 0 } // Stop sub dispatcher from also redirecting.\n return dispatch(opts, redirectHandler)\n }\n }\n}\n\nmodule.exports = createRedirectInterceptor\n"],"names":["require$$0"],"mappings":";;;;;;;;;;;AAEA,CAAA,MAAM,eAAe,GAAGA,yBAAA;;AAExB,CAAA,SAAS,yBAAyB,EAAE,EAAE,eAAe,EAAE,sBAAsB,EAAE,EAAE;GAC/E,OAAO,CAAC,QAAQ,KAAK;AACvB,KAAI,OAAO,SAAS,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE;AAC9C,OAAM,MAAM,EAAE,eAAe,GAAG,sBAAsB,EAAE,GAAG;;OAErD,IAAI,CAAC,eAAe,EAAE;AAC5B,SAAQ,OAAO,QAAQ,CAAC,IAAI,EAAE,OAAO;AACrC,OAAA;;AAEA,OAAM,MAAM,eAAe,GAAG,IAAI,eAAe,CAAC,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO;OACpF,IAAI,GAAG,EAAE,GAAG,IAAI,EAAE,eAAe,EAAE,CAAC,GAAE;AAC5C,OAAM,OAAO,QAAQ,CAAC,IAAI,EAAE,eAAe;AAC3C,KAAA;AACA,GAAA;AACA,CAAA;;AAEA,CAAA,mBAAc,GAAG;;;;;;","x_google_ignoreList":[0]}