@jheavenknows/bluerouter 5.2.2 → 5.2.4

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 (523) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +11 -11
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page.js +1 -1
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page_client-reference-manifest.js +1 -1
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page_client-reference-manifest.js +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cluster/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovidermonitor/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalquota/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/resource-monitor/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  42. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  43. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  44. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  45. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  46. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  47. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  48. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  49. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  50. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  51. package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
  52. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
  53. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  54. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +6 -6
  55. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  56. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  57. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  58. package/app/.next-cli-build/server/app/api/auth/ldap/test/route.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/api/auth/ldap/users/route.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  61. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  64. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/api/branding/[asset]/route.js.nft.json +1 -1
  67. package/app/.next-cli-build/server/app/api/branding/route.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/api/branding/upload/route.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  70. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/autostart/route.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/prompt-log-db/route.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/root-ca/route.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  76. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/api/cluster/config/route.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/api/cluster/heartbeat/route.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/api/cluster/peers/[id]/command/route.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/api/cluster/peers/[id]/route.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/api/cluster/peers/route.js.nft.json +1 -1
  82. package/app/.next-cli-build/server/app/api/cluster/snapshot/route.js.nft.json +1 -1
  83. package/app/.next-cli-build/server/app/api/cluster/sync/route.js.nft.json +1 -1
  84. package/app/.next-cli-build/server/app/api/cluster/test/route.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  86. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  87. package/app/.next-cli-build/server/app/api/dashboard/analytics/ai-models/route.js.nft.json +1 -1
  88. package/app/.next-cli-build/server/app/api/dashboard/analytics/analyze/route.js +1 -1
  89. package/app/.next-cli-build/server/app/api/dashboard/analytics/analyze/route.js.nft.json +1 -1
  90. package/app/.next-cli-build/server/app/api/dashboard/analytics/route.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/api/dashboard/combos/route.js.nft.json +1 -1
  92. package/app/.next-cli-build/server/app/api/dashboard/endpoint/route.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/[id]/route.js.nft.json +1 -1
  94. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/options/route.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/dashboard/token-saver/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/keys/[id]/caveman-test/route.js.nft.json +1 -1
  98. package/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  104. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/api-key-models/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/import-models/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/usage/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/personal-cloud-providers/client/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/personal-cloud-providers/monitor/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/personal-cloud-providers/permissions/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/personal-cloud-providers/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/personal-cloud-providers/routing/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/pricing/recalculate/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/provider-health/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  145. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/resource-monitor/[id]/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/resource-monitor/ai-models/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/resource-monitor/analyze/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/resource-monitor/history/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/resource-monitor/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  163. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/tunnel/tailscale-login/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/tunnel/tailscale-start-daemon/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  204. package/app/.next-cli-build/server/app/callback.html +1 -1
  205. package/app/.next-cli-build/server/app/callback.rsc +6 -6
  206. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
  207. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  208. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +6 -6
  209. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  210. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  211. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  212. package/app/.next-cli-build/server/app/dashboard/analytics.html +1 -1
  213. package/app/.next-cli-build/server/app/dashboard/analytics.rsc +8 -8
  214. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard/analytics/__PAGE__.segment.rsc +2 -2
  215. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard/analytics.segment.rsc +1 -1
  216. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  217. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  218. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_full.segment.rsc +8 -8
  219. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_head.segment.rsc +1 -1
  220. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_index.segment.rsc +6 -6
  221. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_tree.segment.rsc +2 -2
  222. package/app/.next-cli-build/server/app/dashboard/api-keys.html +1 -1
  223. package/app/.next-cli-build/server/app/dashboard/api-keys.rsc +8 -8
  224. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys/__PAGE__.segment.rsc +2 -2
  225. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys.segment.rsc +1 -1
  226. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  227. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  228. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_full.segment.rsc +8 -8
  229. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_head.segment.rsc +1 -1
  230. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_index.segment.rsc +6 -6
  231. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_tree.segment.rsc +2 -2
  232. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  233. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
  234. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  235. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  236. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  237. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  238. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
  239. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  240. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +6 -6
  241. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  242. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  243. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
  244. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  245. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  246. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  247. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  248. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
  249. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  250. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +6 -6
  251. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  252. package/app/.next-cli-build/server/app/dashboard/cluster.html +1 -1
  253. package/app/.next-cli-build/server/app/dashboard/cluster.rsc +7 -7
  254. package/app/.next-cli-build/server/app/dashboard/cluster.segments/!KGRhc2hib2FyZCk/dashboard/cluster/__PAGE__.segment.rsc +1 -1
  255. package/app/.next-cli-build/server/app/dashboard/cluster.segments/!KGRhc2hib2FyZCk/dashboard/cluster.segment.rsc +1 -1
  256. package/app/.next-cli-build/server/app/dashboard/cluster.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  257. package/app/.next-cli-build/server/app/dashboard/cluster.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  258. package/app/.next-cli-build/server/app/dashboard/cluster.segments/_full.segment.rsc +7 -7
  259. package/app/.next-cli-build/server/app/dashboard/cluster.segments/_head.segment.rsc +1 -1
  260. package/app/.next-cli-build/server/app/dashboard/cluster.segments/_index.segment.rsc +6 -6
  261. package/app/.next-cli-build/server/app/dashboard/cluster.segments/_tree.segment.rsc +2 -2
  262. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  263. package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
  264. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  265. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  266. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  267. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  268. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
  269. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  270. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +6 -6
  271. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  272. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  273. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
  274. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  275. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  276. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  277. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  278. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
  279. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  280. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +6 -6
  281. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  282. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  283. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +8 -8
  284. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  285. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  286. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  287. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  288. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  289. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
  290. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  291. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +6 -6
  292. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  293. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  294. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
  295. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  296. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  297. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  298. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  299. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
  300. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  301. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +6 -6
  302. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  303. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  304. package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
  305. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  306. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  307. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  308. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  309. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
  310. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  311. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +6 -6
  312. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  313. package/app/.next-cli-build/server/app/dashboard/prompt-logs.html +1 -1
  314. package/app/.next-cli-build/server/app/dashboard/prompt-logs.rsc +7 -7
  315. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard/prompt-logs/__PAGE__.segment.rsc +1 -1
  316. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard/prompt-logs.segment.rsc +1 -1
  317. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  318. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  319. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_full.segment.rsc +7 -7
  320. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_head.segment.rsc +1 -1
  321. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_index.segment.rsc +6 -6
  322. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_tree.segment.rsc +2 -2
  323. package/app/.next-cli-build/server/app/dashboard/provider-health.html +1 -1
  324. package/app/.next-cli-build/server/app/dashboard/provider-health.rsc +7 -7
  325. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard/provider-health/__PAGE__.segment.rsc +1 -1
  326. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard/provider-health.segment.rsc +1 -1
  327. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  328. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  329. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_full.segment.rsc +7 -7
  330. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_head.segment.rsc +1 -1
  331. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_index.segment.rsc +6 -6
  332. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_tree.segment.rsc +2 -2
  333. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  334. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
  335. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  336. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  337. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  338. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  339. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  340. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
  341. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  342. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +6 -6
  343. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  344. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  345. package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
  346. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  347. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  348. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  349. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  350. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
  351. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  352. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +6 -6
  353. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  354. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  355. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
  356. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  357. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  358. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  359. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  360. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
  361. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  362. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +6 -6
  363. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  364. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  365. package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
  366. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  367. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  368. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  369. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  370. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
  371. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  372. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +6 -6
  373. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  374. package/app/.next-cli-build/server/app/dashboard/resource-monitor.html +1 -1
  375. package/app/.next-cli-build/server/app/dashboard/resource-monitor.rsc +7 -7
  376. package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/!KGRhc2hib2FyZCk/dashboard/resource-monitor/__PAGE__.segment.rsc +1 -1
  377. package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/!KGRhc2hib2FyZCk/dashboard/resource-monitor.segment.rsc +1 -1
  378. package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  379. package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  380. package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_full.segment.rsc +7 -7
  381. package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_head.segment.rsc +1 -1
  382. package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_index.segment.rsc +6 -6
  383. package/app/.next-cli-build/server/app/dashboard/resource-monitor.segments/_tree.segment.rsc +2 -2
  384. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  385. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  386. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
  387. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
  388. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  389. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +6 -6
  390. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  391. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  392. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  393. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  394. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  395. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  396. package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
  397. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  398. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  399. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  400. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  401. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
  402. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  403. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +6 -6
  404. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  405. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  406. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
  407. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +1 -1
  408. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  409. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  410. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  411. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
  412. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  413. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +6 -6
  414. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  415. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  416. package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
  417. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  418. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  419. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  420. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  421. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
  422. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  423. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +6 -6
  424. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  425. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  426. package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
  427. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  428. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  429. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  430. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  431. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
  432. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  433. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +6 -6
  434. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  435. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  436. package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
  437. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  438. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  439. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  440. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
  441. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  442. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +6 -6
  443. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  444. package/app/.next-cli-build/server/app/index.html +1 -1
  445. package/app/.next-cli-build/server/app/index.rsc +6 -6
  446. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  447. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
  448. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  449. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +6 -6
  450. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  451. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  452. package/app/.next-cli-build/server/app/landing.html +1 -1
  453. package/app/.next-cli-build/server/app/landing.rsc +6 -6
  454. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
  455. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  456. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +6 -6
  457. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  458. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  459. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  460. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  461. package/app/.next-cli-build/server/app/login.html +1 -1
  462. package/app/.next-cli-build/server/app/login.rsc +7 -7
  463. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
  464. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  465. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +6 -6
  466. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  467. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  468. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  469. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  470. package/app/.next-cli-build/server/app-paths-manifest.json +11 -11
  471. package/app/.next-cli-build/server/chunks/2731.js +1 -1
  472. package/app/.next-cli-build/server/chunks/3110.js +1 -1
  473. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  474. package/app/.next-cli-build/server/chunks/6328.js +1 -1
  475. package/app/.next-cli-build/server/chunks/6759.js +1 -1
  476. package/app/.next-cli-build/server/chunks/6811.js +1 -1
  477. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  478. package/app/.next-cli-build/server/pages/404.html +1 -1
  479. package/app/.next-cli-build/server/pages/500.html +1 -1
  480. package/app/.next-cli-build/static/chunks/1101-0f70d5dbf6d05bf7.js +1 -0
  481. package/app/.next-cli-build/static/chunks/1997-ba7340b2133ad171.js +1 -0
  482. package/app/.next-cli-build/static/chunks/{5263-16490fa9b29bdb76.js → 5263-dad73d9d9a746c27.js} +1 -1
  483. package/app/.next-cli-build/static/chunks/9959-52f507e34657c856.js +64 -0
  484. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/analytics/page-d5a9cb0ecf61d1ff.js +1 -0
  485. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/api-keys/{page-1bb2e95a0e40f844.js → page-e75071168a70742d.js} +1 -1
  486. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-f3e16bcf314c5c78.js → page-c63dc82bb5c6b087.js} +1 -1
  487. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-29bf42883dbda1bf.js → page-84a85cfcdedfc8e9.js} +1 -1
  488. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-17857cf1304f66e3.js → page-efea63bf0515be7a.js} +1 -1
  489. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-ec1a63873aab1fef.js → page-ec751e557f3691ec.js} +1 -1
  490. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-49305b02d051d2d8.js → page-edb2832558687ab5.js} +1 -1
  491. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/{page-b5aeab3628d83e96.js → page-2495f6cb6b0f9fd9.js} +1 -1
  492. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-3633bf598620d8b4.js → page-73fd9b2815c66d05.js} +1 -1
  493. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-4384fe4b107f3a5d.js → page-541874bc0ec17116.js} +1 -1
  494. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-e5338ebf3901b648.js → page-2709088bb374a085.js} +1 -1
  495. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-13fe3c427bd951ba.js → page-204979bb1c2423c0.js} +1 -1
  496. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-94d47faf893aac5b.js → page-7c6ae6771e9552b9.js} +1 -1
  497. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/{page-b5aeab3628d83e96.js → page-2495f6cb6b0f9fd9.js} +1 -1
  498. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/personalcloudprovider/{page-0473458097af9923.js → page-6faeef5fad177292.js} +1 -1
  499. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/personalcloudprovidermonitor/{page-655458d656853833.js → page-a30fb2d6d7291183.js} +1 -1
  500. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-e73f2161d41a3841.js → page-14e4896a7b3d03a6.js} +1 -1
  501. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-57b4d8213c288278.js → page-c3f6b47041bb5d0a.js} +1 -1
  502. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-26fea14eebe3b901.js → page-bb4f508eecd4f64c.js} +1 -1
  503. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-1f0ade953b415346.js → page-9e476d663892908d.js} +1 -1
  504. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-01c43977a216c488.js → page-4165c0c36d3e7f87.js} +1 -1
  505. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-f1bc02a77c5fbd69.js → page-7bc3c492062ff436.js} +1 -1
  506. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-6221dd06da04b208.js → page-568e1a9385ab50a1.js} +1 -1
  507. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-5041a82b39e3c29d.js → page-fea4b7d34519e50e.js} +1 -1
  508. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-50df993b7f75639b.js → page-90e37cd58cf9e110.js} +1 -1
  509. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-30f83c4e24cffbc9.js → layout-cf66af70a17a707c.js} +1 -1
  510. package/app/.next-cli-build/static/chunks/app/layout-246e5f10ac28be17.js +1 -0
  511. package/app/.next-cli-build/static/css/{695b686cad97f454.css → db6f4427d10c1051.css} +1 -1
  512. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite-shm +0 -0
  513. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite-wal +0 -0
  514. package/app/package.json +1 -1
  515. package/package.json +1 -1
  516. package/app/.next-cli-build/static/chunks/246-6891ff877761b1bf.js +0 -1
  517. package/app/.next-cli-build/static/chunks/3934-52f1e6a1f59b987f.js +0 -64
  518. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/analytics/page-614fffe896b7f62a.js +0 -1
  519. package/app/.next-cli-build/static/chunks/app/layout-95d6e77e1497d4e3.js +0 -1
  520. /package/app/.next-cli-build/static/{BIH1g3Yd5VQncWi8LdEE6 → MBYMsSFVYtecasnn3Ff2D}/_buildManifest.js +0 -0
  521. /package/app/.next-cli-build/static/{BIH1g3Yd5VQncWi8LdEE6 → MBYMsSFVYtecasnn3Ff2D}/_ssgManifest.js +0 -0
  522. /package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-5.1.58-to-5.1.59-5.1.59-20260722-114806 → upgrade-5.1.62-to-5.2.2-5.2.2-20260722-133208}/data.sqlite +0 -0
  523. /package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-5.1.59-to-5.1.60-5.1.60-20260722-123004 → upgrade-5.2.2-to-5.2.3-5.2.3-20260722-134818}/data.sqlite +0 -0
