omniroute 0.2.0 → 0.4.0

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 (899) hide show
  1. package/README.md +36 -1139
  2. package/app/.next/BUILD_ID +1 -1
  3. package/app/.next/app-path-routes-manifest.json +42 -25
  4. package/app/.next/build-manifest.json +3 -3
  5. package/app/.next/prerender-manifest.json +75 -3
  6. package/app/.next/routes-manifest.json +104 -0
  7. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  8. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  9. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  10. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  11. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  12. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  13. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  14. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  15. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  16. package/app/.next/server/app/(dashboard)/dashboard/health/page.js +2 -0
  17. package/app/.next/server/app/(dashboard)/dashboard/health/page.js.nft.json +1 -0
  18. package/app/.next/server/app/(dashboard)/dashboard/health/page_client-reference-manifest.js +1 -0
  19. package/app/.next/server/app/(dashboard)/dashboard/onboarding/page.js +2 -2
  20. package/app/.next/server/app/(dashboard)/dashboard/onboarding/page.js.nft.json +1 -1
  21. package/app/.next/server/app/(dashboard)/dashboard/onboarding/page_client-reference-manifest.js +1 -1
  22. package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
  23. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  24. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  25. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  26. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  27. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  28. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  29. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  30. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  31. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  32. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  33. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  34. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  35. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  36. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  37. package/app/.next/server/app/(dashboard)/dashboard/settings/page.js +2 -2
  38. package/app/.next/server/app/(dashboard)/dashboard/settings/page.js.nft.json +1 -1
  39. package/app/.next/server/app/(dashboard)/dashboard/settings/page_client-reference-manifest.js +1 -1
  40. package/app/.next/server/app/(dashboard)/dashboard/settings/pricing/page.js +2 -2
  41. package/app/.next/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  42. package/app/.next/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  43. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  44. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  45. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  46. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  47. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  48. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  49. package/app/.next/server/app/_global-error/page.js +3 -3
  50. package/app/.next/server/app/_global-error/page.js.nft.json +1 -1
  51. package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  52. package/app/.next/server/app/_global-error.html +2 -2
  53. package/app/.next/server/app/_global-error.rsc +10 -9
  54. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +10 -9
  55. package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  56. package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  57. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  58. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +2 -1
  59. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  60. package/app/.next/server/app/_not-found/page.js +2 -2
  61. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  62. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  63. package/app/.next/server/app/_not-found.html +1 -1
  64. package/app/.next/server/app/_not-found.rsc +16 -12
  65. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +16 -12
  66. package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  67. package/app/.next/server/app/_not-found.segments/_index.segment.rsc +4 -3
  68. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +8 -4
  69. package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  70. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  71. package/app/.next/server/app/api/auth/login/route.js +1 -1
  72. package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  73. package/app/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  74. package/app/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  75. package/app/.next/server/app/api/cache/route.js +2 -0
  76. package/app/.next/server/app/api/cache/route.js.nft.json +1 -0
  77. package/app/.next/server/app/api/cache/route_client-reference-manifest.js +1 -0
  78. package/app/.next/server/app/api/cache/stats/route.js +1 -0
  79. package/app/.next/server/app/api/cache/stats/route.js.nft.json +1 -0
  80. package/app/.next/server/app/api/cache/stats/route_client-reference-manifest.js +1 -0
  81. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -157
  82. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  83. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route_client-reference-manifest.js +1 -1
  84. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +2 -2
  85. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route_client-reference-manifest.js +1 -1
  86. package/app/.next/server/app/api/cli-tools/backups/route.js +2 -2
  87. package/app/.next/server/app/api/cli-tools/backups/route_client-reference-manifest.js +1 -1
  88. package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
  89. package/app/.next/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
  90. package/app/.next/server/app/api/cli-tools/cline-settings/route.js +2 -2
  91. package/app/.next/server/app/api/cli-tools/cline-settings/route_client-reference-manifest.js +1 -1
  92. package/app/.next/server/app/api/cli-tools/codex-profiles/route.js +2 -2
  93. package/app/.next/server/app/api/cli-tools/codex-profiles/route_client-reference-manifest.js +1 -1
  94. package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
  95. package/app/.next/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
  96. package/app/.next/server/app/api/cli-tools/droid-settings/route.js +1 -1
  97. package/app/.next/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
  98. package/app/.next/server/app/api/cli-tools/guide-settings/[toolId]/route_client-reference-manifest.js +1 -1
  99. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  100. package/app/.next/server/app/api/cli-tools/kilo-settings/route_client-reference-manifest.js +1 -1
  101. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
  102. package/app/.next/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +1 -1
  103. package/app/.next/server/app/api/cli-tools/runtime/[toolId]/route.js +1 -1
  104. package/app/.next/server/app/api/cli-tools/runtime/[toolId]/route_client-reference-manifest.js +1 -1
  105. package/app/.next/server/app/api/cloud/auth/route.js +1 -156
  106. package/app/.next/server/app/api/cloud/auth/route.js.nft.json +1 -1
  107. package/app/.next/server/app/api/cloud/auth/route_client-reference-manifest.js +1 -1
  108. package/app/.next/server/app/api/cloud/credentials/update/route.js +1 -156
  109. package/app/.next/server/app/api/cloud/credentials/update/route.js.nft.json +1 -1
  110. package/app/.next/server/app/api/cloud/credentials/update/route_client-reference-manifest.js +1 -1
  111. package/app/.next/server/app/api/cloud/model/resolve/route.js +1 -156
  112. package/app/.next/server/app/api/cloud/model/resolve/route.js.nft.json +1 -1
  113. package/app/.next/server/app/api/cloud/model/resolve/route_client-reference-manifest.js +1 -1
  114. package/app/.next/server/app/api/cloud/models/alias/route.js +1 -1
  115. package/app/.next/server/app/api/cloud/models/alias/route.js.nft.json +1 -1
  116. package/app/.next/server/app/api/cloud/models/alias/route_client-reference-manifest.js +1 -1
  117. package/app/.next/server/app/api/combos/[id]/route.js +1 -1
  118. package/app/.next/server/app/api/combos/[id]/route.js.nft.json +1 -1
  119. package/app/.next/server/app/api/combos/[id]/route_client-reference-manifest.js +1 -1
  120. package/app/.next/server/app/api/combos/metrics/route_client-reference-manifest.js +1 -1
  121. package/app/.next/server/app/api/combos/route.js +1 -1
  122. package/app/.next/server/app/api/combos/route.js.nft.json +1 -1
  123. package/app/.next/server/app/api/combos/route_client-reference-manifest.js +1 -1
  124. package/app/.next/server/app/api/combos/test/route.js +1 -156
  125. package/app/.next/server/app/api/combos/test/route.js.nft.json +1 -1
  126. package/app/.next/server/app/api/combos/test/route_client-reference-manifest.js +1 -1
  127. package/app/.next/server/app/api/compliance/audit-log/route.js +1 -0
  128. package/app/.next/server/app/api/compliance/audit-log/route.js.nft.json +1 -0
  129. package/app/.next/server/app/api/compliance/audit-log/route_client-reference-manifest.js +1 -0
  130. package/app/.next/server/app/api/db-backups/route.js +1 -156
  131. package/app/.next/server/app/api/db-backups/route.js.nft.json +1 -1
  132. package/app/.next/server/app/api/db-backups/route_client-reference-manifest.js +1 -1
  133. package/app/.next/server/app/api/evals/[suiteId]/route.js +1 -0
  134. package/app/.next/server/app/api/evals/[suiteId]/route.js.nft.json +1 -0
  135. package/app/.next/server/app/api/evals/[suiteId]/route_client-reference-manifest.js +1 -0
  136. package/app/.next/server/app/api/evals/route.js +1 -0
  137. package/app/.next/server/app/api/evals/route.js.nft.json +1 -0
  138. package/app/.next/server/app/api/evals/route_client-reference-manifest.js +1 -0
  139. package/app/.next/server/app/api/fallback/chains/route.js +3 -0
  140. package/app/.next/server/app/api/fallback/chains/route.js.nft.json +1 -0
  141. package/app/.next/server/app/api/fallback/chains/route_client-reference-manifest.js +1 -0
  142. package/app/.next/server/app/api/init/route.js +1 -1
  143. package/app/.next/server/app/api/init/route.js.nft.json +1 -1
  144. package/app/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
  145. package/app/.next/server/app/api/keys/[id]/route.js +1 -1
  146. package/app/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
  147. package/app/.next/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
  148. package/app/.next/server/app/api/keys/route.js +1 -1
  149. package/app/.next/server/app/api/keys/route.js.nft.json +1 -1
  150. package/app/.next/server/app/api/keys/route_client-reference-manifest.js +1 -1
  151. package/app/.next/server/app/api/models/alias/route.js +1 -1
  152. package/app/.next/server/app/api/models/alias/route.js.nft.json +1 -1
  153. package/app/.next/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
  154. package/app/.next/server/app/api/models/availability/route.js +1 -0
  155. package/app/.next/server/app/api/models/availability/route.js.nft.json +1 -0
  156. package/app/.next/server/app/api/models/availability/route_client-reference-manifest.js +1 -0
  157. package/app/.next/server/app/api/models/catalog/route.js +2 -1
  158. package/app/.next/server/app/api/models/catalog/route.js.nft.json +1 -1
  159. package/app/.next/server/app/api/models/catalog/route_client-reference-manifest.js +1 -1
  160. package/app/.next/server/app/api/models/route.js +2 -156
  161. package/app/.next/server/app/api/models/route.js.nft.json +1 -1
  162. package/app/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
  163. package/app/.next/server/app/api/monitoring/health/route.js +2 -0
  164. package/app/.next/server/app/api/monitoring/health/route.js.nft.json +1 -0
  165. package/app/.next/server/app/api/monitoring/health/route_client-reference-manifest.js +1 -0
  166. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +2 -2
  167. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  168. package/app/.next/server/app/api/oauth/[provider]/[action]/route_client-reference-manifest.js +1 -1
  169. package/app/.next/server/app/api/oauth/cursor/auto-import/route_client-reference-manifest.js +1 -1
  170. package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
  171. package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  172. package/app/.next/server/app/api/oauth/cursor/import/route_client-reference-manifest.js +1 -1
  173. package/app/.next/server/app/api/oauth/kiro/auto-import/route_client-reference-manifest.js +1 -1
  174. package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
  175. package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  176. package/app/.next/server/app/api/oauth/kiro/import/route_client-reference-manifest.js +1 -1
  177. package/app/.next/server/app/api/oauth/kiro/social-authorize/route_client-reference-manifest.js +1 -1
  178. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  179. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  180. package/app/.next/server/app/api/oauth/kiro/social-exchange/route_client-reference-manifest.js +1 -1
  181. package/app/.next/server/app/api/policies/route.js +3 -0
  182. package/app/.next/server/app/api/policies/route.js.nft.json +1 -0
  183. package/app/.next/server/app/api/policies/route_client-reference-manifest.js +1 -0
  184. package/app/.next/server/app/api/pricing/defaults/route_client-reference-manifest.js +1 -1
  185. package/app/.next/server/app/api/pricing/models/route.js +1 -156
  186. package/app/.next/server/app/api/pricing/models/route.js.nft.json +1 -1
  187. package/app/.next/server/app/api/pricing/models/route_client-reference-manifest.js +1 -1
  188. package/app/.next/server/app/api/pricing/route.js +1 -156
  189. package/app/.next/server/app/api/pricing/route.js.nft.json +1 -1
  190. package/app/.next/server/app/api/pricing/route_client-reference-manifest.js +1 -1
  191. package/app/.next/server/app/api/provider-models/route.js +1 -156
  192. package/app/.next/server/app/api/provider-models/route.js.nft.json +1 -1
  193. package/app/.next/server/app/api/provider-models/route_client-reference-manifest.js +1 -1
  194. package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -156
  195. package/app/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  196. package/app/.next/server/app/api/provider-nodes/[id]/route_client-reference-manifest.js +1 -1
  197. package/app/.next/server/app/api/provider-nodes/route.js +2 -156
  198. package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
  199. package/app/.next/server/app/api/provider-nodes/route_client-reference-manifest.js +1 -1
  200. package/app/.next/server/app/api/provider-nodes/validate/route_client-reference-manifest.js +1 -1
  201. package/app/.next/server/app/api/providers/[id]/models/route.js +2 -156
  202. package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  203. package/app/.next/server/app/api/providers/[id]/models/route_client-reference-manifest.js +1 -1
  204. package/app/.next/server/app/api/providers/[id]/route.js +1 -1
  205. package/app/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
  206. package/app/.next/server/app/api/providers/[id]/route_client-reference-manifest.js +1 -1
  207. package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
  208. package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  209. package/app/.next/server/app/api/providers/[id]/test/route_client-reference-manifest.js +1 -1
  210. package/app/.next/server/app/api/providers/client/route.js +1 -156
  211. package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
  212. package/app/.next/server/app/api/providers/client/route_client-reference-manifest.js +1 -1
  213. package/app/.next/server/app/api/providers/route.js +2 -1
  214. package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
  215. package/app/.next/server/app/api/providers/route_client-reference-manifest.js +1 -1
  216. package/app/.next/server/app/api/providers/test-batch/route.js +2 -156
  217. package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  218. package/app/.next/server/app/api/providers/test-batch/route_client-reference-manifest.js +1 -1
  219. package/app/.next/server/app/api/providers/validate/route.js +1 -156
  220. package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
  221. package/app/.next/server/app/api/providers/validate/route_client-reference-manifest.js +1 -1
  222. package/app/.next/server/app/api/rate-limit/route.js +1 -156
  223. package/app/.next/server/app/api/rate-limit/route.js.nft.json +1 -1
  224. package/app/.next/server/app/api/rate-limit/route_client-reference-manifest.js +1 -1
  225. package/app/.next/server/app/api/rate-limits/route.js +1 -1
  226. package/app/.next/server/app/api/rate-limits/route.js.nft.json +1 -1
  227. package/app/.next/server/app/api/rate-limits/route_client-reference-manifest.js +1 -1
  228. package/app/.next/server/app/api/resilience/reset/route.js +1 -0
  229. package/app/.next/server/app/api/resilience/reset/route.js.nft.json +1 -0
  230. package/app/.next/server/app/api/resilience/reset/route_client-reference-manifest.js +1 -0
  231. package/app/.next/server/app/api/resilience/route.js +1 -0
  232. package/app/.next/server/app/api/resilience/route.js.nft.json +1 -0
  233. package/app/.next/server/app/api/resilience/route_client-reference-manifest.js +1 -0
  234. package/app/.next/server/app/api/restart/route_client-reference-manifest.js +1 -1
  235. package/app/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -1
  236. package/app/.next/server/app/api/settings/combo-defaults/route.js +1 -156
  237. package/app/.next/server/app/api/settings/combo-defaults/route.js.nft.json +1 -1
  238. package/app/.next/server/app/api/settings/combo-defaults/route_client-reference-manifest.js +1 -1
  239. package/app/.next/server/app/api/settings/ip-filter/route_client-reference-manifest.js +1 -1
  240. package/app/.next/server/app/api/settings/proxy/route.js +1 -156
  241. package/app/.next/server/app/api/settings/proxy/route.js.nft.json +1 -1
  242. package/app/.next/server/app/api/settings/proxy/route_client-reference-manifest.js +1 -1
  243. package/app/.next/server/app/api/settings/proxy/test/route_client-reference-manifest.js +1 -1
  244. package/app/.next/server/app/api/settings/require-login/route.js +1 -156
  245. package/app/.next/server/app/api/settings/require-login/route.js.nft.json +1 -1
  246. package/app/.next/server/app/api/settings/require-login/route_client-reference-manifest.js +1 -1
  247. package/app/.next/server/app/api/settings/route.js +1 -1
  248. package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
  249. package/app/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  250. package/app/.next/server/app/api/settings/system-prompt/route.js +1 -156
  251. package/app/.next/server/app/api/settings/system-prompt/route.js.nft.json +1 -1
  252. package/app/.next/server/app/api/settings/system-prompt/route_client-reference-manifest.js +1 -1
  253. package/app/.next/server/app/api/settings/thinking-budget/route.js +1 -156
  254. package/app/.next/server/app/api/settings/thinking-budget/route.js.nft.json +1 -1
  255. package/app/.next/server/app/api/settings/thinking-budget/route_client-reference-manifest.js +1 -1
  256. package/app/.next/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
  257. package/app/.next/server/app/api/storage/health/route_client-reference-manifest.js +1 -1
  258. package/app/.next/server/app/api/sync/cloud/route.js +1 -1
  259. package/app/.next/server/app/api/sync/cloud/route.js.nft.json +1 -1
  260. package/app/.next/server/app/api/sync/cloud/route_client-reference-manifest.js +1 -1
  261. package/app/.next/server/app/api/sync/initialize/route.js +1 -1
  262. package/app/.next/server/app/api/sync/initialize/route.js.nft.json +1 -1
  263. package/app/.next/server/app/api/sync/initialize/route_client-reference-manifest.js +1 -1
  264. package/app/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
  265. package/app/.next/server/app/api/telemetry/summary/route.js +1 -0
  266. package/app/.next/server/app/api/telemetry/summary/route.js.nft.json +1 -0
  267. package/app/.next/server/app/api/telemetry/summary/route_client-reference-manifest.js +1 -0
  268. package/app/.next/server/app/api/token-health/route.js +1 -0
  269. package/app/.next/server/app/api/token-health/route.js.nft.json +1 -0
  270. package/app/.next/server/app/api/token-health/route_client-reference-manifest.js +1 -0
  271. package/app/.next/server/app/api/translator/detect/route.js +1 -1
  272. package/app/.next/server/app/api/translator/detect/route_client-reference-manifest.js +1 -1
  273. package/app/.next/server/app/api/translator/history/route_client-reference-manifest.js +1 -1
  274. package/app/.next/server/app/api/translator/load/route_client-reference-manifest.js +1 -1
  275. package/app/.next/server/app/api/translator/save/route_client-reference-manifest.js +1 -1
  276. package/app/.next/server/app/api/translator/send/route.js +1 -156
  277. package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
  278. package/app/.next/server/app/api/translator/send/route_client-reference-manifest.js +1 -1
  279. package/app/.next/server/app/api/translator/translate/route.js +1 -156
  280. package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
  281. package/app/.next/server/app/api/translator/translate/route_client-reference-manifest.js +1 -1
  282. package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  283. package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  284. package/app/.next/server/app/api/usage/[connectionId]/route_client-reference-manifest.js +1 -1
  285. package/app/.next/server/app/api/usage/analytics/route.js +1 -156
  286. package/app/.next/server/app/api/usage/analytics/route.js.nft.json +1 -1
  287. package/app/.next/server/app/api/usage/analytics/route_client-reference-manifest.js +1 -1
  288. package/app/.next/server/app/api/usage/budget/route.js +3 -0
  289. package/app/.next/server/app/api/usage/budget/route.js.nft.json +1 -0
  290. package/app/.next/server/app/api/usage/budget/route_client-reference-manifest.js +1 -0
  291. package/app/.next/server/app/api/usage/call-logs/[id]/route.js +1 -156
  292. package/app/.next/server/app/api/usage/call-logs/[id]/route.js.nft.json +1 -1
  293. package/app/.next/server/app/api/usage/call-logs/[id]/route_client-reference-manifest.js +1 -1
  294. package/app/.next/server/app/api/usage/call-logs/route.js +1 -156
  295. package/app/.next/server/app/api/usage/call-logs/route.js.nft.json +1 -1
  296. package/app/.next/server/app/api/usage/call-logs/route_client-reference-manifest.js +1 -1
  297. package/app/.next/server/app/api/usage/history/route.js +1 -156
  298. package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
  299. package/app/.next/server/app/api/usage/history/route_client-reference-manifest.js +1 -1
  300. package/app/.next/server/app/api/usage/logs/route.js +1 -156
  301. package/app/.next/server/app/api/usage/logs/route.js.nft.json +1 -1
  302. package/app/.next/server/app/api/usage/logs/route_client-reference-manifest.js +1 -1
  303. package/app/.next/server/app/api/usage/proxy-logs/route_client-reference-manifest.js +1 -1
  304. package/app/.next/server/app/api/usage/request-logs/route.js +1 -156
  305. package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  306. package/app/.next/server/app/api/usage/request-logs/route_client-reference-manifest.js +1 -1
  307. package/app/.next/server/app/api/v1/api/chat/route.js +1 -156
  308. package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  309. package/app/.next/server/app/api/v1/api/chat/route_client-reference-manifest.js +1 -1
  310. package/app/.next/server/app/api/v1/audio/speech/route.js +1 -156
  311. package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  312. package/app/.next/server/app/api/v1/audio/speech/route_client-reference-manifest.js +1 -1
  313. package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -156
  314. package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  315. package/app/.next/server/app/api/v1/audio/transcriptions/route_client-reference-manifest.js +1 -1
  316. package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
  317. package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  318. package/app/.next/server/app/api/v1/chat/completions/route_client-reference-manifest.js +1 -1
  319. package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
  320. package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  321. package/app/.next/server/app/api/v1/embeddings/route_client-reference-manifest.js +1 -1
  322. package/app/.next/server/app/api/v1/images/generations/route.js +1 -1
  323. package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  324. package/app/.next/server/app/api/v1/images/generations/route_client-reference-manifest.js +1 -1
  325. package/app/.next/server/app/api/v1/messages/count_tokens/route_client-reference-manifest.js +1 -1
  326. package/app/.next/server/app/api/v1/messages/route.js +1 -156
  327. package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
  328. package/app/.next/server/app/api/v1/messages/route_client-reference-manifest.js +1 -1
  329. package/app/.next/server/app/api/v1/models/route.js +2 -1
  330. package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
  331. package/app/.next/server/app/api/v1/models/route_client-reference-manifest.js +1 -1
  332. package/app/.next/server/app/api/v1/moderations/route.js +1 -156
  333. package/app/.next/server/app/api/v1/moderations/route.js.nft.json +1 -1
  334. package/app/.next/server/app/api/v1/moderations/route_client-reference-manifest.js +1 -1
  335. package/app/.next/server/app/api/v1/providers/[provider]/chat/completions/route.js +1 -156
  336. package/app/.next/server/app/api/v1/providers/[provider]/chat/completions/route.js.nft.json +1 -1
  337. package/app/.next/server/app/api/v1/providers/[provider]/chat/completions/route_client-reference-manifest.js +1 -1
  338. package/app/.next/server/app/api/v1/providers/[provider]/embeddings/route.js +1 -1
  339. package/app/.next/server/app/api/v1/providers/[provider]/embeddings/route.js.nft.json +1 -1
  340. package/app/.next/server/app/api/v1/providers/[provider]/embeddings/route_client-reference-manifest.js +1 -1
  341. package/app/.next/server/app/api/v1/providers/[provider]/images/generations/route.js +1 -1
  342. package/app/.next/server/app/api/v1/providers/[provider]/images/generations/route.js.nft.json +1 -1
  343. package/app/.next/server/app/api/v1/providers/[provider]/images/generations/route_client-reference-manifest.js +1 -1
  344. package/app/.next/server/app/api/v1/rerank/route.js +1 -156
  345. package/app/.next/server/app/api/v1/rerank/route.js.nft.json +1 -1
  346. package/app/.next/server/app/api/v1/rerank/route_client-reference-manifest.js +1 -1
  347. package/app/.next/server/app/api/v1/responses/route.js +1 -156
  348. package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
  349. package/app/.next/server/app/api/v1/responses/route_client-reference-manifest.js +1 -1
  350. package/app/.next/server/app/api/v1/route_client-reference-manifest.js +1 -1
  351. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -156
  352. package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  353. package/app/.next/server/app/api/v1beta/models/[...path]/route_client-reference-manifest.js +1 -1
  354. package/app/.next/server/app/api/v1beta/models/route.js +2 -1
  355. package/app/.next/server/app/api/v1beta/models/route.js.nft.json +1 -1
  356. package/app/.next/server/app/api/v1beta/models/route_client-reference-manifest.js +1 -1
  357. package/app/.next/server/app/callback/page.js +2 -2
  358. package/app/.next/server/app/callback/page.js.nft.json +1 -1
  359. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  360. package/app/.next/server/app/callback.html +1 -1
  361. package/app/.next/server/app/callback.rsc +17 -16
  362. package/app/.next/server/app/callback.segments/_full.segment.rsc +17 -16
  363. package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
  364. package/app/.next/server/app/callback.segments/_index.segment.rsc +4 -3
  365. package/app/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
  366. package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  367. package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
  368. package/app/.next/server/app/dashboard/cli-tools.html +1 -1
  369. package/app/.next/server/app/dashboard/cli-tools.rsc +16 -15
  370. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  371. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  372. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  373. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  374. package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +16 -15
  375. package/app/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  376. package/app/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -3
  377. package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  378. package/app/.next/server/app/dashboard/combos.html +1 -1
  379. package/app/.next/server/app/dashboard/combos.rsc +18 -17
  380. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  381. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  382. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  383. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  384. package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +18 -17
  385. package/app/.next/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  386. package/app/.next/server/app/dashboard/combos.segments/_index.segment.rsc +4 -3
  387. package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  388. package/app/.next/server/app/dashboard/endpoint.html +1 -1
  389. package/app/.next/server/app/dashboard/endpoint.rsc +16 -15
  390. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  391. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  392. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  393. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  394. package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +16 -15
  395. package/app/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  396. package/app/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -3
  397. package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  398. package/app/.next/server/app/dashboard/health.html +1 -0
  399. package/app/.next/server/app/dashboard/health.meta +17 -0
  400. package/app/.next/server/app/dashboard/health.rsc +24 -0
  401. package/app/.next/server/app/dashboard/health.segments/!KGRhc2hib2FyZCk/dashboard/health/__PAGE__.segment.rsc +9 -0
  402. package/app/.next/server/app/dashboard/health.segments/!KGRhc2hib2FyZCk/dashboard/health.segment.rsc +4 -0
  403. package/app/.next/server/app/dashboard/health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +4 -0
  404. package/app/.next/server/app/dashboard/health.segments/!KGRhc2hib2FyZCk.segment.rsc +5 -0
  405. package/app/.next/server/app/dashboard/health.segments/_full.segment.rsc +24 -0
  406. package/app/.next/server/app/dashboard/health.segments/_head.segment.rsc +6 -0
  407. package/app/.next/server/app/dashboard/health.segments/_index.segment.rsc +9 -0
  408. package/app/.next/server/app/dashboard/health.segments/_tree.segment.rsc +5 -0
  409. package/app/.next/server/app/dashboard/onboarding.html +1 -1
  410. package/app/.next/server/app/dashboard/onboarding.rsc +18 -17
  411. package/app/.next/server/app/dashboard/onboarding.segments/!KGRhc2hib2FyZCk/dashboard/onboarding/__PAGE__.segment.rsc +1 -1
  412. package/app/.next/server/app/dashboard/onboarding.segments/!KGRhc2hib2FyZCk/dashboard/onboarding.segment.rsc +1 -1
  413. package/app/.next/server/app/dashboard/onboarding.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  414. package/app/.next/server/app/dashboard/onboarding.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  415. package/app/.next/server/app/dashboard/onboarding.segments/_full.segment.rsc +18 -17
  416. package/app/.next/server/app/dashboard/onboarding.segments/_head.segment.rsc +1 -1
  417. package/app/.next/server/app/dashboard/onboarding.segments/_index.segment.rsc +4 -3
  418. package/app/.next/server/app/dashboard/onboarding.segments/_tree.segment.rsc +2 -2
  419. package/app/.next/server/app/dashboard/profile.html +1 -1
  420. package/app/.next/server/app/dashboard/profile.rsc +15 -14
  421. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +1 -1
  422. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  423. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  424. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  425. package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +15 -14
  426. package/app/.next/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  427. package/app/.next/server/app/dashboard/profile.segments/_index.segment.rsc +4 -3
  428. package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  429. package/app/.next/server/app/dashboard/providers/new.html +1 -1
  430. package/app/.next/server/app/dashboard/providers/new.rsc +18 -17
  431. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  432. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  433. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  434. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  435. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  436. package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +18 -17
  437. package/app/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  438. package/app/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -3
  439. package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  440. package/app/.next/server/app/dashboard/providers.html +1 -1
  441. package/app/.next/server/app/dashboard/providers.rsc +18 -17
  442. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  443. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  444. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  445. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  446. package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +18 -17
  447. package/app/.next/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  448. package/app/.next/server/app/dashboard/providers.segments/_index.segment.rsc +4 -3
  449. package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  450. package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
  451. package/app/.next/server/app/dashboard/settings/pricing.rsc +18 -17
  452. package/app/.next/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  453. package/app/.next/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing.segment.rsc +1 -1
  454. package/app/.next/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings.segment.rsc +1 -1
  455. package/app/.next/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  456. package/app/.next/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  457. package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +18 -17
  458. package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  459. package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -3
  460. package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  461. package/app/.next/server/app/dashboard/settings.html +1 -1
  462. package/app/.next/server/app/dashboard/settings.rsc +18 -17
  463. package/app/.next/server/app/dashboard/settings.segments/!KGRhc2hib2FyZCk/dashboard/settings/__PAGE__.segment.rsc +2 -2
  464. package/app/.next/server/app/dashboard/settings.segments/!KGRhc2hib2FyZCk/dashboard/settings.segment.rsc +1 -1
  465. package/app/.next/server/app/dashboard/settings.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  466. package/app/.next/server/app/dashboard/settings.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  467. package/app/.next/server/app/dashboard/settings.segments/_full.segment.rsc +18 -17
  468. package/app/.next/server/app/dashboard/settings.segments/_head.segment.rsc +1 -1
  469. package/app/.next/server/app/dashboard/settings.segments/_index.segment.rsc +4 -3
  470. package/app/.next/server/app/dashboard/settings.segments/_tree.segment.rsc +2 -2
  471. package/app/.next/server/app/dashboard/translator.html +2 -2
  472. package/app/.next/server/app/dashboard/translator.rsc +15 -14
  473. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  474. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  475. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  476. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  477. package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +15 -14
  478. package/app/.next/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  479. package/app/.next/server/app/dashboard/translator.segments/_index.segment.rsc +4 -3
  480. package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  481. package/app/.next/server/app/dashboard/usage.html +2 -1
  482. package/app/.next/server/app/dashboard/usage.rsc +18 -17
  483. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  484. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  485. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  486. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  487. package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +18 -17
  488. package/app/.next/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  489. package/app/.next/server/app/dashboard/usage.segments/_index.segment.rsc +4 -3
  490. package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  491. package/app/.next/server/app/docs/page.js +3 -2
  492. package/app/.next/server/app/docs/page.js.nft.json +1 -1
  493. package/app/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  494. package/app/.next/server/app/docs.html +1 -1
  495. package/app/.next/server/app/docs.rsc +22 -24
  496. package/app/.next/server/app/docs.segments/_full.segment.rsc +22 -24
  497. package/app/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  498. package/app/.next/server/app/docs.segments/_index.segment.rsc +4 -3
  499. package/app/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
  500. package/app/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  501. package/app/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  502. package/app/.next/server/app/forbidden/page.js +2 -0
  503. package/app/.next/server/app/forbidden/page.js.nft.json +1 -0
  504. package/app/.next/server/app/forbidden/page_client-reference-manifest.js +1 -0
  505. package/app/.next/server/app/forbidden.html +1 -0
  506. package/app/.next/server/app/forbidden.meta +15 -0
  507. package/app/.next/server/app/forbidden.rsc +23 -0
  508. package/app/.next/server/app/forbidden.segments/_full.segment.rsc +23 -0
  509. package/app/.next/server/app/forbidden.segments/_head.segment.rsc +6 -0
  510. package/app/.next/server/app/forbidden.segments/_index.segment.rsc +9 -0
  511. package/app/.next/server/app/forbidden.segments/_tree.segment.rsc +5 -0
  512. package/app/.next/server/app/forbidden.segments/forbidden/__PAGE__.segment.rsc +9 -0
  513. package/app/.next/server/app/forbidden.segments/forbidden.segment.rsc +4 -0
  514. package/app/.next/server/app/forgot-password/page.js +2 -0
  515. package/app/.next/server/app/forgot-password/page.js.nft.json +1 -0
  516. package/app/.next/server/app/forgot-password/page_client-reference-manifest.js +1 -0
  517. package/app/.next/server/app/forgot-password.html +1 -0
  518. package/app/.next/server/app/forgot-password.meta +15 -0
  519. package/app/.next/server/app/forgot-password.rsc +23 -0
  520. package/app/.next/server/app/forgot-password.segments/_full.segment.rsc +23 -0
  521. package/app/.next/server/app/forgot-password.segments/_head.segment.rsc +6 -0
  522. package/app/.next/server/app/forgot-password.segments/_index.segment.rsc +9 -0
  523. package/app/.next/server/app/forgot-password.segments/_tree.segment.rsc +5 -0
  524. package/app/.next/server/app/forgot-password.segments/forgot-password/__PAGE__.segment.rsc +9 -0
  525. package/app/.next/server/app/forgot-password.segments/forgot-password.segment.rsc +4 -0
  526. package/app/.next/server/app/index.html +1 -1
  527. package/app/.next/server/app/index.rsc +14 -13
  528. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  529. package/app/.next/server/app/index.segments/_full.segment.rsc +14 -13
  530. package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
  531. package/app/.next/server/app/index.segments/_index.segment.rsc +4 -3
  532. package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  533. package/app/.next/server/app/landing/page.js +2 -2
  534. package/app/.next/server/app/landing/page.js.nft.json +1 -1
  535. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  536. package/app/.next/server/app/landing.html +1 -1
  537. package/app/.next/server/app/landing.rsc +17 -16
  538. package/app/.next/server/app/landing.segments/_full.segment.rsc +17 -16
  539. package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
  540. package/app/.next/server/app/landing.segments/_index.segment.rsc +4 -3
  541. package/app/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
  542. package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  543. package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
  544. package/app/.next/server/app/login/page.js +2 -2
  545. package/app/.next/server/app/login/page.js.nft.json +1 -1
  546. package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
  547. package/app/.next/server/app/login.html +1 -1
  548. package/app/.next/server/app/login.rsc +17 -16
  549. package/app/.next/server/app/login.segments/_full.segment.rsc +17 -16
  550. package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
  551. package/app/.next/server/app/login.segments/_index.segment.rsc +4 -3
  552. package/app/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  553. package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  554. package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
  555. package/app/.next/server/app/page.js +2 -2
  556. package/app/.next/server/app/page.js.nft.json +1 -1
  557. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  558. package/app/.next/server/app/privacy/page.js +2 -2
  559. package/app/.next/server/app/privacy/page.js.nft.json +1 -1
  560. package/app/.next/server/app/privacy/page_client-reference-manifest.js +1 -1
  561. package/app/.next/server/app/privacy.html +1 -1
  562. package/app/.next/server/app/privacy.rsc +21 -23
  563. package/app/.next/server/app/privacy.segments/_full.segment.rsc +21 -23
  564. package/app/.next/server/app/privacy.segments/_head.segment.rsc +1 -1
  565. package/app/.next/server/app/privacy.segments/_index.segment.rsc +4 -3
  566. package/app/.next/server/app/privacy.segments/_tree.segment.rsc +2 -2
  567. package/app/.next/server/app/privacy.segments/privacy/__PAGE__.segment.rsc +2 -2
  568. package/app/.next/server/app/privacy.segments/privacy.segment.rsc +1 -1
  569. package/app/.next/server/app/terms/page.js +2 -2
  570. package/app/.next/server/app/terms/page.js.nft.json +1 -1
  571. package/app/.next/server/app/terms/page_client-reference-manifest.js +1 -1
  572. package/app/.next/server/app/terms.html +1 -1
  573. package/app/.next/server/app/terms.rsc +22 -20
  574. package/app/.next/server/app/terms.segments/_full.segment.rsc +22 -20
  575. package/app/.next/server/app/terms.segments/_head.segment.rsc +1 -1
  576. package/app/.next/server/app/terms.segments/_index.segment.rsc +4 -3
  577. package/app/.next/server/app/terms.segments/_tree.segment.rsc +2 -2
  578. package/app/.next/server/app/terms.segments/terms/__PAGE__.segment.rsc +1 -1
  579. package/app/.next/server/app/terms.segments/terms.segment.rsc +1 -1
  580. package/app/.next/server/app-paths-manifest.json +42 -25
  581. package/app/.next/server/chunks/1228.js +3 -0
  582. package/app/.next/server/chunks/1362.js +1 -1
  583. package/app/.next/server/chunks/152.js +1 -0
  584. package/app/.next/server/chunks/1746.js +1 -0
  585. package/app/.next/server/chunks/216.js +37 -0
  586. package/app/.next/server/chunks/2399.js +1 -1
  587. package/app/.next/server/chunks/3676.js +2 -0
  588. package/app/.next/server/chunks/4004.js +1 -0
  589. package/app/.next/server/chunks/4352.js +46 -0
  590. package/app/.next/server/chunks/4436.js +1 -1
  591. package/app/.next/server/chunks/4443.js +1 -1
  592. package/app/.next/server/chunks/{8259.js → 4469.js} +52 -2
  593. package/app/.next/server/chunks/4755.js +16 -2
  594. package/app/.next/server/chunks/{7132.js → 4832.js} +3 -3
  595. package/app/.next/server/chunks/5040.js +1 -0
  596. package/app/.next/server/chunks/5727.js +1 -0
  597. package/app/.next/server/chunks/7093.js +2 -0
  598. package/app/.next/server/chunks/7271.js +1 -0
  599. package/app/.next/server/chunks/7615.js +9 -2
  600. package/app/.next/server/chunks/7763.js +1 -0
  601. package/app/.next/server/chunks/7802.js +1 -0
  602. package/app/.next/server/chunks/7968.js +3 -1
  603. package/app/.next/server/chunks/8020.js +13 -0
  604. package/app/.next/server/chunks/8108.js +1 -1
  605. package/app/.next/server/chunks/8392.js +1 -0
  606. package/app/.next/server/chunks/8400.js +1 -1
  607. package/app/.next/server/chunks/8847.js +3 -0
  608. package/app/.next/server/chunks/9263.js +1 -0
  609. package/app/.next/server/middleware-build-manifest.js +1 -1
  610. package/app/.next/server/middleware.js +207 -2
  611. package/app/.next/server/pages/404.html +1 -1
  612. package/app/.next/server/pages/500.html +2 -2
  613. package/app/.next/server/server-reference-manifest.js +1 -1
  614. package/app/.next/server/server-reference-manifest.json +1 -1
  615. package/app/.next/static/H6LKncewEoggilnvYL9Ff/_buildManifest.js +1 -0
  616. package/app/.next/static/chunks/1525-ec661e96acc6574e.js +21 -0
  617. package/app/.next/static/chunks/3191-0bbb8ebd1bd32d1d.js +1 -0
  618. package/app/.next/static/chunks/{6941-0643e7aebf5ed645.js → 6941-77ce2b3be7709b94.js} +1 -1
  619. package/app/.next/static/chunks/7896-6e5648294ec51150.js +2 -0
  620. package/app/.next/static/chunks/9751-3a35163d337d54ea.js +37 -0
  621. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-148b0ad18f6bec86.js → page-4cec40aa933b932e.js} +1 -1
  622. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-962f1e2bfe0d0b8d.js +1 -0
  623. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-5caaa75c0ab78bc1.js +1 -0
  624. package/app/.next/static/chunks/app/(dashboard)/dashboard/health/page-81352b2272952085.js +1 -0
  625. package/app/.next/static/chunks/app/(dashboard)/dashboard/page-3d3dabe4363d421d.js +1 -0
  626. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-c02303813bcb9777.js +1 -0
  627. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-57279ed20b5399be.js +1 -0
  628. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/{page-4bd8ea64f2e8008b.js → page-9667287d75830fd5.js} +1 -1
  629. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-d08547fcb1031577.js +1 -0
  630. package/app/.next/static/chunks/app/(dashboard)/dashboard/settings/page-26179a630baa2686.js +1 -0
  631. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/{page-c891465a1a2938d2.js → page-6190920e7526556c.js} +1 -1
  632. package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-d1066b6c4c28fe46.js +1 -0
  633. package/app/.next/static/chunks/app/(dashboard)/layout-b6fc79d0628b97e3.js +1 -0
  634. package/app/.next/static/chunks/app/_global-error/page-c02303813bcb9777.js +1 -0
  635. package/app/.next/static/chunks/app/_not-found/page-c02303813bcb9777.js +1 -0
  636. package/app/.next/static/chunks/app/api/auth/login/route-c02303813bcb9777.js +1 -0
  637. package/app/.next/static/chunks/app/api/auth/logout/route-c02303813bcb9777.js +1 -0
  638. package/app/.next/static/chunks/app/api/cache/route-c02303813bcb9777.js +1 -0
  639. package/app/.next/static/chunks/app/api/cache/stats/route-c02303813bcb9777.js +1 -0
  640. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-c02303813bcb9777.js +1 -0
  641. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-c02303813bcb9777.js +1 -0
  642. package/app/.next/static/chunks/app/api/cli-tools/backups/route-c02303813bcb9777.js +1 -0
  643. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-c02303813bcb9777.js +1 -0
  644. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-c02303813bcb9777.js +1 -0
  645. package/app/.next/static/chunks/app/api/cli-tools/codex-profiles/route-c02303813bcb9777.js +1 -0
  646. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-c02303813bcb9777.js +1 -0
  647. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-c02303813bcb9777.js +1 -0
  648. package/app/.next/static/chunks/app/api/cli-tools/guide-settings/[toolId]/route-c02303813bcb9777.js +1 -0
  649. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-c02303813bcb9777.js +1 -0
  650. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-c02303813bcb9777.js +1 -0
  651. package/app/.next/static/chunks/app/api/cli-tools/runtime/[toolId]/route-c02303813bcb9777.js +1 -0
  652. package/app/.next/static/chunks/app/api/cloud/auth/route-c02303813bcb9777.js +1 -0
  653. package/app/.next/static/chunks/app/api/cloud/credentials/update/route-c02303813bcb9777.js +1 -0
  654. package/app/.next/static/chunks/app/api/cloud/model/resolve/route-c02303813bcb9777.js +1 -0
  655. package/app/.next/static/chunks/app/api/cloud/models/alias/route-c02303813bcb9777.js +1 -0
  656. package/app/.next/static/chunks/app/api/combos/[id]/route-c02303813bcb9777.js +1 -0
  657. package/app/.next/static/chunks/app/api/combos/metrics/route-c02303813bcb9777.js +1 -0
  658. package/app/.next/static/chunks/app/api/combos/route-c02303813bcb9777.js +1 -0
  659. package/app/.next/static/chunks/app/api/combos/test/route-c02303813bcb9777.js +1 -0
  660. package/app/.next/static/chunks/app/api/compliance/audit-log/route-c02303813bcb9777.js +1 -0
  661. package/app/.next/static/chunks/app/api/db-backups/route-c02303813bcb9777.js +1 -0
  662. package/app/.next/static/chunks/app/api/evals/[suiteId]/route-c02303813bcb9777.js +1 -0
  663. package/app/.next/static/chunks/app/api/evals/route-c02303813bcb9777.js +1 -0
  664. package/app/.next/static/chunks/app/api/fallback/chains/route-c02303813bcb9777.js +1 -0
  665. package/app/.next/static/chunks/app/api/init/route-c02303813bcb9777.js +1 -0
  666. package/app/.next/static/chunks/app/api/keys/[id]/route-c02303813bcb9777.js +1 -0
  667. package/app/.next/static/chunks/app/api/keys/route-c02303813bcb9777.js +1 -0
  668. package/app/.next/static/chunks/app/api/models/alias/route-c02303813bcb9777.js +1 -0
  669. package/app/.next/static/chunks/app/api/models/availability/route-c02303813bcb9777.js +1 -0
  670. package/app/.next/static/chunks/app/api/models/catalog/route-c02303813bcb9777.js +1 -0
  671. package/app/.next/static/chunks/app/api/models/route-c02303813bcb9777.js +1 -0
  672. package/app/.next/static/chunks/app/api/monitoring/health/route-c02303813bcb9777.js +1 -0
  673. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-c02303813bcb9777.js +1 -0
  674. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-c02303813bcb9777.js +1 -0
  675. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-c02303813bcb9777.js +1 -0
  676. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-c02303813bcb9777.js +1 -0
  677. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-c02303813bcb9777.js +1 -0
  678. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-c02303813bcb9777.js +1 -0
  679. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-c02303813bcb9777.js +1 -0
  680. package/app/.next/static/chunks/app/api/policies/route-c02303813bcb9777.js +1 -0
  681. package/app/.next/static/chunks/app/api/pricing/defaults/route-c02303813bcb9777.js +1 -0
  682. package/app/.next/static/chunks/app/api/pricing/models/route-c02303813bcb9777.js +1 -0
  683. package/app/.next/static/chunks/app/api/pricing/route-c02303813bcb9777.js +1 -0
  684. package/app/.next/static/chunks/app/api/provider-models/route-c02303813bcb9777.js +1 -0
  685. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-c02303813bcb9777.js +1 -0
  686. package/app/.next/static/chunks/app/api/provider-nodes/route-c02303813bcb9777.js +1 -0
  687. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-c02303813bcb9777.js +1 -0
  688. package/app/.next/static/chunks/app/api/providers/[id]/models/route-c02303813bcb9777.js +1 -0
  689. package/app/.next/static/chunks/app/api/providers/[id]/route-c02303813bcb9777.js +1 -0
  690. package/app/.next/static/chunks/app/api/providers/[id]/test/route-c02303813bcb9777.js +1 -0
  691. package/app/.next/static/chunks/app/api/providers/client/route-c02303813bcb9777.js +1 -0
  692. package/app/.next/static/chunks/app/api/providers/route-c02303813bcb9777.js +1 -0
  693. package/app/.next/static/chunks/app/api/providers/test-batch/route-c02303813bcb9777.js +1 -0
  694. package/app/.next/static/chunks/app/api/providers/validate/route-c02303813bcb9777.js +1 -0
  695. package/app/.next/static/chunks/app/api/rate-limit/route-c02303813bcb9777.js +1 -0
  696. package/app/.next/static/chunks/app/api/rate-limits/route-c02303813bcb9777.js +1 -0
  697. package/app/.next/static/chunks/app/api/resilience/reset/route-c02303813bcb9777.js +1 -0
  698. package/app/.next/static/chunks/app/api/resilience/route-c02303813bcb9777.js +1 -0
  699. package/app/.next/static/chunks/app/api/restart/route-c02303813bcb9777.js +1 -0
  700. package/app/.next/static/chunks/app/api/sessions/route-c02303813bcb9777.js +1 -0
  701. package/app/.next/static/chunks/app/api/settings/combo-defaults/route-c02303813bcb9777.js +1 -0
  702. package/app/.next/static/chunks/app/api/settings/ip-filter/route-c02303813bcb9777.js +1 -0
  703. package/app/.next/static/chunks/app/api/settings/proxy/route-c02303813bcb9777.js +1 -0
  704. package/app/.next/static/chunks/app/api/settings/proxy/test/route-c02303813bcb9777.js +1 -0
  705. package/app/.next/static/chunks/app/api/settings/require-login/route-c02303813bcb9777.js +1 -0
  706. package/app/.next/static/chunks/app/api/settings/route-c02303813bcb9777.js +1 -0
  707. package/app/.next/static/chunks/app/api/settings/system-prompt/route-c02303813bcb9777.js +1 -0
  708. package/app/.next/static/chunks/app/api/settings/thinking-budget/route-c02303813bcb9777.js +1 -0
  709. package/app/.next/static/chunks/app/api/shutdown/route-c02303813bcb9777.js +1 -0
  710. package/app/.next/static/chunks/app/api/storage/health/route-c02303813bcb9777.js +1 -0
  711. package/app/.next/static/chunks/app/api/sync/cloud/route-c02303813bcb9777.js +1 -0
  712. package/app/.next/static/chunks/app/api/sync/initialize/route-c02303813bcb9777.js +1 -0
  713. package/app/.next/static/chunks/app/api/tags/route-c02303813bcb9777.js +1 -0
  714. package/app/.next/static/chunks/app/api/telemetry/summary/route-c02303813bcb9777.js +1 -0
  715. package/app/.next/static/chunks/app/api/token-health/route-c02303813bcb9777.js +1 -0
  716. package/app/.next/static/chunks/app/api/translator/detect/route-c02303813bcb9777.js +1 -0
  717. package/app/.next/static/chunks/app/api/translator/history/route-c02303813bcb9777.js +1 -0
  718. package/app/.next/static/chunks/app/api/translator/load/route-c02303813bcb9777.js +1 -0
  719. package/app/.next/static/chunks/app/api/translator/save/route-c02303813bcb9777.js +1 -0
  720. package/app/.next/static/chunks/app/api/translator/send/route-c02303813bcb9777.js +1 -0
  721. package/app/.next/static/chunks/app/api/translator/translate/route-c02303813bcb9777.js +1 -0
  722. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-c02303813bcb9777.js +1 -0
  723. package/app/.next/static/chunks/app/api/usage/analytics/route-c02303813bcb9777.js +1 -0
  724. package/app/.next/static/chunks/app/api/usage/budget/route-c02303813bcb9777.js +1 -0
  725. package/app/.next/static/chunks/app/api/usage/call-logs/[id]/route-c02303813bcb9777.js +1 -0
  726. package/app/.next/static/chunks/app/api/usage/call-logs/route-c02303813bcb9777.js +1 -0
  727. package/app/.next/static/chunks/app/api/usage/history/route-c02303813bcb9777.js +1 -0
  728. package/app/.next/static/chunks/app/api/usage/logs/route-c02303813bcb9777.js +1 -0
  729. package/app/.next/static/chunks/app/api/usage/proxy-logs/route-c02303813bcb9777.js +1 -0
  730. package/app/.next/static/chunks/app/api/usage/request-logs/route-c02303813bcb9777.js +1 -0
  731. package/app/.next/static/chunks/app/api/v1/api/chat/route-c02303813bcb9777.js +1 -0
  732. package/app/.next/static/chunks/app/api/v1/audio/speech/route-c02303813bcb9777.js +1 -0
  733. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-c02303813bcb9777.js +1 -0
  734. package/app/.next/static/chunks/app/api/v1/chat/completions/route-c02303813bcb9777.js +1 -0
  735. package/app/.next/static/chunks/app/api/v1/embeddings/route-c02303813bcb9777.js +1 -0
  736. package/app/.next/static/chunks/app/api/v1/images/generations/route-c02303813bcb9777.js +1 -0
  737. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-c02303813bcb9777.js +1 -0
  738. package/app/.next/static/chunks/app/api/v1/messages/route-c02303813bcb9777.js +1 -0
  739. package/app/.next/static/chunks/app/api/v1/models/route-c02303813bcb9777.js +1 -0
  740. package/app/.next/static/chunks/app/api/v1/moderations/route-c02303813bcb9777.js +1 -0
  741. package/app/.next/static/chunks/app/api/v1/providers/[provider]/chat/completions/route-c02303813bcb9777.js +1 -0
  742. package/app/.next/static/chunks/app/api/v1/providers/[provider]/embeddings/route-c02303813bcb9777.js +1 -0
  743. package/app/.next/static/chunks/app/api/v1/providers/[provider]/images/generations/route-c02303813bcb9777.js +1 -0
  744. package/app/.next/static/chunks/app/api/v1/rerank/route-c02303813bcb9777.js +1 -0
  745. package/app/.next/static/chunks/app/api/v1/responses/route-c02303813bcb9777.js +1 -0
  746. package/app/.next/static/chunks/app/api/v1/route-c02303813bcb9777.js +1 -0
  747. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-c02303813bcb9777.js +1 -0
  748. package/app/.next/static/chunks/app/api/v1beta/models/route-c02303813bcb9777.js +1 -0
  749. package/app/.next/static/chunks/app/forbidden/page-6806872971c364f0.js +1 -0
  750. package/app/.next/static/chunks/app/forgot-password/page-9c116a597f3df4d1.js +1 -0
  751. package/app/.next/static/chunks/app/global-error-6abc2976016d7bd1.js +1 -0
  752. package/app/.next/static/chunks/app/layout-6504ce60623b0a41.js +1 -0
  753. package/app/.next/static/chunks/app/login/{page-e99ed6a85e91ae7c.js → page-93ac51059ef434b7.js} +1 -1
  754. package/app/.next/static/chunks/app/not-found-e1af8b9c5785b71b.js +1 -0
  755. package/app/.next/static/chunks/app/page-c02303813bcb9777.js +1 -0
  756. package/app/.next/static/chunks/main-app-c9da11a8061df107.js +1 -0
  757. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-c02303813bcb9777.js +1 -0
  758. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-c02303813bcb9777.js +1 -0
  759. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-c02303813bcb9777.js +1 -0
  760. package/app/.next/static/css/2ecfad7c4409b17e.css +1 -0
  761. package/app/package.json +9 -5
  762. package/app/src/shared/utils/apiKey.js +5 -1
  763. package/bin/reset-password.mjs +116 -0
  764. package/package.json +9 -5
  765. package/app/.next/server/chunks/1483.js +0 -156
  766. package/app/.next/server/chunks/21.js +0 -46
  767. package/app/.next/server/chunks/2116.js +0 -1
  768. package/app/.next/server/chunks/2250.js +0 -1
  769. package/app/.next/server/chunks/3919.js +0 -1
  770. package/app/.next/server/chunks/481.js +0 -156
  771. package/app/.next/server/chunks/5640.js +0 -1
  772. package/app/.next/server/chunks/6194.js +0 -1
  773. package/app/.next/server/chunks/6937.js +0 -156
  774. package/app/.next/server/chunks/7471.js +0 -13
  775. package/app/.next/server/chunks/9188.js +0 -1
  776. package/app/.next/static/XnNWFvV2IXZ4xuX0F1Skg/_buildManifest.js +0 -1
  777. package/app/.next/static/chunks/1525-8aaae9ffdaa67144.js +0 -7
  778. package/app/.next/static/chunks/7896-4e519429f67f381e.js +0 -1
  779. package/app/.next/static/chunks/8013-04b90e92e614b5d9.js +0 -1
  780. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-49caa7328acff82d.js +0 -1
  781. package/app/.next/static/chunks/app/(dashboard)/dashboard/endpoint/page-ab8b870377087bc7.js +0 -1
  782. package/app/.next/static/chunks/app/(dashboard)/dashboard/page-bc5764734a448526.js +0 -1
  783. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-c452284fb77ecee0.js +0 -1
  784. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-fb1fa9ae8a3af8c8.js +0 -1
  785. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-4140db5a52fc7323.js +0 -1
  786. package/app/.next/static/chunks/app/(dashboard)/dashboard/settings/page-70619a1bafdc9c4c.js +0 -1
  787. package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/page-9ee5997edb778414.js +0 -1
  788. package/app/.next/static/chunks/app/(dashboard)/layout-0ee92d902ee7a39c.js +0 -1
  789. package/app/.next/static/chunks/app/_global-error/page-c452284fb77ecee0.js +0 -1
  790. package/app/.next/static/chunks/app/_not-found/page-a99a85b5268f1c54.js +0 -1
  791. package/app/.next/static/chunks/app/api/auth/login/route-c452284fb77ecee0.js +0 -1
  792. package/app/.next/static/chunks/app/api/auth/logout/route-c452284fb77ecee0.js +0 -1
  793. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-c452284fb77ecee0.js +0 -1
  794. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-c452284fb77ecee0.js +0 -1
  795. package/app/.next/static/chunks/app/api/cli-tools/backups/route-c452284fb77ecee0.js +0 -1
  796. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-c452284fb77ecee0.js +0 -1
  797. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-c452284fb77ecee0.js +0 -1
  798. package/app/.next/static/chunks/app/api/cli-tools/codex-profiles/route-c452284fb77ecee0.js +0 -1
  799. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-c452284fb77ecee0.js +0 -1
  800. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-c452284fb77ecee0.js +0 -1
  801. package/app/.next/static/chunks/app/api/cli-tools/guide-settings/[toolId]/route-c452284fb77ecee0.js +0 -1
  802. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-c452284fb77ecee0.js +0 -1
  803. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-c452284fb77ecee0.js +0 -1
  804. package/app/.next/static/chunks/app/api/cli-tools/runtime/[toolId]/route-c452284fb77ecee0.js +0 -1
  805. package/app/.next/static/chunks/app/api/cloud/auth/route-c452284fb77ecee0.js +0 -1
  806. package/app/.next/static/chunks/app/api/cloud/credentials/update/route-c452284fb77ecee0.js +0 -1
  807. package/app/.next/static/chunks/app/api/cloud/model/resolve/route-c452284fb77ecee0.js +0 -1
  808. package/app/.next/static/chunks/app/api/cloud/models/alias/route-c452284fb77ecee0.js +0 -1
  809. package/app/.next/static/chunks/app/api/combos/[id]/route-c452284fb77ecee0.js +0 -1
  810. package/app/.next/static/chunks/app/api/combos/metrics/route-c452284fb77ecee0.js +0 -1
  811. package/app/.next/static/chunks/app/api/combos/route-c452284fb77ecee0.js +0 -1
  812. package/app/.next/static/chunks/app/api/combos/test/route-c452284fb77ecee0.js +0 -1
  813. package/app/.next/static/chunks/app/api/db-backups/route-c452284fb77ecee0.js +0 -1
  814. package/app/.next/static/chunks/app/api/init/route-c452284fb77ecee0.js +0 -1
  815. package/app/.next/static/chunks/app/api/keys/[id]/route-c452284fb77ecee0.js +0 -1
  816. package/app/.next/static/chunks/app/api/keys/route-c452284fb77ecee0.js +0 -1
  817. package/app/.next/static/chunks/app/api/models/alias/route-c452284fb77ecee0.js +0 -1
  818. package/app/.next/static/chunks/app/api/models/catalog/route-c452284fb77ecee0.js +0 -1
  819. package/app/.next/static/chunks/app/api/models/route-c452284fb77ecee0.js +0 -1
  820. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-c452284fb77ecee0.js +0 -1
  821. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-c452284fb77ecee0.js +0 -1
  822. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-c452284fb77ecee0.js +0 -1
  823. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-c452284fb77ecee0.js +0 -1
  824. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-c452284fb77ecee0.js +0 -1
  825. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-c452284fb77ecee0.js +0 -1
  826. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-c452284fb77ecee0.js +0 -1
  827. package/app/.next/static/chunks/app/api/pricing/defaults/route-c452284fb77ecee0.js +0 -1
  828. package/app/.next/static/chunks/app/api/pricing/models/route-c452284fb77ecee0.js +0 -1
  829. package/app/.next/static/chunks/app/api/pricing/route-c452284fb77ecee0.js +0 -1
  830. package/app/.next/static/chunks/app/api/provider-models/route-c452284fb77ecee0.js +0 -1
  831. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-c452284fb77ecee0.js +0 -1
  832. package/app/.next/static/chunks/app/api/provider-nodes/route-c452284fb77ecee0.js +0 -1
  833. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-c452284fb77ecee0.js +0 -1
  834. package/app/.next/static/chunks/app/api/providers/[id]/models/route-c452284fb77ecee0.js +0 -1
  835. package/app/.next/static/chunks/app/api/providers/[id]/route-c452284fb77ecee0.js +0 -1
  836. package/app/.next/static/chunks/app/api/providers/[id]/test/route-c452284fb77ecee0.js +0 -1
  837. package/app/.next/static/chunks/app/api/providers/client/route-c452284fb77ecee0.js +0 -1
  838. package/app/.next/static/chunks/app/api/providers/route-c452284fb77ecee0.js +0 -1
  839. package/app/.next/static/chunks/app/api/providers/test-batch/route-c452284fb77ecee0.js +0 -1
  840. package/app/.next/static/chunks/app/api/providers/validate/route-c452284fb77ecee0.js +0 -1
  841. package/app/.next/static/chunks/app/api/rate-limit/route-c452284fb77ecee0.js +0 -1
  842. package/app/.next/static/chunks/app/api/rate-limits/route-c452284fb77ecee0.js +0 -1
  843. package/app/.next/static/chunks/app/api/restart/route-c452284fb77ecee0.js +0 -1
  844. package/app/.next/static/chunks/app/api/sessions/route-c452284fb77ecee0.js +0 -1
  845. package/app/.next/static/chunks/app/api/settings/combo-defaults/route-c452284fb77ecee0.js +0 -1
  846. package/app/.next/static/chunks/app/api/settings/ip-filter/route-c452284fb77ecee0.js +0 -1
  847. package/app/.next/static/chunks/app/api/settings/proxy/route-c452284fb77ecee0.js +0 -1
  848. package/app/.next/static/chunks/app/api/settings/proxy/test/route-c452284fb77ecee0.js +0 -1
  849. package/app/.next/static/chunks/app/api/settings/require-login/route-c452284fb77ecee0.js +0 -1
  850. package/app/.next/static/chunks/app/api/settings/route-c452284fb77ecee0.js +0 -1
  851. package/app/.next/static/chunks/app/api/settings/system-prompt/route-c452284fb77ecee0.js +0 -1
  852. package/app/.next/static/chunks/app/api/settings/thinking-budget/route-c452284fb77ecee0.js +0 -1
  853. package/app/.next/static/chunks/app/api/shutdown/route-c452284fb77ecee0.js +0 -1
  854. package/app/.next/static/chunks/app/api/storage/health/route-c452284fb77ecee0.js +0 -1
  855. package/app/.next/static/chunks/app/api/sync/cloud/route-c452284fb77ecee0.js +0 -1
  856. package/app/.next/static/chunks/app/api/sync/initialize/route-c452284fb77ecee0.js +0 -1
  857. package/app/.next/static/chunks/app/api/tags/route-c452284fb77ecee0.js +0 -1
  858. package/app/.next/static/chunks/app/api/translator/detect/route-c452284fb77ecee0.js +0 -1
  859. package/app/.next/static/chunks/app/api/translator/history/route-c452284fb77ecee0.js +0 -1
  860. package/app/.next/static/chunks/app/api/translator/load/route-c452284fb77ecee0.js +0 -1
  861. package/app/.next/static/chunks/app/api/translator/save/route-c452284fb77ecee0.js +0 -1
  862. package/app/.next/static/chunks/app/api/translator/send/route-c452284fb77ecee0.js +0 -1
  863. package/app/.next/static/chunks/app/api/translator/translate/route-c452284fb77ecee0.js +0 -1
  864. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-c452284fb77ecee0.js +0 -1
  865. package/app/.next/static/chunks/app/api/usage/analytics/route-c452284fb77ecee0.js +0 -1
  866. package/app/.next/static/chunks/app/api/usage/call-logs/[id]/route-c452284fb77ecee0.js +0 -1
  867. package/app/.next/static/chunks/app/api/usage/call-logs/route-c452284fb77ecee0.js +0 -1
  868. package/app/.next/static/chunks/app/api/usage/history/route-c452284fb77ecee0.js +0 -1
  869. package/app/.next/static/chunks/app/api/usage/logs/route-c452284fb77ecee0.js +0 -1
  870. package/app/.next/static/chunks/app/api/usage/proxy-logs/route-c452284fb77ecee0.js +0 -1
  871. package/app/.next/static/chunks/app/api/usage/request-logs/route-c452284fb77ecee0.js +0 -1
  872. package/app/.next/static/chunks/app/api/v1/api/chat/route-c452284fb77ecee0.js +0 -1
  873. package/app/.next/static/chunks/app/api/v1/audio/speech/route-c452284fb77ecee0.js +0 -1
  874. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-c452284fb77ecee0.js +0 -1
  875. package/app/.next/static/chunks/app/api/v1/chat/completions/route-c452284fb77ecee0.js +0 -1
  876. package/app/.next/static/chunks/app/api/v1/embeddings/route-c452284fb77ecee0.js +0 -1
  877. package/app/.next/static/chunks/app/api/v1/images/generations/route-c452284fb77ecee0.js +0 -1
  878. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-c452284fb77ecee0.js +0 -1
  879. package/app/.next/static/chunks/app/api/v1/messages/route-c452284fb77ecee0.js +0 -1
  880. package/app/.next/static/chunks/app/api/v1/models/route-c452284fb77ecee0.js +0 -1
  881. package/app/.next/static/chunks/app/api/v1/moderations/route-c452284fb77ecee0.js +0 -1
  882. package/app/.next/static/chunks/app/api/v1/providers/[provider]/chat/completions/route-c452284fb77ecee0.js +0 -1
  883. package/app/.next/static/chunks/app/api/v1/providers/[provider]/embeddings/route-c452284fb77ecee0.js +0 -1
  884. package/app/.next/static/chunks/app/api/v1/providers/[provider]/images/generations/route-c452284fb77ecee0.js +0 -1
  885. package/app/.next/static/chunks/app/api/v1/rerank/route-c452284fb77ecee0.js +0 -1
  886. package/app/.next/static/chunks/app/api/v1/responses/route-c452284fb77ecee0.js +0 -1
  887. package/app/.next/static/chunks/app/api/v1/route-c452284fb77ecee0.js +0 -1
  888. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-c452284fb77ecee0.js +0 -1
  889. package/app/.next/static/chunks/app/api/v1beta/models/route-c452284fb77ecee0.js +0 -1
  890. package/app/.next/static/chunks/app/layout-485b011f69e6ed37.js +0 -1
  891. package/app/.next/static/chunks/app/page-c452284fb77ecee0.js +0 -1
  892. package/app/.next/static/chunks/main-app-fbc16f70c595b197.js +0 -1
  893. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-c452284fb77ecee0.js +0 -1
  894. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-c452284fb77ecee0.js +0 -1
  895. package/app/.next/static/chunks/next/dist/client/components/builtin/global-error-d91548a7b6ba5970.js +0 -1
  896. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-c452284fb77ecee0.js +0 -1
  897. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-c452284fb77ecee0.js +0 -1
  898. package/app/.next/static/css/5309860f6e486620.css +0 -1
  899. /package/app/.next/static/{XnNWFvV2IXZ4xuX0F1Skg → H6LKncewEoggilnvYL9Ff}/_ssgManifest.js +0 -0
