trybeacon 0.1.65 → 0.1.66

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 (381) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.next/BUILD_ID +1 -1
  3. package/.next/app-path-routes-manifest.json +19 -12
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/prerender-manifest.json +3 -3
  6. package/.next/routes-manifest.json +42 -0
  7. package/.next/server/app/_global-error/page.js +2 -2
  8. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/_global-error.html +1 -1
  10. package/.next/server/app/_global-error.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  17. package/.next/server/app/_not-found/page.js +2 -2
  18. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  19. package/.next/server/app/_not-found.html +1 -1
  20. package/.next/server/app/_not-found.rsc +11 -11
  21. package/.next/server/app/_not-found.segments/_full.segment.rsc +11 -11
  22. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  23. package/.next/server/app/_not-found.segments/_index.segment.rsc +11 -11
  24. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  25. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  26. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  27. package/.next/server/app/api/board-annotations/[id]/route.js +1 -1
  28. package/.next/server/app/api/board-annotations/route.js +1 -1
  29. package/.next/server/app/api/board-layout/route.js +1 -1
  30. package/.next/server/app/api/bug-flags/[id]/route.js +1 -1
  31. package/.next/server/app/api/bug-flags/route.js +1 -1
  32. package/.next/server/app/api/code-graph/position/route.js +1 -1
  33. package/.next/server/app/api/code-graph/route.js +1 -1
  34. package/.next/server/app/api/context/feature/route.js +1 -1
  35. package/.next/server/app/api/context/file/route.js +1 -1
  36. package/.next/server/app/api/context/route.js +1 -1
  37. package/.next/server/app/api/db/arrange/route.js +1 -1
  38. package/.next/server/app/api/db/backfill-access/route.js +1 -1
  39. package/.next/server/app/api/db/position/route.js +1 -1
  40. package/.next/server/app/api/db/prune-planned/route.js +1 -1
  41. package/.next/server/app/api/db/reconcile-endpoints/route.js +1 -1
  42. package/.next/server/app/api/db/relations/[id]/route.js +1 -1
  43. package/.next/server/app/api/db/tables/[id]/route.js +1 -1
  44. package/.next/server/app/api/draft/approve/route.js +1 -1
  45. package/.next/server/app/api/draft/route.js +1 -1
  46. package/.next/server/app/api/draft/status/route.js +1 -1
  47. package/.next/server/app/api/edges/[id]/route.js +1 -1
  48. package/.next/server/app/api/edges/route.js +1 -1
  49. package/.next/server/app/api/endpoints/[id]/route.js +1 -1
  50. package/.next/server/app/api/entities/route.js +1 -1
  51. package/.next/server/app/api/feedback/[id]/route.js +1 -1
  52. package/.next/server/app/api/feedback/[id]/vote/route.js +1 -1
  53. package/.next/server/app/api/feedback/route.js +1 -1
  54. package/.next/server/app/api/flags/route.js +1 -1
  55. package/.next/server/app/api/ingest/route.js +2 -2
  56. package/.next/server/app/api/init/route.js +2 -2
  57. package/.next/server/app/api/lesson/close/route.js +1 -0
  58. package/.next/server/app/api/lesson/close/route.js.nft.json +1 -0
  59. package/.next/server/app/api/lesson/close/route_client-reference-manifest.js +1 -0
  60. package/.next/server/app/api/lesson/presence/route.js +1 -0
  61. package/.next/server/app/api/lesson/presence/route.js.nft.json +1 -0
  62. package/.next/server/app/api/lesson/presence/route_client-reference-manifest.js +1 -0
  63. package/.next/server/app/api/lesson/questions/route.js +1 -0
  64. package/.next/server/app/api/lesson/questions/route.js.nft.json +1 -0
  65. package/.next/server/app/api/lesson/questions/route_client-reference-manifest.js +1 -0
  66. package/.next/server/app/api/lesson/route.js +1 -0
  67. package/.next/server/app/api/lesson/route.js.nft.json +1 -0
  68. package/.next/server/app/api/lesson/route_client-reference-manifest.js +1 -0
  69. package/.next/server/app/api/lesson/save/route.js +1 -0
  70. package/.next/server/app/api/lesson/save/route.js.nft.json +1 -0
  71. package/.next/server/app/api/lesson/save/route_client-reference-manifest.js +1 -0
  72. package/.next/server/app/api/lesson/verdict/route.js +1 -0
  73. package/.next/server/app/api/lesson/verdict/route.js.nft.json +1 -0
  74. package/.next/server/app/api/lesson/verdict/route_client-reference-manifest.js +1 -0
  75. package/.next/server/app/api/map/describe/route.js +2 -2
  76. package/.next/server/app/api/map/files/route.js +1 -1
  77. package/.next/server/app/api/map/finish/route.js +1 -1
  78. package/.next/server/app/api/map/route.js +1 -1
  79. package/.next/server/app/api/map/start/route.js +1 -1
  80. package/.next/server/app/api/map/touch-active/route.js +1 -1
  81. package/.next/server/app/api/mention-search/route.js +1 -1
  82. package/.next/server/app/api/nodes/[id]/position/route.js +1 -1
  83. package/.next/server/app/api/nodes/[id]/route.js +1 -1
  84. package/.next/server/app/api/nodes/positions/route.js +1 -1
  85. package/.next/server/app/api/nodes/route.js +1 -1
  86. package/.next/server/app/api/nodes/subtasks/route.js +1 -1
  87. package/.next/server/app/api/notes/[id]/route.js +1 -1
  88. package/.next/server/app/api/notes/route.js +1 -1
  89. package/.next/server/app/api/open/route.js +1 -1
  90. package/.next/server/app/api/plan/annotations/route.js +3 -3
  91. package/.next/server/app/api/plan/approve/route.js +2 -2
  92. package/.next/server/app/api/plan/history/route.js +1 -1
  93. package/.next/server/app/api/plan/markdown/route.js +1 -1
  94. package/.next/server/app/api/plan/presence/route.js +1 -1
  95. package/.next/server/app/api/plan/route.js +1 -1
  96. package/.next/server/app/api/plan/verdict/route.js +1 -1
  97. package/.next/server/app/api/preferences/route.js +1 -1
  98. package/.next/server/app/api/project-meta/route.js +1 -1
  99. package/.next/server/app/api/reset/route.js +1 -1
  100. package/.next/server/app/api/scope-guard/check/route.js +1 -1
  101. package/.next/server/app/api/share/create/route.js +1 -1
  102. package/.next/server/app/api/share/route.js +1 -1
  103. package/.next/server/app/api/stream/route.js +2 -2
  104. package/.next/server/app/api/tab/nav/route.js +1 -1
  105. package/.next/server/app/api/tab/presence/route.js +1 -1
  106. package/.next/server/app/api/telemetry/route.js +1 -1
  107. package/.next/server/app/api/telemetry/stats/route.js +1 -1
  108. package/.next/server/app/api/version/route.js +1 -1
  109. package/.next/server/app/api/workspace/activate/route.js +1 -1
  110. package/.next/server/app/api/workspace/route.js +1 -1
  111. package/.next/server/app/apple-icon.png/route.js +1 -1
  112. package/.next/server/app/docs/page.js +2 -2
  113. package/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  114. package/.next/server/app/docs.html +1 -1
  115. package/.next/server/app/docs.rsc +11 -11
  116. package/.next/server/app/docs.segments/_full.segment.rsc +11 -11
  117. package/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  118. package/.next/server/app/docs.segments/_index.segment.rsc +11 -11
  119. package/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
  120. package/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  121. package/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  122. package/.next/server/app/feedback/page.js +2 -2
  123. package/.next/server/app/feedback/page_client-reference-manifest.js +1 -1
  124. package/.next/server/app/feedback.html +1 -1
  125. package/.next/server/app/feedback.rsc +11 -11
  126. package/.next/server/app/feedback.segments/_full.segment.rsc +11 -11
  127. package/.next/server/app/feedback.segments/_head.segment.rsc +1 -1
  128. package/.next/server/app/feedback.segments/_index.segment.rsc +11 -11
  129. package/.next/server/app/feedback.segments/_tree.segment.rsc +2 -2
  130. package/.next/server/app/feedback.segments/feedback/__PAGE__.segment.rsc +1 -1
  131. package/.next/server/app/feedback.segments/feedback.segment.rsc +1 -1
  132. package/.next/server/app/help/page.js +2 -2
  133. package/.next/server/app/help/page_client-reference-manifest.js +1 -1
  134. package/.next/server/app/help.html +1 -1
  135. package/.next/server/app/help.rsc +11 -11
  136. package/.next/server/app/help.segments/_full.segment.rsc +11 -11
  137. package/.next/server/app/help.segments/_head.segment.rsc +1 -1
  138. package/.next/server/app/help.segments/_index.segment.rsc +11 -11
  139. package/.next/server/app/help.segments/_tree.segment.rsc +2 -2
  140. package/.next/server/app/help.segments/help/__PAGE__.segment.rsc +1 -1
  141. package/.next/server/app/help.segments/help.segment.rsc +1 -1
  142. package/.next/server/app/icon.svg/route.js +1 -1
  143. package/.next/server/app/index.html +1 -1
  144. package/.next/server/app/index.rsc +12 -12
  145. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  146. package/.next/server/app/index.segments/_full.segment.rsc +12 -12
  147. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  148. package/.next/server/app/index.segments/_index.segment.rsc +11 -11
  149. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  150. package/.next/server/app/learn/page.js +6 -0
  151. package/.next/server/app/learn/page.js.nft.json +1 -0
  152. package/.next/server/app/learn/page_client-reference-manifest.js +1 -0
  153. package/.next/server/app/map/page.js +2 -2
  154. package/.next/server/app/map/page.js.nft.json +1 -1
  155. package/.next/server/app/map/page_client-reference-manifest.js +1 -1
  156. package/.next/server/app/page.js +2 -2
  157. package/.next/server/app/page.js.nft.json +1 -1
  158. package/.next/server/app/page_client-reference-manifest.js +1 -1
  159. package/.next/server/app/plan/page.js +2 -2
  160. package/.next/server/app/plan/page.js.nft.json +1 -1
  161. package/.next/server/app/plan/page_client-reference-manifest.js +1 -1
  162. package/.next/server/app/s/[token]/page.js +2 -2
  163. package/.next/server/app/s/[token]/page.js.nft.json +1 -1
  164. package/.next/server/app/s/[token]/page_client-reference-manifest.js +1 -1
  165. package/.next/server/app/settings/page.js +2 -2
  166. package/.next/server/app/settings/page.js.nft.json +1 -1
  167. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  168. package/.next/server/app-paths-manifest.json +19 -12
  169. package/.next/server/chunks/2050.js +1 -1
  170. package/.next/server/chunks/3584.js +154 -0
  171. package/.next/server/chunks/4307.js +1 -1
  172. package/.next/server/chunks/6024.js +2 -0
  173. package/.next/server/chunks/{2813.js → 7187.js} +1 -1
  174. package/.next/server/chunks/8035.js +1 -0
  175. package/.next/server/chunks/9338.js +8 -8
  176. package/.next/server/middleware-build-manifest.js +1 -1
  177. package/.next/server/pages/404.html +1 -1
  178. package/.next/server/pages/500.html +1 -1
  179. package/.next/server/server-reference-manifest.js +1 -1
  180. package/.next/server/server-reference-manifest.json +1 -1
  181. package/.next/static/P3uXQySdS-m6_bxuiezYe/_buildManifest.js +1 -0
  182. package/.next/static/chunks/1936-7fea5225b5bfcfda.js +1 -0
  183. package/.next/static/chunks/2019-3be80edc82176878.js +1 -0
  184. package/.next/static/chunks/4549-591415d55ca009a3.js +62 -0
  185. package/.next/static/chunks/6638-4e53879181b1df75.js +1 -0
  186. package/.next/static/chunks/{4888-911c0da3c2d785d2.js → 7043-254590cf9891391f.js} +1 -1
  187. package/.next/static/chunks/7643-6c7ff4b9400f68fc.js +1 -0
  188. package/.next/static/chunks/app/_global-error/page-2390ea0e69e5991f.js +1 -0
  189. package/.next/static/chunks/app/api/board-annotations/[id]/route-2390ea0e69e5991f.js +1 -0
  190. package/.next/static/chunks/app/api/board-annotations/route-2390ea0e69e5991f.js +1 -0
  191. package/.next/static/chunks/app/api/board-layout/route-2390ea0e69e5991f.js +1 -0
  192. package/.next/static/chunks/app/api/bug-flags/[id]/route-2390ea0e69e5991f.js +1 -0
  193. package/.next/static/chunks/app/api/bug-flags/route-2390ea0e69e5991f.js +1 -0
  194. package/.next/static/chunks/app/api/code-graph/position/route-2390ea0e69e5991f.js +1 -0
  195. package/.next/static/chunks/app/api/code-graph/route-2390ea0e69e5991f.js +1 -0
  196. package/.next/static/chunks/app/api/context/feature/route-2390ea0e69e5991f.js +1 -0
  197. package/.next/static/chunks/app/api/context/file/route-2390ea0e69e5991f.js +1 -0
  198. package/.next/static/chunks/app/api/context/route-2390ea0e69e5991f.js +1 -0
  199. package/.next/static/chunks/app/api/db/arrange/route-2390ea0e69e5991f.js +1 -0
  200. package/.next/static/chunks/app/api/db/backfill-access/route-2390ea0e69e5991f.js +1 -0
  201. package/.next/static/chunks/app/api/db/position/route-2390ea0e69e5991f.js +1 -0
  202. package/.next/static/chunks/app/api/db/prune-planned/route-2390ea0e69e5991f.js +1 -0
  203. package/.next/static/chunks/app/api/db/reconcile-endpoints/route-2390ea0e69e5991f.js +1 -0
  204. package/.next/static/chunks/app/api/db/relations/[id]/route-2390ea0e69e5991f.js +1 -0
  205. package/.next/static/chunks/app/api/db/tables/[id]/route-2390ea0e69e5991f.js +1 -0
  206. package/.next/static/chunks/app/api/draft/approve/route-2390ea0e69e5991f.js +1 -0
  207. package/.next/static/chunks/app/api/draft/route-2390ea0e69e5991f.js +1 -0
  208. package/.next/static/chunks/app/api/draft/status/route-2390ea0e69e5991f.js +1 -0
  209. package/.next/static/chunks/app/api/edges/[id]/route-2390ea0e69e5991f.js +1 -0
  210. package/.next/static/chunks/app/api/edges/route-2390ea0e69e5991f.js +1 -0
  211. package/.next/static/chunks/app/api/endpoints/[id]/route-2390ea0e69e5991f.js +1 -0
  212. package/.next/static/chunks/app/api/entities/route-2390ea0e69e5991f.js +1 -0
  213. package/.next/static/chunks/app/api/feedback/[id]/route-2390ea0e69e5991f.js +1 -0
  214. package/.next/static/chunks/app/api/feedback/[id]/vote/route-2390ea0e69e5991f.js +1 -0
  215. package/.next/static/chunks/app/api/feedback/route-2390ea0e69e5991f.js +1 -0
  216. package/.next/static/chunks/app/api/flags/route-2390ea0e69e5991f.js +1 -0
  217. package/.next/static/chunks/app/api/ingest/route-2390ea0e69e5991f.js +1 -0
  218. package/.next/static/chunks/app/api/init/route-2390ea0e69e5991f.js +1 -0
  219. package/.next/static/chunks/app/api/lesson/close/route-2390ea0e69e5991f.js +1 -0
  220. package/.next/static/chunks/app/api/lesson/presence/route-2390ea0e69e5991f.js +1 -0
  221. package/.next/static/chunks/app/api/lesson/questions/route-2390ea0e69e5991f.js +1 -0
  222. package/.next/static/chunks/app/api/lesson/route-2390ea0e69e5991f.js +1 -0
  223. package/.next/static/chunks/app/api/lesson/save/route-2390ea0e69e5991f.js +1 -0
  224. package/.next/static/chunks/app/api/lesson/verdict/route-2390ea0e69e5991f.js +1 -0
  225. package/.next/static/chunks/app/api/map/describe/route-2390ea0e69e5991f.js +1 -0
  226. package/.next/static/chunks/app/api/map/files/route-2390ea0e69e5991f.js +1 -0
  227. package/.next/static/chunks/app/api/map/finish/route-2390ea0e69e5991f.js +1 -0
  228. package/.next/static/chunks/app/api/map/route-2390ea0e69e5991f.js +1 -0
  229. package/.next/static/chunks/app/api/map/start/route-2390ea0e69e5991f.js +1 -0
  230. package/.next/static/chunks/app/api/map/touch-active/route-2390ea0e69e5991f.js +1 -0
  231. package/.next/static/chunks/app/api/mention-search/route-2390ea0e69e5991f.js +1 -0
  232. package/.next/static/chunks/app/api/nodes/[id]/position/route-2390ea0e69e5991f.js +1 -0
  233. package/.next/static/chunks/app/api/nodes/[id]/route-2390ea0e69e5991f.js +1 -0
  234. package/.next/static/chunks/app/api/nodes/positions/route-2390ea0e69e5991f.js +1 -0
  235. package/.next/static/chunks/app/api/nodes/route-2390ea0e69e5991f.js +1 -0
  236. package/.next/static/chunks/app/api/nodes/subtasks/route-2390ea0e69e5991f.js +1 -0
  237. package/.next/static/chunks/app/api/notes/[id]/route-2390ea0e69e5991f.js +1 -0
  238. package/.next/static/chunks/app/api/notes/route-2390ea0e69e5991f.js +1 -0
  239. package/.next/static/chunks/app/api/open/route-2390ea0e69e5991f.js +1 -0
  240. package/.next/static/chunks/app/api/plan/annotations/route-2390ea0e69e5991f.js +1 -0
  241. package/.next/static/chunks/app/api/plan/approve/route-2390ea0e69e5991f.js +1 -0
  242. package/.next/static/chunks/app/api/plan/history/route-2390ea0e69e5991f.js +1 -0
  243. package/.next/static/chunks/app/api/plan/markdown/route-2390ea0e69e5991f.js +1 -0
  244. package/.next/static/chunks/app/api/plan/presence/route-2390ea0e69e5991f.js +1 -0
  245. package/.next/static/chunks/app/api/plan/route-2390ea0e69e5991f.js +1 -0
  246. package/.next/static/chunks/app/api/plan/verdict/route-2390ea0e69e5991f.js +1 -0
  247. package/.next/static/chunks/app/api/preferences/route-2390ea0e69e5991f.js +1 -0
  248. package/.next/static/chunks/app/api/project-meta/route-2390ea0e69e5991f.js +1 -0
  249. package/.next/static/chunks/app/api/reset/route-2390ea0e69e5991f.js +1 -0
  250. package/.next/static/chunks/app/api/scope-guard/check/route-2390ea0e69e5991f.js +1 -0
  251. package/.next/static/chunks/app/api/share/create/route-2390ea0e69e5991f.js +1 -0
  252. package/.next/static/chunks/app/api/share/route-2390ea0e69e5991f.js +1 -0
  253. package/.next/static/chunks/app/api/stream/route-2390ea0e69e5991f.js +1 -0
  254. package/.next/static/chunks/app/api/tab/nav/route-2390ea0e69e5991f.js +1 -0
  255. package/.next/static/chunks/app/api/tab/presence/route-2390ea0e69e5991f.js +1 -0
  256. package/.next/static/chunks/app/api/telemetry/route-2390ea0e69e5991f.js +1 -0
  257. package/.next/static/chunks/app/api/telemetry/stats/route-2390ea0e69e5991f.js +1 -0
  258. package/.next/static/chunks/app/api/version/route-2390ea0e69e5991f.js +1 -0
  259. package/.next/static/chunks/app/api/workspace/activate/route-2390ea0e69e5991f.js +1 -0
  260. package/.next/static/chunks/app/api/workspace/route-2390ea0e69e5991f.js +1 -0
  261. package/.next/static/chunks/app/layout-0c993f55d3a798f4.js +1 -0
  262. package/.next/static/chunks/app/learn/page-797d74e02b98fa88.js +5 -0
  263. package/.next/static/chunks/app/map/page-634b6d5d98e921b3.js +1 -0
  264. package/.next/static/chunks/app/page-84dc684d45002cfb.js +1 -0
  265. package/.next/static/chunks/app/plan/page-df829b2054c40611.js +1 -0
  266. package/.next/static/chunks/app/s/[token]/page-f97dec75856a7952.js +1 -0
  267. package/.next/static/chunks/app/settings/page-59d90685cd17fc1f.js +1 -0
  268. package/.next/static/chunks/next/dist/client/components/builtin/app-error-2390ea0e69e5991f.js +1 -0
  269. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-2390ea0e69e5991f.js +1 -0
  270. package/.next/static/chunks/next/dist/client/components/builtin/not-found-2390ea0e69e5991f.js +1 -0
  271. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-2390ea0e69e5991f.js +1 -0
  272. package/.next/static/css/b3d3212da726bbfb.css +1 -0
  273. package/.next/trace +43 -42
  274. package/.next/trace-build +1 -1
  275. package/.next/types/app/api/lesson/close/route.ts +351 -0
  276. package/.next/types/app/api/lesson/presence/route.ts +351 -0
  277. package/.next/types/app/api/lesson/questions/route.ts +351 -0
  278. package/.next/types/app/api/lesson/route.ts +351 -0
  279. package/.next/types/app/api/lesson/save/route.ts +351 -0
  280. package/.next/types/app/api/lesson/verdict/route.ts +351 -0
  281. package/.next/types/app/learn/page.ts +87 -0
  282. package/.next/types/routes.d.ts +9 -2
  283. package/.next/types/validator.ts +63 -0
  284. package/dist/bin/doctor.js +88 -22
  285. package/dist/bin/hook.js +87 -21
  286. package/dist/bin/mcp.js +103 -35
  287. package/dist/bin/plan.js +88 -22
  288. package/dist/bin/uninstall.js +91 -25
  289. package/dist/lib/assets.js +77 -14
  290. package/dist/lib/codex-install.js +88 -22
  291. package/dist/lib/global-install.js +89 -23
  292. package/package.json +1 -1
  293. package/plugin/skills/beacon-explain/SKILL.md +63 -0
  294. package/.next/server/chunks/2994.js +0 -2
  295. package/.next/server/chunks/3284.js +0 -154
  296. package/.next/server/chunks/5719.js +0 -1
  297. package/.next/static/chunks/4491-0cd79f4195f4b111.js +0 -1
  298. package/.next/static/chunks/5957-83f611fcd5a08b45.js +0 -1
  299. package/.next/static/chunks/766-242213d211df0afd.js +0 -1
  300. package/.next/static/chunks/8915-fa61a860c63a7c85.js +0 -62
  301. package/.next/static/chunks/8997-78a359d0d238622e.js +0 -1
  302. package/.next/static/chunks/app/_global-error/page-548a84d85e061550.js +0 -1
  303. package/.next/static/chunks/app/api/board-annotations/[id]/route-548a84d85e061550.js +0 -1
  304. package/.next/static/chunks/app/api/board-annotations/route-548a84d85e061550.js +0 -1
  305. package/.next/static/chunks/app/api/board-layout/route-548a84d85e061550.js +0 -1
  306. package/.next/static/chunks/app/api/bug-flags/[id]/route-548a84d85e061550.js +0 -1
  307. package/.next/static/chunks/app/api/bug-flags/route-548a84d85e061550.js +0 -1
  308. package/.next/static/chunks/app/api/code-graph/position/route-548a84d85e061550.js +0 -1
  309. package/.next/static/chunks/app/api/code-graph/route-548a84d85e061550.js +0 -1
  310. package/.next/static/chunks/app/api/context/feature/route-548a84d85e061550.js +0 -1
  311. package/.next/static/chunks/app/api/context/file/route-548a84d85e061550.js +0 -1
  312. package/.next/static/chunks/app/api/context/route-548a84d85e061550.js +0 -1
  313. package/.next/static/chunks/app/api/db/arrange/route-548a84d85e061550.js +0 -1
  314. package/.next/static/chunks/app/api/db/backfill-access/route-548a84d85e061550.js +0 -1
  315. package/.next/static/chunks/app/api/db/position/route-548a84d85e061550.js +0 -1
  316. package/.next/static/chunks/app/api/db/prune-planned/route-548a84d85e061550.js +0 -1
  317. package/.next/static/chunks/app/api/db/reconcile-endpoints/route-548a84d85e061550.js +0 -1
  318. package/.next/static/chunks/app/api/db/relations/[id]/route-548a84d85e061550.js +0 -1
  319. package/.next/static/chunks/app/api/db/tables/[id]/route-548a84d85e061550.js +0 -1
  320. package/.next/static/chunks/app/api/draft/approve/route-548a84d85e061550.js +0 -1
  321. package/.next/static/chunks/app/api/draft/route-548a84d85e061550.js +0 -1
  322. package/.next/static/chunks/app/api/draft/status/route-548a84d85e061550.js +0 -1
  323. package/.next/static/chunks/app/api/edges/[id]/route-548a84d85e061550.js +0 -1
  324. package/.next/static/chunks/app/api/edges/route-548a84d85e061550.js +0 -1
  325. package/.next/static/chunks/app/api/endpoints/[id]/route-548a84d85e061550.js +0 -1
  326. package/.next/static/chunks/app/api/entities/route-548a84d85e061550.js +0 -1
  327. package/.next/static/chunks/app/api/feedback/[id]/route-548a84d85e061550.js +0 -1
  328. package/.next/static/chunks/app/api/feedback/[id]/vote/route-548a84d85e061550.js +0 -1
  329. package/.next/static/chunks/app/api/feedback/route-548a84d85e061550.js +0 -1
  330. package/.next/static/chunks/app/api/flags/route-548a84d85e061550.js +0 -1
  331. package/.next/static/chunks/app/api/ingest/route-548a84d85e061550.js +0 -1
  332. package/.next/static/chunks/app/api/init/route-548a84d85e061550.js +0 -1
  333. package/.next/static/chunks/app/api/map/describe/route-548a84d85e061550.js +0 -1
  334. package/.next/static/chunks/app/api/map/files/route-548a84d85e061550.js +0 -1
  335. package/.next/static/chunks/app/api/map/finish/route-548a84d85e061550.js +0 -1
  336. package/.next/static/chunks/app/api/map/route-548a84d85e061550.js +0 -1
  337. package/.next/static/chunks/app/api/map/start/route-548a84d85e061550.js +0 -1
  338. package/.next/static/chunks/app/api/map/touch-active/route-548a84d85e061550.js +0 -1
  339. package/.next/static/chunks/app/api/mention-search/route-548a84d85e061550.js +0 -1
  340. package/.next/static/chunks/app/api/nodes/[id]/position/route-548a84d85e061550.js +0 -1
  341. package/.next/static/chunks/app/api/nodes/[id]/route-548a84d85e061550.js +0 -1
  342. package/.next/static/chunks/app/api/nodes/positions/route-548a84d85e061550.js +0 -1
  343. package/.next/static/chunks/app/api/nodes/route-548a84d85e061550.js +0 -1
  344. package/.next/static/chunks/app/api/nodes/subtasks/route-548a84d85e061550.js +0 -1
  345. package/.next/static/chunks/app/api/notes/[id]/route-548a84d85e061550.js +0 -1
  346. package/.next/static/chunks/app/api/notes/route-548a84d85e061550.js +0 -1
  347. package/.next/static/chunks/app/api/open/route-548a84d85e061550.js +0 -1
  348. package/.next/static/chunks/app/api/plan/annotations/route-548a84d85e061550.js +0 -1
  349. package/.next/static/chunks/app/api/plan/approve/route-548a84d85e061550.js +0 -1
  350. package/.next/static/chunks/app/api/plan/history/route-548a84d85e061550.js +0 -1
  351. package/.next/static/chunks/app/api/plan/markdown/route-548a84d85e061550.js +0 -1
  352. package/.next/static/chunks/app/api/plan/presence/route-548a84d85e061550.js +0 -1
  353. package/.next/static/chunks/app/api/plan/route-548a84d85e061550.js +0 -1
  354. package/.next/static/chunks/app/api/plan/verdict/route-548a84d85e061550.js +0 -1
  355. package/.next/static/chunks/app/api/preferences/route-548a84d85e061550.js +0 -1
  356. package/.next/static/chunks/app/api/project-meta/route-548a84d85e061550.js +0 -1
  357. package/.next/static/chunks/app/api/reset/route-548a84d85e061550.js +0 -1
  358. package/.next/static/chunks/app/api/scope-guard/check/route-548a84d85e061550.js +0 -1
  359. package/.next/static/chunks/app/api/share/create/route-548a84d85e061550.js +0 -1
  360. package/.next/static/chunks/app/api/share/route-548a84d85e061550.js +0 -1
  361. package/.next/static/chunks/app/api/stream/route-548a84d85e061550.js +0 -1
  362. package/.next/static/chunks/app/api/tab/nav/route-548a84d85e061550.js +0 -1
  363. package/.next/static/chunks/app/api/tab/presence/route-548a84d85e061550.js +0 -1
  364. package/.next/static/chunks/app/api/telemetry/route-548a84d85e061550.js +0 -1
  365. package/.next/static/chunks/app/api/telemetry/stats/route-548a84d85e061550.js +0 -1
  366. package/.next/static/chunks/app/api/version/route-548a84d85e061550.js +0 -1
  367. package/.next/static/chunks/app/api/workspace/activate/route-548a84d85e061550.js +0 -1
  368. package/.next/static/chunks/app/api/workspace/route-548a84d85e061550.js +0 -1
  369. package/.next/static/chunks/app/layout-3115f8503ff00902.js +0 -1
  370. package/.next/static/chunks/app/map/page-66ec4b62a4153de8.js +0 -1
  371. package/.next/static/chunks/app/page-d08947a671077569.js +0 -1
  372. package/.next/static/chunks/app/plan/page-008565f9049d55c9.js +0 -1
  373. package/.next/static/chunks/app/s/[token]/page-1c10b26b300faffc.js +0 -1
  374. package/.next/static/chunks/app/settings/page-7e176d120b1effa9.js +0 -1
  375. package/.next/static/chunks/next/dist/client/components/builtin/app-error-548a84d85e061550.js +0 -1
  376. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-548a84d85e061550.js +0 -1
  377. package/.next/static/chunks/next/dist/client/components/builtin/not-found-548a84d85e061550.js +0 -1
  378. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-548a84d85e061550.js +0 -1
  379. package/.next/static/css/f871d81e526502c1.css +0 -1
  380. package/.next/static/fwNWsob4GcVUD5_xV0f1h/_buildManifest.js +0 -1
  381. /package/.next/static/{fwNWsob4GcVUD5_xV0f1h → P3uXQySdS-m6_bxuiezYe}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2019],{6266:(t,e,n)=>{n.d(e,{Do:()=>p,WZ:()=>h,TG:()=>y,ny:()=>f,yX:()=>g,xN:()=>m,Qc:()=>d,I$:()=>n9,aQ:()=>rr,di:()=>ri,kO:()=>rf,rN:()=>nH,bi:()=>nG,_s:()=>ny,_7:()=>e3,aE:()=>eG,kr:()=>ni,Hm:()=>nF,tM:()=>eX,tn:()=>eD,xc:()=>eC,us:()=>np,IO:()=>eQ,e_:()=>n$,Fp:()=>nN,Mi:()=>nt,HF:()=>eY,Eo:()=>nx,b5:()=>nq,Tq:()=>eJ,qX:()=>nT,q1:()=>nE,M_:()=>nY,oj:()=>nw,aZ:()=>eU,aW:()=>nV,uD:()=>nf,Jo:()=>eW,U$:()=>eZ,X6:()=>ne,oN:()=>nD,ah:()=>nB,R4:()=>ns,r8:()=>n1,ZO:()=>eO,bK:()=>eq,b$:()=>ej,uj:()=>nI,v5:()=>nb,Ue:()=>nc,Er:()=>nM,oB:()=>eV,kf:()=>nr,mW:()=>nn,Q6:()=>nm,QE:()=>nd,kM:()=>e9,No:()=>n5,Ff:()=>na,zj:()=>nu,s_:()=>no,vS:()=>nZ,qn:()=>n8,uL:()=>n2,YN:()=>ng});var r,i,o,a,u,l,s,c,h,f,d,p,y,g,m,v=n(32521);function x(){}function w(t){return null==t?x:function(){return this.querySelector(t)}}function _(){return[]}function b(t){return null==t?_:function(){return this.querySelectorAll(t)}}function M(t){return function(){return this.matches(t)}}function E(t){return function(e){return e.matches(t)}}var k=Array.prototype.find;function $(){return this.firstElementChild}var A=Array.prototype.filter;function z(){return Array.from(this.children)}function N(t){return Array(t.length)}function S(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function T(t,e,n,r,i,o){for(var a,u=0,l=e.length,s=o.length;u<s;++u)(a=e[u])?(a.__data__=o[u],r[u]=a):n[u]=new S(t,o[u]);for(;u<l;++u)(a=e[u])&&(i[u]=a)}function I(t,e,n,r,i,o,a){var u,l,s,c=new Map,h=e.length,f=o.length,d=Array(h);for(u=0;u<h;++u)(l=e[u])&&(d[u]=s=a.call(l,l.__data__,u,e)+"",c.has(s)?i[u]=l:c.set(s,l));for(u=0;u<f;++u)s=a.call(t,o[u],u,o)+"",(l=c.get(s))?(r[u]=l,l.__data__=o[u],c.delete(s)):n[u]=new S(t,o[u]);for(u=0;u<h;++u)(l=e[u])&&c.get(d[u])===l&&(i[u]=l)}function P(t){return t.__data__}function H(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}S.prototype={constructor:S,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var B="http://www.w3.org/1999/xhtml";let L={svg:"http://www.w3.org/2000/svg",xhtml:B,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function C(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),L.hasOwnProperty(e)?{space:L[e],local:t}:t}function O(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function D(t,e){return t.style.getPropertyValue(e)||O(t).getComputedStyle(t,null).getPropertyValue(e)}function X(t){return t.trim().split(/^|\s+/)}function q(t){return t.classList||new R(t)}function R(t){this._node=t,this._names=X(t.getAttribute("class")||"")}function Y(t,e){for(var n=q(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function j(t,e){for(var n=q(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function V(){this.textContent=""}function F(){this.innerHTML=""}function K(){this.nextSibling&&this.parentNode.appendChild(this)}function W(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function U(t){var e=C(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===B&&e.documentElement.namespaceURI===B?e.createElement(t):e.createElementNS(n,t)}})(e)}function Z(){return null}function Q(){var t=this.parentNode;t&&t.removeChild(this)}function G(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function J(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tt(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)(n=e[r],t.type&&n.type!==t.type||n.name!==t.name)?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function te(t,e,n){return function(){var r,i=this.__on,o=function(t){e.call(this,t,this.__data__)};if(i){for(var a=0,u=i.length;a<u;++a)if((r=i[a]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function tn(t,e,n){var r=O(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}R.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tr=[null];function ti(t,e){this._groups=t,this._parents=e}function to(){return new ti([[document.documentElement]],tr)}function ta(t){return"string"==typeof t?new ti([[document.querySelector(t)]],[document.documentElement]):new ti([[t]],tr)}function tu(t,e){if(t=function(t){let e;for(;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}ti.prototype=to.prototype={constructor:ti,select:function(t){"function"!=typeof t&&(t=w(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,a,u=e[i],l=u.length,s=r[i]=Array(l),c=0;c<l;++c)(o=u[c])&&(a=t.call(o,o.__data__,c,u))&&("__data__"in o&&(a.__data__=o.__data__),s[c]=a);return new ti(r,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=b(t);for(var n=this._groups,r=n.length,i=[],o=[],a=0;a<r;++a)for(var u,l=n[a],s=l.length,c=0;c<s;++c)(u=l[c])&&(i.push(t.call(u,u.__data__,c,l)),o.push(u));return new ti(i,o)},selectChild:function(t){var e;return this.select(null==t?$:(e="function"==typeof t?t:E(t),function(){return k.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?z:(e="function"==typeof t?t:E(t),function(){return A.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=M(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,l=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&l.push(o);return new ti(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,P);var n=e?I:T,r=this._parents,i=this._groups;"function"!=typeof t&&(v=t,t=function(){return v});for(var o=i.length,a=Array(o),u=Array(o),l=Array(o),s=0;s<o;++s){var c=r[s],h=i[s],f=h.length,d="object"==typeof(m=t.call(c,c&&c.__data__,s,r))&&"length"in m?m:Array.from(m),p=d.length,y=u[s]=Array(p),g=a[s]=Array(p);n(c,h,y,g,l[s]=Array(f),d,e);for(var m,v,x,w,_=0,b=0;_<p;++_)if(x=y[_]){for(_>=b&&(b=_+1);!(w=g[b])&&++b<p;);x._next=w||null}}return(a=new ti(a,r))._enter=u,a._exit=l,a},enter:function(){return new ti(this._enter||this._groups.map(N),this._parents)},exit:function(){return new ti(this._exit||this._groups.map(N),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),u=Array(i),l=0;l<a;++l)for(var s,c=n[l],h=r[l],f=c.length,d=u[l]=Array(f),p=0;p<f;++p)(s=c[p]||h[p])&&(d[p]=s);for(;l<i;++l)u[l]=n[l];return new ti(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=H);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var a,u=n[o],l=u.length,s=i[o]=Array(l),c=0;c<l;++c)(a=u[c])&&(s[c]=a);s.sort(e)}return new ti(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=C(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):D(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=X(t+"");if(arguments.length<2){for(var r=q(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?Y:j)(this,t)}}:e?function(t){return function(){Y(this,t)}}:function(t){return function(){j(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?V:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?F:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(K)},lower:function(){return this.each(W)},append:function(t){var e="function"==typeof t?t:U(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:U(t),r=null==e?Z:"function"==typeof e?e:w(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(Q)},clone:function(t){return this.select(t?J:G)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),a=o.length;if(arguments.length<2){var u=this.node().__on;if(u){for(var l,s=0,c=u.length;s<c;++s)for(r=0,l=u[s];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value}return}for(r=0,u=e?te:tt;r<a;++r)this.each(u(o[r],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return tn(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return tn(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};let tl={passive:!1},ts={capture:!0,passive:!1};function tc(t){t.stopImmediatePropagation()}function th(t){t.preventDefault(),t.stopImmediatePropagation()}function tf(t){var e=t.document.documentElement,n=ta(t).on("dragstart.drag",th,ts);"onselectstart"in e?n.on("selectstart.drag",th,ts):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function td(t,e){var n=t.document.documentElement,r=ta(t).on("dragstart.drag",null);e&&(r.on("click.drag",th,ts),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 tp=t=>()=>t;function ty(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:a,y:u,dx:l,dy:s,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,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:a,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:s,enumerable:!0,configurable:!0},_:{value:c}})}function tg(t){return!t.ctrlKey&&!t.button}function tm(){return this.parentNode}function tv(t,e){return null==e?{x:t.x,y:t.y}:e}function tx(){return navigator.maxTouchPoints||"ontouchstart"in this}function tw(t){return((t=Math.exp(t))+1/t)/2}ty.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};let t_=function t(e,n,r){function i(t,i){var o,a,u=t[0],l=t[1],s=t[2],c=i[0],h=i[1],f=i[2],d=c-u,p=h-l,y=d*d+p*p;if(y<1e-12)a=Math.log(f/s)/e,o=function(t){return[u+t*d,l+t*p,s*Math.exp(e*t*a)]};else{var g=Math.sqrt(y),m=(f*f-s*s+r*y)/(2*s*n*g),v=(f*f-s*s-r*y)/(2*f*n*g),x=Math.log(Math.sqrt(m*m+1)-m);a=(Math.log(Math.sqrt(v*v+1)-v)-x)/e,o=function(t){var r,i,o=t*a,c=tw(x),h=s/(n*g)*(c*(((r=Math.exp(2*(r=e*o+x)))-1)/(r+1))-((i=Math.exp(i=x))-1/i)/2);return[u+h*d,l+h*p,s*c/tw(e*o+x)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i}(Math.SQRT2,2,4);var tb=n(87977);function tM(t,e,n){var r=new tb.M4;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}var tE=(0,v.A)("start","end","cancel","interrupt"),tk=[];function t$(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(l){var s,c,h,f;if(1!==n.state)return u();for(s in i)if((f=i[s]).name===n.name){if(3===f.state)return tM(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[s]):+s<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[s])}if(tM(function(){3===n.state&&(n.state=4,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(s=0,n.state=3,r=Array(h=n.tween.length),c=-1;s<h;++s)(f=n.tween[s].value.call(t,t.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function a(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=(0,tb.O1)(function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:tE,tween:tk,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function tA(t,e){var n=tN(t,e);if(n.state>0)throw Error("too late; already scheduled");return n}function tz(t,e){var n=tN(t,e);if(n.state>3)throw Error("too late; already running");return n}function tN(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw Error("transition not found");return n}function tS(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o){if((n=o[i]).name!==e){a=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]}a&&delete t.__transition}}function tT(t,e){return t*=1,e*=1,function(n){return t*(1-n)+e*n}}var tI=180/Math.PI,tP={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tH(t,e,n,r,i,o){var a,u,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,l/=u),t*r<e*n&&(t=-t,e=-e,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*tI,skewX:Math.atan(l)*tI,scaleX:a,scaleY:u}}function tB(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u,l,s,c,h=[],f=[];return o=t(o),a=t(a),!function(t,r,i,o,a,u){if(t!==i||r!==o){var l=a.push("translate(",null,e,null,n);u.push({i:l-4,x:tT(t,i)},{i:l-2,x:tT(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,h,f),u=o.rotate,l=a.rotate,u!==l?(u-l>180?l+=360:l-u>180&&(u+=360),f.push({i:h.push(i(h)+"rotate(",null,r)-2,x:tT(u,l)})):l&&h.push(i(h)+"rotate("+l+r),s=o.skewX,c=a.skewX,s!==c?f.push({i:h.push(i(h)+"skewX(",null,r)-2,x:tT(s,c)}):c&&h.push(i(h)+"skewX("+c+r),!function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:tT(t,n)},{i:u-2,x:tT(e,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,h,f),o=a=null,function(t){for(var e,n=-1,r=f.length;++n<r;)h[(e=f[n]).i]=e.x(t);return h.join("")}}}var tL=tB(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tP:tH(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),tC=tB(function(t){return null==t?tP:(c||(c=document.createElementNS("http://www.w3.org/2000/svg","g")),c.setAttribute("transform",t),t=c.transform.baseVal.consolidate())?tH((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tP},", ",")",")");function tO(t,e,n){var r=t._id;return t.each(function(){var t=tz(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return tN(t,r).value[e]}}function tD(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function tX(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function tq(){}var tR="\\s*([+-]?\\d+)\\s*",tY="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tj="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tV=/^#([0-9a-f]{3,8})$/,tF=RegExp(`^rgb\\(${tR},${tR},${tR}\\)$`),tK=RegExp(`^rgb\\(${tj},${tj},${tj}\\)$`),tW=RegExp(`^rgba\\(${tR},${tR},${tR},${tY}\\)$`),tU=RegExp(`^rgba\\(${tj},${tj},${tj},${tY}\\)$`),tZ=RegExp(`^hsl\\(${tY},${tj},${tj}\\)$`),tQ=RegExp(`^hsla\\(${tY},${tj},${tj},${tY}\\)$`),tG={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function tJ(){return this.rgb().formatHex()}function t0(){return this.rgb().formatRgb()}function t1(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=tV.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?t2(e):3===n?new t8(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?t5(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?t5(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=tF.exec(t))?new t8(e[1],e[2],e[3],1):(e=tK.exec(t))?new t8(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tW.exec(t))?t5(e[1],e[2],e[3],e[4]):(e=tU.exec(t))?t5(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tZ.exec(t))?ee(e[1],e[2]/100,e[3]/100,1):(e=tQ.exec(t))?ee(e[1],e[2]/100,e[3]/100,e[4]):tG.hasOwnProperty(t)?t2(tG[t]):"transparent"===t?new t8(NaN,NaN,NaN,0):null}function t2(t){return new t8(t>>16&255,t>>8&255,255&t,1)}function t5(t,e,n,r){return r<=0&&(t=e=n=NaN),new t8(t,e,n,r)}function t3(t,e,n,r){var i;return 1==arguments.length?((i=t)instanceof tq||(i=t1(i)),i)?new t8((i=i.rgb()).r,i.g,i.b,i.opacity):new t8:new t8(t,e,n,null==r?1:r)}function t8(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function t4(){return`#${et(this.r)}${et(this.g)}${et(this.b)}`}function t6(){let t=t9(this.opacity);return`${1===t?"rgb(":"rgba("}${t7(this.r)}, ${t7(this.g)}, ${t7(this.b)}${1===t?")":`, ${t})`}`}function t9(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function t7(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function et(t){return((t=t7(t))<16?"0":"")+t.toString(16)}function ee(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new er(t,e,n,r)}function en(t){if(t instanceof er)return new er(t.h,t.s,t.l,t.opacity);if(t instanceof tq||(t=t1(t)),!t)return new er;if(t instanceof er)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,l=(o+i)/2;return u?(a=e===o?(n-r)/u+(n<r)*6:n===o?(r-e)/u+2:(e-n)/u+4,u/=l<.5?o+i:2-o-i,a*=60):u=l>0&&l<1?0:a,new er(a,u,l,t.opacity)}function er(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ei(t){return(t=(t||0)%360)<0?t+360:t}function eo(t){return Math.max(0,Math.min(1,t||0))}function ea(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function eu(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}tD(tq,t1,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:tJ,formatHex:tJ,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return en(this).formatHsl()},formatRgb:t0,toString:t0}),tD(t8,t3,tX(tq,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new t8(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new t8(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new t8(t7(this.r),t7(this.g),t7(this.b),t9(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:t4,formatHex:t4,formatHex8:function(){return`#${et(this.r)}${et(this.g)}${et(this.b)}${et((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:t6,toString:t6})),tD(er,function(t,e,n,r){return 1==arguments.length?en(t):new er(t,e,n,null==r?1:r)},tX(tq,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new er(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new er(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new t8(ea(t>=240?t-240:t+120,i,r),ea(t,i,r),ea(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new er(ei(this.h),eo(this.s),eo(this.l),t9(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=t9(this.opacity);return`${1===t?"hsl(":"hsla("}${ei(this.h)}, ${100*eo(this.s)}%, ${100*eo(this.l)}%${1===t?")":`, ${t})`}`}}));let el=t=>()=>t;function es(t,e){var n=e-t;return n?function(e){return t+e*n}:el(isNaN(t)?e:t)}let ec=function t(e){var n,r=1==(n=+e)?es:function(t,e){var r,i,o;return e-t?(r=t,i=e,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(t){return Math.pow(r+t*i,o)}):el(isNaN(t)?e:t)};function i(t,e){var n=r((t=t3(t)).r,(e=t3(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),a=es(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function eh(t){return function(e){var n,r,i=e.length,o=Array(i),a=Array(i),u=Array(i);for(n=0;n<i;++n)r=t3(e[n]),o[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}eh(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<e-1?t[r+2]:2*o-i;return eu((n-r/e)*e,a,i,o,u)}}),eh(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return eu((n-r/e)*e,i,o,a,u)}});var ef=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ed=RegExp(ef.source,"g");function ep(t,e){var n,r,i,o,a,u=ef.lastIndex=ed.lastIndex=0,l=-1,s=[],c=[];for(t+="",e+="";(i=ef.exec(t))&&(o=ed.exec(e));)(a=o.index)>u&&(a=e.slice(u,a),s[l]?s[l]+=a:s[++l]=a),(i=i[0])===(o=o[0])?s[l]?s[l]+=o:s[++l]=o:(s[++l]=null,c.push({i:l,x:tT(i,o)})),u=ed.lastIndex;return u<e.length&&(a=e.slice(u),s[l]?s[l]+=a:s[++l]=a),s.length<2?c[0]?(n=c[0].x,function(t){return n(t)+""}):(r=e,function(){return r}):(e=c.length,function(t){for(var n,r=0;r<e;++r)s[(n=c[r]).i]=n.x(t);return s.join("")})}function ey(t,e){var n;return("number"==typeof e?tT:e instanceof t1?ec:(n=t1(e))?(e=n,ec):ep)(t,e)}var eg=to.prototype.constructor;function em(t){return function(){this.style.removeProperty(t)}}var ev=0;function ex(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}var ew=to.prototype;ex.prototype=(function(t){return to().transition(t)}).prototype={constructor:ex,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=w(t));for(var r=this._groups,i=r.length,o=Array(i),a=0;a<i;++a)for(var u,l,s=r[a],c=s.length,h=o[a]=Array(c),f=0;f<c;++f)(u=s[f])&&(l=t.call(u,u.__data__,f,s))&&("__data__"in u&&(l.__data__=u.__data__),h[f]=l,t$(h[f],e,n,f,h,tN(u,n)));return new ex(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=b(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var l,s=r[u],c=s.length,h=0;h<c;++h)if(l=s[h]){for(var f,d=t.call(l,l.__data__,h,s),p=tN(l,n),y=0,g=d.length;y<g;++y)(f=d[y])&&t$(f,e,n,y,d,p);o.push(d),a.push(l)}return new ex(o,a,e,n)},selectChild:ew.selectChild,selectChildren:ew.selectChildren,filter:function(t){"function"!=typeof t&&(t=M(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,l=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&l.push(o);return new ex(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=Array(r),u=0;u<o;++u)for(var l,s=e[u],c=n[u],h=s.length,f=a[u]=Array(h),d=0;d<h;++d)(l=s[d]||c[d])&&(f[d]=l);for(;u<r;++u)a[u]=e[u];return new ex(a,this._parents,this._name,this._id)},selection:function(){return new eg(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=++ev,r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],l=u.length,s=0;s<l;++s)if(a=u[s]){var c=tN(a,e);t$(a,t,n,s,u,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new ex(r,this._parents,t,n)},call:ew.call,nodes:ew.nodes,node:ew.node,size:ew.size,empty:ew.empty,each:ew.each,on:function(t,e){var n,r,i,o,a,u,l=this._id;return arguments.length<2?tN(this.node(),l).on.on(t):this.each((n=l,r=t,i=e,u=(r+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tA:tz,function(){var t=u(this,n),e=t.on;e!==o&&(a=(o=e).copy()).on(r,i),t.on=a}))},attr:function(t,e){var n=C(t),r="transform"===n?tC:ey;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,i,o;return function(){var a,u,l=n(this);return null==l?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local))===(u=l+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,l))}}:function(t,e,n){var r,i,o;return function(){var a,u,l=n(this);return null==l?void this.removeAttribute(t):(a=this.getAttribute(t))===(u=l+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,l))}})(n,r,tO(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}:function(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}})(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();var r=C(t);return this.tween(n,(r.local?function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttributeNS(t.space,t.local,i.call(this,e))}),n}return i._value=e,i}:function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttribute(t,i.call(this,e))}),n}return i._value=e,i})(r,e))},style:function(t,e,n){var r,i,o,a,u,l,s,c,h,f,d,p,y,g,m,v,x,w,_,b,M,E="transform"==(t+="")?tL:ey;return null==e?this.styleTween(t,(r=t,function(){var t=D(this,r),e=(this.style.removeProperty(r),D(this,r));return t===e?null:t===i&&e===o?a:a=E(i=t,o=e)})).on("end.style."+t,em(t)):"function"==typeof e?this.styleTween(t,(u=t,l=tO(this,"style."+t,e),function(){var t=D(this,u),e=l(this),n=e+"";return null==e&&(this.style.removeProperty(u),n=e=D(this,u)),t===n?null:t===s&&n===c?h:(c=n,h=E(s=t,e))})).each((f=this._id,x="end."+(v="style."+(d=t)),function(){var t=tz(this,f),e=t.on,n=null==t.value[v]?m||(m=em(d)):void 0;(e!==p||g!==n)&&(y=(p=e).copy()).on(x,g=n),t.on=y})):this.styleTween(t,(w=t,M=e+"",function(){var t=D(this,w);return t===M?null:t===_?b:b=E(_=t,e)}),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e){this.style.setProperty(t,o.call(this,e),n)}),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){var e,n;return this.tween("text","function"==typeof t?(e=tO(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(n=null==t?"":t+"",function(){this.textContent=n}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){this.textContent=r.call(this,t)}),e}return r._value=t,r}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=tN(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var i=tz(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,u=r.length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}}i.tween=r}}:function(t,e,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=tz(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:e,value:n},l=0,s=i.length;l<s;++l)if(i[l].name===e){i[l]=u;break}l===s&&i.push(u)}o.tween=i}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tA(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tA(this,t).delay=e}})(e,t)):tN(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tz(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tz(this,t).duration=e}})(e,t)):tN(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tz(this,t).ease=e}}(e,t)):tN(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw Error();tz(this,e).ease=n}))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var u={value:a},l={value:function(){0==--i&&o()}};n.each(function(){var n=tz(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(l)),n.on=e}),0===i&&o()})},[Symbol.iterator]:ew[Symbol.iterator]};var e_={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};to.prototype.interrupt=function(t){return this.each(function(){tS(this,t)})},to.prototype.transition=function(t){var e,n;t instanceof ex?(e=t._id,t=t._name):(e=++ev,(n=e_).time=(0,tb.tB)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],l=u.length,s=0;s<l;++s)(a=u[s])&&t$(a,t,e,s,u,n||function(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return n}(a,e));return new ex(r,this._parents,t,e)};let eb=t=>()=>t;function eM(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function eE(t,e,n){this.k=t,this.x=e,this.y=n}eE.prototype={constructor:eE,scale:function(t){return 1===t?this:new eE(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new eE(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ek=new eE(1,0,0);function e$(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ek;return t.__zoom}function eA(t){t.stopImmediatePropagation()}function ez(t){t.preventDefault(),t.stopImmediatePropagation()}function eN(t){return(!t.ctrlKey||"wheel"===t.type)&&!t.button}function eS(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function eT(){return this.__zoom||ek}function eI(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function eP(){return navigator.maxTouchPoints||"ontouchstart"in this}function eH(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function eB(){var t,e,n,r=eN,i=eS,o=eH,a=eI,u=eP,l=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],c=250,h=t_,f=(0,v.A)("start","zoom","end"),d=0,p=10;function y(t){t.property("__zoom",eT).on("wheel.zoom",M,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",k).filter(u).on("touchstart.zoom",$).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(l[0],Math.min(l[1],e)))===t.k?t:new eE(e,t.x,t.y)}function m(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new eE(t.k,r,i)}function x(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function w(t,e,n,r){t.on("start.zoom",function(){_(this,arguments).event(r).start()}).on("interrupt.zoom end.zoom",function(){_(this,arguments).event(r).end()}).tween("zoom",function(){var t=arguments,o=_(this,t).event(r),a=i.apply(this,t),u=null==n?x(a):"function"==typeof n?n.apply(this,t):n,l=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),s=this.__zoom,c="function"==typeof e?e.apply(this,t):e,f=h(s.invert(u).concat(l/s.k),c.invert(u).concat(l/c.k));return function(t){if(1===t)t=c;else{var e=f(t),n=l/e[2];t=new eE(n,u[0]-e[0]*n,u[1]-e[1]*n)}o.zoom(null,t)}})}function _(t,e,n){return!n&&t.__zooming||new b(t,e)}function b(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,e),this.taps=0}function M(t,...e){if(r.apply(this,arguments)){var n=_(this,e).event(t),i=this.__zoom,u=Math.max(l[0],Math.min(l[1],i.k*Math.pow(2,a.apply(this,arguments)))),c=tu(t);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===u)return;n.mouse=[c,i.invert(c)],tS(this),n.start()}ez(t),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",o(m(g(i,u),n.mouse[0],n.mouse[1]),n.extent,s))}}function E(t,...e){if(!n&&r.apply(this,arguments)){var i=t.currentTarget,a=_(this,e,!0).event(t),u=ta(t.view).on("mousemove.zoom",function(t){if(ez(t),!a.moved){var e=t.clientX-c,n=t.clientY-h;a.moved=e*e+n*n>d}a.event(t).zoom("mouse",o(m(a.that.__zoom,a.mouse[0]=tu(t,i),a.mouse[1]),a.extent,s))},!0).on("mouseup.zoom",function(t){u.on("mousemove.zoom mouseup.zoom",null),td(t.view,a.moved),ez(t),a.event(t).end()},!0),l=tu(t,i),c=t.clientX,h=t.clientY;tf(t.view),eA(t),a.mouse=[l,this.__zoom.invert(l)],tS(this),a.start()}}function k(t,...e){if(r.apply(this,arguments)){var n=this.__zoom,a=tu(t.changedTouches?t.changedTouches[0]:t,this),u=n.invert(a),l=n.k*(t.shiftKey?.5:2),h=o(m(g(n,l),a,u),i.apply(this,e),s);ez(t),c>0?ta(this).transition().duration(c).call(w,h,a,t):ta(this).call(y.transform,h,a,t)}}function $(n,...i){if(r.apply(this,arguments)){var o,a,u,l,s=n.touches,c=s.length,h=_(this,i,n.changedTouches.length===c).event(n);for(eA(n),a=0;a<c;++a)l=[l=tu(u=s[a],this),this.__zoom.invert(l),u.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,o=!0,h.taps=1+!!t);t&&(t=clearTimeout(t)),o&&(h.taps<2&&(e=l[0],t=setTimeout(function(){t=null},500)),tS(this),h.start())}}function A(t,...e){if(this.__zooming){var n,r,i,a,u=_(this,e).event(t),l=t.changedTouches,c=l.length;for(ez(t),n=0;n<c;++n)i=tu(r=l[n],this),u.touch0&&u.touch0[2]===r.identifier?u.touch0[0]=i:u.touch1&&u.touch1[2]===r.identifier&&(u.touch1[0]=i);if(r=u.that.__zoom,u.touch1){var h=u.touch0[0],f=u.touch0[1],d=u.touch1[0],p=u.touch1[1],y=(y=d[0]-h[0])*y+(y=d[1]-h[1])*y,v=(v=p[0]-f[0])*v+(v=p[1]-f[1])*v;r=g(r,Math.sqrt(y/v)),i=[(h[0]+d[0])/2,(h[1]+d[1])/2],a=[(f[0]+p[0])/2,(f[1]+p[1])/2]}else{if(!u.touch0)return;i=u.touch0[0],a=u.touch0[1]}u.zoom("touch",o(m(r,i,a),u.extent,s))}}function z(t,...r){if(this.__zooming){var i,o,a=_(this,r).event(t),u=t.changedTouches,l=u.length;for(eA(t),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),i=0;i<l;++i)o=u[i],a.touch0&&a.touch0[2]===o.identifier?delete a.touch0:a.touch1&&a.touch1[2]===o.identifier&&delete a.touch1;if(a.touch1&&!a.touch0&&(a.touch0=a.touch1,delete a.touch1),a.touch0)a.touch0[1]=this.__zoom.invert(a.touch0[0]);else if(a.end(),2===a.taps&&(o=tu(o,this),Math.hypot(e[0]-o[0],e[1]-o[1])<p)){var s=ta(this).on("dblclick.zoom");s&&s.apply(this,arguments)}}}return y.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",eT),t!==i?w(t,e,n,r):i.interrupt().each(function(){_(this,arguments).event(r).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})},y.scaleBy=function(t,e,n,r){y.scaleTo(t,function(){var t=this.__zoom.k,n="function"==typeof e?e.apply(this,arguments):e;return t*n},n,r)},y.scaleTo=function(t,e,n,r){y.transform(t,function(){var t=i.apply(this,arguments),r=this.__zoom,a=null==n?x(t):"function"==typeof n?n.apply(this,arguments):n,u=r.invert(a),l="function"==typeof e?e.apply(this,arguments):e;return o(m(g(r,l),a,u),t,s)},n,r)},y.translateBy=function(t,e,n,r){y.transform(t,function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),i.apply(this,arguments),s)},null,r)},y.translateTo=function(t,e,n,r,a){y.transform(t,function(){var t=i.apply(this,arguments),a=this.__zoom,u=null==r?x(t):"function"==typeof r?r.apply(this,arguments):r;return o(ek.translate(u[0],u[1]).scale(a.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,s)},r,a)},b.prototype={event:function(t){return t&&(this.sourceEvent=t),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=ta(this.that).datum();f.call(t,this.that,new eM(t,{sourceEvent:this.sourceEvent,target:y,type:t,transform:this.that.__zoom,dispatch:f}),e)}},y.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:eb(+t),y):a},y.filter=function(t){return arguments.length?(r="function"==typeof t?t:eb(!!t),y):r},y.touchable=function(t){return arguments.length?(u="function"==typeof t?t:eb(!!t),y):u},y.extent=function(t){return arguments.length?(i="function"==typeof t?t:eb([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),y):i},y.scaleExtent=function(t){return arguments.length?(l[0]=+t[0],l[1]=+t[1],y):[l[0],l[1]]},y.translateExtent=function(t){return arguments.length?(s[0][0]=+t[0][0],s[1][0]=+t[1][0],s[0][1]=+t[0][1],s[1][1]=+t[1][1],y):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},y.constrain=function(t){return arguments.length?(o=t,y):o},y.duration=function(t){return arguments.length?(c=+t,y):c},y.interpolate=function(t){return arguments.length?(h=t,y):h},y.on=function(){var t=f.on.apply(f,arguments);return t===f?y:t},y.clickDistance=function(t){return arguments.length?(d=(t*=1)*t,y):Math.sqrt(d)},y.tapDistance=function(t){return arguments.length?(p=+t,y):p},y}function eL(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?el(e):("number"===i?tT:"string"===i?(r=t1(e))?(e=r,ec):ep:e instanceof t1?ec:e instanceof Date?function(t,e){var n=new Date;return t*=1,e*=1,function(r){return n.setTime(t*(1-r)+e*r),n}}:!ArrayBuffer.isView(n=e)||n instanceof DataView?Array.isArray(e)?function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=Array(i),a=Array(r);for(n=0;n<i;++n)o[n]=eL(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var n,r={},i={};for(n in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)n in t?r[n]=eL(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}:tT:function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}})(t,e)}e$.prototype=eE.prototype;let eC={error001:(t="react")=>`Seems like you have not used zustand provider as an ancestor. Help: https://${t}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:t=>`Node type "${t}" 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:t=>`The old edge with id=${t} does not exist.`,error009:t=>`Marker type "${t}" doesn't exist.`,error008:(t,{id:e,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${t} handle id: "${"source"===t?n:r}", edge id: ${e}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:t=>`Edge type "${t}" not found. Using fallback type "default".`,error012:t=>`Node with id "${t}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(t="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${t}/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:t=>`Edge with id "${t}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},eO=[[-1/0,-1/0],[1/0,1/0]],eD=["Enter"," ","Escape"],eX={"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:t,x:e,y:n})=>`Moved selected node ${t}. New position, x: ${e}, 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=f||(f={})).Free="free",i.Vertical="vertical",i.Horizontal="horizontal",(o=d||(d={})).Partial="partial",o.Full="full";let eq={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};(a=p||(p={})).Bezier="default",a.Straight="straight",a.Step="step",a.SmoothStep="smoothstep",a.SimpleBezier="simplebezier",(u=y||(y={})).Arrow="arrow",u.ArrowClosed="arrowclosed",(l=g||(g={})).Left="left",l.Top="top",l.Right="right",l.Bottom="bottom";let eR={[g.Left]:g.Right,[g.Right]:g.Left,[g.Top]:g.Bottom,[g.Bottom]:g.Top};function eY(t){return null===t?null:t?"valid":"invalid"}let ej=t=>"id"in t&&"source"in t&&"target"in t,eV=t=>"id"in t&&"position"in t&&!("source"in t)&&!("target"in t),eF=t=>"id"in t&&"internals"in t&&!("source"in t)&&!("target"in t),eK=(t,e=[0,0])=>{let{width:n,height:r}=nf(t),i=t.origin??e,o=n*i[0],a=r*i[1];return{x:t.position.x-o,y:t.position.y-a}},eW=(t,e={nodeOrigin:[0,0]})=>0===t.length?{x:0,y:0,width:0,height:0}:e6(t.reduce((t,n)=>{let r="string"==typeof n,i=e.nodeLookup||r?void 0:n;return e.nodeLookup&&(i=r?e.nodeLookup.get(n):eF(n)?n:e.nodeLookup.get(n.id)),e8(t,i?e7(i,e.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),eU=(t,e={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return t.forEach(t=>{(void 0===e.filter||e.filter(t))&&(n=e8(n,e7(t)),r=!0)}),r?e6(n):{x:0,y:0,width:0,height:0}},eZ=(t,e,[n,r,i]=[0,0,1],o=!1,a=!1)=>{let u={...na(e,[n,r,i]),width:e.width/i,height:e.height/i},l=[];for(let e of t.values()){let{measured:t,selectable:n=!0,hidden:r=!1}=e;if(a&&!n||r)continue;let i=t.width??e.width??e.initialWidth??null,s=t.height??e.height??e.initialHeight??null,c=ne(u,e9(e)),h=(i??0)*(s??0),f=o&&c>0;(!e.internals.handleBounds||f||c>=h||e.dragging)&&l.push(e)}return l};async function eQ({nodes:t,width:e,height:n,panZoom:r,minZoom:i,maxZoom:o},a){let u,l;if(0===t.size)return!0;let s=ns(eU((u=new Map,l=a?.nodes?new Set(a.nodes.map(t=>t.id)):null,t.forEach(t=>{t.measured.width&&t.measured.height&&(a?.includeHiddenNodes||!t.hidden)&&(!l||l.has(t.id))&&u.set(t.id,t)}),u)),e,n,a?.minZoom??i,a?.maxZoom??o,a?.padding??.1);return await r.setViewport(s,{duration:a?.duration,ease:a?.ease,interpolate:a?.interpolate}),!0}function eG({nodeId:t,nextPosition:e,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:o}){let a=n.get(t),u=a.parentId?n.get(a.parentId):void 0,{x:l,y:s}=u?u.internals.positionAbsolute:{x:0,y:0},c=a.origin??r,h=a.extent||i;if("parent"!==a.extent||a.expandParent)u&&nh(a.extent)&&(h=[[a.extent[0][0]+l,a.extent[0][1]+s],[a.extent[1][0]+l,a.extent[1][1]+s]]);else if(u){let t=u.measured.width,e=u.measured.height;t&&e&&(h=[[l,s],[l+t,s+e]])}else o?.("005",eC.error005());let f=nh(h)?e1(e,h,a.measured):e;return(void 0===a.measured.width||void 0===a.measured.height)&&o?.("015",eC.error015()),{position:{x:f.x-l+(a.measured.width??0)*c[0],y:f.y-s+(a.measured.height??0)*c[1]},positionAbsolute:f}}async function eJ({nodesToRemove:t=[],edgesToRemove:e=[],nodes:n,edges:r,onBeforeDelete:i}){let o,a=new Set(t.map(t=>t.id)),u=[];for(let t of n){if(!1===t.deletable)continue;let e=a.has(t.id),n=!e&&t.parentId&&u.find(e=>e.id===t.parentId);(e||n)&&u.push(t)}let l=new Set(e.map(t=>t.id)),s=r.filter(t=>!1!==t.deletable),c=(o=new Set,u.forEach(t=>{o.add(t.id)}),s.filter(t=>o.has(t.source)||o.has(t.target)));for(let t of s)l.has(t.id)&&!c.find(e=>e.id===t.id)&&c.push(t);if(!i)return{edges:c,nodes:u};let h=await i({nodes:u,edges:c});return"boolean"==typeof h?h?{edges:c,nodes:u}:{edges:[],nodes:[]}:h}let e0=(t,e=0,n=1)=>Math.min(Math.max(t,e),n),e1=(t={x:0,y:0},e,n)=>({x:e0(t.x,e[0][0],e[1][0]-(n?.width??0)),y:e0(t.y,e[0][1],e[1][1]-(n?.height??0))});function e2(t,e,n){let{width:r,height:i}=nf(n),{x:o,y:a}=n.internals.positionAbsolute;return e1(t,[[o,a],[o+r,a+i]],e)}let e5=(t,e,n)=>t<e?e0(Math.abs(t-e),1,e)/e:t>n?-e0(Math.abs(t-n),1,e)/e:0,e3=(t,e,n=15,r=40)=>[e5(t.x,r,e.width-r)*n,e5(t.y,r,e.height-r)*n],e8=(t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x2,e.x2),y2:Math.max(t.y2,e.y2)}),e4=({x:t,y:e,width:n,height:r})=>({x:t,y:e,x2:t+n,y2:e+r}),e6=({x:t,y:e,x2:n,y2:r})=>({x:t,y:e,width:n-t,height:r-e}),e9=(t,e=[0,0])=>{let{x:n,y:r}=eF(t)?t.internals.positionAbsolute:eK(t,e);return{x:n,y:r,width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}},e7=(t,e=[0,0])=>{let{x:n,y:r}=eF(t)?t.internals.positionAbsolute:eK(t,e);return{x:n,y:r,x2:n+(t.measured?.width??t.width??t.initialWidth??0),y2:r+(t.measured?.height??t.height??t.initialHeight??0)}},nt=(t,e)=>e6(e8(e4(t),e4(e))),ne=(t,e)=>Math.ceil(Math.max(0,Math.min(t.x+t.width,e.x+e.width)-Math.max(t.x,e.x))*Math.max(0,Math.min(t.y+t.height,e.y+e.height)-Math.max(t.y,e.y))),nn=t=>nr(t.width)&&nr(t.height)&&nr(t.x)&&nr(t.y),nr=t=>!isNaN(t)&&isFinite(t),ni=(t,e)=>(t,e)=>{},no=(t,e=[1,1])=>({x:e[0]*Math.round(t.x/e[0]),y:e[1]*Math.round(t.y/e[1])}),na=({x:t,y:e},[n,r,i],o=!1,a=[1,1])=>{let u={x:(t-n)/i,y:(e-r)/i};return o?no(u,a):u},nu=({x:t,y:e},[n,r,i])=>({x:t*i+n,y:e*i+r});function nl(t,e){if("number"==typeof t)return Math.floor((e-e/(1+t))*.5);if("string"==typeof t&&t.endsWith("px")){let e=parseFloat(t);if(!Number.isNaN(e))return Math.floor(e)}if("string"==typeof t&&t.endsWith("%")){let n=parseFloat(t);if(!Number.isNaN(n))return Math.floor(e*n*.01)}return console.error(`The padding value "${t}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}let ns=(t,e,n,r,i,o)=>{let a=function(t,e,n){if("string"==typeof t||"number"==typeof t){let r=nl(t,n),i=nl(t,e);return{top:r,right:i,bottom:r,left:i,x:2*i,y:2*r}}if("object"==typeof t){let r=nl(t.top??t.y??0,n),i=nl(t.bottom??t.y??0,n),o=nl(t.left??t.x??0,e),a=nl(t.right??t.x??0,e);return{top:r,right:a,bottom:i,left:o,x:o+a,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(o,e,n),u=e0(Math.min((e-a.x)/t.width,(n-a.y)/t.height),r,i),l=t.x+t.width/2,s=t.y+t.height/2,c=e/2-l*u,h=n/2-s*u,f=function(t,e,n,r,i,o){let{x:a,y:u}=nu(t,[e,n,r]),{x:l,y:s}=nu({x:t.x+t.width,y:t.y+t.height},[e,n,r]);return{left:Math.floor(a),top:Math.floor(u),right:Math.floor(i-l),bottom:Math.floor(o-s)}}(t,c,h,u,e,n),d={left:Math.min(f.left-a.left,0),top:Math.min(f.top-a.top,0),right:Math.min(f.right-a.right,0),bottom:Math.min(f.bottom-a.bottom,0)};return{x:c-d.left+d.right,y:h-d.top+d.bottom,zoom:u}},nc=()=>"u">typeof navigator&&navigator?.userAgent?.indexOf("Mac")>=0;function nh(t){return null!=t&&"parent"!==t}function nf(t){return{width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}}function nd(t){return(t.measured?.width??t.width??t.initialWidth)!==void 0&&(t.measured?.height??t.height??t.initialHeight)!==void 0}function np(t,e={width:0,height:0},n,r,i){let o={...t},a=r.get(n);if(a){let t=a.origin||i;o.x+=a.internals.positionAbsolute.x-(e.width??0)*t[0],o.y+=a.internals.positionAbsolute.y-(e.height??0)*t[1]}return o}function ny(t,e){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function ng(){let t,e;return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}function nm(t){return{...eX,...t||{}}}function nv(t,{snapGrid:e=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){let{x:o,y:a}=nE(t),u=na({x:o-(i?.left??0),y:a-(i?.top??0)},r),{x:l,y:s}=n?no(u,e):u;return{xSnapped:l,ySnapped:s,...u}}let nx=t=>({width:t.offsetWidth,height:t.offsetHeight}),nw=t=>t?.getRootNode?.()||window?.document,n_=["INPUT","SELECT","TEXTAREA"];function nb(t){let e=t.composedPath?.()?.[0]||t.target;return e?.nodeType===1&&(n_.includes(e.nodeName)||e.hasAttribute("contenteditable")||!!e.closest(".nokey"))}let nM=t=>"clientX"in t,nE=(t,e)=>{let n=nM(t),r=n?t.clientX:t.touches?.[0].clientX,i=n?t.clientY:t.touches?.[0].clientY;return{x:r-(e?.left??0),y:i-(e?.top??0)}},nk=(t,e,n,r,i)=>{let o=e.querySelectorAll(`.${t}`);return o&&o.length?Array.from(o).map(e=>{let o=e.getBoundingClientRect();return{id:e.getAttribute("data-handleid"),type:t,nodeId:i,position:e.getAttribute("data-handlepos"),x:(o.left-n.left)/r,y:(o.top-n.top)/r,...nx(e)}}):null};function n$({sourceX:t,sourceY:e,targetX:n,targetY:r,sourceControlX:i,sourceControlY:o,targetControlX:a,targetControlY:u}){let l=.125*t+.375*i+.375*a+.125*n,s=.125*e+.375*o+.375*u+.125*r,c=Math.abs(l-t),h=Math.abs(s-e);return[l,s,c,h]}function nA(t,e){return t>=0?.5*t:25*e*Math.sqrt(-t)}function nz({pos:t,x1:e,y1:n,x2:r,y2:i,c:o}){switch(t){case g.Left:return[e-nA(e-r,o),n];case g.Right:return[e+nA(r-e,o),n];case g.Top:return[e,n-nA(n-i,o)];case g.Bottom:return[e,n+nA(i-n,o)]}}function nN({sourceX:t,sourceY:e,sourcePosition:n=g.Bottom,targetX:r,targetY:i,targetPosition:o=g.Top,curvature:a=.25}){let[u,l]=nz({pos:n,x1:t,y1:e,x2:r,y2:i,c:a}),[s,c]=nz({pos:o,x1:r,y1:i,x2:t,y2:e,c:a}),[h,f,d,p]=n$({sourceX:t,sourceY:e,targetX:r,targetY:i,sourceControlX:u,sourceControlY:l,targetControlX:s,targetControlY:c});return[`M${t},${e} C${u},${l} ${s},${c} ${r},${i}`,h,f,d,p]}function nS({sourceX:t,sourceY:e,targetX:n,targetY:r}){let i=Math.abs(n-t)/2,o=Math.abs(r-e)/2;return[n<t?n+i:n-i,r<e?r+o:r-o,i,o]}function nT({sourceNode:t,targetNode:e,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:o="basic"}){if("manual"===o)return r;let a=Math.max(t.parentId||i&&t.selected?t.internals.z:0,e.parentId||i&&e.selected?e.internals.z:0);return(i&&n?r+1e3:r)+a}function nI({sourceNode:t,targetNode:e,width:n,height:r,transform:i}){let o=e8(e7(t),e7(e));return o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1),ne({x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]},e6(o))>0}let nP=({source:t,sourceHandle:e,target:n,targetHandle:r})=>`xy-edge__${t}${e||""}-${n}${r||""}`,nH=(t,e,n={})=>{let r,i;if(!t.source||!t.target)return n.onError?.("006",eC.error006()),e;let o=n.getEdgeId||nP;return(i=r=ej(t)?{...t}:{...t,id:o(t)},e.some(t=>t.source===i.source&&t.target===i.target&&(t.sourceHandle===i.sourceHandle||!t.sourceHandle&&!i.sourceHandle)&&(t.targetHandle===i.targetHandle||!t.targetHandle&&!i.targetHandle)))?e:(null===r.sourceHandle&&delete r.sourceHandle,null===r.targetHandle&&delete r.targetHandle,e.concat(r))};function nB({sourceX:t,sourceY:e,targetX:n,targetY:r}){let[i,o,a,u]=nS({sourceX:t,sourceY:e,targetX:n,targetY:r});return[`M ${t},${e}L ${n},${r}`,i,o,a,u]}let nL={[g.Left]:{x:-1,y:0},[g.Right]:{x:1,y:0},[g.Top]:{x:0,y:-1},[g.Bottom]:{x:0,y:1}},nC=({source:t,sourcePosition:e=g.Bottom,target:n})=>e===g.Left||e===g.Right?t.x<n.x?{x:1,y:0}:{x:-1,y:0}:t.y<n.y?{x:0,y:1}:{x:0,y:-1},nO=(t,e)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));function nD({sourceX:t,sourceY:e,sourcePosition:n=g.Bottom,targetX:r,targetY:i,targetPosition:o=g.Top,borderRadius:a=5,centerX:u,centerY:l,offset:s=20,stepPosition:c=.5}){let[h,f,d,p,y]=function({source:t,sourcePosition:e=g.Bottom,target:n,targetPosition:r=g.Top,center:i,offset:o,stepPosition:a}){let u,l,s=nL[e],c=nL[r],h={x:t.x+s.x*o,y:t.y+s.y*o},f={x:n.x+c.x*o,y:n.y+c.y*o},d=nC({source:h,sourcePosition:e,target:f}),p=0!==d.x?"x":"y",y=d[p],m=[],v={x:0,y:0},x={x:0,y:0},[,,w,_]=nS({sourceX:t.x,sourceY:t.y,targetX:n.x,targetY:n.y});if(s[p]*c[p]==-1){"x"===p?(u=i.x??h.x+(f.x-h.x)*a,l=i.y??(h.y+f.y)/2):(u=i.x??(h.x+f.x)/2,l=i.y??h.y+(f.y-h.y)*a);let t=[{x:u,y:h.y},{x:u,y:f.y}],e=[{x:h.x,y:l},{x:f.x,y:l}];m=s[p]===y?"x"===p?t:e:"x"===p?e:t}else{let i=[{x:h.x,y:f.y}],a=[{x:f.x,y:h.y}];if(m="x"===p?s.x===y?a:i:s.y===y?i:a,e===r){let e=Math.abs(t[p]-n[p]);if(e<=o){let r=Math.min(o-1,o-e);s[p]===y?v[p]=(h[p]>t[p]?-1:1)*r:x[p]=(f[p]>n[p]?-1:1)*r}}if(e!==r){let t="x"===p?"y":"x",e=s[p]===c[t],n=h[t]>f[t],r=h[t]<f[t];(1===s[p]&&(!e&&n||e&&r)||1!==s[p]&&(!e&&r||e&&n))&&(m="x"===p?i:a)}let d={x:h.x+v.x,y:h.y+v.y},g={x:f.x+x.x,y:f.y+x.y};Math.max(Math.abs(d.x-m[0].x),Math.abs(g.x-m[0].x))>=Math.max(Math.abs(d.y-m[0].y),Math.abs(g.y-m[0].y))?(u=(d.x+g.x)/2,l=m[0].y):(u=m[0].x,l=(d.y+g.y)/2)}let b={x:h.x+v.x,y:h.y+v.y},M={x:f.x+x.x,y:f.y+x.y};return[[t,...b.x!==m[0].x||b.y!==m[0].y?[b]:[],...m,...M.x!==m[m.length-1].x||M.y!==m[m.length-1].y?[M]:[],n],u,l,w,_]}({source:{x:t,y:e},sourcePosition:n,target:{x:r,y:i},targetPosition:o,center:{x:u,y:l},offset:s,stepPosition:c}),m=`M${h[0].x} ${h[0].y}`;for(let t=1;t<h.length-1;t++)m+=function(t,e,n,r){let i=Math.min(nO(t,e)/2,nO(e,n)/2,r),{x:o,y:a}=e;if(t.x===o&&o===n.x||t.y===a&&a===n.y)return`L${o} ${a}`;if(t.y===a){let e=t.x<n.x?-1:1,r=t.y<n.y?1:-1;return`L ${o+i*e},${a}Q ${o},${a} ${o},${a+i*r}`}let u=t.x<n.x?1:-1,l=t.y<n.y?-1:1;return`L ${o},${a+i*l}Q ${o},${a} ${o+i*u},${a}`}(h[t-1],h[t],h[t+1],a);return[m+=`L${h[h.length-1].x} ${h[h.length-1].y}`,f,d,p,y]}function nX(t){return t&&!!(t.internals.handleBounds||t.handles?.length)&&!!(t.measured.width||t.width||t.initialWidth)}function nq(t){let{sourceNode:e,targetNode:n}=t;if(!nX(e)||!nX(n))return null;let r=e.internals.handleBounds||nR(e.handles),i=n.internals.handleBounds||nR(n.handles),o=nj(r?.source??[],t.sourceHandle),a=nj(t.connectionMode===h.Strict?i?.target??[]:(i?.target??[]).concat(i?.source??[]),t.targetHandle);if(!o||!a)return t.onError?.("008",eC.error008(!o?"source":"target",{id:t.id,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle})),null;let u=o?.position||g.Bottom,l=a?.position||g.Top,s=nY(e,o,u),c=nY(n,a,l);return{sourceX:s.x,sourceY:s.y,targetX:c.x,targetY:c.y,sourcePosition:u,targetPosition:l}}function nR(t){if(!t)return null;let e=[],n=[];for(let r of t)r.width=r.width??1,r.height=r.height??1,"source"===r.type?e.push(r):"target"===r.type&&n.push(r);return{source:e,target:n}}function nY(t,e,n=g.Left,r=!1){let i=(e?.x??0)+t.internals.positionAbsolute.x,o=(e?.y??0)+t.internals.positionAbsolute.y,{width:a,height:u}=e??nf(t);if(r)return{x:i+a/2,y:o+u/2};switch(e?.position??n){case g.Top:return{x:i+a/2,y:o};case g.Right:return{x:i+a,y:o+u/2};case g.Bottom:return{x:i+a/2,y:o+u};case g.Left:return{x:i,y:o+u/2}}}function nj(t,e){return t&&(e?t.find(t=>t.id===e):t[0])||null}function nV(t,e){if(!t)return"";if("string"==typeof t)return t;let n=e?`${e}__`:"";return`${n}${Object.keys(t).sort().map(e=>`${e}=${t[e]}`).join("&")}`}function nF(t,{id:e,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){let o=new Set;return t.reduce((t,a)=>([a.markerStart||r,a.markerEnd||i].forEach(r=>{if(r&&"object"==typeof r){let i=nV(r,e);o.has(i)||(t.push({id:i,color:r.color||n,...r}),o.add(i))}}),t),[]).sort((t,e)=>t.id.localeCompare(e.id))}let nK={nodeOrigin:[0,0],nodeExtent:eO,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},nW={...nK,checkEquality:!0};function nU(t,e){let n={...t};for(let t in e)void 0!==e[t]&&(n[t]=e[t]);return n}function nZ(t,e,n){let r=nU(nK,n);for(let n of t.values())if(n.parentId)nJ(n,t,e,r);else{let t=e1(eK(n,r.nodeOrigin),nh(n.extent)?n.extent:r.nodeExtent,nf(n));n.internals.positionAbsolute=t}}function nQ(t){return"manual"===t}function nG(t,e,n,r={}){let i=nU(nW,r),o={i:0},a=new Map(e),u=i?.elevateNodesOnSelect&&!nQ(i.zIndexMode)?1e3:0,l=t.length>0,s=!1;for(let c of(e.clear(),n.clear(),t)){let t=a.get(c.id);if(i.checkEquality&&c===t?.internals.userNode)e.set(c.id,t);else{let n=e1(eK(c,i.nodeOrigin),nh(c.extent)?c.extent:i.nodeExtent,nf(c));t={...i.defaults,...c,measured:{width:c.measured?.width,height:c.measured?.height},internals:{positionAbsolute:n,handleBounds:function(t,e){if(!t.handles)return t.measured?e?.internals.handleBounds:void 0;let n=[],r=[];for(let e of t.handles){let i={id:e.id,width:e.width??1,height:e.height??1,nodeId:t.id,x:e.x,y:e.y,position:e.position,type:e.type};"source"===e.type?n.push(i):"target"===e.type&&r.push(i)}return{source:n,target:r}}(c,t),z:n0(c,u,i.zIndexMode),userNode:c}},e.set(c.id,t)}void 0!==t.measured&&void 0!==t.measured.width&&void 0!==t.measured.height||t.hidden||(l=!1),c.parentId&&nJ(t,e,n,r,o),s||=c.selected??!1}return{nodesInitialized:l,hasSelectedNodes:s}}function nJ(t,e,n,r,i){let{elevateNodesOnSelect:o,nodeOrigin:a,nodeExtent:u,zIndexMode:l}=nU(nK,r),s=t.parentId,c=e.get(s);if(!c)return void console.warn(`Parent node ${s} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);!function(t,e){if(!t.parentId)return;let n=e.get(t.parentId);n?n.set(t.id,t):e.set(t.parentId,new Map([[t.id,t]]))}(t,n),i&&!c.parentId&&void 0===c.internals.rootParentIndex&&"auto"===l&&(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:f,z:d}=function(t,e,n,r,i,o){let{x:a,y:u}=e.internals.positionAbsolute,l=nf(t),s=eK(t,n),c=nh(t.extent)?e1(s,t.extent,l):s,h=e1({x:a+c.x,y:u+c.y},r,l);"parent"===t.extent&&(h=e2(h,l,e));let f=n0(t,i,o),d=e.internals.z??0;return{x:h.x,y:h.y,z:d>=f?d+1:f}}(t,c,a,u,o&&!nQ(l)?1e3:0,l),{positionAbsolute:p}=t.internals,y=h!==p.x||f!==p.y;(y||d!==t.internals.z)&&e.set(t.id,{...t,internals:{...t.internals,positionAbsolute:y?{x:h,y:f}:p,z:d}})}function n0(t,e,n){let r=nr(t.zIndex)?t.zIndex:0;return nQ(n)?r:r+(t.selected?e:0)}function n1(t,e,n,r=[0,0]){let i=[],o=new Map;for(let n of t){let t=e.get(n.parentId);if(!t)continue;let r=nt(o.get(n.parentId)?.expandedRect??e9(t),n.rect);o.set(n.parentId,{expandedRect:r,parent:t})}return o.size>0&&o.forEach(({expandedRect:e,parent:o},a)=>{let u=o.internals.positionAbsolute,l=nf(o),s=o.origin??r,c=e.x<u.x?Math.round(Math.abs(u.x-e.x)):0,h=e.y<u.y?Math.round(Math.abs(u.y-e.y)):0,f=Math.max(l.width,Math.round(e.width)),d=Math.max(l.height,Math.round(e.height)),p=(f-l.width)*s[0],y=(d-l.height)*s[1];(c>0||h>0||p||y)&&(i.push({id:a,type:"position",position:{x:o.position.x-c+p,y:o.position.y-h+y}}),n.get(a)?.forEach(e=>{t.some(t=>t.id===e.id)||i.push({id:e.id,type:"position",position:{x:e.position.x+c,y:e.position.y+h}})})),(l.width<e.width||l.height<e.height||c||h)&&i.push({id:a,type:"dimensions",setAttributes:!0,dimensions:{width:f+(c?s[0]*c-p:0),height:d+(h?s[1]*h-y:0)}})}),i}function n2(t,e,n,r,i,o,a){let u=r?.querySelector(".xyflow__viewport"),l=!1;if(!u)return{changes:[],updatedInternals:l};let s=[],c=window.getComputedStyle(u),{m22:h}=new window.DOMMatrixReadOnly(c.transform),f=[];for(let r of t.values()){let t=e.get(r.id);if(!t)continue;if(t.hidden){e.set(t.id,{...t,internals:{...t.internals,handleBounds:void 0}}),l=!0;continue}let u=nx(r.nodeElement),c=t.measured.width!==u.width||t.measured.height!==u.height;if(u.width&&u.height&&(c||!t.internals.handleBounds||r.force)){let d=r.nodeElement.getBoundingClientRect(),p=nh(t.extent)?t.extent:o,{positionAbsolute:y}=t.internals;t.parentId&&"parent"===t.extent?y=e2(y,u,e.get(t.parentId)):p&&(y=e1(y,p,u));let g={...t,measured:u,internals:{...t.internals,positionAbsolute:y,handleBounds:{source:nk("source",r.nodeElement,d,h,t.id),target:nk("target",r.nodeElement,d,h,t.id)}}};e.set(t.id,g),t.parentId&&nJ(g,e,n,{nodeOrigin:i,zIndexMode:a}),l=!0,c&&(s.push({id:t.id,type:"dimensions",dimensions:u}),t.expandParent&&t.parentId&&f.push({id:t.id,parentId:t.parentId,rect:e9(g,i)}))}}if(f.length>0){let t=n1(f,e,n,i);s.push(...t)}return{changes:s,updatedInternals:l}}async function n5({delta:t,panZoom:e,transform:n,translateExtent:r,width:i,height:o}){if(!e||!t.x&&!t.y)return!1;let a=await e.setViewportConstrained({x:n[0]+t.x,y:n[1]+t.y,zoom:n[2]},[[0,0],[i,o]],r);return!!a&&(a.x!==n[0]||a.y!==n[1]||a.k!==n[2])}function n3(t,e,n,r,i,o){let a=i,u=r.get(a)||new Map;r.set(a,u.set(n,e)),a=`${i}-${t}`;let l=r.get(a)||new Map;if(r.set(a,l.set(n,e)),o){a=`${i}-${t}-${o}`;let u=r.get(a)||new Map;r.set(a,u.set(n,e))}}function n8(t,e,n){for(let r of(t.clear(),e.clear(),n)){let{source:n,target:i,sourceHandle:o=null,targetHandle:a=null}=r,u={edgeId:r.id,source:n,target:i,sourceHandle:o,targetHandle:a},l=`${n}-${o}--${i}-${a}`;n3("source",u,`${i}-${a}--${n}-${o}`,t,n,o),n3("target",u,l,t,i,a),e.set(r.id,r)}}function n4(t,e,n){let r=t;do{if(r?.matches?.(e))return!0;if(r===n)break;r=r?.parentElement}while(r);return!1}function n6({nodeId:t,dragItems:e,nodeLookup:n,dragging:r=!0}){let i=[];for(let[t,o]of e){let e=n.get(t)?.internals.userNode;e&&i.push({...e,position:o.position,dragging:r})}if(!t)return[i[0],i];let o=n.get(t)?.internals.userNode;return[o?{...o,position:e.get(t)?.position||o.position,dragging:r}:i[0],i]}function n9({onNodeMouseDown:t,getStoreItems:e,onDragStart:n,onDrag:r,onDragStop:i}){let o={x:null,y:null},a=0,u=new Map,l=!1,s={x:0,y:0},c=null,h=!1,f=null,d=!1,p=!1,y=null;return{update:function({noDragClassName:g,handleSelector:m,domNode:x,isSelectable:w,nodeId:_,nodeClickDistance:b=0}){function M({x:t,y:n}){let{nodeLookup:i,nodeExtent:a,snapGrid:l,snapToGrid:s,nodeOrigin:c,onNodeDrag:h,onSelectionDrag:f,onError:d,updateNodePositions:g}=e();o={x:t,y:n};let m=!1,v=u.size>1,x=v&&a?e4(eU(u)):null,w=v&&s?function({dragItems:t,snapGrid:e,x:n,y:r}){let i=t.values().next().value;if(!i)return null;let o={x:n-i.distance.x,y:r-i.distance.y},a=no(o,e);return{x:a.x-o.x,y:a.y-o.y}}({dragItems:u,snapGrid:l,x:t,y:n}):null;for(let[e,r]of u){if(!i.has(e))continue;let o={x:t-r.distance.x,y:n-r.distance.y};s&&(o=w?{x:Math.round(o.x+w.x),y:Math.round(o.y+w.y)}:no(o,l));let u=null;if(v&&a&&!r.extent&&x){let{positionAbsolute:t}=r.internals,e=t.x-x.x+a[0][0],n=t.x+r.measured.width-x.x2+a[1][0];u=[[e,t.y-x.y+a[0][1]],[n,t.y+r.measured.height-x.y2+a[1][1]]]}let{position:h,positionAbsolute:f}=eG({nodeId:e,nextPosition:o,nodeLookup:i,nodeExtent:u||a,nodeOrigin:c,onError:d});m=m||r.position.x!==h.x||r.position.y!==h.y,r.position=h,r.internals.positionAbsolute=f}if(p=p||m,m&&(g(u,!0),y&&(r||h||!_&&f))){let[t,e]=n6({nodeId:_,dragItems:u,nodeLookup:i});r?.(y,u,t,e),h?.(y,t,e),_||f?.(y,e)}}async function E(){if(!c)return;let{transform:t,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:i}=e();if(!i){l=!1,cancelAnimationFrame(a);return}let[u,h]=e3(s,c,r);(0!==u||0!==h)&&(o.x=(o.x??0)-u/t[2],o.y=(o.y??0)-h/t[2],await n({x:u,y:h})&&M(o)),a=requestAnimationFrame(E)}function k(r){let{nodeLookup:i,multiSelectionActive:a,nodesDraggable:l,transform:s,snapGrid:f,snapToGrid:d,selectNodesOnDrag:p,onNodeDragStart:y,onSelectionDragStart:g,unselectNodesAndEdges:m}=e();h=!0,p&&w||a||!_||i.get(_)?.selected||m(),w&&p&&_&&t?.(_);let v=nv(r.sourceEvent,{transform:s,snapGrid:f,snapToGrid:d,containerBounds:c});if(o=v,(u=function(t,e,n,r){let i=new Map;for(let[o,a]of t)if((a.selected||a.id===r)&&(!a.parentId||!function t(e,n){if(!e.parentId)return!1;let r=n.get(e.parentId);return!!r&&(!!r.selected||t(r,n))}(a,t))&&(a.draggable||e&&void 0===a.draggable)){let e=t.get(o);e&&i.set(o,{id:o,position:e.position||{x:0,y:0},distance:{x:n.x-e.internals.positionAbsolute.x,y:n.y-e.internals.positionAbsolute.y},extent:e.extent,parentId:e.parentId,origin:e.origin,expandParent:e.expandParent,internals:{positionAbsolute:e.internals.positionAbsolute||{x:0,y:0}},measured:{width:e.measured.width??0,height:e.measured.height??0}})}return i}(i,l,v,_)).size>0&&(n||y||!_&&g)){let[t,e]=n6({nodeId:_,dragItems:u,nodeLookup:i});n?.(r.sourceEvent,u,t,e),y?.(r.sourceEvent,t,e),_||g?.(r.sourceEvent,e)}}f=ta(x);let $=(function(){var t,e,n,r,i=tg,o=tm,a=tv,u=tx,l={},s=(0,v.A)("start","drag","end"),c=0,h=0;function f(t){t.on("mousedown.drag",d).filter(u).on("touchstart.drag",g).on("touchmove.drag",m,tl).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(a,u){if(!r&&i.call(this,a,u)){var l=w(this,o.call(this,a,u),a,u,"mouse");l&&(ta(a.view).on("mousemove.drag",p,ts).on("mouseup.drag",y,ts),tf(a.view),tc(a),n=!1,t=a.clientX,e=a.clientY,l("start",a))}}function p(r){if(th(r),!n){var i=r.clientX-t,o=r.clientY-e;n=i*i+o*o>h}l.mouse("drag",r)}function y(t){ta(t.view).on("mousemove.drag mouseup.drag",null),td(t.view,n),th(t),l.mouse("end",t)}function g(t,e){if(i.call(this,t,e)){var n,r,a=t.changedTouches,u=o.call(this,t,e),l=a.length;for(n=0;n<l;++n)(r=w(this,u,t,e,a[n].identifier,a[n]))&&(tc(t),r("start",t,a[n]))}}function m(t){var e,n,r=t.changedTouches,i=r.length;for(e=0;e<i;++e)(n=l[r[e].identifier])&&(th(t),n("drag",t,r[e]))}function x(t){var e,n,i=t.changedTouches,o=i.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),e=0;e<o;++e)(n=l[i[e].identifier])&&(tc(t),n("end",t,i[e]))}function w(t,e,n,r,i,o){var u,h,d,p=s.copy(),y=tu(o||n,e);if(null!=(d=a.call(t,new ty("beforestart",{sourceEvent:n,target:f,identifier:i,active:c,x:y[0],y:y[1],dx:0,dy:0,dispatch:p}),r)))return u=d.x-y[0]||0,h=d.y-y[1]||0,function n(o,a,s){var g,m=y;switch(o){case"start":l[i]=n,g=c++;break;case"end":delete l[i],--c;case"drag":y=tu(s||a,e),g=c}p.call(o,t,new ty(o,{sourceEvent:a,subject:d,target:f,identifier:i,active:g,x:y[0]+u,y:y[1]+h,dx:y[0]-m[0],dy:y[1]-m[1],dispatch:p}),r)}}return f.filter=function(t){return arguments.length?(i="function"==typeof t?t:tp(!!t),f):i},f.container=function(t){return arguments.length?(o="function"==typeof t?t:tp(t),f):o},f.subject=function(t){return arguments.length?(a="function"==typeof t?t:tp(t),f):a},f.touchable=function(t){return arguments.length?(u="function"==typeof t?t:tp(!!t),f):u},f.on=function(){var t=s.on.apply(s,arguments);return t===s?f:t},f.clickDistance=function(t){return arguments.length?(h=(t*=1)*t,f):Math.sqrt(h)},f})().clickDistance(b).on("start",t=>{let{domNode:n,nodeDragThreshold:r,transform:i,snapGrid:a,snapToGrid:u}=e();c=n?.getBoundingClientRect()||null,d=!1,p=!1,y=t.sourceEvent,0===r&&k(t),o=nv(t.sourceEvent,{transform:i,snapGrid:a,snapToGrid:u,containerBounds:c}),s=nE(t.sourceEvent,c)}).on("drag",t=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:i,snapToGrid:a,nodeDragThreshold:f,nodeLookup:p}=e(),g=nv(t.sourceEvent,{transform:r,snapGrid:i,snapToGrid:a,containerBounds:c});if(y=t.sourceEvent,("touchmove"===t.sourceEvent.type&&t.sourceEvent.touches.length>1||_&&!p.has(_))&&(d=!0),!d){if(!l&&n&&h&&(l=!0,E()),!h){let e=nE(t.sourceEvent,c),n=e.x-s.x,r=e.y-s.y;Math.sqrt(n*n+r*r)>f&&k(t)}(o.x!==g.xSnapped||o.y!==g.ySnapped)&&u&&h&&(s=nE(t.sourceEvent,c),M(g))}}).on("end",t=>{if(!h||d){d&&u.size>0&&e().updateNodePositions(u,!1);return}if(l=!1,h=!1,cancelAnimationFrame(a),u.size>0){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:o,onSelectionDragStop:a}=e();if(p&&(r(u,!1),p=!1),i||o||!_&&a){let[e,r]=n6({nodeId:_,dragItems:u,nodeLookup:n,dragging:!1});i?.(t.sourceEvent,u,e,r),o?.(t.sourceEvent,e,r),_||a?.(t.sourceEvent,r)}}}).filter(t=>{let e=t.target;return!t.button&&(!g||!n4(e,`.${g}`,x))&&(!m||n4(e,m,x))});f.call($)},destroy:function(){f?.on(".drag",null)}}}function n7(t,e,n,r,i,o=!1){let a=r.get(t);if(!a)return null;let u="strict"===i?a.internals.handleBounds?.[e]:[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]],l=(n?u?.find(t=>t.id===n):u?.[0])??null;return l&&o?{...l,...nY(a,l,l.position,!0)}:l}function rt(t,e){return t?t:e?.classList.contains("target")?"target":e?.classList.contains("source")?"source":null}let re=()=>!0;function rn(t,{handle:e,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:o,doc:a,lib:u,flowId:l,isValidConnection:s=re,nodeLookup:c}){let f="target"===o,d=e?a.querySelector(`.${u}-flow__handle[data-id="${l}-${e?.nodeId}-${e?.id}-${e?.type}"]`):null,{x:p,y}=nE(t),g=a.elementFromPoint(p,y),m=g?.classList.contains(`${u}-flow__handle`)?g:d,v={handleDomNode:m,isValid:!1,connection:null,toHandle:null};if(m){let t=rt(void 0,m),e=m.getAttribute("data-nodeid"),o=m.getAttribute("data-handleid"),a=m.classList.contains("connectable"),u=m.classList.contains("connectableend");if(!e||!t)return v;let l={source:f?e:r,sourceHandle:f?o:i,target:f?r:e,targetHandle:f?i:o};v.connection=l,v.isValid=a&&u&&(n===h.Strict?f&&"source"===t||!f&&"target"===t:e!==r||o!==i)&&s(l),v.toHandle=n7(e,t,o,c,n,!0)}return v}let rr={onPointerDown:function(t,{connectionMode:e,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:o,isTarget:a,domNode:u,nodeLookup:l,lib:s,autoPanOnConnect:c,flowId:h,panBy:f,cancelConnection:d,onConnectStart:p,onConnect:y,onConnectEnd:m,isValidConnection:v=re,onReconnectEnd:x,updateConnection:w,getTransform:_,getFromHandle:b,autoPanSpeed:M,dragThreshold:E=1,handleDomNode:k}){let $,A=nw(t.target),z=0,{x:N,y:S}=nE(t),T=rt(o,k),I=u?.getBoundingClientRect(),P=!1;if(!I||!T)return;let H=n7(i,T,r,l,e);if(!H)return;let B=nE(t,I),L=!1,C=null,O=!1,D=null,X={...H,nodeId:i,type:T,position:H.position},q=l.get(i),R={inProgress:!0,isValid:null,from:nY(q,X,g.Left,!0),fromHandle:X,fromPosition:X.position,fromNode:q,to:B,toHandle:null,toPosition:eR[X.position],toNode:null,pointer:B};function Y(){P=!0,w(R),p?.(t,{nodeId:i,handleId:r,handleType:T})}function j(t){var o,u;let d;if(!P){let{x:e,y:n}=nE(t),r=e-N,i=n-S;if(!(r*r+i*i>E*E))return;Y()}if(!b()||!X)return void V(t);let p=_();$=function(t,e,n,r){let i=[],o=1/0;for(let a of function(t,e,n){let r=[],i={x:t.x-n,y:t.y-n,width:2*n,height:2*n};for(let t of e.values())ne(i,e9(t))>0&&r.push(t);return r}(t,n,e+250))for(let n of[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]]){if(r.nodeId===n.nodeId&&r.type===n.type&&r.id===n.id)continue;let{x:u,y:l}=nY(a,n,n.position,!0),s=Math.sqrt(Math.pow(u-t.x,2)+Math.pow(l-t.y,2));s>e||(s<o?(i=[{...n,x:u,y:l}],o=s):s===o&&i.push({...n,x:u,y:l}))}if(!i.length)return null;if(i.length>1){let t="source"===r.type?"target":"source";return i.find(e=>e.type===t)??i[0]}return i[0]}(na(B=nE(t,I),p,!1,[1,1]),n,l,X),L||(!function t(){if(!c||!I)return;let[e,n]=e3(B,I,M);f({x:e,y:n}),z=requestAnimationFrame(t)}(),L=!0);let y=rn(t,{handle:$,connectionMode:e,fromNodeId:i,fromHandleId:r,fromType:a?"target":"source",isValidConnection:v,doc:A,lib:s,flowId:h,nodeLookup:l});D=y.handleDomNode,C=y.connection,o=!!$,u=y.isValid,d=null,u?d=!0:o&&!u&&(d=!1),O=d;let m=l.get(i),x=m?nY(m,X,g.Left,!0):R.from,k={...R,from:x,isValid:O,to:y.toHandle&&O?nu({x:y.toHandle.x,y:y.toHandle.y},p):B,toHandle:y.toHandle,toPosition:O&&y.toHandle?y.toHandle.position:eR[X.position],toNode:y.toHandle?l.get(y.toHandle.nodeId):null,pointer:B};w(k),R=k}function V(t){if(!("touches"in t)||!(t.touches.length>0)){if(P){($||D)&&C&&O&&y?.(C);let{inProgress:e,...n}=R,r={...n,toPosition:R.toHandle?R.toPosition:null};m?.(t,r),o&&x?.(t,r)}d(),cancelAnimationFrame(z),L=!1,O=!1,C=null,D=null,A.removeEventListener("mousemove",j),A.removeEventListener("mouseup",V),A.removeEventListener("touchmove",j),A.removeEventListener("touchend",V)}}0===E&&Y(),A.addEventListener("mousemove",j),A.addEventListener("mouseup",V),A.addEventListener("touchmove",j),A.addEventListener("touchend",V)},isValid:rn};function ri({domNode:t,panZoom:e,getTransform:n,getViewScale:r}){let i=ta(t);return{update:function({translateExtent:t,width:o,height:a,zoomStep:u=1,pannable:l=!0,zoomable:s=!0,inversePan:c=!1}){let h=[0,0],f=eB().on("start",t=>{("mousedown"===t.sourceEvent.type||"touchstart"===t.sourceEvent.type)&&(h=[t.sourceEvent.clientX??t.sourceEvent.touches[0].clientX,t.sourceEvent.clientY??t.sourceEvent.touches[0].clientY])}).on("zoom",l?i=>{let u=n();if("mousemove"!==i.sourceEvent.type&&"touchmove"!==i.sourceEvent.type||!e)return;let l=[i.sourceEvent.clientX??i.sourceEvent.touches[0].clientX,i.sourceEvent.clientY??i.sourceEvent.touches[0].clientY],s=[l[0]-h[0],l[1]-h[1]];h=l;let f=r()*Math.max(u[2],Math.log(u[2]))*(c?-1:1),d={x:u[0]-s[0]*f,y:u[1]-s[1]*f};e.setViewportConstrained({x:d.x,y:d.y,zoom:u[2]},[[0,0],[o,a]],t)}:null).on("zoom.wheel",s?t=>{if("wheel"!==t.sourceEvent.type||!e)return;let r=n(),i=t.sourceEvent.ctrlKey&&nc()?10:1,o=-t.sourceEvent.deltaY*(1===t.sourceEvent.deltaMode?.05:t.sourceEvent.deltaMode?1:.002)*u,a=r[2]*Math.pow(2,o*i);e.scaleTo(a)}:null);i.call(f,{})},destroy:function(){i.on("zoom",null)},pointer:tu}}let ro=t=>({x:t.x,y:t.y,zoom:t.k}),ra=({x:t,y:e,zoom:n})=>ek.translate(t,e).scale(n),ru=(t,e)=>t.target.closest(`.${e}`),rl=(t,e)=>2===e&&Array.isArray(t)&&t.includes(2),rs=t=>((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2,rc=(t,e=0,n=rs,r=()=>{})=>{let i="number"==typeof e&&e>0;return i||r(),i?t.transition().duration(e).ease(n).on("end",r):t},rh=t=>{let e=t.ctrlKey&&nc()?10:1;return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*e};function rf({domNode:t,minZoom:e,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:o,onPanZoomStart:a,onPanZoomEnd:u,onDraggingChange:l}){let s={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},c=t.getBoundingClientRect(),h=eB().scaleExtent([e,n]).translateExtent(r),d=ta(t).call(h);v({x:i.x,y:i.y,zoom:e0(i.zoom,e,n)},[[0,0],[c.width,c.height]],r);let p=d.on("wheel.zoom"),y=d.on("dblclick.zoom");async function g(t,e){return!!d&&new Promise(n=>{h?.interpolate(e?.interpolate==="linear"?eL:t_).transform(rc(d,e?.duration,e?.ease,()=>n(!0)),t)})}function m(){h.on("zoom",null)}async function v(t,e,n){let r=ra(t),i=h?.constrain()(r,e,n);return i&&await g(i),i}return h.wheelDelta(rh),{update:function({noWheelClassName:t,noPanClassName:e,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:i,panOnDrag:c,panOnScrollMode:g,panOnScrollSpeed:v,preventScrolling:x,zoomOnPinch:w,zoomOnScroll:_,zoomOnDoubleClick:b,zoomActivationKeyPressed:M,lib:E,onTransformChange:k,connectionInProgress:$,paneClickDistance:A,selectionOnDrag:z}){r&&!s.isZoomingOrPanning&&m();let N=i&&!M&&!r;h.clickDistance(z?1/0:!nr(A)||A<0?0:A);let S=N?function({zoomPanValues:t,noWheelClassName:e,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:o,zoomOnPinch:a,onPanZoomStart:u,onPanZoom:l,onPanZoomEnd:s}){return c=>{if(ru(c,e))return c.ctrlKey&&c.preventDefault(),!1;c.preventDefault(),c.stopImmediatePropagation();let h=n.property("__zoom").k||1;if(c.ctrlKey&&a){let t=tu(c),e=h*Math.pow(2,rh(c));r.scaleTo(n,e,t,c);return}let d=1===c.deltaMode?20:1,p=i===f.Vertical?0:c.deltaX*d,y=i===f.Horizontal?0:c.deltaY*d;!nc()&&c.shiftKey&&i!==f.Vertical&&(p=c.deltaY*d,y=0),r.translateBy(n,-(p/h)*o,-(y/h)*o,{internal:!0});let g=ro(n.property("__zoom"));clearTimeout(t.panScrollTimeout),t.isPanScrolling?(l?.(c,g),t.panScrollTimeout=setTimeout(()=>{s?.(c,g),t.isPanScrolling=!1},150)):(t.isPanScrolling=!0,u?.(c,g))}}({zoomPanValues:s,noWheelClassName:t,d3Selection:d,d3Zoom:h,panOnScrollMode:g,panOnScrollSpeed:v,zoomOnPinch:w,onPanZoomStart:a,onPanZoom:o,onPanZoomEnd:u}):function({noWheelClassName:t,preventScrolling:e,d3ZoomHandler:n}){return function(r,i){let o="wheel"===r.type,a=!e&&o&&!r.ctrlKey,u=ru(r,t);if(r.ctrlKey&&o&&u&&r.preventDefault(),a||u)return null;r.preventDefault(),n.call(this,r,i)}}({noWheelClassName:t,preventScrolling:x,d3ZoomHandler:p});d.on("wheel.zoom",S,{passive:!1});let T=function({zoomPanValues:t,onDraggingChange:e,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let i=ro(r.transform);t.mouseButton=r.sourceEvent?.button||0,t.isZoomingOrPanning=!0,t.prevViewport=i,r.sourceEvent?.type==="mousedown"&&e(!0),n&&n?.(r.sourceEvent,i)}}({zoomPanValues:s,onDraggingChange:l,onPanZoomStart:a});h.on("start",T);let I=function({zoomPanValues:t,panOnDrag:e,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return o=>{t.usedRightMouseButton=!!(n&&rl(e,t.mouseButton??0)),o.sourceEvent?.sync||r([o.transform.x,o.transform.y,o.transform.k]),i&&!o.sourceEvent?.internal&&i?.(o.sourceEvent,ro(o.transform))}}({zoomPanValues:s,panOnDrag:c,onPaneContextMenu:!!n,onPanZoom:o,onTransformChange:k});h.on("zoom",I);let P=function({zoomPanValues:t,panOnDrag:e,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:o}){return a=>{if(!a.sourceEvent?.internal&&(t.isZoomingOrPanning=!1,o&&rl(e,t.mouseButton??0)&&!t.usedRightMouseButton&&a.sourceEvent&&o(a.sourceEvent),t.usedRightMouseButton=!1,r(!1),i)){let e=ro(a.transform);t.prevViewport=e,clearTimeout(t.timerId),t.timerId=setTimeout(()=>{i?.(a.sourceEvent,e)},150*!!n)}}}({zoomPanValues:s,panOnDrag:c,panOnScroll:i,onPaneContextMenu:n,onPanZoomEnd:u,onDraggingChange:l});h.on("end",P);let H=function({zoomActivationKeyPressed:t,zoomOnScroll:e,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:o,userSelectionActive:a,noWheelClassName:u,noPanClassName:l,lib:s,connectionInProgress:c}){return h=>{let f=t||e,d=n&&h.ctrlKey,p="wheel"===h.type;if(1===h.button&&"mousedown"===h.type&&(ru(h,`${s}-flow__node`)||ru(h,`${s}-flow__edge`)))return!0;if(!r&&!f&&!i&&!o&&!n||a||c&&!p||ru(h,u)&&p||ru(h,l)&&(!p||i&&p&&!t)||!n&&h.ctrlKey&&p)return!1;if(!n&&"touchstart"===h.type&&h.touches?.length>1)return h.preventDefault(),!1;if(!f&&!i&&!d&&p||!r&&("mousedown"===h.type||"touchstart"===h.type)||Array.isArray(r)&&!r.includes(h.button)&&"mousedown"===h.type)return!1;let y=Array.isArray(r)&&r.includes(h.button)||!h.button||h.button<=1;return(!h.ctrlKey||p)&&y}}({zoomActivationKeyPressed:M,panOnDrag:c,zoomOnScroll:_,panOnScroll:i,zoomOnDoubleClick:b,zoomOnPinch:w,userSelectionActive:r,noPanClassName:e,noWheelClassName:t,lib:E,connectionInProgress:$});h.filter(H),b?d.on("dblclick.zoom",y):d.on("dblclick.zoom",null)},destroy:m,setViewport:async function t(t,e){let n=ra(t);return await g(n,e),n},setViewportConstrained:v,getViewport:function(){let t=d?e$(d.node()):{x:0,y:0,k:1};return{x:t.x,y:t.y,zoom:t.k}},scaleTo:async function t(t,e){return!!d&&new Promise(n=>{h?.interpolate(e?.interpolate==="linear"?eL:t_).scaleTo(rc(d,e?.duration,e?.ease,()=>n(!0)),t)})},scaleBy:async function t(t,e){return!!d&&new Promise(n=>{h?.interpolate(e?.interpolate==="linear"?eL:t_).scaleBy(rc(d,e?.duration,e?.ease,()=>n(!0)),t)})},setScaleExtent:function(t){h?.scaleExtent(t)},setTranslateExtent:function(t){h?.translateExtent(t)},syncViewport:function(t){if(d){let e=ra(t),n=d.property("__zoom");(n.k!==t.zoom||n.x!==t.x||n.y!==t.y)&&h?.transform(d,e,null,{sync:!0})}},setClickDistance:function(t){let e=!nr(t)||t<0?0:t;h?.clickDistance(e)}}}(s=m||(m={})).Line="line",s.Handle="handle"},32521:(t,e,n)=>{n.d(e,{A:()=>u});var r={value:()=>{}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function a(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r=this._,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),o=-1,u=i.length;if(arguments.length<2){for(;++o<u;)if((n=(t=i[o]).type)&&(n=function(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++o<u;)if(n=(t=i[o]).type)r[n]=a(r[n],t.name,e);else if(null==e)for(n in r)r[n]=a(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(t)},call:function(t,e){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(t))throw Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};let u=i},50916:(t,e,n)=>{n.d(e,{h:()=>h,n:()=>s});var r=n(12115),i=n(94577);let o=t=>{let e,n=new Set,r=(t,r)=>{let i="function"==typeof t?t(e):t;if(!Object.is(i,e)){let t=e;e=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},e,i),n.forEach(n=>n(e,t))}},i=()=>e,o={setState:r,getState:i,getInitialState:()=>a,subscribe:t=>(n.add(t),()=>n.delete(t)),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()}},a=e=t(r,i,o);return o},{useDebugValue:a}=r,{useSyncExternalStoreWithSelector:u}=i,l=t=>t;function s(t,e=l,n){let r=u(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return a(r),r}let c=(t,e)=>{let n=t?o(t):o,r=(t,r=e)=>s(n,t,r);return Object.assign(r,n),r},h=(t,e)=>t?c(t,e):c},69684:(t,e,n)=>{n.d(e,{A:()=>function t(e){if("string"==typeof e||"number"==typeof e)return""+e;let n="";if(Array.isArray(e))for(let r=0,i;r<e.length;r++)""!==(i=t(e[r]))&&(n+=(n&&" ")+i);else for(let t in e)e[t]&&(n+=(n&&" ")+t);return n}})},87977:(t,e,n)=>{n.d(e,{M4:()=>y,O1:()=>g,tB:()=>d});var r,i,o=0,a=0,u=0,l=0,s=0,c=0,h="object"==typeof performance&&performance.now?performance:Date,f="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function d(){return s||(f(p),s=h.now()+c)}function p(){s=0}function y(){this._call=this._time=this._next=null}function g(t,e,n){var r=new y;return r.restart(t,e,n),r}function m(){s=(l=h.now())+c,o=a=0;try{d(),++o;for(var t,e=r;e;)(t=s-e._time)>=0&&e._call.call(void 0,t),e=e._next;--o}finally{o=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,x(o)}(),s=0}}function v(){var t=h.now(),e=t-l;e>1e3&&(c-=e,l=t)}function x(t){!o&&(a&&(a=clearTimeout(a)),t-s>24?(t<1/0&&(a=setTimeout(m,t-h.now()-c)),u&&(u=clearInterval(u))):(u||(l=h.now(),u=setInterval(v,1e3)),o=1,f(m)))}y.prototype=g.prototype={constructor:y,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,x()},stop:function(){this._call&&(this._call=null,this._time=1/0,x())}}},99026:(t,e,n)=>{n.d(e,{x:()=>r});function r(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(let[n,r]of t)if(!Object.is(r,e.get(n)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}let n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(e,r)||!Object.is(t[r],e[r]))return!1;return!0}}}]);
@@ -0,0 +1,62 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4549],{874:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("file-braces",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]])},1275:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},5736:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},5937:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},5989:(e,t,r)=>{"use strict";var n,i;function o(e,t,r){function n(r,n){if(r._zod||Object.defineProperty(r,"_zod",{value:{def:n,constr:a,traits:new Set},enumerable:!1}),r._zod.traits.has(e))return;r._zod.traits.add(e),t(r,n);let i=a.prototype,o=Object.keys(i);for(let e=0;e<o.length;e++){let t=o[e];t in r||(r[t]=i[t].bind(r))}}let i=r?.Parent??Object;class o extends i{}function a(e){var t;let i=r?.Parent?new o:this;for(let r of(n(i,e),(t=i._zod).deferred??(t.deferred=[]),i._zod.deferred))r();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(a,"init",{value:n}),Object.defineProperty(a,Symbol.hasInstance,{value:t=>!!r?.Parent&&t instanceof r.Parent||t?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}r.d(t,{EB:()=>rh,bz:()=>rL,YO:()=>rq,zM:()=>rC,gM:()=>rX,k5:()=>rQ,eu:()=>r1,ai:()=>rT,Ik:()=>rH,Yj:()=>rf}),Symbol("zod_brand");class a extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class s extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}(n=globalThis).__zod_globalConfig??(n.__zod_globalConfig={});let l=globalThis.__zod_globalConfig;function u(e){return e&&Object.assign(l,e),l}let c=/^[cC][0-9a-z]{6,}$/,d=/^[0-9a-z]+$/,f=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,h=/^[0-9a-vA-V]{20}$/,p=/^[A-Za-z0-9]{27}$/,y=/^[a-zA-Z0-9_-]{21}$/,m=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,g=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,v=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,k=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,w=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,b=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,z=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,x=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,A=/^[A-Za-z0-9_-]*$/,O=/^https?$/,$=/^\+[1-9]\d{6,14}$/,S="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",M=RegExp(`^${S}$`);function E(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}let N=/^-?\d+$/,Z=/^-?\d+(?:\.\d+)?$/,j=/^(?:true|false)$/i,T=/^[^A-Z]*$/,P=/^[^a-z]*$/;function I(e){let t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,r])=>-1===t.indexOf(+e)).map(([e,t])=>t)}function R(e,t){return"bigint"==typeof t?t.toString():t}function C(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function U(e){let t=+!!e.startsWith("^"),r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}let L=Symbol("evaluating");function F(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==L)return void 0===n&&(n=L,n=r()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function D(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function V(...e){let t={};for(let r of e)Object.assign(t,Object.getOwnPropertyDescriptors(r));return Object.defineProperties({},t)}function J(e){return JSON.stringify(e)}let q="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function B(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let H=C(()=>{if(l.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(e){return!1}});function W(e){if(!1===B(e))return!1;let t=e.constructor;if(void 0===t||"function"!=typeof t)return!0;let r=t.prototype;return!1!==B(r)&&!1!==Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")}function G(e){return W(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}let X=new Set(["string","number","symbol"]);function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function Q(e){if(!e)return{};if("string"==typeof e)return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");e.error=e.message}return(delete e.message,"string"==typeof e.error)?{...e,error:()=>e.error}:e}let ee={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function et(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function er(e,t){return t.map(t=>(t.path??(t.path=[]),t.path.unshift(e),t))}function en(e){return"string"==typeof e?e:e?.message}function ei(e,t,r){let n=e.message?e.message:en(e.inst?._zod.def?.error?.(e))??en(t?.error?.(e))??en(r.customError?.(e))??en(r.localeError?.(e))??"Invalid input",{inst:i,continue:o,input:a,...s}=e;return s.path??(s.path=[]),s.message=n,t?.reportInput&&(s.input=a),s}function eo(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function ea(...e){let[t,r,n]=e;return"string"==typeof t?{message:t,code:"custom",input:r,inst:n}:{...t}}let es=o("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),el={number:"number",bigint:"bigint",object:"date"},eu=o("$ZodCheckLessThan",(e,t)=>{es.init(e,t);let r=el[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.maximum:r.exclusiveMaximum)??1/0;t.value<n&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ec=o("$ZodCheckGreaterThan",(e,t)=>{es.init(e,t);let r=el[typeof t.value];e._zod.onattach.push(e=>{let r=e._zod.bag,n=(t.inclusive?r.minimum:r.exclusiveMinimum)??-1/0;t.value>n&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:"object"==typeof t.value?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ed=o("$ZodCheckMultipleOf",(e,t)=>{es.init(e,t),e._zod.onattach.push(e=>{var r;(r=e._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=r=>{let n,i,o;if(typeof r.value!=typeof t.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof r.value?r.value%t.value===BigInt(0):0==(i=Math.round(n=r.value/t.value),o=Number.EPSILON*Math.max(Math.abs(n),1),Math.abs(n-i)<o?0:n-i))||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),ef=o("$ZodCheckNumberFormat",(e,t)=>{es.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[i,o]=ee[t.format];e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,n.minimum=i,n.maximum=o,r&&(n.pattern=N)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s))return void a.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});if(!Number.isSafeInteger(s))return void(s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}))}s<i&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>o&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),eh=o("$ZodCheckMaxLength",(e,t)=>{var r;es.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.maximum??1/0;t.maximum<r&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let n=r.value;if(n.length<=t.maximum)return;let i=eo(n);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ep=o("$ZodCheckMinLength",(e,t)=>{var r;es.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag.minimum??-1/0;t.minimum>r&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let n=r.value;if(n.length>=t.minimum)return;let i=eo(n);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ey=o("$ZodCheckLengthEquals",(e,t)=>{var r;es.init(e,t),(r=e._zod.def).when??(r.when=e=>{let t=e.value;return null!=t&&void 0!==t.length}),e._zod.onattach.push(e=>{let r=e._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=r=>{let n=r.value,i=n.length;if(i===t.length)return;let o=eo(n),a=i>t.length;r.issues.push({origin:o,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),em=o("$ZodCheckStringFormat",(e,t)=>{var r,n;es.init(e,t),e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),eg=o("$ZodCheckRegex",(e,t)=>{em.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,t.pattern.test(r.value)||r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ev=o("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=T),em.init(e,t)}),e_=o("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=P),em.init(e,t)}),ek=o("$ZodCheckIncludes",(e,t)=>{es.init(e,t);let r=K(t.includes),n=new RegExp("number"==typeof t.position?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),ew=o("$ZodCheckStartsWith",(e,t)=>{es.init(e,t);let r=RegExp(`^${K(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),eb=o("$ZodCheckEndsWith",(e,t)=>{es.init(e,t);let r=RegExp(`.*${K(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),ez=o("$ZodCheckOverwrite",(e,t)=>{es.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}});class ex{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let t=e.split("\n").filter(e=>e),r=Math.min(...t.map(e=>e.length-e.trimStart().length));for(let e of t.map(e=>e.slice(r)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(e)}compile(){return Function(...this?.args,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}let eA=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,R,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},eO=o("$ZodError",eA),e$=o("$ZodError",eA,{Parent:Error}),eS=e=>(t,r,n,i)=>{let o=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new a;if(s.issues.length){let t=new(i?.Err??e)(s.issues.map(e=>ei(e,o,u())));throw q(t,i?.callee),t}return s.value},eM=e=>async(t,r,n,i)=>{let o=n?{...n,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let t=new(i?.Err??e)(a.issues.map(e=>ei(e,o,u())));throw q(t,i?.callee),t}return a.value},eE=e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},i);if(o instanceof Promise)throw new a;return o.issues.length?{success:!1,error:new(e??eO)(o.issues.map(e=>ei(e,i,u())))}:{success:!0,data:o.value}},eN=eE(e$),eZ=e=>async(t,r,n)=>{let i=n?{...n,async:!0}:{async:!0},o=t._zod.run({value:r,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>ei(e,i,u())))}:{success:!0,data:o.value}},ej=eZ(e$),eT={major:4,minor:4,patch:3},eP=o("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=eT;let n=[...e._zod.def.checks??[]];for(let t of(e._zod.traits.has("$ZodCheck")&&n.unshift(e),n))for(let r of t._zod.onattach)r(e);if(0===n.length)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,r)=>{let n,i=et(e);for(let o of t){if(o._zod.def.when){if(function(e,t=0){if(!0===e.aborted)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}(e)||!o._zod.def.when(e))continue}else if(i)continue;let t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&r?.async===!1)throw new a;if(n||s instanceof Promise)n=(n??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(i||(i=et(e,t)))});else{if(e.issues.length===t)continue;i||(i=et(e,t))}}return n?n.then(()=>e):e},r=(r,i,o)=>{if(et(r))return r.aborted=!0,r;let s=t(i,n,o);if(s instanceof Promise){if(!1===o.async)throw new a;return s.then(t=>e._zod.parse(t,o))}return e._zod.parse(s,o)};e._zod.run=(i,o)=>{if(o.skipChecks)return e._zod.parse(i,o);if("backward"===o.direction){let t=e._zod.parse({value:i.value,issues:[]},{...o,skipChecks:!0});return t instanceof Promise?t.then(e=>r(e,i,o)):r(t,i,o)}let s=e._zod.parse(i,o);if(s instanceof Promise){if(!1===o.async)throw new a;return s.then(e=>t(e,n,o))}return t(s,n,o)}}F(e,"~standard",()=>({validate:t=>{try{let r=eN(e,t);return r.success?{value:r.data}:{issues:r.error?.issues}}catch(r){return ej(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}))}),eI=o("$ZodString",(e,t)=>{var r;let n;eP.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??(n=(r=e._zod.bag)?`[\\s\\S]{${r?.minimum??0},${r?.maximum??""}}`:"[\\s\\S]*",RegExp(`^${n}$`)),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch(e){}return"string"==typeof r.value||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),eR=o("$ZodStringFormat",(e,t)=>{em.init(e,t),eI.init(e,t)}),eC=o("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=g),eR.init(e,t)}),eU=o("$ZodUUID",(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===e)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=v(e))}else t.pattern??(t.pattern=v());eR.init(e,t)}),eL=o("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=_),eR.init(e,t)}),eF=o("$ZodURL",(e,t)=>{eR.init(e,t),e._zod.check=r=>{try{let n=r.value.trim();if(!t.normalize&&t.protocol?.source===O.source&&!/^https?:\/\//i.test(n))return void r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});let i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch(n){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),eD=o("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),eR.init(e,t)}),eV=o("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=y),eR.init(e,t)}),eJ=o("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=c),eR.init(e,t)}),eq=o("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=d),eR.init(e,t)}),eB=o("$ZodULID",(e,t)=>{t.pattern??(t.pattern=f),eR.init(e,t)}),eH=o("$ZodXID",(e,t)=>{t.pattern??(t.pattern=h),eR.init(e,t)}),eW=o("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=p),eR.init(e,t)}),eG=o("$ZodISODateTime",(e,t)=>{let r,n,i;t.pattern??(r=E({precision:t.precision}),n=["Z"],t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)"),i=`${r}(?:${n.join("|")})`,t.pattern=RegExp(`^${S}T(?:${i})$`)),eR.init(e,t)}),eX=o("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=M),eR.init(e,t)}),eK=o("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=RegExp(`^${E(t)}$`)),eR.init(e,t)}),eY=o("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=m),eR.init(e,t)}),eQ=o("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=k),eR.init(e,t),e._zod.bag.format="ipv4"}),e0=o("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=w),eR.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),e1=o("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=b),eR.init(e,t)}),e2=o("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=z),eR.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(2!==n.length)throw Error();let[e,t]=n;if(!t)throw Error();let r=Number(t);if(`${r}`!==t||r<0||r>128)throw Error();new URL(`http://[${e}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function e4(e){if(""===e)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}let e7=o("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=x),eR.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{e4(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}}),e3=o("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=A),eR.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{!function(e){if(!A.test(e))return!1;let t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return e4(t.padEnd(4*Math.ceil(t.length/4),"="))}(r.value)&&r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),e5=o("$ZodE164",(e,t)=>{t.pattern??(t.pattern=$),eR.init(e,t)}),e8=o("$ZodJWT",(e,t)=>{eR.init(e,t),e._zod.check=r=>{!function(e,t=null){try{let r=e.split(".");if(3!==r.length)return!1;let[n]=r;if(!n)return!1;let i=JSON.parse(atob(n));if("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))return!1;return!0}catch{return!1}}(r.value,t.alg)&&r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),e9=o("$ZodNumber",(e,t)=>{eP.init(e,t),e._zod.pattern=e._zod.bag.pattern??Z,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch(e){}let i=r.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return r;let o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),r}}),e6=o("$ZodNumberFormat",(e,t)=>{ef.init(e,t),e9.init(e,t)}),te=o("$ZodBoolean",(e,t)=>{eP.init(e,t),e._zod.pattern=j,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch(e){}let i=r.value;return"boolean"==typeof i||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),tt=o("$ZodAny",(e,t)=>{eP.init(e,t),e._zod.parse=e=>e}),tr=o("$ZodUnknown",(e,t)=>{eP.init(e,t),e._zod.parse=e=>e}),tn=o("$ZodNever",(e,t)=>{eP.init(e,t),e._zod.parse=(t,r)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)});function ti(e,t,r){e.issues.length&&t.issues.push(...er(r,e.issues)),t.value[r]=e.value}let to=o("$ZodArray",(e,t)=>{eP.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let o=[];for(let e=0;e<i.length;e++){let a=i[e],s=t.element._zod.run({value:a,issues:[]},n);s instanceof Promise?o.push(s.then(t=>ti(t,r,e))):ti(s,r,e)}return o.length?Promise.all(o).then(()=>r):r}});function ta(e,t,r,n,i,o){let a=r in n;if(e.issues.length){if(i&&o&&!a)return;t.issues.push(...er(r,e.issues))}if(!a&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}void 0===e.value?a&&(t.value[r]=void 0):t.value[r]=e.value}function ts(e){var t;let r=Object.keys(e.shape);for(let t of r)if(!e.shape?.[t]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${t}": expected a Zod schema`);let n=Object.keys(t=e.shape).filter(e=>"optional"===t[e]._zod.optin&&"optional"===t[e]._zod.optout);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)}}function tl(e,t,r,n,i,o){let a=[],s=i.keySet,l=i.catchall._zod,u=l.def.type,c="optional"===l.optin,d="optional"===l.optout;for(let i in t){if("__proto__"===i||s.has(i))continue;if("never"===u){a.push(i);continue}let o=l.run({value:t[i],issues:[]},n);o instanceof Promise?e.push(o.then(e=>ta(e,r,i,t,c,d))):ta(o,r,i,t,c,d)}return(a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length)?Promise.all(e).then(()=>r):r}let tu=o("$ZodObject",(e,t)=>{let r;eP.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape");if(!n?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let r={...e};return Object.defineProperty(t,"shape",{value:r}),r}})}let i=C(()=>ts(t));F(e._zod,"propValues",()=>{let e=t.shape,r={};for(let t in e){let n=e[t]._zod;if(n.values)for(let e of(r[t]??(r[t]=new Set),n.values))r[t].add(e)}return r});let o=t.catchall;e._zod.parse=(t,n)=>{r??(r=i.value);let a=t.value;if(!B(a))return t.issues.push({expected:"object",code:"invalid_type",input:a,inst:e}),t;t.value={};let s=[],l=r.shape;for(let e of r.keys){let r=l[e],i="optional"===r._zod.optin,o="optional"===r._zod.optout,u=r._zod.run({value:a[e],issues:[]},n);u instanceof Promise?s.push(u.then(r=>ta(r,t,e,a,i,o))):ta(u,t,e,a,i,o)}return o?tl(s,a,t,n,i.value,e):s.length?Promise.all(s).then(()=>t):t}}),tc=o("$ZodObjectJIT",(e,t)=>{let r,n;tu.init(e,t);let i=e._zod.parse,o=C(()=>ts(t)),a=!l.jitless,s=a&&H.value,u=t.catchall;e._zod.parse=(l,c)=>{n??(n=o.value);let d=l.value;return B(d)?a&&s&&c?.async===!1&&!0!==c.jitless?(r||(r=(e=>{let t=new ex(["shape","payload","ctx"]),r=o.value,n=e=>{let t=J(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");let i=Object.create(null),a=0;for(let e of r.keys)i[e]=`key_${a++}`;for(let o of(t.write("const newResult = {};"),r.keys)){let r=i[o],a=J(o),s=e[o],l=s?._zod?.optin==="optional",u=s?._zod?.optout==="optional";t.write(`const ${r} = ${n(o)};`),l&&u?t.write(`
2
+ if (${r}.issues.length) {
3
+ if (${a} in input) {
4
+ payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
5
+ ...iss,
6
+ path: iss.path ? [${a}, ...iss.path] : [${a}]
7
+ })));
8
+ }
9
+ }
10
+
11
+ if (${r}.value === undefined) {
12
+ if (${a} in input) {
13
+ newResult[${a}] = undefined;
14
+ }
15
+ } else {
16
+ newResult[${a}] = ${r}.value;
17
+ }
18
+
19
+ `):l?t.write(`
20
+ if (${r}.issues.length) {
21
+ payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
22
+ ...iss,
23
+ path: iss.path ? [${a}, ...iss.path] : [${a}]
24
+ })));
25
+ }
26
+
27
+ if (${r}.value === undefined) {
28
+ if (${a} in input) {
29
+ newResult[${a}] = undefined;
30
+ }
31
+ } else {
32
+ newResult[${a}] = ${r}.value;
33
+ }
34
+
35
+ `):t.write(`
36
+ const ${r}_present = ${a} in input;
37
+ if (${r}.issues.length) {
38
+ payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
39
+ ...iss,
40
+ path: iss.path ? [${a}, ...iss.path] : [${a}]
41
+ })));
42
+ }
43
+ if (!${r}_present && !${r}.issues.length) {
44
+ payload.issues.push({
45
+ code: "invalid_type",
46
+ expected: "nonoptional",
47
+ input: undefined,
48
+ path: [${a}]
49
+ });
50
+ }
51
+
52
+ if (${r}_present) {
53
+ if (${r}.value === undefined) {
54
+ newResult[${a}] = undefined;
55
+ } else {
56
+ newResult[${a}] = ${r}.value;
57
+ }
58
+ }
59
+
60
+ `)}t.write("payload.value = newResult;"),t.write("return payload;");let s=t.compile();return(t,r)=>s(e,t,r)})(t.shape)),l=r(l,c),u)?tl([],d,l,c,n,e):l:i(l,c):(l.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),l)}});function td(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;let i=e.filter(e=>!et(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>ei(e,n,u())))}),t)}let tf=o("$ZodUnion",(e,t)=>{eP.init(e,t),F(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),F(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),F(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),F(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>U(e.source)).join("|")})$`)}});let r=1===t.options.length?t.options[0]._zod.run:null;e._zod.parse=(n,i)=>{if(r)return r(n,i);let o=!1,a=[];for(let e of t.options){let t=e._zod.run({value:n.value,issues:[]},i);if(t instanceof Promise)a.push(t),o=!0;else{if(0===t.issues.length)return t;a.push(t)}}return o?Promise.all(a).then(t=>td(t,n,e,i)):td(a,n,e,i)}}),th=o("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,tf.init(e,t);let r=e._zod.parse;F(e._zod,"propValues",()=>{let e={};for(let r of t.options){let n=r._zod.propValues;if(!n||0===Object.keys(n).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[t,r]of Object.entries(n))for(let n of(e[t]||(e[t]=new Set),r))e[t].add(n)}return e});let n=C(()=>{let e=t.options,r=new Map;for(let n of e){let e=n._zod.propValues?.[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let t of e){if(r.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,n)}}return r});e._zod.parse=(i,o)=>{let a=i.value;if(!B(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;let s=n.value.get(a?.[t.discriminator]);return s?s._zod.run(i,o):t.unionFallback||"backward"===o.direction?r(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(n.value.keys()),input:a,path:[t.discriminator],inst:e}),i)}}),tp=o("$ZodIntersection",(e,t)=>{eP.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,i=t.left._zod.run({value:n,issues:[]},r),o=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([t,r])=>ty(e,t,r)):ty(e,i,o)}});function ty(e,t,r){let n,i=new Map;for(let r of t.issues)if("unrecognized_keys"===r.code)for(let e of(n??(n=r),r.keys))i.has(e)||i.set(e,{}),i.get(e).l=!0;else e.issues.push(r);for(let t of r.issues)if("unrecognized_keys"===t.code)for(let e of t.keys)i.has(e)||i.set(e,{}),i.get(e).r=!0;else e.issues.push(t);let o=[...i].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(o.length&&n&&e.issues.push({...n,keys:o}),et(e))return e;let a=function e(t,r){if(t===r||t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(W(t)&&W(r)){let n=Object.keys(r),i=Object.keys(t).filter(e=>-1!==n.indexOf(e)),o={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};o[n]=i.data}return{valid:!0,data:o}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<t.length;i++){let o=e(t[i],r[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(t.value,r.value);if(!a.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}let tm=o("$ZodEnum",(e,t)=>{eP.init(e,t);let r=I(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=RegExp(`^(${r.filter(e=>X.has(typeof e)).map(e=>"string"==typeof e?K(e):e.toString()).join("|")})$`),e._zod.parse=(t,i)=>{let o=t.value;return n.has(o)||t.issues.push({code:"invalid_value",values:r,input:o,inst:e}),t}}),tg=o("$ZodLiteral",(e,t)=>{if(eP.init(e,t),0===t.values.length)throw Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?K(e):e?K(e.toString()):String(e)).join("|")})$`),e._zod.parse=(n,i)=>{let o=n.value;return r.has(o)||n.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),n}}),tv=o("$ZodTransform",(e,t)=>{eP.init(e,t),e._zod.optin="optional",e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new s(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(r.value=e,r.fallback=!0,r));if(i instanceof Promise)throw new a;return r.value=i,r.fallback=!0,r}});function t_(e,t){return void 0===t&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}let tk=o("$ZodOptional",(e,t)=>{eP.init(e,t),e._zod.optin="optional",e._zod.optout="optional",F(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),F(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${U(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>{if("optional"===t.innerType._zod.optin){let n=e.value,i=t.innerType._zod.run(e,r);return i instanceof Promise?i.then(e=>t_(e,n)):t_(i,n)}return void 0===e.value?e:t.innerType._zod.run(e,r)}}),tw=o("$ZodExactOptional",(e,t)=>{tk.init(e,t),F(e._zod,"values",()=>t.innerType._zod.values),F(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(e,r)=>t.innerType._zod.run(e,r)}),tb=o("$ZodNullable",(e,t)=>{eP.init(e,t),F(e._zod,"optin",()=>t.innerType._zod.optin),F(e._zod,"optout",()=>t.innerType._zod.optout),F(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${U(e.source)}|null)$`):void 0}),F(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),tz=o("$ZodDefault",(e,t)=>{eP.init(e,t),e._zod.optin="optional",F(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>tx(e,t)):tx(n,t)}});function tx(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let tA=o("$ZodPrefault",(e,t)=>{eP.init(e,t),e._zod.optin="optional",F(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>("backward"===r.direction||void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),tO=o("$ZodNonOptional",(e,t)=>{eP.init(e,t),F(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(t=>t$(t,e)):t$(i,e)}});function t$(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let tS=o("$ZodCatch",(e,t)=>{eP.init(e,t),e._zod.optin="optional",F(e._zod,"optout",()=>t.innerType._zod.optout),F(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n=>(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ei(e,r,u()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ei(e,r,u()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),tM=o("$ZodPipe",(e,t)=>{eP.init(e,t),F(e._zod,"values",()=>t.in._zod.values),F(e._zod,"optin",()=>t.in._zod.optin),F(e._zod,"optout",()=>t.out._zod.optout),F(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(e,r)=>{if("backward"===r.direction){let n=t.out._zod.run(e,r);return n instanceof Promise?n.then(e=>tE(e,t.in,r)):tE(n,t.in,r)}let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>tE(e,t.out,r)):tE(n,t.out,r)}});function tE(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}let tN=o("$ZodReadonly",(e,t)=>{eP.init(e,t),F(e._zod,"propValues",()=>t.innerType._zod.propValues),F(e._zod,"values",()=>t.innerType._zod.values),F(e._zod,"optin",()=>t.innerType?._zod?.optin),F(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(e,r)=>{if("backward"===r.direction)return t.innerType._zod.run(e,r);let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(tZ):tZ(n)}});function tZ(e){return e.value=Object.freeze(e.value),e}let tj=o("$ZodCustom",(e,t)=>{es.init(e,t),eP.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(t=>tT(t,r,n,e));tT(i,r,n,e)}});function tT(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(ea(e))}}Symbol("ZodOutput"),Symbol("ZodInput");class tP{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let r=t[0];return this._map.set(e,r),r&&"object"==typeof r&&"id"in r&&this._idmap.set(r.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let r={...this.get(t)??{}};delete r.id;let n={...r,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}(i=globalThis).__zod_globalRegistry??(i.__zod_globalRegistry=new tP);let tI=globalThis.__zod_globalRegistry;function tR(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Q(t)})}function tC(e,t){return new eu({check:"less_than",...Q(t),value:e,inclusive:!1})}function tU(e,t){return new eu({check:"less_than",...Q(t),value:e,inclusive:!0})}function tL(e,t){return new ec({check:"greater_than",...Q(t),value:e,inclusive:!1})}function tF(e,t){return new ec({check:"greater_than",...Q(t),value:e,inclusive:!0})}function tD(e,t){return new ed({check:"multiple_of",...Q(t),value:e})}function tV(e,t){return new eh({check:"max_length",...Q(t),maximum:e})}function tJ(e,t){return new ep({check:"min_length",...Q(t),minimum:e})}function tq(e,t){return new ey({check:"length_equals",...Q(t),length:e})}function tB(e){return new ez({check:"overwrite",tx:e})}function tH(e){let t=e?.target??"draft-2020-12";return"draft-4"===t&&(t="draft-04"),"draft-7"===t&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??tI,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function tW(e,t,r={path:[],schemaPath:[]}){var n;let i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let n={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,n);else{let r=a.schema,o=t.processors[i.type];if(!o)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);o(e,t,r,n)}let o=e._zod.parent;o&&(a.ref||(a.ref=o),tW(o,t,n),t.seen.get(o).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),"input"===t.io&&function e(t,r){let n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);let i=t._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return e(i.element,n);if("set"===i.type)return e(i.valueType,n);if("lazy"===i.type)return e(i.getter(),n);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type)return e(i.innerType,n);if("intersection"===i.type)return e(i.left,n)||e(i.right,n);if("record"===i.type||"map"===i.type)return e(i.keyType,n)||e(i.valueType,n);if("pipe"===i.type)return!!t._zod.traits.has("$ZodCodec")||e(i.in,n)||e(i.out,n);if("object"===i.type){for(let t in i.shape)if(e(i.shape[t],n))return!0;return!1}if("union"===i.type){for(let t of i.options)if(e(t,n))return!0;return!1}if("tuple"===i.type){for(let t of i.items)if(e(t,n))return!0;if(i.rest&&e(i.rest,n))return!0}return!1}(e)&&(delete a.schema.examples,delete a.schema.default),"input"===t.io&&"_prefault"in a.schema&&((n=a.schema).default??(n.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function tG(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let t of e.seen.entries()){let r=e.metadataRegistry.get(t[0])?.id;if(r){let e=n.get(r);if(e&&e!==t[0])throw Error(`Duplicate schema id "${r}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(r,t[0])}}let i=t=>{if(t[1].schema.$ref)return;let n=t[1],{ref:i,defId:o}=(t=>{let n="draft-2020-12"===e.target?"$defs":"definitions";if(e.external){let r=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(r)return{ref:i(r)};let o=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=o,{defId:o,ref:`${i("__shared")}#/${n}/${o}`}}if(t[1]===r)return{ref:"#"};let i=`#/${n}/`,o=t[1].schema.id??`__schema${e.counter++}`;return{defId:o,ref:i+o}})(t);n.def={...n.schema},o&&(n.defId=o);let a=n.schema;for(let e in a)delete a[e];a.$ref=i};if("throw"===e.cycles)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join("/")}/<root>
61
+
62
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let r of e.seen.entries()){let n=r[1];if(t===r[0]){i(r);continue}if(e.external){let n=e.external.registry.get(r[0])?.id;if(t!==r[0]&&n){i(r);continue}}if(e.metadataRegistry.get(r[0])?.id||n.cycle||n.count>1&&"ref"===e.reused){i(r);continue}}}function tX(e,t){let r=e.seen.get(t);if(!r)throw Error("Unprocessed schema. This is a bug in Zod.");let n=t=>{let r=e.seen.get(t);if(null===r.ref)return;let i=r.def??r.schema,o={...i},a=r.ref;if(r.ref=null,a){n(a);let r=e.seen.get(a),s=r.schema;if(s.$ref&&("draft-07"===e.target||"draft-04"===e.target||"openapi-3.0"===e.target)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,o),t._zod.parent===a)for(let e in i)"$ref"!==e&&"allOf"!==e&&(e in o||delete i[e]);if(s.$ref&&r.def)for(let e in i)"$ref"!==e&&"allOf"!==e&&e in r.def&&JSON.stringify(i[e])===JSON.stringify(r.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==a){n(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)"$ref"!==e&&"allOf"!==e&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:r.path??[]})};for(let t of[...e.seen.entries()].reverse())n(t[0]);let i={};if("draft-2020-12"===e.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===e.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===e.target?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let r=e.external.registry.get(t)?.id;if(!r)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(r)}Object.assign(i,r.def??r.schema);let o=e.metadataRegistry.get(t)?.id;void 0!==o&&i.id===o&&delete i.id;let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&("draft-2020-12"===e.target?i.$defs=a:i.definitions=a);try{let r=JSON.parse(JSON.stringify(i));return Object.defineProperty(r,"~standard",{value:{...t["~standard"],jsonSchema:{input:tK(t,"input",e.processors),output:tK(t,"output",e.processors)}},enumerable:!1,writable:!1}),r}catch(e){throw Error("Error converting schema to JSON.")}}let tK=(e,t,r={})=>n=>{let{libraryOptions:i,target:o}=n??{},a=tH({...i??{},target:o,io:t,processors:r});return tW(e,a),tG(a,e),tX(a,e)},tY={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},tQ=(e,t,r,n)=>{let i=e._zod.def;tW(i.innerType,t,n),t.seen.get(e).ref=i.innerType},t0=o("ZodISODateTime",(e,t)=>{eG.init(e,t),rh.init(e,t)}),t1=o("ZodISODate",(e,t)=>{eX.init(e,t),rh.init(e,t)}),t2=o("ZodISOTime",(e,t)=>{eK.init(e,t),rh.init(e,t)}),t4=o("ZodISODuration",(e,t)=>{eY.init(e,t),rh.init(e,t)}),t7=o("ZodError",(e,t)=>{eO.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>(function(e,t=e=>e.message){let r={_errors:[]},n=(e,i=[])=>{for(let o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>n({issues:e},[...i,...o.path]));else if("invalid_key"===o.code)n({issues:o.issues},[...i,...o.path]);else if("invalid_element"===o.code)n({issues:o.issues},[...i,...o.path]);else{let e=[...i,...o.path];if(0===e.length)r._errors.push(t(o));else{let n=r,i=0;for(;i<e.length;){let r=e[i];i===e.length-1?(n[r]=n[r]||{_errors:[]},n[r]._errors.push(t(o))):n[r]=n[r]||{_errors:[]},n=n[r],i++}}}};return n(e),r})(e,t)},flatten:{value:t=>(function(e,t=e=>e.message){let r={},n=[];for(let i of e.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(t(i))):n.push(t(i));return{formErrors:n,fieldErrors:r}})(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,R,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,R,2)}},isEmpty:{get:()=>0===e.issues.length}})},{Parent:Error}),t3=eS(t7),t5=eM(t7),t8=eE(t7),t9=eZ(t7),t6=(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return eS(t7)(e,t,n)},re=(e,t,r)=>eS(t7)(e,t,r),rt=async(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return eM(t7)(e,t,n)},rr=async(e,t,r)=>eM(t7)(e,t,r),rn=(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return eE(t7)(e,t,n)},ri=(e,t,r)=>eE(t7)(e,t,r),ro=async(e,t,r)=>{let n=r?{...r,direction:"backward"}:{direction:"backward"};return eZ(t7)(e,t,n)},ra=async(e,t,r)=>eZ(t7)(e,t,r),rs=new WeakMap;function rl(e,t,r){let n=Object.getPrototypeOf(e),i=rs.get(n);if(i||(i=new Set,rs.set(n,i)),!i.has(t))for(let e in i.add(t),r){let t=r[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,get(){let r=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:r}),r},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}let ru=o("ZodType",(e,t)=>(eP.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:tK(e,"input"),output:tK(e,"output")}}),e.toJSONSchema=((e,t={})=>r=>{let n=tH({...r,processors:t});return tW(e,n),tG(n,e),tX(n,e)})(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,r)=>t3(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>t8(e,t,r),e.parseAsync=async(t,r)=>t5(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>t9(e,t,r),e.spa=e.safeParseAsync,e.encode=(t,r)=>t6(e,t,r),e.decode=(t,r)=>re(e,t,r),e.encodeAsync=async(t,r)=>rt(e,t,r),e.decodeAsync=async(t,r)=>rr(e,t,r),e.safeEncode=(t,r)=>rn(e,t,r),e.safeDecode=(t,r)=>ri(e,t,r),e.safeEncodeAsync=async(t,r)=>ro(e,t,r),e.safeDecodeAsync=async(t,r)=>ra(e,t,r),rl(e,"ZodType",{check(...e){let t=this.def;return this.clone(V(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Y(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(function(e,t={}){return new no({type:"custom",check:"custom",fn:e,...Q(t)})}(e,t))},superRefine(e,t){return this.check(function(e,t){var r;let n,i;return r=t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(ea(e,t.value,n._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=t.value),e.inst??(e.inst=n),e.continue??(e.continue=!n._zod.def.abort),t.issues.push(ea(e)))},e(t.value,t)),(i=new es({check:"custom",...Q(t)}))._zod.check=r,n=i}(e,t))},overwrite(e){return this.check(tB(e))},optional(){return r7(this)},exactOptional(){var e;return e=this,new r3({type:"optional",innerType:e})},nullable(){return r8(this)},nullish(){return r7(r8(this))},nonoptional(e){var t;return t=this,new ne({type:"nonoptional",innerType:t,...Q(e)})},array(){return rq(this)},or(e){return new rW({type:"union",options:[this,e],...Q(void 0)})},and(e){var t;return t=this,new rK({type:"intersection",left:t,right:e})},transform(e){return nn(this,new r2({type:"transform",transform:e}))},default(e){var t,r;return t=this,r=e,new r9({type:"default",innerType:t,get defaultValue(){return"function"==typeof r?r():G(r)}})},prefault(e){var t,r;return t=this,r=e,new r6({type:"prefault",innerType:t,get defaultValue(){return"function"==typeof r?r():G(r)}})},catch(e){var t,r;return t=this,new nt({type:"catch",innerType:t,catchValue:"function"==typeof(r=e)?r:()=>r})},pipe(e){return nn(this,e)},readonly(){var e;return e=this,new ni({type:"readonly",innerType:e})},describe(e){let t=this.clone();return tI.add(t,{description:e}),t},meta(...e){if(0===e.length)return tI.get(this);let t=this.clone();return tI.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get:()=>tI.get(e)?.description,configurable:!0}),e)),rc=o("_ZodString",(e,t)=>{eI.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{r.type="string";let{minimum:i,maximum:o,format:a,patterns:s,contentEncoding:l}=e._zod.bag;if("number"==typeof i&&(r.minLength=i),"number"==typeof o&&(r.maxLength=o),a&&(r.format=tY[a]??a,""===r.format&&delete r.format,"time"===a&&delete r.format),l&&(r.contentEncoding=l),s&&s.size>0){let e=[...s];1===e.length?r.pattern=e[0].source:e.length>1&&(r.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))])}})(e,t,r,0);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,rl(e,"_ZodString",{regex(...e){return this.check(function(e,t){return new eg({check:"string_format",format:"regex",...Q(t),pattern:e})}(...e))},includes(...e){return this.check(function(e,t){return new ek({check:"string_format",format:"includes",...Q(t),includes:e})}(...e))},startsWith(...e){return this.check(function(e,t){return new ew({check:"string_format",format:"starts_with",...Q(t),prefix:e})}(...e))},endsWith(...e){return this.check(function(e,t){return new eb({check:"string_format",format:"ends_with",...Q(t),suffix:e})}(...e))},min(...e){return this.check(tJ(...e))},max(...e){return this.check(tV(...e))},length(...e){return this.check(tq(...e))},nonempty(...e){return this.check(tJ(1,...e))},lowercase(e){return this.check(new ev({check:"string_format",format:"lowercase",...Q(e)}))},uppercase(e){return this.check(new e_({check:"string_format",format:"uppercase",...Q(e)}))},trim(){return this.check(tB(e=>e.trim()))},normalize(...e){return this.check(function(e){return tB(t=>t.normalize(e))}(...e))},toLowerCase(){return this.check(tB(e=>e.toLowerCase()))},toUpperCase(){return this.check(tB(e=>e.toUpperCase()))},slugify(){return this.check(tB(e=>e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")))}})}),rd=o("ZodString",(e,t)=>{eI.init(e,t),rc.init(e,t),e.email=t=>e.check(new rp({type:"string",format:"email",check:"string_format",abort:!1,...Q(t)})),e.url=t=>e.check(new rg({type:"string",format:"url",check:"string_format",abort:!1,...Q(t)})),e.jwt=t=>e.check(new rZ({type:"string",format:"jwt",check:"string_format",abort:!1,...Q(t)})),e.emoji=t=>e.check(new rv({type:"string",format:"emoji",check:"string_format",abort:!1,...Q(t)})),e.guid=t=>e.check(tR(ry,t)),e.uuid=t=>e.check(new rm({type:"string",format:"uuid",check:"string_format",abort:!1,...Q(t)})),e.uuidv4=t=>e.check(new rm({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Q(t)})),e.uuidv6=t=>e.check(new rm({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Q(t)})),e.uuidv7=t=>e.check(new rm({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Q(t)})),e.nanoid=t=>e.check(new r_({type:"string",format:"nanoid",check:"string_format",abort:!1,...Q(t)})),e.guid=t=>e.check(tR(ry,t)),e.cuid=t=>e.check(new rk({type:"string",format:"cuid",check:"string_format",abort:!1,...Q(t)})),e.cuid2=t=>e.check(new rw({type:"string",format:"cuid2",check:"string_format",abort:!1,...Q(t)})),e.ulid=t=>e.check(new rb({type:"string",format:"ulid",check:"string_format",abort:!1,...Q(t)})),e.base64=t=>e.check(new rM({type:"string",format:"base64",check:"string_format",abort:!1,...Q(t)})),e.base64url=t=>e.check(new rE({type:"string",format:"base64url",check:"string_format",abort:!1,...Q(t)})),e.xid=t=>e.check(new rz({type:"string",format:"xid",check:"string_format",abort:!1,...Q(t)})),e.ksuid=t=>e.check(new rx({type:"string",format:"ksuid",check:"string_format",abort:!1,...Q(t)})),e.ipv4=t=>e.check(new rA({type:"string",format:"ipv4",check:"string_format",abort:!1,...Q(t)})),e.ipv6=t=>e.check(new rO({type:"string",format:"ipv6",check:"string_format",abort:!1,...Q(t)})),e.cidrv4=t=>e.check(new r$({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Q(t)})),e.cidrv6=t=>e.check(new rS({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Q(t)})),e.e164=t=>e.check(new rN({type:"string",format:"e164",check:"string_format",abort:!1,...Q(t)})),e.datetime=t=>e.check(new t0({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Q(t)})),e.date=t=>e.check(new t1({type:"string",format:"date",check:"string_format",...Q(t)})),e.time=t=>e.check(new t2({type:"string",format:"time",check:"string_format",precision:null,...Q(t)})),e.duration=t=>e.check(new t4({type:"string",format:"duration",check:"string_format",...Q(t)}))});function rf(e){return new rd({type:"string",...Q(e)})}let rh=o("ZodStringFormat",(e,t)=>{eR.init(e,t),rc.init(e,t)}),rp=o("ZodEmail",(e,t)=>{eL.init(e,t),rh.init(e,t)}),ry=o("ZodGUID",(e,t)=>{eC.init(e,t),rh.init(e,t)}),rm=o("ZodUUID",(e,t)=>{eU.init(e,t),rh.init(e,t)}),rg=o("ZodURL",(e,t)=>{eF.init(e,t),rh.init(e,t)}),rv=o("ZodEmoji",(e,t)=>{eD.init(e,t),rh.init(e,t)}),r_=o("ZodNanoID",(e,t)=>{eV.init(e,t),rh.init(e,t)}),rk=o("ZodCUID",(e,t)=>{eJ.init(e,t),rh.init(e,t)}),rw=o("ZodCUID2",(e,t)=>{eq.init(e,t),rh.init(e,t)}),rb=o("ZodULID",(e,t)=>{eB.init(e,t),rh.init(e,t)}),rz=o("ZodXID",(e,t)=>{eH.init(e,t),rh.init(e,t)}),rx=o("ZodKSUID",(e,t)=>{eW.init(e,t),rh.init(e,t)}),rA=o("ZodIPv4",(e,t)=>{eQ.init(e,t),rh.init(e,t)}),rO=o("ZodIPv6",(e,t)=>{e0.init(e,t),rh.init(e,t)}),r$=o("ZodCIDRv4",(e,t)=>{e1.init(e,t),rh.init(e,t)}),rS=o("ZodCIDRv6",(e,t)=>{e2.init(e,t),rh.init(e,t)}),rM=o("ZodBase64",(e,t)=>{e7.init(e,t),rh.init(e,t)}),rE=o("ZodBase64URL",(e,t)=>{e3.init(e,t),rh.init(e,t)}),rN=o("ZodE164",(e,t)=>{e5.init(e,t),rh.init(e,t)}),rZ=o("ZodJWT",(e,t)=>{e8.init(e,t),rh.init(e,t)}),rj=o("ZodNumber",(e,t)=>{e9.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let{minimum:i,maximum:o,format:a,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;"string"==typeof a&&a.includes("int")?r.type="integer":r.type="number";let c="number"==typeof u&&u>=(i??-1/0),d="number"==typeof l&&l<=(o??1/0),f="draft-04"===t.target||"openapi-3.0"===t.target;c?f?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:"number"==typeof i&&(r.minimum=i),d?f?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l:"number"==typeof o&&(r.maximum=o),"number"==typeof s&&(r.multipleOf=s)})(e,t,r,0),rl(e,"ZodNumber",{gt(e,t){return this.check(tL(e,t))},gte(e,t){return this.check(tF(e,t))},min(e,t){return this.check(tF(e,t))},lt(e,t){return this.check(tC(e,t))},lte(e,t){return this.check(tU(e,t))},max(e,t){return this.check(tU(e,t))},int(e){return this.check(rI(e))},safe(e){return this.check(rI(e))},positive(e){return this.check(tL(0,e))},nonnegative(e){return this.check(tF(0,e))},negative(e){return this.check(tC(0,e))},nonpositive(e){return this.check(tU(0,e))},multipleOf(e,t){return this.check(tD(e,t))},step(e,t){return this.check(tD(e,t))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function rT(e){return new rj({type:"number",checks:[],...Q(e)})}let rP=o("ZodNumberFormat",(e,t)=>{e6.init(e,t),rj.init(e,t)});function rI(e){return new rP({type:"number",check:"number_format",abort:!1,format:"safeint",...Q(e)})}let rR=o("ZodBoolean",(e,t)=>{te.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{t.type="boolean"}});function rC(e){return new rR({type:"boolean",...Q(e)})}let rU=o("ZodAny",(e,t)=>{tt.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function rL(){return new rU({type:"any"})}let rF=o("ZodUnknown",(e,t)=>{tr.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function rD(){return new rF({type:"unknown"})}let rV=o("ZodNever",(e,t)=>{tn.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{t.not={}}}),rJ=o("ZodArray",(e,t)=>{to.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.def,{minimum:o,maximum:a}=e._zod.bag;"number"==typeof o&&(r.minItems=o),"number"==typeof a&&(r.maxItems=a),r.type="array",r.items=tW(i.element,t,{...n,path:[...n.path,"items"]})})(e,t,r,n),e.element=t.element,rl(e,"ZodArray",{min(e,t){return this.check(tJ(e,t))},nonempty(e){return this.check(tJ(1,e))},max(e,t){return this.check(tV(e,t))},length(e,t){return this.check(tq(e,t))},unwrap(){return this.element}})});function rq(e,t){return new rJ({type:"array",element:e,...Q(t)})}let rB=o("ZodObject",(e,t)=>{tc.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.def;r.type="object",r.properties={};let o=i.shape;for(let e in o)r.properties[e]=tW(o[e],t,{...n,path:[...n.path,"properties",e]});let a=new Set([...new Set(Object.keys(o))].filter(e=>{let r=i.shape[e]._zod;return"input"===t.io?void 0===r.optin:void 0===r.optout}));a.size>0&&(r.required=Array.from(a)),i.catchall?._zod.def.type==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=tW(i.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):"output"===t.io&&(r.additionalProperties=!1)})(e,t,r,n),F(e,"shape",()=>t.shape),rl(e,"ZodObject",{keyof(){return rQ(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:rD()})},loose(){return this.clone({...this._zod.def,catchall:rD()})},strict(){return this.clone({...this._zod.def,catchall:new rV({type:"never",...Q(void 0)})})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return function(e,t){if(!W(t))throw Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let r=e._zod.def.shape;for(let e in t)if(void 0!==Object.getOwnPropertyDescriptor(r,e))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=V(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return D(this,"shape",r),r}});return Y(e,n)}(this,e)},safeExtend(e){var t=this;if(!W(e))throw Error("Invalid input to safeExtend: expected a plain object");let r=V(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e};return D(this,"shape",r),r}});return Y(t,r)},merge(e){var t=this;if(t._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=V(t._zod.def,{get shape(){let r={...t._zod.def.shape,...e._zod.def.shape};return D(this,"shape",r),r},get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return Y(t,r)},pick(e){return function(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i=V(e._zod.def,{get shape(){let e={};for(let n in t){if(!(n in r.shape))throw Error(`Unrecognized key: "${n}"`);t[n]&&(e[n]=r.shape[n])}return D(this,"shape",e),e},checks:[]});return Y(e,i)}(this,e)},omit(e){return function(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=V(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let e in t){if(!(e in r.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return D(this,"shape",n),n},checks:[]});return Y(e,i)}(this,e)},partial(...e){return function(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let i=V(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return D(this,"shape",i),i},checks:[]});return Y(t,i)}(r4,this,e[0])},required(...e){var t,r;let n;return t=this,r=e[0],n=V(t._zod.def,{get shape(){let e=t._zod.def.shape,n={...e};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(n[t]=new ne({type:"nonoptional",innerType:e[t]}))}else for(let t in e)n[t]=new ne({type:"nonoptional",innerType:e[t]});return D(this,"shape",n),n}}),Y(t,n)}})});function rH(e,t){return new rB({type:"object",shape:e??{},...Q(t)})}let rW=o("ZodUnion",(e,t)=>{tf.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,a;return o=!1===(i=e._zod.def).inclusive,a=i.options.map((e,r)=>tW(e,t,{...n,path:[...n.path,o?"oneOf":"anyOf",r]})),void(o?r.oneOf=a:r.anyOf=a)},e.options=t.options}),rG=o("ZodDiscriminatedUnion",(e,t)=>{rW.init(e,t),th.init(e,t)});function rX(e,t,r){return new rG({type:"union",options:t,discriminator:e,...Q(r)})}let rK=o("ZodIntersection",(e,t)=>{tp.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,a,s;return o=tW((i=e._zod.def).left,t,{...n,path:[...n.path,"allOf",0]}),a=tW(i.right,t,{...n,path:[...n.path,"allOf",1]}),void(r.allOf=[...(s=e=>"allOf"in e&&1===Object.keys(e).length)(o)?o.allOf:[o],...s(a)?a.allOf:[a]])}}),rY=o("ZodEnum",(e,t)=>{tm.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;(i=I(e._zod.def.entries)).every(e=>"number"==typeof e)&&(r.type="number"),i.every(e=>"string"==typeof e)&&(r.type="string"),r.enum=i},e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let i={};for(let n of e)if(r.has(n))i[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new rY({...t,checks:[],...Q(n),entries:i})},e.exclude=(e,n)=>{let i={...t.entries};for(let t of e)if(r.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new rY({...t,checks:[],...Q(n),entries:i})}});function rQ(e,t){return new rY({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...Q(t)})}let r0=o("ZodLiteral",(e,t)=>{tg.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i=e._zod.def,o=[];for(let e of i.values)if(void 0===e){if("throw"===t.unrepresentable)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e)if("throw"===t.unrepresentable)throw Error("BigInt literals cannot be represented in JSON Schema");else o.push(Number(e));else o.push(e);if(0===o.length);else if(1===o.length){let e=o[0];r.type=null===e?"null":typeof e,"draft-04"===t.target||"openapi-3.0"===t.target?r.enum=[e]:r.const=e}else o.every(e=>"number"==typeof e)&&(r.type="number"),o.every(e=>"string"==typeof e)&&(r.type="string"),o.every(e=>"boolean"==typeof e)&&(r.type="boolean"),o.every(e=>null===e)&&(r.type="null"),r.enum=o})(e,t,r,0),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function r1(e,t){return new r0({type:"literal",values:Array.isArray(e)?e:[e],...Q(t)})}let r2=o("ZodTransform",(e,t)=>{tv.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Transforms cannot be represented in JSON Schema")})(0,e,0,0),e._zod.parse=(r,n)=>{if("backward"===n.direction)throw new s(e.constructor.name);r.addIssue=n=>{"string"==typeof n?r.issues.push(ea(n,r.value,t)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),r.issues.push(ea(n)))};let i=t.transform(r.value,r);return i instanceof Promise?i.then(e=>(r.value=e,r.fallback=!0,r)):(r.value=i,r.fallback=!0,r)}}),r4=o("ZodOptional",(e,t)=>{tk.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>tQ(e,t,r,n),e.unwrap=()=>e._zod.def.innerType});function r7(e){return new r4({type:"optional",innerType:e})}let r3=o("ZodExactOptional",(e,t)=>{tw.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>tQ(e,t,r,n),e.unwrap=()=>e._zod.def.innerType}),r5=o("ZodNullable",(e,t)=>{tb.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,a;return o=tW((i=e._zod.def).innerType,t,n),a=t.seen.get(e),void("openapi-3.0"===t.target?(a.ref=i.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}])},e.unwrap=()=>e._zod.def.innerType});function r8(e){return new r5({type:"nullable",innerType:e})}let r9=o("ZodDefault",(e,t)=>{tz.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;tW((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType,r.default=JSON.parse(JSON.stringify(i.defaultValue))},e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),r6=o("ZodPrefault",(e,t)=>{tA.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;tW((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType,"input"===t.io&&(r._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},e.unwrap=()=>e._zod.def.innerType}),ne=o("ZodNonOptional",(e,t)=>{tO.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;tW((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType},e.unwrap=()=>e._zod.def.innerType}),nt=o("ZodCatch",(e,t)=>{tS.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>((e,t,r,n)=>{let i,o=e._zod.def;tW(o.innerType,t,n),t.seen.get(e).ref=o.innerType;try{i=o.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}r.default=i})(e,t,r,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),nr=o("ZodPipe",(e,t)=>{tM.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i,o,a;return o=(i=e._zod.def).in._zod.traits.has("$ZodTransform"),void(tW(a="input"===t.io?o?i.out:i.in:i.out,t,n),t.seen.get(e).ref=a)},e.in=t.in,e.out=t.out});function nn(e,t){return new nr({type:"pipe",in:e,out:t})}let ni=o("ZodReadonly",(e,t)=>{tN.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(t,r,n)=>{let i;tW((i=e._zod.def).innerType,t,n),t.seen.get(e).ref=i.innerType,r.readOnly=!0},e.unwrap=()=>e._zod.def.innerType}),no=o("ZodCustom",(e,t)=>{tj.init(e,t),ru.init(e,t),e._zod.processJSONSchema=(e,t,r)=>((e,t,r,n)=>{if("throw"===t.unrepresentable)throw Error("Custom types cannot be represented in JSON Schema")})(0,e,0,0)})},8962:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]])},9107:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]])},9339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={callServer:function(){return o.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var i in n)Object.defineProperty(t,i,{enumerable:!0,get:n[i]});let o=r(77304),a=r(4060),s=r(77197)},9751:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},12651:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]])},14225:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]])},15330:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]])},15480:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]])},17082:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]])},17112:(e,t,r)=>{"use strict";r.d(t,{D:()=>a});var n=r(12115),i=r(63699),o=r(94257);function a(e){let t=n.useContext(i.Ts)?"drawer":"dialog";return(0,o.G)(e,t)}},17356:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},17494:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},19707:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},22200:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},24413:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]])},25583:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]])},25640:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("map-pinned",[["path",{d:"M18 8c0 3.613-3.869 7.429-5.393 8.795a1 1 0 0 1-1.214 0C9.87 15.429 6 11.613 6 8a6 6 0 0 1 12 0",key:"11u0oz"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M8.714 14h-3.71a1 1 0 0 0-.948.683l-2.004 6A1 1 0 0 0 3 22h18a1 1 0 0 0 .948-1.316l-2-6a1 1 0 0 0-.949-.684h-3.712",key:"q8zwxj"}]])},27700:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("component",[["path",{d:"M15.536 11.293a1 1 0 0 0 0 1.414l2.376 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1uwlt4"}],["path",{d:"M2.297 11.293a1 1 0 0 0 0 1.414l2.377 2.377a1 1 0 0 0 1.414 0l2.377-2.377a1 1 0 0 0 0-1.414L6.088 8.916a1 1 0 0 0-1.414 0z",key:"10291m"}],["path",{d:"M8.916 17.912a1 1 0 0 0 0 1.415l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.415l-2.377-2.376a1 1 0 0 0-1.414 0z",key:"1tqoq1"}],["path",{d:"M8.916 4.674a1 1 0 0 0 0 1.414l2.377 2.376a1 1 0 0 0 1.414 0l2.377-2.376a1 1 0 0 0 0-1.414l-2.377-2.377a1 1 0 0 0-1.414 0z",key:"1x6lto"}]])},29450:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]])},34306:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},36483:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},40638:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("message-circle-question-mark",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},44825:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]])},45486:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},48869:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("gamepad-2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]])},49960:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},51128:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]])},52750:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]])},53255:()=>{},54154:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("package-check",[["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m16 17 2 2 4-4",key:"uh5qu3"}],["path",{d:"M21 11.127V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.32-.753",key:"kpkbpo"}],["path",{d:"M3.29 7 12 12l8.71-5",key:"19ckod"}],["path",{d:"m7.5 4.27 8.997 5.148",key:"9yrvtv"}]])},55737:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]])},55776:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("notebook-pen",[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]])},60976:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("redo-2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]])},61285:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("mouse-pointer-2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]])},61388:(e,t,r)=>{"use strict";r.d(t,{b:()=>p});var n=r(12115),i=r.t(n,2);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}r(47650);var a=r(95155),s=Symbol.for("react.lazy"),l=i[" use ".trim().toString()];function u(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=Symbol("radix.slottable");function d(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}var f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,i;let s,c,f,h=(i=r=`Primitive.${t}`,(s=n.forwardRef((e,t)=>{let{children:r,...i}=e;if(u(r)&&"function"==typeof l&&(r=l(r._payload)),n.isValidElement(r)){var a;let e,s,l=(a=r,(s=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(s=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(i,r.props);return r.type!==n.Fragment&&(u.ref=t?function(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():o(e[t],null)}}}}(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${i}.SlotClone`,c=s,(f=n.forwardRef((e,t)=>{let{children:r,...i}=e;u(r)&&"function"==typeof l&&(r=l(r._payload));let o=n.Children.toArray(r),s=o.find(d);if(s){let e=s.props.children,r=o.map(t=>t!==s?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(c,{...i,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,a.jsx)(c,{...i,ref:t,children:r})})).displayName=`${r}.Slot`,f),p=n.forwardRef((e,r)=>{let{asChild:n,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(n?h:t,{...i,ref:r})});return p.displayName=`Primitive.${t}`,{...e,[t]:p}},{}),h=n.forwardRef((e,t)=>(0,a.jsx)(f.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));h.displayName="Label";var p=h},65377:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},68319:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]])},68426:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]])},70299:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},71019:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]])},72974:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("webhook",[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]])},76181:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("hexagon",[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]])},76721:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},78780:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},80846:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]])},81499:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]])},83599:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]])},84824:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("flask-conical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]])},85222:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("workflow",[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]])},85618:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]])},86659:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("arrow-down-left",[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]])},91906:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("hand",[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]])},92571:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},94192:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]])},95660:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(30772).A)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]])},98112:(e,t,r)=>{"use strict";let n;r.d(t,{sX:()=>X});let i=BigInt(0x100000000-1),o=BigInt(32);function a(e,t=""){if("number"!=typeof e){let r=t&&`"${t}" `;throw TypeError(`${r}expected number, got ${typeof e}`)}if(!Number.isSafeInteger(e)||e<0){let r=t&&`"${t}" `;throw RangeError(`${r}expected integer >= 0, got ${e}`)}}function s(e,t,r=""){let n=e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name&&"BYTES_PER_ELEMENT"in e&&1===e.BYTES_PER_ELEMENT,i=e?.length,o=void 0!==t;if(!n||o&&i!==t){let a=(r&&`"${r}" `)+"expected Uint8Array"+(o?` of length ${t}`:"")+", got "+(n?`length=${i}`:`type=${typeof e}`);if(!n)throw TypeError(a);throw RangeError(a)}return e}function l(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function u(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}let c=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0]?e=>e:function(e){for(let r=0;r<e.length;r++){var t;e[r]=(t=e[r])<<24&0xff000000|t<<8&0xff0000|t>>>8&65280|t>>>24&255}return e},d=BigInt(0),f=BigInt(1),h=BigInt(2),p=BigInt(7),y=BigInt(256),m=BigInt(113),g=[],v=[],_=[];for(let e=0,t=f,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],g.push(2*(5*n+r)),v.push((e+1)*(e+2)/2%64);let i=d;for(let e=0;e<7;e++)(t=(t<<f^(t>>p)*m)%y)&h&&(i^=f<<(f<<BigInt(e))-f);_.push(i)}let k=function(e,t=!1){let r=e.length,n=new Uint32Array(r),a=new Uint32Array(r);for(let s=0;s<r;s++){let{h:r,l}=function(e,t=!1){return t?{h:Number(e&i),l:Number(e>>o&i)}:{h:0|Number(e>>o&i),l:0|Number(e&i)}}(e[s],t);[n[s],a[s]]=[r,l]}return[n,a]}(_,!0),w=k[0],b=k[1],z=(e,t,r)=>r>32?t<<r-32|e>>>64-r:e<<r|t>>>32-r,x=(e,t,r)=>r>32?e<<r-32|t>>>64-r:t<<r|e>>>32-r;class A{state;pos=0;posOut=0;finished=!1;state32;destroyed=!1;blockLen;suffix;outputLen;canXOF;enableXOF=!1;rounds;constructor(e,t,r,n=!1,i=24){if(this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.canXOF=n,this.rounds=i,a(r,"outputLen"),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}(this.state)}clone(){return this._cloneInto()}keccak(){c(this.state32),function(e,t=24){if(a(t,"rounds"),t<1||t>24)throw Error('"rounds" expected integer 1..24');let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=z(o,a,1)^r[n],l=x(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=l}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=v[r],o=z(t,i,n),a=x(t,i,n),s=g[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){let r=e[t],n=e[t+1],i=e[t+2],o=e[t+3];e[t]^=~e[t+2]&e[t+4],e[t+1]^=~e[t+3]&e[t+5],e[t+2]^=~e[t+4]&e[t+6],e[t+3]^=~e[t+5]&e[t+7],e[t+4]^=~e[t+6]&e[t+8],e[t+5]^=~e[t+7]&e[t+9],e[t+6]^=~e[t+8]&r,e[t+7]^=~e[t+9]&n,e[t+8]^=~r&i,e[t+9]^=~n&o}e[0]^=w[n],e[1]^=b[n]}u(r)}(this.state32,this.rounds),c(this.state32),this.posOut=0,this.pos=0}update(e){l(this),s(e);let{blockLen:t,state:r}=this,n=e.length;for(let i=0;i<n;){let o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){l(this,!1),s(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return a(e),this.xofInto(new Uint8Array(e))}digestInto(e){s(e,void 0,"digestInto() output");let t=this.outputLen;if(e.length<t)throw RangeError('"digestInto() output" expected to be of length >='+t);if(this.finished)throw Error("digest() was already called");this.writeInto(e.subarray(0,this.outputLen)),this.destroy()}digest(){let e=new Uint8Array(this.outputLen);return this.digestInto(e),e}destroy(){this.destroyed=!0,u(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return(e||=new A(t,r,n,o,i)).blockLen=t,e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.canXOF=this.canXOF,e.destroyed=this.destroyed,e}}let O=((e,t,r,n={})=>(function(e,t={}){let r=(t,r)=>e(r).update(t).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=t=>e(t),Object.assign(r,t),Object.freeze(r)})(()=>new A(t,e,r),n))(6,72,64,{oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,10])});var $,S=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,M=Math.ceil,E=Math.floor,N="[BigNumber Error] ",Z=N+"Number primitive has more than 15 significant digits: ",j=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function T(e){var t=0|e;return e>0||e===t?t:t-1}function P(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function I(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=l==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return l>u^r?1:-1;for(a=0,s=(l=i.length)<(u=o.length)?l:u;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return l==u?0:l>u^r?1:-1}function R(e,t,r,n){if(e<t||e>r||e!==E(e))throw Error(N+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function C(e){var t=e.c.length-1;return T(e.e/14)==t&&e.c[t]%2!=0}function U(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function L(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}var F=function e(t){var r,n,i,o,a,s,l,u,c,d=A.prototype={constructor:A,toString:null,valueOf:null},f=new A(1),h=20,p=4,y=-7,m=21,g=-1e7,v=1e7,_=!1,k=1,w=0,b={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},z="0123456789abcdefghijklmnopqrstuvwxyz",x=!0;function A(e,t){var r,n,i,o,a,s,l,d,f=this;if(!(f instanceof A))return new A(e,t);if(null==t){if(e&&!0===e._isBigNumber){f.s=e.s,!e.c||e.e>v?f.c=f.e=null:e.e<g?f.c=[f.e=0]:(f.e=e.e,f.c=e.c.slice());return}if((s="number"==typeof e)&&0*e==0){if(f.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,a=e;a>=10;a/=10,o++);o>v?f.c=f.e=null:(f.e=o,f.c=[e]);return}d=String(e)}else{if(!S.test(d=String(e)))return c(f,d,s);f.s=45==d.charCodeAt(0)?(d=d.slice(1),-1):1}(o=d.indexOf("."))>-1&&(d=d.replace(".","")),(a=d.search(/e/i))>0?(o<0&&(o=a),o+=+d.slice(a+1),d=d.substring(0,a)):o<0&&(o=d.length)}else{if(R(t,2,z.length,"Base"),10==t&&x)return D(f=new A(e),h+f.e+1,p);if(d=String(e),s="number"==typeof e){if(0*e!=0)return c(f,d,s,t);if(f.s=1/e<0?(d=d.slice(1),-1):1,A.DEBUG&&d.replace(/^0\.0*|\./,"").length>15)throw Error(Z+e)}else f.s=45===d.charCodeAt(0)?(d=d.slice(1),-1):1;for(r=z.slice(0,t),o=a=0,l=d.length;a<l;a++)if(0>r.indexOf(n=d.charAt(a))){if("."==n){if(a>o){o=l;continue}}else if(!i&&(d==d.toUpperCase()&&(d=d.toLowerCase())||d==d.toLowerCase()&&(d=d.toUpperCase()))){i=!0,a=-1,o=0;continue}return c(f,String(e),s,t)}s=!1,(o=(d=u(d,t,10,f.s)).indexOf("."))>-1?d=d.replace(".",""):o=d.length}for(a=0;48===d.charCodeAt(a);a++);for(l=d.length;48===d.charCodeAt(--l););if(d=d.slice(a,++l)){if(l-=a,s&&A.DEBUG&&l>15&&(e>0x1fffffffffffff||e!==E(e)))throw Error(Z+f.s*e);if((o=o-a-1)>v)f.c=f.e=null;else if(o<g)f.c=[f.e=0];else{if(f.e=o,f.c=[],a=(o+1)%14,o<0&&(a+=14),a<l){for(a&&f.c.push(+d.slice(0,a)),l-=14;a<l;)f.c.push(+d.slice(a,a+=14));a=14-(d=d.slice(a)).length}else a-=l;for(;a--;d+="0");f.c.push(+d)}}else f.c=[f.e=0]}function O(e,t,r,n){var i,o,a,s,l;if(null==r?r=p:R(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)l=P(e.c),l=1==n||2==n&&(a<=y||a>=m)?U(l,a):L(l,a,"0");else if(o=(e=D(new A(e),t,r)).e,s=(l=P(e.c)).length,1==n||2==n&&(t<=o||o<=y)){for(;s<t;l+="0",s++);l=U(l,o)}else if(t-=a+(2===n&&o>a),l=L(l,o,"0"),o+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function $(e,t){for(var r,n,i=1,o=new A(e[0]);i<e.length;i++)(n=new A(e[i])).s&&(r=I(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function F(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>v?e.c=e.e=null:r<g?e.c=[e.e=0]:(e.e=r,e.c=t),e}function D(e,t,r,n){var i,o,a,s,l,u,c,d=e.c;if(d){e:{for(i=1,s=d[0];s>=10;s/=10,i++);if((o=t-i)<0)o+=14,a=t,c=E((l=d[u=0])/j[i-a-1]%10);else if((u=M((o+1)/14))>=d.length)if(n){for(;d.length<=u;d.push(0));l=c=0,i=1,o%=14,a=o-14+1}else break e;else{for(i=1,l=s=d[u];s>=10;s/=10,i++);o%=14,c=(a=o-14+i)<0?0:E(l/j[i-a-1]%10)}if(n=n||t<0||null!=d[u+1]||(a<0?l:l%j[i-a-1]),n=r<4?(c||n)&&(0==r||r==(e.s<0?3:2)):c>5||5==c&&(4==r||n||6==r&&(o>0?a>0?l/j[i-a]:0:d[u-1])%10&1||r==(e.s<0?8:7)),t<1||!d[0])return d.length=0,n?(t-=e.e+1,d[0]=j[(14-t%14)%14],e.e=-t||0):d[0]=e.e=0,e;if(0==o?(d.length=u,s=1,u--):(d.length=u+1,s=j[14-o],d[u]=a>0?E(l/j[i-a]%j[a])*s:0),n)for(;;)if(0==u){for(o=1,a=d[0];a>=10;a/=10,o++);for(a=d[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,1e14==d[0]&&(d[0]=1));break}else{if(d[u]+=s,1e14!=d[u])break;d[u--]=0,s=1}for(o=d.length;0===d[--o];d.pop());}e.e>v?e.c=e.e=null:e.e<g&&(e.c=[e.e=0])}return e}function V(e){var t,r=e.e;return null===r?e.toString():(t=P(e.c),t=r<=y||r>=m?U(t,r):L(t,r,"0"),e.s<0?"-"+t:t)}return A.clone=e,A.ROUND_UP=0,A.ROUND_DOWN=1,A.ROUND_CEIL=2,A.ROUND_FLOOR=3,A.ROUND_HALF_UP=4,A.ROUND_HALF_DOWN=5,A.ROUND_HALF_EVEN=6,A.ROUND_HALF_CEIL=7,A.ROUND_HALF_FLOOR=8,A.EUCLID=9,A.config=A.set=function(e){var t,r;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(R(r=e[t],0,1e9,t),h=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(R(r=e[t],0,8,t),p=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(R(r[0],-1e9,0,t),R(r[1],0,1e9,t),y=r[0],m=r[1]):(R(r,-1e9,1e9,t),y=-(m=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)R(r[0],-1e9,-1,t),R(r[1],1,1e9,t),g=r[0],v=r[1];else if(R(r,-1e9,1e9,t),r)g=-(v=r<0?-r:r);else throw Error(N+t+" cannot be zero: "+r);if(e.hasOwnProperty(t="CRYPTO"))if(!!(r=e[t])===r)if(r)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))_=r;else throw _=!r,Error(N+"crypto unavailable");else _=r;else throw Error(N+t+" not true or false: "+r);if(e.hasOwnProperty(t="MODULO_MODE")&&(R(r=e[t],0,9,t),k=r),e.hasOwnProperty(t="POW_PRECISION")&&(R(r=e[t],0,1e9,t),w=r),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(r=e[t]))b=r;else throw Error(N+t+" not an object: "+r);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(N+t+" invalid: "+r);x="0123456789"==r.slice(0,10),z=r}}else throw Error(N+"Object expected: "+e);return{DECIMAL_PLACES:h,ROUNDING_MODE:p,EXPONENTIAL_AT:[y,m],RANGE:[g,v],CRYPTO:_,MODULO_MODE:k,POW_PRECISION:w,FORMAT:b,ALPHABET:z}},A.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!A.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"==({}).toString.call(n)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===E(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=1e14||r!==E(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(N+"Invalid BigNumber: "+e)},A.maximum=A.max=function(){return $(arguments,-1)},A.minimum=A.min=function(){return $(arguments,1)},r=0x20000000000000*Math.random()&2097151?function(){return E(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},A.random=function(e){var t,n,i,o,a,s=0,l=[],u=new A(f);if(null==e?e=h:R(e,0,1e9),o=M(e/14),_)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));s<o;)(a=131072*t[s]+(t[s+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[s]=n[0],t[s+1]=n[1]):(l.push(a%1e14),s+=2);s=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);s<o;)(a=(31&t[s])*0x1000000000000+0x10000000000*t[s+1]+0x100000000*t[s+2]+0x1000000*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])>=9e15?crypto.randomBytes(7).copy(t,s):(l.push(a%1e14),s+=7);s=o/7}else throw _=!1,Error(N+"crypto unavailable");if(!_)for(;s<o;)(a=r())<9e15&&(l[s++]=a%1e14);for(o=l[--s],e%=14,o&&e&&(a=j[14-e],l[s]=E(o/a)*a);0===l[s];l.pop(),s--);if(s<0)l=[i=0];else{for(i=-1;0===l[0];l.splice(0,1),i-=14);for(s=1,a=l[0];a>=10;a/=10,s++);s<14&&(i-=14-s)}return u.e=i,u.c=l,u},A.sum=function(){for(var e=1,t=arguments,r=new A(t[0]);e<t.length;)r=r.plus(t[e++]);return r},u=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,l=e.length;s<l;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,u,c,d,f,y,m,g,v=r.indexOf("."),_=h,k=p;for(v>=0&&(d=w,w=0,r=r.replace(".",""),y=(g=new A(n)).pow(r.length-v),w=d,g.c=t(L(P(y.c),y.e,"0"),10,i,e),g.e=g.c.length),c=d=(m=t(r,n,i,a?(s=z,e):(s=e,z))).length;0==m[--d];m.pop());if(!m[0])return s.charAt(0);if(v<0?--c:(y.c=m,y.e=c,y.s=o,m=(y=l(y,g,_,k,i)).c,f=y.r,c=y.e),v=m[u=c+_+1],d=i/2,f=f||u<0||null!=m[u+1],f=k<4?(null!=v||f)&&(0==k||k==(y.s<0?3:2)):v>d||v==d&&(4==k||f||6==k&&1&m[u-1]||k==(y.s<0?8:7)),u<1||!m[0])r=f?L(s.charAt(1),-_,s.charAt(0)):s.charAt(0);else{if(m.length=u,f)for(--i;++m[--u]>i;)m[u]=0,u||(++c,m=[1].concat(m));for(d=m.length;!m[--d];);for(v=0,r="";v<=d;r+=s.charAt(m[v++]));r=L(r,c,s.charAt(0))}return r}}(),l=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)n=c*(o=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((i=u*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+c*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=+(e[r]<t[r]),e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,s){var l,u,c,d,f,h,p,y,m,g,v,_,k,w,b,z,x,O=n.s==i.s?1:-1,$=n.c,S=i.c;if(!$||!$[0]||!S||!S[0])return new A(!n.s||!i.s||($?S&&$[0]==S[0]:!S)?NaN:$&&0==$[0]||!S?0*O:O/0);for(m=(y=new A(O)).c=[],O=o+(u=n.e-i.e)+1,s||(s=1e14,u=T(n.e/14)-T(i.e/14),O=O/14|0),c=0;S[c]==($[c]||0);c++);if(S[c]>($[c]||0)&&u--,O<0)m.push(1),d=!0;else{for(w=$.length,z=S.length,c=0,O+=2,(f=E(s/(S[0]+1)))>1&&(S=e(S,f,s),$=e($,f,s),z=S.length,w=$.length),k=z,v=(g=$.slice(0,z)).length;v<z;g[v++]=0);x=[0].concat(x=S.slice()),b=S[0],S[1]>=s/2&&b++;do{if(f=0,(l=t(S,g,z,v))<0){if(_=g[0],z!=v&&(_=_*s+(g[1]||0)),(f=E(_/b))>1)for(f>=s&&(f=s-1),p=(h=e(S,f,s)).length,v=g.length;1==t(h,g,p,v);)f--,r(h,z<p?x:S,p,s),p=h.length,l=1;else 0==f&&(l=f=1),p=(h=S.slice()).length;if(p<v&&(h=[0].concat(h)),r(g,h,v,s),v=g.length,-1==l)for(;1>t(S,g,z,v);)f++,r(g,z<v?x:S,v,s),v=g.length}else 0===l&&(f++,g=[0]);m[c++]=f,g[0]?g[v++]=$[k]||0:(g=[$[k]],v=1)}while((k++<w||null!=g[0])&&O--);d=null!=g[0],m[0]||m.splice(0,1)}if(1e14==s){for(c=1,O=m[0];O>=10;O/=10,c++);D(y,o+(y.e=c+14*u-1)+1,a,d)}else y.e=u,y.r=+d;return y}}(),n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,a=/^-?(Infinity|NaN)$/,s=/^\s*\+(?=[\w.])|^\s+|\s+$/g,c=function(e,t,r,l){var u,c=r?t:t.replace(s,"");if(a.test(c))e.s=isNaN(c)?null:c<0?-1:1;else{if(!r&&(c=c.replace(n,function(e,t,r){return u="x"==(r=r.toLowerCase())?16:"b"==r?2:8,l&&l!=u?e:t}),l&&(u=l,c=c.replace(i,"$1").replace(o,"0.$1")),t!=c))return new A(c,u);if(A.DEBUG)throw Error(N+"Not a"+(l?" base "+l:"")+" number: "+t);e.s=null}e.c=e.e=null},d.absoluteValue=d.abs=function(){var e=new A(this);return e.s<0&&(e.s=1),e},d.comparedTo=function(e,t){return I(this,new A(e,t))},d.decimalPlaces=d.dp=function(e,t){var r,n,i;if(null!=e)return R(e,0,1e9),null==t?t=p:R(t,0,8),D(new A(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-T(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},d.dividedBy=d.div=function(e,t){return l(this,new A(e,t),h,p)},d.dividedToIntegerBy=d.idiv=function(e,t){return l(this,new A(e,t),0,1)},d.exponentiatedBy=d.pow=function(e,t){var r,n,i,o,a,s,l,u,c,d=this;if((e=new A(e)).c&&!e.isInteger())throw Error(N+"Exponent not an integer: "+V(e));if(null!=t&&(t=new A(t)),s=e.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!e.c||!e.c[0])return c=new A(Math.pow(+V(d),s?e.s*(2-C(e)):+V(e))),t?c.mod(t):c;if(l=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new A(NaN);(n=!l&&d.isInteger()&&t.isInteger())&&(d=d.mod(t))}else{if(e.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||s&&d.c[1]>=24e7:d.c[0]<8e13||s&&d.c[0]<=9999975e7)))return o=d.s<0&&C(e)?-0:0,d.e>-1&&(o=1/o),new A(l?1/o:o);w&&(o=M(w/14+2))}for(s?(r=new A(.5),l&&(e.s=1),u=C(e)):u=(i=Math.abs(+V(e)))%2,c=new A(f);;){if(u){if(!(c=c.times(d)).c)break;o?c.c.length>o&&(c.c.length=o):n&&(c=c.mod(t))}if(i){if(0===(i=E(i/2)))break;u=i%2}else if(D(e=e.times(r),e.e+1,1),e.e>14)u=C(e);else{if(0==(i=+V(e)))break;u=i%2}d=d.times(d),o?d.c&&d.c.length>o&&(d.c.length=o):n&&(d=d.mod(t))}return n?c:(l&&(c=f.div(c)),t?c.mod(t):o?D(c,w,p,a):c)},d.integerValue=function(e){var t=new A(this);return null==e?e=p:R(e,0,8),D(t,t.e+1,e)},d.isEqualTo=d.eq=function(e,t){return 0===I(this,new A(e,t))},d.isFinite=function(){return!!this.c},d.isGreaterThan=d.gt=function(e,t){return I(this,new A(e,t))>0},d.isGreaterThanOrEqualTo=d.gte=function(e,t){return 1===(t=I(this,new A(e,t)))||0===t},d.isInteger=function(){return!!this.c&&T(this.e/14)>this.c.length-2},d.isLessThan=d.lt=function(e,t){return 0>I(this,new A(e,t))},d.isLessThanOrEqualTo=d.lte=function(e,t){return -1===(t=I(this,new A(e,t)))||0===t},d.isNaN=function(){return!this.s},d.isNegative=function(){return this.s<0},d.isPositive=function(){return this.s>0},d.isZero=function(){return!!this.c&&0==this.c[0]},d.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new A(e,t)).s,!a||!t)return new A(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,c=e.c;if(!s||!l){if(!u||!c)return u?(e.s=-t,e):new A(c?this:NaN);if(!u[0]||!c[0])return c[0]?(e.s=-t,e):new A(u[0]?this:3==p?-0:0)}if(s=T(s),l=T(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=c),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=u.length)<(t=c.length))?a:t,a=t=0;t<n;t++)if(u[t]!=c[t]){o=u[t]<c[t];break}if(o&&(i=u,u=c,c=i,e.s=-e.s),(t=(n=c.length)-(r=u.length))>0)for(;t--;u[r++]=0);for(t=1e14-1;n>a;){if(u[--n]<c[n]){for(r=n;r&&!u[--r];u[r]=t);--u[r],u[n]+=1e14}u[n]-=c[n]}for(;0==u[0];u.splice(0,1),--l);return u[0]?F(e,u,l):(e.s=3==p?-1:1,e.c=[e.e=0],e)},d.modulo=d.mod=function(e,t){var r,n;return(e=new A(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==k?(n=e.s,e.s=1,r=l(this,e,0,3),e.s=n,r.s*=n):r=l(this,e,0,k),(e=this.minus(r.times(e))).c[0]||1!=k||(e.s=this.s),e):new A(this):new A(NaN)},d.multipliedBy=d.times=function(e,t){var r,n,i,o,a,s,l,u,c,d,f,h,p,y=this.c,m=(e=new A(e,t)).c;if(!y||!m||!y[0]||!m[0])return this.s&&e.s&&(!y||y[0]||m)&&(!m||m[0]||y)?(e.s*=this.s,y&&m?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=T(this.e/14)+T(e.e/14),e.s*=this.s,(l=y.length)<(d=m.length)&&(p=y,y=m,m=p,i=l,l=d,d=i),i=l+d,p=[];i--;p.push(0));for(i=d;--i>=0;){for(r=0,f=m[i]%1e7,h=m[i]/1e7|0,o=i+(a=l);o>i;)s=h*(u=y[--a]%1e7)+(c=y[a]/1e7|0)*f,r=((u=f*u+s%1e7*1e7+p[o]+r)/1e14|0)+(s/1e7|0)+h*c,p[o--]=u%1e14;p[o]=r}return r?++n:p.splice(0,1),F(e,p,n)},d.negated=function(){var e=new A(this);return e.s=-e.s||null,e},d.plus=function(e,t){var r,n=this.s;if(t=(e=new A(e,t)).s,!n||!t)return new A(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new A(n/0);if(!a[0]||!s[0])return s[0]?e:new A(a[0]?this:0*n)}if(i=T(i),o=T(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),F(e,a,o)},d.precision=d.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return R(e,1,1e9),null==t?t=p:R(t,0,8),D(new A(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},d.shiftedBy=function(e){return R(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},d.squareRoot=d.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,u=h+4,c=new A("0.5");if(1!==a||!o||!o[0])return new A(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+V(this)))||a==1/0?(((t=P(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=T((s+1)/2)-(s<0||s%2),r=new A(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new A(a+""),r.c[0]){for((a=(s=r.e)+u)<3&&(a=0);;)if(i=r,r=c.times(i.plus(l(this,i,u,1))),P(i.c).slice(0,a)===(t=P(r.c)).slice(0,a)){if(r.e<s&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(D(r,r.e+h+2,1),e=!r.times(r).eq(this));break}if(!n&&(D(i,i.e+h+2,0),i.times(i).eq(this))){r=i;break}u+=4,a+=4,n=1}}return D(r,r.e+h+1,p,e)},d.toExponential=function(e,t){return null!=e&&(R(e,0,1e9),e++),O(this,e,t,1)},d.toFixed=function(e,t){return null!=e&&(R(e,0,1e9),e=e+this.e+1),O(this,e,t)},d.toFormat=function(e,t,r){var n;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=b;else if("object"!=typeof r)throw Error(N+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,o=n.split("."),a=+r.groupSize,s=+r.secondaryGroupSize,l=r.groupSeparator||"",u=o[0],c=o[1],d=this.s<0,f=d?u.slice(1):u,h=f.length;if(s&&(i=a,a=s,s=i,h-=i),a>0&&h>0){for(i=h%a||a,u=f.substr(0,i);i<h;i+=a)u+=l+f.substr(i,a);s>0&&(u+=l+f.slice(i)),d&&(u="-"+u)}n=c?u+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?c.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):c):u}return(r.prefix||"")+n+(r.suffix||"")},d.toFraction=function(e){var t,r,n,i,o,a,s,u,c,d,h,y,m=this.c;if(null!=e&&(!(s=new A(e)).isInteger()&&(s.c||1!==s.s)||s.lt(f)))throw Error(N+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+V(s));if(!m)return new A(this);for(t=new A(f),c=r=new A(f),n=u=new A(f),y=P(m),o=t.e=y.length-this.e-1,t.c[0]=j[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:c:s,a=v,v=1/0,s=new A(y),u.c[0]=0;d=l(s,t,0,1),1!=(i=r.plus(d.times(n))).comparedTo(e);)r=n,n=i,c=u.plus(d.times(i=c)),u=i,t=s.minus(d.times(i=t)),s=i;return i=l(e.minus(r),n,0,1),u=u.plus(i.times(c)),r=r.plus(i.times(n)),u.s=c.s=this.s,o*=2,h=1>l(c,n,o,p).minus(this).abs().comparedTo(l(u,r,o,p).minus(this).abs())?[c,n]:[u,r],v=a,h},d.toNumber=function(){return+V(this)},d.toPrecision=function(e,t){return null!=e&&R(e,1,1e9),O(this,e,t,2)},d.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=y||i>=m?U(P(r.c),i):L(P(r.c),i,"0"):10===e&&x?t=L(P((r=D(new A(r),h+i+1,p)).c),r.e,"0"):(R(e,2,z.length,"Base"),t=u(L(P(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},d.valueOf=d.toJSON=function(){return V(this)},d._isBigNumber=!0,d[Symbol.toStringTag]="BigNumber",d[Symbol.for("nodejs.util.inspect.custom")]=d.valueOf,null!=t&&A.set(t),A}();let D=24,V="u">typeof globalThis&&globalThis.crypto&&"function"==typeof globalThis.crypto.getRandomValues?()=>{let e=new Uint32Array(1);return globalThis.crypto.getRandomValues(e),e[0]/0x100000000}:Math.random,J=(e=4,t=V)=>{let r="";for(;r.length<e;)r+=Math.floor(36*t()).toString(36);return r},q=(e="")=>(function(e){let t=new F(0);for(let r of e.values())t=t.multipliedBy(256).plus(r);return t})(O(new TextEncoder().encode(e))).toString(36).slice(1),B=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),H=({globalObj:e="u">typeof global?global:"u">typeof window?window:{},random:t=V}={})=>{let r=Object.keys(e).toString();return q(r.length?r+J(32,t):J(32,t)).substring(0,32)},W=e=>()=>e++,G=0x1c6b1f1f,X=($=({random:e=V,counter:t=W(Math.floor(e()*G)),length:r=D,fingerprint:n=H({random:e})}={})=>{if(r>32)throw Error(`Length must be between 2 and 32. Received: ${r}`);return function(){let i=B[Math.floor(e()*B.length)],o=Date.now().toString(36),a=t().toString(36),s=J(r,e),l=`${o+s+a+n}`;return`${i+q(l).substring(1,r)}`}},()=>(n||(n=$()),n()))}}]);