package/app/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bluerouter-app",
3
- "version": "5.2.2",
3
+ "version": "5.2.4",
4
4
  "description": "Router web dashboard",
5
5
  "private": false,
6
6
  "scripts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jheavenknows/bluerouter",
3
- "version": "5.2.2",
3
+ "version": "5.2.4",
4
4
  "description": "Bluerouter CLI - Start and manage Bluerouter server",
5
5
  "bin": {
6
6
  "bluerouter": "./cli.js"
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[246],{1934:(e,t,r)=>{"use strict";r.d(t,{v:()=>u});var n=r(12115);let a=e=>{let t,r=new Set,n=(e,n)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=n?n:"object"!=typeof a||null===a)?a:Object.assign({},t,a),r.forEach(r=>r(t,e))}},a=()=>t,o={setState:n,getState:a,getInitialState:()=>u,subscribe:e=>(r.add(e),()=>r.delete(e))},u=t=e(n,a,o);return o},o=e=>{let t=e?a(e):a,r=e=>(function(e,t=e=>e){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},u=e=>e?o(e):o},14051:(e,t,r)=>{e.exports=r(34701)()},31692:(e,t,r)=>{"use strict";r.d(t,{Zr:()=>a});let n=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>n(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>n(t)(e)}}},a=(e,t)=>(r,a,o)=>{let u,i={storage:function(e){let t;try{t=e()}catch(e){return}return{getItem:e=>{var r;let n=e=>null===e?null:JSON.parse(e,void 0),a=null!=(r=t.getItem(e))?r:null;return a instanceof Promise?a.then(n):n(a)},setItem:(e,r)=>t.setItem(e,JSON.stringify(r,void 0)),removeItem:e=>t.removeItem(e)}}(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1,c=0,l=new Set,f=new Set,m=i.storage;if(!m)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...e)},a,o);let p=()=>{let e=i.partialize({...a()});return m.setItem(i.name,{state:e,version:i.version})},d=o.setState;o.setState=(e,t)=>(d(e,t),p());let h=e((...e)=>(r(...e),p()),a,o);o.getInitialState=()=>h;let g=()=>{var e,t;if(!m)return;let o=++c;s=!1,l.forEach(e=>{var t;return e(null!=(t=a())?t:h)});let d=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=a())?e:h))||void 0;return n(m.getItem.bind(m))(i.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===i.version)return[!1,e.state];else{if(i.migrate){let t=i.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;if(o!==c)return;let[n,s]=e;if(r(u=i.merge(s,null!=(t=a())?t:h),!0),n)return p()}).then(()=>{o===c&&(null==d||d(a(),void 0),u=a(),s=!0,f.forEach(e=>e(u)))}).catch(e=>{o===c&&(null==d||d(void 0,e))})};return o.persist={setOptions:e=>{i={...i,...e},e.storage&&(m=e.storage)},clearStorage:()=>{null==m||m.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>s,onHydrate:e=>(l.add(e),()=>{l.delete(e)}),onFinishHydration:e=>(f.add(e),()=>{f.delete(e)})},i.skipHydration||g(),u||h}},34701:(e,t,r)=>{"use strict";var n=r(82114);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,r,a,o,u){if(u!==n){var i=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return r.PropTypes=r,r}},54642:e=>{var t;"u">typeof __nccwpck_require__&&(__nccwpck_require__.ab="//"),(t={}).endianness=function(){return"LE"},t.hostname=function(){return"u">typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"u">typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"},e.exports=t},73321:(e,t,r)=>{"use strict";var n=r(74645);r.o(n,"notFound")&&r.d(t,{notFound:function(){return n.notFound}}),r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},82114:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
@@ -1,64 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3934],{6793:(e,t,n)=>{"use strict";n.d(t,{Do:()=>d,WZ:()=>h,TG:()=>g,ny:()=>p,yX:()=>y,xN:()=>m,Qc:()=>f,I$:()=>nY,aQ:()=>nQ,di:()=>nK,kO:()=>n5,rN:()=>ny,bi:()=>nL,_s:()=>t4,_7:()=>tD,aE:()=>tL,kr:()=>tK,Hm:()=>nz,tM:()=>tw,tn:()=>tb,xc:()=>tv,us:()=>t6,IO:()=>tI,e_:()=>na,Fp:()=>nh,Mi:()=>tV,HF:()=>tS,Eo:()=>nt,b5:()=>n_,Tq:()=>tC,qX:()=>nf,q1:()=>ns,M_:()=>nS,oj:()=>nn,aZ:()=>tP,aW:()=>nA,uD:()=>t5,Jo:()=>tM,U$:()=>tR,X6:()=>tF,oN:()=>nb,ah:()=>nm,R4:()=>t1,r8:()=>nB,ZO:()=>tk,bK:()=>t_,b$:()=>t$,uj:()=>nd,v5:()=>ni,Ue:()=>t2,Er:()=>no,oB:()=>tA,kf:()=>tQ,mW:()=>tU,Q6:()=>t8,QE:()=>t9,kM:()=>tY,No:()=>nj,Ff:()=>tG,zj:()=>tJ,s_:()=>tW,vS:()=>nR,qn:()=>nq,uL:()=>nO,YN:()=>t7});var r,i,o,s,l,a,u,c,h,p,f,d,g,y,m,x={value:()=>{}};function v(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw Error("illegal type: "+e);r[e]=[]}return new k(r)}function k(e){this._=e}function b(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=x,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}function w(){}function _(e){return null==e?w:function(){return this.querySelector(e)}}function E(){return[]}function S(e){return null==e?E:function(){return this.querySelectorAll(e)}}function $(e){return function(){return this.matches(e)}}function A(e){return function(t){return t.matches(e)}}k.prototype=v.prototype={constructor:k,on:function(e,t){var n,r=this._,i=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((n=(e=i[o]).type)&&(n=function(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}(r[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++o<s;)if(n=(e=i[o]).type)r[n]=b(r[n],e.name,t);else if(null==t)for(n in r)r[n]=b(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new k(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var z=Array.prototype.find;function T(){return this.firstElementChild}var M=Array.prototype.filter;function P(){return Array.from(this.children)}function R(e){return Array(e.length)}function I(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function L(e,t,n,r,i,o){for(var s,l=0,a=t.length,u=o.length;l<u;++l)(s=t[l])?(s.__data__=o[l],r[l]=s):n[l]=new I(e,o[l]);for(;l<a;++l)(s=t[l])&&(i[l]=s)}function C(e,t,n,r,i,o,s){var l,a,u,c=new Map,h=t.length,p=o.length,f=Array(h);for(l=0;l<h;++l)(a=t[l])&&(f[l]=u=s.call(a,a.__data__,l,t)+"",c.has(u)?i[l]=a:c.set(u,a));for(l=0;l<p;++l)u=s.call(e,o[l],l,o)+"",(a=c.get(u))?(r[l]=a,a.__data__=o[l],c.delete(u)):n[l]=new I(e,o[l]);for(l=0;l<h;++l)(a=t[l])&&c.get(f[l])===a&&(i[l]=a)}function N(e){return e.__data__}function B(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}I.prototype={constructor:I,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var O="http://www.w3.org/1999/xhtml";let j={svg:"http://www.w3.org/2000/svg",xhtml:O,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function D(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),j.hasOwnProperty(t)?{space:j[t],local:e}:e}function q(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function H(e,t){return e.style.getPropertyValue(t)||q(e).getComputedStyle(e,null).getPropertyValue(t)}function X(e){return e.trim().split(/^|\s+/)}function Y(e){return e.classList||new Z(e)}function Z(e){this._node=e,this._names=X(e.getAttribute("class")||"")}function V(e,t){for(var n=Y(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function F(e,t){for(var n=Y(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function U(){this.textContent=""}function Q(){this.innerHTML=""}function K(){this.nextSibling&&this.parentNode.appendChild(this)}function W(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function G(e){var t=D(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===O&&t.documentElement.namespaceURI===O?t.createElement(e):t.createElementNS(n,e)}})(t)}function J(){return null}function ee(){var e=this.parentNode;e&&e.removeChild(this)}function et(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function en(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function er(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)(n=t[r],e.type&&n.type!==e.type||n.name!==e.name)?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function ei(e,t,n){return function(){var r,i=this.__on,o=function(e){t.call(this,e,this.__data__)};if(i){for(var s=0,l=i.length;s<l;++s)if((r=i[s]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=t;return}}this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function eo(e,t,n){var r=q(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}Z.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var es=[null];function el(e,t){this._groups=e,this._parents=t}function ea(){return new el([[document.documentElement]],es)}function eu(e){return"string"==typeof e?new el([[document.querySelector(e)]],[document.documentElement]):new el([[e]],es)}function ec(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}el.prototype=ea.prototype={constructor:el,select:function(e){"function"!=typeof e&&(e=_(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,s,l=t[i],a=l.length,u=r[i]=Array(a),c=0;c<a;++c)(o=l[c])&&(s=e.call(o,o.__data__,c,l))&&("__data__"in o&&(s.__data__=o.__data__),u[c]=s);return new el(r,this._parents)},selectAll:function(e){if("function"==typeof e){var t;t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}}else e=S(e);for(var n=this._groups,r=n.length,i=[],o=[],s=0;s<r;++s)for(var l,a=n[s],u=a.length,c=0;c<u;++c)(l=a[c])&&(i.push(e.call(l,l.__data__,c,a)),o.push(l));return new el(i,o)},selectChild:function(e){var t;return this.select(null==e?T:(t="function"==typeof e?e:A(e),function(){return z.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?P:(t="function"==typeof e?e:A(e),function(){return M.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=$(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,s=t[i],l=s.length,a=r[i]=[],u=0;u<l;++u)(o=s[u])&&e.call(o,o.__data__,u,s)&&a.push(o);return new el(r,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,N);var n=t?C:L,r=this._parents,i=this._groups;"function"!=typeof e&&(x=e,e=function(){return x});for(var o=i.length,s=Array(o),l=Array(o),a=Array(o),u=0;u<o;++u){var c=r[u],h=i[u],p=h.length,f="object"==typeof(m=e.call(c,c&&c.__data__,u,r))&&"length"in m?m:Array.from(m),d=f.length,g=l[u]=Array(d),y=s[u]=Array(d);n(c,h,g,y,a[u]=Array(p),f,t);for(var m,x,v,k,b=0,w=0;b<d;++b)if(v=g[b]){for(b>=w&&(w=b+1);!(k=y[w])&&++w<d;);v._next=k||null}}return(s=new el(s,r))._enter=l,s._exit=a,s},enter:function(){return new el(this._enter||this._groups.map(R),this._parents)},exit:function(){return new el(this._exit||this._groups.map(R),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,s=Math.min(i,o),l=Array(i),a=0;a<s;++a)for(var u,c=n[a],h=r[a],p=c.length,f=l[a]=Array(p),d=0;d<p;++d)(u=c[d]||h[d])&&(f[d]=u);for(;a<i;++a)l[a]=n[a];return new el(l,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=B);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var s,l=n[o],a=l.length,u=i[o]=Array(a),c=0;c<a;++c)(s=l[c])&&(u[c]=s);u.sort(t)}return new el(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],s=0,l=o.length;s<l;++s)(i=o[s])&&e.call(i,i.__data__,s,o);return this},attr:function(e,t){var n=D(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):H(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=X(e+"");if(arguments.length<2){for(var r=Y(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?V:F)(this,e)}}:t?function(e){return function(){V(this,e)}}:function(e){return function(){F(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?U:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Q:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(K)},lower:function(){return this.each(W)},append:function(e){var t="function"==typeof e?e:G(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:G(e),r=null==t?J:"function"==typeof t?t:_(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(ee)},clone:function(e){return this.select(e?en:et)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),s=o.length;if(arguments.length<2){var l=this.node().__on;if(l){for(var a,u=0,c=l.length;u<c;++u)for(r=0,a=l[u];r<s;++r)if((i=o[r]).type===a.type&&i.name===a.name)return a.value}return}for(r=0,l=t?ei:er;r<s;++r)this.each(l(o[r],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return eo(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return eo(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r,i=e[t],o=0,s=i.length;o<s;++o)(r=i[o])&&(yield r)}};let eh={passive:!1},ep={capture:!0,passive:!1};function ef(e){e.stopImmediatePropagation()}function ed(e){e.preventDefault(),e.stopImmediatePropagation()}function eg(e){var t=e.document.documentElement,n=eu(e).on("dragstart.drag",ed,ep);"onselectstart"in t?n.on("selectstart.drag",ed,ep):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function ey(e,t){var n=e.document.documentElement,r=eu(e).on("dragstart.drag",null);t&&(r.on("click.drag",ed,ep),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}let em=e=>()=>e;function ex(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:s,y:l,dx:a,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:a,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}function ev(e){return!e.ctrlKey&&!e.button}function ek(){return this.parentNode}function eb(e,t){return null==t?{x:e.x,y:e.y}:t}function ew(){return navigator.maxTouchPoints||"ontouchstart"in this}function e_(e){return((e=Math.exp(e))+1/e)/2}ex.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};let eE=function e(t,n,r){function i(e,i){var o,s,l=e[0],a=e[1],u=e[2],c=i[0],h=i[1],p=i[2],f=c-l,d=h-a,g=f*f+d*d;if(g<1e-12)s=Math.log(p/u)/t,o=function(e){return[l+e*f,a+e*d,u*Math.exp(t*e*s)]};else{var y=Math.sqrt(g),m=(p*p-u*u+r*g)/(2*u*n*y),x=(p*p-u*u-r*g)/(2*p*n*y),v=Math.log(Math.sqrt(m*m+1)-m);s=(Math.log(Math.sqrt(x*x+1)-x)-v)/t,o=function(e){var r,i,o=e*s,c=e_(v),h=u/(n*y)*(c*(((r=Math.exp(2*(r=t*o+v)))-1)/(r+1))-((i=Math.exp(i=v))-1/i)/2);return[l+h*f,a+h*d,u*c/e_(t*o+v)]}}return o.duration=1e3*s*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4);var eS,e$,eA=0,ez=0,eT=0,eM=0,eP=0,eR=0,eI="object"==typeof performance&&performance.now?performance:Date,eL="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function eC(){return eP||(eL(eN),eP=eI.now()+eR)}function eN(){eP=0}function eB(){this._call=this._time=this._next=null}function eO(e,t,n){var r=new eB;return r.restart(e,t,n),r}function ej(){eP=(eM=eI.now())+eR,eA=ez=0;try{eC(),++eA;for(var e,t=eS;t;)(e=eP-t._time)>=0&&t._call.call(void 0,e),t=t._next;--eA}finally{eA=0,function(){for(var e,t,n=eS,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:eS=t);e$=e,eq(r)}(),eP=0}}function eD(){var e=eI.now(),t=e-eM;t>1e3&&(eR-=t,eM=e)}function eq(e){!eA&&(ez&&(ez=clearTimeout(ez)),e-eP>24?(e<1/0&&(ez=setTimeout(ej,e-eI.now()-eR)),eT&&(eT=clearInterval(eT))):(eT||(eM=eI.now(),eT=setInterval(eD,1e3)),eA=1,eL(ej)))}function eH(e,t,n){var r=new eB;return t=null==t?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}eB.prototype=eO.prototype={constructor:eB,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?eC():+n)+(null==t?0:+t),this._next||e$===this||(e$?e$._next=this:eS=this,e$=this),this._call=e,this._time=n,eq()},stop:function(){this._call&&(this._call=null,this._time=1/0,eq())}};var eX=v("start","end","cancel","interrupt"),eY=[];function eZ(e,t,n,r,i,o){var s=e.__transition;if(s){if(n in s)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(a){var u,c,h,p;if(1!==n.state)return l();for(u in i)if((p=i[u]).name===n.name){if(3===p.state)return eH(o);4===p.state?(p.state=6,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete i[u]):+u<t&&(p.state=6,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete i[u])}if(eH(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(u=0,n.state=3,r=Array(h=n.tween.length),c=-1;u<h;++u)(p=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=p);r.length=c+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=5,1),o=-1,s=r.length;++o<s;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=eO(function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:eX,tween:eY,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function eV(e,t){var n=eU(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function eF(e,t){var n=eU(e,t);if(n.state>3)throw Error("too late; already running");return n}function eU(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function eQ(e,t){var n,r,i,o=e.__transition,s=!0;if(o){for(i in t=null==t?null:t+"",o){if((n=o[i]).name!==t){s=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]}s&&delete e.__transition}}var eK=n(83859),eW=180/Math.PI,eG={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function eJ(e,t,n,r,i,o){var s,l,a;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(a=e*n+t*r)&&(n-=e*a,r-=t*a),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,a/=l),e*r<t*n&&(e=-e,t=-t,a=-a,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*eW,skewX:Math.atan(a)*eW,scaleX:s,scaleY:l}}function e0(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,s){var l,a,u,c,h=[],p=[];return o=e(o),s=e(s),!function(e,r,i,o,s,l){if(e!==i||r!==o){var a=s.push("translate(",null,t,null,n);l.push({i:a-4,x:(0,eK.A)(e,i)},{i:a-2,x:(0,eK.A)(r,o)})}else(i||o)&&s.push("translate("+i+t+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,h,p),l=o.rotate,a=s.rotate,l!==a?(l-a>180?a+=360:a-l>180&&(l+=360),p.push({i:h.push(i(h)+"rotate(",null,r)-2,x:(0,eK.A)(l,a)})):a&&h.push(i(h)+"rotate("+a+r),u=o.skewX,c=s.skewX,u!==c?p.push({i:h.push(i(h)+"skewX(",null,r)-2,x:(0,eK.A)(u,c)}):c&&h.push(i(h)+"skewX("+c+r),!function(e,t,n,r,o,s){if(e!==n||t!==r){var l=o.push(i(o)+"scale(",null,",",null,")");s.push({i:l-4,x:(0,eK.A)(e,n)},{i:l-2,x:(0,eK.A)(t,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,h,p),o=s=null,function(e){for(var t,n=-1,r=p.length;++n<r;)h[(t=p[n]).i]=t.x(e);return h.join("")}}}var e1=e0(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?eG:eJ(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),e2=e0(function(e){return null==e?eG:(c||(c=document.createElementNS("http://www.w3.org/2000/svg","g")),c.setAttribute("transform",e),e=c.transform.baseVal.consolidate())?eJ((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):eG},", ",")",")");function e3(e,t,n){var r=e._id;return e.each(function(){var e=eF(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return eU(e,r).value[t]}}var e5=n(46166),e9=n(2923),e6=n(22763);function e4(e,t){var n;return("number"==typeof t?eK.A:t instanceof e5.Ay?e9.Ay:(n=(0,e5.Ay)(t))?(t=n,e9.Ay):e6.A)(e,t)}var e7=ea.prototype.constructor;function e8(e){return function(){this.style.removeProperty(e)}}var te=0;function tt(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}var tn=ea.prototype;tt.prototype=(function(e){return ea().transition(e)}).prototype={constructor:tt,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=_(e));for(var r=this._groups,i=r.length,o=Array(i),s=0;s<i;++s)for(var l,a,u=r[s],c=u.length,h=o[s]=Array(c),p=0;p<c;++p)(l=u[p])&&(a=e.call(l,l.__data__,p,u))&&("__data__"in l&&(a.__data__=l.__data__),h[p]=a,eZ(h[p],t,n,p,h,eU(l,n)));return new tt(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=S(e));for(var r=this._groups,i=r.length,o=[],s=[],l=0;l<i;++l)for(var a,u=r[l],c=u.length,h=0;h<c;++h)if(a=u[h]){for(var p,f=e.call(a,a.__data__,h,u),d=eU(a,n),g=0,y=f.length;g<y;++g)(p=f[g])&&eZ(p,t,n,g,f,d);o.push(f),s.push(a)}return new tt(o,s,t,n)},selectChild:tn.selectChild,selectChildren:tn.selectChildren,filter:function(e){"function"!=typeof e&&(e=$(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var o,s=t[i],l=s.length,a=r[i]=[],u=0;u<l;++u)(o=s[u])&&e.call(o,o.__data__,u,s)&&a.push(o);return new tt(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),s=Array(r),l=0;l<o;++l)for(var a,u=t[l],c=n[l],h=u.length,p=s[l]=Array(h),f=0;f<h;++f)(a=u[f]||c[f])&&(p[f]=a);for(;l<r;++l)s[l]=t[l];return new tt(s,this._parents,this._name,this._id)},selection:function(){return new e7(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++te,r=this._groups,i=r.length,o=0;o<i;++o)for(var s,l=r[o],a=l.length,u=0;u<a;++u)if(s=l[u]){var c=eU(s,t);eZ(s,e,n,u,l,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new tt(r,this._parents,e,n)},call:tn.call,nodes:tn.nodes,node:tn.node,size:tn.size,empty:tn.empty,each:tn.each,on:function(e,t){var n,r,i,o,s,l,a=this._id;return arguments.length<2?eU(this.node(),a).on.on(e):this.each((n=a,r=e,i=t,l=(r+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?eV:eF,function(){var e=l(this,n),t=e.on;t!==o&&(s=(o=t).copy()).on(r,i),e.on=s}))},attr:function(e,t){var n=D(e),r="transform"===n?e2:e4;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,o;return function(){var s,l,a=n(this);return null==a?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local))===(l=a+"")?null:s===r&&l===i?o:(i=l,o=t(r=s,a))}}:function(e,t,n){var r,i,o;return function(){var s,l,a=n(this);return null==a?void this.removeAttribute(e):(s=this.getAttribute(e))===(l=a+"")?null:s===r&&l===i?o:(i=l,o=t(r=s,a))}})(n,r,e3(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i,o=n+"";return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===r?i:i=t(r=s,n)}}:function(e,t,n){var r,i,o=n+"";return function(){var s=this.getAttribute(e);return s===o?null:s===r?i:i=t(r=s,n)}})(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var r=D(e);return this.tween(n,(r.local?function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttributeNS(e.space,e.local,i.call(this,t))}),n}return i._value=t,i}:function(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t){this.setAttribute(e,i.call(this,t))}),n}return i._value=t,i})(r,t))},style:function(e,t,n){var r,i,o,s,l,a,u,c,h,p,f,d,g,y,m,x,v,k,b,w,_,E="transform"==(e+="")?e1:e4;return null==t?this.styleTween(e,(r=e,function(){var e=H(this,r),t=(this.style.removeProperty(r),H(this,r));return e===t?null:e===i&&t===o?s:s=E(i=e,o=t)})).on("end.style."+e,e8(e)):"function"==typeof t?this.styleTween(e,(l=e,a=e3(this,"style."+e,t),function(){var e=H(this,l),t=a(this),n=t+"";return null==t&&(this.style.removeProperty(l),n=t=H(this,l)),e===n?null:e===u&&n===c?h:(c=n,h=E(u=e,t))})).each((p=this._id,v="end."+(x="style."+(f=e)),function(){var e=eF(this,p),t=e.on,n=null==e.value[x]?m||(m=e8(f)):void 0;(t!==d||y!==n)&&(g=(d=t).copy()).on(v,y=n),e.on=g})):this.styleTween(e,(k=e,_=t+"",function(){var e=H(this,k);return e===_?null:e===b?w:w=E(b=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw Error();return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t){this.style.setProperty(e,o.call(this,t),n)}),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=e3(this,"text",e),function(){var e=t(this);this.textContent=null==e?"":e}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){this.textContent=r.call(this,e)}),t}return r._value=e,r}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=eU(this.node(),n).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=eF(this,e),o=i.tween;if(o!==n){r=n=o;for(var s=0,l=r.length;s<l;++s)if(r[s].name===t){(r=r.slice()).splice(s,1);break}}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=eF(this,e),s=o.tween;if(s!==r){i=(r=s).slice();for(var l={name:t,value:n},a=0,u=i.length;a<u;++a)if(i[a].name===t){i[a]=l;break}a===u&&i.push(l)}o.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eV(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){eV(this,e).delay=t}})(t,e)):eU(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){eF(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t*=1,function(){eF(this,e).duration=t}})(t,e)):eU(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){eF(this,e).ease=t}}(t,e)):eU(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();eF(this,t).ease=n}))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var l={value:s},a={value:function(){0==--i&&o()}};n.each(function(){var n=eF(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(l),t._.interrupt.push(l),t._.end.push(a)),n.on=t}),0===i&&o()})},[Symbol.iterator]:tn[Symbol.iterator]};var tr={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};ea.prototype.interrupt=function(e){return this.each(function(){eQ(this,e)})},ea.prototype.transition=function(e){var t,n;e instanceof tt?(t=e._id,e=e._name):(t=++te,(n=tr).time=eC(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,l=r[o],a=l.length,u=0;u<a;++u)(s=l[u])&&eZ(s,e,t,u,l,n||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(s,t));return new tt(r,this._parents,e,t)};let ti=e=>()=>e;function to(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function ts(e,t,n){this.k=e,this.x=t,this.y=n}ts.prototype={constructor:ts,scale:function(e){return 1===e?this:new ts(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new ts(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var tl=new ts(1,0,0);function ta(e){for(;!e.__zoom;)if(!(e=e.parentNode))return tl;return e.__zoom}function tu(e){e.stopImmediatePropagation()}function tc(e){e.preventDefault(),e.stopImmediatePropagation()}function th(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function tp(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function tf(){return this.__zoom||tl}function td(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function tg(){return navigator.maxTouchPoints||"ontouchstart"in this}function ty(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function tm(){var e,t,n,r=th,i=tp,o=ty,s=td,l=tg,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],c=250,h=eE,p=v("start","zoom","end"),f=0,d=10;function g(e){e.property("__zoom",tf).on("wheel.zoom",_,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",S).filter(l).on("touchstart.zoom",$).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(e,t){return(t=Math.max(a[0],Math.min(a[1],t)))===e.k?e:new ts(t,e.x,e.y)}function m(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new ts(e.k,r,i)}function x(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function k(e,t,n,r){e.on("start.zoom",function(){b(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).event(r).end()}).tween("zoom",function(){var e=arguments,o=b(this,e).event(r),s=i.apply(this,e),l=null==n?x(s):"function"==typeof n?n.apply(this,e):n,a=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),u=this.__zoom,c="function"==typeof t?t.apply(this,e):t,p=h(u.invert(l).concat(a/u.k),c.invert(l).concat(a/c.k));return function(e){if(1===e)e=c;else{var t=p(e),n=a/t[2];e=new ts(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function b(e,t,n){return!n&&e.__zooming||new w(e,t)}function w(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=i.apply(e,t),this.taps=0}function _(e,...t){if(r.apply(this,arguments)){var n=b(this,t).event(e),i=this.__zoom,l=Math.max(a[0],Math.min(a[1],i.k*Math.pow(2,s.apply(this,arguments)))),c=ec(e);if(n.wheel)(n.mouse[0][0]!==c[0]||n.mouse[0][1]!==c[1])&&(n.mouse[1]=i.invert(n.mouse[0]=c)),clearTimeout(n.wheel);else{if(i.k===l)return;n.mouse=[c,i.invert(c)],eQ(this),n.start()}tc(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",o(m(y(i,l),n.mouse[0],n.mouse[1]),n.extent,u))}}function E(e,...t){if(!n&&r.apply(this,arguments)){var i=e.currentTarget,s=b(this,t,!0).event(e),l=eu(e.view).on("mousemove.zoom",function(e){if(tc(e),!s.moved){var t=e.clientX-c,n=e.clientY-h;s.moved=t*t+n*n>f}s.event(e).zoom("mouse",o(m(s.that.__zoom,s.mouse[0]=ec(e,i),s.mouse[1]),s.extent,u))},!0).on("mouseup.zoom",function(e){l.on("mousemove.zoom mouseup.zoom",null),ey(e.view,s.moved),tc(e),s.event(e).end()},!0),a=ec(e,i),c=e.clientX,h=e.clientY;eg(e.view),tu(e),s.mouse=[a,this.__zoom.invert(a)],eQ(this),s.start()}}function S(e,...t){if(r.apply(this,arguments)){var n=this.__zoom,s=ec(e.changedTouches?e.changedTouches[0]:e,this),l=n.invert(s),a=n.k*(e.shiftKey?.5:2),h=o(m(y(n,a),s,l),i.apply(this,t),u);tc(e),c>0?eu(this).transition().duration(c).call(k,h,s,e):eu(this).call(g.transform,h,s,e)}}function $(n,...i){if(r.apply(this,arguments)){var o,s,l,a,u=n.touches,c=u.length,h=b(this,i,n.changedTouches.length===c).event(n);for(tu(n),s=0;s<c;++s)a=[a=ec(l=u[s],this),this.__zoom.invert(a),l.identifier],h.touch0?h.touch1||h.touch0[2]===a[2]||(h.touch1=a,h.taps=0):(h.touch0=a,o=!0,h.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(h.taps<2&&(t=a[0],e=setTimeout(function(){e=null},500)),eQ(this),h.start())}}function A(e,...t){if(this.__zooming){var n,r,i,s,l=b(this,t).event(e),a=e.changedTouches,c=a.length;for(tc(e),n=0;n<c;++n)i=ec(r=a[n],this),l.touch0&&l.touch0[2]===r.identifier?l.touch0[0]=i:l.touch1&&l.touch1[2]===r.identifier&&(l.touch1[0]=i);if(r=l.that.__zoom,l.touch1){var h=l.touch0[0],p=l.touch0[1],f=l.touch1[0],d=l.touch1[1],g=(g=f[0]-h[0])*g+(g=f[1]-h[1])*g,x=(x=d[0]-p[0])*x+(x=d[1]-p[1])*x;r=y(r,Math.sqrt(g/x)),i=[(h[0]+f[0])/2,(h[1]+f[1])/2],s=[(p[0]+d[0])/2,(p[1]+d[1])/2]}else{if(!l.touch0)return;i=l.touch0[0],s=l.touch0[1]}l.zoom("touch",o(m(r,i,s),l.extent,u))}}function z(e,...r){if(this.__zooming){var i,o,s=b(this,r).event(e),l=e.changedTouches,a=l.length;for(tu(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<a;++i)o=l[i],s.touch0&&s.touch0[2]===o.identifier?delete s.touch0:s.touch1&&s.touch1[2]===o.identifier&&delete s.touch1;if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0]);else if(s.end(),2===s.taps&&(o=ec(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<d)){var u=eu(this).on("dblclick.zoom");u&&u.apply(this,arguments)}}}return g.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property("__zoom",tf),e!==i?k(e,t,n,r):i.interrupt().each(function(){b(this,arguments).event(r).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},g.scaleBy=function(e,t,n,r){g.scaleTo(e,function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n},n,r)},g.scaleTo=function(e,t,n,r){g.transform(e,function(){var e=i.apply(this,arguments),r=this.__zoom,s=null==n?x(e):"function"==typeof n?n.apply(this,arguments):n,l=r.invert(s),a="function"==typeof t?t.apply(this,arguments):t;return o(m(y(r,a),s,l),e,u)},n,r)},g.translateBy=function(e,t,n,r){g.transform(e,function(){return o(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),u)},null,r)},g.translateTo=function(e,t,n,r,s){g.transform(e,function(){var e=i.apply(this,arguments),s=this.__zoom,l=null==r?x(e):"function"==typeof r?r.apply(this,arguments):r;return o(tl.translate(l[0],l[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,u)},r,s)},w.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=eu(this.that).datum();p.call(e,this.that,new to(e,{sourceEvent:this.sourceEvent,target:g,type:e,transform:this.that.__zoom,dispatch:p}),t)}},g.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:ti(+e),g):s},g.filter=function(e){return arguments.length?(r="function"==typeof e?e:ti(!!e),g):r},g.touchable=function(e){return arguments.length?(l="function"==typeof e?e:ti(!!e),g):l},g.extent=function(e){return arguments.length?(i="function"==typeof e?e:ti([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),g):i},g.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],g):[a[0],a[1]]},g.translateExtent=function(e){return arguments.length?(u[0][0]=+e[0][0],u[1][0]=+e[1][0],u[0][1]=+e[0][1],u[1][1]=+e[1][1],g):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},g.constrain=function(e){return arguments.length?(o=e,g):o},g.duration=function(e){return arguments.length?(c=+e,g):c},g.interpolate=function(e){return arguments.length?(h=e,g):h},g.on=function(){var e=p.on.apply(p,arguments);return e===p?g:e},g.clickDistance=function(e){return arguments.length?(f=(e*=1)*e,g):Math.sqrt(f)},g.tapDistance=function(e){return arguments.length?(d=+e,g):d},g}ta.prototype=ts.prototype;var tx=n(67282);let tv={error001:(e="react")=>`Seems like you have not used zustand provider as an ancestor. Help: https://${e}flow.dev/error#001`,error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${"source"===e?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.",error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},tk=[[-1/0,-1/0],[1/0,1/0]],tb=["Enter"," ","Escape"],tw={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};(r=h||(h={})).Strict="strict",r.Loose="loose",(i=p||(p={})).Free="free",i.Vertical="vertical",i.Horizontal="horizontal",(o=f||(f={})).Partial="partial",o.Full="full";let t_={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};(s=d||(d={})).Bezier="default",s.Straight="straight",s.Step="step",s.SmoothStep="smoothstep",s.SimpleBezier="simplebezier",(l=g||(g={})).Arrow="arrow",l.ArrowClosed="arrowclosed",(a=y||(y={})).Left="left",a.Top="top",a.Right="right",a.Bottom="bottom";let tE={[y.Left]:y.Right,[y.Right]:y.Left,[y.Top]:y.Bottom,[y.Bottom]:y.Top};function tS(e){return null===e?null:e?"valid":"invalid"}let t$=e=>"id"in e&&"source"in e&&"target"in e,tA=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),tz=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),tT=(e,t=[0,0])=>{let{width:n,height:r}=t5(e),i=e.origin??t,o=n*i[0],s=r*i[1];return{x:e.position.x-o,y:e.position.y-s}},tM=(e,t={nodeOrigin:[0,0]})=>0===e.length?{x:0,y:0,width:0,height:0}:tX(e.reduce((e,n)=>{let r="string"==typeof n,i=t.nodeLookup||r?void 0:n;return t.nodeLookup&&(i=r?t.nodeLookup.get(n):tz(n)?n:t.nodeLookup.get(n.id)),tq(e,i?tZ(i,t.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),tP=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(e=>{(void 0===t.filter||t.filter(e))&&(n=tq(n,tZ(e)),r=!0)}),r?tX(n):{x:0,y:0,width:0,height:0}},tR=(e,t,[n,r,i]=[0,0,1],o=!1,s=!1)=>{let l={...tG(t,[n,r,i]),width:t.width/i,height:t.height/i},a=[];for(let t of e.values()){let{measured:e,selectable:n=!0,hidden:r=!1}=t;if(s&&!n||r)continue;let i=e.width??t.width??t.initialWidth??null,u=e.height??t.height??t.initialHeight??null,c=tF(l,tY(t)),h=(i??0)*(u??0),p=o&&c>0;(!t.internals.handleBounds||p||c>=h||t.dragging)&&a.push(t)}return a};async function tI({nodes:e,width:t,height:n,panZoom:r,minZoom:i,maxZoom:o},s){let l,a;if(0===e.size)return!0;let u=t1(tP((l=new Map,a=s?.nodes?new Set(s.nodes.map(e=>e.id)):null,e.forEach(e=>{e.measured.width&&e.measured.height&&(s?.includeHiddenNodes||!e.hidden)&&(!a||a.has(e.id))&&l.set(e.id,e)}),l)),t,n,s?.minZoom??i,s?.maxZoom??o,s?.padding??.1);return await r.setViewport(u,{duration:s?.duration,ease:s?.ease,interpolate:s?.interpolate}),!0}function tL({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:o}){let s=n.get(e),l=s.parentId?n.get(s.parentId):void 0,{x:a,y:u}=l?l.internals.positionAbsolute:{x:0,y:0},c=s.origin??r,h=s.extent||i;if("parent"!==s.extent||s.expandParent)l&&t3(s.extent)&&(h=[[s.extent[0][0]+a,s.extent[0][1]+u],[s.extent[1][0]+a,s.extent[1][1]+u]]);else if(l){let e=l.measured.width,t=l.measured.height;e&&t&&(h=[[a,u],[a+e,u+t]])}else o?.("005",tv.error005());let p=t3(h)?tB(t,h,s.measured):t;return(void 0===s.measured.width||void 0===s.measured.height)&&o?.("015",tv.error015()),{position:{x:p.x-a+(s.measured.width??0)*c[0],y:p.y-u+(s.measured.height??0)*c[1]},positionAbsolute:p}}async function tC({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:i}){let o,s=new Set(e.map(e=>e.id)),l=[];for(let e of n){if(!1===e.deletable)continue;let t=s.has(e.id),n=!t&&e.parentId&&l.find(t=>t.id===e.parentId);(t||n)&&l.push(e)}let a=new Set(t.map(e=>e.id)),u=r.filter(e=>!1!==e.deletable),c=(o=new Set,l.forEach(e=>{o.add(e.id)}),u.filter(e=>o.has(e.source)||o.has(e.target)));for(let e of u)a.has(e.id)&&!c.find(t=>t.id===e.id)&&c.push(e);if(!i)return{edges:c,nodes:l};let h=await i({nodes:l,edges:c});return"boolean"==typeof h?h?{edges:c,nodes:l}:{edges:[],nodes:[]}:h}let tN=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),tB=(e={x:0,y:0},t,n)=>({x:tN(e.x,t[0][0],t[1][0]-(n?.width??0)),y:tN(e.y,t[0][1],t[1][1]-(n?.height??0))});function tO(e,t,n){let{width:r,height:i}=t5(n),{x:o,y:s}=n.internals.positionAbsolute;return tB(e,[[o,s],[o+r,s+i]],t)}let tj=(e,t,n)=>e<t?tN(Math.abs(e-t),1,t)/t:e>n?-tN(Math.abs(e-n),1,t)/t:0,tD=(e,t,n=15,r=40)=>[tj(e.x,r,t.width-r)*n,tj(e.y,r,t.height-r)*n],tq=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),tH=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),tX=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),tY=(e,t=[0,0])=>{let{x:n,y:r}=tz(e)?e.internals.positionAbsolute:tT(e,t);return{x:n,y:r,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},tZ=(e,t=[0,0])=>{let{x:n,y:r}=tz(e)?e.internals.positionAbsolute:tT(e,t);return{x:n,y:r,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:r+(e.measured?.height??e.height??e.initialHeight??0)}},tV=(e,t)=>tX(tq(tH(e),tH(t))),tF=(e,t)=>Math.ceil(Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x))*Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y))),tU=e=>tQ(e.width)&&tQ(e.height)&&tQ(e.x)&&tQ(e.y),tQ=e=>!isNaN(e)&&isFinite(e),tK=(e,t)=>(e,t)=>{},tW=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),tG=({x:e,y:t},[n,r,i],o=!1,s=[1,1])=>{let l={x:(e-n)/i,y:(t-r)/i};return o?tW(l,s):l},tJ=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r});function t0(e,t){if("number"==typeof e)return Math.floor((t-t/(1+e))*.5);if("string"==typeof e&&e.endsWith("px")){let t=parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if("string"==typeof e&&e.endsWith("%")){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}let t1=(e,t,n,r,i,o)=>{let s=function(e,t,n){if("string"==typeof e||"number"==typeof e){let r=t0(e,n),i=t0(e,t);return{top:r,right:i,bottom:r,left:i,x:2*i,y:2*r}}if("object"==typeof e){let r=t0(e.top??e.y??0,n),i=t0(e.bottom??e.y??0,n),o=t0(e.left??e.x??0,t),s=t0(e.right??e.x??0,t);return{top:r,right:s,bottom:i,left:o,x:o+s,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(o,t,n),l=tN(Math.min((t-s.x)/e.width,(n-s.y)/e.height),r,i),a=e.x+e.width/2,u=e.y+e.height/2,c=t/2-a*l,h=n/2-u*l,p=function(e,t,n,r,i,o){let{x:s,y:l}=tJ(e,[t,n,r]),{x:a,y:u}=tJ({x:e.x+e.width,y:e.y+e.height},[t,n,r]);return{left:Math.floor(s),top:Math.floor(l),right:Math.floor(i-a),bottom:Math.floor(o-u)}}(e,c,h,l,t,n),f={left:Math.min(p.left-s.left,0),top:Math.min(p.top-s.top,0),right:Math.min(p.right-s.right,0),bottom:Math.min(p.bottom-s.bottom,0)};return{x:c-f.left+f.right,y:h-f.top+f.bottom,zoom:l}},t2=()=>"u">typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function t3(e){return null!=e&&"parent"!==e}function t5(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function t9(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function t6(e,t={width:0,height:0},n,r,i){let o={...e},s=r.get(n);if(s){let e=s.origin||i;o.x+=s.internals.positionAbsolute.x-(t.width??0)*e[0],o.y+=s.internals.positionAbsolute.y-(t.height??0)*e[1]}return o}function t4(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function t7(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function t8(e){return{...tw,...e||{}}}function ne(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){let{x:o,y:s}=ns(e),l=tG({x:o-(i?.left??0),y:s-(i?.top??0)},r),{x:a,y:u}=n?tW(l,t):l;return{xSnapped:a,ySnapped:u,...l}}let nt=e=>({width:e.offsetWidth,height:e.offsetHeight}),nn=e=>e?.getRootNode?.()||window?.document,nr=["INPUT","SELECT","TEXTAREA"];function ni(e){let t=e.composedPath?.()?.[0]||e.target;return t?.nodeType===1&&(nr.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey"))}let no=e=>"clientX"in e,ns=(e,t)=>{let n=no(e),r=n?e.clientX:e.touches?.[0].clientX,i=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:i-(t?.top??0)}},nl=(e,t,n,r,i)=>{let o=t.querySelectorAll(`.${e}`);return o&&o.length?Array.from(o).map(t=>{let o=t.getBoundingClientRect();return{id:t.getAttribute("data-handleid"),type:e,nodeId:i,position:t.getAttribute("data-handlepos"),x:(o.left-n.left)/r,y:(o.top-n.top)/r,...nt(t)}}):null};function na({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:o,targetControlX:s,targetControlY:l}){let a=.125*e+.375*i+.375*s+.125*n,u=.125*t+.375*o+.375*l+.125*r,c=Math.abs(a-e),h=Math.abs(u-t);return[a,u,c,h]}function nu(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function nc({pos:e,x1:t,y1:n,x2:r,y2:i,c:o}){switch(e){case y.Left:return[t-nu(t-r,o),n];case y.Right:return[t+nu(r-t,o),n];case y.Top:return[t,n-nu(n-i,o)];case y.Bottom:return[t,n+nu(i-n,o)]}}function nh({sourceX:e,sourceY:t,sourcePosition:n=y.Bottom,targetX:r,targetY:i,targetPosition:o=y.Top,curvature:s=.25}){let[l,a]=nc({pos:n,x1:e,y1:t,x2:r,y2:i,c:s}),[u,c]=nc({pos:o,x1:r,y1:i,x2:e,y2:t,c:s}),[h,p,f,d]=na({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:l,sourceControlY:a,targetControlX:u,targetControlY:c});return[`M${e},${t} C${l},${a} ${u},${c} ${r},${i}`,h,p,f,d]}function np({sourceX:e,sourceY:t,targetX:n,targetY:r}){let i=Math.abs(n-e)/2,o=Math.abs(r-t)/2;return[n<e?n+i:n-i,r<t?r+o:r-o,i,o]}function nf({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:o="basic"}){if("manual"===o)return r;let s=Math.max(e.parentId||i&&e.selected?e.internals.z:0,t.parentId||i&&t.selected?t.internals.z:0);return(i&&n?r+1e3:r)+s}function nd({sourceNode:e,targetNode:t,width:n,height:r,transform:i}){let o=tq(tZ(e),tZ(t));return o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1),tF({x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]},tX(o))>0}let ng=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,ny=(e,t,n={})=>{let r,i;if(!e.source||!e.target)return n.onError?.("006",tv.error006()),t;let o=n.getEdgeId||ng;return(i=r=t$(e)?{...e}:{...e,id:o(e)},t.some(e=>e.source===i.source&&e.target===i.target&&(e.sourceHandle===i.sourceHandle||!e.sourceHandle&&!i.sourceHandle)&&(e.targetHandle===i.targetHandle||!e.targetHandle&&!i.targetHandle)))?t:(null===r.sourceHandle&&delete r.sourceHandle,null===r.targetHandle&&delete r.targetHandle,t.concat(r))};function nm({sourceX:e,sourceY:t,targetX:n,targetY:r}){let[i,o,s,l]=np({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,o,s,l]}let nx={[y.Left]:{x:-1,y:0},[y.Right]:{x:1,y:0},[y.Top]:{x:0,y:-1},[y.Bottom]:{x:0,y:1}},nv=({source:e,sourcePosition:t=y.Bottom,target:n})=>t===y.Left||t===y.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},nk=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function nb({sourceX:e,sourceY:t,sourcePosition:n=y.Bottom,targetX:r,targetY:i,targetPosition:o=y.Top,borderRadius:s=5,centerX:l,centerY:a,offset:u=20,stepPosition:c=.5}){let[h,p,f,d,g]=function({source:e,sourcePosition:t=y.Bottom,target:n,targetPosition:r=y.Top,center:i,offset:o,stepPosition:s}){let l,a,u=nx[t],c=nx[r],h={x:e.x+u.x*o,y:e.y+u.y*o},p={x:n.x+c.x*o,y:n.y+c.y*o},f=nv({source:h,sourcePosition:t,target:p}),d=0!==f.x?"x":"y",g=f[d],m=[],x={x:0,y:0},v={x:0,y:0},[,,k,b]=np({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(u[d]*c[d]==-1){"x"===d?(l=i.x??h.x+(p.x-h.x)*s,a=i.y??(h.y+p.y)/2):(l=i.x??(h.x+p.x)/2,a=i.y??h.y+(p.y-h.y)*s);let e=[{x:l,y:h.y},{x:l,y:p.y}],t=[{x:h.x,y:a},{x:p.x,y:a}];m=u[d]===g?"x"===d?e:t:"x"===d?t:e}else{let i=[{x:h.x,y:p.y}],s=[{x:p.x,y:h.y}];if(m="x"===d?u.x===g?s:i:u.y===g?i:s,t===r){let t=Math.abs(e[d]-n[d]);if(t<=o){let r=Math.min(o-1,o-t);u[d]===g?x[d]=(h[d]>e[d]?-1:1)*r:v[d]=(p[d]>n[d]?-1:1)*r}}if(t!==r){let e="x"===d?"y":"x",t=u[d]===c[e],n=h[e]>p[e],r=h[e]<p[e];(1===u[d]&&(!t&&n||t&&r)||1!==u[d]&&(!t&&r||t&&n))&&(m="x"===d?i:s)}let f={x:h.x+x.x,y:h.y+x.y},y={x:p.x+v.x,y:p.y+v.y};Math.max(Math.abs(f.x-m[0].x),Math.abs(y.x-m[0].x))>=Math.max(Math.abs(f.y-m[0].y),Math.abs(y.y-m[0].y))?(l=(f.x+y.x)/2,a=m[0].y):(l=m[0].x,a=(f.y+y.y)/2)}let w={x:h.x+x.x,y:h.y+x.y},_={x:p.x+v.x,y:p.y+v.y};return[[e,...w.x!==m[0].x||w.y!==m[0].y?[w]:[],...m,..._.x!==m[m.length-1].x||_.y!==m[m.length-1].y?[_]:[],n],l,a,k,b]}({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:o,center:{x:l,y:a},offset:u,stepPosition:c}),m=`M${h[0].x} ${h[0].y}`;for(let e=1;e<h.length-1;e++)m+=function(e,t,n,r){let i=Math.min(nk(e,t)/2,nk(t,n)/2,r),{x:o,y:s}=t;if(e.x===o&&o===n.x||e.y===s&&s===n.y)return`L${o} ${s}`;if(e.y===s){let t=e.x<n.x?-1:1,r=e.y<n.y?1:-1;return`L ${o+i*t},${s}Q ${o},${s} ${o},${s+i*r}`}let l=e.x<n.x?1:-1,a=e.y<n.y?-1:1;return`L ${o},${s+i*a}Q ${o},${s} ${o+i*l},${s}`}(h[e-1],h[e],h[e+1],s);return[m+=`L${h[h.length-1].x} ${h[h.length-1].y}`,p,f,d,g]}function nw(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function n_(e){let{sourceNode:t,targetNode:n}=e;if(!nw(t)||!nw(n))return null;let r=t.internals.handleBounds||nE(t.handles),i=n.internals.handleBounds||nE(n.handles),o=n$(r?.source??[],e.sourceHandle),s=n$(e.connectionMode===h.Strict?i?.target??[]:(i?.target??[]).concat(i?.source??[]),e.targetHandle);if(!o||!s)return e.onError?.("008",tv.error008(!o?"source":"target",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;let l=o?.position||y.Bottom,a=s?.position||y.Top,u=nS(t,o,l),c=nS(n,s,a);return{sourceX:u.x,sourceY:u.y,targetX:c.x,targetY:c.y,sourcePosition:l,targetPosition:a}}function nE(e){if(!e)return null;let t=[],n=[];for(let r of e)r.width=r.width??1,r.height=r.height??1,"source"===r.type?t.push(r):"target"===r.type&&n.push(r);return{source:t,target:n}}function nS(e,t,n=y.Left,r=!1){let i=(t?.x??0)+e.internals.positionAbsolute.x,o=(t?.y??0)+e.internals.positionAbsolute.y,{width:s,height:l}=t??t5(e);if(r)return{x:i+s/2,y:o+l/2};switch(t?.position??n){case y.Top:return{x:i+s/2,y:o};case y.Right:return{x:i+s,y:o+l/2};case y.Bottom:return{x:i+s/2,y:o+l};case y.Left:return{x:i,y:o+l/2}}}function n$(e,t){return e&&(t?e.find(e=>e.id===t):e[0])||null}function nA(e,t){if(!e)return"";if("string"==typeof e)return e;let n=t?`${t}__`:"";return`${n}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`}function nz(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){let o=new Set;return e.reduce((e,s)=>([s.markerStart||r,s.markerEnd||i].forEach(r=>{if(r&&"object"==typeof r){let i=nA(r,t);o.has(i)||(e.push({id:i,color:r.color||n,...r}),o.add(i))}}),e),[]).sort((e,t)=>e.id.localeCompare(t.id))}let nT={nodeOrigin:[0,0],nodeExtent:tk,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},nM={...nT,checkEquality:!0};function nP(e,t){let n={...e};for(let e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function nR(e,t,n){let r=nP(nT,n);for(let n of e.values())if(n.parentId)nC(n,e,t,r);else{let e=tB(tT(n,r.nodeOrigin),t3(n.extent)?n.extent:r.nodeExtent,t5(n));n.internals.positionAbsolute=e}}function nI(e){return"manual"===e}function nL(e,t,n,r={}){let i=nP(nM,r),o={i:0},s=new Map(t),l=i?.elevateNodesOnSelect&&!nI(i.zIndexMode)?1e3:0,a=e.length>0,u=!1;for(let c of(t.clear(),n.clear(),e)){let e=s.get(c.id);if(i.checkEquality&&c===e?.internals.userNode)t.set(c.id,e);else{let n=tB(tT(c,i.nodeOrigin),t3(c.extent)?c.extent:i.nodeExtent,t5(c));e={...i.defaults,...c,measured:{width:c.measured?.width,height:c.measured?.height},internals:{positionAbsolute:n,handleBounds:function(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;let n=[],r=[];for(let t of e.handles){let i={id:t.id,width:t.width??1,height:t.height??1,nodeId:e.id,x:t.x,y:t.y,position:t.position,type:t.type};"source"===t.type?n.push(i):"target"===t.type&&r.push(i)}return{source:n,target:r}}(c,e),z:nN(c,l,i.zIndexMode),userNode:c}},t.set(c.id,e)}void 0!==e.measured&&void 0!==e.measured.width&&void 0!==e.measured.height||e.hidden||(a=!1),c.parentId&&nC(e,t,n,r,o),u||=c.selected??!1}return{nodesInitialized:a,hasSelectedNodes:u}}function nC(e,t,n,r,i){let{elevateNodesOnSelect:o,nodeOrigin:s,nodeExtent:l,zIndexMode:a}=nP(nT,r),u=e.parentId,c=t.get(u);if(!c)return void console.warn(`Parent node ${u} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);!function(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}(e,n),i&&!c.parentId&&void 0===c.internals.rootParentIndex&&"auto"===a&&(c.internals.rootParentIndex=++i.i,c.internals.z=c.internals.z+10*i.i),i&&void 0!==c.internals.rootParentIndex&&(i.i=c.internals.rootParentIndex);let{x:h,y:p,z:f}=function(e,t,n,r,i,o){let{x:s,y:l}=t.internals.positionAbsolute,a=t5(e),u=tT(e,n),c=t3(e.extent)?tB(u,e.extent,a):u,h=tB({x:s+c.x,y:l+c.y},r,a);"parent"===e.extent&&(h=tO(h,a,t));let p=nN(e,i,o),f=t.internals.z??0;return{x:h.x,y:h.y,z:f>=p?f+1:p}}(e,c,s,l,o&&!nI(a)?1e3:0,a),{positionAbsolute:d}=e.internals,g=h!==d.x||p!==d.y;(g||f!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:g?{x:h,y:p}:d,z:f}})}function nN(e,t,n){let r=tQ(e.zIndex)?e.zIndex:0;return nI(n)?r:r+(e.selected?t:0)}function nB(e,t,n,r=[0,0]){let i=[],o=new Map;for(let n of e){let e=t.get(n.parentId);if(!e)continue;let r=tV(o.get(n.parentId)?.expandedRect??tY(e),n.rect);o.set(n.parentId,{expandedRect:r,parent:e})}return o.size>0&&o.forEach(({expandedRect:t,parent:o},s)=>{let l=o.internals.positionAbsolute,a=t5(o),u=o.origin??r,c=t.x<l.x?Math.round(Math.abs(l.x-t.x)):0,h=t.y<l.y?Math.round(Math.abs(l.y-t.y)):0,p=Math.max(a.width,Math.round(t.width)),f=Math.max(a.height,Math.round(t.height)),d=(p-a.width)*u[0],g=(f-a.height)*u[1];(c>0||h>0||d||g)&&(i.push({id:s,type:"position",position:{x:o.position.x-c+d,y:o.position.y-h+g}}),n.get(s)?.forEach(t=>{e.some(e=>e.id===t.id)||i.push({id:t.id,type:"position",position:{x:t.position.x+c,y:t.position.y+h}})})),(a.width<t.width||a.height<t.height||c||h)&&i.push({id:s,type:"dimensions",setAttributes:!0,dimensions:{width:p+(c?u[0]*c-d:0),height:f+(h?u[1]*h-g:0)}})}),i}function nO(e,t,n,r,i,o,s){let l=r?.querySelector(".xyflow__viewport"),a=!1;if(!l)return{changes:[],updatedInternals:a};let u=[],c=window.getComputedStyle(l),{m22:h}=new window.DOMMatrixReadOnly(c.transform),p=[];for(let r of e.values()){let e=t.get(r.id);if(!e)continue;if(e.hidden){t.set(e.id,{...e,internals:{...e.internals,handleBounds:void 0}}),a=!0;continue}let l=nt(r.nodeElement),c=e.measured.width!==l.width||e.measured.height!==l.height;if(l.width&&l.height&&(c||!e.internals.handleBounds||r.force)){let f=r.nodeElement.getBoundingClientRect(),d=t3(e.extent)?e.extent:o,{positionAbsolute:g}=e.internals;e.parentId&&"parent"===e.extent?g=tO(g,l,t.get(e.parentId)):d&&(g=tB(g,d,l));let y={...e,measured:l,internals:{...e.internals,positionAbsolute:g,handleBounds:{source:nl("source",r.nodeElement,f,h,e.id),target:nl("target",r.nodeElement,f,h,e.id)}}};t.set(e.id,y),e.parentId&&nC(y,t,n,{nodeOrigin:i,zIndexMode:s}),a=!0,c&&(u.push({id:e.id,type:"dimensions",dimensions:l}),e.expandParent&&e.parentId&&p.push({id:e.id,parentId:e.parentId,rect:tY(y,i)}))}}if(p.length>0){let e=nB(p,t,n,i);u.push(...e)}return{changes:u,updatedInternals:a}}async function nj({delta:e,panZoom:t,transform:n,translateExtent:r,width:i,height:o}){if(!t||!e.x&&!e.y)return!1;let s=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[i,o]],r);return!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2])}function nD(e,t,n,r,i,o){let s=i,l=r.get(s)||new Map;r.set(s,l.set(n,t)),s=`${i}-${e}`;let a=r.get(s)||new Map;if(r.set(s,a.set(n,t)),o){s=`${i}-${e}-${o}`;let l=r.get(s)||new Map;r.set(s,l.set(n,t))}}function nq(e,t,n){for(let r of(e.clear(),t.clear(),n)){let{source:n,target:i,sourceHandle:o=null,targetHandle:s=null}=r,l={edgeId:r.id,source:n,target:i,sourceHandle:o,targetHandle:s},a=`${n}-${o}--${i}-${s}`;nD("source",l,`${i}-${s}--${n}-${o}`,e,n,o),nD("target",l,a,e,i,s),t.set(r.id,r)}}function nH(e,t,n){let r=e;do{if(r?.matches?.(t))return!0;if(r===n)break;r=r?.parentElement}while(r);return!1}function nX({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){let i=[];for(let[e,o]of t){let t=n.get(e)?.internals.userNode;t&&i.push({...t,position:o.position,dragging:r})}if(!e)return[i[0],i];let o=n.get(e)?.internals.userNode;return[o?{...o,position:t.get(e)?.position||o.position,dragging:r}:i[0],i]}function nY({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:i}){let o={x:null,y:null},s=0,l=new Map,a=!1,u={x:0,y:0},c=null,h=!1,p=null,f=!1,d=!1,g=null;return{update:function({noDragClassName:y,handleSelector:m,domNode:x,isSelectable:k,nodeId:b,nodeClickDistance:w=0}){function _({x:e,y:n}){let{nodeLookup:i,nodeExtent:s,snapGrid:a,snapToGrid:u,nodeOrigin:c,onNodeDrag:h,onSelectionDrag:p,onError:f,updateNodePositions:y}=t();o={x:e,y:n};let m=!1,x=l.size>1,v=x&&s?tH(tP(l)):null,k=x&&u?function({dragItems:e,snapGrid:t,x:n,y:r}){let i=e.values().next().value;if(!i)return null;let o={x:n-i.distance.x,y:r-i.distance.y},s=tW(o,t);return{x:s.x-o.x,y:s.y-o.y}}({dragItems:l,snapGrid:a,x:e,y:n}):null;for(let[t,r]of l){if(!i.has(t))continue;let o={x:e-r.distance.x,y:n-r.distance.y};u&&(o=k?{x:Math.round(o.x+k.x),y:Math.round(o.y+k.y)}:tW(o,a));let l=null;if(x&&s&&!r.extent&&v){let{positionAbsolute:e}=r.internals,t=e.x-v.x+s[0][0],n=e.x+r.measured.width-v.x2+s[1][0];l=[[t,e.y-v.y+s[0][1]],[n,e.y+r.measured.height-v.y2+s[1][1]]]}let{position:h,positionAbsolute:p}=tL({nodeId:t,nextPosition:o,nodeLookup:i,nodeExtent:l||s,nodeOrigin:c,onError:f});m=m||r.position.x!==h.x||r.position.y!==h.y,r.position=h,r.internals.positionAbsolute=p}if(d=d||m,m&&(y(l,!0),g&&(r||h||!b&&p))){let[e,t]=nX({nodeId:b,dragItems:l,nodeLookup:i});r?.(g,l,e,t),h?.(g,e,t),b||p?.(g,t)}}async function E(){if(!c)return;let{transform:e,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:i}=t();if(!i){a=!1,cancelAnimationFrame(s);return}let[l,h]=tD(u,c,r);(0!==l||0!==h)&&(o.x=(o.x??0)-l/e[2],o.y=(o.y??0)-h/e[2],await n({x:l,y:h})&&_(o)),s=requestAnimationFrame(E)}function S(r){let{nodeLookup:i,multiSelectionActive:s,nodesDraggable:a,transform:u,snapGrid:p,snapToGrid:f,selectNodesOnDrag:d,onNodeDragStart:g,onSelectionDragStart:y,unselectNodesAndEdges:m}=t();h=!0,d&&k||s||!b||i.get(b)?.selected||m(),k&&d&&b&&e?.(b);let x=ne(r.sourceEvent,{transform:u,snapGrid:p,snapToGrid:f,containerBounds:c});if(o=x,(l=function(e,t,n,r){let i=new Map;for(let[o,s]of e)if((s.selected||s.id===r)&&(!s.parentId||!function e(t,n){if(!t.parentId)return!1;let r=n.get(t.parentId);return!!r&&(!!r.selected||e(r,n))}(s,e))&&(s.draggable||t&&void 0===s.draggable)){let t=e.get(o);t&&i.set(o,{id:o,position:t.position||{x:0,y:0},distance:{x:n.x-t.internals.positionAbsolute.x,y:n.y-t.internals.positionAbsolute.y},extent:t.extent,parentId:t.parentId,origin:t.origin,expandParent:t.expandParent,internals:{positionAbsolute:t.internals.positionAbsolute||{x:0,y:0}},measured:{width:t.measured.width??0,height:t.measured.height??0}})}return i}(i,a,x,b)).size>0&&(n||g||!b&&y)){let[e,t]=nX({nodeId:b,dragItems:l,nodeLookup:i});n?.(r.sourceEvent,l,e,t),g?.(r.sourceEvent,e,t),b||y?.(r.sourceEvent,t)}}p=eu(x);let $=(function(){var e,t,n,r,i=ev,o=ek,s=eb,l=ew,a={},u=v("start","drag","end"),c=0,h=0;function p(e){e.on("mousedown.drag",f).filter(l).on("touchstart.drag",y).on("touchmove.drag",m,eh).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(s,l){if(!r&&i.call(this,s,l)){var a=k(this,o.call(this,s,l),s,l,"mouse");a&&(eu(s.view).on("mousemove.drag",d,ep).on("mouseup.drag",g,ep),eg(s.view),ef(s),n=!1,e=s.clientX,t=s.clientY,a("start",s))}}function d(r){if(ed(r),!n){var i=r.clientX-e,o=r.clientY-t;n=i*i+o*o>h}a.mouse("drag",r)}function g(e){eu(e.view).on("mousemove.drag mouseup.drag",null),ey(e.view,n),ed(e),a.mouse("end",e)}function y(e,t){if(i.call(this,e,t)){var n,r,s=e.changedTouches,l=o.call(this,e,t),a=s.length;for(n=0;n<a;++n)(r=k(this,l,e,t,s[n].identifier,s[n]))&&(ef(e),r("start",e,s[n]))}}function m(e){var t,n,r=e.changedTouches,i=r.length;for(t=0;t<i;++t)(n=a[r[t].identifier])&&(ed(e),n("drag",e,r[t]))}function x(e){var t,n,i=e.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),t=0;t<o;++t)(n=a[i[t].identifier])&&(ef(e),n("end",e,i[t]))}function k(e,t,n,r,i,o){var l,h,f,d=u.copy(),g=ec(o||n,t);if(null!=(f=s.call(e,new ex("beforestart",{sourceEvent:n,target:p,identifier:i,active:c,x:g[0],y:g[1],dx:0,dy:0,dispatch:d}),r)))return l=f.x-g[0]||0,h=f.y-g[1]||0,function n(o,s,u){var y,m=g;switch(o){case"start":a[i]=n,y=c++;break;case"end":delete a[i],--c;case"drag":g=ec(u||s,t),y=c}d.call(o,e,new ex(o,{sourceEvent:s,subject:f,target:p,identifier:i,active:y,x:g[0]+l,y:g[1]+h,dx:g[0]-m[0],dy:g[1]-m[1],dispatch:d}),r)}}return p.filter=function(e){return arguments.length?(i="function"==typeof e?e:em(!!e),p):i},p.container=function(e){return arguments.length?(o="function"==typeof e?e:em(e),p):o},p.subject=function(e){return arguments.length?(s="function"==typeof e?e:em(e),p):s},p.touchable=function(e){return arguments.length?(l="function"==typeof e?e:em(!!e),p):l},p.on=function(){var e=u.on.apply(u,arguments);return e===u?p:e},p.clickDistance=function(e){return arguments.length?(h=(e*=1)*e,p):Math.sqrt(h)},p})().clickDistance(w).on("start",e=>{let{domNode:n,nodeDragThreshold:r,transform:i,snapGrid:s,snapToGrid:l}=t();c=n?.getBoundingClientRect()||null,f=!1,d=!1,g=e.sourceEvent,0===r&&S(e),o=ne(e.sourceEvent,{transform:i,snapGrid:s,snapToGrid:l,containerBounds:c}),u=ns(e.sourceEvent,c)}).on("drag",e=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:i,snapToGrid:s,nodeDragThreshold:p,nodeLookup:d}=t(),y=ne(e.sourceEvent,{transform:r,snapGrid:i,snapToGrid:s,containerBounds:c});if(g=e.sourceEvent,("touchmove"===e.sourceEvent.type&&e.sourceEvent.touches.length>1||b&&!d.has(b))&&(f=!0),!f){if(!a&&n&&h&&(a=!0,E()),!h){let t=ns(e.sourceEvent,c),n=t.x-u.x,r=t.y-u.y;Math.sqrt(n*n+r*r)>p&&S(e)}(o.x!==y.xSnapped||o.y!==y.ySnapped)&&l&&h&&(u=ns(e.sourceEvent,c),_(y))}}).on("end",e=>{if(!h||f){f&&l.size>0&&t().updateNodePositions(l,!1);return}if(a=!1,h=!1,cancelAnimationFrame(s),l.size>0){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:o,onSelectionDragStop:s}=t();if(d&&(r(l,!1),d=!1),i||o||!b&&s){let[t,r]=nX({nodeId:b,dragItems:l,nodeLookup:n,dragging:!1});i?.(e.sourceEvent,l,t,r),o?.(e.sourceEvent,t,r),b||s?.(e.sourceEvent,r)}}}).filter(e=>{let t=e.target;return!e.button&&(!y||!nH(t,`.${y}`,x))&&(!m||nH(t,m,x))});p.call($)},destroy:function(){p?.on(".drag",null)}}}function nZ(e,t,n,r,i,o=!1){let s=r.get(e);if(!s)return null;let l="strict"===i?s.internals.handleBounds?.[t]:[...s.internals.handleBounds?.source??[],...s.internals.handleBounds?.target??[]],a=(n?l?.find(e=>e.id===n):l?.[0])??null;return a&&o?{...a,...nS(s,a,a.position,!0)}:a}function nV(e,t){return e?e:t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null}let nF=()=>!0;function nU(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:o,doc:s,lib:l,flowId:a,isValidConnection:u=nF,nodeLookup:c}){let p="target"===o,f=t?s.querySelector(`.${l}-flow__handle[data-id="${a}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:d,y:g}=ns(e),y=s.elementFromPoint(d,g),m=y?.classList.contains(`${l}-flow__handle`)?y:f,x={handleDomNode:m,isValid:!1,connection:null,toHandle:null};if(m){let e=nV(void 0,m),t=m.getAttribute("data-nodeid"),o=m.getAttribute("data-handleid"),s=m.classList.contains("connectable"),l=m.classList.contains("connectableend");if(!t||!e)return x;let a={source:p?t:r,sourceHandle:p?o:i,target:p?r:t,targetHandle:p?i:o};x.connection=a,x.isValid=s&&l&&(n===h.Strict?p&&"source"===e||!p&&"target"===e:t!==r||o!==i)&&u(a),x.toHandle=nZ(t,e,o,c,n,!0)}return x}let nQ={onPointerDown:function(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:o,isTarget:s,domNode:l,nodeLookup:a,lib:u,autoPanOnConnect:c,flowId:h,panBy:p,cancelConnection:f,onConnectStart:d,onConnect:g,onConnectEnd:m,isValidConnection:x=nF,onReconnectEnd:v,updateConnection:k,getTransform:b,getFromHandle:w,autoPanSpeed:_,dragThreshold:E=1,handleDomNode:S}){let $,A=nn(e.target),z=0,{x:T,y:M}=ns(e),P=nV(o,S),R=l?.getBoundingClientRect(),I=!1;if(!R||!P)return;let L=nZ(i,P,r,a,t);if(!L)return;let C=ns(e,R),N=!1,B=null,O=!1,j=null,D={...L,nodeId:i,type:P,position:L.position},q=a.get(i),H={inProgress:!0,isValid:null,from:nS(q,D,y.Left,!0),fromHandle:D,fromPosition:D.position,fromNode:q,to:C,toHandle:null,toPosition:tE[D.position],toNode:null,pointer:C};function X(){I=!0,k(H),d?.(e,{nodeId:i,handleId:r,handleType:P})}function Y(e){var o,l;let f;if(!I){let{x:t,y:n}=ns(e),r=t-T,i=n-M;if(!(r*r+i*i>E*E))return;X()}if(!w()||!D)return void Z(e);let d=b();$=function(e,t,n,r){let i=[],o=1/0;for(let s of function(e,t,n){let r=[],i={x:e.x-n,y:e.y-n,width:2*n,height:2*n};for(let e of t.values())tF(i,tY(e))>0&&r.push(e);return r}(e,n,t+250))for(let n of[...s.internals.handleBounds?.source??[],...s.internals.handleBounds?.target??[]]){if(r.nodeId===n.nodeId&&r.type===n.type&&r.id===n.id)continue;let{x:l,y:a}=nS(s,n,n.position,!0),u=Math.sqrt(Math.pow(l-e.x,2)+Math.pow(a-e.y,2));u>t||(u<o?(i=[{...n,x:l,y:a}],o=u):u===o&&i.push({...n,x:l,y:a}))}if(!i.length)return null;if(i.length>1){let e="source"===r.type?"target":"source";return i.find(t=>t.type===e)??i[0]}return i[0]}(tG(C=ns(e,R),d,!1,[1,1]),n,a,D),N||(!function e(){if(!c||!R)return;let[t,n]=tD(C,R,_);p({x:t,y:n}),z=requestAnimationFrame(e)}(),N=!0);let g=nU(e,{handle:$,connectionMode:t,fromNodeId:i,fromHandleId:r,fromType:s?"target":"source",isValidConnection:x,doc:A,lib:u,flowId:h,nodeLookup:a});j=g.handleDomNode,B=g.connection,o=!!$,l=g.isValid,f=null,l?f=!0:o&&!l&&(f=!1),O=f;let m=a.get(i),v=m?nS(m,D,y.Left,!0):H.from,S={...H,from:v,isValid:O,to:g.toHandle&&O?tJ({x:g.toHandle.x,y:g.toHandle.y},d):C,toHandle:g.toHandle,toPosition:O&&g.toHandle?g.toHandle.position:tE[D.position],toNode:g.toHandle?a.get(g.toHandle.nodeId):null,pointer:C};k(S),H=S}function Z(e){if(!("touches"in e)||!(e.touches.length>0)){if(I){($||j)&&B&&O&&g?.(B);let{inProgress:t,...n}=H,r={...n,toPosition:H.toHandle?H.toPosition:null};m?.(e,r),o&&v?.(e,r)}f(),cancelAnimationFrame(z),N=!1,O=!1,B=null,j=null,A.removeEventListener("mousemove",Y),A.removeEventListener("mouseup",Z),A.removeEventListener("touchmove",Y),A.removeEventListener("touchend",Z)}}0===E&&X(),A.addEventListener("mousemove",Y),A.addEventListener("mouseup",Z),A.addEventListener("touchmove",Y),A.addEventListener("touchend",Z)},isValid:nU};function nK({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){let i=eu(e);return{update:function({translateExtent:e,width:o,height:s,zoomStep:l=1,pannable:a=!0,zoomable:u=!0,inversePan:c=!1}){let h=[0,0],p=tm().on("start",e=>{("mousedown"===e.sourceEvent.type||"touchstart"===e.sourceEvent.type)&&(h=[e.sourceEvent.clientX??e.sourceEvent.touches[0].clientX,e.sourceEvent.clientY??e.sourceEvent.touches[0].clientY])}).on("zoom",a?i=>{let l=n();if("mousemove"!==i.sourceEvent.type&&"touchmove"!==i.sourceEvent.type||!t)return;let a=[i.sourceEvent.clientX??i.sourceEvent.touches[0].clientX,i.sourceEvent.clientY??i.sourceEvent.touches[0].clientY],u=[a[0]-h[0],a[1]-h[1]];h=a;let p=r()*Math.max(l[2],Math.log(l[2]))*(c?-1:1),f={x:l[0]-u[0]*p,y:l[1]-u[1]*p};t.setViewportConstrained({x:f.x,y:f.y,zoom:l[2]},[[0,0],[o,s]],e)}:null).on("zoom.wheel",u?e=>{if("wheel"!==e.sourceEvent.type||!t)return;let r=n(),i=e.sourceEvent.ctrlKey&&t2()?10:1,o=-e.sourceEvent.deltaY*(1===e.sourceEvent.deltaMode?.05:e.sourceEvent.deltaMode?1:.002)*l,s=r[2]*Math.pow(2,o*i);t.scaleTo(s)}:null);i.call(p,{})},destroy:function(){i.on("zoom",null)},pointer:ec}}let nW=e=>({x:e.x,y:e.y,zoom:e.k}),nG=({x:e,y:t,zoom:n})=>tl.translate(e,t).scale(n),nJ=(e,t)=>e.target.closest(`.${t}`),n0=(e,t)=>2===t&&Array.isArray(e)&&e.includes(2),n1=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,n2=(e,t=0,n=n1,r=()=>{})=>{let i="number"==typeof t&&t>0;return i||r(),i?e.transition().duration(t).ease(n).on("end",r):e},n3=e=>{let t=e.ctrlKey&&t2()?10:1;return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*t};function n5({domNode:e,minZoom:t,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:o,onPanZoomStart:s,onPanZoomEnd:l,onDraggingChange:a}){let u={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},c=e.getBoundingClientRect(),h=tm().scaleExtent([t,n]).translateExtent(r),f=eu(e).call(h);x({x:i.x,y:i.y,zoom:tN(i.zoom,t,n)},[[0,0],[c.width,c.height]],r);let d=f.on("wheel.zoom"),g=f.on("dblclick.zoom");async function y(e,t){return!!f&&new Promise(n=>{h?.interpolate(t?.interpolate==="linear"?tx.A:eE).transform(n2(f,t?.duration,t?.ease,()=>n(!0)),e)})}function m(){h.on("zoom",null)}async function x(e,t,n){let r=nG(e),i=h?.constrain()(r,t,n);return i&&await y(i),i}return h.wheelDelta(n3),{update:function({noWheelClassName:e,noPanClassName:t,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:i,panOnDrag:c,panOnScrollMode:y,panOnScrollSpeed:x,preventScrolling:v,zoomOnPinch:k,zoomOnScroll:b,zoomOnDoubleClick:w,zoomActivationKeyPressed:_,lib:E,onTransformChange:S,connectionInProgress:$,paneClickDistance:A,selectionOnDrag:z}){r&&!u.isZoomingOrPanning&&m();let T=i&&!_&&!r;h.clickDistance(z?1/0:!tQ(A)||A<0?0:A);let M=T?function({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:o,zoomOnPinch:s,onPanZoomStart:l,onPanZoom:a,onPanZoomEnd:u}){return c=>{if(nJ(c,t))return c.ctrlKey&&c.preventDefault(),!1;c.preventDefault(),c.stopImmediatePropagation();let h=n.property("__zoom").k||1;if(c.ctrlKey&&s){let e=ec(c),t=h*Math.pow(2,n3(c));r.scaleTo(n,t,e,c);return}let f=1===c.deltaMode?20:1,d=i===p.Vertical?0:c.deltaX*f,g=i===p.Horizontal?0:c.deltaY*f;!t2()&&c.shiftKey&&i!==p.Vertical&&(d=c.deltaY*f,g=0),r.translateBy(n,-(d/h)*o,-(g/h)*o,{internal:!0});let y=nW(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(a?.(c,y),e.panScrollTimeout=setTimeout(()=>{u?.(c,y),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,l?.(c,y))}}({zoomPanValues:u,noWheelClassName:e,d3Selection:f,d3Zoom:h,panOnScrollMode:y,panOnScrollSpeed:x,zoomOnPinch:k,onPanZoomStart:s,onPanZoom:o,onPanZoomEnd:l}):function({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,i){let o="wheel"===r.type,s=!t&&o&&!r.ctrlKey,l=nJ(r,e);if(r.ctrlKey&&o&&l&&r.preventDefault(),s||l)return null;r.preventDefault(),n.call(this,r,i)}}({noWheelClassName:e,preventScrolling:v,d3ZoomHandler:d});f.on("wheel.zoom",M,{passive:!1});let P=function({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let i=nW(r.transform);e.mouseButton=r.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=i,r.sourceEvent?.type==="mousedown"&&t(!0),n&&n?.(r.sourceEvent,i)}}({zoomPanValues:u,onDraggingChange:a,onPanZoomStart:s});h.on("start",P);let R=function({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return o=>{e.usedRightMouseButton=!!(n&&n0(t,e.mouseButton??0)),o.sourceEvent?.sync||r([o.transform.x,o.transform.y,o.transform.k]),i&&!o.sourceEvent?.internal&&i?.(o.sourceEvent,nW(o.transform))}}({zoomPanValues:u,panOnDrag:c,onPaneContextMenu:!!n,onPanZoom:o,onTransformChange:S});h.on("zoom",R);let I=function({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:o}){return s=>{if(!s.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,o&&n0(t,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&o(s.sourceEvent),e.usedRightMouseButton=!1,r(!1),i)){let t=nW(s.transform);e.prevViewport=t,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{i?.(s.sourceEvent,t)},150*!!n)}}}({zoomPanValues:u,panOnDrag:c,panOnScroll:i,onPaneContextMenu:n,onPanZoomEnd:l,onDraggingChange:a});h.on("end",I);let L=function({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:o,userSelectionActive:s,noWheelClassName:l,noPanClassName:a,lib:u,connectionInProgress:c}){return h=>{let p=e||t,f=n&&h.ctrlKey,d="wheel"===h.type;if(1===h.button&&"mousedown"===h.type&&(nJ(h,`${u}-flow__node`)||nJ(h,`${u}-flow__edge`)))return!0;if(!r&&!p&&!i&&!o&&!n||s||c&&!d||nJ(h,l)&&d||nJ(h,a)&&(!d||i&&d&&!e)||!n&&h.ctrlKey&&d)return!1;if(!n&&"touchstart"===h.type&&h.touches?.length>1)return h.preventDefault(),!1;if(!p&&!i&&!f&&d||!r&&("mousedown"===h.type||"touchstart"===h.type)||Array.isArray(r)&&!r.includes(h.button)&&"mousedown"===h.type)return!1;let g=Array.isArray(r)&&r.includes(h.button)||!h.button||h.button<=1;return(!h.ctrlKey||d)&&g}}({zoomActivationKeyPressed:_,panOnDrag:c,zoomOnScroll:b,panOnScroll:i,zoomOnDoubleClick:w,zoomOnPinch:k,userSelectionActive:r,noPanClassName:t,noWheelClassName:e,lib:E,connectionInProgress:$});h.filter(L),w?f.on("dblclick.zoom",g):f.on("dblclick.zoom",null)},destroy:m,setViewport:async function e(e,t){let n=nG(e);return await y(n,t),n},setViewportConstrained:x,getViewport:function(){let e=f?ta(f.node()):{x:0,y:0,k:1};return{x:e.x,y:e.y,zoom:e.k}},scaleTo:async function e(e,t){return!!f&&new Promise(n=>{h?.interpolate(t?.interpolate==="linear"?tx.A:eE).scaleTo(n2(f,t?.duration,t?.ease,()=>n(!0)),e)})},scaleBy:async function e(e,t){return!!f&&new Promise(n=>{h?.interpolate(t?.interpolate==="linear"?tx.A:eE).scaleBy(n2(f,t?.duration,t?.ease,()=>n(!0)),e)})},setScaleExtent:function(e){h?.scaleExtent(e)},setTranslateExtent:function(e){h?.translateExtent(e)},syncViewport:function(e){if(f){let t=nG(e),n=f.property("__zoom");(n.k!==e.zoom||n.x!==e.x||n.y!==e.y)&&h?.transform(f,t,null,{sync:!0})}},setClickDistance:function(e){let t=!tQ(e)||e<0?0:e;h?.clickDistance(t)}}}(u=m||(m={})).Line="line",u.Handle="handle"},9233:(e,t,n)=>{"use strict";function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(t,{xI:()=>ek});var i=r(),o={exec:()=>null};function s(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function l(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(u.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var a=((e="")=>{try{return!!RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),u={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:s(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:s(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:s(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:s(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:s(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:s(e=>RegExp(`^ {0,${e}}>`))},c=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,h=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,p=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,f=l(p).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),d=l(p).replace(/bull/g,h).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),g=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,y=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,m=l(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",y).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),x=l(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,h).getRegex(),v="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",k=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,b=l("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",k).replace("tag",v).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),w=l(g).replace("hr",c).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),_={blockquote:l(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",w).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:m,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:c,html:b,lheading:f,list:x,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:w,table:o,text:/^[^\n]+/},E=l("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",c).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex(),S={..._,lheading:d,table:E,paragraph:l(g).replace("hr",c).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",E).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",v).getRegex()},$={..._,html:l("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",k).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:o,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:l(g).replace("hr",c).replace("heading",` *#{1,6} *[^
2
- ]`).replace("lheading",f).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},A=/^( {2,}|\\)\n(?!\s*$)/,z=/[\p{P}\p{S}]/u,T=/[\s\p{P}\p{S}]/u,M=/[^\s\p{P}\p{S}]/u,P=l(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,T).getRegex(),R=/(?!~)[\p{P}\p{S}]/u,I=l(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",a?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),L=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,C=l(L,"u").replace(/punct/g,z).getRegex(),N=l(L,"u").replace(/punct/g,R).getRegex(),B="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",O=l(B,"gu").replace(/notPunctSpace/g,M).replace(/punctSpace/g,T).replace(/punct/g,z).getRegex(),j=l(B,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,R).getRegex(),D=l("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,M).replace(/punctSpace/g,T).replace(/punct/g,z).getRegex(),q=l(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,z).getRegex(),H=l("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,M).replace(/punctSpace/g,T).replace(/punct/g,z).getRegex(),X=l(/\\(punct)/,"gu").replace(/punct/g,z).getRegex(),Y=l(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Z=l(k).replace("(?:--\x3e|$)","--\x3e").getRegex(),V=l("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Z).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),F=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,U=l(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",F).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Q=l(/^!?\[(label)\]\[(ref)\]/).replace("label",F).replace("ref",y).getRegex(),K=l(/^!?\[(ref)\](?:\[\])?/).replace("ref",y).getRegex(),W=l("reflink|nolink(?!\\()","g").replace("reflink",Q).replace("nolink",K).getRegex(),G=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,J={_backpedal:o,anyPunctuation:X,autolink:Y,blockSkip:I,br:A,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:o,delLDelim:o,delRDelim:o,emStrongLDelim:C,emStrongRDelimAst:O,emStrongRDelimUnd:D,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:U,nolink:K,punctuation:P,reflink:Q,reflinkSearch:W,tag:V,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:o},ee={...J,link:l(/^!?\[(label)\]\((.*?)\)/).replace("label",F).getRegex(),reflink:l(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",F).getRegex()},et={...J,emStrongRDelimAst:j,emStrongLDelim:N,delLDelim:q,delRDelim:H,url:l(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",G).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:l(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",G).getRegex()},en={...et,br:l(A).replace("{2,}","*").getRegex(),text:l(et.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},er={normal:_,gfm:S,pedantic:$},ei={normal:J,gfm:et,breaks:en,pedantic:ee},eo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},es=e=>eo[e];function el(e,t){if(t){if(u.escapeTest.test(e))return e.replace(u.escapeReplace,es)}else if(u.escapeTestNoEncode.test(e))return e.replace(u.escapeReplaceNoEncode,es);return e}function ea(e){try{e=encodeURI(e).replace(u.percentDecode,"%")}catch{return null}return e}function eu(e,t){let n=e.replace(u.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(u.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(u.slashPipe,"|");return n}function ec(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let o=e.charAt(r-i-1);if(o!==t||n)if(o!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function eh(e){let t=e.split(`
3
- `),n=t.length-1;for(;n>=0&&u.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
4
- `)}function ep(e,t,n,r,i){let o=t.href,s=t.title||null,l=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let a={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:o,title:s,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,a}var ef=class{options;rules;lexer;constructor(e){this.options=e||i}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:eh(t[0]),n=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:n}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(`
5
- `).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
6
- `)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=ec(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:ec(t[0],`
7
- `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ec(t[0],`
8
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=ec(t[0],`
9
- `).split(`
10
- `),n="",r="",i=[];for(;e.length>0;){let t=!1,o=[],s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))o.push(e[s]),t=!0;else if(t)break;else o.push(e[s]);e=e.slice(s);let l=o.join(`
11
- `),a=l.replace(this.rules.other.blockquoteSetextReplace,`
12
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
13
- ${l}`:l,r=r?`${r}
14
- ${a}`:a;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(a,i,!0),this.lexer.state.top=u,0===e.length)break;let c=i.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let t=c.raw+`
15
- `+e.join(`
16
- `),o=this.blockquote(t);i[i.length-1]=o,n=n.substring(0,n.length-c.raw.length)+o.raw,r=r.substring(0,r.length-c.text.length)+o.text;break}if(c?.type==="list"){let t=c.raw+`
17
- `+e.join(`
18
- `),o=this.list(t);i[i.length-1]=o,n=n.substring(0,n.length-c.raw.length)+o.raw,r=r.substring(0,r.length-c.raw.length)+o.raw,e=t.substring(i.at(-1).raw.length).split(`
19
- `);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let o=this.rules.other.listItemRegex(n),s=!1;for(;e;){let n=!1,r="",l="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let a=function(e,t=0){let n=t,r="";for(let t of e)if(" "===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}(t[2].split(`
20
- `,1)[0],t[1].length),u=e.split(`
21
- `,1)[0],c=!a.trim(),h=0;if(this.options.pedantic?(h=2,l=a.trimStart()):c?h=t[1].length+1:(h=(h=a.search(this.rules.other.nonSpaceChar))>4?1:h,l=a.slice(h),h+=t[1].length),c&&this.rules.other.blankLine.test(u)&&(r+=u+`
22
- `,e=e.substring(u.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),o=this.rules.other.headingBeginRegex(h),s=this.rules.other.htmlBeginRegex(h),p=this.rules.other.blockquoteBeginRegex(h);for(;e;){let f=e.split(`
23
- `,1)[0],d;if(u=f,d=this.options.pedantic?u=u.replace(this.rules.other.listReplaceNesting," "):u.replace(this.rules.other.tabCharGlobal," "),i.test(u)||o.test(u)||s.test(u)||p.test(u)||t.test(u)||n.test(u))break;if(d.search(this.rules.other.nonSpaceChar)>=h||!u.trim())l+=`
24
- `+d.slice(h);else{if(c||a.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(a)||o.test(a)||n.test(a))break;l+=`
25
- `+u}c=!u.trim(),r+=f+`
26
- `,e=e.substring(f.length+1),a=d.slice(h)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0)),i.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(l),loose:!1,text:l,tokens:[]}),i.raw+=r}let l=i.items.at(-1);if(!l)return;for(let e of(l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd(),i.raw=i.raw.trimEnd(),i.items)){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(e.task&&(t?.type==="text"||t?.type==="paragraph")){e.text=e.text.replace(this.rules.other.listReplaceTask,""),t.raw=t.raw.replace(this.rules.other.listReplaceTask,""),t.text=t.text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:"checkbox",raw:n[0]+" ",checked:"[ ]"!==n[0]};e.checked=t.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:"paragraph",raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&(e.task=!1);if(!i.loose){let t=e.tokens.filter(e=>"space"===e.type);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=eh(t[0]);return{type:"html",block:!0,raw:e,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:ec(t[0],`
27
- `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=eu(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
28
- `):[],o={type:"table",raw:ec(t[0],`
29
- `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<n.length;e++)o.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:o.align[e]});for(let e of i)o.rows.push(eu(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:ec(t[0],`
30
- `),depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
31
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=ec(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if("("===e[n])t++;else if(")"===e[n]&&--t<0)return n;return t>0?-2:-1}(t[2]);if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),ep(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return ep(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,o,s=n,l=0,a="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=a.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(o=[...i].length,r[3]||r[4]){s+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){l+=o;continue}if((s-=o)>0)continue;o=Math.min(o,o+s+l);let t=[...r[0]][0].length,a=e.slice(0,n+r.index+t+o);if(Math.min(n,o)%2){let e=a.slice(1,-1);return{type:"em",raw:a,text:e,tokens:this.lexer.inlineTokens(e)}}let u=a.slice(2,-2);return{type:"strong",raw:a,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,o,s=n,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!==(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])||(o=[...i].length)!==n)continue;if(r[3]||r[4]){s+=o;continue}if((s-=o)>0)continue;o=Math.min(o,o+s);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+o),a=l.slice(n,-n);return{type:"del",raw:l,text:a,tokens:this.lexer.inlineTokens(a)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},ed=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new ef,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:u,block:er.normal,inline:ei.normal};this.options.pedantic?(t.block=er.pedantic,t.inline=ei.pedantic):this.options.gfm&&(t.block=er.gfm,this.options.breaks?t.inline=ei.breaks:t.inline=ei.gfm),this.tokenizer.rules=t}static get rules(){return{block:er,inline:ei}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(u.carriageReturn,`
32
- `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(u.tabCharGlobal," ").replace(u.spaceLine,""));let r=1/0;for(;e;){let i;if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}if(this.options.extensions?.block?.some(n=>!!(i=n.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);1===i.raw.length&&void 0!==n?n.raw+=`
33
- `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
34
- `)?"":`
35
- `)+i.raw,n.text+=`
36
- `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if((i=this.tokenizer.fences(e))||(i=this.tokenizer.heading(e))||(i=this.tokenizer.hr(e))||(i=this.tokenizer.blockquote(e))||(i=this.tokenizer.list(e))||(i=this.tokenizer.html(e))){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`
37
- `)?"":`
38
- `)+i.raw,n.text+=`
39
- `+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if((i=this.tokenizer.table(e))||(i=this.tokenizer.lheading(e))){e=e.substring(i.raw.length),t.push(i);continue}let o=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){let r=t.at(-1);n&&r?.type==="paragraph"?(r.raw+=(r.raw.endsWith(`
40
- `)?"":`
41
- `)+i.raw,r.text+=`
42
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=o.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`
43
- `)?"":`
44
- `)+i.raw,n.text+=`
45
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n;this.tokenizer.lexer=this;let r=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let o=!1,s="",l=1/0;for(;e;){let n;if(e.length<l)l=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}if(o||(s=""),o=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,r,s))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e,r,s))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),o=!0;let r=t.at(-1);r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(this.options.silent)console.error(t);else throw Error(t)}},eg=class{options;parser;constructor(e){this.options=e||i}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(u.notSpaceStart)?.[0],i=e.replace(u.endingNewline,"")+`
46
- `;return r?'<pre><code class="language-'+el(r)+'">'+(n?i:el(i,!0))+`</code></pre>
47
- `:"<pre><code>"+(n?i:el(i,!0))+`</code></pre>
48
- `}blockquote({tokens:e}){return`<blockquote>
49
- ${this.parser.parse(e)}</blockquote>
50
- `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
51
- `}hr(e){return`<hr>
52
- `}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+`>
53
- `+r+"</"+i+`>
54
- `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
55
- `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
56
- `}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
57
- <thead>
58
- `+t+`</thead>
59
- `+r+`</table>
60
- `}tablerow({text:e}){return`<tr>
61
- ${e}</tr>
62
- `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
63
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${el(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=ea(e);if(null===i)return r;let o='<a href="'+(e=i)+'"';return t&&(o+=' title="'+el(t)+'"'),o+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=ea(e);if(null===i)return el(n);e=i;let o=`<img src="${e}" alt="${el(n)}"`;return t&&(o+=` title="${el(t)}"`),o+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:el(e.text)}},ey=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},em=class e{options;renderer;textRenderer;constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new eg,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ey}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(r.type)){t+=e||"";continue}}switch(r.type){case"space":t+=this.renderer.space(r);break;case"hr":t+=this.renderer.hr(r);break;case"heading":t+=this.renderer.heading(r);break;case"code":t+=this.renderer.code(r);break;case"table":t+=this.renderer.table(r);break;case"blockquote":t+=this.renderer.blockquote(r);break;case"list":t+=this.renderer.list(r);break;case"checkbox":t+=this.renderer.checkbox(r);break;case"html":t+=this.renderer.html(r);break;case"def":t+=this.renderer.def(r);break;case"paragraph":t+=this.renderer.paragraph(r);break;case"text":t+=this.renderer.text(r);break;default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},ex=class{options;block;constructor(e){this.options=e||i}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?ed.lex:ed.lexInline}provideParser(e=this.block){return e?em.parse:em.parseInline}},ev=new class{defaults=r();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=em;Renderer=eg;TextRenderer=ey;Lexer=ed;Tokenizer=ef;Hooks=ex;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new eg(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ef(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ex;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];ex.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&ex.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return i.call(t,n)})();let o=r.call(t,e);return i.call(t,o)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ed.lex(e,t??this.defaults)}parser(e,t){return em.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return o(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return o(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer(e):e?ed.lex:ed.lexInline)(n,i),o=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(o,i.walkTokens));let s=await (i.hooks?await i.hooks.provideParser(e):e?em.parse:em.parseInline)(o,i);return i.hooks?await i.hooks.postprocess(s):s})().catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?ed.lex:ed.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?em.parse:em.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return o(e)}}}onError(e,t){return n=>{if(n.message+=`
64
- Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+el(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function ek(e,t){return ev.parse(e,t)}ek.options=ek.setOptions=function(e){return ev.setOptions(e),ek.defaults=ev.defaults,i=ek.defaults,ek},ek.getDefaults=r,ek.defaults=i,ek.use=function(...e){return ev.use(...e),ek.defaults=ev.defaults,i=ek.defaults,ek},ek.walkTokens=function(e,t){return ev.walkTokens(e,t)},ek.parseInline=ev.parseInline,ek.Parser=em,ek.parser=em.parse,ek.Renderer=eg,ek.TextRenderer=ey,ek.Lexer=ed,ek.lexer=ed.lex,ek.Tokenizer=ef,ek.Hooks=ex,ek.parse=ek,ek.options,ek.setOptions,ek.use,ek.walkTokens,ek.parseInline,em.parse,ed.lex},10857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return k},MissingStaticPage:function(){return v},NormalizeError:function(){return m},PageNotFoundError:function(){return x},SP:function(){return d},ST:function(){return g},WEB_VITALS:function(){return i},execOnce:function(){return o},getDisplayName:function(){return c},getLocationOrigin:function(){return a},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return h},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return b}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});let i=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>s.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function u(){let{href:e}=window.location,t=a();return e.substring(t.length)}function c(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function h(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&h(n))return r;if(!r)throw Object.defineProperty(Error(`"${c(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return r}let d="u">typeof performance,g=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class m extends Error{}class x extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class k extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function b(e){return JSON.stringify({message:e.message,stack:e.stack})}},20091:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={formatUrl:function(){return l},formatWithValidation:function(){return u},urlObjectKeys:function(){return a}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let o=n(66388)._(n(31393)),s=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:n}=e,r=e.protocol||"",i=e.pathname||"",l=e.hash||"",a=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(u+=":"+e.port)),a&&"object"==typeof a&&(a=String(o.urlQueryToSearchParams(a)));let c=e.search||a&&`?${a}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||s.test(r))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${r}${u}${i}${c}${l}`}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return l(e)}},21172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let r=n(12115);function i(e,t){let n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let e=n.current;e&&(n.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(n.current=o(e,r)),t&&(i.current=o(t,r))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let n=e(t);return"function"==typeof n?n:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29842:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},31393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return i},urlQueryToSearchParams:function(){return s}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});function i(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,o(e));else t.set(n,o(r));return t}function l(e,...t){for(let n of t){for(let t of n.keys())e.delete(t);for(let[t,r]of n.entries())e.append(t,r)}return e}},53255:()=>{},69470:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let r=n(10857),i=n(48512);function o(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,i.hasBasePath)(n.pathname)}catch(e){return!1}}},69684:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(t){if("string"==typeof t||"number"==typeof t)return""+t;let n="";if(Array.isArray(t))for(let r=0,i;r<t.length;r++)""!==(i=e(t[r]))&&(n+=(n&&" ")+i);else for(let e in t)t[e]&&(n+=(n&&" ")+e);return n}})},82282:(e,t,n)=>{"use strict";n.d(t,{h:()=>h,n:()=>u});var r=n(12115),i=n(94577);let o=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},s=t=e(r,i,o);return o},{useDebugValue:s}=r,{useSyncExternalStoreWithSelector:l}=i,a=e=>e;function u(e,t=a,n){let r=l(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return s(r),r}let c=(e,t)=>{let n=e?o(e):o,r=(e,r=t)=>u(n,e,r);return Object.assign(r,n),r},h=(e,t)=>e?c(e,t):c},94907:(e,t,n)=>{"use strict";function r(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}n.d(t,{x:()=>r})},98500:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={default:function(){return m},useLinkStatus:function(){return v}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let o=n(66388),s=n(95155),l=o._(n(12115)),a=n(20091),u=n(22909),c=n(21172),h=n(10857),p=n(70127);n(47284);let f=n(74616),d=n(24972),g=n(69470),y=n(77565);function m(e){var t,r;let i,o,m,[v,k]=(0,l.useOptimistic)(d.IDLE_LINK_STATUS),b=(0,l.useRef)(null),{href:w,as:_,children:E,prefetch:S=null,passHref:$,replace:A,shallow:z,scroll:T,onClick:M,onMouseEnter:P,onTouchStart:R,legacyBehavior:I=!1,onNavigate:L,transitionTypes:C,ref:N,unstable_dynamicOnHover:B,...O}=e;i=E,I&&("string"==typeof i||"number"==typeof i)&&(i=(0,s.jsx)("a",{children:i}));let j=l.default.useContext(u.AppRouterContext),D=!1!==S,q=!1!==S?null===(r=S)||"auto"===r?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,H="string"==typeof(t=_||w)?t:(0,a.formatUrl)(t);if(I){if(i?.$$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});o=l.default.Children.only(i)}let X=I?o&&"object"==typeof o&&o.ref:N,Y=l.default.useCallback(e=>(null!==j&&(b.current=(0,d.mountLinkInstance)(e,H,j,q,D,k)),()=>{b.current&&((0,d.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,d.unmountPrefetchableInstance)(e)}),[D,H,j,q,k]),Z={ref:(0,c.useMergedRef)(Y,X),onClick(e){I||"function"!=typeof M||M(e),I&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),!j||e.defaultPrevented||function(e,t,r,i,o,s,a){{let u,{nodeName:c}=e.currentTarget;if("A"===c.toUpperCase()&&((u=e.currentTarget.getAttribute("target"))&&"_self"!==u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(t)){i&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:h}=n(70156);l.default.startTransition(()=>{h(t,i?"replace":"push",!1===o?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,r.current,a)})}}(e,H,b,A,T,L,C)},onMouseEnter(e){I||"function"!=typeof P||P(e),I&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),j&&D&&(0,d.onNavigationIntent)(e.currentTarget,!0===B)},onTouchStart:function(e){I||"function"!=typeof R||R(e),I&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),j&&D&&(0,d.onNavigationIntent)(e.currentTarget,!0===B)}};return(0,h.isAbsoluteUrl)(H)?Z.href=H:I&&!$&&("a"!==o.type||"href"in o.props)||(Z.href=(0,p.addBasePath)(H)),m=I?l.default.cloneElement(o,Z):(0,s.jsx)("a",{...O,...Z,children:i}),(0,s.jsx)(x.Provider,{value:v,children:m})}n(29842);let x=(0,l.createContext)(d.IDLE_LINK_STATUS),v=()=>(0,l.useContext)(x);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}}]);