@@ -1,156 +0,0 @@
1
- exports.id=1483,exports.ids=[1483,7136],exports.modules={14469:(a,b,c)=>{"use strict";c.d(b,{G6:()=>p,I8:()=>i,NJ:()=>m,jX:()=>s,kB:()=>o,m1:()=>h,nJ:()=>j,oh:()=>k,sm:()=>r});var d=c(87550),e=c(76760),f=c(73024),g=c(32677);let h="object"==typeof globalThis.caches&&null!==globalThis.caches,i="phase-production-build"===process.env.NEXT_PHASE,j=(0,g._3)({isCloud:h});h||(0,g.sm)();let k=h?null:e.join(j,"storage.sqlite"),l=h?null:e.join(j,"db.json"),m=h?null:e.join(j,"db_backups");h||f.existsSync(j)||f.mkdirSync(j,{recursive:!0});let n=`
2
- CREATE TABLE IF NOT EXISTS provider_connections (
3
- id TEXT PRIMARY KEY,
4
- provider TEXT NOT NULL,
5
- auth_type TEXT,
6
- name TEXT,
7
- email TEXT,
8
- priority INTEGER DEFAULT 0,
9
- is_active INTEGER DEFAULT 1,
10
- access_token TEXT,
11
- refresh_token TEXT,
12
- expires_at TEXT,
13
- token_expires_at TEXT,
14
- scope TEXT,
15
- project_id TEXT,
16
- test_status TEXT,
17
- error_code TEXT,
18
- last_error TEXT,
19
- last_error_at TEXT,
20
- last_error_type TEXT,
21
- last_error_source TEXT,
22
- backoff_level INTEGER DEFAULT 0,
23
- rate_limited_until TEXT,
24
- health_check_interval INTEGER,
25
- last_health_check_at TEXT,
26
- last_tested TEXT,
27
- api_key TEXT,
28
- id_token TEXT,
29
- provider_specific_data TEXT,
30
- expires_in INTEGER,
31
- display_name TEXT,
32
- global_priority INTEGER,
33
- default_model TEXT,
34
- token_type TEXT,
35
- consecutive_use_count INTEGER DEFAULT 0,
36
- rate_limit_protection INTEGER DEFAULT 0,
37
- created_at TEXT NOT NULL,
38
- updated_at TEXT NOT NULL
39
- );
40
- CREATE INDEX IF NOT EXISTS idx_pc_provider ON provider_connections(provider);
41
- CREATE INDEX IF NOT EXISTS idx_pc_active ON provider_connections(is_active);
42
- CREATE INDEX IF NOT EXISTS idx_pc_priority ON provider_connections(provider, priority);
43
-
44
- CREATE TABLE IF NOT EXISTS provider_nodes (
45
- id TEXT PRIMARY KEY,
46
- type TEXT NOT NULL,
47
- name TEXT NOT NULL,
48
- prefix TEXT,
49
- api_type TEXT,
50
- base_url TEXT,
51
- created_at TEXT NOT NULL,
52
- updated_at TEXT NOT NULL
53
- );
54
-
55
- CREATE TABLE IF NOT EXISTS key_value (
56
- namespace TEXT NOT NULL,
57
- key TEXT NOT NULL,
58
- value TEXT NOT NULL,
59
- PRIMARY KEY (namespace, key)
60
- );
61
-
62
- CREATE TABLE IF NOT EXISTS combos (
63
- id TEXT PRIMARY KEY,
64
- name TEXT NOT NULL UNIQUE,
65
- data TEXT NOT NULL,
66
- created_at TEXT NOT NULL,
67
- updated_at TEXT NOT NULL
68
- );
69
-
70
- CREATE TABLE IF NOT EXISTS api_keys (
71
- id TEXT PRIMARY KEY,
72
- name TEXT NOT NULL,
73
- key TEXT NOT NULL UNIQUE,
74
- machine_id TEXT,
75
- created_at TEXT NOT NULL
76
- );
77
- CREATE INDEX IF NOT EXISTS idx_ak_key ON api_keys(key);
78
-
79
- CREATE TABLE IF NOT EXISTS db_meta (
80
- key TEXT PRIMARY KEY,
81
- value TEXT
82
- );
83
-
84
- CREATE TABLE IF NOT EXISTS usage_history (
85
- id INTEGER PRIMARY KEY AUTOINCREMENT,
86
- provider TEXT,
87
- model TEXT,
88
- connection_id TEXT,
89
- api_key_id TEXT,
90
- api_key_name TEXT,
91
- tokens_input INTEGER DEFAULT 0,
92
- tokens_output INTEGER DEFAULT 0,
93
- tokens_cache_read INTEGER DEFAULT 0,
94
- tokens_cache_creation INTEGER DEFAULT 0,
95
- tokens_reasoning INTEGER DEFAULT 0,
96
- status TEXT,
97
- timestamp TEXT NOT NULL
98
- );
99
- CREATE INDEX IF NOT EXISTS idx_uh_timestamp ON usage_history(timestamp);
100
- CREATE INDEX IF NOT EXISTS idx_uh_provider ON usage_history(provider);
101
- CREATE INDEX IF NOT EXISTS idx_uh_model ON usage_history(model);
102
-
103
- CREATE TABLE IF NOT EXISTS call_logs (
104
- id TEXT PRIMARY KEY,
105
- timestamp TEXT NOT NULL,
106
- method TEXT,
107
- path TEXT,
108
- status INTEGER,
109
- model TEXT,
110
- provider TEXT,
111
- account TEXT,
112
- connection_id TEXT,
113
- duration INTEGER DEFAULT 0,
114
- tokens_in INTEGER DEFAULT 0,
115
- tokens_out INTEGER DEFAULT 0,
116
- source_format TEXT,
117
- target_format TEXT,
118
- api_key_id TEXT,
119
- api_key_name TEXT,
120
- combo_name TEXT,
121
- request_body TEXT,
122
- response_body TEXT,
123
- error TEXT
124
- );
125
- CREATE INDEX IF NOT EXISTS idx_cl_timestamp ON call_logs(timestamp);
126
- CREATE INDEX IF NOT EXISTS idx_cl_status ON call_logs(status);
127
- `;function o(a){if(!a)return null;let b={};for(let[c,d]of Object.entries(a)){let a=c.replace(/_([a-z])/g,(a,b)=>b.toUpperCase());if("isActive"===a||"rateLimitProtection"===a)b[a]=1===d||!0===d;else if("providerSpecificData"===a&&"string"==typeof d)try{b[a]=JSON.parse(d)}catch{b[a]=d}else b[a]=d}return b}function p(a){let b={};for(let[c,d]of Object.entries(a))null!=d&&(b[c]=d);return b}let q=null;function r(){if(q)return q;if(h||i)return i&&console.log("[DB] Build phase detected — using in-memory SQLite (read-only)"),(q=new d(":memory:")).pragma("journal_mode = WAL"),q.exec(n),q;if(f.existsSync(k))try{let a=new d(k,{readonly:!0}),b=a.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='schema_migrations'").get();if(a.close(),b){let a=k+".old-schema";for(let b of(console.log(`[DB] Old incompatible schema detected — renaming to ${e.basename(a)}`),f.renameSync(k,a),["-wal","-shm"]))try{f.existsSync(k+b)&&f.unlinkSync(k+b)}catch{}}}catch(a){console.warn("[DB] Could not probe existing DB, will create fresh:",a.message);try{f.unlinkSync(k)}catch{}}(q=new d(k)).pragma("journal_mode = WAL"),q.pragma("busy_timeout = 5000"),q.pragma("synchronous = NORMAL"),q.exec(n);var a=q;try{let b=a.prepare("PRAGMA table_info(provider_connections)").all();new Set(b.map(a=>a.name)).has("rate_limit_protection")||(a.exec("ALTER TABLE provider_connections ADD COLUMN rate_limit_protection INTEGER DEFAULT 0"),console.log("[DB] Added provider_connections.rate_limit_protection column"))}catch(a){console.warn("[DB] Failed to verify provider_connections schema:",a.message)}return l&&f.existsSync(l)&&function(a,b){try{let c=f.readFileSync(b,"utf-8"),d=JSON.parse(c),g=(d.providerConnections||[]).length,h=(d.providerNodes||[]).length,i=(d.apiKeys||[]).length;if(0===g&&0===h&&0===i){console.log("[DB] db.json has no data to migrate, skipping"),f.renameSync(b,b+".empty");return}console.log(`[DB] Migrating db.json → SQLite (${g} connections, ${h} nodes, ${i} keys)...`),a.transaction(()=>{let b=a.prepare(`
128
- INSERT OR REPLACE INTO provider_connections (
129
- id, provider, auth_type, name, email, priority, is_active,
130
- access_token, refresh_token, expires_at, token_expires_at,
131
- scope, project_id, test_status, error_code, last_error,
132
- last_error_at, last_error_type, last_error_source, backoff_level,
133
- rate_limited_until, health_check_interval, last_health_check_at,
134
- last_tested, api_key, id_token, provider_specific_data,
135
- expires_in, display_name, global_priority, default_model,
136
- token_type, consecutive_use_count, rate_limit_protection, created_at, updated_at
137
- ) VALUES (
138
- @id, @provider, @authType, @name, @email, @priority, @isActive,
139
- @accessToken, @refreshToken, @expiresAt, @tokenExpiresAt,
140
- @scope, @projectId, @testStatus, @errorCode, @lastError,
141
- @lastErrorAt, @lastErrorType, @lastErrorSource, @backoffLevel,
142
- @rateLimitedUntil, @healthCheckInterval, @lastHealthCheckAt,
143
- @lastTested, @apiKey, @idToken, @providerSpecificData,
144
- @expiresIn, @displayName, @globalPriority, @defaultModel,
145
- @tokenType, @consecutiveUseCount, @rateLimitProtection, @createdAt, @updatedAt
146
- )
147
- `);for(let a of d.providerConnections||[])b.run({id:a.id,provider:a.provider,authType:a.authType||"oauth",name:a.name||null,email:a.email||null,priority:a.priority||0,isActive:+(!1!==a.isActive),accessToken:a.accessToken||null,refreshToken:a.refreshToken||null,expiresAt:a.expiresAt||null,tokenExpiresAt:a.tokenExpiresAt||null,scope:a.scope||null,projectId:a.projectId||null,testStatus:a.testStatus||null,errorCode:a.errorCode||null,lastError:a.lastError||null,lastErrorAt:a.lastErrorAt||null,lastErrorType:a.lastErrorType||null,lastErrorSource:a.lastErrorSource||null,backoffLevel:a.backoffLevel||0,rateLimitedUntil:a.rateLimitedUntil||null,healthCheckInterval:a.healthCheckInterval||null,lastHealthCheckAt:a.lastHealthCheckAt||null,lastTested:a.lastTested||null,apiKey:a.apiKey||null,idToken:a.idToken||null,providerSpecificData:a.providerSpecificData?JSON.stringify(a.providerSpecificData):null,expiresIn:a.expiresIn||null,displayName:a.displayName||null,globalPriority:a.globalPriority||null,defaultModel:a.defaultModel||null,tokenType:a.tokenType||null,consecutiveUseCount:a.consecutiveUseCount||0,rateLimitProtection:+(!0===a.rateLimitProtection||1===a.rateLimitProtection),createdAt:a.createdAt||new Date().toISOString(),updatedAt:a.updatedAt||new Date().toISOString()});let c=a.prepare(`
148
- INSERT OR REPLACE INTO provider_nodes (id, type, name, prefix, api_type, base_url, created_at, updated_at)
149
- VALUES (@id, @type, @name, @prefix, @apiType, @baseUrl, @createdAt, @updatedAt)
150
- `);for(let a of d.providerNodes||[])c.run({id:a.id,type:a.type,name:a.name,prefix:a.prefix||null,apiType:a.apiType||null,baseUrl:a.baseUrl||null,createdAt:a.createdAt||new Date().toISOString(),updatedAt:a.updatedAt||new Date().toISOString()});let e=a.prepare("INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES (?, ?, ?)");for(let[a,b]of Object.entries(d.modelAliases||{}))e.run("modelAliases",a,JSON.stringify(b));for(let[a,b]of Object.entries(d.mitmAlias||{}))e.run("mitmAlias",a,JSON.stringify(b));for(let[a,b]of Object.entries(d.settings||{}))e.run("settings",a,JSON.stringify(b));for(let[a,b]of Object.entries(d.pricing||{}))e.run("pricing",a,JSON.stringify(b));for(let[a,b]of Object.entries(d.customModels||{}))e.run("customModels",a,JSON.stringify(b));d.proxyConfig&&(e.run("proxyConfig","global",JSON.stringify(d.proxyConfig.global||null)),e.run("proxyConfig","providers",JSON.stringify(d.proxyConfig.providers||{})),e.run("proxyConfig","combos",JSON.stringify(d.proxyConfig.combos||{})),e.run("proxyConfig","keys",JSON.stringify(d.proxyConfig.keys||{})));let f=a.prepare(`
151
- INSERT OR REPLACE INTO combos (id, name, data, created_at, updated_at)
152
- VALUES (@id, @name, @data, @createdAt, @updatedAt)
153
- `);for(let a of d.combos||[])f.run({id:a.id,name:a.name,data:JSON.stringify(a),createdAt:a.createdAt||new Date().toISOString(),updatedAt:a.updatedAt||new Date().toISOString()});let g=a.prepare(`
154
- INSERT OR REPLACE INTO api_keys (id, name, key, machine_id, created_at)
155
- VALUES (@id, @name, @key, @machineId, @createdAt)
156
- `);for(let a of d.apiKeys||[])g.run({id:a.id,name:a.name,key:a.key,machineId:a.machineId||null,createdAt:a.createdAt||new Date().toISOString()})})();let k=b+".migrated";f.renameSync(b,k),console.log(`[DB] ✓ Migration complete. Original saved as ${k}`);let l=e.join(j,"db_backups");if(f.existsSync(l)){let a=f.readdirSync(l).filter(a=>a.endsWith(".json"));a.length>0&&console.log(`[DB] Note: ${a.length} legacy .json backups remain in ${l}`)}}catch(a){console.error("[DB] Migration from db.json failed:",a.message)}}(q,l),q.prepare("INSERT OR REPLACE INTO db_meta (key, value) VALUES ('schema_version', '1')").run(),console.log(`[DB] SQLite database ready: ${k}`),q}function s(){q&&(q.close(),q=null)}},15040:(a,b,c)=>{"use strict";c.d(b,{Pt:()=>j,Tr:()=>k,c1:()=>h,kI:()=>l,vk:()=>i});var d=c(60021),e=c(49263),f=c(26262);let g=Promise.resolve();async function h(a,b=null){let c,i=g;g=new Promise(a=>{c=a});try{let c;await i;let g=await (0,d.getProviderConnections)({provider:a,isActive:!0});if(f.debug("AUTH",`${a} | total connections: ${g.length}, excludeId: ${b||"none"}`),0===g.length){let b=await (0,d.getProviderConnections)({provider:a});if(f.debug("AUTH",`${a} | all connections (incl inactive): ${b.length}`),b.length>0){let c=(0,e.UY)(b);if(c)return f.warn("AUTH",`${a} | all ${b.length} accounts rate limited (${(0,e.Qo)(c)})`),{allRateLimited:!0,retryAfter:c,retryAfterHuman:(0,e.Qo)(c)};f.warn("AUTH",`${a} | ${b.length} accounts found but none active`),b.forEach(a=>{f.debug("AUTH",` → ${a.id?.slice(0,8)} | isActive=${a.isActive} | rateLimitedUntil=${a.rateLimitedUntil||"none"} | testStatus=${a.testStatus}`)})}return f.warn("AUTH",`No credentials for ${a}`),null}let h=g.filter(a=>!(b&&a.id===b||(0,e.AO)(a.rateLimitedUntil)));if(f.debug("AUTH",`${a} | available: ${h.length}/${g.length}`),g.forEach(a=>{let c=b&&a.id===b,d=(0,e.AO)(a.rateLimitedUntil);(c||d)&&f.debug("AUTH",` → ${a.id?.slice(0,8)} | ${c?"excluded":""} ${d?`rateLimited until ${a.rateLimitedUntil}`:""}`)}),0===h.length){let b=(0,e.UY)(g);if(b){let c=g.filter(a=>a.rateLimitedUntil&&new Date(a.rateLimitedUntil).getTime()>Date.now()).sort((a,b)=>new Date(a.rateLimitedUntil)-new Date(b.rateLimitedUntil))[0];return f.warn("AUTH",`${a} | all ${g.length} active accounts rate limited (${(0,e.Qo)(b)}) | lastErrorCode=${c?.errorCode}, lastError=${c?.lastError?.slice(0,50)}`),{allRateLimited:!0,retryAfter:b,retryAfterHuman:(0,e.Qo)(b),lastError:c?.lastError||null,lastErrorCode:c?.errorCode||null}}return f.warn("AUTH",`${a} | all ${g.length} accounts unavailable`),null}let j=await (0,d.mt)(),k=j.fallbackStrategy||"fill-first";if("round-robin"===k){let a=j.stickyRoundRobinLimit||3,b=[...h].sort((a,b)=>a.lastUsedAt||b.lastUsedAt?a.lastUsedAt?b.lastUsedAt?new Date(b.lastUsedAt)-new Date(a.lastUsedAt):-1:1:(a.priority||999)-(b.priority||999))[0],e=b?.consecutiveUseCount||0;b&&b.lastUsedAt&&e<a?(c=b,await (0,d.rj)(c.id,{lastUsedAt:new Date().toISOString(),consecutiveUseCount:(c.consecutiveUseCount||0)+1})):(c=[...h].sort((a,b)=>a.lastUsedAt||b.lastUsedAt?a.lastUsedAt?b.lastUsedAt?new Date(a.lastUsedAt)-new Date(b.lastUsedAt):1:-1:(a.priority||999)-(b.priority||999))[0],await (0,d.rj)(c.id,{lastUsedAt:new Date().toISOString(),consecutiveUseCount:1}))}else c=h[0];return{apiKey:c.apiKey,accessToken:c.accessToken,refreshToken:c.refreshToken,expiresAt:c.tokenExpiresAt||c.expiresAt||null,projectId:c.projectId,copilotToken:c.providerSpecificData?.copilotToken,providerSpecificData:c.providerSpecificData,connectionId:c.id,testStatus:c.testStatus,lastError:c.lastError,rateLimitedUntil:c.rateLimitedUntil}}finally{c&&c()}}async function i(a,b,c,f=null,g=null){let h=(await (0,d.getProviderConnections)({provider:f})).find(b=>b.id===a),j=h?.backoffLevel||0,{shouldFallback:k,cooldownMs:l,newBackoffLevel:m,reason:n}=(0,e.hk)(b,c,j,g);if(!k)return{shouldFallback:!1,cooldownMs:0};let o=(0,e.vp)(l),p="string"==typeof c?c.slice(0,100):"Provider error";return await (0,d.rj)(a,{rateLimitedUntil:o,testStatus:"unavailable",lastError:p,errorCode:b,lastErrorAt:new Date().toISOString(),backoffLevel:m??j}),f&&g&&l>0&&(0,e.R7)(f,a,g,n||"unknown",l),f&&b&&p&&console.error(`❌ ${f} [${b}]: ${p}`),{shouldFallback:!0,cooldownMs:l}}async function j(a,b){("unavailable"===b.testStatus||b.lastError||b.rateLimitedUntil)&&(await (0,d.rj)(a,{testStatus:"active",lastError:null,lastErrorAt:null,rateLimitedUntil:null,backoffLevel:0}),f.info("AUTH",`Account ${a.slice(0,8)} error cleared`))}function k(a){let b=a.headers.get("Authorization");return b?.startsWith("Bearer ")?b.slice(7):null}async function l(a){return!!a&&await (0,d.ek)(a)}},19225:(a,b,c)=>{"use strict";a.exports=c(44870)},26262:(a,b,c)=>{"use strict";c.r(b),c.d(b,{debug:()=>h,error:()=>k,info:()=>i,maskKey:()=>f,request:()=>l,response:()=>m,stream:()=>n,warn:()=>j});var d=c(74552);let e={level:process.env.LOG_LEVEL||"info",base:{service:"omniroute"},timestamp:d.stdTimeFunctions.isoTime,formatters:{level:a=>({level:a})}};function f(a){return!a||a.length<8?"***":`${a.slice(0,4)}...${a.slice(-4)}`}let g=d({...e}).child({module:"sse"});function h(a,b,c){g.debug({tag:a,...o(c)},b)}function i(a,b,c){g.info({tag:a,...o(c)},b)}function j(a,b,c){g.warn({tag:a,...o(c)},b)}function k(a,b,c){g.error({tag:a,...o(c)},b)}function l(a,b,c){g.info({tag:"HTTP",method:a,path:b,...o(c)},`📥 ${a} ${b}`)}function m(a,b,c){g[a<400?"info":"error"]({tag:"HTTP",status:a,duration:b,...o(c)},`📤 ${a} (${b}ms)`)}function n(a,b){g.debug({tag:"STREAM",event:a,...o(b)},`🌊 ${a}`)}function o(a){return a?"string"==typeof a?{detail:a}:"object"==typeof a?a:{detail:String(a)}:{}}},32677:(a,b,c)=>{"use strict";c.d(b,{_3:()=>j,sm:()=>i,ys:()=>k});var d=c(76760),e=c(48161);let f="omniroute";function g(){try{return e.homedir()}catch{return process.cwd()}}function h(a){if("string"!=typeof a)return null;let b=a.trim();return b?d.resolve(b):null}function i(){return d.join(g(),`.${f}`)}function j({isCloud:a=!1}={}){if(a)return"/tmp";let b=h(process.env.DATA_DIR);if(b)return b;let c=g();if("win32"===process.platform){let a=process.env.APPDATA||d.join(c,"AppData","Roaming");return d.join(a,f)}let e=h(process.env.XDG_CONFIG_HOME);return e?d.join(e,f):i()}function k(a,b){if(!a||!b)return!1;let c=d.resolve(a),e=d.resolve(b);return"win32"===process.platform?c.toLowerCase()===e.toLowerCase():c===e}},50122:(a,b,c)=>{"use strict";c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},62402:(a,b,c)=>{"use strict";c.d(b,{Lb:()=>e,QG:()=>f,zD:()=>g});let d={nebius:{id:"nebius",baseUrl:"https://api.tokenfactory.nebius.com/v1/embeddings",authType:"apikey",authHeader:"bearer",models:[{id:"Qwen/Qwen3-Embedding-8B",name:"Qwen3 Embedding 8B",dimensions:4096}]},openai:{id:"openai",baseUrl:"https://api.openai.com/v1/embeddings",authType:"apikey",authHeader:"bearer",models:[{id:"text-embedding-3-small",name:"Text Embedding 3 Small",dimensions:1536},{id:"text-embedding-3-large",name:"Text Embedding 3 Large",dimensions:3072},{id:"text-embedding-ada-002",name:"Text Embedding Ada 002",dimensions:1536}]},mistral:{id:"mistral",baseUrl:"https://api.mistral.ai/v1/embeddings",authType:"apikey",authHeader:"bearer",models:[{id:"mistral-embed",name:"Mistral Embed",dimensions:1024}]},together:{id:"together",baseUrl:"https://api.together.xyz/v1/embeddings",authType:"apikey",authHeader:"bearer",models:[{id:"BAAI/bge-large-en-v1.5",name:"BGE Large EN v1.5",dimensions:1024},{id:"togethercomputer/m2-bert-80M-8k-retrieval",name:"M2 BERT 80M 8K",dimensions:768}]},fireworks:{id:"fireworks",baseUrl:"https://api.fireworks.ai/inference/v1/embeddings",authType:"apikey",authHeader:"bearer",models:[{id:"nomic-ai/nomic-embed-text-v1.5",name:"Nomic Embed Text v1.5",dimensions:768}]},nvidia:{id:"nvidia",baseUrl:"https://integrate.api.nvidia.com/v1/embeddings",authType:"apikey",authHeader:"bearer",models:[{id:"nvidia/nv-embedqa-e5-v5",name:"NV EmbedQA E5 v5",dimensions:1024}]}};function e(a){return d[a]||null}function f(a){if(!a)return{provider:null,model:null};let b=a.indexOf("/");if(b>0){for(let[b,c]of Object.entries(d))if(a.startsWith(b+"/"))return{provider:b,model:a.slice(b.length+1)};return{provider:a.slice(0,b),model:a.slice(b+1)}}for(let[b,c]of Object.entries(d))if(c.models.some(b=>b.id===a))return{provider:b,model:a};return{provider:null,model:a}}function g(){let a=[];for(let[b,c]of Object.entries(d))for(let d of c.models)a.push({id:`${b}/${d.id}`,name:d.name,provider:b,dimensions:d.dimensions});return a}},77825:(a,b,c)=>{"use strict";c.d(b,{Q:()=>f});var d=c(62402),e=c(17132);async function f({body:a,credentials:b,log:c}){let{provider:f,model:g}=(0,d.QG)(a.model),h=Date.now(),i={model:a.model,input_count:Array.isArray(a.input)?a.input.length:1,dimensions:a.dimensions||void 0};if(!f)return{success:!1,status:400,error:`Invalid embedding model: ${a.model}. Use format: provider/model`};let j=(0,d.Lb)(f);if(!j)return{success:!1,status:400,error:`Unknown embedding provider: ${f}`};let k={model:g,input:a.input};void 0!==a.dimensions&&(k.dimensions=a.dimensions),void 0!==a.encoding_format&&(k.encoding_format=a.encoding_format);let l={"Content-Type":"application/json"},m=b.apiKey||b.accessToken;"bearer"===j.authHeader?l.Authorization=`Bearer ${m}`:"x-api-key"===j.authHeader&&(l["x-api-key"]=m),c&&c.info("EMBED",`${f}/${g} | input: ${Array.isArray(a.input)?a.input.length+" items":"1 item"}`);try{let a=await fetch(j.baseUrl,{method:"POST",headers:l,body:JSON.stringify(k)});if(!a.ok){let b=await a.text();return c&&c.error("EMBED",`${f} error ${a.status}: ${b.slice(0,200)}`),(0,e.gK)({method:"POST",path:"/v1/embeddings",status:a.status,model:`${f}/${g}`,provider:f,duration:Date.now()-h,error:b.slice(0,500),requestBody:i}).catch(()=>{}),{success:!1,status:a.status,error:b}}let b=await a.json();return(0,e.gK)({method:"POST",path:"/v1/embeddings",status:200,model:`${f}/${g}`,provider:f,duration:Date.now()-h,tokens:{prompt_tokens:b.usage?.prompt_tokens||b.usage?.total_tokens||0,completion_tokens:0},requestBody:i,responseBody:{usage:b.usage||null,object:"list",data_count:b.data?.length||0}}).catch(()=>{}),{success:!0,data:{object:"list",data:b.data||b,model:`${f}/${g}`,usage:b.usage||{prompt_tokens:0,total_tokens:0}}}}catch(a){return c&&c.error("EMBED",`${f} fetch error: ${a.message}`),(0,e.gK)({method:"POST",path:"/v1/embeddings",status:502,model:`${f}/${g}`,provider:f,duration:Date.now()-h,error:a.message,requestBody:i}).catch(()=>{}),{success:!1,status:502,error:`Embedding provider error: ${a.message}`}}}},78335:()=>{},92280:(a,b,c)=>{"use strict";Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},94755:(a,b,c)=>{"use strict";c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}},96487:()=>{},97271:(a,b,c)=>{"use strict";c.d(b,{$V:()=>n,EQ:()=>u,Co:()=>m,Bm:()=>w,O:()=>t,Uc:()=>p,eo:()=>q,LY:()=>s,MT:()=>j,gx:()=>r,NA:()=>o,xq:()=>l,QS:()=>v,C8:()=>x,TH:()=>k});var d=c(29021),e=c(33873);let f=["clientId","clientSecret","tokenUrl","authUrl","refreshUrl"],g=0,h=null;var i=c(28108);let j=parseInt(process.env.FETCH_TIMEOUT_MS||"120000",10),k=parseInt(process.env.STREAM_IDLE_TIMEOUT_MS||"60000",10),l=(0,i.Z0)();!function(a){let b;if(h&&Date.now()-g<6e4)return;let c=(b=process.env.DATA_DIR||(0,e.join)(process.cwd(),"data"),(0,e.join)(b,"provider-credentials.json"));if(!(0,d.existsSync)(c))return h||console.log("[CREDENTIALS] No external credentials file found, using defaults."),h=a,g=Date.now();try{let b=(0,d.readFileSync)(c,"utf-8"),e=JSON.parse(b),g=0;for(let[b,c]of Object.entries(e)){if(!a[b]){console.log(`[CREDENTIALS] Warning: unknown provider "${b}" in credentials file, skipping.`);continue}if(!c||"object"!=typeof c){console.log(`[CREDENTIALS] Warning: provider "${b}" value must be an object, got ${typeof c}. Skipping.`);continue}for(let d of f)void 0!==c[d]&&(a[b][d]=c[d],g++)}let i=null!==h;console.log(`[CREDENTIALS] ${i?"Reloaded":"Loaded"} external credentials: ${g} field(s) from ${c}`)}catch(a){console.log(`[CREDENTIALS] Error reading credentials file: ${a.message}. Using defaults.`)}h=a,g=Date.now()}(l);let m="You are Claude Code, Anthropic's official CLI for Claude.",n="Please ignore the following [ignore]You are Antigravity, a powerful agentic AI coding assistant designed by the Google Deepmind team working on Advanced Agentic Coding.You are pair programming with a USER to solve their coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.**Absolute paths only****Proactiveness**[/ignore]",o={google:{token:"https://oauth2.googleapis.com/token",auth:"https://accounts.google.com/o/oauth2/auth"},openai:{token:"https://auth.openai.com/oauth/token",auth:"https://auth.openai.com/oauth/authorize"},anthropic:{token:"https://console.anthropic.com/v1/oauth/token",auth:"https://console.anthropic.com/v1/oauth/authorize"},qwen:{token:"https://chat.qwen.ai/api/v1/oauth2/token",auth:"https://chat.qwen.ai/api/v1/oauth2/device/code"},iflow:{token:"https://iflow.cn/oauth/token",auth:"https://iflow.cn/oauth"},github:{token:"https://github.com/login/oauth/access_token",auth:"https://github.com/login/oauth/authorize",deviceCode:"https://github.com/login/device/code"}},p=64e3,q=32e3,r={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},s={[r.BAD_REQUEST]:{type:"invalid_request_error",code:"bad_request"},[r.UNAUTHORIZED]:{type:"authentication_error",code:"invalid_api_key"},[r.FORBIDDEN]:{type:"permission_error",code:"insufficient_quota"},[r.NOT_FOUND]:{type:"invalid_request_error",code:"model_not_found"},[r.RATE_LIMITED]:{type:"rate_limit_error",code:"rate_limit_exceeded"},[r.SERVER_ERROR]:{type:"server_error",code:"internal_server_error"},[r.BAD_GATEWAY]:{type:"server_error",code:"bad_gateway"},[r.SERVICE_UNAVAILABLE]:{type:"server_error",code:"service_unavailable"},[r.GATEWAY_TIMEOUT]:{type:"server_error",code:"gateway_timeout"}},t={[r.BAD_REQUEST]:"Bad request",[r.UNAUTHORIZED]:"Invalid API key provided",[r.FORBIDDEN]:"You exceeded your current quota",[r.NOT_FOUND]:"Model not found",[r.RATE_LIMITED]:"Rate limit exceeded",[r.SERVER_ERROR]:"Internal server error",[r.BAD_GATEWAY]:"Bad gateway - upstream provider error",[r.SERVICE_UNAVAILABLE]:"Service temporarily unavailable",[r.GATEWAY_TIMEOUT]:"Gateway timeout"},u={base:1e3,max:12e4,maxLevel:15},v={QUOTA_EXHAUSTED:"quota_exhausted",RATE_LIMIT_EXCEEDED:"rate_limit_exceeded",MODEL_CAPACITY:"model_capacity",SERVER_ERROR:"server_error",AUTH_ERROR:"auth_error",UNKNOWN:"unknown"},w={unauthorized:12e4,paymentRequired:12e4,notFound:12e4,transient:3e4,requestNotAllowed:5e3,rateLimit:12e4,serviceUnavailable:2e3,authExpired:12e4},x=["Please write a 5-10 word title for the following conversation:"]}};
@@ -1,46 +0,0 @@
1
- "use strict";exports.id=21,exports.ids=[21],exports.modules={29485:(a,b,c)=>{c.d(b,{PROVIDER_ID_TO_ALIAS:()=>f,ux:()=>g,vq:()=>e});var d=c(28108);let e=(0,d.oD)(),f=(0,d.Qv)();function g(a,b){let c=e[a];if(!c)return null;let d=c.find(a=>a.id===b);return d?.targetFormat||null}},60021:(a,b,c)=>{c.d(b,{S8:()=>H,lR:()=>j,bI:()=>u,Iq:()=>Q,jd:()=>M,iE:()=>o,i0:()=>x,Lh:()=>R,CG:()=>O,fv:()=>C,fK:()=>r,op:()=>s,Pc:()=>z,HL:()=>ai,NL:()=>G,v9:()=>T,PX:()=>P,L:()=>K,Dj:()=>L,Uv:()=>J,uv:()=>F,c:()=>D,OM:()=>A,r4:()=>Y,getPricingForModel:()=>Z,Mc:()=>n,getProviderConnections:()=>m,Qu:()=>w,Fh:()=>v,ru:()=>af,o4:()=>ag,mt:()=>V,Nx:()=>X,eF:()=>k,BD:()=>I,VT:()=>aa,yF:()=>_,YD:()=>aj,Dp:()=>l,L9:()=>E,o5:()=>B,PM:()=>ak,oG:()=>N,KJ:()=>$,rj:()=>q,ho:()=>y,Xx:()=>W,ek:()=>S});var d=c(94755),e=c(14469),f=c(87550),g=c(76760),h=c(73024);let i=0;function j(a="auto"){try{if(e.I8||e.m1||!e.oh||!h.existsSync(e.oh))return null;let b=h.statSync(e.oh);if(b.size<4096)return console.warn(`[DB] Backup SKIPPED — DB too small (${b.size}B)`),null;let c=Date.now();if("manual"!==a&&"pre-restore"!==a&&c-i<36e5)return null;i=c;let d=e.NJ||g.join(e.nJ,"db_backups");h.existsSync(d)||h.mkdirSync(d,{recursive:!0});let f=h.readdirSync(d).filter(a=>a.startsWith("db_")&&a.endsWith(".sqlite")).sort();if(f.length>0){let a=f[f.length-1],c=h.statSync(g.join(d,a));if(c.size>4096&&b.size<.5*c.size)return console.warn(`[DB] Backup SKIPPED — DB shrank from ${c.size}B to ${b.size}B`),null}let j=new Date().toISOString().replace(/[:.]/g,"-"),k=g.join(d,`db_${j}_${a}.sqlite`);(0,e.sm)().backup(k).then(()=>{console.log(`[DB] Backup created: ${k} (${b.size} bytes)`)}).catch(a=>{console.error("[DB] Backup failed:",a.message)});let l=h.readdirSync(d).filter(a=>a.startsWith("db_")&&a.endsWith(".sqlite")).sort();for(;l.length>20;){let a=0,b=1/0;for(let c=0;c<l.length-1;c++)try{let e=h.statSync(g.join(d,l[c]));e.size<b&&(b=e.size,a=c)}catch{a=c;break}try{h.unlinkSync(g.join(d,l[a]))}catch{}l.splice(a,1)}return{filename:g.basename(k),size:b.size}}catch(a){return console.error("[DB] Backup failed:",a.message),null}}async function k(){let a=e.NJ||g.join(e.nJ,"db_backups");try{if(!h.existsSync(a))return[];return h.readdirSync(a).filter(a=>a.startsWith("db_")&&a.endsWith(".sqlite")).sort().reverse().map(b=>{let c=g.join(a,b),d=h.statSync(c),e=b.match(/^db_(.+?)_([^.]+)\.sqlite$/),i=e?e[2]:"unknown",j=0;try{let a=new f(c,{readonly:!0}),b=a.prepare("SELECT COUNT(*) as cnt FROM provider_connections").get();j=b?.cnt||0,a.close()}catch{}return{id:b,filename:b,createdAt:d.mtime.toISOString(),size:d.size,reason:i,connectionCount:j}})}catch{return[]}}async function l(a){let b=e.NJ||g.join(e.nJ,"db_backups"),c=g.join(b,a);if(!a.startsWith("db_")||!a.endsWith(".sqlite"))throw Error("Invalid backup ID");if(!h.existsSync(c))throw Error(`Backup not found: ${a}`);try{let a=new f(c,{readonly:!0}),b=a.pragma("integrity_check");if(a.close(),b[0]?.integrity_check!=="ok")throw Error("Backup integrity check failed")}catch(a){if("Backup integrity check failed"===a.message)throw a;throw Error(`Backup file is corrupt: ${a.message}`)}for(let a of(i=0,j("pre-restore"),(0,e.jX)(),[e.oh,`${e.oh}-wal`,`${e.oh}-shm`,`${e.oh}-journal`]))a&&h.existsSync(a)&&h.unlinkSync(a);h.copyFileSync(c,e.oh);let d=(0,e.sm)(),k=d.prepare("SELECT COUNT(*) as cnt FROM provider_connections").get()?.cnt||0,l=d.prepare("SELECT COUNT(*) as cnt FROM provider_nodes").get()?.cnt||0,m=d.prepare("SELECT COUNT(*) as cnt FROM combos").get()?.cnt||0,n=d.prepare("SELECT COUNT(*) as cnt FROM api_keys").get()?.cnt||0;return console.log(`[DB] Restored backup: ${a} (${k} connections)`),{restored:!0,backupId:a,connectionCount:k,nodeCount:l,comboCount:m,apiKeyCount:n}}async function m(a={}){let b=(0,e.sm)(),c="SELECT * FROM provider_connections",d=[],f={};return a.provider&&(d.push("provider = @provider"),f.provider=a.provider),void 0!==a.isActive&&(d.push("is_active = @isActive"),f.isActive=+!!a.isActive),d.length>0&&(c+=" WHERE "+d.join(" AND ")),c+=" ORDER BY priority ASC, updated_at DESC",b.prepare(c).all(f).map(a=>(0,e.G6)((0,e.kB)(a)))}async function n(a){let b=(0,e.sm)().prepare("SELECT * FROM provider_connections WHERE id = ?").get(a);return b?(0,e.G6)((0,e.kB)(b)):null}async function o(a){var b,c;let f=(0,e.sm)(),g=new Date().toISOString(),h=null;if("oauth"===a.authType&&a.email?h=f.prepare("SELECT * FROM provider_connections WHERE provider = ? AND auth_type = 'oauth' AND email = ?").get(a.provider,a.email):"oauth"!==a.authType||a.email?"apikey"===a.authType&&a.name&&(h=f.prepare("SELECT * FROM provider_connections WHERE provider = ? AND auth_type = 'apikey' AND name = ?").get(a.provider,a.name)):h=f.prepare(`SELECT * FROM provider_connections WHERE provider = ? AND auth_type = 'oauth'
2
- ORDER BY updated_at DESC LIMIT 1`).get(a.provider),h){let b={...(0,e.kB)(h),...a,updatedAt:g};return p(f,h.id,b),j("pre-write"),(0,e.G6)(b)}let i=a.name||null;if(!i&&"oauth"===a.authType)if(a.email)i=a.email;else{let b=f.prepare("SELECT COUNT(*) as cnt FROM provider_connections WHERE provider = ?").get(a.provider)?.cnt||0;i=`Account ${b+1}`}let k=a.priority;if(!k){let b=f.prepare("SELECT MAX(priority) as maxP FROM provider_connections WHERE provider = ?").get(a.provider);k=(b?.maxP||0)+1}let l={id:(0,d.A)(),provider:a.provider,authType:a.authType||"oauth",name:i,priority:k,isActive:void 0===a.isActive||a.isActive,createdAt:g,updatedAt:g};for(let b of["displayName","email","globalPriority","defaultModel","accessToken","refreshToken","expiresAt","tokenType","scope","idToken","projectId","apiKey","testStatus","lastTested","lastError","lastErrorAt","lastErrorType","lastErrorSource","rateLimitedUntil","expiresIn","errorCode","consecutiveUseCount","rateLimitProtection"])void 0!==a[b]&&null!==a[b]&&(l[b]=a[b]);return a.providerSpecificData&&Object.keys(a.providerSpecificData).length>0&&(l.providerSpecificData=a.providerSpecificData),b=f,c=l,b.prepare(`
3
- INSERT INTO provider_connections (
4
- id, provider, auth_type, name, email, priority, is_active,
5
- access_token, refresh_token, expires_at, token_expires_at,
6
- scope, project_id, test_status, error_code, last_error,
7
- last_error_at, last_error_type, last_error_source, backoff_level,
8
- rate_limited_until, health_check_interval, last_health_check_at,
9
- last_tested, api_key, id_token, provider_specific_data,
10
- expires_in, display_name, global_priority, default_model,
11
- token_type, consecutive_use_count, rate_limit_protection, created_at, updated_at
12
- ) VALUES (
13
- @id, @provider, @authType, @name, @email, @priority, @isActive,
14
- @accessToken, @refreshToken, @expiresAt, @tokenExpiresAt,
15
- @scope, @projectId, @testStatus, @errorCode, @lastError,
16
- @lastErrorAt, @lastErrorType, @lastErrorSource, @backoffLevel,
17
- @rateLimitedUntil, @healthCheckInterval, @lastHealthCheckAt,
18
- @lastTested, @apiKey, @idToken, @providerSpecificData,
19
- @expiresIn, @displayName, @globalPriority, @defaultModel,
20
- @tokenType, @consecutiveUseCount, @rateLimitProtection, @createdAt, @updatedAt
21
- )
22
- `).run({id:c.id,provider:c.provider,authType:c.authType||null,name:c.name||null,email:c.email||null,priority:c.priority||0,isActive:+(!1!==c.isActive),accessToken:c.accessToken||null,refreshToken:c.refreshToken||null,expiresAt:c.expiresAt||null,tokenExpiresAt:c.tokenExpiresAt||null,scope:c.scope||null,projectId:c.projectId||null,testStatus:c.testStatus||null,errorCode:c.errorCode||null,lastError:c.lastError||null,lastErrorAt:c.lastErrorAt||null,lastErrorType:c.lastErrorType||null,lastErrorSource:c.lastErrorSource||null,backoffLevel:c.backoffLevel||0,rateLimitedUntil:c.rateLimitedUntil||null,healthCheckInterval:c.healthCheckInterval||null,lastHealthCheckAt:c.lastHealthCheckAt||null,lastTested:c.lastTested||null,apiKey:c.apiKey||null,idToken:c.idToken||null,providerSpecificData:c.providerSpecificData?JSON.stringify(c.providerSpecificData):null,expiresIn:c.expiresIn||null,displayName:c.displayName||null,globalPriority:c.globalPriority||null,defaultModel:c.defaultModel||null,tokenType:c.tokenType||null,consecutiveUseCount:c.consecutiveUseCount||0,rateLimitProtection:+(!0===c.rateLimitProtection||1===c.rateLimitProtection),createdAt:c.createdAt,updatedAt:c.updatedAt}),t(f,a.provider),j("pre-write"),(0,e.G6)(l)}function p(a,b,c){let d=c.updatedAt||new Date().toISOString();a.prepare(`
23
- UPDATE provider_connections SET
24
- provider = @provider, auth_type = @authType, name = @name, email = @email,
25
- priority = @priority, is_active = @isActive, access_token = @accessToken,
26
- refresh_token = @refreshToken, expires_at = @expiresAt, token_expires_at = @tokenExpiresAt,
27
- scope = @scope, project_id = @projectId, test_status = @testStatus, error_code = @errorCode,
28
- last_error = @lastError, last_error_at = @lastErrorAt, last_error_type = @lastErrorType,
29
- last_error_source = @lastErrorSource, backoff_level = @backoffLevel,
30
- rate_limited_until = @rateLimitedUntil, health_check_interval = @healthCheckInterval,
31
- last_health_check_at = @lastHealthCheckAt, last_tested = @lastTested, api_key = @apiKey,
32
- id_token = @idToken, provider_specific_data = @providerSpecificData,
33
- expires_in = @expiresIn, display_name = @displayName, global_priority = @globalPriority,
34
- default_model = @defaultModel, token_type = @tokenType,
35
- consecutive_use_count = @consecutiveUseCount,
36
- rate_limit_protection = @rateLimitProtection,
37
- updated_at = @updatedAt
38
- WHERE id = @id
39
- `).run({id:b,provider:c.provider,authType:c.authType||null,name:c.name||null,email:c.email||null,priority:c.priority||0,isActive:+(!1!==c.isActive),accessToken:c.accessToken||null,refreshToken:c.refreshToken||null,expiresAt:c.expiresAt||null,tokenExpiresAt:c.tokenExpiresAt||null,scope:c.scope||null,projectId:c.projectId||null,testStatus:c.testStatus||null,errorCode:c.errorCode||null,lastError:c.lastError||null,lastErrorAt:c.lastErrorAt||null,lastErrorType:c.lastErrorType||null,lastErrorSource:c.lastErrorSource||null,backoffLevel:c.backoffLevel||0,rateLimitedUntil:c.rateLimitedUntil||null,healthCheckInterval:c.healthCheckInterval||null,lastHealthCheckAt:c.lastHealthCheckAt||null,lastTested:c.lastTested||null,apiKey:c.apiKey||null,idToken:c.idToken||null,providerSpecificData:c.providerSpecificData?JSON.stringify(c.providerSpecificData):null,expiresIn:c.expiresIn||null,displayName:c.displayName||null,globalPriority:c.globalPriority||null,defaultModel:c.defaultModel||null,tokenType:c.tokenType||null,consecutiveUseCount:c.consecutiveUseCount||0,rateLimitProtection:+(!0===c.rateLimitProtection||1===c.rateLimitProtection),updatedAt:d})}async function q(a,b){let c=(0,e.sm)(),d=c.prepare("SELECT * FROM provider_connections WHERE id = ?").get(a);if(!d)return null;let f={...(0,e.kB)(d),...b,updatedAt:new Date().toISOString()};return p(c,a,f),j("pre-write"),void 0!==b.priority&&t(c,d.provider),(0,e.G6)(f)}async function r(a){let b=(0,e.sm)(),c=b.prepare("SELECT provider FROM provider_connections WHERE id = ?").get(a);return!!c&&(b.prepare("DELETE FROM provider_connections WHERE id = ?").run(a),t(b,c.provider),j("pre-write"),!0)}async function s(a){let b=(0,e.sm)().prepare("DELETE FROM provider_connections WHERE provider = ?").run(a);return j("pre-write"),b.changes}function t(a,b){let c=a.prepare("SELECT id, priority, updated_at FROM provider_connections WHERE provider = ? ORDER BY priority ASC, updated_at DESC").all(b),d=a.prepare("UPDATE provider_connections SET priority = ? WHERE id = ?");c.forEach((a,b)=>{d.run(b+1,a.id)})}async function u(){return 0}async function v(a={}){let b=(0,e.sm)(),c="SELECT * FROM provider_nodes",d={};return a.type&&(c+=" WHERE type = @type",d.type=a.type),b.prepare(c).all(d).map(e.kB)}async function w(a){let b=(0,e.sm)().prepare("SELECT * FROM provider_nodes WHERE id = ?").get(a);return b?(0,e.kB)(b):null}async function x(a){let b=(0,e.sm)(),c=new Date().toISOString(),f={id:a.id||(0,d.A)(),type:a.type,name:a.name,prefix:a.prefix||null,apiType:a.apiType||null,baseUrl:a.baseUrl||null,createdAt:c,updatedAt:c};return b.prepare(`
40
- INSERT INTO provider_nodes (id, type, name, prefix, api_type, base_url, created_at, updated_at)
41
- VALUES (@id, @type, @name, @prefix, @apiType, @baseUrl, @createdAt, @updatedAt)
42
- `).run(f),j("pre-write"),f}async function y(a,b){let c=(0,e.sm)(),d=c.prepare("SELECT * FROM provider_nodes WHERE id = ?").get(a);if(!d)return null;let f={...(0,e.kB)(d),...b,updatedAt:new Date().toISOString()};return c.prepare(`
43
- UPDATE provider_nodes SET type = @type, name = @name, prefix = @prefix,
44
- api_type = @apiType, base_url = @baseUrl, updated_at = @updatedAt
45
- WHERE id = @id
46
- `).run({id:a,type:f.type,name:f.name,prefix:f.prefix||null,apiType:f.apiType||null,baseUrl:f.baseUrl||null,updatedAt:f.updatedAt}),j("pre-write"),f}async function z(a){let b=(0,e.sm)(),c=b.prepare("SELECT * FROM provider_nodes WHERE id = ?").get(a);return c?(b.prepare("DELETE FROM provider_nodes WHERE id = ?").run(a),j("pre-write"),(0,e.kB)(c)):null}async function A(){let a=(0,e.sm)().prepare("SELECT key, value FROM key_value WHERE namespace = 'modelAliases'").all(),b={};for(let c of a)b[c.key]=JSON.parse(c.value);return b}async function B(a,b){(0,e.sm)().prepare("INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES ('modelAliases', ?, ?)").run(a,JSON.stringify(b)),j("pre-write")}async function C(a){(0,e.sm)().prepare("DELETE FROM key_value WHERE namespace = 'modelAliases' AND key = ?").run(a),j("pre-write")}async function D(a){let b=(0,e.sm)();if(a){let c=b.prepare("SELECT value FROM key_value WHERE namespace = 'mitmAlias' AND key = ?").get(a);return c?JSON.parse(c.value):{}}let c=b.prepare("SELECT key, value FROM key_value WHERE namespace = 'mitmAlias'").all(),d={};for(let a of c)d[a.key]=JSON.parse(a.value);return d}async function E(a,b){(0,e.sm)().prepare("INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES ('mitmAlias', ?, ?)").run(a,JSON.stringify(b||{})),j("pre-write")}async function F(a){let b=(0,e.sm)();if(a){let c=b.prepare("SELECT value FROM key_value WHERE namespace = 'customModels' AND key = ?").get(a);return c?JSON.parse(c.value):[]}let c=b.prepare("SELECT key, value FROM key_value WHERE namespace = 'customModels'").all(),d={};for(let a of c)d[a.key]=JSON.parse(a.value);return d}async function G(){let a=(0,e.sm)().prepare("SELECT key, value FROM key_value WHERE namespace = 'customModels'").all(),b={};for(let c of a)b[c.key]=JSON.parse(c.value);return b}async function H(a,b,c){let d=(0,e.sm)(),f=d.prepare("SELECT value FROM key_value WHERE namespace = 'customModels' AND key = ?").get(a),g=f?JSON.parse(f.value):[],h=g.find(a=>a.id===b);if(h)return h;let i={id:b,name:c||b};return g.push(i),d.prepare("INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES ('customModels', ?, ?)").run(a,JSON.stringify(g)),j("pre-write"),i}async function I(a,b){let c=(0,e.sm)(),d=c.prepare("SELECT value FROM key_value WHERE namespace = 'customModels' AND key = ?").get(a);if(!d)return!1;let f=JSON.parse(d.value),g=f.length,h=f.filter(a=>a.id!==b);return h.length!==g&&(0===h.length?c.prepare("DELETE FROM key_value WHERE namespace = 'customModels' AND key = ?").run(a):c.prepare("UPDATE key_value SET value = ? WHERE namespace = 'customModels' AND key = ?").run(JSON.stringify(h),a),j("pre-write"),!0)}async function J(){return(0,e.sm)().prepare("SELECT data FROM combos ORDER BY name").all().map(a=>JSON.parse(a.data))}async function K(a){let b=(0,e.sm)().prepare("SELECT data FROM combos WHERE id = ?").get(a);return b?JSON.parse(b.data):null}async function L(a){let b=(0,e.sm)().prepare("SELECT data FROM combos WHERE name = ?").get(a);return b?JSON.parse(b.data):null}async function M(a){let b=(0,e.sm)(),c=new Date().toISOString(),f={id:(0,d.A)(),name:a.name,models:a.models||[],strategy:a.strategy||"priority",config:a.config||{},createdAt:c,updatedAt:c};return b.prepare("INSERT INTO combos (id, name, data, created_at, updated_at) VALUES (?, ?, ?, ?, ?)").run(f.id,f.name,JSON.stringify(f),c,c),j("pre-write"),f}async function N(a,b){let c=(0,e.sm)(),d=c.prepare("SELECT data FROM combos WHERE id = ?").get(a);if(!d)return null;let f={...JSON.parse(d.data),...b,updatedAt:new Date().toISOString()};return c.prepare("UPDATE combos SET name = ?, data = ?, updated_at = ? WHERE id = ?").run(f.name,JSON.stringify(f),f.updatedAt,a),j("pre-write"),f}async function O(a){return 0!==(0,e.sm)().prepare("DELETE FROM combos WHERE id = ?").run(a).changes&&(j("pre-write"),!0)}async function P(){return(0,e.sm)().prepare("SELECT * FROM api_keys ORDER BY created_at").all().map(e.kB)}async function Q(a,b){if(!b)throw Error("machineId is required");let f=(0,e.sm)(),g=new Date().toISOString(),{generateApiKeyWithMachine:h}=await c.e(1362).then(c.bind(c,41362)),i=h(b),k={id:(0,d.A)(),name:a,key:i.key,machineId:b,createdAt:g};return f.prepare("INSERT INTO api_keys (id, name, key, machine_id, created_at) VALUES (?, ?, ?, ?, ?)").run(k.id,k.name,k.key,k.machineId,k.createdAt),j("pre-write"),k}async function R(a){return 0!==(0,e.sm)().prepare("DELETE FROM api_keys WHERE id = ?").run(a).changes&&(j("pre-write"),!0)}async function S(a){return!!(0,e.sm)().prepare("SELECT 1 FROM api_keys WHERE key = ?").get(a)}async function T(a){if(!a)return null;let b=(0,e.sm)().prepare("SELECT id, name, machine_id FROM api_keys WHERE key = ?").get(a);return b?{id:b.id,name:b.name,machineId:b.machine_id}:null}var U=c(29485);async function V(){let a=(0,e.sm)().prepare("SELECT key, value FROM key_value WHERE namespace = 'settings'").all(),b={cloudEnabled:!1,stickyRoundRobinLimit:3,requireLogin:!0};for(let c of a)b[c.key]=JSON.parse(c.value);return b}async function W(a){let b=(0,e.sm)(),c=b.prepare("INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES ('settings', ?, ?)");return b.transaction(()=>{for(let[b,d]of Object.entries(a))c.run(b,JSON.stringify(d))})(),j("pre-write"),V()}async function X(){return!0===(await V()).cloudEnabled}async function Y(){let a=(0,e.sm)().prepare("SELECT key, value FROM key_value WHERE namespace = 'pricing'").all(),b={};for(let c of a)b[c.key]=JSON.parse(c.value);let{getDefaultPricing:d}=await c.e(6599).then(c.bind(c,6599)),f=d(),g={};for(let[a,c]of Object.entries(f))if(g[a]={...c},b[a])for(let[c,d]of Object.entries(b[a]))g[a][c]=g[a][c]?{...g[a][c],...d}:d;for(let[a,c]of Object.entries(b))if(g[a])for(let[b,d]of Object.entries(c))g[a][b]||(g[a][b]=d);else g[a]={...c};return g}async function Z(a,b){let d=await Y();if(d[a]?.[b])return d[a][b];let{PROVIDER_ID_TO_ALIAS:e}=await Promise.resolve().then(c.bind(c,29485)),f=e[a];if(f&&d[f])return d[f][b]||null;let g=a?.replace(/-cn$/,"");return g&&g!==a&&d[g]&&d[g][b]||null}async function $(a){let b=(0,e.sm)(),c=b.prepare("INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES ('pricing', ?, ?)"),d=b.prepare("SELECT key, value FROM key_value WHERE namespace = 'pricing'").all(),f={};for(let a of d)f[a.key]=JSON.parse(a.value);b.transaction(()=>{for(let[b,d]of Object.entries(a))c.run(b,JSON.stringify({...f[b]||{},...d}))})(),j("pre-write");let g={};for(let a of b.prepare("SELECT key, value FROM key_value WHERE namespace = 'pricing'").all())g[a.key]=JSON.parse(a.value);return g}async function _(a,b){let c=(0,e.sm)();if(b){let d=c.prepare("SELECT value FROM key_value WHERE namespace = 'pricing' AND key = ?").get(a);if(d){let e=JSON.parse(d.value);delete e[b],0===Object.keys(e).length?c.prepare("DELETE FROM key_value WHERE namespace = 'pricing' AND key = ?").run(a):c.prepare("UPDATE key_value SET value = ? WHERE namespace = 'pricing' AND key = ?").run(JSON.stringify(e),a)}}else c.prepare("DELETE FROM key_value WHERE namespace = 'pricing' AND key = ?").run(a);j("pre-write");let d=c.prepare("SELECT key, value FROM key_value WHERE namespace = 'pricing'").all(),f={};for(let a of d)f[a.key]=JSON.parse(a.value);return f}async function aa(){return(0,e.sm)().prepare("DELETE FROM key_value WHERE namespace = 'pricing'").run(),j("pre-write"),{}}let ab={global:null,providers:{},combos:{},keys:{}},ac=Object.entries(U.PROVIDER_ID_TO_ALIAS).reduce((a,[b,c])=>(c&&(a[c]=b),a[b]=b,a),{});function ad(a){return"string"!=typeof a?a:ac[a]||a}function ae(a){if(!a)return null;if("object"==typeof a&&a.type)return a;if("string"!=typeof a)return null;try{let b=new URL(a);return{type:b.protocol.replace(":","").replace("//","")||"http",host:b.hostname,port:b.port||("socks5:"===b.protocol?"1080":"8080"),username:b.username||"",password:b.password||""}}catch{let b=a.split(":");return{type:"http",host:b[0]||a,port:b[1]||"8080",username:"",password:""}}}async function af(){let a=(0,e.sm)(),b=a.prepare("SELECT key, value FROM key_value WHERE namespace = 'proxyConfig'").all(),c={...ab};for(let a of b)c[a.key]=JSON.parse(a.value);let d=!1;if(c.global&&"string"==typeof c.global&&(c.global=ae(c.global),d=!0),c.providers)for(let[a,b]of Object.entries(c.providers))"string"==typeof b&&(c.providers[a]=ae(b),d=!0);if(d){let b=a.prepare("INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES ('proxyConfig', ?, ?)");void 0!==c.global&&b.run("global",JSON.stringify(c.global)),c.providers&&b.run("providers",JSON.stringify(c.providers))}return c}async function ag(a,b){let c=await af();if("global"===a)return c.global||null;let d=c[a+"s"]||c[a]||{};return(b?d[b]:null)||null}async function ah(a,b,c){let d=(0,e.sm)(),f=await af();if("global"===a)f.global=c||null,d.prepare("INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES ('proxyConfig', 'global', ?)").run(JSON.stringify(f.global));else{let e=a+"s";f[e]||(f[e]={}),c?f[e][b]=c:delete f[e][b],d.prepare("INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES ('proxyConfig', ?, ?)").run(e,JSON.stringify(f[e]))}return j("pre-write"),f}async function ai(a,b){return ah(a,b,null)}async function aj(a){let b=await af();if(a&&b.keys?.[a])return{proxy:b.keys[a],level:"key",levelId:a};let c=(0,e.sm)(),d=c.prepare("SELECT provider FROM provider_connections WHERE id = ?").get(a);if(d){if(b.combos&&Object.keys(b.combos).length>0){for(let a of c.prepare("SELECT id, data FROM combos").all())if(b.combos[a.id])try{if((JSON.parse(a.data).models||[]).some(a=>(function(a){if(a&&"string"==typeof a.provider)return ad(a.provider);let b="string"==typeof a?a:"string"==typeof a?.model?a.model:null;if(!b)return null;let[c]=b.split("/",1);return c?ad(c):null})(a)===d.provider))return{proxy:b.combos[a.id],level:"combo",levelId:a.id}}catch{}}if(b.providers?.[d.provider])return{proxy:b.providers[d.provider],level:"provider",levelId:d.provider}}return b.global?{proxy:b.global,level:"global",levelId:null}:{proxy:null,level:"direct",levelId:null}}async function ak(a){if(void 0!==a.level)return ah(a.level,a.id||null,a.proxy);let b=(0,e.sm)(),c=await af(),d=b.prepare("INSERT OR REPLACE INTO key_value (namespace, key, value) VALUES ('proxyConfig', ?, ?)");return b.transaction(()=>{for(let b of(void 0!==a.global&&(c.global=a.global||null,d.run("global",JSON.stringify(c.global))),["providers","combos","keys"]))if(a[b]){for(let[d,e]of(c[b]={...c[b]||{},...a[b]},Object.entries(c[b])))e||delete c[b][d];d.run(b,JSON.stringify(c[b]))}})(),j("pre-write"),c}}};
@@ -1 +0,0 @@
1
- "use strict";exports.id=2116,exports.ids=[2116],exports.modules={2116:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0});var d={default:function(){return q},useLinkStatus:function(){return s}};for(var e in d)Object.defineProperty(b,e,{enumerable:!0,get:d[e]});let f=c(24814),g=c(48249),h=f._(c(67484)),i=c(79925),j=c(30836),k=c(57272),l=c(30167),m=c(75729);c(95478);let n=c(78756);c(52836);let o=c(10881);function p(a){return"string"==typeof a?a:(0,i.formatUrl)(a)}function q(a){var b;let c,d,e,[f,i]=(0,h.useOptimistic)(n.IDLE_LINK_STATUS),q=(0,h.useRef)(null),{href:s,as:t,children:u,prefetch:v=null,passHref:w,replace:x,shallow:y,scroll:z,onClick:A,onMouseEnter:B,onTouchStart:C,legacyBehavior:D=!1,onNavigate:E,ref:F,unstable_dynamicOnHover:G,...H}=a;c=u,D&&("string"==typeof c||"number"==typeof c)&&(c=(0,g.jsx)("a",{children:c}));let I=h.default.useContext(j.AppRouterContext),J=!1!==v,K=!1!==v?null===(b=v)||"auto"===b?o.FetchStrategy.PPR:o.FetchStrategy.Full:o.FetchStrategy.PPR,{href:L,as:M}=h.default.useMemo(()=>{let a=p(s);return{href:a,as:t?p(t):a}},[s,t]);if(D){if(c?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});d=h.default.Children.only(c)}let N=D?d&&"object"==typeof d&&d.ref:F,O=h.default.useCallback(a=>(null!==I&&(q.current=(0,n.mountLinkInstance)(a,L,I,K,J,i)),()=>{q.current&&((0,n.unmountLinkForCurrentNavigation)(q.current),q.current=null),(0,n.unmountPrefetchableInstance)(a)}),[J,L,I,K,i]),P={ref:(0,k.useMergedRef)(O,N),onClick(a){if((D||"function"!=typeof A||A(a),D&&d.props&&"function"==typeof d.props.onClick&&d.props.onClick(a),I)&&!a.defaultPrevented);},onMouseEnter(a){D||"function"!=typeof B||B(a),D&&d.props&&"function"==typeof d.props.onMouseEnter&&d.props.onMouseEnter(a),I&&J&&(0,n.onNavigationIntent)(a.currentTarget,!0===G)},onTouchStart:function(a){D||"function"!=typeof C||C(a),D&&d.props&&"function"==typeof d.props.onTouchStart&&d.props.onTouchStart(a),I&&J&&(0,n.onNavigationIntent)(a.currentTarget,!0===G)}};return(0,l.isAbsoluteUrl)(M)?P.href=M:D&&!w&&("a"!==d.type||"href"in d.props)||(P.href=(0,m.addBasePath)(M)),e=D?h.default.cloneElement(d,P):(0,g.jsx)("a",{...H,...P,children:c}),(0,g.jsx)(r.Provider,{value:f,children:e})}c(13366);let r=(0,h.createContext)(n.IDLE_LINK_STATUS),s=()=>(0,h.useContext)(r);("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},10571:(a,b)=>{function c(a){let b=a.indexOf("#"),c=a.indexOf("?"),d=c>-1&&(b<0||c<b);return d||b>-1?{pathname:a.substring(0,d?c:b),query:d?a.substring(c,b>-1?b:void 0):"",hash:b>-1?a.slice(b):""}:{pathname:a,query:"",hash:""}}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"parsePath",{enumerable:!0,get:function(){return c}})},13366:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"errorOnce",{enumerable:!0,get:function(){return c}});let c=a=>{}},30167:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0});var c={DecodeError:function(){return q},MiddlewareNotFoundError:function(){return u},MissingStaticPage:function(){return t},NormalizeError:function(){return r},PageNotFoundError:function(){return s},SP:function(){return o},ST:function(){return p},WEB_VITALS:function(){return e},execOnce:function(){return f},getDisplayName:function(){return k},getLocationOrigin:function(){return i},getURL:function(){return j},isAbsoluteUrl:function(){return h},isResSent:function(){return l},loadGetInitialProps:function(){return n},normalizeRepeatedSlashes:function(){return m},stringifyError:function(){return v}};for(var d in c)Object.defineProperty(b,d,{enumerable:!0,get:c[d]});let e=["CLS","FCP","FID","INP","LCP","TTFB"];function f(a){let b,c=!1;return(...d)=>(c||(c=!0,b=a(...d)),b)}let g=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,h=a=>g.test(a);function i(){let{protocol:a,hostname:b,port:c}=window.location;return`${a}//${b}${c?":"+c:""}`}function j(){let{href:a}=window.location,b=i();return a.substring(b.length)}function k(a){return"string"==typeof a?a:a.displayName||a.name||"Unknown"}function l(a){return a.finished||a.headersSent}function m(a){let b=a.split("?");return b[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(b[1]?`?${b.slice(1).join("?")}`:"")}async function n(a,b){let c=b.res||b.ctx&&b.ctx.res;if(!a.getInitialProps)return b.ctx&&b.Component?{pageProps:await n(b.Component,b.ctx)}:{};let d=await a.getInitialProps(b);if(c&&l(c))return d;if(!d)throw Object.defineProperty(Error(`"${k(a)}.getInitialProps()" should resolve to an object. But found "${d}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return d}let o="u">typeof performance,p=o&&["mark","measure","getEntriesByName"].every(a=>"function"==typeof performance[a]);class q extends Error{}class r extends Error{}class s extends Error{constructor(a){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${a}`}}class t extends Error{constructor(a,b){super(),this.message=`Failed to load static file for page: ${a} ${b}`}}class u extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(a){return JSON.stringify({message:a.message,stack:a.stack})}},34956:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return f}});let d=c(62043),e=c(10571),f=a=>{if(!a.startsWith("/"))return a;let{pathname:b,query:c,hash:f}=(0,e.parsePath)(a);return`${(0,d.removeTrailingSlash)(b)}${c}${f}`};("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},52836:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"isLocalURL",{enumerable:!0,get:function(){return f}});let d=c(30167),e=c(71742);function f(a){if(!(0,d.isAbsoluteUrl)(a))return!0;try{let b=(0,d.getLocationOrigin)(),c=new URL(a,b);return c.origin===b&&(0,e.hasBasePath)(c.pathname)}catch(a){return!1}}},55729:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"pathHasPrefix",{enumerable:!0,get:function(){return e}});let d=c(10571);function e(a,b){if("string"!=typeof a)return!1;let{pathname:c}=(0,d.parsePath)(a);return c===b||c.startsWith(b+"/")}},57272:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"useMergedRef",{enumerable:!0,get:function(){return e}});let d=c(67484);function e(a,b){let c=(0,d.useRef)(null),e=(0,d.useRef)(null);return(0,d.useCallback)(d=>{if(null===d){let a=c.current;a&&(c.current=null,a());let b=e.current;b&&(e.current=null,b())}else a&&(c.current=f(a,d)),b&&(e.current=f(b,d))},[a,b])}function f(a,b){if("function"!=typeof a)return a.current=b,()=>{a.current=null};{let c=a(b);return"function"==typeof c?c:()=>a(null)}}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},62043:(a,b)=>{function c(a){return a.replace(/\/$/,"")||"/"}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"removeTrailingSlash",{enumerable:!0,get:function(){return c}})},71e3:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"addPathPrefix",{enumerable:!0,get:function(){return e}});let d=c(10571);function e(a,b){if(!a.startsWith("/")||!b)return a;let{pathname:c,query:e,hash:f}=(0,d.parsePath)(a);return`${b}${c}${e}${f}`}},71742:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"hasBasePath",{enumerable:!0,get:function(){return e}});let d=c(55729);function e(a){return(0,d.pathHasPrefix)(a,"")}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},75729:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"addBasePath",{enumerable:!0,get:function(){return f}});let d=c(71e3),e=c(34956);function f(a,b){return(0,e.normalizePathTrailingSlash)((0,d.addPathPrefix)(a,""))}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},79925:(a,b,c)=>{Object.defineProperty(b,"__esModule",{value:!0});var d={formatUrl:function(){return h},formatWithValidation:function(){return j},urlObjectKeys:function(){return i}};for(var e in d)Object.defineProperty(b,e,{enumerable:!0,get:d[e]});let f=c(24814)._(c(90485)),g=/https?|ftp|gopher|file/;function h(a){let{auth:b,hostname:c}=a,d=a.protocol||"",e=a.pathname||"",h=a.hash||"",i=a.query||"",j=!1;b=b?encodeURIComponent(b).replace(/%3A/i,":")+"@":"",a.host?j=b+a.host:c&&(j=b+(~c.indexOf(":")?`[${c}]`:c),a.port&&(j+=":"+a.port)),i&&"object"==typeof i&&(i=String(f.urlQueryToSearchParams(i)));let k=a.search||i&&`?${i}`||"";return d&&!d.endsWith(":")&&(d+=":"),a.slashes||(!d||g.test(d))&&!1!==j?(j="//"+(j||""),e&&"/"!==e[0]&&(e="/"+e)):j||(j=""),h&&"#"!==h[0]&&(h="#"+h),k&&"?"!==k[0]&&(k="?"+k),e=e.replace(/[?#]/g,encodeURIComponent),k=k.replace("#","%23"),`${d}${j}${e}${k}${h}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function j(a){return h(a)}},90485:(a,b)=>{Object.defineProperty(b,"__esModule",{value:!0});var c={assign:function(){return h},searchParamsToUrlQuery:function(){return e},urlQueryToSearchParams:function(){return g}};for(var d in c)Object.defineProperty(b,d,{enumerable:!0,get:c[d]});function e(a){let b={};for(let[c,d]of a.entries()){let a=b[c];void 0===a?b[c]=d:Array.isArray(a)?a.push(d):b[c]=[a,d]}return b}function f(a){return"string"==typeof a?a:("number"!=typeof a||isNaN(a))&&"boolean"!=typeof a?"":String(a)}function g(a){let b=new URLSearchParams;for(let[c,d]of Object.entries(a))if(Array.isArray(d))for(let a of d)b.append(c,f(a));else b.set(c,f(d));return b}function h(a,...b){for(let c of b){for(let b of c.keys())a.delete(b);for(let[b,d]of c.entries())a.append(b,d)}return a}}};
@@ -1 +0,0 @@
1
- exports.id=2250,exports.ids=[2250],exports.modules={372:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Card.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Card.js","default")},3118:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Button.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Button.js","default")},3838:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/KiroAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/KiroAuthModal.js","default")},12706:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Select.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Select.js","default")},21601:(a,b,c)=>{"use strict";c.d(b,{ConfirmModal:()=>f,default:()=>e});var d=c(77943);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Modal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Modal.js","default"),f=(0,d.registerClientReference)(function(){throw Error("Attempted to call ConfirmModal() from the server but ConfirmModal is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Modal.js","ConfirmModal")},22757:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Footer.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Footer.js","default")},22916:(a,b,c)=>{"use strict";c.d(b,{CardSkeleton:()=>h,PageLoading:()=>f,Skeleton:()=>g,Spinner:()=>e,default:()=>i});var d=c(77943);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call Spinner() from the server but Spinner is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Loading.js","Spinner"),f=(0,d.registerClientReference)(function(){throw Error("Attempted to call PageLoading() from the server but PageLoading is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Loading.js","PageLoading"),g=(0,d.registerClientReference)(function(){throw Error("Attempted to call Skeleton() from the server but Skeleton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Loading.js","Skeleton"),h=(0,d.registerClientReference)(function(){throw Error("Attempted to call CardSkeleton() from the server but CardSkeleton is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Loading.js","CardSkeleton"),i=(0,d.registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Loading.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Loading.js","default")},24797:(a,b,c)=>{Promise.resolve().then(c.bind(c,64191)),Promise.resolve().then(c.bind(c,70995)),Promise.resolve().then(c.bind(c,3118)),Promise.resolve().then(c.bind(c,372)),Promise.resolve().then(c.bind(c,95165)),Promise.resolve().then(c.bind(c,22757)),Promise.resolve().then(c.bind(c,28963)),Promise.resolve().then(c.bind(c,48936)),Promise.resolve().then(c.bind(c,3838)),Promise.resolve().then(c.bind(c,79547)),Promise.resolve().then(c.bind(c,36942)),Promise.resolve().then(c.bind(c,59742)),Promise.resolve().then(c.bind(c,67466)),Promise.resolve().then(c.bind(c,22916)),Promise.resolve().then(c.bind(c,62357)),Promise.resolve().then(c.bind(c,21601)),Promise.resolve().then(c.bind(c,81824)),Promise.resolve().then(c.bind(c,35154)),Promise.resolve().then(c.bind(c,80205)),Promise.resolve().then(c.bind(c,66184)),Promise.resolve().then(c.bind(c,67073)),Promise.resolve().then(c.bind(c,62139)),Promise.resolve().then(c.bind(c,12706)),Promise.resolve().then(c.bind(c,88588)),Promise.resolve().then(c.bind(c,68852)),Promise.resolve().then(c.bind(c,51613)),Promise.resolve().then(c.bind(c,27498)),Promise.resolve().then(c.bind(c,47419)),Promise.resolve().then(c.bind(c,59104))},27498:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Toggle.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Toggle.js","default")},28963:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Header.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Header.js","default")},35154:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/OAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/OAuthModal.js","default")},36942:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/KiroSocialOAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/KiroSocialOAuthModal.js","default")},47419:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/UsageAnalytics.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/UsageAnalytics.js","default")},48936:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Input.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Input.js","default")},51613:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/ThemeToggle.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/ThemeToggle.js","default")},52413:(a,b,c)=>{Promise.resolve().then(c.bind(c,10977)),Promise.resolve().then(c.bind(c,70873)),Promise.resolve().then(c.bind(c,66148)),Promise.resolve().then(c.bind(c,61198)),Promise.resolve().then(c.bind(c,12475)),Promise.resolve().then(c.bind(c,327)),Promise.resolve().then(c.bind(c,91833)),Promise.resolve().then(c.bind(c,55146)),Promise.resolve().then(c.bind(c,28532)),Promise.resolve().then(c.bind(c,77521)),Promise.resolve().then(c.bind(c,18480)),Promise.resolve().then(c.bind(c,18640)),Promise.resolve().then(c.bind(c,88624)),Promise.resolve().then(c.bind(c,81134)),Promise.resolve().then(c.bind(c,87423)),Promise.resolve().then(c.bind(c,52259)),Promise.resolve().then(c.bind(c,634)),Promise.resolve().then(c.bind(c,18868)),Promise.resolve().then(c.bind(c,84439)),Promise.resolve().then(c.bind(c,65334)),Promise.resolve().then(c.bind(c,41143)),Promise.resolve().then(c.bind(c,24541)),Promise.resolve().then(c.bind(c,83740)),Promise.resolve().then(c.bind(c,3622)),Promise.resolve().then(c.bind(c,66434)),Promise.resolve().then(c.bind(c,24951)),Promise.resolve().then(c.bind(c,19200)),Promise.resolve().then(c.bind(c,85902)),Promise.resolve().then(c.bind(c,28922))},59104:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/UsageStats.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/UsageStats.js","default")},59742:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/layouts/AuthLayout.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/layouts/AuthLayout.js","default")},62139:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/SegmentedControl.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/SegmentedControl.js","default")},62357:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/ManualConfigModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/ManualConfigModal.js","default")},64191:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Avatar.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Avatar.js","default")},66184:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/ProxyLogger.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/ProxyLogger.js","default")},67073:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/RequestLoggerV2.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/RequestLoggerV2.js","default")},67466:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/layouts/DashboardLayout.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/layouts/DashboardLayout.js","default")},68010:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>f});var d=c(5735);c(3118),c(48936),c(12706),c(372),c(21601),c(22916),c(64191),c(70995),c(27498),c(51613),c(68852),c(88588),c(28963),c(22757),c(35154),c(81824),c(62357),c(59104),c(47419),c(67073),c(80205),c(66184),c(3838),c(79547),c(36942),c(95165),c(62139);var e=c(67466);function f({children:a}){return(0,d.jsx)(e.default,{children:a})}c(59742)},70995:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Badge.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Badge.js","default")},79547:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/KiroOAuthWrapper.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/KiroOAuthWrapper.js","default")},80205:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/ProxyConfigModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/ProxyConfigModal.js","default")},81824:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/ModelSelectModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/ModelSelectModal.js","default")},88588:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Sidebar.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/Sidebar.js","default")},95165:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/CursorAuthModal.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/OmniRoute/OmniRoute/src/shared/components/CursorAuthModal.js","default")}};
@@ -1 +0,0 @@
1
- exports.id=3919,exports.ids=[3919],exports.modules={300:(a,b,c)=>{"use strict";c.d(b,{Zr:()=>e});let d=a=>b=>{try{let c=a(b);if(c instanceof Promise)return c;return{then:a=>d(a)(c),catch(a){return this}}}catch(a){return{then(a){return this},catch:b=>d(b)(a)}}},e=(a,b)=>(c,e,f)=>{let g,h={storage:function(a,b){let c;try{c=a()}catch(a){return}return{getItem:a=>{var b;let d=a=>null===a?null:JSON.parse(a,void 0),e=null!=(b=c.getItem(a))?b:null;return e instanceof Promise?e.then(d):d(e)},setItem:(a,b)=>c.setItem(a,JSON.stringify(b,void 0)),removeItem:a=>c.removeItem(a)}}(()=>window.localStorage),partialize:a=>a,version:0,merge:(a,b)=>({...b,...a}),...b},i=!1,j=0,k=new Set,l=new Set,m=h.storage;if(!m)return a((...a)=>{console.warn(`[zustand persist middleware] Unable to update item '${h.name}', the given storage is currently unavailable.`),c(...a)},e,f);let n=()=>{let a=h.partialize({...e()});return m.setItem(h.name,{state:a,version:h.version})},o=f.setState;f.setState=(a,b)=>(o(a,b),n());let p=a((...a)=>(c(...a),n()),e,f);f.getInitialState=()=>p;let q=()=>{var a,b;if(!m)return;let f=++j;i=!1,k.forEach(a=>{var b;return a(null!=(b=e())?b:p)});let o=(null==(b=h.onRehydrateStorage)?void 0:b.call(h,null!=(a=e())?a:p))||void 0;return d(m.getItem.bind(m))(h.name).then(a=>{if(a)if("number"!=typeof a.version||a.version===h.version)return[!1,a.state];else{if(h.migrate){let b=h.migrate(a.state,a.version);return b instanceof Promise?b.then(a=>[!0,a]):[!0,b]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(a=>{var b;if(f!==j)return;let[d,i]=a;if(c(g=h.merge(i,null!=(b=e())?b:p),!0),d)return n()}).then(()=>{f===j&&(null==o||o(g,void 0),g=e(),i=!0,l.forEach(a=>a(g)))}).catch(a=>{f===j&&(null==o||o(void 0,a))})};return f.persist={setOptions:a=>{h={...h,...a},a.storage&&(m=a.storage)},clearStorage:()=>{null==m||m.removeItem(h.name)},getOptions:()=>h,rehydrate:()=>q(),hasHydrated:()=>i,onHydrate:a=>(k.add(a),()=>{k.delete(a)}),onFinishHydration:a=>(l.add(a),()=>{l.delete(a)})},h.skipHydration||q(),g||p}},5439:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d={getPreviouslyRevalidatedTags:function(){return w},getServerUtils:function(){return v},interpolateDynamicPath:function(){return t},normalizeCdnUrl:function(){return s},normalizeDynamicRouteParams:function(){return u}};for(var e in d)Object.defineProperty(b,e,{enumerable:!0,get:d[e]});let f=c(13973),g=c(41659),h=c(31797),i=c(71544),j=c(89964),k=c(77165),l=c(66796),m=c(47929),n=c(62018),o=c(23101),p=c(37525),q=c(95491);function r(a,b){for(let c in delete a.nextInternalLocale,a){let d=c!==m.NEXT_QUERY_PARAM_PREFIX&&c.startsWith(m.NEXT_QUERY_PARAM_PREFIX),e=c!==m.NEXT_INTERCEPTION_MARKER_PREFIX&&c.startsWith(m.NEXT_INTERCEPTION_MARKER_PREFIX);(d||e||b.includes(c))&&delete a[c]}}function s(a,b){let c=(0,p.parseReqUrl)(a.url);if(!c)return a.url;delete c.search,r(c.query,b),a.url=(0,q.formatUrl)(c)}function t(a,b,c){if(!c)return a;for(let d of Object.keys(c.groups)){let e,{optional:f,repeat:g}=c.groups[d],h=`[${g?"...":""}${d}]`;f&&(h=`[${h}]`);let i=b[d];((e=Array.isArray(i)?i.map(a=>a&&encodeURIComponent(a)).join("/"):i?encodeURIComponent(i):"")||f)&&(a=a.replaceAll(h,e))}return a}function u(a,b,c,d){let e={};for(let f of Object.keys(b.groups)){let g=a[f];"string"==typeof g?g=(0,l.normalizeRscURL)(g):Array.isArray(g)&&(g=g.map(l.normalizeRscURL));let h=c[f],i=b.groups[f].optional;if((Array.isArray(h)?h.some(a=>Array.isArray(g)?g.some(b=>b.includes(a)):null==g?void 0:g.includes(a)):null==g?void 0:g.includes(h))||void 0===g&&!(i&&d))return{params:{},hasValidParams:!1};i&&(!g||Array.isArray(g)&&1===g.length&&("index"===g[0]||g[0]===`[[...${f}]]`)||"index"===g||g===`[[...${f}]]`)&&(g=void 0,delete a[f]),g&&"string"==typeof g&&b.groups[f].repeat&&(g=g.split("/")),g&&(e[f]=g)}return{params:e,hasValidParams:!0}}function v({page:a,i18n:b,basePath:c,rewrites:d,pageIsDynamic:e,trailingSlash:l,caseSensitive:m}){let p,q,v;return e&&(p=(0,h.getNamedRouteRegex)(a,{prefixRouteKeys:!1}),v=(q=(0,i.getRouteMatcher)(p))(a)),{handleRewrites:function(h,i){let n=structuredClone(i),o={},p=n.pathname,r=d=>{let i=(0,g.getPathMatch)(d.source+(l?"(/)?":""),{removeUnnamedParams:!0,strict:!0,sensitive:!!m});if(!n.pathname)return!1;let k=i(n.pathname);if((d.has||d.missing)&&k){let a=(0,j.matchHas)(h,n.query,d.has,d.missing);a?Object.assign(k,a):k=!1}if(k){let{parsedDestination:g,destQuery:h}=(0,j.prepareDestination)({appendParamsToQuery:!0,destination:d.destination,params:k,query:n.query});if(g.protocol)return!0;if(Object.assign(o,h,k),Object.assign(n.query,g.query),delete g.query,Object.assign(n,g),!(p=n.pathname))return!1;if(c&&(p=p.replace(RegExp(`^${c}`),"")||"/"),b){let a=(0,f.normalizeLocalePath)(p,b.locales);p=a.pathname,n.query.nextInternalLocale=a.detectedLocale||k.nextInternalLocale}if(p===a)return!0;if(e&&q){let a=q(p);if(a)return n.query={...n.query,...a},!0}}return!1};for(let a of d.beforeFiles||[])r(a);if(p!==a){let b,c=!1;for(let a of d.afterFiles||[])if(c=r(a))break;if(!c&&!((b=(0,k.removeTrailingSlash)(p||""))===(0,k.removeTrailingSlash)(a)||(null==q?void 0:q(b)))){for(let a of d.fallback||[])if(c=r(a))break}}return{rewriteParams:o,rewrittenParsedUrl:n}},defaultRouteRegex:p,dynamicRouteMatcher:q,defaultRouteMatches:v,normalizeQueryParams:function(a,b){for(let[c,d]of(delete a.nextInternalLocale,Object.entries(a))){let e=(0,n.normalizeNextQueryParam)(c);e&&(delete a[c],b.add(e),void 0!==d&&(a[e]=Array.isArray(d)?d.map(a=>(0,o.decodeQueryPathParameter)(a)):(0,o.decodeQueryPathParameter)(d)))}},getParamsFromRouteMatches:function(a){if(!p)return null;let{groups:b,routeKeys:c}=p,d=(0,i.getRouteMatcher)({re:{exec:a=>{let d=Object.fromEntries(new URLSearchParams(a));for(let[a,b]of Object.entries(d)){let c=(0,n.normalizeNextQueryParam)(a);c&&(d[c]=b,delete d[a])}let e={};for(let a of Object.keys(c)){let f=c[a];if(!f)continue;let g=b[f],h=d[a];if(!g.optional&&!h)return null;e[g.pos]=h}return e}},groups:b})(a);return d||null},normalizeDynamicRouteParams:(a,b)=>p&&v?u(a,p,v,b):{params:{},hasValidParams:!1},normalizeCdnUrl:(a,b)=>s(a,b),interpolateDynamicPath:(a,b)=>t(a,b,p),filterInternalQuery:(a,b)=>r(a,b)}}function w(a,b){return"string"==typeof a[m.NEXT_CACHE_REVALIDATED_TAGS_HEADER]&&a[m.NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER]===b?a[m.NEXT_CACHE_REVALIDATED_TAGS_HEADER].split(","):[]}},7904:(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}function e(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}c.r(b),c.d(b,{_:()=>e})},9787:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var c={assign:function(){return h},searchParamsToUrlQuery:function(){return e},urlQueryToSearchParams:function(){return g}};for(var d in c)Object.defineProperty(b,d,{enumerable:!0,get:c[d]});function e(a){let b={};for(let[c,d]of a.entries()){let a=b[c];void 0===a?b[c]=d:Array.isArray(a)?a.push(d):b[c]=[a,d]}return b}function f(a){return"string"==typeof a?a:("number"!=typeof a||isNaN(a))&&"boolean"!=typeof a?"":String(a)}function g(a){let b=new URLSearchParams;for(let[c,d]of Object.entries(a))if(Array.isArray(d))for(let a of d)b.append(c,f(a));else b.set(c,f(d));return b}function h(a,...b){for(let c of b){for(let b of c.keys())a.delete(b);for(let[b,d]of c.entries())a.append(b,d)}return a}},10684:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var c={PARAM_SEPARATOR:function(){return e},hasAdjacentParameterIssues:function(){return f},normalizeAdjacentParameters:function(){return g},normalizeTokensForRegexp:function(){return h},stripNormalizedSeparators:function(){return i},stripParameterSeparators:function(){return j}};for(var d in c)Object.defineProperty(b,d,{enumerable:!0,get:c[d]});let e="_NEXTSEP_";function f(a){return"string"==typeof a&&!!(/\/\(\.{1,3}\):[^/\s]+/.test(a)||/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(a))}function g(a){let b=a;return(b=b.replace(/(\([^)]*\)):([^/\s]+)/g,`$1${e}:$2`)).replace(/:([^:/\s)]+)(?=:)/g,`:$1${e}`)}function h(a){return a.map(a=>"object"==typeof a&&null!==a&&"modifier"in a&&("*"===a.modifier||"+"===a.modifier)&&"prefix"in a&&"suffix"in a&&""===a.prefix&&""===a.suffix?{...a,prefix:"/"}:a)}function i(a){return a.replace(RegExp(`\\)${e}`,"g"),")")}function j(a){let b={};for(let[c,d]of Object.entries(a))"string"==typeof d?b[c]=d.replace(RegExp(`^${e}`),""):Array.isArray(d)?b[c]=d.map(a=>"string"==typeof a?a.replace(RegExp(`^${e}`),""):a):b[c]=d;return b}},23101:(a,b)=>{"use strict";function c(a){try{return decodeURIComponent(a)}catch{return a}}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"decodeQueryPathParameter",{enumerable:!0,get:function(){return c}})},23315:(a,b)=>{"use strict";function c(a){return a.replace(/\\/g,"/")}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"normalizePathSep",{enumerable:!0,get:function(){return c}})},27196:a=>{(()=>{"use strict";"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var b={};(()=>{function a(a,b){void 0===b&&(b={});for(var c=function(a){for(var b=[],c=0;c<a.length;){var d=a[c];if("*"===d||"+"===d||"?"===d){b.push({type:"MODIFIER",index:c,value:a[c++]});continue}if("\\"===d){b.push({type:"ESCAPED_CHAR",index:c++,value:a[c++]});continue}if("{"===d){b.push({type:"OPEN",index:c,value:a[c++]});continue}if("}"===d){b.push({type:"CLOSE",index:c,value:a[c++]});continue}if(":"===d){for(var e="",f=c+1;f<a.length;){var g=a.charCodeAt(f);if(g>=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||95===g){e+=a[f++];continue}break}if(!e)throw TypeError("Missing parameter name at ".concat(c));b.push({type:"NAME",index:c,value:e}),c=f;continue}if("("===d){var h=1,i="",f=c+1;if("?"===a[f])throw TypeError('Pattern cannot start with "?" at '.concat(f));for(;f<a.length;){if("\\"===a[f]){i+=a[f++]+a[f++];continue}if(")"===a[f]){if(0==--h){f++;break}}else if("("===a[f]&&(h++,"?"!==a[f+1]))throw TypeError("Capturing groups are not allowed at ".concat(f));i+=a[f++]}if(h)throw TypeError("Unbalanced pattern at ".concat(c));if(!i)throw TypeError("Missing pattern at ".concat(c));b.push({type:"PATTERN",index:c,value:i}),c=f;continue}b.push({type:"CHAR",index:c,value:a[c++]})}return b.push({type:"END",index:c,value:""}),b}(a),d=b.prefixes,f=void 0===d?"./":d,g=b.delimiter,h=void 0===g?"/#?":g,i=[],j=0,k=0,l="",m=function(a){if(k<c.length&&c[k].type===a)return c[k++].value},n=function(a){var b=m(a);if(void 0!==b)return b;var d=c[k],e=d.type,f=d.index;throw TypeError("Unexpected ".concat(e," at ").concat(f,", expected ").concat(a))},o=function(){for(var a,b="";a=m("CHAR")||m("ESCAPED_CHAR");)b+=a;return b},p=function(a){for(var b=0;b<h.length;b++){var c=h[b];if(a.indexOf(c)>-1)return!0}return!1},q=function(a){var b=i[i.length-1],c=a||(b&&"string"==typeof b?b:"");if(b&&!c)throw TypeError('Must have text between two parameters, missing text after "'.concat(b.name,'"'));return!c||p(c)?"[^".concat(e(h),"]+?"):"(?:(?!".concat(e(c),")[^").concat(e(h),"])+?")};k<c.length;){var r=m("CHAR"),s=m("NAME"),t=m("PATTERN");if(s||t){var u=r||"";-1===f.indexOf(u)&&(l+=u,u=""),l&&(i.push(l),l=""),i.push({name:s||j++,prefix:u,suffix:"",pattern:t||q(u),modifier:m("MODIFIER")||""});continue}var v=r||m("ESCAPED_CHAR");if(v){l+=v;continue}if(l&&(i.push(l),l=""),m("OPEN")){var u=o(),w=m("NAME")||"",x=m("PATTERN")||"",y=o();n("CLOSE"),i.push({name:w||(x?j++:""),pattern:w&&!x?q(u):x,prefix:u,suffix:y,modifier:m("MODIFIER")||""});continue}n("END")}return i}function c(a,b){void 0===b&&(b={});var c=f(b),d=b.encode,e=void 0===d?function(a){return a}:d,g=b.validate,h=void 0===g||g,i=a.map(function(a){if("object"==typeof a)return new RegExp("^(?:".concat(a.pattern,")$"),c)});return function(b){for(var c="",d=0;d<a.length;d++){var f=a[d];if("string"==typeof f){c+=f;continue}var g=b?b[f.name]:void 0,j="?"===f.modifier||"*"===f.modifier,k="*"===f.modifier||"+"===f.modifier;if(Array.isArray(g)){if(!k)throw TypeError('Expected "'.concat(f.name,'" to not repeat, but got an array'));if(0===g.length){if(j)continue;throw TypeError('Expected "'.concat(f.name,'" to not be empty'))}for(var l=0;l<g.length;l++){var m=e(g[l],f);if(h&&!i[d].test(m))throw TypeError('Expected all "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(m,'"'));c+=f.prefix+m+f.suffix}continue}if("string"==typeof g||"number"==typeof g){var m=e(String(g),f);if(h&&!i[d].test(m))throw TypeError('Expected "'.concat(f.name,'" to match "').concat(f.pattern,'", but got "').concat(m,'"'));c+=f.prefix+m+f.suffix;continue}if(!j){var n=k?"an array":"a string";throw TypeError('Expected "'.concat(f.name,'" to be ').concat(n))}}return c}}function d(a,b,c){void 0===c&&(c={});var d=c.decode,e=void 0===d?function(a){return a}:d;return function(c){var d=a.exec(c);if(!d)return!1;for(var f=d[0],g=d.index,h=Object.create(null),i=1;i<d.length;i++)!function(a){if(void 0!==d[a]){var c=b[a-1];"*"===c.modifier||"+"===c.modifier?h[c.name]=d[a].split(c.prefix+c.suffix).map(function(a){return e(a,c)}):h[c.name]=e(d[a],c)}}(i);return{path:f,index:g,params:h}}}function e(a){return a.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function f(a){return a&&a.sensitive?"":"i"}function g(a,b,c){void 0===c&&(c={});for(var d=c.strict,g=void 0!==d&&d,h=c.start,i=c.end,j=c.encode,k=void 0===j?function(a){return a}:j,l=c.delimiter,m=c.endsWith,n="[".concat(e(void 0===m?"":m),"]|$"),o="[".concat(e(void 0===l?"/#?":l),"]"),p=void 0===h||h?"^":"",q=0;q<a.length;q++){var r=a[q];if("string"==typeof r)p+=e(k(r));else{var s=e(k(r.prefix)),t=e(k(r.suffix));if(r.pattern)if(b&&b.push(r),s||t)if("+"===r.modifier||"*"===r.modifier){var u="*"===r.modifier?"?":"";p+="(?:".concat(s,"((?:").concat(r.pattern,")(?:").concat(t).concat(s,"(?:").concat(r.pattern,"))*)").concat(t,")").concat(u)}else p+="(?:".concat(s,"(").concat(r.pattern,")").concat(t,")").concat(r.modifier);else{if("+"===r.modifier||"*"===r.modifier)throw TypeError('Can not repeat "'.concat(r.name,'" without a prefix and suffix'));p+="(".concat(r.pattern,")").concat(r.modifier)}else p+="(?:".concat(s).concat(t,")").concat(r.modifier)}}if(void 0===i||i)g||(p+="".concat(o,"?")),p+=c.endsWith?"(?=".concat(n,")"):"$";else{var v=a[a.length-1],w="string"==typeof v?o.indexOf(v[v.length-1])>-1:void 0===v;g||(p+="(?:".concat(o,"(?=").concat(n,"))?")),w||(p+="(?=".concat(o,"|").concat(n,")"))}return new RegExp(p,f(c))}function h(b,c,d){if(b instanceof RegExp){var e;if(!c)return b;for(var i=/\((?:\?<(.*?)>)?(?!\?)/g,j=0,k=i.exec(b.source);k;)c.push({name:k[1]||j++,prefix:"",suffix:"",modifier:"",pattern:""}),k=i.exec(b.source);return b}return Array.isArray(b)?(e=b.map(function(a){return h(a,c,d).source}),new RegExp("(?:".concat(e.join("|"),")"),f(d))):g(a(b,d),c,d)}Object.defineProperty(b,"__esModule",{value:!0}),b.pathToRegexp=b.tokensToRegexp=b.regexpToFunction=b.match=b.tokensToFunction=b.compile=b.parse=void 0,b.parse=a,b.compile=function(b,d){return c(a(b,d),d)},b.tokensToFunction=c,b.match=function(a,b){var c=[];return d(h(a,c,b),c,b)},b.regexpToFunction=d,b.tokensToRegexp=g,b.pathToRegexp=h})(),a.exports=b})()},31383:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"escapeStringRegexp",{enumerable:!0,get:function(){return e}});let c=/[|\\{}()[\]^$+*?.-]/,d=/[|\\{}()[\]^$+*?.-]/g;function e(a){return c.test(a)?a.replace(d,"\\$&"):a}},31417:(a,b,c)=>{"use strict";c.d(b,{v:()=>g});var d=c(67484);let e=a=>{let b,c=new Set,d=(a,d)=>{let e="function"==typeof a?a(b):a;if(!Object.is(e,b)){let a=b;b=(null!=d?d:"object"!=typeof e||null===e)?e:Object.assign({},b,e),c.forEach(c=>c(b,a))}},e=()=>b,f={setState:d,getState:e,getInitialState:()=>g,subscribe:a=>(c.add(a),()=>c.delete(a))},g=b=a(d,e,f);return f},f=a=>{let b=a?e(a):e,c=a=>(function(a,b=a=>a){let c=d.useSyncExternalStore(a.subscribe,d.useCallback(()=>b(a.getState()),[a,b]),d.useCallback(()=>b(a.getInitialState()),[a,b]));return d.useDebugValue(c),c})(b,a);return Object.assign(c,b),c},g=a=>a?f(a):f},31797:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d={getNamedMiddlewareRegex:function(){return p},getNamedRouteRegex:function(){return o},getRouteRegex:function(){return l}};for(var e in d)Object.defineProperty(b,e,{enumerable:!0,get:d[e]});let f=c(47929),g=c(32107),h=c(31383),i=c(77165),j=c(93646);function k(a,b,c){let d={},e=1,f=[];for(let k of(0,i.removeTrailingSlash)(a).slice(1).split("/")){let a=g.INTERCEPTION_ROUTE_MARKERS.find(a=>k.startsWith(a)),i=k.match(j.PARAMETER_PATTERN);if(a&&i&&i[2]){let{key:b,optional:c,repeat:g}=(0,j.parseMatchedParameter)(i[2]);d[b]={pos:e++,repeat:g,optional:c},f.push(`/${(0,h.escapeStringRegexp)(a)}([^/]+?)`)}else if(i&&i[2]){let{key:a,repeat:b,optional:g}=(0,j.parseMatchedParameter)(i[2]);d[a]={pos:e++,repeat:b,optional:g},c&&i[1]&&f.push(`/${(0,h.escapeStringRegexp)(i[1])}`);let k=b?g?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)";c&&i[1]&&(k=k.substring(1)),f.push(k)}else f.push(`/${(0,h.escapeStringRegexp)(k)}`);b&&i&&i[3]&&f.push((0,h.escapeStringRegexp)(i[3]))}return{parameterizedRoute:f.join(""),groups:d}}function l(a,{includeSuffix:b=!1,includePrefix:c=!1,excludeOptionalTrailingSlash:d=!1}={}){let{parameterizedRoute:e,groups:f}=k(a,b,c),g=e;return d||(g+="(?:/)?"),{re:RegExp(`^${g}$`),groups:f}}function m({interceptionMarker:a,getSafeRouteKey:b,segment:c,routeKeys:d,keyPrefix:e,backreferenceDuplicateKeys:f}){let g,{key:i,optional:k,repeat:l}=(0,j.parseMatchedParameter)(c),m=i.replace(/\W/g,"");e&&(m=`${e}${m}`);let n=!1;(0===m.length||m.length>30)&&(n=!0),isNaN(parseInt(m.slice(0,1)))||(n=!0),n&&(m=b());let o=m in d;e?d[m]=`${e}${i}`:d[m]=i;let p=a?(0,h.escapeStringRegexp)(a):"";return g=o&&f?`\\k<${m}>`:l?`(?<${m}>.+?)`:`(?<${m}>[^/]+?)`,{key:i,pattern:k?`(?:/${p}${g})?`:`/${p}${g}`,cleanedKey:m,optional:k,repeat:l}}function n(a,b,c,d,e,k={names:{},intercepted:{}}){let l,o=(l=0,()=>{let a="",b=++l;for(;b>0;)a+=String.fromCharCode(97+(b-1)%26),b=Math.floor((b-1)/26);return a}),p={},q=[],r=[];for(let l of(k=structuredClone(k),(0,i.removeTrailingSlash)(a).slice(1).split("/"))){let a,i=g.INTERCEPTION_ROUTE_MARKERS.some(a=>l.startsWith(a)),n=l.match(j.PARAMETER_PATTERN),s=i?n?.[1]:void 0;if(s&&n?.[2]?(a=b?f.NEXT_INTERCEPTION_MARKER_PREFIX:void 0,k.intercepted[n[2]]=s):a=n?.[2]&&k.intercepted[n[2]]?b?f.NEXT_INTERCEPTION_MARKER_PREFIX:void 0:b?f.NEXT_QUERY_PARAM_PREFIX:void 0,s&&n&&n[2]){let{key:b,pattern:c,cleanedKey:d,repeat:f,optional:g}=m({getSafeRouteKey:o,interceptionMarker:s,segment:n[2],routeKeys:p,keyPrefix:a,backreferenceDuplicateKeys:e});q.push(c),r.push(`/${n[1]}:${k.names[b]??d}${f?g?"*":"+":""}`),k.names[b]??=d}else if(n&&n[2]){d&&n[1]&&(q.push(`/${(0,h.escapeStringRegexp)(n[1])}`),r.push(`/${n[1]}`));let{key:b,pattern:c,cleanedKey:f,repeat:g,optional:i}=m({getSafeRouteKey:o,segment:n[2],routeKeys:p,keyPrefix:a,backreferenceDuplicateKeys:e}),j=c;d&&n[1]&&(j=j.substring(1)),q.push(j),r.push(`/:${k.names[b]??f}${g?i?"*":"+":""}`),k.names[b]??=f}else q.push(`/${(0,h.escapeStringRegexp)(l)}`),r.push(`/${l}`);c&&n&&n[3]&&(q.push((0,h.escapeStringRegexp)(n[3])),r.push(n[3]))}return{namedParameterizedRoute:q.join(""),routeKeys:p,pathToRegexpPattern:r.join(""),reference:k}}function o(a,b){let c=n(a,b.prefixRouteKeys,b.includeSuffix??!1,b.includePrefix??!1,b.backreferenceDuplicateKeys??!1,b.reference),d=c.namedParameterizedRoute;return b.excludeOptionalTrailingSlash||(d+="(?:/)?"),{...l(a,b),namedRegex:`^${d}$`,routeKeys:c.routeKeys,pathToRegexpPattern:c.pathToRegexpPattern,reference:c.reference}}function p(a,b){let{parameterizedRoute:c}=k(a,!1,!1),{catchAll:d=!0}=b;if("/"===c)return{namedRegex:`^/${d?".*":""}$`};let{namedParameterizedRoute:e}=n(a,!1,!1,!1,!1,void 0);return{namedRegex:`^${e}${d?"(?:(/.*)?)":""}$`}}},41659:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"getPathMatch",{enumerable:!0,get:function(){return e}});let d=c(27196);function e(a,b){let c=[],e=(0,d.pathToRegexp)(a,c,{delimiter:"/",sensitive:"boolean"==typeof b?.sensitive&&b.sensitive,strict:b?.strict}),f=(0,d.regexpToFunction)(b?.regexModifier?new RegExp(b.regexModifier(e.source),e.flags):e,c);return(a,d)=>{if("string"!=typeof a)return!1;let e=f(a);if(!e)return!1;if(b?.removeUnnamedParams)for(let a of c)"number"==typeof a.name&&delete e.params[a.name];return{...d,...e.params}}}},49286:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"parseRelativeUrl",{enumerable:!0,get:function(){return e}}),c(16433);let d=c(9787);function e(a,b,c=!0){let f=new URL("http://n"),g=b?new URL(b,f):a.startsWith(".")?new URL("http://n"):f,{pathname:h,searchParams:i,search:j,hash:k,href:l,origin:m}=new URL(a,g);if(m!==f.origin)throw Object.defineProperty(Error(`invariant: invalid relative URL, router received ${a}`),"__NEXT_ERROR_CODE",{value:"E159",enumerable:!1,configurable:!0});return{pathname:h,query:c?(0,d.searchParamsToUrlQuery)(i):void 0,search:j,hash:k,href:l.slice(m.length),slashes:void 0}}},55091:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return f}});let d=c(5735),e=c(22675);function f(){return(0,d.jsx)(e.HTTPAccessErrorFallback,{status:404,message:"This page could not be found."})}("function"==typeof b.default||"object"==typeof b.default&&null!==b.default)&&void 0===b.default.__esModule&&(Object.defineProperty(b.default,"__esModule",{value:!0}),Object.assign(b.default,b),a.exports=b.default)},68097:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"parseUrl",{enumerable:!0,get:function(){return f}});let d=c(9787),e=c(49286);function f(a){if(a.startsWith("/"))return(0,e.parseRelativeUrl)(a);let b=new URL(a);return{hash:b.hash,hostname:b.hostname,href:b.href,pathname:b.pathname,port:b.port,protocol:b.protocol,query:(0,d.searchParamsToUrlQuery)(b.searchParams),search:b.search,origin:b.origin,slashes:"//"===b.href.slice(b.protocol.length,b.protocol.length+2)}}},71544:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"getRouteMatcher",{enumerable:!0,get:function(){return f}});let d=c(16433),e=c(89151);function f({re:a,groups:b}){return(0,e.safeRouteMatcher)(c=>{let e=a.exec(c);if(!e)return!1;let f=a=>{try{return decodeURIComponent(a)}catch{throw Object.defineProperty(new d.DecodeError("failed to decode param"),"__NEXT_ERROR_CODE",{value:"E528",enumerable:!1,configurable:!0})}},g={};for(let[a,c]of Object.entries(b)){let b=e[c.pos];void 0!==b&&(c.repeat?g[a]=b.split("/").map(a=>f(a)):g[a]=f(b))}return g})}},75329:a=>{a.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_f367f3",variable:"__variable_f367f3"}},85420:(a,b)=>{"use strict";function c(a){return a.endsWith("/route")}Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"isAppRouteRoute",{enumerable:!0,get:function(){return c}})},88868:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d,e={fillMetadataSegment:function(){return p},normalizeMetadataPageToRoute:function(){return r},normalizeMetadataRoute:function(){return q}};for(var f in e)Object.defineProperty(b,f,{enumerable:!0,get:e[f]});let g=c(93302),h=(d=c(16225))&&d.__esModule?d:{default:d},i=c(5439),j=c(31797),k=c(38462),l=c(66796),m=c(23315),n=c(64929);function o(a){let b=h.default.dirname(a);if(a.endsWith("/sitemap")||a.endsWith("/sitemap.xml"))return"";let c="";return b.split("/").some(a=>(0,n.isGroupSegment)(a)||(0,n.isParallelRouteSegment)(a))&&(c=(0,k.djb2Hash)(b).toString(36).slice(0,6)),c}function p(a,b,c){let d=(0,l.normalizeAppPath)(a),e=(0,j.getNamedRouteRegex)(d,{prefixRouteKeys:!1}),f=(0,i.interpolateDynamicPath)(d,b,e),{name:g,ext:k}=h.default.parse(c),n=o(h.default.posix.join(a,g)),p=n?`-${n}`:"";return(0,m.normalizePathSep)(h.default.join(f,`${g}${p}${k}`))}function q(a){if(!(0,g.isMetadataPage)(a))return a;let b=a,c="";if("/robots"===a?b+=".txt":"/manifest"===a?b+=".webmanifest":c=o(a),!b.endsWith("/route")){let{dir:a,name:d,ext:e}=h.default.parse(b);b=h.default.posix.join(a,`${d}${c?`-${c}`:""}${e}`,"route")}return b}function r(a,b){let c=a.endsWith("/route"),d=c?a.slice(0,-6):a,e=d.endsWith("/sitemap")?".xml":"";return(b?`${d}/[__metadata_id__]`:`${d}${e}`)+(c?"/route":"")}},89151:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d={safeCompile:function(){return i},safePathToRegexp:function(){return h},safeRegexpToFunction:function(){return j},safeRouteMatcher:function(){return k}};for(var e in d)Object.defineProperty(b,e,{enumerable:!0,get:d[e]});let f=c(27196),g=c(10684);function h(a,b,c){if("string"!=typeof a)return(0,f.pathToRegexp)(a,b,c);let d=(0,g.hasAdjacentParameterIssues)(a),e=d?(0,g.normalizeAdjacentParameters)(a):a;try{return(0,f.pathToRegexp)(e,b,c)}catch(e){if(!d)try{let d=(0,g.normalizeAdjacentParameters)(a);return(0,f.pathToRegexp)(d,b,c)}catch(a){}throw e}}function i(a,b){let c=(0,g.hasAdjacentParameterIssues)(a),d=c?(0,g.normalizeAdjacentParameters)(a):a;try{let a=(0,f.compile)(d,b);if(c)return b=>(0,g.stripNormalizedSeparators)(a(b));return a}catch(d){if(!c)try{let c=(0,g.normalizeAdjacentParameters)(a),d=(0,f.compile)(c,b);return a=>(0,g.stripNormalizedSeparators)(d(a))}catch(a){}throw d}}function j(a,b){let c=(0,f.regexpToFunction)(a,b||[]);return a=>{let b=c(a);return!!b&&{...b,params:(0,g.stripParameterSeparators)(b.params)}}}function k(a){return b=>{let c=a(b);return!!c&&(0,g.stripParameterSeparators)(c)}}},89964:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d={compileNonPath:function(){return m},matchHas:function(){return l},parseDestination:function(){return n},prepareDestination:function(){return o}};for(var e in d)Object.defineProperty(b,e,{enumerable:!0,get:d[e]});let f=c(31383),g=c(68097),h=c(32107),i=c(85782),j=c(89151);function k(a){return a.replace(/__ESC_COLON_/gi,":")}function l(a,b,c=[],d=[]){let e={},f=c=>{let d,f=c.key;switch(c.type){case"header":f=f.toLowerCase(),d=a.headers[f];break;case"cookie":d="cookies"in a?a.cookies[c.key]:(0,i.getCookieParser)(a.headers)()[c.key];break;case"query":d=b[f];break;case"host":{let{host:b}=a?.headers||{};d=b?.split(":",1)[0].toLowerCase()}}if(!c.value&&d)return e[function(a){let b="";for(let c=0;c<a.length;c++){let d=a.charCodeAt(c);(d>64&&d<91||d>96&&d<123)&&(b+=a[c])}return b}(f)]=d,!0;if(d){let a=RegExp(`^${c.value}$`),b=Array.isArray(d)?d.slice(-1)[0].match(a):d.match(a);if(b)return Array.isArray(b)&&(b.groups?Object.keys(b.groups).forEach(a=>{e[a]=b.groups[a]}):"host"===c.type&&b[0]&&(e.host=b[0])),!0}return!1};return!(!c.every(a=>f(a))||d.some(a=>f(a)))&&e}function m(a,b){if(!a.includes(":"))return a;for(let c of Object.keys(b))a.includes(`:${c}`)&&(a=a.replace(RegExp(`:${c}\\*`,"g"),`:${c}--ESCAPED_PARAM_ASTERISKS`).replace(RegExp(`:${c}\\?`,"g"),`:${c}--ESCAPED_PARAM_QUESTION`).replace(RegExp(`:${c}\\+`,"g"),`:${c}--ESCAPED_PARAM_PLUS`).replace(RegExp(`:${c}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${c}`));return a=a.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),(0,j.safeCompile)(`/${a}`,{validate:!1})(b).slice(1)}function n(a){let b=a.destination;for(let c of Object.keys({...a.params,...a.query}))c&&(b=b.replace(RegExp(`:${(0,f.escapeStringRegexp)(c)}`,"g"),`__ESC_COLON_${c}`));let c=(0,g.parseUrl)(b),d=c.pathname;d&&(d=k(d));let e=c.href;e&&(e=k(e));let h=c.hostname;h&&(h=k(h));let i=c.hash;i&&(i=k(i));let j=c.search;j&&(j=k(j));let l=c.origin;return l&&(l=k(l)),{...c,pathname:d,hostname:h,href:e,hash:i,search:j,origin:l}}function o(a){let b,c,d=n(a),{hostname:e,query:f,search:g}=d,i=d.pathname;d.hash&&(i=`${i}${d.hash}`);let l=[],o=[];for(let a of((0,j.safePathToRegexp)(i,o),o))l.push(a.name);if(e){let a=[];for(let b of((0,j.safePathToRegexp)(e,a),a))l.push(b.name)}let p=(0,j.safeCompile)(i,{validate:!1});for(let[c,d]of(e&&(b=(0,j.safeCompile)(e,{validate:!1})),Object.entries(f)))Array.isArray(d)?f[c]=d.map(b=>m(k(b),a.params)):"string"==typeof d&&(f[c]=m(k(d),a.params));let q=Object.keys(a.params).filter(a=>"nextInternalLocale"!==a);if(a.appendParamsToQuery&&!q.some(a=>l.includes(a)))for(let b of q)b in f||(f[b]=a.params[b]);if((0,h.isInterceptionRouteAppPath)(i))for(let b of i.split("/")){let c=h.INTERCEPTION_ROUTE_MARKERS.find(a=>b.startsWith(a));if(c){"(..)(..)"===c?(a.params["0"]="(..)",a.params["1"]="(..)"):a.params["0"]=c;break}}try{let[e,f]=(c=p(a.params)).split("#",2);b&&(d.hostname=b(a.params)),d.pathname=e,d.hash=`${f?"#":""}${f||""}`,d.search=g?m(g,a.params):""}catch(a){if(a.message.match(/Expected .*? to not repeat, but got an array/))throw Object.defineProperty(Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match"),"__NEXT_ERROR_CODE",{value:"E329",enumerable:!1,configurable:!0});throw a}return d.query={...a.query,...d.query},{newUrl:c,destQuery:f,parsedDestination:d}}},93302:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d={DEFAULT_METADATA_ROUTE_EXTENSIONS:function(){return j},STATIC_METADATA_IMAGES:function(){return i},getExtensionRegexString:function(){return k},isMetadataPage:function(){return u},isMetadataRoute:function(){return v},isMetadataRouteFile:function(){return s},isStaticMetadataFile:function(){return l},isStaticMetadataRoute:function(){return t}};for(var e in d)Object.defineProperty(b,e,{enumerable:!0,get:d[e]});let f=c(23315),g=c(66796),h=c(85420),i={icon:{filename:"icon",extensions:["ico","jpg","jpeg","png","svg"]},apple:{filename:"apple-icon",extensions:["jpg","jpeg","png"]},favicon:{filename:"favicon",extensions:["ico"]},openGraph:{filename:"opengraph-image",extensions:["jpg","jpeg","png","gif"]},twitter:{filename:"twitter-image",extensions:["jpg","jpeg","png","gif"]}},j=["js","jsx","ts","tsx"],k=(a,b)=>b&&0!==b.length?`(?:\\.(${a.join("|")})|(\\.(${b.join("|")})))`:`(\\.(?:${a.join("|")}))`;function l(a){return s(a,[],!0)}let m=/^[\\/]favicon\.ico$/,n=/^[\\/]robots\.txt$/,o=/^[\\/]manifest\.json$/,p=/^[\\/]manifest\.webmanifest$/,q=/[\\/]sitemap\.xml$/,r=new Map;function s(a,b,c){if(!a||a.length<2)return!1;let d=(0,f.normalizePathSep)(a),e=!!(m.test(d)||n.test(d)||o.test(d)||p.test(d)||q.test(d))||(!!d.includes("robots")||!!d.includes("manifest")||!!d.includes("sitemap")||!!d.includes("icon")||!!d.includes("apple-icon")||!!d.includes("opengraph-image")||!!d.includes("twitter-image")||!!d.includes("favicon"))&&null;if(null!==e)return e;let g=function(a,b){let c=`${a.join(",")}|${b}`,d=r.get(c);if(d)return d;let e=b?"$":"?$",f="\\d?"+(b?"":"(-\\w{6})?"),g=a.length>0?[...a,"txt"]:["txt"],h=a.length>0?[...a,"webmanifest","json"]:["webmanifest","json"],j=[RegExp(`^[\\\\/]robots${k(g,null)}${e}`),RegExp(`^[\\\\/]manifest${k(h,null)}${e}`),RegExp(`[\\\\/]sitemap${k(["xml"],a)}${e}`),RegExp(`[\\\\/]icon${f}${k(i.icon.extensions,a)}${e}`),RegExp(`[\\\\/]apple-icon${f}${k(i.apple.extensions,a)}${e}`),RegExp(`[\\\\/]opengraph-image${f}${k(i.openGraph.extensions,a)}${e}`),RegExp(`[\\\\/]twitter-image${f}${k(i.twitter.extensions,a)}${e}`)];return r.set(c,j),j}(b,c);for(let a=0;a<g.length;a++)if(g[a].test(d))return!0;return!1}function t(a){let b=a.replace(/\/route$/,"");return(0,h.isAppRouteRoute)(a)&&s(b,[],!0)&&"/robots.txt"!==b&&"/manifest.webmanifest"!==b&&!b.endsWith("/sitemap.xml")}function u(a){return!(0,h.isAppRouteRoute)(a)&&s(a,[],!1)}function v(a){let b=(0,g.normalizeAppPath)(a).replace(/^\/?app\//,"").replace("/[__metadata_id__]","").replace(/\/route$/,"");return"/"!==b[0]&&(b="/"+b),(0,h.isAppRouteRoute)(a)&&s(b,[],!1)}},93646:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d={PARAMETER_PATTERN:function(){return l},getDynamicParam:function(){return k},interpolateParallelRouteParams:function(){return j},parseMatchedParameter:function(){return n},parseParameter:function(){return m}};for(var e in d)Object.defineProperty(b,e,{enumerable:!0,get:d[e]});let f=c(72339),g=c(92122),h=c(4772),i=c(86070);function j(a,b,c,d){let e=structuredClone(b),j=[{tree:a,depth:0}],k=(0,h.parseAppRoute)(c,!0);for(;j.length>0;){let{tree:a,depth:b}=j.pop(),{segment:c,parallelRoutes:l}=(0,g.parseLoaderTree)(a),m=(0,h.parseAppRouteSegment)(c);if(m?.type==="dynamic"&&!e.hasOwnProperty(m.param.paramName)&&!d?.has(m.param.paramName)){let{paramName:a,paramType:c}=m.param,d=(0,i.resolveParamValue)(a,c,b,k,e);if(void 0!==d)e[a]=d;else if("optional-catchall"!==c)throw Object.defineProperty(new f.InvariantError(`Could not resolve param value for segment: ${a}`),"__NEXT_ERROR_CODE",{value:"E932",enumerable:!1,configurable:!0})}let n=b;for(let a of(m&&"route-group"!==m.type&&"parallel-route"!==m.type&&n++,Object.values(l)))j.push({tree:a,depth:n})}return e}function k(a,b,c,d){let e=function(a,b,c){let d=a[b];if(c?.has(b)){let[a]=c.get(b);d=a}else Array.isArray(d)?d=d.map(a=>encodeURIComponent(a)):"string"==typeof d&&(d=encodeURIComponent(d));return d}(a,b,d);if(!e||0===e.length){if("oc"===c)return{param:b,value:null,type:c,treeSegment:[b,"",c]};throw Object.defineProperty(new f.InvariantError(`Missing value for segment key: "${b}" with dynamic param type: ${c}`),"__NEXT_ERROR_CODE",{value:"E864",enumerable:!1,configurable:!0})}return{param:b,value:e,treeSegment:[b,Array.isArray(e)?e.join("/"):e,c],type:c}}let l=/^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;function m(a){let b=a.match(l);return b?n(b[2]):n(a)}function n(a){let b=a.startsWith("[")&&a.endsWith("]");b&&(a=a.slice(1,-1));let c=a.startsWith("...");return c&&(a=a.slice(3)),{key:a,repeat:c,optional:b}}},95491:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var d={formatUrl:function(){return h},formatWithValidation:function(){return j},urlObjectKeys:function(){return i}};for(var e in d)Object.defineProperty(b,e,{enumerable:!0,get:d[e]});let f=c(7904)._(c(9787)),g=/https?|ftp|gopher|file/;function h(a){let{auth:b,hostname:c}=a,d=a.protocol||"",e=a.pathname||"",h=a.hash||"",i=a.query||"",j=!1;b=b?encodeURIComponent(b).replace(/%3A/i,":")+"@":"",a.host?j=b+a.host:c&&(j=b+(~c.indexOf(":")?`[${c}]`:c),a.port&&(j+=":"+a.port)),i&&"object"==typeof i&&(i=String(f.urlQueryToSearchParams(i)));let k=a.search||i&&`?${i}`||"";return d&&!d.endsWith(":")&&(d+=":"),a.slashes||(!d||g.test(d))&&!1!==j?(j="//"+(j||""),e&&"/"!==e[0]&&(e="/"+e)):j||(j=""),h&&"#"!==h[0]&&(h="#"+h),k&&"?"!==k[0]&&(k="?"+k),e=e.replace(/[?#]/g,encodeURIComponent),k=k.replace("#","%23"),`${d}${j}${e}${k}${h}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function j(a){return h(a)}}};