9remote 2.5.5 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (597) hide show
  1. package/README.md +91 -172
  2. package/dist/assets/trayIcon.ico +0 -0
  3. package/dist/cli.cjs +102 -101
  4. package/dist/ptyDaemon.cjs +10 -9
  5. package/dist/server.cjs +307 -138
  6. package/dist/ui/agents/codex.svg +1 -1
  7. package/dist/ui/assets/index-CAvf0VPf.css +1 -0
  8. package/dist/ui/assets/index-EXcI2V_p.js +8 -0
  9. package/dist/ui/favicon.ico +0 -0
  10. package/dist/ui/index.html +12 -4
  11. package/dist/vendor/scrcpy-server-v3.1 +0 -0
  12. package/dist/web/404.html +1 -0
  13. package/dist/web/__next.__PAGE__.txt +9 -0
  14. package/dist/web/__next._full.txt +25 -0
  15. package/dist/web/__next._head.txt +6 -0
  16. package/dist/web/__next._index.txt +10 -0
  17. package/dist/web/__next._tree.txt +5 -0
  18. package/dist/web/_next/static/AUHtJgkYALYyNwHop9pgT/_buildManifest.js +1 -0
  19. package/dist/web/_next/static/AUHtJgkYALYyNwHop9pgT/_ssgManifest.js +1 -0
  20. package/dist/web/_next/static/chunks/0a7753a9.4cb02a98e2e453b9.js +1 -0
  21. package/dist/web/_next/static/chunks/1222.aa4f7f7f397533e9.js +1 -0
  22. package/dist/web/_next/static/chunks/1228.d291278320bca9ca.js +1 -0
  23. package/dist/web/_next/static/chunks/1243.f35c2e6494079e05.js +1 -0
  24. package/dist/web/_next/static/chunks/1311.8c6b8930e22ceea0.js +1 -0
  25. package/dist/web/_next/static/chunks/132.6032826021079bce.js +1 -0
  26. package/dist/web/_next/static/chunks/133.1106654a28b5afda.js +1 -0
  27. package/dist/web/_next/static/chunks/1385.086b560acb0d7a68.js +115 -0
  28. package/dist/web/_next/static/chunks/1642.cac26d30ac331cb4.js +1 -0
  29. package/dist/web/_next/static/chunks/1733.f06c240b3ef8a428.js +77 -0
  30. package/dist/web/_next/static/chunks/1750.f7ba3332b56a8e68.js +1 -0
  31. package/dist/web/_next/static/chunks/1763.28beedca593b5e19.js +138 -0
  32. package/dist/web/_next/static/chunks/179.b9e8f385bd414d1c.js +62 -0
  33. package/dist/web/_next/static/chunks/1838.7c8990f903e3524a.js +215 -0
  34. package/dist/web/_next/static/chunks/20154aaa.868648f838e03bf1.js +1 -0
  35. package/dist/web/_next/static/chunks/2038.640b672702093b24.js +1 -0
  36. package/dist/web/_next/static/chunks/2112.d72eefbdf81659b3.js +23 -0
  37. package/dist/web/_next/static/chunks/2125.61c6e4a3541e30ad.js +1 -0
  38. package/dist/web/_next/static/chunks/2129.61afb2f4ff59e46a.js +24 -0
  39. package/dist/web/_next/static/chunks/213.68ce1361aee3281a.js +1 -0
  40. package/dist/web/_next/static/chunks/2179.3f55be0b79e3cca7.js +1 -0
  41. package/dist/web/_next/static/chunks/2180.e6bad8186f52ff89.js +1 -0
  42. package/dist/web/_next/static/chunks/2264.0fc1474d26067a01.js +1 -0
  43. package/dist/web/_next/static/chunks/2376.ed6302a91a9de1ae.js +36 -0
  44. package/dist/web/_next/static/chunks/2545.3ff192a933baf11e.js +1 -0
  45. package/dist/web/_next/static/chunks/2620.d17f4fac0eec88a5.js +1 -0
  46. package/dist/web/_next/static/chunks/2847.d3124853ca727b78.js +1 -0
  47. package/dist/web/_next/static/chunks/2849.f2bcad51c68e44b5.js +1 -0
  48. package/dist/web/_next/static/chunks/3189.64c6546d621eec0b.js +1 -0
  49. package/dist/web/_next/static/chunks/3348-9ef29f9cedf6c0df.js +1 -0
  50. package/dist/web/_next/static/chunks/3429.436b229808b33e81.js +1 -0
  51. package/dist/web/_next/static/chunks/3514.9643e815d690f2fb.js +1 -0
  52. package/dist/web/_next/static/chunks/3552.8dd9a3d2c3bcef65.js +86 -0
  53. package/dist/web/_next/static/chunks/3606.b59e695fd05b4eb3.js +74 -0
  54. package/dist/web/_next/static/chunks/3692.8c6b8930e22ceea0.js +1 -0
  55. package/dist/web/_next/static/chunks/3736.4a5662ceeecc6acb.js +94 -0
  56. package/dist/web/_next/static/chunks/392.842b338137824bb8.js +1 -0
  57. package/dist/web/_next/static/chunks/3973-9b18bcd9afc0bcb4.js +1 -0
  58. package/dist/web/_next/static/chunks/3977.8cfd8dec4cb8e893.js +1 -0
  59. package/dist/web/_next/static/chunks/4090.441fa61655da9b38.js +1 -0
  60. package/dist/web/_next/static/chunks/4303.54c4aa0b89834fc6.js +1 -0
  61. package/dist/web/_next/static/chunks/4314.6bbd89507909cad1.js +1 -0
  62. package/dist/web/_next/static/chunks/4551.d0d6723cacfb90b9.js +226 -0
  63. package/dist/web/_next/static/chunks/4566.d8e009823b8647d1.js +90 -0
  64. package/dist/web/_next/static/chunks/4643.dbb152682d076617.js +1 -0
  65. package/dist/web/_next/static/chunks/4732-76a574510722b2c3.js +11 -0
  66. package/dist/web/_next/static/chunks/4924.3f5c77a103ac69a9.js +8 -0
  67. package/dist/web/_next/static/chunks/4930.42e564644c94a93b.js +1 -0
  68. package/dist/web/_next/static/chunks/5155.d7e8db52ab4c95e0.js +27 -0
  69. package/dist/web/_next/static/chunks/5158-267908d069475cdc.js +32 -0
  70. package/dist/web/_next/static/chunks/543.5636e97aa68eb9c8.js +41 -0
  71. package/dist/web/_next/static/chunks/5506.98304a1821200439.js +1 -0
  72. package/dist/web/_next/static/chunks/5622.5ead5e748ecedbd1.js +1 -0
  73. package/dist/web/_next/static/chunks/565f33a6-fd3410bd29f39fdf.js +1 -0
  74. package/dist/web/_next/static/chunks/5708.22b4531ceebf3eca.js +1 -0
  75. package/dist/web/_next/static/chunks/5804.ff72a927135eb74c.js +93 -0
  76. package/dist/web/_next/static/chunks/588.78e2528ff24df85c.js +287 -0
  77. package/dist/web/_next/static/chunks/6001.e5bcb28bb9ce6571.js +1 -0
  78. package/dist/web/_next/static/chunks/6075.a6b8434732056526.js +1 -0
  79. package/dist/web/_next/static/chunks/6180.82fa683aa16f21df.js +1 -0
  80. package/dist/web/_next/static/chunks/6274.a3795ca6dacb3d62.js +32 -0
  81. package/dist/web/_next/static/chunks/635-d6ae421935055337.js +1 -0
  82. package/dist/web/_next/static/chunks/6419.842467d9a877e770.js +1 -0
  83. package/dist/web/_next/static/chunks/6420.bfa7bc86d03dcefc.js +1 -0
  84. package/dist/web/_next/static/chunks/6552-145e634541b5b66c.js +1 -0
  85. package/dist/web/_next/static/chunks/6647.740ec32a32201eab.js +64 -0
  86. package/dist/web/_next/static/chunks/6730.88fc6f2ccc49496c.js +1 -0
  87. package/dist/web/_next/static/chunks/6739.82570eba0a02cb26.js +1 -0
  88. package/dist/web/_next/static/chunks/674.2b5ffad0676aedbe.js +1 -0
  89. package/dist/web/_next/static/chunks/6742.8e137138a5d1c9e1.js +1 -0
  90. package/dist/web/_next/static/chunks/6987.743a63813c6288ce.js +79 -0
  91. package/dist/web/_next/static/chunks/7202.dad90ce4a1d78f67.js +1 -0
  92. package/dist/web/_next/static/chunks/7233.0f252f6c1cce8058.js +1 -0
  93. package/dist/web/_next/static/chunks/7248.d89bf328a0dc1b4c.js +1 -0
  94. package/dist/web/_next/static/chunks/7263.6f224c3924155294.js +1 -0
  95. package/dist/web/_next/static/chunks/7341.6958eac888a96823.js +34 -0
  96. package/dist/web/_next/static/chunks/7424.c8c9f85c8ea65885.js +1 -0
  97. package/dist/web/_next/static/chunks/7507.1204ae29f46e3f01.js +1 -0
  98. package/dist/web/_next/static/chunks/7629-16de8d4154923623.js +1 -0
  99. package/dist/web/_next/static/chunks/7811.19082afa63eb73ba.js +1 -0
  100. package/dist/web/_next/static/chunks/7853.d01982fa0afc1ee2.js +24 -0
  101. package/dist/web/_next/static/chunks/7908.432ab9feeb9ae756.js +1 -0
  102. package/dist/web/_next/static/chunks/7960.3b1c77b882ba4bb1.js +1 -0
  103. package/dist/web/_next/static/chunks/7967.6c62be01fad1603c.js +1 -0
  104. package/dist/web/_next/static/chunks/7c89255b.f727562586fa21cc.js +153 -0
  105. package/dist/web/_next/static/chunks/8044.5f87392585c9f3e4.js +38 -0
  106. package/dist/web/_next/static/chunks/8054.feeb01b8acdb31d4.js +1 -0
  107. package/dist/web/_next/static/chunks/8115.68d46fb961c724e0.js +172 -0
  108. package/dist/web/_next/static/chunks/817.cd0f4d221eca4c8b.js +104 -0
  109. package/dist/web/_next/static/chunks/8334-0e9493cfa1547244.js +1 -0
  110. package/dist/web/_next/static/chunks/8467.f34d938a32d40325.js +1 -0
  111. package/dist/web/_next/static/chunks/8495.d6cea1be03635fa8.js +148 -0
  112. package/dist/web/_next/static/chunks/8516-b3694c9156666b12.js +152 -0
  113. package/dist/web/_next/static/chunks/8638.03c6480d4aaeb5b3.js +1 -0
  114. package/dist/web/_next/static/chunks/8716.1ad6febb58e8560e.js +1 -0
  115. package/dist/web/_next/static/chunks/8839.1ad64faf06fb4a33.js +1 -0
  116. package/dist/web/_next/static/chunks/8922-a9cee4a104876005.js +1 -0
  117. package/dist/web/_next/static/chunks/910.43be9c3be85c7fa0.js +21 -0
  118. package/dist/web/_next/static/chunks/925.7ef504ee39f11840.js +1 -0
  119. package/dist/web/_next/static/chunks/9259.f4337cbb56e2e0b6.js +1 -0
  120. package/dist/web/_next/static/chunks/9299.af2a95f6ece07482.js +1 -0
  121. package/dist/web/_next/static/chunks/9387.96263a2d1602a078.js +1 -0
  122. package/dist/web/_next/static/chunks/9568-0bfadca4fcb105aa.js +1 -0
  123. package/dist/web/_next/static/chunks/9641.f6f2982fc4b4735f.js +1 -0
  124. package/dist/web/_next/static/chunks/9675.be4a175f92aa2f26.js +1 -0
  125. package/dist/web/_next/static/chunks/9860.05fa134ae44699e0.js +1 -0
  126. package/dist/web/_next/static/chunks/9b87412a.d2cfae4121762dec.js +122 -0
  127. package/dist/web/_next/static/chunks/a012e9f0.7dbb2fe05ec0b816.js +82 -0
  128. package/dist/web/_next/static/chunks/a096f98a-5a93977f5f5de413.js +1 -0
  129. package/dist/web/_next/static/chunks/ab1da478.d051e56375dab6d8.js +1 -0
  130. package/dist/web/_next/static/chunks/adcd17ec-9a2791632136b67b.js +18 -0
  131. package/dist/web/_next/static/chunks/app/_global-error/page-5bd6526483106080.js +1 -0
  132. package/dist/web/_next/static/chunks/app/_not-found/page-877523282abd5a7c.js +1 -0
  133. package/dist/web/_next/static/chunks/app/admin/admins/page-0f20b93a1fbe900c.js +1 -0
  134. package/dist/web/_next/static/chunks/app/admin/login/page-dbcfb21ebbd0bb00.js +1 -0
  135. package/dist/web/_next/static/chunks/app/admin/modes/page-8f292692166b56fc.js +1 -0
  136. package/dist/web/_next/static/chunks/app/admin/ota/page-c9fe76f24ac08288.js +1 -0
  137. package/dist/web/_next/static/chunks/app/admin/page-622381f5dac39ddb.js +1 -0
  138. package/dist/web/_next/static/chunks/app/admin/turn/page-8f6b835a319f3fe3.js +1 -0
  139. package/dist/web/_next/static/chunks/app/dev/question/page-5fd80ae293617365.js +1 -0
  140. package/dist/web/_next/static/chunks/app/layout-341400810c81f67e.js +1 -0
  141. package/dist/web/_next/static/chunks/app/login/page-31786ee656da76b1.js +1 -0
  142. package/dist/web/_next/static/chunks/app/page-1cf39061b48db156.js +22 -0
  143. package/dist/web/_next/static/chunks/app/workspace/browse/page-5bd6526483106080.js +1 -0
  144. package/dist/web/_next/static/chunks/app/workspace/editor/page-5bd6526483106080.js +1 -0
  145. package/dist/web/_next/static/chunks/app/workspace/files/page-5bd6526483106080.js +1 -0
  146. package/dist/web/_next/static/chunks/app/workspace/git/page-5bd6526483106080.js +1 -0
  147. package/dist/web/_next/static/chunks/app/workspace/layout-5e8f95fbc4ebaa6b.js +14 -0
  148. package/dist/web/_next/static/chunks/app/workspace/mobile/page-5bd6526483106080.js +1 -0
  149. package/dist/web/_next/static/chunks/app/workspace/page-5bd6526483106080.js +1 -0
  150. package/dist/web/_next/static/chunks/app/workspace/remote/page-5bd6526483106080.js +1 -0
  151. package/dist/web/_next/static/chunks/app/workspace/terminal/[sessionId]/page-5bd6526483106080.js +1 -0
  152. package/dist/web/_next/static/chunks/app/workspace/workspaces/page-5bd6526483106080.js +1 -0
  153. package/dist/web/_next/static/chunks/bbfbfb6c.069db3c4cc981ed3.js +1 -0
  154. package/dist/web/_next/static/chunks/c7879cf7-0d16fce1674078f9.js +1 -0
  155. package/dist/web/_next/static/chunks/c7ea4e13.6153499d4c2fb1f2.js +1 -0
  156. package/dist/web/_next/static/chunks/cdcce140.7a440644c3dd52b8.js +1 -0
  157. package/dist/web/_next/static/chunks/da9a53d6.df25e193f1f5bcae.js +62 -0
  158. package/dist/web/_next/static/chunks/framework-42053c69543a55f9.js +1 -0
  159. package/dist/web/_next/static/chunks/main-255c95c36766ce86.js +5 -0
  160. package/dist/web/_next/static/chunks/main-app-1831d4f902c3fcb9.js +1 -0
  161. package/dist/web/_next/static/chunks/next/dist/client/components/builtin/app-error-5bd6526483106080.js +1 -0
  162. package/dist/web/_next/static/chunks/next/dist/client/components/builtin/forbidden-5bd6526483106080.js +1 -0
  163. package/dist/web/_next/static/chunks/next/dist/client/components/builtin/global-error-76800531999827bd.js +1 -0
  164. package/dist/web/_next/static/chunks/next/dist/client/components/builtin/not-found-5bd6526483106080.js +1 -0
  165. package/dist/web/_next/static/chunks/next/dist/client/components/builtin/unauthorized-5bd6526483106080.js +1 -0
  166. package/dist/web/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  167. package/dist/web/_next/static/chunks/webpack-c971919003362f96.js +1 -0
  168. package/dist/web/_next/static/css/56adcd4d72bf2d84.css +1 -0
  169. package/dist/web/_next/static/css/5c40e58137a11306.css +1 -0
  170. package/dist/web/_next/static/css/b496025c9cd768cc.css +1 -0
  171. package/dist/web/_next/static/media/013b72fa676f92e0-s.woff2 +0 -0
  172. package/dist/web/_next/static/media/22a5144ee8d83bca-s.p.woff2 +0 -0
  173. package/dist/web/_next/static/media/2b5b02fc7e511755-s.woff2 +0 -0
  174. package/dist/web/_next/static/media/65f03d54ccadf4a8-s.woff2 +0 -0
  175. package/dist/web/_next/static/media/7d4881bb7e1bf84d-s.p.woff2 +0 -0
  176. package/dist/web/_next/static/media/9766a7e9e2e0ad5a-s.woff2 +0 -0
  177. package/dist/web/_next/static/media/aa016aab0e6d1295-s.woff2 +0 -0
  178. package/dist/web/_next/static/media/b66cf8e69499582a-s.woff2 +0 -0
  179. package/dist/web/_next/static/media/b9408752a0c24fb9-s.woff2 +0 -0
  180. package/dist/web/_next/static/media/e038a29029a234f2-s.woff2 +0 -0
  181. package/dist/web/_next/static/media/f639721981034f88-s.woff2 +0 -0
  182. package/dist/web/_not-found/__next._full.txt +23 -0
  183. package/dist/web/_not-found/__next._head.txt +6 -0
  184. package/dist/web/_not-found/__next._index.txt +10 -0
  185. package/dist/web/_not-found/__next._not-found.__PAGE__.txt +5 -0
  186. package/dist/web/_not-found/__next._not-found.txt +5 -0
  187. package/dist/web/_not-found/__next._tree.txt +5 -0
  188. package/dist/web/_not-found.html +1 -0
  189. package/dist/web/_not-found.txt +23 -0
  190. package/dist/web/admin/__next._full.txt +27 -0
  191. package/dist/web/admin/__next._head.txt +6 -0
  192. package/dist/web/admin/__next._index.txt +10 -0
  193. package/dist/web/admin/__next._tree.txt +5 -0
  194. package/dist/web/admin/__next.admin.__PAGE__.txt +9 -0
  195. package/dist/web/admin/__next.admin.txt +5 -0
  196. package/dist/web/admin/admins/__next._full.txt +27 -0
  197. package/dist/web/admin/admins/__next._head.txt +6 -0
  198. package/dist/web/admin/admins/__next._index.txt +10 -0
  199. package/dist/web/admin/admins/__next._tree.txt +5 -0
  200. package/dist/web/admin/admins/__next.admin.admins.__PAGE__.txt +9 -0
  201. package/dist/web/admin/admins/__next.admin.admins.txt +5 -0
  202. package/dist/web/admin/admins/__next.admin.txt +5 -0
  203. package/dist/web/admin/admins.html +1 -0
  204. package/dist/web/admin/admins.txt +27 -0
  205. package/dist/web/admin/login/__next._full.txt +27 -0
  206. package/dist/web/admin/login/__next._head.txt +6 -0
  207. package/dist/web/admin/login/__next._index.txt +10 -0
  208. package/dist/web/admin/login/__next._tree.txt +5 -0
  209. package/dist/web/admin/login/__next.admin.login.__PAGE__.txt +9 -0
  210. package/dist/web/admin/login/__next.admin.login.txt +5 -0
  211. package/dist/web/admin/login/__next.admin.txt +5 -0
  212. package/dist/web/admin/login.html +1 -0
  213. package/dist/web/admin/login.txt +27 -0
  214. package/dist/web/admin/modes/__next._full.txt +27 -0
  215. package/dist/web/admin/modes/__next._head.txt +6 -0
  216. package/dist/web/admin/modes/__next._index.txt +10 -0
  217. package/dist/web/admin/modes/__next._tree.txt +5 -0
  218. package/dist/web/admin/modes/__next.admin.modes.__PAGE__.txt +9 -0
  219. package/dist/web/admin/modes/__next.admin.modes.txt +5 -0
  220. package/dist/web/admin/modes/__next.admin.txt +5 -0
  221. package/dist/web/admin/modes.html +1 -0
  222. package/dist/web/admin/modes.txt +27 -0
  223. package/dist/web/admin/ota/__next._full.txt +27 -0
  224. package/dist/web/admin/ota/__next._head.txt +6 -0
  225. package/dist/web/admin/ota/__next._index.txt +10 -0
  226. package/dist/web/admin/ota/__next._tree.txt +5 -0
  227. package/dist/web/admin/ota/__next.admin.ota.__PAGE__.txt +9 -0
  228. package/dist/web/admin/ota/__next.admin.ota.txt +5 -0
  229. package/dist/web/admin/ota/__next.admin.txt +5 -0
  230. package/dist/web/admin/ota.html +1 -0
  231. package/dist/web/admin/ota.txt +27 -0
  232. package/dist/web/admin/turn/__next._full.txt +27 -0
  233. package/dist/web/admin/turn/__next._head.txt +6 -0
  234. package/dist/web/admin/turn/__next._index.txt +10 -0
  235. package/dist/web/admin/turn/__next._tree.txt +5 -0
  236. package/dist/web/admin/turn/__next.admin.turn.__PAGE__.txt +9 -0
  237. package/dist/web/admin/turn/__next.admin.turn.txt +5 -0
  238. package/dist/web/admin/turn/__next.admin.txt +5 -0
  239. package/dist/web/admin/turn.html +1 -0
  240. package/dist/web/admin/turn.txt +27 -0
  241. package/dist/web/admin.html +1 -0
  242. package/dist/web/admin.txt +27 -0
  243. package/dist/web/agent-icons/aider.svg +1 -0
  244. package/dist/web/agent-icons/amp.png +0 -0
  245. package/dist/web/agent-icons/ante.png +0 -0
  246. package/dist/web/agent-icons/antigravity.png +0 -0
  247. package/dist/web/agent-icons/auggie.png +0 -0
  248. package/dist/web/agent-icons/autohand.png +0 -0
  249. package/dist/web/agent-icons/claude-ui.png +0 -0
  250. package/dist/web/agent-icons/claude.svg +1 -0
  251. package/dist/web/agent-icons/cline.png +0 -0
  252. package/dist/web/agent-icons/codebuff.png +0 -0
  253. package/dist/web/agent-icons/codex-ui.png +0 -0
  254. package/dist/web/agent-icons/codex.svg +1 -0
  255. package/dist/web/agent-icons/command-code.png +0 -0
  256. package/dist/web/agent-icons/continue.png +0 -0
  257. package/dist/web/agent-icons/copilot.png +0 -0
  258. package/dist/web/agent-icons/crush.png +0 -0
  259. package/dist/web/agent-icons/cursor.png +0 -0
  260. package/dist/web/agent-icons/devin.png +0 -0
  261. package/dist/web/agent-icons/droid.png +0 -0
  262. package/dist/web/agent-icons/gemini.png +0 -0
  263. package/dist/web/agent-icons/goose.png +0 -0
  264. package/dist/web/agent-icons/grok.png +0 -0
  265. package/dist/web/agent-icons/hermes.png +0 -0
  266. package/dist/web/agent-icons/kilo.png +0 -0
  267. package/dist/web/agent-icons/kimi.png +0 -0
  268. package/dist/web/agent-icons/kiro.png +0 -0
  269. package/dist/web/agent-icons/mimo-code.png +0 -0
  270. package/dist/web/agent-icons/mistral-vibe.png +0 -0
  271. package/dist/web/agent-icons/omp.svg +1 -0
  272. package/dist/web/agent-icons/openclaude.png +0 -0
  273. package/dist/web/agent-icons/openclaw.png +0 -0
  274. package/dist/web/agent-icons/opencode.png +0 -0
  275. package/dist/web/agent-icons/pi.svg +1 -0
  276. package/dist/web/agent-icons/prime-agent.png +0 -0
  277. package/dist/web/agent-icons/qwen-code.png +0 -0
  278. package/dist/web/agent-icons/rovo.png +0 -0
  279. package/dist/web/agent-icons/trae.png +0 -0
  280. package/dist/web/agents/claude.svg +1 -0
  281. package/dist/web/agents/codex.svg +1 -0
  282. package/dist/web/agents/gemini.svg +1 -0
  283. package/dist/web/agents/opencode.svg +1 -0
  284. package/dist/web/backgrounds/bg10.jpg +0 -0
  285. package/dist/web/backgrounds/bg11.jpg +0 -0
  286. package/dist/web/backgrounds/bg12.jpg +0 -0
  287. package/dist/web/backgrounds/bg13.jpg +0 -0
  288. package/dist/web/backgrounds/bg2.jpg +0 -0
  289. package/dist/web/backgrounds/bg3.jpg +0 -0
  290. package/dist/web/backgrounds/bg4.jpg +0 -0
  291. package/dist/web/backgrounds/bg5.jpg +0 -0
  292. package/dist/web/backgrounds/bg6.jpg +0 -0
  293. package/dist/web/backgrounds/bg7.jpg +0 -0
  294. package/dist/web/backgrounds/bg8.jpg +0 -0
  295. package/dist/web/backgrounds/bg9.jpg +0 -0
  296. package/dist/web/dev/question/__next._full.txt +27 -0
  297. package/dist/web/dev/question/__next._head.txt +6 -0
  298. package/dist/web/dev/question/__next._index.txt +10 -0
  299. package/dist/web/dev/question/__next._tree.txt +5 -0
  300. package/dist/web/dev/question/__next.dev.question.__PAGE__.txt +9 -0
  301. package/dist/web/dev/question/__next.dev.question.txt +5 -0
  302. package/dist/web/dev/question/__next.dev.txt +5 -0
  303. package/dist/web/dev/question.html +1 -0
  304. package/dist/web/dev/question.txt +27 -0
  305. package/dist/web/favicon.ico +0 -0
  306. package/dist/web/file.svg +1 -0
  307. package/dist/web/globe.svg +1 -0
  308. package/dist/web/icon-192.png +0 -0
  309. package/dist/web/icon-192.svg +3 -0
  310. package/dist/web/icon-512.png +0 -0
  311. package/dist/web/icon-512.svg +3 -0
  312. package/dist/web/icons/file-types/astro.svg +1 -0
  313. package/dist/web/icons/file-types/audio.svg +1 -0
  314. package/dist/web/icons/file-types/avif.svg +1 -0
  315. package/dist/web/icons/file-types/bat.svg +1 -0
  316. package/dist/web/icons/file-types/c.svg +1 -0
  317. package/dist/web/icons/file-types/cheader.svg +1 -0
  318. package/dist/web/icons/file-types/clojure.svg +1 -0
  319. package/dist/web/icons/file-types/clojurescript.svg +1 -0
  320. package/dist/web/icons/file-types/cloudfoundry.svg +1 -0
  321. package/dist/web/icons/file-types/cpp.svg +1 -0
  322. package/dist/web/icons/file-types/cppheader.svg +1 -0
  323. package/dist/web/icons/file-types/csharp.svg +1 -0
  324. package/dist/web/icons/file-types/css.svg +1 -0
  325. package/dist/web/icons/file-types/dartlang.svg +1 -0
  326. package/dist/web/icons/file-types/datadog.svg +1 -0
  327. package/dist/web/icons/file-types/default.svg +1 -0
  328. package/dist/web/icons/file-types/diff.svg +1 -0
  329. package/dist/web/icons/file-types/django.svg +1 -0
  330. package/dist/web/icons/file-types/docker.svg +1 -0
  331. package/dist/web/icons/file-types/dotenv.svg +1 -0
  332. package/dist/web/icons/file-types/editorconfig.svg +1 -0
  333. package/dist/web/icons/file-types/elixir.svg +1 -0
  334. package/dist/web/icons/file-types/erlang.svg +1 -0
  335. package/dist/web/icons/file-types/esphome.svg +1 -0
  336. package/dist/web/icons/file-types/font.svg +1 -0
  337. package/dist/web/icons/file-types/git.svg +1 -0
  338. package/dist/web/icons/file-types/gnu.svg +1 -0
  339. package/dist/web/icons/file-types/go.svg +1 -0
  340. package/dist/web/icons/file-types/graphql.svg +1 -0
  341. package/dist/web/icons/file-types/haskell.svg +1 -0
  342. package/dist/web/icons/file-types/html.svg +1 -0
  343. package/dist/web/icons/file-types/image.svg +1 -0
  344. package/dist/web/icons/file-types/ini.svg +1 -0
  345. package/dist/web/icons/file-types/janet.svg +1 -0
  346. package/dist/web/icons/file-types/jar.svg +1 -0
  347. package/dist/web/icons/file-types/java.svg +1 -0
  348. package/dist/web/icons/file-types/js.svg +1 -0
  349. package/dist/web/icons/file-types/json.svg +1 -0
  350. package/dist/web/icons/file-types/json5.svg +1 -0
  351. package/dist/web/icons/file-types/kotlin.svg +1 -0
  352. package/dist/web/icons/file-types/less.svg +1 -0
  353. package/dist/web/icons/file-types/license.svg +1 -0
  354. package/dist/web/icons/file-types/locale.svg +1 -0
  355. package/dist/web/icons/file-types/log.svg +1 -0
  356. package/dist/web/icons/file-types/lua.svg +1 -0
  357. package/dist/web/icons/file-types/markdown.svg +1 -0
  358. package/dist/web/icons/file-types/mdx.svg +1 -0
  359. package/dist/web/icons/file-types/npm.svg +1 -0
  360. package/dist/web/icons/file-types/objectivec.svg +1 -0
  361. package/dist/web/icons/file-types/ocaml.svg +1 -0
  362. package/dist/web/icons/file-types/parcel.svg +1 -0
  363. package/dist/web/icons/file-types/pddl_happenings.svg +1 -0
  364. package/dist/web/icons/file-types/pdf.svg +1 -0
  365. package/dist/web/icons/file-types/php.svg +1 -0
  366. package/dist/web/icons/file-types/powershell.svg +1 -0
  367. package/dist/web/icons/file-types/protobuf.svg +1 -0
  368. package/dist/web/icons/file-types/python.svg +1 -0
  369. package/dist/web/icons/file-types/r.svg +1 -0
  370. package/dist/web/icons/file-types/reactjs.svg +1 -0
  371. package/dist/web/icons/file-types/reactts.svg +1 -0
  372. package/dist/web/icons/file-types/ruby.svg +1 -0
  373. package/dist/web/icons/file-types/rust.svg +1 -0
  374. package/dist/web/icons/file-types/sass.svg +1 -0
  375. package/dist/web/icons/file-types/scala.svg +1 -0
  376. package/dist/web/icons/file-types/scss.svg +1 -0
  377. package/dist/web/icons/file-types/shell.svg +1 -0
  378. package/dist/web/icons/file-types/sql.svg +1 -0
  379. package/dist/web/icons/file-types/sqlite.svg +1 -0
  380. package/dist/web/icons/file-types/stylus.svg +1 -0
  381. package/dist/web/icons/file-types/svelte.svg +1 -0
  382. package/dist/web/icons/file-types/svg.svg +1 -0
  383. package/dist/web/icons/file-types/swift.svg +1 -0
  384. package/dist/web/icons/file-types/text.svg +1 -0
  385. package/dist/web/icons/file-types/toml.svg +1 -0
  386. package/dist/web/icons/file-types/typescript.svg +1 -0
  387. package/dist/web/icons/file-types/video.svg +1 -0
  388. package/dist/web/icons/file-types/vue.svg +1 -0
  389. package/dist/web/icons/file-types/xml.svg +1 -0
  390. package/dist/web/icons/file-types/yaml.svg +1 -0
  391. package/dist/web/icons/file-types/zip.svg +1 -0
  392. package/dist/web/icons/folder-types/android-open.svg +1 -0
  393. package/dist/web/icons/folder-types/android.svg +1 -0
  394. package/dist/web/icons/folder-types/api-open.svg +1 -0
  395. package/dist/web/icons/folder-types/api.svg +1 -0
  396. package/dist/web/icons/folder-types/app-open.svg +1 -0
  397. package/dist/web/icons/folder-types/app.svg +1 -0
  398. package/dist/web/icons/folder-types/asset-open.svg +1 -0
  399. package/dist/web/icons/folder-types/asset.svg +1 -0
  400. package/dist/web/icons/folder-types/azurepipelines-open.svg +1 -0
  401. package/dist/web/icons/folder-types/azurepipelines.svg +1 -0
  402. package/dist/web/icons/folder-types/blueprint-open.svg +1 -0
  403. package/dist/web/icons/folder-types/blueprint.svg +1 -0
  404. package/dist/web/icons/folder-types/bower-open.svg +1 -0
  405. package/dist/web/icons/folder-types/bower.svg +1 -0
  406. package/dist/web/icons/folder-types/component-open.svg +1 -0
  407. package/dist/web/icons/folder-types/component.svg +1 -0
  408. package/dist/web/icons/folder-types/config-open.svg +1 -0
  409. package/dist/web/icons/folder-types/config.svg +1 -0
  410. package/dist/web/icons/folder-types/controller-open.svg +1 -0
  411. package/dist/web/icons/folder-types/controller.svg +1 -0
  412. package/dist/web/icons/folder-types/css-open.svg +1 -0
  413. package/dist/web/icons/folder-types/css.svg +1 -0
  414. package/dist/web/icons/folder-types/db-open.svg +1 -0
  415. package/dist/web/icons/folder-types/db.svg +1 -0
  416. package/dist/web/icons/folder-types/default-open.svg +1 -0
  417. package/dist/web/icons/folder-types/default.svg +1 -0
  418. package/dist/web/icons/folder-types/dist-open.svg +1 -0
  419. package/dist/web/icons/folder-types/dist.svg +1 -0
  420. package/dist/web/icons/folder-types/docs-open.svg +1 -0
  421. package/dist/web/icons/folder-types/docs.svg +1 -0
  422. package/dist/web/icons/folder-types/fonts-open.svg +1 -0
  423. package/dist/web/icons/folder-types/fonts.svg +1 -0
  424. package/dist/web/icons/folder-types/git-open.svg +1 -0
  425. package/dist/web/icons/folder-types/git.svg +1 -0
  426. package/dist/web/icons/folder-types/github-open.svg +1 -0
  427. package/dist/web/icons/folder-types/github.svg +1 -0
  428. package/dist/web/icons/folder-types/helper-open.svg +1 -0
  429. package/dist/web/icons/folder-types/helper.svg +1 -0
  430. package/dist/web/icons/folder-types/hook-open.svg +1 -0
  431. package/dist/web/icons/folder-types/hook.svg +1 -0
  432. package/dist/web/icons/folder-types/husky-open.svg +1 -0
  433. package/dist/web/icons/folder-types/husky.svg +1 -0
  434. package/dist/web/icons/folder-types/idea-open.svg +1 -0
  435. package/dist/web/icons/folder-types/idea.svg +1 -0
  436. package/dist/web/icons/folder-types/images-open.svg +1 -0
  437. package/dist/web/icons/folder-types/images.svg +1 -0
  438. package/dist/web/icons/folder-types/interfaces-open.svg +1 -0
  439. package/dist/web/icons/folder-types/interfaces.svg +1 -0
  440. package/dist/web/icons/folder-types/ios-open.svg +1 -0
  441. package/dist/web/icons/folder-types/ios.svg +1 -0
  442. package/dist/web/icons/folder-types/library-open.svg +1 -0
  443. package/dist/web/icons/folder-types/library.svg +1 -0
  444. package/dist/web/icons/folder-types/locale-open.svg +1 -0
  445. package/dist/web/icons/folder-types/locale.svg +1 -0
  446. package/dist/web/icons/folder-types/middleware-open.svg +1 -0
  447. package/dist/web/icons/folder-types/middleware.svg +1 -0
  448. package/dist/web/icons/folder-types/model-open.svg +1 -0
  449. package/dist/web/icons/folder-types/model.svg +1 -0
  450. package/dist/web/icons/folder-types/node-open.svg +1 -0
  451. package/dist/web/icons/folder-types/node.svg +1 -0
  452. package/dist/web/icons/folder-types/public-open.svg +1 -0
  453. package/dist/web/icons/folder-types/public.svg +1 -0
  454. package/dist/web/icons/folder-types/redux-open.svg +1 -0
  455. package/dist/web/icons/folder-types/redux.svg +1 -0
  456. package/dist/web/icons/folder-types/route-open.svg +1 -0
  457. package/dist/web/icons/folder-types/route.svg +1 -0
  458. package/dist/web/icons/folder-types/script-open.svg +1 -0
  459. package/dist/web/icons/folder-types/script.svg +1 -0
  460. package/dist/web/icons/folder-types/seedkit-open.svg +1 -0
  461. package/dist/web/icons/folder-types/seedkit.svg +1 -0
  462. package/dist/web/icons/folder-types/server-open.svg +1 -0
  463. package/dist/web/icons/folder-types/server.svg +1 -0
  464. package/dist/web/icons/folder-types/services-open.svg +1 -0
  465. package/dist/web/icons/folder-types/services.svg +1 -0
  466. package/dist/web/icons/folder-types/src-open.svg +1 -0
  467. package/dist/web/icons/folder-types/src.svg +1 -0
  468. package/dist/web/icons/folder-types/story-open.svg +1 -0
  469. package/dist/web/icons/folder-types/story.svg +1 -0
  470. package/dist/web/icons/folder-types/style-open.svg +1 -0
  471. package/dist/web/icons/folder-types/style.svg +1 -0
  472. package/dist/web/icons/folder-types/template-open.svg +1 -0
  473. package/dist/web/icons/folder-types/template.svg +1 -0
  474. package/dist/web/icons/folder-types/test-open.svg +1 -0
  475. package/dist/web/icons/folder-types/test.svg +1 -0
  476. package/dist/web/icons/folder-types/theme-open.svg +1 -0
  477. package/dist/web/icons/folder-types/theme.svg +1 -0
  478. package/dist/web/icons/folder-types/tools-open.svg +1 -0
  479. package/dist/web/icons/folder-types/tools.svg +1 -0
  480. package/dist/web/icons/folder-types/typescript-open.svg +1 -0
  481. package/dist/web/icons/folder-types/typescript.svg +1 -0
  482. package/dist/web/icons/folder-types/typings-open.svg +1 -0
  483. package/dist/web/icons/folder-types/typings.svg +1 -0
  484. package/dist/web/icons/folder-types/view-open.svg +1 -0
  485. package/dist/web/icons/folder-types/view.svg +1 -0
  486. package/dist/web/icons/folder-types/vscode-open.svg +1 -0
  487. package/dist/web/icons/folder-types/vscode.svg +1 -0
  488. package/dist/web/index.html +1 -0
  489. package/dist/web/index.txt +25 -0
  490. package/dist/web/login/__next._full.txt +27 -0
  491. package/dist/web/login/__next._head.txt +6 -0
  492. package/dist/web/login/__next._index.txt +10 -0
  493. package/dist/web/login/__next._tree.txt +5 -0
  494. package/dist/web/login/__next.login.__PAGE__.txt +9 -0
  495. package/dist/web/login/__next.login.txt +5 -0
  496. package/dist/web/login.html +1 -0
  497. package/dist/web/login.txt +27 -0
  498. package/dist/web/manifest.json +53 -0
  499. package/dist/web/maskable-192.png +0 -0
  500. package/dist/web/maskable-512.png +0 -0
  501. package/dist/web/next.svg +1 -0
  502. package/dist/web/proxy.html +179 -0
  503. package/dist/web/screenshot-desktop.png +0 -0
  504. package/dist/web/screenshot-mobile.png +0 -0
  505. package/dist/web/screenshots/desktop-ide.webp +0 -0
  506. package/dist/web/screenshots/mobile-1.webp +0 -0
  507. package/dist/web/screenshots/mobile-2.webp +0 -0
  508. package/dist/web/screenshots/mobile-3.webp +0 -0
  509. package/dist/web/sw-site.js +283 -0
  510. package/dist/web/sw.js +88 -0
  511. package/dist/web/swBridgeClaim.js +57 -0
  512. package/dist/web/vercel.svg +1 -0
  513. package/dist/web/window.svg +1 -0
  514. package/dist/web/workspace/__next._full.txt +25 -0
  515. package/dist/web/workspace/__next._head.txt +6 -0
  516. package/dist/web/workspace/__next._index.txt +10 -0
  517. package/dist/web/workspace/__next._tree.txt +6 -0
  518. package/dist/web/workspace/__next.workspace.__PAGE__.txt +5 -0
  519. package/dist/web/workspace/__next.workspace.txt +8 -0
  520. package/dist/web/workspace/browse/__next._full.txt +27 -0
  521. package/dist/web/workspace/browse/__next._head.txt +6 -0
  522. package/dist/web/workspace/browse/__next._index.txt +10 -0
  523. package/dist/web/workspace/browse/__next._tree.txt +6 -0
  524. package/dist/web/workspace/browse/__next.workspace.browse.__PAGE__.txt +5 -0
  525. package/dist/web/workspace/browse/__next.workspace.browse.txt +5 -0
  526. package/dist/web/workspace/browse/__next.workspace.txt +8 -0
  527. package/dist/web/workspace/browse.html +1 -0
  528. package/dist/web/workspace/browse.txt +27 -0
  529. package/dist/web/workspace/editor/__next._full.txt +27 -0
  530. package/dist/web/workspace/editor/__next._head.txt +6 -0
  531. package/dist/web/workspace/editor/__next._index.txt +10 -0
  532. package/dist/web/workspace/editor/__next._tree.txt +6 -0
  533. package/dist/web/workspace/editor/__next.workspace.editor.__PAGE__.txt +5 -0
  534. package/dist/web/workspace/editor/__next.workspace.editor.txt +5 -0
  535. package/dist/web/workspace/editor/__next.workspace.txt +8 -0
  536. package/dist/web/workspace/editor.html +1 -0
  537. package/dist/web/workspace/editor.txt +27 -0
  538. package/dist/web/workspace/files/__next._full.txt +27 -0
  539. package/dist/web/workspace/files/__next._head.txt +6 -0
  540. package/dist/web/workspace/files/__next._index.txt +10 -0
  541. package/dist/web/workspace/files/__next._tree.txt +6 -0
  542. package/dist/web/workspace/files/__next.workspace.files.__PAGE__.txt +5 -0
  543. package/dist/web/workspace/files/__next.workspace.files.txt +5 -0
  544. package/dist/web/workspace/files/__next.workspace.txt +8 -0
  545. package/dist/web/workspace/files.html +1 -0
  546. package/dist/web/workspace/files.txt +27 -0
  547. package/dist/web/workspace/git/__next._full.txt +27 -0
  548. package/dist/web/workspace/git/__next._head.txt +6 -0
  549. package/dist/web/workspace/git/__next._index.txt +10 -0
  550. package/dist/web/workspace/git/__next._tree.txt +6 -0
  551. package/dist/web/workspace/git/__next.workspace.git.__PAGE__.txt +5 -0
  552. package/dist/web/workspace/git/__next.workspace.git.txt +5 -0
  553. package/dist/web/workspace/git/__next.workspace.txt +8 -0
  554. package/dist/web/workspace/git.html +1 -0
  555. package/dist/web/workspace/git.txt +27 -0
  556. package/dist/web/workspace/mobile/__next._full.txt +27 -0
  557. package/dist/web/workspace/mobile/__next._head.txt +6 -0
  558. package/dist/web/workspace/mobile/__next._index.txt +10 -0
  559. package/dist/web/workspace/mobile/__next._tree.txt +6 -0
  560. package/dist/web/workspace/mobile/__next.workspace.mobile.__PAGE__.txt +5 -0
  561. package/dist/web/workspace/mobile/__next.workspace.mobile.txt +5 -0
  562. package/dist/web/workspace/mobile/__next.workspace.txt +8 -0
  563. package/dist/web/workspace/mobile.html +1 -0
  564. package/dist/web/workspace/mobile.txt +27 -0
  565. package/dist/web/workspace/remote/__next._full.txt +27 -0
  566. package/dist/web/workspace/remote/__next._head.txt +6 -0
  567. package/dist/web/workspace/remote/__next._index.txt +10 -0
  568. package/dist/web/workspace/remote/__next._tree.txt +6 -0
  569. package/dist/web/workspace/remote/__next.workspace.remote.__PAGE__.txt +5 -0
  570. package/dist/web/workspace/remote/__next.workspace.remote.txt +5 -0
  571. package/dist/web/workspace/remote/__next.workspace.txt +8 -0
  572. package/dist/web/workspace/remote.html +1 -0
  573. package/dist/web/workspace/remote.txt +27 -0
  574. package/dist/web/workspace/terminal/default/__next._full.txt +27 -0
  575. package/dist/web/workspace/terminal/default/__next._head.txt +6 -0
  576. package/dist/web/workspace/terminal/default/__next._index.txt +10 -0
  577. package/dist/web/workspace/terminal/default/__next._tree.txt +6 -0
  578. package/dist/web/workspace/terminal/default/__next.workspace.terminal.$d$sessionId.__PAGE__.txt +5 -0
  579. package/dist/web/workspace/terminal/default/__next.workspace.terminal.$d$sessionId.txt +5 -0
  580. package/dist/web/workspace/terminal/default/__next.workspace.terminal.txt +5 -0
  581. package/dist/web/workspace/terminal/default/__next.workspace.txt +8 -0
  582. package/dist/web/workspace/terminal/default.html +1 -0
  583. package/dist/web/workspace/terminal/default.txt +27 -0
  584. package/dist/web/workspace/workspaces/__next._full.txt +27 -0
  585. package/dist/web/workspace/workspaces/__next._head.txt +6 -0
  586. package/dist/web/workspace/workspaces/__next._index.txt +10 -0
  587. package/dist/web/workspace/workspaces/__next._tree.txt +6 -0
  588. package/dist/web/workspace/workspaces/__next.workspace.txt +8 -0
  589. package/dist/web/workspace/workspaces/__next.workspace.workspaces.__PAGE__.txt +5 -0
  590. package/dist/web/workspace/workspaces/__next.workspace.workspaces.txt +5 -0
  591. package/dist/web/workspace/workspaces.html +1 -0
  592. package/dist/web/workspace/workspaces.txt +27 -0
  593. package/dist/web/workspace.html +1 -0
  594. package/dist/web/workspace.txt +25 -0
  595. package/package.json +4 -4
  596. package/dist/ui/assets/index-CLABbREo.css +0 -1
  597. package/dist/ui/assets/index-MX08IV5-.js +0 -58
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[635],{2074:(e,r,t)=>{t.d(r,{v:()=>s});var a=t(1521);let _=e=>{let r,t=new Set,a=(e,a)=>{let _="function"==typeof e?e(r):e;if(!Object.is(_,r)){let e=r;r=(null!=a?a:"object"!=typeof _||null===_)?_:Object.assign({},r,_),t.forEach(t=>t(r,e))}},_=()=>r,n={setState:a,getState:_,getInitialState:()=>s,subscribe:e=>(t.add(e),()=>t.delete(e))},s=r=e(a,_,n);return n},n=e=>{let r=e?_(e):_,t=e=>(function(e,r=e=>e){let t=a.useSyncExternalStore(e.subscribe,a.useCallback(()=>r(e.getState()),[e,r]),a.useCallback(()=>r(e.getInitialState()),[e,r]));return a.useDebugValue(t),t})(r,e);return Object.assign(t,r),t},s=e=>e?n(e):n},23346:(e,r,t)=>{let a;t.d(r,{Ay:()=>aY});var _,n,s=t(97034);let c={};if(void 0===globalThis.crypto||"function"!=typeof globalThis.crypto.getRandomValues)throw Error("globalThis.crypto.getRandomValues is not available. The ESM build of libsodium requires a secure random source (available in all browsers and Node.js 19+).");let p="function"==typeof(n=s.A)?n:null!=n&&"function"==typeof n.default?n.default:null,o=null!=(_=s.A)&&void 0!==_.ready?_:null!=_&&null!=_.default&&void 0!==_.default.ready?_.default:null,h=(null!=p?p({getRandomValue:function(){var e=new Uint32Array(1);return globalThis.crypto.getRandomValues(e),e[0]>>>0}}):null!=o?o.ready.then(function(){return o}):Promise.reject(Error("Unsupported libsodium ESM export shape"))).then(function(e){c.libsodium=a=e,function(){if(0>a._sodium_init())throw Error("libsodium was not correctly initialized.");for(var e,r=["crypto_aead_aegis128l_decrypt","crypto_aead_aegis128l_decrypt_detached","crypto_aead_aegis128l_encrypt","crypto_aead_aegis128l_encrypt_detached","crypto_aead_aegis128l_keygen","crypto_aead_aegis256_decrypt","crypto_aead_aegis256_decrypt_detached","crypto_aead_aegis256_encrypt","crypto_aead_aegis256_encrypt_detached","crypto_aead_aegis256_keygen","crypto_aead_chacha20poly1305_decrypt","crypto_aead_chacha20poly1305_decrypt_detached","crypto_aead_chacha20poly1305_encrypt","crypto_aead_chacha20poly1305_encrypt_detached","crypto_aead_chacha20poly1305_ietf_decrypt","crypto_aead_chacha20poly1305_ietf_decrypt_detached","crypto_aead_chacha20poly1305_ietf_encrypt","crypto_aead_chacha20poly1305_ietf_encrypt_detached","crypto_aead_chacha20poly1305_ietf_keygen","crypto_aead_chacha20poly1305_keygen","crypto_aead_xchacha20poly1305_ietf_decrypt","crypto_aead_xchacha20poly1305_ietf_decrypt_detached","crypto_aead_xchacha20poly1305_ietf_encrypt","crypto_aead_xchacha20poly1305_ietf_encrypt_detached","crypto_aead_xchacha20poly1305_ietf_keygen","crypto_auth","crypto_auth_hmacsha256","crypto_auth_hmacsha256_final","crypto_auth_hmacsha256_init","crypto_auth_hmacsha256_keygen","crypto_auth_hmacsha256_update","crypto_auth_hmacsha256_verify","crypto_auth_hmacsha512","crypto_auth_hmacsha512256","crypto_auth_hmacsha512256_final","crypto_auth_hmacsha512256_init","crypto_auth_hmacsha512256_keygen","crypto_auth_hmacsha512256_update","crypto_auth_hmacsha512256_verify","crypto_auth_hmacsha512_final","crypto_auth_hmacsha512_init","crypto_auth_hmacsha512_keygen","crypto_auth_hmacsha512_update","crypto_auth_hmacsha512_verify","crypto_auth_keygen","crypto_auth_verify","crypto_box_beforenm","crypto_box_curve25519xchacha20poly1305_beforenm","crypto_box_curve25519xchacha20poly1305_detached","crypto_box_curve25519xchacha20poly1305_detached_afternm","crypto_box_curve25519xchacha20poly1305_easy","crypto_box_curve25519xchacha20poly1305_easy_afternm","crypto_box_curve25519xchacha20poly1305_keypair","crypto_box_curve25519xchacha20poly1305_open_detached","crypto_box_curve25519xchacha20poly1305_open_detached_afternm","crypto_box_curve25519xchacha20poly1305_open_easy","crypto_box_curve25519xchacha20poly1305_open_easy_afternm","crypto_box_curve25519xchacha20poly1305_seal","crypto_box_curve25519xchacha20poly1305_seal_open","crypto_box_curve25519xchacha20poly1305_seed_keypair","crypto_box_detached","crypto_box_easy","crypto_box_easy_afternm","crypto_box_keypair","crypto_box_open_detached","crypto_box_open_easy","crypto_box_open_easy_afternm","crypto_box_seal","crypto_box_seal_open","crypto_box_seed_keypair","crypto_core_ed25519_add","crypto_core_ed25519_from_hash","crypto_core_ed25519_from_uniform","crypto_core_ed25519_is_valid_point","crypto_core_ed25519_random","crypto_core_ed25519_scalar_add","crypto_core_ed25519_scalar_complement","crypto_core_ed25519_scalar_invert","crypto_core_ed25519_scalar_mul","crypto_core_ed25519_scalar_negate","crypto_core_ed25519_scalar_random","crypto_core_ed25519_scalar_reduce","crypto_core_ed25519_scalar_sub","crypto_core_ed25519_sub","crypto_core_hchacha20","crypto_core_hsalsa20","crypto_core_ristretto255_add","crypto_core_ristretto255_from_hash","crypto_core_ristretto255_is_valid_point","crypto_core_ristretto255_random","crypto_core_ristretto255_scalar_add","crypto_core_ristretto255_scalar_complement","crypto_core_ristretto255_scalar_invert","crypto_core_ristretto255_scalar_mul","crypto_core_ristretto255_scalar_negate","crypto_core_ristretto255_scalar_random","crypto_core_ristretto255_scalar_reduce","crypto_core_ristretto255_scalar_sub","crypto_core_ristretto255_sub","crypto_generichash","crypto_generichash_blake2b_salt_personal","crypto_generichash_final","crypto_generichash_init","crypto_generichash_keygen","crypto_generichash_update","crypto_hash","crypto_hash_sha256","crypto_hash_sha256_final","crypto_hash_sha256_init","crypto_hash_sha256_update","crypto_hash_sha3256","crypto_hash_sha3256_final","crypto_hash_sha3256_init","crypto_hash_sha3256_update","crypto_hash_sha3512","crypto_hash_sha3512_final","crypto_hash_sha3512_init","crypto_hash_sha3512_update","crypto_hash_sha512","crypto_hash_sha512_final","crypto_hash_sha512_init","crypto_hash_sha512_update","crypto_ipcrypt_decrypt","crypto_ipcrypt_encrypt","crypto_ipcrypt_keygen","crypto_ipcrypt_nd_decrypt","crypto_ipcrypt_nd_encrypt","crypto_ipcrypt_nd_keygen","crypto_ipcrypt_ndx_decrypt","crypto_ipcrypt_ndx_encrypt","crypto_ipcrypt_ndx_keygen","crypto_ipcrypt_pfx_decrypt","crypto_ipcrypt_pfx_encrypt","crypto_ipcrypt_pfx_keygen","crypto_kdf_derive_from_key","crypto_kdf_keygen","crypto_kem_dec","crypto_kem_enc","crypto_kem_keypair","crypto_kem_mlkem768_dec","crypto_kem_mlkem768_enc","crypto_kem_mlkem768_enc_deterministic","crypto_kem_mlkem768_keypair","crypto_kem_mlkem768_seed_keypair","crypto_kem_primitive","crypto_kem_seed_keypair","crypto_kem_xwing_dec","crypto_kem_xwing_enc","crypto_kem_xwing_enc_deterministic","crypto_kem_xwing_keypair","crypto_kem_xwing_seed_keypair","crypto_kx_client_session_keys","crypto_kx_keypair","crypto_kx_seed_keypair","crypto_kx_server_session_keys","crypto_onetimeauth","crypto_onetimeauth_final","crypto_onetimeauth_init","crypto_onetimeauth_keygen","crypto_onetimeauth_update","crypto_onetimeauth_verify","crypto_pwhash","crypto_pwhash_scryptsalsa208sha256","crypto_pwhash_scryptsalsa208sha256_ll","crypto_pwhash_scryptsalsa208sha256_str","crypto_pwhash_scryptsalsa208sha256_str_verify","crypto_pwhash_str","crypto_pwhash_str_needs_rehash","crypto_pwhash_str_verify","crypto_scalarmult","crypto_scalarmult_base","crypto_scalarmult_ed25519","crypto_scalarmult_ed25519_base","crypto_scalarmult_ed25519_base_noclamp","crypto_scalarmult_ed25519_noclamp","crypto_scalarmult_ristretto255","crypto_scalarmult_ristretto255_base","crypto_secretbox_detached","crypto_secretbox_easy","crypto_secretbox_keygen","crypto_secretbox_open_detached","crypto_secretbox_open_easy","crypto_secretstream_xchacha20poly1305_init_pull","crypto_secretstream_xchacha20poly1305_init_push","crypto_secretstream_xchacha20poly1305_keygen","crypto_secretstream_xchacha20poly1305_pull","crypto_secretstream_xchacha20poly1305_push","crypto_secretstream_xchacha20poly1305_rekey","crypto_shorthash","crypto_shorthash_keygen","crypto_shorthash_siphashx24","crypto_sign","crypto_sign_detached","crypto_sign_ed25519_pk_to_curve25519","crypto_sign_ed25519_sk_to_curve25519","crypto_sign_ed25519_sk_to_pk","crypto_sign_ed25519_sk_to_seed","crypto_sign_final_create","crypto_sign_final_verify","crypto_sign_init","crypto_sign_keypair","crypto_sign_open","crypto_sign_seed_keypair","crypto_sign_update","crypto_sign_verify_detached","crypto_stream_chacha20","crypto_stream_chacha20_ietf_xor","crypto_stream_chacha20_ietf_xor_ic","crypto_stream_chacha20_keygen","crypto_stream_chacha20_xor","crypto_stream_chacha20_xor_ic","crypto_stream_keygen","crypto_stream_xchacha20_keygen","crypto_stream_xchacha20_xor","crypto_stream_xchacha20_xor_ic","crypto_xof_shake128","crypto_xof_shake128_init","crypto_xof_shake128_init_with_domain","crypto_xof_shake128_squeeze","crypto_xof_shake128_update","crypto_xof_shake256","crypto_xof_shake256_init","crypto_xof_shake256_init_with_domain","crypto_xof_shake256_squeeze","crypto_xof_shake256_update","crypto_xof_turboshake128","crypto_xof_turboshake128_init","crypto_xof_turboshake128_init_with_domain","crypto_xof_turboshake128_squeeze","crypto_xof_turboshake128_update","crypto_xof_turboshake256","crypto_xof_turboshake256_init","crypto_xof_turboshake256_init_with_domain","crypto_xof_turboshake256_squeeze","crypto_xof_turboshake256_update","randombytes_buf","randombytes_buf_deterministic","randombytes_close","randombytes_random","randombytes_set_implementation","randombytes_stir","randombytes_uniform","sodium_bin2ip","sodium_ip2bin","sodium_version_string"],t=[B,A,K,I,M,N,L,O,C,U,P,R,X,D,G,F,V,q,H,z,W,j,J,Q,Z,$,ee,er,et,ea,e_,en,es,ec,ep,eo,eh,ey,ei,el,eu,ed,ev,eg,eb,ef,em,ek,ex,eE,eS,eT,ew,eY,eB,eA,eK,eI,eM,eN,eL,eO,eC,eU,eP,eR,eX,eD,eG,eF,eV,eq,eH,ez,eW,ej,eJ,eQ,eZ,e$,e0,e5,e2,e1,e3,e6,e9,e8,e4,e7,re,rr,rt,ra,r_,rn,rs,rc,rp,ro,rh,ry,ri,rl,ru,rd,rv,rg,rb,rf,rm,rk,rx,rE,rS,rT,rw,rY,rB,rA,rK,rI,rM,rN,rL,rO,rC,rU,rP,rR,rX,rD,rG,rF,rV,rq,rH,rz,rW,rj,rJ,rQ,rZ,r$,r0,r5,r2,r1,r3,r6,r9,r8,r4,r7,te,tr,tt,ta,t_,tn,ts,tc,tp,to,th,ty,ti,tl,tu,td,tv,tg,tb,tf,tm,tk,tx,tE,tS,tT,tw,tY,tB,tA,tK,tI,tM,tN,tL,tO,tC,tU,tP,tR,tX,tD,tG,tF,tV,tq,tH,tz,tW,tj,tJ,tQ,tZ,t$,t0,t5,t2,t1,t3,t6,t9,t8,t4,t7,ae,ar,at,aa,a_,an,as,ac,ap,ao,ah,ay,ai,al,au,ad,av,ag,ab,af,am,ak,ax,aE,aS,aT,aw],_=0;_<t.length;_++)"function"==typeof a["_"+r[_]]&&(c[r[_]]=t[_]);var n=["SODIUM_LIBRARY_VERSION_MAJOR","SODIUM_LIBRARY_VERSION_MINOR","crypto_aead_aegis128l_ABYTES","crypto_aead_aegis128l_KEYBYTES","crypto_aead_aegis128l_MESSAGEBYTES_MAX","crypto_aead_aegis128l_NPUBBYTES","crypto_aead_aegis128l_NSECBYTES","crypto_aead_aegis256_ABYTES","crypto_aead_aegis256_KEYBYTES","crypto_aead_aegis256_MESSAGEBYTES_MAX","crypto_aead_aegis256_NPUBBYTES","crypto_aead_aegis256_NSECBYTES","crypto_aead_aes256gcm_ABYTES","crypto_aead_aes256gcm_KEYBYTES","crypto_aead_aes256gcm_MESSAGEBYTES_MAX","crypto_aead_aes256gcm_NPUBBYTES","crypto_aead_aes256gcm_NSECBYTES","crypto_aead_chacha20poly1305_ABYTES","crypto_aead_chacha20poly1305_IETF_ABYTES","crypto_aead_chacha20poly1305_IETF_KEYBYTES","crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_IETF_NPUBBYTES","crypto_aead_chacha20poly1305_IETF_NSECBYTES","crypto_aead_chacha20poly1305_KEYBYTES","crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_NPUBBYTES","crypto_aead_chacha20poly1305_NSECBYTES","crypto_aead_chacha20poly1305_ietf_ABYTES","crypto_aead_chacha20poly1305_ietf_KEYBYTES","crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_ietf_NPUBBYTES","crypto_aead_chacha20poly1305_ietf_NSECBYTES","crypto_aead_xchacha20poly1305_IETF_ABYTES","crypto_aead_xchacha20poly1305_IETF_KEYBYTES","crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX","crypto_aead_xchacha20poly1305_IETF_NPUBBYTES","crypto_aead_xchacha20poly1305_IETF_NSECBYTES","crypto_aead_xchacha20poly1305_ietf_ABYTES","crypto_aead_xchacha20poly1305_ietf_KEYBYTES","crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX","crypto_aead_xchacha20poly1305_ietf_NPUBBYTES","crypto_aead_xchacha20poly1305_ietf_NSECBYTES","crypto_auth_BYTES","crypto_auth_KEYBYTES","crypto_auth_hmacsha256_BYTES","crypto_auth_hmacsha256_KEYBYTES","crypto_auth_hmacsha512256_BYTES","crypto_auth_hmacsha512256_KEYBYTES","crypto_auth_hmacsha512_BYTES","crypto_auth_hmacsha512_KEYBYTES","crypto_box_BEFORENMBYTES","crypto_box_MACBYTES","crypto_box_MESSAGEBYTES_MAX","crypto_box_NONCEBYTES","crypto_box_PUBLICKEYBYTES","crypto_box_SEALBYTES","crypto_box_SECRETKEYBYTES","crypto_box_SEEDBYTES","crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES","crypto_box_curve25519xchacha20poly1305_MACBYTES","crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX","crypto_box_curve25519xchacha20poly1305_NONCEBYTES","crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES","crypto_box_curve25519xchacha20poly1305_SEALBYTES","crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES","crypto_box_curve25519xchacha20poly1305_SEEDBYTES","crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES","crypto_box_curve25519xsalsa20poly1305_MACBYTES","crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX","crypto_box_curve25519xsalsa20poly1305_NONCEBYTES","crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES","crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES","crypto_box_curve25519xsalsa20poly1305_SEEDBYTES","crypto_core_ed25519_BYTES","crypto_core_ed25519_HASHBYTES","crypto_core_ed25519_NONREDUCEDSCALARBYTES","crypto_core_ed25519_SCALARBYTES","crypto_core_ed25519_UNIFORMBYTES","crypto_core_hchacha20_CONSTBYTES","crypto_core_hchacha20_INPUTBYTES","crypto_core_hchacha20_KEYBYTES","crypto_core_hchacha20_OUTPUTBYTES","crypto_core_hsalsa20_CONSTBYTES","crypto_core_hsalsa20_INPUTBYTES","crypto_core_hsalsa20_KEYBYTES","crypto_core_hsalsa20_OUTPUTBYTES","crypto_core_ristretto255_BYTES","crypto_core_ristretto255_HASHBYTES","crypto_core_ristretto255_NONREDUCEDSCALARBYTES","crypto_core_ristretto255_SCALARBYTES","crypto_core_salsa2012_CONSTBYTES","crypto_core_salsa2012_INPUTBYTES","crypto_core_salsa2012_KEYBYTES","crypto_core_salsa2012_OUTPUTBYTES","crypto_core_salsa208_CONSTBYTES","crypto_core_salsa208_INPUTBYTES","crypto_core_salsa208_KEYBYTES","crypto_core_salsa208_OUTPUTBYTES","crypto_core_salsa20_CONSTBYTES","crypto_core_salsa20_INPUTBYTES","crypto_core_salsa20_KEYBYTES","crypto_core_salsa20_OUTPUTBYTES","crypto_generichash_BYTES","crypto_generichash_BYTES_MAX","crypto_generichash_BYTES_MIN","crypto_generichash_KEYBYTES","crypto_generichash_KEYBYTES_MAX","crypto_generichash_KEYBYTES_MIN","crypto_generichash_blake2b_BYTES","crypto_generichash_blake2b_BYTES_MAX","crypto_generichash_blake2b_BYTES_MIN","crypto_generichash_blake2b_KEYBYTES","crypto_generichash_blake2b_KEYBYTES_MAX","crypto_generichash_blake2b_KEYBYTES_MIN","crypto_generichash_blake2b_PERSONALBYTES","crypto_generichash_blake2b_SALTBYTES","crypto_hash_BYTES","crypto_hash_sha256_BYTES","crypto_hash_sha3256_BYTES","crypto_hash_sha3512_BYTES","crypto_hash_sha512_BYTES","crypto_ipcrypt_BYTES","crypto_ipcrypt_KEYBYTES","crypto_ipcrypt_NDX_INPUTBYTES","crypto_ipcrypt_NDX_KEYBYTES","crypto_ipcrypt_NDX_OUTPUTBYTES","crypto_ipcrypt_NDX_TWEAKBYTES","crypto_ipcrypt_ND_INPUTBYTES","crypto_ipcrypt_ND_KEYBYTES","crypto_ipcrypt_ND_OUTPUTBYTES","crypto_ipcrypt_ND_TWEAKBYTES","crypto_ipcrypt_PFX_BYTES","crypto_ipcrypt_PFX_KEYBYTES","crypto_kdf_BYTES_MAX","crypto_kdf_BYTES_MIN","crypto_kdf_CONTEXTBYTES","crypto_kdf_KEYBYTES","crypto_kdf_blake2b_BYTES_MAX","crypto_kdf_blake2b_BYTES_MIN","crypto_kdf_blake2b_CONTEXTBYTES","crypto_kdf_blake2b_KEYBYTES","crypto_kdf_hkdf_sha256_BYTES_MAX","crypto_kdf_hkdf_sha256_BYTES_MIN","crypto_kdf_hkdf_sha256_KEYBYTES","crypto_kdf_hkdf_sha512_BYTES_MAX","crypto_kdf_hkdf_sha512_BYTES_MIN","crypto_kdf_hkdf_sha512_KEYBYTES","crypto_kem_CIPHERTEXTBYTES","crypto_kem_PUBLICKEYBYTES","crypto_kem_SECRETKEYBYTES","crypto_kem_SEEDBYTES","crypto_kem_SHAREDSECRETBYTES","crypto_kem_mlkem768_CIPHERTEXTBYTES","crypto_kem_mlkem768_PUBLICKEYBYTES","crypto_kem_mlkem768_SECRETKEYBYTES","crypto_kem_mlkem768_SEEDBYTES","crypto_kem_mlkem768_SHAREDSECRETBYTES","crypto_kem_xwing_CIPHERTEXTBYTES","crypto_kem_xwing_PUBLICKEYBYTES","crypto_kem_xwing_SECRETKEYBYTES","crypto_kem_xwing_SEEDBYTES","crypto_kem_xwing_SHAREDSECRETBYTES","crypto_kx_PUBLICKEYBYTES","crypto_kx_SECRETKEYBYTES","crypto_kx_SEEDBYTES","crypto_kx_SESSIONKEYBYTES","crypto_onetimeauth_BYTES","crypto_onetimeauth_KEYBYTES","crypto_onetimeauth_poly1305_BYTES","crypto_onetimeauth_poly1305_KEYBYTES","crypto_pwhash_ALG_ARGON2I13","crypto_pwhash_ALG_ARGON2ID13","crypto_pwhash_ALG_DEFAULT","crypto_pwhash_BYTES_MAX","crypto_pwhash_BYTES_MIN","crypto_pwhash_MEMLIMIT_INTERACTIVE","crypto_pwhash_MEMLIMIT_MAX","crypto_pwhash_MEMLIMIT_MIN","crypto_pwhash_MEMLIMIT_MODERATE","crypto_pwhash_MEMLIMIT_SENSITIVE","crypto_pwhash_OPSLIMIT_INTERACTIVE","crypto_pwhash_OPSLIMIT_MAX","crypto_pwhash_OPSLIMIT_MIN","crypto_pwhash_OPSLIMIT_MODERATE","crypto_pwhash_OPSLIMIT_SENSITIVE","crypto_pwhash_PASSWD_MAX","crypto_pwhash_PASSWD_MIN","crypto_pwhash_SALTBYTES","crypto_pwhash_STRBYTES","crypto_pwhash_argon2i_BYTES_MAX","crypto_pwhash_argon2i_BYTES_MIN","crypto_pwhash_argon2i_MEMLIMIT_INTERACTIVE","crypto_pwhash_argon2i_MEMLIMIT_MAX","crypto_pwhash_argon2i_MEMLIMIT_MIN","crypto_pwhash_argon2i_MEMLIMIT_MODERATE","crypto_pwhash_argon2i_MEMLIMIT_SENSITIVE","crypto_pwhash_argon2i_OPSLIMIT_INTERACTIVE","crypto_pwhash_argon2i_OPSLIMIT_MAX","crypto_pwhash_argon2i_OPSLIMIT_MIN","crypto_pwhash_argon2i_OPSLIMIT_MODERATE","crypto_pwhash_argon2i_OPSLIMIT_SENSITIVE","crypto_pwhash_argon2i_PASSWD_MAX","crypto_pwhash_argon2i_PASSWD_MIN","crypto_pwhash_argon2i_SALTBYTES","crypto_pwhash_argon2i_STRBYTES","crypto_pwhash_argon2id_BYTES_MAX","crypto_pwhash_argon2id_BYTES_MIN","crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE","crypto_pwhash_argon2id_MEMLIMIT_MAX","crypto_pwhash_argon2id_MEMLIMIT_MIN","crypto_pwhash_argon2id_MEMLIMIT_MODERATE","crypto_pwhash_argon2id_MEMLIMIT_SENSITIVE","crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE","crypto_pwhash_argon2id_OPSLIMIT_MAX","crypto_pwhash_argon2id_OPSLIMIT_MIN","crypto_pwhash_argon2id_OPSLIMIT_MODERATE","crypto_pwhash_argon2id_OPSLIMIT_SENSITIVE","crypto_pwhash_argon2id_PASSWD_MAX","crypto_pwhash_argon2id_PASSWD_MIN","crypto_pwhash_argon2id_SALTBYTES","crypto_pwhash_argon2id_STRBYTES","crypto_pwhash_scryptsalsa208sha256_BYTES_MAX","crypto_pwhash_scryptsalsa208sha256_BYTES_MIN","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE","crypto_pwhash_scryptsalsa208sha256_PASSWD_MAX","crypto_pwhash_scryptsalsa208sha256_PASSWD_MIN","crypto_pwhash_scryptsalsa208sha256_SALTBYTES","crypto_pwhash_scryptsalsa208sha256_STRBYTES","crypto_scalarmult_BYTES","crypto_scalarmult_SCALARBYTES","crypto_scalarmult_curve25519_BYTES","crypto_scalarmult_curve25519_SCALARBYTES","crypto_scalarmult_ed25519_BYTES","crypto_scalarmult_ed25519_SCALARBYTES","crypto_scalarmult_ristretto255_BYTES","crypto_scalarmult_ristretto255_SCALARBYTES","crypto_secretbox_KEYBYTES","crypto_secretbox_MACBYTES","crypto_secretbox_MESSAGEBYTES_MAX","crypto_secretbox_NONCEBYTES","crypto_secretbox_xchacha20poly1305_KEYBYTES","crypto_secretbox_xchacha20poly1305_MACBYTES","crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX","crypto_secretbox_xchacha20poly1305_NONCEBYTES","crypto_secretbox_xsalsa20poly1305_KEYBYTES","crypto_secretbox_xsalsa20poly1305_MACBYTES","crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX","crypto_secretbox_xsalsa20poly1305_NONCEBYTES","crypto_secretstream_xchacha20poly1305_ABYTES","crypto_secretstream_xchacha20poly1305_HEADERBYTES","crypto_secretstream_xchacha20poly1305_KEYBYTES","crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX","crypto_secretstream_xchacha20poly1305_TAG_FINAL","crypto_secretstream_xchacha20poly1305_TAG_MESSAGE","crypto_secretstream_xchacha20poly1305_TAG_PUSH","crypto_secretstream_xchacha20poly1305_TAG_REKEY","crypto_shorthash_BYTES","crypto_shorthash_KEYBYTES","crypto_shorthash_siphash24_BYTES","crypto_shorthash_siphash24_KEYBYTES","crypto_shorthash_siphashx24_BYTES","crypto_shorthash_siphashx24_KEYBYTES","crypto_sign_BYTES","crypto_sign_MESSAGEBYTES_MAX","crypto_sign_PUBLICKEYBYTES","crypto_sign_SECRETKEYBYTES","crypto_sign_SEEDBYTES","crypto_sign_ed25519_BYTES","crypto_sign_ed25519_MESSAGEBYTES_MAX","crypto_sign_ed25519_PUBLICKEYBYTES","crypto_sign_ed25519_SECRETKEYBYTES","crypto_sign_ed25519_SEEDBYTES","crypto_stream_KEYBYTES","crypto_stream_MESSAGEBYTES_MAX","crypto_stream_NONCEBYTES","crypto_stream_chacha20_IETF_KEYBYTES","crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX","crypto_stream_chacha20_IETF_NONCEBYTES","crypto_stream_chacha20_KEYBYTES","crypto_stream_chacha20_MESSAGEBYTES_MAX","crypto_stream_chacha20_NONCEBYTES","crypto_stream_chacha20_ietf_KEYBYTES","crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX","crypto_stream_chacha20_ietf_NONCEBYTES","crypto_stream_salsa2012_KEYBYTES","crypto_stream_salsa2012_MESSAGEBYTES_MAX","crypto_stream_salsa2012_NONCEBYTES","crypto_stream_salsa208_KEYBYTES","crypto_stream_salsa208_MESSAGEBYTES_MAX","crypto_stream_salsa208_NONCEBYTES","crypto_stream_salsa20_KEYBYTES","crypto_stream_salsa20_MESSAGEBYTES_MAX","crypto_stream_salsa20_NONCEBYTES","crypto_stream_xchacha20_KEYBYTES","crypto_stream_xchacha20_MESSAGEBYTES_MAX","crypto_stream_xchacha20_NONCEBYTES","crypto_stream_xsalsa20_KEYBYTES","crypto_stream_xsalsa20_MESSAGEBYTES_MAX","crypto_stream_xsalsa20_NONCEBYTES","crypto_verify_16_BYTES","crypto_verify_32_BYTES","crypto_verify_64_BYTES","crypto_xof_shake128_BLOCKBYTES","crypto_xof_shake128_STATEBYTES","crypto_xof_shake256_BLOCKBYTES","crypto_xof_shake256_STATEBYTES","crypto_xof_turboshake128_BLOCKBYTES","crypto_xof_turboshake128_STATEBYTES","crypto_xof_turboshake256_BLOCKBYTES","crypto_xof_turboshake256_STATEBYTES"];for(_=0;_<n.length;_++)"function"==typeof(e=a["_"+n[_].toLowerCase()])&&(c[n[_]]=e());var s=["SODIUM_VERSION_STRING","crypto_kem_PRIMITIVE","crypto_pwhash_STRPREFIX","crypto_pwhash_argon2i_STRPREFIX","crypto_pwhash_argon2id_STRPREFIX","crypto_pwhash_scryptsalsa208sha256_STRPREFIX"];for(_=0;_<s.length;_++)"function"==typeof(e=a["_"+s[_].toLowerCase()])&&(c[s[_]]=a.UTF8ToString(e()))}();var r=new Uint8Array([98,97,108,108,115]),t=c.randombytes_buf(c.crypto_secretbox_NONCEBYTES),_=c.randombytes_buf(c.crypto_secretbox_KEYBYTES),n=c.crypto_secretbox_easy(r,t,_),s=c.crypto_secretbox_open_easy(n,t,_);if(!c.memcmp(r,s))throw Error("Initialization self-test failed")});function y(e){if("function"==typeof TextEncoder)return(new TextEncoder).encode(e);e=unescape(encodeURIComponent(e));for(var r=new Uint8Array(e.length),t=0,a=e.length;t<a;t++)r[t]=e.charCodeAt(t);return r}function i(e){if("function"==typeof TextDecoder)return new TextDecoder("utf-8",{fatal:!0}).decode(e);var r=Math.ceil(e.length/8192);if(r<=1)try{return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))}catch(e){throw TypeError("The encoded data was not valid.")}for(var t="",a=0,_=0;_<r;_++){var n=Array.prototype.slice.call(e,8192*_+a,(_+1)*8192+a);if(0!==n.length){var s,c=n.length,p=0;do{var o=n[--c];o>=240?(p=4,s=!0):o>=224?(p=3,s=!0):o>=192?(p=2,s=!0):o<128&&(p=1,s=!0)}while(!s);for(var h=p-(n.length-c),y=0;y<h;y++)a--,n.pop();t+=i(n)}}return t}function l(e){e=Y(null,e,"input");for(var r,t,a,_="",n=0;n<e.length;n++)_+=String.fromCharCode(255&(a=87+(t=15&e[n])+(t-10>>8&-39)<<8|87+(r=e[n]>>>4)+(r-10>>8&-39)))+String.fromCharCode(a>>>8);return _}var u={ORIGINAL:1,ORIGINAL_NO_PADDING:3,URLSAFE:5,URLSAFE_NO_PADDING:7};function d(e){if(void 0===e)return u.URLSAFE_NO_PADDING;if(e!==u.ORIGINAL&&e!==u.ORIGINAL_NO_PADDING&&e!==u.URLSAFE&&e!==u.URLSAFE_NO_PADDING)throw Error("unsupported base64 variant");return e}function v(e,r){r=d(r);var t,_=[],n=0|Math.floor((e=Y(_,e,"input")).length/3),s=e.length-3*n,c=4*n+(0!==s?2&r?2+(s>>>1):4:0),p=new m(c+1),o=k(e);return _.push(o),_.push(p.address),0===a._sodium_bin2base64(p.address,p.length,o,e.length,r)&&S(_,"conversion failed"),p.length=c,t=i(p.to_Uint8Array()),E(_),t}function g(e,r){var t=r||"uint8array";if(!b(t))throw Error(t+" output format is not available");if(e instanceof m){if("uint8array"===t)return e.to_Uint8Array();if("text"===t)return i(e.to_Uint8Array());if("hex"===t)return l(e.to_Uint8Array());if("base64"===t)return v(e.to_Uint8Array(),u.URLSAFE_NO_PADDING);throw Error('What is output format "'+t+'"?')}if("object"==typeof e){for(var a=Object.keys(e),_={},n=0;n<a.length;n++)_[a[n]]=g(e[a[n]],t);return _}if("string"==typeof e)return e;throw TypeError("Cannot format output")}function b(e){for(var r=["uint8array","text","hex","base64"],t=0;t<r.length;t++)if(r[t]===e)return!0;return!1}function f(e){if(e){if("string"!=typeof e)throw TypeError("When defined, the output format must be a string");if(!b(e))throw Error(e+" is not a supported output format")}}function m(e){this.length=e,this.address=x(e)}function k(e){var r=x(e.length);return a.HEAPU8.set(e,r),r}function x(e){var r=a._malloc(e);if(0===r)throw{message:"_malloc() failed",length:e};return r}function E(e){if(e)for(var r,t=0;t<e.length;t++)r=e[t],a._free(r)}function S(e,r){throw E(e),Error(r)}function T(e,r){throw E(e),TypeError(r)}function w(e,r,t){null==r&&T(e,t+" cannot be null or undefined")}function Y(e,r,t){return w(e,r,t),r instanceof Uint8Array?r:"string"==typeof r?y(r):void T(e,"unsupported input type for "+t)}function B(e,r,t,_,n,s){var c=[];f(s);var p=null;null!=e&&(p=k(e=Y(c,e,"secret_nonce")),e.length,c.push(p)),r=Y(c,r,"ciphertext");var o,h=a._crypto_aead_aegis128l_abytes(),y=r.length;y<h&&T(c,"ciphertext is too short"),o=k(r),c.push(o);var i=null,l=0;null!=t&&(i=k(t=Y(c,t,"additional_data")),l=t.length,c.push(i)),_=Y(c,_,"public_nonce");var u,d=0|a._crypto_aead_aegis128l_npubbytes();_.length!==d&&T(c,"invalid public_nonce length"),u=k(_),c.push(u),n=Y(c,n,"key");var v,b=0|a._crypto_aead_aegis128l_keybytes();n.length!==b&&T(c,"invalid key length"),v=k(n),c.push(v);var x=new m(y-a._crypto_aead_aegis128l_abytes()|0),w=x.address;if(c.push(w),0===a._crypto_aead_aegis128l_decrypt(w,null,p,o,y,0,i,l,0,u,v)){var B=g(x,s);return E(c),B}S(c,"ciphertext cannot be decrypted using that key")}function A(e,r,t,_,n,s,c){var p=[];f(c);var o=null;null!=e&&(o=k(e=Y(p,e,"secret_nonce")),e.length,p.push(o));var h=k(r=Y(p,r,"ciphertext")),y=r.length;p.push(h),t=Y(p,t,"mac");var i,l=0|a._crypto_aead_aegis128l_abytes();t.length!==l&&T(p,"invalid mac length"),i=k(t),p.push(i);var u=null,d=0;null!=_&&(u=k(_=Y(p,_,"additional_data")),d=_.length,p.push(u)),n=Y(p,n,"public_nonce");var v,b=0|a._crypto_aead_aegis128l_npubbytes();n.length!==b&&T(p,"invalid public_nonce length"),v=k(n),p.push(v),s=Y(p,s,"key");var x,w=0|a._crypto_aead_aegis128l_keybytes();s.length!==w&&T(p,"invalid key length"),x=k(s),p.push(x);var B=new m(0|y),A=B.address;if(p.push(A),0===a._crypto_aead_aegis128l_decrypt_detached(A,o,h,y,0,i,u,d,0,v,x)){var K=g(B,c);return E(p),K}S(p,"ciphertext cannot be decrypted using that key")}function K(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_aegis128l_npubbytes();_.length!==u&&T(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_aegis128l_keybytes();n.length!==v&&T(c,"invalid key length"),d=k(n),c.push(d);var b=new m(o+a._crypto_aead_aegis128l_abytes()|0),x=b.address;if(c.push(x),0===a._crypto_aead_aegis128l_encrypt(x,null,p,o,0,h,y,0,i,l,d)){var w=g(b,s);return E(c),w}S(c,"invalid usage")}function I(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_aegis128l_npubbytes();_.length!==u&&T(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_aegis128l_keybytes();n.length!==v&&T(c,"invalid key length"),d=k(n),c.push(d);var b=new m(0|o),x=b.address;c.push(x);var w=new m(0|a._crypto_aead_aegis128l_abytes()),B=w.address;if(c.push(B),0===a._crypto_aead_aegis128l_encrypt_detached(x,B,null,p,o,0,h,y,0,i,l,d)){var A=g({ciphertext:b,mac:w},s);return E(c),A}S(c,"invalid usage")}function M(e){var r=[];f(e);var t=new m(0|a._crypto_aead_aegis128l_keybytes()),_=t.address;r.push(_),a._crypto_aead_aegis128l_keygen(_);var n=g(t,e);return E(r),n}function N(e,r,t,_,n,s){var c=[];f(s);var p=null;null!=e&&(p=k(e=Y(c,e,"secret_nonce")),e.length,c.push(p)),r=Y(c,r,"ciphertext");var o,h=a._crypto_aead_aegis256_abytes(),y=r.length;y<h&&T(c,"ciphertext is too short"),o=k(r),c.push(o);var i=null,l=0;null!=t&&(i=k(t=Y(c,t,"additional_data")),l=t.length,c.push(i)),_=Y(c,_,"public_nonce");var u,d=0|a._crypto_aead_aegis256_npubbytes();_.length!==d&&T(c,"invalid public_nonce length"),u=k(_),c.push(u),n=Y(c,n,"key");var v,b=0|a._crypto_aead_aegis256_keybytes();n.length!==b&&T(c,"invalid key length"),v=k(n),c.push(v);var x=new m(y-a._crypto_aead_aegis256_abytes()|0),w=x.address;if(c.push(w),0===a._crypto_aead_aegis256_decrypt(w,null,p,o,y,0,i,l,0,u,v)){var B=g(x,s);return E(c),B}S(c,"ciphertext cannot be decrypted using that key")}function L(e,r,t,_,n,s,c){var p=[];f(c);var o=null;null!=e&&(o=k(e=Y(p,e,"secret_nonce")),e.length,p.push(o));var h=k(r=Y(p,r,"ciphertext")),y=r.length;p.push(h),t=Y(p,t,"mac");var i,l=0|a._crypto_aead_aegis256_abytes();t.length!==l&&T(p,"invalid mac length"),i=k(t),p.push(i);var u=null,d=0;null!=_&&(u=k(_=Y(p,_,"additional_data")),d=_.length,p.push(u)),n=Y(p,n,"public_nonce");var v,b=0|a._crypto_aead_aegis256_npubbytes();n.length!==b&&T(p,"invalid public_nonce length"),v=k(n),p.push(v),s=Y(p,s,"key");var x,w=0|a._crypto_aead_aegis256_keybytes();s.length!==w&&T(p,"invalid key length"),x=k(s),p.push(x);var B=new m(0|y),A=B.address;if(p.push(A),0===a._crypto_aead_aegis256_decrypt_detached(A,o,h,y,0,i,u,d,0,v,x)){var K=g(B,c);return E(p),K}S(p,"ciphertext cannot be decrypted using that key")}function O(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_aegis256_npubbytes();_.length!==u&&T(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_aegis256_keybytes();n.length!==v&&T(c,"invalid key length"),d=k(n),c.push(d);var b=new m(o+a._crypto_aead_aegis256_abytes()|0),x=b.address;if(c.push(x),0===a._crypto_aead_aegis256_encrypt(x,null,p,o,0,h,y,0,i,l,d)){var w=g(b,s);return E(c),w}S(c,"invalid usage")}function C(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_aegis256_npubbytes();_.length!==u&&T(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_aegis256_keybytes();n.length!==v&&T(c,"invalid key length"),d=k(n),c.push(d);var b=new m(0|o),x=b.address;c.push(x);var w=new m(0|a._crypto_aead_aegis256_abytes()),B=w.address;if(c.push(B),0===a._crypto_aead_aegis256_encrypt_detached(x,B,null,p,o,0,h,y,0,i,l,d)){var A=g({ciphertext:b,mac:w},s);return E(c),A}S(c,"invalid usage")}function U(e){var r=[];f(e);var t=new m(0|a._crypto_aead_aegis256_keybytes()),_=t.address;r.push(_),a._crypto_aead_aegis256_keygen(_);var n=g(t,e);return E(r),n}function P(e,r,t,_,n,s){var c=[];f(s);var p=null;null!=e&&(p=k(e=Y(c,e,"secret_nonce")),e.length,c.push(p)),r=Y(c,r,"ciphertext");var o,h=a._crypto_aead_chacha20poly1305_abytes(),y=r.length;y<h&&T(c,"ciphertext is too short"),o=k(r),c.push(o);var i=null,l=0;null!=t&&(i=k(t=Y(c,t,"additional_data")),l=t.length,c.push(i)),_=Y(c,_,"public_nonce");var u,d=0|a._crypto_aead_chacha20poly1305_npubbytes();_.length!==d&&T(c,"invalid public_nonce length"),u=k(_),c.push(u),n=Y(c,n,"key");var v,b=0|a._crypto_aead_chacha20poly1305_keybytes();n.length!==b&&T(c,"invalid key length"),v=k(n),c.push(v);var x=new m(y-a._crypto_aead_chacha20poly1305_abytes()|0),w=x.address;if(c.push(w),0===a._crypto_aead_chacha20poly1305_decrypt(w,null,p,o,y,0,i,l,0,u,v)){var B=g(x,s);return E(c),B}S(c,"ciphertext cannot be decrypted using that key")}function R(e,r,t,_,n,s,c){var p=[];f(c);var o=null;null!=e&&(o=k(e=Y(p,e,"secret_nonce")),e.length,p.push(o));var h=k(r=Y(p,r,"ciphertext")),y=r.length;p.push(h),t=Y(p,t,"mac");var i,l=0|a._crypto_box_macbytes();t.length!==l&&T(p,"invalid mac length"),i=k(t),p.push(i);var u=null,d=0;null!=_&&(u=k(_=Y(p,_,"additional_data")),d=_.length,p.push(u)),n=Y(p,n,"public_nonce");var v,b=0|a._crypto_aead_chacha20poly1305_npubbytes();n.length!==b&&T(p,"invalid public_nonce length"),v=k(n),p.push(v),s=Y(p,s,"key");var x,w=0|a._crypto_aead_chacha20poly1305_keybytes();s.length!==w&&T(p,"invalid key length"),x=k(s),p.push(x);var B=new m(0|y),A=B.address;if(p.push(A),0===a._crypto_aead_chacha20poly1305_decrypt_detached(A,o,h,y,0,i,u,d,0,v,x)){var K=g(B,c);return E(p),K}S(p,"ciphertext cannot be decrypted using that key")}function X(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_chacha20poly1305_npubbytes();_.length!==u&&T(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_chacha20poly1305_keybytes();n.length!==v&&T(c,"invalid key length"),d=k(n),c.push(d);var b=new m(o+a._crypto_aead_chacha20poly1305_abytes()|0),x=b.address;if(c.push(x),0===a._crypto_aead_chacha20poly1305_encrypt(x,null,p,o,0,h,y,0,i,l,d)){var w=g(b,s);return E(c),w}S(c,"invalid usage")}function D(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_chacha20poly1305_npubbytes();_.length!==u&&T(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_chacha20poly1305_keybytes();n.length!==v&&T(c,"invalid key length"),d=k(n),c.push(d);var b=new m(0|o),x=b.address;c.push(x);var w=new m(0|a._crypto_aead_chacha20poly1305_abytes()),B=w.address;if(c.push(B),0===a._crypto_aead_chacha20poly1305_encrypt_detached(x,B,null,p,o,0,h,y,0,i,l,d)){var A=g({ciphertext:b,mac:w},s);return E(c),A}S(c,"invalid usage")}function G(e,r,t,_,n,s){var c=[];f(s);var p=null;null!=e&&(p=k(e=Y(c,e,"secret_nonce")),e.length,c.push(p)),r=Y(c,r,"ciphertext");var o,h=a._crypto_aead_chacha20poly1305_ietf_abytes(),y=r.length;y<h&&T(c,"ciphertext is too short"),o=k(r),c.push(o);var i=null,l=0;null!=t&&(i=k(t=Y(c,t,"additional_data")),l=t.length,c.push(i)),_=Y(c,_,"public_nonce");var u,d=0|a._crypto_aead_chacha20poly1305_ietf_npubbytes();_.length!==d&&T(c,"invalid public_nonce length"),u=k(_),c.push(u),n=Y(c,n,"key");var v,b=0|a._crypto_aead_chacha20poly1305_ietf_keybytes();n.length!==b&&T(c,"invalid key length"),v=k(n),c.push(v);var x=new m(y-a._crypto_aead_chacha20poly1305_ietf_abytes()|0),w=x.address;if(c.push(w),0===a._crypto_aead_chacha20poly1305_ietf_decrypt(w,null,p,o,y,0,i,l,0,u,v)){var B=g(x,s);return E(c),B}S(c,"ciphertext cannot be decrypted using that key")}function F(e,r,t,_,n,s,c){var p=[];f(c);var o=null;null!=e&&(o=k(e=Y(p,e,"secret_nonce")),e.length,p.push(o));var h=k(r=Y(p,r,"ciphertext")),y=r.length;p.push(h),t=Y(p,t,"mac");var i,l=0|a._crypto_box_macbytes();t.length!==l&&T(p,"invalid mac length"),i=k(t),p.push(i);var u=null,d=0;null!=_&&(u=k(_=Y(p,_,"additional_data")),d=_.length,p.push(u)),n=Y(p,n,"public_nonce");var v,b=0|a._crypto_aead_chacha20poly1305_ietf_npubbytes();n.length!==b&&T(p,"invalid public_nonce length"),v=k(n),p.push(v),s=Y(p,s,"key");var x,w=0|a._crypto_aead_chacha20poly1305_ietf_keybytes();s.length!==w&&T(p,"invalid key length"),x=k(s),p.push(x);var B=new m(0|y),A=B.address;if(p.push(A),0===a._crypto_aead_chacha20poly1305_ietf_decrypt_detached(A,o,h,y,0,i,u,d,0,v,x)){var K=g(B,c);return E(p),K}S(p,"ciphertext cannot be decrypted using that key")}function V(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_chacha20poly1305_ietf_npubbytes();_.length!==u&&T(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_chacha20poly1305_ietf_keybytes();n.length!==v&&T(c,"invalid key length"),d=k(n),c.push(d);var b=new m(o+a._crypto_aead_chacha20poly1305_ietf_abytes()|0),x=b.address;if(c.push(x),0===a._crypto_aead_chacha20poly1305_ietf_encrypt(x,null,p,o,0,h,y,0,i,l,d)){var w=g(b,s);return E(c),w}S(c,"invalid usage")}function q(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_chacha20poly1305_ietf_npubbytes();_.length!==u&&T(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_chacha20poly1305_ietf_keybytes();n.length!==v&&T(c,"invalid key length"),d=k(n),c.push(d);var b=new m(0|o),x=b.address;c.push(x);var w=new m(0|a._crypto_aead_chacha20poly1305_ietf_abytes()),B=w.address;if(c.push(B),0===a._crypto_aead_chacha20poly1305_ietf_encrypt_detached(x,B,null,p,o,0,h,y,0,i,l,d)){var A=g({ciphertext:b,mac:w},s);return E(c),A}S(c,"invalid usage")}function H(e){var r=[];f(e);var t=new m(0|a._crypto_aead_chacha20poly1305_ietf_keybytes()),_=t.address;r.push(_),a._crypto_aead_chacha20poly1305_ietf_keygen(_);var n=g(t,e);return E(r),n}function z(e){var r=[];f(e);var t=new m(0|a._crypto_aead_chacha20poly1305_keybytes()),_=t.address;r.push(_),a._crypto_aead_chacha20poly1305_keygen(_);var n=g(t,e);return E(r),n}function W(e,r,t,_,n,s){var c=[];f(s);var p=null;null!=e&&(p=k(e=Y(c,e,"secret_nonce")),e.length,c.push(p)),r=Y(c,r,"ciphertext");var o,h=a._crypto_aead_xchacha20poly1305_ietf_abytes(),y=r.length;y<h&&T(c,"ciphertext is too short"),o=k(r),c.push(o);var i=null,l=0;null!=t&&(i=k(t=Y(c,t,"additional_data")),l=t.length,c.push(i)),_=Y(c,_,"public_nonce");var u,d=0|a._crypto_aead_xchacha20poly1305_ietf_npubbytes();_.length!==d&&T(c,"invalid public_nonce length"),u=k(_),c.push(u),n=Y(c,n,"key");var v,b=0|a._crypto_aead_xchacha20poly1305_ietf_keybytes();n.length!==b&&T(c,"invalid key length"),v=k(n),c.push(v);var x=new m(y-a._crypto_aead_xchacha20poly1305_ietf_abytes()|0),w=x.address;if(c.push(w),0===a._crypto_aead_xchacha20poly1305_ietf_decrypt(w,null,p,o,y,0,i,l,0,u,v)){var B=g(x,s);return E(c),B}S(c,"ciphertext cannot be decrypted using that key")}function j(e,r,t,_,n,s,c){var p=[];f(c);var o=null;null!=e&&(o=k(e=Y(p,e,"secret_nonce")),e.length,p.push(o));var h=k(r=Y(p,r,"ciphertext")),y=r.length;p.push(h),t=Y(p,t,"mac");var i,l=0|a._crypto_box_macbytes();t.length!==l&&T(p,"invalid mac length"),i=k(t),p.push(i);var u=null,d=0;null!=_&&(u=k(_=Y(p,_,"additional_data")),d=_.length,p.push(u)),n=Y(p,n,"public_nonce");var v,b=0|a._crypto_aead_xchacha20poly1305_ietf_npubbytes();n.length!==b&&T(p,"invalid public_nonce length"),v=k(n),p.push(v),s=Y(p,s,"key");var x,w=0|a._crypto_aead_xchacha20poly1305_ietf_keybytes();s.length!==w&&T(p,"invalid key length"),x=k(s),p.push(x);var B=new m(0|y),A=B.address;if(p.push(A),0===a._crypto_aead_xchacha20poly1305_ietf_decrypt_detached(A,o,h,y,0,i,u,d,0,v,x)){var K=g(B,c);return E(p),K}S(p,"ciphertext cannot be decrypted using that key")}function J(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_xchacha20poly1305_ietf_npubbytes();_.length!==u&&T(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_xchacha20poly1305_ietf_keybytes();n.length!==v&&T(c,"invalid key length"),d=k(n),c.push(d);var b=new m(o+a._crypto_aead_xchacha20poly1305_ietf_abytes()|0),x=b.address;if(c.push(x),0===a._crypto_aead_xchacha20poly1305_ietf_encrypt(x,null,p,o,0,h,y,0,i,l,d)){var w=g(b,s);return E(c),w}S(c,"invalid usage")}function Q(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"message")),o=e.length;c.push(p);var h=null,y=0;null!=r&&(h=k(r=Y(c,r,"additional_data")),y=r.length,c.push(h));var i=null;null!=t&&(i=k(t=Y(c,t,"secret_nonce")),t.length,c.push(i)),_=Y(c,_,"public_nonce");var l,u=0|a._crypto_aead_xchacha20poly1305_ietf_npubbytes();_.length!==u&&T(c,"invalid public_nonce length"),l=k(_),c.push(l),n=Y(c,n,"key");var d,v=0|a._crypto_aead_xchacha20poly1305_ietf_keybytes();n.length!==v&&T(c,"invalid key length"),d=k(n),c.push(d);var b=new m(0|o),x=b.address;c.push(x);var w=new m(0|a._crypto_aead_xchacha20poly1305_ietf_abytes()),B=w.address;if(c.push(B),0===a._crypto_aead_xchacha20poly1305_ietf_encrypt_detached(x,B,null,p,o,0,h,y,0,i,l,d)){var A=g({ciphertext:b,mac:w},s);return E(c),A}S(c,"invalid usage")}function Z(e){var r=[];f(e);var t=new m(0|a._crypto_aead_xchacha20poly1305_ietf_keybytes()),_=t.address;r.push(_),a._crypto_aead_xchacha20poly1305_ietf_keygen(_);var n=g(t,e);return E(r),n}function $(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_auth_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_auth_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_auth(h,n,s,0,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function ee(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_auth_hmacsha256_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_auth_hmacsha256_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_auth_hmacsha256(h,n,s,0,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function er(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_auth_hmacsha256_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_auth_hmacsha256_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}S(t,"invalid usage")}function et(e,r){var t=[];f(r);var _=null,n=0;null!=e&&(_=k(e=Y(t,e,"key")),n=e.length,t.push(_));var s=new m(208).address;if(!(0|a._crypto_auth_hmacsha256_init(s,_,n)))return E(t),s;S(t,"invalid usage")}function ea(e){var r=[];f(e);var t=new m(0|a._crypto_auth_hmacsha256_keybytes()),_=t.address;r.push(_),a._crypto_auth_hmacsha256_keygen(_);var n=g(t,e);return E(r),n}function e_(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_auth_hmacsha256_update(e,n,s)&&S(_,"invalid usage"),E(_)}function en(e,r,t){var _=[];e=Y(_,e,"tag");var n,s=0|a._crypto_auth_hmacsha256_bytes();e.length!==s&&T(_,"invalid tag length"),n=k(e),_.push(n);var c=k(r=Y(_,r,"message")),p=r.length;_.push(c),t=Y(_,t,"key");var o,h=0|a._crypto_auth_hmacsha256_keybytes();t.length!==h&&T(_,"invalid key length"),o=k(t),_.push(o);var y=!(0|a._crypto_auth_hmacsha256_verify(n,c,p,0,o));return E(_),y}function es(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_auth_hmacsha512_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_auth_hmacsha512_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_auth_hmacsha512(h,n,s,0,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function ec(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_auth_hmacsha512256_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_auth_hmacsha512256_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_auth_hmacsha512256(h,n,s,0,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function ep(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_auth_hmacsha512256_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_auth_hmacsha512256_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}S(t,"invalid usage")}function eo(e,r){var t=[];f(r);var _=null,n=0;null!=e&&(_=k(e=Y(t,e,"key")),n=e.length,t.push(_));var s=new m(416).address;if(!(0|a._crypto_auth_hmacsha512256_init(s,_,n)))return E(t),s;S(t,"invalid usage")}function eh(e){var r=[];f(e);var t=new m(0|a._crypto_auth_hmacsha512256_keybytes()),_=t.address;r.push(_),a._crypto_auth_hmacsha512256_keygen(_);var n=g(t,e);return E(r),n}function ey(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_auth_hmacsha512256_update(e,n,s)&&S(_,"invalid usage"),E(_)}function ei(e,r,t){var _=[];e=Y(_,e,"tag");var n,s=0|a._crypto_auth_hmacsha512256_bytes();e.length!==s&&T(_,"invalid tag length"),n=k(e),_.push(n);var c=k(r=Y(_,r,"message")),p=r.length;_.push(c),t=Y(_,t,"key");var o,h=0|a._crypto_auth_hmacsha512256_keybytes();t.length!==h&&T(_,"invalid key length"),o=k(t),_.push(o);var y=!(0|a._crypto_auth_hmacsha512256_verify(n,c,p,0,o));return E(_),y}function el(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_auth_hmacsha512_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_auth_hmacsha512_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}S(t,"invalid usage")}function eu(e,r){var t=[];f(r);var _=null,n=0;null!=e&&(_=k(e=Y(t,e,"key")),n=e.length,t.push(_));var s=new m(416).address;if(!(0|a._crypto_auth_hmacsha512_init(s,_,n)))return E(t),s;S(t,"invalid usage")}function ed(e){var r=[];f(e);var t=new m(0|a._crypto_auth_hmacsha512_keybytes()),_=t.address;r.push(_),a._crypto_auth_hmacsha512_keygen(_);var n=g(t,e);return E(r),n}function ev(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_auth_hmacsha512_update(e,n,s)&&S(_,"invalid usage"),E(_)}function eg(e,r,t){var _=[];e=Y(_,e,"tag");var n,s=0|a._crypto_auth_hmacsha512_bytes();e.length!==s&&T(_,"invalid tag length"),n=k(e),_.push(n);var c=k(r=Y(_,r,"message")),p=r.length;_.push(c),t=Y(_,t,"key");var o,h=0|a._crypto_auth_hmacsha512_keybytes();t.length!==h&&T(_,"invalid key length"),o=k(t),_.push(o);var y=!(0|a._crypto_auth_hmacsha512_verify(n,c,p,0,o));return E(_),y}function eb(e){var r=[];f(e);var t=new m(0|a._crypto_auth_keybytes()),_=t.address;r.push(_),a._crypto_auth_keygen(_);var n=g(t,e);return E(r),n}function ef(e,r,t){var _=[];e=Y(_,e,"tag");var n,s=0|a._crypto_auth_bytes();e.length!==s&&T(_,"invalid tag length"),n=k(e),_.push(n);var c=k(r=Y(_,r,"message")),p=r.length;_.push(c),t=Y(_,t,"key");var o,h=0|a._crypto_auth_keybytes();t.length!==h&&T(_,"invalid key length"),o=k(t),_.push(o);var y=!(0|a._crypto_auth_verify(n,c,p,0,o));return E(_),y}function em(e,r,t){var _=[];f(t),e=Y(_,e,"publicKey");var n,s=0|a._crypto_box_publickeybytes();e.length!==s&&T(_,"invalid publicKey length"),n=k(e),_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_box_secretkeybytes();r.length!==p&&T(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_box_beforenmbytes()),h=o.address;if(_.push(h),!(0|a._crypto_box_beforenm(h,n,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function ek(e,r,t){var _=[];f(t),e=Y(_,e,"publicKey");var n,s=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();e.length!==s&&T(_,"invalid publicKey length"),n=k(e),_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes();r.length!==p&&T(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_box_curve25519xchacha20poly1305_beforenmbytes()),h=o.address;if(_.push(h),!(0|a._crypto_box_curve25519xchacha20poly1305_beforenm(h,n,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function ex(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();r.length!==h&&T(s,"invalid nonce length"),o=k(r),s.push(o),t=Y(s,t,"publicKey");var y,i=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();t.length!==i&&T(s,"invalid publicKey length"),y=k(t),s.push(y),_=Y(s,_,"privateKey");var l,u=0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes();_.length!==u&&T(s,"invalid privateKey length"),l=k(_),s.push(l);var d=new m(0|p),v=d.address;s.push(v);var b=new m(0|a._crypto_box_curve25519xchacha20poly1305_macbytes()),x=b.address;if(s.push(x),!(0|a._crypto_box_curve25519xchacha20poly1305_detached(v,x,c,p,0,o,y,l))){var w=g({ciphertext:d,mac:b},n);return E(s),w}S(s,"invalid usage")}function eE(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();r.length!==o&&T(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"sharedKey");var h,y=0|a._crypto_box_curve25519xchacha20poly1305_beforenmbytes();t.length!==y&&T(n,"invalid sharedKey length"),h=k(t),n.push(h);var i=new m(0|c),l=i.address;n.push(l);var u=new m(0|a._crypto_box_curve25519xchacha20poly1305_macbytes()),d=u.address;if(n.push(d),!(0|a._crypto_box_curve25519xchacha20poly1305_detached_afternm(l,d,s,c,0,p,h))){var v=g({ciphertext:i,mac:u},_);return E(n),v}S(n,"invalid usage")}function eS(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();r.length!==h&&T(s,"invalid nonce length"),o=k(r),s.push(o),t=Y(s,t,"publicKey");var y,i=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();t.length!==i&&T(s,"invalid publicKey length"),y=k(t),s.push(y),_=Y(s,_,"privateKey");var l,u=0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes();_.length!==u&&T(s,"invalid privateKey length"),l=k(_),s.push(l);var d=new m(p+a._crypto_box_curve25519xchacha20poly1305_macbytes()|0),v=d.address;if(s.push(v),!(0|a._crypto_box_curve25519xchacha20poly1305_easy(v,c,p,0,o,y,l))){var b=g(d,n);return E(s),b}S(s,"invalid usage")}function eT(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();r.length!==o&&T(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"sharedKey");var h,y=0|a._crypto_box_curve25519xchacha20poly1305_beforenmbytes();t.length!==y&&T(n,"invalid sharedKey length"),h=k(t),n.push(h);var i=new m(c+a._crypto_box_curve25519xchacha20poly1305_macbytes()|0),l=i.address;if(n.push(l),!(0|a._crypto_box_curve25519xchacha20poly1305_easy_afternm(l,s,c,0,p,h))){var u=g(i,_);return E(n),u}S(n,"invalid usage")}function ew(e){var r=[];f(e);var t=new m(0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes()),s=n.address;r.push(s),a._crypto_box_curve25519xchacha20poly1305_keypair(_,s);var c=g({publicKey:t,privateKey:n,keyType:"curve25519"},e);return E(r),c}function eY(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"ciphertext")),o=e.length;c.push(p),r=Y(c,r,"mac");var h,y=0|a._crypto_box_curve25519xchacha20poly1305_macbytes();r.length!==y&&T(c,"invalid mac length"),h=k(r),c.push(h),t=Y(c,t,"nonce");var i,l=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();t.length!==l&&T(c,"invalid nonce length"),i=k(t),c.push(i),_=Y(c,_,"publicKey");var u,d=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();_.length!==d&&T(c,"invalid publicKey length"),u=k(_),c.push(u),n=Y(c,n,"privateKey");var v,b=0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes();n.length!==b&&T(c,"invalid privateKey length"),v=k(n),c.push(v);var x=new m(0|o),w=x.address;if(c.push(w),!(0|a._crypto_box_curve25519xchacha20poly1305_open_detached(w,p,h,o,0,i,u,v))){var B=g(x,s);return E(c),B}S(c,"incorrect key pair for the given ciphertext")}function eB(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"ciphertext")),p=e.length;s.push(c),r=Y(s,r,"mac");var o,h=0|a._crypto_box_curve25519xchacha20poly1305_macbytes();r.length!==h&&T(s,"invalid mac length"),o=k(r),s.push(o),t=Y(s,t,"nonce");var y,i=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();t.length!==i&&T(s,"invalid nonce length"),y=k(t),s.push(y),_=Y(s,_,"sharedKey");var l,u=0|a._crypto_box_curve25519xchacha20poly1305_beforenmbytes();_.length!==u&&T(s,"invalid sharedKey length"),l=k(_),s.push(l);var d=new m(0|p),v=d.address;if(s.push(v),!(0|a._crypto_box_curve25519xchacha20poly1305_open_detached_afternm(v,c,o,p,0,y,l))){var b=g(d,n);return E(s),b}S(s,"incorrect secret key for the given ciphertext")}function eA(e,r,t,_,n){var s=[];f(n),e=Y(s,e,"ciphertext");var c,p=a._crypto_box_curve25519xchacha20poly1305_macbytes(),o=e.length;o<p&&T(s,"ciphertext is too short"),c=k(e),s.push(c),r=Y(s,r,"nonce");var h,y=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();r.length!==y&&T(s,"invalid nonce length"),h=k(r),s.push(h),t=Y(s,t,"publicKey");var i,l=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();t.length!==l&&T(s,"invalid publicKey length"),i=k(t),s.push(i),_=Y(s,_,"privateKey");var u,d=0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes();_.length!==d&&T(s,"invalid privateKey length"),u=k(_),s.push(u);var v=new m(o-a._crypto_box_curve25519xchacha20poly1305_macbytes()|0),b=v.address;if(s.push(b),!(0|a._crypto_box_curve25519xchacha20poly1305_open_easy(b,c,o,0,h,i,u))){var x=g(v,n);return E(s),x}S(s,"incorrect key pair for the given ciphertext")}function eK(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"ciphertext")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_box_curve25519xchacha20poly1305_noncebytes();r.length!==o&&T(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"sharedKey");var h,y=0|a._crypto_box_curve25519xchacha20poly1305_beforenmbytes();t.length!==y&&T(n,"invalid sharedKey length"),h=k(t),n.push(h);var i=new m(c-a._crypto_box_curve25519xchacha20poly1305_macbytes()|0),l=i.address;if(n.push(l),!(0|a._crypto_box_curve25519xchacha20poly1305_open_easy_afternm(l,s,c,0,p,h))){var u=g(i,_);return E(n),u}S(n,"incorrect secret key for the given ciphertext")}function eI(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"publicKey");var c,p=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();r.length!==p&&T(_,"invalid publicKey length"),c=k(r),_.push(c);var o=new m(s+a._crypto_box_curve25519xchacha20poly1305_sealbytes()|0),h=o.address;_.push(h),a._crypto_box_curve25519xchacha20poly1305_seal(h,n,s,0,c);var y=g(o,t);return E(_),y}function eM(e,r,t,_){var n=[];f(_),e=Y(n,e,"ciphertext");var s,c=a._crypto_box_curve25519xchacha20poly1305_sealbytes(),p=e.length;p<c&&T(n,"ciphertext is too short"),s=k(e),n.push(s),r=Y(n,r,"publicKey");var o,h=0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes();r.length!==h&&T(n,"invalid publicKey length"),o=k(r),n.push(o),t=Y(n,t,"secretKey");var y,i=0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes();t.length!==i&&T(n,"invalid secretKey length"),y=k(t),n.push(y);var l=new m(p-a._crypto_box_curve25519xchacha20poly1305_sealbytes()|0),u=l.address;n.push(u),a._crypto_box_curve25519xchacha20poly1305_seal_open(u,s,p,0,o,y);var d=g(l,_);return E(n),d}function eN(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_box_curve25519xchacha20poly1305_seedbytes();e.length!==n&&T(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_box_curve25519xchacha20poly1305_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_box_curve25519xchacha20poly1305_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_box_curve25519xchacha20poly1305_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"x25519"};return E(t),h}S(t,"invalid usage")}function eL(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_box_noncebytes();r.length!==h&&T(s,"invalid nonce length"),o=k(r),s.push(o),t=Y(s,t,"publicKey");var y,i=0|a._crypto_box_publickeybytes();t.length!==i&&T(s,"invalid publicKey length"),y=k(t),s.push(y),_=Y(s,_,"privateKey");var l,u=0|a._crypto_box_secretkeybytes();_.length!==u&&T(s,"invalid privateKey length"),l=k(_),s.push(l);var d=new m(0|p),v=d.address;s.push(v);var b=new m(0|a._crypto_box_macbytes()),x=b.address;if(s.push(x),!(0|a._crypto_box_detached(v,x,c,p,0,o,y,l))){var w=g({ciphertext:d,mac:b},n);return E(s),w}S(s,"invalid usage")}function eO(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_box_noncebytes();r.length!==h&&T(s,"invalid nonce length"),o=k(r),s.push(o),t=Y(s,t,"publicKey");var y,i=0|a._crypto_box_publickeybytes();t.length!==i&&T(s,"invalid publicKey length"),y=k(t),s.push(y),_=Y(s,_,"privateKey");var l,u=0|a._crypto_box_secretkeybytes();_.length!==u&&T(s,"invalid privateKey length"),l=k(_),s.push(l);var d=new m(p+a._crypto_box_macbytes()|0),v=d.address;if(s.push(v),!(0|a._crypto_box_easy(v,c,p,0,o,y,l))){var b=g(d,n);return E(s),b}S(s,"invalid usage")}function eC(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_box_noncebytes();r.length!==o&&T(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"sharedKey");var h,y=0|a._crypto_box_beforenmbytes();t.length!==y&&T(n,"invalid sharedKey length"),h=k(t),n.push(h);var i=new m(c+a._crypto_box_macbytes()|0),l=i.address;if(n.push(l),!(0|a._crypto_box_easy_afternm(l,s,c,0,p,h))){var u=g(i,_);return E(n),u}S(n,"invalid usage")}function eU(e){var r=[];f(e);var t=new m(0|a._crypto_box_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_box_secretkeybytes()),s=n.address;if(r.push(s),!(0|a._crypto_box_keypair(_,s))){var c={publicKey:g(t,e),privateKey:g(n,e),keyType:"x25519"};return E(r),c}S(r,"internal error")}function eP(e,r,t,_,n,s){var c=[];f(s);var p=k(e=Y(c,e,"ciphertext")),o=e.length;c.push(p),r=Y(c,r,"mac");var h,y=0|a._crypto_box_macbytes();r.length!==y&&T(c,"invalid mac length"),h=k(r),c.push(h),t=Y(c,t,"nonce");var i,l=0|a._crypto_box_noncebytes();t.length!==l&&T(c,"invalid nonce length"),i=k(t),c.push(i),_=Y(c,_,"publicKey");var u,d=0|a._crypto_box_publickeybytes();_.length!==d&&T(c,"invalid publicKey length"),u=k(_),c.push(u),n=Y(c,n,"privateKey");var v,b=0|a._crypto_box_secretkeybytes();n.length!==b&&T(c,"invalid privateKey length"),v=k(n),c.push(v);var x=new m(0|o),w=x.address;if(c.push(w),!(0|a._crypto_box_open_detached(w,p,h,o,0,i,u,v))){var B=g(x,s);return E(c),B}S(c,"incorrect key pair for the given ciphertext")}function eR(e,r,t,_,n){var s=[];f(n),e=Y(s,e,"ciphertext");var c,p=a._crypto_box_macbytes(),o=e.length;o<p&&T(s,"ciphertext is too short"),c=k(e),s.push(c),r=Y(s,r,"nonce");var h,y=0|a._crypto_box_noncebytes();r.length!==y&&T(s,"invalid nonce length"),h=k(r),s.push(h),t=Y(s,t,"publicKey");var i,l=0|a._crypto_box_publickeybytes();t.length!==l&&T(s,"invalid publicKey length"),i=k(t),s.push(i),_=Y(s,_,"privateKey");var u,d=0|a._crypto_box_secretkeybytes();_.length!==d&&T(s,"invalid privateKey length"),u=k(_),s.push(u);var v=new m(o-a._crypto_box_macbytes()|0),b=v.address;if(s.push(b),!(0|a._crypto_box_open_easy(b,c,o,0,h,i,u))){var x=g(v,n);return E(s),x}S(s,"incorrect key pair for the given ciphertext")}function eX(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"ciphertext")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_box_noncebytes();r.length!==o&&T(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"sharedKey");var h,y=0|a._crypto_box_beforenmbytes();t.length!==y&&T(n,"invalid sharedKey length"),h=k(t),n.push(h);var i=new m(c-a._crypto_box_macbytes()|0),l=i.address;if(n.push(l),!(0|a._crypto_box_open_easy_afternm(l,s,c,0,p,h))){var u=g(i,_);return E(n),u}S(n,"incorrect secret key for the given ciphertext")}function eD(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"publicKey");var c,p=0|a._crypto_box_publickeybytes();r.length!==p&&T(_,"invalid publicKey length"),c=k(r),_.push(c);var o=new m(s+a._crypto_box_sealbytes()|0),h=o.address;if(_.push(h),!(0|a._crypto_box_seal(h,n,s,0,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function eG(e,r,t,_){var n=[];f(_),e=Y(n,e,"ciphertext");var s,c=a._crypto_box_sealbytes(),p=e.length;p<c&&T(n,"ciphertext is too short"),s=k(e),n.push(s),r=Y(n,r,"publicKey");var o,h=0|a._crypto_box_publickeybytes();r.length!==h&&T(n,"invalid publicKey length"),o=k(r),n.push(o),t=Y(n,t,"privateKey");var y,i=0|a._crypto_box_secretkeybytes();t.length!==i&&T(n,"invalid privateKey length"),y=k(t),n.push(y);var l=new m(p-a._crypto_box_sealbytes()|0),u=l.address;if(n.push(u),!(0|a._crypto_box_seal_open(u,s,p,0,o,y))){var d=g(l,_);return E(n),d}S(n,"incorrect key pair for the given ciphertext")}function eF(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_box_seedbytes();e.length!==n&&T(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_box_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_box_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_box_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"x25519"};return E(t),h}S(t,"invalid usage")}function eV(e,r,t){var _=[];f(t),e=Y(_,e,"p");var n,s=0|a._crypto_core_ed25519_bytes();e.length!==s&&T(_,"invalid p length"),n=k(e),_.push(n),r=Y(_,r,"q");var c,p=0|a._crypto_core_ed25519_bytes();r.length!==p&&T(_,"invalid q length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ed25519_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_core_ed25519_add(h,n,c))){var y=g(o,t);return E(_),y}S(_,"input is an invalid element")}function eq(e,r){var t=[];f(r);var _=k(e=Y(t,e,"r"));e.length,t.push(_);var n=new m(0|a._crypto_core_ed25519_bytes()),s=n.address;if(t.push(s),!(0|a._crypto_core_ed25519_from_hash(s,_))){var c=g(n,r);return E(t),c}S(t,"invalid usage")}function eH(e,r){var t=[];f(r);var _=k(e=Y(t,e,"r"));e.length,t.push(_);var n=new m(0|a._crypto_core_ed25519_bytes()),s=n.address;if(t.push(s),!(0|a._crypto_core_ed25519_from_uniform(s,_))){var c=g(n,r);return E(t),c}S(t,"invalid usage")}function ez(e,r){var t=[];f(r),e=Y(t,e,"repr");var _,n=0|a._crypto_core_ed25519_bytes();e.length!==n&&T(t,"invalid repr length"),_=k(e),t.push(_);var s=1==(0|a._crypto_core_ed25519_is_valid_point(_));return E(t),s}function eW(e){var r=[];f(e);var t=new m(0|a._crypto_core_ed25519_bytes()),_=t.address;r.push(_),a._crypto_core_ed25519_random(_);var n=g(t,e);return E(r),n}function ej(e,r,t){var _=[];f(t),e=Y(_,e,"x");var n,s=0|a._crypto_core_ed25519_scalarbytes();e.length!==s&&T(_,"invalid x length"),n=k(e),_.push(n),r=Y(_,r,"y");var c,p=0|a._crypto_core_ed25519_scalarbytes();r.length!==p&&T(_,"invalid y length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ed25519_scalarbytes()),h=o.address;_.push(h),a._crypto_core_ed25519_scalar_add(h,n,c);var y=g(o,t);return E(_),y}function eJ(e,r){var t=[];f(r),e=Y(t,e,"s");var _,n=0|a._crypto_core_ed25519_scalarbytes();e.length!==n&&T(t,"invalid s length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ed25519_scalarbytes()),c=s.address;t.push(c),a._crypto_core_ed25519_scalar_complement(c,_);var p=g(s,r);return E(t),p}function eQ(e,r){var t=[];f(r),e=Y(t,e,"s");var _,n=0|a._crypto_core_ed25519_scalarbytes();e.length!==n&&T(t,"invalid s length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ed25519_scalarbytes()),c=s.address;if(t.push(c),!(0|a._crypto_core_ed25519_scalar_invert(c,_))){var p=g(s,r);return E(t),p}S(t,"invalid reciprocate")}function eZ(e,r,t){var _=[];f(t),e=Y(_,e,"x");var n,s=0|a._crypto_core_ed25519_scalarbytes();e.length!==s&&T(_,"invalid x length"),n=k(e),_.push(n),r=Y(_,r,"y");var c,p=0|a._crypto_core_ed25519_scalarbytes();r.length!==p&&T(_,"invalid y length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ed25519_scalarbytes()),h=o.address;_.push(h),a._crypto_core_ed25519_scalar_mul(h,n,c);var y=g(o,t);return E(_),y}function e$(e,r){var t=[];f(r),e=Y(t,e,"s");var _,n=0|a._crypto_core_ed25519_scalarbytes();e.length!==n&&T(t,"invalid s length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ed25519_scalarbytes()),c=s.address;t.push(c),a._crypto_core_ed25519_scalar_negate(c,_);var p=g(s,r);return E(t),p}function e0(e){var r=[];f(e);var t=new m(0|a._crypto_core_ed25519_scalarbytes()),_=t.address;r.push(_),a._crypto_core_ed25519_scalar_random(_);var n=g(t,e);return E(r),n}function e5(e,r){var t=[];f(r),e=Y(t,e,"sample");var _,n=0|a._crypto_core_ed25519_nonreducedscalarbytes();e.length!==n&&T(t,"invalid sample length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ed25519_scalarbytes()),c=s.address;t.push(c),a._crypto_core_ed25519_scalar_reduce(c,_);var p=g(s,r);return E(t),p}function e2(e,r,t){var _=[];f(t),e=Y(_,e,"x");var n,s=0|a._crypto_core_ed25519_scalarbytes();e.length!==s&&T(_,"invalid x length"),n=k(e),_.push(n),r=Y(_,r,"y");var c,p=0|a._crypto_core_ed25519_scalarbytes();r.length!==p&&T(_,"invalid y length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ed25519_scalarbytes()),h=o.address;_.push(h),a._crypto_core_ed25519_scalar_sub(h,n,c);var y=g(o,t);return E(_),y}function e1(e,r,t){var _=[];f(t),e=Y(_,e,"p");var n,s=0|a._crypto_core_ed25519_bytes();e.length!==s&&T(_,"invalid p length"),n=k(e),_.push(n),r=Y(_,r,"q");var c,p=0|a._crypto_core_ed25519_bytes();r.length!==p&&T(_,"invalid q length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ed25519_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_core_ed25519_sub(h,n,c))){var y=g(o,t);return E(_),y}S(_,"input is an invalid element")}function e3(e,r,t,_){var n=[];f(_),e=Y(n,e,"input");var s,c=0|a._crypto_core_hchacha20_inputbytes();e.length!==c&&T(n,"invalid input length"),s=k(e),n.push(s),r=Y(n,r,"privateKey");var p,o=0|a._crypto_core_hchacha20_keybytes();r.length!==o&&T(n,"invalid privateKey length"),p=k(r),n.push(p);var h=null;null!=t&&(h=k(t=Y(n,t,"constant")),t.length,n.push(h));var y=new m(0|a._crypto_core_hchacha20_outputbytes()),i=y.address;if(n.push(i),!(0|a._crypto_core_hchacha20(i,s,p,h))){var l=g(y,_);return E(n),l}S(n,"invalid usage")}function e6(e,r,t,_){var n=[];f(_),e=Y(n,e,"input");var s,c=0|a._crypto_core_hsalsa20_inputbytes();e.length!==c&&T(n,"invalid input length"),s=k(e),n.push(s),r=Y(n,r,"privateKey");var p,o=0|a._crypto_core_hsalsa20_keybytes();r.length!==o&&T(n,"invalid privateKey length"),p=k(r),n.push(p);var h=null;null!=t&&(h=k(t=Y(n,t,"constant")),t.length,n.push(h));var y=new m(0|a._crypto_core_hsalsa20_outputbytes()),i=y.address;if(n.push(i),!(0|a._crypto_core_hsalsa20(i,s,p,h))){var l=g(y,_);return E(n),l}S(n,"invalid usage")}function e9(e,r,t){var _=[];f(t),e=Y(_,e,"p");var n,s=0|a._crypto_core_ristretto255_bytes();e.length!==s&&T(_,"invalid p length"),n=k(e),_.push(n),r=Y(_,r,"q");var c,p=0|a._crypto_core_ristretto255_bytes();r.length!==p&&T(_,"invalid q length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ristretto255_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_core_ristretto255_add(h,n,c))){var y=g(o,t);return E(_),y}S(_,"input is an invalid element")}function e8(e,r){var t=[];f(r);var _=k(e=Y(t,e,"r"));e.length,t.push(_);var n=new m(0|a._crypto_core_ristretto255_bytes()),s=n.address;if(t.push(s),!(0|a._crypto_core_ristretto255_from_hash(s,_))){var c=g(n,r);return E(t),c}S(t,"invalid usage")}function e4(e,r){var t=[];f(r),e=Y(t,e,"repr");var _,n=0|a._crypto_core_ristretto255_bytes();e.length!==n&&T(t,"invalid repr length"),_=k(e),t.push(_);var s=1==(0|a._crypto_core_ristretto255_is_valid_point(_));return E(t),s}function e7(e){var r=[];f(e);var t=new m(0|a._crypto_core_ristretto255_bytes()),_=t.address;r.push(_),a._crypto_core_ristretto255_random(_);var n=g(t,e);return E(r),n}function re(e,r,t){var _=[];f(t),e=Y(_,e,"x");var n,s=0|a._crypto_core_ristretto255_scalarbytes();e.length!==s&&T(_,"invalid x length"),n=k(e),_.push(n),r=Y(_,r,"y");var c,p=0|a._crypto_core_ristretto255_scalarbytes();r.length!==p&&T(_,"invalid y length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ristretto255_scalarbytes()),h=o.address;_.push(h),a._crypto_core_ristretto255_scalar_add(h,n,c);var y=g(o,t);return E(_),y}function rr(e,r){var t=[];f(r),e=Y(t,e,"s");var _,n=0|a._crypto_core_ristretto255_scalarbytes();e.length!==n&&T(t,"invalid s length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ristretto255_scalarbytes()),c=s.address;t.push(c),a._crypto_core_ristretto255_scalar_complement(c,_);var p=g(s,r);return E(t),p}function rt(e,r){var t=[];f(r),e=Y(t,e,"s");var _,n=0|a._crypto_core_ristretto255_scalarbytes();e.length!==n&&T(t,"invalid s length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ristretto255_scalarbytes()),c=s.address;if(t.push(c),!(0|a._crypto_core_ristretto255_scalar_invert(c,_))){var p=g(s,r);return E(t),p}S(t,"invalid reciprocate")}function ra(e,r,t){var _=[];f(t),e=Y(_,e,"x");var n,s=0|a._crypto_core_ristretto255_scalarbytes();e.length!==s&&T(_,"invalid x length"),n=k(e),_.push(n),r=Y(_,r,"y");var c,p=0|a._crypto_core_ristretto255_scalarbytes();r.length!==p&&T(_,"invalid y length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ristretto255_scalarbytes()),h=o.address;_.push(h),a._crypto_core_ristretto255_scalar_mul(h,n,c);var y=g(o,t);return E(_),y}function r_(e,r){var t=[];f(r),e=Y(t,e,"s");var _,n=0|a._crypto_core_ristretto255_scalarbytes();e.length!==n&&T(t,"invalid s length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ristretto255_scalarbytes()),c=s.address;t.push(c),a._crypto_core_ristretto255_scalar_negate(c,_);var p=g(s,r);return E(t),p}function rn(e){var r=[];f(e);var t=new m(0|a._crypto_core_ristretto255_scalarbytes()),_=t.address;r.push(_),a._crypto_core_ristretto255_scalar_random(_);var n=g(t,e);return E(r),n}function rs(e,r){var t=[];f(r),e=Y(t,e,"sample");var _,n=0|a._crypto_core_ristretto255_nonreducedscalarbytes();e.length!==n&&T(t,"invalid sample length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ristretto255_scalarbytes()),c=s.address;t.push(c),a._crypto_core_ristretto255_scalar_reduce(c,_);var p=g(s,r);return E(t),p}function rc(e,r,t){var _=[];f(t),e=Y(_,e,"x");var n,s=0|a._crypto_core_ristretto255_scalarbytes();e.length!==s&&T(_,"invalid x length"),n=k(e),_.push(n),r=Y(_,r,"y");var c,p=0|a._crypto_core_ristretto255_scalarbytes();r.length!==p&&T(_,"invalid y length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ristretto255_scalarbytes()),h=o.address;_.push(h),a._crypto_core_ristretto255_scalar_sub(h,n,c);var y=g(o,t);return E(_),y}function rp(e,r,t){var _=[];f(t),e=Y(_,e,"p");var n,s=0|a._crypto_core_ristretto255_bytes();e.length!==s&&T(_,"invalid p length"),n=k(e),_.push(n),r=Y(_,r,"q");var c,p=0|a._crypto_core_ristretto255_bytes();r.length!==p&&T(_,"invalid q length"),c=k(r),_.push(c);var o=new m(0|a._crypto_core_ristretto255_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_core_ristretto255_sub(h,n,c))){var y=g(o,t);return E(_),y}S(_,"input is an invalid element")}function ro(e,r,t,_){var n=[];f(_),w(n,e,"hash_length"),("number"!=typeof e||(0|e)!==e||e<0)&&T(n,"hash_length must be an unsigned integer");var s=k(r=Y(n,r,"message")),c=r.length;n.push(s);var p=null,o=0;null!=t&&(p=k(t=Y(n,t,"key")),o=t.length,n.push(p));var h=new m(e|=0),y=h.address;if(n.push(y),!(0|a._crypto_generichash(y,e,s,c,0,p,o))){var i=g(h,_);return E(n),i}S(n,"invalid usage")}function rh(e,r,t,_,n){var s=[];f(n),w(s,e,"subkey_len"),("number"!=typeof e||(0|e)!==e||e<0)&&T(s,"subkey_len must be an unsigned integer");var c=null,p=0;null!=r&&(c=k(r=Y(s,r,"key")),p=r.length,s.push(c));var o=null,h=0;null!=t&&(t=Y(s,t,"id"),h=0|a._crypto_generichash_blake2b_saltbytes(),t.length!==h&&T(s,"invalid id length"),o=k(t),s.push(o));var y=null,i=0;null!=_&&(_=Y(s,_,"ctx"),i=0|a._crypto_generichash_blake2b_personalbytes(),_.length!==i&&T(s,"invalid ctx length"),y=k(_),s.push(y));var l=new m(0|e),u=l.address;if(s.push(u),!(0|a._crypto_generichash_blake2b_salt_personal(u,e,null,0,0,c,p,o,y))){var d=g(l,n);return E(s),d}S(s,"invalid usage")}function ry(e,r,t){var _=[];f(t),w(_,e,"state_address"),w(_,r,"hash_length"),("number"!=typeof r||(0|r)!==r||r<0)&&T(_,"hash_length must be an unsigned integer");var n=new m(r|=0),s=n.address;if(_.push(s),!(0|a._crypto_generichash_final(e,s,r))){var c=(a._free(e),g(n,t));return E(_),c}S(_,"invalid usage")}function ri(e,r,t){var _=[];f(t);var n=null,s=0;null!=e&&(n=k(e=Y(_,e,"key")),s=e.length,_.push(n)),w(_,r,"hash_length"),("number"!=typeof r||(0|r)!==r||r<0)&&T(_,"hash_length must be an unsigned integer");var c=new m(357).address;if(!(0|a._crypto_generichash_init(c,n,s,r)))return E(_),c;S(_,"invalid usage")}function rl(e){var r=[];f(e);var t=new m(0|a._crypto_generichash_keybytes()),_=t.address;r.push(_),a._crypto_generichash_keygen(_);var n=g(t,e);return E(r),n}function ru(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_generichash_update(e,n,s)&&S(_,"invalid usage"),E(_)}function rd(e,r){var t=[];f(r);var _=k(e=Y(t,e,"message")),n=e.length;t.push(_);var s=new m(0|a._crypto_hash_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_hash(c,_,n,0))){var p=g(s,r);return E(t),p}S(t,"invalid usage")}function rv(e,r){var t=[];f(r);var _=k(e=Y(t,e,"message")),n=e.length;t.push(_);var s=new m(0|a._crypto_hash_sha256_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_hash_sha256(c,_,n,0))){var p=g(s,r);return E(t),p}S(t,"invalid usage")}function rg(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_hash_sha256_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_hash_sha256_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}S(t,"invalid usage")}function rb(e){var r=[];f(e);var t=new m(104).address;if(!(0|a._crypto_hash_sha256_init(t)))return E(r),t;S(r,"invalid usage")}function rf(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_hash_sha256_update(e,n,s)&&S(_,"invalid usage"),E(_)}function rm(e,r){var t=[];f(r);var _=k(e=Y(t,e,"message")),n=e.length;t.push(_);var s=new m(0|a._crypto_hash_sha3256_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_hash_sha3256(c,_,n))){var p=g(s,r);return E(t),p}S(t,"invalid usage")}function rk(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_hash_sha3256_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_hash_sha3256_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}S(t,"invalid usage")}function rx(e){var r=[];f(e);var t=new m(256).address;if(!(0|a._crypto_hash_sha3256_init(t)))return E(r),t;S(r,"invalid usage")}function rE(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_hash_sha3256_update(e,n,s)&&S(_,"invalid usage"),E(_)}function rS(e,r){var t=[];f(r);var _=k(e=Y(t,e,"message")),n=e.length;t.push(_);var s=new m(0|a._crypto_hash_sha3512_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_hash_sha3512(c,_,n))){var p=g(s,r);return E(t),p}S(t,"invalid usage")}function rT(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_hash_sha3512_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_hash_sha3512_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}S(t,"invalid usage")}function rw(e){var r=[];f(e);var t=new m(256).address;if(!(0|a._crypto_hash_sha3512_init(t)))return E(r),t;S(r,"invalid usage")}function rY(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_hash_sha3512_update(e,n,s)&&S(_,"invalid usage"),E(_)}function rB(e,r){var t=[];f(r);var _=k(e=Y(t,e,"message")),n=e.length;t.push(_);var s=new m(0|a._crypto_hash_sha512_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_hash_sha512(c,_,n,0))){var p=g(s,r);return E(t),p}S(t,"invalid usage")}function rA(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_hash_sha512_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_hash_sha512_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}S(t,"invalid usage")}function rK(e){var r=[];f(e);var t=new m(208).address;if(!(0|a._crypto_hash_sha512_init(t)))return E(r),t;S(r,"invalid usage")}function rI(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_hash_sha512_update(e,n,s)&&S(_,"invalid usage"),E(_)}function rM(e,r,t){var _=[];f(t),e=Y(_,e,"input");var n,s=0|a._crypto_ipcrypt_bytes();e.length!==s&&T(_,"invalid input length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_ipcrypt_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_ipcrypt_bytes()),h=o.address;_.push(h),a._crypto_ipcrypt_decrypt(h,n,c);var y=g(o,t);return E(_),y}function rN(e,r,t){var _=[];f(t),e=Y(_,e,"input");var n,s=0|a._crypto_ipcrypt_bytes();e.length!==s&&T(_,"invalid input length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_ipcrypt_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_ipcrypt_bytes()),h=o.address;_.push(h),a._crypto_ipcrypt_encrypt(h,n,c);var y=g(o,t);return E(_),y}function rL(e){var r=[];f(e);var t=new m(0|a._crypto_ipcrypt_keybytes()),_=t.address;r.push(_),a._crypto_ipcrypt_keygen(_);var n=g(t,e);return E(r),n}function rO(e,r,t){var _=[];f(t),e=Y(_,e,"input");var n,s=0|a._crypto_ipcrypt_nd_outputbytes();e.length!==s&&T(_,"invalid input length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_ipcrypt_nd_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_ipcrypt_nd_inputbytes()),h=o.address;_.push(h),a._crypto_ipcrypt_nd_decrypt(h,n,c);var y=g(o,t);return E(_),y}function rC(e,r,t,_){var n=[];f(_),e=Y(n,e,"input");var s,c=0|a._crypto_ipcrypt_nd_inputbytes();e.length!==c&&T(n,"invalid input length"),s=k(e),n.push(s),r=Y(n,r,"tweak");var p,o=0|a._crypto_ipcrypt_nd_tweakbytes();r.length!==o&&T(n,"invalid tweak length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_ipcrypt_nd_keybytes();t.length!==y&&T(n,"invalid key length"),h=k(t),n.push(h);var i=new m(0|a._crypto_ipcrypt_nd_outputbytes()),l=i.address;n.push(l),a._crypto_ipcrypt_nd_encrypt(l,s,p,h);var u=g(i,_);return E(n),u}function rU(e){var r=[];f(e);var t=new m(0|a._crypto_ipcrypt_nd_keybytes()),_=t.address;r.push(_),a._crypto_ipcrypt_nd_keygen(_);var n=g(t,e);return E(r),n}function rP(e,r,t){var _=[];f(t),e=Y(_,e,"input");var n,s=0|a._crypto_ipcrypt_ndx_outputbytes();e.length!==s&&T(_,"invalid input length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_ipcrypt_ndx_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_ipcrypt_ndx_inputbytes()),h=o.address;_.push(h),a._crypto_ipcrypt_ndx_decrypt(h,n,c);var y=g(o,t);return E(_),y}function rR(e,r,t,_){var n=[];f(_),e=Y(n,e,"input");var s,c=0|a._crypto_ipcrypt_ndx_inputbytes();e.length!==c&&T(n,"invalid input length"),s=k(e),n.push(s),r=Y(n,r,"tweak");var p,o=0|a._crypto_ipcrypt_ndx_tweakbytes();r.length!==o&&T(n,"invalid tweak length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_ipcrypt_ndx_keybytes();t.length!==y&&T(n,"invalid key length"),h=k(t),n.push(h);var i=new m(0|a._crypto_ipcrypt_ndx_outputbytes()),l=i.address;n.push(l),a._crypto_ipcrypt_ndx_encrypt(l,s,p,h);var u=g(i,_);return E(n),u}function rX(e){var r=[];f(e);var t=new m(0|a._crypto_ipcrypt_ndx_keybytes()),_=t.address;r.push(_),a._crypto_ipcrypt_ndx_keygen(_);var n=g(t,e);return E(r),n}function rD(e,r,t){var _=[];f(t),e=Y(_,e,"input");var n,s=0|a._crypto_ipcrypt_pfx_bytes();e.length!==s&&T(_,"invalid input length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_ipcrypt_pfx_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_ipcrypt_pfx_bytes()),h=o.address;_.push(h),a._crypto_ipcrypt_pfx_decrypt(h,n,c);var y=g(o,t);return E(_),y}function rG(e,r,t){var _=[];f(t),e=Y(_,e,"input");var n,s=0|a._crypto_ipcrypt_pfx_bytes();e.length!==s&&T(_,"invalid input length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_ipcrypt_pfx_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_ipcrypt_pfx_bytes()),h=o.address;_.push(h),a._crypto_ipcrypt_pfx_encrypt(h,n,c);var y=g(o,t);return E(_),y}function rF(e){var r=[];f(e);var t=new m(0|a._crypto_ipcrypt_pfx_keybytes()),_=t.address;r.push(_),a._crypto_ipcrypt_pfx_keygen(_);var n=g(t,e);return E(r),n}function rV(e,r,t,_,n){var s=[];f(n),w(s,e,"subkey_len"),("number"!=typeof e||(0|e)!==e||e<0)&&T(s,"subkey_len must be an unsigned integer"),w(s,r,"subkey_id");var c,p=0;if("bigint"==typeof r&&r>=BigInt(0)){let e=r>>BigInt(32);e>BigInt(0xffffffff)&&T(s,"subkey_id cannot be more than 64 bits"),p=Number(e),c=Number(r&BigInt(0xffffffff))}else"number"==typeof r&&(0|r)===r&&r>=0?c=r:T(s,"subkey_id must be an unsigned integer or bigint");"string"!=typeof t&&T(s,"ctx must be a string"),(t=y(t+"\0")).length-1!==a._crypto_kdf_contextbytes()&&T(s,"invalid ctx length");var o=k(t);t.length,s.push(o),_=Y(s,_,"key");var h,i=0|a._crypto_kdf_keybytes();_.length!==i&&T(s,"invalid key length"),h=k(_),s.push(h);var l=new m(0|e),u=l.address;s.push(u),a._crypto_kdf_derive_from_key(u,e,c,p,o,h);var d=g(l,n);return E(s),d}function rq(e){var r=[];f(e);var t=new m(0|a._crypto_kdf_keybytes()),_=t.address;r.push(_),a._crypto_kdf_keygen(_);var n=g(t,e);return E(r),n}function rH(e,r,t){var _=[];f(t),e=Y(_,e,"ciphertext");var n,s=0|a._crypto_kem_ciphertextbytes();e.length!==s&&T(_,"invalid ciphertext length"),n=k(e),_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_kem_secretkeybytes();r.length!==p&&T(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_kem_sharedsecretbytes()),h=o.address;if(_.push(h),!(0|a._crypto_kem_dec(h,n,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function rz(e,r){var t=[];f(r),e=Y(t,e,"publicKey");var _,n=0|a._crypto_kem_publickeybytes();e.length!==n&&T(t,"invalid publicKey length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kem_ciphertextbytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kem_sharedsecretbytes()),o=p.address;if(t.push(o),!(0|a._crypto_kem_enc(c,o,_))){var h=g({ciphertext:s,sharedSecret:p},r);return E(t),h}S(t,"invalid usage")}function rW(e){var r=[];f(e);var t=new m(0|a._crypto_kem_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_kem_secretkeybytes()),s=n.address;if(r.push(s),!(0|a._crypto_kem_keypair(_,s))){var c={publicKey:g(t,e),privateKey:g(n,e),keyType:"xwing"};return E(r),c}S(r,"internal error")}function rj(e,r,t){var _=[];f(t),e=Y(_,e,"ciphertext");var n,s=0|a._crypto_kem_mlkem768_ciphertextbytes();e.length!==s&&T(_,"invalid ciphertext length"),n=k(e),_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_kem_mlkem768_secretkeybytes();r.length!==p&&T(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_kem_mlkem768_sharedsecretbytes()),h=o.address;if(_.push(h),!(0|a._crypto_kem_mlkem768_dec(h,n,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function rJ(e,r){var t=[];f(r),e=Y(t,e,"publicKey");var _,n=0|a._crypto_kem_mlkem768_publickeybytes();e.length!==n&&T(t,"invalid publicKey length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kem_mlkem768_ciphertextbytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kem_mlkem768_sharedsecretbytes()),o=p.address;if(t.push(o),!(0|a._crypto_kem_mlkem768_enc(c,o,_))){var h=g({ciphertext:s,sharedSecret:p},r);return E(t),h}S(t,"invalid usage")}function rQ(e,r,t){var _=[];f(t),e=Y(_,e,"publicKey");var n,s,c=0|a._crypto_kem_mlkem768_publickeybytes();e.length!==c&&T(_,"invalid publicKey length"),n=k(e),_.push(n),32!==(r=Y(_,r,"seed")).length&&T(_,"invalid seed length"),s=k(r),_.push(s);var p=new m(0|a._crypto_kem_mlkem768_ciphertextbytes()),o=p.address;_.push(o);var h=new m(0|a._crypto_kem_mlkem768_sharedsecretbytes()),y=h.address;if(_.push(y),!(0|a._crypto_kem_mlkem768_enc_deterministic(o,y,n,s))){var i=g({ciphertext:p,sharedSecret:h},t);return E(_),i}S(_,"invalid usage")}function rZ(e){var r=[];f(e);var t=new m(0|a._crypto_kem_mlkem768_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_kem_mlkem768_secretkeybytes()),s=n.address;if(r.push(s),!(0|a._crypto_kem_mlkem768_keypair(_,s))){var c={publicKey:g(t,e),privateKey:g(n,e),keyType:"ml-kem-768"};return E(r),c}S(r,"internal error")}function r$(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_kem_mlkem768_seedbytes();e.length!==n&&T(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kem_mlkem768_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kem_mlkem768_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_kem_mlkem768_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"ml-kem-768"};return E(t),h}S(t,"invalid usage")}function r0(){var e=a._crypto_kem_primitive(),r=a.UTF8ToString(e);return E([]),r}function r5(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_kem_seedbytes();e.length!==n&&T(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kem_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kem_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_kem_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"xwing"};return E(t),h}S(t,"invalid usage")}function r2(e,r,t){var _=[];f(t),e=Y(_,e,"ciphertext");var n,s=0|a._crypto_kem_xwing_ciphertextbytes();e.length!==s&&T(_,"invalid ciphertext length"),n=k(e),_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_kem_xwing_secretkeybytes();r.length!==p&&T(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_kem_xwing_sharedsecretbytes()),h=o.address;if(_.push(h),!(0|a._crypto_kem_xwing_dec(h,n,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function r1(e,r){var t=[];f(r),e=Y(t,e,"publicKey");var _,n=0|a._crypto_kem_xwing_publickeybytes();e.length!==n&&T(t,"invalid publicKey length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kem_xwing_ciphertextbytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kem_xwing_sharedsecretbytes()),o=p.address;if(t.push(o),!(0|a._crypto_kem_xwing_enc(c,o,_))){var h=g({ciphertext:s,sharedSecret:p},r);return E(t),h}S(t,"invalid usage")}function r3(e,r,t){var _=[];f(t),e=Y(_,e,"publicKey");var n,s,c=0|a._crypto_kem_xwing_publickeybytes();e.length!==c&&T(_,"invalid publicKey length"),n=k(e),_.push(n),64!==(r=Y(_,r,"seed")).length&&T(_,"invalid seed length"),s=k(r),_.push(s);var p=new m(0|a._crypto_kem_xwing_ciphertextbytes()),o=p.address;_.push(o);var h=new m(0|a._crypto_kem_xwing_sharedsecretbytes()),y=h.address;if(_.push(y),!(0|a._crypto_kem_xwing_enc_deterministic(o,y,n,s))){var i=g({ciphertext:p,sharedSecret:h},t);return E(_),i}S(_,"invalid usage")}function r6(e){var r=[];f(e);var t=new m(0|a._crypto_kem_xwing_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_kem_xwing_secretkeybytes()),s=n.address;if(r.push(s),!(0|a._crypto_kem_xwing_keypair(_,s))){var c={publicKey:g(t,e),privateKey:g(n,e),keyType:"xwing"};return E(r),c}S(r,"internal error")}function r9(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_kem_xwing_seedbytes();e.length!==n&&T(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kem_xwing_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kem_xwing_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_kem_xwing_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"xwing"};return E(t),h}S(t,"invalid usage")}function r8(e,r,t,_){var n=[];f(_),e=Y(n,e,"clientPublicKey");var s,c=0|a._crypto_kx_publickeybytes();e.length!==c&&T(n,"invalid clientPublicKey length"),s=k(e),n.push(s),r=Y(n,r,"clientSecretKey");var p,o=0|a._crypto_kx_secretkeybytes();r.length!==o&&T(n,"invalid clientSecretKey length"),p=k(r),n.push(p),t=Y(n,t,"serverPublicKey");var h,y=0|a._crypto_kx_publickeybytes();t.length!==y&&T(n,"invalid serverPublicKey length"),h=k(t),n.push(h);var i=new m(0|a._crypto_kx_sessionkeybytes()),l=i.address;n.push(l);var u=new m(0|a._crypto_kx_sessionkeybytes()),d=u.address;if(n.push(d),!(0|a._crypto_kx_client_session_keys(l,d,s,p,h))){var v=g({sharedRx:i,sharedTx:u},_);return E(n),v}S(n,"invalid usage")}function r4(e){var r=[];f(e);var t=new m(0|a._crypto_kx_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_kx_secretkeybytes()),s=n.address;if(r.push(s),!(0|a._crypto_kx_keypair(_,s))){var c={publicKey:g(t,e),privateKey:g(n,e),keyType:"x25519"};return E(r),c}S(r,"internal error")}function r7(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_kx_seedbytes();e.length!==n&&T(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_kx_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_kx_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_kx_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"x25519"};return E(t),h}S(t,"internal error")}function te(e,r,t,_){var n=[];f(_),e=Y(n,e,"serverPublicKey");var s,c=0|a._crypto_kx_publickeybytes();e.length!==c&&T(n,"invalid serverPublicKey length"),s=k(e),n.push(s),r=Y(n,r,"serverSecretKey");var p,o=0|a._crypto_kx_secretkeybytes();r.length!==o&&T(n,"invalid serverSecretKey length"),p=k(r),n.push(p),t=Y(n,t,"clientPublicKey");var h,y=0|a._crypto_kx_publickeybytes();t.length!==y&&T(n,"invalid clientPublicKey length"),h=k(t),n.push(h);var i=new m(0|a._crypto_kx_sessionkeybytes()),l=i.address;n.push(l);var u=new m(0|a._crypto_kx_sessionkeybytes()),d=u.address;if(n.push(d),!(0|a._crypto_kx_server_session_keys(l,d,s,p,h))){var v=g({sharedRx:i,sharedTx:u},_);return E(n),v}S(n,"invalid usage")}function tr(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_onetimeauth_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_onetimeauth_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_onetimeauth(h,n,s,0,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function tt(e,r){var t=[];f(r),w(t,e,"state_address");var _=new m(0|a._crypto_onetimeauth_bytes()),n=_.address;if(t.push(n),!(0|a._crypto_onetimeauth_final(e,n))){var s=(a._free(e),g(_,r));return E(t),s}S(t,"invalid usage")}function ta(e,r){var t=[];f(r);var _=null;null!=e&&(_=k(e=Y(t,e,"key")),e.length,t.push(_));var n=new m(144).address;if(!(0|a._crypto_onetimeauth_init(n,_)))return E(t),n;S(t,"invalid usage")}function t_(e){var r=[];f(e);var t=new m(0|a._crypto_onetimeauth_keybytes()),_=t.address;r.push(_),a._crypto_onetimeauth_keygen(_);var n=g(t,e);return E(r),n}function tn(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_onetimeauth_update(e,n,s)&&S(_,"invalid usage"),E(_)}function ts(e,r,t){var _=[];e=Y(_,e,"hash");var n,s=0|a._crypto_onetimeauth_bytes();e.length!==s&&T(_,"invalid hash length"),n=k(e),_.push(n);var c=k(r=Y(_,r,"message")),p=r.length;_.push(c),t=Y(_,t,"key");var o,h=0|a._crypto_onetimeauth_keybytes();t.length!==h&&T(_,"invalid key length"),o=k(t),_.push(o);var y=!(0|a._crypto_onetimeauth_verify(n,c,p,0,o));return E(_),y}function tc(e,r,t,_,n,s,c){var p=[];f(c),w(p,e,"keyLength"),("number"!=typeof e||(0|e)!==e||e<0)&&T(p,"keyLength must be an unsigned integer");var o=k(r=Y(p,r,"password")),h=r.length;p.push(o),t=Y(p,t,"salt");var y,i=0|a._crypto_pwhash_saltbytes();t.length!==i&&T(p,"invalid salt length"),y=k(t),p.push(y),w(p,_,"opsLimit"),("number"!=typeof _||(0|_)!==_||_<0)&&T(p,"opsLimit must be an unsigned integer"),w(p,n,"memLimit"),("number"!=typeof n||(0|n)!==n||n<0)&&T(p,"memLimit must be an unsigned integer"),w(p,s,"algorithm"),("number"!=typeof s||(0|s)!==s||s<0)&&T(p,"algorithm must be an unsigned integer");var l=new m(0|e),u=l.address;if(p.push(u),!(0|a._crypto_pwhash(u,e,0,o,h,0,y,_,0,n,s))){var d=g(l,c);return E(p),d}S(p,"invalid usage")}function tp(e,r,t,_,n,s){var c=[];f(s),w(c,e,"keyLength"),("number"!=typeof e||(0|e)!==e||e<0)&&T(c,"keyLength must be an unsigned integer");var p=k(r=Y(c,r,"password")),o=r.length;c.push(p),t=Y(c,t,"salt");var h,y=0|a._crypto_pwhash_scryptsalsa208sha256_saltbytes();t.length!==y&&T(c,"invalid salt length"),h=k(t),c.push(h),w(c,_,"opsLimit"),("number"!=typeof _||(0|_)!==_||_<0)&&T(c,"opsLimit must be an unsigned integer"),w(c,n,"memLimit"),("number"!=typeof n||(0|n)!==n||n<0)&&T(c,"memLimit must be an unsigned integer");var i=new m(0|e),l=i.address;if(c.push(l),!(0|a._crypto_pwhash_scryptsalsa208sha256(l,e,0,p,o,0,h,_,0,n))){var u=g(i,s);return E(c),u}S(c,"invalid usage")}function to(e,r,t,_,n,s,c){var p=[];f(c);var o=k(e=Y(p,e,"password")),h=e.length;p.push(o);var y=k(r=Y(p,r,"salt")),i=r.length;p.push(y),w(p,t,"opsLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&T(p,"opsLimit must be an unsigned integer"),w(p,_,"r"),("number"!=typeof _||(0|_)!==_||_<0)&&T(p,"r must be an unsigned integer"),w(p,n,"p"),("number"!=typeof n||(0|n)!==n||n<0)&&T(p,"p must be an unsigned integer"),w(p,s,"keyLength"),("number"!=typeof s||(0|s)!==s||s<0)&&T(p,"keyLength must be an unsigned integer");var l=new m(0|s),u=l.address;if(p.push(u),!(0|a._crypto_pwhash_scryptsalsa208sha256_ll(o,h,y,i,t,0,_,n,u,s))){var d=g(l,c);return E(p),d}S(p,"invalid usage")}function th(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"password")),c=e.length;n.push(s),w(n,r,"opsLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&T(n,"opsLimit must be an unsigned integer"),w(n,t,"memLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&T(n,"memLimit must be an unsigned integer");var p=new m(0|a._crypto_pwhash_scryptsalsa208sha256_strbytes()).address;if(n.push(p),!(0|a._crypto_pwhash_scryptsalsa208sha256_str(p,s,c,0,r,0,t))){var o=a.UTF8ToString(p);return E(n),o}S(n,"invalid usage")}function ty(e,r,t){var _=[];f(t),"string"!=typeof e&&T(_,"hashed_password must be a string");var n=k(e=y(e+"\0"));e.length,_.push(n);var s=k(r=Y(_,r,"password")),c=r.length;_.push(s);var p=!(0|a._crypto_pwhash_scryptsalsa208sha256_str_verify(n,s,c,0));return E(_),p}function ti(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"password")),c=e.length;n.push(s),w(n,r,"opsLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&T(n,"opsLimit must be an unsigned integer"),w(n,t,"memLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&T(n,"memLimit must be an unsigned integer");var p=new m(0|a._crypto_pwhash_strbytes()).address;if(n.push(p),!(0|a._crypto_pwhash_str(p,s,c,0,r,0,t))){var o=a.UTF8ToString(p);return E(n),o}S(n,"invalid usage")}function tl(e,r,t,_){var n=[];f(_),"string"!=typeof e&&T(n,"hashed_password must be a string");var s=k(e=y(e+"\0"));e.length,n.push(s),w(n,r,"opsLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&T(n,"opsLimit must be an unsigned integer"),w(n,t,"memLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&T(n,"memLimit must be an unsigned integer");var c=!!(0|a._crypto_pwhash_str_needs_rehash(s,r,0,t));return E(n),c}function tu(e,r,t){var _=[];f(t),"string"!=typeof e&&T(_,"hashed_password must be a string");var n=k(e=y(e+"\0"));e.length,_.push(n);var s=k(r=Y(_,r,"password")),c=r.length;_.push(s);var p=!(0|a._crypto_pwhash_str_verify(n,s,c,0));return E(_),p}function td(e,r,t){var _=[];f(t),e=Y(_,e,"privateKey");var n,s=0|a._crypto_scalarmult_scalarbytes();e.length!==s&&T(_,"invalid privateKey length"),n=k(e),_.push(n),r=Y(_,r,"publicKey");var c,p=0|a._crypto_scalarmult_bytes();r.length!==p&&T(_,"invalid publicKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_scalarmult_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_scalarmult(h,n,c))){var y=g(o,t);return E(_),y}S(_,"weak public key")}function tv(e,r){var t=[];f(r),e=Y(t,e,"privateKey");var _,n=0|a._crypto_scalarmult_scalarbytes();e.length!==n&&T(t,"invalid privateKey length"),_=k(e),t.push(_);var s=new m(0|a._crypto_scalarmult_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_scalarmult_base(c,_))){var p=g(s,r);return E(t),p}S(t,"unknown error")}function tg(e,r,t){var _=[];f(t),e=Y(_,e,"n");var n,s=0|a._crypto_scalarmult_ed25519_scalarbytes();e.length!==s&&T(_,"invalid n length"),n=k(e),_.push(n),r=Y(_,r,"p");var c,p=0|a._crypto_scalarmult_ed25519_bytes();r.length!==p&&T(_,"invalid p length"),c=k(r),_.push(c);var o=new m(0|a._crypto_scalarmult_ed25519_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_scalarmult_ed25519(h,n,c))){var y=g(o,t);return E(_),y}S(_,"invalid point or scalar is 0")}function tb(e,r){var t=[];f(r),e=Y(t,e,"scalar");var _,n=0|a._crypto_scalarmult_ed25519_scalarbytes();e.length!==n&&T(t,"invalid scalar length"),_=k(e),t.push(_);var s=new m(0|a._crypto_scalarmult_ed25519_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_scalarmult_ed25519_base(c,_))){var p=g(s,r);return E(t),p}S(t,"scalar is 0")}function tf(e,r){var t=[];f(r),e=Y(t,e,"scalar");var _,n=0|a._crypto_scalarmult_ed25519_scalarbytes();e.length!==n&&T(t,"invalid scalar length"),_=k(e),t.push(_);var s=new m(0|a._crypto_scalarmult_ed25519_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_scalarmult_ed25519_base_noclamp(c,_))){var p=g(s,r);return E(t),p}S(t,"scalar is 0")}function tm(e,r,t){var _=[];f(t),e=Y(_,e,"n");var n,s=0|a._crypto_scalarmult_ed25519_scalarbytes();e.length!==s&&T(_,"invalid n length"),n=k(e),_.push(n),r=Y(_,r,"p");var c,p=0|a._crypto_scalarmult_ed25519_bytes();r.length!==p&&T(_,"invalid p length"),c=k(r),_.push(c);var o=new m(0|a._crypto_scalarmult_ed25519_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_scalarmult_ed25519_noclamp(h,n,c))){var y=g(o,t);return E(_),y}S(_,"invalid point or scalar is 0")}function tk(e,r,t){var _=[];f(t),e=Y(_,e,"scalar");var n,s=0|a._crypto_scalarmult_ristretto255_scalarbytes();e.length!==s&&T(_,"invalid scalar length"),n=k(e),_.push(n),r=Y(_,r,"element");var c,p=0|a._crypto_scalarmult_ristretto255_bytes();r.length!==p&&T(_,"invalid element length"),c=k(r),_.push(c);var o=new m(0|a._crypto_scalarmult_ristretto255_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_scalarmult_ristretto255(h,n,c))){var y=g(o,t);return E(_),y}S(_,"result is identity element")}function tx(e,r){var t=[];f(r),e=Y(t,e,"scalar");var _,n=0|a._crypto_core_ristretto255_scalarbytes();e.length!==n&&T(t,"invalid scalar length"),_=k(e),t.push(_);var s=new m(0|a._crypto_core_ristretto255_bytes()),c=s.address;if(t.push(c),!(0|a._crypto_scalarmult_ristretto255_base(c,_))){var p=g(s,r);return E(t),p}S(t,"scalar is 0")}function tE(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_secretbox_noncebytes();r.length!==o&&T(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_secretbox_keybytes();t.length!==y&&T(n,"invalid key length"),h=k(t),n.push(h);var i=new m(0|c),l=i.address;n.push(l);var u=new m(0|a._crypto_secretbox_macbytes()),d=u.address;if(n.push(d),!(0|a._crypto_secretbox_detached(l,d,s,c,0,p,h))){var v=g({mac:u,cipher:i},_);return E(n),v}S(n,"invalid usage")}function tS(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_secretbox_noncebytes();r.length!==o&&T(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_secretbox_keybytes();t.length!==y&&T(n,"invalid key length"),h=k(t),n.push(h);var i=new m(c+a._crypto_secretbox_macbytes()|0),l=i.address;if(n.push(l),!(0|a._crypto_secretbox_easy(l,s,c,0,p,h))){var u=g(i,_);return E(n),u}S(n,"invalid usage")}function tT(e){var r=[];f(e);var t=new m(0|a._crypto_secretbox_keybytes()),_=t.address;r.push(_),a._crypto_secretbox_keygen(_);var n=g(t,e);return E(r),n}function tw(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"ciphertext")),p=e.length;s.push(c),r=Y(s,r,"mac");var o,h=0|a._crypto_secretbox_macbytes();r.length!==h&&T(s,"invalid mac length"),o=k(r),s.push(o),t=Y(s,t,"nonce");var y,i=0|a._crypto_secretbox_noncebytes();t.length!==i&&T(s,"invalid nonce length"),y=k(t),s.push(y),_=Y(s,_,"key");var l,u=0|a._crypto_secretbox_keybytes();_.length!==u&&T(s,"invalid key length"),l=k(_),s.push(l);var d=new m(0|p),v=d.address;if(s.push(v),!(0|a._crypto_secretbox_open_detached(v,c,o,p,0,y,l))){var b=g(d,n);return E(s),b}S(s,"wrong secret key for the given ciphertext")}function tY(e,r,t,_){var n=[];f(_),e=Y(n,e,"ciphertext");var s,c=a._crypto_secretbox_macbytes(),p=e.length;p<c&&T(n,"ciphertext is too short"),s=k(e),n.push(s),r=Y(n,r,"nonce");var o,h=0|a._crypto_secretbox_noncebytes();r.length!==h&&T(n,"invalid nonce length"),o=k(r),n.push(o),t=Y(n,t,"key");var y,i=0|a._crypto_secretbox_keybytes();t.length!==i&&T(n,"invalid key length"),y=k(t),n.push(y);var l=new m(p-a._crypto_secretbox_macbytes()|0),u=l.address;if(n.push(u),!(0|a._crypto_secretbox_open_easy(u,s,p,0,o,y))){var d=g(l,_);return E(n),d}S(n,"wrong secret key for the given ciphertext")}function tB(e,r,t){var _=[];f(t),e=Y(_,e,"header");var n,s=0|a._crypto_secretstream_xchacha20poly1305_headerbytes();e.length!==s&&T(_,"invalid header length"),n=k(e),_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_secretstream_xchacha20poly1305_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(52).address;if(!(0|a._crypto_secretstream_xchacha20poly1305_init_pull(o,n,c)))return E(_),o;S(_,"invalid usage")}function tA(e,r){var t=[];f(r),e=Y(t,e,"key");var _,n=0|a._crypto_secretstream_xchacha20poly1305_keybytes();e.length!==n&&T(t,"invalid key length"),_=k(e),t.push(_);var s=new m(52).address,c=new m(0|a._crypto_secretstream_xchacha20poly1305_headerbytes()),p=c.address;if(t.push(p),!(0|a._crypto_secretstream_xchacha20poly1305_init_push(s,p,_))){var o={state:s,header:g(c,r)};return E(t),o}S(t,"invalid usage")}function tK(e){var r=[];f(e);var t=new m(0|a._crypto_secretstream_xchacha20poly1305_keybytes()),_=t.address;r.push(_),a._crypto_secretstream_xchacha20poly1305_keygen(_);var n=g(t,e);return E(r),n}function tI(e,r,t,_){var n=[];f(_),w(n,e,"state_address"),r=Y(n,r,"cipher");var s,c=a._crypto_secretstream_xchacha20poly1305_abytes(),p=r.length;p<c&&T(n,"cipher is too short"),s=k(r),n.push(s);var o=null,h=0;null!=t&&(o=k(t=Y(n,t,"ad")),h=t.length,n.push(o));var y=new m(p-a._crypto_secretstream_xchacha20poly1305_abytes()|0),i=y.address;n.push(i);var l,u=(l=x(1),n.push(l),(u=0===a._crypto_secretstream_xchacha20poly1305_pull(e,i,0,l,s,p,0,o,h)&&{tag:a.HEAPU8[l],message:y})&&{message:g(u.message,_),tag:u.tag});return E(n),u}function tM(e,r,t,_,n){var s=[];f(n),w(s,e,"state_address");var c=k(r=Y(s,r,"message_chunk")),p=r.length;s.push(c);var o=null,h=0;null!=t&&(o=k(t=Y(s,t,"ad")),h=t.length,s.push(o)),w(s,_,"tag"),("number"!=typeof _||(0|_)!==_||_<0)&&T(s,"tag must be an unsigned integer");var y=new m(p+a._crypto_secretstream_xchacha20poly1305_abytes()|0),i=y.address;if(s.push(i),!(0|a._crypto_secretstream_xchacha20poly1305_push(e,i,0,c,p,0,o,h,0,_))){var l=g(y,n);return E(s),l}S(s,"invalid usage")}function tN(e,r){var t=[];return f(r),w(t,e,"state_address"),a._crypto_secretstream_xchacha20poly1305_rekey(e),E(t),!0}function tL(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_shorthash_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_shorthash_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_shorthash(h,n,s,0,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function tO(e){var r=[];f(e);var t=new m(0|a._crypto_shorthash_keybytes()),_=t.address;r.push(_),a._crypto_shorthash_keygen(_);var n=g(t,e);return E(r),n}function tC(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"key");var c,p=0|a._crypto_shorthash_siphashx24_keybytes();r.length!==p&&T(_,"invalid key length"),c=k(r),_.push(c);var o=new m(0|a._crypto_shorthash_siphashx24_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_shorthash_siphashx24(h,n,s,0,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function tU(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_sign_secretkeybytes();r.length!==p&&T(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(e.length+a._crypto_sign_bytes()|0),h=o.address;if(_.push(h),!(0|a._crypto_sign(h,null,n,s,0,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function tP(e,r,t){var _=[];f(t);var n=k(e=Y(_,e,"message")),s=e.length;_.push(n),r=Y(_,r,"privateKey");var c,p=0|a._crypto_sign_secretkeybytes();r.length!==p&&T(_,"invalid privateKey length"),c=k(r),_.push(c);var o=new m(0|a._crypto_sign_bytes()),h=o.address;if(_.push(h),!(0|a._crypto_sign_detached(h,null,n,s,0,c))){var y=g(o,t);return E(_),y}S(_,"invalid usage")}function tR(e,r){var t=[];f(r),e=Y(t,e,"edPk");var _,n=0|a._crypto_sign_publickeybytes();e.length!==n&&T(t,"invalid edPk length"),_=k(e),t.push(_);var s=new m(0|a._crypto_scalarmult_scalarbytes()),c=s.address;if(t.push(c),!(0|a._crypto_sign_ed25519_pk_to_curve25519(c,_))){var p=g(s,r);return E(t),p}S(t,"invalid key")}function tX(e,r){var t=[];f(r),e=Y(t,e,"edSk");var _,n=0|a._crypto_sign_secretkeybytes();e.length!==n&&T(t,"invalid edSk length"),_=k(e),t.push(_);var s=new m(0|a._crypto_scalarmult_scalarbytes()),c=s.address;if(t.push(c),!(0|a._crypto_sign_ed25519_sk_to_curve25519(c,_))){var p=g(s,r);return E(t),p}S(t,"invalid key")}function tD(e,r){var t=[];f(r),e=Y(t,e,"privateKey");var _,n=0|a._crypto_sign_secretkeybytes();e.length!==n&&T(t,"invalid privateKey length"),_=k(e),t.push(_);var s=new m(0|a._crypto_sign_publickeybytes()),c=s.address;if(t.push(c),!(0|a._crypto_sign_ed25519_sk_to_pk(c,_))){var p=g(s,r);return E(t),p}S(t,"invalid key")}function tG(e,r){var t=[];f(r),e=Y(t,e,"privateKey");var _,n=0|a._crypto_sign_secretkeybytes();e.length!==n&&T(t,"invalid privateKey length"),_=k(e),t.push(_);var s=new m(0|a._crypto_sign_seedbytes()),c=s.address;if(t.push(c),!(0|a._crypto_sign_ed25519_sk_to_seed(c,_))){var p=g(s,r);return E(t),p}S(t,"invalid key")}function tF(e,r,t){var _=[];f(t),w(_,e,"state_address"),r=Y(_,r,"privateKey");var n,s=0|a._crypto_sign_secretkeybytes();r.length!==s&&T(_,"invalid privateKey length"),n=k(r),_.push(n);var c=new m(0|a._crypto_sign_bytes()),p=c.address;if(_.push(p),!(0|a._crypto_sign_final_create(e,p,null,n))){var o=(a._free(e),g(c,t));return E(_),o}S(_,"invalid usage")}function tV(e,r,t,_){var n=[];f(_),w(n,e,"state_address"),r=Y(n,r,"signature");var s,c=0|a._crypto_sign_bytes();r.length!==c&&T(n,"invalid signature length"),s=k(r),n.push(s),t=Y(n,t,"publicKey");var p,o=0|a._crypto_sign_publickeybytes();t.length!==o&&T(n,"invalid publicKey length"),p=k(t),n.push(p);var h=!(0|a._crypto_sign_final_verify(e,s,p));return E(n),h}function tq(e){var r=[];f(e);var t=new m(208).address;if(!(0|a._crypto_sign_init(t)))return E(r),t;S(r,"internal error")}function tH(e){var r=[];f(e);var t=new m(0|a._crypto_sign_publickeybytes()),_=t.address;r.push(_);var n=new m(0|a._crypto_sign_secretkeybytes()),s=n.address;if(r.push(s),!(0|a._crypto_sign_keypair(_,s))){var c={publicKey:g(t,e),privateKey:g(n,e),keyType:"ed25519"};return E(r),c}S(r,"internal error")}function tz(e,r,t){var _=[];f(t),e=Y(_,e,"signedMessage");var n,s=a._crypto_sign_bytes(),c=e.length;c<s&&T(_,"signedMessage is too short"),n=k(e),_.push(n),r=Y(_,r,"publicKey");var p,o=0|a._crypto_sign_publickeybytes();r.length!==o&&T(_,"invalid publicKey length"),p=k(r),_.push(p);var h=new m(c-a._crypto_sign_bytes()|0),y=h.address;if(_.push(y),!(0|a._crypto_sign_open(y,null,n,c,0,p))){var i=g(h,t);return E(_),i}S(_,"incorrect signature for the given public key")}function tW(e,r){var t=[];f(r),e=Y(t,e,"seed");var _,n=0|a._crypto_sign_seedbytes();e.length!==n&&T(t,"invalid seed length"),_=k(e),t.push(_);var s=new m(0|a._crypto_sign_publickeybytes()),c=s.address;t.push(c);var p=new m(0|a._crypto_sign_secretkeybytes()),o=p.address;if(t.push(o),!(0|a._crypto_sign_seed_keypair(c,o,_))){var h={publicKey:g(s,r),privateKey:g(p,r),keyType:"ed25519"};return E(t),h}S(t,"invalid usage")}function tj(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_sign_update(e,n,s,0)&&S(_,"invalid usage"),E(_)}function tJ(e,r,t){var _=[];e=Y(_,e,"signature");var n,s=0|a._crypto_sign_bytes();e.length!==s&&T(_,"invalid signature length"),n=k(e),_.push(n);var c=k(r=Y(_,r,"message")),p=r.length;_.push(c),t=Y(_,t,"publicKey");var o,h=0|a._crypto_sign_publickeybytes();t.length!==h&&T(_,"invalid publicKey length"),o=k(t),_.push(o);var y=!(0|a._crypto_sign_verify_detached(n,c,p,0,o));return E(_),y}function tQ(e,r,t,_){var n=[];f(_),w(n,e,"outLength"),("number"!=typeof e||(0|e)!==e||e<0)&&T(n,"outLength must be an unsigned integer"),r=Y(n,r,"key");var s,c=0|a._crypto_stream_chacha20_keybytes();r.length!==c&&T(n,"invalid key length"),s=k(r),n.push(s),t=Y(n,t,"nonce");var p,o=0|a._crypto_stream_chacha20_noncebytes();t.length!==o&&T(n,"invalid nonce length"),p=k(t),n.push(p);var h=new m(0|e),y=h.address;n.push(y),a._crypto_stream_chacha20(y,e,0,p,s);var i=g(h,_);return E(n),i}function tZ(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"input_message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_stream_chacha20_ietf_noncebytes();r.length!==o&&T(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_stream_chacha20_ietf_keybytes();t.length!==y&&T(n,"invalid key length"),h=k(t),n.push(h);var i=new m(0|c),l=i.address;if(n.push(l),0===a._crypto_stream_chacha20_ietf_xor(l,s,c,0,p,h)){var u=g(i,_);return E(n),u}S(n,"invalid usage")}function t$(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"input_message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_stream_chacha20_ietf_noncebytes();r.length!==h&&T(s,"invalid nonce length"),o=k(r),s.push(o),w(s,t,"nonce_increment"),("number"!=typeof t||(0|t)!==t||t<0)&&T(s,"nonce_increment must be an unsigned integer"),_=Y(s,_,"key");var y,i=0|a._crypto_stream_chacha20_ietf_keybytes();_.length!==i&&T(s,"invalid key length"),y=k(_),s.push(y);var l=new m(0|p),u=l.address;if(s.push(u),0===a._crypto_stream_chacha20_ietf_xor_ic(u,c,p,0,o,t,y)){var d=g(l,n);return E(s),d}S(s,"invalid usage")}function t0(e){var r=[];f(e);var t=new m(0|a._crypto_stream_chacha20_keybytes()),_=t.address;r.push(_),a._crypto_stream_chacha20_keygen(_);var n=g(t,e);return E(r),n}function t5(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"input_message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_stream_chacha20_noncebytes();r.length!==o&&T(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_stream_chacha20_keybytes();t.length!==y&&T(n,"invalid key length"),h=k(t),n.push(h);var i=new m(0|c),l=i.address;if(n.push(l),0===a._crypto_stream_chacha20_xor(l,s,c,0,p,h)){var u=g(i,_);return E(n),u}S(n,"invalid usage")}function t2(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"input_message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_stream_chacha20_noncebytes();r.length!==h&&T(s,"invalid nonce length"),o=k(r),s.push(o),w(s,t,"nonce_increment"),("number"!=typeof t||(0|t)!==t||t<0)&&T(s,"nonce_increment must be an unsigned integer"),_=Y(s,_,"key");var y,i=0|a._crypto_stream_chacha20_keybytes();_.length!==i&&T(s,"invalid key length"),y=k(_),s.push(y);var l=new m(0|p),u=l.address;if(s.push(u),0===a._crypto_stream_chacha20_xor_ic(u,c,p,0,o,t,0,y)){var d=g(l,n);return E(s),d}S(s,"invalid usage")}function t1(e){var r=[];f(e);var t=new m(0|a._crypto_stream_keybytes()),_=t.address;r.push(_),a._crypto_stream_keygen(_);var n=g(t,e);return E(r),n}function t3(e){var r=[];f(e);var t=new m(0|a._crypto_stream_xchacha20_keybytes()),_=t.address;r.push(_),a._crypto_stream_xchacha20_keygen(_);var n=g(t,e);return E(r),n}function t6(e,r,t,_){var n=[];f(_);var s=k(e=Y(n,e,"input_message")),c=e.length;n.push(s),r=Y(n,r,"nonce");var p,o=0|a._crypto_stream_xchacha20_noncebytes();r.length!==o&&T(n,"invalid nonce length"),p=k(r),n.push(p),t=Y(n,t,"key");var h,y=0|a._crypto_stream_xchacha20_keybytes();t.length!==y&&T(n,"invalid key length"),h=k(t),n.push(h);var i=new m(0|c),l=i.address;if(n.push(l),0===a._crypto_stream_xchacha20_xor(l,s,c,0,p,h)){var u=g(i,_);return E(n),u}S(n,"invalid usage")}function t9(e,r,t,_,n){var s=[];f(n);var c=k(e=Y(s,e,"input_message")),p=e.length;s.push(c),r=Y(s,r,"nonce");var o,h=0|a._crypto_stream_xchacha20_noncebytes();r.length!==h&&T(s,"invalid nonce length"),o=k(r),s.push(o),w(s,t,"nonce_increment"),("number"!=typeof t||(0|t)!==t||t<0)&&T(s,"nonce_increment must be an unsigned integer"),_=Y(s,_,"key");var y,i=0|a._crypto_stream_xchacha20_keybytes();_.length!==i&&T(s,"invalid key length"),y=k(_),s.push(y);var l=new m(0|p),u=l.address;if(s.push(u),0===a._crypto_stream_xchacha20_xor_ic(u,c,p,0,o,t,0,y)){var d=g(l,n);return E(s),d}S(s,"invalid usage")}function t8(e,r,t){var _=[];f(t),w(_,e,"out_length"),("number"!=typeof e||(0|e)!==e||e<0)&&T(_,"out_length must be an unsigned integer");var n=k(r=Y(_,r,"message")),s=r.length;_.push(n);var c=new m(e|=0),p=c.address;if(_.push(p),!(0|a._crypto_xof_shake128(p,e,n,s,0))){var o=g(c,t);return E(_),o}S(_,"invalid usage")}function t4(e){var r=[];f(e);var t=new m(256).address;if(!(0|a._crypto_xof_shake128_init(t)))return E(r),t;S(r,"invalid usage")}function t7(e,r){var t=[];f(r),w(t,e,"domain"),("number"!=typeof e||(0|e)!==e||e<0)&&T(t,"domain must be an unsigned integer");var _=new m(256).address;if(!(0|a._crypto_xof_shake128_init_with_domain(_,e)))return E(t),_;S(t,"invalid usage")}function ae(e,r,t){var _=[];f(t),w(_,e,"state_address"),w(_,r,"out_length"),("number"!=typeof r||(0|r)!==r||r<0)&&T(_,"out_length must be an unsigned integer");var n=new m(r|=0),s=n.address;if(_.push(s),!(0|a._crypto_xof_shake128_squeeze(e,s,r))){var c=g(n,t);return E(_),c}S(_,"invalid usage")}function ar(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_xof_shake128_update(e,n,s,0)&&S(_,"invalid usage"),E(_)}function at(e,r,t){var _=[];f(t),w(_,e,"out_length"),("number"!=typeof e||(0|e)!==e||e<0)&&T(_,"out_length must be an unsigned integer");var n=k(r=Y(_,r,"message")),s=r.length;_.push(n);var c=new m(e|=0),p=c.address;if(_.push(p),!(0|a._crypto_xof_shake256(p,e,n,s,0))){var o=g(c,t);return E(_),o}S(_,"invalid usage")}function aa(e){var r=[];f(e);var t=new m(256).address;if(!(0|a._crypto_xof_shake256_init(t)))return E(r),t;S(r,"invalid usage")}function a_(e,r){var t=[];f(r),w(t,e,"domain"),("number"!=typeof e||(0|e)!==e||e<0)&&T(t,"domain must be an unsigned integer");var _=new m(256).address;if(!(0|a._crypto_xof_shake256_init_with_domain(_,e)))return E(t),_;S(t,"invalid usage")}function an(e,r,t){var _=[];f(t),w(_,e,"state_address"),w(_,r,"out_length"),("number"!=typeof r||(0|r)!==r||r<0)&&T(_,"out_length must be an unsigned integer");var n=new m(r|=0),s=n.address;if(_.push(s),!(0|a._crypto_xof_shake256_squeeze(e,s,r))){var c=g(n,t);return E(_),c}S(_,"invalid usage")}function as(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_xof_shake256_update(e,n,s,0)&&S(_,"invalid usage"),E(_)}function ac(e,r,t){var _=[];f(t),w(_,e,"out_length"),("number"!=typeof e||(0|e)!==e||e<0)&&T(_,"out_length must be an unsigned integer");var n=k(r=Y(_,r,"message")),s=r.length;_.push(n);var c=new m(e|=0),p=c.address;if(_.push(p),!(0|a._crypto_xof_turboshake128(p,e,n,s,0))){var o=g(c,t);return E(_),o}S(_,"invalid usage")}function ap(e){var r=[];f(e);var t=new m(256).address;if(!(0|a._crypto_xof_turboshake128_init(t)))return E(r),t;S(r,"invalid usage")}function ao(e,r){var t=[];f(r),w(t,e,"domain"),("number"!=typeof e||(0|e)!==e||e<0)&&T(t,"domain must be an unsigned integer");var _=new m(256).address;if(!(0|a._crypto_xof_turboshake128_init_with_domain(_,e)))return E(t),_;S(t,"invalid usage")}function ah(e,r,t){var _=[];f(t),w(_,e,"state_address"),w(_,r,"out_length"),("number"!=typeof r||(0|r)!==r||r<0)&&T(_,"out_length must be an unsigned integer");var n=new m(r|=0),s=n.address;if(_.push(s),!(0|a._crypto_xof_turboshake128_squeeze(e,s,r))){var c=g(n,t);return E(_),c}S(_,"invalid usage")}function ay(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_xof_turboshake128_update(e,n,s,0)&&S(_,"invalid usage"),E(_)}function ai(e,r,t){var _=[];f(t),w(_,e,"out_length"),("number"!=typeof e||(0|e)!==e||e<0)&&T(_,"out_length must be an unsigned integer");var n=k(r=Y(_,r,"message")),s=r.length;_.push(n);var c=new m(e|=0),p=c.address;if(_.push(p),!(0|a._crypto_xof_turboshake256(p,e,n,s,0))){var o=g(c,t);return E(_),o}S(_,"invalid usage")}function al(e){var r=[];f(e);var t=new m(256).address;if(!(0|a._crypto_xof_turboshake256_init(t)))return E(r),t;S(r,"invalid usage")}function au(e,r){var t=[];f(r),w(t,e,"domain"),("number"!=typeof e||(0|e)!==e||e<0)&&T(t,"domain must be an unsigned integer");var _=new m(256).address;if(!(0|a._crypto_xof_turboshake256_init_with_domain(_,e)))return E(t),_;S(t,"invalid usage")}function ad(e,r,t){var _=[];f(t),w(_,e,"state_address"),w(_,r,"out_length"),("number"!=typeof r||(0|r)!==r||r<0)&&T(_,"out_length must be an unsigned integer");var n=new m(r|=0),s=n.address;if(_.push(s),!(0|a._crypto_xof_turboshake256_squeeze(e,s,r))){var c=g(n,t);return E(_),c}S(_,"invalid usage")}function av(e,r,t){var _=[];f(t),w(_,e,"state_address");var n=k(r=Y(_,r,"message_chunk")),s=r.length;_.push(n),0|a._crypto_xof_turboshake256_update(e,n,s,0)&&S(_,"invalid usage"),E(_)}function ag(e,r){var t=[];f(r),w(t,e,"length"),("number"!=typeof e||(0|e)!==e||e<0)&&T(t,"length must be an unsigned integer");var _=new m(0|e),n=_.address;t.push(n),a._randombytes_buf(n,e);var s=g(_,r);return E(t),s}function ab(e,r,t){var _=[];f(t),w(_,e,"length"),("number"!=typeof e||(0|e)!==e||e<0)&&T(_,"length must be an unsigned integer"),r=Y(_,r,"seed");var n,s=0|a._randombytes_seedbytes();r.length!==s&&T(_,"invalid seed length"),n=k(r),_.push(n);var c=new m(0|e),p=c.address;_.push(p),a._randombytes_buf_deterministic(p,e,n);var o=g(c,t);return E(_),o}function af(e){f(e),a._randombytes_close()}function am(e){f(e);var r=a._randombytes_random()>>>0;return E([]),r}function ak(e,r){var t=[];f(r);for(var _=a._malloc(24),n=0;n<6;n++)a.setValue(_+4*n,a.Runtime.addFunction(e[["implementation_name","random","stir","uniform","buf","close"][n]]),"i32");0|a._randombytes_set_implementation(_)&&S(t,"unsupported implementation"),E(t)}function ax(e){f(e),a._randombytes_stir()}function aE(e,r){var t=[];f(r),w(t,e,"upper_bound"),("number"!=typeof e||(0|e)!==e||e<0)&&T(t,"upper_bound must be an unsigned integer");var _=a._randombytes_uniform(e)>>>0;return E(t),_}function aS(e){var r,t=[];16!==(e=Y(t,e,"bin")).length&&T(t,"invalid bin length"),r=k(e),t.push(r);var _=new m(46).address;if(t.push(_),0!==a._sodium_bin2ip(_,46,r)){var n=a.UTF8ToString(_);return E(t),n}S(t,"conversion failed")}function aT(e,r){var t=[];f(r),"string"!=typeof e&&T(t,"ip must be a string");var _=k(e=y(e+"\0")),n=e.length-1;t.push(_);var s=new m(16),c=s.address;if(t.push(c),!(0|a._sodium_ip2bin(c,_,n))){var p=g(s,r);return E(t),p}S(t,"invalid IP address")}function aw(){var e=a._sodium_version_string(),r=a.UTF8ToString(e);return E([]),r}m.prototype.to_Uint8Array=function(){var e=new Uint8Array(this.length);return e.set(a.HEAPU8.subarray(this.address,this.address+this.length)),e},c.add=function(e,r){if(!(e instanceof Uint8Array&&r instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be added");var t=e.length,a=0,_=0;if(r.length!==e.length)throw TypeError("Arguments must have the same length");for(_=0;_<t;_++)a>>=8,a+=e[_]+r[_],e[_]=255&a},c.base64_variants=u,c.compare=function(e,r){if(!(e instanceof Uint8Array&&r instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be compared");if(e.length!==r.length)throw TypeError("Only instances of identical length can be compared");for(var t=0,a=1,_=e.length;_-- >0;)t|=r[_]-e[_]>>8&a,a&=(r[_]^e[_])-1>>8;return t+t+a-1},c.from_base64=function(e,r){r=d(r);var t,_=[],n=new m(3*(e=Y(_,e,"input")).length/4),s=k(e),c=x(4),p=x(4);return _.push(s),_.push(n.address),_.push(c),_.push(p),0!==a._sodium_base642bin(n.address,n.length,s,e.length,0,c,p,r)&&S(_,"invalid input"),a.getValue(p,"i32")-s!==e.length&&S(_,"incomplete input"),n.length=a.getValue(c,"i32"),t=n.to_Uint8Array(),E(_),t},c.from_hex=function(e){var r,t=[],_=new m((e=Y(t,e,"input")).length/2),n=k(e),s=x(4);return t.push(n),t.push(_.address),t.push(s),0!==a._sodium_hex2bin(_.address,_.length,n,e.length,0,0,s)&&S(t,"invalid input"),a.getValue(s,"i32")-n!==e.length&&S(t,"incomplete input"),r=_.to_Uint8Array(),E(t),r},c.from_string=y,c.increment=function(e){if(!(e instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be incremented");for(var r=256,t=0,a=e.length;t<a;t++)r>>=8,r+=e[t],e[t]=255&r},c.is_zero=function(e){if(!(e instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be checked");for(var r=0,t=0,a=e.length;t<a;t++)r|=e[t];return 0===r},c.memcmp=function(e,r){if(!(e instanceof Uint8Array&&r instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be compared");if(e.length!==r.length)throw TypeError("Only instances of identical length can be compared");for(var t=0,a=0,_=e.length;a<_;a++)t|=e[a]^r[a];return 0===t},c.memzero=function(e){if(!(e instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be wiped");for(var r=0,t=e.length;r<t;r++)e[r]=0},c.output_formats=function(){return["uint8array","text","hex","base64"]},c.pad=function(e,r){if(!(e instanceof Uint8Array))throw TypeError("buffer must be a Uint8Array");if((r|=0)<=0)throw Error("block size must be > 0");var t,_=[],n=x(4),s=1,c=0,p=0|e.length,o=new m(p+r);_.push(n),_.push(o.address);for(var h=o.address,y=o.address+p+r;h<y;h++)a.HEAPU8[h]=e[c],c+=s=1&~((65535&((p-=s)>>>48|p>>>32|p>>>16|p))-1>>16);return 0!==a._sodium_pad(n,o.address,e.length,r,o.length)&&S(_,"internal error"),o.length=a.getValue(n,"i32"),t=o.to_Uint8Array(),E(_),t},c.unpad=function(e,r){if(!(e instanceof Uint8Array))throw TypeError("buffer must be a Uint8Array");if((r|=0)<=0)throw Error("block size must be > 0");var t=[],_=k(e),n=x(4);return t.push(_),t.push(n),0!==a._sodium_unpad(n,_,e.length,r)&&S(t,"unsupported/invalid padding"),e=(e=new Uint8Array(e)).subarray(0,a.getValue(n,"i32")),E(t),e},c.ready=h,c.symbols=function(){return Object.keys(c).sort()},c.to_base64=v,c.to_hex=l,c.to_string=i;let aY=c},29717:(e,r,t)=>{var a=t(21505);t.o(a,"usePathname")&&t.d(r,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(r,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(r,{useSearchParams:function(){return a.useSearchParams}})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6419],{96419:(e,t,a)=>{a.r(t),a.d(t,{default:()=>o});let o={common:{statusIdle:"Idle",statusWorking:"Working",statusBlocked:"Needs input",statusDone:"Your turn",loading:"กำลังโหลด...",cancel:"ยกเลิก",confirm:"ยืนยัน",save:"บันทึก",delete:"ลบ",close:"ปิด",back:"กลับ",edit:"แก้ไข",rename:"เปลี่ยนชื่อ",remove:"นำออก",open:"เปิด",yes:"ใช่",no:"ไม่",ok:"ตกลง",error:"ข้อผิดพลาด",success:"สำเร็จ",failed:"ล้มเหลว",retry:"ลองใหม่",refresh:"รีเฟรช",clipboard:"Clipboard",clipboardCopy:"Copy",clipboardEmpty:"Clipboard is empty",search:"ค้นหา",create:"สร้าง",new:"ใหม่",add:"เพิ่ม",copy:"คัดลอก",copied:"คัดลอกแล้ว",download:"ดาวน์โหลด",upload:"อัปโหลด",enabled:"เปิดใช้งาน",disabled:"ปิดใช้งาน",on:"เปิด",off:"ปิด",minute:"นาที",hour:"ชม.",day:"วัน",minutesAgo:"{n} นาทีที่แล้ว",hoursAgo:"{n} ชั่วโมงที่แล้ว",daysAgo:"{n} วันที่แล้ว"},login:{tagline:"เข้าถึงเทอร์มินัลของคุณจากทุกที่",heroLine1:"Any machine.",heroLine2:"One terminal.",heroLine3:"In your pocket.",featureTerminal:"Terminal",featureDesktop:"Desktop",featureFiles:"Files",termConnected:"agent connected",termTunnel:"tunnel established",termReady:"ready",accessKey:"Access Key",placeholder:"sk-xxx... หรือคีย์ใช้ครั้งเดียว (ABC123)",rememberKey:"จดจำคีย์นี้",connect:"เชื่อมต่อ",connecting:"กำลังเชื่อมต่อ...",authenticating:"กำลังตรวจสอบโทเคน...",invalidKeyTail:"Wrong access key — check the last characters and try again.",scanQr:"Scan QR to login",qrScanTitle:"Scan QR Code",qrHint:"Point the camera at the QR code shown on the machine running 9Remote.",qrDetected:"QR Code detected!",qrAuthenticating:"Authenticating...",qrPleaseWait:"Please wait...",qrLibFail:"Failed to load the QR scanner library.",qrInitFail:"Could not start the scanner.",qrCamDenied:"Camera permission denied. Allow camera access and try again.",qrNoCamera:"No camera found on this device.",qrCamBusy:"Camera is in use by another app.",qrCamError:"Could not open the camera.",savedKeys:"คีย์ที่บันทึกไว้",login:"เข้าสู่ระบบ",lastLogin:"เข้าสู่ระบบล่าสุด",namePlaceholder:"Name this key (optional)",rename:"Rename",deleteKeyTitle:"Delete key",deleteKeyConfirm:'Are you sure you want to delete "{name}"?',justNow:"เมื่อสักครู่",minutesAgo:"{n} นาทีที่แล้ว",hoursAgo:"{n} ชั่วโมงที่แล้ว",daysAgo:"{n} วันที่แล้ว",tapToScan:"แตะเพื่อสแกน",orEnterManually:"หรือป้อนคีย์ด้วยตนเอง",addKey:"Add Key",secureTitle:"Secure & Encrypted",secureDesc:"All connections are end-to-end encrypted and secure.",featAccessTitle:"Access Anywhere",featAccessDesc:"Connect from any device, anywhere.",featSecureTitle:"Secure Connection",featSecureDesc:"End-to-end encryption keeps you safe.",featFastTitle:"Fast & Reliable",featFastDesc:"Low latency and high performance.",featSessionsTitle:"Multiple Sessions",featSessionsDesc:"Manage and switch between sessions.",home:"หน้าแรก",docs:"เอกสาร"},menu:{reloadRestart:"Reload & Restart",restartHost:"Restart 9remote host",restartConfirmTitle:"Restart 9remote host?",restartConfirmMessage:"This restarts the agent process (no reinstall). Terminal sessions are preserved. It takes a few seconds.",restartStarting:"Restarting host…",restartRestarting:"Restarting 9remote…",restartDone:"Restarted! Reconnecting…",restartTimeout:"Restart is taking too long",restartTimeoutHint:"Reconnect manually if it doesn't recover.",title:"เมนู",language:"ภาษา",theme:"ธีม",notifications:"การแจ้งเตือน",webgl:"GPU Render (Faster)",webglHint:"ปิดหากข้อความดูผิด",notificationsHint:"Notify when agent finishes",files:"File Explorer",downloading:"Downloading",copying:"Copying",conflictTitle:"File already exists",conflictMessage:"{name} already exists. Replace or skip?",skip:"Skip",skipAll:"Skip all",replace:"Replace",replaceAll:"Replace all",sites:"ไซต์",commandNotes:"บันทึกคำสั่ง",community:"ชุมชน",installApp:"ติดตั้งแอป",codespace:"Codespace",logout:"ออกจากระบบ",settingsGeneral:"General",settingsAppearance:"Appearance",settingsTerminalTab:"Terminal",settingsMcp:"Plugins",mcpIntro:"Extra abilities you can give your AI coding tools.",mcpTools:"Allow",mcpRestartHint:"Turning it off applies at once. Turning it on needs the AI tool restarted.",mcpUnavailable:"Update this host to use MCP.",artifactFormats:"Formats it can show",mcpClients:"Works with",settingsWorkspace:"Workspace",settingsApplication:"Application",settingsAccount:"Account",themeLight:"Light",themeDark:"Dark",reload:"โหลดแอปใหม่",remoteDesktop:"รีโมตเดสก์ท็อป",settings:"การตั้งค่า",enablePush:"เปิดการแจ้งเตือนแบบ Push",disablePush:"ปิดการแจ้งเตือนแบบ Push",pushHint:"เปิดการแจ้งเตือนเพื่อรับการแจ้งเตือนเมื่อ AI ทำงานเสร็จ",pushActiveHint:"Push notifications are on for this device. You'll be alerted when AI completes tasks.",versionMismatch:"Agent {version} ล้าสมัยแล้ว",versionMismatchHint:"บางฟีเจอร์อาจไม่ทำงาน รัน:",updateNow:"Update now",updating:"Updating… reconnecting",webReloadTitle:"New web version available",webReloadHint:"Reload to get the latest interface.",reloadWeb:"Reload",updateAvailableTitle:"9Remote host update available",updateStarting:"Starting update…",updateInstalling:"Installing new version…",updateTimeout:"Update is taking too long",updateTimeoutHint:"Reload manually if it doesn't recover.",updateRestarting:"Restarting agent…",updateReconnecting:"Reconnecting…",updateDone:"Updated! Reloading…",version:"เวอร์ชัน"},workspace:{loading:"กำลังโหลด...",logoutTitle:"ออกจากระบบ",logoutMessage:"คุณแน่ใจหรือไม่ว่าต้องการออกจากระบบ?",failedCreateSession:"ไม่สามารถสร้างเซสชัน: {error}",failedRenameSession:"ไม่สามารถเปลี่ยนชื่อเซสชัน: {error}"},sessions:{headerTitle:"9remote.cc",connected:"เชื่อมต่อแล้ว",disconnected:"ตัดการเชื่อมต่อ",codespaceStopped:"Codespace หยุดทำงาน",placeholder:"ชื่อเทอร์มินัล (ไม่บังคับ)",newButton:"+ ใหม่",empty:"ไม่มีเซสชันที่ใช้งานอยู่",emptyHint:"สร้างเซสชันใหม่เพื่อเริ่มต้น",created:"สร้างเมื่อ {time}",deleteTitle:"ลบเซสชัน",deleteMessage:'คุณแน่ใจหรือไม่ว่าต้องการลบ "{name}"?',editName:"แก้ไขชื่อ",newTerminal:"เทอร์มินัลใหม่",options:"Options"},workspaces:{title:"Groups",newWorkspace:"Group",newWorkspacePrompt:"Group name",defaultName:"New Group",ungrouped:"Ungrouped",addTerminal:"Add terminal to group",moveToWorkspace:"Move to group",rename:"Rename group",delete:"Delete group",emptyWorkspace:"No terminals in this group",deleteTitle:"Delete Group",deleteMessage:'Delete group "{name}"? Terminals move to Ungrouped.'},terminal:{quotaNoData:"No quota data",quotaUsageTitle:"usage",back:"กลับ",menu:"เมนู",newTerminal:"เทอร์มินัลใหม่",remoteDesktop:"รีโมตเดสก์ท็อป",defaultName:"Term"},files:{selectWorkspace:"เลือกเวิร์กสเปซ",recentWorkspaces:"เวิร์กสเปซล่าสุด",home:"หน้าแรก",root:"ราก",drive:"ไดรฟ์ {letter}",codespaces:"Codespaces",removeRecent:"นำออกจากรายการล่าสุด",removeTitle:"นำเวิร์กสเปซออก",removeMessage:'นำ "{name}" ออกจากเวิร์กสเปซล่าสุด?',setAsWorkspace:"ตั้งเป็นเวิร์กสเปซ",openFolder:"เปิดโฟลเดอร์",newFile:"ไฟล์ใหม่",newFolder:"โฟลเดอร์ใหม่",rename:"เปลี่ยนชื่อ",delete:"ลบ",deleteFile:"ลบไฟล์",deleteFolder:"ลบโฟลเดอร์",deleteFileMessage:'ลบ "{name}"?',deleteFolderMessage:'ลบโฟลเดอร์ "{name}" และเนื้อหาทั้งหมด?',emptyFolder:"โฟลเดอร์ว่าง",git:"Git",parent:"โฟลเดอร์หลัก",workspace:"เวิร์กสเปซ",failedLoad:"โหลดไม่สำเร็จ: {error}",failedDelete:"ลบไม่สำเร็จ: {error}",failedCreate:"สร้างไม่สำเร็จ: {error}",failedRename:"เปลี่ยนชื่อไม่สำเร็จ: {error}",enterName:"ป้อนชื่อ",confirmRename:"เปลี่ยนชื่อเป็น:",setWorkspace:"ตั้งเวิร์กสเปซ",setAsWorkspaceTitle:"ตั้งเป็นเวิร์กสเปซ",switchWorkspace:"สลับเวิร์กสเปซ",searchFiles:"ค้นหาไฟล์",toggleHidden:"สลับไฟล์ที่ซ่อน",searchPlaceholder:"ค้นหาไฟล์...",searching:"กำลังค้นหา...",noFilesFound:"ไม่พบไฟล์",noGitRepo:"ไม่มี Git repository",cannotOpenBinary:"ไม่สามารถเปิดไฟล์ไบนารี",createNew:"สร้างใหม่",file:"ไฟล์",folder:"โฟลเดอร์",placeholderFile:"filename.js",placeholderFolder:"folder-name",pickFile:"Choose files",pickFolder:"Choose folder",copyPath:"คัดลอกพาธ",copyRelPath:"Copy Relative Path",copyName:"Copy Filename",delete:"ลบ",rename:"เปลี่ยนชื่อ",deleteConfirmTitle:"ลบ",deleteConfirmMessage:'ลบ "{name}"?'},editor:{save:"บันทึก",saving:"กำลังบันทึก...",saved:"บันทึกแล้ว",unsaved:"การเปลี่ยนแปลงยังไม่บันทึก",close:"ปิด",discard:"ทิ้ง",discardTitle:"ทิ้งการเปลี่ยนแปลง",discardMessage:"คุณมีการเปลี่ยนแปลงที่ยังไม่ได้บันทึก ทิ้งหรือไม่?",unsavedTitle:"Save changes to {name}?",unsavedBody:"Your changes will be lost if you don't save them.",failedLoad:"โหลดไฟล์ไม่สำเร็จ: {error}",failedSave:"บันทึกไม่สำเร็จ: {error}",openFull:"Open in full editor",artifact:"Artifact",readOnly:"อ่านอย่างเดียว",line:"บรรทัด",column:"คอลัมน์",gitDiff:"Git Diff",typeText:"พิมพ์ข้อความและแทรก...",insert:"แทรก",statusModified:"แก้ไขแล้ว",statusAdded:"เพิ่มแล้ว",statusUntracked:"ยังไม่ติดตาม"},git:{title:"Git",branch:"Branch",changes:"การเปลี่ยนแปลง",staged:"Staged",unstaged:"Unstaged",untracked:"Untracked",commit:"Commit",commitAndPush:"Commit & Push",commitSuccess:"Commit successful",pushSuccess:"Push successful",stageFailed:"Failed to stage changes",commitFailed:"Commit failed",pushFailed:"Push failed",pullSuccess:"Pull successful",pullFailed:"Pull failed",stageAllConfirmTitle:"Stage All & Commit",stageAllConfirmMessage:"No changes are staged. Stage all changes and commit?",stageAndCommit:"Stage & Commit",gitActions:"Git actions",commitPlaceholder:"Commit message…",stageAllNote:"Stage all \xb7 {count}",upToDate:"Everything up-to-date",commitMessage:"ข้อความ Commit",push:"Push",pull:"Pull",fetch:"Fetch",stage:"Stage",stageAll:"Stage ทั้งหมด",unstage:"Unstage",discard:"ทิ้ง",discardChanges:"ทิ้งการเปลี่ยนแปลง",discardMessage:'ทิ้งการเปลี่ยนแปลงของ "{name}"?',noChanges:"ไม่มีการเปลี่ยนแปลง",diff:"Diff",pushing:"กำลัง Push...",pulling:"กำลัง Pull...",committing:"กำลัง Commit...",failedCommit:"Commit ไม่สำเร็จ: {error}",failedPush:"Push ไม่สำเร็จ: {error}",failedPull:"Pull ไม่สำเร็จ: {error}",status:"สถานะ",diffTab:"Diff",modified:"แก้ไขแล้ว",added:"เพิ่มแล้ว",deleted:"ลบแล้ว",untrackedTitle:"ยังไม่ติดตาม",openFile:"เปิดไฟล์",discardChangesTitle:"ทิ้งการเปลี่ยนแปลง",discardConfirmTitle:"ทิ้งการเปลี่ยนแปลง",discardConfirmDelete:'คุณแน่ใจหรือไม่ว่าต้องการลบ "{name}"? การกระทำนี้ไม่สามารถย้อนกลับได้',discardConfirmDiscard:'คุณแน่ใจหรือไม่ว่าต้องการทิ้งการเปลี่ยนแปลงใน "{name}"? การกระทำนี้ไม่สามารถย้อนกลับได้'},remote:{title:"รีโมตเดสก์ท็อป",connecting:"กำลังเชื่อมต่อ...",disconnected:"ตัดการเชื่อมต่อ",fullscreen:"เต็มหน้าจอ",exitFullscreen:"ออกจากเต็มหน้าจอ",receivingImage:"Receiving screen…",keyboard:"คีย์บอร์ด",mouse:"เมาส์",quality:"คุณภาพ",fps:"FPS",debug:"ดีบัก",help:"ช่วยเหลือ",close:"ปิด",sendKey:"ส่งคีย์",helpTitle:"ความช่วยเหลือรีโมตเดสก์ท็อป",notAvailable:"ไม่สามารถใช้รีโมตเดสก์ท็อปได้",customizeKeys:"ปรับแต่งคีย์",back:"กลับ",resetZoom:"รีเซ็ตซูม",refresh:"รีเฟรช",rectangleSelection:"เลือกแบบสี่เหลี่ยม",handMode:"โหมดมือ",toggleKeyboard:"สลับคีย์บอร์ดเนทีฟ",hideControls:"Hide controls",showControls:"Show controls",textBatchInput:"ป้อนข้อความเป็นชุด",extraKeys:"คีย์เพิ่มเติม",customizeRemoteKeys:"ปรับแต่งคีย์รีโมต",exitRemote:"ออกจากรีโมตเดสก์ท็อป",debugTitle:"สถิติดีบัก",minimize:"ย่อ",transport:"การส่งข้อมูล",latency:"ความหน่วง",tilesPerSec:"ไทล์/วินาที",bandwidth:"แบนด์วิดท์",clearStats:"ล้างสถิติ",lockTitle:"Windows ถูกล็อก",lockGrantDesc:'เปิด "ปลดล็อกพีซีระยะไกล" ใน 9remote host บนพีซีเครื่องนี้',lockDesc:"ป้อน PIN หรือรหัสผ่าน Windows สำหรับคอมพิวเตอร์เครื่องนี้",lockPlaceholder:"PIN หรือรหัสผ่าน Windows",unlock:"ปลดล็อก",unlocking:"กำลังปลดล็อก…",unlockFailed:"ปลดล็อกไม่สำเร็จ — ตรวจสอบ PIN/รหัสผ่านแล้วลองอีกครั้ง"},remoteHelp:{modePc:"PC / เมาส์",modeTrackpad:"สัมผัส \xb7 Trackpad",modeDirect:"สัมผัส \xb7 ตรง",mouseTitle:"เมาส์",keyboardTitle:"คีย์บอร์ด",gesturesTrackpadTitle:"ท่าทาง (Trackpad ✋)",gesturesDirectTitle:"ท่าทาง (ตรง)",toolbarTitle:"แถบเครื่องมือ",mouseClickKey:"คลิก / ลาก",mouseClickDesc:"คลิกซ้าย ลากเพื่อเลือก/ย้าย",mouseRightKey:"คลิกขวา",mouseRightDesc:"เมนูบริบทบนรีโมต",mouseWheelKey:"ลูกล้อ",mouseWheelDesc:"เลื่อนรีโมต (Shift + ลูกล้อ = แนวนอน)",mouseDoubleKey:"ดับเบิลคลิก",mouseDoubleDesc:"ดับเบิลคลิกบนรีโมต",keyPhysicalKey:"คีย์จริง",keyPhysicalDesc:"ส่งโดยตรง (Tab, ปุ่ม F ฯลฯ ถูกจับ)",keyModifierKey:"Ctrl / Alt / Shift / ⌘",keyModifierDesc:"ตัวขยายแบบติด — รวมกับคีย์ถัดไป",trackpadSwipeKey:"ปัด 1 นิ้ว",trackpadSwipeDesc:"เลื่อนเคอร์เซอร์เสมือน",trackpadTapKey:"แตะ 1 นิ้ว",trackpadTapDesc:"คลิกซ้ายที่เคอร์เซอร์",trackpad2TapKey:"แตะ 2 นิ้ว",trackpad2TapDesc:"คลิกขวาที่เคอร์เซอร์",trackpad2SwipeKey:"ปัด 2 นิ้ว",trackpad2SwipeDesc:"เลื่อนที่ตำแหน่งเคอร์เซอร์",trackpadPinchKey:"หนีบ 2 นิ้ว",trackpadPinchDesc:"ซูมแคนวาส",trackpadScrollLockKey:"กดค้าง + ลาก",trackpadScrollLockDesc:"กดค้างเพื่อล็อกการเลื่อน ลากได้ทุกทิศทาง",directTapKey:"แตะ 1 นิ้ว",directTapDesc:"คลิกที่ตำแหน่งแตะ",directLongKey:"กดค้าง 1 นิ้ว",directLongDesc:"คลิกขวา",directDoubleKey:"แตะ 2 ครั้ง 1 นิ้ว",directDoubleDesc:"ดับเบิลคลิก",directScrollKey:"ปัด 2 นิ้ว",directScrollDesc:"เลื่อนรีโมต",directPinchKey:"หนีบ 2 นิ้ว",directPinchDesc:"ซูมแคนวาส",directPanKey:"ลาก 1 นิ้ว (ซูม>1)",directPanDesc:"เลื่อนแคนวาส",toolbarHandDesc:"กดคลิกซ้ายค้าง (โหมดลาก) — แตะอีกครั้งเพื่อปล่อย",toolbarMouseDirectDesc:"สลับไปโหมดตรง",toolbarMouseTrackpadDesc:"สลับไป Trackpad (เคอร์เซอร์เสมือน)",toolbarKeyboardDesc:"คีย์บอร์ดเนทีฟ / ป้อนข้อความเป็นชุด",toolbarRectDesc:"โหมดเลือกแบบสี่เหลี่ยม"},remoteControls:{enterToSend:"Tab / Ctrl+Num เพื่อสลับแท็บ",typeToSend:"พิมพ์ข้อความเพื่อส่ง...",send:"ส่ง",trackpadMode:"โหมด Trackpad",directMode:"โหมดตรง",bottomRow:"แถวล่าง",extraPanel:"พาเนลเพิ่มเติม",exitConfirmMessage:"คุณแน่ใจหรือไม่ว่าต้องการออกจากเซสชันรีโมตเดสก์ท็อปปัจจุบัน?"},connection:{retrying:"กำลังเชื่อมต่อใหม่...",waitingApproval:"กำลังรอการอนุมัติ",approvalDescription:"9Remote host ต้องอนุมัติอุปกรณ์นี้ก่อนคุณจึงจะเชื่อมต่อได้",approvalHint:"ตรวจสอบเทอร์มินัลบนเครื่องของคุณ",rejectedTitle:"อุปกรณ์ถูกปฏิเสธ",rejectedDescription:"อุปกรณ์นี้ไม่ได้รับการอนุมัติจาก 9Remote host",backToLogin:"กลับไปเข้าสู่ระบบ",failed:"การเชื่อมต่อล้มเหลว",failedDescription:"ไม่สามารถเชื่อมต่อหลังจากพยายาม {n} ครั้ง",attemptOf:"ครั้งที่ {n} จาก {total}",exit:"ออก",cancel:"ยกเลิก",retry:"ลองใหม่ทันที"},notifications:{claudeCode:"Claude Code",codex:"Codex",geminiCli:"Gemini CLI",openCode:"OpenCode",needsInput:"needs input",badgeTitle:"{blocked} needs input, {done} your turn",replied:"replied",agent:"Agent"},sites:{title:"ไซต์",localSites:"ไซต์ในเครื่อง",selectSitePreview:"เลือกไซต์เพื่อดูตัวอย่าง",browserNewTab:"New tab",browserAddressPlaceholder:"localhost:3000 or /path",browserNotConnected:"Connect to your agent first",portPlaceholder:"พอร์ต",loadingSites:"กำลังโหลดไซต์...",notConnected:"Not connected to the agent",noSitesFound:"ไม่พบไซต์",startServerHint:"เริ่ม dev server ในเครื่องเพื่อดูที่นี่",siteNamePlaceholder:"ชื่อไซต์",saveTitle:"บันทึก",editNameTitle:"แก้ไขชื่อ",removeTitle:"นำออก",removePortTitle:"นำพอร์ตออก",removePortMessage:"นำพอร์ต {port} ออกจากรายการที่บันทึก?",popupBlocked:"Popup ถูกบล็อก! โปรดอนุญาต popup สำหรับไซต์นี้",startProxyFailed:"ไม่สามารถเริ่มเซสชัน proxy สำหรับ {name}",foundCount:"พบ {n} ไซต์{suffix}",focusOpenedTab:"โฟกัสแท็บที่เปิด",openInNewTab:"เปิดในแท็บใหม่",goBack:"ย้อนกลับ",goForward:"ไปข้างหน้า",loadingSite:"กำลังโหลด...",empty:"ไม่มีไซต์ที่ใช้งานอยู่",emptyHint:"รันเซิร์ฟเวอร์ในเครื่องเพื่อดูที่นี่",open:"เปิด",refresh:"รีเฟรช"},commandNotes:{title:"บันทึกคำสั่ง",noSavedCommands:"ไม่มีคำสั่งที่บันทึก",addFirstBelow:"เพิ่มคำสั่งแรกของคุณด้านล่าง",clickToCopy:"คลิกเพื่อคัดลอก",copiedBang:"คัดลอกแล้ว!",copy:"คัดลอก",edit:"แก้ไข",delete:"ลบ",editCommandPlaceholder:"แก้ไขคำสั่ง...",addCommandPlaceholder:"เพิ่มคำสั่ง...",update:"อัปเดต",add:"เพิ่ม",empty:"ยังไม่มีบันทึก",emptyHint:"บันทึกคำสั่งเพื่อเข้าถึงอย่างรวดเร็ว",add:"เพิ่มบันทึก",edit:"แก้ไขบันทึก",delete:"ลบบันทึก",deleteMessage:"ลบบันทึกนี้?",name:"ชื่อ",command:"คำสั่ง",save:"บันทึก",placeholderName:"เช่น เริ่ม dev server",placeholderCommand:"เช่น npm run dev"},mobileKeyboard:{pasteHere:"วางที่นี่ (Cmd+V)",enterToSend:"Tab / Ctrl+Num เพื่อสลับแท็บ",typeCommand:"พิมพ์คำสั่งและส่ง...",send:"ส่ง",toggleExtraKeys:"สลับคีย์เพิ่มเติม",toggleTextInput:"สลับช่องป้อนข้อความ",customizeTerminalKeys:"ปรับแต่งคีย์เทอร์มินัล",mainBar:"แถบหลัก",extraPanel:"พาเนลเพิ่มเติม",fileTooLarge:"ไฟล์ใหญ่เกินไป (สูงสุด 5MB)",readFileFailed:"อ่านไฟล์ไม่สำเร็จ",uploadFailed:"อัปโหลดไฟล์ไม่สำเร็จ: {error}"},terminalPane:{scrollToBottom:"เลื่อนไปด้านล่าง",changedFiles:"Changed files",pasteOrType:"วางหรือพิมพ์ที่นี่",paste:"วาง"},pwaGuide:{copyYourKey:"คัดลอกคีย์ของคุณ",copyKeyHint:"แตะคีย์ด้านล่างเพื่อคัดลอก — คุณต้องใช้เพื่อเข้าสู่ระบบหลังติดตั้ง",tapToCopyApiKey:"แตะเพื่อคัดลอก API key",copiedBang:"คัดลอกแล้ว!",copy:"คัดลอก",tapShareButton:"แตะปุ่มแชร์",tapShareHint:"แตะปุ่มแชร์ที่ด้านล่างของ iOS Safari",addToHome:"เพิ่มไปที่หน้าจอหลัก",addToHomeHint:'เลื่อนลงและแตะ "เพิ่มไปที่หน้าจอหลัก"',openAppPasteKey:"เปิดแอปและวางคีย์",openAppPasteKeyHint:"เปิดแอปที่ติดตั้งและวางคีย์เพื่อเข้าสู่ระบบ",openMenu:"เปิดเมนู",openMenuHint:"แตะปุ่มเมนู (สามจุด) ใน Android Chrome",installApp:"ติดตั้งแอป",installAppHint:'แตะ "ติดตั้งแอป" หรือ "เพิ่มไปที่หน้าจอหลัก"',lookInstallIcon:"มองหาไอคอนติดตั้ง",lookInstallIconHint:"มองหาไอคอนติดตั้งในแถบที่อยู่",clickInstallPaste:"คลิกติดตั้งและวางคีย์",installNow:"Install Now",installNowHint:"Install 9Remote as an app for quick access",installing:"Installing...",clickInstallPasteHint:"คลิกติดตั้ง เปิดแอป และวางคีย์เพื่อเข้าสู่ระบบ",alternativeHint:'ทางเลือก: เปิดเมนูเบราว์เซอร์ → "ติดตั้ง 9Remote" หรือ "สร้างทางลัด"',loadingPlatform:"กำลังตรวจจับแพลตฟอร์ม...",iosPlatform:"iOS (iPhone/iPad)",androidPlatform:"Android",macosPlatform:"macOS",windowsPlatform:"Windows",desktopPlatform:"เดสก์ท็อป",alreadyInstalled:"ติดตั้งแล้ว!",alreadyInstalledHint:"คุณกำลังใช้ 9Remote เป็นแอปที่ติดตั้งแล้ว",installationGuide:"คู่มือการติดตั้ง",installationSteps:"ขั้นตอนการติดตั้ง:"},community:{title:"ชุมชน",description:"เข้าร่วมชุมชน 9Remote"},pwa:{title:"ติดตั้งเป็นแอป",description:"ติดตั้ง 9Remote บนอุปกรณ์ของคุณเพื่อประสบการณ์ที่ดีที่สุด",iosTitle:"iOS Safari",androidTitle:"Android Chrome",desktopTitle:"เดสก์ท็อป"},codespace:{title:"Codespace",name:"ชื่อ",status:"สถานะ",running:"กำลังทำงาน",autoStart:"เริ่ม 9Remote อัตโนมัติ",autoStartHint:"เริ่ม 9Remote เมื่อ Codespace เปิด",stop:"หยุด Codespace",stopHint:"หยุดเพื่อประหยัดการใช้งาน",restartHint:"หากต้องการเริ่มใหม่ ไปที่ GitHub",unknown:"ไม่ทราบ"}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6420],{76420:(e,r,a)=>{a.d(r,{diagram:()=>m});var t=a(77731),l=a(96910);a(58609),a(84187);var n=a(14561),i=a(68567),s=a(97811),p=(0,s.lz)().Railroad.parser.LangiumParser,o=(0,i.K)(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{let r=e.elements.map(o);return 1===r.length?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{let r=e.alternatives.map(o);return 1===r.length?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:o(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:o(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:o(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),d=(0,i.K)(e=>({name:e.name,definition:o(e.definition)}),"transformRule"),u=(0,i.K)(e=>{(0,l.S)(e,t.db),e.title&&t.db.setTitle(e.title),e.rules.map(e=>t.db.addRule(d(e)))},"populateDb"),m={parser:{parse:(0,i.K)(e=>{t.db.clear(),n.R.debug("[Railroad Parser] Starting Langium parse");let r=p.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new s.zg(r);let a=r.value;n.R.debug("[Railroad Parser] Parsed rules:",a.rules.length),u(a),n.R.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t.db}},db:t.db,renderer:t.U,styles:t.$}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6552],{6552:(e,t,s)=>{s.d(t,{J:()=>m});var a=s(73365),n=s(1521),i=s(64683),o=s(8910);let r=/"((?:[^"\\]|\\.)*)"\s*=\s*"((?:[^"\\]|\\.)*)"/g,l=e=>e.replace(/\\(.)/g,"$1"),d=e=>[...e.matchAll(r)].map(e=>[l(e[1]),l(e[2])]);var c=s(39096),u=s(14890);let m=(0,n.memo)(function({requestId:e="",questions:t=[],answers:s=null,declined:r=!1,failed:m=!1,onResolve:p}){let{isFocused:g,activate:h}=(0,u.OO)(),[f,b]=(0,n.useState)({}),[x,k]=(0,n.useState)({}),[w,v]=(0,n.useState)(!1),[_,y]=(0,n.useState)(!1),[C,j]=(0,n.useState)(0),O=(0,n.useRef)(s);(0,n.useEffect)(()=>{O.current=s});let E=(0,n.useRef)(r);(0,n.useEffect)(()=>{E.current=r});let S=(0,n.useRef)(w);(0,n.useEffect)(()=>{S.current=w}),(0,n.useEffect)(()=>{m&&(S.current=!1,v(!1))},[m]);let M=t[Math.min(C,t.length-1)],T=C>=t.length-1,A=!!f[M?.question]||_,N=(0,n.useCallback)(()=>{O.current||E.current||S.current||t.every(e=>!!f[e.question])&&((0,o.e)(),S.current=!0,v(!0),p?.(e,"allow","",f))},[t,f,e,p]),F=(0,n.useCallback)(()=>{S.current||E.current||!A||((0,o.e)(),T?N():j(e=>e+1))},[A,T,N]),G=(0,n.useCallback)(()=>{0!==C&&((0,o.e)(),j(e=>e-1))},[C]),I=(0,n.useCallback)(()=>{S.current||E.current||O.current||((0,o.e)(),S.current=!0,v(!0),p?.(e,c.x6,c.mX))},[e,p]),L=(0,n.useCallback)((e,t,s)=>{if(!S.current){if((0,o.e)(),!s){b(s=>({...s,[e]:t})),k(t=>t[e]?{...t,[e]:""}:t),T||j(e=>e+1);return}b(s=>{let a=s[e]?s[e].split(", "):[],n=a.indexOf(t);return n>-1?a.splice(n,1):a.push(t),{...s,[e]:a.join(", ")}})}},[T]),P=(0,n.useCallback)(()=>{g||h?.()},[g,h]);(0,n.useEffect)(()=>{if(!g||w||s||r||!M)return;let e=e=>{if(e.target?.tagName==="INPUT"||e.target?.tagName==="TEXTAREA")return;if("Enter"===e.key){e.preventDefault(),F();return}let t=parseInt(e.key,10);if(t>=1&&t<=9&&M.options?.[t-1]){let e=M.options[t-1];L(M.question,e.label,M.multiSelect)}};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[M,w,s,r,F,L,g]);let R=s?"string"==typeof s?function(e,t=[]){let s=String(e||"");if(!t.length){let e=d(s);return e.length?Object.fromEntries(e):null}let a={},n=0;for(let[e,i]of t.entries()){let o=s.indexOf(`"${i}"=`,n);if(-1===o)continue;let r=o+i.length+3,d=t[e+1]?s.indexOf(`"${t[e+1]}"=`,r):-1,c=s.slice(r,-1===d?void 0:d),u=c.lastIndexOf('"');u<=0||(a[i]=l(c.slice(1,u)),n=r+u)}if(Object.keys(a).length)return a;let i=d(s);return i.length?Object.fromEntries(i):null}(s,t.map(e=>e.question)):s:null;if(r)return(0,a.jsxs)("div",{className:"my-2 p-3 rounded-brand-lg bg-surface text-[13px] flex flex-col gap-1",children:[(0,a.jsx)("span",{className:"text-text-muted font-medium",children:"Skipped"}),M&&(0,a.jsx)("span",{className:"text-text-muted/70 leading-snug",children:M.question})]});if(s)return(0,a.jsxs)("div",{className:"my-2 p-3 rounded-brand-lg border border-success/30 bg-success/10 text-[13px] font-medium flex flex-col gap-1.5",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-success",children:[(0,a.jsx)(i.aJ,{size:14}),(0,a.jsx)("span",{children:"Answered"})]}),t.map((e,t)=>{let s=R?.[e.question];return s?(0,a.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,a.jsx)("span",{className:"text-[11px] font-normal text-text-muted leading-snug",children:e.question}),(0,a.jsx)("span",{className:"font-mono text-text pl-2 border-l-2 border-success/40",children:s})]},t):null}),!R&&(0,a.jsx)("span",{className:"font-mono text-text",children:String(s)})]});if(!M||!p)return null;let z=f[M.question]||"",q=M.multiSelect&&z?z.split(", "):[z];return(0,a.jsxs)("div",{onPointerDown:P,className:"my-2 p-3 rounded-brand-lg shadow-sm text-[13px] select-none border border-warning/30 bg-warning/[0.06]",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-2 text-warning font-medium",children:[(0,a.jsx)(i.mN,{size:16,className:"text-warning shrink-0"}),(0,a.jsx)("span",{children:"Question"}),t.length>1&&(0,a.jsxs)("span",{className:"font-mono text-[11px] px-1.5 py-0.5 rounded bg-surface-2 text-text-muted",children:[C+1,"/",t.length]}),M.multiSelect&&(0,a.jsx)("span",{className:"font-mono text-[11px] px-1.5 py-0.5 rounded bg-surface-2 text-text-muted uppercase",children:"multi"})]}),(0,a.jsx)("div",{className:"text-text leading-snug mb-1.5",children:M.question}),M.options?.length>0&&(0,a.jsx)("div",{className:"flex flex-col",children:M.options.map((e,t)=>{let s=q.includes(e.label);return(0,a.jsxs)("button",{type:"button",onClick:()=>L(M.question,e.label,M.multiSelect),className:`px-1.5 py-1 rounded text-left flex items-start gap-2 transition-colors text-[12px] ${s?"bg-brand-500/12":"text-text-muted hover:bg-surface-2 hover:text-text"}`,children:[(0,a.jsx)("span",{className:"font-mono text-[11px] text-text-muted/70 shrink-0 mt-0.5 w-2.5",children:t+1}),(0,a.jsxs)("span",{className:"flex flex-col gap-0.5 min-w-0 flex-1",children:[(0,a.jsx)("span",{className:`font-medium ${s?"text-brand-400":"text-text"}`,children:e.label}),e.description&&(0,a.jsx)("span",{className:"text-[11px] text-text-muted/70 leading-snug",children:e.description})]}),s&&(0,a.jsx)(i.aJ,{size:12,className:"text-brand-500 shrink-0 mt-0.5"})]},t)})}),(0,a.jsx)("input",{type:"text",value:x[M.question]||"",disabled:w,onFocus:()=>y(!0),onChange:e=>{var t,s;return t=M.question,s=e.target.value,void(k(e=>({...e,[t]:s})),b(e=>({...e,[t]:s})))},onKeyDown:e=>{"Enter"!==e.key||e.nativeEvent?.isComposing||229===e.keyCode||(e.preventDefault(),F())},placeholder:"Type your answer...",className:`w-full px-1.5 py-1 rounded bg-bg border border-border-subtle text-[12px] text-text placeholder-text-muted/70 focus:outline-none focus:border-brand-500 disabled:opacity-40 ${M.options?.length?"mt-1.5":"mt-1"}`}),m&&(0,a.jsx)("div",{className:"mt-1.5 text-[12px] text-danger leading-snug",children:"Not sent — the host did not answer. Try again."}),(0,a.jsxs)("div",{className:"mt-2 flex items-center gap-1.5 justify-end",children:[(0,a.jsx)("button",{type:"button",onClick:I,disabled:w,className:"px-2 py-1 rounded text-[12px] text-text-muted hover:text-text hover:bg-surface-2 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:"Skip"}),C>0&&(0,a.jsxs)("button",{type:"button",onClick:G,className:"px-2 py-1 rounded text-[12px] text-text-muted hover:text-text hover:bg-surface-2 transition-colors flex items-center gap-0.5",children:[(0,a.jsx)(i.JG,{size:13}),(0,a.jsx)("span",{children:"Back"})]}),(0,a.jsxs)("button",{type:"button",onClick:F,disabled:w||!A,className:"px-2.5 py-1 rounded bg-brand-500 hover:bg-brand-600 text-white flex items-center gap-1 text-[12px] font-medium transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:[(0,a.jsx)("span",{children:T?w?"Sending…":"Submit":"Next"}),T?(0,a.jsx)(i.Lt,{size:11}):(0,a.jsx)(i.c_,{size:12})]})]})]})})},14890:(e,t,s)=>{s.d(t,{OO:()=>i,fe:()=>n,xo:()=>o});var a=s(1521);let n=(0,a.createContext)({sessionId:"",isFocused:!0,activate:null}),i=()=>(0,a.useContext)(n),o=(e,t,s)=>s?`ai-${e}-${t}-${s}`:void 0},39096:(e,t,s)=>{s.d(t,{GX:()=>u,H8:()=>i,TQ:()=>o,UB:()=>n,ii:()=>r,mX:()=>c,x6:()=>d,y2:()=>l});var a=s(91524);let n=Object.fromEntries((0,a.ED)().map(e=>[e.id,e])),i=(0,a.Tz)(),o=1,r={alpha:7,size:18},l=Object.freeze(["Explain this project's structure","What changed recently in this repo?","! git status"]),d="deny",c="User skipped this request",u=5e3},91524:(e,t,s)=>{s.d(t,{$Z:()=>S,ED:()=>O,Mm:()=>c,Tw:()=>j,Tz:()=>E,Zm:()=>M,in:()=>T});let a=Object.freeze({Bash:"bash",BashOutput:"bash",KillShell:"bash",Monitor:"bash",Edit:"diff",Write:"diff",MultiEdit:"diff",NotebookEdit:"diff",Read:"file",NotebookRead:"file",TaskCreate:"task",TaskUpdate:"task",TaskList:"task",TaskGet:"task",TaskOutput:"task",TaskStop:"task",TodoWrite:"task",EnterPlanMode:"plan",ExitPlanMode:"plan",update_plan:"plan",enteredReviewMode:"review",exitedReviewMode:"review",EnteredReviewMode:"review",ExitedReviewMode:"review",AskUserQuestion:"question",Agent:"agent",Task:"agent",Workflow:"agent",SendMessage:"agent",WebSearch:"search",WebFetch:"search",Grep:"search",Glob:"search"}),n=Object.freeze({inProgress:"in_progress",in_progress:"in_progress",pending:"pending",completed:"completed"}),i=Object.freeze({ask:"Shield",edit:"Pencil",readonly:"Eye",bypass:"Sparkles"}),o=Object.freeze([{id:"default",label:"Default",desc:"Ask before executing commands & editing files",icon:i.ask},{id:"acceptEdits",label:"Accept Edits",desc:"Automatically approve file changes",icon:i.edit},{id:"plan",label:"Plan Mode",desc:"Explore and plan without modifying code",icon:i.readonly},{id:"bypassPermissions",label:"Bypass (YOLO)",desc:"Bypass all confirmation prompts",icon:i.bypass}]),r=Object.freeze([{id:"ag/gemini-3.8-flash-high",label:"ag/gemini-3.8-flash-high",short:"ag/gemini-3.8-flash-high",desc:"Fast hybrid reasoning custom model"},{id:"ag/claude-opus-4-6-thinking",label:"ag/claude-opus-4-6-thinking",short:"ag/claude-opus-4-6-thinking",desc:"Opus deep thinking custom model"},{id:"ollama/glm-5.3-flash:cloud",label:"ollama/glm-5.3-flash:cloud",short:"ollama/glm-5.3-flash:cloud",desc:"Sonnet cloud custom model"},{id:"glm/glm-5.3",label:"glm/glm-5.3",short:"glm/glm-5.3",desc:"GLM 5.3 custom model"},{id:"haiku",label:"Claude Haiku",short:"haiku",desc:"Claude Haiku CLI alias"},{id:"sonnet",label:"Claude Sonnet",short:"sonnet",desc:"Claude Sonnet CLI alias"},{id:"opus",label:"Claude Opus",short:"opus",desc:"Claude Opus CLI alias"}]),l=Object.freeze({thinking:!0,planMode:!0,tasks:!0,skills:!0,mcp:!0,rewind:!0}),d=Object.freeze([{value:"low",label:"low",desc:"Fastest, least reasoning"},{value:"medium",label:"medium",desc:"Balanced default"},{value:"high",label:"high",desc:"Deeper reasoning for hard tasks"}]),c=Object.freeze([{value:"pragmatic",label:"Pragmatic",desc:"Concise, task-focused, and direct"},{value:"friendly",label:"Friendly",desc:"Warm, collaborative, and helpful"},{value:"none",label:"None",desc:"No personality instructions"}]),u=Object.freeze([{value:"low",label:"low",desc:"Fastest, least reasoning"},{value:"medium",label:"medium",desc:"Balanced default"},{value:"high",label:"high",desc:"Greater reasoning depth"},{value:"xhigh",label:"xhigh",desc:"Extra-high reasoning"},{value:"max",label:"max",desc:"Maximum reasoning"},{value:"ultra",label:"ultra",desc:"Max reasoning + automatic task delegation"}]),m=Object.freeze([{value:"low",label:"low",desc:"Fastest, least reasoning"},{value:"medium",label:"medium",desc:"Balanced default"},{value:"high",label:"high",desc:"Deeper reasoning for hard tasks"}]),p=Object.freeze({tools:a,models:r,permissionModes:o,defaultMode:"bypassPermissions",defaultEffort:"",features:l,slashCommands:Object.freeze([{name:"/clear",description:"Clear conversation context and history",action:"clear"},{name:"/model",description:"Select or change active AI model",action:"modal:model"},{name:"/mcp",description:"List and manage MCP servers",action:"modal:mcp"},{name:"/skills",description:"List available agent skills",action:"modal:skills"},{name:"/tasks",description:"View background tasks and checklist",action:"modal:tasks"},{name:"/resume",description:"Resume a previous conversation in this project",action:"modal:sessions"},{name:"/rewind",description:"Go back to an earlier prompt in this conversation",action:"modal:rewind"},{name:"/config",description:"Adjust CLI runtime flags",action:"modal:config"},{name:"/doctor",description:"Check the CLI installation and environment",action:"modal:doctor"},{name:"/compact",description:"Compact the conversation context",action:"send"},{name:"/cost",description:"Show token usage and cost for this session",action:"send"},{name:"/context",description:"Show context window usage and loaded files",action:"send"},{name:"/effort",description:"Reasoning effort level (--effort)",action:"submenu",optionKey:"effort",subOptions:Object.freeze([...d,{value:"xhigh",label:"xhigh",desc:"Extra-high reasoning"},{value:"max",label:"max",desc:"Maximum reasoning"},{value:"ultracode",label:"ultracode",desc:"Highest: max reasoning + dynamic workflows"}])},{name:"/fast",description:"Toggle fast response mode",action:"send"},{name:"/init",description:"Create or update the project guide file",action:"send"},{name:"/simplify",description:"Simplify and optimize recently changed code",action:"send"}])}),g=Object.freeze([{value:"minimal",label:"minimal",desc:"Fastest, least reasoning"},{value:"medium",label:"medium",desc:"Balanced default"},{value:"high",label:"high",desc:"Deeper reasoning"},{value:"max",label:"max",desc:"Maximum reasoning"}]);class h{constructor({meta:e,ui:t=null,overrides:s={}}){if(!e?.id)throw Error("AiEngine requires meta.id");this.meta=e,this.ui=t,this.overrides=s,this._config=null}get id(){return this.meta.id}get config(){if(this._config)return this._config;let e=this.overrides;return this._config=Object.freeze({tools:{...p.tools,...e.tools||{}},models:e.models||p.models,permissionModes:e.permissionModes||p.permissionModes,defaultMode:e.defaultMode||p.defaultMode,defaultEffort:e.defaultEffort||p.defaultEffort,features:{...p.features,...e.features||{}},slashCommands:e.slashCommands||p.slashCommands}),this._config}getToolCategory(e){let t=Object.prototype.hasOwnProperty.call(this.config.tools,e)?this.config.tools[e]:null;return"string"==typeof t?t:"generic"}parseTaskEvent(e,t,s,a=[]){return null}parseTaskResult(e,t,s){return null}_parseReplaceAllTodos(e,t){return Array.isArray(e?.todos)?{id:t,replaceAll:!0,todos:e.todos.filter(e=>e&&String(e.content||"").trim()).map((e,s)=>({id:`${t}-${s}`,taskId:String(s+1),subject:String(e.content).trim(),activeForm:e.activeForm||"",status:n[e.status]||e.status||"pending"}))}:null}}class f extends h{constructor(){super({meta:{id:"claude",label:"Claude Code",desc:"Anthropic Claude Code CLI (stream-json)",badge:"Claude",icon:"Bot",color:"#d97706"},ui:{id:"claude-ui",label:"Claude UI",short:"Claude UI"},overrides:{}})}parseTaskEvent(e,t,s,a=[]){return"TaskCreate"===e&&t?.subject?{id:s,taskId:"",subject:String(t.subject).trim(),activeForm:t.activeForm||"",status:"pending"}:"TaskUpdate"===e&&t?{id:s,taskId:t.taskId?String(t.taskId):"",...t.status&&{status:t.status},...t.subject&&{subject:String(t.subject).trim()},...t.activeForm&&{activeForm:t.activeForm}}:"TodoWrite"===e?this._parseReplaceAllTodos(t,s):null}parseTaskResult(e,t,s){if("string"!=typeof t)return null;let a=/Task #(\d+) created/i.exec(t);return a?{id:s,taskId:a[1]}:null}}class b extends h{constructor(){super({meta:{id:"codex",label:"OpenAI Codex",desc:"OpenAI Codex CLI (exec --json)",badge:"Codex",icon:"Sparkles",color:"#10b981"},ui:{id:"codex-ui",label:"Codex UI",short:"Codex UI"},overrides:{tools:{command_execution:"bash",command:"bash",file_change:"diff",shell:"bash",patch:"diff",apply:"diff",read_file:"file",read:"file",list_files:"file",view_image:"file",image_generation:"file",todo_list:"task",web_search:"search",search:"search",spawn_agent:"agent",wait:"agent",resume_agent:"agent",send_input:"agent",close_agent:"agent",send_message:"agent",followup_task:"agent",interrupt_agent:"agent",list_agents:"agent"},models:[{id:"gpt-6-astra",label:"GPT-6-Astra",short:"6 Astra"},{id:"gpt-5.6-sol",label:"GPT-5.6-Sol",short:"5.6 Sol"},{id:"gpt-5.6-terra",label:"GPT-5.6-Terra",short:"5.6 Terra"},{id:"gpt-5.6-luna",label:"GPT-5.6-Luna",short:"5.6 Luna"},{id:"gpt-5.5",label:"GPT-5.5",short:"5.5"},{id:"gpt-5.2",label:"GPT-5.2",short:"5.2"}],permissionModes:[{id:"plan",label:"Plan",desc:"Explore and propose without changing anything",icon:i.readonly},{id:"readOnly",label:"Read Only",desc:"Read the workspace; ask before editing",icon:i.ask},{id:"default",label:"Default",desc:"Read and write the workspace",icon:i.edit},{id:"fullAccess",label:"Full Access",desc:"Edit anywhere and reach the network, no prompts",icon:i.bypass}],defaultMode:"fullAccess",defaultEffort:"xhigh",features:{thinking:!0,planMode:!0,tasks:!0,skills:!0,mcp:!0,rewind:!0},slashCommands:[{name:"/model",description:"Choose the Codex model and reasoning effort",action:"modal:model"},{name:"/effort",description:"Reasoning effort (model_reasoning_effort)",action:"submenu",optionKey:"effort",subOptions:u},{name:"/plan",description:"Switch the session into plan mode",action:"setMode",mode:"plan"},{name:"/permissions",description:"Set what Codex may do without asking",action:"modal:mode"},{name:"/personality",description:"Assistant communication style",action:"submenu",optionKey:"personality",subOptions:c},{name:"/diff",description:"Show the working tree diff",action:"send"},{name:"/review",description:"Review the working tree for bugs and missing tests",action:"send"},{name:"/status",description:"Show workspace status and configuration",action:"send"},{name:"/goal",description:"Set or view this thread's persistent goal",action:"send"},{name:"/rewind",description:"Go back to an earlier prompt in this conversation",action:"modal:rewind"},{name:"/clear",description:"Start a fresh Codex session",action:"clear"},{name:"/mcp",description:"View and manage Codex MCP servers",action:"modal:mcp"},{name:"/skills",description:"Browse installed Codex skills",action:"modal:skills"},{name:"/config",description:"Configure Codex execution flags",action:"modal:config"},{name:"/doctor",description:"Diagnose the Codex installation",action:"modal:doctor"},{name:"/tasks",description:"View the task checklist",action:"modal:tasks"},{name:"/resume",description:"Resume a previous Codex session",action:"modal:sessions"}]}})}parseTaskEvent(e,t,s){return"todo_list"===e?this._parseReplaceAllTodos(t,s):null}}class x extends h{constructor(){super({meta:{id:"opencode",label:"OpenCode",desc:"OpenCode CLI (json stream)",badge:"OpenCode",icon:"Zap",color:"#8b5cf6"},ui:{id:"opencode-ui",label:"OpenCode UI",short:"OpenCode UI"},overrides:{tools:{bash:"bash",edit:"diff",write:"diff",patch:"diff",apply_patch:"diff",read:"file",task:"agent",todowrite:"task",webfetch:"search",glob:"search",grep:"search",list:"search",view:"file"},models:[],permissionModes:[{id:"default",label:"Default",desc:"Ask before executing",icon:i.ask},{id:"auto",label:"Auto",desc:"Auto-approve all actions",icon:i.bypass}],defaultMode:"auto",features:{thinking:!0,planMode:!1,tasks:!1,skills:!1,mcp:!1,rewind:!0},slashCommands:[{name:"/model",description:"Choose the OpenCode model",action:"modal:model"},{name:"/variant",description:"Model variant / reasoning effort",action:"submenu",optionKey:"variant",subOptions:g},{name:"/mcp",description:"View and manage OpenCode MCP servers",action:"modal:mcp"},{name:"/resume",description:"Resume a previous OpenCode session",action:"modal:sessions"},{name:"/rewind",description:"Go back to an earlier prompt in this conversation",action:"modal:rewind"},{name:"/clear",description:"Start a fresh OpenCode session",action:"clear"},{name:"/help",description:"Show OpenCode help and usage",action:"send"},{name:"/doctor",description:"Check the OpenCode installation",action:"modal:doctor"},{name:"/tasks",description:"View the task checklist",action:"modal:tasks"}]}})}parseTaskEvent(e,t,s){return"todowrite"===e?this._parseReplaceAllTodos(t,s):null}}class k extends h{constructor(){super({meta:{id:"antigravity",label:"Antigravity",desc:"Google Antigravity CLI (agy, stream-json)",badge:"Antigravity",icon:"Globe",color:"#4285f4"},ui:{id:"antigravity-ui",label:"Antigravity UI",short:"Antigravity UI"},overrides:{tools:{run_command:"bash",command_status:"bash",send_command_input:"bash",view_file:"file",list_dir:"file",read_resource:"file",write_to_file:"diff",replace_file_content:"diff",multi_replace_file_content:"diff",sed_file:"diff",notebook_edit:"diff",notebook_execution:"diff",find_by_name:"search",grep_search:"search",search_web:"search",read_url_content:"search",open_browser_url:"search",browser_get_dom:"search",browser_get_network_request:"search",browser_list_network_requests:"search",browser_refresh_page:"search",browser_subagent:"agent",invoke_subagent:"agent",define_subagent:"agent",manage_subagents:"agent",manage_task:"task",manage_inbox:"task",schedule:"task",ask_question:"question",ask_permission:"question",ask_custom_permission:"question",call_mcp_tool:"generic",generate_image:"generic",execute_browser_javascript:"generic",browser_click_element:"generic",browser_input:"generic",browser_press_key:"generic",browser_scroll:"generic",browser_scroll_dom:"generic",browser_select_option:"generic",browser_resize_window:"generic",browser_move_mouse:"generic",browser_mouse_down:"generic",browser_mouse_up:"generic",browser_drag_pixel_to_pixel:"generic",click_browser_pixel:"generic",capture_browser_screenshot:"generic",capture_browser_console_logs:"generic",list_browser_pages:"generic",read_browser_page:"generic",delete_knowledge:"generic",list_permissions:"generic",list_resources:"generic",wait:"generic",wait_5_seconds:"generic",send_message:"generic",finish:"generic"},models:[{id:"gemini-3.8-flash-high",label:"Gemini 3.8 Flash (High)",short:"3.8 Flash H"},{id:"gemini-3.8-flash-medium",label:"Gemini 3.8 Flash (Medium)",short:"3.8 Flash M"},{id:"gemini-3.8-flash-low",label:"Gemini 3.8 Flash (Low)",short:"3.8 Flash L"},{id:"gemini-3.7-flash-high",label:"Gemini 3.7 Flash (High)",short:"3.7 Flash H"},{id:"gemini-3.7-flash-medium",label:"Gemini 3.7 Flash (Medium)",short:"3.7 Flash M"},{id:"gemini-3.7-flash-low",label:"Gemini 3.7 Flash (Low)",short:"3.7 Flash L"},{id:"gemini-3.6-flash-high",label:"Gemini 3.6 Flash (High)",short:"3.6 Flash H"},{id:"gemini-3.6-flash-medium",label:"Gemini 3.6 Flash (Medium)",short:"3.6 Flash M"},{id:"gemini-3.6-flash-low",label:"Gemini 3.6 Flash (Low)",short:"3.6 Flash L"},{id:"gemini-3.1-pro-high",label:"Gemini 3.1 Pro (High)",short:"3.1 Pro H"},{id:"gemini-3.1-pro-low",label:"Gemini 3.1 Pro (Low)",short:"3.1 Pro L"},{id:"claude-sonnet-4-6",label:"Claude Sonnet 4.6",short:"Sonnet 4.6"},{id:"claude-opus-4-6-thinking",label:"Claude Opus 4.6 (Thinking)",short:"Opus 4.6"},{id:"gpt-oss-120b-medium",label:"GPT-OSS 120B (Medium)",short:"GPT-OSS 120B"}],permissionModes:[{id:"plan",label:"Plan",desc:"Explore and plan without modifying code",icon:i.readonly},{id:"accept-edits",label:"Accept Edits",desc:"Auto-approve every tool the agent calls",icon:i.edit}],defaultMode:"accept-edits",features:{thinking:!0,planMode:!0,tasks:!1,skills:!1,mcp:!1,rewind:!1},slashCommands:[{name:"/model",description:"Choose the Antigravity model",action:"modal:model"},{name:"/effort",description:"Reasoning effort (--effort)",action:"submenu",optionKey:"effort",subOptions:m},{name:"/resume",description:"Resume a previous Antigravity conversation",action:"modal:sessions"},{name:"/clear",description:"Start a fresh Antigravity conversation",action:"clear"},{name:"/doctor",description:"Check the Antigravity CLI installation",action:"modal:doctor"},{name:"/plan",description:"Switch the session into read-only plan mode",action:"send"}]}})}}let w="claude",v=new Map;function _(e){if(!(e instanceof h))throw Error("registerEngine expects an AiEngine");return v.set(e.id,e),e}function y(e){return v.get(e)||v.get(w)}function C(){return[...v.values()]}function j(e=w){return y(e).config}function O(){return C().map(e=>e.meta)}function E(){return C().filter(e=>e.ui).map(e=>({...e.ui,isAiUi:!0,aiEngine:e.id}))}function S(e,t){return y(e).getToolCategory(t)}function M(e,t,s,a,n=[]){return y(e).parseTaskEvent(t,s,a,n)}function T(e,t,s,a){return y(e).parseTaskResult(t,s,a)}_(new f),_(new b),_(new x),_(new k)}}]);
@@ -0,0 +1,64 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6647],{16647:(t,e,i)=>{i.d(e,{diagram:()=>$});var s=i(58609),n=i(49519),a=i(84187);i(14561);var r=i(68567),h=i(52317),l=function(){var t=(0,r.K)(function(t,e,i,s){for(i=i||{},s=t.length;s--;i[t[s]]=e);return i},"o"),e=[1,4],i=[1,14],s=[1,12],n=[1,13],a=[6,7,8],h=[1,20],l=[1,18],o=[1,19],c=[6,7,11],u=[1,6,13,14],d=[1,23],y=[1,24],p=[1,6,7,11,13,14],g={trace:(0,r.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:(0,r.K)(function(t,e,i,s,n,a,r){var h=a.length-1;switch(n){case 6:case 7:return s;case 15:s.addNode(a[h-1].length,a[h].trim());break;case 16:s.addNode(0,a[h].trim())}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:i,7:[1,10],9:9,12:11,13:s,14:n},t(a,[2,3]),{1:[2,2]},t(a,[2,4]),t(a,[2,5]),{1:[2,6],6:i,12:15,13:s,14:n},{6:i,9:16,12:11,13:s,14:n},{6:h,7:l,10:17,11:o},t(c,[2,18],{14:[1,21]}),t(c,[2,16]),t(c,[2,17]),{6:h,7:l,10:22,11:o},{1:[2,7],6:i,12:15,13:s,14:n},t(u,[2,14],{7:d,11:y}),t(p,[2,8]),t(p,[2,9]),t(p,[2,10]),t(c,[2,15]),t(u,[2,13],{7:d,11:y}),t(p,[2,11]),t(p,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,r.K)(function(t,e){if(e.recoverable)this.trace(t);else{var i=Error(t);throw i.hash=e,i}},"parseError"),parse:(0,r.K)(function(t){var e=this,i=[0],s=[],n=[null],a=[],h=this.table,l="",o=0,c=0,u=0,d=a.slice.call(arguments,1),y=Object.create(this.lexer),p={};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p[g]=this.yy[g]);y.setInput(t,p),p.lexer=y,p.parser=this,void 0===y.yylloc&&(y.yylloc={});var f=y.yylloc;a.push(f);var k=y.options&&y.options.ranges;function m(){var t;return"number"!=typeof(t=s.pop()||y.lex()||1)&&(t instanceof Array&&(t=(s=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.parseError?this.parseError=p.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,r.K)(function(t){i.length=i.length-2*t,n.length=n.length-t,a.length=a.length-t},"popStack"),(0,r.K)(m,"lex");for(var w,x,_,b,v,S,K,$,I,E={};;){if(_=i[i.length-1],this.defaultActions[_]?b=this.defaultActions[_]:(null==w&&(w=m()),b=h[_]&&h[_][w]),void 0===b||!b.length||!b[0]){var A="";for(S in I=[],h[_])this.terminals_[S]&&S>2&&I.push("'"+this.terminals_[S]+"'");A=y.showPosition?"Parse error on line "+(o+1)+":\n"+y.showPosition()+"\nExpecting "+I.join(", ")+", got '"+(this.terminals_[w]||w)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==w?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(A,{text:y.match,token:this.terminals_[w]||w,line:y.yylineno,loc:f,expected:I})}if(b[0]instanceof Array&&b.length>1)throw Error("Parse Error: multiple actions possible at state: "+_+", token: "+w);switch(b[0]){case 1:i.push(w),n.push(y.yytext),a.push(y.yylloc),i.push(b[1]),w=null,x?(w=x,x=null):(c=y.yyleng,l=y.yytext,o=y.yylineno,f=y.yylloc,u>0&&u--);break;case 2:if(K=this.productions_[b[1]][1],E.$=n[n.length-K],E._$={first_line:a[a.length-(K||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(K||1)].first_column,last_column:a[a.length-1].last_column},k&&(E._$.range=[a[a.length-(K||1)].range[0],a[a.length-1].range[1]]),void 0!==(v=this.performAction.apply(E,[l,c,o,p,b[1],n,a].concat(d))))return v;K&&(i=i.slice(0,-1*K*2),n=n.slice(0,-1*K),a=a.slice(0,-1*K)),i.push(this.productions_[b[1]][0]),n.push(E.$),a.push(E._$),$=h[i[i.length-2]][i[i.length-1]],i.push($);break;case 3:return!0}}return!0},"parse")};function f(){this.yy={}}return g.lexer={EOF:1,parseError:(0,r.K)(function(t,e){if(this.yy.parser)this.yy.parser.parseError(t,e);else throw Error(t)},"parseError"),setInput:(0,r.K)(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:(0,r.K)(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:(0,r.K)(function(t){var e=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var n=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===s.length?this.yylloc.first_column:0)+s[s.length-i.length].length-i[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:(0,r.K)(function(){return this._more=!0,this},"more"),reject:(0,r.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,r.K)(function(t){this.unput(this.match.slice(t))},"less"),pastInput:(0,r.K)(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,r.K)(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,r.K)(function(){var t=this.pastInput(),e=Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:(0,r.K)(function(t,e){var i,s,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(s=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],i=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack)for(var a in n)this[a]=n[a];return!1},"test_match"),next:(0,r.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var t,e,i,s,n=this._currentRules(),a=0;a<n.length;a++)if((i=this._input.match(this.rules[n[a]]))&&(!e||i[0].length>e[0].length)){if(e=i,s=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(i,n[a])))return t;if(!this._backtrack)return!1;e=!1;continue}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[s]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,r.K)(function(){var t=this.next();return t||this.lex()},"lex"),begin:(0,r.K)(function(t){this.conditionStack.push(t)},"begin"),popState:(0,r.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,r.K)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,r.K)(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:(0,r.K)(function(t){this.begin(t)},"pushState"),stateStackSize:(0,r.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,r.K)(function(t,e,i,s){switch(i){case 0:case 3:return 6;case 1:case 2:return 8;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}},(0,r.K)(f,"Parser"),f.prototype=g,g.Parser=f,new f}();l.parser=l;var o=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{(0,r.K)(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,(0,a.IU)()}getRoot(){return this.root}addNode(t,e){let i=a.Y2.sanitizeText(e,(0,a.D7)());if(!this.root){this.root={text:i,children:[]},this.stack=[{level:0,node:this.root}],(0,a.ke)(i);return}this.baseLevel??=t;let s=t-this.baseLevel+1;for(s<=0&&(s=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=s;)this.stack.pop();let n=this.stack[this.stack.length-1].node,r={text:i,children:[]};n.children.push(r),this.stack.push({level:s,node:r})}getAccTitle(){return(0,a.iN)()}setAccTitle(t){(0,a.SV)(t)}getAccDescription(){return(0,a.m7)()}setAccDescription(t){(0,a.EI)(t)}getDiagramTitle(){return(0,a.ab)()}setDiagramTitle(t){(0,a.ke)(t)}},c=82*Math.PI/180,u=Math.cos(c),d=Math.sin(c),y=(0,r.K)((t,e,i)=>{let s=t.node().getBBox(),n=s.width+2*e,r=s.height+2*e;(0,a.a$)(t,r,n,i),t.attr("viewBox",`${s.x-e} ${s.y-e} ${n} ${r}`)},"applyPaddedViewBox"),p=(0,r.K)((t,e,i,r)=>{let l=r.db.getRoot();if(!l)return;let o=(0,a.D7)(),{look:c,handDrawnSeed:u,themeVariables:d}=o,p=(0,n.I5)(o.fontSize)[0]??14,k="handDrawn"===c,m=l.children??[],w=o.ishikawa?.diagramPadding??20,_=o.ishikawa?.useMaxWidth??!1,b=(0,s.D)(e),v=b.append("g").attr("class","ishikawa"),S=k?h.A.svg(b.node()):void 0,$=S?{roughSvg:S,seed:u??0,lineColor:d?.lineColor??"#333",fillColor:d?.mainBkg??"#fff"}:void 0,I=`ishikawa-arrow-${e}`;k||v.append("defs").append("marker").attr("id",I).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let E=0,A=250,C=k?void 0:K(v,E,A,E,A,"ishikawa-spine");if(f(v,E,A,l.text,p,$),!m.length){k&&K(v,E,A,E,A,"ishikawa-spine",$),y(b,w,_);return}E-=20;let L=m.filter((t,e)=>e%2==0),M=m.filter((t,e)=>e%2==1),P=g(L),T=g(M),B=P.total+T.total,N=250,D=250;B>0&&(N=Math.max(75,500*(P.total/B)),D=Math.max(75,500*(T.total/B)));let O=2*p;N=Math.max(N,P.max*O),D=Math.max(D,T.max*O),A=Math.max(N,250),C&&C.attr("y1",A).attr("y2",A),v.select(".ishikawa-head-group").attr("transform",`translate(0,${A})`);let W=Math.ceil(m.length/2);for(let t=0;t<W;t++){let e=v.append("g").attr("class","ishikawa-pair");for(let[i,s,n]of[[m[2*t],-1,N],[m[2*t+1],1,D]])i&&x(e,i,E,A,s,n,p,$);E=e.selectAll("text").nodes().reduce((t,e)=>Math.min(t,e.getBBox().x),1/0)}if(k)K(v,E,A,0,A,"ishikawa-spine",$);else{C.attr("x1",E);let t=`url(#${I})`;v.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",t)}y(b,w,_)},"draw"),g=(0,r.K)(t=>{let e=(0,r.K)(t=>t.children.reduce((t,i)=>t+1+e(i),0),"countDescendants");return t.reduce((t,i)=>{let s=e(i);return t.total+=s,t.max=Math.max(t.max,s),t},{total:0,max:0})},"sideStats"),f=(0,r.K)((t,e,i,s,n,a)=>{let r=Math.max(6,Math.floor(110/(.6*n))),h=t.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${e},${i})`),l=v(h,b(s,r),0,0,"ishikawa-head-label","start",n),o=l.node().getBBox(),c=Math.max(60,o.width+6),u=Math.max(40,2*o.height+40),d=`M 0 ${-u/2} L 0 ${u/2} Q ${2.4*c} 0 0 ${-u/2} Z`;if(a){let t=a.roughSvg.path(d,{roughness:1.5,seed:a.seed,fill:a.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:a.lineColor,strokeWidth:2});h.insert(()=>t,":first-child").attr("class","ishikawa-head")}else h.insert("path",":first-child").attr("class","ishikawa-head").attr("d",d);l.attr("transform",`translate(${(c-o.width)/2-o.x+3},${-o.y-o.height/2})`)},"drawHead"),k=(0,r.K)((t,e)=>{let i=[],s=[],n=(0,r.K)((t,a,r)=>{for(let h of -1===e?[...t].reverse():t){let t=i.length,e=h.children??[];i.push({depth:r,text:b(h.text,15),parentIndex:a,childCount:e.length}),r%2==0?(s.push(t),e.length&&n(e,t,r+1)):(e.length&&n(e,t,r+1),s.push(t))}},"walk");return n(t,-1,2),{entries:i,yOrder:s}},"flattenTree"),m=(0,r.K)((t,e,i,s,n,a,r)=>{let h=t.append("g").attr("class","ishikawa-label-group"),l=v(h,e,i,s+11*n,"ishikawa-label cause","middle",a).node().getBBox();if(r){let t=r.roughSvg.rectangle(l.x-20,l.y-2,l.width+40,l.height+4,{roughness:1.5,seed:r.seed,fill:r.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:r.lineColor,strokeWidth:2});h.insert(()=>t,":first-child").attr("class","ishikawa-label-box")}else h.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",l.x-20).attr("y",l.y-2).attr("width",l.width+40).attr("height",l.height+4)},"drawCauseLabel"),w=(0,r.K)((t,e,i,s,n,a)=>{let r=Math.sqrt(s*s+n*n);if(0===r)return;let h=s/r,l=n/r,o=-(6*l),c=6*h,u=`M ${e} ${i} L ${e-6*h*2+o} ${i-6*l*2+c} L ${e-6*h*2-o} ${i-6*l*2-c} Z`,d=a.roughSvg.path(u,{roughness:1,seed:a.seed,fill:a.lineColor,fillStyle:"solid",stroke:a.lineColor,strokeWidth:1});t.append(()=>d)},"drawArrowMarker"),x=(0,r.K)((t,e,i,s,n,a,r,h)=>{let l=e.children??[],o=a*(l.length?1:.2),c=d*o*n,y=i+-u*o,p=s+c;if(K(t,i,s,y,p,"ishikawa-branch",h),h&&w(t,i,s,i-y,s-p,h),m(t,e.text,y,p,n,r,h),!l.length)return;let{entries:g,yOrder:f}=k(l,n),x=g.length,_=Array(x);for(let[t,e]of f.entries())_[e]=s+(t+1)/(x+1)*c;let b=new Map;b.set(-1,{x0:i,y0:s,x1:y,y1:p,childCount:l.length,childrenDrawn:0});let $=-u,I=d*n,E=n<0?"ishikawa-label up":"ishikawa-label down";for(let[e,i]of g.entries()){let s=_[e],n=b.get(i.parentIndex),a=t.append("g").attr("class","ishikawa-sub-group"),l=0,o=0,c=0;if(i.depth%2==0){let t=n.y1-n.y0;l=S(n.x0,n.x1,t?(s-n.y0)/t:.5),o=s,c=l-(i.childCount>0?60+5*i.childCount:30),K(a,l,s,c,s,"ishikawa-sub-branch",h),h&&w(a,l,s,1,0,h),v(a,i.text,c,s,"ishikawa-label align","end",r)}else{let t=n.childrenDrawn++;c=(l=S(n.x0,n.x1,(n.childCount-t)/(n.childCount+1)))+(s-(o=n.y0))/I*$,K(a,l,o,c,s,"ishikawa-sub-branch",h),h&&w(a,l,o,l-c,o-s,h),v(a,i.text,c,s,E,"end",r)}i.childCount>0&&b.set(e,{x0:l,y0:o,x1:c,y1:s,childCount:i.childCount,childrenDrawn:0})}},"drawBranch"),_=(0,r.K)(t=>t.split(/<br\s*\/?>|\n/),"splitLines"),b=(0,r.K)((t,e)=>{if(t.length<=e)return t;let i=[];for(let s of t.split(/\s+/)){let t=i.length-1;t>=0&&i[t].length+1+s.length<=e?i[t]+=" "+s:i.push(s)}return i.join("\n")},"wrapText"),v=(0,r.K)((t,e,i,s,n,a,r)=>{let h=_(e),l=1.05*r,o=t.append("text").attr("class",n).attr("text-anchor",a).attr("x",i).attr("y",s-(h.length-1)*l/2);for(let[t,e]of h.entries())o.append("tspan").attr("x",i).attr("dy",0===t?0:l).text(e);return o},"drawMultilineText"),S=(0,r.K)((t,e,i)=>t+(e-t)*i,"lerp"),K=(0,r.K)((t,e,i,s,n,a,r)=>{if(r){let h=r.roughSvg.line(e,i,s,n,{roughness:1.5,seed:r.seed,stroke:r.lineColor,strokeWidth:2});t.append(()=>h).attr("class",a);return}return t.append("line").attr("class",a).attr("x1",e).attr("y1",i).attr("x2",s).attr("y2",n)},"drawLine"),$={parser:l,get db(){return new o},renderer:{draw:p},styles:(0,r.K)(t=>`
2
+ .ishikawa .ishikawa-spine,
3
+ .ishikawa .ishikawa-branch,
4
+ .ishikawa .ishikawa-sub-branch {
5
+ stroke: ${t.lineColor};
6
+ stroke-width: 2;
7
+ fill: none;
8
+ }
9
+
10
+ .ishikawa .ishikawa-sub-branch {
11
+ stroke-width: 1;
12
+ }
13
+
14
+ .ishikawa .ishikawa-arrow {
15
+ fill: ${t.lineColor};
16
+ }
17
+
18
+ .ishikawa .ishikawa-head {
19
+ fill: ${t.mainBkg};
20
+ stroke: ${t.lineColor};
21
+ stroke-width: 2;
22
+ }
23
+
24
+ .ishikawa .ishikawa-label-box {
25
+ fill: ${t.mainBkg};
26
+ stroke: ${t.lineColor};
27
+ stroke-width: 2;
28
+ }
29
+
30
+ .ishikawa text {
31
+ font-family: ${t.fontFamily};
32
+ font-size: ${t.fontSize};
33
+ fill: ${t.textColor};
34
+ }
35
+
36
+ .ishikawa .ishikawa-head-label {
37
+ font-weight: 600;
38
+ text-anchor: middle;
39
+ dominant-baseline: middle;
40
+ font-size: 14px;
41
+ }
42
+
43
+ .ishikawa .ishikawa-label {
44
+ text-anchor: end;
45
+ }
46
+
47
+ .ishikawa .ishikawa-label.cause {
48
+ text-anchor: middle;
49
+ dominant-baseline: middle;
50
+ }
51
+
52
+ .ishikawa .ishikawa-label.align {
53
+ text-anchor: end;
54
+ dominant-baseline: middle;
55
+ }
56
+
57
+ .ishikawa .ishikawa-label.up {
58
+ dominant-baseline: baseline;
59
+ }
60
+
61
+ .ishikawa .ishikawa-label.down {
62
+ dominant-baseline: hanging;
63
+ }
64
+ `,"getStyles")}}}]);