@minecraft-docker/mcctl-console 2.5.0 → 2.6.1

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 (170) hide show
  1. package/.next/standalone/platform/services/mcctl-console/.next/BUILD_ID +1 -1
  2. package/.next/standalone/platform/services/mcctl-console/.next/app-build-manifest.json +79 -79
  3. package/.next/standalone/platform/services/mcctl-console/.next/app-path-routes-manifest.json +1 -1
  4. package/.next/standalone/platform/services/mcctl-console/.next/build-manifest.json +2 -2
  5. package/.next/standalone/platform/services/mcctl-console/.next/prerender-manifest.json +1 -1
  6. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/admin/users/page.js +1 -1
  7. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/admin/users/page.js.nft.json +1 -1
  8. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/admin/users/page_client-reference-manifest.js +1 -1
  9. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/audit-logs/page.js +2 -2
  10. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/audit-logs/page.js.nft.json +1 -1
  11. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/audit-logs/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page.js +1 -1
  13. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page.js.nft.json +1 -1
  14. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/backups/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/dashboard/page.js +5 -5
  16. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/dashboard/page.js.nft.json +1 -1
  17. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/dashboard/page_client-reference-manifest.js +1 -1
  18. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page.js +1 -1
  19. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page.js.nft.json +1 -1
  20. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/players/page_client-reference-manifest.js +1 -1
  21. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/routing/page.js +4 -4
  22. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/routing/page.js.nft.json +1 -1
  23. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/routing/page_client-reference-manifest.js +1 -1
  24. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/console/page.js +1 -1
  25. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/console/page.js.nft.json +1 -1
  26. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/console/page_client-reference-manifest.js +1 -1
  27. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page.js +1 -1
  28. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page.js.nft.json +1 -1
  29. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/[name]/page_client-reference-manifest.js +1 -1
  30. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/page.js +1 -1
  31. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/page.js.nft.json +1 -1
  32. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/servers/page_client-reference-manifest.js +1 -1
  33. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/settings/page.js +1 -1
  34. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/settings/page.js.nft.json +1 -1
  35. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/settings/page_client-reference-manifest.js +1 -1
  36. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/worlds/page.js +1 -1
  37. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/worlds/page.js.nft.json +1 -1
  38. package/.next/standalone/platform/services/mcctl-console/.next/server/app/(main)/worlds/page_client-reference-manifest.js +1 -1
  39. package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  40. package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found.html +1 -1
  41. package/.next/standalone/platform/services/mcctl-console/.next/server/app/_not-found.rsc +1 -1
  42. package/.next/standalone/platform/services/mcctl-console/.next/server/app/audit-logs.html +1 -1
  43. package/.next/standalone/platform/services/mcctl-console/.next/server/app/audit-logs.rsc +3 -3
  44. package/.next/standalone/platform/services/mcctl-console/.next/server/app/backups.html +1 -1
  45. package/.next/standalone/platform/services/mcctl-console/.next/server/app/backups.rsc +2 -2
  46. package/.next/standalone/platform/services/mcctl-console/.next/server/app/dashboard.html +1 -1
  47. package/.next/standalone/platform/services/mcctl-console/.next/server/app/dashboard.rsc +3 -3
  48. package/.next/standalone/platform/services/mcctl-console/.next/server/app/index.html +1 -1
  49. package/.next/standalone/platform/services/mcctl-console/.next/server/app/index.rsc +1 -1
  50. package/.next/standalone/platform/services/mcctl-console/.next/server/app/login/page_client-reference-manifest.js +1 -1
  51. package/.next/standalone/platform/services/mcctl-console/.next/server/app/login.html +1 -1
  52. package/.next/standalone/platform/services/mcctl-console/.next/server/app/login.rsc +1 -1
  53. package/.next/standalone/platform/services/mcctl-console/.next/server/app/page_client-reference-manifest.js +1 -1
  54. package/.next/standalone/platform/services/mcctl-console/.next/server/app/players.html +1 -1
  55. package/.next/standalone/platform/services/mcctl-console/.next/server/app/players.rsc +3 -3
  56. package/.next/standalone/platform/services/mcctl-console/.next/server/app/routing.html +1 -1
  57. package/.next/standalone/platform/services/mcctl-console/.next/server/app/routing.rsc +3 -3
  58. package/.next/standalone/platform/services/mcctl-console/.next/server/app/servers.html +1 -1
  59. package/.next/standalone/platform/services/mcctl-console/.next/server/app/servers.rsc +3 -3
  60. package/.next/standalone/platform/services/mcctl-console/.next/server/app/settings.html +1 -1
  61. package/.next/standalone/platform/services/mcctl-console/.next/server/app/settings.rsc +3 -3
  62. package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup/page_client-reference-manifest.js +1 -1
  63. package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup.html +1 -1
  64. package/.next/standalone/platform/services/mcctl-console/.next/server/app/signup.rsc +1 -1
  65. package/.next/standalone/platform/services/mcctl-console/.next/server/app/worlds.html +1 -1
  66. package/.next/standalone/platform/services/mcctl-console/.next/server/app/worlds.rsc +3 -3
  67. package/.next/standalone/platform/services/mcctl-console/.next/server/app-paths-manifest.json +22 -22
  68. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/2743.js +54 -0
  69. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/354.js +1 -1
  70. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/4609.js +1 -1
  71. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/5843.js +1 -1
  72. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/{5845.js → 6509.js} +5 -5
  73. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/7573.js +1 -0
  74. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/8055.js +1 -0
  75. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/8243.js +1 -1
  76. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/8849.js +1 -0
  77. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/9874.js +1 -0
  78. package/.next/standalone/platform/services/mcctl-console/.next/server/middleware-manifest.json +5 -5
  79. package/.next/standalone/platform/services/mcctl-console/.next/server/next-font-manifest.js +1 -1
  80. package/.next/standalone/platform/services/mcctl-console/.next/server/next-font-manifest.json +1 -1
  81. package/.next/standalone/platform/services/mcctl-console/.next/server/pages/404.html +1 -1
  82. package/.next/standalone/platform/services/mcctl-console/.next/server/pages/500.html +1 -1
  83. package/.next/standalone/platform/services/mcctl-console/.next/server/server-reference-manifest.json +1 -1
  84. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/2535-54681cf49f7f39e8.js +1 -0
  85. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/3333-7e2d13faa47ed67e.js +1 -0
  86. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/3945-7c1c5f7e488ff042.js +1 -0
  87. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4187-07672ba5a9f76f7c.js +1 -0
  88. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4240-16f6e4c7e86ef2ce.js +1 -0
  89. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4436-bf86b627021ca7ab.js +1 -0
  90. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5381-d66dae5d5171cd57.js +1 -0
  91. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/7082-a03865af2ed57a67.js +1 -0
  92. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/7965-51dfb844f8b8584c.js +1 -0
  93. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/8233-0fdf0ee81a8cadce.js +1 -0
  94. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/8468-8346b1d9ff3f7efa.js +1 -0
  95. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/8858-e009f69745d12205.js +1 -0
  96. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/audit-logs/{page-2763a56ce0490dd1.js → page-90479d797d04efdb.js} +1 -1
  97. package/.next/{static/chunks/app/(main)/dashboard/page-b2677b1041311201.js → standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/dashboard/page-aa8e2d7970450b2a.js} +1 -1
  98. package/.next/{static/chunks/app/(main)/layout-9ce7f2bf657eacfa.js → standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/layout-e6d8aef242d7e516.js} +1 -1
  99. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/players/{page-785e0ce7c07f8119.js → page-4a3f72a092662e75.js} +1 -1
  100. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/routing/page-29d4216d11c4d426.js +1 -0
  101. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/[name]/page-2ec271596e09c5f1.js +1 -0
  102. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/{page-c5378a7bfc6472ca.js → page-4324a833564ed326.js} +1 -1
  103. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/settings/page-12a46542ea952feb.js +1 -0
  104. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/worlds/page-7f194148444c39f3.js +1 -0
  105. package/.next/standalone/platform/services/mcctl-console/.next/static/css/4d6bfee1e91e393d.css +1 -0
  106. package/.next/static/chunks/2535-54681cf49f7f39e8.js +1 -0
  107. package/.next/static/chunks/3333-7e2d13faa47ed67e.js +1 -0
  108. package/.next/static/chunks/3945-7c1c5f7e488ff042.js +1 -0
  109. package/.next/static/chunks/4187-07672ba5a9f76f7c.js +1 -0
  110. package/.next/static/chunks/4240-16f6e4c7e86ef2ce.js +1 -0
  111. package/.next/static/chunks/4436-bf86b627021ca7ab.js +1 -0
  112. package/.next/static/chunks/5381-d66dae5d5171cd57.js +1 -0
  113. package/.next/static/chunks/7082-a03865af2ed57a67.js +1 -0
  114. package/.next/static/chunks/7965-51dfb844f8b8584c.js +1 -0
  115. package/.next/static/chunks/8233-0fdf0ee81a8cadce.js +1 -0
  116. package/.next/static/chunks/8468-8346b1d9ff3f7efa.js +1 -0
  117. package/.next/static/chunks/8858-e009f69745d12205.js +1 -0
  118. package/.next/static/chunks/app/(main)/audit-logs/{page-2763a56ce0490dd1.js → page-90479d797d04efdb.js} +1 -1
  119. package/.next/{standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/dashboard/page-b2677b1041311201.js → static/chunks/app/(main)/dashboard/page-aa8e2d7970450b2a.js} +1 -1
  120. package/.next/{standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/layout-9ce7f2bf657eacfa.js → static/chunks/app/(main)/layout-e6d8aef242d7e516.js} +1 -1
  121. package/.next/static/chunks/app/(main)/players/{page-785e0ce7c07f8119.js → page-4a3f72a092662e75.js} +1 -1
  122. package/.next/static/chunks/app/(main)/routing/page-29d4216d11c4d426.js +1 -0
  123. package/.next/static/chunks/app/(main)/servers/[name]/page-2ec271596e09c5f1.js +1 -0
  124. package/.next/static/chunks/app/(main)/servers/{page-c5378a7bfc6472ca.js → page-4324a833564ed326.js} +1 -1
  125. package/.next/static/chunks/app/(main)/settings/page-12a46542ea952feb.js +1 -0
  126. package/.next/static/chunks/app/(main)/worlds/page-7f194148444c39f3.js +1 -0
  127. package/.next/static/css/4d6bfee1e91e393d.css +1 -0
  128. package/package.json +2 -2
  129. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/3810.js +0 -1
  130. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/4207.js +0 -1
  131. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/4282.js +0 -1
  132. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/7402.js +0 -54
  133. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/7445.js +0 -1
  134. package/.next/standalone/platform/services/mcctl-console/.next/server/chunks/9350.js +0 -1
  135. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/190-9ecdd3c2ad7fadef.js +0 -1
  136. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/2698-aeed063326ab23db.js +0 -1
  137. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4474-b7d88543d50f7f58.js +0 -1
  138. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4596-fa980f5e0b65f2b7.js +0 -1
  139. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/4682-61f6b7ad99cfd0c9.js +0 -1
  140. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5381-4e3aac97e0617278.js +0 -1
  141. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/5386-a568e84580b1d208.js +0 -1
  142. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/7965-a31f12b5a5f1519b.js +0 -1
  143. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/8918-bae025d477685e7d.js +0 -1
  144. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/9727-8e82372636a2fca6.js +0 -1
  145. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/9951-34eb9e4c6b6cdd23.js +0 -1
  146. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/routing/page-8333f2419cbdd686.js +0 -1
  147. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/servers/[name]/page-b5a8d2d603b92812.js +0 -1
  148. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/settings/page-af345917f438de8d.js +0 -1
  149. package/.next/standalone/platform/services/mcctl-console/.next/static/chunks/app/(main)/worlds/page-01447db96eaf75eb.js +0 -1
  150. package/.next/standalone/platform/services/mcctl-console/.next/static/css/2a015360a6bc64f3.css +0 -1
  151. package/.next/static/chunks/190-9ecdd3c2ad7fadef.js +0 -1
  152. package/.next/static/chunks/2698-aeed063326ab23db.js +0 -1
  153. package/.next/static/chunks/4474-b7d88543d50f7f58.js +0 -1
  154. package/.next/static/chunks/4596-fa980f5e0b65f2b7.js +0 -1
  155. package/.next/static/chunks/4682-61f6b7ad99cfd0c9.js +0 -1
  156. package/.next/static/chunks/5381-4e3aac97e0617278.js +0 -1
  157. package/.next/static/chunks/5386-a568e84580b1d208.js +0 -1
  158. package/.next/static/chunks/7965-a31f12b5a5f1519b.js +0 -1
  159. package/.next/static/chunks/8918-bae025d477685e7d.js +0 -1
  160. package/.next/static/chunks/9727-8e82372636a2fca6.js +0 -1
  161. package/.next/static/chunks/9951-34eb9e4c6b6cdd23.js +0 -1
  162. package/.next/static/chunks/app/(main)/routing/page-8333f2419cbdd686.js +0 -1
  163. package/.next/static/chunks/app/(main)/servers/[name]/page-b5a8d2d603b92812.js +0 -1
  164. package/.next/static/chunks/app/(main)/settings/page-af345917f438de8d.js +0 -1
  165. package/.next/static/chunks/app/(main)/worlds/page-01447db96eaf75eb.js +0 -1
  166. package/.next/static/css/2a015360a6bc64f3.css +0 -1
  167. /package/.next/standalone/platform/services/mcctl-console/.next/static/{UT1hqjjvqYlP0_6fAgVvi → vFi0GyYVE0v9zPFVmRQHq}/_buildManifest.js +0 -0
  168. /package/.next/standalone/platform/services/mcctl-console/.next/static/{UT1hqjjvqYlP0_6fAgVvi → vFi0GyYVE0v9zPFVmRQHq}/_ssgManifest.js +0 -0
  169. /package/.next/static/{UT1hqjjvqYlP0_6fAgVvi → vFi0GyYVE0v9zPFVmRQHq}/_buildManifest.js +0 -0
  170. /package/.next/static/{UT1hqjjvqYlP0_6fAgVvi → vFi0GyYVE0v9zPFVmRQHq}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7965],{76544:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)([(0,i.jsx)("path",{d:"m7.3 14.7 1.2-1.2c-1-1-1.5-2.3-1.5-3.5 0-1.3.5-2.6 1.5-3.5L7.3 5.3c-1.3 1.3-2 3-2 4.7s.7 3.4 2 4.7M19.1 2.9l-1.2 1.2c1.6 1.6 2.4 3.8 2.4 5.9 0 2.1-.8 4.3-2.4 5.9l1.2 1.2c2-2 2.9-4.5 2.9-7.1 0-2.6-1-5.1-2.9-7.1"},"0"),(0,i.jsx)("path",{d:"M6.1 4.1 4.9 2.9C3 4.9 2 7.4 2 10c0 2.6 1 5.1 2.9 7.1l1.2-1.2c-1.6-1.6-2.4-3.8-2.4-5.9 0-2.1.8-4.3 2.4-5.9m10.6 10.6c1.3-1.3 2-3 2-4.7-.1-1.7-.7-3.4-2-4.7l-1.2 1.2c1 1 1.5 2.3 1.5 3.5 0 1.3-.5 2.6-1.5 3.5zM14.5 10c0-1.38-1.12-2.5-2.5-2.5S9.5 8.62 9.5 10c0 .76.34 1.42.87 1.88L7 22h2l.67-2h4.67l.66 2h2l-3.37-10.12c.53-.46.87-1.12.87-1.88m-4.17 8L12 13l1.67 5z"},"1")],"CellTower")},23695:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info")},21605:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.jsx)("path",{d:"M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28-.22-.5-.5-.5M1 9l2 2c2.88-2.88 6.79-4.08 10.53-3.62l1.19-2.68C9.89 3.84 4.74 5.27 1 9m20 2 2-2c-1.64-1.64-3.55-2.82-5.59-3.57l-.53 2.82c1.5.62 2.9 1.53 4.12 2.75m-4 4 2-2c-.8-.8-1.7-1.42-2.66-1.89l-.55 2.92c.42.27.83.59 1.21.97M5 13l2 2c1.13-1.13 2.56-1.79 4.03-2l1.28-2.88c-2.63-.08-5.3.87-7.31 2.88"}),"NetworkCheck")},9078:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"}),"OpenInNew")},84974:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public")},29983:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.jsx)("path",{d:"m20.2 5.9.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7m-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6-1 2.5-1 .9 0 1.8.3 2.5 1zM19 13h-2V9h-2v4H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2M8 18H6v-2h2zm3.5 0h-2v-2h2zm3.5 0h-2v-2h2z"}),"Router")},93315:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop")},42730:function(e,n,r){var t=r(8091);n.Z=void 0;var s=t(r(66758)),i=r(94655);n.Z=(0,s.default)((0,i.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},52082:function(e,n,r){r.d(n,{Z:function(){return w}});var t,s=r(32324),i=r(81500),a=r(35106),l=r(70316),o=r(65951),c=r(38762),d=r(31317),x=r(14406),u=r(85016),h=r(34519),p=r(11379),m=r(9049);function Z(e){return(0,m.ZP)("MuiInputAdornment",e)}let j=(0,p.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var f=r(28057),v=r(94655);let g=["children","className","component","disablePointerEvents","disableTypography","position","variant"],y=e=>{let{classes:n,disablePointerEvents:r,hiddenLabel:t,position:s,size:i,variant:a}=e,l={root:["root",r&&"disablePointerEvents",s&&"position".concat((0,c.Z)(s)),a,t&&"hiddenLabel",i&&"size".concat((0,c.Z)(i))]};return(0,o.Z)(l,Z,n)},b=(0,h.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,n)=>{let{ownerState:r}=e;return[n.root,n["position".concat((0,c.Z)(r.position))],!0===r.disablePointerEvents&&n.disablePointerEvents,n[r.variant]]}})(e=>{let{theme:n,ownerState:r}=e;return(0,i.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(n.vars||n).palette.action.active},"filled"===r.variant&&{["&.".concat(j.positionStart,"&:not(.").concat(j.hiddenLabel,")")]:{marginTop:16}},"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})});var w=a.forwardRef(function(e,n){let r=(0,f.i)({props:e,name:"MuiInputAdornment"}),{children:o,className:c,component:h="div",disablePointerEvents:p=!1,disableTypography:m=!1,position:Z,variant:j}=r,w=(0,s.Z)(r,g),S=(0,u.Z)()||{},z=j;j&&S.variant,S&&!z&&(z=S.variant);let P=(0,i.Z)({},r,{hiddenLabel:S.hiddenLabel,size:S.size,disablePointerEvents:p,position:Z,variant:z}),C=y(P);return(0,v.jsx)(x.Z.Provider,{value:null,children:(0,v.jsx)(b,(0,i.Z)({as:h,ownerState:P,className:(0,l.Z)(C.root,c),ref:n},w,{children:"string"!=typeof o||m?(0,v.jsxs)(a.Fragment,{children:["start"===Z?t||(t=(0,v.jsx)("span",{className:"notranslate",children:"​"})):null,o]}):(0,v.jsx)(d.Z,{color:"text.secondary",children:o})}))})})},57965:function(e,n,r){r.d(n,{eE:function(){return Q},E4:function(){return A},SB:function(){return M},ms:function(){return q},hI:function(){return Z},aY:function(){return ec},zd:function(){return W},Ik:function(){return z}});var t=r(94655),s=r(628),i=r(41565),a=r(31317),l=r(7281),o=r(25333),c=r(21138),d=r(84811),x=r(70366),u=r(47001),h=r(59602);let p={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},m={border:0,py:1};function Z(e){var n;let{router:r}=e,Z=(n=r.mode)?n.includes("in-docker")||n.includes("auto-discovery")?{label:"Auto Discovery",color:"info"}:n.includes("mapping")?{label:"Manual Mapping",color:"warning"}:{label:n,color:"default"}:{label:"Unknown",color:"default"};return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(h.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Platform Information"})]}),(0,t.jsx)(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:p,children:"Router Name"}),(0,t.jsx)(u.Z,{sx:m,children:r.name})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:p,children:"Port"}),(0,t.jsx)(u.Z,{sx:m,children:r.port})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:p,children:"Mode"}),(0,t.jsx)(u.Z,{sx:m,children:(0,t.jsx)(o.Z,{label:Z.label,size:"small",color:Z.color,variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:p,children:"Uptime"}),(0,t.jsx)(u.Z,{sx:m,children:r.uptime||"-"})]})]})})]})})}var j=r(95511),f=r(66561),v=r(12795),g=r(96407),y=r(29983),b=r(81960);function w(e){switch(e){case"running":return"#4caf50";case"exited":case"dead":case"not_found":case"not_created":return"#f44336";case"created":case"restarting":case"paused":return"#ff9800";default:return"#9e9e9e"}}function S(e){let{status:n}=e;return(0,t.jsx)(j.Z,{title:n,arrow:!0,children:(0,t.jsx)(l.Z,{sx:{width:10,height:10,borderRadius:"50%",bgcolor:w(n),flexShrink:0,boxShadow:"running"===n?"0 0 6px ".concat(w(n)):"none"}})})}function z(e){let{router:n}=e,r=function(e){let n=new Map;for(let r of e){let e=r.target.replace(/^mc-/,"").replace(/:25565$/,""),t=n.get(e);t?t.hostnames.push(r.hostname):n.set(e,{status:r.serverStatus,hostnames:[r.hostname],serverType:r.serverType,serverVersion:r.serverVersion})}return n}(n.routes);return(0,t.jsx)(s.Z,{sx:{height:"100%"},children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(y.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"MC-Router Status"}),(0,t.jsxs)(l.Z,{sx:{ml:"auto",display:"flex",gap:1},children:[(0,t.jsx)(o.Z,{label:n.status,size:"small",color:function(e){switch(e){case"running":return"success";case"exited":case"dead":case"not_found":case"not_created":return"error";case"created":case"restarting":case"paused":return"warning";default:return"default"}}(n.status)}),(0,t.jsx)(o.Z,{label:n.health,size:"small",color:function(e){switch(e){case"healthy":return"success";case"unhealthy":return"error";case"starting":return"warning";default:return"default"}}(n.health),variant:"outlined"})]})]}),(0,t.jsx)(a.Z,{variant:"subtitle2",sx:{mb:1,mt:3},children:"Routing Table"}),0===n.routes.length?(0,t.jsx)(a.Z,{variant:"body2",color:"text.secondary",sx:{py:2,textAlign:"center"},children:"No routes configured"}):(0,t.jsx)(l.Z,{sx:{mt:1},children:Array.from(r.entries()).map(e=>{let[n,{status:r,hostnames:s,serverType:i,serverVersion:o}]=e;return(0,t.jsxs)(f.Z,{defaultExpanded:!0,disableGutters:!0,elevation:0,sx:{border:1,borderColor:"divider","&:not(:last-child)":{borderBottom:0},"&::before":{display:"none"}},children:[(0,t.jsx)(v.Z,{expandIcon:(0,t.jsx)(b.Z,{}),children:(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,width:"100%",pr:1},children:[(0,t.jsx)(S,{status:r}),(0,t.jsx)(a.Z,{variant:"subtitle2",sx:{fontWeight:600},children:n}),(i||o)&&(0,t.jsx)(a.Z,{variant:"caption",color:"text.secondary",children:[i,o].filter(Boolean).join(" ")}),(0,t.jsxs)(a.Z,{variant:"caption",color:"text.secondary",sx:{ml:"auto"},children:[s.length," ",1===s.length?"route":"routes"]})]})}),(0,t.jsx)(g.Z,{sx:{pt:0},children:(0,t.jsx)(l.Z,{sx:{display:"flex",flexDirection:"column",gap:.5},children:s.map(e=>(0,t.jsx)(a.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.85rem",color:"text.secondary"},children:e},e))})})]},n)})})]})})}var P=r(21605);let C={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},I={border:0,py:1};function M(e){var n;let{router:r}=e,h=r.routes.filter(e=>"running"===e.serverStatus).length,p=r.routes.length;return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(P.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Network Settings"})]}),(0,t.jsx)(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:C,children:"Listening Port"}),(0,t.jsx)(u.Z,{sx:I,children:(0,t.jsx)(o.Z,{label:r.port,size:"small",variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:C,children:"Routing Mode"}),(0,t.jsx)(u.Z,{sx:I,children:(0,t.jsx)(o.Z,{label:(n=r.mode)?n.includes("in-docker")||n.includes("auto-discovery")?"Auto Discovery":n.includes("mapping")?"Manual Mapping":n:"Unknown",size:"small",color:"info",variant:"outlined"})})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:C,children:"Total Routes"}),(0,t.jsx)(u.Z,{sx:I,children:p})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:C,children:"Active Routes"}),(0,t.jsx)(u.Z,{sx:I,children:(0,t.jsx)(o.Z,{label:"".concat(h," / ").concat(p),size:"small",color:h>0?"success":"default",variant:"outlined"})})]})]})})]})})}var N=r(76544);function A(e){var n;let{avahi:r}=e,c=null!==(n=null==r?void 0:r.status)&&void 0!==n?n:"unknown";return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(N.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"mDNS (Avahi)"}),(0,t.jsx)(o.Z,{label:c,size:"small",color:"running"===c?"success":c.includes("not running")?"warning":"not installed"===c?"error":"default",sx:{ml:"auto"}})]}),(0,t.jsxs)(a.Z,{variant:"body2",color:"text.secondary",children:["Avahi mDNS daemon enables ",(0,t.jsx)("code",{children:".local"})," hostname resolution for Minecraft servers on the local network."]})]})})}var k=r(35106),E=r(97436),L=r(30417),T=r(93017),D=r(30114),R=r(6986);function W(e){var n;let{onSuccess:r,onError:c}=e,{data:d}=(0,R.kP)(),[x,u]=(0,k.useState)((null==d?void 0:null===(n=d.user)||void 0===n?void 0:n.name)||""),[h,p]=(0,k.useState)(!1),[m,Z]=(0,k.useState)(!1),j=null==d?void 0:d.user;(0,k.useEffect)(()=>{(null==j?void 0:j.name)&&!m&&(u(j.name),Z(!0))},[null==j?void 0:j.name,m]);let f=x!==((null==j?void 0:j.name)||""),v=async()=>{if(f&&x.trim()){p(!0);try{let{error:e}=await (0,R.Nq)({name:x.trim()});e?c(e.message||"Failed to update profile"):r("Profile updated successfully")}catch(e){c("Failed to update profile")}finally{p(!1)}}};return j?(0,t.jsx)(s.Z,{sx:{height:"100%"},children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[(0,t.jsx)(D.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Profile"})]}),(0,t.jsxs)(l.Z,{sx:{display:"flex",flexDirection:"column",gap:2.5},children:[(0,t.jsx)(E.Z,{label:"Name",value:x,onChange:e=>u(e.target.value),fullWidth:!0,size:"small"}),(0,t.jsx)(E.Z,{label:"Email",value:j.email,fullWidth:!0,size:"small",disabled:!0,helperText:"Email cannot be changed"}),(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,t.jsx)(a.Z,{variant:"body2",color:"text.secondary",children:"Role:"}),(0,t.jsx)(o.Z,{label:"admin"===j.role?"Admin":"User",size:"small",color:"admin"===j.role?"primary":"default",variant:"outlined"})]}),(0,t.jsx)(l.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:(0,t.jsx)(L.Z,{variant:"contained",onClick:v,disabled:!f||!x.trim()||h,startIcon:h?(0,t.jsx)(T.Z,{size:16}):null,children:h?"Saving...":"Save Changes"})})]})]})}):null}var F=r(52082),U=r(79983),_=r(70603),B=r(28058),V=r(42730);function q(e){let{onSuccess:n,onError:r}=e,[o,c]=(0,k.useState)(""),[d,x]=(0,k.useState)(""),[u,h]=(0,k.useState)(""),[p,m]=(0,k.useState)(!1),[Z,j]=(0,k.useState)(!1),[f,v]=(0,k.useState)(!1),[g,y]=(0,k.useState)(!1),[b,w]=(0,k.useState)({}),S=()=>{let e={};return o||(e.currentPassword="Current password is required"),d?d.length<8&&(e.newPassword="Password must be at least ".concat(8," characters")):e.newPassword="New password is required",u?d!==u&&(e.confirmPassword="Passwords do not match"):e.confirmPassword="Please confirm your new password",o&&d&&o===d&&(e.newPassword="New password must be different from current password"),w(e),0===Object.keys(e).length},z=async e=>{if(e.preventDefault(),S()){y(!0);try{let{error:e}=await (0,R.Cp)({currentPassword:o,newPassword:d,revokeOtherSessions:!1});e?r(e.message||"Failed to change password"):(n("Password changed successfully"),c(""),x(""),h(""),w({}))}catch(e){r("Failed to change password")}finally{y(!1)}}},P=(e,n)=>(0,t.jsx)(F.Z,{position:"end",children:(0,t.jsx)(U.Z,{"aria-label":e?"hide password":"show password",onClick:()=>n(!e),edge:"end",size:"small",children:e?(0,t.jsx)(V.Z,{fontSize:"small"}):(0,t.jsx)(B.Z,{fontSize:"small"})})});return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:3},children:[(0,t.jsx)(_.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Change Password"})]}),(0,t.jsxs)(l.Z,{component:"form",onSubmit:z,sx:{display:"flex",flexDirection:"column",gap:2.5},children:[(0,t.jsx)(E.Z,{label:"Current Password",type:p?"text":"password",value:o,onChange:e=>{c(e.target.value),b.currentPassword&&w(e=>({...e,currentPassword:""}))},error:!!b.currentPassword,helperText:b.currentPassword,fullWidth:!0,size:"small",autoComplete:"current-password",InputProps:{endAdornment:P(p,m)}}),(0,t.jsx)(E.Z,{label:"New Password",type:Z?"text":"password",value:d,onChange:e=>{x(e.target.value),b.newPassword&&w(e=>({...e,newPassword:""}))},error:!!b.newPassword,helperText:b.newPassword||"Minimum ".concat(8," characters"),fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:P(Z,j)}}),(0,t.jsx)(E.Z,{label:"Confirm New Password",type:f?"text":"password",value:u,onChange:e=>{h(e.target.value),b.confirmPassword&&w(e=>({...e,confirmPassword:""}))},error:!!b.confirmPassword,helperText:b.confirmPassword,fullWidth:!0,size:"small",autoComplete:"new-password",InputProps:{endAdornment:P(f,v)}}),(0,t.jsx)(l.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:(0,t.jsx)(L.Z,{type:"submit",variant:"contained",disabled:g,startIcon:g?(0,t.jsx)(T.Z,{size:16}):null,children:g?"Changing...":"Change Password"})})]})]})})}var H=r(23695);let O={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},K={border:0,py:1};function $(e){return e?("string"==typeof e?new Date(e):e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):"-"}function Q(){let{data:e}=(0,R.kP)(),n=null==e?void 0:e.user;return n?(0,t.jsx)(s.Z,{sx:{height:"100%"},children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(H.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"Account Information"})]}),(0,t.jsx)(c.Z,{size:"small",children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:O,children:"Account ID"}),(0,t.jsx)(u.Z,{sx:K,children:(0,t.jsx)(a.Z,{variant:"body2",sx:{fontFamily:"monospace",fontSize:"0.8rem"},children:n.id})})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:O,children:"Created"}),(0,t.jsx)(u.Z,{sx:K,children:$(n.createdAt)})]}),(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:O,children:"Last Updated"}),(0,t.jsx)(u.Z,{sx:K,children:$(n.updatedAt)})]})]})})]})}):null}var X=r(11254),Y=r(10721),G=r(81071),J=r(84974),ee=r(5501),en=r(93315),er=r(9078),et=r(10449),es=r(24559),ei=r(37228);let ea={fontWeight:500,color:"text.secondary",border:0,width:"40%",py:1},el={border:0,py:1};function eo(e){let{text:n}=e,[r,s]=(0,k.useState)(!1),i=async()=>{try{await navigator.clipboard.writeText(n),s(!0),setTimeout(()=>s(!1),2e3)}catch(e){console.error("Failed to copy:",e)}};return(0,t.jsx)(U.Z,{size:"small",onClick:i,sx:{ml:1,color:r?"success.main":"text.secondary","&:hover":{bgcolor:"action.hover"}},"aria-label":r?"Copied":"Copy to clipboard",children:r?(0,t.jsx)(es.Z,{sx:{fontSize:16}}):(0,t.jsx)(et.Z,{sx:{fontSize:16}})})}function ec(){let{data:e,isLoading:n,error:r}=(0,ei.UW)(),h=(0,ei.Bc)(),p=(0,ei.N$)();if(r)return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(J.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),(0,t.jsxs)(G.Z,{severity:"error",children:["Failed to load playit status: ",r.message]})]})});if(n)return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(Y.Z,{variant:"circular",width:24,height:24}),(0,t.jsx)(Y.Z,{variant:"text",width:"40%",height:32})]}),(0,t.jsxs)(l.Z,{sx:{display:"flex",justifyContent:"space-between",py:.75},children:[(0,t.jsx)(Y.Z,{variant:"text",width:"35%"}),(0,t.jsx)(Y.Z,{variant:"text",width:"40%"})]}),(0,t.jsxs)(l.Z,{sx:{display:"flex",justifyContent:"space-between",py:.75},children:[(0,t.jsx)(Y.Z,{variant:"text",width:"35%"}),(0,t.jsx)(Y.Z,{variant:"text",width:"40%"})]})]})});if(!(null==e?void 0:e.enabled))return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,t.jsx)(J.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),(0,t.jsxs)(G.Z,{severity:"info",children:[(0,t.jsx)(a.Z,{variant:"body2",fontWeight:500,sx:{mb:.5},children:"Not configured"}),(0,t.jsx)(a.Z,{variant:"body2",color:"text.secondary",children:"playit.gg agent is not set up. Configure PLAYIT_SECRET to enable external access."})]})]})});let m=e.agentRunning&&"running"===e.containerStatus,Z=h.isPending||p.isPending,j=h.error||p.error;return(0,t.jsx)(s.Z,{children:(0,t.jsxs)(i.Z,{children:[(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[(0,t.jsx)(J.Z,{color:"primary"}),(0,t.jsx)(a.Z,{variant:"h6",component:"h2",children:"External Access (playit.gg)"})]}),j&&(0,t.jsx)(G.Z,{severity:"error",sx:{mb:2},children:j.message||"Action failed"}),(0,t.jsxs)(l.Z,{sx:{display:"flex",gap:1,mb:2,flexWrap:"wrap"},children:[m?(0,t.jsx)(L.Z,{variant:"outlined",size:"small",color:"error",startIcon:Z?(0,t.jsx)(T.Z,{size:16}):(0,t.jsx)(en.Z,{}),onClick:()=>{p.mutate()},disabled:Z,sx:{fontSize:12},children:Z?"Stopping...":"Stop Agent"}):(0,t.jsx)(L.Z,{variant:"contained",size:"small",color:"success",startIcon:Z?(0,t.jsx)(T.Z,{size:16,color:"inherit"}):(0,t.jsx)(ee.Z,{}),onClick:()=>{h.mutate()},disabled:Z,sx:{fontSize:12},children:Z?"Starting...":"Start Agent"}),(0,t.jsx)(L.Z,{component:"a",href:"https://playit.gg/account/tunnels",target:"_blank",rel:"noopener noreferrer",size:"small",startIcon:(0,t.jsx)(er.Z,{}),sx:{fontSize:12},children:"View Dashboard"})]}),(0,t.jsx)(c.Z,{size:"small",sx:{mb:3},children:(0,t.jsxs)(d.Z,{children:[(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:ea,children:"Agent Status"}),(0,t.jsx)(u.Z,{sx:el,children:(0,t.jsx)(o.Z,{label:m?"Running":"Stopped",size:"small",color:m?"success":"default",variant:"outlined"})})]}),e.uptime&&(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:ea,children:"Uptime"}),(0,t.jsx)(u.Z,{sx:el,children:e.uptime})]})]})}),e.servers&&e.servers.length>0&&(()=>{let n=e.servers.filter(e=>e.playitDomain),r=e.servers.filter(e=>!e.playitDomain);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Z,{variant:"subtitle2",sx:{mb:1.5,fontWeight:600},children:"Server Domains"}),n.length>0?(0,t.jsxs)(c.Z,{size:"small",sx:{mb:r.length>0?2:0},children:[(0,t.jsx)(X.Z,{children:(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:{fontWeight:600,borderBottom:2,borderColor:"divider"},children:"Server"}),(0,t.jsx)(u.Z,{sx:{fontWeight:600,borderBottom:2,borderColor:"divider"},children:"External Domain"})]})}),(0,t.jsx)(d.Z,{children:n.map(e=>(0,t.jsxs)(x.Z,{children:[(0,t.jsx)(u.Z,{sx:{py:1.5,borderBottom:1,borderColor:"divider"},children:e.serverName}),(0,t.jsx)(u.Z,{sx:{py:1.5,borderBottom:1,borderColor:"divider"},children:(0,t.jsxs)(l.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,t.jsx)(a.Z,{variant:"body2",sx:{fontFamily:"monospace"},children:e.playitDomain}),(0,t.jsx)(eo,{text:e.playitDomain})]})})]},e.serverName))})]}):(0,t.jsxs)(a.Z,{variant:"body2",color:"text.secondary",sx:{mb:2},children:["No servers with external domains configured. Use ",(0,t.jsx)("code",{children:"mcctl create --playit-domain"})," to register a domain."]}),r.length>0&&(0,t.jsxs)(a.Z,{variant:"body2",color:"text.secondary",children:[r.length," server",r.length>1?"s":""," without external domain: ",r.map(e=>e.serverName).join(", ")]})]})})()]})})}},37228:function(e,n,r){r.d(n,{Bc:function(){return o},N$:function(){return c},UW:function(){return l}});var t=r(5632),s=r(58919),i=r(20367),a=r(42936);function l(){return(0,t.a)({queryKey:["playit-status"],queryFn:()=>(0,a.SC)("/api/playit/status"),refetchInterval:3e4})}function o(){let e=(0,s.NL)();return(0,i.D)({mutationFn:()=>(0,a.SC)("/api/playit/start",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["playit-status"]})}})}function c(){let e=(0,s.NL)();return(0,i.D)({mutationFn:()=>(0,a.SC)("/api/playit/stop",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["playit-status"]})}})}},6986:function(e,n,r){r.d(n,{Cp:function(){return u},Nq:function(){return x},cg:function(){return l},kP:function(){return d},w7:function(){return o},y1:function(){return c},zB:function(){return h}});var t=r(77054),s=r(61648),i=r(35016);let a=(0,t.X)({baseURL:i.env.NEXT_PUBLIC_BETTER_AUTH_URL||"",plugins:[(0,s.zB)()]}),{signIn:l,signOut:o,signUp:c,useSession:d,updateUser:x,changePassword:u}=a,h=a.admin}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8918],{71185:function(e,t,r){var n=r(8091);t.Z=void 0;var o=n(r(66758)),a=r(94655);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},27171:function(e,t,r){var n=r(8091);t.Z=void 0;var o=n(r(66758)),a=r(94655);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"Dns")},80620:function(e,t,r){var n=r(8091);t.Z=void 0;var o=n(r(66758)),a=r(94655);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"}),"History")},78765:function(e,t,r){r.d(t,{ZP:function(){return H}});var n=r(32324),o=r(81500),a=r(35106),i=r(70316),s=r(65951),c=r(16501),l=r(66743),p=r(92019),d=r(11844),u=r(19521),f=r(38481),h=r(83855),m=r(56874),g=r(99466),v=r(94655);let Z=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function x(e,t,r){let n=function(e,t,r){let n;let o=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=(0,g.Z)(t);if(t.fakeTransform)n=t.fakeTransform;else{let e=i.getComputedStyle(t);n=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,c=0;if(n&&"none"!==n&&"string"==typeof n){let e=n.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),c=parseInt(e[5],10)}return"left"===e?a?"translateX(".concat(a.right+s-o.left,"px)"):"translateX(".concat(i.innerWidth+s-o.left,"px)"):"right"===e?a?"translateX(-".concat(o.right-a.left-s,"px)"):"translateX(-".concat(o.left+o.width-s,"px)"):"up"===e?a?"translateY(".concat(a.bottom+c-o.top,"px)"):"translateY(".concat(i.innerHeight+c-o.top,"px)"):a?"translateY(-".concat(o.top-a.top+o.height-c,"px)"):"translateY(-".concat(o.top+o.height-c,"px)")}(e,t,"function"==typeof r?r():r);n&&(t.style.webkitTransform=n,t.style.transform=n)}let k=a.forwardRef(function(e,t){let r=(0,h.Z)(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:c,appear:l=!0,children:k,container:w,direction:b="down",easing:y=i,in:E,onEnter:P,onEntered:M,onEntering:R,onExit:D,onExited:T,onExiting:C,style:A,timeout:S=s,TransitionComponent:B=p.ZP}=e,j=(0,n.Z)(e,Z),L=a.useRef(null),N=(0,f.Z)((0,d.Z)(k),L,t),H=e=>t=>{e&&(void 0===t?e(L.current):e(L.current,t))},z=H((e,t)=>{x(b,e,w),(0,m.n)(e),P&&P(e,t)}),I=H((e,t)=>{let n=(0,m.C)({timeout:S,style:A,easing:y},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,o.Z)({},n)),e.style.transition=r.transitions.create("transform",(0,o.Z)({},n)),e.style.webkitTransform="none",e.style.transform="none",R&&R(e,t)}),V=H(M),Y=H(C),X=H(e=>{let t=(0,m.C)({timeout:S,style:A,easing:y},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),x(b,e,w),D&&D(e)}),_=H(e=>{e.style.webkitTransition="",e.style.transition="",T&&T(e)}),G=a.useCallback(()=>{L.current&&x(b,L.current,w)},[b,w]);return a.useEffect(()=>{if(E||"down"===b||"right"===b)return;let e=(0,u.Z)(()=>{L.current&&x(b,L.current,w)}),t=(0,g.Z)(L.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[b,E,w]),a.useEffect(()=>{E||G()},[E,G]),(0,v.jsx)(B,(0,o.Z)({nodeRef:L,onEnter:z,onEntered:V,onEntering:I,onExit:X,onExited:_,onExiting:Y,addEndListener:e=>{c&&c(L.current,e)},appear:l,in:E,timeout:S},j,{children:(e,t)=>a.cloneElement(k,(0,o.Z)({ref:N,style:(0,o.Z)({visibility:"exited"!==e||E?void 0:"hidden"},A,k.props.style)},t))}))});var w=r(69899),b=r(38762),y=r(28057),E=r(34519),P=r(15651),M=r(11379),R=r(9049);function D(e){return(0,R.ZP)("MuiDrawer",e)}(0,M.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);let T=["BackdropProps"],C=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],A=(e,t)=>{let{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},S=e=>{let{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,b.Z)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,b.Z)(r))]};return(0,s.Z)(o,D,t)},B=(0,E.ZP)(l.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:A})(e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}}),j=(0,E.ZP)("div",{shouldForwardProp:P.Z,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:A})({flex:"0 0 auto"}),L=(0,E.ZP)(w.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t["paperAnchor".concat((0,b.Z)(r.anchor))],"temporary"!==r.variant&&t["paperAnchorDocked".concat((0,b.Z)(r.anchor))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,o.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===r.anchor&&{left:0},"top"===r.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===r.anchor&&{right:0},"bottom"===r.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===r.anchor&&"temporary"!==r.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===r.anchor&&"temporary"!==r.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===r.anchor&&"temporary"!==r.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===r.anchor&&"temporary"!==r.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})}),N={left:"right",right:"left",top:"down",bottom:"up"};var H=a.forwardRef(function(e,t){let r=(0,y.i)({props:e,name:"MuiDrawer"}),s=(0,h.Z)(),l=(0,c.V)(),p={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:u,children:f,className:m,elevation:g=16,hideBackdrop:Z=!1,ModalProps:{BackdropProps:x}={},onClose:w,open:b=!1,PaperProps:E={},SlideProps:P,TransitionComponent:M=k,transitionDuration:R=p,variant:D="temporary"}=r,A=(0,n.Z)(r.ModalProps,T),H=(0,n.Z)(r,C),z=a.useRef(!1);a.useEffect(()=>{z.current=!0},[]);let I=function(e,t){let{direction:r}=e;return"rtl"===r&&-1!==["left","right"].indexOf(t)?N[t]:t}({direction:l?"rtl":"ltr"},d),V=(0,o.Z)({},r,{anchor:d,elevation:g,open:b,variant:D},H),Y=S(V),X=(0,v.jsx)(L,(0,o.Z)({elevation:"temporary"===D?g:0,square:!0},E,{className:(0,i.Z)(Y.paper,E.className),ownerState:V,children:f}));if("permanent"===D)return(0,v.jsx)(j,(0,o.Z)({className:(0,i.Z)(Y.root,Y.docked,m),ownerState:V,ref:t},H,{children:X}));let _=(0,v.jsx)(M,(0,o.Z)({in:b,direction:N[I],timeout:R,appear:z.current},P,{children:X}));return"persistent"===D?(0,v.jsx)(j,(0,o.Z)({className:(0,i.Z)(Y.root,Y.docked,m),ownerState:V,ref:t},H,{children:_})):(0,v.jsx)(B,(0,o.Z)({BackdropProps:(0,o.Z)({},u,x,{transitionDuration:R}),className:(0,i.Z)(Y.root,Y.modal,m),open:b,ownerState:V,onClose:w,hideBackdrop:Z,ref:t},H,A,{children:_}))})},62108:function(e,t,r){r.d(t,{Z:function(){return v}});var n=r(32324),o=r(81500),a=r(35106),i=r(70316),s=r(65951),c=r(28057),l=r(34519),p=r(11379),d=r(9049);function u(e){return(0,d.ZP)("MuiToolbar",e)}(0,p.Z)("MuiToolbar",["root","gutters","regular","dense"]);var f=r(94655);let h=["className","component","disableGutters","variant"],m=e=>{let{classes:t,disableGutters:r,variant:n}=e;return(0,s.Z)({root:["root",!r&&"gutters",n]},u,t)},g=(0,l.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,o.Z)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===r.variant&&{minHeight:48})},e=>{let{theme:t,ownerState:r}=e;return"regular"===r.variant&&t.mixins.toolbar});var v=a.forwardRef(function(e,t){let r=(0,c.i)({props:e,name:"MuiToolbar"}),{className:a,component:s="div",disableGutters:l=!1,variant:p="regular"}=r,d=(0,n.Z)(r,h),u=(0,o.Z)({},r,{component:s,disableGutters:l,variant:p}),v=m(u);return(0,f.jsx)(g,(0,o.Z)({as:s,className:(0,i.Z)(v.root,a),ref:t,ownerState:u},d))})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9727],{26577:function(e,t,r){"use strict";var n=r(8091);t.Z=void 0;var o=n(r(66758)),a=r(94655);t.Z=(0,o.default)((0,a.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward")},46207:function(e,t,r){"use strict";var n=r(8091);t.Z=void 0;var o=n(r(66758)),a=r(94655);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},43436:function(e,t,r){"use strict";var n=r(8091);t.Z=void 0;var o=n(r(66758)),a=r(94655);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error")},84974:function(e,t,r){"use strict";var n=r(8091);t.Z=void 0;var o=n(r(66758)),a=r(94655);t.Z=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public")},11767:function(e,t,r){"use strict";var n=r(61626),o=r(94655);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},25065:function(e,t,r){"use strict";var n=r(61626),o=r(94655);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard")},53832:function(e,t,r){"use strict";var n=r(61626),o=r(94655);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People")},30164:function(e,t,r){"use strict";var n=r(61626),o=r(94655);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public")},91179:function(e,t,r){"use strict";var n=r(61626),o=r(94655);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage")},98406:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(32324),o=r(81500),a=r(35106),i=r(70316),s=r(65951),c=r(31317),u=r(28057),l=r(34519),d=r(11379),m=r(9049);function p(e){return(0,m.ZP)("MuiCardHeader",e)}let v=(0,d.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]);var f=r(94655);let h=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],y=e=>{let{classes:t}=e;return(0,s.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},p,t)},g=(0,l.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,o.Z)({["& .".concat(v.title)]:t.title,["& .".concat(v.subheader)]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),b=(0,l.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Z=(0,l.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),S=(0,l.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"});var x=a.forwardRef(function(e,t){let r=(0,u.i)({props:e,name:"MuiCardHeader"}),{action:a,avatar:s,className:l,component:d="div",disableTypography:m=!1,subheader:p,subheaderTypographyProps:v,title:x,titleTypographyProps:C}=r,M=(0,n.Z)(r,h),k=(0,o.Z)({},r,{component:d,disableTypography:m}),z=y(k),H=x;null==H||H.type===c.Z||m||(H=(0,f.jsx)(c.Z,(0,o.Z)({variant:s?"body2":"h5",className:z.title,component:"span",display:"block"},C,{children:H})));let w=p;return null==w||w.type===c.Z||m||(w=(0,f.jsx)(c.Z,(0,o.Z)({variant:s?"body2":"body1",className:z.subheader,color:"text.secondary",component:"span",display:"block"},v,{children:w}))),(0,f.jsxs)(g,(0,o.Z)({className:(0,i.Z)(z.root,l),as:d,ref:t,ownerState:k},M,{children:[s&&(0,f.jsx)(b,{className:z.avatar,ownerState:k,children:s}),(0,f.jsxs)(S,{className:z.content,ownerState:k,children:[H,w]}),a&&(0,f.jsx)(Z,{className:z.action,ownerState:k,children:a})]}))})},41261:function(e,t,r){"use strict";r.d(t,{Z:function(){return H}});var n=r(32324),o=r(81500),a=r(35106),i=r(70316),s=r(65951),c=r(38762),u=r(34519),l=r(28057),d=r(22125),m=r(38481),p=r(31317),v=r(11379),f=r(9049);function h(e){return(0,f.ZP)("MuiLink",e)}let y=(0,v.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var g=r(20219),b=r(64577);let Z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},S=e=>Z[e]||e;var x=e=>{let{theme:t,ownerState:r}=e,n=S(r.color),o=(0,g.DW)(t,"palette.".concat(n),!1)||r.color,a=(0,g.DW)(t,"palette.".concat(n,"Channel"));return"vars"in t&&a?"rgba(".concat(a," / 0.4)"):(0,b.Fq)(o,.4)},C=r(94655);let M=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],k=e=>{let{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root","underline".concat((0,c.Z)(o)),"button"===r&&"button",n&&"focusVisible"]};return(0,s.Z)(a,h,t)},z=(0,u.ZP)(p.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["underline".concat((0,c.Z)(r.underline))],"button"===r.component&&t.button]}})(e=>{let{theme:t,ownerState:r}=e;return(0,o.Z)({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&(0,o.Z)({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:x({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(y.focusVisible)]:{outline:"auto"}})});var H=a.forwardRef(function(e,t){let r=(0,l.i)({props:e,name:"MuiLink"}),{className:s,color:c="primary",component:u="a",onBlur:p,onFocus:v,TypographyClasses:f,underline:h="always",variant:y="inherit",sx:g}=r,b=(0,n.Z)(r,M),{isFocusVisibleRef:S,onBlur:x,onFocus:H,ref:w}=(0,d.Z)(),[P,j]=a.useState(!1),N=(0,m.Z)(t,w),R=(0,o.Z)({},r,{color:c,component:u,focusVisible:P,underline:h,variant:y}),T=k(R);return(0,C.jsx)(z,(0,o.Z)({color:c,className:(0,i.Z)(T.root,s),classes:f,component:u,onBlur:e=>{x(e),!1===S.current&&j(!1),p&&p(e)},onFocus:e=>{H(e),!0===S.current&&j(!0),v&&v(e)},ref:N,ownerState:R,variant:y,sx:[...Object.keys(Z).includes(c)?[]:[{color:c}],...Array.isArray(g)?g:[g]]},b))})},31477:function(e,t,r){var n,o;void 0!==(o="function"==typeof(n=function(){var e,t,r,n={};n.version="0.2.0";var o=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function a(e,t,r){return e<t?t:e>r?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(o[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,o.minimum,1),n.status=1===e?null:e;var r=n.render(!t),c=r.querySelector(o.barSelector),u=o.speed,l=o.easing;return r.offsetWidth,i(function(t){var a,i;""===o.positionUsing&&(o.positionUsing=n.getPositioningCSS()),s(c,(a=e,(i="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+a)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+a)*100+"%,0)"}:{"margin-left":(-1+a)*100+"%"}).transition="all "+u+"ms "+l,i)),1===e?(s(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){s(r,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},u)},u)):setTimeout(t,u)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},o.trickleSpeed)};return o.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*o.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=o.template;var r,a=t.querySelector(o.barSelector),i=e?"-100":(-1+(n.status||0))*100,c=document.querySelector(o.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+i+"%,0,0)"}),!o.showSpinner&&(r=t.querySelector(o.spinnerSelector))&&m(r),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(o.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&m(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var i=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),s=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,o){var a;n=t[a=(a=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[a]=function(t){var r=document.body.style;if(t in r)return t;for(var n,o=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((n=e[o]+a)in r)return n;return t}(a)),r.style[n]=o}return function(e,t){var n,o,a=arguments;if(2==a.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,a[1],a[2])}}();function c(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var r=d(e),n=r+t;c(r,t)||(e.className=n.substring(1))}function l(e,t){var r,n=d(e);c(e,t)&&(r=n.replace(" "+t+" "," "),e.className=r.substring(1,r.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function m(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?n.call(t,r,t,e):n)&&(e.exports=o)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9951],{10721:function(t,e,i){i.d(e,{Z:function(){return j}});var s=i(16295),n=i(32324),r=i(81500),a=i(35106),o=i(70316),u=i(41060),h=i(65951),c=i(76492),l=i(34519),d=i(28057),p=i(11379),m=i(9049);function f(t){return(0,m.ZP)("MuiSkeleton",t)}(0,p.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var v=i(94655);function b(){let t=(0,s._)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return b=function(){return t},t}function y(){let t=(0,s._)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"]);return y=function(){return t},t}function g(){let t=(0,s._)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]);return g=function(){return t},t}function C(){let t=(0,s._)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]);return C=function(){return t},t}let w=["animation","className","component","height","style","variant","width"],R=t=>t,M,x,S,O,k=t=>{let{classes:e,variant:i,animation:s,hasChildren:n,width:r,height:a}=t;return(0,h.Z)({root:["root",i,s,n&&"withChildren",n&&!r&&"fitContent",n&&!a&&"heightAuto"]},f,e)},P=(0,u.F4)(M||(M=R(b()))),E=(0,u.F4)(x||(x=R(y()))),Z=(0,l.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:i}=t;return[e.root,e[i.variant],!1!==i.animation&&e[i.animation],i.hasChildren&&e.withChildren,i.hasChildren&&!i.width&&e.fitContent,i.hasChildren&&!i.height&&e.heightAuto]}})(t=>{let{theme:e,ownerState:i}=t,s=String(e.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",n=parseFloat(e.shape.borderRadius);return(0,r.Z)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,c.Fq)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===i.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(n).concat(s,"/").concat(Math.round(n/.6*10)/10).concat(s),"&:empty:before":{content:'"\\00a0"'}},"circular"===i.variant&&{borderRadius:"50%"},"rounded"===i.variant&&{borderRadius:(e.vars||e).shape.borderRadius},i.hasChildren&&{"& > *":{visibility:"hidden"}},i.hasChildren&&!i.width&&{maxWidth:"fit-content"},i.hasChildren&&!i.height&&{height:"auto"})},t=>{let{ownerState:e}=t;return"pulse"===e.animation&&(0,u.iv)(S||(S=R(g(),0)),P)},t=>{let{ownerState:e,theme:i}=t;return"wave"===e.animation&&(0,u.iv)(O||(O=R(C(),0,0)),E,(i.vars||i).palette.action.hover)});var j=a.forwardRef(function(t,e){let i=(0,d.i)({props:t,name:"MuiSkeleton"}),{animation:s="pulse",className:a,component:u="span",height:h,style:c,variant:l="text",width:p}=i,m=(0,n.Z)(i,w),f=(0,r.Z)({},i,{animation:s,component:u,variant:l,hasChildren:!!m.children}),b=k(f);return(0,v.jsx)(Z,(0,r.Z)({as:u,ref:e,className:(0,o.Z)(b.root,a),ownerState:f},m,{style:(0,r.Z)({width:p,height:h},c)}))})},98091:function(t,e,i){i.d(e,{R:function(){return o},m:function(){return a}});var s=i(11430),n=i(23620),r=i(97639),a=class extends n.F{#t;#e;#i;#s;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#i=t.mutationCache,this.#e=[],this.state=t.state||o(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#n({type:"continue"})},i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=(0,r.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#n({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#n({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let s="pending"===this.state.status,n=!this.#s.canStart();try{if(s)e();else{this.#n({type:"pending",variables:t,isPaused:n}),this.#i.config.onMutate&&await this.#i.config.onMutate(t,this,i);let e=await this.options.onMutate?.(t,i);e!==this.state.context&&this.#n({type:"pending",context:e,variables:t,isPaused:n})}let r=await this.#s.start();return await this.#i.config.onSuccess?.(r,t,this.state.context,this,i),await this.options.onSuccess?.(r,t,this.state.context,i),await this.#i.config.onSettled?.(r,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(r,null,t,this.state.context,i),this.#n({type:"success",data:r}),r}catch(e){try{await this.#i.config.onError?.(e,t,this.state.context,this,i)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,i)}catch(t){Promise.reject(t)}try{await this.#i.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,i)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,i)}catch(t){Promise.reject(t)}throw this.#n({type:"error",error:e}),e}finally{this.#i.runNext(this)}}#n(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),s.Vr.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#i.notify({mutation:this,type:"updated",action:t})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},20367:function(t,e,i){i.d(e,{D:function(){return c}});var s=i(35106),n=i(98091),r=i(11430),a=i(12835),o=i(80375),u=class extends a.l{#t;#r=void 0;#a;#o;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#u()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,o.VS)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,o.Ym)(e.mutationKey)!==(0,o.Ym)(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(t){this.#u(),this.#h(t)}getCurrentResult(){return this.#r}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#u(),this.#h()}mutate(t,e){return this.#o=e,this.#a?.removeObserver(this),this.#a=this.#t.getMutationCache().build(this.#t,this.options),this.#a.addObserver(this),this.#a.execute(t)}#u(){let t=this.#a?.state??(0,n.R)();this.#r={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#h(t){r.Vr.batch(()=>{if(this.#o&&this.hasListeners()){let e=this.#r.variables,i=this.#r.context,s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#o.onSuccess?.(t.data,e,i,s)}catch(t){Promise.reject(t)}try{this.#o.onSettled?.(t.data,null,e,i,s)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#o.onError?.(t.error,e,i,s)}catch(t){Promise.reject(t)}try{this.#o.onSettled?.(void 0,t.error,e,i,s)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#r)})})}},h=i(58919);function c(t,e){let i=(0,h.NL)(e),[n]=s.useState(()=>new u(i,t));s.useEffect(()=>{n.setOptions(t)},[n,t]);let a=s.useSyncExternalStore(s.useCallback(t=>n.subscribe(r.Vr.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),c=s.useCallback((t,e)=>{n.mutate(t,e).catch(o.ZT)},[n]);if(a.error&&(0,o.L3)(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:c,mutateAsync:a.mutate}}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[148],{61943:function(t,e,i){Promise.resolve().then(i.bind(i,34488))},24559:function(t,e,i){"use strict";var s=i(8091);e.Z=void 0;var r=s(i(66758)),n=i(94655);e.Z=(0,r.default)((0,n.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},10449:function(t,e,i){"use strict";var s=i(8091);e.Z=void 0;var r=s(i(66758)),n=i(94655);e.Z=(0,r.default)((0,n.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},59602:function(t,e,i){"use strict";var s=i(8091);e.Z=void 0;var r=s(i(66758)),n=i(94655);e.Z=(0,r.default)((0,n.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined")},70603:function(t,e,i){"use strict";var s=i(8091);e.Z=void 0;var r=s(i(66758)),n=i(94655);e.Z=(0,r.default)((0,n.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock")},5501:function(t,e,i){"use strict";var s=i(8091);e.Z=void 0;var r=s(i(66758)),n=i(94655);e.Z=(0,r.default)((0,n.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow")},28058:function(t,e,i){"use strict";var s=i(8091);e.Z=void 0;var r=s(i(66758)),n=i(94655);e.Z=(0,r.default)((0,n.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},34488:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return f}});var s=i(94655),r=i(7281),n=i(84840),a=i(31317),c=i(10721),d=i(81071),x=i(628),l=i(41565),o=i(69899),h=i(76492),u=i(29983),j=i(92666),Z=i(57965);function v(t){let{rows:e}=t;return(0,s.jsx)(x.Z,{children:(0,s.jsxs)(l.Z,{children:[(0,s.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,s.jsx)(c.Z,{variant:"circular",width:24,height:24}),(0,s.jsx)(c.Z,{variant:"text",width:"50%",height:32})]}),[...Array(e)].map((t,e)=>(0,s.jsxs)(r.Z,{sx:{display:"flex",justifyContent:"space-between",py:.75},children:[(0,s.jsx)(c.Z,{variant:"text",width:"35%"}),(0,s.jsx)(c.Z,{variant:"text",width:"40%"})]},e))]})})}function m(){return(0,s.jsx)(x.Z,{sx:{height:"100%"},children:(0,s.jsxs)(l.Z,{children:[(0,s.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:2},children:[(0,s.jsx)(c.Z,{variant:"circular",width:24,height:24}),(0,s.jsx)(c.Z,{variant:"text",width:"40%",height:32}),(0,s.jsxs)(r.Z,{sx:{ml:"auto",display:"flex",gap:1},children:[(0,s.jsx)(c.Z,{variant:"rounded",width:70,height:24}),(0,s.jsx)(c.Z,{variant:"rounded",width:70,height:24})]})]}),(0,s.jsx)(c.Z,{variant:"text",width:"30%",sx:{mt:3,mb:1}}),[0,1].map(t=>(0,s.jsxs)(r.Z,{sx:{border:1,borderColor:"divider",p:2,"&:not(:last-child)":{borderBottom:0}},children:[(0,s.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:1.5},children:[(0,s.jsx)(c.Z,{variant:"circular",width:10,height:10}),(0,s.jsx)(c.Z,{variant:"text",width:"25%"}),(0,s.jsx)(c.Z,{variant:"text",width:"15%"}),(0,s.jsx)(c.Z,{variant:"text",width:"10%",sx:{ml:"auto"}})]}),[0,1,2].map(t=>(0,s.jsx)(c.Z,{variant:"text",width:"70%",sx:{ml:2.5}},t))]},t))]})})}function f(){let{data:t,isLoading:e,error:i}=(0,j.nv)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{elevation:0,sx:{mb:4,p:3,background:t=>"linear-gradient(135deg, ".concat((0,h.Fq)(t.palette.warning.main,.1)," 0%, ").concat((0,h.Fq)(t.palette.info.main,.1)," 100%)"),borderRadius:2,border:t=>"1px solid ".concat((0,h.Fq)(t.palette.warning.main,.2))},children:(0,s.jsxs)(r.Z,{sx:{display:"flex",alignItems:"center",gap:2},children:[(0,s.jsx)(r.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:2,bgcolor:"warning.main",color:"warning.contrastText"},children:(0,s.jsx)(u.Z,{sx:{fontSize:32}})}),(0,s.jsxs)(r.Z,{children:[(0,s.jsx)(a.Z,{variant:"h4",component:"h1",fontWeight:"bold",children:"Routing"}),(0,s.jsx)(a.Z,{variant:"body1",color:"text.secondary",children:"Server routing and network configuration"})]})]})}),i&&(0,s.jsxs)(d.Z,{severity:"error",sx:{mb:3},children:["Failed to load router status: ",i.message]}),e?(0,s.jsxs)(n.ZP,{container:!0,spacing:3,children:[(0,s.jsx)(n.ZP,{item:!0,xs:12,md:4,children:(0,s.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",gap:3},children:[(0,s.jsx)(v,{rows:4}),(0,s.jsx)(v,{rows:4}),(0,s.jsx)(v,{rows:1})]})}),(0,s.jsx)(n.ZP,{item:!0,xs:12,md:8,children:(0,s.jsx)(m,{})})]}):(null==t?void 0:t.router)?(0,s.jsxs)(n.ZP,{container:!0,spacing:3,children:[(0,s.jsx)(n.ZP,{item:!0,xs:12,md:4,children:(0,s.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",gap:3},children:[(0,s.jsx)(Z.hI,{router:t.router}),(0,s.jsx)(Z.SB,{router:t.router}),(0,s.jsx)(Z.E4,{avahi:t.avahi}),(0,s.jsx)(Z.aY,{})]})}),(0,s.jsx)(n.ZP,{item:!0,xs:12,md:8,children:(0,s.jsx)(Z.Ik,{router:t.router})})]}):null]})}}},function(t){t.O(0,[6812,9760,6758,680,1668,7436,1071,540,4416,2538,5511,2542,2844,9951,5381,2666,7965,3669,2757,1744],function(){return t(t.s=61943)}),_N_E=t.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[278],{59616:function(e,s,r){Promise.resolve().then(r.bind(r,55816))},55816:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return e6}});var t=r(94655),n=r(35106),i=r(74228),a=r(31358),o=r(7281),l=r(30417),d=r(79983),c=r(81071),x=r(93017),h=r(10721),u=r(628),m=r(41565),p=r(31317),j=r(35694),v=r(7178),g=r(17820),Z=r(73424),y=r(99770),f=r(62508),b=r(5682),C=r(76678),w=r(97436),S=r(84840),k=r(76492),I=r(10117),R=r(5501),z=r(37809),W=r(21111),P=r(17978),F=r(89573),M=r(96292),T=r(33104),A=r(25333),D=r(52082),O=r(69123),E=r(71185),N=r(30165),B=r(97293),U=r(11259),q=r(66615),L=r(89161),K=r(34071),H=r(4405);function G(e){let{value:s,unit:r,label:n,icon:i,progress:a,progressMax:l,color:d="#1bd96a"}=e;return(0,t.jsxs)(u.Z,{"data-testid":"resource-stat-card",sx:{p:2.5,bgcolor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:3},children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:2},children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"baseline",gap:.75,flexWrap:"wrap",minWidth:0},children:[(0,t.jsx)(p.Z,{variant:"h4",component:"span",sx:{fontWeight:700,color:"text.primary",fontFamily:"'JetBrains Mono', 'Fira Code', monospace",letterSpacing:"-0.5px"},children:s}),(0,t.jsx)(p.Z,{variant:"body2",component:"span",sx:{color:"text.secondary",fontWeight:500},children:r})]}),(0,t.jsx)(o.Z,{sx:{color:"text.secondary",flexShrink:0},children:i})]}),(0,t.jsx)(p.Z,{variant:"body2",sx:{color:"text.secondary",fontWeight:500,mt:.5},children:n}),(0,t.jsx)(H.Z,{variant:"determinate",value:Math.min(a/l*100,100),sx:{mt:1,height:6,borderRadius:1.5,bgcolor:"#2a2d3a","& .MuiLinearProgress-bar":{borderRadius:1.5,background:"linear-gradient(90deg, ".concat(d," 0%, ").concat(d,"cc 100%)")}}})]})}var Q=r(163),V=r(73660),J=r(90158),_=r(58347),$=r(95511),Y=r(46725),X=r(26577),ee=r(56813),es=r(26892),er=r(84509);function et(e){var s;let{serverName:r}=e,{data:n,isLoading:i,error:a}=(0,er.HZ)(r,{limit:20});if(i)return(0,t.jsx)(o.Z,{children:[void 0,void 0,void 0,void 0,void 0].map((e,s)=>(0,t.jsxs)(o.Z,{sx:{display:"flex",gap:2,py:1.5},children:[(0,t.jsx)(h.Z,{variant:"rounded",width:60,height:24}),(0,t.jsx)(h.Z,{variant:"text",width:"60%"}),(0,t.jsx)(h.Z,{variant:"text",width:50})]},s))});if(a)return(0,t.jsxs)(c.Z,{severity:"error",children:["Failed to load activity: ",a.message]});let d=null!==(s=null==n?void 0:n.logs)&&void 0!==s?s:[];if(0===d.length)return(0,t.jsx)(p.Z,{variant:"body2",color:"text.secondary",sx:{py:4,textAlign:"center"},children:"No activity recorded for this server yet."});let x="/audit-logs?targetType=server&targetName=".concat(encodeURIComponent(r));return(0,t.jsxs)(o.Z,{children:[(0,t.jsx)(J.Z,{sx:{py:0},children:d.map(e=>{var s;return(0,t.jsx)(_.ZP,{sx:{px:0,py:1.5,"&:not(:last-child)":{borderBottom:"1px solid",borderColor:"divider"}},children:(0,t.jsx)(Z.Z,{primary:(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,t.jsx)(ee.I,{action:e.action,size:"small"}),(0,t.jsxs)(p.Z,{variant:"body2",color:"text.secondary",children:["by ",e.actor.replace("api:","").replace("cli:","")]}),(0,t.jsx)(es.c,{status:e.status,size:"small"})]}),secondary:(0,t.jsx)($.Z,{title:(s=e.timestamp,new Intl.DateTimeFormat(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}).format(new Date(s))),arrow:!0,children:(0,t.jsx)(p.Z,{variant:"caption",component:"span",color:"text.disabled",children:function(e){let s=new Date,r=new Date(e),t=Math.floor((s.getTime()-r.getTime())/6e4),n=Math.floor(t/60);return t<1?"just now":t<60?"".concat(t,"m ago"):n<24?"".concat(n,"h ago"):"".concat(Math.floor(n/24),"d ago")}(e.timestamp)})})})},e.id)})}),(0,t.jsx)(o.Z,{sx:{mt:2,textAlign:"center"},children:(0,t.jsx)(l.Z,{component:Y.default,href:x,size:"small",endIcon:(0,t.jsx)(X.Z,{}),sx:{textTransform:"none"},children:"View Full History"})})]})}var en=r(62328),ei=r(29793),ea=r(75726),eo=r(40064),el=r(38393),ed=r(37530),ec=r(5942),ex=r(84420),eh=r(46121),eu=r(84775),em=r(92666),ep=r(70115),ej=r(70603),ev=r(32366),eg=r(25523);function eZ(e){let{serverName:s}=e,{data:r,isLoading:i}=(0,em.Js)(s),a=(0,em.Bx)(),[h,j]=(0,n.useState)([]),[v,g]=(0,n.useState)(!1),[Z,y]=(0,n.useState)(!1),[f,b]=(0,n.useState)(""),[C,S]=(0,n.useState)(""),[k,I]=(0,n.useState)(!1),[R,z]=(0,n.useState)({open:!1,message:"",severity:"success"});(0,n.useEffect)(()=>{(null==r?void 0:r.customHostnames)&&(j(r.customHostnames),g(!1),I(!1))},[r]);let P=e=>{let s=e.trim().toLowerCase();return s?s.length>253?"Domain exceeds 253 characters":/^[a-z0-9]([a-z0-9\-.]*[a-z0-9])?$/.test(s)?s.endsWith(".local")?"Cannot use .local system domain":s.endsWith(".nip.io")?"Cannot use .nip.io system domain":h.includes(s)?"Domain already exists":"":"Invalid domain format":"Domain cannot be empty"},F=()=>{let e=f.trim().toLowerCase(),s=P(e);if(s){S(s);return}j(s=>[...s,e]),b(""),S(""),y(!1),g(!0)},M=e=>{j(s=>s.filter(s=>s!==e)),g(!0)},T=async()=>{try{await a.mutateAsync({serverName:s,customHostnames:h}),g(!1),I(!0),z({open:!0,message:"Hostnames saved. Container recreation required to apply changes.",severity:"warning"})}catch(e){z({open:!0,message:e instanceof Error?e.message:"Failed to save hostnames",severity:"error"})}},D=()=>{y(!1),b(""),S("")};return i?(0,t.jsx)(u.Z,{sx:{mb:3,borderRadius:3},children:(0,t.jsx)(m.Z,{children:(0,t.jsx)(o.Z,{sx:{display:"flex",justifyContent:"center",py:4},children:(0,t.jsx)(x.Z,{size:24})})})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.Z,{sx:{mb:3,borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[(0,t.jsx)(eg.Z,{color:"primary"}),(0,t.jsx)(p.Z,{variant:"h6",fontWeight:600,children:"Hostnames / Domains"})]}),(0,t.jsx)(p.Z,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Manage hostnames used by mc-router to route connections to this server."}),(0,t.jsx)(O.Z,{sx:{mb:3}}),(null==r?void 0:r.systemHostnames)&&r.systemHostnames.length>0&&(0,t.jsxs)(o.Z,{sx:{mb:3},children:[(0,t.jsx)(p.Z,{variant:"subtitle2",color:"text.secondary",sx:{mb:1},children:"System Hostnames (read-only)"}),(0,t.jsx)(ep.Z,{direction:"row",flexWrap:"wrap",gap:1,children:r.systemHostnames.map(e=>(0,t.jsx)(A.Z,{icon:(0,t.jsx)(ej.Z,{sx:{fontSize:16}}),label:e.hostname,title:e.description,variant:"outlined",color:"default",size:"small"},e.hostname))})]}),(0,t.jsxs)(o.Z,{sx:{mb:2},children:[(0,t.jsx)(p.Z,{variant:"subtitle2",color:"text.secondary",sx:{mb:1},children:"Custom Domains"}),0===h.length&&!Z&&(0,t.jsx)(p.Z,{variant:"body2",color:"text.disabled",sx:{mb:1},children:"No custom domains configured."}),(0,t.jsx)(ep.Z,{spacing:1,children:h.map(e=>(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",py:.5,px:1.5,borderRadius:1,bgcolor:"action.hover"},children:[(0,t.jsx)(p.Z,{variant:"body2",fontFamily:"monospace",children:e}),(0,t.jsx)(d.Z,{size:"small",color:"error",onClick:()=>M(e),title:"Remove domain",children:(0,t.jsx)(W.Z,{fontSize:"small"})})]},e))}),Z?(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"flex-start",gap:1,mt:1},children:[(0,t.jsx)(w.Z,{size:"small",placeholder:"e.g. play.example.com",value:f,onChange:e=>{b(e.target.value),S("")},onKeyDown:e=>{"Enter"===e.key&&F(),"Escape"===e.key&&D()},error:!!C,helperText:C,autoFocus:!0,sx:{flex:1}}),(0,t.jsx)(l.Z,{size:"small",variant:"contained",onClick:F,children:"Add"}),(0,t.jsx)(d.Z,{size:"small",onClick:D,children:(0,t.jsx)(E.Z,{fontSize:"small"})})]}):(0,t.jsx)(l.Z,{size:"small",startIcon:(0,t.jsx)(ev.Z,{}),onClick:()=>y(!0),sx:{mt:1},children:"Add Domain"})]}),k&&(0,t.jsxs)(c.Z,{severity:"warning",sx:{mb:2},children:["Container recreation is required for hostname changes to take effect. Run ",(0,t.jsx)("code",{children:"docker compose up -d"})," or restart the server from the dashboard."]}),(0,t.jsx)(o.Z,{sx:{display:"flex",justifyContent:"flex-end"},children:(0,t.jsx)(l.Z,{variant:"contained",size:"small",startIcon:(0,t.jsx)(ec.Z,{}),onClick:T,disabled:!v||a.isPending,children:a.isPending?"Saving...":"Save Hostnames"})})]})}),(0,t.jsx)(ed.Z,{open:R.open,autoHideDuration:6e3,onClose:()=>z({...R,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,t.jsx)(c.Z,{onClose:()=>z({...R,open:!1}),severity:R.severity,sx:{width:"100%"},children:R.message})})]})}function ey(e){var s,r,i,a;let{serverName:d,isRunning:h}=e,{data:j,isLoading:g}=(0,em.iC)(d),Z=(0,em.MH)(),k=(0,em.gx)(),[I,R]=(0,n.useState)({}),[z,W]=(0,n.useState)(!1),[P,F]=(0,n.useState)(!1),[M,T]=(0,n.useState)(!1),[A,D]=(0,n.useState)(""),[E,N]=(0,n.useState)({open:!1,message:"",severity:"info"});(0,n.useEffect)(()=>{(null==j?void 0:j.config)&&R(j.config)},[j]);let B=(e,s)=>{R(r=>({...r,[e]:s})),W(!0),("memory"===e||"useAikarFlags"===e||"onlineMode"===e||"enableWhitelist"===e)&&F(!0)},U=async()=>{try{let e=await Z.mutateAsync({serverName:d,config:I});N({open:!0,message:e.restartRequired?"Settings saved. Restart required for some changes to take effect.":"Settings saved successfully.",severity:e.restartRequired?"warning":"success"}),W(!1),F(!1)}catch(e){N({open:!0,message:e instanceof Error?e.message:"Failed to save settings",severity:"error"})}},q=async()=>{if("RESET"!==A){N({open:!0,message:"Please type RESET to confirm",severity:"warning"});return}try{await k.mutateAsync(d),N({open:!0,message:"World reset successfully",severity:"success"}),T(!1),D("")}catch(e){N({open:!0,message:e instanceof Error?e.message:"Failed to reset world",severity:"error"})}};return g?(0,t.jsx)(o.Z,{sx:{display:"flex",justifyContent:"center",py:8},children:(0,t.jsx)(x.Z,{})}):(0,t.jsxs)(o.Z,{children:[(0,t.jsx)(eZ,{serverName:d}),P&&(0,t.jsx)(c.Z,{severity:"warning",icon:(0,t.jsx)(ex.Z,{}),sx:{mb:3},children:"Performance settings require a server restart to take effect."}),(0,t.jsx)(u.Z,{sx:{mb:3,borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsx)(p.Z,{variant:"h6",gutterBottom:!0,fontWeight:600,children:"Server Properties"}),(0,t.jsx)(p.Z,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"These settings can be changed without restarting the server."}),(0,t.jsx)(O.Z,{sx:{mb:3}}),(0,t.jsxs)(S.ZP,{container:!0,spacing:3,children:[(0,t.jsx)(S.ZP,{item:!0,xs:12,children:(0,t.jsx)(w.Z,{fullWidth:!0,label:"MOTD (Message of the Day)",value:I.motd||"",onChange:e=>B("motd",e.target.value),helperText:"The message displayed in the server list"})}),(0,t.jsx)(S.ZP,{item:!0,xs:12,sm:6,children:(0,t.jsx)(w.Z,{fullWidth:!0,type:"number",label:"Max Players",value:I.maxPlayers||20,onChange:e=>B("maxPlayers",parseInt(e.target.value,10)),inputProps:{min:1,max:100}})}),(0,t.jsx)(S.ZP,{item:!0,xs:12,sm:6,children:(0,t.jsxs)(ei.Z,{fullWidth:!0,children:[(0,t.jsx)(ea.Z,{children:"Difficulty"}),(0,t.jsxs)(en.Z,{value:I.difficulty||"normal",label:"Difficulty",onChange:e=>B("difficulty",e.target.value),children:[(0,t.jsx)(v.Z,{value:"peaceful",children:"Peaceful"}),(0,t.jsx)(v.Z,{value:"easy",children:"Easy"}),(0,t.jsx)(v.Z,{value:"normal",children:"Normal"}),(0,t.jsx)(v.Z,{value:"hard",children:"Hard"})]})]})}),(0,t.jsx)(S.ZP,{item:!0,xs:12,sm:6,children:(0,t.jsxs)(ei.Z,{fullWidth:!0,children:[(0,t.jsx)(ea.Z,{children:"Game Mode"}),(0,t.jsxs)(en.Z,{value:I.gameMode||"survival",label:"Game Mode",onChange:e=>B("gameMode",e.target.value),children:[(0,t.jsx)(v.Z,{value:"survival",children:"Survival"}),(0,t.jsx)(v.Z,{value:"creative",children:"Creative"}),(0,t.jsx)(v.Z,{value:"adventure",children:"Adventure"}),(0,t.jsx)(v.Z,{value:"spectator",children:"Spectator"})]})]})}),(0,t.jsx)(S.ZP,{item:!0,xs:12,sm:6,children:(0,t.jsx)(eo.Z,{control:(0,t.jsx)(el.Z,{checked:null===(s=I.pvp)||void 0===s||s,onChange:e=>B("pvp",e.target.checked)}),label:"Enable PvP"})}),(0,t.jsx)(S.ZP,{item:!0,xs:12,sm:6,children:(0,t.jsx)(w.Z,{fullWidth:!0,type:"number",label:"View Distance (chunks)",value:I.viewDistance||10,onChange:e=>B("viewDistance",parseInt(e.target.value,10)),inputProps:{min:3,max:32}})}),(0,t.jsx)(S.ZP,{item:!0,xs:12,sm:6,children:(0,t.jsx)(w.Z,{fullWidth:!0,type:"number",label:"Spawn Protection (blocks)",value:I.spawnProtection||16,onChange:e=>B("spawnProtection",parseInt(e.target.value,10)),inputProps:{min:0,max:128}})})]})]})}),(0,t.jsx)(u.Z,{sx:{mb:3,borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsx)(p.Z,{variant:"h6",gutterBottom:!0,fontWeight:600,children:"Security Settings"}),(0,t.jsx)(p.Z,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"These settings require a server restart to take effect."}),(0,t.jsx)(O.Z,{sx:{mb:3}}),(0,t.jsxs)(S.ZP,{container:!0,spacing:3,children:[(0,t.jsxs)(S.ZP,{item:!0,xs:12,sm:6,children:[(0,t.jsx)(eo.Z,{control:(0,t.jsx)(el.Z,{checked:null===(r=I.onlineMode)||void 0===r||r,onChange:e=>B("onlineMode",e.target.checked)}),label:"Online Mode (Mojang Auth)"}),(0,t.jsx)(p.Z,{variant:"caption",color:"text.secondary",display:"block",sx:{ml:4},children:"Disable to allow cracked clients (not recommended)"})]}),(0,t.jsxs)(S.ZP,{item:!0,xs:12,sm:6,children:[(0,t.jsx)(eo.Z,{control:(0,t.jsx)(el.Z,{checked:null===(i=I.enableWhitelist)||void 0===i||i,onChange:e=>B("enableWhitelist",e.target.checked)}),label:"Enable Whitelist"}),(0,t.jsx)(p.Z,{variant:"caption",color:"text.secondary",display:"block",sx:{ml:4},children:"Only whitelisted players can join"})]})]})]})}),(0,t.jsx)(u.Z,{sx:{mb:3,borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsx)(p.Z,{variant:"h6",gutterBottom:!0,fontWeight:600,children:"Performance Settings"}),(0,t.jsx)(p.Z,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"These settings require a server restart to take effect."}),(0,t.jsx)(O.Z,{sx:{mb:3}}),(0,t.jsxs)(S.ZP,{container:!0,spacing:3,children:[(0,t.jsx)(S.ZP,{item:!0,xs:12,sm:6,children:(0,t.jsx)(w.Z,{fullWidth:!0,label:"Memory Allocation",value:I.memory||"4G",onChange:e=>B("memory",e.target.value),helperText:"Format: 4G, 8G, etc."})}),(0,t.jsx)(S.ZP,{item:!0,xs:12,sm:6,children:(0,t.jsx)(eo.Z,{control:(0,t.jsx)(el.Z,{checked:null!==(a=I.useAikarFlags)&&void 0!==a&&a,onChange:e=>B("useAikarFlags",e.target.checked)}),label:"Use Aikar's Flags (Optimized GC)"})})]})]})}),(0,t.jsx)(o.Z,{sx:{display:"flex",justifyContent:"flex-end",mb:3},children:(0,t.jsx)(l.Z,{variant:"contained",size:"large",startIcon:(0,t.jsx)(ec.Z,{}),onClick:U,disabled:!z||Z.isPending,sx:{px:4},children:Z.isPending?"Saving...":"Save Changes"})}),(0,t.jsx)(u.Z,{sx:{borderRadius:3,borderColor:"error.main",borderWidth:1,borderStyle:"solid"},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsx)(p.Z,{variant:"h6",gutterBottom:!0,fontWeight:600,color:"error",children:"Danger Zone"}),(0,t.jsx)(O.Z,{sx:{mb:3}}),(0,t.jsxs)(o.Z,{sx:{mb:3},children:[(0,t.jsx)(p.Z,{variant:"subtitle1",fontWeight:600,gutterBottom:!0,children:"Reset World"}),(0,t.jsx)(p.Z,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"This will permanently delete the current world and generate a new one. This action cannot be undone."}),(0,t.jsx)(l.Z,{variant:"outlined",color:"error",startIcon:(0,t.jsx)(eu.Z,{}),onClick:()=>T(!0),disabled:h,children:"Reset World"}),h&&(0,t.jsx)(p.Z,{variant:"caption",color:"text.secondary",sx:{ml:2},children:"Stop the server first"})]})]})}),(0,t.jsxs)(y.Z,{open:M,onClose:()=>T(!1),maxWidth:"sm",fullWidth:!0,children:[(0,t.jsx)(f.Z,{children:(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,t.jsx)(ex.Z,{color:"error"}),(0,t.jsx)(p.Z,{variant:"h6",fontWeight:600,children:"Reset World"})]})}),(0,t.jsxs)(b.Z,{children:[(0,t.jsxs)(p.Z,{variant:"body1",gutterBottom:!0,children:["This will permanently delete the world for ",(0,t.jsx)("strong",{children:d})," and generate a new one."]}),(0,t.jsx)(p.Z,{variant:"body2",color:"text.secondary",gutterBottom:!0,children:"This action cannot be undone. All player progress and builds will be lost."}),(0,t.jsx)(w.Z,{fullWidth:!0,label:"Type RESET to confirm",value:A,onChange:e=>D(e.target.value),sx:{mt:3},autoFocus:!0})]}),(0,t.jsxs)(C.Z,{children:[(0,t.jsx)(l.Z,{onClick:()=>T(!1),children:"Cancel"}),(0,t.jsx)(l.Z,{variant:"contained",color:"error",onClick:q,disabled:"RESET"!==A||k.isPending,startIcon:k.isPending?(0,t.jsx)(x.Z,{size:16}):(0,t.jsx)(eh.Z,{}),children:k.isPending?"Resetting...":"Reset World"})]})]}),(0,t.jsx)(ed.Z,{open:E.open,autoHideDuration:6e3,onClose:()=>N({...E,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,t.jsx)(c.Z,{onClose:()=>N({...E,open:!1}),severity:E.severity,sx:{width:"100%"},children:E.message})})]})}var ef=r(86702),eb=r(47606),eC=r(407),ew=r(56056),eS=r(28058),ek=r(11597),eI=r(59602);let eR={admin:{label:"Owner",color:"primary",variant:"filled"},manage:{label:"Operator",color:"info",variant:"outlined"},view:{label:"Viewer",color:"default",variant:"outlined"}};function ez(e){let{permission:s,size:r="medium"}=e,n=eR[s];return(0,t.jsx)(A.Z,{label:n.label,color:n.color,variant:n.variant,size:r})}var eW=r(99046),eP=r(68038),eF=r(34080),eM=r(39181),eT=r(5632),eA=r(58919),eD=r(20367),eO=r(42936);function eE(e){var s,r;let{open:i,onClose:a,serverId:d}=e,[h,u]=(0,n.useState)(""),[m,j]=(0,n.useState)(null),[v,g]=(0,n.useState)("view"),{data:Z,isLoading:S}=(r={enabled:i},(0,eT.a)({queryKey:["users","search",h],queryFn:()=>(0,eO.SC)("/api/users?q=".concat(encodeURIComponent(h))),enabled:(null==r?void 0:r.enabled)!==!1&&h.length>=2,staleTime:3e4})),k=function(){let e=(0,eA.NL)();return(0,eD.D)({mutationFn:e=>(0,eO.SC)("/api/user-servers",{method:"POST",body:JSON.stringify(e)}),onSuccess:(s,r)=>{e.invalidateQueries({queryKey:["user-servers",r.serverId]}),e.invalidateQueries({queryKey:["user-servers"]})}})}(),I=(0,n.useMemo)(()=>{var e;return null!==(e=null==Z?void 0:Z.users)&&void 0!==e?e:[]},[Z]),R=()=>{u(""),j(null),g("view"),k.reset(),a()};return(0,t.jsxs)(y.Z,{open:i,onClose:R,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:3}},children:[(0,t.jsx)(f.Z,{sx:{fontWeight:600},children:"Add User Access"}),(0,t.jsxs)(b.Z,{sx:{display:"flex",flexDirection:"column",gap:3,pt:"8px !important"},children:[k.isError&&(0,t.jsx)(c.Z,{severity:"error",sx:{mb:1},children:(null===(s=k.error)||void 0===s?void 0:s.message)||"Failed to grant access"}),(0,t.jsx)(eW.Z,{options:I,getOptionLabel:e=>e.name||e.email,isOptionEqualToValue:(e,s)=>e.id===s.id,value:m,onChange:(e,s)=>j(s),inputValue:h,onInputChange:(e,s)=>u(s),loading:S,filterOptions:e=>e,noOptionsText:h.length<2?"Type at least 2 characters":"No users found",renderInput:e=>(0,t.jsx)(w.Z,{...e,label:"Search User",placeholder:"Search by name or email...",InputProps:{...e.InputProps,endAdornment:(0,t.jsxs)(t.Fragment,{children:[S&&(0,t.jsx)(x.Z,{size:20}),e.InputProps.endAdornment]})}}),renderOption:(e,s)=>{var r,n,i;let{key:a,...l}=e;return(0,t.jsxs)(o.Z,{component:"li",...l,sx:{display:"flex",gap:1.5,py:1},children:[(0,t.jsx)(ef.Z,{src:null!==(i=s.image)&&void 0!==i?i:void 0,sx:{width:32,height:32,bgcolor:"primary.main",fontSize:14},children:((null===(r=s.name)||void 0===r?void 0:r[0])||(null===(n=s.email)||void 0===n?void 0:n[0])||"?").toUpperCase()}),(0,t.jsxs)(o.Z,{children:[(0,t.jsx)(p.Z,{variant:"body2",fontWeight:500,children:s.name||"Unknown"}),(0,t.jsx)(p.Z,{variant:"caption",color:"text.secondary",children:s.email})]})]},a)}}),(0,t.jsxs)(ei.Z,{children:[(0,t.jsx)(eP.Z,{sx:{fontWeight:500,mb:1},children:"Permission Level"}),(0,t.jsxs)(eF.Z,{value:v,onChange:e=>g(e.target.value),children:[(0,t.jsx)(eo.Z,{value:"view",control:(0,t.jsx)(eM.Z,{size:"small"}),label:(0,t.jsxs)(o.Z,{children:[(0,t.jsx)(p.Z,{variant:"body2",fontWeight:500,children:"Viewer"}),(0,t.jsx)(p.Z,{variant:"caption",color:"text.secondary",children:"Can view server status and logs"})]})}),(0,t.jsx)(eo.Z,{value:"manage",control:(0,t.jsx)(eM.Z,{size:"small"}),label:(0,t.jsxs)(o.Z,{children:[(0,t.jsx)(p.Z,{variant:"body2",fontWeight:500,children:"Operator"}),(0,t.jsx)(p.Z,{variant:"caption",color:"text.secondary",children:"Can start, stop, and configure the server"})]})}),(0,t.jsx)(eo.Z,{value:"admin",control:(0,t.jsx)(eM.Z,{size:"small"}),label:(0,t.jsxs)(o.Z,{children:[(0,t.jsx)(p.Z,{variant:"body2",fontWeight:500,children:"Owner"}),(0,t.jsx)(p.Z,{variant:"caption",color:"text.secondary",children:"Full control including managing other users"})]})})]})]})]}),(0,t.jsxs)(C.Z,{sx:{px:3,pb:2},children:[(0,t.jsx)(l.Z,{onClick:R,color:"inherit",children:"Cancel"}),(0,t.jsx)(l.Z,{onClick:()=>{m&&k.mutate({userId:m.id,serverId:d,permission:v},{onSuccess:R})},variant:"contained",disabled:!m||k.isPending,sx:{borderRadius:2},children:k.isPending?"Adding...":"Add User"})]})]})}function eN(e){var s,r;let{serverId:i}=e,{data:a,isLoading:x,error:y}=(0,eT.a)({queryKey:["user-servers",i],queryFn:()=>(0,eO.SC)("/api/user-servers?serverId=".concat(encodeURIComponent(i))),enabled:!!i}),f=function(){let e=(0,eA.NL)();return(0,eD.D)({mutationFn:e=>{let{id:s,permission:r}=e;return(0,eO.SC)("/api/user-servers/".concat(encodeURIComponent(s)),{method:"PATCH",body:JSON.stringify({permission:r})})},onSuccess:()=>{e.invalidateQueries({queryKey:["user-servers"]})}})}(),b=function(){let e=(0,eA.NL)();return(0,eD.D)({mutationFn:e=>(0,eO.SC)("/api/user-servers/".concat(encodeURIComponent(e)),{method:"DELETE"}),onSuccess:()=>{e.invalidateQueries({queryKey:["user-servers"]})}})}(),[C,w]=(0,n.useState)(!1),[S,k]=(0,n.useState)(null),[I,R]=(0,n.useState)(null),W=(e,s)=>{k(e.currentTarget),R(s)},P=()=>{k(null),R(null)},F=e=>{if(!I||I.permission===e){P();return}f.mutate({id:I.id,permission:e},{onSettled:P})},M=null!==(s=null==a?void 0:a.users.filter(e=>"admin"===e.permission).length)&&void 0!==s?s:0,T=(null==I?void 0:I.permission)==="admin"&&M<=1;if(x)return(0,t.jsx)(u.Z,{sx:{borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[(0,t.jsx)(h.Z,{variant:"text",width:"30%",height:32}),(0,t.jsx)(h.Z,{variant:"rounded",width:120,height:36,sx:{borderRadius:2}})]}),(0,t.jsx)(O.Z,{sx:{mb:2}}),[0,1,2].map(e=>(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:2,py:1.5,borderBottom:"1px solid",borderColor:"divider"},children:[(0,t.jsx)(h.Z,{variant:"circular",width:40,height:40}),(0,t.jsxs)(o.Z,{sx:{flex:1},children:[(0,t.jsx)(h.Z,{variant:"text",width:"40%"}),(0,t.jsx)(h.Z,{variant:"text",width:"60%"})]}),(0,t.jsx)(h.Z,{variant:"rounded",width:80,height:28,sx:{borderRadius:10}}),(0,t.jsx)(h.Z,{variant:"circular",width:32,height:32})]},e))]})});if(y)return(0,t.jsxs)(c.Z,{severity:"error",children:["Failed to load access list: ",y.message]});let A=null!==(r=null==a?void 0:a.users)&&void 0!==r?r:[];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.Z,{sx:{borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[(0,t.jsx)(p.Z,{variant:"h6",fontWeight:600,children:"Server Access"}),(0,t.jsx)(l.Z,{variant:"contained",size:"small",startIcon:(0,t.jsx)(eb.Z,{}),onClick:()=>w(!0),sx:{borderRadius:2},children:"Add User"})]}),(0,t.jsx)(O.Z,{sx:{mb:1}}),0===A.length?(0,t.jsx)(o.Z,{sx:{py:4,textAlign:"center"},children:(0,t.jsx)(p.Z,{variant:"body2",color:"text.secondary",children:"No users have been granted access to this server yet."})}):A.map(e=>{var s,r,n,i,a,l,c,x;return(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:2,py:1.5,"&:not(:last-child)":{borderBottom:"1px solid",borderColor:"divider"}},children:[(0,t.jsx)(ef.Z,{src:null!==(x=null===(s=e.user)||void 0===s?void 0:s.image)&&void 0!==x?x:void 0,sx:{width:40,height:40,bgcolor:"primary.main",fontSize:16},children:((null===(n=e.user)||void 0===n?void 0:null===(r=n.name)||void 0===r?void 0:r[0])||(null===(a=e.user)||void 0===a?void 0:null===(i=a.email)||void 0===i?void 0:i[0])||"?").toUpperCase()}),(0,t.jsxs)(o.Z,{sx:{flex:1,minWidth:0},children:[(0,t.jsx)(p.Z,{variant:"body2",fontWeight:500,noWrap:!0,children:(null===(l=e.user)||void 0===l?void 0:l.name)||"Unknown User"}),(0,t.jsx)(p.Z,{variant:"caption",color:"text.secondary",noWrap:!0,children:(null===(c=e.user)||void 0===c?void 0:c.email)||e.userId})]}),(0,t.jsx)(ez,{permission:e.permission,size:"small"}),(0,t.jsx)(d.Z,{size:"small",onClick:s=>W(s,e),sx:{color:"text.secondary"},children:(0,t.jsx)(z.Z,{fontSize:"small"})})]},e.id)}),(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:1,mt:2,pt:1},children:[(0,t.jsx)(eI.Z,{sx:{fontSize:16,color:"text.disabled"}}),(0,t.jsx)(p.Z,{variant:"caption",color:"text.disabled",children:"Only platform admins and server owners can manage access."})]})]})}),(0,t.jsxs)(j.Z,{anchorEl:S,open:!!S,onClose:P,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},disableScrollLock:!0,children:[(0,t.jsxs)(v.Z,{onClick:()=>F("admin"),disabled:(null==I?void 0:I.permission)==="admin",children:[(0,t.jsx)(g.Z,{children:(0,t.jsx)(eC.Z,{fontSize:"small"})}),(0,t.jsx)(Z.Z,{children:"Change to Owner"})]}),(0,t.jsxs)(v.Z,{onClick:()=>F("manage"),disabled:(null==I?void 0:I.permission)==="manage"||T,children:[(0,t.jsx)(g.Z,{children:(0,t.jsx)(ew.Z,{fontSize:"small"})}),(0,t.jsx)(Z.Z,{children:"Change to Operator"})]}),(0,t.jsxs)(v.Z,{onClick:()=>F("view"),disabled:(null==I?void 0:I.permission)==="view"||T,children:[(0,t.jsx)(g.Z,{children:(0,t.jsx)(eS.Z,{fontSize:"small"})}),(0,t.jsx)(Z.Z,{children:"Change to Viewer"})]}),(0,t.jsx)(O.Z,{}),(0,t.jsxs)(v.Z,{onClick:()=>{I&&b.mutate(I.id,{onSettled:P})},disabled:T,sx:{color:"error.main"},children:[(0,t.jsx)(g.Z,{children:(0,t.jsx)(ek.Z,{fontSize:"small",sx:{color:"error.main"}})}),(0,t.jsx)(Z.Z,{children:"Remove Access"})]})]}),(0,t.jsx)(eE,{open:C,onClose:()=>w(!1),serverId:i})]})}var eB=r(10449),eU=r(24559),eq=r(37228);function eL(e){let{text:s}=e,[r,i]=(0,n.useState)(!1),a=async()=>{try{await navigator.clipboard.writeText(s),i(!0),setTimeout(()=>i(!1),2e3)}catch(e){console.error("Failed to copy:",e)}};return(0,t.jsx)(d.Z,{size:"small",onClick:a,sx:{ml:1,color:r?"success.main":"text.secondary","&:hover":{bgcolor:"action.hover"}},"aria-label":r?"Copied":"Copy to clipboard",children:r?(0,t.jsx)(eU.Z,{sx:{fontSize:16}}):(0,t.jsx)(eB.Z,{sx:{fontSize:16}})})}function eK(e){let{label:s,value:r,copyText:n}=e;return(0,t.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",py:1},children:[(0,t.jsx)(p.Z,{variant:"body2",color:"text.secondary",children:s}),(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,t.jsx)(p.Z,{variant:"body2",sx:{fontFamily:n?"monospace":"inherit",color:n?"text.primary":"text.secondary"},children:r}),n&&(0,t.jsx)(eL,{text:n})]})]})}function eH(e){let{serverName:s,hostname:r}=e,{data:n,isLoading:i}=(0,eq.UW)();if(i)return(0,t.jsx)(u.Z,{sx:{borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsx)(h.Z,{variant:"text",width:"40%",height:28,sx:{mb:1}}),(0,t.jsx)(h.Z,{variant:"rectangular",height:1,sx:{mb:2}}),(0,t.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",py:1},children:[(0,t.jsx)(h.Z,{variant:"text",width:"30%"}),(0,t.jsx)(h.Z,{variant:"text",width:"40%"})]}),(0,t.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",py:1},children:[(0,t.jsx)(h.Z,{variant:"text",width:"30%"}),(0,t.jsx)(h.Z,{variant:"text",width:"40%"})]})]})});let a=r?"".concat(r,":25565"):"Not configured",l=(null==n?void 0:n.enabled)&&n.servers.length>0,d=null==n?void 0:n.servers.find(e=>e.serverName===s),c=(null==d?void 0:d.playitDomain)||"Not configured",x=!!(null==d?void 0:d.playitDomain);return(0,t.jsx)(u.Z,{sx:{borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsx)(p.Z,{variant:"h6",gutterBottom:!0,fontWeight:600,children:"Connection"}),(0,t.jsx)(O.Z,{sx:{mb:2}}),(0,t.jsx)(eK,{label:"LAN Address",value:a,copyText:r?a:void 0}),l&&(0,t.jsx)(eK,{label:"External Address",value:c,copyText:x?c:void 0})]})})}var eG=r(42431),eQ=r(76777),eV=r(15761);function eJ(e){let{serverName:s}=e,{data:r,isLoading:i,error:a}=(0,eT.a)({queryKey:["servers",s,"mods"],queryFn:()=>(0,eO.SC)("/api/servers/".concat(encodeURIComponent(s),"/mods")),enabled:!!s}),h=function(){let e=(0,eA.NL)();return(0,eD.D)({mutationFn:e=>{let{serverName:s,slugs:r,source:t}=e;return(0,eO.SC)("/api/servers/".concat(encodeURIComponent(s),"/mods"),{method:"POST",body:JSON.stringify({slugs:r,source:t})})},onSuccess:(s,r)=>{let{serverName:t}=r;e.invalidateQueries({queryKey:["servers",t,"mods"]})}})}(),j=function(){let e=(0,eA.NL)();return(0,eD.D)({mutationFn:e=>{let{serverName:s,slug:r}=e;return(0,eO.SC)("/api/servers/".concat(encodeURIComponent(s),"/mods/").concat(encodeURIComponent(r)),{method:"DELETE"})},onSuccess:(s,r)=>{let{serverName:t}=r;e.invalidateQueries({queryKey:["servers",t,"mods"]})}})}(),[v,g]=(0,n.useState)(!1),[Z,C]=(0,n.useState)(""),[S,k]=(0,n.useState)(""),[I,R]=(0,n.useState)(!1),[z,P]=(0,n.useState)({open:!1,message:"",severity:"info"}),{data:F,isLoading:M}=function(e,s){let r=new URLSearchParams;return e&&r.set("q",e),(null==s?void 0:s.limit)!=null&&r.set("limit",String(s.limit)),(null==s?void 0:s.offset)!=null&&r.set("offset",String(s.offset)),(0,eT.a)({queryKey:["mods","search",e,null==s?void 0:s.limit,null==s?void 0:s.offset],queryFn:()=>(0,eO.SC)("/api/mods/search?".concat(r)),enabled:(null==s?void 0:s.enabled)!==!1&&!!e.trim()})}(S,{limit:10,enabled:v&&S.length>0});(0,n.useEffect)(()=>{let e=setTimeout(()=>{k(Z)},300);return()=>clearTimeout(e)},[Z]);let T=(0,n.useCallback)(async e=>{try{await j.mutateAsync({serverName:s,slug:e}),R(!0),P({open:!0,message:"Removed ".concat(e),severity:"success"})}catch(e){P({open:!0,message:e instanceof Error?e.message:"Failed to remove mod",severity:"error"})}},[j,s]),N=(0,n.useCallback)(async e=>{try{await h.mutateAsync({serverName:s,slugs:[e]}),R(!0),P({open:!0,message:"Added ".concat(e),severity:"success"})}catch(e){P({open:!0,message:e instanceof Error?e.message:"Failed to add mod",severity:"error"})}},[h,s]),B=new Set;if(null==r?void 0:r.mods)for(let e of Object.values(r.mods))for(let s of e)B.add(s);if(i)return(0,t.jsx)(o.Z,{sx:{display:"flex",justifyContent:"center",py:6},children:(0,t.jsx)(x.Z,{})});if(a)return(0,t.jsxs)(c.Z,{severity:"error",sx:{mt:2},children:["Failed to load mods: ",a.message]});let U=B.size>0;return(0,t.jsxs)(o.Z,{children:[I&&(0,t.jsx)(c.Z,{severity:"info",sx:{mb:2},children:"Restart the server to apply mod changes."}),(0,t.jsx)(u.Z,{sx:{borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[(0,t.jsx)(p.Z,{variant:"h6",fontWeight:600,children:"Installed Mods"}),(0,t.jsx)(l.Z,{variant:"contained",size:"small",startIcon:(0,t.jsx)(ev.Z,{}),onClick:()=>{C(""),k(""),g(!0)},children:"Add Mods"})]}),(0,t.jsx)(O.Z,{sx:{mb:2}}),U?Object.entries(r.mods).map(e=>{let[s,r]=e;return(0,t.jsxs)(o.Z,{sx:{mb:2},children:[(0,t.jsx)(p.Z,{variant:"subtitle2",color:"text.secondary",sx:{mb:1,textTransform:"capitalize"},children:s}),(0,t.jsx)(o.Z,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:r.map(e=>(0,t.jsx)(A.Z,{label:e,icon:(0,t.jsx)(eQ.Z,{}),onDelete:()=>T(e),deleteIcon:(0,t.jsx)(W.Z,{}),variant:"outlined"},e))})]},s)}):(0,t.jsxs)(o.Z,{sx:{textAlign:"center",py:4},children:[(0,t.jsx)(eQ.Z,{sx:{fontSize:48,color:"text.disabled",mb:1}}),(0,t.jsx)(p.Z,{variant:"body1",color:"text.secondary",children:"No mods installed"}),(0,t.jsx)(p.Z,{variant:"body2",color:"text.disabled",sx:{mt:.5},children:'Click "Add Mods" to search and install mods from Modrinth'})]})]})}),(0,t.jsxs)(y.Z,{open:v,onClose:()=>g(!1),maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{minHeight:400}},children:[(0,t.jsxs)(f.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Search Mods",(0,t.jsx)(d.Z,{onClick:()=>g(!1),size:"small",children:(0,t.jsx)(E.Z,{})})]}),(0,t.jsxs)(b.Z,{children:[(0,t.jsx)(w.Z,{fullWidth:!0,autoFocus:!0,placeholder:"Search Modrinth...",value:Z,onChange:e=>C(e.target.value),InputProps:{startAdornment:(0,t.jsx)(D.Z,{position:"start",children:(0,t.jsx)(eG.Z,{})})},sx:{mb:2}}),M&&(0,t.jsx)(o.Z,{sx:{display:"flex",justifyContent:"center",py:4},children:(0,t.jsx)(x.Z,{size:28})}),!M&&F&&0===F.hits.length&&S&&(0,t.jsxs)(p.Z,{variant:"body2",color:"text.secondary",sx:{textAlign:"center",py:4},children:['No mods found for "',S,'"']}),!M&&F&&F.hits.length>0&&(0,t.jsx)(o.Z,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:F.hits.map(e=>{var s;let r=B.has(e.slug);return(0,t.jsx)(u.Z,{variant:"outlined",sx:{borderRadius:2},children:(0,t.jsx)(m.Z,{sx:{py:1.5,px:2,"&:last-child":{pb:1.5}},children:(0,t.jsxs)(o.Z,{sx:{display:"flex",gap:1.5,alignItems:"flex-start"},children:[(0,t.jsx)(ef.Z,{src:e.iconUrl||void 0,variant:"rounded",sx:{width:40,height:40,bgcolor:"action.hover"},children:(0,t.jsx)(eQ.Z,{})}),(0,t.jsxs)(o.Z,{sx:{flex:1,minWidth:0},children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,t.jsx)(p.Z,{variant:"subtitle2",noWrap:!0,children:e.title}),(0,t.jsx)(l.Z,{size:"small",variant:r?"outlined":"contained",disabled:r||h.isPending,onClick:()=>N(e.slug),sx:{ml:1,minWidth:80,flexShrink:0},children:r?"Installed":"Add"})]}),(0,t.jsx)(p.Z,{variant:"body2",color:"text.secondary",sx:{mt:.25,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:e.description}),(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:1,mt:.5},children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:.25},children:[(0,t.jsx)(eV.Z,{sx:{fontSize:14,color:"text.disabled"}}),(0,t.jsx)(p.Z,{variant:"caption",color:"text.disabled",children:(s=e.downloads)>=1e6?"".concat((s/1e6).toFixed(1),"M"):s>=1e3?"".concat((s/1e3).toFixed(1),"K"):String(s)})]}),e.author&&(0,t.jsxs)(p.Z,{variant:"caption",color:"text.disabled",children:["by ",e.author]})]})]})]})})},e.slug)})})]})]}),(0,t.jsx)(ed.Z,{open:z.open,autoHideDuration:4e3,onClose:()=>P(e=>({...e,open:!1})),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,t.jsx)(c.Z,{onClose:()=>P(e=>({...e,open:!1})),severity:z.severity,variant:"filled",children:z.message})})]})}let e_=["Overview","Activity","Mods","Files","Backups","Access","Options"];function e$(e){return e.replace(/\x1b\[\?[\d;]*[a-zA-Z]/g,"").replace(/\x1b\[[0-9;]*[a-zA-Z]/g,"").replace(/\x1b=/g,"").replace(/\[\?[\d;]*[a-zA-Z]/g,"").replace(/\[[0-9;]*[a-zA-Z]/g,"").replace(/\[m/g,"").replace(/>\.\.\.\.\r?/g,"").replace(/\r/g,"").trim()}function eY(e){var s,r,i,a,c;let{server:x,onSendCommand:h}=e,[j,v]=(0,n.useState)("Overview"),[g,Z]=(0,n.useState)(""),[f,C]=(0,n.useState)(!0),[I,R]=(0,n.useState)(!1),z=(0,n.useRef)(null),{logs:W,isConnected:P}=(0,Q.Y)({serverName:x.name}),F=(0,n.useMemo)(()=>W.filter(e=>!e.includes("RCON Listener")&&!e.includes("RCON Client")&&!e.includes("RconClient")),[W]);(0,n.useEffect)(()=>{z.current&&f&&(z.current.scrollTop=z.current.scrollHeight)},[F,f]);let M=async()=>{g.trim()&&h&&(await h(g.trim()),Z(""))},T=null!==(a=null===(s=x.stats)||void 0===s?void 0:s.cpuPercent)&&void 0!==a?a:0;(null===(r=x.stats)||void 0===r?void 0:r.memoryUsage)&&x.stats.memoryUsage,function(e){if(!e)return;let s=e.match(/^(\d+)\s*(M|G)?$/i);if(s)parseInt(s[1],10),(s[2]||"M").toUpperCase()}(x.memory);let H=null!==(c=null===(i=x.stats)||void 0===i?void 0:i.memoryPercent)&&void 0!==c?c:0;return(0,t.jsxs)(o.Z,{children:[(0,t.jsx)(o.Z,{sx:{display:"flex",gap:.5,mb:3},children:e_.map(e=>(0,t.jsx)(l.Z,{onClick:()=>v(e),sx:{px:2,py:1,borderRadius:5,fontSize:14,fontWeight:500,textTransform:"none",bgcolor:j===e?"primary.main":"transparent",color:j===e?"#0a0e14":"text.secondary","&:hover":{bgcolor:j===e?"primary.main":(0,k.Fq)("#1bd96a",.1)}},children:e},e))}),(0,t.jsxs)(o.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(3, 1fr)"},gap:2,mb:2.5},children:[(0,t.jsx)(G,{value:"".concat(T.toFixed(2),"%"),unit:"/ 100%",label:"CPU usage",icon:(0,t.jsx)(N.Z,{sx:{fontSize:28}}),progress:T,progressMax:100,color:"#1bd96a"}),(0,t.jsx)(G,{value:"".concat(H.toFixed(2),"%"),unit:"/ 100%",label:"Memory usage",icon:(0,t.jsx)(B.Z,{sx:{fontSize:28}}),progress:H,progressMax:100,color:"#1bd96a"}),(0,t.jsx)(G,{value:x.worldSize||"0 B",unit:"/ 10 GB",label:"World size",icon:(0,t.jsx)(U.Z,{sx:{fontSize:28}}),progress:function(e){if(!e)return 0;let s=e.match(/^([\d.]+)\s*(B|KB|MB|MiB|GB|GiB)?$/i);if(!s)return 0;let r=parseFloat(s[1]);switch((s[2]||"B").toUpperCase()){case"GB":case"GIB":return 1024*r;case"MB":case"MIB":return r;case"KB":return r/1024;default:return r/1048576}}(x.worldSize),progressMax:10240,color:"#1bd96a"})]}),(0,t.jsxs)(u.Z,{sx:{bgcolor:"background.paper",borderRadius:3,border:"1px solid",borderColor:"divider",overflow:"hidden"},children:[(0,t.jsxs)(o.Z,{sx:{px:3,py:2,borderBottom:"1px solid",borderColor:"divider",display:"flex",alignItems:"center",gap:1.25},children:[(0,t.jsx)(p.Z,{variant:"h6",sx:{fontWeight:700,color:"text.primary"},children:"Console"}),(0,t.jsx)(o.Z,{sx:{width:10,height:10,borderRadius:"50%",bgcolor:P?"primary.main":"error.main",boxShadow:P?"0 0 8px rgba(27, 217, 106, 0.4)":"0 0 8px rgba(239, 68, 68, 0.4)"}})]}),(0,t.jsxs)(o.Z,{sx:{position:"relative"},children:[(0,t.jsx)(o.Z,{ref:z,onScroll:()=>{if(!z.current)return;let{scrollTop:e,scrollHeight:s,clientHeight:r}=z.current;C(s-e-r<30)},sx:{height:360,overflowY:"auto",px:2.5,py:2,fontFamily:"'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace",fontSize:13,lineHeight:1.85,color:"#b4b6c4",bgcolor:"#0a0a0a",scrollbarWidth:"thin",scrollbarColor:"#3a3d4e #0a0a0a","&::-webkit-scrollbar":{width:8},"&::-webkit-scrollbar-track":{bgcolor:"#0a0a0a"},"&::-webkit-scrollbar-thumb":{bgcolor:"#3a3d4e",borderRadius:4}},children:0===F.length?(0,t.jsx)(p.Z,{sx:{color:"text.secondary",textAlign:"center",py:8},children:"Waiting for logs..."}):F.map((e,s)=>{let r=function(e){let s=e$(e).match(/\[(\d{2}:\d{2}:\d{2})\]\s*\[([^/]+)\/(\w+)\]:\s*(.+)/);return s?{time:s[1],thread:s[2],level:s[3]||"INFO",msg:s[4]}:null}(e);return r?(0,t.jsxs)(o.Z,{sx:{display:"flex",gap:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[(0,t.jsxs)(o.Z,{component:"span",sx:{color:"#4a4d60"},children:["[",r.time,"]"]}),(0,t.jsxs)(o.Z,{component:"span",sx:{color:"#4a4d60"},children:["\xa0[",r.thread,"/",(0,t.jsx)(o.Z,{component:"span",sx:{color:"WARN"===r.level?"#e8a848":"#6b6e80"},children:r.level}),"]:\xa0"]}),(0,t.jsx)(o.Z,{component:"span",sx:{color:"WARN"===r.level?"#c4a45a":"#b4b6c4"},children:r.msg})]},s):(0,t.jsx)(o.Z,{sx:{color:"#b4b6c4"},children:e$(e)},s)})}),(0,t.jsx)(d.Z,{onClick:()=>R(!0),sx:{position:"absolute",top:12,right:12,width:36,height:36,borderRadius:2,bgcolor:"#282a3a",border:"1px solid #3a3d4e",color:"#8b8da0","&:hover":{bgcolor:"#313440"}},children:(0,t.jsx)(q.Z,{sx:{fontSize:18}})}),!f&&(0,t.jsx)(d.Z,{onClick:()=>{z.current&&z.current.scrollTo({top:z.current.scrollHeight,behavior:"smooth"})},sx:{position:"absolute",bottom:12,right:12,width:36,height:36,borderRadius:2,bgcolor:"#282a3a",border:"1px solid #3a3d4e",color:"#8b8da0","&:hover":{bgcolor:"#313440"}},children:(0,t.jsx)(L.Z,{sx:{fontSize:18}})})]}),(0,t.jsx)(o.Z,{sx:{px:2.5,py:1.5,borderTop:"1px solid",borderColor:"divider"},children:(0,t.jsx)(w.Z,{fullWidth:!0,size:"small",placeholder:"Send a command",value:g,onChange:e=>Z(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),M())},disabled:!P,InputProps:{startAdornment:(0,t.jsx)(D.Z,{position:"start",children:(0,t.jsx)(K.Z,{sx:{fontSize:16,color:"#999"}})}),sx:{bgcolor:"#13141c",borderRadius:2,fontFamily:"'JetBrains Mono', 'Fira Code', monospace",fontSize:14,"& .MuiOutlinedInput-notchedOutline":{borderColor:"#2a2d3e"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#3a3d4e"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"primary.main"}}}})})]}),"Overview"===j&&(0,t.jsxs)(S.ZP,{container:!0,spacing:3,sx:{mt:1},children:[(0,t.jsx)(S.ZP,{item:!0,xs:12,md:6,children:(0,t.jsx)(u.Z,{sx:{borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsx)(p.Z,{variant:"h6",gutterBottom:!0,fontWeight:600,children:"Server Information"}),(0,t.jsx)(O.Z,{sx:{mb:2}}),(0,t.jsx)(eX,{label:"Name",value:x.name}),(0,t.jsx)(eX,{label:"Container",value:x.container}),(0,t.jsx)(eX,{label:"Hostname",value:x.hostname}),(0,t.jsx)(eX,{label:"Type",value:x.type}),(0,t.jsx)(eX,{label:"Version",value:x.version}),(0,t.jsx)(eX,{label:"Memory",value:x.memory}),(0,t.jsx)(eX,{label:"Uptime",value:x.uptime||function(e){if(!e||e<0)return"0s";let s=Math.floor(e/3600),r=Math.floor(e%3600/60),t=e%60;return s>0?"".concat(s,"h ").concat(r,"m"):r>0?"".concat(r,"m ").concat(t,"s"):"".concat(t,"s")}(x.uptimeSeconds)})]})})}),(0,t.jsx)(S.ZP,{item:!0,xs:12,md:6,children:(0,t.jsx)(u.Z,{sx:{borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsx)(p.Z,{variant:"h6",gutterBottom:!0,fontWeight:600,children:"Players"}),(0,t.jsx)(O.Z,{sx:{mb:2}}),x.players?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eX,{label:"Online",value:"".concat(x.players.online," / ").concat(x.players.max)}),x.players.players&&x.players.players.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.Z,{variant:"body2",color:"text.secondary",sx:{mt:2,mb:1},children:"Online Players"}),(0,t.jsx)(o.Z,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:x.players.players.map(e=>(0,t.jsx)(A.Z,{label:e,size:"small"},e))})]})]}):(0,t.jsx)(p.Z,{variant:"body2",color:"text.secondary",children:"Player information unavailable"})]})})}),(0,t.jsx)(S.ZP,{item:!0,xs:12,md:6,children:(0,t.jsx)(eH,{serverName:x.name,hostname:x.hostname})})]}),"Activity"===j&&(0,t.jsx)(o.Z,{sx:{mt:3},children:(0,t.jsx)(u.Z,{sx:{borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsx)(p.Z,{variant:"h6",gutterBottom:!0,fontWeight:600,children:"Server Activity"}),(0,t.jsx)(O.Z,{sx:{mb:2}}),(0,t.jsx)(et,{serverName:x.name})]})})}),"Mods"===j&&(0,t.jsx)(o.Z,{sx:{mt:3},children:(0,t.jsx)(eJ,{serverName:x.name})}),"Files"===j&&(0,t.jsx)(o.Z,{sx:{mt:3},children:(0,t.jsx)(p.Z,{variant:"body1",color:"text.secondary",children:"File browser coming soon"})}),"Backups"===j&&(0,t.jsx)(o.Z,{sx:{mt:3},children:(0,t.jsx)(p.Z,{variant:"body1",color:"text.secondary",children:"Backup management coming soon"})}),"Access"===j&&(0,t.jsx)(o.Z,{sx:{mt:3},children:(0,t.jsx)(eN,{serverId:x.name})}),"Options"===j&&(0,t.jsx)(o.Z,{sx:{mt:3},children:(0,t.jsx)(ey,{serverName:x.name,isRunning:"running"===x.status})}),(0,t.jsxs)(y.Z,{open:I,onClose:()=>R(!1),maxWidth:"xl",fullWidth:!0,PaperProps:{sx:{height:"90vh",bgcolor:"background.paper"}},children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",p:2,borderBottom:1,borderColor:"divider"},children:[(0,t.jsxs)(p.Z,{variant:"h6",sx:{fontFamily:'"Minecraft", sans-serif',fontWeight:400,letterSpacing:"0.05em"},children:["Console - ",x.name]}),(0,t.jsx)(d.Z,{onClick:()=>R(!1),children:(0,t.jsx)(E.Z,{})})]}),(0,t.jsx)(b.Z,{sx:{p:0,display:"flex",flexDirection:"column"},children:(0,t.jsx)(V.K,{serverName:x.name})})]})]})}function eX(e){let{label:s,value:r}=e;return r?(0,t.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",py:1},children:[(0,t.jsx)(p.Z,{variant:"body2",color:"text.secondary",children:s}),(0,t.jsx)(p.Z,{variant:"body2",sx:{fontWeight:500},children:r})]}):null}var e0=r(93757);function e1(){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]})}function e2(){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M21 2v6h-6"}),(0,t.jsx)("path",{d:"M3 12a9 9 0 0115.36-6.36L21 8"}),(0,t.jsx)("path",{d:"M3 22v-6h6"}),(0,t.jsx)("path",{d:"M21 12a9 9 0 01-15.36 6.36L3 16"})]})}function e6(){var e,s,r,A;let D=(0,i.useParams)(),O=(0,a.x)(),E=decodeURIComponent(D.name),{data:N,isLoading:B,error:U}=(0,em.Hy)(E),{status:q,health:L}=function(e){let{serverName:s,onStatusChange:r,enabled:t=!0,reconnectInterval:i=3e3}=e,[a,o]=(0,n.useState)(null),[l,d]=(0,n.useState)(null);(0,n.useEffect)(()=>{o(null),d(null)},[s]);let c=(0,n.useCallback)(e=>{if("server-status"===e.type){let s=e.data.status,t=e.data.health;o(s),d(t),null==r||r(s,t)}},[r]),{isConnected:x,reconnect:h,retryCount:u}=(0,e0.D)({url:"/api/sse/servers/".concat(encodeURIComponent(s),"/status"),onMessage:c,enabled:t,reconnectInterval:i});return{status:a,health:l,isConnected:x,reconnect:h,retryCount:u}}({serverName:E,enabled:!!E}),[K,H]=(0,n.useState)(null),[G,Q]=(0,n.useState)(!1),[V,J]=(0,n.useState)(""),_=(0,em.jM)(),$=(0,em.Aw)(),Y=(0,em._I)(),X=(0,em.Hq)(),ee=async()=>{try{await _.mutateAsync(E)}catch(e){console.error("Failed to start server:",e)}},es=async()=>{try{await $.mutateAsync(E)}catch(e){console.error("Failed to stop server:",e)}},er=async()=>{try{await Y.mutateAsync(E)}catch(e){console.error("Failed to restart server:",e)}},et=async e=>{try{await fetch("/api/servers/".concat(encodeURIComponent(E),"/exec"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:e})})}catch(e){console.error("Failed to send command:",e)}},en=q||(null==N?void 0:N.server.status),ei=_.isPending||$.isPending||Y.isPending,ea=null==N?void 0:N.server;return(0,t.jsxs)(t.Fragment,{children:[U&&(0,t.jsxs)(c.Z,{severity:"error",sx:{mb:3},children:["Failed to load server: ",U.message]}),_.isError&&(0,t.jsxs)(c.Z,{severity:"error",sx:{mb:3},children:["Failed to start server: ",null===(e=_.error)||void 0===e?void 0:e.message]}),$.isError&&(0,t.jsxs)(c.Z,{severity:"error",sx:{mb:3},children:["Failed to stop server: ",null===(s=$.error)||void 0===s?void 0:s.message]}),Y.isError&&(0,t.jsxs)(c.Z,{severity:"error",sx:{mb:3},children:["Failed to restart server: ",null===(r=Y.error)||void 0===r?void 0:r.message]}),X.isError&&(0,t.jsxs)(c.Z,{severity:"error",sx:{mb:3},children:["Failed to delete server: ",null===(A=X.error)||void 0===A?void 0:A.message]}),B?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:2,mb:2.5},children:[(0,t.jsx)(h.Z,{variant:"rounded",width:64,height:64,sx:{borderRadius:3,flexShrink:0}}),(0,t.jsxs)(o.Z,{sx:{flex:1},children:[(0,t.jsx)(h.Z,{variant:"text",width:80,height:18,sx:{mb:.5}}),(0,t.jsx)(h.Z,{variant:"text",width:"40%",height:40}),(0,t.jsxs)(o.Z,{sx:{display:"flex",gap:2,mt:.75},children:[(0,t.jsx)(h.Z,{variant:"text",width:100}),(0,t.jsx)(h.Z,{variant:"text",width:60}),(0,t.jsx)(h.Z,{variant:"text",width:140}),(0,t.jsx)(h.Z,{variant:"text",width:50})]})]}),(0,t.jsxs)(o.Z,{sx:{display:"flex",gap:1,flexShrink:0},children:[(0,t.jsx)(h.Z,{variant:"rounded",width:90,height:40,sx:{borderRadius:2}}),(0,t.jsx)(h.Z,{variant:"rounded",width:36,height:36,sx:{borderRadius:2}})]})]}),(0,t.jsx)(o.Z,{sx:{display:"flex",gap:.5,mb:3},children:[80,70,65,50,65,65].map((e,s)=>(0,t.jsx)(h.Z,{variant:"rounded",width:e,height:36,sx:{borderRadius:5}},s))}),(0,t.jsx)(o.Z,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",sm:"repeat(3, 1fr)"},gap:2,mb:2.5},children:[0,1,2].map(e=>(0,t.jsx)(u.Z,{sx:{borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1.5},children:[(0,t.jsx)(h.Z,{variant:"text",width:"50%"}),(0,t.jsx)(h.Z,{variant:"circular",width:28,height:28})]}),(0,t.jsx)(h.Z,{variant:"text",width:"60%",height:36}),(0,t.jsx)(h.Z,{variant:"rounded",width:"100%",height:6,sx:{borderRadius:3,mt:1}})]})},e))}),(0,t.jsxs)(u.Z,{sx:{borderRadius:3,border:"1px solid",borderColor:"divider"},children:[(0,t.jsxs)(o.Z,{sx:{px:3,py:2,borderBottom:"1px solid",borderColor:"divider",display:"flex",alignItems:"center",gap:1.25},children:[(0,t.jsx)(h.Z,{variant:"text",width:80,height:28}),(0,t.jsx)(h.Z,{variant:"circular",width:10,height:10})]}),(0,t.jsx)(h.Z,{variant:"rectangular",height:360,sx:{bgcolor:"#0a0a0a"}}),(0,t.jsx)(o.Z,{sx:{px:2.5,py:1.5,borderTop:"1px solid",borderColor:"divider"},children:(0,t.jsx)(h.Z,{variant:"rounded",width:"100%",height:40,sx:{borderRadius:2}})})]}),(0,t.jsxs)(S.ZP,{container:!0,spacing:3,sx:{mt:1},children:[(0,t.jsx)(S.ZP,{item:!0,xs:12,md:6,children:(0,t.jsx)(u.Z,{sx:{borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsx)(h.Z,{variant:"text",width:"40%",height:28,sx:{mb:1}}),(0,t.jsx)(h.Z,{variant:"rectangular",height:1,sx:{mb:2}}),[0,1,2,3,4,5,6].map(e=>(0,t.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",py:1},children:[(0,t.jsx)(h.Z,{variant:"text",width:"30%"}),(0,t.jsx)(h.Z,{variant:"text",width:"40%"})]},e))]})})}),(0,t.jsx)(S.ZP,{item:!0,xs:12,md:6,children:(0,t.jsx)(u.Z,{sx:{borderRadius:3},children:(0,t.jsxs)(m.Z,{children:[(0,t.jsx)(h.Z,{variant:"text",width:"30%",height:28,sx:{mb:1}}),(0,t.jsx)(h.Z,{variant:"rectangular",height:1,sx:{mb:2}}),(0,t.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between",py:1},children:[(0,t.jsx)(h.Z,{variant:"text",width:"25%"}),(0,t.jsx)(h.Z,{variant:"text",width:"20%"})]})]})})})]})]}):ea?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:2,mb:2.5},children:[(0,t.jsx)(o.Z,{sx:{width:64,height:64,borderRadius:3,overflow:"hidden",bgcolor:"background.paper",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,border:"1px solid",borderColor:"divider",fontSize:36},children:function(e){if(!e)return"\uD83C\uDFAE";let s=e.toUpperCase();return["PAPER","SPIGOT","BUKKIT","PURPUR"].includes(s)?"\uD83D\uDD0C":["FORGE","NEOFORGE","FABRIC","QUILT"].includes(s)?"\uD83D\uDD27":"\uD83C\uDFAE"}(ea.type)}),(0,t.jsxs)(o.Z,{sx:{flex:1},children:[(0,t.jsxs)(p.Z,{onClick:()=>O.push("/servers"),sx:{fontSize:12,color:"primary.main",cursor:"pointer",mb:.25,display:"flex",alignItems:"center",gap:.5,"&:hover":{textDecoration:"underline"}},children:[(0,t.jsx)(I.Z,{sx:{fontSize:14}})," All servers"]}),(0,t.jsx)(p.Z,{variant:"h4",component:"h1",sx:{fontFamily:'"Minecraft", sans-serif',fontWeight:400,color:"text.primary",letterSpacing:"0.5px",m:0,textTransform:"uppercase"},children:E}),(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:0,mt:.75,flexWrap:"wrap",fontSize:13,color:"text.secondary"},children:[ea.version&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:.5},children:[(0,t.jsx)(P.Z,{sx:{fontSize:14}}),"Minecraft ",ea.version]}),(0,t.jsx)(o.Z,{component:"span",sx:{mx:1.25,color:"#3a3d4e"},children:"|"})]}),ea.type&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:.5},children:[(0,t.jsx)(F.Z,{sx:{fontSize:14}}),ea.type]}),(0,t.jsx)(o.Z,{component:"span",sx:{mx:1.25,color:"#3a3d4e"},children:"|"})]}),ea.hostname&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:.5},children:[(0,t.jsx)(M.Z,{sx:{fontSize:14}}),ea.hostname]}),(0,t.jsx)(o.Z,{component:"span",sx:{mx:1.25,color:"#3a3d4e"},children:"|"})]}),(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:.5},children:[(0,t.jsx)(T.Z,{sx:{fontSize:14}}),ea.uptime||function(e){if(!e||e<0)return"0s";let s=Math.floor(e/3600),r=Math.floor(e%3600/60),t=e%60;return s>0?"".concat(s,"h ").concat(r,"m"):r>0?"".concat(r,"m ").concat(t,"s"):"".concat(t,"s")}(ea.uptimeSeconds)||"0s"]})]})]}),(0,t.jsxs)(o.Z,{sx:{display:"flex",alignItems:"center",gap:1.25,flexShrink:0},children:[("stopped"===en||"exited"===en||"not_created"===en)&&(0,t.jsx)(l.Z,{variant:"contained",color:"success",startIcon:ei?(0,t.jsx)(x.Z,{size:16,color:"inherit"}):(0,t.jsx)(R.Z,{}),onClick:ee,disabled:ei,sx:{px:2,py:1,borderRadius:2,fontSize:14,fontWeight:600},children:"Start"}),"running"===en&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Z,{variant:"outlined",startIcon:ei?(0,t.jsx)(x.Z,{size:16}):(0,t.jsx)(e1,{}),onClick:es,disabled:ei,sx:{px:2,py:1,borderRadius:2,fontSize:14,fontWeight:500,borderColor:"divider",color:"text.secondary","&:hover":{borderColor:"text.secondary",bgcolor:(0,k.Fq)("#fff",.05)}},children:"Stop"}),(0,t.jsx)(l.Z,{variant:"contained",startIcon:ei?(0,t.jsx)(x.Z,{size:16,color:"inherit"}):(0,t.jsx)(e2,{}),onClick:er,disabled:ei,sx:{px:2,py:1,borderRadius:2,fontSize:14,fontWeight:600,bgcolor:"primary.main",color:"#0a0e14","&:hover":{bgcolor:"primary.dark"}},children:"Restart"})]}),(0,t.jsx)(d.Z,{onClick:e=>H(e.currentTarget),sx:{width:36,height:36,borderRadius:2,border:"1px solid",borderColor:"divider",color:"text.secondary"},children:(0,t.jsx)(z.Z,{sx:{fontSize:18}})}),(0,t.jsx)(j.Z,{anchorEl:K,open:!!K,onClose:()=>H(null),children:(0,t.jsxs)(v.Z,{onClick:()=>{H(null),Q(!0),J("")},sx:{color:"error.main"},children:[(0,t.jsx)(g.Z,{children:(0,t.jsx)(W.Z,{fontSize:"small",sx:{color:"error.main"}})}),(0,t.jsx)(Z.Z,{children:"Delete Server"})]})})]})]}),(0,t.jsx)(eY,{server:ea,onSendCommand:et})]}):(0,t.jsx)(c.Z,{severity:"warning",children:"Server not found"}),(0,t.jsxs)(y.Z,{open:G,onClose:()=>{Q(!1),J("")},maxWidth:"sm",fullWidth:!0,children:[(0,t.jsx)(f.Z,{children:"Delete Server"}),(0,t.jsxs)(b.Z,{children:[(0,t.jsxs)(p.Z,{sx:{mb:2},children:["This action cannot be undone. Type ",(0,t.jsx)("strong",{children:E})," to confirm deletion."]}),(0,t.jsx)(w.Z,{label:"Server name",value:V,onChange:e=>J(e.target.value),fullWidth:!0,autoFocus:!0})]}),(0,t.jsxs)(C.Z,{sx:{px:3,pb:2},children:[(0,t.jsx)(l.Z,{onClick:()=>{Q(!1),J("")},children:"Cancel"}),(0,t.jsx)(l.Z,{variant:"contained",color:"error",onClick:()=>{V===E&&X.mutate({name:E,force:!0},{onSuccess:()=>{O.push("/servers")}})},disabled:V!==E||X.isPending,startIcon:X.isPending?(0,t.jsx)(x.Z,{size:16}):null,children:X.isPending?"Deleting...":"Delete"})]})]})]})}},56813:function(e,s,r){"use strict";r.d(s,{I:function(){return a}});var t=r(94655),n=r(25333),i=r(82925);function a(e){let{action:s,size:r="small"}=e,a=i.Lu[s]||"default",o=i.n3[s]||s;return(0,t.jsx)(n.Z,{label:o,color:a,size:r,variant:"filled",sx:{fontWeight:600,fontSize:"small"===r?"0.7rem":"0.8rem"}})}},26892:function(e,s,r){"use strict";r.d(s,{c:function(){return o}});var t=r(94655),n=r(25333),i=r(46207),a=r(43436);function o(e){let{status:s,size:r="small"}=e;return(0,t.jsx)(n.Z,{icon:"success"===s?(0,t.jsx)(i.Z,{}):(0,t.jsx)(a.Z,{}),label:"success"===s?"OK":"Error",color:"success"===s?"success":"error",size:r,variant:"outlined",sx:{fontWeight:500,fontSize:"small"===r?"0.7rem":"0.8rem"}})}},84509:function(e,s,r){"use strict";r.d(s,{DM:function(){return a},HZ:function(){return l},VM:function(){return o},hT:function(){return i},oL:function(){return d}});var t=r(5632),n=r(42936);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0,r=function(e){let s=new URLSearchParams;e.action&&s.set("action",e.action),e.actor&&s.set("actor",e.actor),e.targetType&&s.set("targetType",e.targetType),e.targetName&&s.set("targetName",e.targetName),e.status&&s.set("status",e.status),e.from&&s.set("from",e.from),e.to&&s.set("to",e.to),void 0!==e.limit&&s.set("limit",String(e.limit)),void 0!==e.offset&&s.set("offset",String(e.offset)),e.sort&&s.set("sort",e.sort);let r=s.toString();return r?"?".concat(r):""}(e);return(0,t.a)({queryKey:["audit-logs",e],queryFn:()=>(0,n.SC)("/api/audit-logs".concat(r)),enabled:(null==s?void 0:s.enabled)!==!1})}function a(e){return(0,t.a)({queryKey:["audit-logs","stats"],queryFn:()=>(0,n.SC)("/api/audit-logs/stats"),enabled:(null==e?void 0:e.enabled)!==!1,refetchInterval:3e4})}function o(e,s){return(0,t.a)({queryKey:["audit-logs",e],queryFn:()=>(0,n.SC)("/api/audit-logs/".concat(encodeURIComponent(e))),enabled:(null==s?void 0:s.enabled)!==!1&&!!e})}function l(e,s){var r;return i({targetType:"server",targetName:e,limit:null!==(r=null==s?void 0:s.limit)&&void 0!==r?r:20},{enabled:(null==s?void 0:s.enabled)!==!1&&!!e})}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return i({limit:e,sort:"timestamp:desc"})}},37228:function(e,s,r){"use strict";r.d(s,{Bc:function(){return l},N$:function(){return d},UW:function(){return o}});var t=r(5632),n=r(58919),i=r(20367),a=r(42936);function o(){return(0,t.a)({queryKey:["playit-status"],queryFn:()=>(0,a.SC)("/api/playit/status"),refetchInterval:3e4})}function l(){let e=(0,n.NL)();return(0,i.D)({mutationFn:()=>(0,a.SC)("/api/playit/start",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["playit-status"]})}})}function d(){let e=(0,n.NL)();return(0,i.D)({mutationFn:()=>(0,a.SC)("/api/playit/stop",{method:"POST"}),onSuccess:()=>{e.invalidateQueries({queryKey:["playit-status"]})}})}},82925:function(e,s,r){"use strict";r.d(s,{KK:function(){return o},Lu:function(){return t},Xn:function(){return a},n3:function(){return n},xg:function(){return i}});let t={"server.create":"success","server.delete":"error","server.start":"info","server.stop":"warning","server.restart":"secondary","player.whitelist.add":"success","player.whitelist.remove":"warning","player.ban":"error","player.unban":"success","player.op":"info","player.deop":"warning","player.kick":"error","audit.purge":"default"},n={"server.create":"Create","server.delete":"Delete","server.start":"Start","server.stop":"Stop","server.restart":"Restart","player.whitelist.add":"Whitelist Add","player.whitelist.remove":"Whitelist Remove","player.ban":"Ban","player.unban":"Unban","player.op":"Op","player.deop":"Deop","player.kick":"Kick","audit.purge":"Purge"},i=["server.create","server.delete","server.start","server.stop","server.restart","player.whitelist.add","player.whitelist.remove","player.ban","player.unban","player.op","player.deop","player.kick","audit.purge"],a=["server.create","server.delete","server.start","server.stop","server.restart"],o=["player.whitelist.add","player.whitelist.remove","player.ban","player.unban","player.op","player.deop","player.kick"]}},function(e){e.O(0,[6812,9760,6758,680,1668,7436,1071,540,4416,2538,5511,880,55,7727,8347,1658,9951,6727,6645,4219,4596,4682,2666,5787,3669,2757,1744],function(){return e(e.s=59616)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4978],{70861:function(e,s,n){Promise.resolve().then(n.bind(n,32539))},87739:function(e,s,n){"use strict";var t=n(8091);s.Z=void 0;var r=t(n(66758)),c=n(94655);s.Z=(0,r.default)((0,c.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings")},32539:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return h}});var t=n(94655),r=n(35106),c=n(7281),o=n(84840),i=n(31317),l=n(37530),a=n(81071),u=n(87739),d=n(57965);function h(){let[e,s]=(0,r.useState)({open:!1,message:"",severity:"success"}),n=e=>{s({open:!0,message:e,severity:"success"})},h=e=>{s({open:!0,message:e,severity:"error"})},x=()=>{s(e=>({...e,open:!1}))};return(0,t.jsxs)(c.Z,{children:[(0,t.jsxs)(c.Z,{sx:{display:"flex",alignItems:"center",gap:1.5,mb:4},children:[(0,t.jsx)(u.Z,{sx:{fontSize:32},color:"primary"}),(0,t.jsx)(i.Z,{variant:"h4",component:"h1",fontWeight:"bold",children:"Settings"})]}),(0,t.jsxs)(o.ZP,{container:!0,spacing:3,children:[(0,t.jsx)(o.ZP,{item:!0,xs:12,md:6,children:(0,t.jsx)(d.zd,{onSuccess:n,onError:h})}),(0,t.jsx)(o.ZP,{item:!0,xs:12,md:6,children:(0,t.jsx)(d.eE,{})}),(0,t.jsx)(o.ZP,{item:!0,xs:12,children:(0,t.jsx)(d.ms,{onSuccess:n,onError:h})})]}),(0,t.jsx)(l.Z,{open:e.open,autoHideDuration:6e3,onClose:x,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:(0,t.jsx)(a.Z,{onClose:x,severity:e.severity,variant:"filled",sx:{width:"100%"},children:e.message})})]})}},42936:function(e,s,n){"use strict";async function t(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={...s.headers};s.body&&(n["Content-Type"]="application/json");let t=await fetch(e,{...s,headers:n});if(!t.ok){let e=await t.json().catch(()=>({error:"UnknownError",message:t.statusText})),s=Error(e.message);throw s.statusCode=t.status,s.code=e.error,s}return t.json()}n.d(s,{SC:function(){return t}})}},function(e){e.O(0,[6812,9760,6758,680,1668,7436,1071,540,4416,2538,5511,2542,2844,9951,5381,4596,7965,3669,2757,1744],function(){return e(e.s=70861)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7701],{6199:function(e,s,n){Promise.resolve().then(n.bind(n,36405))},33104:function(e,s,n){"use strict";var l=n(8091);s.Z=void 0;var r=l(n(66758)),t=n(94655);s.Z=(0,r.default)([(0,t.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,t.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime")},21111:function(e,s,n){"use strict";var l=n(8091);s.Z=void 0;var r=l(n(66758)),t=n(94655);s.Z=(0,r.default)((0,t.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete")},97812:function(e,s,n){"use strict";var l=n(8091);s.Z=void 0;var r=l(n(66758)),t=n(94655);s.Z=(0,r.default)((0,t.jsx)("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"}),"LinkOff")},84974:function(e,s,n){"use strict";var l=n(8091);s.Z=void 0;var r=l(n(66758)),t=n(94655);s.Z=(0,r.default)((0,t.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public")},36405:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return _}});var l=n(94655),r=n(35106),t=n(7281),i=n(30417),a=n(81071),o=n(93017),d=n(69899),c=n(31317),x=n(99770),h=n(62508),u=n(5682),m=n(76678),j=n(97436),Z=n(76492),v=n(32366),f=n(84974),p=n(84840),g=n(52082),y=n(89923),b=n(10297),w=n(42431),C=n(628),S=n(41565),k=n(25935),W=n(79983),z=n(25333),L=n(95511),D=n(96292),I=n(97812),A=n(21111),F=n(78067),M=n(33104);function P(e){let{world:s,onAssign:n,onRelease:r,onDelete:i,loading:a=!1}=e,o=(e,n)=>{e.stopPropagation(),n(s.name)};return(0,l.jsxs)(C.Z,{role:"article",sx:{transition:"all 0.2s",height:200,display:"flex",flexDirection:"column","&:hover":{transform:"translateY(-2px)",boxShadow:4}},children:[(0,l.jsxs)(S.Z,{sx:{flex:1,pb:1},children:[(0,l.jsxs)(t.Z,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[(0,l.jsx)(c.Z,{variant:"h6",component:"h3",sx:{fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:1,mr:1},children:s.name}),(0,l.jsx)(z.Z,{label:s.isLocked?"Locked":"Available",size:"small",color:s.isLocked?"warning":"success",sx:{fontWeight:500,minWidth:80}})]}),(0,l.jsxs)(t.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:1.5},children:[(0,l.jsx)(F.Z,{sx:{fontSize:16,color:"text.secondary"}}),(0,l.jsx)(c.Z,{variant:"body2",color:"text.secondary",children:s.size||"Unknown size"})]}),s.isLocked&&s.lockedBy&&(0,l.jsxs)(t.Z,{sx:{display:"flex",alignItems:"center",gap:1,mb:1.5},children:[(0,l.jsx)(D.Z,{sx:{fontSize:16,color:"text.secondary"}}),(0,l.jsx)(L.Z,{title:"Assigned to ".concat(s.lockedBy),arrow:!0,children:(0,l.jsx)(c.Z,{variant:"body2",color:"text.secondary",sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:s.lockedBy})})]}),(0,l.jsxs)(t.Z,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,l.jsx)(M.Z,{sx:{fontSize:16,color:"text.secondary"}}),(0,l.jsx)(c.Z,{variant:"body2",color:"text.secondary",children:(e=>{if(!e)return"-";try{return new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}catch(s){return e}})(s.lastModified)})]})]}),(0,l.jsxs)(k.Z,{sx:{justifyContent:"flex-end",px:2,py:1.5,borderTop:"1px solid",borderColor:"divider"},children:[!s.isLocked&&n&&(0,l.jsx)(L.Z,{title:"Assign to server",arrow:!0,children:(0,l.jsx)(W.Z,{"aria-label":"Assign world",color:"primary",onClick:e=>o(e,n),disabled:a,size:"small",children:(0,l.jsx)(D.Z,{})})}),s.isLocked&&r&&(0,l.jsx)(L.Z,{title:"Release from server",arrow:!0,children:(0,l.jsx)(W.Z,{"aria-label":"Release world",color:"warning",onClick:e=>o(e,r),disabled:a,size:"small",children:(0,l.jsx)(I.Z,{})})}),i&&(0,l.jsx)(L.Z,{title:"Delete world",arrow:!0,children:(0,l.jsx)(W.Z,{"aria-label":"Delete world",color:"error",onClick:e=>o(e,i),disabled:a,size:"small",children:(0,l.jsx)(A.Z,{})})})]})]})}function E(e){let{worlds:s,onAssign:n,onRelease:a,onDelete:o,onCreate:d,loadingWorlds:x=[]}=e,[h,u]=(0,r.useState)(""),[m,Z]=(0,r.useState)("all"),f=(0,r.useMemo)(()=>s.filter(e=>(!h||!!e.name.toLowerCase().includes(h.toLowerCase()))&&("available"!==m||!e.isLocked)&&("locked"!==m||!!e.isLocked)),[s,h,m]);return 0===s.length?(0,l.jsxs)(t.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"400px",gap:2},children:[(0,l.jsx)(c.Z,{variant:"h6",color:"text.secondary",children:"No worlds found"}),d&&(0,l.jsx)(i.Z,{variant:"contained",startIcon:(0,l.jsx)(v.Z,{}),onClick:d,children:"Create World"})]}):(0,l.jsxs)(t.Z,{children:[(0,l.jsxs)(t.Z,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},gap:2,mb:3,alignItems:{xs:"stretch",sm:"center"},justifyContent:"space-between"},children:[(0,l.jsxs)(b.Z,{value:m,exclusive:!0,onChange:(e,s)=>{null!==s&&Z(s)},size:"small",sx:{flexShrink:0},children:[(0,l.jsx)(y.Z,{value:"all",children:"All"}),(0,l.jsx)(y.Z,{value:"available",children:"Available"}),(0,l.jsx)(y.Z,{value:"locked",children:"Locked"})]}),(0,l.jsx)(j.Z,{size:"small",placeholder:"Search worlds...",value:h,onChange:e=>u(e.target.value),InputProps:{startAdornment:(0,l.jsx)(g.Z,{position:"start",children:(0,l.jsx)(w.Z,{})})},sx:{flexGrow:{xs:1,sm:0},minWidth:{sm:300}}})]}),(0,l.jsxs)(c.Z,{variant:"body2",color:"text.secondary",sx:{mb:2},children:[f.length," ",1===f.length?"world":"worlds"]}),0===f.length?(0,l.jsx)(t.Z,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"200px",gap:2},children:(0,l.jsx)(c.Z,{variant:"h6",color:"text.secondary",children:"No worlds found"})}):(0,l.jsx)(p.ZP,{container:!0,spacing:2,children:f.map(e=>(0,l.jsx)(p.ZP,{item:!0,xs:12,sm:6,md:4,children:(0,l.jsx)(P,{world:e,onAssign:n,onRelease:a,onDelete:o,loading:x.includes(e.name)})},e.name))})]})}let H={name:"",seed:""};function N(e){let{open:s,onClose:n,onSubmit:a,loading:d=!1}=e,[c,Z]=(0,r.useState)(H),[v,f]=(0,r.useState)({});(0,r.useEffect)(()=>{s||(Z(H),f({}))},[s]);let p=e=>e?/^[a-z0-9-]+$/.test(e)?null:"Only lowercase letters, numbers, and hyphens are allowed":"World name is required",g=e=>s=>{let n=s.target.value;Z(s=>({...s,[e]:n})),v[e]&&f(s=>({...s,[e]:""}))};return(0,l.jsx)(x.Z,{open:s,onClose:d?void 0:n,maxWidth:"sm",fullWidth:!0,children:(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),f({});let s=p(c.name);if(s){f({name:s});return}a({name:c.name,...c.seed?{seed:c.seed}:{}})},children:[(0,l.jsx)(h.Z,{children:"Create New World"}),(0,l.jsx)(u.Z,{children:(0,l.jsxs)(t.Z,{sx:{display:"flex",flexDirection:"column",gap:2,pt:1},children:[(0,l.jsx)(j.Z,{label:"World Name",value:c.name,onChange:g("name"),error:!!v.name,helperText:v.name||"Only lowercase letters, numbers, and hyphens",fullWidth:!0,autoFocus:!0,disabled:d}),(0,l.jsx)(j.Z,{label:"Seed (optional)",value:c.seed||"",onChange:g("seed"),helperText:"Leave empty for a random seed",fullWidth:!0,disabled:d})]})}),(0,l.jsxs)(m.Z,{sx:{px:3,pb:2},children:[(0,l.jsx)(i.Z,{onClick:n,disabled:d,children:"Cancel"}),(0,l.jsx)(i.Z,{type:"submit",variant:"contained",disabled:d,startIcon:d?(0,l.jsx)(o.Z,{size:16}):null,children:d?"Creating...":"Create"})]})]})})}var T=n(7178),O=n(92666);function R(e){let{open:s,worldName:n,onClose:d,onSubmit:Z,loading:v=!1}=e,[f,p]=(0,r.useState)(""),{data:g,isLoading:y}=(0,O.x$)();(0,r.useEffect)(()=>{s||p("")},[s]);let b=(null==g?void 0:g.servers)||[],w=b.filter(e=>"running"!==e.status),C=b.filter(e=>"running"===e.status);return(0,l.jsx)(x.Z,{open:s,onClose:v?void 0:d,maxWidth:"sm",fullWidth:!0,children:(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),f&&Z(n,f)},children:[(0,l.jsxs)(h.Z,{children:["Assign World: ",n]}),(0,l.jsx)(u.Z,{children:(0,l.jsx)(t.Z,{sx:{display:"flex",flexDirection:"column",gap:2,pt:1},children:y?(0,l.jsx)(t.Z,{sx:{display:"flex",justifyContent:"center",py:4},children:(0,l.jsx)(o.Z,{})}):0===b.length?(0,l.jsx)(c.Z,{color:"text.secondary",children:"No servers available. Create a server first."}):(0,l.jsxs)(l.Fragment,{children:[0===w.length&&C.length>0&&(0,l.jsx)(a.Z,{severity:"warning",children:"All servers are currently running. It is recommended to assign worlds to stopped servers."}),(0,l.jsxs)(j.Z,{label:"Select Server",select:!0,value:f,onChange:e=>p(e.target.value),fullWidth:!0,disabled:v,helperText:"Select a server to assign this world to",children:[w.length>0&&(0,l.jsx)(T.Z,{disabled:!0,children:(0,l.jsx)(c.Z,{variant:"caption",color:"text.secondary",children:"Available Servers"})}),w.map(e=>(0,l.jsx)(T.Z,{value:e.name,children:e.name},e.name)),C.length>0&&(0,l.jsx)(T.Z,{disabled:!0,children:(0,l.jsx)(c.Z,{variant:"caption",color:"text.secondary",children:"Running Servers (not recommended)"})}),C.map(e=>(0,l.jsx)(T.Z,{value:e.name,children:e.name},e.name))]})]})})}),(0,l.jsxs)(m.Z,{sx:{px:3,pb:2},children:[(0,l.jsx)(i.Z,{onClick:d,disabled:v,children:"Cancel"}),(0,l.jsx)(i.Z,{type:"submit",variant:"contained",disabled:v||!f||y,startIcon:v?(0,l.jsx)(o.Z,{size:16}):null,children:v?"Assigning...":"Assign"})]})]})})}function _(){var e,s,n,p;let[g,y]=(0,r.useState)(!1),[b,w]=(0,r.useState)(null),[C,S]=(0,r.useState)(null),[k,W]=(0,r.useState)(""),[z,L]=(0,r.useState)([]),{data:D,isLoading:I,error:A}=(0,O.Sr)(),F=(0,O.hy)(),M=(0,O.nq)(),P=(0,O.g2)(),H=(0,O.Fv)(),T=async e=>{L(s=>[...s,e]);try{await P.mutateAsync({worldName:e})}catch(e){console.error("Failed to release world:",e)}finally{L(s=>s.filter(s=>s!==e))}};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(d.Z,{elevation:0,sx:{mb:4,p:3,background:e=>"linear-gradient(135deg, ".concat((0,Z.Fq)(e.palette.success.main,.1)," 0%, ").concat((0,Z.Fq)(e.palette.primary.main,.1)," 100%)"),borderRadius:2,border:e=>"1px solid ".concat((0,Z.Fq)(e.palette.success.main,.2)),display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,l.jsxs)(t.Z,{sx:{display:"flex",alignItems:"center",gap:2},children:[(0,l.jsx)(t.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:2,bgcolor:"success.main",color:"success.contrastText"},children:(0,l.jsx)(f.Z,{sx:{fontSize:32}})}),(0,l.jsxs)(t.Z,{children:[(0,l.jsx)(c.Z,{variant:"h4",component:"h1",fontWeight:"bold",children:"Worlds"}),(0,l.jsx)(c.Z,{variant:"body1",color:"text.secondary",children:"Manage your Minecraft worlds"})]})]}),(0,l.jsx)(i.Z,{variant:"contained",startIcon:(0,l.jsx)(v.Z,{}),onClick:()=>y(!0),size:"large",children:"Create World"})]}),A&&(0,l.jsxs)(a.Z,{severity:"error",sx:{mb:3},children:["Failed to load worlds: ",A.message]}),F.isError&&(0,l.jsxs)(a.Z,{severity:"error",sx:{mb:3},children:["Failed to create world: ",null===(e=F.error)||void 0===e?void 0:e.message]}),M.isError&&(0,l.jsxs)(a.Z,{severity:"error",sx:{mb:3},children:["Failed to assign world: ",null===(s=M.error)||void 0===s?void 0:s.message]}),P.isError&&(0,l.jsxs)(a.Z,{severity:"error",sx:{mb:3},children:["Failed to release world: ",null===(n=P.error)||void 0===n?void 0:n.message]}),H.isError&&(0,l.jsxs)(a.Z,{severity:"error",sx:{mb:3},children:["Failed to delete world: ",null===(p=H.error)||void 0===p?void 0:p.message]}),I?(0,l.jsx)(t.Z,{sx:{display:"flex",justifyContent:"center",py:8},children:(0,l.jsx)(o.Z,{})}):(0,l.jsx)(E,{worlds:(null==D?void 0:D.worlds)||[],onAssign:e=>w(e),onRelease:T,onDelete:e=>{S(e),W("")},onCreate:()=>y(!0),loadingWorlds:z}),(0,l.jsx)(N,{open:g,onClose:()=>{y(!1),F.reset()},onSubmit:e=>{F.mutate(e,{onSuccess:()=>{y(!1)}})},loading:F.isPending}),(0,l.jsx)(R,{open:!!b,worldName:b||"",onClose:()=>w(null),onSubmit:(e,s)=>{L(s=>[...s,e]),M.mutate({worldName:e,serverName:s},{onSuccess:()=>{w(null)},onSettled:()=>{L(s=>s.filter(s=>s!==e))}})},loading:M.isPending}),(0,l.jsxs)(x.Z,{open:!!C,onClose:()=>{S(null),W("")},maxWidth:"sm",fullWidth:!0,children:[(0,l.jsx)(h.Z,{children:"Delete World"}),(0,l.jsxs)(u.Z,{children:[(0,l.jsxs)(c.Z,{sx:{mb:2},children:["This action cannot be undone. Type ",(0,l.jsx)("strong",{children:C})," to confirm deletion."]}),(0,l.jsx)(j.Z,{label:"World name",value:k,onChange:e=>W(e.target.value),fullWidth:!0,autoFocus:!0})]}),(0,l.jsxs)(m.Z,{sx:{px:3,pb:2},children:[(0,l.jsx)(i.Z,{onClick:()=>{S(null),W("")},children:"Cancel"}),(0,l.jsx)(i.Z,{variant:"contained",color:"error",onClick:()=>{C&&k===C&&(L(e=>[...e,C]),H.mutate({name:C,force:!0},{onSuccess:()=>{S(null),W("")},onSettled:()=>{L(e=>e.filter(e=>e!==C))}}))},disabled:k!==C||H.isPending,startIcon:H.isPending?(0,l.jsx)(o.Z,{size:16}):null,children:H.isPending?"Deleting...":"Delete"})]})]})]})}}},function(e){e.O(0,[6812,9760,6758,680,1668,7436,1071,540,4416,2538,5511,880,6909,190,2666,3669,2757,1744],function(){return e(e.s=6199)}),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- @import url("https://fonts.cdnfonts.com/css/minecraft-4");*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}#__next .visible{visibility:visible}#__next .fixed{position:fixed}#__next .absolute{position:absolute}#__next .relative{position:relative}#__next .block{display:block}#__next .flex{display:flex}#__next .table{display:table}#__next .grid{display:grid}#__next .hidden{display:none}#__next .shrink{flex-shrink:1}#__next .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#__next .break-all{word-break:break-all}#__next .rounded{border-radius:.25rem}#__next .border{border-width:1px}#__next .uppercase{text-transform:uppercase}#__next .lowercase{text-transform:lowercase}#__next .capitalize{text-transform:capitalize}#__next .italic{font-style:italic}#__next .underline{text-decoration-line:underline}#__next .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#__next .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:root{--bg-base:#16181c;--bg-raised:#1a1d22;--bg-surface:#26282e;--bg-elevated:#313338;--text-primary:#fff;--text-secondary:#9a9a9a;--text-tertiary:#72767d;--border-default:#2e3035;--primary:#1bd96a;--primary-light:#4de38a;--primary-dark:#15a852;--secondary:#7c3aed}body{color:var(--text-primary);background-color:var(--bg-base);min-height:100vh}html{scroll-behavior:smooth;scrollbar-gutter:stable}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}#nprogress{pointer-events:none}#nprogress .bar{background:var(--primary);position:fixed;z-index:9999;top:0;left:0;width:100%;height:3px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px var(--primary),0 0 5px var(--primary);opacity:1;transform:rotate(3deg) translateY(-4px)}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/2fec16f4e3247070-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/d39dd0fe2707b73f-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/64b603a0050c6c5e-s.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/19bbd60ccc95b5d0-s.woff2) format("woff2");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/f882d86c499cfa5a-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:300;font-display:swap;src:url(/_next/static/media/c99b890c5ded8d2e-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/4b1cfd3867993fed-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/77f5a85cac4ea515-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/bda87828535b47a7-s.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/b22cdab1bc584ea3-s.woff2) format("woff2");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/eeeb642bd71d217b-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/70d2fd2b9078a5a3-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/e8773fdd4b7ad26f-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/23822ac40846484b-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/387866ce4a39ca39-s.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/dbd9849a8a735d72-s.woff2) format("woff2");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/12a3e8885b69eb86-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:500;font-display:swap;src:url(/_next/static/media/3ecd40fce058ee61-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/854d2e4705543874-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/b188519314c42064-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/14d38ce06836ffee-s.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/cf66601165af2130-s.woff2) format("woff2");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/b664222af7dcc13c-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:__Ubuntu_1d908f;font-style:normal;font-weight:700;font-display:swap;src:url(/_next/static/media/33a864272e2b3e97-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:__Ubuntu_Fallback_1d908f;src:local("Arial");ascent-override:91.32%;descent-override:18.52%;line-gap-override:2.74%;size-adjust:102.06%}.__className_1d908f{font-family:__Ubuntu_1d908f,__Ubuntu_Fallback_1d908f;font-style:normal}
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[190],{32366:function(t,e,i){var s=i(8091);e.Z=void 0;var n=s(i(66758)),r=i(94655);e.Z=(0,n.default)((0,r.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},96292:function(t,e,i){var s=i(8091);e.Z=void 0;var n=s(i(66758)),r=i(94655);e.Z=(0,n.default)((0,r.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link")},78067:function(t,e,i){var s=i(8091);e.Z=void 0;var n=s(i(66758)),r=i(94655);e.Z=(0,n.default)((0,r.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage")},25935:function(t,e,i){i.d(e,{Z:function(){return y}});var s=i(32324),n=i(81500),r=i(35106),o=i(70316),a=i(65951),u=i(34519),h=i(28057),c=i(11379),l=i(9049);function d(t){return(0,l.ZP)("MuiCardActions",t)}(0,c.Z)("MuiCardActions",["root","spacing"]);var p=i(94655);let m=["disableSpacing","className"],v=t=>{let{classes:e,disableSpacing:i}=t;return(0,a.Z)({root:["root",!i&&"spacing"]},d,e)},f=(0,u.ZP)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:i}=t;return[e.root,!i.disableSpacing&&e.spacing]}})(t=>{let{ownerState:e}=t;return(0,n.Z)({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})});var y=r.forwardRef(function(t,e){let i=(0,h.i)({props:t,name:"MuiCardActions"}),{disableSpacing:r=!1,className:a}=i,u=(0,s.Z)(i,m),c=(0,n.Z)({},i,{disableSpacing:r}),l=v(c);return(0,p.jsx)(f,(0,n.Z)({className:(0,o.Z)(l.root,a),ownerState:c,ref:e},u))})},52082:function(t,e,i){i.d(e,{Z:function(){return C}});var s,n=i(32324),r=i(81500),o=i(35106),a=i(70316),u=i(65951),h=i(38762),c=i(31317),l=i(14406),d=i(85016),p=i(34519),m=i(11379),v=i(9049);function f(t){return(0,v.ZP)("MuiInputAdornment",t)}let y=(0,m.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var b=i(28057),g=i(94655);let M=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Z=t=>{let{classes:e,disablePointerEvents:i,hiddenLabel:s,position:n,size:r,variant:o}=t,a={root:["root",i&&"disablePointerEvents",n&&"position".concat((0,h.Z)(n)),o,s&&"hiddenLabel",r&&"size".concat((0,h.Z)(r))]};return(0,u.Z)(a,f,e)},x=(0,p.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:i}=t;return[e.root,e["position".concat((0,h.Z)(i.position))],!0===i.disablePointerEvents&&e.disablePointerEvents,e[i.variant]]}})(t=>{let{theme:e,ownerState:i}=t;return(0,r.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===i.variant&&{["&.".concat(y.positionStart,"&:not(.").concat(y.hiddenLabel,")")]:{marginTop:16}},"start"===i.position&&{marginRight:8},"end"===i.position&&{marginLeft:8},!0===i.disablePointerEvents&&{pointerEvents:"none"})});var C=o.forwardRef(function(t,e){let i=(0,b.i)({props:t,name:"MuiInputAdornment"}),{children:u,className:h,component:p="div",disablePointerEvents:m=!1,disableTypography:v=!1,position:f,variant:y}=i,C=(0,n.Z)(i,M),P=(0,d.Z)()||{},R=y;y&&P.variant,P&&!R&&(R=P.variant);let w=(0,r.Z)({},i,{hiddenLabel:P.hiddenLabel,size:P.size,disablePointerEvents:m,position:f,variant:R}),S=Z(w);return(0,g.jsx)(l.Z.Provider,{value:null,children:(0,g.jsx)(x,(0,r.Z)({as:p,ownerState:w,className:(0,a.Z)(S.root,h),ref:e},C,{children:"string"!=typeof u||v?(0,g.jsxs)(o.Fragment,{children:["start"===f?s||(s=(0,g.jsx)("span",{className:"notranslate",children:"​"})):null,u]}):(0,g.jsx)(c.Z,{color:"text.secondary",children:u})}))})})},64769:function(t,e,i){i.d(e,{L:function(){return r}});var s=i(11379),n=i(9049);function r(t){return(0,n.ZP)("MuiListItemText",t)}let o=(0,s.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);e.Z=o},98091:function(t,e,i){i.d(e,{R:function(){return a},m:function(){return o}});var s=i(11430),n=i(23620),r=i(97639),o=class extends n.F{#t;#e;#i;#s;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#i=t.mutationCache,this.#e=[],this.state=t.state||a(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#n({type:"continue"})},i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=(0,r.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#n({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#n({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let s="pending"===this.state.status,n=!this.#s.canStart();try{if(s)e();else{this.#n({type:"pending",variables:t,isPaused:n}),this.#i.config.onMutate&&await this.#i.config.onMutate(t,this,i);let e=await this.options.onMutate?.(t,i);e!==this.state.context&&this.#n({type:"pending",context:e,variables:t,isPaused:n})}let r=await this.#s.start();return await this.#i.config.onSuccess?.(r,t,this.state.context,this,i),await this.options.onSuccess?.(r,t,this.state.context,i),await this.#i.config.onSettled?.(r,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(r,null,t,this.state.context,i),this.#n({type:"success",data:r}),r}catch(e){try{await this.#i.config.onError?.(e,t,this.state.context,this,i)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,i)}catch(t){Promise.reject(t)}try{await this.#i.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,i)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,i)}catch(t){Promise.reject(t)}throw this.#n({type:"error",error:e}),e}finally{this.#i.runNext(this)}}#n(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),s.Vr.batch(()=>{this.#e.forEach(e=>{e.onMutationUpdate(t)}),this.#i.notify({mutation:this,type:"updated",action:t})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},20367:function(t,e,i){i.d(e,{D:function(){return c}});var s=i(35106),n=i(98091),r=i(11430),o=i(12835),a=i(80375),u=class extends o.l{#t;#r=void 0;#o;#a;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#u()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,a.VS)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#o,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,a.Ym)(e.mutationKey)!==(0,a.Ym)(this.options.mutationKey)?this.reset():this.#o?.state.status==="pending"&&this.#o.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#o?.removeObserver(this)}onMutationUpdate(t){this.#u(),this.#h(t)}getCurrentResult(){return this.#r}reset(){this.#o?.removeObserver(this),this.#o=void 0,this.#u(),this.#h()}mutate(t,e){return this.#a=e,this.#o?.removeObserver(this),this.#o=this.#t.getMutationCache().build(this.#t,this.options),this.#o.addObserver(this),this.#o.execute(t)}#u(){let t=this.#o?.state??(0,n.R)();this.#r={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#h(t){r.Vr.batch(()=>{if(this.#a&&this.hasListeners()){let e=this.#r.variables,i=this.#r.context,s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#a.onSuccess?.(t.data,e,i,s)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(t.data,null,e,i,s)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#a.onError?.(t.error,e,i,s)}catch(t){Promise.reject(t)}try{this.#a.onSettled?.(void 0,t.error,e,i,s)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#r)})})}},h=i(58919);function c(t,e){let i=(0,h.NL)(e),[n]=s.useState(()=>new u(i,t));s.useEffect(()=>{n.setOptions(t)},[n,t]);let o=s.useSyncExternalStore(s.useCallback(t=>n.subscribe(r.Vr.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),c=s.useCallback((t,e)=>{n.mutate(t,e).catch(a.ZT)},[n]);if(o.error&&(0,a.L3)(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2698],{69178:function(t,e,n){var r=n(8091);e.Z=void 0;var i=r(n(66758)),o=n(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Assignment")},46207:function(t,e,n){var r=n(8091);e.Z=void 0;var i=r(n(66758)),o=n(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},54617:function(t,e,n){var r=n(8091);e.Z=void 0;var i=r(n(66758)),o=n(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll")},15761:function(t,e,n){var r=n(8091);e.Z=void 0;var i=r(n(66758)),o=n(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download")},43436:function(t,e,n){var r=n(8091);e.Z=void 0;var i=r(n(66758)),o=n(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error")},45354:function(t,e,n){var r=n(8091);e.Z=void 0;var i=r(n(66758)),o=n(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline")},84284:function(t,e,n){var r=n(8091);e.Z=void 0;var i=r(n(66758)),o=n(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess")},81960:function(t,e,n){var r=n(8091);e.Z=void 0;var i=r(n(66758)),o=n(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore")},78439:function(t,e,n){var r=n(8091);e.Z=void 0;var i=r(n(66758)),o=n(94655);e.Z=(0,i.default)((0,o.jsx)("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord")},50880:function(t,e,n){var r=n(8091);e.Z=void 0;var i=r(n(66758)),o=n(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList")},89161:function(t,e,n){var r=n(8091);e.Z=void 0;var i=r(n(66758)),o=n(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown")},60236:function(t,e,n){var r=n(8091);e.Z=void 0;var i=r(n(66758)),o=n(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp")},30114:function(t,e,n){var r=n(8091);e.Z=void 0;var i=r(n(66758)),o=n(94655);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person")},87716:function(t,e,n){n.d(e,{Z:function(){return C}});var r=n(32324),i=n(81500),o=n(35106),a=n(70316),l=n(92019),s=n(67485),c=n(65951),d=n(34519),u=n(28057),h=n(30035),p=n(56874),v=n(83855),f=n(38481),g=n(11379),m=n(9049);function Z(t){return(0,m.ZP)("MuiCollapse",t)}(0,g.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var b=n(94655);let x=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],w=t=>{let{orientation:e,classes:n}=t;return(0,c.Z)({root:["root","".concat(e)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(e)],wrapperInner:["wrapperInner","".concat(e)]},Z,n)},R=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.root,e[n.orientation],"entered"===n.state&&e.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&e.hidden]}})(t=>{let{theme:e,ownerState:n}=t;return(0,i.Z)({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===n.state&&(0,i.Z)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})}),y=(0,d.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,e)=>e.wrapper})(t=>{let{ownerState:e}=t;return(0,i.Z)({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})}),P=(0,d.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,e)=>e.wrapperInner})(t=>{let{ownerState:e}=t;return(0,i.Z)({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"})}),M=o.forwardRef(function(t,e){let n=(0,u.i)({props:t,name:"MuiCollapse"}),{addEndListener:c,children:d,className:g,collapsedSize:m="0px",component:Z,easing:M,in:C,onEnter:S,onEntered:I,onEntering:j,onExit:B,onExited:L,onExiting:z,orientation:k="vertical",style:A,timeout:T=h.x9.standard,TransitionComponent:E=l.ZP}=n,N=(0,r.Z)(n,x),H=(0,i.Z)({},n,{orientation:k,collapsedSize:m}),D=w(H),F=(0,v.Z)(),V=(0,s.Z)(),W=o.useRef(null),_=o.useRef(),X="number"==typeof m?"".concat(m,"px"):m,O="horizontal"===k,q=O?"width":"height",K=o.useRef(null),G=(0,f.Z)(e,K),U=t=>e=>{if(t){let n=K.current;void 0===e?t(n):t(n,e)}},J=()=>W.current?W.current[O?"clientWidth":"clientHeight"]:0,Q=U((t,e)=>{W.current&&O&&(W.current.style.position="absolute"),t.style[q]=X,S&&S(t,e)}),Y=U((t,e)=>{let n=J();W.current&&O&&(W.current.style.position="");let{duration:r,easing:i}=(0,p.C)({style:A,timeout:T,easing:M},{mode:"enter"});if("auto"===T){let e=F.transitions.getAutoHeightDuration(n);t.style.transitionDuration="".concat(e,"ms"),_.current=e}else t.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");t.style[q]="".concat(n,"px"),t.style.transitionTimingFunction=i,j&&j(t,e)}),$=U((t,e)=>{t.style[q]="auto",I&&I(t,e)}),tt=U(t=>{t.style[q]="".concat(J(),"px"),B&&B(t)}),te=U(L),tn=U(t=>{let e=J(),{duration:n,easing:r}=(0,p.C)({style:A,timeout:T,easing:M},{mode:"exit"});if("auto"===T){let n=F.transitions.getAutoHeightDuration(e);t.style.transitionDuration="".concat(n,"ms"),_.current=n}else t.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");t.style[q]=X,t.style.transitionTimingFunction=r,z&&z(t)});return(0,b.jsx)(E,(0,i.Z)({in:C,onEnter:Q,onEntered:$,onEntering:Y,onExit:tt,onExited:te,onExiting:tn,addEndListener:t=>{"auto"===T&&V.start(_.current||0,t),c&&c(K.current,t)},nodeRef:K,timeout:"auto"===T?null:T},N,{children:(t,e)=>(0,b.jsx)(R,(0,i.Z)({as:Z,className:(0,a.Z)(D.root,g,{entered:D.entered,exited:!C&&"0px"===X&&D.hidden}[t]),style:(0,i.Z)({[O?"minWidth":"minHeight"]:X},A),ref:G},e,{ownerState:(0,i.Z)({},H,{state:t}),children:(0,b.jsx)(y,{ownerState:(0,i.Z)({},H,{state:t}),className:D.wrapper,ref:W,children:(0,b.jsx)(P,{ownerState:(0,i.Z)({},H,{state:t}),className:D.wrapperInner,children:d})})}))}))});M.muiSupportAuto=!0;var C=M},69123:function(t,e,n){var r=n(32324),i=n(81500),o=n(35106),a=n(70316),l=n(65951),s=n(64577),c=n(34519),d=n(28057),u=n(16945),h=n(94655);let p=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],v=t=>{let{absolute:e,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:c}=t;return(0,l.Z)({root:["root",e&&"absolute",c,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},u.V,r)},f=(0,c.ZP)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.root,n.absolute&&e.absolute,e[n.variant],n.light&&e.light,"vertical"===n.orientation&&e.vertical,n.flexItem&&e.flexItem,n.children&&e.withChildren,n.children&&"vertical"===n.orientation&&e.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&e.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&e.textAlignLeft]}})(t=>{let{theme:e,ownerState:n}=t;return(0,i.Z)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:e.vars?"rgba(".concat(e.vars.palette.dividerChannel," / 0.08)"):(0,s.Fq)(e.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})},t=>{let{ownerState:e}=t;return(0,i.Z)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})},t=>{let{theme:e,ownerState:n}=t;return(0,i.Z)({},n.children&&"vertical"!==n.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((e.vars||e).palette.divider),borderTopStyle:"inherit"}})},t=>{let{theme:e,ownerState:n}=t;return(0,i.Z)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((e.vars||e).palette.divider),borderLeftStyle:"inherit"}})},t=>{let{ownerState:e}=t;return(0,i.Z)({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})}),g=(0,c.ZP)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.wrapper,"vertical"===n.orientation&&e.wrapperVertical]}})(t=>{let{theme:e,ownerState:n}=t;return(0,i.Z)({display:"inline-block",paddingLeft:"calc(".concat(e.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(e.spacing(1)," * 1.2)")},"vertical"===n.orientation&&{paddingTop:"calc(".concat(e.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(e.spacing(1)," * 1.2)")})}),m=o.forwardRef(function(t,e){let n=(0,d.i)({props:t,name:"MuiDivider"}),{absolute:o=!1,children:l,className:s,component:c=l?"div":"hr",flexItem:u=!1,light:m=!1,orientation:Z="horizontal",role:b="hr"!==c?"separator":void 0,textAlign:x="center",variant:w="fullWidth"}=n,R=(0,r.Z)(n,p),y=(0,i.Z)({},n,{absolute:o,component:c,flexItem:u,light:m,orientation:Z,role:b,textAlign:x,variant:w}),P=v(y);return(0,h.jsx)(f,(0,i.Z)({as:c,className:(0,a.Z)(P.root,s),role:b,ref:e,ownerState:y},R,{children:l?(0,h.jsx)(g,{className:P.wrapper,ownerState:y,children:l}):null}))});m.muiSkipListHighlight=!0,e.Z=m},10721:function(t,e,n){n.d(e,{Z:function(){return L}});var r=n(16295),i=n(32324),o=n(81500),a=n(35106),l=n(70316),s=n(41060),c=n(65951),d=n(76492),u=n(34519),h=n(28057),p=n(11379),v=n(9049);function f(t){return(0,v.ZP)("MuiSkeleton",t)}(0,p.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var g=n(94655);function m(){let t=(0,r._)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return m=function(){return t},t}function Z(){let t=(0,r._)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"]);return Z=function(){return t},t}function b(){let t=(0,r._)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]);return b=function(){return t},t}function x(){let t=(0,r._)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]);return x=function(){return t},t}let w=["animation","className","component","height","style","variant","width"],R=t=>t,y,P,M,C,S=t=>{let{classes:e,variant:n,animation:r,hasChildren:i,width:o,height:a}=t;return(0,c.Z)({root:["root",n,r,i&&"withChildren",i&&!o&&"fitContent",i&&!a&&"heightAuto"]},f,e)},I=(0,s.F4)(y||(y=R(m()))),j=(0,s.F4)(P||(P=R(Z()))),B=(0,u.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.root,e[n.variant],!1!==n.animation&&e[n.animation],n.hasChildren&&e.withChildren,n.hasChildren&&!n.width&&e.fitContent,n.hasChildren&&!n.height&&e.heightAuto]}})(t=>{let{theme:e,ownerState:n}=t,r=String(e.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",i=parseFloat(e.shape.borderRadius);return(0,o.Z)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,d.Fq)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===n.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(i).concat(r,"/").concat(Math.round(i/.6*10)/10).concat(r),"&:empty:before":{content:'"\\00a0"'}},"circular"===n.variant&&{borderRadius:"50%"},"rounded"===n.variant&&{borderRadius:(e.vars||e).shape.borderRadius},n.hasChildren&&{"& > *":{visibility:"hidden"}},n.hasChildren&&!n.width&&{maxWidth:"fit-content"},n.hasChildren&&!n.height&&{height:"auto"})},t=>{let{ownerState:e}=t;return"pulse"===e.animation&&(0,s.iv)(M||(M=R(b(),0)),I)},t=>{let{ownerState:e,theme:n}=t;return"wave"===e.animation&&(0,s.iv)(C||(C=R(x(),0,0)),j,(n.vars||n).palette.action.hover)});var L=a.forwardRef(function(t,e){let n=(0,h.i)({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:a,component:s="span",height:c,style:d,variant:u="text",width:p}=n,v=(0,i.Z)(n,w),f=(0,o.Z)({},n,{animation:r,component:s,variant:u,hasChildren:!!v.children}),m=S(f);return(0,g.jsx)(B,(0,o.Z)({as:s,ref:e,className:(0,l.Z)(m.root,a),ownerState:f},v,{style:(0,o.Z)({width:p,height:c},d)}))})},53281:function(t,e,n){n.d(e,{Z:function(){return m}});var r=n(81500),i=n(32324),o=n(35106),a=n(70316),l=n(65951),s=n(28057),c=n(34519),d=n(11379),u=n(9049);function h(t){return(0,u.ZP)("MuiTableContainer",t)}(0,d.Z)("MuiTableContainer",["root"]);var p=n(94655);let v=["className","component"],f=t=>{let{classes:e}=t;return(0,l.Z)({root:["root"]},h,e)},g=(0,c.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"});var m=o.forwardRef(function(t,e){let n=(0,s.i)({props:t,name:"MuiTableContainer"}),{className:o,component:l="div"}=n,c=(0,i.Z)(n,v),d=(0,r.Z)({},n,{component:l}),u=f(d);return(0,p.jsx)(g,(0,r.Z)({ref:e,as:l,className:(0,a.Z)(u.root,o),ownerState:d},c))})},6406:function(t,e,n){n.d(e,{Z:function(){return _}});var r,i=n(32324),o=n(81500),a=n(35106),l=n(70316),s=n(65951),c=n(23225),d=n(34519),u=n(28057),h=n(47684),p=n(7178),v=n(62328),f=n(47001),g=n(62108),m=n(16501),Z=n(6858),b=n(92302),x=n(79983),w=n(61626),R=n(94655),y=(0,w.Z)((0,R.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),P=(0,w.Z)((0,R.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage");let M=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],C=a.forwardRef(function(t,e){var n,r,a,l,s,c,d,u;let{backIconButtonProps:h,count:p,disabled:v=!1,getItemAriaLabel:f,nextIconButtonProps:g,onPageChange:w,page:C,rowsPerPage:S,showFirstButton:I,showLastButton:j,slots:B={},slotProps:L={}}=t,z=(0,i.Z)(t,M),k=(0,m.V)(),A=null!=(n=B.firstButton)?n:x.Z,T=null!=(r=B.lastButton)?r:x.Z,E=null!=(a=B.nextButton)?a:x.Z,N=null!=(l=B.previousButton)?l:x.Z,H=null!=(s=B.firstButtonIcon)?s:P,D=null!=(c=B.lastButtonIcon)?c:y,F=null!=(d=B.nextButtonIcon)?d:b.Z,V=null!=(u=B.previousButtonIcon)?u:Z.Z,W=k?T:A,_=k?E:N,X=k?N:E,O=k?A:T,q=k?L.lastButton:L.firstButton,K=k?L.nextButton:L.previousButton,G=k?L.previousButton:L.nextButton,U=k?L.firstButton:L.lastButton;return(0,R.jsxs)("div",(0,o.Z)({ref:e},z,{children:[I&&(0,R.jsx)(W,(0,o.Z)({onClick:t=>{w(t,0)},disabled:v||0===C,"aria-label":f("first",C),title:f("first",C)},q,{children:k?(0,R.jsx)(D,(0,o.Z)({},L.lastButtonIcon)):(0,R.jsx)(H,(0,o.Z)({},L.firstButtonIcon))})),(0,R.jsx)(_,(0,o.Z)({onClick:t=>{w(t,C-1)},disabled:v||0===C,color:"inherit","aria-label":f("previous",C),title:f("previous",C)},null!=K?K:h,{children:k?(0,R.jsx)(F,(0,o.Z)({},L.nextButtonIcon)):(0,R.jsx)(V,(0,o.Z)({},L.previousButtonIcon))})),(0,R.jsx)(X,(0,o.Z)({onClick:t=>{w(t,C+1)},disabled:v||-1!==p&&C>=Math.ceil(p/S)-1,color:"inherit","aria-label":f("next",C),title:f("next",C)},null!=G?G:g,{children:k?(0,R.jsx)(V,(0,o.Z)({},L.previousButtonIcon)):(0,R.jsx)(F,(0,o.Z)({},L.nextButtonIcon))})),j&&(0,R.jsx)(O,(0,o.Z)({onClick:t=>{w(t,Math.max(0,Math.ceil(p/S)-1))},disabled:v||C>=Math.ceil(p/S)-1,"aria-label":f("last",C),title:f("last",C)},U,{children:k?(0,R.jsx)(H,(0,o.Z)({},L.firstButtonIcon)):(0,R.jsx)(D,(0,o.Z)({},L.lastButtonIcon))}))]}))});var S=n(88207),I=n(11379),j=n(9049);function B(t){return(0,j.ZP)("MuiTablePagination",t)}let L=(0,I.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),z=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],k=(0,d.ZP)(f.Z,{name:"MuiTablePagination",slot:"Root",overridesResolver:(t,e)=>e.root})(t=>{let{theme:e}=t;return{overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}}),A=(0,d.ZP)(g.Z,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>(0,o.Z)({["& .".concat(L.actions)]:e.actions},e.toolbar)})(t=>{let{theme:e}=t;return{minHeight:52,paddingRight:2,["".concat(e.breakpoints.up("xs")," and (orientation: landscape)")]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},["& .".concat(L.actions)]:{flexShrink:0,marginLeft:20}}}),T=(0,d.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})({flex:"1 1 100%"}),E=(0,d.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(t,e)=>e.selectLabel})(t=>{let{theme:e}=t;return(0,o.Z)({},e.typography.body2,{flexShrink:0})}),N=(0,d.ZP)(v.Z,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>(0,o.Z)({["& .".concat(L.selectIcon)]:e.selectIcon,["& .".concat(L.select)]:e.select},e.input,e.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,["& .".concat(L.select)]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),H=(0,d.ZP)(p.Z,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(t,e)=>e.menuItem})({}),D=(0,d.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(t,e)=>e.displayedRows})(t=>{let{theme:e}=t;return(0,o.Z)({},e.typography.body2,{flexShrink:0})});function F(t){let{from:e,to:n,count:r}=t;return"".concat(e,"–").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))}function V(t){return"Go to ".concat(t," page")}let W=t=>{let{classes:e}=t;return(0,s.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},B,e)};var _=a.forwardRef(function(t,e){var n;let s;let d=(0,u.i)({props:t,name:"MuiTablePagination"}),{ActionsComponent:p=C,backIconButtonProps:v,className:g,colSpan:m,component:Z=f.Z,count:b,disabled:x=!1,getItemAriaLabel:w=V,labelDisplayedRows:y=F,labelRowsPerPage:P="Rows per page:",nextIconButtonProps:M,onPageChange:I,onRowsPerPageChange:j,page:B,rowsPerPage:L,rowsPerPageOptions:_=[10,25,50,100],SelectProps:X={},showFirstButton:O=!1,showLastButton:q=!1,slotProps:K={},slots:G={}}=d,U=(0,i.Z)(d,z),J=W(d),Q=null!=(n=null==K?void 0:K.select)?n:X,Y=Q.native?"option":H;(Z===f.Z||"td"===Z)&&(s=m||1e3);let $=(0,S.Z)(Q.id),tt=(0,S.Z)(Q.labelId);return(0,R.jsx)(k,(0,o.Z)({colSpan:s,ref:e,as:Z,ownerState:d,className:(0,l.Z)(J.root,g)},U,{children:(0,R.jsxs)(A,{className:J.toolbar,children:[(0,R.jsx)(T,{className:J.spacer}),_.length>1&&(0,R.jsx)(E,{className:J.selectLabel,id:tt,children:P}),_.length>1&&(0,R.jsx)(N,(0,o.Z)({variant:"standard"},!Q.variant&&{input:r||(r=(0,R.jsx)(h.ZP,{}))},{value:L,onChange:j,id:$,labelId:tt},Q,{classes:(0,o.Z)({},Q.classes,{root:(0,l.Z)(J.input,J.selectRoot,(Q.classes||{}).root),select:(0,l.Z)(J.select,(Q.classes||{}).select),icon:(0,l.Z)(J.selectIcon,(Q.classes||{}).icon)}),disabled:x,children:_.map(t=>(0,a.createElement)(Y,(0,o.Z)({},!(0,c.Z)(Y)&&{ownerState:d},{className:J.menuItem,key:t.label?t.label:t,value:t.value?t.value:t}),t.label?t.label:t))})),(0,R.jsx)(D,{className:J.displayedRows,children:y({from:0===b?0:B*L+1,to:-1===b?(B+1)*L:-1===L?b:Math.min(b,(B+1)*L),count:-1===b?-1:b,page:B})}),(0,R.jsx)(p,{className:J.actions,backIconButtonProps:v,count:b,nextIconButtonProps:M,onPageChange:I,page:B,rowsPerPage:L,showFirstButton:O,showLastButton:q,slotProps:K.actions,slots:G.actions,getItemAriaLabel:w,disabled:x})]})}))})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4474],{35847:function(e,t,l){var r=l(8091);t.Z=void 0;var o=r(l(66758)),n=l(94655);t.Z=(0,o.default)((0,n.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People")},60097:function(e,t,l){l.d(t,{Z:function(){return g}});var r=l(32324),o=l(81500),n=l(35106),i=l(70316),a=l(65951),s=l(29084),c=l(38762),d=l(28057),u=l(34519),f=l(11379),p=l(9049);function h(e){return(0,p.ZP)("MuiTab",e)}let b=(0,f.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);var v=l(94655);let m=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],x=e=>{let{classes:t,textColor:l,fullWidth:r,wrapped:o,icon:n,label:i,selected:s,disabled:d}=e,u={root:["root",n&&i&&"labelIcon","textColor".concat((0,c.Z)(l)),r&&"fullWidth",o&&"wrapped",s&&"selected",d&&"disabled"],iconWrapper:["iconWrapper"]};return(0,a.Z)(u,h,t)},Z=(0,u.ZP)(s.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.root,l.label&&l.icon&&t.labelIcon,t["textColor".concat((0,c.Z)(l.textColor))],l.fullWidth&&t.fullWidth,l.wrapped&&t.wrapped,{["& .".concat(b.iconWrapper)]:t.iconWrapper}]}})(e=>{let{theme:t,ownerState:l}=e;return(0,o.Z)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},l.label&&{flexDirection:"top"===l.iconPosition||"bottom"===l.iconPosition?"column":"row"},{lineHeight:1.25},l.icon&&l.label&&{minHeight:72,paddingTop:9,paddingBottom:9,["& > .".concat(b.iconWrapper)]:(0,o.Z)({},"top"===l.iconPosition&&{marginBottom:6},"bottom"===l.iconPosition&&{marginTop:6},"start"===l.iconPosition&&{marginRight:t.spacing(1)},"end"===l.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===l.textColor&&{color:"inherit",opacity:.6,["&.".concat(b.selected)]:{opacity:1},["&.".concat(b.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===l.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(b.selected)]:{color:(t.vars||t).palette.primary.main},["&.".concat(b.disabled)]:{color:(t.vars||t).palette.text.disabled}},"secondary"===l.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(b.selected)]:{color:(t.vars||t).palette.secondary.main},["&.".concat(b.disabled)]:{color:(t.vars||t).palette.text.disabled}},l.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},l.wrapped&&{fontSize:t.typography.pxToRem(12)})});var g=n.forwardRef(function(e,t){let l=(0,d.i)({props:e,name:"MuiTab"}),{className:a,disabled:s=!1,disableFocusRipple:c=!1,fullWidth:u,icon:f,iconPosition:p="top",indicator:h,label:b,onChange:g,onClick:S,onFocus:w,selected:y,selectionFollowsFocus:C,textColor:B="inherit",value:E,wrapped:M=!1}=l,W=(0,r.Z)(l,m),I=(0,o.Z)({},l,{disabled:s,disableFocusRipple:c,selected:y,icon:!!f,iconPosition:p,label:!!b,fullWidth:u,textColor:B,wrapped:M}),P=x(I),R=f&&b&&n.isValidElement(f)?n.cloneElement(f,{className:(0,i.Z)(P.iconWrapper,f.props.className)}):f;return(0,v.jsxs)(Z,(0,o.Z)({focusRipple:!c,className:(0,i.Z)(P.root,a),ref:t,role:"tab","aria-selected":y,disabled:s,onClick:e=>{!y&&g&&g(e,E),S&&S(e)},onFocus:e=>{C&&!y&&g&&g(e,E),w&&w(e)},ownerState:I,tabIndex:y?0:-1},W,{children:["top"===p||"start"===p?(0,v.jsxs)(n.Fragment,{children:[R,b]}):(0,v.jsxs)(n.Fragment,{children:[b,R]}),h]}))})},33402:function(e,t,l){let r;l.d(t,{Z:function(){return K}});var o=l(32324),n=l(81500),i=l(35106),a=l(70316),s=l(65951),c=l(16501),d=l(95582),u=l(34519),f=l(28057),p=l(83855),h=l(19521);function b(){if(r)return r;let e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),r="reverse",e.scrollLeft>0?r="default":(e.scrollLeft=1,0===e.scrollLeft&&(r="negative")),document.body.removeChild(e),r}function v(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var m=l(65425),x=l(99466),Z=l(94655);let g=["onChange"],S={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var w=l(6858),y=l(92302),C=l(29084),B=l(11379),E=l(9049);function M(e){return(0,E.ZP)("MuiTabScrollButton",e)}let W=(0,B.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),I=["className","slots","slotProps","direction","orientation","disabled"],P=e=>{let{classes:t,orientation:l,disabled:r}=e;return(0,s.Z)({root:["root",l,r&&"disabled"]},M,t)},R=(0,u.ZP)(C.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.root,l.orientation&&t[l.orientation]]}})(e=>{let{ownerState:t}=e;return(0,n.Z)({width:40,flexShrink:0,opacity:.8,["&.".concat(W.disabled)]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})}),T=i.forwardRef(function(e,t){var l,r;let i=(0,f.i)({props:e,name:"MuiTabScrollButton"}),{className:s,slots:u={},slotProps:p={},direction:h}=i,b=(0,o.Z)(i,I),v=(0,c.V)(),m=(0,n.Z)({isRtl:v},i),x=P(m),g=null!=(l=u.StartScrollButtonIcon)?l:w.Z,S=null!=(r=u.EndScrollButtonIcon)?r:y.Z,C=(0,d.Z)({elementType:g,externalSlotProps:p.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),B=(0,d.Z)({elementType:S,externalSlotProps:p.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return(0,Z.jsx)(R,(0,n.Z)({component:"div",className:(0,a.Z)(x.root,s),ref:t,role:null,ownerState:m,tabIndex:null},b,{children:"left"===h?(0,Z.jsx)(g,(0,n.Z)({},C)):(0,Z.jsx)(S,(0,n.Z)({},B))}))});var N=l(10620);function k(e){return(0,E.ZP)("MuiTabs",e)}let L=(0,B.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var z=l(34713);let A=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],j=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,H=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,F=(e,t,l)=>{let r=!1,o=l(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}let t=o.disabled||"true"===o.getAttribute("aria-disabled");if(!o.hasAttribute("tabindex")||t)o=l(e,o);else{o.focus();return}}},X=e=>{let{vertical:t,fixed:l,hideScrollbar:r,scrollableX:o,scrollableY:n,centered:i,scrollButtonsHideMobile:a,classes:c}=e;return(0,s.Z)({root:["root",t&&"vertical"],scroller:["scroller",l&&"fixed",r&&"hideScrollbar",o&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},k,c)},D=(0,u.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[{["& .".concat(L.scrollButtons)]:t.scrollButtons},{["& .".concat(L.scrollButtons)]:l.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,l.vertical&&t.vertical]}})(e=>{let{ownerState:t,theme:l}=e;return(0,n.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{["& .".concat(L.scrollButtons)]:{[l.breakpoints.down("sm")]:{display:"none"}}})}),O=(0,u.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.scroller,l.fixed&&t.fixed,l.hideScrollbar&&t.hideScrollbar,l.scrollableX&&t.scrollableX,l.scrollableY&&t.scrollableY]}})(e=>{let{ownerState:t}=e;return(0,n.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})}),V=(0,u.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{let{ownerState:l}=e;return[t.flexContainer,l.vertical&&t.flexContainerVertical,l.centered&&t.centered]}})(e=>{let{ownerState:t}=e;return(0,n.Z)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})}),Y=(0,u.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(e=>{let{ownerState:t,theme:l}=e;return(0,n.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:l.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(l.vars||l).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(l.vars||l).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})}),_=(0,u.ZP)(function(e){let{onChange:t}=e,l=(0,o.Z)(e,g),r=i.useRef(),a=i.useRef(null),s=()=>{r.current=a.current.offsetHeight-a.current.clientHeight};return(0,m.Z)(()=>{let e=(0,h.Z)(()=>{let e=r.current;s(),e!==r.current&&t(r.current)}),l=(0,x.Z)(a.current);return l.addEventListener("resize",e),()=>{e.clear(),l.removeEventListener("resize",e)}},[t]),i.useEffect(()=>{s(),t(r.current)},[t]),(0,Z.jsx)("div",(0,n.Z)({style:S},l,{ref:a}))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),q={};var K=i.forwardRef(function(e,t){let l=(0,f.i)({props:e,name:"MuiTabs"}),r=(0,p.Z)(),s=(0,c.V)(),{"aria-label":u,"aria-labelledby":m,action:g,centered:S=!1,children:w,className:y,component:C="div",allowScrollButtonsMobile:B=!1,indicatorColor:E="primary",onChange:M,orientation:W="horizontal",ScrollButtonComponent:I=T,scrollButtons:P="auto",selectionFollowsFocus:R,slots:k={},slotProps:L={},TabIndicatorProps:K={},TabScrollButtonProps:G={},textColor:U="primary",value:J,variant:Q="standard",visibleScrollbar:$=!1}=l,ee=(0,o.Z)(l,A),et="scrollable"===Q,el="vertical"===W,er=el?"scrollTop":"scrollLeft",eo=el?"top":"left",en=el?"bottom":"right",ei=el?"clientHeight":"clientWidth",ea=el?"height":"width",es=(0,n.Z)({},l,{component:C,allowScrollButtonsMobile:B,indicatorColor:E,orientation:W,vertical:el,scrollButtons:P,textColor:U,variant:Q,visibleScrollbar:$,fixed:!et,hideScrollbar:et&&!$,scrollableX:et&&!el,scrollableY:et&&el,centered:S&&!et,scrollButtonsHideMobile:!B}),ec=X(es),ed=(0,d.Z)({elementType:k.StartScrollButtonIcon,externalSlotProps:L.startScrollButtonIcon,ownerState:es}),eu=(0,d.Z)({elementType:k.EndScrollButtonIcon,externalSlotProps:L.endScrollButtonIcon,ownerState:es}),[ef,ep]=i.useState(!1),[eh,eb]=i.useState(q),[ev,em]=i.useState(!1),[ex,eZ]=i.useState(!1),[eg,eS]=i.useState(!1),[ew,ey]=i.useState({overflow:"hidden",scrollbarWidth:0}),eC=new Map,eB=i.useRef(null),eE=i.useRef(null),eM=()=>{let e,t;let l=eB.current;if(l){let t=l.getBoundingClientRect();e={clientWidth:l.clientWidth,scrollLeft:l.scrollLeft,scrollTop:l.scrollTop,scrollLeftNormalized:function(e,t){let l=e.scrollLeft;if("rtl"!==t)return l;switch(b()){case"negative":return e.scrollWidth-e.clientWidth+l;case"reverse":return e.scrollWidth-e.clientWidth-l;default:return l}}(l,s?"rtl":"ltr"),scrollWidth:l.scrollWidth,top:t.top,bottom:t.bottom,left:t.left,right:t.right}}if(l&&!1!==J){let e=eE.current.children;if(e.length>0){let l=e[eC.get(J)];t=l?l.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},eW=(0,N.Z)(()=>{let e;let{tabsMeta:t,tabMeta:l}=eM(),r=0;if(el)e="top",l&&t&&(r=l.top-t.top+t.scrollTop);else if(e=s?"right":"left",l&&t){let o=s?t.scrollLeftNormalized+t.clientWidth-t.scrollWidth:t.scrollLeft;r=(s?-1:1)*(l[e]-t[e]+o)}let o={[e]:r,[ea]:l?l[ea]:0};if(isNaN(eh[e])||isNaN(eh[ea]))eb(o);else{let t=Math.abs(eh[e]-o[e]),l=Math.abs(eh[ea]-o[ea]);(t>=1||l>=1)&&eb(o)}}),eI=function(e){let{animation:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?function(e,t,l){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{},{ease:n=v,duration:i=300}=r,a=null,s=t[e],c=!1,d=r=>{if(c){o(Error("Animation cancelled"));return}null===a&&(a=r);let u=Math.min(1,(r-a)/i);if(t[e]=n(u)*(l-s)+s,u>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(d)};return s===l?o(Error("Element already at target position")):requestAnimationFrame(d),()=>{c=!0}}(er,eB.current,e,{duration:r.transitions.duration.standard}):eB.current[er]=e},eP=e=>{let t=eB.current[er];el?t+=e:(t+=e*(s?-1:1),t*=s&&"reverse"===b()?-1:1),eI(t)},eR=()=>{let e=eB.current[ei],t=0,l=Array.from(eE.current.children);for(let r=0;r<l.length;r+=1){let o=l[r];if(t+o[ei]>e){0===r&&(t=e);break}t+=o[ei]}return t},eT=()=>{eP(-1*eR())},eN=()=>{eP(eR())},ek=i.useCallback(e=>{ey({overflow:null,scrollbarWidth:e})},[]),eL=(0,N.Z)(e=>{let{tabsMeta:t,tabMeta:l}=eM();l&&t&&(l[eo]<t[eo]?eI(t[er]+(l[eo]-t[eo]),{animation:e}):l[en]>t[en]&&eI(t[er]+(l[en]-t[en]),{animation:e}))}),ez=(0,N.Z)(()=>{et&&!1!==P&&eS(!eg)});i.useEffect(()=>{let e,t;let l=(0,h.Z)(()=>{eB.current&&eW()}),r=(0,x.Z)(eB.current);return r.addEventListener("resize",l),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(l),Array.from(eE.current.children).forEach(t=>{e.observe(t)})),"undefined"!=typeof MutationObserver&&(t=new MutationObserver(t=>{t.forEach(t=>{t.removedNodes.forEach(t=>{var l;null==(l=e)||l.unobserve(t)}),t.addedNodes.forEach(t=>{var l;null==(l=e)||l.observe(t)})}),l(),ez()})).observe(eE.current,{childList:!0}),()=>{var o,n;l.clear(),r.removeEventListener("resize",l),null==(o=t)||o.disconnect(),null==(n=e)||n.disconnect()}},[eW,ez]),i.useEffect(()=>{let e=Array.from(eE.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&et&&!1!==P){let l=e[0],r=e[t-1],o={root:eB.current,threshold:.99},n=new IntersectionObserver(e=>{em(!e[0].isIntersecting)},o);n.observe(l);let i=new IntersectionObserver(e=>{eZ(!e[0].isIntersecting)},o);return i.observe(r),()=>{n.disconnect(),i.disconnect()}}},[et,P,eg,null==w?void 0:w.length]),i.useEffect(()=>{ep(!0)},[]),i.useEffect(()=>{eW()}),i.useEffect(()=>{eL(q!==eh)},[eL,eh]),i.useImperativeHandle(g,()=>({updateIndicator:eW,updateScrollButtons:ez}),[eW,ez]);let eA=(0,Z.jsx)(Y,(0,n.Z)({},K,{className:(0,a.Z)(ec.indicator,K.className),ownerState:es,style:(0,n.Z)({},eh,K.style)})),ej=0,eH=i.Children.map(w,e=>{if(!i.isValidElement(e))return null;let t=void 0===e.props.value?ej:e.props.value;eC.set(t,ej);let l=t===J;return ej+=1,i.cloneElement(e,(0,n.Z)({fullWidth:"fullWidth"===Q,indicator:l&&!ef&&eA,selected:l,selectionFollowsFocus:R,onChange:M,textColor:U,value:t},1!==ej||!1!==J||e.props.tabIndex?{}:{tabIndex:0}))}),eF=(()=>{let e={};e.scrollbarSizeListener=et?(0,Z.jsx)(_,{onChange:ek,className:(0,a.Z)(ec.scrollableX,ec.hideScrollbar)}):null;let t=et&&("auto"===P&&(ev||ex)||!0===P);return e.scrollButtonStart=t?(0,Z.jsx)(I,(0,n.Z)({slots:{StartScrollButtonIcon:k.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ed},orientation:W,direction:s?"right":"left",onClick:eT,disabled:!ev},G,{className:(0,a.Z)(ec.scrollButtons,G.className)})):null,e.scrollButtonEnd=t?(0,Z.jsx)(I,(0,n.Z)({slots:{EndScrollButtonIcon:k.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:eu},orientation:W,direction:s?"left":"right",onClick:eN,disabled:!ex},G,{className:(0,a.Z)(ec.scrollButtons,G.className)})):null,e})();return(0,Z.jsxs)(D,(0,n.Z)({className:(0,a.Z)(ec.root,y),ownerState:es,ref:t,as:C},ee,{children:[eF.scrollButtonStart,eF.scrollbarSizeListener,(0,Z.jsxs)(O,{className:ec.scroller,ownerState:es,style:{overflow:ew.overflow,[el?"margin".concat(s?"Left":"Right"):"marginBottom"]:$?void 0:-ew.scrollbarWidth},ref:eB,children:[(0,Z.jsx)(V,{"aria-label":u,"aria-labelledby":m,"aria-orientation":"vertical"===W?"vertical":null,className:ec.flexContainer,ownerState:es,onKeyDown:e=>{let t=eE.current,l=(0,z.Z)(t).activeElement;if("tab"!==l.getAttribute("role"))return;let r="horizontal"===W?"ArrowLeft":"ArrowUp",o="horizontal"===W?"ArrowRight":"ArrowDown";switch("horizontal"===W&&s&&(r="ArrowRight",o="ArrowLeft"),e.key){case r:e.preventDefault(),F(t,l,H);break;case o:e.preventDefault(),F(t,l,j);break;case"Home":e.preventDefault(),F(t,null,j);break;case"End":e.preventDefault(),F(t,null,H)}},ref:eE,role:"tablist",children:eH}),ef&&eA]}),eF.scrollButtonEnd]}))})},6858:function(e,t,l){l(35106);var r=l(61626),o=l(94655);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},92302:function(e,t,l){l(35106);var r=l(61626),o=l(94655);t.Z=(0,r.Z)((0,o.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")}}]);