9router 0.5.91 → 0.5.99

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 (1152) hide show
  1. package/README.md +90 -0
  2. package/app/.next-cli-build/BUILD_ID +1 -1
  3. package/app/.next-cli-build/app-path-routes-manifest.json +11 -8
  4. package/app/.next-cli-build/build-manifest.json +3 -3
  5. package/app/.next-cli-build/prerender-manifest.json +20 -20
  6. package/app/.next-cli-build/react-loadable-manifest.json +1 -1
  7. package/app/.next-cli-build/required-server-files.json +2 -1
  8. package/app/.next-cli-build/routes-manifest.json +20 -0
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +12 -8
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +5 -5
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  78. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  79. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  84. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  85. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  86. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  87. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  88. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  89. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  90. package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
  91. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
  92. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
  93. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +3 -3
  94. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  95. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +2 -2
  111. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +17 -41
  117. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  119. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  123. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
  127. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +2 -2
  129. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  133. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  135. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  137. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  141. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +5 -5
  143. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  147. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
  149. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +8 -8
  151. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js +25 -0
  153. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -0
  154. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route_client-reference-manifest.js +1 -0
  155. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -26
  156. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  160. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +8 -8
  162. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  164. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  166. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  168. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
  170. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  252. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
  258. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -1
  262. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
  264. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -0
  278. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -0
  279. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route_client-reference-manifest.js +1 -0
  280. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  281. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  283. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  284. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  285. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  287. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  289. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  290. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  291. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  292. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  293. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  294. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  295. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  299. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  301. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  303. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  305. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +68 -0
  307. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -0
  308. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route_client-reference-manifest.js +1 -0
  309. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
  312. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  314. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +1 -1
  316. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  318. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  320. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  322. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  324. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  326. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  328. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  344. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  366. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  378. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  380. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  382. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  384. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  385. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  386. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  388. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  392. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  396. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  402. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  406. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  407. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  408. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
  409. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  410. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  411. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  412. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  413. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  414. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  415. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  416. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  417. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  418. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  419. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  420. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  421. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  422. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  423. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  424. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  425. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  426. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  427. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  428. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  429. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  430. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  431. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  432. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  433. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  434. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  435. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  436. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  437. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  438. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  439. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  440. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  441. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  442. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  443. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  444. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  445. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  446. package/app/.next-cli-build/server/app/callback.html +1 -1
  447. package/app/.next-cli-build/server/app/callback.rsc +6 -6
  448. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
  449. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +3 -3
  450. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
  451. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  452. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
  453. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +8 -8
  454. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
  455. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +3 -3
  456. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  457. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
  458. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +8 -8
  459. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
  460. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +3 -3
  461. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  462. package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
  463. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +8 -8
  464. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
  465. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +3 -3
  466. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  467. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
  468. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
  469. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
  470. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +3 -3
  471. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  472. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +8 -8
  473. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +8 -8
  474. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
  475. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +3 -3
  476. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  477. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
  478. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +8 -8
  479. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
  480. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +3 -3
  481. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  482. package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
  483. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +8 -8
  484. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
  485. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +3 -3
  486. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  487. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
  488. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +8 -8
  489. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
  490. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +3 -3
  491. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  492. package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
  493. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +8 -8
  494. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
  495. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +3 -3
  496. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  497. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
  498. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +8 -8
  499. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
  500. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +3 -3
  501. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  502. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +8 -8
  503. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +8 -8
  504. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +8 -8
  505. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +3 -3
  506. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -2
  507. package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
  508. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +9 -9
  509. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
  510. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +3 -3
  511. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  512. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  513. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  514. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  515. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
  516. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
  517. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +3 -3
  518. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
  519. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  520. package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
  521. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +8 -8
  522. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
  523. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +3 -3
  524. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  525. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +8 -8
  526. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +8 -8
  527. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +8 -8
  528. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +3 -3
  529. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  530. package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
  531. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +8 -8
  532. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
  533. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +3 -3
  534. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  535. package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
  536. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +8 -8
  537. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
  538. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +3 -3
  539. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  540. package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
  541. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
  542. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
  543. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +3 -3
  544. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  545. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  546. package/app/.next-cli-build/server/app/index.html +1 -1
  547. package/app/.next-cli-build/server/app/index.rsc +6 -6
  548. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
  549. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
  550. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +3 -3
  551. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  552. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  553. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  554. package/app/.next-cli-build/server/app/landing.html +1 -1
  555. package/app/.next-cli-build/server/app/landing.rsc +7 -7
  556. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +7 -7
  557. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +3 -3
  558. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +7 -7
  559. package/app/.next-cli-build/server/app/login/page.js +1 -1
  560. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  561. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  562. package/app/.next-cli-build/server/app/login.html +1 -1
  563. package/app/.next-cli-build/server/app/login.rsc +7 -7
  564. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
  565. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +3 -3
  566. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
  567. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  568. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  569. package/app/.next-cli-build/server/app/page.js +1 -1
  570. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  571. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  572. package/app/.next-cli-build/server/app-paths-manifest.json +11 -8
  573. package/app/.next-cli-build/server/chunks/1220.js +2 -2
  574. package/app/.next-cli-build/server/chunks/1679.js +1 -1
  575. package/app/.next-cli-build/server/chunks/1757.js +25 -0
  576. package/app/.next-cli-build/server/chunks/2132.js +1 -1
  577. package/app/.next-cli-build/server/chunks/2220.js +1 -1
  578. package/app/.next-cli-build/server/chunks/238.js +1 -0
  579. package/app/.next-cli-build/server/chunks/24.js +1 -1
  580. package/app/.next-cli-build/server/chunks/2416.js +4 -2
  581. package/app/.next-cli-build/server/chunks/3459.js +1 -1
  582. package/app/.next-cli-build/server/chunks/3535.js +1 -1
  583. package/app/.next-cli-build/server/chunks/3558.js +1 -1
  584. package/app/.next-cli-build/server/chunks/3593.js +2 -2
  585. package/app/.next-cli-build/server/chunks/3662.js +1 -1
  586. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  587. package/app/.next-cli-build/server/chunks/3966.js +1 -1
  588. package/app/.next-cli-build/server/chunks/4049.js +1 -1
  589. package/app/.next-cli-build/server/chunks/4055.js +2 -2
  590. package/app/.next-cli-build/server/chunks/412.js +3 -3
  591. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  592. package/app/.next-cli-build/server/chunks/4199.js +1 -0
  593. package/app/.next-cli-build/server/chunks/4252.js +1 -0
  594. package/app/.next-cli-build/server/chunks/436.js +1 -1
  595. package/app/.next-cli-build/server/chunks/4663.js +1 -0
  596. package/app/.next-cli-build/server/chunks/4739.js +2 -2
  597. package/app/.next-cli-build/server/chunks/4780.js +2 -2
  598. package/app/.next-cli-build/server/chunks/507.js +2 -2
  599. package/app/.next-cli-build/server/chunks/5217.js +2 -2
  600. package/app/.next-cli-build/server/chunks/5245.js +1 -0
  601. package/app/.next-cli-build/server/chunks/5258.js +2 -2
  602. package/app/.next-cli-build/server/chunks/5299.js +21 -20
  603. package/app/.next-cli-build/server/chunks/5330.js +7 -7
  604. package/app/.next-cli-build/server/chunks/5615.js +2 -2
  605. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  606. package/app/.next-cli-build/server/chunks/615.js +1 -1
  607. package/app/.next-cli-build/server/chunks/6249.js +2 -2
  608. package/app/.next-cli-build/server/chunks/{4037.js → 6540.js} +1 -1
  609. package/app/.next-cli-build/server/chunks/6763.js +1 -1
  610. package/app/.next-cli-build/server/chunks/6922.js +1 -1
  611. package/app/.next-cli-build/server/chunks/698.js +2 -2
  612. package/app/.next-cli-build/server/chunks/7011.js +1 -1
  613. package/app/.next-cli-build/server/chunks/7211.js +1 -1
  614. package/app/.next-cli-build/server/chunks/7247.js +1 -1
  615. package/app/.next-cli-build/server/chunks/7285.js +1 -0
  616. package/app/.next-cli-build/server/chunks/7525.js +1 -1
  617. package/app/.next-cli-build/server/chunks/7552.js +1 -0
  618. package/app/.next-cli-build/server/chunks/7557.js +1 -1
  619. package/app/.next-cli-build/server/chunks/7716.js +1 -1
  620. package/app/.next-cli-build/server/chunks/7774.js +1 -1
  621. package/app/.next-cli-build/server/chunks/7828.js +1 -1
  622. package/app/.next-cli-build/server/chunks/7868.js +1 -1
  623. package/app/.next-cli-build/server/chunks/7965.js +2 -2
  624. package/app/.next-cli-build/server/chunks/7995.js +2 -2
  625. package/app/.next-cli-build/server/chunks/8251.js +1 -0
  626. package/app/.next-cli-build/server/chunks/827.js +1 -1
  627. package/app/.next-cli-build/server/chunks/8363.js +1 -1
  628. package/app/.next-cli-build/server/chunks/8402.js +1 -1
  629. package/app/.next-cli-build/server/chunks/8416.js +1 -1
  630. package/app/.next-cli-build/server/chunks/8499.js +13 -13
  631. package/app/.next-cli-build/server/chunks/8520.js +2 -2
  632. package/app/.next-cli-build/server/chunks/8635.js +1 -1
  633. package/app/.next-cli-build/server/chunks/869.js +1 -1
  634. package/app/.next-cli-build/server/chunks/8895.js +8 -8
  635. package/app/.next-cli-build/server/chunks/8920.js +1 -1
  636. package/app/.next-cli-build/server/chunks/9100.js +21 -0
  637. package/app/.next-cli-build/server/chunks/915.js +2 -2
  638. package/app/.next-cli-build/server/chunks/936.js +1 -0
  639. package/app/.next-cli-build/server/chunks/9378.js +1 -0
  640. package/app/.next-cli-build/server/chunks/9604.js +1 -0
  641. package/app/.next-cli-build/server/chunks/9609.js +1 -1
  642. package/app/.next-cli-build/server/chunks/9696.js +7 -0
  643. package/app/.next-cli-build/server/instrumentation.js +1 -1
  644. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  645. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  646. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  647. package/app/.next-cli-build/server/middleware.js +4 -4
  648. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  649. package/app/.next-cli-build/server/pages/404.html +1 -1
  650. package/app/.next-cli-build/server/pages/500.html +1 -1
  651. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  652. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  653. package/app/.next-cli-build/static/E7kVCQHn2zq2eycdAqlPc/_buildManifest.js +1 -0
  654. package/app/.next-cli-build/static/chunks/1321-759582fef9434912.js +1 -0
  655. package/app/.next-cli-build/static/chunks/5497-2887349975c87933.js +7 -0
  656. package/app/.next-cli-build/static/chunks/{6808-d08581bd3ec10128.js → 6808-539a26dc25829cf4.js} +1 -1
  657. package/app/.next-cli-build/static/chunks/{761-cdfc24b04958e1db.js → 761-6d91e711de1388f5.js} +18 -17
  658. package/app/.next-cli-build/static/chunks/8720-65bbe237f14f33c9.js +5 -0
  659. package/app/.next-cli-build/static/chunks/{8982-116f9df4aeaaf6cb.js → 8982-d321f5a7b4ecd757.js} +1 -1
  660. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-109d99636a7cb2c3.js → page-28c766c2dcb3fdfa.js} +15 -11
  661. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-830e87bc2fab032d.js +27 -0
  662. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-e5d73ba422004783.js +4 -0
  663. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-d09da5db607424de.js +1 -0
  664. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-2de4c147da76ae92.js → layout-9bd8956f68c478a0.js} +1 -1
  665. package/app/.next-cli-build/static/chunks/app/_global-error/page-7ee9602010473e2d.js +1 -0
  666. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-7ee9602010473e2d.js +1 -0
  667. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-7ee9602010473e2d.js +1 -0
  668. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-7ee9602010473e2d.js +1 -0
  669. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-7ee9602010473e2d.js +1 -0
  670. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-7ee9602010473e2d.js +1 -0
  671. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-7ee9602010473e2d.js +1 -0
  672. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-7ee9602010473e2d.js +1 -0
  673. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-7ee9602010473e2d.js +1 -0
  674. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-7ee9602010473e2d.js +1 -0
  675. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-7ee9602010473e2d.js +1 -0
  676. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-7ee9602010473e2d.js +1 -0
  677. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-7ee9602010473e2d.js +1 -0
  678. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-7ee9602010473e2d.js +1 -0
  679. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-7ee9602010473e2d.js +1 -0
  680. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-7ee9602010473e2d.js +1 -0
  681. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-7ee9602010473e2d.js +1 -0
  682. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-7ee9602010473e2d.js +1 -0
  683. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-7ee9602010473e2d.js +1 -0
  684. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-7ee9602010473e2d.js +1 -0
  685. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-7ee9602010473e2d.js +1 -0
  686. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-7ee9602010473e2d.js +1 -0
  687. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-7ee9602010473e2d.js +1 -0
  688. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-7ee9602010473e2d.js +1 -0
  689. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-7ee9602010473e2d.js +1 -0
  690. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-7ee9602010473e2d.js +1 -0
  691. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-7ee9602010473e2d.js +1 -0
  692. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-7ee9602010473e2d.js +1 -0
  693. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-7ee9602010473e2d.js +1 -0
  694. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-7ee9602010473e2d.js +1 -0
  695. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-7ee9602010473e2d.js +1 -0
  696. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-7ee9602010473e2d.js +1 -0
  697. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-7ee9602010473e2d.js +1 -0
  698. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-7ee9602010473e2d.js +1 -0
  699. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-7ee9602010473e2d.js +1 -0
  700. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-7ee9602010473e2d.js +1 -0
  701. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-7ee9602010473e2d.js +1 -0
  702. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-7ee9602010473e2d.js +1 -0
  703. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-7ee9602010473e2d.js +1 -0
  704. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-7ee9602010473e2d.js +1 -0
  705. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-7ee9602010473e2d.js +1 -0
  706. package/app/.next-cli-build/static/chunks/app/api/combos/route-7ee9602010473e2d.js +1 -0
  707. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-7ee9602010473e2d.js +1 -0
  708. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-7ee9602010473e2d.js +1 -0
  709. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-7ee9602010473e2d.js +1 -0
  710. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-7ee9602010473e2d.js +1 -0
  711. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-7ee9602010473e2d.js +1 -0
  712. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-7ee9602010473e2d.js +1 -0
  713. package/app/.next-cli-build/static/chunks/app/api/health/route-7ee9602010473e2d.js +1 -0
  714. package/app/.next-cli-build/static/chunks/app/api/init/route-7ee9602010473e2d.js +1 -0
  715. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-7ee9602010473e2d.js +1 -0
  716. package/app/.next-cli-build/static/chunks/app/api/keys/route-7ee9602010473e2d.js +1 -0
  717. package/app/.next-cli-build/static/chunks/app/api/locale/route-7ee9602010473e2d.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-7ee9602010473e2d.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-7ee9602010473e2d.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-7ee9602010473e2d.js +1 -0
  721. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-7ee9602010473e2d.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-7ee9602010473e2d.js +1 -0
  723. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-7ee9602010473e2d.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-7ee9602010473e2d.js +1 -0
  725. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-7ee9602010473e2d.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-7ee9602010473e2d.js +1 -0
  727. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-7ee9602010473e2d.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-7ee9602010473e2d.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-7ee9602010473e2d.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/models/route-7ee9602010473e2d.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/models/test/route-7ee9602010473e2d.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-7ee9602010473e2d.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-7ee9602010473e2d.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-7ee9602010473e2d.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-7ee9602010473e2d.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-7ee9602010473e2d.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-7ee9602010473e2d.js +1 -0
  738. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-7ee9602010473e2d.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-7ee9602010473e2d.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-7ee9602010473e2d.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-7ee9602010473e2d.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-7ee9602010473e2d.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-7ee9602010473e2d.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-7ee9602010473e2d.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-7ee9602010473e2d.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-7ee9602010473e2d.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-7ee9602010473e2d.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-7ee9602010473e2d.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-7ee9602010473e2d.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-7ee9602010473e2d.js +1 -0
  751. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-7ee9602010473e2d.js +1 -0
  752. package/app/.next-cli-build/static/chunks/app/api/pricing/route-7ee9602010473e2d.js +1 -0
  753. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-7ee9602010473e2d.js +1 -0
  754. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-7ee9602010473e2d.js +1 -0
  755. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-7ee9602010473e2d.js +1 -0
  756. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-7ee9602010473e2d.js +1 -0
  757. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-7ee9602010473e2d.js +1 -0
  758. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-7ee9602010473e2d.js +1 -0
  759. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-7ee9602010473e2d.js +1 -0
  760. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-7ee9602010473e2d.js +1 -0
  761. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-7ee9602010473e2d.js +1 -0
  762. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-7ee9602010473e2d.js +1 -0
  763. package/app/.next-cli-build/static/chunks/app/api/providers/route-7ee9602010473e2d.js +1 -0
  764. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-7ee9602010473e2d.js +1 -0
  765. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-7ee9602010473e2d.js +1 -0
  766. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-7ee9602010473e2d.js +1 -0
  767. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-7ee9602010473e2d.js +1 -0
  768. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-7ee9602010473e2d.js +1 -0
  769. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-7ee9602010473e2d.js +1 -0
  770. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-7ee9602010473e2d.js +1 -0
  771. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-7ee9602010473e2d.js +1 -0
  772. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-7ee9602010473e2d.js +1 -0
  773. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-7ee9602010473e2d.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-7ee9602010473e2d.js +1 -0
  775. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-7ee9602010473e2d.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-7ee9602010473e2d.js +1 -0
  777. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-7ee9602010473e2d.js +1 -0
  778. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-7ee9602010473e2d.js +1 -0
  779. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-7ee9602010473e2d.js +1 -0
  780. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-7ee9602010473e2d.js +1 -0
  781. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-7ee9602010473e2d.js +1 -0
  782. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-7ee9602010473e2d.js +1 -0
  783. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-7ee9602010473e2d.js +1 -0
  784. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-7ee9602010473e2d.js +1 -0
  785. package/app/.next-cli-build/static/chunks/app/api/settings/route-7ee9602010473e2d.js +1 -0
  786. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-7ee9602010473e2d.js +1 -0
  787. package/app/.next-cli-build/static/chunks/app/api/tags/route-7ee9602010473e2d.js +1 -0
  788. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-7ee9602010473e2d.js +1 -0
  789. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-7ee9602010473e2d.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-7ee9602010473e2d.js +1 -0
  791. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-7ee9602010473e2d.js +1 -0
  792. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-7ee9602010473e2d.js +1 -0
  793. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-7ee9602010473e2d.js +1 -0
  794. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-7ee9602010473e2d.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-7ee9602010473e2d.js +1 -0
  796. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-7ee9602010473e2d.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-7ee9602010473e2d.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-7ee9602010473e2d.js +1 -0
  799. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-7ee9602010473e2d.js +1 -0
  800. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-7ee9602010473e2d.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-7ee9602010473e2d.js +1 -0
  802. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-7ee9602010473e2d.js +1 -0
  803. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-7ee9602010473e2d.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-7ee9602010473e2d.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-7ee9602010473e2d.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-7ee9602010473e2d.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-7ee9602010473e2d.js +1 -0
  808. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-7ee9602010473e2d.js +1 -0
  809. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-7ee9602010473e2d.js +1 -0
  810. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-7ee9602010473e2d.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-7ee9602010473e2d.js +1 -0
  812. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-7ee9602010473e2d.js +1 -0
  813. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-7ee9602010473e2d.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-7ee9602010473e2d.js +1 -0
  815. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-7ee9602010473e2d.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-7ee9602010473e2d.js +1 -0
  817. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-7ee9602010473e2d.js +1 -0
  818. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-7ee9602010473e2d.js +1 -0
  819. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-7ee9602010473e2d.js +1 -0
  820. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-7ee9602010473e2d.js +1 -0
  821. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-7ee9602010473e2d.js +1 -0
  822. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-7ee9602010473e2d.js +1 -0
  823. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-7ee9602010473e2d.js +1 -0
  824. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-7ee9602010473e2d.js +1 -0
  825. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-7ee9602010473e2d.js +1 -0
  826. package/app/.next-cli-build/static/chunks/app/api/v1/route-7ee9602010473e2d.js +1 -0
  827. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-7ee9602010473e2d.js +1 -0
  828. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-7ee9602010473e2d.js +1 -0
  829. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-7ee9602010473e2d.js +1 -0
  830. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-7ee9602010473e2d.js +1 -0
  831. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-7ee9602010473e2d.js +1 -0
  832. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-7ee9602010473e2d.js +1 -0
  833. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-7ee9602010473e2d.js +1 -0
  834. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-7ee9602010473e2d.js +1 -0
  835. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-7ee9602010473e2d.js +1 -0
  836. package/app/.next-cli-build/static/chunks/app/api/version/route-7ee9602010473e2d.js +1 -0
  837. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-7ee9602010473e2d.js +1 -0
  838. package/app/.next-cli-build/static/chunks/app/api/version/update/route-7ee9602010473e2d.js +1 -0
  839. package/app/.next-cli-build/static/chunks/app/landing/page-e4fa97ee1554342b.js +1 -0
  840. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-7ee9602010473e2d.js +1 -0
  841. package/app/.next-cli-build/static/chunks/app/page-7ee9602010473e2d.js +1 -0
  842. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-7ee9602010473e2d.js +1 -0
  843. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-7ee9602010473e2d.js +1 -0
  844. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-7ee9602010473e2d.js +1 -0
  845. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-7ee9602010473e2d.js +1 -0
  846. package/app/.next-cli-build/static/chunks/{webpack-69d91e61421e854e.js → webpack-30d34428c43081e0.js} +1 -1
  847. package/app/.next-cli-build/static/css/2e0bdc15d566d63b.css +1 -0
  848. package/app/.next-cli-build/static/css/{8f9ac5a7bd3a79e5.css → 2e1a9a933f2e668f.css} +1 -1
  849. package/app/cli/.build-home/.9router/db/backups/schema-1-to-2-0.5.99-20261008-195023/data.sqlite +0 -0
  850. package/app/cli/.build-home/.9router/db/data.sqlite +0 -0
  851. package/app/node_modules/@aws/lambda-invoke-store/dist-cjs/invoke-store.js +131 -0
  852. package/app/node_modules/@aws/lambda-invoke-store/package.json +55 -0
  853. package/app/node_modules/@aws-sdk/core/client.js +5 -0
  854. package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +984 -0
  855. package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +349 -0
  856. package/app/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +2949 -0
  857. package/app/node_modules/@aws-sdk/core/httpAuthSchemes.js +5 -0
  858. package/app/node_modules/@aws-sdk/core/package.json +146 -0
  859. package/app/node_modules/@aws-sdk/core/protocols.js +5 -0
  860. package/app/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js +202 -0
  861. package/app/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/loadCognitoIdentity-v413cIIq.js +4 -0
  862. package/app/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +59 -0
  863. package/app/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +39 -0
  864. package/app/node_modules/@aws-sdk/credential-provider-env/package.json +63 -0
  865. package/app/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +179 -0
  866. package/app/node_modules/@aws-sdk/credential-provider-http/package.json +75 -0
  867. package/app/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +229 -0
  868. package/app/node_modules/@aws-sdk/credential-provider-ini/package.json +73 -0
  869. package/app/node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js +290 -0
  870. package/app/node_modules/@aws-sdk/credential-provider-login/package.json +66 -0
  871. package/app/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +166 -0
  872. package/app/node_modules/@aws-sdk/credential-provider-node/package.json +71 -0
  873. package/app/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +76 -0
  874. package/app/node_modules/@aws-sdk/credential-provider-process/package.json +63 -0
  875. package/app/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +192 -0
  876. package/app/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BGYXHf8s.js +3 -0
  877. package/app/node_modules/@aws-sdk/credential-provider-sso/package.json +67 -0
  878. package/app/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +58 -0
  879. package/app/node_modules/@aws-sdk/credential-provider-web-identity/package.json +71 -0
  880. package/app/node_modules/@aws-sdk/credential-providers/dist-cjs/index.js +284 -0
  881. package/app/node_modules/@aws-sdk/credential-providers/dist-cjs/loadSts-C4jOcYxJ.js +3 -0
  882. package/app/node_modules/@aws-sdk/credential-providers/package.json +85 -0
  883. package/app/node_modules/@aws-sdk/nested-clients/cognito-identity.js +5 -0
  884. package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +616 -0
  885. package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +590 -0
  886. package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +468 -0
  887. package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +674 -0
  888. package/app/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +881 -0
  889. package/app/node_modules/@aws-sdk/nested-clients/package.json +121 -0
  890. package/app/node_modules/@aws-sdk/nested-clients/signin.js +5 -0
  891. package/app/node_modules/@aws-sdk/nested-clients/sso-oidc.js +5 -0
  892. package/app/node_modules/@aws-sdk/nested-clients/sso.js +5 -0
  893. package/app/node_modules/@aws-sdk/nested-clients/sts.js +5 -0
  894. package/app/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +155 -0
  895. package/app/node_modules/@aws-sdk/signature-v4-multi-region/package.json +60 -0
  896. package/app/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +158 -0
  897. package/app/node_modules/@aws-sdk/token-providers/package.json +69 -0
  898. package/app/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +372 -0
  899. package/app/node_modules/@aws-sdk/xml-builder/package.json +63 -0
  900. package/app/node_modules/@smithy/core/cbor.js +5 -0
  901. package/app/node_modules/@smithy/core/checksum.js +5 -0
  902. package/app/node_modules/@smithy/core/client.js +5 -0
  903. package/app/node_modules/@smithy/core/config.js +5 -0
  904. package/app/node_modules/@smithy/core/dist-cjs/index.js +344 -0
  905. package/app/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +2550 -0
  906. package/app/node_modules/@smithy/core/dist-cjs/submodules/checksum/index.js +577 -0
  907. package/app/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +1200 -0
  908. package/app/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +779 -0
  909. package/app/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +878 -0
  910. package/app/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +924 -0
  911. package/app/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1099 -0
  912. package/app/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +848 -0
  913. package/app/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +709 -0
  914. package/app/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +1765 -0
  915. package/app/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +189 -0
  916. package/app/node_modules/@smithy/core/endpoints.js +5 -0
  917. package/app/node_modules/@smithy/core/event-streams.js +5 -0
  918. package/app/node_modules/@smithy/core/package.json +258 -0
  919. package/app/node_modules/@smithy/core/protocols.js +5 -0
  920. package/app/node_modules/@smithy/core/retry.js +5 -0
  921. package/app/node_modules/@smithy/core/schema.js +5 -0
  922. package/app/node_modules/@smithy/core/serde.js +5 -0
  923. package/app/node_modules/@smithy/core/transport.js +5 -0
  924. package/app/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +370 -0
  925. package/app/node_modules/@smithy/credential-provider-imds/package.json +57 -0
  926. package/app/node_modules/@smithy/node-http-handler/dist-cjs/index.js +859 -0
  927. package/app/node_modules/@smithy/node-http-handler/package.json +56 -0
  928. package/app/node_modules/@smithy/signature-v4/dist-cjs/index.js +585 -0
  929. package/app/node_modules/@smithy/signature-v4/package.json +53 -0
  930. package/app/node_modules/@smithy/types/dist-cjs/index.js +96 -0
  931. package/app/node_modules/@smithy/types/package.json +50 -0
  932. package/app/node_modules/bowser/es5.js +1 -0
  933. package/app/node_modules/bowser/package.json +93 -0
  934. package/app/package.json +4 -1
  935. package/app/public/providers/bedrock-xai.png +0 -0
  936. package/app/public/providers/bedrock.png +0 -0
  937. package/app/public/providers/muse.png +0 -0
  938. package/app/public/providers/tinyfish.png +0 -0
  939. package/app/public/providers/v1m.png +0 -0
  940. package/app/server.js +1 -1
  941. package/app/src/mitm/server.js +24 -24
  942. package/cli.js +18 -0
  943. package/hooks/postinstall.js +4 -0
  944. package/package.json +3 -2
  945. package/src/cli/api/client.js +17 -4
  946. package/src/cli/commands/connect.js +409 -0
  947. package/src/cli/commands/connectTools.js +558 -0
  948. package/src/cli/commands/show.js +101 -0
  949. package/src/cli/menus/cliTools.js +116 -17
  950. package/src/cli/menus/combos.js +9 -2
  951. package/src/cli/menus/providers.js +11 -2
  952. package/src/cli/utils/comboModelId.js +10 -0
  953. package/src/cli/utils/modelSelector.js +1 -1
  954. package/app/.next-cli-build/server/chunks/1731.js +0 -1
  955. package/app/.next-cli-build/server/chunks/4572.js +0 -1
  956. package/app/.next-cli-build/server/chunks/4884.js +0 -21
  957. package/app/.next-cli-build/server/chunks/5315.js +0 -1
  958. package/app/.next-cli-build/server/chunks/5524.js +0 -1
  959. package/app/.next-cli-build/server/chunks/5670.js +0 -1
  960. package/app/.next-cli-build/server/chunks/700.js +0 -1
  961. package/app/.next-cli-build/server/chunks/7220.js +0 -1
  962. package/app/.next-cli-build/server/chunks/8145.js +0 -1
  963. package/app/.next-cli-build/server/chunks/9128.js +0 -1
  964. package/app/.next-cli-build/server/chunks/9866.js +0 -1
  965. package/app/.next-cli-build/static/JwK09RQ_bBz2fzOX7dkNE/_buildManifest.js +0 -1
  966. package/app/.next-cli-build/static/chunks/1321-a87b4fa8cd302a0f.js +0 -1
  967. package/app/.next-cli-build/static/chunks/5497-b868b97201a1d557.js +0 -7
  968. package/app/.next-cli-build/static/chunks/8720-25e3ea26eb583e94.js +0 -3
  969. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-060e4856389ef940.js +0 -27
  970. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-1a2bc6aa2b324191.js +0 -4
  971. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-1faac22f38ea330b.js +0 -1
  972. package/app/.next-cli-build/static/chunks/app/_global-error/page-6680a0968873a9a5.js +0 -1
  973. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-6680a0968873a9a5.js +0 -1
  974. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-6680a0968873a9a5.js +0 -1
  975. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-6680a0968873a9a5.js +0 -1
  976. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-6680a0968873a9a5.js +0 -1
  977. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-6680a0968873a9a5.js +0 -1
  978. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-6680a0968873a9a5.js +0 -1
  979. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-6680a0968873a9a5.js +0 -1
  980. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-6680a0968873a9a5.js +0 -1
  981. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-6680a0968873a9a5.js +0 -1
  982. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-6680a0968873a9a5.js +0 -1
  983. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-6680a0968873a9a5.js +0 -1
  984. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-6680a0968873a9a5.js +0 -1
  985. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-6680a0968873a9a5.js +0 -1
  986. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-6680a0968873a9a5.js +0 -1
  987. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-6680a0968873a9a5.js +0 -1
  988. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-6680a0968873a9a5.js +0 -1
  989. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-6680a0968873a9a5.js +0 -1
  990. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-6680a0968873a9a5.js +0 -1
  991. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-6680a0968873a9a5.js +0 -1
  992. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-6680a0968873a9a5.js +0 -1
  993. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-6680a0968873a9a5.js +0 -1
  994. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-6680a0968873a9a5.js +0 -1
  995. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-6680a0968873a9a5.js +0 -1
  996. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-6680a0968873a9a5.js +0 -1
  997. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-6680a0968873a9a5.js +0 -1
  998. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-6680a0968873a9a5.js +0 -1
  999. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-6680a0968873a9a5.js +0 -1
  1000. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-6680a0968873a9a5.js +0 -1
  1001. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-6680a0968873a9a5.js +0 -1
  1002. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-6680a0968873a9a5.js +0 -1
  1003. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-6680a0968873a9a5.js +0 -1
  1004. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-6680a0968873a9a5.js +0 -1
  1005. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-6680a0968873a9a5.js +0 -1
  1006. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-6680a0968873a9a5.js +0 -1
  1007. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-6680a0968873a9a5.js +0 -1
  1008. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-6680a0968873a9a5.js +0 -1
  1009. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-6680a0968873a9a5.js +0 -1
  1010. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-6680a0968873a9a5.js +0 -1
  1011. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-6680a0968873a9a5.js +0 -1
  1012. package/app/.next-cli-build/static/chunks/app/api/combos/route-6680a0968873a9a5.js +0 -1
  1013. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-6680a0968873a9a5.js +0 -1
  1014. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-6680a0968873a9a5.js +0 -1
  1015. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-6680a0968873a9a5.js +0 -1
  1016. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-6680a0968873a9a5.js +0 -1
  1017. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-6680a0968873a9a5.js +0 -1
  1018. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-6680a0968873a9a5.js +0 -1
  1019. package/app/.next-cli-build/static/chunks/app/api/health/route-6680a0968873a9a5.js +0 -1
  1020. package/app/.next-cli-build/static/chunks/app/api/init/route-6680a0968873a9a5.js +0 -1
  1021. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-6680a0968873a9a5.js +0 -1
  1022. package/app/.next-cli-build/static/chunks/app/api/keys/route-6680a0968873a9a5.js +0 -1
  1023. package/app/.next-cli-build/static/chunks/app/api/locale/route-6680a0968873a9a5.js +0 -1
  1024. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-6680a0968873a9a5.js +0 -1
  1025. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-6680a0968873a9a5.js +0 -1
  1026. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-6680a0968873a9a5.js +0 -1
  1027. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-6680a0968873a9a5.js +0 -1
  1028. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-6680a0968873a9a5.js +0 -1
  1029. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-6680a0968873a9a5.js +0 -1
  1030. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-6680a0968873a9a5.js +0 -1
  1031. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-6680a0968873a9a5.js +0 -1
  1032. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-6680a0968873a9a5.js +0 -1
  1033. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-6680a0968873a9a5.js +0 -1
  1034. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-6680a0968873a9a5.js +0 -1
  1035. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-6680a0968873a9a5.js +0 -1
  1036. package/app/.next-cli-build/static/chunks/app/api/models/route-6680a0968873a9a5.js +0 -1
  1037. package/app/.next-cli-build/static/chunks/app/api/models/test/route-6680a0968873a9a5.js +0 -1
  1038. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-6680a0968873a9a5.js +0 -1
  1039. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-6680a0968873a9a5.js +0 -1
  1040. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-6680a0968873a9a5.js +0 -1
  1041. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-6680a0968873a9a5.js +0 -1
  1042. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-6680a0968873a9a5.js +0 -1
  1043. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-6680a0968873a9a5.js +0 -1
  1044. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-6680a0968873a9a5.js +0 -1
  1045. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-6680a0968873a9a5.js +0 -1
  1046. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-6680a0968873a9a5.js +0 -1
  1047. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-6680a0968873a9a5.js +0 -1
  1048. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-6680a0968873a9a5.js +0 -1
  1049. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-6680a0968873a9a5.js +0 -1
  1050. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-6680a0968873a9a5.js +0 -1
  1051. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-6680a0968873a9a5.js +0 -1
  1052. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-6680a0968873a9a5.js +0 -1
  1053. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-6680a0968873a9a5.js +0 -1
  1054. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-6680a0968873a9a5.js +0 -1
  1055. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-6680a0968873a9a5.js +0 -1
  1056. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-6680a0968873a9a5.js +0 -1
  1057. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-6680a0968873a9a5.js +0 -1
  1058. package/app/.next-cli-build/static/chunks/app/api/pricing/route-6680a0968873a9a5.js +0 -1
  1059. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-6680a0968873a9a5.js +0 -1
  1060. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-6680a0968873a9a5.js +0 -1
  1061. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-6680a0968873a9a5.js +0 -1
  1062. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-6680a0968873a9a5.js +0 -1
  1063. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-6680a0968873a9a5.js +0 -1
  1064. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-6680a0968873a9a5.js +0 -1
  1065. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-6680a0968873a9a5.js +0 -1
  1066. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-6680a0968873a9a5.js +0 -1
  1067. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-6680a0968873a9a5.js +0 -1
  1068. package/app/.next-cli-build/static/chunks/app/api/providers/route-6680a0968873a9a5.js +0 -1
  1069. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-6680a0968873a9a5.js +0 -1
  1070. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-6680a0968873a9a5.js +0 -1
  1071. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-6680a0968873a9a5.js +0 -1
  1072. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-6680a0968873a9a5.js +0 -1
  1073. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-6680a0968873a9a5.js +0 -1
  1074. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-6680a0968873a9a5.js +0 -1
  1075. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-6680a0968873a9a5.js +0 -1
  1076. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-6680a0968873a9a5.js +0 -1
  1077. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-6680a0968873a9a5.js +0 -1
  1078. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-6680a0968873a9a5.js +0 -1
  1079. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-6680a0968873a9a5.js +0 -1
  1080. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-6680a0968873a9a5.js +0 -1
  1081. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-6680a0968873a9a5.js +0 -1
  1082. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-6680a0968873a9a5.js +0 -1
  1083. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-6680a0968873a9a5.js +0 -1
  1084. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-6680a0968873a9a5.js +0 -1
  1085. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-6680a0968873a9a5.js +0 -1
  1086. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-6680a0968873a9a5.js +0 -1
  1087. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-6680a0968873a9a5.js +0 -1
  1088. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-6680a0968873a9a5.js +0 -1
  1089. package/app/.next-cli-build/static/chunks/app/api/settings/route-6680a0968873a9a5.js +0 -1
  1090. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-6680a0968873a9a5.js +0 -1
  1091. package/app/.next-cli-build/static/chunks/app/api/tags/route-6680a0968873a9a5.js +0 -1
  1092. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-6680a0968873a9a5.js +0 -1
  1093. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-6680a0968873a9a5.js +0 -1
  1094. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-6680a0968873a9a5.js +0 -1
  1095. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-6680a0968873a9a5.js +0 -1
  1096. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-6680a0968873a9a5.js +0 -1
  1097. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-6680a0968873a9a5.js +0 -1
  1098. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-6680a0968873a9a5.js +0 -1
  1099. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-6680a0968873a9a5.js +0 -1
  1100. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-6680a0968873a9a5.js +0 -1
  1101. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-6680a0968873a9a5.js +0 -1
  1102. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-6680a0968873a9a5.js +0 -1
  1103. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-6680a0968873a9a5.js +0 -1
  1104. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-6680a0968873a9a5.js +0 -1
  1105. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-6680a0968873a9a5.js +0 -1
  1106. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-6680a0968873a9a5.js +0 -1
  1107. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-6680a0968873a9a5.js +0 -1
  1108. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-6680a0968873a9a5.js +0 -1
  1109. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-6680a0968873a9a5.js +0 -1
  1110. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-6680a0968873a9a5.js +0 -1
  1111. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-6680a0968873a9a5.js +0 -1
  1112. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-6680a0968873a9a5.js +0 -1
  1113. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-6680a0968873a9a5.js +0 -1
  1114. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-6680a0968873a9a5.js +0 -1
  1115. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-6680a0968873a9a5.js +0 -1
  1116. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-6680a0968873a9a5.js +0 -1
  1117. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-6680a0968873a9a5.js +0 -1
  1118. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-6680a0968873a9a5.js +0 -1
  1119. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-6680a0968873a9a5.js +0 -1
  1120. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-6680a0968873a9a5.js +0 -1
  1121. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-6680a0968873a9a5.js +0 -1
  1122. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-6680a0968873a9a5.js +0 -1
  1123. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-6680a0968873a9a5.js +0 -1
  1124. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-6680a0968873a9a5.js +0 -1
  1125. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-6680a0968873a9a5.js +0 -1
  1126. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-6680a0968873a9a5.js +0 -1
  1127. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-6680a0968873a9a5.js +0 -1
  1128. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-6680a0968873a9a5.js +0 -1
  1129. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-6680a0968873a9a5.js +0 -1
  1130. package/app/.next-cli-build/static/chunks/app/api/v1/route-6680a0968873a9a5.js +0 -1
  1131. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-6680a0968873a9a5.js +0 -1
  1132. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-6680a0968873a9a5.js +0 -1
  1133. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-6680a0968873a9a5.js +0 -1
  1134. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-6680a0968873a9a5.js +0 -1
  1135. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-6680a0968873a9a5.js +0 -1
  1136. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-6680a0968873a9a5.js +0 -1
  1137. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-6680a0968873a9a5.js +0 -1
  1138. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-6680a0968873a9a5.js +0 -1
  1139. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-6680a0968873a9a5.js +0 -1
  1140. package/app/.next-cli-build/static/chunks/app/api/version/route-6680a0968873a9a5.js +0 -1
  1141. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-6680a0968873a9a5.js +0 -1
  1142. package/app/.next-cli-build/static/chunks/app/api/version/update/route-6680a0968873a9a5.js +0 -1
  1143. package/app/.next-cli-build/static/chunks/app/landing/page-aad89e3261bbcd7a.js +0 -1
  1144. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-6680a0968873a9a5.js +0 -1
  1145. package/app/.next-cli-build/static/chunks/app/page-6680a0968873a9a5.js +0 -1
  1146. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-6680a0968873a9a5.js +0 -1
  1147. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-6680a0968873a9a5.js +0 -1
  1148. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-6680a0968873a9a5.js +0 -1
  1149. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-6680a0968873a9a5.js +0 -1
  1150. package/app/.next-cli-build/static/css/8f3253c444713bee.css +0 -1
  1151. package/app/cli/.build-home/.9router/db/backups/upgrade-0.5.15-to-0.5.18-0.5.18-20260703-152217/data.sqlite +0 -0
  1152. /package/app/.next-cli-build/static/{JwK09RQ_bBz2fzOX7dkNE → E7kVCQHn2zq2eycdAqlPc}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";exports.id=1679,exports.ids=[1679],exports.modules={7768:function(a,b,c){var d=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})};Object.defineProperty(b,"__esModule",{value:!0}),b.SocksClientError=b.SocksClient=void 0;let e=c(94735),f=c(91645),g=c(95800),h=c(60485),i=c(42045),j=c(21783),k=c(26174);Object.defineProperty(b,"SocksClientError",{enumerable:!0,get:function(){return k.SocksClientError}});let l=c(64367);class m extends e.EventEmitter{constructor(a){super(),this.options=Object.assign({},a),(0,i.validateSocksClientOptions)(a),this.setState(h.SocksClientState.Created)}static createConnection(a,b){return new Promise((c,d)=>{try{(0,i.validateSocksClientOptions)(a,["connect"])}catch(a){if("function"==typeof b)return b(a),c(a);return d(a)}let e=new m(a);e.connect(a.existing_socket),e.once("established",a=>{e.removeAllListeners(),"function"==typeof b&&b(null,a),c(a)}),e.once("error",a=>{e.removeAllListeners(),"function"==typeof b?(b(a),c(a)):d(a)})})}static createConnectionChain(a,b){return new Promise((c,e)=>d(this,void 0,void 0,function*(){try{(0,i.validateSocksClientChainOptions)(a)}catch(a){if("function"==typeof b)return b(a),c(a);return e(a)}a.randomizeChain&&(0,k.shuffleArray)(a.proxies);try{let d;for(let b=0;b<a.proxies.length;b++){let c=a.proxies[b],e=b===a.proxies.length-1?a.destination:{host:a.proxies[b+1].host||a.proxies[b+1].ipaddress,port:a.proxies[b+1].port},f=yield m.createConnection({command:"connect",proxy:c,destination:e,existing_socket:d});d=d||f.socket}"function"==typeof b&&b(null,{socket:d}),c({socket:d})}catch(a){"function"==typeof b?(b(a),c(a)):e(a)}}))}static createUDPFrame(a){let b=new g.SmartBuffer;return b.writeUInt16BE(0),b.writeUInt8(a.frameNumber||0),f.isIPv4(a.remoteHost.host)?(b.writeUInt8(h.Socks5HostType.IPv4),b.writeUInt32BE((0,i.ipv4ToInt32)(a.remoteHost.host))):f.isIPv6(a.remoteHost.host)?(b.writeUInt8(h.Socks5HostType.IPv6),b.writeBuffer((0,i.ipToBuffer)(a.remoteHost.host))):(b.writeUInt8(h.Socks5HostType.Hostname),b.writeUInt8(Buffer.byteLength(a.remoteHost.host)),b.writeString(a.remoteHost.host)),b.writeUInt16BE(a.remoteHost.port),b.writeBuffer(a.data),b.toBuffer()}static parseUDPFrame(a){let b=g.SmartBuffer.fromBuffer(a);b.readOffset=2;let c=b.readUInt8(),d=b.readUInt8();return{frameNumber:c,remoteHost:{host:d===h.Socks5HostType.IPv4?(0,i.int32ToIpv4)(b.readUInt32BE()):d===h.Socks5HostType.IPv6?l.Address6.fromByteArray(Array.from(b.readBuffer(16))).canonicalForm():b.readString(b.readUInt8()),port:b.readUInt16BE()},data:b.readBuffer()}}setState(a){this.state!==h.SocksClientState.Error&&(this.state=a)}connect(a){this.onDataReceived=a=>this.onDataReceivedHandler(a),this.onClose=()=>this.onCloseHandler(),this.onError=a=>this.onErrorHandler(a),this.onConnect=()=>this.onConnectHandler();let b=setTimeout(()=>this.onEstablishedTimeout(),this.options.timeout||h.DEFAULT_TIMEOUT);b.unref&&"function"==typeof b.unref&&b.unref(),a?this.socket=a:this.socket=new f.Socket,this.socket.once("close",this.onClose),this.socket.once("error",this.onError),this.socket.once("connect",this.onConnect),this.socket.on("data",this.onDataReceived),this.setState(h.SocksClientState.Connecting),this.receiveBuffer=new j.ReceiveBuffer,a?this.socket.emit("connect"):(this.socket.connect(this.getSocketOptions()),void 0!==this.options.set_tcp_nodelay&&null!==this.options.set_tcp_nodelay&&this.socket.setNoDelay(!!this.options.set_tcp_nodelay)),this.prependOnceListener("established",a=>{setImmediate(()=>{if(this.receiveBuffer.length>0){let b=this.receiveBuffer.get(this.receiveBuffer.length);a.socket.emit("data",b)}a.socket.resume()})})}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){this.state!==h.SocksClientState.Established&&this.state!==h.SocksClientState.BoundWaitingForConnection&&this.closeSocket(h.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){this.setState(h.SocksClientState.Connected),4===this.options.proxy.type?this.sendSocks4InitialHandshake():this.sendSocks5InitialHandshake(),this.setState(h.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(a){this.receiveBuffer.append(a),this.processData()}processData(){for(;this.state!==h.SocksClientState.Established&&this.state!==h.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize;)if(this.state===h.SocksClientState.SentInitialHandshake)4===this.options.proxy.type?this.handleSocks4FinalHandshakeResponse():this.handleInitialSocks5HandshakeResponse();else if(this.state===h.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===h.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else if(this.state===h.SocksClientState.BoundWaitingForConnection)4===this.options.proxy.type?this.handleSocks4IncomingConnectionResponse():this.handleSocks5IncomingConnectionResponse();else{this.closeSocket(h.ERRORS.InternalError);break}}onCloseHandler(){this.closeSocket(h.ERRORS.SocketClosed)}onErrorHandler(a){this.closeSocket(a.message)}removeInternalSocketHandlers(){this.socket.pause(),this.socket.removeListener("data",this.onDataReceived),this.socket.removeListener("close",this.onClose),this.socket.removeListener("error",this.onError),this.socket.removeListener("connect",this.onConnect)}closeSocket(a){this.state!==h.SocksClientState.Error&&(this.setState(h.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new k.SocksClientError(a,this.options)))}sendSocks4InitialHandshake(){let a=this.options.proxy.userId||"",b=new g.SmartBuffer;b.writeUInt8(4),b.writeUInt8(h.SocksCommand[this.options.command]),b.writeUInt16BE(this.options.destination.port),f.isIPv4(this.options.destination.host)?(b.writeBuffer((0,i.ipToBuffer)(this.options.destination.host)),b.writeStringNT(a)):(b.writeUInt8(0),b.writeUInt8(0),b.writeUInt8(0),b.writeUInt8(1),b.writeStringNT(a),b.writeStringNT(this.options.destination.host)),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(b.toBuffer())}handleSocks4FinalHandshakeResponse(){let a=this.receiveBuffer.get(8);if(a[1]!==h.Socks4Response.Granted)this.closeSocket(`${h.ERRORS.Socks4ProxyRejectedConnection} - (${h.Socks4Response[a[1]]})`);else if(h.SocksCommand[this.options.command]===h.SocksCommand.bind){let b=g.SmartBuffer.fromBuffer(a);b.readOffset=2;let c={port:b.readUInt16BE(),host:(0,i.int32ToIpv4)(b.readUInt32BE())};"0.0.0.0"===c.host&&(c.host=this.options.proxy.ipaddress),this.setState(h.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:c,socket:this.socket})}else this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){let a=this.receiveBuffer.get(8);if(a[1]!==h.Socks4Response.Granted)this.closeSocket(`${h.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${h.Socks4Response[a[1]]})`);else{let b=g.SmartBuffer.fromBuffer(a);b.readOffset=2;let c={port:b.readUInt16BE(),host:(0,i.int32ToIpv4)(b.readUInt32BE())};this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:c,socket:this.socket})}}sendSocks5InitialHandshake(){let a=new g.SmartBuffer,b=[h.Socks5Auth.NoAuth];for(let c of((this.options.proxy.userId||this.options.proxy.password)&&b.push(h.Socks5Auth.UserPass),void 0!==this.options.proxy.custom_auth_method&&b.push(this.options.proxy.custom_auth_method),a.writeUInt8(5),a.writeUInt8(b.length),b))a.writeUInt8(c);this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(a.toBuffer()),this.setState(h.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){let a=this.receiveBuffer.get(2);5!==a[0]?this.closeSocket(h.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion):a[1]===h.SOCKS5_NO_ACCEPTABLE_AUTH?this.closeSocket(h.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType):a[1]===h.Socks5Auth.NoAuth?(this.socks5ChosenAuthType=h.Socks5Auth.NoAuth,this.sendSocks5CommandRequest()):a[1]===h.Socks5Auth.UserPass?(this.socks5ChosenAuthType=h.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication()):a[1]===this.options.proxy.custom_auth_method?(this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication()):this.closeSocket(h.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){let a=this.options.proxy.userId||"",b=this.options.proxy.password||"",c=new g.SmartBuffer;c.writeUInt8(1),c.writeUInt8(Buffer.byteLength(a)),c.writeString(a),c.writeUInt8(Buffer.byteLength(b)),c.writeString(b),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write(c.toBuffer()),this.setState(h.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return d(this,void 0,void 0,function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size,this.socket.write((yield this.options.proxy.custom_auth_request_handler())),this.setState(h.SocksClientState.SentAuthentication)})}handleSocks5CustomAuthHandshakeResponse(a){return d(this,void 0,void 0,function*(){return yield this.options.proxy.custom_auth_response_handler(a)})}handleSocks5AuthenticationNoAuthHandshakeResponse(a){return d(this,void 0,void 0,function*(){return 0===a[1]})}handleSocks5AuthenticationUserPassHandshakeResponse(a){return d(this,void 0,void 0,function*(){return 0===a[1]})}handleInitialSocks5AuthenticationHandshakeResponse(){return d(this,void 0,void 0,function*(){this.setState(h.SocksClientState.ReceivedAuthenticationResponse);let a=!1;this.socks5ChosenAuthType===h.Socks5Auth.NoAuth?a=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===h.Socks5Auth.UserPass?a=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===this.options.proxy.custom_auth_method&&(a=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size))),a?this.sendSocks5CommandRequest():this.closeSocket(h.ERRORS.Socks5AuthenticationFailed)})}sendSocks5CommandRequest(){let a=new g.SmartBuffer;a.writeUInt8(5),a.writeUInt8(h.SocksCommand[this.options.command]),a.writeUInt8(0),f.isIPv4(this.options.destination.host)?(a.writeUInt8(h.Socks5HostType.IPv4),a.writeBuffer((0,i.ipToBuffer)(this.options.destination.host))):f.isIPv6(this.options.destination.host)?(a.writeUInt8(h.Socks5HostType.IPv6),a.writeBuffer((0,i.ipToBuffer)(this.options.destination.host))):(a.writeUInt8(h.Socks5HostType.Hostname),a.writeUInt8(this.options.destination.host.length),a.writeString(this.options.destination.host)),a.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(a.toBuffer()),this.setState(h.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){let a=this.receiveBuffer.peek(5);if(5!==a[0]||a[1]!==h.Socks5Response.Granted)this.closeSocket(`${h.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${h.Socks5Response[a[1]]}`);else{let b,c,d=a[3];if(d===h.Socks5HostType.IPv4){let a=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<a){this.nextRequiredPacketBufferSize=a;return}c=g.SmartBuffer.fromBuffer(this.receiveBuffer.get(a).slice(4)),"0.0.0.0"===(b={host:(0,i.int32ToIpv4)(c.readUInt32BE()),port:c.readUInt16BE()}).host&&(b.host=this.options.proxy.ipaddress)}else if(d===h.Socks5HostType.Hostname){let d=a[4],e=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(d);if(this.receiveBuffer.length<e){this.nextRequiredPacketBufferSize=e;return}b={host:(c=g.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(5))).readString(d),port:c.readUInt16BE()}}else if(d===h.Socks5HostType.IPv6){let a=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<a){this.nextRequiredPacketBufferSize=a;return}c=g.SmartBuffer.fromBuffer(this.receiveBuffer.get(a).slice(4)),b={host:l.Address6.fromByteArray(Array.from(c.readBuffer(16))).canonicalForm(),port:c.readUInt16BE()}}this.setState(h.SocksClientState.ReceivedFinalResponse),h.SocksCommand[this.options.command]===h.SocksCommand.connect?(this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:b,socket:this.socket})):h.SocksCommand[this.options.command]===h.SocksCommand.bind?(this.setState(h.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:b,socket:this.socket})):h.SocksCommand[this.options.command]===h.SocksCommand.associate&&(this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:b,socket:this.socket}))}}handleSocks5IncomingConnectionResponse(){let a=this.receiveBuffer.peek(5);if(5!==a[0]||a[1]!==h.Socks5Response.Granted)this.closeSocket(`${h.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${h.Socks5Response[a[1]]}`);else{let b,c,d=a[3];if(d===h.Socks5HostType.IPv4){let a=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<a){this.nextRequiredPacketBufferSize=a;return}c=g.SmartBuffer.fromBuffer(this.receiveBuffer.get(a).slice(4)),"0.0.0.0"===(b={host:(0,i.int32ToIpv4)(c.readUInt32BE()),port:c.readUInt16BE()}).host&&(b.host=this.options.proxy.ipaddress)}else if(d===h.Socks5HostType.Hostname){let d=a[4],e=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(d);if(this.receiveBuffer.length<e){this.nextRequiredPacketBufferSize=e;return}b={host:(c=g.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(5))).readString(d),port:c.readUInt16BE()}}else if(d===h.Socks5HostType.IPv6){let a=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<a){this.nextRequiredPacketBufferSize=a;return}c=g.SmartBuffer.fromBuffer(this.receiveBuffer.get(a).slice(4)),b={host:l.Address6.fromByteArray(Array.from(c.readBuffer(16))).canonicalForm(),port:c.readUInt16BE()}}this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:b,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}}b.SocksClient=m},13092:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),e(c(7768),b)},21783:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ReceiveBuffer=void 0;class c{constructor(a=4096){this.buffer=Buffer.allocUnsafe(a),this.offset=0,this.originalSize=a}get length(){return this.offset}append(a){if(!Buffer.isBuffer(a))throw Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+a.length>=this.buffer.length){let b=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+a.length)),b.copy(this.buffer)}return a.copy(this.buffer,this.offset),this.offset+=a.length}peek(a){if(a>this.offset)throw Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,a)}get(a){if(a>this.offset)throw Error("Attempted to read beyond the bounds of the managed internal data.");let b=Buffer.allocUnsafe(a);return this.buffer.slice(0,a).copy(b),this.buffer.copyWithin(0,a,a+this.offset-a),this.offset-=a,b}}b.ReceiveBuffer=c},25254:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0});let d=c(79428),e={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};function f(a){var b;return"number"==typeof a&&isFinite(a)&&"number"==typeof(b=a)&&isFinite(b)&&Math.floor(b)===b}function g(a,b){if("number"==typeof a){if(!f(a)||a<0)throw Error(b?e.INVALID_OFFSET:e.INVALID_LENGTH)}else throw Error(b?e.INVALID_OFFSET_NON_NUMBER:e.INVALID_LENGTH_NON_NUMBER)}b.ERRORS=e,b.checkEncoding=function(a){if(!d.Buffer.isEncoding(a))throw Error(e.INVALID_ENCODING)},b.isFiniteInteger=f,b.checkLengthValue=function(a){g(a,!1)},b.checkOffsetValue=function(a){g(a,!0)},b.checkTargetOffset=function(a,b){if(a<0||a>b.length)throw Error(e.INVALID_TARGET_OFFSET)},b.bigIntAndBufferInt64Check=function(a){if("u"<typeof BigInt)throw Error("Platform does not support JS BigInt type.");if(void 0===d.Buffer.prototype[a])throw Error(`Platform does not support Buffer.prototype.${a}.`)}},26174:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.SocksClientError=void 0,b.shuffleArray=function(a){for(let b=a.length-1;b>0;b--){let c=Math.floor(Math.random()*(b+1));[a[b],a[c]]=[a[c],a[b]]}};class c extends Error{constructor(a,b){super(a),this.options=b}}b.SocksClientError=c},28127:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.AddressError=void 0;class c extends Error{constructor(a,b){super(a),this.name="AddressError",this.parseMessage=b}}b.AddressError=c},28673:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.SPECIAL_PURPOSE=b.RE_URL_WITH_PORT=b.RE_URL=b.RE_ZONE_STRING=b.RE_SUBNET_STRING=b.RE_BAD_ADDRESS=b.RE_BAD_CHARACTERS=b.TYPES=b.SCOPES=b.GROUPS=b.BITS=void 0,b.BITS=128,b.GROUPS=8,b.SCOPES={0:"Reserved",1:"Interface local",2:"Link local",4:"Admin local",5:"Site local",8:"Organization local",14:"Global",15:"Reserved"},b.TYPES={"ff01::1/128":"Multicast (All nodes on this interface)","ff01::2/128":"Multicast (All routers on this interface)","ff02::1/128":"Multicast (All nodes on this link)","ff02::2/128":"Multicast (All routers on this link)","ff05::2/128":"Multicast (All routers in this site)","ff02::5/128":"Multicast (OSPFv3 AllSPF routers)","ff02::6/128":"Multicast (OSPFv3 AllDR routers)","ff02::9/128":"Multicast (RIP routers)","ff02::a/128":"Multicast (EIGRP routers)","ff02::d/128":"Multicast (PIM routers)","ff02::16/128":"Multicast (MLDv2 reports)","ff01::fb/128":"Multicast (mDNSv6)","ff02::fb/128":"Multicast (mDNSv6)","ff05::fb/128":"Multicast (mDNSv6)","ff02::1:2/128":"Multicast (All DHCP servers and relay agents on this link)","ff05::1:2/128":"Multicast (All DHCP servers and relay agents in this site)","ff02::1:3/128":"Multicast (All DHCP servers on this link)","ff05::1:3/128":"Multicast (All DHCP servers in this site)","::/128":"Unspecified","::1/128":"Loopback","::ffff:0:0/96":"IPv4-mapped","ff00::/8":"Multicast","fe80::/10":"Link-local unicast","fc00::/7":"Unique local","2001::/32":"Teredo","2001:2::/48":"Benchmarking","2002::/16":"6to4","2001:db8::/32":"Documentation","3fff::/20":"Documentation","100::/64":"Discard-only","fec0::/10":"Site-local unicast (deprecated)","::/96":"IPv4-compatible (deprecated)","64:ff9b::/96":"NAT64 (well-known)","64:ff9b:1::/48":"NAT64 (local-use)"},b.RE_BAD_CHARACTERS=/([^0-9a-f:/%])/gi,b.RE_BAD_ADDRESS=/([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi,b.RE_SUBNET_STRING=/\/\d{1,3}(?=%|$)/,b.RE_ZONE_STRING=/%.*$/,b.RE_URL=/^(?:\[([0-9a-f:.]+)\]|([0-9a-f:.]+))(?:[/?#].*)?$/i,b.RE_URL_WITH_PORT=/^\[([0-9a-f:.]+)\]:([0-9]{1,5})(?:[/?#].*)?$/i,b.SPECIAL_PURPOSE=[["::1/128","Loopback Address",!1],["::/128","Unspecified Address",!1],["::ffff:0:0/96","IPv4-mapped Address",!1],["64:ff9b::/96","IPv4-IPv6 Translat.",!0],["64:ff9b:1::/48","IPv4-IPv6 Translat.",!1],["100::/64","Discard-Only Address Block",!1],["100:0:0:1::/64","Dummy IPv6 Prefix",!1],["2001::/23","IETF Protocol Assignments",!1],["2001::/32","TEREDO",!1],["2001:1::1/128","Port Control Protocol Anycast",!0],["2001:1::2/128","Traversal Using Relays around NAT Anycast",!0],["2001:1::3/128","DNS-SD Service Registration Protocol Anycast",!0],["2001:2::/48","Benchmarking",!1],["2001:3::/32","AMT",!0],["2001:4:112::/48","AS112-v6",!0],["2001:10::/28","Deprecated (previously ORCHID)",null],["2001:20::/28","ORCHIDv2",!0],["2001:30::/28","Drone Remote ID Protocol Entity Tags (DETs) Prefix",!0],["2001:db8::/32","Documentation",!1],["2002::/16","6to4",!1],["2620:4f:8000::/48","Direct Delegation AS112 Service",!0],["3fff::/20","Documentation",!1],["5f00::/16","Segment Routing (SRv6) SIDs",!1],["fc00::/7","Unique-Local",!1],["fe80::/10","Link-Local Unicast",!1]]},28798:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b};Object.defineProperty(b,"__esModule",{value:!0}),b.Address6=void 0;let g=f(c(97462)),h=f(c(51835)),i=f(c(28673)),j=f(c(75737)),k=c(79440),l=c(29142),m=c(28127),n=c(97462),o=g.isCorrect(i.BITS);function p(a){if(!a)throw Error("Assertion failed.")}function q(a){return(a=a.replace(/^(0{1,})([1-9]+)$/,'<span class="parse-error">$1</span>$2')).replace(/^(0{1,})(0)$/,'<span class="parse-error">$1</span>$2')}function r(a){return parseInt(a,16).toString(16).padStart(4,"0")}function s(a){return 255&a}class t{constructor(a,b){this.addressMinusSuffix="",this.parsedSubnet="",this.subnet="/128",this.subnetMask=128,this.v4=!1,this.zone="",this.isInSubnet=g.isInSubnet,this.isHostInSubnet=g.isHostInSubnet,this.isCorrect=o,void 0===b?this.groups=i.GROUPS:this.groups=b,this.address=a;const c=i.RE_SUBNET_STRING.exec(a);if(c){if(this.parsedSubnet=c[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,Number.isNaN(this.subnetMask)||this.subnetMask<0||this.subnetMask>i.BITS)throw new m.AddressError("Invalid subnet mask.");a=a.replace(i.RE_SUBNET_STRING,"")}if(/\//.test(a))throw new m.AddressError("Invalid subnet mask.");const d=i.RE_ZONE_STRING.exec(a);d&&(this.zone=d[0],a=a.replace(i.RE_ZONE_STRING,"")),this.addressMinusSuffix=a,this.parsedAddress=this.parse(this.addressMinusSuffix)}static isValid(a){try{return new t(a),!0}catch{return!1}}static fromBigInt(a){if(a<BigInt(0)||a>(BigInt(1)<<BigInt(i.BITS))-BigInt(1))throw new m.AddressError("IPv6 BigInt must be in the range 0 to 2**128 - 1");let b=a.toString(16).padStart(32,"0"),c=[];for(let a=0;a<i.GROUPS;a++)c.push(b.slice(4*a,(a+1)*4));return new t(c.join(":"))}static fromURL(a){var b;let c,d,e,f,g=null,h=a.replace(/^[a-z][a-z0-9+.-]*:\/\//i,"");if(-1!==h.indexOf("[")&&-1!==h.indexOf("]:")){if(e="failed to parse address with port",null===(d=i.RE_URL_WITH_PORT.exec(h)))return{error:e,address:null,port:null};c=d[1],g=d[2]}else{if(e="failed to parse address from URL",null===(d=i.RE_URL.exec(h)))return{error:e,address:null,port:null};c=null!=(b=d[1])?b:d[2]}g?((g=parseInt(g,10))<0||g>65535)&&(g=null):g=null;try{f=new t(c)}catch{return{error:e,address:null,port:null}}return{address:f,port:g}}static fromAddressAndMask(a,b){let c=g.prefixLengthFromMask(new t(b).bigInt(),i.BITS);return new t(`${a}/${c}`)}static fromAddressAndWildcardMask(a,b){let c=new t(b).bigInt(),d=(BigInt(1)<<BigInt(i.BITS))-BigInt(1),e=g.prefixLengthFromMask(c^d,i.BITS);return new t(`${a}/${e}`)}static fromWildcard(a){let b;if(a.includes("%")||a.includes("/"))throw new m.AddressError("Wildcard pattern must not include a zone or CIDR suffix");let c=a.split("::");if(c.length>2)throw new m.AddressError("Wildcard pattern cannot contain more than one '::'");if(2===c.length){let a=""===c[0]?[]:c[0].split(":"),d=""===c[1]?[]:c[1].split(":"),e=i.GROUPS-a.length-d.length;if(e<1)throw new m.AddressError("Wildcard pattern with '::' has too many groups");b=[...a,...Array(e).fill("0"),...d]}else b=a.split(":");if(b.length!==i.GROUPS)throw new m.AddressError("Wildcard pattern must have 8 groups");let d=-1;for(let a=0;a<b.length;a++)if("*"===b[a])-1===d&&(d=a);else if(-1!==d)throw new m.AddressError("Wildcard `*` must only appear in trailing groups (e.g. `2001:db8:*:*:*:*:*:*`)");let e=-1===d?0:b.length-d,f=b.map(a=>"*"===a?"0":a),g=i.BITS-16*e;return new t(`${f.join(":")}/${g}`)}static fromAddress4(a){let b=new k.Address4(a),c=i.BITS-(h.BITS-b.subnetMask);return new t(`::ffff:${b.correctForm()}/${c}`)}static fromArpa(a){let b=a.replace(/(\.ip6\.arpa)?\.?$/,"");if(!/^[0-9a-f](\.[0-9a-f]){0,31}$/i.test(b))throw new m.AddressError("Invalid 'ip6.arpa' form.");let c=b.split(".").reverse(),d=4*c.length,e=c.join("").padEnd(32,"0"),f=[];for(let a=0;a<i.GROUPS;a++)f.push(e.slice(4*a,(a+1)*4));return new t(`${f.join(":")}/${d}`)}microsoftTranscription(){return`${this.correctForm().replace(/:/g,"-")}.ipv6-literal.net`}mask(a=this.subnetMask){return this.getBitsBase2(0,a)}possibleSubnets(a=128){let b=i.BITS-this.subnetMask-Math.abs(a-i.BITS);if(b<0)return"0";var c=(BigInt("2")**BigInt(b)).toString(10);let d=/(\d+)(\d{3})/;for(;d.test(c);)c=c.replace(d,"$1,$2");return c}_startAddress(){return BigInt(`0b${this.mask()+"0".repeat(i.BITS-this.subnetMask)}`)}startAddress(){return t.fromBigInt(this._startAddress())}startAddressExclusive(){let a=BigInt("1");return t.fromBigInt(this._startAddress()+a)}_endAddress(){return BigInt(`0b${this.mask()+"1".repeat(i.BITS-this.subnetMask)}`)}endAddress(){return t.fromBigInt(this._endAddress())}endAddressExclusive(){let a=BigInt("1");return t.fromBigInt(this._endAddress()-a)}offset(a){return t.fromBigInt(g.offsetBigInt(this.bigInt(),a,i.BITS,"IPv6")).withSubnetMask(this.subnetMask)}nextNetwork(){return t.fromBigInt(g.offsetBigInt(this._endAddress(),1,i.BITS,"IPv6")).withSubnetMask(this.subnetMask)}withSubnetMask(a){return new t(`${this.correctForm()}/${a}`)}subnetMaskAddress(){return t.fromBigInt(BigInt(`0b${"1".repeat(this.subnetMask)}${"0".repeat(i.BITS-this.subnetMask)}`))}wildcardMask(){return t.fromBigInt(BigInt(`0b${"0".repeat(this.subnetMask)}${"1".repeat(i.BITS-this.subnetMask)}`))}networkForm(){return`${this.startAddress().correctForm()}/${this.subnetMask}`}getScope(){let a=this.getType();return"Multicast"===a||a.startsWith("Multicast ")?i.SCOPES[parseInt(this.getBits(12,16).toString(10),10)]||"Unknown":"Link-local unicast"===a||"Loopback"===a?"Link local":"Unspecified"===a?"Unknown":"Global"}getType(){for(let a=0;a<u.length;a++){let b=u[a];if(this.isHostInSubnet(b[0]))return b[1]}return"Global unicast"}getBits(a,b){return BigInt(`0b${this.getBitsBase2(a,b)}`)}getBitsBase2(a,b){return this.binaryZeroPad().slice(a,b)}getBitsBase16(a,b){let c=b-a;if(c%4!=0)throw Error("Length of bits to retrieve must be divisible by four");return this.getBits(a,b).toString(16).padStart(c/4,"0")}getBitsPastSubnet(){return this.getBitsBase2(this.subnetMask,i.BITS)}reverseForm(a){a||(a={});let b=Math.floor(this.subnetMask/4),c=this.canonicalForm().replace(/:/g,"").split("").slice(0,b).reverse().join(".");return b>0?a.omitSuffix?c:`${c}.ip6.arpa.`:a.omitSuffix?"":"ip6.arpa."}correctForm(){let a,b=[],c=0,d=[];for(a=0;a<this.parsedAddress.length;a++){let b=parseInt(this.parsedAddress[a],16);0===b&&c++,0!==b&&c>0&&(c>1&&d.push([a-c,a-1]),c=0)}c>1&&d.push([this.parsedAddress.length-c,this.parsedAddress.length-1]);let e=d.map(a=>a[1]-a[0]+1);if(d.length>0){let a=e.indexOf(Math.max(...e));b=function(a,b){let c,d=[],e=[];for(c=0;c<a.length;c++)c<b[0]?d.push(a[c]):c>b[1]&&e.push(a[c]);return d.concat(["compact"]).concat(e)}(this.parsedAddress,d[a])}else b=this.parsedAddress;for(a=0;a<b.length;a++)"compact"!==b[a]&&(b[a]=parseInt(b[a],16).toString(16));let f=b.join(":");return(f=(f=f.replace(/^compact$/,"::")).replace(/(^compact)|(compact$)/,":")).replace(/compact/,"")}binaryZeroPad(){return void 0===this._binaryZeroPad&&(this._binaryZeroPad=this.bigInt().toString(2).padStart(i.BITS,"0")),this._binaryZeroPad}parse4in6(a){if(-1===a.indexOf("."))return a;let b=a.split(":"),c=b.slice(-1)[0],d=c.split(".");if(d.length===h.GROUPS&&d.every(a=>/^\d{1,3}$/.test(a))&&d.some(a=>/^0\d/.test(a))){let a=d.map(q).join("."),c=b.slice(0,-1).map(j.escapeHtml).join(":"),e=b.length>1?":":"";throw new m.AddressError("IPv4 addresses can't have leading zeroes.",`${c}${e}${a}`)}let e=c.match(h.RE_ADDRESS);if(e){this.parsedAddress4=e[0];let c=this.subnetMask>=96?`/${this.subnetMask-96}`:"";this.address4=new k.Address4(`${this.parsedAddress4}${c}`),this.v4=!0,b[b.length-1]=this.address4.toGroup6(),a=b.join(":")}return a}parse(a){let b=(a=this.parse4in6(a)).match(i.RE_BAD_CHARACTERS);if(b)throw new m.AddressError(`Bad character${b.length>1?"s":""} detected in address: ${b.join("")}`,a.replace(i.RE_BAD_CHARACTERS,'<span class="parse-error">$1</span>'));let c=a.match(i.RE_BAD_ADDRESS);if(c)throw new m.AddressError(`Address failed regex: ${c.join("")}`,a.replace(i.RE_BAD_ADDRESS,'<span class="parse-error">$1</span>'));let d=[],e=a.split("::");if(2===e.length){let a=e[0].split(":"),b=e[1].split(":");1===a.length&&""===a[0]&&(a=[]),1===b.length&&""===b[0]&&(b=[]);let c=this.groups-(a.length+b.length);if(!c)throw new m.AddressError("Error parsing groups");this.elidedGroups=c,this.elisionBegin=a.length,this.elisionEnd=a.length+this.elidedGroups,d=d.concat(a);for(let a=0;a<c;a++)d.push("0");d=d.concat(b)}else if(1===e.length)d=a.split(":"),this.elidedGroups=0;else throw new m.AddressError("Too many :: groups found");if((d=d.map(a=>parseInt(a,16).toString(16))).length!==this.groups)throw new m.AddressError("Incorrect number of groups found");return d}canonicalForm(){return this.parsedAddress.map(r).join(":")}decimal(){return this.parsedAddress.map(a=>parseInt(a,16).toString(10).padStart(5,"0")).join(":")}bigInt(){return BigInt(`0x${this.parsedAddress.map(r).join("")}`)}to4(){let a=this.binaryZeroPad().split(""),b=BigInt(`0b${a.slice(96,128).join("")}`).toString(16).padStart(8,"0");if(this.subnetMask>=96){let a=this.subnetMask-96,c=[];for(let a=0;a<8;a+=2)c.push(parseInt(b.slice(a,a+2),16));return new k.Address4(`${c.join(".")}/${a}`)}return k.Address4.fromHex(b)}to4in6(){let a=this.to4(),b=new t(this.parsedAddress.slice(0,6).join(":"),6).correctForm(),c="";return/:$/.test(b)||(c=":"),b+c+a.correctForm()}inspectTeredo(){let a=this.getBitsBase16(0,32),b=(this.getBits(80,96)^BigInt("0xffff")).toString(),c=k.Address4.fromHex(this.getBitsBase16(32,64)),d=this.getBits(96,128),e=k.Address4.fromHex((d^BigInt("0xffffffff")).toString(16).padStart(8,"0")),f=this.getBitsBase2(64,80),g=(0,n.testBit)(f,15),h=(0,n.testBit)(f,14),i=(0,n.testBit)(f,8),j=(0,n.testBit)(f,9),l=BigInt(`0b${f.slice(2,6)+f.slice(8,16)}`).toString(10);return{prefix:`${a.slice(0,4)}:${a.slice(4,8)}`,server4:c.address,client4:e.address,flags:f,coneNat:g,microsoft:{reserved:h,universalLocal:j,groupIndividual:i,nonce:l},udpPort:b}}inspect6to4(){let a=this.getBitsBase16(0,16),b=k.Address4.fromHex(this.getBitsBase16(16,48));return{prefix:a.slice(0,4),gateway:b.address}}to6to4(){return this.is4()?new t(["2002",this.getBitsBase16(96,112),this.getBitsBase16(112,128),":/16"].join(":")):null}static fromAddress4Nat64(a,b="64:ff9b::/96"){let c,d=new k.Address4(a),e=new t(b),f=e.subnetMask;if(32!==f&&40!==f&&48!==f&&56!==f&&64!==f&&96!==f)throw new m.AddressError("NAT64 prefix length must be 32, 40, 48, 56, 64, or 96");let g=e.binaryZeroPad(),h=d.binaryZeroPad();if(96===f)c=g.slice(0,96)+h;else{let a=64-f;c=[g.slice(0,f),h.slice(0,a),"00000000",h.slice(a),"0".repeat(56-(32-a))].join("")}let i=BigInt(`0b${c}`).toString(16).padStart(32,"0"),j=[];for(let a=0;a<8;a++)j.push(i.slice(4*a,(a+1)*4));return new t(j.join(":"))}toAddress4Nat64(a="64:ff9b::/96"){let b,c=new t(a),d=c.subnetMask;if(32!==d&&40!==d&&48!==d&&56!==d&&64!==d&&96!==d)throw new m.AddressError("NAT64 prefix length must be 32, 40, 48, 56, 64, or 96");if(!this.isHostInSubnet(c))return null;let e=this.binaryZeroPad();if(96===d)b=e.slice(96,128);else{let a=64-d;b=e.slice(d,d+a)+e.slice(72,72+(32-a))}let f=[];for(let a=0;a<4;a++)f.push(parseInt(b.slice(8*a,(a+1)*8),2).toString());return new k.Address4(f.join("."))}toByteArray(){let a=this.bigInt().toString(16).padStart(i.BITS/4,"0"),b=[];for(let c=0,d=a.length;c<d;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b}toUnsignedByteArray(){return this.toByteArray().map(s)}static fromByteArray(a){return g.assertByteArray(a,16,"IPv6",-128),this.fromUnsignedByteArray(a.map(s))}static fromUnsignedByteArray(a){g.assertByteArray(a,16,"IPv6",0);let b=BigInt("256"),c=BigInt("0"),d=BigInt("1");for(let e=a.length-1;e>=0;e--)c+=d*BigInt(a[e].toString(10)),d*=b;return t.fromBigInt(c)}isCanonical(){return this.addressMinusSuffix===this.canonicalForm()}isLinkLocal(){let a=this.embeddedIPv4();return a?a.isLinkLocal():this.isHostInSubnet(y)}isMulticast(){let a=this.embeddedIPv4();if(a)return a.isMulticast();let b=this.getType();return"Multicast"===b||b.startsWith("Multicast ")}is4(){return this.v4}isMapped4(){return this.isHostInSubnet(D)}embeddedIPv4(){return this.isMapped4()||this.isHostInSubnet(E)?this.to4():null}isTeredo(){return this.isHostInSubnet(v)}is6to4(){return this.isHostInSubnet(w)}isLoopback(){let a=this.embeddedIPv4();return a?a.isLoopback():"Loopback"===this.getType()}isULA(){return this.isHostInSubnet(x)}isPrivate(){let a=this.embeddedIPv4();return a?a.isPrivate():this.isULA()||this.isHostInSubnet(F)}isCGNAT(){let a=this.embeddedIPv4();return!!a&&a.isCGNAT()}isBroadcast(){let a=this.embeddedIPv4();return!!a&&a.isBroadcast()}isUnspecified(){let a=this.embeddedIPv4();return a?a.isUnspecified():"Unspecified"===this.getType()}isDocumentation(){return z.some(a=>this.isHostInSubnet(a))}isBenchmarking(){let a=this.embeddedIPv4();return a?a.isBenchmarking():this.isHostInSubnet(A)}isGlobal(){let a=this.embeddedIPv4();return a?a.isGlobal():this.isHostInSubnet(B)&&g.isGloballyReachable.call(this,C)}href(a){return a=void 0===a?"":`:${a}`,`http://[${this.correctForm()}]${a}/`}link(a){a||(a={}),void 0===a.className&&(a.className=""),void 0===a.prefix&&(a.prefix="/#address="),void 0===a.v4&&(a.v4=!1);let b=this.correctForm;a.v4&&(b=this.to4in6);let c=b.call(this),d=j.escapeHtml(`${a.prefix}${c}`),e=j.escapeHtml(c);if(a.className){let b=j.escapeHtml(a.className);return`<a href="${d}" class="${b}">${e}</a>`}return`<a href="${d}">${e}</a>`}group(){if(0===this.elidedGroups)return j.simpleGroup(this.addressMinusSuffix).join(":");p("number"==typeof this.elidedGroups),p("number"==typeof this.elisionBegin);let a=[],[b,c]=this.addressMinusSuffix.split("::");b.length?a.push(...j.simpleGroup(b)):a.push("");let d=["hover-group"];for(let a=this.elisionBegin;a<this.elisionBegin+this.elidedGroups;a++)d.push(`group-${a}`);return a.push(`<span class="${d.join(" ")}"></span>`),c.length?a.push(...j.simpleGroup(c,this.elisionEnd)):a.push(""),this.is4()&&(p(this.address4 instanceof k.Address4),a.pop(),a.push(this.address4.groupForV6())),a.join(":")}regularExpressionString(a=!1){let b=[],c=new t(this.correctForm());if(0===c.elidedGroups)b.push((0,l.simpleRegularExpression)(c.parsedAddress));else if(c.elidedGroups===i.GROUPS)b.push((0,l.possibleElisions)(i.GROUPS));else{let a=c.address.split("::");a[0].length&&b.push((0,l.simpleRegularExpression)(a[0].split(":"))),p("number"==typeof c.elidedGroups),b.push((0,l.possibleElisions)(c.elidedGroups,0!==a[0].length,0!==a[1].length)),a[1].length&&b.push((0,l.simpleRegularExpression)(a[1].split(":"))),b=[b.join(":")]}return a||(b=["(?=^|",l.ADDRESS_BOUNDARY,"|[^\\w\\:])(",...b,")(?=[^\\w\\:]|",l.ADDRESS_BOUNDARY,"|$)"]),b.join("")}regularExpression(a=!1){return RegExp(this.regularExpressionString(a),"i")}}b.Address6=t;let u=Object.keys(i.TYPES).map(a=>[new t(a),i.TYPES[a]]),v=new t("2001::/32"),w=new t("2002::/16"),x=new t("fc00::/7"),y=new t("fe80::/10"),z=[new t("2001:db8::/32"),new t("3fff::/20")],A=new t("2001:2::/48"),B=new t("2000::/3"),C=i.SPECIAL_PURPOSE.map(([a,,b])=>({subnet:new t(a),reachable:b})),D=new t("::ffff:0:0/96"),E=new t("64:ff9b::/96"),F=new t("64:ff9b:1::/48")},29142:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b};Object.defineProperty(b,"__esModule",{value:!0}),b.ADDRESS_BOUNDARY=void 0,b.groupPossibilities=h,b.padGroup=i,b.simpleRegularExpression=function(a){let b=[];a.forEach((a,c)=>{0===parseInt(a,16)&&b.push(c)});let c=b.map(b=>a.map((a,c)=>{if(c===b){let b=0===c||c===g.GROUPS-1?":":"";return h([i(a),b])}return i(a)}).join(":"));return c.push(a.map(i).join(":")),h(c)},b.possibleElisions=function(a,b,c){let d=[];b||c||d.push("::"),b&&c&&d.push(""),(c&&!b||!c&&b)&&d.push(":"),d.push(`${b?"":":"}(:0{1,4}){1,${a-1}}`),d.push(`(0{1,4}:){1,${a-1}}${c?"":":"}`),d.push(`(0{1,4}:){${a-1}}0{1,4}`);for(let b=1;b<a-1;b++)for(let c=1;c<a-b;c++)d.push(`(0{1,4}:){${c}}:(0{1,4}:){${a-c-b-1}}0{1,4}`);return h(d)};let g=f(c(28673));function h(a){return`(${a.join("|")})`}function i(a){return a.length<4?`0{0,${4-a.length}}${a}`:a}b.ADDRESS_BOUNDARY="[^A-Fa-f0-9:]"},42045:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.validateSocksClientOptions=function(a,b=["connect","bind","associate"]){if(!e.SocksCommand[a.command])throw new d.SocksClientError(e.ERRORS.InvalidSocksCommand,a);if(-1===b.indexOf(a.command))throw new d.SocksClientError(e.ERRORS.InvalidSocksCommandForOperation,a);if(!j(a.destination))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsDestination,a);if(!k(a.proxy))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsProxy,a);if(i(a.proxy,a),a.timeout&&!l(a.timeout))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsTimeout,a);if(a.existing_socket&&!(a.existing_socket instanceof f.Duplex))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsExistingSocket,a)},b.validateSocksClientChainOptions=function(a){if("connect"!==a.command)throw new d.SocksClientError(e.ERRORS.InvalidSocksCommandChain,a);if(!j(a.destination))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsDestination,a);if(!(a.proxies&&Array.isArray(a.proxies)&&a.proxies.length>=2))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsProxiesLength,a);if(a.proxies.forEach(b=>{if(!k(b))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsProxy,a);i(b,a)}),a.timeout&&!l(a.timeout))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsTimeout,a)},b.ipv4ToInt32=function(a){return new g.Address4(a).toArray().reduce((a,b)=>(a<<8)+b,0)>>>0},b.int32ToIpv4=function(a){return[a>>>24&255,a>>>16&255,a>>>8&255,255&a].join(".")},b.ipToBuffer=function(a){if(h.isIPv4(a)){let b=new g.Address4(a);return Buffer.from(b.toArray())}if(h.isIPv6(a)){let b=new g.Address6(a);return Buffer.from(b.canonicalForm().split(":").map(a=>a.padStart(4,"0")).join(""),"hex")}throw Error("Invalid IP address format")};let d=c(26174),e=c(60485),f=c(27910),g=c(64367),h=c(91645);function i(a,b){if(void 0!==a.custom_auth_method){if(a.custom_auth_method<e.SOCKS5_CUSTOM_AUTH_START||a.custom_auth_method>e.SOCKS5_CUSTOM_AUTH_END)throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsCustomAuthRange,b);if(void 0===a.custom_auth_request_handler||"function"!=typeof a.custom_auth_request_handler||void 0===a.custom_auth_response_size||void 0===a.custom_auth_response_handler||"function"!=typeof a.custom_auth_response_handler)throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,b)}}function j(a){return a&&"string"==typeof a.host&&256>Buffer.byteLength(a.host)&&"number"==typeof a.port&&a.port>=0&&a.port<=65535}function k(a){return a&&("string"==typeof a.host||"string"==typeof a.ipaddress)&&"number"==typeof a.port&&a.port>=0&&a.port<=65535&&(4===a.type||5===a.type)}function l(a){return"number"==typeof a&&a>0}},48326:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b};Object.defineProperty(b,"__esModule",{value:!0}),b.req=b.json=b.toBuffer=void 0;let g=f(c(81630)),h=f(c(55591));async function i(a){let b=0,c=[];for await(let d of a)b+=d.length,c.push(d);return Buffer.concat(c,b)}b.toBuffer=i,b.json=async function(a){let b=(await i(a)).toString("utf8");try{return JSON.parse(b)}catch(a){throw a.message+=` (input: ${b})`,a}},b.req=function(a,b={}){let c=(("string"==typeof a?a:a.href).startsWith("https:")?h:g).request(a,b),d=new Promise((a,b)=>{c.once("response",a).once("error",b).end()});return c.then=d.then.bind(d),c}},51835:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.SPECIAL_PURPOSE=b.RE_SUBNET_STRING=b.RE_ADDRESS=b.GROUPS=b.BITS=void 0,b.BITS=32,b.GROUPS=4,b.RE_ADDRESS=/^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$/g,b.RE_SUBNET_STRING=/\/\d{1,2}$/,b.SPECIAL_PURPOSE=[["0.0.0.0/8","This network",!1],["0.0.0.0/32","This host on this network",!1],["10.0.0.0/8","Private-Use",!1],["100.64.0.0/10","Shared Address Space",!1],["127.0.0.0/8","Loopback",!1],["169.254.0.0/16","Link Local",!1],["172.16.0.0/12","Private-Use",!1],["192.0.0.0/24","IETF Protocol Assignments",!1],["192.0.0.0/29","IPv4 Service Continuity Prefix",!1],["192.0.0.8/32","IPv4 dummy address",!1],["192.0.0.9/32","Port Control Protocol Anycast",!0],["192.0.0.10/32","Traversal Using Relays around NAT Anycast",!0],["192.0.0.170/32","NAT64/DNS64 Discovery",!1],["192.0.0.171/32","NAT64/DNS64 Discovery",!1],["192.0.2.0/24","Documentation (TEST-NET-1)",!1],["192.31.196.0/24","AS112-v4",!0],["192.52.193.0/24","AMT",!0],["192.88.99.0/24","Deprecated (6to4 Relay Anycast)",null],["192.88.99.2/32","6a44-relay anycast address",!1],["192.168.0.0/16","Private-Use",!1],["192.175.48.0/24","Direct Delegation AS112 Service",!0],["198.18.0.0/15","Benchmarking",!1],["198.51.100.0/24","Documentation (TEST-NET-2)",!1],["203.0.113.0/24","Documentation (TEST-NET-3)",!1],["240.0.0.0/4","Reserved",!1],["255.255.255.255/32","Limited Broadcast",!1]]},60485:(a,b)=>{var c,d,e,f,g,h,i,j,k,l,m,n;Object.defineProperty(b,"__esModule",{value:!0}),b.SOCKS5_NO_ACCEPTABLE_AUTH=b.SOCKS5_CUSTOM_AUTH_END=b.SOCKS5_CUSTOM_AUTH_START=b.SOCKS_INCOMING_PACKET_SIZES=b.SocksClientState=b.Socks5Response=b.Socks5HostType=b.Socks5Auth=b.Socks4Response=b.SocksCommand=b.ERRORS=b.DEFAULT_TIMEOUT=void 0,b.DEFAULT_TIMEOUT=3e4,b.ERRORS={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"},b.SOCKS_INCOMING_PACKET_SIZES={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:a=>a+7,Socks4Response:8},(i=c||(b.SocksCommand=c={}))[i.connect=1]="connect",i[i.bind=2]="bind",i[i.associate=3]="associate",(j=d||(b.Socks4Response=d={}))[j.Granted=90]="Granted",j[j.Failed=91]="Failed",j[j.Rejected=92]="Rejected",j[j.RejectedIdent=93]="RejectedIdent",(k=e||(b.Socks5Auth=e={}))[k.NoAuth=0]="NoAuth",k[k.GSSApi=1]="GSSApi",k[k.UserPass=2]="UserPass",b.SOCKS5_CUSTOM_AUTH_START=128,b.SOCKS5_CUSTOM_AUTH_END=254,b.SOCKS5_NO_ACCEPTABLE_AUTH=255,(l=f||(b.Socks5Response=f={}))[l.Granted=0]="Granted",l[l.Failure=1]="Failure",l[l.NotAllowed=2]="NotAllowed",l[l.NetworkUnreachable=3]="NetworkUnreachable",l[l.HostUnreachable=4]="HostUnreachable",l[l.ConnectionRefused=5]="ConnectionRefused",l[l.TTLExpired=6]="TTLExpired",l[l.CommandNotSupported=7]="CommandNotSupported",l[l.AddressNotSupported=8]="AddressNotSupported",(m=g||(b.Socks5HostType=g={}))[m.IPv4=1]="IPv4",m[m.Hostname=3]="Hostname",m[m.IPv6=4]="IPv6",(n=h||(b.SocksClientState=h={}))[n.Created=0]="Created",n[n.Connecting=1]="Connecting",n[n.Connected=2]="Connected",n[n.SentInitialHandshake=3]="SentInitialHandshake",n[n.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",n[n.SentAuthentication=5]="SentAuthentication",n[n.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",n[n.SentFinalHandshake=7]="SentFinalHandshake",n[n.ReceivedFinalResponse=8]="ReceivedFinalResponse",n[n.BoundWaitingForConnection=9]="BoundWaitingForConnection",n[n.Established=10]="Established",n[n.Disconnected=11]="Disconnected",n[n.Error=99]="Error"},61679:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.SocksProxyAgent=void 0;let h=c(13092),i=c(98748),j=g(c(46140)),k=f(c(14985)),l=f(c(91645)),m=f(c(34631)),n=c(1932),o=(0,j.default)("socks-proxy-agent");class p extends i.Agent{constructor(a,b){super(b);const{proxy:c,lookup:d}=function(a){let b=!1,c=5,d=a.hostname,e=parseInt(a.port,10)||1080;switch(a.protocol.replace(":","")){case"socks4":b=!0,c=4;break;case"socks4a":c=4;break;case"socks5":b=!0,c=5;break;case"socks":case"socks5h":c=5;break;default:throw TypeError(`A "socks" protocol must be specified! Got: ${String(a.protocol)}`)}let f={host:d,port:e,type:c};return a.username&&Object.defineProperty(f,"userId",{value:decodeURIComponent(a.username),enumerable:!1}),null!=a.password&&Object.defineProperty(f,"password",{value:decodeURIComponent(a.password),enumerable:!1}),{lookup:b,proxy:f}}("string"==typeof a?new n.URL(a):a);this.shouldLookup=d,this.proxy=c,this.timeout=b?.timeout??null,this.socketOptions=b?.socketOptions??null}async connect(a,b){let{shouldLookup:c,proxy:d,timeout:e}=this;if(!b.host)throw Error("No `host` defined!");let{host:f}=b,{port:g,lookup:i=k.lookup}=b;c&&(f=await new Promise((a,b)=>{i(f,{},(c,d)=>{c?b(c):a(d)})}));let j={proxy:d,destination:{host:f,port:"number"==typeof g?g:parseInt(g,10)},command:"connect",timeout:e??void 0,socket_options:this.socketOptions??void 0},n=b=>{a.destroy(),p.destroy(),b&&b.destroy()};o("Creating socks proxy connection: %o",j);let{socket:p}=await h.SocksClient.createConnection(j);if(o("Successfully created socks proxy connection"),null!==e&&(p.setTimeout(e),p.on("timeout",()=>n())),b.secureEndpoint){o("Upgrading socket connection to TLS");let a=m.connect({...function(a,...b){let c,d={};for(c in a)b.includes(c)||(d[c]=a[c]);return d}(void 0===b.servername&&b.host&&!l.isIP(b.host)?{...b,servername:b.host}:b,"host","path","port"),socket:p});return a.once("error",b=>{o("Socket TLS error",b.message),n(a)}),a}return p}}p.protocols=["socks","socks4","socks4a","socks5","socks5h"],b.SocksProxyAgent=p},64367:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b};Object.defineProperty(b,"__esModule",{value:!0}),b.v6=b.AddressError=b.Address6=b.Address4=void 0;var g=c(79440);Object.defineProperty(b,"Address4",{enumerable:!0,get:function(){return g.Address4}});var h=c(28798);Object.defineProperty(b,"Address6",{enumerable:!0,get:function(){return h.Address6}});var i=c(28127);Object.defineProperty(b,"AddressError",{enumerable:!0,get:function(){return i.AddressError}}),b.v6={helpers:f(c(75737))}},75737:(a,b)=>{function c(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function d(a){return c(a).replace(/(0+)/g,'<span class="zero">$1</span>')}function e(a){return c(a).replace(/^(0+)/,'<span class="zero">$1</span>')}Object.defineProperty(b,"__esModule",{value:!0}),b.escapeHtml=c,b.spanAllZeroes=d,b.spanAll=function(a,b=0){return a.split("").map((a,e)=>`<span class="digit value-${c(a)} position-${e+b}">${d(a)}</span>`).join("")},b.spanLeadingZeroes=function(a){return a.split(":").map(a=>e(a)).join(":")},b.simpleGroup=function(a,b=0){return a.split(":").map((a,c)=>/group-v4/.test(a)?a:`<span class="hover-group group-${c+b}">${e(a)}</span>`)}},79440:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b};Object.defineProperty(b,"__esModule",{value:!0}),b.Address4=void 0;let g=f(c(97462)),h=f(c(51835)),i=c(28127),j=g.isCorrect(h.BITS);class k{constructor(a){this.addressMinusSuffix="",this.groups=h.GROUPS,this.parsedAddress=[],this.parsedSubnet="",this.subnet="/32",this.subnetMask=32,this.v4=!0,this.isCorrect=j,this.isInSubnet=g.isInSubnet,this.isHostInSubnet=g.isHostInSubnet,this.address=a;const b=h.RE_SUBNET_STRING.exec(a);if(b){if(this.parsedSubnet=b[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,this.subnetMask<0||this.subnetMask>h.BITS)throw new i.AddressError("Invalid subnet mask.");a=a.replace(h.RE_SUBNET_STRING,"")}this.addressMinusSuffix=a,this.parsedAddress=this.parse(a)}static isValid(a){try{return new k(a),!0}catch{return!1}}parse(a){let b=a.split(".");if(b.some(a=>/^0\d/.test(a)))throw new i.AddressError("IPv4 addresses can't have leading zeroes.");if(!a.match(h.RE_ADDRESS))throw new i.AddressError("Invalid IPv4 address.");return b}correctForm(){return this.parsedAddress.map(a=>parseInt(a,10)).join(".")}static fromAddressAndMask(a,b){let c=g.prefixLengthFromMask(new k(b).bigInt(),h.BITS);return new k(`${a}/${c}`)}static fromAddressAndWildcardMask(a,b){let c=new k(b).bigInt(),d=(BigInt(1)<<BigInt(h.BITS))-BigInt(1),e=g.prefixLengthFromMask(c^d,h.BITS);return new k(`${a}/${e}`)}static fromWildcard(a){let b=a.split(".");if(b.length!==h.GROUPS)throw new i.AddressError("Wildcard pattern must have 4 octets");let c=-1;for(let a=0;a<b.length;a++)if("*"===b[a])-1===c&&(c=a);else if(-1!==c)throw new i.AddressError("Wildcard `*` must only appear in trailing octets (e.g. `192.168.0.*`)");let d=-1===c?0:b.length-c,e=b.map(a=>"*"===a?"0":a),f=h.BITS-8*d;return new k(`${e.join(".")}/${f}`)}static fromHex(a){let b=a.replace(/:/g,"");if(!/^[0-9a-fA-F]{8}$/.test(b))throw new i.AddressError("IPv4 hex must be exactly 8 hex digits");let c=[];for(let a=0;a<8;a+=2)c.push(parseInt(b.slice(a,a+2),16));return new k(c.join("."))}static fromInteger(a){if(!Number.isInteger(a)||a<0||a>0xffffffff)throw new i.AddressError("IPv4 integer must be in the range 0 to 2**32 - 1");return k.fromHex(a.toString(16).padStart(8,"0"))}static fromArpa(a){return new k(a.replace(/(\.in-addr\.arpa)?\.$/,"").split(".").reverse().join("."))}toHex(){return this.parsedAddress.map(a=>g.stringToPaddedHex(a)).join(":")}toArray(){return this.parsedAddress.map(a=>parseInt(a,10))}toGroup6(){let a,b=[];for(a=0;a<h.GROUPS;a+=2)b.push(`${g.stringToPaddedHex(this.parsedAddress[a])}${g.stringToPaddedHex(this.parsedAddress[a+1])}`);return b.join(":")}bigInt(){return BigInt(`0x${this.parsedAddress.map(a=>g.stringToPaddedHex(a)).join("")}`)}_startAddress(){return BigInt(`0b${this.mask()+"0".repeat(h.BITS-this.subnetMask)}`)}startAddress(){return k.fromBigInt(this._startAddress())}startAddressExclusive(){let a=BigInt("1");return k.fromBigInt(this._startAddress()+a)}offset(a){return k.fromBigInt(g.offsetBigInt(this.bigInt(),a,h.BITS,"IPv4")).withSubnetMask(this.subnetMask)}nextNetwork(){return k.fromBigInt(g.offsetBigInt(this._endAddress(),1,h.BITS,"IPv4")).withSubnetMask(this.subnetMask)}withSubnetMask(a){return new k(`${this.correctForm()}/${a}`)}_endAddress(){return BigInt(`0b${this.mask()+"1".repeat(h.BITS-this.subnetMask)}`)}endAddress(){return k.fromBigInt(this._endAddress())}endAddressExclusive(){let a=BigInt("1");return k.fromBigInt(this._endAddress()-a)}subnetMaskAddress(){return k.fromBigInt(BigInt(`0b${"1".repeat(this.subnetMask)}${"0".repeat(h.BITS-this.subnetMask)}`))}wildcardMask(){return k.fromBigInt(BigInt(`0b${"0".repeat(this.subnetMask)}${"1".repeat(h.BITS-this.subnetMask)}`))}networkForm(){return`${this.startAddress().correctForm()}/${this.subnetMask}`}static fromBigInt(a){if(a<BigInt(0)||a>BigInt(0xffffffff))throw new i.AddressError("IPv4 BigInt must be in the range 0 to 2**32 - 1");return k.fromHex(a.toString(16).padStart(8,"0"))}static fromByteArray(a){return g.assertByteArray(a,4,"IPv4",0),this.fromUnsignedByteArray(a)}static fromUnsignedByteArray(a){if(4!==a.length)throw new i.AddressError("IPv4 addresses require exactly 4 bytes");return new k(a.join("."))}mask(a){return void 0===a&&(a=this.subnetMask),this.getBitsBase2(0,a)}getBitsBase2(a,b){return this.binaryZeroPad().slice(a,b)}reverseForm(a){a||(a={});let b=this.correctForm().split(".").reverse().join(".");return a.omitSuffix?b:`${b}.in-addr.arpa.`}isMulticast(){return this.isHostInSubnet(l)}isPrivate(){return m.some(a=>this.isHostInSubnet(a))}isLoopback(){return this.isHostInSubnet(n)}isLinkLocal(){return this.isHostInSubnet(o)}isUnspecified(){return this.isHostInSubnet(p)}isBroadcast(){return this.isHostInSubnet(q)}isCGNAT(){return this.isHostInSubnet(r)}isDocumentation(){return s.some(a=>this.isHostInSubnet(a))}isBenchmarking(){return this.isHostInSubnet(t)}isReserved(){return this.isHostInSubnet(u)}isGlobal(){return!this.isMulticast()&&g.isGloballyReachable.call(this,v)}binaryZeroPad(){return void 0===this._binaryZeroPad&&(this._binaryZeroPad=this.bigInt().toString(2).padStart(h.BITS,"0")),this._binaryZeroPad}groupForV6(){let a=this.parsedAddress;return this.correctForm().replace(h.RE_ADDRESS,`<span class="hover-group group-v4 group-6">${a.slice(0,2).join(".")}</span>.<span class="hover-group group-v4 group-7">${a.slice(2,4).join(".")}</span>`)}}b.Address4=k;let l=new k("224.0.0.0/4"),m=[new k("10.0.0.0/8"),new k("172.16.0.0/12"),new k("192.168.0.0/16")],n=new k("127.0.0.0/8"),o=new k("169.254.0.0/16"),p=new k("0.0.0.0/32"),q=new k("255.255.255.255/32"),r=new k("100.64.0.0/10"),s=[new k("192.0.2.0/24"),new k("198.51.100.0/24"),new k("203.0.113.0/24")],t=new k("198.18.0.0/15"),u=new k("240.0.0.0/4"),v=h.SPECIAL_PURPOSE.map(([a,,b])=>({subnet:new k(a),reachable:b}))},95800:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0});let d=c(25254);class e{constructor(a){if(this.length=0,this._encoding="utf8",this._writeOffset=0,this._readOffset=0,e.isSmartBufferOptions(a))if(a.encoding&&(d.checkEncoding(a.encoding),this._encoding=a.encoding),a.size)if(d.isFiniteInteger(a.size)&&a.size>0)this._buff=Buffer.allocUnsafe(a.size);else throw Error(d.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(a.buff)if(Buffer.isBuffer(a.buff))this._buff=a.buff,this.length=a.buff.length;else throw Error(d.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(4096);else{if(void 0!==a)throw Error(d.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(4096)}}static fromSize(a,b){return new this({size:a,encoding:b})}static fromBuffer(a,b){return new this({buff:a,encoding:b})}static fromOptions(a){return new this(a)}static isSmartBufferOptions(a){return a&&(void 0!==a.encoding||void 0!==a.size||void 0!==a.buff)}readInt8(a){return this._readNumberValue(Buffer.prototype.readInt8,1,a)}readInt16BE(a){return this._readNumberValue(Buffer.prototype.readInt16BE,2,a)}readInt16LE(a){return this._readNumberValue(Buffer.prototype.readInt16LE,2,a)}readInt32BE(a){return this._readNumberValue(Buffer.prototype.readInt32BE,4,a)}readInt32LE(a){return this._readNumberValue(Buffer.prototype.readInt32LE,4,a)}readBigInt64BE(a){return d.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,a)}readBigInt64LE(a){return d.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,a)}writeInt8(a,b){return this._writeNumberValue(Buffer.prototype.writeInt8,1,a,b),this}insertInt8(a,b){return this._insertNumberValue(Buffer.prototype.writeInt8,1,a,b)}writeInt16BE(a,b){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,a,b)}insertInt16BE(a,b){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,a,b)}writeInt16LE(a,b){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,a,b)}insertInt16LE(a,b){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,a,b)}writeInt32BE(a,b){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,a,b)}insertInt32BE(a,b){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,a,b)}writeInt32LE(a,b){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,a,b)}insertInt32LE(a,b){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,a,b)}writeBigInt64BE(a,b){return d.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,a,b)}insertBigInt64BE(a,b){return d.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,a,b)}writeBigInt64LE(a,b){return d.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,a,b)}insertBigInt64LE(a,b){return d.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,a,b)}readUInt8(a){return this._readNumberValue(Buffer.prototype.readUInt8,1,a)}readUInt16BE(a){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,a)}readUInt16LE(a){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,a)}readUInt32BE(a){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,a)}readUInt32LE(a){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,a)}readBigUInt64BE(a){return d.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,a)}readBigUInt64LE(a){return d.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,a)}writeUInt8(a,b){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,a,b)}insertUInt8(a,b){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,a,b)}writeUInt16BE(a,b){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,a,b)}insertUInt16BE(a,b){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,a,b)}writeUInt16LE(a,b){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,a,b)}insertUInt16LE(a,b){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,a,b)}writeUInt32BE(a,b){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,a,b)}insertUInt32BE(a,b){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,a,b)}writeUInt32LE(a,b){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,a,b)}insertUInt32LE(a,b){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,a,b)}writeBigUInt64BE(a,b){return d.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,a,b)}insertBigUInt64BE(a,b){return d.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,a,b)}writeBigUInt64LE(a,b){return d.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,a,b)}insertBigUInt64LE(a,b){return d.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,a,b)}readFloatBE(a){return this._readNumberValue(Buffer.prototype.readFloatBE,4,a)}readFloatLE(a){return this._readNumberValue(Buffer.prototype.readFloatLE,4,a)}writeFloatBE(a,b){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,a,b)}insertFloatBE(a,b){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,a,b)}writeFloatLE(a,b){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,a,b)}insertFloatLE(a,b){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,a,b)}readDoubleBE(a){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,a)}readDoubleLE(a){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,a)}writeDoubleBE(a,b){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,a,b)}insertDoubleBE(a,b){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,a,b)}writeDoubleLE(a,b){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,a,b)}insertDoubleLE(a,b){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,a,b)}readString(a,b){let c;"number"==typeof a?(d.checkLengthValue(a),c=Math.min(a,this.length-this._readOffset)):(b=a,c=this.length-this._readOffset),void 0!==b&&d.checkEncoding(b);let e=this._buff.slice(this._readOffset,this._readOffset+c).toString(b||this._encoding);return this._readOffset+=c,e}insertString(a,b,c){return d.checkOffsetValue(b),this._handleString(a,!0,b,c)}writeString(a,b,c){return this._handleString(a,!1,b,c)}readStringNT(a){void 0!==a&&d.checkEncoding(a);let b=this.length;for(let a=this._readOffset;a<this.length;a++)if(0===this._buff[a]){b=a;break}let c=this._buff.slice(this._readOffset,b);return this._readOffset=b+1,c.toString(a||this._encoding)}insertStringNT(a,b,c){return d.checkOffsetValue(b),this.insertString(a,b,c),this.insertUInt8(0,b+a.length),this}writeStringNT(a,b,c){return this.writeString(a,b,c),this.writeUInt8(0,"number"==typeof b?b+a.length:this.writeOffset),this}readBuffer(a){void 0!==a&&d.checkLengthValue(a);let b="number"==typeof a?a:this.length,c=Math.min(this.length,this._readOffset+b),e=this._buff.slice(this._readOffset,c);return this._readOffset=c,e}insertBuffer(a,b){return d.checkOffsetValue(b),this._handleBuffer(a,!0,b)}writeBuffer(a,b){return this._handleBuffer(a,!1,b)}readBufferNT(){let a=this.length;for(let b=this._readOffset;b<this.length;b++)if(0===this._buff[b]){a=b;break}let b=this._buff.slice(this._readOffset,a);return this._readOffset=a+1,b}insertBufferNT(a,b){return d.checkOffsetValue(b),this.insertBuffer(a,b),this.insertUInt8(0,b+a.length),this}writeBufferNT(a,b){return void 0!==b&&d.checkOffsetValue(b),this.writeBuffer(a,b),this.writeUInt8(0,"number"==typeof b?b+a.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(a){d.checkOffsetValue(a),d.checkTargetOffset(a,this),this._readOffset=a}get writeOffset(){return this._writeOffset}set writeOffset(a){d.checkOffsetValue(a),d.checkTargetOffset(a,this),this._writeOffset=a}get encoding(){return this._encoding}set encoding(a){d.checkEncoding(a),this._encoding=a}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(a){let b="string"==typeof a?a:this._encoding;return d.checkEncoding(b),this._buff.toString(b,0,this.length)}destroy(){return this.clear(),this}_handleString(a,b,c,e){let f=this._writeOffset,g=this._encoding;"number"==typeof c?f=c:"string"==typeof c&&(d.checkEncoding(c),g=c),"string"==typeof e&&(d.checkEncoding(e),g=e);let h=Buffer.byteLength(a,g);return b?this.ensureInsertable(h,f):this._ensureWriteable(h,f),this._buff.write(a,f,h,g),b?this._writeOffset+=h:"number"==typeof c?this._writeOffset=Math.max(this._writeOffset,f+h):this._writeOffset+=h,this}_handleBuffer(a,b,c){let d="number"==typeof c?c:this._writeOffset;return b?this.ensureInsertable(a.length,d):this._ensureWriteable(a.length,d),a.copy(this._buff,d),b?this._writeOffset+=a.length:"number"==typeof c?this._writeOffset=Math.max(this._writeOffset,d+a.length):this._writeOffset+=a.length,this}ensureReadable(a,b){let c=this._readOffset;if(void 0!==b&&(d.checkOffsetValue(b),c=b),c<0||c+a>this.length)throw Error(d.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(a,b){d.checkOffsetValue(b),this._ensureCapacity(this.length+a),b<this.length&&this._buff.copy(this._buff,b+a,b,this._buff.length),b+a>this.length?this.length=b+a:this.length+=a}_ensureWriteable(a,b){let c="number"==typeof b?b:this._writeOffset;this._ensureCapacity(c+a),c+a>this.length&&(this.length=c+a)}_ensureCapacity(a){let b=this._buff.length;if(a>b){let c=this._buff,d=3*b/2+1;d<a&&(d=a),this._buff=Buffer.allocUnsafe(d),c.copy(this._buff,0,0,b)}}_readNumberValue(a,b,c){this.ensureReadable(b,c);let d=a.call(this._buff,"number"==typeof c?c:this._readOffset);return void 0===c&&(this._readOffset+=b),d}_insertNumberValue(a,b,c,e){return d.checkOffsetValue(e),this.ensureInsertable(b,e),a.call(this._buff,c,e),this._writeOffset+=b,this}_writeNumberValue(a,b,c,e){if("number"==typeof e){if(e<0)throw Error(d.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);d.checkOffsetValue(e)}let f="number"==typeof e?e:this._writeOffset;return this._ensureWriteable(b,f),a.call(this._buff,c,f),"number"==typeof e?this._writeOffset=Math.max(this._writeOffset,f+b):this._writeOffset+=b,this}}b.SmartBuffer=e},97462:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isInSubnet=function(a){return!(this.subnetMask<a.subnetMask)&&e.call(this,a)},b.isHostInSubnet=e,b.isGloballyReachable=function(a){let b=null;for(let c=0;c<a.length;c++){let d=a[c];null!==d.reachable&&e.call(this,d.subnet)&&(null===b||d.subnet.subnetMask>b.subnet.subnetMask)&&(b=d)}return null===b||b.reachable},b.offsetBigInt=function(a,b,c,e){if("number"==typeof b&&!Number.isSafeInteger(b)||"number"!=typeof b&&"bigint"!=typeof b)throw new d.AddressError(`${e} offset must be an integer`);let f=a+BigInt(b);if(f<BigInt(0)||f>(BigInt(1)<<BigInt(c))-BigInt(1))throw new d.AddressError(`${e} offset leaves the address space`);return f},b.isCorrect=function(a){return function(){return this.addressMinusSuffix===this.correctForm()&&(this.subnetMask===a&&!this.parsedSubnet||this.parsedSubnet===String(this.subnetMask))}},b.prefixLengthFromMask=function(a,b){let c=a.toString(2).padStart(b,"0");if(c.length>b)throw new d.AddressError("Invalid subnet mask.");let e=c.indexOf("0");if(-1===e)return b;if(c.slice(e).includes("1"))throw new d.AddressError("Invalid subnet mask.");return e},b.assertByteArray=function(a,b,c,e){if(a.length!==b)throw new d.AddressError(`${c} addresses require exactly ${b} bytes`);for(let b=0;b<a.length;b++)if(!Number.isInteger(a[b])||a[b]<e||a[b]>255)throw new d.AddressError(`All bytes must be integers between ${e} and 255`)},b.numberToPaddedHex=f,b.stringToPaddedHex=function(a){return f(parseInt(a,10))},b.testBit=function(a,b){let{length:c}=a;if(b>c)return!1;let d=c-b;return"1"===a.substring(d,d+1)};let d=c(28127);function e(a){return this.mask(a.subnetMask)===a.mask()}function f(a){return a.toString(16).padStart(2,"0")}},98748:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b},g=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),b.Agent=void 0;let h=f(c(91645)),i=f(c(81630)),j=c(55591);g(c(48326),b);let k=Symbol("AgentBaseInternalState");class l extends i.Agent{constructor(a){super(a),this[k]={}}isSecureEndpoint(a){if(a){if("boolean"==typeof a.secureEndpoint)return a.secureEndpoint;if("string"==typeof a.protocol)return"https:"===a.protocol}let{stack:b}=Error();return"string"==typeof b&&b.split("\n").some(a=>-1!==a.indexOf("(https.js:")||-1!==a.indexOf("node:https:"))}incrementSockets(a){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[a]||(this.sockets[a]=[]);let b=new h.Socket({writable:!1});return this.sockets[a].push(b),this.totalSocketCount++,b}decrementSockets(a,b){if(!this.sockets[a]||null===b)return;let c=this.sockets[a],d=c.indexOf(b);-1!==d&&(c.splice(d,1),this.totalSocketCount--,0===c.length&&delete this.sockets[a])}getName(a){return this.isSecureEndpoint(a)?j.Agent.prototype.getName.call(this,a):super.getName(a)}createSocket(a,b,c){let d={...b,secureEndpoint:this.isSecureEndpoint(b)},e=this.getName(d),f=this.incrementSockets(e);Promise.resolve().then(()=>this.connect(a,d)).then(g=>{if(this.decrementSockets(e,f),g instanceof i.Agent)try{return g.addRequest(a,d)}catch(a){return c(a)}this[k].currentSocket=g,super.createSocket(a,b,c)},a=>{this.decrementSockets(e,f),c(a)})}createConnection(){let a=this[k].currentSocket;if(this[k].currentSocket=void 0,!a)throw Error("No socket was returned in the `connect()` function");return a}get defaultPort(){return this[k].defaultPort??("https:"===this.protocol?443:80)}set defaultPort(a){this[k]&&(this[k].defaultPort=a)}get protocol(){return this[k].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(a){this[k]&&(this[k].protocol=a)}}b.Agent=l}};
1
+ "use strict";exports.id=1679,exports.ids=[1679],exports.modules={7768:function(a,b,c){var d=this&&this.__awaiter||function(a,b,c,d){return new(c||(c=Promise))(function(e,f){function g(a){try{i(d.next(a))}catch(a){f(a)}}function h(a){try{i(d.throw(a))}catch(a){f(a)}}function i(a){var b;a.done?e(a.value):((b=a.value)instanceof c?b:new c(function(a){a(b)})).then(g,h)}i((d=d.apply(a,b||[])).next())})};Object.defineProperty(b,"__esModule",{value:!0}),b.SocksClientError=b.SocksClient=void 0;let e=c(94735),f=c(91645),g=c(95800),h=c(60485),i=c(42045),j=c(21783),k=c(26174);Object.defineProperty(b,"SocksClientError",{enumerable:!0,get:function(){return k.SocksClientError}});let l=c(64367);class m extends e.EventEmitter{constructor(a){super(),this.options=Object.assign({},a),(0,i.validateSocksClientOptions)(a),this.setState(h.SocksClientState.Created)}static createConnection(a,b){return new Promise((c,d)=>{try{(0,i.validateSocksClientOptions)(a,["connect"])}catch(a){if("function"==typeof b)return b(a),c(a);return d(a)}let e=new m(a);e.connect(a.existing_socket),e.once("established",a=>{e.removeAllListeners(),"function"==typeof b&&b(null,a),c(a)}),e.once("error",a=>{e.removeAllListeners(),"function"==typeof b?(b(a),c(a)):d(a)})})}static createConnectionChain(a,b){return new Promise((c,e)=>d(this,void 0,void 0,function*(){try{(0,i.validateSocksClientChainOptions)(a)}catch(a){if("function"==typeof b)return b(a),c(a);return e(a)}a.randomizeChain&&(0,k.shuffleArray)(a.proxies);try{let d;for(let b=0;b<a.proxies.length;b++){let c=a.proxies[b],e=b===a.proxies.length-1?a.destination:{host:a.proxies[b+1].host||a.proxies[b+1].ipaddress,port:a.proxies[b+1].port},f=yield m.createConnection({command:"connect",proxy:c,destination:e,existing_socket:d});d=d||f.socket}"function"==typeof b&&b(null,{socket:d}),c({socket:d})}catch(a){"function"==typeof b?(b(a),c(a)):e(a)}}))}static createUDPFrame(a){let b=new g.SmartBuffer;return b.writeUInt16BE(0),b.writeUInt8(a.frameNumber||0),f.isIPv4(a.remoteHost.host)?(b.writeUInt8(h.Socks5HostType.IPv4),b.writeUInt32BE((0,i.ipv4ToInt32)(a.remoteHost.host))):f.isIPv6(a.remoteHost.host)?(b.writeUInt8(h.Socks5HostType.IPv6),b.writeBuffer((0,i.ipToBuffer)(a.remoteHost.host))):(b.writeUInt8(h.Socks5HostType.Hostname),b.writeUInt8(Buffer.byteLength(a.remoteHost.host)),b.writeString(a.remoteHost.host)),b.writeUInt16BE(a.remoteHost.port),b.writeBuffer(a.data),b.toBuffer()}static parseUDPFrame(a){let b=g.SmartBuffer.fromBuffer(a);b.readOffset=2;let c=b.readUInt8(),d=b.readUInt8();return{frameNumber:c,remoteHost:{host:d===h.Socks5HostType.IPv4?(0,i.int32ToIpv4)(b.readUInt32BE()):d===h.Socks5HostType.IPv6?l.Address6.fromByteArray(Array.from(b.readBuffer(16))).canonicalForm():b.readString(b.readUInt8()),port:b.readUInt16BE()},data:b.readBuffer()}}setState(a){this.state!==h.SocksClientState.Error&&(this.state=a)}connect(a){this.onDataReceived=a=>this.onDataReceivedHandler(a),this.onClose=()=>this.onCloseHandler(),this.onError=a=>this.onErrorHandler(a),this.onConnect=()=>this.onConnectHandler();let b=setTimeout(()=>this.onEstablishedTimeout(),this.options.timeout||h.DEFAULT_TIMEOUT);b.unref&&"function"==typeof b.unref&&b.unref(),a?this.socket=a:this.socket=new f.Socket,this.socket.once("close",this.onClose),this.socket.once("error",this.onError),this.socket.once("connect",this.onConnect),this.socket.on("data",this.onDataReceived),this.setState(h.SocksClientState.Connecting),this.receiveBuffer=new j.ReceiveBuffer,a?this.socket.emit("connect"):(this.socket.connect(this.getSocketOptions()),void 0!==this.options.set_tcp_nodelay&&null!==this.options.set_tcp_nodelay&&this.socket.setNoDelay(!!this.options.set_tcp_nodelay)),this.prependOnceListener("established",a=>{setImmediate(()=>{if(this.receiveBuffer.length>0){let b=this.receiveBuffer.get(this.receiveBuffer.length);a.socket.emit("data",b)}a.socket.resume()})})}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){this.state!==h.SocksClientState.Established&&this.state!==h.SocksClientState.BoundWaitingForConnection&&this.closeSocket(h.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){this.setState(h.SocksClientState.Connected),4===this.options.proxy.type?this.sendSocks4InitialHandshake():this.sendSocks5InitialHandshake(),this.setState(h.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(a){this.receiveBuffer.append(a),this.processData()}processData(){for(;this.state!==h.SocksClientState.Established&&this.state!==h.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize;)if(this.state===h.SocksClientState.SentInitialHandshake)4===this.options.proxy.type?this.handleSocks4FinalHandshakeResponse():this.handleInitialSocks5HandshakeResponse();else if(this.state===h.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===h.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else if(this.state===h.SocksClientState.BoundWaitingForConnection)4===this.options.proxy.type?this.handleSocks4IncomingConnectionResponse():this.handleSocks5IncomingConnectionResponse();else{this.closeSocket(h.ERRORS.InternalError);break}}onCloseHandler(){this.closeSocket(h.ERRORS.SocketClosed)}onErrorHandler(a){this.closeSocket(a.message)}removeInternalSocketHandlers(){this.socket.pause(),this.socket.removeListener("data",this.onDataReceived),this.socket.removeListener("close",this.onClose),this.socket.removeListener("error",this.onError),this.socket.removeListener("connect",this.onConnect)}closeSocket(a){this.state!==h.SocksClientState.Error&&(this.setState(h.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new k.SocksClientError(a,this.options)))}sendSocks4InitialHandshake(){let a=this.options.proxy.userId||"",b=new g.SmartBuffer;b.writeUInt8(4),b.writeUInt8(h.SocksCommand[this.options.command]),b.writeUInt16BE(this.options.destination.port),f.isIPv4(this.options.destination.host)?(b.writeBuffer((0,i.ipToBuffer)(this.options.destination.host)),b.writeStringNT(a)):(b.writeUInt8(0),b.writeUInt8(0),b.writeUInt8(0),b.writeUInt8(1),b.writeStringNT(a),b.writeStringNT(this.options.destination.host)),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(b.toBuffer())}handleSocks4FinalHandshakeResponse(){let a=this.receiveBuffer.get(8);if(a[1]!==h.Socks4Response.Granted)this.closeSocket(`${h.ERRORS.Socks4ProxyRejectedConnection} - (${h.Socks4Response[a[1]]})`);else if(h.SocksCommand[this.options.command]===h.SocksCommand.bind){let b=g.SmartBuffer.fromBuffer(a);b.readOffset=2;let c={port:b.readUInt16BE(),host:(0,i.int32ToIpv4)(b.readUInt32BE())};"0.0.0.0"===c.host&&(c.host=this.options.proxy.ipaddress),this.setState(h.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:c,socket:this.socket})}else this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){let a=this.receiveBuffer.get(8);if(a[1]!==h.Socks4Response.Granted)this.closeSocket(`${h.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${h.Socks4Response[a[1]]})`);else{let b=g.SmartBuffer.fromBuffer(a);b.readOffset=2;let c={port:b.readUInt16BE(),host:(0,i.int32ToIpv4)(b.readUInt32BE())};this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:c,socket:this.socket})}}sendSocks5InitialHandshake(){let a=new g.SmartBuffer,b=[h.Socks5Auth.NoAuth];for(let c of((this.options.proxy.userId||this.options.proxy.password)&&b.push(h.Socks5Auth.UserPass),void 0!==this.options.proxy.custom_auth_method&&b.push(this.options.proxy.custom_auth_method),a.writeUInt8(5),a.writeUInt8(b.length),b))a.writeUInt8(c);this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(a.toBuffer()),this.setState(h.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){let a=this.receiveBuffer.get(2);5!==a[0]?this.closeSocket(h.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion):a[1]===h.SOCKS5_NO_ACCEPTABLE_AUTH?this.closeSocket(h.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType):a[1]===h.Socks5Auth.NoAuth?(this.socks5ChosenAuthType=h.Socks5Auth.NoAuth,this.sendSocks5CommandRequest()):a[1]===h.Socks5Auth.UserPass?(this.socks5ChosenAuthType=h.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication()):a[1]===this.options.proxy.custom_auth_method?(this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication()):this.closeSocket(h.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){let a=this.options.proxy.userId||"",b=this.options.proxy.password||"",c=new g.SmartBuffer;c.writeUInt8(1),c.writeUInt8(Buffer.byteLength(a)),c.writeString(a),c.writeUInt8(Buffer.byteLength(b)),c.writeString(b),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write(c.toBuffer()),this.setState(h.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return d(this,void 0,void 0,function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size,this.socket.write((yield this.options.proxy.custom_auth_request_handler())),this.setState(h.SocksClientState.SentAuthentication)})}handleSocks5CustomAuthHandshakeResponse(a){return d(this,void 0,void 0,function*(){return yield this.options.proxy.custom_auth_response_handler(a)})}handleSocks5AuthenticationNoAuthHandshakeResponse(a){return d(this,void 0,void 0,function*(){return 0===a[1]})}handleSocks5AuthenticationUserPassHandshakeResponse(a){return d(this,void 0,void 0,function*(){return 0===a[1]})}handleInitialSocks5AuthenticationHandshakeResponse(){return d(this,void 0,void 0,function*(){this.setState(h.SocksClientState.ReceivedAuthenticationResponse);let a=!1;this.socks5ChosenAuthType===h.Socks5Auth.NoAuth?a=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===h.Socks5Auth.UserPass?a=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===this.options.proxy.custom_auth_method&&(a=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size))),a?this.sendSocks5CommandRequest():this.closeSocket(h.ERRORS.Socks5AuthenticationFailed)})}sendSocks5CommandRequest(){let a=new g.SmartBuffer;a.writeUInt8(5),a.writeUInt8(h.SocksCommand[this.options.command]),a.writeUInt8(0),f.isIPv4(this.options.destination.host)?(a.writeUInt8(h.Socks5HostType.IPv4),a.writeBuffer((0,i.ipToBuffer)(this.options.destination.host))):f.isIPv6(this.options.destination.host)?(a.writeUInt8(h.Socks5HostType.IPv6),a.writeBuffer((0,i.ipToBuffer)(this.options.destination.host))):(a.writeUInt8(h.Socks5HostType.Hostname),a.writeUInt8(this.options.destination.host.length),a.writeString(this.options.destination.host)),a.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(a.toBuffer()),this.setState(h.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){let a=this.receiveBuffer.peek(5);if(5!==a[0]||a[1]!==h.Socks5Response.Granted)this.closeSocket(`${h.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${h.Socks5Response[a[1]]}`);else{let b,c,d=a[3];if(d===h.Socks5HostType.IPv4){let a=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<a){this.nextRequiredPacketBufferSize=a;return}c=g.SmartBuffer.fromBuffer(this.receiveBuffer.get(a).slice(4)),"0.0.0.0"===(b={host:(0,i.int32ToIpv4)(c.readUInt32BE()),port:c.readUInt16BE()}).host&&(b.host=this.options.proxy.ipaddress)}else if(d===h.Socks5HostType.Hostname){let d=a[4],e=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(d);if(this.receiveBuffer.length<e){this.nextRequiredPacketBufferSize=e;return}b={host:(c=g.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(5))).readString(d),port:c.readUInt16BE()}}else if(d===h.Socks5HostType.IPv6){let a=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<a){this.nextRequiredPacketBufferSize=a;return}c=g.SmartBuffer.fromBuffer(this.receiveBuffer.get(a).slice(4)),b={host:l.Address6.fromByteArray(Array.from(c.readBuffer(16))).canonicalForm(),port:c.readUInt16BE()}}this.setState(h.SocksClientState.ReceivedFinalResponse),h.SocksCommand[this.options.command]===h.SocksCommand.connect?(this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:b,socket:this.socket})):h.SocksCommand[this.options.command]===h.SocksCommand.bind?(this.setState(h.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:b,socket:this.socket})):h.SocksCommand[this.options.command]===h.SocksCommand.associate&&(this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:b,socket:this.socket}))}}handleSocks5IncomingConnectionResponse(){let a=this.receiveBuffer.peek(5);if(5!==a[0]||a[1]!==h.Socks5Response.Granted)this.closeSocket(`${h.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${h.Socks5Response[a[1]]}`);else{let b,c,d=a[3];if(d===h.Socks5HostType.IPv4){let a=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<a){this.nextRequiredPacketBufferSize=a;return}c=g.SmartBuffer.fromBuffer(this.receiveBuffer.get(a).slice(4)),"0.0.0.0"===(b={host:(0,i.int32ToIpv4)(c.readUInt32BE()),port:c.readUInt16BE()}).host&&(b.host=this.options.proxy.ipaddress)}else if(d===h.Socks5HostType.Hostname){let d=a[4],e=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(d);if(this.receiveBuffer.length<e){this.nextRequiredPacketBufferSize=e;return}b={host:(c=g.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(5))).readString(d),port:c.readUInt16BE()}}else if(d===h.Socks5HostType.IPv6){let a=h.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<a){this.nextRequiredPacketBufferSize=a;return}c=g.SmartBuffer.fromBuffer(this.receiveBuffer.get(a).slice(4)),b={host:l.Address6.fromByteArray(Array.from(c.readBuffer(16))).canonicalForm(),port:c.readUInt16BE()}}this.setState(h.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:b,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}}b.SocksClient=m},13092:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),e(c(7768),b)},21783:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.ReceiveBuffer=void 0;class c{constructor(a=4096){this.buffer=Buffer.allocUnsafe(a),this.offset=0,this.originalSize=a}get length(){return this.offset}append(a){if(!Buffer.isBuffer(a))throw Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+a.length>=this.buffer.length){let b=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+a.length)),b.copy(this.buffer)}return a.copy(this.buffer,this.offset),this.offset+=a.length}peek(a){if(a>this.offset)throw Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,a)}get(a){if(a>this.offset)throw Error("Attempted to read beyond the bounds of the managed internal data.");let b=Buffer.allocUnsafe(a);return this.buffer.slice(0,a).copy(b),this.buffer.copyWithin(0,a,a+this.offset-a),this.offset-=a,b}}b.ReceiveBuffer=c},25254:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0});let d=c(79428),e={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};function f(a){var b;return"number"==typeof a&&isFinite(a)&&"number"==typeof(b=a)&&isFinite(b)&&Math.floor(b)===b}function g(a,b){if("number"==typeof a){if(!f(a)||a<0)throw Error(b?e.INVALID_OFFSET:e.INVALID_LENGTH)}else throw Error(b?e.INVALID_OFFSET_NON_NUMBER:e.INVALID_LENGTH_NON_NUMBER)}b.ERRORS=e,b.checkEncoding=function(a){if(!d.Buffer.isEncoding(a))throw Error(e.INVALID_ENCODING)},b.isFiniteInteger=f,b.checkLengthValue=function(a){g(a,!1)},b.checkOffsetValue=function(a){g(a,!0)},b.checkTargetOffset=function(a,b){if(a<0||a>b.length)throw Error(e.INVALID_TARGET_OFFSET)},b.bigIntAndBufferInt64Check=function(a){if("u"<typeof BigInt)throw Error("Platform does not support JS BigInt type.");if(void 0===d.Buffer.prototype[a])throw Error(`Platform does not support Buffer.prototype.${a}.`)}},26174:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.SocksClientError=void 0,b.shuffleArray=function(a){for(let b=a.length-1;b>0;b--){let c=Math.floor(Math.random()*(b+1));[a[b],a[c]]=[a[c],a[b]]}};class c extends Error{constructor(a,b){super(a),this.options=b}}b.SocksClientError=c},28673:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.SPECIAL_PURPOSE=b.RE_URL_WITH_PORT=b.RE_URL=b.RE_ZONE_STRING=b.RE_SUBNET_STRING=b.RE_BAD_ADDRESS=b.RE_BAD_CHARACTERS=b.TYPES=b.SCOPES=b.GROUPS=b.BITS=void 0,b.BITS=128,b.GROUPS=8,b.SCOPES={0:"Reserved",1:"Interface local",2:"Link local",4:"Admin local",5:"Site local",8:"Organization local",14:"Global",15:"Reserved"},b.TYPES={"ff01::1/128":"Multicast (All nodes on this interface)","ff01::2/128":"Multicast (All routers on this interface)","ff02::1/128":"Multicast (All nodes on this link)","ff02::2/128":"Multicast (All routers on this link)","ff05::2/128":"Multicast (All routers in this site)","ff02::5/128":"Multicast (OSPFv3 AllSPF routers)","ff02::6/128":"Multicast (OSPFv3 AllDR routers)","ff02::9/128":"Multicast (RIP routers)","ff02::a/128":"Multicast (EIGRP routers)","ff02::d/128":"Multicast (PIM routers)","ff02::16/128":"Multicast (MLDv2 reports)","ff01::fb/128":"Multicast (mDNSv6)","ff02::fb/128":"Multicast (mDNSv6)","ff05::fb/128":"Multicast (mDNSv6)","ff02::1:2/128":"Multicast (All DHCP servers and relay agents on this link)","ff05::1:2/128":"Multicast (All DHCP servers and relay agents in this site)","ff02::1:3/128":"Multicast (All DHCP servers on this link)","ff05::1:3/128":"Multicast (All DHCP servers in this site)","::/128":"Unspecified","::1/128":"Loopback","::ffff:0:0/96":"IPv4-mapped","ff00::/8":"Multicast","fe80::/10":"Link-local unicast","fc00::/7":"Unique local","2001::/32":"Teredo","2001:2::/48":"Benchmarking","2002::/16":"6to4","2001:db8::/32":"Documentation","3fff::/20":"Documentation","100::/64":"Discard-only","fec0::/10":"Site-local unicast (deprecated)","::/96":"IPv4-compatible (deprecated)","64:ff9b::/96":"NAT64 (well-known)","64:ff9b:1::/48":"NAT64 (local-use)"},b.RE_BAD_CHARACTERS=/([^0-9a-f:/%])/gi,b.RE_BAD_ADDRESS=/([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi,b.RE_SUBNET_STRING=/\/\d{1,3}(?=%|$)/,b.RE_ZONE_STRING=/%.*$/,b.RE_URL=/^(?:\[([0-9a-f:.]+)\]|([0-9a-f:.]+))(?:[/?#].*)?$/i,b.RE_URL_WITH_PORT=/^\[([0-9a-f:.]+)\]:([0-9]{1,5})(?:[/?#].*)?$/i,b.SPECIAL_PURPOSE=[["::1/128","Loopback Address",!1],["::/128","Unspecified Address",!1],["::ffff:0:0/96","IPv4-mapped Address",!1],["64:ff9b::/96","IPv4-IPv6 Translat.",!0],["64:ff9b:1::/48","IPv4-IPv6 Translat.",!1],["100::/64","Discard-Only Address Block",!1],["100:0:0:1::/64","Dummy IPv6 Prefix",!1],["2001::/23","IETF Protocol Assignments",!1],["2001::/32","TEREDO",!1],["2001:1::1/128","Port Control Protocol Anycast",!0],["2001:1::2/128","Traversal Using Relays around NAT Anycast",!0],["2001:1::3/128","DNS-SD Service Registration Protocol Anycast",!0],["2001:2::/48","Benchmarking",!1],["2001:3::/32","AMT",!0],["2001:4:112::/48","AS112-v6",!0],["2001:10::/28","Deprecated (previously ORCHID)",null],["2001:20::/28","ORCHIDv2",!0],["2001:30::/28","Drone Remote ID Protocol Entity Tags (DETs) Prefix",!0],["2001:db8::/32","Documentation",!1],["2002::/16","6to4",!1],["2620:4f:8000::/48","Direct Delegation AS112 Service",!0],["3fff::/20","Documentation",!1],["5f00::/16","Segment Routing (SRv6) SIDs",!1],["fc00::/7","Unique-Local",!1],["fe80::/10","Link-Local Unicast",!1]]},28798:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b};Object.defineProperty(b,"__esModule",{value:!0}),b.Address6=void 0;let g=f(c(97462)),h=f(c(51835)),i=f(c(28673)),j=f(c(75737)),k=c(79440),l=c(29142),m=c(50508),n=c(97462),o=g.isCorrect(i.BITS);function p(a){if(!a)throw Error("Assertion failed.")}function q(a){return(a=a.replace(/^(0{1,})([1-9]+)$/,'<span class="parse-error">$1</span>$2')).replace(/^(0{1,})(0)$/,'<span class="parse-error">$1</span>$2')}function r(a){return parseInt(a,16).toString(16).padStart(4,"0")}function s(a){return 255&a}class t{constructor(a,b){this.addressMinusSuffix="",this.parsedSubnet="",this.subnet="/128",this.subnetMask=128,this.v4=!1,this.zone="",this.isInSubnet=g.isInSubnet,this.isHostInSubnet=g.isHostInSubnet,this.isCorrect=o,void 0===b?this.groups=i.GROUPS:this.groups=b,this.address=a;const c=i.RE_SUBNET_STRING.exec(a);if(c){if(this.parsedSubnet=c[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,Number.isNaN(this.subnetMask)||this.subnetMask<0||this.subnetMask>i.BITS)throw new m.AddressError("Invalid subnet mask.");a=a.replace(i.RE_SUBNET_STRING,"")}if(/\//.test(a))throw new m.AddressError("Invalid subnet mask.");const d=i.RE_ZONE_STRING.exec(a);d&&(this.zone=d[0],a=a.replace(i.RE_ZONE_STRING,"")),this.addressMinusSuffix=a,this.parsedAddress=this.parse(this.addressMinusSuffix)}static isValid(a){try{return new t(a),!0}catch{return!1}}static fromBigInt(a){if(a<BigInt(0)||a>(BigInt(1)<<BigInt(i.BITS))-BigInt(1))throw new m.AddressError("IPv6 BigInt must be in the range 0 to 2**128 - 1");let b=a.toString(16).padStart(32,"0"),c=[];for(let a=0;a<i.GROUPS;a++)c.push(b.slice(4*a,(a+1)*4));return new t(c.join(":"))}static fromURL(a){var b;let c,d,e,f,g=null,h=a.replace(/^[a-z][a-z0-9+.-]*:\/\//i,"");if(-1!==h.indexOf("[")&&-1!==h.indexOf("]:")){if(e="failed to parse address with port",null===(d=i.RE_URL_WITH_PORT.exec(h)))return{error:e,address:null,port:null};c=d[1],g=d[2]}else{if(e="failed to parse address from URL",null===(d=i.RE_URL.exec(h)))return{error:e,address:null,port:null};c=null!=(b=d[1])?b:d[2]}g?((g=parseInt(g,10))<0||g>65535)&&(g=null):g=null;try{f=new t(c)}catch{return{error:e,address:null,port:null}}return{address:f,port:g}}static fromAddressAndMask(a,b){let c=g.prefixLengthFromMask(new t(b).bigInt(),i.BITS);return new t(`${a}/${c}`)}static fromAddressAndWildcardMask(a,b){let c=new t(b).bigInt(),d=(BigInt(1)<<BigInt(i.BITS))-BigInt(1),e=g.prefixLengthFromMask(c^d,i.BITS);return new t(`${a}/${e}`)}static fromWildcard(a){let b;if(a.includes("%")||a.includes("/"))throw new m.AddressError("Wildcard pattern must not include a zone or CIDR suffix");let c=a.split("::");if(c.length>2)throw new m.AddressError("Wildcard pattern cannot contain more than one '::'");if(2===c.length){let a=""===c[0]?[]:c[0].split(":"),d=""===c[1]?[]:c[1].split(":"),e=i.GROUPS-a.length-d.length;if(e<1)throw new m.AddressError("Wildcard pattern with '::' has too many groups");b=[...a,...Array(e).fill("0"),...d]}else b=a.split(":");if(b.length!==i.GROUPS)throw new m.AddressError("Wildcard pattern must have 8 groups");let d=-1;for(let a=0;a<b.length;a++)if("*"===b[a])-1===d&&(d=a);else if(-1!==d)throw new m.AddressError("Wildcard `*` must only appear in trailing groups (e.g. `2001:db8:*:*:*:*:*:*`)");let e=-1===d?0:b.length-d,f=b.map(a=>"*"===a?"0":a),g=i.BITS-16*e;return new t(`${f.join(":")}/${g}`)}static fromAddress4(a){let b=new k.Address4(a),c=i.BITS-(h.BITS-b.subnetMask);return new t(`::ffff:${b.correctForm()}/${c}`)}static fromArpa(a){let b=a.replace(/(\.ip6\.arpa)?\.?$/,"");if(!/^[0-9a-f](\.[0-9a-f]){0,31}$/i.test(b))throw new m.AddressError("Invalid 'ip6.arpa' form.");let c=b.split(".").reverse(),d=4*c.length,e=c.join("").padEnd(32,"0"),f=[];for(let a=0;a<i.GROUPS;a++)f.push(e.slice(4*a,(a+1)*4));return new t(`${f.join(":")}/${d}`)}microsoftTranscription(){return`${this.correctForm().replace(/:/g,"-")}.ipv6-literal.net`}mask(a=this.subnetMask){return this.getBitsBase2(0,a)}possibleSubnets(a=128){let b=i.BITS-this.subnetMask-Math.abs(a-i.BITS);if(b<0)return"0";var c=(BigInt("2")**BigInt(b)).toString(10);let d=/(\d+)(\d{3})/;for(;d.test(c);)c=c.replace(d,"$1,$2");return c}_startAddress(){return BigInt(`0b${this.mask()+"0".repeat(i.BITS-this.subnetMask)}`)}startAddress(){return t.fromBigInt(this._startAddress())}startAddressExclusive(){let a=BigInt("1");return t.fromBigInt(this._startAddress()+a)}_endAddress(){return BigInt(`0b${this.mask()+"1".repeat(i.BITS-this.subnetMask)}`)}endAddress(){return t.fromBigInt(this._endAddress())}endAddressExclusive(){let a=BigInt("1");return t.fromBigInt(this._endAddress()-a)}offset(a){return t.fromBigInt(g.offsetBigInt(this.bigInt(),a,i.BITS,"IPv6")).withSubnetMask(this.subnetMask)}nextNetwork(){return t.fromBigInt(g.offsetBigInt(this._endAddress(),1,i.BITS,"IPv6")).withSubnetMask(this.subnetMask)}withSubnetMask(a){return new t(`${this.correctForm()}/${a}`)}subnetMaskAddress(){return t.fromBigInt(BigInt(`0b${"1".repeat(this.subnetMask)}${"0".repeat(i.BITS-this.subnetMask)}`))}wildcardMask(){return t.fromBigInt(BigInt(`0b${"0".repeat(this.subnetMask)}${"1".repeat(i.BITS-this.subnetMask)}`))}networkForm(){return`${this.startAddress().correctForm()}/${this.subnetMask}`}getScope(){let a=this.getType();return"Multicast"===a||a.startsWith("Multicast ")?i.SCOPES[parseInt(this.getBits(12,16).toString(10),10)]||"Unknown":"Link-local unicast"===a||"Loopback"===a?"Link local":"Unspecified"===a?"Unknown":"Global"}getType(){for(let a=0;a<u.length;a++){let b=u[a];if(this.isHostInSubnet(b[0]))return b[1]}return"Global unicast"}getBits(a,b){return BigInt(`0b${this.getBitsBase2(a,b)}`)}getBitsBase2(a,b){return this.binaryZeroPad().slice(a,b)}getBitsBase16(a,b){let c=b-a;if(c%4!=0)throw Error("Length of bits to retrieve must be divisible by four");return this.getBits(a,b).toString(16).padStart(c/4,"0")}getBitsPastSubnet(){return this.getBitsBase2(this.subnetMask,i.BITS)}reverseForm(a){a||(a={});let b=Math.floor(this.subnetMask/4),c=this.canonicalForm().replace(/:/g,"").split("").slice(0,b).reverse().join(".");return b>0?a.omitSuffix?c:`${c}.ip6.arpa.`:a.omitSuffix?"":"ip6.arpa."}correctForm(){let a,b=[],c=0,d=[];for(a=0;a<this.parsedAddress.length;a++){let b=parseInt(this.parsedAddress[a],16);0===b&&c++,0!==b&&c>0&&(c>1&&d.push([a-c,a-1]),c=0)}c>1&&d.push([this.parsedAddress.length-c,this.parsedAddress.length-1]);let e=d.map(a=>a[1]-a[0]+1);if(d.length>0){let a=e.indexOf(Math.max(...e));b=function(a,b){let c,d=[],e=[];for(c=0;c<a.length;c++)c<b[0]?d.push(a[c]):c>b[1]&&e.push(a[c]);return d.concat(["compact"]).concat(e)}(this.parsedAddress,d[a])}else b=this.parsedAddress;for(a=0;a<b.length;a++)"compact"!==b[a]&&(b[a]=parseInt(b[a],16).toString(16));let f=b.join(":");return(f=(f=f.replace(/^compact$/,"::")).replace(/(^compact)|(compact$)/,":")).replace(/compact/,"")}binaryZeroPad(){return void 0===this._binaryZeroPad&&(this._binaryZeroPad=this.bigInt().toString(2).padStart(i.BITS,"0")),this._binaryZeroPad}parse4in6(a){if(-1===a.indexOf("."))return a;let b=a.split(":"),c=b.slice(-1)[0],d=c.split(".");if(d.length===h.GROUPS&&d.every(a=>/^\d{1,3}$/.test(a))&&d.some(a=>/^0\d/.test(a))){let a=d.map(q).join("."),c=b.slice(0,-1).map(j.escapeHtml).join(":"),e=b.length>1?":":"";throw new m.AddressError("IPv4 addresses can't have leading zeroes.",`${c}${e}${a}`)}let e=c.match(h.RE_ADDRESS);if(e){this.parsedAddress4=e[0];let c=this.subnetMask>=96?`/${this.subnetMask-96}`:"";this.address4=new k.Address4(`${this.parsedAddress4}${c}`),this.v4=!0,b[b.length-1]=this.address4.toGroup6(),a=b.join(":")}return a}parse(a){let b=(a=this.parse4in6(a)).match(i.RE_BAD_CHARACTERS);if(b)throw new m.AddressError(`Bad character${b.length>1?"s":""} detected in address: ${b.join("")}`,a.replace(i.RE_BAD_CHARACTERS,'<span class="parse-error">$1</span>'));let c=a.match(i.RE_BAD_ADDRESS);if(c)throw new m.AddressError(`Address failed regex: ${c.join("")}`,a.replace(i.RE_BAD_ADDRESS,'<span class="parse-error">$1</span>'));let d=[],e=a.split("::");if(2===e.length){let a=e[0].split(":"),b=e[1].split(":");1===a.length&&""===a[0]&&(a=[]),1===b.length&&""===b[0]&&(b=[]);let c=this.groups-(a.length+b.length);if(!c)throw new m.AddressError("Error parsing groups");this.elidedGroups=c,this.elisionBegin=a.length,this.elisionEnd=a.length+this.elidedGroups,d=d.concat(a);for(let a=0;a<c;a++)d.push("0");d=d.concat(b)}else if(1===e.length)d=a.split(":"),this.elidedGroups=0;else throw new m.AddressError("Too many :: groups found");if((d=d.map(a=>parseInt(a,16).toString(16))).length!==this.groups)throw new m.AddressError("Incorrect number of groups found");return d}canonicalForm(){return this.parsedAddress.map(r).join(":")}decimal(){return this.parsedAddress.map(a=>parseInt(a,16).toString(10).padStart(5,"0")).join(":")}bigInt(){return BigInt(`0x${this.parsedAddress.map(r).join("")}`)}to4(){let a=this.binaryZeroPad().split(""),b=BigInt(`0b${a.slice(96,128).join("")}`).toString(16).padStart(8,"0");if(this.subnetMask>=96){let a=this.subnetMask-96,c=[];for(let a=0;a<8;a+=2)c.push(parseInt(b.slice(a,a+2),16));return new k.Address4(`${c.join(".")}/${a}`)}return k.Address4.fromHex(b)}to4in6(){let a=this.to4(),b=new t(this.parsedAddress.slice(0,6).join(":"),6).correctForm(),c="";return/:$/.test(b)||(c=":"),b+c+a.correctForm()}inspectTeredo(){let a=this.getBitsBase16(0,32),b=(this.getBits(80,96)^BigInt("0xffff")).toString(),c=k.Address4.fromHex(this.getBitsBase16(32,64)),d=this.getBits(96,128),e=k.Address4.fromHex((d^BigInt("0xffffffff")).toString(16).padStart(8,"0")),f=this.getBitsBase2(64,80),g=(0,n.testBit)(f,15),h=(0,n.testBit)(f,14),i=(0,n.testBit)(f,8),j=(0,n.testBit)(f,9),l=BigInt(`0b${f.slice(2,6)+f.slice(8,16)}`).toString(10);return{prefix:`${a.slice(0,4)}:${a.slice(4,8)}`,server4:c.address,client4:e.address,flags:f,coneNat:g,microsoft:{reserved:h,universalLocal:j,groupIndividual:i,nonce:l},udpPort:b}}inspect6to4(){let a=this.getBitsBase16(0,16),b=k.Address4.fromHex(this.getBitsBase16(16,48));return{prefix:a.slice(0,4),gateway:b.address}}to6to4(){return this.is4()?new t(["2002",this.getBitsBase16(96,112),this.getBitsBase16(112,128),":/16"].join(":")):null}static fromAddress4Nat64(a,b="64:ff9b::/96"){let c,d=new k.Address4(a),e=new t(b),f=e.subnetMask;if(32!==f&&40!==f&&48!==f&&56!==f&&64!==f&&96!==f)throw new m.AddressError("NAT64 prefix length must be 32, 40, 48, 56, 64, or 96");let g=e.binaryZeroPad(),h=d.binaryZeroPad();if(96===f)c=g.slice(0,96)+h;else{let a=64-f;c=[g.slice(0,f),h.slice(0,a),"00000000",h.slice(a),"0".repeat(56-(32-a))].join("")}let i=BigInt(`0b${c}`).toString(16).padStart(32,"0"),j=[];for(let a=0;a<8;a++)j.push(i.slice(4*a,(a+1)*4));return new t(j.join(":"))}toAddress4Nat64(a="64:ff9b::/96"){let b,c=new t(a),d=c.subnetMask;if(32!==d&&40!==d&&48!==d&&56!==d&&64!==d&&96!==d)throw new m.AddressError("NAT64 prefix length must be 32, 40, 48, 56, 64, or 96");if(!this.isHostInSubnet(c))return null;let e=this.binaryZeroPad();if(96===d)b=e.slice(96,128);else{let a=64-d;b=e.slice(d,d+a)+e.slice(72,72+(32-a))}let f=[];for(let a=0;a<4;a++)f.push(parseInt(b.slice(8*a,(a+1)*8),2).toString());return new k.Address4(f.join("."))}toByteArray(){let a=this.bigInt().toString(16).padStart(i.BITS/4,"0"),b=[];for(let c=0,d=a.length;c<d;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b}toUnsignedByteArray(){return this.toByteArray().map(s)}static fromByteArray(a){return g.assertByteArray(a,16,"IPv6",-128),this.fromUnsignedByteArray(a.map(s))}static fromUnsignedByteArray(a){g.assertByteArray(a,16,"IPv6",0);let b=BigInt("256"),c=BigInt("0"),d=BigInt("1");for(let e=a.length-1;e>=0;e--)c+=d*BigInt(a[e].toString(10)),d*=b;return t.fromBigInt(c)}isCanonical(){return this.addressMinusSuffix===this.canonicalForm()}isLinkLocal(){let a=this.embeddedIPv4();return a?a.isLinkLocal():this.isHostInSubnet(y)}isMulticast(){let a=this.embeddedIPv4();if(a)return a.isMulticast();let b=this.getType();return"Multicast"===b||b.startsWith("Multicast ")}is4(){return this.v4}isMapped4(){return this.isHostInSubnet(D)}embeddedIPv4(){return this.isMapped4()||this.isHostInSubnet(E)?this.to4():null}isTeredo(){return this.isHostInSubnet(v)}is6to4(){return this.isHostInSubnet(w)}isLoopback(){let a=this.embeddedIPv4();return a?a.isLoopback():"Loopback"===this.getType()}isULA(){return this.isHostInSubnet(x)}isPrivate(){let a=this.embeddedIPv4();return a?a.isPrivate():this.isULA()||this.isHostInSubnet(F)}isCGNAT(){let a=this.embeddedIPv4();return!!a&&a.isCGNAT()}isBroadcast(){let a=this.embeddedIPv4();return!!a&&a.isBroadcast()}isUnspecified(){let a=this.embeddedIPv4();return a?a.isUnspecified():"Unspecified"===this.getType()}isDocumentation(){return z.some(a=>this.isHostInSubnet(a))}isBenchmarking(){let a=this.embeddedIPv4();return a?a.isBenchmarking():this.isHostInSubnet(A)}isGlobal(){let a=this.embeddedIPv4();return a?a.isGlobal():this.isHostInSubnet(B)&&g.isGloballyReachable.call(this,C)}href(a){return a=void 0===a?"":`:${a}`,`http://[${this.correctForm()}]${a}/`}link(a){a||(a={}),void 0===a.className&&(a.className=""),void 0===a.prefix&&(a.prefix="/#address="),void 0===a.v4&&(a.v4=!1);let b=this.correctForm;a.v4&&(b=this.to4in6);let c=b.call(this),d=j.escapeHtml(`${a.prefix}${c}`),e=j.escapeHtml(c);if(a.className){let b=j.escapeHtml(a.className);return`<a href="${d}" class="${b}">${e}</a>`}return`<a href="${d}">${e}</a>`}group(){if(0===this.elidedGroups)return j.simpleGroup(this.addressMinusSuffix).join(":");p("number"==typeof this.elidedGroups),p("number"==typeof this.elisionBegin);let a=[],[b,c]=this.addressMinusSuffix.split("::");b.length?a.push(...j.simpleGroup(b)):a.push("");let d=["hover-group"];for(let a=this.elisionBegin;a<this.elisionBegin+this.elidedGroups;a++)d.push(`group-${a}`);return a.push(`<span class="${d.join(" ")}"></span>`),c.length?a.push(...j.simpleGroup(c,this.elisionEnd)):a.push(""),this.is4()&&(p(this.address4 instanceof k.Address4),a.pop(),a.push(this.address4.groupForV6())),a.join(":")}regularExpressionString(a=!1){let b=[],c=new t(this.correctForm());if(0===c.elidedGroups)b.push((0,l.simpleRegularExpression)(c.parsedAddress));else if(c.elidedGroups===i.GROUPS)b.push((0,l.possibleElisions)(i.GROUPS));else{let a=c.address.split("::");a[0].length&&b.push((0,l.simpleRegularExpression)(a[0].split(":"))),p("number"==typeof c.elidedGroups),b.push((0,l.possibleElisions)(c.elidedGroups,0!==a[0].length,0!==a[1].length)),a[1].length&&b.push((0,l.simpleRegularExpression)(a[1].split(":"))),b=[b.join(":")]}return a||(b=["(?=^|",l.ADDRESS_BOUNDARY,"|[^\\w\\:])(",...b,")(?=[^\\w\\:]|",l.ADDRESS_BOUNDARY,"|$)"]),b.join("")}regularExpression(a=!1){return RegExp(this.regularExpressionString(a),"i")}}b.Address6=t;let u=Object.keys(i.TYPES).map(a=>[new t(a),i.TYPES[a]]),v=new t("2001::/32"),w=new t("2002::/16"),x=new t("fc00::/7"),y=new t("fe80::/10"),z=[new t("2001:db8::/32"),new t("3fff::/20")],A=new t("2001:2::/48"),B=new t("2000::/3"),C=i.SPECIAL_PURPOSE.map(([a,,b])=>({subnet:new t(a),reachable:b})),D=new t("::ffff:0:0/96"),E=new t("64:ff9b::/96"),F=new t("64:ff9b:1::/48")},29142:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b};Object.defineProperty(b,"__esModule",{value:!0}),b.ADDRESS_BOUNDARY=void 0,b.groupPossibilities=h,b.padGroup=i,b.simpleRegularExpression=function(a){let b=[];a.forEach((a,c)=>{0===parseInt(a,16)&&b.push(c)});let c=b.map(b=>a.map((a,c)=>{if(c===b){let b=0===c||c===g.GROUPS-1?":":"";return h([i(a),b])}return i(a)}).join(":"));return c.push(a.map(i).join(":")),h(c)},b.possibleElisions=function(a,b,c){let d=[];b||c||d.push("::"),b&&c&&d.push(""),(c&&!b||!c&&b)&&d.push(":"),d.push(`${b?"":":"}(:0{1,4}){1,${a-1}}`),d.push(`(0{1,4}:){1,${a-1}}${c?"":":"}`),d.push(`(0{1,4}:){${a-1}}0{1,4}`);for(let b=1;b<a-1;b++)for(let c=1;c<a-b;c++)d.push(`(0{1,4}:){${c}}:(0{1,4}:){${a-c-b-1}}0{1,4}`);return h(d)};let g=f(c(28673));function h(a){return`(${a.join("|")})`}function i(a){return a.length<4?`0{0,${4-a.length}}${a}`:a}b.ADDRESS_BOUNDARY="[^A-Fa-f0-9:]"},42045:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.validateSocksClientOptions=function(a,b=["connect","bind","associate"]){if(!e.SocksCommand[a.command])throw new d.SocksClientError(e.ERRORS.InvalidSocksCommand,a);if(-1===b.indexOf(a.command))throw new d.SocksClientError(e.ERRORS.InvalidSocksCommandForOperation,a);if(!j(a.destination))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsDestination,a);if(!k(a.proxy))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsProxy,a);if(i(a.proxy,a),a.timeout&&!l(a.timeout))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsTimeout,a);if(a.existing_socket&&!(a.existing_socket instanceof f.Duplex))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsExistingSocket,a)},b.validateSocksClientChainOptions=function(a){if("connect"!==a.command)throw new d.SocksClientError(e.ERRORS.InvalidSocksCommandChain,a);if(!j(a.destination))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsDestination,a);if(!(a.proxies&&Array.isArray(a.proxies)&&a.proxies.length>=2))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsProxiesLength,a);if(a.proxies.forEach(b=>{if(!k(b))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsProxy,a);i(b,a)}),a.timeout&&!l(a.timeout))throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsTimeout,a)},b.ipv4ToInt32=function(a){return new g.Address4(a).toArray().reduce((a,b)=>(a<<8)+b,0)>>>0},b.int32ToIpv4=function(a){return[a>>>24&255,a>>>16&255,a>>>8&255,255&a].join(".")},b.ipToBuffer=function(a){if(h.isIPv4(a)){let b=new g.Address4(a);return Buffer.from(b.toArray())}if(h.isIPv6(a)){let b=new g.Address6(a);return Buffer.from(b.canonicalForm().split(":").map(a=>a.padStart(4,"0")).join(""),"hex")}throw Error("Invalid IP address format")};let d=c(26174),e=c(60485),f=c(27910),g=c(64367),h=c(91645);function i(a,b){if(void 0!==a.custom_auth_method){if(a.custom_auth_method<e.SOCKS5_CUSTOM_AUTH_START||a.custom_auth_method>e.SOCKS5_CUSTOM_AUTH_END)throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsCustomAuthRange,b);if(void 0===a.custom_auth_request_handler||"function"!=typeof a.custom_auth_request_handler||void 0===a.custom_auth_response_size||void 0===a.custom_auth_response_handler||"function"!=typeof a.custom_auth_response_handler)throw new d.SocksClientError(e.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,b)}}function j(a){return a&&"string"==typeof a.host&&256>Buffer.byteLength(a.host)&&"number"==typeof a.port&&a.port>=0&&a.port<=65535}function k(a){return a&&("string"==typeof a.host||"string"==typeof a.ipaddress)&&"number"==typeof a.port&&a.port>=0&&a.port<=65535&&(4===a.type||5===a.type)}function l(a){return"number"==typeof a&&a>0}},48326:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b};Object.defineProperty(b,"__esModule",{value:!0}),b.req=b.json=b.toBuffer=void 0;let g=f(c(81630)),h=f(c(55591));async function i(a){let b=0,c=[];for await(let d of a)b+=d.length,c.push(d);return Buffer.concat(c,b)}b.toBuffer=i,b.json=async function(a){let b=(await i(a)).toString("utf8");try{return JSON.parse(b)}catch(a){throw a.message+=` (input: ${b})`,a}},b.req=function(a,b={}){let c=(("string"==typeof a?a:a.href).startsWith("https:")?h:g).request(a,b),d=new Promise((a,b)=>{c.once("response",a).once("error",b).end()});return c.then=d.then.bind(d),c}},50508:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.AddressError=void 0;class c extends Error{constructor(a,b){super(a),this.name="AddressError",this.parseMessage=b}}b.AddressError=c},51835:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.SPECIAL_PURPOSE=b.RE_SUBNET_STRING=b.RE_ADDRESS=b.GROUPS=b.BITS=void 0,b.BITS=32,b.GROUPS=4,b.RE_ADDRESS=/^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$/g,b.RE_SUBNET_STRING=/\/\d{1,2}$/,b.SPECIAL_PURPOSE=[["0.0.0.0/8","This network",!1],["0.0.0.0/32","This host on this network",!1],["10.0.0.0/8","Private-Use",!1],["100.64.0.0/10","Shared Address Space",!1],["127.0.0.0/8","Loopback",!1],["169.254.0.0/16","Link Local",!1],["172.16.0.0/12","Private-Use",!1],["192.0.0.0/24","IETF Protocol Assignments",!1],["192.0.0.0/29","IPv4 Service Continuity Prefix",!1],["192.0.0.8/32","IPv4 dummy address",!1],["192.0.0.9/32","Port Control Protocol Anycast",!0],["192.0.0.10/32","Traversal Using Relays around NAT Anycast",!0],["192.0.0.170/32","NAT64/DNS64 Discovery",!1],["192.0.0.171/32","NAT64/DNS64 Discovery",!1],["192.0.2.0/24","Documentation (TEST-NET-1)",!1],["192.31.196.0/24","AS112-v4",!0],["192.52.193.0/24","AMT",!0],["192.88.99.0/24","Deprecated (6to4 Relay Anycast)",null],["192.88.99.2/32","6a44-relay anycast address",!1],["192.168.0.0/16","Private-Use",!1],["192.175.48.0/24","Direct Delegation AS112 Service",!0],["198.18.0.0/15","Benchmarking",!1],["198.51.100.0/24","Documentation (TEST-NET-2)",!1],["203.0.113.0/24","Documentation (TEST-NET-3)",!1],["240.0.0.0/4","Reserved",!1],["255.255.255.255/32","Limited Broadcast",!1]]},60485:(a,b)=>{var c,d,e,f,g,h,i,j,k,l,m,n;Object.defineProperty(b,"__esModule",{value:!0}),b.SOCKS5_NO_ACCEPTABLE_AUTH=b.SOCKS5_CUSTOM_AUTH_END=b.SOCKS5_CUSTOM_AUTH_START=b.SOCKS_INCOMING_PACKET_SIZES=b.SocksClientState=b.Socks5Response=b.Socks5HostType=b.Socks5Auth=b.Socks4Response=b.SocksCommand=b.ERRORS=b.DEFAULT_TIMEOUT=void 0,b.DEFAULT_TIMEOUT=3e4,b.ERRORS={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"},b.SOCKS_INCOMING_PACKET_SIZES={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:a=>a+7,Socks4Response:8},(i=c||(b.SocksCommand=c={}))[i.connect=1]="connect",i[i.bind=2]="bind",i[i.associate=3]="associate",(j=d||(b.Socks4Response=d={}))[j.Granted=90]="Granted",j[j.Failed=91]="Failed",j[j.Rejected=92]="Rejected",j[j.RejectedIdent=93]="RejectedIdent",(k=e||(b.Socks5Auth=e={}))[k.NoAuth=0]="NoAuth",k[k.GSSApi=1]="GSSApi",k[k.UserPass=2]="UserPass",b.SOCKS5_CUSTOM_AUTH_START=128,b.SOCKS5_CUSTOM_AUTH_END=254,b.SOCKS5_NO_ACCEPTABLE_AUTH=255,(l=f||(b.Socks5Response=f={}))[l.Granted=0]="Granted",l[l.Failure=1]="Failure",l[l.NotAllowed=2]="NotAllowed",l[l.NetworkUnreachable=3]="NetworkUnreachable",l[l.HostUnreachable=4]="HostUnreachable",l[l.ConnectionRefused=5]="ConnectionRefused",l[l.TTLExpired=6]="TTLExpired",l[l.CommandNotSupported=7]="CommandNotSupported",l[l.AddressNotSupported=8]="AddressNotSupported",(m=g||(b.Socks5HostType=g={}))[m.IPv4=1]="IPv4",m[m.Hostname=3]="Hostname",m[m.IPv6=4]="IPv6",(n=h||(b.SocksClientState=h={}))[n.Created=0]="Created",n[n.Connecting=1]="Connecting",n[n.Connected=2]="Connected",n[n.SentInitialHandshake=3]="SentInitialHandshake",n[n.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",n[n.SentAuthentication=5]="SentAuthentication",n[n.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",n[n.SentFinalHandshake=7]="SentFinalHandshake",n[n.ReceivedFinalResponse=8]="ReceivedFinalResponse",n[n.BoundWaitingForConnection=9]="BoundWaitingForConnection",n[n.Established=10]="Established",n[n.Disconnected=11]="Disconnected",n[n.Error=99]="Error"},61679:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b},g=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(b,"__esModule",{value:!0}),b.SocksProxyAgent=void 0;let h=c(13092),i=c(98748),j=g(c(46140)),k=f(c(14985)),l=f(c(91645)),m=f(c(34631)),n=c(1932),o=(0,j.default)("socks-proxy-agent");class p extends i.Agent{constructor(a,b){super(b);const{proxy:c,lookup:d}=function(a){let b=!1,c=5,d=a.hostname,e=parseInt(a.port,10)||1080;switch(a.protocol.replace(":","")){case"socks4":b=!0,c=4;break;case"socks4a":c=4;break;case"socks5":b=!0,c=5;break;case"socks":case"socks5h":c=5;break;default:throw TypeError(`A "socks" protocol must be specified! Got: ${String(a.protocol)}`)}let f={host:d,port:e,type:c};return a.username&&Object.defineProperty(f,"userId",{value:decodeURIComponent(a.username),enumerable:!1}),null!=a.password&&Object.defineProperty(f,"password",{value:decodeURIComponent(a.password),enumerable:!1}),{lookup:b,proxy:f}}("string"==typeof a?new n.URL(a):a);this.shouldLookup=d,this.proxy=c,this.timeout=b?.timeout??null,this.socketOptions=b?.socketOptions??null}async connect(a,b){let{shouldLookup:c,proxy:d,timeout:e}=this;if(!b.host)throw Error("No `host` defined!");let{host:f}=b,{port:g,lookup:i=k.lookup}=b;c&&(f=await new Promise((a,b)=>{i(f,{},(c,d)=>{c?b(c):a(d)})}));let j={proxy:d,destination:{host:f,port:"number"==typeof g?g:parseInt(g,10)},command:"connect",timeout:e??void 0,socket_options:this.socketOptions??void 0},n=b=>{a.destroy(),p.destroy(),b&&b.destroy()};o("Creating socks proxy connection: %o",j);let{socket:p}=await h.SocksClient.createConnection(j);if(o("Successfully created socks proxy connection"),null!==e&&(p.setTimeout(e),p.on("timeout",()=>n())),b.secureEndpoint){o("Upgrading socket connection to TLS");let a=m.connect({...function(a,...b){let c,d={};for(c in a)b.includes(c)||(d[c]=a[c]);return d}(void 0===b.servername&&b.host&&!l.isIP(b.host)?{...b,servername:b.host}:b,"host","path","port"),socket:p});return a.once("error",b=>{o("Socket TLS error",b.message),n(a)}),a}return p}}p.protocols=["socks","socks4","socks4a","socks5","socks5h"],b.SocksProxyAgent=p},64367:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b};Object.defineProperty(b,"__esModule",{value:!0}),b.v6=b.AddressError=b.Address6=b.Address4=void 0;var g=c(79440);Object.defineProperty(b,"Address4",{enumerable:!0,get:function(){return g.Address4}});var h=c(28798);Object.defineProperty(b,"Address6",{enumerable:!0,get:function(){return h.Address6}});var i=c(50508);Object.defineProperty(b,"AddressError",{enumerable:!0,get:function(){return i.AddressError}}),b.v6={helpers:f(c(75737))}},75737:(a,b)=>{function c(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function d(a){return c(a).replace(/(0+)/g,'<span class="zero">$1</span>')}function e(a){return c(a).replace(/^(0+)/,'<span class="zero">$1</span>')}Object.defineProperty(b,"__esModule",{value:!0}),b.escapeHtml=c,b.spanAllZeroes=d,b.spanAll=function(a,b=0){return a.split("").map((a,e)=>`<span class="digit value-${c(a)} position-${e+b}">${d(a)}</span>`).join("")},b.spanLeadingZeroes=function(a){return a.split(":").map(a=>e(a)).join(":")},b.simpleGroup=function(a,b=0){return a.split(":").map((a,c)=>/group-v4/.test(a)?a:`<span class="hover-group group-${c+b}">${e(a)}</span>`)}},79440:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b};Object.defineProperty(b,"__esModule",{value:!0}),b.Address4=void 0;let g=f(c(97462)),h=f(c(51835)),i=c(50508),j=g.isCorrect(h.BITS);class k{constructor(a){this.addressMinusSuffix="",this.groups=h.GROUPS,this.parsedAddress=[],this.parsedSubnet="",this.subnet="/32",this.subnetMask=32,this.v4=!0,this.isCorrect=j,this.isInSubnet=g.isInSubnet,this.isHostInSubnet=g.isHostInSubnet,this.address=a;const b=h.RE_SUBNET_STRING.exec(a);if(b){if(this.parsedSubnet=b[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,this.subnetMask<0||this.subnetMask>h.BITS)throw new i.AddressError("Invalid subnet mask.");a=a.replace(h.RE_SUBNET_STRING,"")}this.addressMinusSuffix=a,this.parsedAddress=this.parse(a)}static isValid(a){try{return new k(a),!0}catch{return!1}}parse(a){let b=a.split(".");if(b.some(a=>/^0\d/.test(a)))throw new i.AddressError("IPv4 addresses can't have leading zeroes.");if(!a.match(h.RE_ADDRESS))throw new i.AddressError("Invalid IPv4 address.");return b}correctForm(){return this.parsedAddress.map(a=>parseInt(a,10)).join(".")}static fromAddressAndMask(a,b){let c=g.prefixLengthFromMask(new k(b).bigInt(),h.BITS);return new k(`${a}/${c}`)}static fromAddressAndWildcardMask(a,b){let c=new k(b).bigInt(),d=(BigInt(1)<<BigInt(h.BITS))-BigInt(1),e=g.prefixLengthFromMask(c^d,h.BITS);return new k(`${a}/${e}`)}static fromWildcard(a){let b=a.split(".");if(b.length!==h.GROUPS)throw new i.AddressError("Wildcard pattern must have 4 octets");let c=-1;for(let a=0;a<b.length;a++)if("*"===b[a])-1===c&&(c=a);else if(-1!==c)throw new i.AddressError("Wildcard `*` must only appear in trailing octets (e.g. `192.168.0.*`)");let d=-1===c?0:b.length-c,e=b.map(a=>"*"===a?"0":a),f=h.BITS-8*d;return new k(`${e.join(".")}/${f}`)}static fromHex(a){let b=a.replace(/:/g,"");if(!/^[0-9a-fA-F]{8}$/.test(b))throw new i.AddressError("IPv4 hex must be exactly 8 hex digits");let c=[];for(let a=0;a<8;a+=2)c.push(parseInt(b.slice(a,a+2),16));return new k(c.join("."))}static fromInteger(a){if(!Number.isInteger(a)||a<0||a>0xffffffff)throw new i.AddressError("IPv4 integer must be in the range 0 to 2**32 - 1");return k.fromHex(a.toString(16).padStart(8,"0"))}static fromArpa(a){return new k(a.replace(/(\.in-addr\.arpa)?\.$/,"").split(".").reverse().join("."))}toHex(){return this.parsedAddress.map(a=>g.stringToPaddedHex(a)).join(":")}toArray(){return this.parsedAddress.map(a=>parseInt(a,10))}toGroup6(){let a,b=[];for(a=0;a<h.GROUPS;a+=2)b.push(`${g.stringToPaddedHex(this.parsedAddress[a])}${g.stringToPaddedHex(this.parsedAddress[a+1])}`);return b.join(":")}bigInt(){return BigInt(`0x${this.parsedAddress.map(a=>g.stringToPaddedHex(a)).join("")}`)}_startAddress(){return BigInt(`0b${this.mask()+"0".repeat(h.BITS-this.subnetMask)}`)}startAddress(){return k.fromBigInt(this._startAddress())}startAddressExclusive(){let a=BigInt("1");return k.fromBigInt(this._startAddress()+a)}offset(a){return k.fromBigInt(g.offsetBigInt(this.bigInt(),a,h.BITS,"IPv4")).withSubnetMask(this.subnetMask)}nextNetwork(){return k.fromBigInt(g.offsetBigInt(this._endAddress(),1,h.BITS,"IPv4")).withSubnetMask(this.subnetMask)}withSubnetMask(a){return new k(`${this.correctForm()}/${a}`)}_endAddress(){return BigInt(`0b${this.mask()+"1".repeat(h.BITS-this.subnetMask)}`)}endAddress(){return k.fromBigInt(this._endAddress())}endAddressExclusive(){let a=BigInt("1");return k.fromBigInt(this._endAddress()-a)}subnetMaskAddress(){return k.fromBigInt(BigInt(`0b${"1".repeat(this.subnetMask)}${"0".repeat(h.BITS-this.subnetMask)}`))}wildcardMask(){return k.fromBigInt(BigInt(`0b${"0".repeat(this.subnetMask)}${"1".repeat(h.BITS-this.subnetMask)}`))}networkForm(){return`${this.startAddress().correctForm()}/${this.subnetMask}`}static fromBigInt(a){if(a<BigInt(0)||a>BigInt(0xffffffff))throw new i.AddressError("IPv4 BigInt must be in the range 0 to 2**32 - 1");return k.fromHex(a.toString(16).padStart(8,"0"))}static fromByteArray(a){return g.assertByteArray(a,4,"IPv4",0),this.fromUnsignedByteArray(a)}static fromUnsignedByteArray(a){if(4!==a.length)throw new i.AddressError("IPv4 addresses require exactly 4 bytes");return new k(a.join("."))}mask(a){return void 0===a&&(a=this.subnetMask),this.getBitsBase2(0,a)}getBitsBase2(a,b){return this.binaryZeroPad().slice(a,b)}reverseForm(a){a||(a={});let b=this.correctForm().split(".").reverse().join(".");return a.omitSuffix?b:`${b}.in-addr.arpa.`}isMulticast(){return this.isHostInSubnet(l)}isPrivate(){return m.some(a=>this.isHostInSubnet(a))}isLoopback(){return this.isHostInSubnet(n)}isLinkLocal(){return this.isHostInSubnet(o)}isUnspecified(){return this.isHostInSubnet(p)}isBroadcast(){return this.isHostInSubnet(q)}isCGNAT(){return this.isHostInSubnet(r)}isDocumentation(){return s.some(a=>this.isHostInSubnet(a))}isBenchmarking(){return this.isHostInSubnet(t)}isReserved(){return this.isHostInSubnet(u)}isGlobal(){return!this.isMulticast()&&g.isGloballyReachable.call(this,v)}binaryZeroPad(){return void 0===this._binaryZeroPad&&(this._binaryZeroPad=this.bigInt().toString(2).padStart(h.BITS,"0")),this._binaryZeroPad}groupForV6(){let a=this.parsedAddress;return this.correctForm().replace(h.RE_ADDRESS,`<span class="hover-group group-v4 group-6">${a.slice(0,2).join(".")}</span>.<span class="hover-group group-v4 group-7">${a.slice(2,4).join(".")}</span>`)}}b.Address4=k;let l=new k("224.0.0.0/4"),m=[new k("10.0.0.0/8"),new k("172.16.0.0/12"),new k("192.168.0.0/16")],n=new k("127.0.0.0/8"),o=new k("169.254.0.0/16"),p=new k("0.0.0.0/32"),q=new k("255.255.255.255/32"),r=new k("100.64.0.0/10"),s=[new k("192.0.2.0/24"),new k("198.51.100.0/24"),new k("203.0.113.0/24")],t=new k("198.18.0.0/15"),u=new k("240.0.0.0/4"),v=h.SPECIAL_PURPOSE.map(([a,,b])=>({subnet:new k(a),reachable:b}))},95800:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0});let d=c(25254);class e{constructor(a){if(this.length=0,this._encoding="utf8",this._writeOffset=0,this._readOffset=0,e.isSmartBufferOptions(a))if(a.encoding&&(d.checkEncoding(a.encoding),this._encoding=a.encoding),a.size)if(d.isFiniteInteger(a.size)&&a.size>0)this._buff=Buffer.allocUnsafe(a.size);else throw Error(d.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(a.buff)if(Buffer.isBuffer(a.buff))this._buff=a.buff,this.length=a.buff.length;else throw Error(d.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(4096);else{if(void 0!==a)throw Error(d.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(4096)}}static fromSize(a,b){return new this({size:a,encoding:b})}static fromBuffer(a,b){return new this({buff:a,encoding:b})}static fromOptions(a){return new this(a)}static isSmartBufferOptions(a){return a&&(void 0!==a.encoding||void 0!==a.size||void 0!==a.buff)}readInt8(a){return this._readNumberValue(Buffer.prototype.readInt8,1,a)}readInt16BE(a){return this._readNumberValue(Buffer.prototype.readInt16BE,2,a)}readInt16LE(a){return this._readNumberValue(Buffer.prototype.readInt16LE,2,a)}readInt32BE(a){return this._readNumberValue(Buffer.prototype.readInt32BE,4,a)}readInt32LE(a){return this._readNumberValue(Buffer.prototype.readInt32LE,4,a)}readBigInt64BE(a){return d.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,a)}readBigInt64LE(a){return d.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,a)}writeInt8(a,b){return this._writeNumberValue(Buffer.prototype.writeInt8,1,a,b),this}insertInt8(a,b){return this._insertNumberValue(Buffer.prototype.writeInt8,1,a,b)}writeInt16BE(a,b){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,a,b)}insertInt16BE(a,b){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,a,b)}writeInt16LE(a,b){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,a,b)}insertInt16LE(a,b){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,a,b)}writeInt32BE(a,b){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,a,b)}insertInt32BE(a,b){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,a,b)}writeInt32LE(a,b){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,a,b)}insertInt32LE(a,b){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,a,b)}writeBigInt64BE(a,b){return d.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,a,b)}insertBigInt64BE(a,b){return d.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,a,b)}writeBigInt64LE(a,b){return d.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,a,b)}insertBigInt64LE(a,b){return d.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,a,b)}readUInt8(a){return this._readNumberValue(Buffer.prototype.readUInt8,1,a)}readUInt16BE(a){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,a)}readUInt16LE(a){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,a)}readUInt32BE(a){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,a)}readUInt32LE(a){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,a)}readBigUInt64BE(a){return d.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,a)}readBigUInt64LE(a){return d.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,a)}writeUInt8(a,b){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,a,b)}insertUInt8(a,b){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,a,b)}writeUInt16BE(a,b){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,a,b)}insertUInt16BE(a,b){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,a,b)}writeUInt16LE(a,b){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,a,b)}insertUInt16LE(a,b){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,a,b)}writeUInt32BE(a,b){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,a,b)}insertUInt32BE(a,b){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,a,b)}writeUInt32LE(a,b){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,a,b)}insertUInt32LE(a,b){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,a,b)}writeBigUInt64BE(a,b){return d.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,a,b)}insertBigUInt64BE(a,b){return d.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,a,b)}writeBigUInt64LE(a,b){return d.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,a,b)}insertBigUInt64LE(a,b){return d.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,a,b)}readFloatBE(a){return this._readNumberValue(Buffer.prototype.readFloatBE,4,a)}readFloatLE(a){return this._readNumberValue(Buffer.prototype.readFloatLE,4,a)}writeFloatBE(a,b){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,a,b)}insertFloatBE(a,b){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,a,b)}writeFloatLE(a,b){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,a,b)}insertFloatLE(a,b){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,a,b)}readDoubleBE(a){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,a)}readDoubleLE(a){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,a)}writeDoubleBE(a,b){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,a,b)}insertDoubleBE(a,b){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,a,b)}writeDoubleLE(a,b){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,a,b)}insertDoubleLE(a,b){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,a,b)}readString(a,b){let c;"number"==typeof a?(d.checkLengthValue(a),c=Math.min(a,this.length-this._readOffset)):(b=a,c=this.length-this._readOffset),void 0!==b&&d.checkEncoding(b);let e=this._buff.slice(this._readOffset,this._readOffset+c).toString(b||this._encoding);return this._readOffset+=c,e}insertString(a,b,c){return d.checkOffsetValue(b),this._handleString(a,!0,b,c)}writeString(a,b,c){return this._handleString(a,!1,b,c)}readStringNT(a){void 0!==a&&d.checkEncoding(a);let b=this.length;for(let a=this._readOffset;a<this.length;a++)if(0===this._buff[a]){b=a;break}let c=this._buff.slice(this._readOffset,b);return this._readOffset=b+1,c.toString(a||this._encoding)}insertStringNT(a,b,c){return d.checkOffsetValue(b),this.insertString(a,b,c),this.insertUInt8(0,b+a.length),this}writeStringNT(a,b,c){return this.writeString(a,b,c),this.writeUInt8(0,"number"==typeof b?b+a.length:this.writeOffset),this}readBuffer(a){void 0!==a&&d.checkLengthValue(a);let b="number"==typeof a?a:this.length,c=Math.min(this.length,this._readOffset+b),e=this._buff.slice(this._readOffset,c);return this._readOffset=c,e}insertBuffer(a,b){return d.checkOffsetValue(b),this._handleBuffer(a,!0,b)}writeBuffer(a,b){return this._handleBuffer(a,!1,b)}readBufferNT(){let a=this.length;for(let b=this._readOffset;b<this.length;b++)if(0===this._buff[b]){a=b;break}let b=this._buff.slice(this._readOffset,a);return this._readOffset=a+1,b}insertBufferNT(a,b){return d.checkOffsetValue(b),this.insertBuffer(a,b),this.insertUInt8(0,b+a.length),this}writeBufferNT(a,b){return void 0!==b&&d.checkOffsetValue(b),this.writeBuffer(a,b),this.writeUInt8(0,"number"==typeof b?b+a.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(a){d.checkOffsetValue(a),d.checkTargetOffset(a,this),this._readOffset=a}get writeOffset(){return this._writeOffset}set writeOffset(a){d.checkOffsetValue(a),d.checkTargetOffset(a,this),this._writeOffset=a}get encoding(){return this._encoding}set encoding(a){d.checkEncoding(a),this._encoding=a}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(a){let b="string"==typeof a?a:this._encoding;return d.checkEncoding(b),this._buff.toString(b,0,this.length)}destroy(){return this.clear(),this}_handleString(a,b,c,e){let f=this._writeOffset,g=this._encoding;"number"==typeof c?f=c:"string"==typeof c&&(d.checkEncoding(c),g=c),"string"==typeof e&&(d.checkEncoding(e),g=e);let h=Buffer.byteLength(a,g);return b?this.ensureInsertable(h,f):this._ensureWriteable(h,f),this._buff.write(a,f,h,g),b?this._writeOffset+=h:"number"==typeof c?this._writeOffset=Math.max(this._writeOffset,f+h):this._writeOffset+=h,this}_handleBuffer(a,b,c){let d="number"==typeof c?c:this._writeOffset;return b?this.ensureInsertable(a.length,d):this._ensureWriteable(a.length,d),a.copy(this._buff,d),b?this._writeOffset+=a.length:"number"==typeof c?this._writeOffset=Math.max(this._writeOffset,d+a.length):this._writeOffset+=a.length,this}ensureReadable(a,b){let c=this._readOffset;if(void 0!==b&&(d.checkOffsetValue(b),c=b),c<0||c+a>this.length)throw Error(d.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(a,b){d.checkOffsetValue(b),this._ensureCapacity(this.length+a),b<this.length&&this._buff.copy(this._buff,b+a,b,this._buff.length),b+a>this.length?this.length=b+a:this.length+=a}_ensureWriteable(a,b){let c="number"==typeof b?b:this._writeOffset;this._ensureCapacity(c+a),c+a>this.length&&(this.length=c+a)}_ensureCapacity(a){let b=this._buff.length;if(a>b){let c=this._buff,d=3*b/2+1;d<a&&(d=a),this._buff=Buffer.allocUnsafe(d),c.copy(this._buff,0,0,b)}}_readNumberValue(a,b,c){this.ensureReadable(b,c);let d=a.call(this._buff,"number"==typeof c?c:this._readOffset);return void 0===c&&(this._readOffset+=b),d}_insertNumberValue(a,b,c,e){return d.checkOffsetValue(e),this.ensureInsertable(b,e),a.call(this._buff,c,e),this._writeOffset+=b,this}_writeNumberValue(a,b,c,e){if("number"==typeof e){if(e<0)throw Error(d.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);d.checkOffsetValue(e)}let f="number"==typeof e?e:this._writeOffset;return this._ensureWriteable(b,f),a.call(this._buff,c,f),"number"==typeof e?this._writeOffset=Math.max(this._writeOffset,f+b):this._writeOffset+=b,this}}b.SmartBuffer=e},97462:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),b.isInSubnet=function(a){return!(this.subnetMask<a.subnetMask)&&e.call(this,a)},b.isHostInSubnet=e,b.isGloballyReachable=function(a){let b=null;for(let c=0;c<a.length;c++){let d=a[c];null!==d.reachable&&e.call(this,d.subnet)&&(null===b||d.subnet.subnetMask>b.subnet.subnetMask)&&(b=d)}return null===b||b.reachable},b.offsetBigInt=function(a,b,c,e){if("number"==typeof b&&!Number.isSafeInteger(b)||"number"!=typeof b&&"bigint"!=typeof b)throw new d.AddressError(`${e} offset must be an integer`);let f=a+BigInt(b);if(f<BigInt(0)||f>(BigInt(1)<<BigInt(c))-BigInt(1))throw new d.AddressError(`${e} offset leaves the address space`);return f},b.isCorrect=function(a){return function(){return this.addressMinusSuffix===this.correctForm()&&(this.subnetMask===a&&!this.parsedSubnet||this.parsedSubnet===String(this.subnetMask))}},b.prefixLengthFromMask=function(a,b){let c=a.toString(2).padStart(b,"0");if(c.length>b)throw new d.AddressError("Invalid subnet mask.");let e=c.indexOf("0");if(-1===e)return b;if(c.slice(e).includes("1"))throw new d.AddressError("Invalid subnet mask.");return e},b.assertByteArray=function(a,b,c,e){if(a.length!==b)throw new d.AddressError(`${c} addresses require exactly ${b} bytes`);for(let b=0;b<a.length;b++)if(!Number.isInteger(a[b])||a[b]<e||a[b]>255)throw new d.AddressError(`All bytes must be integers between ${e} and 255`)},b.numberToPaddedHex=f,b.stringToPaddedHex=function(a){return f(parseInt(a,10))},b.testBit=function(a,b){let{length:c}=a;if(b>c)return!1;let d=c-b;return"1"===a.substring(d,d+1)};let d=c(50508);function e(a){return this.mask(a.subnetMask)===a.mask()}function f(a){return a.toString(16).padStart(2,"0")}},98748:function(a,b,c){var d=this&&this.__createBinding||(Object.create?function(a,b,c,d){void 0===d&&(d=c);var e=Object.getOwnPropertyDescriptor(b,c);(!e||("get"in e?!b.__esModule:e.writable||e.configurable))&&(e={enumerable:!0,get:function(){return b[c]}}),Object.defineProperty(a,d,e)}:function(a,b,c,d){void 0===d&&(d=c),a[d]=b[c]}),e=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a.default=b}),f=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)"default"!==c&&Object.prototype.hasOwnProperty.call(a,c)&&d(b,a,c);return e(b,a),b},g=this&&this.__exportStar||function(a,b){for(var c in a)"default"===c||Object.prototype.hasOwnProperty.call(b,c)||d(b,a,c)};Object.defineProperty(b,"__esModule",{value:!0}),b.Agent=void 0;let h=f(c(91645)),i=f(c(81630)),j=c(55591);g(c(48326),b);let k=Symbol("AgentBaseInternalState");class l extends i.Agent{constructor(a){super(a),this[k]={}}isSecureEndpoint(a){if(a){if("boolean"==typeof a.secureEndpoint)return a.secureEndpoint;if("string"==typeof a.protocol)return"https:"===a.protocol}let{stack:b}=Error();return"string"==typeof b&&b.split("\n").some(a=>-1!==a.indexOf("(https.js:")||-1!==a.indexOf("node:https:"))}incrementSockets(a){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[a]||(this.sockets[a]=[]);let b=new h.Socket({writable:!1});return this.sockets[a].push(b),this.totalSocketCount++,b}decrementSockets(a,b){if(!this.sockets[a]||null===b)return;let c=this.sockets[a],d=c.indexOf(b);-1!==d&&(c.splice(d,1),this.totalSocketCount--,0===c.length&&delete this.sockets[a])}getName(a){return this.isSecureEndpoint(a)?j.Agent.prototype.getName.call(this,a):super.getName(a)}createSocket(a,b,c){let d={...b,secureEndpoint:this.isSecureEndpoint(b)},e=this.getName(d),f=this.incrementSockets(e);Promise.resolve().then(()=>this.connect(a,d)).then(g=>{if(this.decrementSockets(e,f),g instanceof i.Agent)try{return g.addRequest(a,d)}catch(a){return c(a)}this[k].currentSocket=g,super.createSocket(a,b,c)},a=>{this.decrementSockets(e,f),c(a)})}createConnection(){let a=this[k].currentSocket;if(this[k].currentSocket=void 0,!a)throw Error("No socket was returned in the `connect()` function");return a}get defaultPort(){return this[k].defaultPort??("https:"===this.protocol?443:80)}set defaultPort(a){this[k]&&(this[k].defaultPort=a)}get protocol(){return this[k].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(a){this[k]&&(this[k].protocol=a)}}b.Agent=l}};
@@ -0,0 +1,25 @@
1
+ "use strict";exports.id=1757,exports.ids=[1757],exports.modules={21757:(a,b,c)=>{c.r(b),c.d(b,{DELETE:()=>z,GET:()=>w,POST:()=>y});var d=c(49796),e=c(23211),f=c(79646),g=c(28354),h=c(79748),i=c.n(h),j=c(21820),k=c.n(j),l=c(42339),m=c(92182),n=c(24424);let o=(0,g.promisify)(f.exec),p=(a,b)=>{if(!a)return null;try{let c=a.nextUrl||("string"==typeof a.url?new URL(a.url):null);return c?.searchParams?.get(b)||null}catch{return null}},q=a=>{try{return{home:(0,m.Yc)(a)}}catch(a){return{error:a.message}}},r=async a=>{try{return await i().readFile(a,"utf-8")}catch(a){if("ENOENT"===a.code)return"";throw a}},s=a=>r(a.configPath),t=async(a,b)=>{a.isDefault&&await i().mkdir(a.dir,{recursive:!0}),await i().writeFile(a.configPath,b)},u=async(a,b)=>{if(!b)return;a.isDefault&&await i().mkdir(a.dir,{recursive:!0});let c=(0,l.C1)(await r(a.envPath),"OPENAI_API_KEY",b);await i().writeFile(a.envPath,c)},v=async()=>{try{let a="win32"===k().platform();return await o(a?"where hermes":"which hermes",{windowsHide:!0}),!0}catch{try{return await i().access((0,m.Yc)(null).configPath),!0}catch{return!1}}};async function w(a){try{if(!await v())return e.NextResponse.json({installed:!1,settings:null,message:"Hermes Agent is not installed"});let{home:b,error:c}=q(p(a,"profile"));if(c)return e.NextResponse.json({error:c},{status:400});if(!b.isDefault&&!await (0,m.U1)(b.dir))return e.NextResponse.json({error:`Hermes profile "${b.name}" not found`},{status:404});let d=await s(b),f=(0,l.Gx)(d),g=(0,l.dp)(d),h=(0,l.hh)(d);return e.NextResponse.json({installed:!0,profile:{name:b.name,dir:b.dir,isDefault:b.isDefault},settings:{model:f,delegation:g,auxiliary:h},has9Router:(0,l.DN)(f)||(0,l.DN)(g)||Object.values(h).some(l.DN),configPath:b.configPath})}catch(a){return console.log("Error checking hermes settings:",a),e.NextResponse.json({error:"Failed to check hermes settings"},{status:500})}}let x=async({normalizedBaseUrl:a,apiKey:b,model:c})=>{let d=await (0,m.Bn)(),f=[];for(let e of d){let d=(0,m.Yc)(e.name);try{let g=await s(d),h=(0,l.Gx)(g);if(h?.default&&(0,l.lP)(h)){g=(0,l.Wy)(g,(0,l.bl)(h.default,a));let c=(0,l.dp)(g);for(let[b,d]of(c?.model&&(0,l.lP)(c)&&(g=(0,l.P5)(g,(0,l.W3)(c.model,a))),Object.entries((0,l.hh)(g))))d?.model&&(0,l.lP)(d)&&(g=(0,l.K)(g,b,(0,l.E3)(b,d.model,a)));await t(d,g),await u(d,b),f.push({profile:e.name,status:"updated",model:h.default})}else h?.default?f.push({profile:e.name,status:"skipped",reason:`main model uses provider "${h.provider||"unknown"}" — configure this profile individually`}):c?(g=(0,l.Wy)(g,(0,l.bl)(c,a)),await t(d,g),await u(d,b),f.push({profile:e.name,status:"updated",model:c})):f.push({profile:e.name,status:"skipped",reason:"no main model configured"})}catch(a){f.push({profile:e.name,status:"failed",reason:a.message})}}let g=f.filter(a=>"updated"===a.status).length;return e.NextResponse.json({success:g>0,bulk:!0,results:f,updated:g,skipped:f.length-g,message:`Updated endpoint on ${g} profile(s)`})};async function y(a){try{let b,c=await a.json(),{baseUrl:d,apiKey:f,model:g,selections:h}=c,i=Array.isArray(h)&&h.some(a=>a?.role&&a?.model)?h.filter(a=>a?.role&&a?.model):g?[{role:"default",model:g}]:[],j=i.find(a=>"default"===a.role);if(!d||!j)return e.NextResponse.json({error:"baseUrl and model are required"},{status:400});let k=d.endsWith("/v1")?d:`${d}/v1`;if(b=c.applyToAll??p(a,"applyToAll"),!0===b||"true"===b||"1"===b)return await x({normalizedBaseUrl:k,apiKey:f,model:j.model});let{home:n,error:o}=q(c.profile??p(a,"profile"));if(o)return e.NextResponse.json({error:o},{status:400});if(!n.isDefault&&!await (0,m.U1)(n.dir))return e.NextResponse.json({error:`Hermes profile "${n.name}" not found`},{status:404});let r=await s(n);for(let{role:a,model:b}of i)r="default"===a?(0,l.Wy)(r,(0,l.bl)(b,k)):"delegation"===a?(0,l.P5)(r,(0,l.W3)(b,k)):(0,l.K)(r,a,(0,l.E3)(a,b,k));return await t(n,r),await u(n,f),e.NextResponse.json({success:!0,message:n.isDefault?"Hermes settings applied successfully!":`Hermes settings applied to profile "${n.name}"!`,profile:{name:n.name,dir:n.dir,isDefault:n.isDefault},configPath:n.configPath})}catch(a){return console.log("Error updating hermes settings:",a),e.NextResponse.json({error:"Failed to update hermes settings"},{status:500})}}async function z(a){try{let b=null;if(a&&"function"==typeof a.json)try{b=await a.json()}catch{b=null}let{home:c,error:d}=q(b?.profile??p(a,"profile"));if(d)return e.NextResponse.json({error:d},{status:400});if(!c.isDefault&&!await (0,m.U1)(c.dir))return e.NextResponse.json({error:`Hermes profile "${c.name}" not found`},{status:404});let f="";try{f=await i().readFile(c.configPath,"utf-8")}catch(a){if("ENOENT"===a.code)return e.NextResponse.json({success:!0,profile:c.name,message:"No config file to reset"});throw a}let g={model:!1,delegation:!1,auxiliary:[]},h=[],j=(0,l.Gx)(f);j&&(0,l.lP)(j)?(f=(0,l.Fj)(f),g.model=!0):j&&h.push("model");let k=(0,l.dp)(f);for(let[a,b]of(k&&(0,l.lP)(k)?(f=(0,l.IP)(f),g.delegation=!0):k&&h.push("delegation"),Object.entries((0,l.hh)(f))))(0,l.lP)(b)&&(f=(0,l.$d)(f,a),g.auxiliary.push(a));f=f.replace(/^\n+/,""),await t(c,f);let n=c.isDefault?"":` in profile "${c.name}"`;return e.NextResponse.json({success:!0,profile:c.name,removed:g,kept:h,message:`9router model blocks removed${n}`})}catch(a){return console.log("Error resetting hermes settings:",a),e.NextResponse.json({error:"Failed to reset hermes settings"},{status:500})}}(0,n.D)([w,y,z]),(0,d.A)(w,"40b58890172e5747f000e498fef28c45f90d1027e5",null),(0,d.A)(y,"40a143c70da0b92ea971e83aac3534338b3d511a7f",null),(0,d.A)(z,"402eabe05d715346f363156fb63b5415238ba67cfc",null)},42339:(a,b,c)=>{c.d(b,{$d:()=>r,C1:()=>v,DN:()=>w,E3:()=>k,Fj:()=>u,Gx:()=>m,IP:()=>p,K:()=>q,P5:()=>o,W3:()=>j,Wy:()=>n,bl:()=>i,dp:()=>t,hh:()=>s,lP:()=>x});let d=/^model:[ \t]*\r?\n((?:[ \t]+.*\r?\n?|[ \t]*\r?\n)*)/m,e=/^model:[ \t]*[^\r\n]*\r?\n?/m,f=/^delegation:[ \t]*\r?\n((?:[ \t]+.*\r?\n?|[ \t]*\r?\n)*)/m,g=/^auxiliary:[ \t]*\r?\n((?:(?:[ \t]+.*\r?\n?)|(?:[ \t]*\r?\n))*)/m,h=a=>RegExp(`^ ${a}:[ \\t]*\\r?\\n(?:(?:[ \\t]{4,}.*\\r?\\n?)|(?:[ \\t]*\\r?\\n))*`,"m"),i=(a,b)=>`model:
2
+ default: "${a}"
3
+ provider: "custom"
4
+ base_url: "${b}"
5
+ api_key: \${OPENAI_API_KEY}
6
+ `,j=(a,b)=>`delegation:
7
+ model: "${a}"
8
+ provider: "custom"
9
+ base_url: "${b}"
10
+ api_key: \${OPENAI_API_KEY}
11
+ `,k=(a,b,c)=>` ${a}:
12
+ provider: "custom"
13
+ model: "${b}"
14
+ base_url: "${c}"
15
+ api_key: \${OPENAI_API_KEY}
16
+ `,l=a=>b=>{let c=a.match(RegExp(`^[ \\t]+${b}:[ \\t]*["']?([^"'\\r\\n]+)["']?`,"m"));return c?c[1].trim():null},m=a=>{let b=a.match(d);if(!b)return null;let c=l(b[1]||"");return{default:c("default"),provider:c("provider"),base_url:c("base_url"),api_key:c("api_key")}},n=(a,b)=>d.test(a)?a.replace(d,b):e.test(a)?a.replace(e,b):a.length>0?`${b}
17
+ ${a}`:b,o=(a,b)=>f.test(a)?a.replace(f,b):a.endsWith("\n")||0===a.length?`${a}${b}`:`${a}
18
+ ${b}`,p=a=>a.replace(f,""),q=(a,b,c)=>{let d=h(b),e=a.match(g);if(!e){let b=`auxiliary:
19
+ ${c}`;return a.endsWith("\n")||0===a.length?`${a}${b}`:`${a}
20
+ ${b}`}let f=d.test(e[1])?e[1].replace(d,c):`${e[1]}${c}`;return a.replace(g,`auxiliary:
21
+ ${f}`)},r=(a,b)=>{let c=a.match(g);if(!c)return a;let d=c[1].replace(h(b),"");return""===d.trim()?a.replace(g,""):a.replace(g,`auxiliary:
22
+ ${d}`)},s=a=>{let b,c=a.match(g);if(!c)return{};let d={},e=/^ ([A-Za-z0-9_]+):[ \t]*\r?\n((?:(?:[ \t]{4,}.*\r?\n?)|(?:[ \t]*\r?\n))*)/gm;for(;b=e.exec(c[1]);){let a=l(b[2]);d[b[1]]={model:a("model"),provider:a("provider"),base_url:a("base_url")}}return d},t=a=>{let b=a.match(f);if(!b)return null;let c=l(b[1]||"");return{model:c("model"),provider:c("provider"),base_url:c("base_url")}},u=a=>d.test(a)?a.replace(d,"").replace(/^\n+/,""):e.test(a)?a.replace(e,"").replace(/^\n+/,""):a,v=(a,b,c)=>{let d=RegExp(`^${b}=.*$`,"m"),e=`${b}=${c}`;return d.test(a)?a.replace(d,e):a.length>0&&!a.endsWith("\n")?`${a}
23
+ ${e}
24
+ `:`${a}${e}
25
+ `},w=a=>!!a?.base_url&&"custom"===a.provider&&/localhost|127\.0\.0\.1|0\.0\.0\.0/.test(a.base_url),x=a=>a?.provider==="custom"},92182:(a,b,c)=>{c.d(b,{Bn:()=>u,U1:()=>q,Yc:()=>p});var d=c(79748),e=c.n(d),f=c(33873),g=c.n(f),h=c(21820),i=c.n(h),j=c(42339);let k=/^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/,l=["config.yaml",".env","SOUL.md","profile.yaml","auth.json","state.db"],m=a=>a||g().join(i().homedir(),".hermes"),n=a=>g().join(m(a),"profiles"),o=a=>"string"==typeof a&&k.test(a)&&"default"!==a.toLowerCase(),p=(a,b)=>{let c=m(b),d="string"==typeof a?a.trim():"";if(!d||"default"===d)return{name:"default",dir:c,configPath:g().join(c,"config.yaml"),envPath:g().join(c,".env"),isDefault:!0};if(!o(d))throw Error("Invalid Hermes profile name (letters, digits, - and _ only, max 64 chars)");let e=g().resolve(n(c)),f=g().resolve(g().join(e,d));if(f!==e&&!f.startsWith(e+g().sep))throw Error("Invalid Hermes profile path");return{name:d,dir:f,configPath:g().join(f,"config.yaml"),envPath:g().join(f,".env"),isDefault:!1}},q=async a=>{try{return(await e().stat(a)).isDirectory()}catch{return!1}},r=async a=>{for(let b of l)try{return await e().stat(g().join(a,b)),!0}catch{}return!1},s=async a=>{try{return await e().readFile(a,"utf-8")}catch(a){if("ENOENT"===a.code)return"";throw a}},t=async(a,b,c)=>{let d,e=g().join(b,"config.yaml"),f=await s(e),h=(0,j.Gx)(f),i=(0,j.dp)(f),k=(0,j.hh)(f),l=(d=(await s(g().join(b,"profile.yaml"))).match(/^display_name:[ \t]*["']?([^"'\r\n]+)["']?/m))?d[1].trim():null;return{name:a,dir:b,isDefault:c,displayName:l,command:c?"hermes":`hermes -p ${a}`,alias:c?null:a,model:h?.default||null,baseUrl:h?.base_url||null,has9Router:(0,j.DN)(h)||(0,j.DN)(i)||Object.values(k).some(j.DN)}},u=async a=>{let b=m(a),c=[await t("default",b,!0)],d=[];try{d=await e().readdir(n(b),{withFileTypes:!0})}catch(a){if("ENOENT"!==a.code)throw a;return c}for(let a of d.filter(a=>a.isDirectory()).map(a=>a.name).filter(a=>o(a)).sort((a,b)=>a.localeCompare(b))){let d=g().join(b,"profiles",a);await r(d)&&c.push(await t(a,d,!1))}return c}}};
@@ -1 +1 @@
1
- "use strict";exports.id=2132,exports.ids=[2132,3662,9609],exports.modules={3662:(a,b,c)=>{c.d(b,{EQ:()=>f,LY:()=>d,O:()=>e,fh:()=>h,t2:()=>i,wf:()=>g});let d={400:{type:"invalid_request_error",code:"bad_request"},401:{type:"authentication_error",code:"invalid_api_key"},402:{type:"billing_error",code:"payment_required"},403:{type:"permission_error",code:"insufficient_quota"},404:{type:"invalid_request_error",code:"model_not_found"},406:{type:"invalid_request_error",code:"model_not_supported"},429:{type:"rate_limit_error",code:"rate_limit_exceeded"},500:{type:"server_error",code:"internal_server_error"},502:{type:"server_error",code:"bad_gateway"},503:{type:"server_error",code:"service_unavailable"},504:{type:"server_error",code:"gateway_timeout"}},e={400:"Bad request",401:"Invalid API key provided",402:"Payment required",403:"You exceeded your current quota",404:"Model not found",406:"Model not supported",429:"Rate limit exceeded",500:"Internal server error",502:"Bad gateway - upstream provider error",503:"Service temporarily unavailable",504:"Gateway timeout"},f={base:2e3,max:3e5,maxLevel:15},g=3e4,h=18e5,i=[{text:"no credentials",cooldownMs:12e4},{text:"request not allowed",cooldownMs:5e3},{text:"improperly formed request",cooldownMs:12e4},{text:"rate limit",backoff:!0},{text:"too many requests",backoff:!0},{text:"quota exceeded",backoff:!0},{text:"capacity",backoff:!0},{text:"overloaded",backoff:!0},{status:401,cooldownMs:12e4},{status:402,cooldownMs:12e4},{status:403,cooldownMs:12e4},{status:404,cooldownMs:12e4},{status:429,backoff:!0}]},12132:(a,b,c)=>{c.r(b),c.d(b,{MIMO_API_BASE:()=>D,MIMO_API_UA:()=>E,getMimoAccountCookie:()=>F,getMimoAccountUsage:()=>G,invalidateMimoAccountCookieCache:()=>C,readDesktopPassToken:()=>v,resolveMimoServerBase:()=>y});var d=c(73024),e=c.n(d),f=c(48161),g=c.n(f),h=c(76760),i=c.n(h),j=c(77598),k=c.n(j),l=c(39609);let m={cn:"https://mimo-server-cn.xiaomimimo.com",sgp:"https://mimo-server-sgp.xiaomimimo.com",ams:"https://mimo-server-ams.xiaomimimo.com",ru:"https://mimo-server-ru.xiaomimimo.com",in:"https://mimo-server-in.xiaomimimo.com"},n=m.sgp,o={cn:"mimopc",sgp:"mimosgp",ams:"mimoams",ru:"mimoru",in:"mimoin"},p="account.xiaomi.com",q="miNative PC/Normal Windows_NT/10.0.19045 SDKV/1.0.0 DEVT/PC DEVS/Windows APP/miaccount_desktop APPV/0.1.0",r="MiClaw/1.0",s=new Map,t=new Map;async function u(){let a,b=(a=g().homedir(),"win32"===process.platform?i().join(a,"AppData","Roaming","Xiaomi MiMo","Partitions","xiaomi-account","Network","Cookies"):"darwin"===process.platform?i().join(a,"Library","Application Support","Xiaomi MiMo","Partitions","xiaomi-account","Network","Cookies"):i().join(a,".config","Xiaomi MiMo","Partitions","xiaomi-account","Network","Cookies"));if(!e().existsSync(b))return null;let d=i().join(g().tmpdir(),`9r-mimo-cookies-${process.pid}-${k().randomBytes(4).toString("hex")}.db`);try{e().copyFileSync(b,d)}catch{return null}try{let{DatabaseSync:a}=await Promise.resolve().then(c.t.bind(c,80099,23)),b=new a(d,{readOnly:!0}),e=b.prepare("SELECT name, value FROM cookies WHERE host_key = ?").all("."+p);b.close();let f=Object.fromEntries(e.map(a=>[a.name,a.value]));return f.passToken?f:null}catch{return null}finally{try{e().unlinkSync(d)}catch{}}}async function v(){try{let a=await u();if(!a?.passToken)return null;return{passToken:a.passToken,userId:a.userId||null,cUserId:a.cUserId||null}}catch{return null}}function w(a,b){for(let c of b.headers.getSetCookie?.()||[]){let b=/^([^=]+)=([^;]*)/.exec(c.trim());b&&b[2]&&(a[b[1]]=b[2])}}function x(a){return Object.entries(a).filter(([,a])=>a).map(([a,b])=>`${a}=${b}`).join("; ")}function y(a=null){return m[String(a?.region||"").toLowerCase()]||n}async function z(a,b,c=n,d="sgp"){let e=String(d||"").toLowerCase(),f=o[String(e||"").toLowerCase()]||o.sgp,g=await A(a,"cn"===e?null:b,c,f);return g&&console.log(`[mimoAccount] desktop 2-phase OK (sid=${f})`),g}async function A(a,b,c,d){var e,f;let g,h=a=>console.log(`[mimoAccount] desktopPhase fail: ${a}`),i={...a},j={};i.userId&&(j.userId=i.userId),i.passToken&&(j.passToken=i.passToken),i.cUserId&&(j.cUserId=i.cUserId);let m=`https://${p}/pass/serviceLogin?_locale=zh_CN&_snsNone=true&sid=${encodeURIComponent(d)}&_json=true`,n=await (0,l.proxyAwareFetch)(m,{headers:{Cookie:x(j),"User-Agent":r,Accept:"application/json"}},b),o=await n.text(),q=o.replace(/^&&&START&&&/,""),s=q.match(/"nonce"\s*:\s*(\d+)/)?.[1],t=null;try{t=JSON.parse(q)}catch{}if(s&&t&&(t.nonce=s),!t||"number"!=typeof t.code||0!==t.code||!t.location||!t.nonce||!t.ssecurity)return h(`phase1 sid=${d} http=${n.status} code=${t?.code??"?"} hasLoc=${!!t?.location} secondValidation=${t?.bSecondValidation??"?"} notificationUrl=${t?.notificationUrl?"present":"no"} body=${JSON.stringify(o.slice(0,200))}`),null;w(i,n);let u=t.location.includes("?")?"&":"?",v=`${t.location}${u}clientSign=${(e=s||t.nonce,g=`nonce=${e}`+((f=t.ssecurity)&&f.trim()?`&${f}`:""),encodeURIComponent(k().createHash("sha1").update(g).digest("base64")))}`;for(let a=0;a<8;a++){let a=await (0,l.proxyAwareFetch)(v,{redirect:"manual",headers:{"User-Agent":r}},b);w(i,a);let c=a.headers.get("location");if(a.status>=300&&a.status<400&&c){v=new URL(c,v).toString();continue}break}let y=`${d}_serviceToken`;if(!i.serviceToken&&i[y]&&(i.serviceToken=i[y]),!i.serviceToken)return h(`phase2 no serviceToken sid=${d} jar=[${Object.keys(i).join(",")}]`),null;let z={};for(let[a,b]of Object.entries(i))b&&("serviceToken"===a||"userId"===a||/_(ph|slh)$/.test(a))&&(z[a]=b);return x(z)}async function B(a,b){let c=y(a),d=a?.mimoPassToken?{passToken:a.mimoPassToken,userId:a.mimoUserId,cUserId:a.mimoCUserId}:await u();if(!d)return{cookie:null,reason:"no-pass-token"};let e=k().createHash("sha256").update(`${c}|${d.passToken}`).digest("hex"),f=s.get(e);if(f&&Date.now()-f.at<18e5)return{cookie:f.cookie};let g=t.get(e);if(g){let a=await g;return a?{cookie:a}:{cookie:null,reason:"sso-failed"}}let h=(async()=>{try{return await z(d,b,c,a?.region)}catch(a){return console.log(`[mimoAccount] acquire threw: ${a?.message||a} | ${String(a?.stack||"").split("\n").slice(1,4).join(" <- ")}`),null}finally{t.delete(e)}})();t.set(e,h);let i=await h;return i?(s.set(e,{cookie:i,at:Date.now()}),{cookie:i}):{cookie:null,reason:"sso-failed"}}function C(){s.clear()}let D=n,E=q;async function F(a=null,b=null){try{let{cookie:c}=await B(a,b);return c}catch(a){return console.log(`[mimoAccount] getMimoAccountCookie threw: ${a?.message||a} | ${String(a?.stack||"").split("\n").slice(1,4).join(" <- ")}`),null}}async function G(a=null,b=null){let{cookie:c,reason:d}=await B(a,b);if(!c)return{error:"no-pass-token"===d?"no-session":"session-failed"};try{let d=await (0,l.proxyAwareFetch)(`${y(a)}/api/user/usage`,{headers:{"User-Agent":q,Cookie:c,Accept:"application/json"},signal:AbortSignal.timeout(1e4)},b);if(!d.ok)return{error:`http-${d.status}`};let e=await d.json().catch(()=>null);if(!e||0!==e.code||!e.data)return{error:"bad-response"};return{percent:e.data.percent,resetDate:e.data.resetDate,resetAt:e.data.resetAt}}catch(a){return{error:a.message}}}},39609:(a,b,c)=>{c.r(b),c.d(b,{default:()=>s,proxyAwareFetch:()=>q});var d=c(27910),e=c(41004);let f=globalThis.fetch,g=new Map,h=new Map,i=["cloudcode-pa.googleapis.com","daily-cloudcode-pa.googleapis.com","api.individual.githubcopilot.com","q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com","api2.cursor.sh"],j=["8.8.8.8","8.8.4.4"];function k(a){return null==a?"":String(a).trim()}async function l(a){let b=h.get(a);if(b&&Date.now()<b.expiry)return b.ip;try{let b=await Promise.resolve().then(c.t.bind(c,14985,23)),{promisify:d}=await Promise.resolve().then(c.t.bind(c,28354,23)),f=new b.Resolver;f.setServers(j);let g=d(f.resolve4.bind(f)),i=await g(a);return h.set(a,{ip:i[0],expiry:Date.now()+e.v1.dnsCacheTtlMs}),i[0]}catch(b){return console.warn(`[ProxyFetch] DNS resolve failed for ${a}:`,b.message),null}}function m(a,b){let c,d=k(b);if(!d)return!1;try{c=new URL(a).hostname.toLowerCase()}catch{return!1}return d.split(",").map(a=>a.trim().toLowerCase()).filter(Boolean).some(a=>"*"===a||(a.startsWith(".")?c.endsWith(a)||c===a.slice(1):c===a||c.endsWith(`.${a}`)))}function n(a){let b=k(a);if(!b)return null;try{return new URL(b),b}catch{return`http://${b}`}}async function o(a){let b=n(a);if(!b)return null;if(!g.has(b)){g.size>=e.v1.proxyDispatchersMaxSize&&g.delete(g.keys().next().value);let{ProxyAgent:a}=await c.e(7774).then(c.t.bind(c,47774,19));g.set(b,new a({uri:b}))}return g.get(b)}async function p(a,b,e){let f=await Promise.resolve().then(c.t.bind(c,55591,23)),g=await Promise.resolve().then(c.t.bind(c,91645,23)),h=f.default??f,i=g.default??g;return new Promise((c,f)=>{let g=new i.Socket;g.connect(443,b,()=>{let b={socket:g,servername:a.hostname,path:a.pathname+a.search,method:e.method||"POST",headers:{...e.headers,Host:a.hostname}},i=h.request(b,a=>{let b={ok:a.statusCode>=200&&a.statusCode<300,status:a.statusCode,statusText:a.statusMessage,headers:new Map(Object.entries(a.headers)),body:d.Readable.toWeb(a),text:async()=>{let b=[];for await(let c of a)b.push(c);return Buffer.concat(b).toString()},json:async()=>JSON.parse(await b.text())};c(b)});i.on("error",f),e.body&&i.write("string"==typeof e.body?e.body:JSON.stringify(e.body)),i.end()}),g.on("error",f)})}async function q(a,b={},c=null){let d="string"==typeof a?a:a.toString(),e=k(c?.vercelRelayUrl);if(e){let a=new URL(d),c={...b.headers instanceof Headers?Object.fromEntries(b.headers.entries()):{...b.headers||{}},"x-relay-target":`${a.protocol}//${a.host}`,"x-relay-path":`${a.pathname}${a.search}`};return f(e,{...b,headers:c})}let g=function(a,b){if(b?.enabled!==!0&&b?.connectionProxyEnabled!==!0)return null;let c=k(b?.url??b?.connectionProxyUrl);if(!c)return null;let d=k(b?.noProxy??b?.connectionNoProxy);return d&&m(a,d)?null:n(c)}(d,c),h=g?null:n(function(a){let b;if(m(a,process.env.NO_PROXY||process.env.no_proxy))return null;try{b=new URL(a).protocol}catch{return null}return"https:"===b?process.env.HTTPS_PROXY||process.env.https_proxy||process.env.ALL_PROXY||process.env.all_proxy:process.env.HTTP_PROXY||process.env.http_proxy||process.env.ALL_PROXY||process.env.all_proxy}(d)),j=g||h;if(function(a){try{let b=new URL(a).hostname;return i.some(a=>b.includes(a))}catch{return!1}}(d)){if(j)try{let c=await o(j);return await f(a,{...b,dispatcher:c})}catch(a){if(c?.strictProxy===!0)throw Error(`[ProxyFetch] Proxy required but failed (strictProxy=true): ${a.message}`);console.warn(`[ProxyFetch] Proxy failed, falling back to direct bypass: ${a.message}`)}try{let a=new URL(d),c=await l(a.hostname);if(c)return await p(a,c,b)}catch(a){console.warn(`[ProxyFetch] MITM bypass failed: ${a.message}`)}}if(j)try{let c=await o(j);return await f(a,{...b,dispatcher:c})}catch(a){if(c?.strictProxy===!0)throw Error(`[ProxyFetch] Proxy required but failed (strictProxy=true): ${a.message}`);console.warn(`[ProxyFetch] Proxy failed, falling back to direct: ${a.message}`)}return f(a,b)}async function r(a,b={}){return q(a,b,null)}globalThis.fetch!==r&&(globalThis.fetch=r);let s=r},41004:(a,b,c)=>{c.d(b,{C8:()=>q,DR:()=>p,IK:()=>k,Ps:()=>g,SA:()=>n,Uc:()=>l,Z1:()=>i,cI:()=>o,eo:()=>m,gx:()=>d,pH:()=>j,v1:()=>e,xM:()=>h}),c(3662);let d={BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,NOT_ACCEPTABLE:406,REQUEST_TIMEOUT:408,RATE_LIMITED:429,SERVER_ERROR:500,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504},e={sessionTtlMs:72e5,sessionCleanupIntervalMs:18e5,dnsCacheTtlMs:3e5,proxyDispatchersMaxSize:20};function f(a,b){let c=process.env[a];if(null==c||""===c)return b;let d=parseInt(c,10);return Number.isFinite(d)&&d>0?d:b}let g=process.env.SEARXNG_URL?.trim()||"http://localhost:8888/search",h=f("STREAM_STALL_TIMEOUT_MS",36e4),i=f("STREAM_FIRST_CHUNK_TIMEOUT_MS",2e5),j=f("FETCH_CONNECT_TIMEOUT_MS",6e4),k=f("GEMINI_NATIVE_TTS_FETCH_TIMEOUT_MS",45e3),l=64e3,m=32e3,n="x-9router-token-saver",o={429:{attempts:0,delayMs:0},502:{attempts:3,delayMs:3e3},503:{attempts:3,delayMs:2e3},504:{attempts:2,delayMs:3e3}};function p(a){return null==a?{attempts:0,delayMs:2e3}:"number"==typeof a?{attempts:a,delayMs:2e3}:{attempts:a.attempts||0,delayMs:null!=a.delayMs?a.delayMs:2e3}}let q=["Please write a 5-10 word title for the following conversation:"]}};
1
+ "use strict";exports.id=2132,exports.ids=[2132,3662,9609],exports.modules={3662:(a,b,c)=>{c.d(b,{EQ:()=>f,LY:()=>d,O:()=>e,fh:()=>h,t2:()=>i,wf:()=>g});let d={400:{type:"invalid_request_error",code:"bad_request"},401:{type:"authentication_error",code:"invalid_api_key"},402:{type:"billing_error",code:"payment_required"},403:{type:"permission_error",code:"insufficient_quota"},404:{type:"invalid_request_error",code:"model_not_found"},406:{type:"invalid_request_error",code:"model_not_supported"},429:{type:"rate_limit_error",code:"rate_limit_exceeded"},500:{type:"server_error",code:"internal_server_error"},502:{type:"server_error",code:"bad_gateway"},503:{type:"server_error",code:"service_unavailable"},504:{type:"server_error",code:"gateway_timeout"}},e={400:"Bad request",401:"Invalid API key provided",402:"Payment required",403:"You exceeded your current quota",404:"Model not found",406:"Model not supported",429:"Rate limit exceeded",500:"Internal server error",502:"Bad gateway - upstream provider error",503:"Service temporarily unavailable",504:"Gateway timeout"},f={base:2e3,max:3e5,maxLevel:15},g=3e4,h=18e5,i=[{provider:"codex",text:"model is not supported when using codex with a chatgpt account",cooldownMs:18e5},{text:"no credentials",cooldownMs:12e4},{text:"request not allowed",cooldownMs:5e3},{text:"improperly formed request",cooldownMs:12e4},{text:"rate limit",backoff:!0},{text:"too many requests",backoff:!0},{text:"quota exceeded",backoff:!0},{text:"capacity",backoff:!0},{text:"overloaded",backoff:!0},{status:401,cooldownMs:12e4},{status:402,cooldownMs:12e4},{status:403,cooldownMs:12e4},{status:404,cooldownMs:12e4},{status:429,backoff:!0}]},12132:(a,b,c)=>{c.r(b),c.d(b,{MIMO_API_BASE:()=>D,MIMO_API_UA:()=>E,getMimoAccountCookie:()=>F,getMimoAccountUsage:()=>G,invalidateMimoAccountCookieCache:()=>C,readDesktopPassToken:()=>v,resolveMimoServerBase:()=>y});var d=c(73024),e=c.n(d),f=c(48161),g=c.n(f),h=c(76760),i=c.n(h),j=c(77598),k=c.n(j),l=c(39609);let m={cn:"https://mimo-server-cn.xiaomimimo.com",sgp:"https://mimo-server-sgp.xiaomimimo.com",ams:"https://mimo-server-ams.xiaomimimo.com",ru:"https://mimo-server-ru.xiaomimimo.com",in:"https://mimo-server-in.xiaomimimo.com"},n=m.sgp,o={cn:"mimopc",sgp:"mimosgp",ams:"mimoams",ru:"mimoru",in:"mimoin"},p="account.xiaomi.com",q="miNative PC/Normal Windows_NT/10.0.19045 SDKV/1.0.0 DEVT/PC DEVS/Windows APP/miaccount_desktop APPV/0.1.0",r="MiClaw/1.0",s=new Map,t=new Map;async function u(){let a,b=(a=g().homedir(),"win32"===process.platform?i().join(a,"AppData","Roaming","Xiaomi MiMo","Partitions","xiaomi-account","Network","Cookies"):"darwin"===process.platform?i().join(a,"Library","Application Support","Xiaomi MiMo","Partitions","xiaomi-account","Network","Cookies"):i().join(a,".config","Xiaomi MiMo","Partitions","xiaomi-account","Network","Cookies"));if(!e().existsSync(b))return null;let d=i().join(g().tmpdir(),`9r-mimo-cookies-${process.pid}-${k().randomBytes(4).toString("hex")}.db`);try{e().copyFileSync(b,d)}catch{return null}try{let{DatabaseSync:a}=await Promise.resolve().then(c.t.bind(c,80099,23)),b=new a(d,{readOnly:!0}),e=b.prepare("SELECT name, value FROM cookies WHERE host_key = ?").all("."+p);b.close();let f=Object.fromEntries(e.map(a=>[a.name,a.value]));return f.passToken?f:null}catch{return null}finally{try{e().unlinkSync(d)}catch{}}}async function v(){try{let a=await u();if(!a?.passToken)return null;return{passToken:a.passToken,userId:a.userId||null,cUserId:a.cUserId||null}}catch{return null}}function w(a,b){for(let c of b.headers.getSetCookie?.()||[]){let b=/^([^=]+)=([^;]*)/.exec(c.trim());b&&b[2]&&(a[b[1]]=b[2])}}function x(a){return Object.entries(a).filter(([,a])=>a).map(([a,b])=>`${a}=${b}`).join("; ")}function y(a=null){return m[String(a?.region||"").toLowerCase()]||n}async function z(a,b,c=n,d="sgp"){let e=String(d||"").toLowerCase(),f=o[String(e||"").toLowerCase()]||o.sgp,g=await A(a,"cn"===e?null:b,c,f);return g&&console.log(`[mimoAccount] desktop 2-phase OK (sid=${f})`),g}async function A(a,b,c,d){var e,f;let g,h=a=>console.log(`[mimoAccount] desktopPhase fail: ${a}`),i={...a},j={};i.userId&&(j.userId=i.userId),i.passToken&&(j.passToken=i.passToken),i.cUserId&&(j.cUserId=i.cUserId);let m=`https://${p}/pass/serviceLogin?_locale=zh_CN&_snsNone=true&sid=${encodeURIComponent(d)}&_json=true`,n=await (0,l.proxyAwareFetch)(m,{headers:{Cookie:x(j),"User-Agent":r,Accept:"application/json"}},b),o=await n.text(),q=o.replace(/^&&&START&&&/,""),s=q.match(/"nonce"\s*:\s*(\d+)/)?.[1],t=null;try{t=JSON.parse(q)}catch{}if(s&&t&&(t.nonce=s),!t||"number"!=typeof t.code||0!==t.code||!t.location||!t.nonce||!t.ssecurity)return h(`phase1 sid=${d} http=${n.status} code=${t?.code??"?"} hasLoc=${!!t?.location} secondValidation=${t?.bSecondValidation??"?"} notificationUrl=${t?.notificationUrl?"present":"no"} body=${JSON.stringify(o.slice(0,200))}`),null;w(i,n);let u=t.location.includes("?")?"&":"?",v=`${t.location}${u}clientSign=${(e=s||t.nonce,g=`nonce=${e}`+((f=t.ssecurity)&&f.trim()?`&${f}`:""),encodeURIComponent(k().createHash("sha1").update(g).digest("base64")))}`;for(let a=0;a<8;a++){let a=await (0,l.proxyAwareFetch)(v,{redirect:"manual",headers:{"User-Agent":r}},b);w(i,a);let c=a.headers.get("location");if(a.status>=300&&a.status<400&&c){v=new URL(c,v).toString();continue}break}let y=`${d}_serviceToken`;if(!i.serviceToken&&i[y]&&(i.serviceToken=i[y]),!i.serviceToken)return h(`phase2 no serviceToken sid=${d} jar=[${Object.keys(i).join(",")}]`),null;let z={};for(let[a,b]of Object.entries(i))b&&("serviceToken"===a||"userId"===a||/_(ph|slh)$/.test(a))&&(z[a]=b);return x(z)}async function B(a,b){let c=y(a),d=a?.mimoPassToken?{passToken:a.mimoPassToken,userId:a.mimoUserId,cUserId:a.mimoCUserId}:await u();if(!d)return{cookie:null,reason:"no-pass-token"};let e=k().createHash("sha256").update(`${c}|${d.passToken}`).digest("hex"),f=s.get(e);if(f&&Date.now()-f.at<18e5)return{cookie:f.cookie};let g=t.get(e);if(g){let a=await g;return a?{cookie:a}:{cookie:null,reason:"sso-failed"}}let h=(async()=>{try{return await z(d,b,c,a?.region)}catch(a){return console.log(`[mimoAccount] acquire threw: ${a?.message||a} | ${String(a?.stack||"").split("\n").slice(1,4).join(" <- ")}`),null}finally{t.delete(e)}})();t.set(e,h);let i=await h;return i?(s.set(e,{cookie:i,at:Date.now()}),{cookie:i}):{cookie:null,reason:"sso-failed"}}function C(){s.clear()}let D=n,E=q;async function F(a=null,b=null){try{let{cookie:c}=await B(a,b);return c}catch(a){return console.log(`[mimoAccount] getMimoAccountCookie threw: ${a?.message||a} | ${String(a?.stack||"").split("\n").slice(1,4).join(" <- ")}`),null}}async function G(a=null,b=null){let{cookie:c,reason:d}=await B(a,b);if(!c)return{error:"no-pass-token"===d?"no-session":"session-failed"};try{let d=await (0,l.proxyAwareFetch)(`${y(a)}/api/user/usage`,{headers:{"User-Agent":q,Cookie:c,Accept:"application/json"},signal:AbortSignal.timeout(1e4)},b);if(!d.ok)return{error:`http-${d.status}`};let e=await d.json().catch(()=>null);if(!e||0!==e.code||!e.data)return{error:"bad-response"};return{percent:e.data.percent,resetDate:e.data.resetDate,resetAt:e.data.resetAt}}catch(a){return{error:a.message}}}},39609:(a,b,c)=>{c.r(b),c.d(b,{default:()=>u,proxyAwareFetch:()=>s});var d=c(27910),e=c(41004);let f=globalThis.fetch,g=new Map,h=new Map,i=new Set(["SELF_SIGNED_CERT_IN_CHAIN","DEPTH_ZERO_SELF_SIGNED_CERT","UNABLE_TO_VERIFY_LEAF_SIGNATURE","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","CERT_HAS_EXPIRED","ERR_TLS_CERT_ALTNAME_INVALID"]),j=["cloudcode-pa.googleapis.com","daily-cloudcode-pa.googleapis.com","api.individual.githubcopilot.com","q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com","api2.cursor.sh"],k=["8.8.8.8","8.8.4.4"];function l(a){return null==a?"":String(a).trim()}async function m(a){let b=h.get(a);if(b&&Date.now()<b.expiry)return b.ip;try{let b=await Promise.resolve().then(c.t.bind(c,14985,23)),{promisify:d}=await Promise.resolve().then(c.t.bind(c,28354,23)),f=new b.Resolver;f.setServers(k);let g=d(f.resolve4.bind(f)),i=await g(a);return h.set(a,{ip:i[0],expiry:Date.now()+e.v1.dnsCacheTtlMs}),i[0]}catch(b){return console.warn(`[ProxyFetch] DNS resolve failed for ${a}:`,b.message),null}}function n(a,b){let c,d=l(b);if(!d)return!1;try{c=new URL(a).hostname.toLowerCase()}catch{return!1}return d.split(",").map(a=>a.trim().toLowerCase()).filter(Boolean).some(a=>"*"===a||(a.startsWith(".")?c.endsWith(a)||c===a.slice(1):c===a||c.endsWith(`.${a}`)))}function o(a){let b=l(a);if(!b)return null;try{return new URL(b),b}catch{return`http://${b}`}}async function p(a,b=!1){let d=o(a);if(!d&&!b)return null;let f=`${d||"direct"}::${b?"insecure":"secure"}`;if(!g.has(f)){g.size>=e.v1.proxyDispatchersMaxSize&&g.delete(g.keys().next().value);let{Agent:a,ProxyAgent:h}=await c.e(7774).then(c.t.bind(c,47774,19)),i=b?{rejectUnauthorized:!1}:void 0,j=d?new h({uri:d,...b?{requestTls:i}:{}}):new a({connect:i});g.set(f,j)}return g.get(f)}async function q(a,b,c){try{let d=c?await p(c):void 0;return await f(a,d?{...b,dispatcher:d}:b)}catch(e){let d;if("true"!==process.env.STRICT_SSL&&"1"!==process.env.STRICT_SSL&&(d=e?.cause?.code||e?.code,i.has(d))){if(b.body&&"function"==typeof b.body.getReader&&b.body.locked)throw e;console.warn(`[ProxyFetch] TLS cert verification failed (${e.cause?.code||e.code}), retrying with insecure TLS: ${a}`);let d=await p(c,!0);return await f(a,{...b,dispatcher:d})}throw e}}async function r(a,b,e){let f=await Promise.resolve().then(c.t.bind(c,55591,23)),g=await Promise.resolve().then(c.t.bind(c,91645,23)),h=f.default??f,i=g.default??g;return new Promise((c,f)=>{let g=new i.Socket;g.connect(443,b,()=>{let b={socket:g,servername:a.hostname,path:a.pathname+a.search,method:e.method||"POST",headers:{...e.headers,Host:a.hostname}},i=h.request(b,a=>{let b={ok:a.statusCode>=200&&a.statusCode<300,status:a.statusCode,statusText:a.statusMessage,headers:new Map(Object.entries(a.headers)),body:d.Readable.toWeb(a),text:async()=>{let b=[];for await(let c of a)b.push(c);return Buffer.concat(b).toString()},json:async()=>JSON.parse(await b.text())};c(b)});i.on("error",f),e.body&&i.write("string"==typeof e.body?e.body:JSON.stringify(e.body)),i.end()}),g.on("error",f)})}async function s(a,b={},c=null){let d="string"==typeof a?a:a.toString(),e=l(c?.vercelRelayUrl);if(e){let a=new URL(d),c={...b.headers instanceof Headers?Object.fromEntries(b.headers.entries()):{...b.headers||{}},"x-relay-target":`${a.protocol}//${a.host}`,"x-relay-path":`${a.pathname}${a.search}`};return f(e,{...b,headers:c})}let g=function(a,b){if(b?.enabled!==!0&&b?.connectionProxyEnabled!==!0)return null;let c=l(b?.url??b?.connectionProxyUrl);if(!c)return null;let d=l(b?.noProxy??b?.connectionNoProxy);return d&&n(a,d)?null:o(c)}(d,c),h=g?null:o(function(a){let b;if(n(a,process.env.NO_PROXY||process.env.no_proxy))return null;try{b=new URL(a).protocol}catch{return null}return"https:"===b?process.env.HTTPS_PROXY||process.env.https_proxy||process.env.ALL_PROXY||process.env.all_proxy:process.env.HTTP_PROXY||process.env.http_proxy||process.env.ALL_PROXY||process.env.all_proxy}(d)),i=g||h;if(function(a){try{let b=new URL(a).hostname;return j.some(a=>b.includes(a))}catch{return!1}}(d)){if(i)try{return await q(a,b,i)}catch(a){if(c?.strictProxy===!0)throw Error(`[ProxyFetch] Proxy required but failed (strictProxy=true): ${a.message}`);console.warn(`[ProxyFetch] Proxy failed, falling back to direct bypass: ${a.message}`)}try{let a=new URL(d),c=await m(a.hostname);if(c)return await r(a,c,b)}catch(a){console.warn(`[ProxyFetch] MITM bypass failed: ${a.message}`)}}if(i)try{return await q(a,b,i)}catch(d){if(c?.strictProxy===!0)throw Error(`[ProxyFetch] Proxy required but failed (strictProxy=true): ${d.message}`);return console.warn(`[ProxyFetch] Proxy failed, falling back to direct: ${d.message}`),q(a,b,null)}let k=c?.proxyPoolId||c?.enabled===!0||c?.connectionProxyEnabled===!0||!!l(c?.url??c?.connectionProxyUrl);if(c?.strictProxy===!0&&k)throw Error("[ProxyFetch] Proxy required but none resolved (strictProxy=true)");return q(a,b,null)}async function t(a,b={}){return s(a,b,null)}globalThis.fetch!==t&&(globalThis.fetch=t);let u=t},41004:(a,b,c)=>{c.d(b,{C8:()=>q,DR:()=>p,IK:()=>k,Ps:()=>g,SA:()=>n,Uc:()=>l,Z1:()=>i,cI:()=>o,eo:()=>m,gx:()=>d,pH:()=>j,v1:()=>e,xM:()=>h}),c(3662);let d={BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,NOT_ACCEPTABLE:406,REQUEST_TIMEOUT:408,RATE_LIMITED:429,SERVER_ERROR:500,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504},e={sessionTtlMs:72e5,sessionCleanupIntervalMs:18e5,dnsCacheTtlMs:3e5,proxyDispatchersMaxSize:20};function f(a,b){let c=process.env[a];if(null==c||""===c)return b;let d=parseInt(c,10);return Number.isFinite(d)&&d>0?d:b}let g=process.env.SEARXNG_URL?.trim()||"http://localhost:8888/search",h=f("STREAM_STALL_TIMEOUT_MS",36e4),i=f("STREAM_FIRST_CHUNK_TIMEOUT_MS",2e5),j=f("FETCH_CONNECT_TIMEOUT_MS",6e4),k=f("GEMINI_NATIVE_TTS_FETCH_TIMEOUT_MS",45e3),l=64e3,m=32e3,n="x-9router-token-saver",o={429:{attempts:0,delayMs:0},502:{attempts:3,delayMs:3e3},503:{attempts:3,delayMs:2e3},504:{attempts:2,delayMs:3e3}};function p(a){return null==a?{attempts:0,delayMs:2e3}:"number"==typeof a?{attempts:a,delayMs:2e3}:{attempts:a.attempts||0,delayMs:null!=a.delayMs?a.delayMs:2e3}}let q=["Please write a 5-10 word title for the following conversation:"]}};