@abtnode/webapp 1.16.29-beta-1fb308f8 → 1.16.29-beta-26adf6bb

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 (203) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-BEm8ulfI.js → Add-B__xT4sB.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-3OaPoerb.js → ArrowDropDown-VLne7ccc.js} +1 -1
  5. package/dist/assets/{Autocomplete-C4_togh8.js → Autocomplete-D9hQZXKP.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-DLTqMPdx.js → Breadcrumbs-DaKfZKNR.js} +1 -1
  7. package/dist/assets/{ButtonGroup-DpVPGQtZ.js → ButtonGroup-DKjKDOWS.js} +1 -1
  8. package/dist/assets/{CheckCircle-Us9aCLov.js → CheckCircle-D24AG6dv.js} +1 -1
  9. package/dist/assets/{ChevronLeft-btzezyAD.js → ChevronLeft-Ca-Gi_H0.js} +1 -1
  10. package/dist/assets/{ChevronRight-ryUS-NtQ.js → ChevronRight-D0OlG7KY.js} +1 -1
  11. package/dist/assets/{Close-wWH8y0qM.js → Close-HMuVHWGT.js} +1 -1
  12. package/dist/assets/{Delete-MPWwMdcn.js → Delete-D1RDqaZi.js} +1 -1
  13. package/dist/assets/DeleteOutline-DI8b0xeB.js +1 -0
  14. package/dist/assets/{Done-vB-sVx5B.js → Done-4kUm4bds.js} +1 -1
  15. package/dist/assets/{Edit-DnPbFMup.js → Edit-uZUJue62.js} +1 -1
  16. package/dist/assets/{EditIcon-CWaReSCJ.js → EditIcon-BI_p9xCp.js} +1 -1
  17. package/dist/assets/{ExpandMore-gvSelbRO.js → ExpandMore-BHsYpUKK.js} +1 -1
  18. package/dist/assets/{FilterList-O5N3orby.js → FilterList-PDF9S8a9.js} +1 -1
  19. package/dist/assets/{Google-Dcc3117W.js → Google-D4D8I9sR.js} +1 -1
  20. package/dist/assets/{Https-BzkVHgKv.js → Https-B4vHJIg9.js} +1 -1
  21. package/dist/assets/{InputAdornment-BXQrh-Eh.js → InputAdornment-CWRir8bY.js} +1 -1
  22. package/dist/assets/{InputLabel-C0hP58zr.js → InputLabel-DWHNzKMy.js} +1 -1
  23. package/dist/assets/{LastPage-ChFfjNWA.js → LastPage-uzFB0_6o.js} +1 -1
  24. package/dist/assets/{Launch-CIMS_zAn.js → Launch-DBaH-8ib.js} +1 -1
  25. package/dist/assets/{Link-sIQTJwYN.js → Link-gPnxlUfS.js} +1 -1
  26. package/dist/assets/{LoadingButton-drC9HAVN.js → LoadingButton-Crpf-Gsb.js} +1 -1
  27. package/dist/assets/{LockIcon-BfgsRLZd.js → LockIcon-eAAk1Jhy.js} +1 -1
  28. package/dist/assets/{Loop-DZcA5WXX.js → Loop--S-cRtXc.js} +1 -1
  29. package/dist/assets/{MoreVert-D4QAjvea.js → MoreVert-BxyKJhuW.js} +1 -1
  30. package/dist/assets/{Pagination-PROEZlWN.js → Pagination-D7jcwNbF.js} +1 -1
  31. package/dist/assets/{Public-D2nGfl8H.js → Public-Cu2MymRa.js} +1 -1
  32. package/dist/assets/{SchemaReference.es-CUloqy0f.js → SchemaReference.es-CwMyq8ec.js} +1 -1
  33. package/dist/assets/{Search-DyPwa94B.js → Search-CsfCvyCj.js} +1 -1
  34. package/dist/assets/{Select-Cz2z_MUs.js → Select-BoNi1_kD.js} +1 -1
  35. package/dist/assets/{Skeleton-CHVKSllC.js → Skeleton-BDA1RcCc.js} +1 -1
  36. package/dist/assets/{Slider-BPK8-y0g.js → Slider-bbGbMdw9.js} +1 -1
  37. package/dist/assets/{Stepper-BdiWSQsf.js → Stepper-Cd9yxqw7.js} +1 -1
  38. package/dist/assets/{TextField-B39sPZXj.js → TextField-CJTsaR61.js} +1 -1
  39. package/dist/assets/{ToggleButtonGroup-BIXfrT7y.js → ToggleButtonGroup-DQxZKKu1.js} +1 -1
  40. package/dist/assets/{ViewList-BEq9etwt.js → ViewList-CIXYIeee.js} +1 -1
  41. package/dist/assets/{actions-DpFxNafF.js → actions-87KtVu63.js} +1 -1
  42. package/dist/assets/{actions-BxLve5Iv.js → actions-DfsSmCM0.js} +1 -1
  43. package/dist/assets/{agreement-CTjmFwVv.js → agreement-PjXumf9e.js} +1 -1
  44. package/dist/assets/api-BFKzvnZb.js +1 -0
  45. package/dist/assets/{app-avatar-DrB31ZQC.js → app-avatar-BEnx22QQ.js} +1 -1
  46. package/dist/assets/ar-D-8bmv2Q.js +1 -0
  47. package/dist/assets/{audit-logs-l4WViSqy.js → audit-logs-DACzBEqp.js} +1 -1
  48. package/dist/assets/blocklet-B2oa0l5B.js +1 -0
  49. package/dist/assets/{brace-fold.es-KtgYSaN0.js → brace-fold.es-DQgP9ckF.js} +1 -1
  50. package/dist/assets/{bundle-avatar-CHCKalk3.js → bundle-avatar-RmxwsZQa.js} +1 -1
  51. package/dist/assets/{chart-DG6Gas-e.js → chart-BFgJ4nI_.js} +1 -1
  52. package/dist/assets/{click-to-copy-nMxQLC3C.js → click-to-copy-7Me9NdFp.js} +1 -1
  53. package/dist/assets/{closebrackets.es-COhsaiJl.js → closebrackets.es-CCWX3tME.js} +1 -1
  54. package/dist/assets/{codemirror.es-n9ktfqME.js → codemirror.es-CHQ3RYjx.js} +1 -1
  55. package/dist/assets/{comment.es-C8GStSY4.js → comment.es-CsEff5HR.js} +1 -1
  56. package/dist/assets/{config-navigation-DGey71Nz.js → config-navigation-B4qdgj6W.js} +1 -1
  57. package/dist/assets/de-BXUm1QYV.js +1 -0
  58. package/dist/assets/{delete-confirm-C3JC6xgi.js → delete-confirm-D0V2Nyle.js} +1 -1
  59. package/dist/assets/{detail-DLFDHa_m.js → detail-DyxiW4dq.js} +3 -3
  60. package/dist/assets/{dialog.es-BEZA_mzs.js → dialog.es-CEFD6dNV.js} +1 -1
  61. package/dist/assets/{download-B_aZRwb6.js → download-BA9Kv4bx.js} +1 -1
  62. package/dist/assets/es-CH6tZGrR.js +1 -0
  63. package/dist/assets/{foldgutter.es-DksQExGg.js → foldgutter.es-D64jbd7B.js} +1 -1
  64. package/dist/assets/fr-roccVFT3.js +1 -0
  65. package/dist/assets/getValidReactChildren-DWgwfamf.js +1 -0
  66. package/dist/assets/hi-VN-lZj6f.js +1 -0
  67. package/dist/assets/{hint.es-SC09BvEu.js → hint.es-DgpTodKT.js} +1 -1
  68. package/dist/assets/{hint.es2-BmeoFino.js → hint.es2-DEfUunRw.js} +1 -1
  69. package/dist/assets/id-C-ovCb8b.js +1 -0
  70. package/dist/assets/{iframe-BfjEtdnl.js → iframe-DmMhkhv-.js} +1 -1
  71. package/dist/assets/{index-BnSXB6Ba.js → index-B0COILaQ.js} +1 -1
  72. package/dist/assets/{index-CI8Tta57.js → index-B1SbHyW5.js} +1 -1
  73. package/dist/assets/{index-lMNBpZHy.js → index-B4V-mN0B.js} +1 -1
  74. package/dist/assets/{index-CFTRS-GK.js → index-BEh3RskV.js} +8 -8
  75. package/dist/assets/{index-BhkEc_3_.js → index-BPuWvx42.js} +1 -1
  76. package/dist/assets/{index-BCI8WYmT.js → index-B_7moPHD.js} +1 -1
  77. package/dist/assets/{index-DegEcI_5.js → index-BbvD-ku9.js} +1 -1
  78. package/dist/assets/{index-Duj01YgO.js → index-BjzrGmqR.js} +3 -3
  79. package/dist/assets/{index-DC_rWobK.js → index-Blb65RUd.js} +1 -1
  80. package/dist/assets/{index-B4IAtVFw.js → index-BwmL6hWx.js} +5 -5
  81. package/dist/assets/{index-De-sQlFC.js → index-C0hII44F.js} +1 -1
  82. package/dist/assets/{index-MEqFmjFL.js → index-C58qacTd.js} +1 -1
  83. package/dist/assets/{index-DqgF2ZFL.js → index-CEpV9K4b.js} +1 -1
  84. package/dist/assets/{index-ChTqVvPW.js → index-CGeCJJCJ.js} +1 -1
  85. package/dist/assets/index-CLH3ksD7.js +21 -0
  86. package/dist/assets/{index-xRrM1Elc.js → index-CPi6NfEK.js} +1 -1
  87. package/dist/assets/{index-DZKqUnTF.js → index-CbPaNvvH.js} +1 -1
  88. package/dist/assets/index-Ci5TqAoT.js +54 -0
  89. package/dist/assets/{index-C8aAyTdz.js → index-Cn_FG1ax.js} +1 -1
  90. package/dist/assets/{index-mfO0z5Js.js → index-D19CmatF.js} +1 -1
  91. package/dist/assets/{index-hLOtcoN4.js → index-D1dfzI-t.js} +1 -1
  92. package/dist/assets/{index-BEbWb2qD.js → index-DFMoXqZZ.js} +1 -1
  93. package/dist/assets/index-DMD3Xl4z.js +150 -0
  94. package/dist/assets/index-DPpbsWxv.js +309 -0
  95. package/dist/assets/{index-xEXDGJLW.js → index-DSbUwcxI.js} +3 -3
  96. package/dist/assets/{index-DJBQ8Jd6.js → index-DT-Rr2m6.js} +1 -1
  97. package/dist/assets/{index-gukiKQbS.js → index-DVNcCDcO.js} +1 -1
  98. package/dist/assets/{index-CIHTH8Fr.js → index-DWRkdx6I.js} +1 -1
  99. package/dist/assets/{index-DrMB4rSY.js → index-DX24Z0Uj.js} +1 -1
  100. package/dist/assets/{index-Uu4_Hkiy.js → index-DXsxzqj2.js} +1 -1
  101. package/dist/assets/{index-ByBI4w1s.js → index-DbQJ3ais.js} +1 -1
  102. package/dist/assets/{index-DUbsQlub.js → index-DcrnW1JH.js} +1 -1
  103. package/dist/assets/{index-CDMGov97.js → index-DfJBghG7.js} +1 -1
  104. package/dist/assets/{index-C1aPMf-B.js → index-Di7Zl0N4.js} +1 -1
  105. package/dist/assets/{index-BECf3fsQ.js → index-DkQkHMJF.js} +1 -1
  106. package/dist/assets/{index-DUIY0Tgv.js → index-HaETmP78.js} +1 -1
  107. package/dist/assets/{index-CCFbrgyL.js → index-NWRjCRE6.js} +29 -29
  108. package/dist/assets/{index-Bqn9PxRk.js → index-TI2qUI_a.js} +1 -1
  109. package/dist/assets/{index-D88HZi_5.js → index-Udoz8Bem.js} +1 -1
  110. package/dist/assets/{index-D8GrnpjT.js → index-UwSS4D-y.js} +1 -1
  111. package/dist/assets/{index-Ba1UsPJJ.js → index-WxTfVFC1.js} +1 -1
  112. package/dist/assets/{index-gUAIdSaO.js → index-Z7YjOvSs.js} +1 -1
  113. package/dist/assets/{index-BDZ151O-.js → index-acmUpn3d.js} +1 -1
  114. package/dist/assets/{index-CesM9WmA.js → index-nD2D9Q59.js} +1 -1
  115. package/dist/assets/{index.es-lQJT78n5.js → index.es-5gfHT8qt.js} +1 -1
  116. package/dist/assets/{index.esm-BM1OQakW.js → index.esm-C8MTXtOS.js} +1 -1
  117. package/dist/assets/{info-addon.es-B2q6ad6s.js → info-addon.es-DHhkZvi_.js} +1 -1
  118. package/dist/assets/{info.es-BlsqGypj.js → info.es-COi7yoWs.js} +1 -1
  119. package/dist/assets/{install-from-url-DoW_puMB.js → install-from-url-BYlR-wkR.js} +1 -1
  120. package/dist/assets/{invitation-CSvGhsgx.js → invitation-DM-UGBW7.js} +1 -1
  121. package/dist/assets/{is-path-prefix-equal-PKFqxZa9.js → is-path-prefix-equal-D1r7K_TX.js} +1 -1
  122. package/dist/assets/{isEqual-CQFh5vbv.js → isEqual-DZxlxlpY.js} +1 -1
  123. package/dist/assets/{item-BvfuUzM0.js → item-DS3f9YHR.js} +1 -1
  124. package/dist/assets/{ja-BSnhR_mh.js → ja-D-sN9ij0.js} +1 -1
  125. package/dist/assets/{javascript.es-DFBDGDoQ.js → javascript.es-B32ItMWr.js} +1 -1
  126. package/dist/assets/{jump-to-line.es-CG-aqWo6.js → jump-to-line.es-lEiCWFex.js} +1 -1
  127. package/dist/assets/{jump.es-BtNS8u5X.js → jump.es-BWS9VOBG.js} +1 -1
  128. package/dist/assets/ko-DFpbqZ_Q.js +1 -0
  129. package/dist/assets/{line-BrH2vlVV.js → line-Cpq5ZDtU.js} +3 -3
  130. package/dist/assets/{lint.es-Te9r1wG3.js → lint.es-DCipYlTC.js} +1 -1
  131. package/dist/assets/{lint.es2-C6uKmnCn.js → lint.es2-BAtYSom8.js} +1 -1
  132. package/dist/assets/{lint.es3-DQ8CkpLh.js → lint.es3-B8lp_2z6.js} +1 -1
  133. package/dist/assets/{list-header-Y8_IJ-10.js → list-header-C9QJ2chY.js} +1 -1
  134. package/dist/assets/{log-CXeDf0a3.js → log-ob8D_C18.js} +1 -1
  135. package/dist/assets/{lottie-CQPB1GeH.js → lottie-B19I2Qmj.js} +1 -1
  136. package/dist/assets/{matchbrackets.es-BuQooV_h.js → matchbrackets.es-CkLjcl0k.js} +1 -1
  137. package/dist/assets/{memory-DnSScRbL.js → memory-DspFIQ47.js} +1 -1
  138. package/dist/assets/{mode.es-BlOm6b_1.js → mode.es-B2vTIzUX.js} +1 -1
  139. package/dist/assets/{mode.es2-CAFkXiHm.js → mode.es2-BPsPz5JF.js} +1 -1
  140. package/dist/assets/{mode.es3-DpuueBEx.js → mode.es3-im3XyhYm.js} +1 -1
  141. package/dist/assets/{onlineParser.es-oTwJVXeJ.js → onlineParser.es-0JyJuoFh.js} +1 -1
  142. package/dist/assets/{overview-Ss1GAs_I.js → overview-BonG5C1X.js} +1 -1
  143. package/dist/assets/pt-BXC7UTMq.js +1 -0
  144. package/dist/assets/{react-C05hypJT.js → react-BEu0IWv-.js} +3 -3
  145. package/dist/assets/{redux-DQoY5G1e.js → redux-CSH-C8dP.js} +1 -1
  146. package/dist/assets/{resource-dialog-WDlOSePr.js → resource-dialog-CVqcch9j.js} +1 -1
  147. package/dist/assets/ru-BbD1NNUC.js +1 -0
  148. package/dist/assets/{runtime-BkObO5s_.js → runtime-Dj8SiQKo.js} +1 -1
  149. package/dist/assets/{schema-BY-WXJV5.js → schema-DrNXl34E.js} +2 -2
  150. package/dist/assets/{search.es-DUBca8v_.js → search.es-qKNJ3reW.js} +1 -1
  151. package/dist/assets/{searchcursor.es-CfugRLlJ.js → searchcursor.es-BlSV3Q9p.js} +1 -1
  152. package/dist/assets/service-CXWsxRz4.js +1 -0
  153. package/dist/assets/{shorten-label-WXMi3uib.js → shorten-label-a0zPFg0c.js} +1 -1
  154. package/dist/assets/{show-hint.es-CHUAeGZ6.js → show-hint.es-T6yiomop.js} +1 -1
  155. package/dist/assets/{slicedToArray-BCow5Z5c.js → slicedToArray-DWHLdybN.js} +1 -1
  156. package/dist/assets/{spaces-CK7hpVPU.js → spaces-BOQNbM_4.js} +1 -1
  157. package/dist/assets/{sublime.es-CBfTOmDR.js → sublime.es-CHbmwFXX.js} +1 -1
  158. package/dist/assets/{switch-control-CsvNZTUW.js → switch-control-B4LYohIC.js} +1 -1
  159. package/dist/assets/{table-icons-CD22QtpD.js → table-icons-C1C8gEVy.js} +2 -2
  160. package/dist/assets/{tag-bf0aUNMx.js → tag-CyEjUF3o.js} +1 -1
  161. package/dist/assets/{team-U_gXTJbK.js → team-DZW98gSO.js} +1 -1
  162. package/dist/assets/th-VkDcmE_T.js +1 -0
  163. package/dist/assets/{toUpper-DTMCxaDz.js → toUpper-BQRMwur9.js} +1 -1
  164. package/dist/assets/{traffic-knVUcdxe.js → traffic-DEzUb3Ky.js} +1 -1
  165. package/dist/assets/{url-evaluation-Dd7vhNbh.js → url-evaluation-CXei2mde.js} +1 -1
  166. package/dist/assets/{url-join-BrsHZeRr.js → url-join-DtIkGw0l.js} +1 -1
  167. package/dist/assets/use-blocklet-info-for-connect-did-spaces-BBbwaN9I.js +1 -0
  168. package/dist/assets/{useLocalStorage-D6n51kY7.js → useLocalStorage-IvmGdRwA.js} +1 -1
  169. package/dist/assets/{useThemeProps-B8tYkkPR.js → useThemeProps-guTpp8sD.js} +1 -1
  170. package/dist/assets/{util-DihPJC70.js → util-DNkQeSwC.js} +1 -1
  171. package/dist/assets/vi-CanFbf1v.js +1 -0
  172. package/dist/assets/{wait-container-mhRmHAOS.js → wait-container-CYkix1ra.js} +1 -1
  173. package/dist/assets/{withStyles-m0FTPdbL.js → withStyles-DMG62fi3.js} +1 -1
  174. package/dist/assets/wrap-locale-RSz7z_Kh.js +1 -0
  175. package/dist/assets/{zh-XzadN7R3.js → zh-BxXo7x1m.js} +1 -1
  176. package/dist/assets/zh-tw-Bvqjz2OU.js +1 -0
  177. package/dist/index.html +1 -1
  178. package/dist/service-worker.js +1 -1
  179. package/package.json +1 -1
  180. package/dist/assets/DeleteOutline-BbeBknLi.js +0 -1
  181. package/dist/assets/DeleteOutline-qZMg8d5b.js +0 -1
  182. package/dist/assets/api-B09XbQm6.js +0 -1
  183. package/dist/assets/ar-CEz-3AyV.js +0 -1
  184. package/dist/assets/blocklet-BHnYGnZv.js +0 -1
  185. package/dist/assets/de-Di4pToxm.js +0 -1
  186. package/dist/assets/es-CPDKeKrG.js +0 -1
  187. package/dist/assets/fr-9RG8cAa6.js +0 -1
  188. package/dist/assets/getValidReactChildren-6dsXDOAM.js +0 -1
  189. package/dist/assets/hi-DJLNiG5V.js +0 -1
  190. package/dist/assets/id-TqWAFNjj.js +0 -1
  191. package/dist/assets/index-BDn9U5Ot.js +0 -21
  192. package/dist/assets/index-By3aktAK.js +0 -150
  193. package/dist/assets/index-C40iloMe.js +0 -54
  194. package/dist/assets/index-DRUswABH.js +0 -309
  195. package/dist/assets/ko-gjYVLUHm.js +0 -1
  196. package/dist/assets/pt-B-XCpQDv.js +0 -1
  197. package/dist/assets/ru-DSPtM6j0.js +0 -1
  198. package/dist/assets/service-C1VTK2ss.js +0 -1
  199. package/dist/assets/th-CxPqMbkk.js +0 -1
  200. package/dist/assets/use-blocklet-info-for-connect-did-spaces-k60EMq_9.js +0 -1
  201. package/dist/assets/vi-B8erxshV.js +0 -1
  202. package/dist/assets/wrap-locale-D-5H-sLr.js +0 -1
  203. package/dist/assets/zh-tw-BTlMDwjI.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__fileDeps=["./index-DZKqUnTF.js","./index-D9k2I5J1.js","./index-DJBQ8Jd6.js","./click-to-copy-nMxQLC3C.js","./withStyles-m0FTPdbL.js","./index-Bqn9PxRk.js","./useLocalStorage-D6n51kY7.js","./index-CesM9WmA.js","./FilterList-O5N3orby.js","./useThemeProps-B8tYkkPR.js","./Select-Cz2z_MUs.js","./Delete-MPWwMdcn.js","./InputLabel-C0hP58zr.js","./TextField-B39sPZXj.js","./LastPage-ChFfjNWA.js","./index-BEbWb2qD.js","./redux-DQoY5G1e.js","./Search-DyPwa94B.js","./index-gUAIdSaO.js","./MoreVert-D4QAjvea.js","./url-evaluation-Dd7vhNbh.js","./tag-bf0aUNMx.js","./actions-BxLve5Iv.js","./ButtonGroup-DpVPGQtZ.js","./getValidReactChildren-6dsXDOAM.js","./index-C8aAyTdz.js","./isEqual-CQFh5vbv.js","./install-from-url-DoW_puMB.js","./schema-BY-WXJV5.js","./index-DUIY0Tgv.js","./Stepper-BdiWSQsf.js","./app-avatar-DrB31ZQC.js","./Add-BEm8ulfI.js","./index-D88HZi_5.js","./ExpandMore-gvSelbRO.js","./index-DRUswABH.js","./index-DegEcI_5.js","./url-join-BrsHZeRr.js","./Skeleton-CHVKSllC.js","./Close-wWH8y0qM.js","./lottie-CQPB1GeH.js","./wait-container-mhRmHAOS.js","./Launch-CIMS_zAn.js","./DeleteOutline-qZMg8d5b.js","./DeleteOutline-BbeBknLi.js","./spaces-CK7hpVPU.js","./api-B09XbQm6.js","./index-BDn9U5Ot.js","./item-BvfuUzM0.js","./index-C1aPMf-B.js","./index-ZG7jWpak.js","./index-CDMGov97.js","./InputAdornment-BXQrh-Eh.js","./preact.module-B1z5cdvs.js","./Done-vB-sVx5B.js","./delete-confirm-C3JC6xgi.js","./shorten-label-WXMi3uib.js","./blocklet-BHnYGnZv.js","./item-CxkJY_14.css","./ArrowDropDown-3OaPoerb.js","./Breadcrumbs-DLTqMPdx.js","./index-BDZ151O-.js","./index-DrMB4rSY.js","./index.esm-BM1OQakW.js","./switch-control-CsvNZTUW.js","./is-path-prefix-equal-PKFqxZa9.js","./Link-sIQTJwYN.js","./logo-BKA11TRi.js","./LoadingButton-drC9HAVN.js","./Public-D2nGfl8H.js","./CheckCircle-Us9aCLov.js","./ChevronRight-ryUS-NtQ.js","./Edit-DnPbFMup.js","./Https-BzkVHgKv.js","./Slider-BPK8-y0g.js","./index-CI8Tta57.js","./download-B_aZRwb6.js","./download-D33dFtt_.css","./index-Uu4_Hkiy.js","./audit-logs-l4WViSqy.js","./index-CIHTH8Fr.js","./index-D4PP6P2d.css","./Pagination-PROEZlWN.js","./index-Ba1UsPJJ.js","./index-ChTqVvPW.js","./Loop-DZcA5WXX.js","./ViewList-BEq9etwt.js","./list-header-Y8_IJ-10.js","./index-BCI8WYmT.js","./resource-dialog-WDlOSePr.js","./index-BhkEc_3_.js","./team-U_gXTJbK.js","./actions-DpFxNafF.js","./index-De-sQlFC.js","./EditIcon-CWaReSCJ.js","./LockIcon-BfgsRLZd.js","./Google-Dcc3117W.js","./ToggleButtonGroup-BIXfrT7y.js","./detail-DLFDHa_m.js","./index-MEqFmjFL.js","./index-BECf3fsQ.js","./invitation-CSvGhsgx.js","./index-hLOtcoN4.js","./index-DUbsQlub.js","./wrap-locale-D-5H-sLr.js","./index-Duj01YgO.js","./index-ByBI4w1s.js","./index-By3aktAK.js","./agreement-CTjmFwVv.js","./index-D8GrnpjT.js","./index-DqgF2ZFL.js","./index-B4IAtVFw.js","./index-C7igR7se.css","./index-lMNBpZHy.js","./traffic-knVUcdxe.js","./iframe-BfjEtdnl.js","./ChevronLeft-btzezyAD.js","./chart-DG6Gas-e.js","./bundle-avatar-CHCKalk3.js","./memory-DnSScRbL.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
1
+ const __vite__fileDeps=["./index-CbPaNvvH.js","./index-D9k2I5J1.js","./index-DT-Rr2m6.js","./click-to-copy-7Me9NdFp.js","./withStyles-DMG62fi3.js","./index-TI2qUI_a.js","./useLocalStorage-IvmGdRwA.js","./index-nD2D9Q59.js","./FilterList-PDF9S8a9.js","./useThemeProps-guTpp8sD.js","./Select-BoNi1_kD.js","./Delete-D1RDqaZi.js","./InputLabel-DWHNzKMy.js","./TextField-CJTsaR61.js","./LastPage-uzFB0_6o.js","./index-DFMoXqZZ.js","./redux-CSH-C8dP.js","./Search-CsfCvyCj.js","./index-Z7YjOvSs.js","./MoreVert-BxyKJhuW.js","./url-evaluation-CXei2mde.js","./tag-CyEjUF3o.js","./actions-DfsSmCM0.js","./ButtonGroup-DKjKDOWS.js","./getValidReactChildren-DWgwfamf.js","./index-Cn_FG1ax.js","./isEqual-DZxlxlpY.js","./install-from-url-BYlR-wkR.js","./schema-DrNXl34E.js","./index-HaETmP78.js","./Stepper-Cd9yxqw7.js","./app-avatar-BEnx22QQ.js","./Add-B__xT4sB.js","./index-Udoz8Bem.js","./ExpandMore-BHsYpUKK.js","./index-DPpbsWxv.js","./index-BbvD-ku9.js","./url-join-DtIkGw0l.js","./Skeleton-BDA1RcCc.js","./Close-HMuVHWGT.js","./lottie-B19I2Qmj.js","./wait-container-CYkix1ra.js","./Launch-DBaH-8ib.js","./DeleteOutline-DI8b0xeB.js","./spaces-BOQNbM_4.js","./api-BFKzvnZb.js","./index-CLH3ksD7.js","./item-DS3f9YHR.js","./index-Di7Zl0N4.js","./index-ZG7jWpak.js","./index-DfJBghG7.js","./InputAdornment-CWRir8bY.js","./preact.module-B1z5cdvs.js","./Done-4kUm4bds.js","./delete-confirm-D0V2Nyle.js","./shorten-label-a0zPFg0c.js","./blocklet-B2oa0l5B.js","./item-CxkJY_14.css","./ArrowDropDown-VLne7ccc.js","./Breadcrumbs-DaKfZKNR.js","./index-acmUpn3d.js","./index-DX24Z0Uj.js","./index.esm-C8MTXtOS.js","./switch-control-B4LYohIC.js","./is-path-prefix-equal-D1r7K_TX.js","./Link-gPnxlUfS.js","./logo-BKA11TRi.js","./LoadingButton-Crpf-Gsb.js","./Public-Cu2MymRa.js","./CheckCircle-D24AG6dv.js","./ChevronRight-D0OlG7KY.js","./Edit-uZUJue62.js","./Https-B4vHJIg9.js","./Slider-bbGbMdw9.js","./index-B1SbHyW5.js","./download-BA9Kv4bx.js","./download-D33dFtt_.css","./index-DXsxzqj2.js","./audit-logs-DACzBEqp.js","./index-DWRkdx6I.js","./index-D4PP6P2d.css","./Pagination-D7jcwNbF.js","./index-WxTfVFC1.js","./index-CGeCJJCJ.js","./Loop--S-cRtXc.js","./ViewList-CIXYIeee.js","./list-header-C9QJ2chY.js","./index-B_7moPHD.js","./resource-dialog-CVqcch9j.js","./index-BPuWvx42.js","./team-DZW98gSO.js","./actions-87KtVu63.js","./index-C0hII44F.js","./EditIcon-BI_p9xCp.js","./LockIcon-eAAk1Jhy.js","./Google-D4D8I9sR.js","./ToggleButtonGroup-DQxZKKu1.js","./detail-DyxiW4dq.js","./index-C58qacTd.js","./index-DkQkHMJF.js","./invitation-DM-UGBW7.js","./index-D1dfzI-t.js","./index-DcrnW1JH.js","./wrap-locale-RSz7z_Kh.js","./index-BjzrGmqR.js","./index-DbQJ3ais.js","./index-DMD3Xl4z.js","./agreement-PjXumf9e.js","./index-UwSS4D-y.js","./index-CEpV9K4b.js","./index-BwmL6hWx.js","./index-C7igR7se.css","./index-B4V-mN0B.js","./traffic-DEzUb3Ky.js","./iframe-DmMhkhv-.js","./ChevronLeft-Ca-Gi_H0.js","./chart-BFgJ4nI_.js","./bundle-avatar-RmxwsZQa.js","./memory-DspFIQ47.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
2
  var XT=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var mn=(e,t,n)=>(XT(e,t,"read from private field"),n?n.call(e):t.get(e)),co=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Gi=(e,t,n,r)=>(XT(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var QT=(e,t,n,r)=>({set _(i){Gi(e,t,i,n)},get _(){return mn(e,t,r)}}),Nr=(e,t,n)=>(XT(e,t,"access private method"),n);function fG(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Oi(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var dG={exports:{}},P4={},pG={exports:{}},Wn={};/**
3
3
  * @license React
4
4
  * react.production.min.js
@@ -195,7 +195,7 @@ Error generating stack: `+o.message+`
195
195
  animation-iteration-count: infinite;
196
196
  animation-delay: 200ms;
197
197
  }
198
- `),Fa.rippleVisible,mAe,R_,({theme:e})=>e.transitions.easing.easeInOut,Fa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Fa.child,Fa.childLeaving,gAe,R_,({theme:e})=>e.transitions.easing.easeInOut,Fa.childPulsate,yAe,({theme:e})=>e.transitions.easing.easeInOut),wAe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Bt(r,pAe),[l,c]=U.useState([]),u=U.useRef(0),d=U.useRef(null);U.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=U.useRef(!1),g=ic(),y=U.useRef(null),b=U.useRef(null),A=U.useCallback(M=>{const{pulsate:q,rippleX:B,rippleY:j,rippleSize:K,cb:oe}=M;c(ue=>[...ue,I.jsx(bAe,{classes:{ripple:Pt(o.ripple,Fa.ripple),rippleVisible:Pt(o.rippleVisible,Fa.rippleVisible),ripplePulsate:Pt(o.ripplePulsate,Fa.ripplePulsate),child:Pt(o.child,Fa.child),childLeaving:Pt(o.childLeaving,Fa.childLeaving),childPulsate:Pt(o.childPulsate,Fa.childPulsate)},timeout:R_,pulsate:q,rippleX:B,rippleY:j,rippleSize:K},u.current)]),u.current+=1,d.current=oe},[o]),x=U.useCallback((M={},q={},B=()=>{})=>{const{pulsate:j=!1,center:K=i||q.pulsate,fakeElement:oe=!1}=q;if((M==null?void 0:M.type)==="mousedown"&&p.current){p.current=!1;return}(M==null?void 0:M.type)==="touchstart"&&(p.current=!0);const ue=oe?null:b.current,G=ue?ue.getBoundingClientRect():{width:0,height:0,left:0,top:0};let P,T,f;if(K||M===void 0||M.clientX===0&&M.clientY===0||!M.clientX&&!M.touches)P=Math.round(G.width/2),T=Math.round(G.height/2);else{const{clientX:h,clientY:w}=M.touches&&M.touches.length>0?M.touches[0]:M;P=Math.round(h-G.left),T=Math.round(w-G.top)}if(K)f=Math.sqrt((2*G.width**2+G.height**2)/3),f%2===0&&(f+=1);else{const h=Math.max(Math.abs((ue?ue.clientWidth:0)-P),P)*2+2,w=Math.max(Math.abs((ue?ue.clientHeight:0)-T),T)*2+2;f=Math.sqrt(h**2+w**2)}M!=null&&M.touches?y.current===null&&(y.current=()=>{A({pulsate:j,rippleX:P,rippleY:T,rippleSize:f,cb:B})},g.start(hAe,()=>{y.current&&(y.current(),y.current=null)})):A({pulsate:j,rippleX:P,rippleY:T,rippleSize:f,cb:B})},[i,A,g]),D=U.useCallback(()=>{x({},{pulsate:!0})},[x]),O=U.useCallback((M,q)=>{if(g.clear(),(M==null?void 0:M.type)==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{O(M,q)});return}y.current=null,c(B=>B.length>0?B.slice(1):B),d.current=q},[g]);return U.useImperativeHandle(n,()=>({pulsate:D,start:x,stop:O}),[D,x,O]),I.jsx(vAe,ye({className:Pt(Fa.root,o.root,a),ref:b},s,{children:I.jsx(KCe,{component:null,exit:!0,children:l})}))}),TAe=wAe;function xAe(e){return an("MuiButtonBase",e)}const SAe=ln("MuiButtonBase",["root","disabled","focusVisible"]),CAe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],AAe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=un({root:["root",t&&"disabled",n&&"focusVisible"]},xAe,i);return n&&r&&(a.root+=` ${r}`),a},_Ae=kt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${SAe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),EAe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:y,onClick:b,onContextMenu:A,onDragLeave:x,onFocus:D,onFocusVisible:O,onKeyDown:M,onKeyUp:q,onMouseDown:B,onMouseLeave:j,onMouseUp:K,onTouchEnd:oe,onTouchMove:ue,onTouchStart:G,tabIndex:P=0,TouchRippleProps:T,touchRippleRef:f,type:h}=r,w=Bt(r,CAe),_=U.useRef(null),R=U.useRef(null),k=jr(R,f),{isFocusVisibleRef:C,onFocus:E,onBlur:v,ref:L}=Fw(),[ne,F]=U.useState(!1);c&&ne&&F(!1),U.useImperativeHandle(i,()=>({focusVisible:()=>{F(!0),_.current.focus()}}),[]);const[J,se]=U.useState(!1);U.useEffect(()=>{se(!0)},[]);const pe=J&&!u&&!c;U.useEffect(()=>{ne&&p&&!u&&J&&R.current.pulsate()},[u,p,ne,J]);function be(ke,re,V=d){return Ha(W=>(re&&re(W),!V&&R.current&&R.current[ke](W),!0))}const Ee=be("start",B),H=be("stop",A),$=be("stop",x),Z=be("stop",K),Y=be("stop",ke=>{ne&&ke.preventDefault(),j&&j(ke)}),ie=be("start",G),Te=be("stop",oe),me=be("stop",ue),le=be("stop",ke=>{v(ke),C.current===!1&&F(!1),y&&y(ke)},!1),ve=Ha(ke=>{_.current||(_.current=ke.currentTarget),E(ke),C.current===!0&&(F(!0),O&&O(ke)),D&&D(ke)}),Ae=()=>{const ke=_.current;return l&&l!=="button"&&!(ke.tagName==="A"&&ke.href)},xe=U.useRef(!1),He=Ha(ke=>{p&&!xe.current&&ne&&R.current&&ke.key===" "&&(xe.current=!0,R.current.stop(ke,()=>{R.current.start(ke)})),ke.target===ke.currentTarget&&Ae()&&ke.key===" "&&ke.preventDefault(),M&&M(ke),ke.target===ke.currentTarget&&Ae()&&ke.key==="Enter"&&!c&&(ke.preventDefault(),b&&b(ke))}),Ye=Ha(ke=>{p&&ke.key===" "&&R.current&&ne&&!ke.defaultPrevented&&(xe.current=!1,R.current.stop(ke,()=>{R.current.pulsate(ke)})),q&&q(ke),b&&ke.target===ke.currentTarget&&Ae()&&ke.key===" "&&!ke.defaultPrevented&&b(ke)});let ge=l;ge==="button"&&(w.href||w.to)&&(ge=g);const Pe={};ge==="button"?(Pe.type=h===void 0?"button":h,Pe.disabled=c):(!w.href&&!w.to&&(Pe.role="button"),c&&(Pe["aria-disabled"]=c));const te=jr(n,L,_),we=ye({},r,{centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:P,focusVisible:ne}),Be=AAe(we);return I.jsxs(_Ae,ye({as:ge,className:Pt(Be.root,s),ownerState:we,onBlur:le,onClick:b,onContextMenu:H,onFocus:ve,onKeyDown:He,onKeyUp:Ye,onMouseDown:Ee,onMouseLeave:Y,onMouseUp:Z,onDragLeave:$,onTouchEnd:Te,onTouchMove:me,onTouchStart:ie,ref:te,tabIndex:c?-1:P,type:h},Pe,w,{children:[a,pe?I.jsx(TAe,ye({ref:k,center:o},T)):null]}))}),_c=EAe;function RAe(e){return an("MuiAlert",e)}const kAe=ln("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),K$=kAe;function DAe(e){return an("MuiIconButton",e)}const LAe=ln("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),OAe=["edge","children","className","color","disabled","disableFocusRipple","size"],IAe=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${pt(r)}`,i&&`edge${pt(i)}`,`size${pt(o)}`]};return un(a,DAe,t)},PAe=kt(_c,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${pt(n.color)}`],n.edge&&t[`edge${pt(n.edge)}`],t[`size${pt(n.size)}`]]}})(({theme:e,ownerState:t})=>ye({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return ye({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&ye({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":ye({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${LAe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),MAe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,d=Bt(r,OAe),p=ye({},r,{edge:i,color:s,disabled:l,disableFocusRipple:c,size:u}),g=IAe(p);return I.jsx(PAe,ye({className:Pt(g.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},d,{ownerState:p,children:o}))}),ao=MAe,BAe=oo(I.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),NAe=oo(I.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),$Ae=oo(I.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),FAe=oo(I.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),UAe=oo(I.jsx("path",{d:"M19 6.41L17.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"),jAe=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],VAe=e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${pt(n||r)}`,`${t}${pt(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return un(o,RAe,i)},qAe=kt(cs,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${pt(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?_3:E3,n=e.palette.mode==="light"?E3:_3;return ye({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${K$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${K$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:ye({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),zAe=kt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),HAe=kt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),J$=kt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Y$={success:I.jsx(BAe,{fontSize:"inherit"}),warning:I.jsx(NAe,{fontSize:"inherit"}),error:I.jsx($Ae,{fontSize:"inherit"}),info:I.jsx(FAe,{fontSize:"inherit"})},WAe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiAlert"}),{action:i,children:o,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:p=Y$,onClose:g,role:y="alert",severity:b="success",slotProps:A={},slots:x={},variant:D="standard"}=r,O=Bt(r,jAe),M=ye({},r,{color:l,severity:b,variant:D,colorSeverity:l||b}),q=VAe(M),B={slots:ye({closeButton:c.CloseButton,closeIcon:c.CloseIcon},x),slotProps:ye({},u,A)},[j,K]=E_("closeButton",{elementType:ao,externalForwardedProps:B,ownerState:M}),[oe,ue]=E_("closeIcon",{elementType:UAe,externalForwardedProps:B,ownerState:M});return I.jsxs(qAe,ye({role:y,elevation:0,ownerState:M,className:Pt(q.root,a),ref:n},O,{children:[d!==!1?I.jsx(zAe,{ownerState:M,className:q.icon,children:d||p[b]||Y$[b]}):null,I.jsx(HAe,{ownerState:M,className:q.message,children:o}),i!=null?I.jsx(J$,{ownerState:M,className:q.action,children:i}):null,i==null&&g?I.jsx(J$,{ownerState:M,className:q.action,children:I.jsx(j,ye({size:"small","aria-label":s,title:s,color:"inherit",onClick:g},K,{children:I.jsx(oe,ye({fontSize:"small"},ue))}))}):null]}))}),e6=WAe;function GAe(e){return an("MuiTypography",e)}const KAe=ln("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),UAt=KAe,JAe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],YAe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${pt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return un(s,GAe,a)},ZAe=kt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${pt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>ye({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Z$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},XAe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},QAe=e=>XAe[e]||e,e_e=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiTypography"}),i=QAe(r.color),o=jg(ye({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:p="body1",variantMapping:g=Z$}=o,y=Bt(o,JAe),b=ye({},o,{align:a,color:i,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:p,variantMapping:g}),A=l||(d?"p":g[p]||Z$[p])||"span",x=YAe(b);return I.jsx(ZAe,ye({as:A,ref:n,ownerState:b,className:Pt(x.root,s)},y))}),tn=e_e;function t_e(e){return an("MuiAlertTitle",e)}ln("MuiAlertTitle",["root"]);const n_e=["className"],r_e=e=>{const{classes:t}=e;return un({root:["root"]},t_e,t)},i_e=kt(tn,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),o_e=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiAlertTitle"}),{className:i}=r,o=Bt(r,n_e),a=r,s=r_e(a);return I.jsx(i_e,ye({gutterBottom:!0,component:"div",ownerState:a,ref:n,className:Pt(s.root,i)},o))}),a_e=o_e;function s_e(e){return an("MuiAppBar",e)}ln("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const l_e=["className","color","enableColorOnDark","position"],u_e=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${pt(t)}`,`position${pt(n)}`]};return un(i,s_e,r)},Hv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,c_e=kt(cs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${pt(n.position)}`],t[`color${pt(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return ye({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&ye({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&ye({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&ye({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Hv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Hv(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Hv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Hv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),f_e=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=Bt(r,l_e),c=ye({},r,{color:o,position:s,enableColorOnDark:a}),u=u_e(c);return I.jsx(c_e,ye({square:!0,component:"header",ownerState:c,elevation:4,className:Pt(u.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),d_e=f_e;var Uk={};Object.defineProperty(Uk,"__esModule",{value:!0});var OX=Uk.default=void 0,p_e=m_e(U),h_e=OZ;function IX(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(IX=function(r){return r?n:t})(e)}function m_e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=IX(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function g_e(e){return Object.keys(e).length===0}function y_e(e=null){const t=p_e.useContext(h_e.ThemeContext);return!t||g_e(t)?e:t}OX=Uk.default=y_e;var Io="top",is="bottom",os="right",Po="left",jk="auto",Zg=[Io,is,os,Po],bh="start",eg="end",v_e="clippingParents",PX="viewport",cm="popper",b_e="reference",X$=Zg.reduce(function(e,t){return e.concat([t+"-"+bh,t+"-"+eg])},[]),MX=[].concat(Zg,[jk]).reduce(function(e,t){return e.concat([t,t+"-"+bh,t+"-"+eg])},[]),w_e="beforeRead",T_e="read",x_e="afterRead",S_e="beforeMain",C_e="main",A_e="afterMain",__e="beforeWrite",E_e="write",R_e="afterWrite",k_e=[w_e,T_e,x_e,S_e,C_e,A_e,__e,E_e,R_e];function Tl(e){return e?(e.nodeName||"").toLowerCase():null}function fa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zf(e){var t=fa(e).Element;return e instanceof t||e instanceof Element}function Ka(e){var t=fa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Vk(e){if(typeof ShadowRoot>"u")return!1;var t=fa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function D_e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ka(o)||!Tl(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function L_e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Ka(i)||!Tl(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const O_e={name:"applyStyles",enabled:!0,phase:"write",fn:D_e,effect:L_e,requires:["computeStyles"]};function ml(e){return e.split("-")[0]}var Pf=Math.max,M3=Math.min,wh=Math.round;function k_(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function BX(){return!/^((?!chrome|android).)*safari/i.test(k_())}function Th(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ka(e)&&(i=e.offsetWidth>0&&wh(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&wh(r.height)/e.offsetHeight||1);var a=Zf(e)?fa(e):window,s=a.visualViewport,l=!BX()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function qk(e){var t=Th(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function NX(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Vk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function du(e){return fa(e).getComputedStyle(e)}function I_e(e){return["table","td","th"].indexOf(Tl(e))>=0}function Fc(e){return((Zf(e)?e.ownerDocument:e.document)||window.document).documentElement}function t6(e){return Tl(e)==="html"?e:e.assignedSlot||e.parentNode||(Vk(e)?e.host:null)||Fc(e)}function Q$(e){return!Ka(e)||du(e).position==="fixed"?null:e.offsetParent}function P_e(e){var t=/firefox/i.test(k_()),n=/Trident/i.test(k_());if(n&&Ka(e)){var r=du(e);if(r.position==="fixed")return null}var i=t6(e);for(Vk(i)&&(i=i.host);Ka(i)&&["html","body"].indexOf(Tl(i))<0;){var o=du(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Xg(e){for(var t=fa(e),n=Q$(e);n&&I_e(n)&&du(n).position==="static";)n=Q$(n);return n&&(Tl(n)==="html"||Tl(n)==="body"&&du(n).position==="static")?t:n||P_e(e)||t}function zk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function c1(e,t,n){return Pf(e,M3(t,n))}function M_e(e,t,n){var r=c1(e,t,n);return r>n?n:r}function $X(){return{top:0,right:0,bottom:0,left:0}}function FX(e){return Object.assign({},$X(),e)}function UX(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var B_e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,FX(typeof t!="number"?t:UX(t,Zg))};function N_e(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ml(n.placement),l=zk(s),c=[Po,os].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=B_e(i.padding,n),p=qk(o),g=l==="y"?Io:Po,y=l==="y"?is:os,b=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],A=a[l]-n.rects.reference[l],x=Xg(o),D=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,O=b/2-A/2,M=d[g],q=D-p[u]-d[y],B=D/2-p[u]/2+O,j=c1(M,B,q),K=l;n.modifiersData[r]=(t={},t[K]=j,t.centerOffset=j-B,t)}}function $_e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||NX(t.elements.popper,i)&&(t.elements.arrow=i))}const F_e={name:"arrow",enabled:!0,phase:"main",fn:N_e,effect:$_e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xh(e){return e.split("-")[1]}var U_e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function j_e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:wh(n*i)/i||0,y:wh(r*i)/i||0}}function eF(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,g=p===void 0?0:p,y=a.y,b=y===void 0?0:y,A=typeof u=="function"?u({x:g,y:b}):{x:g,y:b};g=A.x,b=A.y;var x=a.hasOwnProperty("x"),D=a.hasOwnProperty("y"),O=Po,M=Io,q=window;if(c){var B=Xg(n),j="clientHeight",K="clientWidth";if(B===fa(n)&&(B=Fc(n),du(B).position!=="static"&&s==="absolute"&&(j="scrollHeight",K="scrollWidth")),B=B,i===Io||(i===Po||i===os)&&o===eg){M=is;var oe=d&&B===q&&q.visualViewport?q.visualViewport.height:B[j];b-=oe-r.height,b*=l?1:-1}if(i===Po||(i===Io||i===is)&&o===eg){O=os;var ue=d&&B===q&&q.visualViewport?q.visualViewport.width:B[K];g-=ue-r.width,g*=l?1:-1}}var G=Object.assign({position:s},c&&U_e),P=u===!0?j_e({x:g,y:b},fa(n)):{x:g,y:b};if(g=P.x,b=P.y,l){var T;return Object.assign({},G,(T={},T[M]=D?"0":"",T[O]=x?"0":"",T.transform=(q.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",T))}return Object.assign({},G,(t={},t[M]=D?b+"px":"",t[O]=x?g+"px":"",t.transform="",t))}function V_e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:ml(t.placement),variation:xh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,eF(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,eF(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const q_e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:V_e,data:{}};var Wv={passive:!0};function z_e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=fa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Wv)}),s&&l.addEventListener("resize",n.update,Wv),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Wv)}),s&&l.removeEventListener("resize",n.update,Wv)}}const H_e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:z_e,data:{}};var W_e={left:"right",right:"left",bottom:"top",top:"bottom"};function hb(e){return e.replace(/left|right|bottom|top/g,function(t){return W_e[t]})}var G_e={start:"end",end:"start"};function tF(e){return e.replace(/start|end/g,function(t){return G_e[t]})}function Hk(e){var t=fa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Wk(e){return Th(Fc(e)).left+Hk(e).scrollLeft}function K_e(e,t){var n=fa(e),r=Fc(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=BX();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Wk(e),y:l}}function J_e(e){var t,n=Fc(e),r=Hk(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Pf(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Pf(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Wk(e),l=-r.scrollTop;return du(i||n).direction==="rtl"&&(s+=Pf(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Gk(e){var t=du(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function jX(e){return["html","body","#document"].indexOf(Tl(e))>=0?e.ownerDocument.body:Ka(e)&&Gk(e)?e:jX(t6(e))}function f1(e,t){var n;t===void 0&&(t=[]);var r=jX(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=fa(r),a=i?[o].concat(o.visualViewport||[],Gk(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(f1(t6(a)))}function D_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Y_e(e,t){var n=Th(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function nF(e,t,n){return t===PX?D_(K_e(e,n)):Zf(t)?Y_e(t,n):D_(J_e(Fc(e)))}function Z_e(e){var t=f1(t6(e)),n=["absolute","fixed"].indexOf(du(e).position)>=0,r=n&&Ka(e)?Xg(e):e;return Zf(r)?t.filter(function(i){return Zf(i)&&NX(i,r)&&Tl(i)!=="body"}):[]}function X_e(e,t,n,r){var i=t==="clippingParents"?Z_e(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=nF(e,c,r);return l.top=Pf(u.top,l.top),l.right=M3(u.right,l.right),l.bottom=M3(u.bottom,l.bottom),l.left=Pf(u.left,l.left),l},nF(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function VX(e){var t=e.reference,n=e.element,r=e.placement,i=r?ml(r):null,o=r?xh(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Io:l={x:a,y:t.y-n.height};break;case is:l={x:a,y:t.y+t.height};break;case os:l={x:t.x+t.width,y:s};break;case Po:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?zk(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case bh:l[c]=l[c]-(t[u]/2-n[u]/2);break;case eg:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function tg(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?v_e:s,c=n.rootBoundary,u=c===void 0?PX:c,d=n.elementContext,p=d===void 0?cm:d,g=n.altBoundary,y=g===void 0?!1:g,b=n.padding,A=b===void 0?0:b,x=FX(typeof A!="number"?A:UX(A,Zg)),D=p===cm?b_e:cm,O=e.rects.popper,M=e.elements[y?D:p],q=X_e(Zf(M)?M:M.contextElement||Fc(e.elements.popper),l,u,a),B=Th(e.elements.reference),j=VX({reference:B,element:O,strategy:"absolute",placement:i}),K=D_(Object.assign({},O,j)),oe=p===cm?K:B,ue={top:q.top-oe.top+x.top,bottom:oe.bottom-q.bottom+x.bottom,left:q.left-oe.left+x.left,right:oe.right-q.right+x.right},G=e.modifiersData.offset;if(p===cm&&G){var P=G[i];Object.keys(ue).forEach(function(T){var f=[os,is].indexOf(T)>=0?1:-1,h=[Io,is].indexOf(T)>=0?"y":"x";ue[T]+=P[h]*f})}return ue}function Q_e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?MX:l,u=xh(r),d=u?s?X$:X$.filter(function(y){return xh(y)===u}):Zg,p=d.filter(function(y){return c.indexOf(y)>=0});p.length===0&&(p=d);var g=p.reduce(function(y,b){return y[b]=tg(e,{placement:b,boundary:i,rootBoundary:o,padding:a})[ml(b)],y},{});return Object.keys(g).sort(function(y,b){return g[y]-g[b]})}function eEe(e){if(ml(e)===jk)return[];var t=hb(e);return[tF(e),t,tF(t)]}function tEe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,b=n.allowedAutoPlacements,A=t.options.placement,x=ml(A),D=x===A,O=l||(D||!y?[hb(A)]:eEe(A)),M=[A].concat(O).reduce(function(ne,F){return ne.concat(ml(F)===jk?Q_e(t,{placement:F,boundary:u,rootBoundary:d,padding:c,flipVariations:y,allowedAutoPlacements:b}):F)},[]),q=t.rects.reference,B=t.rects.popper,j=new Map,K=!0,oe=M[0],ue=0;ue<M.length;ue++){var G=M[ue],P=ml(G),T=xh(G)===bh,f=[Io,is].indexOf(P)>=0,h=f?"width":"height",w=tg(t,{placement:G,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),_=f?T?os:Po:T?is:Io;q[h]>B[h]&&(_=hb(_));var R=hb(_),k=[];if(o&&k.push(w[P]<=0),s&&k.push(w[_]<=0,w[R]<=0),k.every(function(ne){return ne})){oe=G,K=!1;break}j.set(G,k)}if(K)for(var C=y?3:1,E=function(F){var J=M.find(function(se){var pe=j.get(se);if(pe)return pe.slice(0,F).every(function(be){return be})});if(J)return oe=J,"break"},v=C;v>0;v--){var L=E(v);if(L==="break")break}t.placement!==oe&&(t.modifiersData[r]._skip=!0,t.placement=oe,t.reset=!0)}}const nEe={name:"flip",enabled:!0,phase:"main",fn:tEe,requiresIfExists:["offset"],data:{_skip:!1}};function rF(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function iF(e){return[Io,os,is,Po].some(function(t){return e[t]>=0})}function rEe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=tg(t,{elementContext:"reference"}),s=tg(t,{altBoundary:!0}),l=rF(a,r),c=rF(s,i,o),u=iF(l),d=iF(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const iEe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rEe};function oEe(e,t,n){var r=ml(e),i=[Po,Io].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Po,os].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function aEe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=MX.reduce(function(u,d){return u[d]=oEe(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const sEe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aEe};function lEe(e){var t=e.state,n=e.name;t.modifiersData[n]=VX({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const uEe={name:"popperOffsets",enabled:!0,phase:"read",fn:lEe,data:{}};function cEe(e){return e==="x"?"y":"x"}function fEe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,g=p===void 0?!0:p,y=n.tetherOffset,b=y===void 0?0:y,A=tg(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=ml(t.placement),D=xh(t.placement),O=!D,M=zk(x),q=cEe(M),B=t.modifiersData.popperOffsets,j=t.rects.reference,K=t.rects.popper,oe=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,ue=typeof oe=="number"?{mainAxis:oe,altAxis:oe}:Object.assign({mainAxis:0,altAxis:0},oe),G=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(B){if(o){var T,f=M==="y"?Io:Po,h=M==="y"?is:os,w=M==="y"?"height":"width",_=B[M],R=_+A[f],k=_-A[h],C=g?-K[w]/2:0,E=D===bh?j[w]:K[w],v=D===bh?-K[w]:-j[w],L=t.elements.arrow,ne=g&&L?qk(L):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$X(),J=F[f],se=F[h],pe=c1(0,j[w],ne[w]),be=O?j[w]/2-C-pe-J-ue.mainAxis:E-pe-J-ue.mainAxis,Ee=O?-j[w]/2+C+pe+se+ue.mainAxis:v+pe+se+ue.mainAxis,H=t.elements.arrow&&Xg(t.elements.arrow),$=H?M==="y"?H.clientTop||0:H.clientLeft||0:0,Z=(T=G==null?void 0:G[M])!=null?T:0,Y=_+be-Z-$,ie=_+Ee-Z,Te=c1(g?M3(R,Y):R,_,g?Pf(k,ie):k);B[M]=Te,P[M]=Te-_}if(s){var me,le=M==="x"?Io:Po,ve=M==="x"?is:os,Ae=B[q],xe=q==="y"?"height":"width",He=Ae+A[le],Ye=Ae-A[ve],ge=[Io,Po].indexOf(x)!==-1,Pe=(me=G==null?void 0:G[q])!=null?me:0,te=ge?He:Ae-j[xe]-K[xe]-Pe+ue.altAxis,we=ge?Ae+j[xe]+K[xe]-Pe-ue.altAxis:Ye,Be=g&&ge?M_e(te,Ae,we):c1(g?te:He,Ae,g?we:Ye);B[q]=Be,P[q]=Be-Ae}t.modifiersData[r]=P}}const dEe={name:"preventOverflow",enabled:!0,phase:"main",fn:fEe,requiresIfExists:["offset"]};function pEe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function hEe(e){return e===fa(e)||!Ka(e)?Hk(e):pEe(e)}function mEe(e){var t=e.getBoundingClientRect(),n=wh(t.width)/e.offsetWidth||1,r=wh(t.height)/e.offsetHeight||1;return n!==1||r!==1}function gEe(e,t,n){n===void 0&&(n=!1);var r=Ka(t),i=Ka(t)&&mEe(t),o=Fc(t),a=Th(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Tl(t)!=="body"||Gk(o))&&(s=hEe(t)),Ka(t)?(l=Th(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Wk(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function yEe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function vEe(e){var t=yEe(e);return k_e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function bEe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function wEe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var oF={placement:"bottom",modifiers:[],strategy:"absolute"};function aF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function TEe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?oF:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},oF,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,g={state:u,setOptions:function(x){var D=typeof x=="function"?x(u.options):x;b(),u.options=Object.assign({},o,u.options,D),u.scrollParents={reference:Zf(s)?f1(s):s.contextElement?f1(s.contextElement):[],popper:f1(l)};var O=vEe(wEe([].concat(r,u.options.modifiers)));return u.orderedModifiers=O.filter(function(M){return M.enabled}),y(),g.update()},forceUpdate:function(){if(!p){var x=u.elements,D=x.reference,O=x.popper;if(aF(D,O)){u.rects={reference:gEe(D,Xg(O),u.options.strategy==="fixed"),popper:qk(O)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(ue){return u.modifiersData[ue.name]=Object.assign({},ue.data)});for(var M=0;M<u.orderedModifiers.length;M++){if(u.reset===!0){u.reset=!1,M=-1;continue}var q=u.orderedModifiers[M],B=q.fn,j=q.options,K=j===void 0?{}:j,oe=q.name;typeof B=="function"&&(u=B({state:u,options:K,name:oe,instance:g})||u)}}}},update:bEe(function(){return new Promise(function(A){g.forceUpdate(),A(u)})}),destroy:function(){b(),p=!0}};if(!aF(s,l))return g;g.setOptions(c).then(function(A){!p&&c.onFirstUpdate&&c.onFirstUpdate(A)});function y(){u.orderedModifiers.forEach(function(A){var x=A.name,D=A.options,O=D===void 0?{}:D,M=A.effect;if(typeof M=="function"){var q=M({state:u,name:x,instance:g,options:O}),B=function(){};d.push(q||B)}})}function b(){d.forEach(function(A){return A()}),d=[]}return g}}var xEe=[H_e,uEe,q_e,O_e,sEe,nEe,dEe,F_e,iEe],SEe=TEe({defaultModifiers:xEe});function CEe(e){return typeof e=="function"?e():e}const AEe=U.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=U.useState(null),l=jr(U.isValidElement(r)?r.ref:null,n);if(ns(()=>{o||s(CEe(i)||document.body)},[i,o]),ns(()=>{if(a&&!o)return S3(n,a),()=>{S3(n,null)}},[n,a,o]),o){if(U.isValidElement(r)){const c={ref:l};return U.cloneElement(r,c)}return I.jsx(U.Fragment,{children:r})}return I.jsx(U.Fragment,{children:a&&Vh.createPortal(r,a)})}),qX=AEe;function _Ee(e){return an("MuiPopper",e)}ln("MuiPopper",["root"]);const EEe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],REe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function kEe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function L_(e){return typeof e=="function"?e():e}function DEe(e){return e.nodeType!==void 0}const LEe=e=>{const{classes:t}=e;return un({root:["root"]},_Ee,t)},OEe={},IEe=U.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:g={},slots:y={},TransitionProps:b}=t,A=Bt(t,EEe),x=U.useRef(null),D=jr(x,n),O=U.useRef(null),M=jr(O,p),q=U.useRef(M);ns(()=>{q.current=M},[M]),U.useImperativeHandle(p,()=>O.current,[]);const B=kEe(u,a),[j,K]=U.useState(B),[oe,ue]=U.useState(L_(i));U.useEffect(()=>{O.current&&O.current.forceUpdate()}),U.useEffect(()=>{i&&ue(L_(i))},[i]),ns(()=>{if(!oe||!c)return;const h=R=>{K(R.placement)};let w=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:R})=>{h(R)}}];l!=null&&(w=w.concat(l)),d&&d.modifiers!=null&&(w=w.concat(d.modifiers));const _=SEe(oe,x.current,ye({placement:B},d,{modifiers:w}));return q.current(_),()=>{_.destroy(),q.current(null)}},[oe,s,l,c,d,B]);const G={placement:j};b!==null&&(G.TransitionProps=b);const P=LEe(t),T=(r=y.root)!=null?r:"div",f=wl({elementType:T,externalSlotProps:g.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:D},ownerState:t,className:P.root});return I.jsx(T,ye({},f,{children:typeof o=="function"?o(G):o}))}),PEe=U.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=OEe,popperRef:g,style:y,transition:b=!1,slotProps:A={},slots:x={}}=t,D=Bt(t,REe),[O,M]=U.useState(!0),q=()=>{M(!1)},B=()=>{M(!0)};if(!l&&!u&&(!b||O))return null;let j;if(o)j=o;else if(r){const ue=L_(r);j=ue&&DEe(ue)?Ri(ue).body:Ri(null).body}const K=!u&&l&&(!b||O)?"none":void 0,oe=b?{in:u,onEnter:q,onExited:B}:void 0;return I.jsx(qX,{disablePortal:s,container:j,children:I.jsx(IEe,ye({anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:b?!O:u,placement:d,popperOptions:p,popperRef:g,slotProps:A,slots:x},D,{style:ye({position:"fixed",top:0,left:0,display:K},y),TransitionProps:oe,children:i}))})}),MEe=PEe,BEe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],NEe=kt(MEe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$Ee=U.forwardRef(function(t,n){var r;const i=OX(),o=sn({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:g,open:y,placement:b,popperOptions:A,popperRef:x,transition:D,slots:O,slotProps:M}=o,q=Bt(o,BEe),B=(r=O==null?void 0:O.root)!=null?r:l==null?void 0:l.Root,j=ye({anchorEl:a,container:u,disablePortal:d,keepMounted:p,modifiers:g,open:y,placement:b,popperOptions:A,popperRef:x,transition:D},q);return I.jsx(NEe,ye({as:s,direction:i==null?void 0:i.direction,slots:{root:B},slotProps:M??c},j,{ref:n}))}),o0=$Ee,FEe=oo(I.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function UEe(e){return an("MuiChip",e)}const jEe=ln("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),er=jEe,VEe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],qEe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${pt(r)}`,`color${pt(i)}`,s&&"clickable",s&&`clickableColor${pt(i)}`,a&&"deletable",a&&`deletableColor${pt(i)}`,`${l}${pt(i)}`],label:["label",`label${pt(r)}`],avatar:["avatar",`avatar${pt(r)}`,`avatarColor${pt(i)}`],icon:["icon",`icon${pt(r)}`,`iconColor${pt(o)}`],deleteIcon:["deleteIcon",`deleteIcon${pt(r)}`,`deleteIconColor${pt(i)}`,`deleteIcon${pt(l)}Color${pt(i)}`]};return un(c,UEe,t)},zEe=kt("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${er.avatar}`]:t.avatar},{[`& .${er.avatar}`]:t[`avatar${pt(s)}`]},{[`& .${er.avatar}`]:t[`avatarColor${pt(r)}`]},{[`& .${er.icon}`]:t.icon},{[`& .${er.icon}`]:t[`icon${pt(s)}`]},{[`& .${er.icon}`]:t[`iconColor${pt(i)}`]},{[`& .${er.deleteIcon}`]:t.deleteIcon},{[`& .${er.deleteIcon}`]:t[`deleteIcon${pt(s)}`]},{[`& .${er.deleteIcon}`]:t[`deleteIconColor${pt(r)}`]},{[`& .${er.deleteIcon}`]:t[`deleteIcon${pt(l)}Color${pt(r)}`]},t.root,t[`size${pt(s)}`],t[`color${pt(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${pt(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${pt(r)}`],t[l],t[`${l}${pt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return ye({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${er.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${er.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${er.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${er.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${er.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${er.icon}`]:ye({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&ye({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${er.deleteIcon}`]:ye({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Jn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Jn(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Jn(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${er.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${er.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>ye({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Jn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${er.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${er.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>ye({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${er.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${er.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${er.avatar}`]:{marginLeft:4},[`& .${er.avatarSmall}`]:{marginLeft:2},[`& .${er.icon}`]:{marginLeft:4},[`& .${er.iconSmall}`]:{marginLeft:2},[`& .${er.deleteIcon}`]:{marginRight:5},[`& .${er.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Jn(e.palette[t.color].main,.7)}`,[`&.${er.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${er.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Jn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${er.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Jn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),HEe=kt("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${pt(r)}`]]}})(({ownerState:e})=>ye({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function sF(e){return e.key==="Backspace"||e.key==="Delete"}const WEe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:g,onDelete:y,onKeyDown:b,onKeyUp:A,size:x="medium",variant:D="filled",tabIndex:O,skipFocusWhenDisabled:M=!1}=r,q=Bt(r,VEe),B=U.useRef(null),j=jr(B,n),K=k=>{k.stopPropagation(),y&&y(k)},oe=k=>{k.currentTarget===k.target&&sF(k)&&k.preventDefault(),b&&b(k)},ue=k=>{k.currentTarget===k.target&&(y&&sF(k)?y(k):k.key==="Escape"&&B.current&&B.current.blur()),A&&A(k)},G=a!==!1&&g?!0:a,P=G||y?_c:l||"div",T=ye({},r,{component:P,disabled:u,size:x,color:s,iconColor:U.isValidElement(d)&&d.props.color||s,onDelete:!!y,clickable:G,variant:D}),f=qEe(T),h=P===_c?ye({component:l||"div",focusVisibleClassName:f.focusVisible},y&&{disableRipple:!0}):{};let w=null;y&&(w=c&&U.isValidElement(c)?U.cloneElement(c,{className:Pt(c.props.className,f.deleteIcon),onClick:K}):I.jsx(FEe,{className:Pt(f.deleteIcon),onClick:K}));let _=null;i&&U.isValidElement(i)&&(_=U.cloneElement(i,{className:Pt(f.avatar,i.props.className)}));let R=null;return d&&U.isValidElement(d)&&(R=U.cloneElement(d,{className:Pt(f.icon,d.props.className)})),I.jsxs(zEe,ye({as:P,className:Pt(f.root,o),disabled:G&&u?!0:void 0,onClick:g,onKeyDown:oe,onKeyUp:ue,ref:j,tabIndex:M&&u?-1:O,ownerState:T},h,q,{children:[_||R,I.jsx(HEe,{className:Pt(f.label),ownerState:T,children:p}),w]}))}),Pp=WEe;function GEe({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const KEe=U.createContext(void 0),JEe=KEe;function zX(){return U.useContext(JEe)}const YEe=oo(I.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 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function ZEe(e){return an("MuiAvatar",e)}ln("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const XEe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],QEe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return un({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},ZEe,t)},eRe=kt("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:ye({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:ye({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),tRe=kt("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),nRe=kt(YEe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function rRe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=U.useState(!1);return U.useEffect(()=>{if(!n&&!r)return;o(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&o("loaded")},s.onerror=()=>{a&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const iRe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:d,src:p,srcSet:g,variant:y="circular"}=r,b=Bt(r,XEe);let A=null;const x=rRe(ye({},u,{src:p,srcSet:g})),D=p||g,O=D&&x!=="error",M=ye({},r,{colorDefault:!O,component:s,variant:y}),q=QEe(M),[B,j]=E_("img",{className:q.img,elementType:tRe,externalForwardedProps:{slots:l,slotProps:{img:ye({},u,c.img)}},additionalProps:{alt:i,src:p,srcSet:g,sizes:d},ownerState:M});return O?A=I.jsx(B,ye({},j)):o||o===0?A=o:D&&i?A=i[0]:A=I.jsx(nRe,{ownerState:M,className:q.fallback}),I.jsx(eRe,ye({as:s,ownerState:M,className:Pt(q.root,a),ref:n},b,{children:A}))}),oRe=iRe,aRe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sRe={entering:{opacity:1},entered:{opacity:1}},lRe=U.forwardRef(function(t,n){const r=Jr(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:g,onExited:y,onExiting:b,style:A,timeout:x=i,TransitionComponent:D=Xw}=t,O=Bt(t,aRe),M=U.useRef(null),q=jr(M,s.ref,n),B=f=>h=>{if(f){const w=M.current;h===void 0?f(w):f(w,h)}},j=B(p),K=B((f,h)=>{Fk(f);const w=Ac({style:A,timeout:x,easing:l},{mode:"enter"});f.style.webkitTransition=r.transitions.create("opacity",w),f.style.transition=r.transitions.create("opacity",w),u&&u(f,h)}),oe=B(d),ue=B(b),G=B(f=>{const h=Ac({style:A,timeout:x,easing:l},{mode:"exit"});f.style.webkitTransition=r.transitions.create("opacity",h),f.style.transition=r.transitions.create("opacity",h),g&&g(f)}),P=B(y),T=f=>{o&&o(M.current,f)};return I.jsx(D,ye({appear:a,in:c,nodeRef:M,onEnter:K,onEntered:oe,onEntering:j,onExit:G,onExited:P,onExiting:ue,addEndListener:T,timeout:x},O,{children:(f,h)=>U.cloneElement(s,ye({style:ye({opacity:0,visibility:f==="exited"&&!c?"hidden":void 0},sRe[f],A,s.props.style),ref:q},h))}))}),n6=lRe;function uRe(e){return an("MuiBackdrop",e)}ln("MuiBackdrop",["root","invisible"]);const cRe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],fRe=e=>{const{classes:t,invisible:n}=e;return un({root:["root",n&&"invisible"]},uRe,t)},dRe=kt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>ye({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),pRe=U.forwardRef(function(t,n){var r,i,o;const a=sn({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:d={},invisible:p=!1,open:g,slotProps:y={},slots:b={},TransitionComponent:A=n6,transitionDuration:x}=a,D=Bt(a,cRe),O=ye({},a,{component:c,invisible:p}),M=fRe(O),q=(r=y.root)!=null?r:d.root;return I.jsx(A,ye({in:g,timeout:x},D,{children:I.jsx(dRe,ye({"aria-hidden":!0},q,{as:(i=(o=b.root)!=null?o:u.Root)!=null?i:c,className:Pt(M.root,l,q==null?void 0:q.className),ownerState:ye({},O,q==null?void 0:q.ownerState),classes:M,ref:n,children:s}))}))}),HX=pRe;function hRe(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=vZ({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!i&&(a=!0);const{badgeContent:s,max:l=r}=a?o:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}function mRe(e){return an("MuiBadge",e)}const gRe=ln("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Fu=gRe,yRe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],jx=10,Vx=4,vRe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:a={}}=e,s={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${pt(n.vertical)}${pt(n.horizontal)}`,`anchorOrigin${pt(n.vertical)}${pt(n.horizontal)}${pt(i)}`,`overlap${pt(i)}`,t!=="default"&&`color${pt(t)}`]};return un(s,mRe,a)},bRe=kt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),wRe=kt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${pt(n.anchorOrigin.vertical)}${pt(n.anchorOrigin.horizontal)}${pt(n.overlap)}`],n.color!=="default"&&t[`color${pt(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:jx*2,lineHeight:1,padding:"0 6px",height:jx*2,borderRadius:jx,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,i;return((r=e.vars)!=null?r:e).palette[n].main&&((i=e.vars)!=null?i:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Vx,height:Vx*2,minWidth:Vx*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),TRe=U.forwardRef(function(t,n){var r,i,o,a,s,l;const c=sn({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:d,component:p,components:g={},componentsProps:y={},children:b,overlap:A="rectangular",color:x="default",invisible:D=!1,max:O=99,badgeContent:M,slots:q,slotProps:B,showZero:j=!1,variant:K="standard"}=c,oe=Bt(c,yRe),{badgeContent:ue,invisible:G,max:P,displayValue:T}=hRe({max:O,invisible:D,badgeContent:M,showZero:j}),f=vZ({anchorOrigin:u,color:x,overlap:A,variant:K,badgeContent:M}),h=G||ue==null&&K!=="dot",{color:w=x,overlap:_=A,anchorOrigin:R=u,variant:k=K}=h?f:c,C=k!=="dot"?T:void 0,E=ye({},c,{badgeContent:ue,invisible:h,max:P,displayValue:C,showZero:j,anchorOrigin:R,color:w,overlap:_,variant:k}),v=vRe(E),L=(r=(i=q==null?void 0:q.root)!=null?i:g.Root)!=null?r:bRe,ne=(o=(a=q==null?void 0:q.badge)!=null?a:g.Badge)!=null?o:wRe,F=(s=B==null?void 0:B.root)!=null?s:y.root,J=(l=B==null?void 0:B.badge)!=null?l:y.badge,se=wl({elementType:L,externalSlotProps:F,externalForwardedProps:oe,additionalProps:{ref:n,as:p},ownerState:E,className:Pt(F==null?void 0:F.className,v.root,d)}),pe=wl({elementType:ne,externalSlotProps:J,ownerState:E,className:Pt(v.badge,J==null?void 0:J.className)});return I.jsxs(L,ye({},se,{children:[b,I.jsx(ne,ye({},pe,{children:C}))]}))}),xRe=TRe,SRe=ln("MuiBox",["root"]),CRe=SRe,ARe=qg(),_Re=I3e({themeId:vh,defaultTheme:ARe,defaultClassName:CRe.root,generateClassName:ik.generate}),ct=_Re;function ERe(e){return an("MuiButton",e)}const RRe=ln("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Gv=RRe,kRe=U.createContext({}),DRe=kRe,LRe=U.createContext(void 0),ORe=LRe,IRe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],PRe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${pt(t)}`,`size${pt(i)}`,`${o}Size${pt(i)}`,`color${pt(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${pt(i)}`],endIcon:["icon","endIcon",`iconSize${pt(i)}`]},l=un(s,ERe,a);return ye({},a,l)},WX=e=>ye({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),MRe=kt(_c,{shouldForwardProp:e=>wu(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${pt(n.color)}`],t[`size${pt(n.size)}`],t[`${n.variant}Size${pt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return ye({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":ye({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":ye({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Gv.focusVisible}`]:ye({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Gv.disabled}`]:ye({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Jn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Gv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Gv.disabled}`]:{boxShadow:"none"}}),BRe=kt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${pt(n.size)}`]]}})(({ownerState:e})=>ye({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},WX(e))),NRe=kt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${pt(n.size)}`]]}})(({ownerState:e})=>ye({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},WX(e))),$Re=U.forwardRef(function(t,n){const r=U.useContext(DRe),i=U.useContext(ORe),o=G1(r,t),a=sn({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:y,focusVisibleClassName:b,fullWidth:A=!1,size:x="medium",startIcon:D,type:O,variant:M="text"}=a,q=Bt(a,IRe),B=ye({},a,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:g,fullWidth:A,size:x,type:O,variant:M}),j=PRe(B),K=D&&I.jsx(BRe,{className:j.startIcon,ownerState:B,children:D}),oe=y&&I.jsx(NRe,{className:j.endIcon,ownerState:B,children:y}),ue=i||"";return I.jsxs(MRe,ye({ownerState:B,className:Pt(r.className,j.root,u,ue),component:c,disabled:d,focusRipple:!g,focusVisibleClassName:Pt(j.focusVisible,b),ref:n,type:O},q,{classes:j,children:[K,s,oe]}))}),r6=$Re;function FRe(e){return an("MuiCard",e)}ln("MuiCard",["root"]);const URe=["className","raised"],jRe=e=>{const{classes:t}=e;return un({root:["root"]},FRe,t)},VRe=kt(cs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),qRe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=Bt(r,URe),s=ye({},r,{raised:o}),l=jRe(s);return I.jsx(VRe,ye({className:Pt(l.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))}),zRe=qRe;function HRe(e){return an("MuiCardActions",e)}ln("MuiCardActions",["root","spacing"]);const WRe=["disableSpacing","className"],GRe=e=>{const{classes:t,disableSpacing:n}=e;return un({root:["root",!n&&"spacing"]},HRe,t)},KRe=kt("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>ye({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),JRe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiCardActions"}),{disableSpacing:i=!1,className:o}=r,a=Bt(r,WRe),s=ye({},r,{disableSpacing:i}),l=GRe(s);return I.jsx(KRe,ye({className:Pt(l.root,o),ownerState:s,ref:n},a))}),YRe=JRe;function ZRe(e){return an("MuiCardContent",e)}ln("MuiCardContent",["root"]);const XRe=["className","component"],QRe=e=>{const{classes:t}=e;return un({root:["root"]},ZRe,t)},e7e=kt("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),t7e=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=Bt(r,XRe),s=ye({},r,{component:o}),l=QRe(s);return I.jsx(e7e,ye({as:o,className:Pt(l.root,i),ownerState:s,ref:n},a))}),n7e=t7e;function r7e(e){return an("MuiCardHeader",e)}const i7e=ln("MuiCardHeader",["root","avatar","action","content","title","subheader"]),lF=i7e,o7e=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],a7e=e=>{const{classes:t}=e;return un({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},r7e,t)},s7e=kt("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>ye({[`& .${lF.title}`]:t.title,[`& .${lF.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),l7e=kt("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),u7e=kt("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),c7e=kt("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),f7e=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiCardHeader"}),{action:i,avatar:o,className:a,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:p}=r,g=Bt(r,o7e),y=ye({},r,{component:s,disableTypography:l}),b=a7e(y);let A=d;A!=null&&A.type!==tn&&!l&&(A=I.jsx(tn,ye({variant:o?"body2":"h5",className:b.title,component:"span",display:"block"},p,{children:A})));let x=c;return x!=null&&x.type!==tn&&!l&&(x=I.jsx(tn,ye({variant:o?"body2":"body1",className:b.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:x}))),I.jsxs(s7e,ye({className:Pt(b.root,a),as:s,ref:n,ownerState:y},g,{children:[o&&I.jsx(l7e,{className:b.avatar,ownerState:y,children:o}),I.jsxs(c7e,{className:b.content,ownerState:y,children:[A,x]}),i&&I.jsx(u7e,{className:b.action,ownerState:y,children:i})]}))}),d7e=f7e;function p7e(e){return an("PrivateSwitchBase",e)}ln("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const h7e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],m7e=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${pt(i)}`],input:["input"]};return un(o,p7e,t)},g7e=kt(_c)(({ownerState:e})=>ye({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),y7e=kt("input",{shouldForwardProp:wu})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),v7e=U.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:g,inputRef:y,name:b,onBlur:A,onChange:x,onFocus:D,readOnly:O,required:M=!1,tabIndex:q,type:B,value:j}=t,K=Bt(t,h7e),[oe,ue]=fk({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),G=zX(),P=k=>{D&&D(k),G&&G.onFocus&&G.onFocus(k)},T=k=>{A&&A(k),G&&G.onBlur&&G.onBlur(k)},f=k=>{if(k.nativeEvent.defaultPrevented)return;const C=k.target.checked;ue(C),x&&x(k,C)};let h=l;G&&typeof h>"u"&&(h=G.disabled);const w=B==="checkbox"||B==="radio",_=ye({},t,{checked:oe,disabled:h,disableFocusRipple:c,edge:u}),R=m7e(_);return I.jsxs(g7e,ye({component:"span",className:Pt(R.root,a),centerRipple:!0,focusRipple:!c,disabled:h,tabIndex:null,role:void 0,onFocus:P,onBlur:T,ownerState:_,ref:n},K,{children:[I.jsx(y7e,ye({autoFocus:r,checked:i,defaultChecked:s,className:R.input,disabled:h,id:w?p:void 0,name:b,onChange:f,readOnly:O,ref:y,required:M,ownerState:_,tabIndex:q,type:B},B==="checkbox"&&j===void 0?{}:{value:j},g)),oe?o:d]}))}),b7e=v7e,w7e=oo(I.jsx("path",{d:"M19 5v14H5V5h14m0-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-2z"}),"CheckBoxOutlineBlank"),T7e=oo(I.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),x7e=oo(I.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function S7e(e){return an("MuiCheckbox",e)}const C7e=ln("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),qx=C7e,A7e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],_7e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${pt(r)}`,`size${pt(i)}`]},a=un(o,S7e,t);return ye({},t,a)},E7e=kt(b7e,{shouldForwardProp:e=>wu(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${pt(n.size)}`],n.color!=="default"&&t[`color${pt(n.color)}`]]}})(({theme:e,ownerState:t})=>ye({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${qx.checked}, &.${qx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${qx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),R7e=I.jsx(T7e,{}),k7e=I.jsx(w7e,{}),D7e=I.jsx(x7e,{}),L7e=U.forwardRef(function(t,n){var r,i;const o=sn({props:t,name:"MuiCheckbox"}),{checkedIcon:a=R7e,color:s="primary",icon:l=k7e,indeterminate:c=!1,indeterminateIcon:u=D7e,inputProps:d,size:p="medium",className:g}=o,y=Bt(o,A7e),b=c?u:l,A=c?u:a,x=ye({},o,{color:s,indeterminate:c,size:p}),D=_7e(x);return I.jsx(E7e,ye({type:"checkbox",inputProps:ye({"data-indeterminate":c},d),icon:U.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:p}),checkedIcon:U.cloneElement(A,{fontSize:(i=A.props.fontSize)!=null?i:p}),ownerState:x,ref:n,className:Pt(D.root,g)},y,{classes:D}))}),GX=L7e;function uF(e){return e.substring(2).toLowerCase()}function O7e(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function a0(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,a=U.useRef(!1),s=U.useRef(null),l=U.useRef(!1),c=U.useRef(!1);U.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=jr(t.ref,s),d=Ha(y=>{const b=c.current;c.current=!1;const A=Ri(s.current);if(!l.current||!s.current||"clientX"in y&&O7e(y,A))return;if(a.current){a.current=!1;return}let x;y.composedPath?x=y.composedPath().indexOf(s.current)>-1:x=!A.documentElement.contains(y.target)||s.current.contains(y.target),!x&&(n||!b)&&i(y)}),p=y=>b=>{c.current=!0;const A=t.props[y];A&&A(b)},g={ref:u};return o!==!1&&(g[o]=p(o)),U.useEffect(()=>{if(o!==!1){const y=uF(o),b=Ri(s.current),A=()=>{a.current=!0};return b.addEventListener(y,d),b.addEventListener("touchmove",A),()=>{b.removeEventListener(y,d),b.removeEventListener("touchmove",A)}}},[d,o]),r!==!1&&(g[r]=p(r)),U.useEffect(()=>{if(r!==!1){const y=uF(r),b=Ri(s.current);return b.addEventListener(y,d),()=>{b.removeEventListener(y,d)}}},[d,r]),I.jsx(U.Fragment,{children:U.cloneElement(t,g)})}const I7e=I4e({createStyledComponent:kt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${pt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>sn({props:e,name:"MuiContainer"})}),Qg=I7e;function P7e(e){const t=Ri(e);return t.body===e?Sc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function d1(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cF(e){return parseInt(Sc(e).getComputedStyle(e).paddingRight,10)||0}function M7e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function fF(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!M7e(a);s&&l&&d1(a,i)})}function zx(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function B7e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(P7e(r)){const a=yZ(Ri(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${cF(r)+a}px`;const s=Ri(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${cF(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Ri(r).body;else{const a=r.parentElement,s=Sc(r);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function N7e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class $7e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&d1(t.modalRef,!1);const i=N7e(n);fF(n,t.mount,t.modalRef,i,!0);const o=zx(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=zx(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=B7e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=zx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&d1(t.modalRef,n),fF(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&d1(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const F7e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function U7e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function j7e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function V7e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||j7e(e))}function q7e(e){const t=[],n=[];return Array.from(e.querySelectorAll(F7e)).forEach((r,i)=>{const o=U7e(r);o===-1||!V7e(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function z7e(){return!0}function H7e(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=q7e,isEnabled:a=z7e,open:s}=e,l=U.useRef(!1),c=U.useRef(null),u=U.useRef(null),d=U.useRef(null),p=U.useRef(null),g=U.useRef(!1),y=U.useRef(null),b=jr(t.ref,y),A=U.useRef(null);U.useEffect(()=>{!s||!y.current||(g.current=!n)},[n,s]),U.useEffect(()=>{if(!s||!y.current)return;const O=Ri(y.current);return y.current.contains(O.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),U.useEffect(()=>{if(!s||!y.current)return;const O=Ri(y.current),M=j=>{A.current=j,!(r||!a()||j.key!=="Tab")&&O.activeElement===y.current&&j.shiftKey&&(l.current=!0,u.current&&u.current.focus())},q=()=>{const j=y.current;if(j===null)return;if(!O.hasFocus()||!a()||l.current){l.current=!1;return}if(j.contains(O.activeElement)||r&&O.activeElement!==c.current&&O.activeElement!==u.current)return;if(O.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let K=[];if((O.activeElement===c.current||O.activeElement===u.current)&&(K=o(y.current)),K.length>0){var oe,ue;const G=!!((oe=A.current)!=null&&oe.shiftKey&&((ue=A.current)==null?void 0:ue.key)==="Tab"),P=K[0],T=K[K.length-1];typeof P!="string"&&typeof T!="string"&&(G?T.focus():P.focus())}else j.focus()};O.addEventListener("focusin",q),O.addEventListener("keydown",M,!0);const B=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&q()},50);return()=>{clearInterval(B),O.removeEventListener("focusin",q),O.removeEventListener("keydown",M,!0)}},[n,r,i,a,s,o]);const x=O=>{d.current===null&&(d.current=O.relatedTarget),g.current=!0,p.current=O.target;const M=t.props.onFocus;M&&M(O)},D=O=>{d.current===null&&(d.current=O.relatedTarget),g.current=!0};return I.jsxs(U.Fragment,{children:[I.jsx("div",{tabIndex:s?0:-1,onFocus:D,ref:c,"data-testid":"sentinelStart"}),U.cloneElement(t,{ref:b,onFocus:x}),I.jsx("div",{tabIndex:s?0:-1,onFocus:D,ref:u,"data-testid":"sentinelEnd"})]})}function W7e(e){return typeof e=="function"?e():e}function G7e(e){return e?e.props.hasOwnProperty("in"):!1}const K7e=new $7e;function J7e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=K7e,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=U.useRef({}),g=U.useRef(null),y=U.useRef(null),b=jr(y,d),[A,x]=U.useState(!u),D=G7e(l);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const M=()=>Ri(g.current),q=()=>(p.current.modalRef=y.current,p.current.mount=g.current,p.current),B=()=>{i.mount(q(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},j=Ha(()=>{const w=W7e(t)||M().body;i.add(q(),w),y.current&&B()}),K=U.useCallback(()=>i.isTopModal(q()),[i]),oe=Ha(w=>{g.current=w,w&&(u&&K()?B():y.current&&d1(y.current,O))}),ue=U.useCallback(()=>{i.remove(q(),O)},[O,i]);U.useEffect(()=>()=>{ue()},[ue]),U.useEffect(()=>{u?j():(!D||!o)&&ue()},[u,ue,D,o,j]);const G=w=>_=>{var R;(R=w.onKeyDown)==null||R.call(w,_),!(_.key!=="Escape"||_.which===229||!K())&&(n||(_.stopPropagation(),c&&c(_,"escapeKeyDown")))},P=w=>_=>{var R;(R=w.onClick)==null||R.call(w,_),_.target===_.currentTarget&&c&&c(_,"backdropClick")};return{getRootProps:(w={})=>{const _=A3(e);delete _.onTransitionEnter,delete _.onTransitionExited;const R=ye({},_,w);return ye({role:"presentation"},R,{onKeyDown:G(R),ref:b})},getBackdropProps:(w={})=>{const _=w;return ye({"aria-hidden":!0},_,{onClick:P(_),open:u})},getTransitionProps:()=>{const w=()=>{x(!1),a&&a()},_=()=>{x(!0),s&&s(),o&&ue()};return{onEnter:p_(w,l==null?void 0:l.props.onEnter),onExited:p_(_,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:oe,isTopModal:K,exited:A,hasTransition:D}}function Y7e(e){return an("MuiModal",e)}ln("MuiModal",["root","hidden","backdrop"]);const Z7e=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],X7e=e=>{const{open:t,exited:n,classes:r}=e;return un({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Y7e,r)},Q7e=kt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>ye({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),eke=kt(HX,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),tke=U.forwardRef(function(t,n){var r,i,o,a,s,l;const c=sn({name:"MuiModal",props:t}),{BackdropComponent:u=eke,BackdropProps:d,className:p,closeAfterTransition:g=!1,children:y,container:b,component:A,components:x={},componentsProps:D={},disableAutoFocus:O=!1,disableEnforceFocus:M=!1,disableEscapeKeyDown:q=!1,disablePortal:B=!1,disableRestoreFocus:j=!1,disableScrollLock:K=!1,hideBackdrop:oe=!1,keepMounted:ue=!1,onBackdropClick:G,open:P,slotProps:T,slots:f}=c,h=Bt(c,Z7e),w=ye({},c,{closeAfterTransition:g,disableAutoFocus:O,disableEnforceFocus:M,disableEscapeKeyDown:q,disablePortal:B,disableRestoreFocus:j,disableScrollLock:K,hideBackdrop:oe,keepMounted:ue}),{getRootProps:_,getBackdropProps:R,getTransitionProps:k,portalRef:C,isTopModal:E,exited:v,hasTransition:L}=J7e(ye({},w,{rootRef:n})),ne=ye({},w,{exited:v}),F=X7e(ne),J={};if(y.props.tabIndex===void 0&&(J.tabIndex="-1"),L){const{onEnter:Z,onExited:Y}=k();J.onEnter=Z,J.onExited=Y}const se=(r=(i=f==null?void 0:f.root)!=null?i:x.Root)!=null?r:Q7e,pe=(o=(a=f==null?void 0:f.backdrop)!=null?a:x.Backdrop)!=null?o:u,be=(s=T==null?void 0:T.root)!=null?s:D.root,Ee=(l=T==null?void 0:T.backdrop)!=null?l:D.backdrop,H=wl({elementType:se,externalSlotProps:be,externalForwardedProps:h,getSlotProps:_,additionalProps:{ref:n,as:A},ownerState:ne,className:Pt(p,be==null?void 0:be.className,F==null?void 0:F.root,!ne.open&&ne.exited&&(F==null?void 0:F.hidden))}),$=wl({elementType:pe,externalSlotProps:Ee,additionalProps:d,getSlotProps:Z=>R(ye({},Z,{onClick:Y=>{G&&G(Y),Z!=null&&Z.onClick&&Z.onClick(Y)}})),className:Pt(Ee==null?void 0:Ee.className,d==null?void 0:d.className,F==null?void 0:F.backdrop),ownerState:ne});return!ue&&!P&&(!L||v)?null:I.jsx(qX,{ref:C,container:b,disablePortal:B,children:I.jsxs(se,ye({},H,{children:[!oe&&u?I.jsx(pe,ye({},$)):null,I.jsx(H7e,{disableEnforceFocus:M,disableAutoFocus:O,disableRestoreFocus:j,isEnabled:E,open:P,children:U.cloneElement(y,J)})]}))})}),Kk=tke;function nke(e){return an("MuiDialog",e)}const rke=ln("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Hx=rke,ike=U.createContext({}),KX=ike,oke=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ake=kt(HX,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ske=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${pt(n)}`],paper:["paper",`paperScroll${pt(n)}`,`paperWidth${pt(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return un(a,nke,t)},lke=kt(Kk,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),uke=kt("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${pt(n.scroll)}`]]}})(({ownerState:e})=>ye({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),cke=kt(cs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${pt(n.scroll)}`],t[`paperWidth${pt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>ye({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Hx.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Hx.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Hx.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),fke=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDialog"}),i=Jr(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:g=!1,fullWidth:y=!1,maxWidth:b="sm",onBackdropClick:A,onClick:x,onClose:D,open:O,PaperComponent:M=cs,PaperProps:q={},scroll:B="paper",TransitionComponent:j=n6,transitionDuration:K=o,TransitionProps:oe}=r,ue=Bt(r,oke),G=ye({},r,{disableEscapeKeyDown:p,fullScreen:g,fullWidth:y,maxWidth:b,scroll:B}),P=ske(G),T=U.useRef(),f=R=>{T.current=R.target===R.currentTarget},h=R=>{x&&x(R),T.current&&(T.current=null,A&&A(R),D&&D(R,"backdropClick"))},w=ck(s),_=U.useMemo(()=>({titleId:w}),[w]);return I.jsx(lke,ye({className:Pt(P.root,d),closeAfterTransition:!0,components:{Backdrop:ake},componentsProps:{backdrop:ye({transitionDuration:K,as:l},c)},disableEscapeKeyDown:p,onClose:D,open:O,ref:n,onClick:h,ownerState:G},ue,{children:I.jsx(j,ye({appear:!0,in:O,timeout:K,role:"presentation"},oe,{children:I.jsx(uke,{className:Pt(P.container),onMouseDown:f,ownerState:G,children:I.jsx(cke,ye({as:M,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":w},q,{className:Pt(P.paper,q.className),ownerState:G,children:I.jsx(KX.Provider,{value:_,children:u})}))})}))}))}),i6=fke;function dke(e){return an("MuiDialogActions",e)}ln("MuiDialogActions",["root","spacing"]);const pke=["className","disableSpacing"],hke=e=>{const{classes:t,disableSpacing:n}=e;return un({root:["root",!n&&"spacing"]},dke,t)},mke=kt("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>ye({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),gke=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=Bt(r,pke),s=ye({},r,{disableSpacing:o}),l=hke(s);return I.jsx(mke,ye({className:Pt(l.root,i),ownerState:s,ref:n},a))}),JX=gke;function yke(e){return an("MuiDialogContent",e)}ln("MuiDialogContent",["root","dividers"]);function vke(e){return an("MuiDialogTitle",e)}const bke=ln("MuiDialogTitle",["root"]),wke=bke,Tke=["className","dividers"],xke=e=>{const{classes:t,dividers:n}=e;return un({root:["root",n&&"dividers"]},yke,t)},Ske=kt("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>ye({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${wke.root} + &`]:{paddingTop:0}})),Cke=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=Bt(r,Tke),s=ye({},r,{dividers:o}),l=xke(s);return I.jsx(Ske,ye({className:Pt(l.root,i),ownerState:s,ref:n},a))}),o6=Cke;function Ake(e){return an("MuiDialogContentText",e)}ln("MuiDialogContentText",["root"]);const _ke=["children","className"],Eke=e=>{const{classes:t}=e,r=un({root:["root"]},Ake,t);return ye({},t,r)},Rke=kt(tn,{shouldForwardProp:e=>wu(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kke=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDialogContentText"}),{className:i}=r,o=Bt(r,_ke),a=Eke(o);return I.jsx(Rke,ye({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:o,className:Pt(a.root,i)},r,{classes:a}))}),Dke=kke,Lke=["className","id"],Oke=e=>{const{classes:t}=e;return un({root:["root"]},vke,t)},Ike=kt(tn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Pke=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDialogTitle"}),{className:i,id:o}=r,a=Bt(r,Lke),s=r,l=Oke(s),{titleId:c=o}=U.useContext(KX);return I.jsx(Ike,ye({component:"h2",className:Pt(l.root,i),ownerState:s,ref:n,variant:"h6",id:o??c},a))}),YX=Pke;function Mke(e){return an("MuiDivider",e)}const Bke=ln("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dF=Bke,Nke=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$ke=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return un({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},Mke,r)},Fke=kt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>ye({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Jn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>ye({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>ye({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>ye({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>ye({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Uke=kt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>ye({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),ZX=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=s!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,y=Bt(r,Nke),b=ye({},r,{absolute:i,component:s,flexItem:l,light:c,orientation:u,role:d,textAlign:p,variant:g}),A=$ke(b);return I.jsx(Fke,ye({as:s,className:Pt(A.root,a),role:d,ref:n,ownerState:b},y,{children:o?I.jsx(Uke,{className:A.wrapper,ownerState:b,children:o}):null}))});ZX.muiSkipListHighlight=!0;const Sh=ZX,jke=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Vke(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=Sc(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=o.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function qke(e){return typeof e=="function"?e():e}function Kv(e,t,n){const r=qke(n),i=Vke(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const zke=U.forwardRef(function(t,n){const r=Jr(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:d=i,in:p,onEnter:g,onEntered:y,onEntering:b,onExit:A,onExited:x,onExiting:D,style:O,timeout:M=o,TransitionComponent:q=Xw}=t,B=Bt(t,jke),j=U.useRef(null),K=jr(l.ref,j,n),oe=R=>k=>{R&&(k===void 0?R(j.current):R(j.current,k))},ue=oe((R,k)=>{Kv(u,R,c),Fk(R),g&&g(R,k)}),G=oe((R,k)=>{const C=Ac({timeout:M,style:O,easing:d},{mode:"enter"});R.style.webkitTransition=r.transitions.create("-webkit-transform",ye({},C)),R.style.transition=r.transitions.create("transform",ye({},C)),R.style.webkitTransform="none",R.style.transform="none",b&&b(R,k)}),P=oe(y),T=oe(D),f=oe(R=>{const k=Ac({timeout:M,style:O,easing:d},{mode:"exit"});R.style.webkitTransition=r.transitions.create("-webkit-transform",k),R.style.transition=r.transitions.create("transform",k),Kv(u,R,c),A&&A(R)}),h=oe(R=>{R.style.webkitTransition="",R.style.transition="",x&&x(R)}),w=R=>{a&&a(j.current,R)},_=U.useCallback(()=>{j.current&&Kv(u,j.current,c)},[u,c]);return U.useEffect(()=>{if(p||u==="down"||u==="right")return;const R=uk(()=>{j.current&&Kv(u,j.current,c)}),k=Sc(j.current);return k.addEventListener("resize",R),()=>{R.clear(),k.removeEventListener("resize",R)}},[u,p,c]),U.useEffect(()=>{p||_()},[p,_]),I.jsx(q,ye({nodeRef:j,onEnter:ue,onEntered:P,onEntering:G,onExit:f,onExited:h,onExiting:T,addEndListener:w,appear:s,in:p,timeout:M},B,{children:(R,k)=>U.cloneElement(l,ye({ref:K,style:ye({visibility:R==="exited"&&!p?"hidden":void 0},O,l.props.style)},k))}))}),Jk=zke;function Hke(e){return an("MuiDrawer",e)}ln("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Wke=["BackdropProps"],Gke=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],XX=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},Kke=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${pt(n)}`,r!=="temporary"&&`paperAnchorDocked${pt(n)}`]};return un(i,Hke,t)},Jke=kt(Kk,{name:"MuiDrawer",slot:"Root",overridesResolver:XX})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),pF=kt("div",{shouldForwardProp:wu,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:XX})({flex:"0 0 auto"}),Yke=kt(cs,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${pt(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${pt(n.anchor)}`]]}})(({theme:e,ownerState:t})=>ye({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),QX={left:"right",right:"left",top:"down",bottom:"up"};function Zke(e){return["left","right"].indexOf(e)!==-1}function Xke({direction:e},t){return e==="rtl"&&Zke(t)?QX[t]:t}const Qke=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDrawer"}),i=Jr(),o=Uw(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:g}={},onClose:y,open:b=!1,PaperProps:A={},SlideProps:x,TransitionComponent:D=Jk,transitionDuration:O=a,variant:M="temporary"}=r,q=Bt(r.ModalProps,Wke),B=Bt(r,Gke),j=U.useRef(!1);U.useEffect(()=>{j.current=!0},[]);const K=Xke({direction:o?"rtl":"ltr"},s),ue=ye({},r,{anchor:s,elevation:d,open:b,variant:M},B),G=Kke(ue),P=I.jsx(Yke,ye({elevation:M==="temporary"?d:0,square:!0},A,{className:Pt(G.paper,A.className),ownerState:ue,children:c}));if(M==="permanent")return I.jsx(pF,ye({className:Pt(G.root,G.docked,u),ownerState:ue,ref:n},B,{children:P}));const T=I.jsx(D,ye({in:b,direction:QX[K],timeout:O,appear:j.current},x,{children:P}));return M==="persistent"?I.jsx(pF,ye({className:Pt(G.root,G.docked,u),ownerState:ue,ref:n},B,{children:T})):I.jsx(Jke,ye({BackdropProps:ye({},l,g,{transitionDuration:O}),className:Pt(G.root,G.modal,u),open:b,ownerState:ue,onClose:y,hideBackdrop:p,ref:n},B,q,{children:T}))}),eQ=Qke,eDe=j4e({createStyledComponent:kt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>sn({props:e,name:"MuiStack"})}),tDe=eDe;function nDe(e){return an("MuiFormControlLabel",e)}const rDe=ln("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Vm=rDe,iDe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],oDe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${pt(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return un(a,nDe,t)},aDe=kt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vm.label}`]:t.label},t.root,t[`labelPlacement${pt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>ye({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Vm.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Vm.label}`]:{[`&.${Vm.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),sDe=kt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Vm.error}`]:{color:(e.vars||e).palette.error.main}})),lDe=U.forwardRef(function(t,n){var r,i;const o=sn({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",required:g,slotProps:y={}}=o,b=Bt(o,iDe),A=zX(),x=(r=c??l.props.disabled)!=null?r:A==null?void 0:A.disabled,D=g??l.props.required,O={disabled:x,required:D};["checked","name","onChange","value","inputRef"].forEach(oe=>{typeof l.props[oe]>"u"&&typeof o[oe]<"u"&&(O[oe]=o[oe])});const M=GEe({props:o,muiFormControl:A,states:["error"]}),q=ye({},o,{disabled:x,labelPlacement:p,required:D,error:M.error}),B=oDe(q),j=(i=y.typography)!=null?i:s.typography;let K=d;return K!=null&&K.type!==tn&&!u&&(K=I.jsx(tn,ye({component:"span"},j,{className:Pt(B.label,j==null?void 0:j.className),children:K}))),I.jsxs(aDe,ye({className:Pt(B.root,a),ownerState:q,ref:n},b,{children:[U.cloneElement(l,O),D?I.jsxs(tDe,{display:"block",children:[K,I.jsxs(sDe,{ownerState:q,"aria-hidden":!0,className:B.asterisk,children:[" ","*"]})]}):K]}))}),tQ=lDe,uDe=U.createContext(),hF=uDe;function cDe(e){return an("MuiGrid",e)}const fDe=[0,1,2,3,4,5,6,7,8,9,10],dDe=["column-reverse","column","row-reverse","row"],pDe=["nowrap","wrap-reverse","wrap"],fm=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],ng=ln("MuiGrid",["root","container","item","zeroMinWidth",...fDe.map(e=>`spacing-xs-${e}`),...dDe.map(e=>`direction-xs-${e}`),...pDe.map(e=>`wrap-xs-${e}`),...fm.map(e=>`grid-xs-${e}`),...fm.map(e=>`grid-sm-${e}`),...fm.map(e=>`grid-md-${e}`),...fm.map(e=>`grid-lg-${e}`),...fm.map(e=>`grid-xl-${e}`)]),hDe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Xp(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function mDe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Of({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[i]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const d=`calc(${l} + ${Xp(u)})`;c={flexBasis:d,maxWidth:d}}}o=ye({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[i]===0?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r},{})}function gDe({theme:e,ownerState:t}){const n=Of({values:t.direction,breakpoints:e.breakpoints.values});return $o({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${ng.item}`]={maxWidth:"none"}),i})}function nQ({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,o)=>e[i]-e[o]);return r.slice(0,r.indexOf(n))}function yDe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=Of({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=nQ({breakpoints:e.breakpoints.values,values:o})),i=$o({theme:e},o,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${Xp(u)}`,[`& > .${ng.item}`]:{paddingTop:Xp(u)}}:(c=a)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${ng.item}`]:{paddingTop:0}}})}return i}function vDe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=Of({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=nQ({breakpoints:e.breakpoints.values,values:o})),i=$o({theme:e},o,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${Xp(u)})`,marginLeft:`-${Xp(u)}`,[`& > .${ng.item}`]:{paddingLeft:Xp(u)}}:(c=a)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${ng.item}`]:{paddingLeft:0}}})}return i}function bDe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const o=e[i];Number(o)>0&&r.push(n[`spacing-${i}-${String(o)}`])}),r}const wDe=kt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=bDe(a,c,t));const d=[];return c.forEach(p=>{const g=n[p];g&&d.push(t[`grid-${p}-${String(g)}`])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,i!=="row"&&t[`direction-xs-${String(i)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>ye({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),gDe,yDe,vDe,mDe);function TDe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const o=`spacing-${r}-${String(i)}`;n.push(o)}}),n}const xDe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=TDe(o,l));const u=[];l.forEach(p=>{const g=e[p];g&&u.push(`grid-${p}-${String(g)}`)});const d={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...u]};return un(d,cDe,t)},SDe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiGrid"}),{breakpoints:i}=Jr(),o=jg(r),{className:a,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:p=!1,rowSpacing:g,spacing:y=0,wrap:b="wrap",zeroMinWidth:A=!1}=o,x=Bt(o,hDe),D=g||y,O=l||y,M=U.useContext(hF),q=u?s||12:M,B={},j=ye({},x);i.keys.forEach(ue=>{x[ue]!=null&&(B[ue]=x[ue],delete j[ue])});const K=ye({},o,{columns:q,container:u,direction:d,item:p,rowSpacing:D,columnSpacing:O,wrap:b,zeroMinWidth:A,spacing:y},B,{breakpoints:i.keys}),oe=xDe(K);return I.jsx(hF.Provider,{value:q,children:I.jsx(wDe,ye({ownerState:K,className:Pt(oe.root,a),as:c,ref:n},j))})}),Wx=SDe,CDe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function O_(e){return`scale(${e}, ${e**2})`}const ADe={entering:{opacity:1,transform:O_(1)},entered:{opacity:1,transform:"none"}},Gx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rQ=U.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:g,style:y,timeout:b="auto",TransitionComponent:A=Xw}=t,x=Bt(t,CDe),D=ic(),O=U.useRef(),M=Jr(),q=U.useRef(null),B=jr(q,o.ref,n),j=h=>w=>{if(h){const _=q.current;w===void 0?h(_):h(_,w)}},K=j(u),oe=j((h,w)=>{Fk(h);const{duration:_,delay:R,easing:k}=Ac({style:y,timeout:b,easing:a},{mode:"enter"});let C;b==="auto"?(C=M.transitions.getAutoHeightDuration(h.clientHeight),O.current=C):C=_,h.style.transition=[M.transitions.create("opacity",{duration:C,delay:R}),M.transitions.create("transform",{duration:Gx?C:C*.666,delay:R,easing:k})].join(","),l&&l(h,w)}),ue=j(c),G=j(g),P=j(h=>{const{duration:w,delay:_,easing:R}=Ac({style:y,timeout:b,easing:a},{mode:"exit"});let k;b==="auto"?(k=M.transitions.getAutoHeightDuration(h.clientHeight),O.current=k):k=w,h.style.transition=[M.transitions.create("opacity",{duration:k,delay:_}),M.transitions.create("transform",{duration:Gx?k:k*.666,delay:Gx?_:_||k*.333,easing:R})].join(","),h.style.opacity=0,h.style.transform=O_(.75),d&&d(h)}),T=j(p),f=h=>{b==="auto"&&D.start(O.current||0,h),r&&r(q.current,h)};return I.jsx(A,ye({appear:i,in:s,nodeRef:q,onEnter:oe,onEntered:ue,onEntering:K,onExit:P,onExited:T,onExiting:G,addEndListener:f,timeout:b==="auto"?null:b},x,{children:(h,w)=>U.cloneElement(o,ye({style:ye({opacity:0,transform:O_(.75),visibility:h==="exited"&&!s?"hidden":void 0},ADe[h],y,o.props.style),ref:B},w))}))});rQ.muiSupportAuto=!0;const B3=rQ,_De=["initialWidth","width"],ac=["xs","sm","md","lg","xl"],EDe=(e,t,n=!0)=>n?ac.indexOf(e)<=ac.indexOf(t):ac.indexOf(e)<ac.indexOf(t),RDe=(e,t,n=!1)=>n?ac.indexOf(t)<=ac.indexOf(e):ac.indexOf(t)<ac.indexOf(e),kDe=(e={})=>t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:i}=e;function o(a){const s=Jr(),l=a.theme||s,c=sk({theme:l,name:"MuiWithWidth",props:a}),{initialWidth:u,width:d}=c,p=Bt(c,_De),[g,y]=U.useState(!1);ns(()=>{y(!0)},[]);const A=l.breakpoints.keys.slice().reverse().reduce((D,O)=>{const M=Vs(l.breakpoints.up(O));return!D&&M?O:D},null),x=ye({width:d||(g||r?A:void 0)||u||i},n?{theme:l}:{},p);return x.width===void 0?null:I.jsx(t,ye({},x))}return o};function DDe(e){const{children:t,only:n,width:r}=e,i=Jr();let o=!0;if(n)if(Array.isArray(n))for(let a=0;a<n.length;a+=1){const s=n[a];if(r===s){o=!1;break}}else n&&r===n&&(o=!1);if(o)for(let a=0;a<i.breakpoints.keys.length;a+=1){const s=i.breakpoints.keys[a],l=e[`${s}Up`],c=e[`${s}Down`];if(l&&EDe(s,r)||c&&RDe(s,r)){o=!1;break}}return o?I.jsx(U.Fragment,{children:t}):null}const LDe=kDe()(DDe);function ODe(e){return an("PrivateHiddenCss",e)}ln("PrivateHiddenCss",["root","xlDown","xlUp","onlyXl","lgDown","lgUp","onlyLg","mdDown","mdUp","onlyMd","smDown","smUp","onlySm","xsDown","xsUp","onlyXs"]);const IDe=["children","className","only"],PDe=e=>{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:i,dir:o})=>o==="only"?`${o}${pt(i)}`:`${i}${pt(o)}`)]};return un(r,ODe,t)},MDe=kt("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return ye({},t.breakpoints.map(({breakpoint:r,dir:i})=>i==="only"?{[e.breakpoints.only(r)]:n}:i==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,i)=>(Object.keys(i).forEach(o=>{r[o]=i[o]}),r),{}))});function BDe(e){const{children:t,className:n,only:r}=e,i=Bt(e,IDe),o=Jr(),a=[];for(let c=0;c<o.breakpoints.keys.length;c+=1){const u=o.breakpoints.keys[c],d=i[`${u}Up`],p=i[`${u}Down`];d&&a.push({breakpoint:u,dir:"up"}),p&&a.push({breakpoint:u,dir:"down"})}r&&(Array.isArray(r)?r:[r]).forEach(u=>{a.push({breakpoint:u,dir:"only"})});const s=ye({},e,{breakpoints:a}),l=PDe(s);return I.jsx(MDe,{className:Pt(l.root,n),ownerState:s,children:t})}const NDe=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function iQ(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:i=!1,mdUp:o=!1,smDown:a=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:d=!1}=e,p=Bt(e,NDe);return t==="js"?I.jsx(LDe,ye({lgDown:n,lgUp:r,mdDown:i,mdUp:o,smDown:a,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:d},p)):I.jsx(BDe,ye({lgDown:n,lgUp:r,mdDown:i,mdUp:o,smDown:a,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:d},p))}function $De(e){return an("MuiIcon",e)}const FDe=ln("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),jAt=FDe,UDe=["baseClassName","className","color","component","fontSize"],jDe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${pt(t)}`,`fontSize${pt(n)}`]};return un(i,$De,r)},VDe=kt("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${pt(n.color)}`],t[`fontSize${pt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),oQ=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:a="inherit",component:s="span",fontSize:l="medium"}=r,c=Bt(r,UDe),u=ye({},r,{baseClassName:i,color:a,component:s,fontSize:l}),d=jDe(u);return I.jsx(VDe,ye({as:s,className:Pt(i,"notranslate",d.root,o),ownerState:u,"aria-hidden":!0,ref:n},c))});oQ.muiName="Icon";const qDe=oQ;function zDe(e){return an("MuiLinearProgress",e)}const HDe=ln("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),VAt=HDe,WDe=["className","color","value","valueBuffer","variant"];let s0=e=>e,mF,gF,yF,vF,bF,wF;const I_=4,GDe=El(mF||(mF=s0`
198
+ `),Fa.rippleVisible,mAe,R_,({theme:e})=>e.transitions.easing.easeInOut,Fa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Fa.child,Fa.childLeaving,gAe,R_,({theme:e})=>e.transitions.easing.easeInOut,Fa.childPulsate,yAe,({theme:e})=>e.transitions.easing.easeInOut),wAe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Bt(r,pAe),[l,c]=U.useState([]),u=U.useRef(0),d=U.useRef(null);U.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=U.useRef(!1),g=ic(),y=U.useRef(null),b=U.useRef(null),A=U.useCallback(M=>{const{pulsate:q,rippleX:B,rippleY:j,rippleSize:K,cb:oe}=M;c(ue=>[...ue,I.jsx(bAe,{classes:{ripple:Pt(o.ripple,Fa.ripple),rippleVisible:Pt(o.rippleVisible,Fa.rippleVisible),ripplePulsate:Pt(o.ripplePulsate,Fa.ripplePulsate),child:Pt(o.child,Fa.child),childLeaving:Pt(o.childLeaving,Fa.childLeaving),childPulsate:Pt(o.childPulsate,Fa.childPulsate)},timeout:R_,pulsate:q,rippleX:B,rippleY:j,rippleSize:K},u.current)]),u.current+=1,d.current=oe},[o]),x=U.useCallback((M={},q={},B=()=>{})=>{const{pulsate:j=!1,center:K=i||q.pulsate,fakeElement:oe=!1}=q;if((M==null?void 0:M.type)==="mousedown"&&p.current){p.current=!1;return}(M==null?void 0:M.type)==="touchstart"&&(p.current=!0);const ue=oe?null:b.current,G=ue?ue.getBoundingClientRect():{width:0,height:0,left:0,top:0};let P,T,f;if(K||M===void 0||M.clientX===0&&M.clientY===0||!M.clientX&&!M.touches)P=Math.round(G.width/2),T=Math.round(G.height/2);else{const{clientX:h,clientY:w}=M.touches&&M.touches.length>0?M.touches[0]:M;P=Math.round(h-G.left),T=Math.round(w-G.top)}if(K)f=Math.sqrt((2*G.width**2+G.height**2)/3),f%2===0&&(f+=1);else{const h=Math.max(Math.abs((ue?ue.clientWidth:0)-P),P)*2+2,w=Math.max(Math.abs((ue?ue.clientHeight:0)-T),T)*2+2;f=Math.sqrt(h**2+w**2)}M!=null&&M.touches?y.current===null&&(y.current=()=>{A({pulsate:j,rippleX:P,rippleY:T,rippleSize:f,cb:B})},g.start(hAe,()=>{y.current&&(y.current(),y.current=null)})):A({pulsate:j,rippleX:P,rippleY:T,rippleSize:f,cb:B})},[i,A,g]),D=U.useCallback(()=>{x({},{pulsate:!0})},[x]),O=U.useCallback((M,q)=>{if(g.clear(),(M==null?void 0:M.type)==="touchend"&&y.current){y.current(),y.current=null,g.start(0,()=>{O(M,q)});return}y.current=null,c(B=>B.length>0?B.slice(1):B),d.current=q},[g]);return U.useImperativeHandle(n,()=>({pulsate:D,start:x,stop:O}),[D,x,O]),I.jsx(vAe,ye({className:Pt(Fa.root,o.root,a),ref:b},s,{children:I.jsx(KCe,{component:null,exit:!0,children:l})}))}),TAe=wAe;function xAe(e){return an("MuiButtonBase",e)}const SAe=ln("MuiButtonBase",["root","disabled","focusVisible"]),CAe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],AAe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=un({root:["root",t&&"disabled",n&&"focusVisible"]},xAe,i);return n&&r&&(a.root+=` ${r}`),a},_Ae=kt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${SAe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),EAe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:y,onClick:b,onContextMenu:A,onDragLeave:x,onFocus:D,onFocusVisible:O,onKeyDown:M,onKeyUp:q,onMouseDown:B,onMouseLeave:j,onMouseUp:K,onTouchEnd:oe,onTouchMove:ue,onTouchStart:G,tabIndex:P=0,TouchRippleProps:T,touchRippleRef:f,type:h}=r,w=Bt(r,CAe),_=U.useRef(null),R=U.useRef(null),k=jr(R,f),{isFocusVisibleRef:C,onFocus:E,onBlur:v,ref:L}=Fw(),[ne,F]=U.useState(!1);c&&ne&&F(!1),U.useImperativeHandle(i,()=>({focusVisible:()=>{F(!0),_.current.focus()}}),[]);const[J,se]=U.useState(!1);U.useEffect(()=>{se(!0)},[]);const pe=J&&!u&&!c;U.useEffect(()=>{ne&&p&&!u&&J&&R.current.pulsate()},[u,p,ne,J]);function be(ke,re,V=d){return Ha(W=>(re&&re(W),!V&&R.current&&R.current[ke](W),!0))}const Ee=be("start",B),H=be("stop",A),$=be("stop",x),Z=be("stop",K),Y=be("stop",ke=>{ne&&ke.preventDefault(),j&&j(ke)}),ie=be("start",G),Te=be("stop",oe),me=be("stop",ue),le=be("stop",ke=>{v(ke),C.current===!1&&F(!1),y&&y(ke)},!1),ve=Ha(ke=>{_.current||(_.current=ke.currentTarget),E(ke),C.current===!0&&(F(!0),O&&O(ke)),D&&D(ke)}),Ae=()=>{const ke=_.current;return l&&l!=="button"&&!(ke.tagName==="A"&&ke.href)},xe=U.useRef(!1),He=Ha(ke=>{p&&!xe.current&&ne&&R.current&&ke.key===" "&&(xe.current=!0,R.current.stop(ke,()=>{R.current.start(ke)})),ke.target===ke.currentTarget&&Ae()&&ke.key===" "&&ke.preventDefault(),M&&M(ke),ke.target===ke.currentTarget&&Ae()&&ke.key==="Enter"&&!c&&(ke.preventDefault(),b&&b(ke))}),Ye=Ha(ke=>{p&&ke.key===" "&&R.current&&ne&&!ke.defaultPrevented&&(xe.current=!1,R.current.stop(ke,()=>{R.current.pulsate(ke)})),q&&q(ke),b&&ke.target===ke.currentTarget&&Ae()&&ke.key===" "&&!ke.defaultPrevented&&b(ke)});let ge=l;ge==="button"&&(w.href||w.to)&&(ge=g);const Pe={};ge==="button"?(Pe.type=h===void 0?"button":h,Pe.disabled=c):(!w.href&&!w.to&&(Pe.role="button"),c&&(Pe["aria-disabled"]=c));const te=jr(n,L,_),we=ye({},r,{centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:P,focusVisible:ne}),Be=AAe(we);return I.jsxs(_Ae,ye({as:ge,className:Pt(Be.root,s),ownerState:we,onBlur:le,onClick:b,onContextMenu:H,onFocus:ve,onKeyDown:He,onKeyUp:Ye,onMouseDown:Ee,onMouseLeave:Y,onMouseUp:Z,onDragLeave:$,onTouchEnd:Te,onTouchMove:me,onTouchStart:ie,ref:te,tabIndex:c?-1:P,type:h},Pe,w,{children:[a,pe?I.jsx(TAe,ye({ref:k,center:o},T)):null]}))}),_c=EAe;function RAe(e){return an("MuiAlert",e)}const kAe=ln("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),K$=kAe;function DAe(e){return an("MuiIconButton",e)}const LAe=ln("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),OAe=["edge","children","className","color","disabled","disableFocusRipple","size"],IAe=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${pt(r)}`,i&&`edge${pt(i)}`,`size${pt(o)}`]};return un(a,DAe,t)},PAe=kt(_c,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${pt(n.color)}`],n.edge&&t[`edge${pt(n.edge)}`],t[`size${pt(n.size)}`]]}})(({theme:e,ownerState:t})=>ye({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return ye({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&ye({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":ye({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${LAe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),MAe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,d=Bt(r,OAe),p=ye({},r,{edge:i,color:s,disabled:l,disableFocusRipple:c,size:u}),g=IAe(p);return I.jsx(PAe,ye({className:Pt(g.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},d,{ownerState:p,children:o}))}),ao=MAe,BAe=oo(I.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),NAe=oo(I.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),$Ae=oo(I.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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),FAe=oo(I.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),UAe=oo(I.jsx("path",{d:"M19 6.41L17.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"),jAe=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],VAe=e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`color${pt(n||r)}`,`${t}${pt(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return un(o,RAe,i)},qAe=kt(cs,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${pt(n.color||n.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?_3:E3,n=e.palette.mode==="light"?E3:_3;return ye({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${K$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.light).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${K$.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:ye({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)})}))]})}),zAe=kt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),HAe=kt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),J$=kt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Y$={success:I.jsx(BAe,{fontSize:"inherit"}),warning:I.jsx(NAe,{fontSize:"inherit"}),error:I.jsx($Ae,{fontSize:"inherit"}),info:I.jsx(FAe,{fontSize:"inherit"})},WAe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiAlert"}),{action:i,children:o,className:a,closeText:s="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:p=Y$,onClose:g,role:y="alert",severity:b="success",slotProps:A={},slots:x={},variant:D="standard"}=r,O=Bt(r,jAe),M=ye({},r,{color:l,severity:b,variant:D,colorSeverity:l||b}),q=VAe(M),B={slots:ye({closeButton:c.CloseButton,closeIcon:c.CloseIcon},x),slotProps:ye({},u,A)},[j,K]=E_("closeButton",{elementType:ao,externalForwardedProps:B,ownerState:M}),[oe,ue]=E_("closeIcon",{elementType:UAe,externalForwardedProps:B,ownerState:M});return I.jsxs(qAe,ye({role:y,elevation:0,ownerState:M,className:Pt(q.root,a),ref:n},O,{children:[d!==!1?I.jsx(zAe,{ownerState:M,className:q.icon,children:d||p[b]||Y$[b]}):null,I.jsx(HAe,{ownerState:M,className:q.message,children:o}),i!=null?I.jsx(J$,{ownerState:M,className:q.action,children:i}):null,i==null&&g?I.jsx(J$,{ownerState:M,className:q.action,children:I.jsx(j,ye({size:"small","aria-label":s,title:s,color:"inherit",onClick:g},K,{children:I.jsx(oe,ye({fontSize:"small"},ue))}))}):null]}))}),e6=WAe;function GAe(e){return an("MuiTypography",e)}const KAe=ln("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),UAt=KAe,JAe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],YAe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${pt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return un(s,GAe,a)},ZAe=kt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${pt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>ye({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Z$={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},XAe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},QAe=e=>XAe[e]||e,e_e=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiTypography"}),i=QAe(r.color),o=jg(ye({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:p="body1",variantMapping:g=Z$}=o,y=Bt(o,JAe),b=ye({},o,{align:a,color:i,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:p,variantMapping:g}),A=l||(d?"p":g[p]||Z$[p])||"span",x=YAe(b);return I.jsx(ZAe,ye({as:A,ref:n,ownerState:b,className:Pt(x.root,s)},y))}),tn=e_e;function t_e(e){return an("MuiAlertTitle",e)}ln("MuiAlertTitle",["root"]);const n_e=["className"],r_e=e=>{const{classes:t}=e;return un({root:["root"]},t_e,t)},i_e=kt(tn,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),o_e=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiAlertTitle"}),{className:i}=r,o=Bt(r,n_e),a=r,s=r_e(a);return I.jsx(i_e,ye({gutterBottom:!0,component:"div",ownerState:a,ref:n,className:Pt(s.root,i)},o))}),a_e=o_e;function s_e(e){return an("MuiAppBar",e)}ln("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const l_e=["className","color","enableColorOnDark","position"],u_e=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${pt(t)}`,`position${pt(n)}`]};return un(i,s_e,r)},Hv=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,c_e=kt(cs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${pt(n.position)}`],t[`color${pt(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return ye({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&ye({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&ye({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&ye({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Hv(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Hv(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Hv(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Hv(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),f_e=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=Bt(r,l_e),c=ye({},r,{color:o,position:s,enableColorOnDark:a}),u=u_e(c);return I.jsx(c_e,ye({square:!0,component:"header",ownerState:c,elevation:4,className:Pt(u.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),d_e=f_e;var Uk={};Object.defineProperty(Uk,"__esModule",{value:!0});var OX=Uk.default=void 0,p_e=m_e(U),h_e=OZ;function IX(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(IX=function(r){return r?n:t})(e)}function m_e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=IX(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function g_e(e){return Object.keys(e).length===0}function y_e(e=null){const t=p_e.useContext(h_e.ThemeContext);return!t||g_e(t)?e:t}OX=Uk.default=y_e;var Io="top",is="bottom",os="right",Po="left",jk="auto",Zg=[Io,is,os,Po],bh="start",eg="end",v_e="clippingParents",PX="viewport",cm="popper",b_e="reference",X$=Zg.reduce(function(e,t){return e.concat([t+"-"+bh,t+"-"+eg])},[]),MX=[].concat(Zg,[jk]).reduce(function(e,t){return e.concat([t,t+"-"+bh,t+"-"+eg])},[]),w_e="beforeRead",T_e="read",x_e="afterRead",S_e="beforeMain",C_e="main",A_e="afterMain",__e="beforeWrite",E_e="write",R_e="afterWrite",k_e=[w_e,T_e,x_e,S_e,C_e,A_e,__e,E_e,R_e];function Tl(e){return e?(e.nodeName||"").toLowerCase():null}function fa(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zf(e){var t=fa(e).Element;return e instanceof t||e instanceof Element}function Ka(e){var t=fa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Vk(e){if(typeof ShadowRoot>"u")return!1;var t=fa(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function D_e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ka(o)||!Tl(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function L_e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!Ka(i)||!Tl(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const O_e={name:"applyStyles",enabled:!0,phase:"write",fn:D_e,effect:L_e,requires:["computeStyles"]};function ml(e){return e.split("-")[0]}var Pf=Math.max,M3=Math.min,wh=Math.round;function k_(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function BX(){return!/^((?!chrome|android).)*safari/i.test(k_())}function Th(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ka(e)&&(i=e.offsetWidth>0&&wh(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&wh(r.height)/e.offsetHeight||1);var a=Zf(e)?fa(e):window,s=a.visualViewport,l=!BX()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function qk(e){var t=Th(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function NX(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Vk(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function du(e){return fa(e).getComputedStyle(e)}function I_e(e){return["table","td","th"].indexOf(Tl(e))>=0}function Fc(e){return((Zf(e)?e.ownerDocument:e.document)||window.document).documentElement}function t6(e){return Tl(e)==="html"?e:e.assignedSlot||e.parentNode||(Vk(e)?e.host:null)||Fc(e)}function Q$(e){return!Ka(e)||du(e).position==="fixed"?null:e.offsetParent}function P_e(e){var t=/firefox/i.test(k_()),n=/Trident/i.test(k_());if(n&&Ka(e)){var r=du(e);if(r.position==="fixed")return null}var i=t6(e);for(Vk(i)&&(i=i.host);Ka(i)&&["html","body"].indexOf(Tl(i))<0;){var o=du(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Xg(e){for(var t=fa(e),n=Q$(e);n&&I_e(n)&&du(n).position==="static";)n=Q$(n);return n&&(Tl(n)==="html"||Tl(n)==="body"&&du(n).position==="static")?t:n||P_e(e)||t}function zk(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function c1(e,t,n){return Pf(e,M3(t,n))}function M_e(e,t,n){var r=c1(e,t,n);return r>n?n:r}function $X(){return{top:0,right:0,bottom:0,left:0}}function FX(e){return Object.assign({},$X(),e)}function UX(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var B_e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,FX(typeof t!="number"?t:UX(t,Zg))};function N_e(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ml(n.placement),l=zk(s),c=[Po,os].indexOf(s)>=0,u=c?"height":"width";if(!(!o||!a)){var d=B_e(i.padding,n),p=qk(o),g=l==="y"?Io:Po,y=l==="y"?is:os,b=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],A=a[l]-n.rects.reference[l],x=Xg(o),D=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,O=b/2-A/2,M=d[g],q=D-p[u]-d[y],B=D/2-p[u]/2+O,j=c1(M,B,q),K=l;n.modifiersData[r]=(t={},t[K]=j,t.centerOffset=j-B,t)}}function $_e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||NX(t.elements.popper,i)&&(t.elements.arrow=i))}const F_e={name:"arrow",enabled:!0,phase:"main",fn:N_e,effect:$_e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xh(e){return e.split("-")[1]}var U_e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function j_e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:wh(n*i)/i||0,y:wh(r*i)/i||0}}function eF(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,g=p===void 0?0:p,y=a.y,b=y===void 0?0:y,A=typeof u=="function"?u({x:g,y:b}):{x:g,y:b};g=A.x,b=A.y;var x=a.hasOwnProperty("x"),D=a.hasOwnProperty("y"),O=Po,M=Io,q=window;if(c){var B=Xg(n),j="clientHeight",K="clientWidth";if(B===fa(n)&&(B=Fc(n),du(B).position!=="static"&&s==="absolute"&&(j="scrollHeight",K="scrollWidth")),B=B,i===Io||(i===Po||i===os)&&o===eg){M=is;var oe=d&&B===q&&q.visualViewport?q.visualViewport.height:B[j];b-=oe-r.height,b*=l?1:-1}if(i===Po||(i===Io||i===is)&&o===eg){O=os;var ue=d&&B===q&&q.visualViewport?q.visualViewport.width:B[K];g-=ue-r.width,g*=l?1:-1}}var G=Object.assign({position:s},c&&U_e),P=u===!0?j_e({x:g,y:b},fa(n)):{x:g,y:b};if(g=P.x,b=P.y,l){var T;return Object.assign({},G,(T={},T[M]=D?"0":"",T[O]=x?"0":"",T.transform=(q.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",T))}return Object.assign({},G,(t={},t[M]=D?b+"px":"",t[O]=x?g+"px":"",t.transform="",t))}function V_e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:ml(t.placement),variation:xh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,eF(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,eF(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const q_e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:V_e,data:{}};var Wv={passive:!0};function z_e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=fa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Wv)}),s&&l.addEventListener("resize",n.update,Wv),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Wv)}),s&&l.removeEventListener("resize",n.update,Wv)}}const H_e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:z_e,data:{}};var W_e={left:"right",right:"left",bottom:"top",top:"bottom"};function hb(e){return e.replace(/left|right|bottom|top/g,function(t){return W_e[t]})}var G_e={start:"end",end:"start"};function tF(e){return e.replace(/start|end/g,function(t){return G_e[t]})}function Hk(e){var t=fa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Wk(e){return Th(Fc(e)).left+Hk(e).scrollLeft}function K_e(e,t){var n=fa(e),r=Fc(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=BX();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Wk(e),y:l}}function J_e(e){var t,n=Fc(e),r=Hk(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Pf(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Pf(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Wk(e),l=-r.scrollTop;return du(i||n).direction==="rtl"&&(s+=Pf(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Gk(e){var t=du(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function jX(e){return["html","body","#document"].indexOf(Tl(e))>=0?e.ownerDocument.body:Ka(e)&&Gk(e)?e:jX(t6(e))}function f1(e,t){var n;t===void 0&&(t=[]);var r=jX(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=fa(r),a=i?[o].concat(o.visualViewport||[],Gk(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(f1(t6(a)))}function D_(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Y_e(e,t){var n=Th(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function nF(e,t,n){return t===PX?D_(K_e(e,n)):Zf(t)?Y_e(t,n):D_(J_e(Fc(e)))}function Z_e(e){var t=f1(t6(e)),n=["absolute","fixed"].indexOf(du(e).position)>=0,r=n&&Ka(e)?Xg(e):e;return Zf(r)?t.filter(function(i){return Zf(i)&&NX(i,r)&&Tl(i)!=="body"}):[]}function X_e(e,t,n,r){var i=t==="clippingParents"?Z_e(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,c){var u=nF(e,c,r);return l.top=Pf(u.top,l.top),l.right=M3(u.right,l.right),l.bottom=M3(u.bottom,l.bottom),l.left=Pf(u.left,l.left),l},nF(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function VX(e){var t=e.reference,n=e.element,r=e.placement,i=r?ml(r):null,o=r?xh(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Io:l={x:a,y:t.y-n.height};break;case is:l={x:a,y:t.y+t.height};break;case os:l={x:t.x+t.width,y:s};break;case Po:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?zk(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case bh:l[c]=l[c]-(t[u]/2-n[u]/2);break;case eg:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function tg(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?v_e:s,c=n.rootBoundary,u=c===void 0?PX:c,d=n.elementContext,p=d===void 0?cm:d,g=n.altBoundary,y=g===void 0?!1:g,b=n.padding,A=b===void 0?0:b,x=FX(typeof A!="number"?A:UX(A,Zg)),D=p===cm?b_e:cm,O=e.rects.popper,M=e.elements[y?D:p],q=X_e(Zf(M)?M:M.contextElement||Fc(e.elements.popper),l,u,a),B=Th(e.elements.reference),j=VX({reference:B,element:O,strategy:"absolute",placement:i}),K=D_(Object.assign({},O,j)),oe=p===cm?K:B,ue={top:q.top-oe.top+x.top,bottom:oe.bottom-q.bottom+x.bottom,left:q.left-oe.left+x.left,right:oe.right-q.right+x.right},G=e.modifiersData.offset;if(p===cm&&G){var P=G[i];Object.keys(ue).forEach(function(T){var f=[os,is].indexOf(T)>=0?1:-1,h=[Io,is].indexOf(T)>=0?"y":"x";ue[T]+=P[h]*f})}return ue}function Q_e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?MX:l,u=xh(r),d=u?s?X$:X$.filter(function(y){return xh(y)===u}):Zg,p=d.filter(function(y){return c.indexOf(y)>=0});p.length===0&&(p=d);var g=p.reduce(function(y,b){return y[b]=tg(e,{placement:b,boundary:i,rootBoundary:o,padding:a})[ml(b)],y},{});return Object.keys(g).sort(function(y,b){return g[y]-g[b]})}function eEe(e){if(ml(e)===jk)return[];var t=hb(e);return[tF(e),t,tF(t)]}function tEe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,y=g===void 0?!0:g,b=n.allowedAutoPlacements,A=t.options.placement,x=ml(A),D=x===A,O=l||(D||!y?[hb(A)]:eEe(A)),M=[A].concat(O).reduce(function(ne,F){return ne.concat(ml(F)===jk?Q_e(t,{placement:F,boundary:u,rootBoundary:d,padding:c,flipVariations:y,allowedAutoPlacements:b}):F)},[]),q=t.rects.reference,B=t.rects.popper,j=new Map,K=!0,oe=M[0],ue=0;ue<M.length;ue++){var G=M[ue],P=ml(G),T=xh(G)===bh,f=[Io,is].indexOf(P)>=0,h=f?"width":"height",w=tg(t,{placement:G,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),_=f?T?os:Po:T?is:Io;q[h]>B[h]&&(_=hb(_));var R=hb(_),k=[];if(o&&k.push(w[P]<=0),s&&k.push(w[_]<=0,w[R]<=0),k.every(function(ne){return ne})){oe=G,K=!1;break}j.set(G,k)}if(K)for(var C=y?3:1,E=function(F){var J=M.find(function(se){var pe=j.get(se);if(pe)return pe.slice(0,F).every(function(be){return be})});if(J)return oe=J,"break"},v=C;v>0;v--){var L=E(v);if(L==="break")break}t.placement!==oe&&(t.modifiersData[r]._skip=!0,t.placement=oe,t.reset=!0)}}const nEe={name:"flip",enabled:!0,phase:"main",fn:tEe,requiresIfExists:["offset"],data:{_skip:!1}};function rF(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function iF(e){return[Io,os,is,Po].some(function(t){return e[t]>=0})}function rEe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=tg(t,{elementContext:"reference"}),s=tg(t,{altBoundary:!0}),l=rF(a,r),c=rF(s,i,o),u=iF(l),d=iF(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const iEe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rEe};function oEe(e,t,n){var r=ml(e),i=[Po,Io].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Po,os].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function aEe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=MX.reduce(function(u,d){return u[d]=oEe(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}const sEe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aEe};function lEe(e){var t=e.state,n=e.name;t.modifiersData[n]=VX({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const uEe={name:"popperOffsets",enabled:!0,phase:"read",fn:lEe,data:{}};function cEe(e){return e==="x"?"y":"x"}function fEe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,g=p===void 0?!0:p,y=n.tetherOffset,b=y===void 0?0:y,A=tg(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),x=ml(t.placement),D=xh(t.placement),O=!D,M=zk(x),q=cEe(M),B=t.modifiersData.popperOffsets,j=t.rects.reference,K=t.rects.popper,oe=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,ue=typeof oe=="number"?{mainAxis:oe,altAxis:oe}:Object.assign({mainAxis:0,altAxis:0},oe),G=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(B){if(o){var T,f=M==="y"?Io:Po,h=M==="y"?is:os,w=M==="y"?"height":"width",_=B[M],R=_+A[f],k=_-A[h],C=g?-K[w]/2:0,E=D===bh?j[w]:K[w],v=D===bh?-K[w]:-j[w],L=t.elements.arrow,ne=g&&L?qk(L):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$X(),J=F[f],se=F[h],pe=c1(0,j[w],ne[w]),be=O?j[w]/2-C-pe-J-ue.mainAxis:E-pe-J-ue.mainAxis,Ee=O?-j[w]/2+C+pe+se+ue.mainAxis:v+pe+se+ue.mainAxis,H=t.elements.arrow&&Xg(t.elements.arrow),$=H?M==="y"?H.clientTop||0:H.clientLeft||0:0,Z=(T=G==null?void 0:G[M])!=null?T:0,Y=_+be-Z-$,ie=_+Ee-Z,Te=c1(g?M3(R,Y):R,_,g?Pf(k,ie):k);B[M]=Te,P[M]=Te-_}if(s){var me,le=M==="x"?Io:Po,ve=M==="x"?is:os,Ae=B[q],xe=q==="y"?"height":"width",He=Ae+A[le],Ye=Ae-A[ve],ge=[Io,Po].indexOf(x)!==-1,Pe=(me=G==null?void 0:G[q])!=null?me:0,te=ge?He:Ae-j[xe]-K[xe]-Pe+ue.altAxis,we=ge?Ae+j[xe]+K[xe]-Pe-ue.altAxis:Ye,Be=g&&ge?M_e(te,Ae,we):c1(g?te:He,Ae,g?we:Ye);B[q]=Be,P[q]=Be-Ae}t.modifiersData[r]=P}}const dEe={name:"preventOverflow",enabled:!0,phase:"main",fn:fEe,requiresIfExists:["offset"]};function pEe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function hEe(e){return e===fa(e)||!Ka(e)?Hk(e):pEe(e)}function mEe(e){var t=e.getBoundingClientRect(),n=wh(t.width)/e.offsetWidth||1,r=wh(t.height)/e.offsetHeight||1;return n!==1||r!==1}function gEe(e,t,n){n===void 0&&(n=!1);var r=Ka(t),i=Ka(t)&&mEe(t),o=Fc(t),a=Th(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Tl(t)!=="body"||Gk(o))&&(s=hEe(t)),Ka(t)?(l=Th(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Wk(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function yEe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function vEe(e){var t=yEe(e);return k_e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function bEe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function wEe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var oF={placement:"bottom",modifiers:[],strategy:"absolute"};function aF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function TEe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?oF:i;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},oF,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,g={state:u,setOptions:function(x){var D=typeof x=="function"?x(u.options):x;b(),u.options=Object.assign({},o,u.options,D),u.scrollParents={reference:Zf(s)?f1(s):s.contextElement?f1(s.contextElement):[],popper:f1(l)};var O=vEe(wEe([].concat(r,u.options.modifiers)));return u.orderedModifiers=O.filter(function(M){return M.enabled}),y(),g.update()},forceUpdate:function(){if(!p){var x=u.elements,D=x.reference,O=x.popper;if(aF(D,O)){u.rects={reference:gEe(D,Xg(O),u.options.strategy==="fixed"),popper:qk(O)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(ue){return u.modifiersData[ue.name]=Object.assign({},ue.data)});for(var M=0;M<u.orderedModifiers.length;M++){if(u.reset===!0){u.reset=!1,M=-1;continue}var q=u.orderedModifiers[M],B=q.fn,j=q.options,K=j===void 0?{}:j,oe=q.name;typeof B=="function"&&(u=B({state:u,options:K,name:oe,instance:g})||u)}}}},update:bEe(function(){return new Promise(function(A){g.forceUpdate(),A(u)})}),destroy:function(){b(),p=!0}};if(!aF(s,l))return g;g.setOptions(c).then(function(A){!p&&c.onFirstUpdate&&c.onFirstUpdate(A)});function y(){u.orderedModifiers.forEach(function(A){var x=A.name,D=A.options,O=D===void 0?{}:D,M=A.effect;if(typeof M=="function"){var q=M({state:u,name:x,instance:g,options:O}),B=function(){};d.push(q||B)}})}function b(){d.forEach(function(A){return A()}),d=[]}return g}}var xEe=[H_e,uEe,q_e,O_e,sEe,nEe,dEe,F_e,iEe],SEe=TEe({defaultModifiers:xEe});function CEe(e){return typeof e=="function"?e():e}const AEe=U.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=U.useState(null),l=jr(U.isValidElement(r)?r.ref:null,n);if(ns(()=>{o||s(CEe(i)||document.body)},[i,o]),ns(()=>{if(a&&!o)return S3(n,a),()=>{S3(n,null)}},[n,a,o]),o){if(U.isValidElement(r)){const c={ref:l};return U.cloneElement(r,c)}return I.jsx(U.Fragment,{children:r})}return I.jsx(U.Fragment,{children:a&&Vh.createPortal(r,a)})}),qX=AEe;function _Ee(e){return an("MuiPopper",e)}ln("MuiPopper",["root"]);const EEe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],REe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function kEe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function L_(e){return typeof e=="function"?e():e}function DEe(e){return e.nodeType!==void 0}const LEe=e=>{const{classes:t}=e;return un({root:["root"]},_Ee,t)},OEe={},IEe=U.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:g={},slots:y={},TransitionProps:b}=t,A=Bt(t,EEe),x=U.useRef(null),D=jr(x,n),O=U.useRef(null),M=jr(O,p),q=U.useRef(M);ns(()=>{q.current=M},[M]),U.useImperativeHandle(p,()=>O.current,[]);const B=kEe(u,a),[j,K]=U.useState(B),[oe,ue]=U.useState(L_(i));U.useEffect(()=>{O.current&&O.current.forceUpdate()}),U.useEffect(()=>{i&&ue(L_(i))},[i]),ns(()=>{if(!oe||!c)return;const h=R=>{K(R.placement)};let w=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:R})=>{h(R)}}];l!=null&&(w=w.concat(l)),d&&d.modifiers!=null&&(w=w.concat(d.modifiers));const _=SEe(oe,x.current,ye({placement:B},d,{modifiers:w}));return q.current(_),()=>{_.destroy(),q.current(null)}},[oe,s,l,c,d,B]);const G={placement:j};b!==null&&(G.TransitionProps=b);const P=LEe(t),T=(r=y.root)!=null?r:"div",f=wl({elementType:T,externalSlotProps:g.root,externalForwardedProps:A,additionalProps:{role:"tooltip",ref:D},ownerState:t,className:P.root});return I.jsx(T,ye({},f,{children:typeof o=="function"?o(G):o}))}),PEe=U.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=OEe,popperRef:g,style:y,transition:b=!1,slotProps:A={},slots:x={}}=t,D=Bt(t,REe),[O,M]=U.useState(!0),q=()=>{M(!1)},B=()=>{M(!0)};if(!l&&!u&&(!b||O))return null;let j;if(o)j=o;else if(r){const ue=L_(r);j=ue&&DEe(ue)?Ri(ue).body:Ri(null).body}const K=!u&&l&&(!b||O)?"none":void 0,oe=b?{in:u,onEnter:q,onExited:B}:void 0;return I.jsx(qX,{disablePortal:s,container:j,children:I.jsx(IEe,ye({anchorEl:r,direction:a,disablePortal:s,modifiers:c,ref:n,open:b?!O:u,placement:d,popperOptions:p,popperRef:g,slotProps:A,slots:x},D,{style:ye({position:"fixed",top:0,left:0,display:K},y),TransitionProps:oe,children:i}))})}),MEe=PEe,BEe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],NEe=kt(MEe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$Ee=U.forwardRef(function(t,n){var r;const i=OX(),o=sn({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:g,open:y,placement:b,popperOptions:A,popperRef:x,transition:D,slots:O,slotProps:M}=o,q=Bt(o,BEe),B=(r=O==null?void 0:O.root)!=null?r:l==null?void 0:l.Root,j=ye({anchorEl:a,container:u,disablePortal:d,keepMounted:p,modifiers:g,open:y,placement:b,popperOptions:A,popperRef:x,transition:D},q);return I.jsx(NEe,ye({as:s,direction:i==null?void 0:i.direction,slots:{root:B},slotProps:M??c},j,{ref:n}))}),o0=$Ee,FEe=oo(I.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function UEe(e){return an("MuiChip",e)}const jEe=ln("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),er=jEe,VEe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],qEe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${pt(r)}`,`color${pt(i)}`,s&&"clickable",s&&`clickableColor${pt(i)}`,a&&"deletable",a&&`deletableColor${pt(i)}`,`${l}${pt(i)}`],label:["label",`label${pt(r)}`],avatar:["avatar",`avatar${pt(r)}`,`avatarColor${pt(i)}`],icon:["icon",`icon${pt(r)}`,`iconColor${pt(o)}`],deleteIcon:["deleteIcon",`deleteIcon${pt(r)}`,`deleteIconColor${pt(i)}`,`deleteIcon${pt(l)}Color${pt(i)}`]};return un(c,UEe,t)},zEe=kt("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${er.avatar}`]:t.avatar},{[`& .${er.avatar}`]:t[`avatar${pt(s)}`]},{[`& .${er.avatar}`]:t[`avatarColor${pt(r)}`]},{[`& .${er.icon}`]:t.icon},{[`& .${er.icon}`]:t[`icon${pt(s)}`]},{[`& .${er.icon}`]:t[`iconColor${pt(i)}`]},{[`& .${er.deleteIcon}`]:t.deleteIcon},{[`& .${er.deleteIcon}`]:t[`deleteIcon${pt(s)}`]},{[`& .${er.deleteIcon}`]:t[`deleteIconColor${pt(r)}`]},{[`& .${er.deleteIcon}`]:t[`deleteIcon${pt(l)}Color${pt(r)}`]},t.root,t[`size${pt(s)}`],t[`color${pt(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${pt(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${pt(r)}`],t[l],t[`${l}${pt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return ye({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${er.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${er.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${er.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${er.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${er.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${er.icon}`]:ye({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&ye({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${er.deleteIcon}`]:ye({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Jn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Jn(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Jn(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${er.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${er.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>ye({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Jn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${er.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${er.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>ye({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${er.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${er.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${er.avatar}`]:{marginLeft:4},[`& .${er.avatarSmall}`]:{marginLeft:2},[`& .${er.icon}`]:{marginLeft:4},[`& .${er.iconSmall}`]:{marginLeft:2},[`& .${er.deleteIcon}`]:{marginRight:5},[`& .${er.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Jn(e.palette[t.color].main,.7)}`,[`&.${er.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${er.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Jn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${er.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Jn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),HEe=kt("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${pt(r)}`]]}})(({ownerState:e})=>ye({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function sF(e){return e.key==="Backspace"||e.key==="Delete"}const WEe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:g,onDelete:y,onKeyDown:b,onKeyUp:A,size:x="medium",variant:D="filled",tabIndex:O,skipFocusWhenDisabled:M=!1}=r,q=Bt(r,VEe),B=U.useRef(null),j=jr(B,n),K=k=>{k.stopPropagation(),y&&y(k)},oe=k=>{k.currentTarget===k.target&&sF(k)&&k.preventDefault(),b&&b(k)},ue=k=>{k.currentTarget===k.target&&(y&&sF(k)?y(k):k.key==="Escape"&&B.current&&B.current.blur()),A&&A(k)},G=a!==!1&&g?!0:a,P=G||y?_c:l||"div",T=ye({},r,{component:P,disabled:u,size:x,color:s,iconColor:U.isValidElement(d)&&d.props.color||s,onDelete:!!y,clickable:G,variant:D}),f=qEe(T),h=P===_c?ye({component:l||"div",focusVisibleClassName:f.focusVisible},y&&{disableRipple:!0}):{};let w=null;y&&(w=c&&U.isValidElement(c)?U.cloneElement(c,{className:Pt(c.props.className,f.deleteIcon),onClick:K}):I.jsx(FEe,{className:Pt(f.deleteIcon),onClick:K}));let _=null;i&&U.isValidElement(i)&&(_=U.cloneElement(i,{className:Pt(f.avatar,i.props.className)}));let R=null;return d&&U.isValidElement(d)&&(R=U.cloneElement(d,{className:Pt(f.icon,d.props.className)})),I.jsxs(zEe,ye({as:P,className:Pt(f.root,o),disabled:G&&u?!0:void 0,onClick:g,onKeyDown:oe,onKeyUp:ue,ref:j,tabIndex:M&&u?-1:O,ownerState:T},h,q,{children:[_||R,I.jsx(HEe,{className:Pt(f.label),ownerState:T,children:p}),w]}))}),Pp=WEe;function GEe({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const KEe=U.createContext(void 0),JEe=KEe;function zX(){return U.useContext(JEe)}const YEe=oo(I.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 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function ZEe(e){return an("MuiAvatar",e)}ln("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const XEe=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],QEe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return un({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},ZEe,t)},eRe=kt("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:ye({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:ye({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),tRe=kt("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),nRe=kt(YEe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function rRe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=U.useState(!1);return U.useEffect(()=>{if(!n&&!r)return;o(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&o("loaded")},s.onerror=()=>{a&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const iRe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:s="div",slots:l={},slotProps:c={},imgProps:u,sizes:d,src:p,srcSet:g,variant:y="circular"}=r,b=Bt(r,XEe);let A=null;const x=rRe(ye({},u,{src:p,srcSet:g})),D=p||g,O=D&&x!=="error",M=ye({},r,{colorDefault:!O,component:s,variant:y}),q=QEe(M),[B,j]=E_("img",{className:q.img,elementType:tRe,externalForwardedProps:{slots:l,slotProps:{img:ye({},u,c.img)}},additionalProps:{alt:i,src:p,srcSet:g,sizes:d},ownerState:M});return O?A=I.jsx(B,ye({},j)):o||o===0?A=o:D&&i?A=i[0]:A=I.jsx(nRe,{ownerState:M,className:q.fallback}),I.jsx(eRe,ye({as:s,ownerState:M,className:Pt(q.root,a),ref:n},b,{children:A}))}),oRe=iRe,aRe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sRe={entering:{opacity:1},entered:{opacity:1}},lRe=U.forwardRef(function(t,n){const r=Jr(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:g,onExited:y,onExiting:b,style:A,timeout:x=i,TransitionComponent:D=Xw}=t,O=Bt(t,aRe),M=U.useRef(null),q=jr(M,s.ref,n),B=f=>h=>{if(f){const w=M.current;h===void 0?f(w):f(w,h)}},j=B(p),K=B((f,h)=>{Fk(f);const w=Ac({style:A,timeout:x,easing:l},{mode:"enter"});f.style.webkitTransition=r.transitions.create("opacity",w),f.style.transition=r.transitions.create("opacity",w),u&&u(f,h)}),oe=B(d),ue=B(b),G=B(f=>{const h=Ac({style:A,timeout:x,easing:l},{mode:"exit"});f.style.webkitTransition=r.transitions.create("opacity",h),f.style.transition=r.transitions.create("opacity",h),g&&g(f)}),P=B(y),T=f=>{o&&o(M.current,f)};return I.jsx(D,ye({appear:a,in:c,nodeRef:M,onEnter:K,onEntered:oe,onEntering:j,onExit:G,onExited:P,onExiting:ue,addEndListener:T,timeout:x},O,{children:(f,h)=>U.cloneElement(s,ye({style:ye({opacity:0,visibility:f==="exited"&&!c?"hidden":void 0},sRe[f],A,s.props.style),ref:q},h))}))}),n6=lRe;function uRe(e){return an("MuiBackdrop",e)}ln("MuiBackdrop",["root","invisible"]);const cRe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],fRe=e=>{const{classes:t,invisible:n}=e;return un({root:["root",n&&"invisible"]},uRe,t)},dRe=kt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>ye({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),pRe=U.forwardRef(function(t,n){var r,i,o;const a=sn({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:d={},invisible:p=!1,open:g,slotProps:y={},slots:b={},TransitionComponent:A=n6,transitionDuration:x}=a,D=Bt(a,cRe),O=ye({},a,{component:c,invisible:p}),M=fRe(O),q=(r=y.root)!=null?r:d.root;return I.jsx(A,ye({in:g,timeout:x},D,{children:I.jsx(dRe,ye({"aria-hidden":!0},q,{as:(i=(o=b.root)!=null?o:u.Root)!=null?i:c,className:Pt(M.root,l,q==null?void 0:q.className),ownerState:ye({},O,q==null?void 0:q.ownerState),classes:M,ref:n,children:s}))}))}),HX=pRe;function hRe(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=vZ({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!i&&(a=!0);const{badgeContent:s,max:l=r}=a?o:e,c=s&&Number(s)>l?`${l}+`:s;return{badgeContent:s,invisible:a,max:l,displayValue:c}}function mRe(e){return an("MuiBadge",e)}const gRe=ln("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Fu=gRe,yRe=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],jx=10,Vx=4,vRe=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:a={}}=e,s={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${pt(n.vertical)}${pt(n.horizontal)}`,`anchorOrigin${pt(n.vertical)}${pt(n.horizontal)}${pt(i)}`,`overlap${pt(i)}`,t!=="default"&&`color${pt(t)}`]};return un(s,mRe,a)},bRe=kt("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),wRe=kt("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${pt(n.anchorOrigin.vertical)}${pt(n.anchorOrigin.horizontal)}${pt(n.overlap)}`],n.color!=="default"&&t[`color${pt(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:jx*2,lineHeight:1,padding:"0 6px",height:jx*2,borderRadius:jx,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,i;return((r=e.vars)!=null?r:e).palette[n].main&&((i=e.vars)!=null?i:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Vx,height:Vx*2,minWidth:Vx*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Fu.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),TRe=U.forwardRef(function(t,n){var r,i,o,a,s,l;const c=sn({props:t,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:d,component:p,components:g={},componentsProps:y={},children:b,overlap:A="rectangular",color:x="default",invisible:D=!1,max:O=99,badgeContent:M,slots:q,slotProps:B,showZero:j=!1,variant:K="standard"}=c,oe=Bt(c,yRe),{badgeContent:ue,invisible:G,max:P,displayValue:T}=hRe({max:O,invisible:D,badgeContent:M,showZero:j}),f=vZ({anchorOrigin:u,color:x,overlap:A,variant:K,badgeContent:M}),h=G||ue==null&&K!=="dot",{color:w=x,overlap:_=A,anchorOrigin:R=u,variant:k=K}=h?f:c,C=k!=="dot"?T:void 0,E=ye({},c,{badgeContent:ue,invisible:h,max:P,displayValue:C,showZero:j,anchorOrigin:R,color:w,overlap:_,variant:k}),v=vRe(E),L=(r=(i=q==null?void 0:q.root)!=null?i:g.Root)!=null?r:bRe,ne=(o=(a=q==null?void 0:q.badge)!=null?a:g.Badge)!=null?o:wRe,F=(s=B==null?void 0:B.root)!=null?s:y.root,J=(l=B==null?void 0:B.badge)!=null?l:y.badge,se=wl({elementType:L,externalSlotProps:F,externalForwardedProps:oe,additionalProps:{ref:n,as:p},ownerState:E,className:Pt(F==null?void 0:F.className,v.root,d)}),pe=wl({elementType:ne,externalSlotProps:J,ownerState:E,className:Pt(v.badge,J==null?void 0:J.className)});return I.jsxs(L,ye({},se,{children:[b,I.jsx(ne,ye({},pe,{children:C}))]}))}),xRe=TRe,SRe=ln("MuiBox",["root"]),CRe=SRe,ARe=qg(),_Re=I3e({themeId:vh,defaultTheme:ARe,defaultClassName:CRe.root,generateClassName:ik.generate}),ct=_Re;function ERe(e){return an("MuiButton",e)}const RRe=ln("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Gv=RRe,kRe=U.createContext({}),DRe=kRe,LRe=U.createContext(void 0),ORe=LRe,IRe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],PRe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${pt(t)}`,`size${pt(i)}`,`${o}Size${pt(i)}`,`color${pt(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${pt(i)}`],endIcon:["icon","endIcon",`iconSize${pt(i)}`]},l=un(s,ERe,a);return ye({},a,l)},WX=e=>ye({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),MRe=kt(_c,{shouldForwardProp:e=>wu(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${pt(n.color)}`],t[`size${pt(n.size)}`],t[`${n.variant}Size${pt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return ye({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":ye({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":ye({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Gv.focusVisible}`]:ye({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Gv.disabled}`]:ye({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Jn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Gv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Gv.disabled}`]:{boxShadow:"none"}}),BRe=kt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${pt(n.size)}`]]}})(({ownerState:e})=>ye({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},WX(e))),NRe=kt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${pt(n.size)}`]]}})(({ownerState:e})=>ye({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},WX(e))),$Re=U.forwardRef(function(t,n){const r=U.useContext(DRe),i=U.useContext(ORe),o=G1(r,t),a=sn({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:y,focusVisibleClassName:b,fullWidth:A=!1,size:x="medium",startIcon:D,type:O,variant:M="text"}=a,q=Bt(a,IRe),B=ye({},a,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:g,fullWidth:A,size:x,type:O,variant:M}),j=PRe(B),K=D&&I.jsx(BRe,{className:j.startIcon,ownerState:B,children:D}),oe=y&&I.jsx(NRe,{className:j.endIcon,ownerState:B,children:y}),ue=i||"";return I.jsxs(MRe,ye({ownerState:B,className:Pt(r.className,j.root,u,ue),component:c,disabled:d,focusRipple:!g,focusVisibleClassName:Pt(j.focusVisible,b),ref:n,type:O},q,{classes:j,children:[K,s,oe]}))}),r6=$Re;function FRe(e){return an("MuiCard",e)}ln("MuiCard",["root"]);const URe=["className","raised"],jRe=e=>{const{classes:t}=e;return un({root:["root"]},FRe,t)},VRe=kt(cs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),qRe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=Bt(r,URe),s=ye({},r,{raised:o}),l=jRe(s);return I.jsx(VRe,ye({className:Pt(l.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))}),zRe=qRe;function HRe(e){return an("MuiCardActions",e)}ln("MuiCardActions",["root","spacing"]);const WRe=["disableSpacing","className"],GRe=e=>{const{classes:t,disableSpacing:n}=e;return un({root:["root",!n&&"spacing"]},HRe,t)},KRe=kt("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>ye({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),JRe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiCardActions"}),{disableSpacing:i=!1,className:o}=r,a=Bt(r,WRe),s=ye({},r,{disableSpacing:i}),l=GRe(s);return I.jsx(KRe,ye({className:Pt(l.root,o),ownerState:s,ref:n},a))}),YRe=JRe;function ZRe(e){return an("MuiCardContent",e)}ln("MuiCardContent",["root"]);const XRe=["className","component"],QRe=e=>{const{classes:t}=e;return un({root:["root"]},ZRe,t)},e7e=kt("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),t7e=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=Bt(r,XRe),s=ye({},r,{component:o}),l=QRe(s);return I.jsx(e7e,ye({as:o,className:Pt(l.root,i),ownerState:s,ref:n},a))}),n7e=t7e;function r7e(e){return an("MuiCardHeader",e)}const i7e=ln("MuiCardHeader",["root","avatar","action","content","title","subheader"]),lF=i7e,o7e=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],a7e=e=>{const{classes:t}=e;return un({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},r7e,t)},s7e=kt("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>ye({[`& .${lF.title}`]:t.title,[`& .${lF.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),l7e=kt("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),u7e=kt("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),c7e=kt("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),f7e=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiCardHeader"}),{action:i,avatar:o,className:a,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:p}=r,g=Bt(r,o7e),y=ye({},r,{component:s,disableTypography:l}),b=a7e(y);let A=d;A!=null&&A.type!==tn&&!l&&(A=I.jsx(tn,ye({variant:o?"body2":"h5",className:b.title,component:"span",display:"block"},p,{children:A})));let x=c;return x!=null&&x.type!==tn&&!l&&(x=I.jsx(tn,ye({variant:o?"body2":"body1",className:b.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:x}))),I.jsxs(s7e,ye({className:Pt(b.root,a),as:s,ref:n,ownerState:y},g,{children:[o&&I.jsx(l7e,{className:b.avatar,ownerState:y,children:o}),I.jsxs(c7e,{className:b.content,ownerState:y,children:[A,x]}),i&&I.jsx(u7e,{className:b.action,ownerState:y,children:i})]}))}),d7e=f7e;function p7e(e){return an("PrivateSwitchBase",e)}ln("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const h7e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],m7e=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${pt(i)}`],input:["input"]};return un(o,p7e,t)},g7e=kt(_c)(({ownerState:e})=>ye({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),y7e=kt("input",{shouldForwardProp:wu})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),v7e=U.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:g,inputRef:y,name:b,onBlur:A,onChange:x,onFocus:D,readOnly:O,required:M=!1,tabIndex:q,type:B,value:j}=t,K=Bt(t,h7e),[oe,ue]=fk({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),G=zX(),P=k=>{D&&D(k),G&&G.onFocus&&G.onFocus(k)},T=k=>{A&&A(k),G&&G.onBlur&&G.onBlur(k)},f=k=>{if(k.nativeEvent.defaultPrevented)return;const C=k.target.checked;ue(C),x&&x(k,C)};let h=l;G&&typeof h>"u"&&(h=G.disabled);const w=B==="checkbox"||B==="radio",_=ye({},t,{checked:oe,disabled:h,disableFocusRipple:c,edge:u}),R=m7e(_);return I.jsxs(g7e,ye({component:"span",className:Pt(R.root,a),centerRipple:!0,focusRipple:!c,disabled:h,tabIndex:null,role:void 0,onFocus:P,onBlur:T,ownerState:_,ref:n},K,{children:[I.jsx(y7e,ye({autoFocus:r,checked:i,defaultChecked:s,className:R.input,disabled:h,id:w?p:void 0,name:b,onChange:f,readOnly:O,ref:y,required:M,ownerState:_,tabIndex:q,type:B},B==="checkbox"&&j===void 0?{}:{value:j},g)),oe?o:d]}))}),b7e=v7e,w7e=oo(I.jsx("path",{d:"M19 5v14H5V5h14m0-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-2z"}),"CheckBoxOutlineBlank"),T7e=oo(I.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),x7e=oo(I.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function S7e(e){return an("MuiCheckbox",e)}const C7e=ln("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),qx=C7e,A7e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],_7e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${pt(r)}`,`size${pt(i)}`]},a=un(o,S7e,t);return ye({},t,a)},E7e=kt(b7e,{shouldForwardProp:e=>wu(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${pt(n.size)}`],n.color!=="default"&&t[`color${pt(n.color)}`]]}})(({theme:e,ownerState:t})=>ye({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Jn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${qx.checked}, &.${qx.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${qx.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),R7e=I.jsx(T7e,{}),k7e=I.jsx(w7e,{}),D7e=I.jsx(x7e,{}),L7e=U.forwardRef(function(t,n){var r,i;const o=sn({props:t,name:"MuiCheckbox"}),{checkedIcon:a=R7e,color:s="primary",icon:l=k7e,indeterminate:c=!1,indeterminateIcon:u=D7e,inputProps:d,size:p="medium",className:g}=o,y=Bt(o,A7e),b=c?u:l,A=c?u:a,x=ye({},o,{color:s,indeterminate:c,size:p}),D=_7e(x);return I.jsx(E7e,ye({type:"checkbox",inputProps:ye({"data-indeterminate":c},d),icon:U.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:p}),checkedIcon:U.cloneElement(A,{fontSize:(i=A.props.fontSize)!=null?i:p}),ownerState:x,ref:n,className:Pt(D.root,g)},y,{classes:D}))}),GX=L7e;function uF(e){return e.substring(2).toLowerCase()}function O7e(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function a0(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,a=U.useRef(!1),s=U.useRef(null),l=U.useRef(!1),c=U.useRef(!1);U.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=jr(t.ref,s),d=Ha(y=>{const b=c.current;c.current=!1;const A=Ri(s.current);if(!l.current||!s.current||"clientX"in y&&O7e(y,A))return;if(a.current){a.current=!1;return}let x;y.composedPath?x=y.composedPath().indexOf(s.current)>-1:x=!A.documentElement.contains(y.target)||s.current.contains(y.target),!x&&(n||!b)&&i(y)}),p=y=>b=>{c.current=!0;const A=t.props[y];A&&A(b)},g={ref:u};return o!==!1&&(g[o]=p(o)),U.useEffect(()=>{if(o!==!1){const y=uF(o),b=Ri(s.current),A=()=>{a.current=!0};return b.addEventListener(y,d),b.addEventListener("touchmove",A),()=>{b.removeEventListener(y,d),b.removeEventListener("touchmove",A)}}},[d,o]),r!==!1&&(g[r]=p(r)),U.useEffect(()=>{if(r!==!1){const y=uF(r),b=Ri(s.current);return b.addEventListener(y,d),()=>{b.removeEventListener(y,d)}}},[d,r]),I.jsx(U.Fragment,{children:U.cloneElement(t,g)})}const I7e=I4e({createStyledComponent:kt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${pt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>sn({props:e,name:"MuiContainer"})}),Qg=I7e;function P7e(e){const t=Ri(e);return t.body===e?Sc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function d1(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function cF(e){return parseInt(Sc(e).getComputedStyle(e).paddingRight,10)||0}function M7e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function fF(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!M7e(a);s&&l&&d1(a,i)})}function zx(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function B7e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(P7e(r)){const a=yZ(Ri(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${cF(r)+a}px`;const s=Ri(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${cF(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Ri(r).body;else{const a=r.parentElement,s=Sc(r);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function N7e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class $7e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&d1(t.modalRef,!1);const i=N7e(n);fF(n,t.mount,t.modalRef,i,!0);const o=zx(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=zx(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=B7e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=zx(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&d1(t.modalRef,n),fF(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&d1(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const F7e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function U7e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function j7e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function V7e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||j7e(e))}function q7e(e){const t=[],n=[];return Array.from(e.querySelectorAll(F7e)).forEach((r,i)=>{const o=U7e(r);o===-1||!V7e(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function z7e(){return!0}function H7e(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=q7e,isEnabled:a=z7e,open:s}=e,l=U.useRef(!1),c=U.useRef(null),u=U.useRef(null),d=U.useRef(null),p=U.useRef(null),g=U.useRef(!1),y=U.useRef(null),b=jr(t.ref,y),A=U.useRef(null);U.useEffect(()=>{!s||!y.current||(g.current=!n)},[n,s]),U.useEffect(()=>{if(!s||!y.current)return;const O=Ri(y.current);return y.current.contains(O.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),g.current&&y.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),U.useEffect(()=>{if(!s||!y.current)return;const O=Ri(y.current),M=j=>{A.current=j,!(r||!a()||j.key!=="Tab")&&O.activeElement===y.current&&j.shiftKey&&(l.current=!0,u.current&&u.current.focus())},q=()=>{const j=y.current;if(j===null)return;if(!O.hasFocus()||!a()||l.current){l.current=!1;return}if(j.contains(O.activeElement)||r&&O.activeElement!==c.current&&O.activeElement!==u.current)return;if(O.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let K=[];if((O.activeElement===c.current||O.activeElement===u.current)&&(K=o(y.current)),K.length>0){var oe,ue;const G=!!((oe=A.current)!=null&&oe.shiftKey&&((ue=A.current)==null?void 0:ue.key)==="Tab"),P=K[0],T=K[K.length-1];typeof P!="string"&&typeof T!="string"&&(G?T.focus():P.focus())}else j.focus()};O.addEventListener("focusin",q),O.addEventListener("keydown",M,!0);const B=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&q()},50);return()=>{clearInterval(B),O.removeEventListener("focusin",q),O.removeEventListener("keydown",M,!0)}},[n,r,i,a,s,o]);const x=O=>{d.current===null&&(d.current=O.relatedTarget),g.current=!0,p.current=O.target;const M=t.props.onFocus;M&&M(O)},D=O=>{d.current===null&&(d.current=O.relatedTarget),g.current=!0};return I.jsxs(U.Fragment,{children:[I.jsx("div",{tabIndex:s?0:-1,onFocus:D,ref:c,"data-testid":"sentinelStart"}),U.cloneElement(t,{ref:b,onFocus:x}),I.jsx("div",{tabIndex:s?0:-1,onFocus:D,ref:u,"data-testid":"sentinelEnd"})]})}function W7e(e){return typeof e=="function"?e():e}function G7e(e){return e?e.props.hasOwnProperty("in"):!1}const K7e=new $7e;function J7e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=K7e,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=U.useRef({}),g=U.useRef(null),y=U.useRef(null),b=jr(y,d),[A,x]=U.useState(!u),D=G7e(l);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const M=()=>Ri(g.current),q=()=>(p.current.modalRef=y.current,p.current.mount=g.current,p.current),B=()=>{i.mount(q(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},j=Ha(()=>{const w=W7e(t)||M().body;i.add(q(),w),y.current&&B()}),K=U.useCallback(()=>i.isTopModal(q()),[i]),oe=Ha(w=>{g.current=w,w&&(u&&K()?B():y.current&&d1(y.current,O))}),ue=U.useCallback(()=>{i.remove(q(),O)},[O,i]);U.useEffect(()=>()=>{ue()},[ue]),U.useEffect(()=>{u?j():(!D||!o)&&ue()},[u,ue,D,o,j]);const G=w=>_=>{var R;(R=w.onKeyDown)==null||R.call(w,_),!(_.key!=="Escape"||_.which===229||!K())&&(n||(_.stopPropagation(),c&&c(_,"escapeKeyDown")))},P=w=>_=>{var R;(R=w.onClick)==null||R.call(w,_),_.target===_.currentTarget&&c&&c(_,"backdropClick")};return{getRootProps:(w={})=>{const _=A3(e);delete _.onTransitionEnter,delete _.onTransitionExited;const R=ye({},_,w);return ye({role:"presentation"},R,{onKeyDown:G(R),ref:b})},getBackdropProps:(w={})=>{const _=w;return ye({"aria-hidden":!0},_,{onClick:P(_),open:u})},getTransitionProps:()=>{const w=()=>{x(!1),a&&a()},_=()=>{x(!0),s&&s(),o&&ue()};return{onEnter:p_(w,l==null?void 0:l.props.onEnter),onExited:p_(_,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:oe,isTopModal:K,exited:A,hasTransition:D}}function Y7e(e){return an("MuiModal",e)}ln("MuiModal",["root","hidden","backdrop"]);const Z7e=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],X7e=e=>{const{open:t,exited:n,classes:r}=e;return un({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Y7e,r)},Q7e=kt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>ye({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),eke=kt(HX,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),tke=U.forwardRef(function(t,n){var r,i,o,a,s,l;const c=sn({name:"MuiModal",props:t}),{BackdropComponent:u=eke,BackdropProps:d,className:p,closeAfterTransition:g=!1,children:y,container:b,component:A,components:x={},componentsProps:D={},disableAutoFocus:O=!1,disableEnforceFocus:M=!1,disableEscapeKeyDown:q=!1,disablePortal:B=!1,disableRestoreFocus:j=!1,disableScrollLock:K=!1,hideBackdrop:oe=!1,keepMounted:ue=!1,onBackdropClick:G,open:P,slotProps:T,slots:f}=c,h=Bt(c,Z7e),w=ye({},c,{closeAfterTransition:g,disableAutoFocus:O,disableEnforceFocus:M,disableEscapeKeyDown:q,disablePortal:B,disableRestoreFocus:j,disableScrollLock:K,hideBackdrop:oe,keepMounted:ue}),{getRootProps:_,getBackdropProps:R,getTransitionProps:k,portalRef:C,isTopModal:E,exited:v,hasTransition:L}=J7e(ye({},w,{rootRef:n})),ne=ye({},w,{exited:v}),F=X7e(ne),J={};if(y.props.tabIndex===void 0&&(J.tabIndex="-1"),L){const{onEnter:Z,onExited:Y}=k();J.onEnter=Z,J.onExited=Y}const se=(r=(i=f==null?void 0:f.root)!=null?i:x.Root)!=null?r:Q7e,pe=(o=(a=f==null?void 0:f.backdrop)!=null?a:x.Backdrop)!=null?o:u,be=(s=T==null?void 0:T.root)!=null?s:D.root,Ee=(l=T==null?void 0:T.backdrop)!=null?l:D.backdrop,H=wl({elementType:se,externalSlotProps:be,externalForwardedProps:h,getSlotProps:_,additionalProps:{ref:n,as:A},ownerState:ne,className:Pt(p,be==null?void 0:be.className,F==null?void 0:F.root,!ne.open&&ne.exited&&(F==null?void 0:F.hidden))}),$=wl({elementType:pe,externalSlotProps:Ee,additionalProps:d,getSlotProps:Z=>R(ye({},Z,{onClick:Y=>{G&&G(Y),Z!=null&&Z.onClick&&Z.onClick(Y)}})),className:Pt(Ee==null?void 0:Ee.className,d==null?void 0:d.className,F==null?void 0:F.backdrop),ownerState:ne});return!ue&&!P&&(!L||v)?null:I.jsx(qX,{ref:C,container:b,disablePortal:B,children:I.jsxs(se,ye({},H,{children:[!oe&&u?I.jsx(pe,ye({},$)):null,I.jsx(H7e,{disableEnforceFocus:M,disableAutoFocus:O,disableRestoreFocus:j,isEnabled:E,open:P,children:U.cloneElement(y,J)})]}))})}),Kk=tke;function nke(e){return an("MuiDialog",e)}const rke=ln("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Hx=rke,ike=U.createContext({}),KX=ike,oke=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ake=kt(HX,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ske=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${pt(n)}`],paper:["paper",`paperScroll${pt(n)}`,`paperWidth${pt(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return un(a,nke,t)},lke=kt(Kk,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),uke=kt("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${pt(n.scroll)}`]]}})(({ownerState:e})=>ye({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),cke=kt(cs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${pt(n.scroll)}`],t[`paperWidth${pt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>ye({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Hx.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${Hx.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Hx.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),fke=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDialog"}),i=Jr(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:g=!1,fullWidth:y=!1,maxWidth:b="sm",onBackdropClick:A,onClick:x,onClose:D,open:O,PaperComponent:M=cs,PaperProps:q={},scroll:B="paper",TransitionComponent:j=n6,transitionDuration:K=o,TransitionProps:oe}=r,ue=Bt(r,oke),G=ye({},r,{disableEscapeKeyDown:p,fullScreen:g,fullWidth:y,maxWidth:b,scroll:B}),P=ske(G),T=U.useRef(),f=R=>{T.current=R.target===R.currentTarget},h=R=>{x&&x(R),T.current&&(T.current=null,A&&A(R),D&&D(R,"backdropClick"))},w=ck(s),_=U.useMemo(()=>({titleId:w}),[w]);return I.jsx(lke,ye({className:Pt(P.root,d),closeAfterTransition:!0,components:{Backdrop:ake},componentsProps:{backdrop:ye({transitionDuration:K,as:l},c)},disableEscapeKeyDown:p,onClose:D,open:O,ref:n,onClick:h,ownerState:G},ue,{children:I.jsx(j,ye({appear:!0,in:O,timeout:K,role:"presentation"},oe,{children:I.jsx(uke,{className:Pt(P.container),onMouseDown:f,ownerState:G,children:I.jsx(cke,ye({as:M,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":w},q,{className:Pt(P.paper,q.className),ownerState:G,children:I.jsx(KX.Provider,{value:_,children:u})}))})}))}))}),i6=fke;function dke(e){return an("MuiDialogActions",e)}ln("MuiDialogActions",["root","spacing"]);const pke=["className","disableSpacing"],hke=e=>{const{classes:t,disableSpacing:n}=e;return un({root:["root",!n&&"spacing"]},dke,t)},mke=kt("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>ye({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),gke=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=Bt(r,pke),s=ye({},r,{disableSpacing:o}),l=hke(s);return I.jsx(mke,ye({className:Pt(l.root,i),ownerState:s,ref:n},a))}),JX=gke;function yke(e){return an("MuiDialogContent",e)}ln("MuiDialogContent",["root","dividers"]);function vke(e){return an("MuiDialogTitle",e)}const bke=ln("MuiDialogTitle",["root"]),wke=bke,Tke=["className","dividers"],xke=e=>{const{classes:t,dividers:n}=e;return un({root:["root",n&&"dividers"]},yke,t)},Ske=kt("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>ye({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${wke.root} + &`]:{paddingTop:0}})),Cke=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=Bt(r,Tke),s=ye({},r,{dividers:o}),l=xke(s);return I.jsx(Ske,ye({className:Pt(l.root,i),ownerState:s,ref:n},a))}),o6=Cke;function Ake(e){return an("MuiDialogContentText",e)}ln("MuiDialogContentText",["root"]);const _ke=["children","className"],Eke=e=>{const{classes:t}=e,r=un({root:["root"]},Ake,t);return ye({},t,r)},Rke=kt(tn,{shouldForwardProp:e=>wu(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kke=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDialogContentText"}),{className:i}=r,o=Bt(r,_ke),a=Eke(o);return I.jsx(Rke,ye({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:o,className:Pt(a.root,i)},r,{classes:a}))}),Dke=kke,Lke=["className","id"],Oke=e=>{const{classes:t}=e;return un({root:["root"]},vke,t)},Ike=kt(tn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Pke=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDialogTitle"}),{className:i,id:o}=r,a=Bt(r,Lke),s=r,l=Oke(s),{titleId:c=o}=U.useContext(KX);return I.jsx(Ike,ye({component:"h2",className:Pt(l.root,i),ownerState:s,ref:n,variant:"h6",id:o??c},a))}),YX=Pke;function Mke(e){return an("MuiDivider",e)}const Bke=ln("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dF=Bke,Nke=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$ke=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return un({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},Mke,r)},Fke=kt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>ye({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Jn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>ye({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>ye({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>ye({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>ye({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Uke=kt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>ye({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),ZX=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=s!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,y=Bt(r,Nke),b=ye({},r,{absolute:i,component:s,flexItem:l,light:c,orientation:u,role:d,textAlign:p,variant:g}),A=$ke(b);return I.jsx(Fke,ye({as:s,className:Pt(A.root,a),role:d,ref:n,ownerState:b},y,{children:o?I.jsx(Uke,{className:A.wrapper,ownerState:b,children:o}):null}))});ZX.muiSkipListHighlight=!0;const Sh=ZX,jke=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Vke(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=Sc(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=o.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function qke(e){return typeof e=="function"?e():e}function Kv(e,t,n){const r=qke(n),i=Vke(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const zke=U.forwardRef(function(t,n){const r=Jr(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:u="down",easing:d=i,in:p,onEnter:g,onEntered:y,onEntering:b,onExit:A,onExited:x,onExiting:D,style:O,timeout:M=o,TransitionComponent:q=Xw}=t,B=Bt(t,jke),j=U.useRef(null),K=jr(l.ref,j,n),oe=R=>k=>{R&&(k===void 0?R(j.current):R(j.current,k))},ue=oe((R,k)=>{Kv(u,R,c),Fk(R),g&&g(R,k)}),G=oe((R,k)=>{const C=Ac({timeout:M,style:O,easing:d},{mode:"enter"});R.style.webkitTransition=r.transitions.create("-webkit-transform",ye({},C)),R.style.transition=r.transitions.create("transform",ye({},C)),R.style.webkitTransform="none",R.style.transform="none",b&&b(R,k)}),P=oe(y),T=oe(D),f=oe(R=>{const k=Ac({timeout:M,style:O,easing:d},{mode:"exit"});R.style.webkitTransition=r.transitions.create("-webkit-transform",k),R.style.transition=r.transitions.create("transform",k),Kv(u,R,c),A&&A(R)}),h=oe(R=>{R.style.webkitTransition="",R.style.transition="",x&&x(R)}),w=R=>{a&&a(j.current,R)},_=U.useCallback(()=>{j.current&&Kv(u,j.current,c)},[u,c]);return U.useEffect(()=>{if(p||u==="down"||u==="right")return;const R=uk(()=>{j.current&&Kv(u,j.current,c)}),k=Sc(j.current);return k.addEventListener("resize",R),()=>{R.clear(),k.removeEventListener("resize",R)}},[u,p,c]),U.useEffect(()=>{p||_()},[p,_]),I.jsx(q,ye({nodeRef:j,onEnter:ue,onEntered:P,onEntering:G,onExit:f,onExited:h,onExiting:T,addEndListener:w,appear:s,in:p,timeout:M},B,{children:(R,k)=>U.cloneElement(l,ye({ref:K,style:ye({visibility:R==="exited"&&!p?"hidden":void 0},O,l.props.style)},k))}))}),Jk=zke;function Hke(e){return an("MuiDrawer",e)}ln("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Wke=["BackdropProps"],Gke=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],XX=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},Kke=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${pt(n)}`,r!=="temporary"&&`paperAnchorDocked${pt(n)}`]};return un(i,Hke,t)},Jke=kt(Kk,{name:"MuiDrawer",slot:"Root",overridesResolver:XX})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),pF=kt("div",{shouldForwardProp:wu,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:XX})({flex:"0 0 auto"}),Yke=kt(cs,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${pt(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${pt(n.anchor)}`]]}})(({theme:e,ownerState:t})=>ye({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),QX={left:"right",right:"left",top:"down",bottom:"up"};function Zke(e){return["left","right"].indexOf(e)!==-1}function Xke({direction:e},t){return e==="rtl"&&Zke(t)?QX[t]:t}const Qke=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiDrawer"}),i=Jr(),o=Uw(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:g}={},onClose:y,open:b=!1,PaperProps:A={},SlideProps:x,TransitionComponent:D=Jk,transitionDuration:O=a,variant:M="temporary"}=r,q=Bt(r.ModalProps,Wke),B=Bt(r,Gke),j=U.useRef(!1);U.useEffect(()=>{j.current=!0},[]);const K=Xke({direction:o?"rtl":"ltr"},s),ue=ye({},r,{anchor:s,elevation:d,open:b,variant:M},B),G=Kke(ue),P=I.jsx(Yke,ye({elevation:M==="temporary"?d:0,square:!0},A,{className:Pt(G.paper,A.className),ownerState:ue,children:c}));if(M==="permanent")return I.jsx(pF,ye({className:Pt(G.root,G.docked,u),ownerState:ue,ref:n},B,{children:P}));const T=I.jsx(D,ye({in:b,direction:QX[K],timeout:O,appear:j.current},x,{children:P}));return M==="persistent"?I.jsx(pF,ye({className:Pt(G.root,G.docked,u),ownerState:ue,ref:n},B,{children:T})):I.jsx(Jke,ye({BackdropProps:ye({},l,g,{transitionDuration:O}),className:Pt(G.root,G.modal,u),open:b,ownerState:ue,onClose:y,hideBackdrop:p,ref:n},B,q,{children:T}))}),eQ=Qke,eDe=j4e({createStyledComponent:kt("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>sn({props:e,name:"MuiStack"})}),tDe=eDe;function nDe(e){return an("MuiFormControlLabel",e)}const rDe=ln("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Vm=rDe,iDe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],oDe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,a={root:["root",n&&"disabled",`labelPlacement${pt(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return un(a,nDe,t)},aDe=kt("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vm.label}`]:t.label},t.root,t[`labelPlacement${pt(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>ye({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Vm.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Vm.label}`]:{[`&.${Vm.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),sDe=kt("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Vm.error}`]:{color:(e.vars||e).palette.error.main}})),lDe=U.forwardRef(function(t,n){var r,i;const o=sn({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:p="end",required:g,slotProps:y={}}=o,b=Bt(o,iDe),A=zX(),x=(r=c??l.props.disabled)!=null?r:A==null?void 0:A.disabled,D=g??l.props.required,O={disabled:x,required:D};["checked","name","onChange","value","inputRef"].forEach(oe=>{typeof l.props[oe]>"u"&&typeof o[oe]<"u"&&(O[oe]=o[oe])});const M=GEe({props:o,muiFormControl:A,states:["error"]}),q=ye({},o,{disabled:x,labelPlacement:p,required:D,error:M.error}),B=oDe(q),j=(i=y.typography)!=null?i:s.typography;let K=d;return K!=null&&K.type!==tn&&!u&&(K=I.jsx(tn,ye({component:"span"},j,{className:Pt(B.label,j==null?void 0:j.className),children:K}))),I.jsxs(aDe,ye({className:Pt(B.root,a),ownerState:q,ref:n},b,{children:[U.cloneElement(l,O),D?I.jsxs(tDe,{display:"block",children:[K,I.jsxs(sDe,{ownerState:q,"aria-hidden":!0,className:B.asterisk,children:[" ","*"]})]}):K]}))}),tQ=lDe,uDe=U.createContext(),hF=uDe;function cDe(e){return an("MuiGrid",e)}const fDe=[0,1,2,3,4,5,6,7,8,9,10],dDe=["column-reverse","column","row-reverse","row"],pDe=["nowrap","wrap-reverse","wrap"],fm=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],ng=ln("MuiGrid",["root","container","item","zeroMinWidth",...fDe.map(e=>`spacing-xs-${e}`),...dDe.map(e=>`direction-xs-${e}`),...pDe.map(e=>`wrap-xs-${e}`),...fm.map(e=>`grid-xs-${e}`),...fm.map(e=>`grid-sm-${e}`),...fm.map(e=>`grid-md-${e}`),...fm.map(e=>`grid-lg-${e}`),...fm.map(e=>`grid-xl-${e}`)]),hDe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Xp(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function mDe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let o={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Of({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[i]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let c={};if(t.container&&t.item&&t.columnSpacing!==0){const u=e.spacing(t.columnSpacing);if(u!=="0px"){const d=`calc(${l} + ${Xp(u)})`;c={flexBasis:d,maxWidth:d}}}o=ye({flexBasis:l,flexGrow:0,maxWidth:l},c)}return e.breakpoints.values[i]===0?Object.assign(r,o):r[e.breakpoints.up(i)]=o,r},{})}function gDe({theme:e,ownerState:t}){const n=Of({values:t.direction,breakpoints:e.breakpoints.values});return $o({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${ng.item}`]={maxWidth:"none"}),i})}function nQ({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,o)=>e[i]-e[o]);return r.slice(0,r.indexOf(n))}function yDe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const o=Of({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=nQ({breakpoints:e.breakpoints.values,values:o})),i=$o({theme:e},o,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{marginTop:`-${Xp(u)}`,[`& > .${ng.item}`]:{paddingTop:Xp(u)}}:(c=a)!=null&&c.includes(l)?{}:{marginTop:0,[`& > .${ng.item}`]:{paddingTop:0}}})}return i}function vDe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const o=Of({values:r,breakpoints:e.breakpoints.values});let a;typeof o=="object"&&(a=nQ({breakpoints:e.breakpoints.values,values:o})),i=$o({theme:e},o,(s,l)=>{var c;const u=e.spacing(s);return u!=="0px"?{width:`calc(100% + ${Xp(u)})`,marginLeft:`-${Xp(u)}`,[`& > .${ng.item}`]:{paddingLeft:Xp(u)}}:(c=a)!=null&&c.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${ng.item}`]:{paddingLeft:0}}})}return i}function bDe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const o=e[i];Number(o)>0&&r.push(n[`spacing-${i}-${String(o)}`])}),r}const wDe=kt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:o,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:c}=n;let u=[];r&&(u=bDe(a,c,t));const d=[];return c.forEach(p=>{const g=n[p];g&&d.push(t[`grid-${p}-${String(g)}`])}),[t.root,r&&t.container,o&&t.item,l&&t.zeroMinWidth,...u,i!=="row"&&t[`direction-xs-${String(i)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...d]}})(({ownerState:e})=>ye({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),gDe,yDe,vDe,mDe);function TDe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const o=`spacing-${r}-${String(i)}`;n.push(o)}}),n}const xDe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:o,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let c=[];n&&(c=TDe(o,l));const u=[];l.forEach(p=>{const g=e[p];g&&u.push(`grid-${p}-${String(g)}`)});const d={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth",...c,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...u]};return un(d,cDe,t)},SDe=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiGrid"}),{breakpoints:i}=Jr(),o=jg(r),{className:a,columns:s,columnSpacing:l,component:c="div",container:u=!1,direction:d="row",item:p=!1,rowSpacing:g,spacing:y=0,wrap:b="wrap",zeroMinWidth:A=!1}=o,x=Bt(o,hDe),D=g||y,O=l||y,M=U.useContext(hF),q=u?s||12:M,B={},j=ye({},x);i.keys.forEach(ue=>{x[ue]!=null&&(B[ue]=x[ue],delete j[ue])});const K=ye({},o,{columns:q,container:u,direction:d,item:p,rowSpacing:D,columnSpacing:O,wrap:b,zeroMinWidth:A,spacing:y},B,{breakpoints:i.keys}),oe=xDe(K);return I.jsx(hF.Provider,{value:q,children:I.jsx(wDe,ye({ownerState:K,className:Pt(oe.root,a),as:c,ref:n},j))})}),Wx=SDe,CDe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function O_(e){return`scale(${e}, ${e**2})`}const ADe={entering:{opacity:1,transform:O_(1)},entered:{opacity:1,transform:"none"}},Gx=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),rQ=U.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:g,style:y,timeout:b="auto",TransitionComponent:A=Xw}=t,x=Bt(t,CDe),D=ic(),O=U.useRef(),M=Jr(),q=U.useRef(null),B=jr(q,o.ref,n),j=h=>w=>{if(h){const _=q.current;w===void 0?h(_):h(_,w)}},K=j(u),oe=j((h,w)=>{Fk(h);const{duration:_,delay:R,easing:k}=Ac({style:y,timeout:b,easing:a},{mode:"enter"});let C;b==="auto"?(C=M.transitions.getAutoHeightDuration(h.clientHeight),O.current=C):C=_,h.style.transition=[M.transitions.create("opacity",{duration:C,delay:R}),M.transitions.create("transform",{duration:Gx?C:C*.666,delay:R,easing:k})].join(","),l&&l(h,w)}),ue=j(c),G=j(g),P=j(h=>{const{duration:w,delay:_,easing:R}=Ac({style:y,timeout:b,easing:a},{mode:"exit"});let k;b==="auto"?(k=M.transitions.getAutoHeightDuration(h.clientHeight),O.current=k):k=w,h.style.transition=[M.transitions.create("opacity",{duration:k,delay:_}),M.transitions.create("transform",{duration:Gx?k:k*.666,delay:Gx?_:_||k*.333,easing:R})].join(","),h.style.opacity=0,h.style.transform=O_(.75),d&&d(h)}),T=j(p),f=h=>{b==="auto"&&D.start(O.current||0,h),r&&r(q.current,h)};return I.jsx(A,ye({appear:i,in:s,nodeRef:q,onEnter:oe,onEntered:ue,onEntering:K,onExit:P,onExited:T,onExiting:G,addEndListener:f,timeout:b==="auto"?null:b},x,{children:(h,w)=>U.cloneElement(o,ye({style:ye({opacity:0,transform:O_(.75),visibility:h==="exited"&&!s?"hidden":void 0},ADe[h],y,o.props.style),ref:B},w))}))});rQ.muiSupportAuto=!0;const B3=rQ,_De=["initialWidth","width"],ac=["xs","sm","md","lg","xl"],EDe=(e,t,n=!0)=>n?ac.indexOf(e)<=ac.indexOf(t):ac.indexOf(e)<ac.indexOf(t),RDe=(e,t,n=!1)=>n?ac.indexOf(t)<=ac.indexOf(e):ac.indexOf(t)<ac.indexOf(e),kDe=(e={})=>t=>{const{withTheme:n=!1,noSSR:r=!1,initialWidth:i}=e;function o(a){const s=Jr(),l=a.theme||s,c=sk({theme:l,name:"MuiWithWidth",props:a}),{initialWidth:u,width:d}=c,p=Bt(c,_De),[g,y]=U.useState(!1);ns(()=>{y(!0)},[]);const A=l.breakpoints.keys.slice().reverse().reduce((D,O)=>{const M=Vs(l.breakpoints.up(O));return!D&&M?O:D},null),x=ye({width:d||(g||r?A:void 0)||u||i},n?{theme:l}:{},p);return x.width===void 0?null:I.jsx(t,ye({},x))}return o};function DDe(e){const{children:t,only:n,width:r}=e,i=Jr();let o=!0;if(n)if(Array.isArray(n))for(let a=0;a<n.length;a+=1){const s=n[a];if(r===s){o=!1;break}}else n&&r===n&&(o=!1);if(o)for(let a=0;a<i.breakpoints.keys.length;a+=1){const s=i.breakpoints.keys[a],l=e[`${s}Up`],c=e[`${s}Down`];if(l&&EDe(s,r)||c&&RDe(s,r)){o=!1;break}}return o?I.jsx(U.Fragment,{children:t}):null}const LDe=kDe()(DDe);function ODe(e){return an("PrivateHiddenCss",e)}ln("PrivateHiddenCss",["root","xlDown","xlUp","onlyXl","lgDown","lgUp","onlyLg","mdDown","mdUp","onlyMd","smDown","smUp","onlySm","xsDown","xsUp","onlyXs"]);const IDe=["children","className","only"],PDe=e=>{const{classes:t,breakpoints:n}=e,r={root:["root",...n.map(({breakpoint:i,dir:o})=>o==="only"?`${o}${pt(i)}`:`${i}${pt(o)}`)]};return un(r,ODe,t)},MDe=kt("div",{name:"PrivateHiddenCss",slot:"Root"})(({theme:e,ownerState:t})=>{const n={display:"none"};return ye({},t.breakpoints.map(({breakpoint:r,dir:i})=>i==="only"?{[e.breakpoints.only(r)]:n}:i==="up"?{[e.breakpoints.up(r)]:n}:{[e.breakpoints.down(r)]:n}).reduce((r,i)=>(Object.keys(i).forEach(o=>{r[o]=i[o]}),r),{}))});function BDe(e){const{children:t,className:n,only:r}=e,i=Bt(e,IDe),o=Jr(),a=[];for(let c=0;c<o.breakpoints.keys.length;c+=1){const u=o.breakpoints.keys[c],d=i[`${u}Up`],p=i[`${u}Down`];d&&a.push({breakpoint:u,dir:"up"}),p&&a.push({breakpoint:u,dir:"down"})}r&&(Array.isArray(r)?r:[r]).forEach(u=>{a.push({breakpoint:u,dir:"only"})});const s=ye({},e,{breakpoints:a}),l=PDe(s);return I.jsx(MDe,{className:Pt(l.root,n),ownerState:s,children:t})}const NDe=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];function iQ(e){const{implementation:t="js",lgDown:n=!1,lgUp:r=!1,mdDown:i=!1,mdUp:o=!1,smDown:a=!1,smUp:s=!1,xlDown:l=!1,xlUp:c=!1,xsDown:u=!1,xsUp:d=!1}=e,p=Bt(e,NDe);return t==="js"?I.jsx(LDe,ye({lgDown:n,lgUp:r,mdDown:i,mdUp:o,smDown:a,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:d},p)):I.jsx(BDe,ye({lgDown:n,lgUp:r,mdDown:i,mdUp:o,smDown:a,smUp:s,xlDown:l,xlUp:c,xsDown:u,xsUp:d},p))}function $De(e){return an("MuiIcon",e)}const FDe=ln("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),jAt=FDe,UDe=["baseClassName","className","color","component","fontSize"],jDe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${pt(t)}`,`fontSize${pt(n)}`]};return un(i,$De,r)},VDe=kt("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${pt(n.color)}`],t[`fontSize${pt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),oQ=U.forwardRef(function(t,n){const r=sn({props:t,name:"MuiIcon"}),{baseClassName:i="material-icons",className:o,color:a="inherit",component:s="span",fontSize:l="medium"}=r,c=Bt(r,UDe),u=ye({},r,{baseClassName:i,color:a,component:s,fontSize:l}),d=jDe(u);return I.jsx(VDe,ye({as:s,className:Pt(i,"notranslate",d.root,o),ownerState:u,"aria-hidden":!0,ref:n},c))});oQ.muiName="Icon";const qDe=oQ;function zDe(e){return an("MuiLinearProgress",e)}const HDe=ln("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),VAt=HDe,WDe=["className","color","value","valueBuffer","variant"];let s0=e=>e,mF,gF,yF,vF,bF,wF;const I_=4,GDe=El(mF||(mF=s0`
199
199
  0% {
200
200
  left: -35%;
201
201
  right: 100%;
@@ -273,7 +273,7 @@ use chrome, FireFox or Internet Explorer 11`)}var t=Mn,n=Cu,r=t.Buffer,i=t.kMaxL
273
273
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[MV]=this[MV]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Am(a);r[s]||(hWe(i,a),r[s]=!0)}return ut.isArray(t)?t.forEach(o):o(t),this}};W6.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ut.reduceDescriptors(W6.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ut.freezeMethods(W6);const Bs=W6;function K8(e,t){const n=this||e9,r=t||n,i=Bs.from(r.headers);let o=r.data;return ut.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Jne(e){return!!(e&&e.__CANCEL__)}function v0(e,t,n){En.call(this,e??"canceled",En.ERR_CANCELED,t,n),this.name="CanceledError"}ut.inherits(v0,En,{__CANCEL__:!0});function Yne(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new En("Request failed with status code "+n.status,[En.ERR_BAD_REQUEST,En.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function mWe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function gWe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];a||(a=c),n[i]=l,r[i]=c;let d=o,p=0;for(;d!==i;)p+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const g=u&&c-u;return g?Math.round(p*1e3/g):void 0}}function yWe(e,t){let n=0;const r=1e3/t;let i=null;return function(){const a=this===!0,s=Date.now();if(a||s-n>r)return i&&(clearTimeout(i),i=null),n=s,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),e.apply(null,arguments)),r-(s-n)))}}const r4=(e,t,n=3)=>{let r=0;const i=gWe(50,250);return yWe(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,c=i(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:o,lengthComputable:s!=null};d[t?"download":"upload"]=!0,e(d)},n)},vWe=Ms.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=ut.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),bWe=Ms.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];ut.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ut.isString(r)&&a.push("path="+r),ut.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function wWe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function TWe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zne(e,t){return e&&!wWe(t)?TWe(e,t):t}const BV=e=>e instanceof Bs?{...e}:e;function od(e,t){t=t||{};const n={};function r(c,u,d){return ut.isPlainObject(c)&&ut.isPlainObject(u)?ut.merge.call({caseless:d},c,u):ut.isPlainObject(u)?ut.merge({},u):ut.isArray(u)?u.slice():u}function i(c,u,d){if(ut.isUndefined(u)){if(!ut.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function o(c,u){if(!ut.isUndefined(u))return r(void 0,u)}function a(c,u){if(ut.isUndefined(u)){if(!ut.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u)=>i(BV(c),BV(u),!0)};return ut.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||i,p=d(e[u],t[u],u);ut.isUndefined(p)&&d!==s||(n[u]=p)}),n}const Xne=e=>{const t=od({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=Bs.from(a),t.url=Wne(Zne(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(ut.isFormData(n)){if(Ms.hasStandardBrowserEnv||Ms.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Ms.hasStandardBrowserEnv&&(r&&ut.isFunction(r)&&(r=r(t)),r||r!==!1&&vWe(t.url))){const c=i&&o&&bWe.read(o);c&&a.set(i,c)}return t},xWe=typeof XMLHttpRequest<"u",SWe=xWe&&function(e){return new Promise(function(n,r){const i=Xne(e);let o=i.data;const a=Bs.from(i.headers).normalize();let{responseType:s}=i,l;function c(){i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let u=new XMLHttpRequest;u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout;function d(){if(!u)return;const g=Bs.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:e,request:u};Yne(function(x){n(x),c()},function(x){r(x),c()},b),u=null}"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new En("Request aborted",En.ECONNABORTED,i,u)),u=null)},u.onerror=function(){r(new En("Network Error",En.ERR_NETWORK,i,u)),u=null},u.ontimeout=function(){let y=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const b=i.transitional||Gne;i.timeoutErrorMessage&&(y=i.timeoutErrorMessage),r(new En(y,b.clarifyTimeoutError?En.ETIMEDOUT:En.ECONNABORTED,i,u)),u=null},o===void 0&&a.setContentType(null),"setRequestHeader"in u&&ut.forEach(a.toJSON(),function(y,b){u.setRequestHeader(b,y)}),ut.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),s&&s!=="json"&&(u.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&u.addEventListener("progress",r4(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",r4(i.onUploadProgress)),(i.cancelToken||i.signal)&&(l=g=>{u&&(r(!g||g.type?new v0(null,e,u):g),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const p=mWe(i.url);if(p&&Ms.protocols.indexOf(p)===-1){r(new En("Unsupported protocol "+p+":",En.ERR_BAD_REQUEST,e));return}u.send(o||null)})},CWe=(e,t)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,a();const c=l instanceof Error?l:this.reason;n.abort(c instanceof En?c:new v0(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{i(new En(`timeout ${t} of ms exceeded`,En.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]},AWe=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},_We=async function*(e,t,n){for await(const r of e)yield*AWe(ArrayBuffer.isView(r)?r:await n(String(r)),t)},NV=(e,t,n,r,i)=>{const o=_We(e,t,i);let a=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:c}=await o.next();if(l){s.close(),r();return}let u=c.byteLength;n&&n(a+=u),s.enqueue(new Uint8Array(c))},cancel(s){return r(s),o.return()}},{highWaterMark:2})},$V=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},G6=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Qne=G6&&typeof ReadableStream=="function",_E=G6&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),EWe=Qne&&(()=>{let e=!1;const t=new Request(Ms.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),FV=64*1024,EE=Qne&&!!(()=>{try{return ut.isReadableStream(new Response("").body)}catch{}})(),i4={stream:EE&&(e=>e.body)};G6&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!i4[t]&&(i4[t]=ut.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new En(`Response type '${t}' is not supported`,En.ERR_NOT_SUPPORT,r)})})})(new Response);const RWe=async e=>{if(e==null)return 0;if(ut.isBlob(e))return e.size;if(ut.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(ut.isArrayBufferView(e))return e.byteLength;if(ut.isURLSearchParams(e)&&(e=e+""),ut.isString(e))return(await _E(e)).byteLength},kWe=async(e,t)=>{const n=ut.toFiniteNumber(e.getContentLength());return n??RWe(t)},DWe=G6&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Xne(e);c=c?(c+"").toLowerCase():"text";let[g,y]=i||o||a?CWe([i,o],a):[],b,A;const x=()=>{!b&&setTimeout(()=>{g&&g.unsubscribe()}),b=!0};let D;try{if(l&&EWe&&n!=="get"&&n!=="head"&&(D=await kWe(u,r))!==0){let B=new Request(t,{method:"POST",body:r,duplex:"half"}),j;ut.isFormData(r)&&(j=B.headers.get("content-type"))&&u.setContentType(j),B.body&&(r=NV(B.body,FV,$V(D,r4(l)),null,_E))}ut.isString(d)||(d=d?"cors":"omit"),A=new Request(t,{...p,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let O=await fetch(A);const M=EE&&(c==="stream"||c==="response");if(EE&&(s||M)){const B={};["status","statusText","headers"].forEach(K=>{B[K]=O[K]});const j=ut.toFiniteNumber(O.headers.get("content-length"));O=new Response(NV(O.body,FV,s&&$V(j,r4(s,!0)),M&&x,_E),B)}c=c||"text";let q=await i4[ut.findKey(i4,c)||"text"](O,e);return!M&&x(),y&&y(),await new Promise((B,j)=>{Yne(B,j,{data:q,headers:Bs.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:A})})}catch(O){throw x(),O&&O.name==="TypeError"&&/fetch/i.test(O.message)?Object.assign(new En("Network Error",En.ERR_NETWORK,e,A),{cause:O.cause||O}):En.from(O,O&&O.code,e,A)}}),RE={http:GHe,xhr:SWe,fetch:DWe};ut.forEach(RE,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const UV=e=>`- ${e}`,LWe=e=>ut.isFunction(e)||e===null||e===!1,ere={getAdapter:e=>{e=ut.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!LWe(n)&&(r=RE[(a=String(n)).toLowerCase()],r===void 0))throw new En(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
274
274
  `+o.map(UV).join(`
275
275
  `):" "+UV(o[0]):"as no adapter specified";throw new En("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:RE};function J8(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new v0(null,e)}function jV(e){return J8(e),e.headers=Bs.from(e.headers),e.data=K8.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ere.getAdapter(e.adapter||e9.adapter)(e).then(function(r){return J8(e),r.data=K8.call(e,e.transformResponse,r),r.headers=Bs.from(r.headers),r},function(r){return Jne(r)||(J8(e),r&&r.response&&(r.response.data=K8.call(e,e.transformResponse,r.response),r.response.headers=Bs.from(r.response.headers))),Promise.reject(r)})}const tre="1.7.2",t9={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{t9[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const VV={};t9.transitional=function(t,n,r){function i(o,a){return"[Axios v"+tre+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new En(i(a," has been removed"+(n?" in "+n:"")),En.ERR_DEPRECATED);return n&&!VV[a]&&(VV[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function OWe(e,t,n){if(typeof e!="object")throw new En("options must be an object",En.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new En("option "+o+" must be "+l,En.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new En("Unknown option "+o,En.ERR_BAD_OPTION)}}const kE={assertOptions:OWe,validators:t9},qu=kE.validators;let o4=class{constructor(t){this.defaults=t,this.interceptors={request:new PV,response:new PV}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
276
- `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=od(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&kE.assertOptions(r,{silentJSONParsing:qu.transitional(qu.boolean),forcedJSONParsing:qu.transitional(qu.boolean),clarifyTimeoutError:qu.transitional(qu.boolean)},!1),i!=null&&(ut.isFunction(i)?n.paramsSerializer={serialize:i}:kE.assertOptions(i,{encode:qu.function,serialize:qu.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&ut.merge(o.common,o[n.method]);o&&ut.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Bs.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(l=l&&b.synchronous,s.unshift(b.fulfilled,b.rejected))});const c=[];this.interceptors.response.forEach(function(b){c.push(b.fulfilled,b.rejected)});let u,d=0,p;if(!l){const y=[jV.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,c),p=y.length,u=Promise.resolve(n);d<p;)u=u.then(y[d++],y[d++]);return u}p=s.length;let g=n;for(d=0;d<p;){const y=s[d++],b=s[d++];try{g=y(g)}catch(A){b.call(this,A);break}}try{u=jV.call(this,g)}catch(y){return Promise.reject(y)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=od(this.defaults,t);const n=Zne(t.baseURL,t.url);return Wne(n,t.params,t.paramsSerializer)}};ut.forEach(["delete","get","head","options"],function(t){o4.prototype[t]=function(n,r){return this.request(od(r||{},{method:t,url:n,data:(r||{}).data}))}});ut.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(od(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}o4.prototype[t]=n(),o4.prototype[t+"Form"]=n(!0)});const Mb=o4;let IWe=class nre{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new v0(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new nre(function(i){t=i}),cancel:t}}};const PWe=IWe;function MWe(e){return function(n){return e.apply(null,n)}}function BWe(e){return ut.isObject(e)&&e.isAxiosError===!0}const DE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(DE).forEach(([e,t])=>{DE[t]=e});const NWe=DE;function rre(e){const t=new Mb(e),n=Pne(Mb.prototype.request,t);return ut.extend(n,Mb.prototype,t,{allOwnKeys:!0}),ut.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return rre(od(e,i))},n}const Mr=rre(e9);Mr.Axios=Mb;Mr.CanceledError=v0;Mr.CancelToken=PWe;Mr.isCancel=Jne;Mr.VERSION=tre;Mr.toFormData=H6;Mr.AxiosError=En;Mr.Cancel=Mr.CanceledError;Mr.all=function(t){return Promise.all(t)};Mr.spread=MWe;Mr.isAxiosError=BWe;Mr.mergeConfig=od;Mr.AxiosHeaders=Bs;Mr.formToJSON=e=>Kne(ut.isHTMLForm(e)?new FormData(e):e);Mr.getAdapter=ere.getAdapter;Mr.HttpStatusCode=NWe;Mr.default=Mr;const{Axios:$We,AxiosError:FWe,CanceledError:UWe,isCancel:jWe,CancelToken:VWe,VERSION:qWe,all:zWe,Cancel:HWe,isAxiosError:WWe,spread:GWe,toFormData:KWe,AxiosHeaders:JWe,HttpStatusCode:YWe,formToJSON:ZWe,getAdapter:XWe,mergeConfig:QWe}=Mr,eGe=Object.freeze(Object.defineProperty({__proto__:null,Axios:$We,AxiosError:FWe,AxiosHeaders:JWe,Cancel:HWe,CancelToken:VWe,CanceledError:UWe,HttpStatusCode:YWe,VERSION:qWe,all:zWe,default:Mr,formToJSON:ZWe,getAdapter:XWe,isAxiosError:WWe,isCancel:jWe,mergeConfig:QWe,spread:GWe,toFormData:KWe},Symbol.toStringTag,{value:"Module"}));var tGe=Object.defineProperty,nGe=(e,t,n)=>t in e?tGe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rGe=(e,t,n)=>(nGe(e,typeof t!="symbol"?t+"":t,n),n);class iGe{constructor({api:t}){rGe(this,"api"),this.api=t}async getUserPublicInfo({did:t}){const{data:n}=await this.api.get("/api/user",{params:{did:t}});return n}async getUserPrivacyConfig({did:t}){const{data:n}=await this.api.get("/api/user/privacy/config",{params:{did:t}});return n}async saveUserPrivacyConfig(t){const{data:n}=await this.api.post("/api/user/privacy/config",t);return n}async getUserNotificationConfig(){const{data:t}=await this.api.get("/api/user/notification/config");return t}async saveUserNotificationConfig(t){const{data:n}=await this.api.post("/api/user/notification/config",t);return n}async testNotificationWebhook(t){const{data:n}=await this.api.put("/api/user/notification/webhook",t);return n}async getProfileUrl({did:t,locale:n}){const r=`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/user`;return Mh(r,{did:t,locale:n})}async getProfile(){const{data:t}=await this.api.get("/api/user/profile");return t}async refreshProfile(){await this.api.put("/api/user/refreshProfile")}async saveProfile({locale:t}){const{data:n}=await this.api.put("/api/user/profile",{locale:t});return n}async logout({visitorId:t}){const{data:n}=await this.api.post("/api/user/logout",{visitorId:t});return n}}class ire{getSessionToken(){return Ob.get(rn.SESSION_TOKEN_STORAGE_KEY)}setSessionToken(t){Ob.set(rn.SESSION_TOKEN_STORAGE_KEY,t)}removeSessionToken(){Ob.remove(rn.SESSION_TOKEN_STORAGE_KEY)}getRefreshToken(){return localStorage.getItem(rn.REFRESH_TOKEN_STORAGE_KEY)}setRefreshToken(t){localStorage.setItem(rn.REFRESH_TOKEN_STORAGE_KEY,t)}removeRefreshToken(){localStorage.removeItem(rn.REFRESH_TOKEN_STORAGE_KEY)}}var oGe=Object.defineProperty,aGe=(e,t,n)=>t in e?oGe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sGe=(e,t,n)=>(aGe(e,typeof t!="symbol"?t+"":t,n),n);class lGe{constructor({api:t}){sGe(this,"api"),this.api=t}async getUserSessions({did:t}){const{data:n}=await this.api.get("/api/user-session",{params:{userDid:t}});return n}}const Y8=new lHe({maxSize:30,maxAge:60*1e3});class ore{async getBlocklet(t,n=!1){if(!n&&Y8.has(t))return Y8.get(t);const r=Mh(An(t,"__blocklet__.js"),{type:"json",t:Date.now()}),o=await(await fetch(r)).json();return Y8.set(t,o),o}async loadBlocklet(){return new Promise((t,n)=>{if(typeof window>"u"||typeof document>"u"){n();return}const r=document.createElement("script");let i="/";window.blocklet&&window.blocklet.prefix&&(i=window.blocklet.prefix),r.src=Mh(An(i,"__blocklet__.js"),{t:Date.now()}),r.onload=()=>{t()},r.onerror=()=>{n()},document.head.append(r)})}getPrefix(t){var n;return t?(t==null?void 0:t.prefix)||"/":typeof window>"u"||typeof document>"u"?null:((n=window.blocklet)==null?void 0:n.prefix)||"/"}}const uGe="1.16.28",cGe=(e=0)=>new Promise(t=>{setTimeout(()=>{t()},e)}),are=e=>`Bearer ${encodeURIComponent(e)}`,fGe="__visitor_id",dGe=()=>localStorage.getItem(fGe);async function qV(e,t=300){e.metaData.endTime=+new Date;const{startTime:n,endTime:r}=e.metaData,i=r-n;i<t&&await cGe(t-i),delete e.metaData}const sre=(e,t)=>{const n={...e==null?void 0:e.headers,"x-blocklet-js-sdk-version":uGe},r=dGe();[void 0,null].includes(r)||(n["x-blocklet-visitor-id"]=r);const i=Mr.create({...e,headers:n});return t!=null&&t.lazy&&(i.interceptors.request.use(o=>(o.metaData={startTime:+new Date},o),o=>Promise.reject(o)),i.interceptors.response.use(async o=>(await qV(o.config,t==null?void 0:t.lazyTime),o),async o=>(await qV(o.response.config,t==null?void 0:t.lazyTime),Promise.reject(o)))),i};async function pGe(e){if(!e)throw new Error("Refresh token not found");const t=sre({baseURL:rn.WELLKNOWN_SERVICE_PATH_PREFIX,timeout:10*1e3,headers:{authorization:are(e)}}),{data:n}=await t.post("/api/did/refreshSession");return n}function lre({getSessionToken:e,setSessionToken:t,removeSessionToken:n,getRefreshToken:r,setRefreshToken:i,removeRefreshToken:o,onRefreshTokenError:a,onRefreshTokenSuccess:s},l,c){let u=null;const d=sre({timeout:30*1e3,...l},c);return d.interceptors.request.use(async p=>{if(!Ob.get(rn.SESSION_TOKEN_STORAGE_KEY)){const g=e();g&&(p.headers.authorization=are(g))}return u&&await u,p},p=>Promise.reject(p)),d.interceptors.response.use(p=>p,async p=>{var y;const g=p.config;if(g.headers={...g==null?void 0:g.headers},((y=p==null?void 0:p.response)==null?void 0:y.status)===401&&!g._retry){g._retry=!0;try{u||(u=pGe(r()));const b=await u;return t(b.nextToken),i(b.nextRefreshToken),typeof s=="function"&&s(b),d(g)}catch(b){return n(),o(),typeof a=="function"&&a(b),Promise.reject(p)}finally{u=null}}return Promise.reject(p)}),d}var hGe=Object.defineProperty,mGe=(e,t,n)=>t in e?hGe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_m=(e,t,n)=>(mGe(e,typeof t!="symbol"?t+"":t,n),n);class ure{constructor(){_m(this,"api"),_m(this,"user"),_m(this,"userSession"),_m(this,"token"),_m(this,"blocklet");const t=new ire,n=lre({getSessionToken:t.getSessionToken,setSessionToken:t.setSessionToken,removeSessionToken:t.removeSessionToken,getRefreshToken:t.getRefreshToken,setRefreshToken:t.setRefreshToken,removeRefreshToken:t.removeRefreshToken,onRefreshTokenError:()=>{console.error("Failed to refresh token")},onRefreshTokenSuccess:()=>{}},{baseURL:rn.WELLKNOWN_SERVICE_PATH_PREFIX});this.user=new iGe({api:n}),this.userSession=new lGe({api:n}),this.token=t,this.api=n,this.blocklet=new ore}}function gGe(e={},t={}){const n=new ire,r=new ore;return e.baseURL===void 0&&(e.baseURL=r.getPrefix()),lre({getSessionToken:n.getSessionToken,setSessionToken:n.setSessionToken,removeSessionToken:n.removeSessionToken,getRefreshToken:n.getRefreshToken,setRefreshToken:n.setRefreshToken,removeRefreshToken:n.removeRefreshToken,onRefreshTokenError:()=>{console.error("Failed to refresh token")},onRefreshTokenSuccess:()=>{}},e,t)}const yGe="@arcblock/did-connect",vGe="2.10.11",bGe="Client side library to work with DID Connect by ArcBlock.",wGe=["react","arcblock","component"],TGe="wangshijun<wangshijun2010@gmail.com>",xGe="https://github.com/ArcBlock/ux#readme",SGe="Apache-2.0",CGe="lib/index.js",AGe="lib/index.js",_Ge={type:"git",url:"git+https://github.com/ArcBlock/ux.git"},EGe={lint:"eslint src tests --ext js --ext jsx","lint:fix":"npm run lint -- --fix",build:"babel --config-file ./babel.config.es.js src --out-dir lib --copy-files --no-copy-ignored",autoexports:"node tools/auto-exports.js",watch:"babel --config-file ./babel.config.es.js src --out-dir lib -w --copy-files --no-copy-ignored",precommit:"CI=1 npm run lint",prepush:"CI=1 npm run lint",prepublish:"npm run build",test:"node tools/jest.js",coverage:"npm run test -- --coverage"},RGe={url:"https://github.com/ArcBlock/ux/issues"},kGe={"@arcblock/bridge":"^2.10.11","@arcblock/icons":"^2.10.11","@arcblock/react-hooks":"^2.10.11","@arcblock/ws":"^1.18.126","@fontsource/inter":"^5.0.16","@iconify-icons/logos":"^1.2.36","@iconify-icons/material-symbols":"^1.2.58","@iconify/react":"^4.1.1",ahooks:"^3.7.10",axios:"^1.7.2",buffer:"^6.0.3","core-js":"^3.25.5",eventemitter3:"^5.0.1","js-cookie":"^2.2.1","jwt-decode":"^3.1.2",lodash:"^4.17.21","mdi-material-ui":"^7.5.0","p-queue":"^6.6.2","p-wait-for":"^5.0.2","path-to-regexp":"^1.8.0",semver:"^7.5.4",tweetnacl:"^1.0.3","tweetnacl-sealedbox-js":"^1.2.0",ufo:"^1.5.3"},DGe={"@arcblock/ux":"^2.9.79","@blocklet/js-sdk":"^1.16.28-beta-641c9f13","@emotion/react":"^11.10.4","@emotion/styled":"^11.10.4","@mui/material":"^5.15.0",react:"^18.2.0","react-dom":"^18.2.0"},LGe={access:"public"},OGe={"@babel/cli":"^7.19.3","@babel/core":"^7.19.3","@babel/preset-env":"^7.19.3","@babel/preset-react":"^7.18.6","eslint-plugin-react-hooks":"^4.6.0",glob:"^10.3.3",jest:"^28.1.3"},IGe="5804454b8b91ce5e812fed2fa65961fd5cfb0cfd",PGe={name:yGe,version:vGe,description:bGe,keywords:wGe,author:TGe,homepage:xGe,license:SGe,main:CGe,module:AGe,repository:_Ge,scripts:EGe,bugs:RGe,dependencies:kGe,peerDependencies:DGe,publishConfig:LGe,devDependencies:OGe,gitHead:IGe},cre=5*60,MGe=30*60,vi="/.well-known/service",BGe="login_token",NGe="refresh_token",fre="/.well-known/service",n9="/api/did",$Ge="DID Connect",zV="__did-connect__";class dre extends Error{constructor(){super("Failed to open popup")}}const{version:FGe}=PGe;function pre(e){return(e+"===".slice((e.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function UGe(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const jGe=e=>window.atob(pre(e)),VGe=e=>{const t=new URL(e),n=decodeURIComponent(t.searchParams.get("url"));return new URL(n).searchParams.get("_t_")},rh=(e,t)=>{var r,i,o;let n=t==null?void 0:t.publisher;if(!n){if(e!=null&&e.agentDid)return e.agentDid;n=e==null?void 0:e.publisher}return n?n.replace("did:abt:",""):((r=globalThis.blocklet)==null?void 0:r.appPid)||((i=globalThis.blocklet)==null?void 0:i.appId)||((o=globalThis.env)==null?void 0:o.appId)||""},hre=e=>{var n;const t={connected_did:e.did||"",connected_pk:e.pk||"",connected_app:rh(e.appInfo,e.memberAppInfo)};return(n=e==null?void 0:e.connectedWallet)!=null&&n.os&&(t.connected_wallet_os=e.connectedWallet.os),t},v1=(e,t=!1)=>{if(!e)return;t||(e=hre(e));const n=Yf({expireInDays:7,returnDomain:!1});y1(e.connected_did)||yi.set("connected_did",e.connected_did,n),y1(e.connected_pk)||yi.set("connected_pk",e.connected_pk,n),y1(e.connected_app)||yi.set("connected_app",e.connected_app,n),e.connected_wallet_os&&yi.set("connected_wallet_os",e.connected_wallet_os,n)},f2=e=>UGe(Rh.from(e).toString("base64")),HV=e=>Uint8Array.from(Rh.from(pre(e),"base64")),mre=(e,t,n)=>{const r=lze.open(Uint8Array.from(Rh.from(e,"base64")),HV(t),HV(n));return JSON.parse(Rh.from(r).toString("utf8"))},WV=(e,t="_t_")=>{const n=new URL(e),r={baseUrl:n.origin,prefix:n.pathname.replace(/\/auth$/,""),token:n.searchParams.get(t)||""};if(!r.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!r.token)throw new Error("Invalid next workflow: token not found");return r},Bb=(e,t)=>{var r;let n=e.message;return e.response&&(n=((r=e.response)==null?void 0:r.data)||t),n},gu=(e={},{lazy:t=!1,lazyTime:n=300}={})=>gGe({...e,headers:{...e.headers,"x-did-connect-version":FGe}},{lazy:t,lazyTime:n}),Zl=(e=0)=>new Promise(t=>{setTimeout(()=>{t()},e)});function gre(){if(typeof window>"u")return null;const e=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[e]||"en"}async function GV(){const e=window.location.href;try{const t=new URL(e),n=t.searchParams.get(zV);if(n){t.searchParams.delete(zV);const r=JSON.parse(Rh.from(n,"base64").toString("utf-8"));if(gze(r.forceConnected)&&Xi(r.sourceAppPid)){const o=await new ure().user.getUserPublicInfo({did:r.forceConnected});Xi(o==null?void 0:o.sourceAppPid)||(r.sourceAppPid=o.sourceAppPid)}return{params:r,url:t.href}}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:e}}const yre=(e,{width:t=600,height:n=700,name:r="did-connect:popup"}={})=>{const i=window.screenX+(window.innerWidth-t)/2,o=window.screenY+(window.innerHeight-n)/2,a=[`left=${i}`,`top=${o}`,`width=${t}`,`height=${n}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],s=window.open("",r,a.join(","));if(s===null)throw new dre;return s.location.href=e,s},vre=e=>new Promise((t,n)=>{let r,i;const o=({data:a})=>{if(a&&a.type==="authorization_response"){if(a!=null&&a.error){console.error(a.error);return}setTimeout(()=>{var s;(s=e.popup)==null||s.close(),clearTimeout(i),clearInterval(r),window.removeEventListener("message",o,!1),t(a)},e.closeTimeout||0)}};i=setTimeout(()=>{clearInterval(r),n(new Error("Timeout")),window.removeEventListener("message",o,!1)},(e.timeoutInSeconds||MGe)*1e3),r=setInterval(()=>{var a;(a=e.popup)!=null&&a.closed&&(clearInterval(r),clearTimeout(i),window.removeEventListener("message",o,!1),n(new Error("Popup closed")))},1e3),window.addEventListener("message",o)}),d2=ou.box.keyPair();function qGe(){const[e,t]=B_("__encKey",{defaultValue:f2(d2.publicKey),deserializer:o=>o,serializer:o=>o}),[n,r]=B_("__decKey",{defaultValue:f2(d2.secretKey),deserializer:o=>o,serializer:o=>o});return U.useEffect(()=>{localStorage.getItem("__encKey")||t(f2(d2.publicKey)),localStorage.getItem("__decKey")||r(f2(d2.secretKey))},[]),{encryptKey:e,decryptKey:n,decrypt:o=>mre(o,e,n)}}var a4={exports:{}};/**
276
+ `+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=od(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&kE.assertOptions(r,{silentJSONParsing:qu.transitional(qu.boolean),forcedJSONParsing:qu.transitional(qu.boolean),clarifyTimeoutError:qu.transitional(qu.boolean)},!1),i!=null&&(ut.isFunction(i)?n.paramsSerializer={serialize:i}:kE.assertOptions(i,{encode:qu.function,serialize:qu.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&ut.merge(o.common,o[n.method]);o&&ut.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Bs.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(l=l&&b.synchronous,s.unshift(b.fulfilled,b.rejected))});const c=[];this.interceptors.response.forEach(function(b){c.push(b.fulfilled,b.rejected)});let u,d=0,p;if(!l){const y=[jV.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,c),p=y.length,u=Promise.resolve(n);d<p;)u=u.then(y[d++],y[d++]);return u}p=s.length;let g=n;for(d=0;d<p;){const y=s[d++],b=s[d++];try{g=y(g)}catch(A){b.call(this,A);break}}try{u=jV.call(this,g)}catch(y){return Promise.reject(y)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=od(this.defaults,t);const n=Zne(t.baseURL,t.url);return Wne(n,t.params,t.paramsSerializer)}};ut.forEach(["delete","get","head","options"],function(t){o4.prototype[t]=function(n,r){return this.request(od(r||{},{method:t,url:n,data:(r||{}).data}))}});ut.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(od(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}o4.prototype[t]=n(),o4.prototype[t+"Form"]=n(!0)});const Mb=o4;let IWe=class nre{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new v0(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new nre(function(i){t=i}),cancel:t}}};const PWe=IWe;function MWe(e){return function(n){return e.apply(null,n)}}function BWe(e){return ut.isObject(e)&&e.isAxiosError===!0}const DE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(DE).forEach(([e,t])=>{DE[t]=e});const NWe=DE;function rre(e){const t=new Mb(e),n=Pne(Mb.prototype.request,t);return ut.extend(n,Mb.prototype,t,{allOwnKeys:!0}),ut.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return rre(od(e,i))},n}const Mr=rre(e9);Mr.Axios=Mb;Mr.CanceledError=v0;Mr.CancelToken=PWe;Mr.isCancel=Jne;Mr.VERSION=tre;Mr.toFormData=H6;Mr.AxiosError=En;Mr.Cancel=Mr.CanceledError;Mr.all=function(t){return Promise.all(t)};Mr.spread=MWe;Mr.isAxiosError=BWe;Mr.mergeConfig=od;Mr.AxiosHeaders=Bs;Mr.formToJSON=e=>Kne(ut.isHTMLForm(e)?new FormData(e):e);Mr.getAdapter=ere.getAdapter;Mr.HttpStatusCode=NWe;Mr.default=Mr;const{Axios:$We,AxiosError:FWe,CanceledError:UWe,isCancel:jWe,CancelToken:VWe,VERSION:qWe,all:zWe,Cancel:HWe,isAxiosError:WWe,spread:GWe,toFormData:KWe,AxiosHeaders:JWe,HttpStatusCode:YWe,formToJSON:ZWe,getAdapter:XWe,mergeConfig:QWe}=Mr,eGe=Object.freeze(Object.defineProperty({__proto__:null,Axios:$We,AxiosError:FWe,AxiosHeaders:JWe,Cancel:HWe,CancelToken:VWe,CanceledError:UWe,HttpStatusCode:YWe,VERSION:qWe,all:zWe,default:Mr,formToJSON:ZWe,getAdapter:XWe,isAxiosError:WWe,isCancel:jWe,mergeConfig:QWe,spread:GWe,toFormData:KWe},Symbol.toStringTag,{value:"Module"}));var tGe=Object.defineProperty,nGe=(e,t,n)=>t in e?tGe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rGe=(e,t,n)=>(nGe(e,typeof t!="symbol"?t+"":t,n),n);class iGe{constructor({api:t}){rGe(this,"api"),this.api=t}async getUserPublicInfo({did:t}){const{data:n}=await this.api.get("/api/user",{params:{did:t}});return n}async getUserPrivacyConfig({did:t}){const{data:n}=await this.api.get("/api/user/privacy/config",{params:{did:t}});return n}async saveUserPrivacyConfig(t){const{data:n}=await this.api.post("/api/user/privacy/config",t);return n}async getUserNotificationConfig(){const{data:t}=await this.api.get("/api/user/notification/config");return t}async saveUserNotificationConfig(t){const{data:n}=await this.api.post("/api/user/notification/config",t);return n}async testNotificationWebhook(t){const{data:n}=await this.api.put("/api/user/notification/webhook",t);return n}async getProfileUrl({did:t,locale:n}){const r=`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/user`;return Mh(r,{did:t,locale:n})}async getProfile(){const{data:t}=await this.api.get("/api/user/profile");return t}async refreshProfile(){await this.api.put("/api/user/refreshProfile")}async saveProfile({locale:t}){const{data:n}=await this.api.put("/api/user/profile",{locale:t});return n}async logout({visitorId:t}){const{data:n}=await this.api.post("/api/user/logout",{visitorId:t});return n}}class ire{getSessionToken(){return Ob.get(rn.SESSION_TOKEN_STORAGE_KEY)}setSessionToken(t){Ob.set(rn.SESSION_TOKEN_STORAGE_KEY,t)}removeSessionToken(){Ob.remove(rn.SESSION_TOKEN_STORAGE_KEY)}getRefreshToken(){return localStorage.getItem(rn.REFRESH_TOKEN_STORAGE_KEY)}setRefreshToken(t){localStorage.setItem(rn.REFRESH_TOKEN_STORAGE_KEY,t)}removeRefreshToken(){localStorage.removeItem(rn.REFRESH_TOKEN_STORAGE_KEY)}}var oGe=Object.defineProperty,aGe=(e,t,n)=>t in e?oGe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sGe=(e,t,n)=>(aGe(e,typeof t!="symbol"?t+"":t,n),n);class lGe{constructor({api:t}){sGe(this,"api"),this.api=t}async getUserSessions({did:t}){const{data:n}=await this.api.get("/api/user-session",{params:{userDid:t}});return n}}const Y8=new lHe({maxSize:30,maxAge:60*1e3});class ore{async getBlocklet(t,n=!1){if(!n&&Y8.has(t))return Y8.get(t);const r=Mh(An(t,"__blocklet__.js"),{type:"json",t:Date.now()}),o=await(await fetch(r)).json();return Y8.set(t,o),o}async loadBlocklet(){return new Promise((t,n)=>{if(typeof window>"u"||typeof document>"u"){n();return}const r=document.createElement("script");let i="/";window.blocklet&&window.blocklet.prefix&&(i=window.blocklet.prefix),r.src=Mh(An(i,"__blocklet__.js"),{t:Date.now()}),r.onload=()=>{t()},r.onerror=()=>{n()},document.head.append(r)})}getPrefix(t){var n;return t?(t==null?void 0:t.prefix)||"/":typeof window>"u"||typeof document>"u"?null:((n=window.blocklet)==null?void 0:n.prefix)||"/"}}const uGe="1.16.28",cGe=(e=0)=>new Promise(t=>{setTimeout(()=>{t()},e)}),are=e=>`Bearer ${encodeURIComponent(e)}`,fGe="__visitor_id",dGe=()=>localStorage.getItem(fGe);async function qV(e,t=300){e.metaData.endTime=+new Date;const{startTime:n,endTime:r}=e.metaData,i=r-n;i<t&&await cGe(t-i),delete e.metaData}const sre=(e,t)=>{const n={...e==null?void 0:e.headers,"x-blocklet-js-sdk-version":uGe},r=dGe();[void 0,null].includes(r)||(n["x-blocklet-visitor-id"]=r);const i=Mr.create({...e,headers:n});return t!=null&&t.lazy&&(i.interceptors.request.use(o=>(o.metaData={startTime:+new Date},o),o=>Promise.reject(o)),i.interceptors.response.use(async o=>(await qV(o.config,t==null?void 0:t.lazyTime),o),async o=>(await qV(o.response.config,t==null?void 0:t.lazyTime),Promise.reject(o)))),i};async function pGe(e){if(!e)throw new Error("Refresh token not found");const t=sre({baseURL:rn.WELLKNOWN_SERVICE_PATH_PREFIX,timeout:10*1e3,headers:{authorization:are(e)}}),{data:n}=await t.post("/api/did/refreshSession");return n}function lre({getSessionToken:e,setSessionToken:t,removeSessionToken:n,getRefreshToken:r,setRefreshToken:i,removeRefreshToken:o,onRefreshTokenError:a,onRefreshTokenSuccess:s},l,c){let u=null;const d=sre({timeout:30*1e3,...l},c);return d.interceptors.request.use(async p=>{if(!Ob.get(rn.SESSION_TOKEN_STORAGE_KEY)){const g=e();g&&(p.headers.authorization=are(g))}return u&&await u,p},p=>Promise.reject(p)),d.interceptors.response.use(p=>p,async p=>{var y;const g=p.config;if(g.headers={...g==null?void 0:g.headers},((y=p==null?void 0:p.response)==null?void 0:y.status)===401&&!g._retry){g._retry=!0;try{u||(u=pGe(r()));const b=await u;return t(b.nextToken),i(b.nextRefreshToken),typeof s=="function"&&s(b),d(g)}catch(b){return n(),o(),typeof a=="function"&&a(b),Promise.reject(p)}finally{u=null}}return Promise.reject(p)}),d}var hGe=Object.defineProperty,mGe=(e,t,n)=>t in e?hGe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_m=(e,t,n)=>(mGe(e,typeof t!="symbol"?t+"":t,n),n);class ure{constructor(){_m(this,"api"),_m(this,"user"),_m(this,"userSession"),_m(this,"token"),_m(this,"blocklet");const t=new ire,n=lre({getSessionToken:t.getSessionToken,setSessionToken:t.setSessionToken,removeSessionToken:t.removeSessionToken,getRefreshToken:t.getRefreshToken,setRefreshToken:t.setRefreshToken,removeRefreshToken:t.removeRefreshToken,onRefreshTokenError:()=>{console.error("Failed to refresh token")},onRefreshTokenSuccess:()=>{}},{baseURL:rn.WELLKNOWN_SERVICE_PATH_PREFIX});this.user=new iGe({api:n}),this.userSession=new lGe({api:n}),this.token=t,this.api=n,this.blocklet=new ore}}function gGe(e={},t={}){const n=new ire,r=new ore;return e.baseURL===void 0&&(e.baseURL=r.getPrefix()),lre({getSessionToken:n.getSessionToken,setSessionToken:n.setSessionToken,removeSessionToken:n.removeSessionToken,getRefreshToken:n.getRefreshToken,setRefreshToken:n.setRefreshToken,removeRefreshToken:n.removeRefreshToken,onRefreshTokenError:()=>{console.error("Failed to refresh token")},onRefreshTokenSuccess:()=>{}},e,t)}const yGe="@arcblock/did-connect",vGe="2.10.12",bGe="Client side library to work with DID Connect by ArcBlock.",wGe=["react","arcblock","component"],TGe="wangshijun<wangshijun2010@gmail.com>",xGe="https://github.com/ArcBlock/ux#readme",SGe="Apache-2.0",CGe="lib/index.js",AGe="lib/index.js",_Ge={type:"git",url:"git+https://github.com/ArcBlock/ux.git"},EGe={lint:"eslint src tests --ext js --ext jsx","lint:fix":"npm run lint -- --fix",build:"babel --config-file ./babel.config.es.js src --out-dir lib --copy-files --no-copy-ignored",autoexports:"node tools/auto-exports.js",watch:"babel --config-file ./babel.config.es.js src --out-dir lib -w --copy-files --no-copy-ignored",precommit:"CI=1 npm run lint",prepush:"CI=1 npm run lint",prepublish:"npm run build",test:"node tools/jest.js",coverage:"npm run test -- --coverage"},RGe={url:"https://github.com/ArcBlock/ux/issues"},kGe={"@arcblock/bridge":"^2.10.12","@arcblock/icons":"^2.10.12","@arcblock/react-hooks":"^2.10.12","@arcblock/ws":"^1.18.126","@fontsource/inter":"^5.0.16","@iconify-icons/logos":"^1.2.36","@iconify-icons/material-symbols":"^1.2.58","@iconify/react":"^4.1.1",ahooks:"^3.7.10",axios:"^1.7.2",buffer:"^6.0.3","core-js":"^3.25.5",eventemitter3:"^5.0.1","js-cookie":"^2.2.1","jwt-decode":"^3.1.2",lodash:"^4.17.21","mdi-material-ui":"^7.5.0","p-queue":"^6.6.2","p-wait-for":"^5.0.2","path-to-regexp":"^1.8.0",semver:"^7.5.4",tweetnacl:"^1.0.3","tweetnacl-sealedbox-js":"^1.2.0",ufo:"^1.5.3"},DGe={"@arcblock/ux":"^2.9.79","@blocklet/js-sdk":"^1.16.28-beta-641c9f13","@emotion/react":"^11.10.4","@emotion/styled":"^11.10.4","@mui/material":"^5.15.0",react:"^18.2.0","react-dom":"^18.2.0"},LGe={access:"public"},OGe={"@babel/cli":"^7.19.3","@babel/core":"^7.19.3","@babel/preset-env":"^7.19.3","@babel/preset-react":"^7.18.6","eslint-plugin-react-hooks":"^4.6.0",glob:"^10.3.3",jest:"^28.1.3"},IGe="c32ebbc1536d9374a99865ff463f0a300b6e5372",PGe={name:yGe,version:vGe,description:bGe,keywords:wGe,author:TGe,homepage:xGe,license:SGe,main:CGe,module:AGe,repository:_Ge,scripts:EGe,bugs:RGe,dependencies:kGe,peerDependencies:DGe,publishConfig:LGe,devDependencies:OGe,gitHead:IGe},cre=5*60,MGe=30*60,vi="/.well-known/service",BGe="login_token",NGe="refresh_token",fre="/.well-known/service",n9="/api/did",$Ge="DID Connect",zV="__did-connect__";class dre extends Error{constructor(){super("Failed to open popup")}}const{version:FGe}=PGe;function pre(e){return(e+"===".slice((e.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function UGe(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const jGe=e=>window.atob(pre(e)),VGe=e=>{const t=new URL(e),n=decodeURIComponent(t.searchParams.get("url"));return new URL(n).searchParams.get("_t_")},rh=(e,t)=>{var r,i,o;let n=t==null?void 0:t.publisher;if(!n){if(e!=null&&e.agentDid)return e.agentDid;n=e==null?void 0:e.publisher}return n?n.replace("did:abt:",""):((r=globalThis.blocklet)==null?void 0:r.appPid)||((i=globalThis.blocklet)==null?void 0:i.appId)||((o=globalThis.env)==null?void 0:o.appId)||""},hre=e=>{var n;const t={connected_did:e.did||"",connected_pk:e.pk||"",connected_app:rh(e.appInfo,e.memberAppInfo)};return(n=e==null?void 0:e.connectedWallet)!=null&&n.os&&(t.connected_wallet_os=e.connectedWallet.os),t},v1=(e,t=!1)=>{if(!e)return;t||(e=hre(e));const n=Yf({expireInDays:7,returnDomain:!1});y1(e.connected_did)||yi.set("connected_did",e.connected_did,n),y1(e.connected_pk)||yi.set("connected_pk",e.connected_pk,n),y1(e.connected_app)||yi.set("connected_app",e.connected_app,n),e.connected_wallet_os&&yi.set("connected_wallet_os",e.connected_wallet_os,n)},f2=e=>UGe(Rh.from(e).toString("base64")),HV=e=>Uint8Array.from(Rh.from(pre(e),"base64")),mre=(e,t,n)=>{const r=lze.open(Uint8Array.from(Rh.from(e,"base64")),HV(t),HV(n));return JSON.parse(Rh.from(r).toString("utf8"))},WV=(e,t="_t_")=>{const n=new URL(e),r={baseUrl:n.origin,prefix:n.pathname.replace(/\/auth$/,""),token:n.searchParams.get(t)||""};if(!r.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!r.token)throw new Error("Invalid next workflow: token not found");return r},Bb=(e,t)=>{var r;let n=e.message;return e.response&&(n=((r=e.response)==null?void 0:r.data)||t),n},gu=(e={},{lazy:t=!1,lazyTime:n=300}={})=>gGe({...e,headers:{...e.headers,"x-did-connect-version":FGe}},{lazy:t,lazyTime:n}),Zl=(e=0)=>new Promise(t=>{setTimeout(()=>{t()},e)});function gre(){if(typeof window>"u")return null;const e=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[e]||"en"}async function GV(){const e=window.location.href;try{const t=new URL(e),n=t.searchParams.get(zV);if(n){t.searchParams.delete(zV);const r=JSON.parse(Rh.from(n,"base64").toString("utf-8"));if(gze(r.forceConnected)&&Xi(r.sourceAppPid)){const o=await new ure().user.getUserPublicInfo({did:r.forceConnected});Xi(o==null?void 0:o.sourceAppPid)||(r.sourceAppPid=o.sourceAppPid)}return{params:r,url:t.href}}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:e}}const yre=(e,{width:t=600,height:n=700,name:r="did-connect:popup"}={})=>{const i=window.screenX+(window.innerWidth-t)/2,o=window.screenY+(window.innerHeight-n)/2,a=[`left=${i}`,`top=${o}`,`width=${t}`,`height=${n}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],s=window.open("",r,a.join(","));if(s===null)throw new dre;return s.location.href=e,s},vre=e=>new Promise((t,n)=>{let r,i;const o=({data:a})=>{if(a&&a.type==="authorization_response"){if(a!=null&&a.error){console.error(a.error);return}setTimeout(()=>{var s;(s=e.popup)==null||s.close(),clearTimeout(i),clearInterval(r),window.removeEventListener("message",o,!1),t(a)},e.closeTimeout||0)}};i=setTimeout(()=>{clearInterval(r),n(new Error("Timeout")),window.removeEventListener("message",o,!1)},(e.timeoutInSeconds||MGe)*1e3),r=setInterval(()=>{var a;(a=e.popup)!=null&&a.closed&&(clearInterval(r),clearTimeout(i),window.removeEventListener("message",o,!1),n(new Error("Popup closed")))},1e3),window.addEventListener("message",o)}),d2=ou.box.keyPair();function qGe(){const[e,t]=B_("__encKey",{defaultValue:f2(d2.publicKey),deserializer:o=>o,serializer:o=>o}),[n,r]=B_("__decKey",{defaultValue:f2(d2.secretKey),deserializer:o=>o,serializer:o=>o});return U.useEffect(()=>{localStorage.getItem("__encKey")||t(f2(d2.publicKey)),localStorage.getItem("__decKey")||r(f2(d2.secretKey))},[]),{encryptKey:e,decryptKey:n,decrypt:o=>mre(o,e,n)}}var a4={exports:{}};/**
277
277
  * @license
278
278
  * Lodash <https://lodash.com/>
279
279
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -485,7 +485,7 @@ function print() { __p += __j.call(arguments, '') }
485
485
  }
486
486
  }
487
487
  `;F9.propTypes={list:Q.array,width:Q.number,height:Q.number,cardSpace:Q.number,onSelect:Q.func,defaultIndex:Q.number};F9.defaultProps={list:"",width:300,height:400,cardSpace:40,onSelect:Zn,defaultIndex:0};var kie=function(t){return I.jsxs("svg",{...t,children:[I.jsx("rect",{x:"1",y:"1",width:"418",height:"473",rx:"19",fill:"#FBFBFB"}),I.jsx("g",{clipPath:"url(#a)",children:I.jsx("path",{opacity:".7",fill:"#DDD",d:"M0 100h420v168H0z"})}),I.jsx("circle",{cx:"210",cy:"248",r:"60",fill:"#C4C5CA"}),I.jsx("path",{d:"M181 284l7.2-7.2 7.2 7.2 7.2-10.8 7.2 10.8 7.2-10.8 7.2 10.8 7.2-7.2 7.2 7.2v-43.2c0-15.907-12.893-28.8-28.8-28.8S181 224.893 181 240.8V284z",fill:"#C4C5CA",stroke:"#fff",strokeWidth:"5",strokeLinejoin:"round"}),I.jsx("path",{d:"M200.797 240.812h3.6-3.6zm21.6 0h3.6-3.6z",fill:"#C4C5CA"}),I.jsx("path",{d:"M200.797 240.812h3.6m18 0h3.6",stroke:"#fff",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),I.jsx("path",{opacity:".7",d:"M24 29h189v40H24V29z",fill:"#C4C5CA"}),I.jsx("path",{opacity:".42",fill:"#C4C5CA",d:"M313 24h83v14h-83z"}),I.jsx("path",{opacity:".7",fill:"#C4C5CA",d:"M291 50h105v26H291z"}),I.jsx("path",{d:"M177.388 388.4c-1.733 0-3.32-.213-4.76-.64a12.355 12.355 0 0 1-3.8-1.88 15.072 15.072 0 0 1-2.96-3l3.76-4.28c1.307 1.813 2.6 3.053 3.88 3.72 1.307.64 2.72.96 4.24.96.827 0 1.56-.107 2.2-.32.667-.24 1.187-.573 1.56-1 .373-.427.56-.933.56-1.52 0-.427-.093-.813-.28-1.16a2.764 2.764 0 0 0-.8-.96 5.139 5.139 0 0 0-1.24-.76 8.666 8.666 0 0 0-1.6-.6 12.728 12.728 0 0 0-1.92-.44c-1.493-.347-2.8-.76-3.92-1.24-1.12-.507-2.053-1.12-2.8-1.84a7.456 7.456 0 0 1-1.68-2.52c-.347-.933-.52-1.987-.52-3.16 0-1.2.267-2.307.8-3.32a8.187 8.187 0 0 1 2.2-2.68 10.68 10.68 0 0 1 3.28-1.72c1.253-.4 2.573-.6 3.96-.6 1.707 0 3.2.2 4.48.6 1.28.373 2.387.92 3.32 1.64.96.72 1.76 1.6 2.4 2.64l-3.8 3.68a9.48 9.48 0 0 0-1.84-1.88 6.482 6.482 0 0 0-2.12-1.12 6.84 6.84 0 0 0-2.32-.4c-.88 0-1.64.12-2.28.36-.64.213-1.147.533-1.52.96-.347.427-.52.947-.52 1.56 0 .48.12.907.36 1.28s.587.707 1.04 1c.453.267 1 .507 1.64.72.64.213 1.347.4 2.12.56 1.467.293 2.787.68 3.96 1.16 1.173.48 2.173 1.067 3 1.76a6.784 6.784 0 0 1 1.96 2.4c.453.907.68 1.933.68 3.08 0 1.893-.453 3.507-1.36 4.84-.907 1.333-2.16 2.36-3.76 3.08-1.6.693-3.467 1.04-5.6 1.04zm17.394-.4v-26.52h5.68V388h-5.68zm-3.96-16.08v-5.08h13.96v5.08h-13.96zm25.387 16.48c-1.76 0-3.346-.48-4.76-1.44-1.413-.96-2.533-2.267-3.36-3.92-.826-1.653-1.24-3.547-1.24-5.68 0-2.133.414-4.013 1.24-5.64.854-1.653 2-2.947 3.44-3.88 1.44-.96 3.08-1.44 4.92-1.44 1.04 0 1.987.16 2.84.48.88.293 1.64.707 2.28 1.24a7.831 7.831 0 0 1 1.68 1.84c.454.693.774 1.44.96 2.24l-1.2-.2v-5.16h5.64V388h-5.72v-5.08l1.28-.12a6.81 6.81 0 0 1-1.04 2.12 8.213 8.213 0 0 1-1.8 1.8c-.693.507-1.48.92-2.36 1.24-.88.293-1.813.44-2.8.44zm1.56-4.92c1.067 0 2-.253 2.8-.76.8-.507 1.414-1.213 1.84-2.12.454-.933.68-2.013.68-3.24 0-1.2-.226-2.253-.68-3.16-.426-.907-1.04-1.613-1.84-2.12-.8-.533-1.733-.8-2.8-.8-1.04 0-1.96.267-2.76.8-.773.507-1.386 1.213-1.84 2.12-.453.907-.68 1.96-.68 3.16 0 1.227.227 2.307.68 3.24.454.907 1.067 1.613 1.84 2.12.8.507 1.72.76 2.76.76zm19.066 13.72l4.64-10.88.08 3.28-10.32-22.76h6.44l5.16 12.2c.213.453.413.987.6 1.6.213.587.387 1.16.52 1.72l-.96.4c.16-.453.347-.973.56-1.56.213-.587.427-1.213.64-1.88l4.44-12.48h6.48l-8.88 21.16-3.64 9.2h-5.76zM92.8 438l10.96-28h5.36l10.92 28h-6.16l-5.64-15.08c-.16-.427-.36-.973-.6-1.64l-.68-2.12-.68-2.12a27.95 27.95 0 0 1-.48-1.72l1.08-.04c-.16.613-.346 1.253-.56 1.92-.186.64-.386 1.307-.6 2-.213.667-.44 1.32-.68 1.96-.24.64-.466 1.267-.68 1.88L98.72 438H92.8zm5.08-5.88l1.96-4.84h12.84l2 4.84h-16.8zm25.292 5.88v-21.16h5.44l.16 4.32-1.12.48c.293-.96.813-1.827 1.56-2.6a8.83 8.83 0 0 1 2.76-1.92 8.1 8.1 0 0 1 3.36-.72c1.6 0 2.933.32 4 .96 1.093.64 1.907 1.613 2.44 2.92.56 1.28.84 2.867.84 4.76V438h-5.68v-12.52c0-.96-.133-1.76-.4-2.4-.267-.64-.68-1.107-1.24-1.4-.533-.32-1.2-.453-2-.4-.64 0-1.24.107-1.8.32a3.94 3.94 0 0 0-1.4.84c-.373.373-.68.8-.92 1.28-.213.48-.32 1-.32 1.56V438h-5.68zm34.723.4c-2.16 0-4.093-.467-5.8-1.4a10.853 10.853 0 0 1-4-3.92c-.96-1.653-1.44-3.547-1.44-5.68 0-2.133.48-4.013 1.44-5.64a10.853 10.853 0 0 1 4-3.92c1.707-.96 3.64-1.44 5.8-1.44 2.133 0 4.04.48 5.72 1.44 1.707.96 3.04 2.267 4 3.92.96 1.627 1.44 3.507 1.44 5.64 0 2.133-.48 4.027-1.44 5.68-.96 1.653-2.293 2.96-4 3.92-1.68.933-3.587 1.4-5.72 1.4zm0-4.96c1.04 0 1.973-.253 2.8-.76a5.371 5.371 0 0 0 1.92-2.16c.48-.933.72-1.973.72-3.12 0-1.173-.24-2.213-.72-3.12-.453-.933-1.093-1.653-1.92-2.16-.827-.533-1.76-.8-2.8-.8-1.067 0-2.013.267-2.84.8a5.673 5.673 0 0 0-1.96 2.16c-.48.907-.707 1.947-.68 3.12-.027 1.147.2 2.187.68 3.12a5.673 5.673 0 0 0 1.96 2.16c.827.507 1.773.76 2.84.76zm15.433 4.56v-21.16h5.44l.16 4.32-1.12.48c.294-.96.814-1.827 1.56-2.6a8.853 8.853 0 0 1 2.76-1.92 8.1 8.1 0 0 1 3.36-.72c1.6 0 2.934.32 4 .96 1.094.64 1.907 1.613 2.44 2.92.56 1.28.84 2.867.84 4.76V438h-5.68v-12.52c0-.96-.133-1.76-.4-2.4-.266-.64-.68-1.107-1.24-1.4-.533-.32-1.2-.453-2-.4-.64 0-1.24.107-1.8.32a3.94 3.94 0 0 0-1.4.84c-.373.373-.68.8-.92 1.28-.213.48-.32 1-.32 1.56V438h-5.68zm27.648 9.2l4.64-10.88.08 3.28-10.32-22.76h6.44l5.16 12.2c.213.453.413.987.6 1.6.213.587.386 1.16.52 1.72l-.96.4c.16-.453.346-.973.56-1.56.213-.587.426-1.213.64-1.88l4.44-12.48h6.48l-8.88 21.16-3.64 9.2h-5.76zm21.297-9.2v-21.16h5.48l.12 4.04-.84.16c.293-.693.68-1.32 1.16-1.88.48-.56 1.04-1.04 1.68-1.44.666-.4 1.36-.707 2.08-.92.72-.24 1.44-.36 2.16-.36 1.093 0 2.08.173 2.96.52.88.347 1.626.893 2.24 1.64.613.72 1.093 1.68 1.44 2.88l-.88-.08.28-.64a6.852 6.852 0 0 1 1.32-1.72 8.178 8.178 0 0 1 1.8-1.36c.666-.4 1.36-.707 2.08-.92a7.448 7.448 0 0 1 2.12-.32c1.653 0 3.026.333 4.12 1 1.093.64 1.906 1.613 2.44 2.92.56 1.307.84 2.907.84 4.8V438h-5.68v-12.44c0-.96-.134-1.747-.4-2.36-.267-.613-.654-1.067-1.16-1.36-.507-.32-1.16-.48-1.96-.48a4.59 4.59 0 0 0-1.72.32c-.507.187-.96.467-1.36.84a3.74 3.74 0 0 0-.88 1.24 3.885 3.885 0 0 0-.32 1.6V438h-5.68v-12.48c0-.88-.147-1.627-.44-2.24-.267-.64-.654-1.12-1.16-1.44-.507-.32-1.134-.48-1.88-.48a4.59 4.59 0 0 0-1.72.32 3.608 3.608 0 0 0-1.32.84c-.374.347-.68.76-.92 1.24-.214.48-.32 1-.32 1.56V438h-5.68zm47.848.4c-2.16 0-4.093-.467-5.8-1.4a10.853 10.853 0 0 1-4-3.92c-.96-1.653-1.44-3.547-1.44-5.68 0-2.133.48-4.013 1.44-5.64a10.853 10.853 0 0 1 4-3.92c1.707-.96 3.64-1.44 5.8-1.44 2.134 0 4.04.48 5.72 1.44 1.707.96 3.04 2.267 4 3.92.96 1.627 1.44 3.507 1.44 5.64 0 2.133-.48 4.027-1.44 5.68-.96 1.653-2.293 2.96-4 3.92-1.68.933-3.586 1.4-5.72 1.4zm0-4.96c1.04 0 1.974-.253 2.8-.76a5.371 5.371 0 0 0 1.92-2.16c.48-.933.72-1.973.72-3.12 0-1.173-.24-2.213-.72-3.12-.453-.933-1.093-1.653-1.92-2.16-.826-.533-1.76-.8-2.8-.8-1.066 0-2.013.267-2.84.8a5.681 5.681 0 0 0-1.96 2.16c-.48.907-.706 1.947-.68 3.12-.026 1.147.2 2.187.68 3.12a5.681 5.681 0 0 0 1.96 2.16c.827.507 1.774.76 2.84.76zm22.714 4.96c-1.547 0-2.88-.333-4-1-1.093-.693-1.947-1.667-2.56-2.92-.587-1.28-.88-2.813-.88-4.6v-13.04h5.68v12.12c0 .96.16 1.8.48 2.52.32.693.773 1.227 1.36 1.6.587.373 1.307.56 2.16.56.613 0 1.187-.093 1.72-.28a3.993 3.993 0 0 0 1.36-.88c.373-.373.667-.813.88-1.32.213-.507.32-1.053.32-1.64v-12.68h5.68V438h-5.4l-.2-4.36 1.04-.48a7.107 7.107 0 0 1-1.6 2.68 7.981 7.981 0 0 1-2.68 1.88c-1.04.453-2.16.68-3.36.68zm25.035 0c-1.973 0-3.733-.32-5.28-.96-1.52-.667-2.747-1.573-3.68-2.72l3.52-3.04c.827.88 1.747 1.52 2.76 1.92a8.75 8.75 0 0 0 3.04.56c.4 0 .76-.04 1.08-.12.347-.107.64-.24.88-.4.24-.187.413-.4.52-.64.133-.267.2-.547.2-.84 0-.587-.24-1.053-.72-1.4-.267-.133-.68-.293-1.24-.48-.56-.213-1.28-.44-2.16-.68-1.36-.347-2.52-.747-3.48-1.2-.933-.48-1.68-1.013-2.24-1.6a6.755 6.755 0 0 1-1.12-1.8c-.24-.667-.36-1.4-.36-2.2 0-.96.213-1.827.64-2.6a6.138 6.138 0 0 1 1.76-2.04 8.66 8.66 0 0 1 2.64-1.28c.987-.32 2.027-.48 3.12-.48s2.16.133 3.2.4 2 .653 2.88 1.16a9.77 9.77 0 0 1 2.36 1.72l-3.04 3.36a9.806 9.806 0 0 0-1.64-1.24 8.324 8.324 0 0 0-1.84-.88c-.64-.213-1.213-.32-1.72-.32-.453 0-.867.04-1.24.12-.347.08-.64.2-.88.36-.24.16-.427.373-.56.64-.107.24-.16.507-.16.8 0 .293.067.573.2.84.16.267.373.493.64.68.293.16.72.347 1.28.56a30.74 30.74 0 0 0 2.36.72c1.28.347 2.36.733 3.24 1.16.907.427 1.627.92 2.16 1.48.453.48.787 1.027 1 1.64.213.613.32 1.293.32 2.04 0 1.307-.373 2.48-1.12 3.52-.72 1.013-1.72 1.813-3 2.4-1.28.56-2.72.84-4.32.84z",fill:"#25292F"}),I.jsx("rect",{x:"1",y:"1",width:"418",height:"558",rx:"19",stroke:"#DDD",strokeWidth:"2"}),I.jsx("defs",{children:I.jsx("clipPath",{id:"a",children:I.jsx("path",{fill:"#fff",transform:"translate(0 100)",d:"M0 0h420v168H0z"})})})]})};kie.defaultProps={width:"420",height:"475",viewBox:"0 0 420 475",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const U9=U.createContext({}),{Provider:Rnt,Consumer:knt}=U9,_q=`${vi}/api/oauth`,Eq=e=>e?typeof e=="string"?{sessionToken:e}:i5(e,["sessionToken","refreshToken","visitorId"]):{},Dnt={zh:{bindOAuth:"绑定第三方登录",bind:"绑定",noneOAuth:"未配置第三方登录方式",bindOAuthSucceed:"绑定 {provider} 成功",unbindOAuthSucceed:"解绑 {provider} 成功",loginOAuthFailed:"登录 {provider} 失败",bindOAuthFailed:"绑定 {provider} 失败",unbindOAuthFailed:"绑定 {provider} 失败",switchPassport:"切换通行证",switchPassportFailed:"切换通行证失败",switchPassportSucceed:"切换通行证成功",choosePassport:"请选择一个通行证",switch:"切换",cancel:"取消",currentRole:"当前角色:",passport:"通行证",noPassports:"没有可更换的通行证",getPassportFailed:"获取通行证失败",loginRequired:"授权请求被拒绝",cancelAuth:"取消授权"},en:{bindOAuth:"Bind third party login",bind:"Bind ",noneOAuth:"Third party login is not configured",bindOAuthSucceed:"Bind {provider} succeed",unbindOAuthSucceed:"Unbind {provider} succeed",loginOAuthFailed:"Login {provider} failed",bindOAuthFailed:"Bind {provider} failed",unbindOAuthFailed:"Unbind {provider} failed",switchPassport:"Switch passport",switchPassportFailed:"Switch passport failed",switchPassportSucceed:"Switch passport succeed",choosePassport:"Select a passport to switch",switch:"Switch",cancel:"Cancel",currentRole:"Current role: ",passport:"Passport",noPassports:"No passport to switch",getPassportFailed:"Get passports failed",loginRequired:"You have declined the authentication request",cancelAuth:"Cancel authentication"}};function d4({children:e,locale:t,onBindOAuth:n,onUnbindOAuth:r,onSwitchPassport:i}){var q;const o=ui({baseUrl:"/",bindFnSession:void 0,bindAuthLoading:!1,unbindAuthLoading:!1}),a=ui({open:!1,currentUser:null,passports:[],choosePassport:void 0,reset(){a.open=!1,a.currentUser=null,a.passports=[],a.choosePassport=void 0}}),s=ui({user:null,checking:!1,loading:!1,error:"",status:"",reset(){s.loading=!1,s.checking=!1,s.error="",s.status=""}}),l=St((B,j={})=>Nc(Dnt,B,t,"en",j)),c=Xt(()=>gu({baseURL:An(o.baseUrl,_q)}),[o.baseUrl,_q]),u=St(async()=>{if(o.baseUrl==="/")return window.blocklet;try{if(new URL(o.baseUrl).host===window.location.host)return window.blocklet}catch{}return await tU(o.baseUrl)}),d=St(async({sourceAppPid:B}={})=>{var ue,G;const j=await u(),K=xl(j),oe=Us(j);if(K&&(oe!=null&&oe.appPid)&&B===(oe==null?void 0:oe.appPid)){const P=await tU(oe.appUrl);return((ue=P==null?void 0:P.settings)==null?void 0:ue.oauth)||{}}return((G=j==null?void 0:j.settings)==null?void 0:G.oauth)||{}}),p=St(async({sourceAppPid:B}={})=>{const j=await d({sourceAppPid:B});return Object.entries(j).map(([oe,ue])=>({...ue,provider:oe})).filter(oe=>oe.enabled).sort((oe,ue)=>(oe==null?void 0:oe.order)!==void 0&&(ue==null?void 0:ue.order)!==void 0?oe.order-ue.order:(oe==null?void 0:oe.order)!==void 0?-1:1)}),g=St(async({provider:B}={})=>{var K;const j=yre(An(o.baseUrl,"/.well-known/service/oauth/login",B),{name:"oauth-login:popup"});try{const oe=await vre({popup:j,closeTimeout:0});return oe!=null&&oe.response?(K=oe.response)==null?void 0:K.code:null}catch(oe){throw(oe==null?void 0:oe.message)==="Popup closed"?new Error(l("cancelAuth")):oe}}),y=async({session:B,oauthItem:j}={})=>{var K,oe;o.bindFnSession=B,o.bindAuthLoading=!0;try{const ue=await g(j),G=(oe=(K=o.bindFnSession)==null?void 0:K.user)==null?void 0:oe.sourceAppPid;await c.post("/bind",{locale:t,provider:j.provider,code:ue,sourceAppPid:G}),oi.success(l("bindOAuthSucceed",{provider:ul[j.provider]})),n(j)}catch(ue){oi.error(Bb(ue,l("bindOAuthFailed",{provider:ul[j.provider]})))}finally{o.bindAuthLoading=!1}},b=async({session:B,connectedAccount:j})=>{var K;o.unbindAuthLoading=!0;try{const oe=(K=B==null?void 0:B.user)==null?void 0:K.sourceAppPid;await c.post("/unbind",{locale:t,connectedAccount:a5(j,["showProvider"]),sourceAppPid:oe}),oi.success(l("unbindOAuthSucceed",{provider:ul[j.showProvider||j.provider]})),r(j)}catch(oe){oi.error(Bb(oe,l("unbindOAuthFailed",{provider:ul[j.showProvider||j.provider]})))}finally{o.unbindAuthLoading=!1}},A=async(B={})=>{try{const{data:j}=await c.get("/passports");j.length?(a.open=!0,a.currentUser=B,a.passports=j||[]):oi.error(l("noPassports"))}catch(j){oi.error(j.message||l("getPassportFailed"))}},x=async()=>{try{const{data:B}=await c.post("/switch",{passportId:a.choosePassport}),{sessionToken:j,refreshToken:K}=Eq(B);i({sessionToken:j,refreshToken:K}),oi.success(l("switchPassportSucceed"))}catch(B){oi.error(B.message||l("switchPassportFailed"))}},D=B=>{o.baseUrl=B||"/"},O=St(async({provider:B}={},{action:j="login",...K}={})=>{var G,P,T;const oe=o.baseUrl;if((K==null?void 0:K.sourceAppPid)===((G=window.blocklet)==null?void 0:G.appPid))o.baseUrl=((P=window.blocklet)==null?void 0:P.appUrl)||"/";else if(K!=null&&K.sourceAppPid){const f=await u(),h=xl(f),w=Us(f);h&&(w!=null&&w.appPid)&&(K==null?void 0:K.sourceAppPid)===(w==null?void 0:w.appPid)&&(o.baseUrl=w.appUrl)}const ue=(T=window==null?void 0:window.blocklet)==null?void 0:T.componentId;try{const f=await g({provider:B});if(f){const{data:h}=await c.post("/login",{...K,action:j,locale:t,code:f,provider:B,componentId:ue,visitorId:Cc()});return Eq(h)}return o.baseUrl=oe,null}catch(f){const h=Bb(f,l("loginOAuthFailed",{provider:ul[B]}));throw o.baseUrl=oe,new Error(h)}}),M=St(()=>{});return I.jsxs(Rnt,{value:{locale:t,getOAuthConfigs:d,getOAuthConfigList:p,bindOAuth:y,unbindOAuth:b,loginOAuth:O,logoutOAuth:M,switchOAuthPassport:A,baseUrl:o.baseUrl,setBaseUrl:D,oauthState:s,unbindAuthLoading:o.unbindAuthLoading,bindAuthLoading:o.bindAuthLoading,t:l},children:[e,I.jsxs(n5,{open:a.open,title:l("switchPassport"),onConfirm:x,onCancel:()=>a.reset,confirmButton:{text:l("switch"),props:{variant:"contained",color:"primary"}},cancelButton:{text:l("cancel"),props:{color:"inherit"}},PaperProps:{style:{width:600}},children:[I.jsxs(ct,{mb:2,children:[l("currentRole"),(q=a.currentUser)==null?void 0:q.role]}),I.jsx(F9,{width:160,height:240,cardSpace:24,list:[()=>I.jsx(kie,{}),...a.passports.map(B=>({src:B.display,name:B.title}))],onSelect:B=>{a.choosePassport=B>0?a.passports[B-1].id:void 0},defaultIndex:0})]})]})}function j9(){const e=U.useContext(U9);return a5(e,["locale","getToken"])}d4.propTypes={children:Q.node.isRequired,locale:Q.string,onBindOAuth:Q.func,onUnbindOAuth:Q.func,onSwitchPassport:Q.func};d4.defaultProps={locale:"en",onBindOAuth:Zn,onUnbindOAuth:Zn,onSwitchPassport:Zn};function p4({providerList:e,type:t,onSuccess:n,onError:r,tokenState:i}){const{extraParams:o,changeStatus:a}=Ll(),{loginOAuth:s,logoutOAuth:l,t:c,oauthState:u}=j9(),d=St(async p=>{const g=o==null?void 0:o.sourceAppPid;try{u.loading=!0,u.status="scanned";const y=await s(p,{action:i.action,...o}),b=Yf({returnDomain:!1});yi.remove("connected_did",b),yi.remove("connected_pk",b),yi.remove("connected_wallet_os",b),y!=null&&y.sessionToken&&(u.loading=!1,u.status="succeed",n({...y,encrypted:!1},A=>A,{sourceAppPid:g,connected_app:rh(i.appInfo,i.memberAppInfo)}))}catch(y){const b=Bb(y,c("loginOAuthFailed"));u.loading=!1,u.error=b,u.status="error",await l({provider:p.provider}),r(new Error(b))}});return U.useEffect(()=>{a(u.status)},[a,u.status]),t==="stack"?I.jsx(aie,{providerList:e,onLogin:d}):I.jsx(lie,{providerList:e,onLogin:d})}p4.propTypes={providerList:Q.array.isRequired,type:Q.oneOf(["list","stack"]),onSuccess:Q.func.isRequired,onError:Q.func.isRequired,tokenState:Q.object.isRequired};p4.defaultProps={type:"stack"};function Lnt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ont=Lnt,Int=A9,Pnt=Ont,Mnt=_9,Bnt=1,Nnt=2;function $nt(e,t,n,r,i,o){var a=n&Bnt,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,g=n&Nnt?new Int:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var y=e[d],b=t[d];if(r)var A=a?r(b,y,d,t,e,o):r(y,b,d,e,t,o);if(A!==void 0){if(A)continue;p=!1;break}if(g){if(!Pnt(t,function(x,D){if(!Mnt(g,D)&&(y===x||i(y,x,n,r,o)))return g.push(D)})){p=!1;break}}else if(!(y===b||i(y,b,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var Die=$nt;function Fnt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Unt=Fnt;function jnt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var V9=jnt,Rq=Yh,kq=Tie,Vnt=Wg,qnt=Die,znt=Unt,Hnt=V9,Wnt=1,Gnt=2,Knt="[object Boolean]",Jnt="[object Date]",Ynt="[object Error]",Znt="[object Map]",Xnt="[object Number]",Qnt="[object RegExp]",ert="[object Set]",trt="[object String]",nrt="[object Symbol]",rrt="[object ArrayBuffer]",irt="[object DataView]",Dq=Rq?Rq.prototype:void 0,nC=Dq?Dq.valueOf:void 0;function ort(e,t,n,r,i,o,a){switch(n){case irt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case rrt:return!(e.byteLength!=t.byteLength||!o(new kq(e),new kq(t)));case Knt:case Jnt:case Xnt:return Vnt(+e,+t);case Ynt:return e.name==t.name&&e.message==t.message;case Qnt:case trt:return e==t+"";case Znt:var s=znt;case ert:var l=r&Wnt;if(s||(s=Hnt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=Gnt,a.set(e,t);var u=qnt(s(e),s(t),r,i,o,a);return a.delete(e),u;case nrt:if(nC)return nC.call(e)==nC.call(t)}return!1}var art=ort,Lq=wie,srt=1,lrt=Object.prototype,urt=lrt.hasOwnProperty;function crt(e,t,n,r,i,o){var a=n&srt,s=Lq(e),l=s.length,c=Lq(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:urt.call(t,p)))return!1}var g=o.get(e),y=o.get(t);if(g&&y)return g==t&&y==e;var b=!0;o.set(e,t),o.set(t,e);for(var A=a;++d<l;){p=s[d];var x=e[p],D=t[p];if(r)var O=a?r(D,x,p,t,e,o):r(x,D,p,e,t,o);if(!(O===void 0?x===D||i(x,D,n,r,o):O)){b=!1;break}A||(A=p=="constructor")}if(b&&!A){var M=e.constructor,q=t.constructor;M!=q&&"constructor"in e&&"constructor"in t&&!(typeof M=="function"&&M instanceof M&&typeof q=="function"&&q instanceof q)&&(b=!1)}return o.delete(e),o.delete(t),b}var frt=crt,rC=o5,drt=Die,prt=art,hrt=frt,Oq=ny,Iq=zo,Pq=iy,mrt=m6,grt=1,Mq="[object Arguments]",Bq="[object Array]",v2="[object Object]",yrt=Object.prototype,Nq=yrt.hasOwnProperty;function vrt(e,t,n,r,i,o){var a=Iq(e),s=Iq(t),l=a?Bq:Oq(e),c=s?Bq:Oq(t);l=l==Mq?v2:l,c=c==Mq?v2:c;var u=l==v2,d=c==v2,p=l==c;if(p&&Pq(e)){if(!Pq(t))return!1;a=!0,u=!1}if(p&&!u)return o||(o=new rC),a||mrt(e)?drt(e,t,n,r,i,o):prt(e,t,l,n,r,i,o);if(!(n&grt)){var g=u&&Nq.call(e,"__wrapped__"),y=d&&Nq.call(t,"__wrapped__");if(g||y){var b=g?e.value():e,A=y?t.value():t;return o||(o=new rC),i(b,A,n,r,o)}}return p?(o||(o=new rC),hrt(e,t,n,r,i,o)):!1}var brt=vrt,wrt=brt,$q=us;function Lie(e,t,n,r,i){return e===t?!0:e==null||t==null||!$q(e)&&!$q(t)?e!==e&&t!==t:wrt(e,t,n,r,Lie,i)}var Oie=Lie,Trt=o5,xrt=Oie,Srt=1,Crt=2;function Art(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Trt;if(r)var p=r(c,u,l,e,t,d);if(!(p===void 0?xrt(u,c,Srt|Crt,r,d):p))return!1}}return!0}var _rt=Art,Ert=io;function Rrt(e){return e===e&&!Ert(e)}var Iie=Rrt,krt=Iie,Drt=vy;function Lrt(e){for(var t=Drt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,krt(i)]}return t}var Ort=Lrt;function Irt(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Pie=Irt,Prt=_rt,Mrt=Ort,Brt=Pie;function Nrt(e){var t=Mrt(e);return t.length==1&&t[0][2]?Brt(t[0][0],t[0][1]):function(n){return n===e||Prt(n,e,t)}}var $rt=Nrt,Frt=Oie,Urt=Gw,jrt=cie,Vrt=wk,qrt=Iie,zrt=Pie,Hrt=n0,Wrt=1,Grt=2;function Krt(e,t){return Vrt(e)&&qrt(t)?zrt(Hrt(e),t):function(n){var r=Urt(n,e);return r===void 0&&r===t?jrt(n,e):Frt(t,r,Wrt|Grt)}}var Jrt=Krt,Yrt=Gg;function Zrt(e){return function(t){return Yrt(t,e)}}var Xrt=Zrt,Qrt=zZ,eit=Xrt,tit=wk,nit=n0;function rit(e){return tit(e)?Qrt(nit(e)):eit(e)}var iit=rit,oit=$rt,ait=Jrt,sit=t5,lit=zo,uit=iit;function cit(e){return typeof e=="function"?e:e==null?sit:typeof e=="object"?lit(e)?ait(e[0],e[1]):oit(e):uit(e)}var s5=cit,fit="Expected a function";function dit(e){if(typeof e!="function")throw new TypeError(fit);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var pit=dit,hit=e0,mit=s5,git=uie,yit=N9;function vit(e,t){if(e==null)return{};var n=hit(yit(e),function(r){return[r]});return t=mit(t),git(e,n,function(r,i){return t(r,i[0])})}var bit=vit,wit=s5,Tit=pit,xit=bit;function Sit(e,t){return xit(e,Tit(wit(t)))}var Cit=Sit;const Fq=Kt(Cit);var Ait=Eie,_it=1,Eit=4;function Rit(e){return Ait(e,_it|Eit)}var kit=Rit;const oh=Kt(kit);function Dit(e,t){const n=U.useRef();U.useEffect(()=>{n.current=e},[e]),U.useEffect(()=>{function r(){n.current()}if(t!==null){const i=setInterval(r,t);return()=>clearInterval(i)}},[t])}var Mie={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function o(l,c,u,d,p){if(typeof u!="function")throw new TypeError("The listener must be a function");var g=new i(u,d||l,p),y=n?n+c:c;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],g]:l._events[y].push(g):(l._events[y]=g,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,g=d.length,y=new Array(g);p<g;p++)y[p]=d[p].fn;return y},s.prototype.listenerCount=function(c){var u=n?n+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,p,g,y){var b=n?n+c:c;if(!this._events[b])return!1;var A=this._events[b],x=arguments.length,D,O;if(A.fn){switch(A.once&&this.removeListener(c,A.fn,void 0,!0),x){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,u),!0;case 3:return A.fn.call(A.context,u,d),!0;case 4:return A.fn.call(A.context,u,d,p),!0;case 5:return A.fn.call(A.context,u,d,p,g),!0;case 6:return A.fn.call(A.context,u,d,p,g,y),!0}for(O=1,D=new Array(x-1);O<x;O++)D[O-1]=arguments[O];A.fn.apply(A.context,D)}else{var M=A.length,q;for(O=0;O<M;O++)switch(A[O].once&&this.removeListener(c,A[O].fn,void 0,!0),x){case 1:A[O].fn.call(A[O].context);break;case 2:A[O].fn.call(A[O].context,u);break;case 3:A[O].fn.call(A[O].context,u,d);break;case 4:A[O].fn.call(A[O].context,u,d,p);break;default:if(!D)for(q=1,D=new Array(x-1);q<x;q++)D[q-1]=arguments[q];A[O].fn.apply(A[O].context,D)}}return!0},s.prototype.on=function(c,u,d){return o(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return o(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,p){var g=n?n+c:c;if(!this._events[g])return this;if(!u)return a(this,g),this;var y=this._events[g];if(y.fn)y.fn===u&&(!p||y.once)&&(!d||y.context===d)&&a(this,g);else{for(var b=0,A=[],x=y.length;b<x;b++)(y[b].fn!==u||p&&!y[b].once||d&&y[b].context!==d)&&A.push(y[b]);A.length?this._events[g]=A.length===1?A[0]:A:a(this,g)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&a(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(Mie);var q9=Mie.exports,z9=Object.defineProperty,Lit=Object.getOwnPropertyDescriptor,Oit=Object.getOwnPropertyNames,Iit=Object.prototype.hasOwnProperty,Pit=(e,t)=>{for(var n in t)z9(e,n,{get:t[n],enumerable:!0})},Mit=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Oit(t))!Iit.call(e,i)&&i!==n&&z9(e,i,{get:()=>t[i],enumerable:!(r=Lit(t,i))||r.enumerable});return e},Bit=e=>Mit(z9({},"__esModule",{value:!0}),e),Bie={};Pit(Bie,{Channel:()=>$ie,LongPoll:()=>Fb,Presence:()=>Hm,Serializer:()=>Wm,Socket:()=>qit});var Nit=Bit(Bie),T1=e=>typeof e=="function"?e:function(){return e},$it=typeof self<"u"?self:null,zm=typeof window<"u"?window:null,x1=$it||zm||x1,Fit="2.0.0",sl={connecting:0,open:1,closing:2,closed:3},Uit=1e4,jit=1e3,Qo={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Kl={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},OE={longpoll:"longpoll",websocket:"websocket"},Vit={complete:4},b2=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},Nie=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},$ie=class{constructor(e,t,n){this.state=Qo.closed,this.topic=e,this.params=T1(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new b2(this,Kl.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Nie(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Qo.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Qo.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=Qo.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=Qo.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new b2(this,Kl.leave,T1({}),this.timeout).send(),this.state=Qo.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Kl.reply,(r,i)=>{this.trigger(this.replyEventName(i),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(e){this.on(Kl.close,e)}onError(e){return this.on(Kl.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new b2(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Qo.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Kl.close,"leave")},n=new b2(this,Kl.leave,T1({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Qo.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let o=this.bindings.filter(a=>a.event===e);for(let a=0;a<o.length;a++)o[a].callback(i,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Qo.closed}isErrored(){return this.state===Qo.errored}isJoined(){return this.state===Qo.joined}isJoining(){return this.state===Qo.joining}isLeaving(){return this.state===Qo.leaving}},h4=class{static request(e,t,n,r,i,o,a){if(x1.XDomainRequest){let s=new x1.XDomainRequest;return this.xdomainRequest(s,e,t,r,i,o,a)}else{let s=new x1.XMLHttpRequest;return this.xhrRequest(s,e,t,n,r,i,o,a)}}static xdomainRequest(e,t,n,r,i,o,a){return e.timeout=i,e.open(t,n),e.onload=()=>{let s=this.parseJSON(e.responseText);a&&a(s)},o&&(e.ontimeout=o),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,i,o,a,s){return e.open(t,n,!0),e.timeout=o,e.setRequestHeader("Content-Type",r),e.onerror=()=>s&&s(null),e.onreadystatechange=()=>{if(e.readyState===Vit.complete&&s){let l=this.parseJSON(e.responseText);s(l)}},a&&(e.ontimeout=a),e.send(i),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=t?`${t}[${r}]`:r,o=e[r];typeof o=="object"?n.push(this.serialize(o,i)):n.push(encodeURIComponent(i)+"="+encodeURIComponent(o))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},Fb=class{constructor(e){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=sl.connecting,this.poll()}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+OE.websocket),"$1/"+OE.longpoll)}endpointURL(){return h4.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=sl.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===sl.open||this.readyState===sl.connecting}poll(){this.ajax("GET","application/json",null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:n,messages:r}=e;this.token=n}else t=0;switch(t){case 200:r.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=sl.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${t}`)}})}send(e){this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST","application/x-ndjson",e.join(`
488
- `),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let i of this.reqs)i.abort();this.readyState=sl.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,i){let o,a=()=>{this.reqs.delete(o),r()};o=h4.request(e,this.endpointURL(),t,n,this.timeout,a,s=>{this.reqs.delete(o),this.isActive()&&i(s)}),this.reqs.add(o)}},Hm=class{constructor(e,t={}){let n=t.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,r=>{let{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Hm.syncState(this.state,r,i,o),this.pendingDiffs.forEach(s=>{this.state=Hm.syncDiff(this.state,s,i,o)}),this.pendingDiffs=[],a()}),this.channel.on(n.diff,r=>{let{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(r):(this.state=Hm.syncDiff(this.state,r,i,o),a())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return Hm.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,n,r){let i=this.clone(e),o={},a={};return this.map(i,(s,l)=>{t[s]||(a[s]=l)}),this.map(t,(s,l)=>{let c=i[s];if(c){let u=l.metas.map(y=>y.phx_ref),d=c.metas.map(y=>y.phx_ref),p=l.metas.filter(y=>d.indexOf(y.phx_ref)<0),g=c.metas.filter(y=>u.indexOf(y.phx_ref)<0);p.length>0&&(o[s]=l,o[s].metas=p),g.length>0&&(a[s]=this.clone(c),a[s].metas=g)}else o[s]=l}),this.syncDiff(i,{joins:o,leaves:a},n,r)}static syncDiff(e,t,n,r){let{joins:i,leaves:o}=this.clone(t);return n||(n=function(){}),r||(r=function(){}),this.map(i,(a,s)=>{let l=e[a];if(e[a]=this.clone(s),l){let c=e[a].metas.map(d=>d.phx_ref),u=l.metas.filter(d=>c.indexOf(d.phx_ref)<0);e[a].metas.unshift(...u)}n(a,l,s)}),this.map(o,(a,s)=>{let l=e[a];if(!l)return;let c=s.metas.map(u=>u.phx_ref);l.metas=l.metas.filter(u=>c.indexOf(u.phx_ref)<0),r(a,l,s),l.metas.length===0&&delete e[a]}),e}static list(e,t){return t||(t=function(n,r){return r}),this.map(e,(n,r)=>t(n,r))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static clone(e){return JSON.parse(JSON.stringify(e))}},Wm={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,o,a]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:o,payload:a})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:o}=e,a=this.META_LENGTH+t.length+n.length+i.length+r.length,s=new ArrayBuffer(this.HEADER_LENGTH+a),l=new DataView(s),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,t.length),l.setUint8(c++,n.length),l.setUint8(c++,i.length),l.setUint8(c++,r.length),Array.from(t,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(c++,d.charCodeAt(0)));var u=new Uint8Array(s.byteLength+o.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(o),s.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),o=t.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(e.slice(a,a+r));a=a+r;let l=n.decode(e.slice(a,a+i));a=a+i;let c=n.decode(e.slice(a,a+o));a=a+o;let u=e.slice(a,e.byteLength);return{join_ref:s,ref:null,topic:l,event:c,payload:u}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),o=t.getUint8(3),a=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(s,s+r));s=s+r;let c=n.decode(e.slice(s,s+i));s=s+i;let u=n.decode(e.slice(s,s+o));s=s+o;let d=n.decode(e.slice(s,s+a));s=s+a;let p=e.slice(s,e.byteLength),g={status:d,response:p};return{join_ref:l,ref:c,topic:u,event:Kl.reply,payload:g}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),o=this.HEADER_LENGTH+2,a=n.decode(e.slice(o,o+r));o=o+r;let s=n.decode(e.slice(o,o+i));o=o+i;let l=e.slice(o,e.byteLength);return{join_ref:null,ref:null,topic:a,event:s,payload:l}}},qit=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||Uit,this.transport=n.transport||x1.WebSocket||Fb,this.establishedConnections=0,this.defaultEncoder=Wm.encode.bind(Wm),this.defaultDecoder=Wm.decode.bind(Wm),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Fb?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;zm&&zm.addEventListener&&(zm.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),zm.addEventListener("pageshow",i=>{r===this.connectClock&&(r=null,this.connect())})),this.heartbeatIntervalMs=n.heartbeatIntervalMs||3e4,this.rejoinAfterMs=i=>n.rejoinAfterMs?n.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>n.reconnectAfterMs?n.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=n.logger||null,this.longpollerTimeout=n.longpollerTimeout||2e4,this.params=T1(n.params||{}),this.endPoint=`${t}/${OE.websocket}`,this.vsn=n.vsn||Fit,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Nie(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Fb}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=h4.appendParams(h4.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,n,r){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,n,r)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=T1(t)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=n=>this.onConnError(n),this.conn.onmessage=n=>this.onConnMessage(n),this.conn.onclose=n=>this.onConnClose(n))}log(t,n,r){this.logger(t,n,r)}hasLogger(){return this.logger!==null}onOpen(t){let n=this.makeRef();return this.stateChangeCallbacks.open.push([n,t]),n}onClose(t){let n=this.makeRef();return this.stateChangeCallbacks.close.push([n,t]),n}onError(t){let n=this.makeRef();return this.stateChangeCallbacks.error.push([n,t]),n}onMessage(t){let n=this.makeRef();return this.stateChangeCallbacks.message.push([n,t]),n}ping(t){if(!this.isConnected())return!1;let n=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:n});let i=this.onMessage(o=>{o.ref===n&&(this.off([i]),t(Date.now()-r))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,t])=>t())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),jit,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,n,r){if(!this.conn)return t&&t();this.waitForBufferDone(()=>{this.conn&&(n?this.conn.close(n,r||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,n=1){if(n===5||!this.conn||!this.conn.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(t,n+1)},150*n)}waitForSocketClosed(t,n=1){if(n===5||!this.conn||this.conn.readyState===sl.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(t,n+1)},150*n)}onConnClose(t){let n=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&n!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,r])=>r(t))}onConnError(t){this.hasLogger()&&this.log("transport",t);let n=this.transport,r=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,i])=>{i(t,n,r)}),(n===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Kl.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case sl.connecting:return"connecting";case sl.open:return"open";case sl.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(n=>n.joinRef()!==t.joinRef())}off(t){for(let n in this.stateChangeCallbacks)this.stateChangeCallbacks[n]=this.stateChangeCallbacks[n].filter(([r])=>t.indexOf(r)===-1)}channel(t,n={}){let r=new $ie(t,n,this);return this.channels.push(r),r}push(t){if(this.hasLogger()){let{topic:n,event:r,payload:i,ref:o,join_ref:a}=t;this.log("push",`${n} ${r} (${a}, ${o})`,i)}this.isConnected()?this.encode(t,n=>this.conn.send(n)):this.sendBuffer.push(()=>this.encode(t,n=>this.conn.send(n)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:i,payload:o,ref:a,join_ref:s}=n;a&&a===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${o.status||""} ${r} ${i} ${a&&"("+a+")"||""}`,o);for(let l=0;l<this.channels.length;l++){const c=this.channels[l];c.isMember(r,i,o,s)&&c.trigger(i,o,a,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,c]=this.stateChangeCallbacks.message[l];c(n)}})}leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r.isJoined()||r.isJoining()));n&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),n.leave())}},IE={exports:{}},iC,Uq;function zit(){if(Uq)return iC;Uq=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,o=r*365.25;iC=function(u,d){d=d||{};var p=typeof u;if(p==="string"&&u.length>0)return a(u);if(p==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var p=parseFloat(d[1]),g=(d[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return p*o;case"weeks":case"week":case"w":return p*i;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function s(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=r?c(u,d,r,"day"):d>=n?c(u,d,n,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,p,g){var y=d>=p*1.5;return Math.round(u/p)+" "+g+(y?"s":"")}return iC}function Hit(e){n.debug=n,n.default=n,n.coerce=l,n.disable=o,n.enable=i,n.enabled=a,n.humanize=zit(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let p=0;p<u.length;p++)d=(d<<5)-d+u.charCodeAt(p),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,p=null,g,y;function b(...A){if(!b.enabled)return;const x=b,D=Number(new Date),O=D-(d||D);x.diff=O,x.prev=d,x.curr=D,d=D,A[0]=n.coerce(A[0]),typeof A[0]!="string"&&A.unshift("%O");let M=0;A[0]=A[0].replace(/%([a-zA-Z%])/g,(B,j)=>{if(B==="%%")return"%";M++;const K=n.formatters[j];if(typeof K=="function"){const oe=A[M];B=K.call(x,oe),A.splice(M,1),M--}return B}),n.formatArgs.call(x,A),(x.log||n.log).apply(x,A)}return b.namespace=u,b.useColors=n.useColors(),b.color=n.selectColor(u),b.extend=r,b.destroy=n.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(g!==n.namespaces&&(g=n.namespaces,y=n.enabled(u)),y),set:A=>{p=A}}),typeof n.init=="function"&&n.init(b),b}function r(u,d){const p=n(this.namespace+(typeof d>"u"?":":d)+u);return p.log=this.log,p}function i(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const p=(typeof u=="string"?u:"").split(/[\s,]+/),g=p.length;for(d=0;d<g;d++)p[d]&&(u=p[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function o(){const u=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),u}function a(u){if(u[u.length-1]==="*")return!0;let d,p;for(d=0,p=n.skips.length;d<p;d++)if(n.skips[d].test(u))return!1;for(d=0,p=n.names.length;d<p;d++)if(n.names[d].test(u))return!0;return!1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var Wit=Hit;(function(e,t){var n={};t.formatArgs=i,t.save=o,t.load=a,t.useColors=r,t.storage=s(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;c.splice(1,0,u,"color: inherit");let d=0,p=0;c[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(d++,g==="%c"&&(p=d))}),c.splice(p,0,u)}t.log=console.debug||console.log||(()=>{});function o(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function a(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof pn<"u"&&"env"in pn&&(c=n.DEBUG),c}function s(){try{return localStorage}catch{}}e.exports=Wit(t);const{formatters:l}=e.exports;l.j=function(c){try{return JSON.stringify(c)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(IE,IE.exports);var H9=IE.exports;const n_t=Kt(H9),Git=H9;var Kit=(e,t=!1)=>{const n=Git(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const Jit=Kit;var Yit=(e,t,n)=>class extends e{constructor(i,o={}){super(i,{transport:n,...o}),this._logger=Jit("client",o.silent),this.emitter=new t,this.onOpen(()=>{this._logger.debug("socket open",i)}),this.onClose(()=>{this._logger.debug("socket close",i)}),this.onError(a=>{this._logger.error("socket error",a.error)}),this.onMessage(a=>{this._logger.debug("socket message",a)})}on(i,o,a={}){this.ensureJoinChannel(i,a),this.emitter.on(i,o)}off(i,o){o?this.emitter.off(i,o):this.emitter.removeAllListeners(i),this.ensureLeaveChannel(i)}disconnect(i,o,a){this.emitter.eventNames().forEach(s=>{this.emitter.removeAllListeners(s)}),super.disconnect(i,o,a)}ensureJoinChannel(i,o={}){if(this.emitter.listenerCount(i)>0)return;const s=this.channel(i,o);s.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),s.on(i,({status:l,response:c})=>{l==="ok"?this.emitter.emit(i,c):this._logger.debug("response error",{topic:i,status:l,data:c})})}ensureLeaveChannel(i){if(this.emitter.listenerCount(i)>0)return;const a=this.channels.find(s=>s.topic===i);a&&(this.remove(a),a.leave().receive("ok",s=>{this._logger.debug("leave success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("leave error",{topic:i,err:s})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:i})}),a.off(i))}subscribe(i,o={}){let a=this.channels.find(s=>s.topic===i);return a||(a=this.channel(i,o),a.join().receive("ok",s=>{this._logger.debug("join success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("join error",{topic:i,error:s})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),a)}unsubscribe(i){this.ensureLeaveChannel(i)}};const Zit=q9,{Socket:Xit}=Nit,Qit=Yit;var eot=Qit(Xit,Zit);const tot=eot;var Fie={WsClient:tot};function not(e){const t=U.useRef(e);U.useEffect(()=>{t.current=e},[e]),U.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function rot(e){const t=e||window.location.href;return new URL(t).host}function Gm(e){const t={},n=e||window.location.href;if(n){const{hostname:r,protocol:i,port:o}=new URL(n);t["x-real-hostname"]=r,t["x-real-port"]=o,t["x-real-protocol"]=i.endsWith(":")?i.substring(0,i.length-1):i}return t}const oC={};function iot({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const o=`${t}/token?${Op(r)}`;return oC[o]||(oC[o]=async function(){var d,p;const s=+new Date,l=await n(o,{headers:Gm(i)}),c=+new Date;if(c-s<500&&await Zl(500-(c-s)),(d=l==null?void 0:l.data)!=null&&d.token)return l.data;if((p=l==null?void 0:l.data)!=null&&p.error)throw new Error(l.data.error);const u=Jg(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${u}`)}),oC[o]}const oot=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=jGe(t);return{token:VGe(n),url:n}}catch(e){return{error:e}}},Uie=()=>If(globalThis,"blocklet.appPid")||If(globalThis,"blocklet.appId")||If(globalThis,"env.appId")||"",aot=()=>(If(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(fre,""),aC=e=>`relay:${Uie()}:${e}`,sot=()=>window.location.protocol==="https:"?"wss:":"ws:",jq=e=>!e||new URL(e).origin===window.location.origin,Vq=e=>["succeed","error","timeout","busy"].includes(e);function lot({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:o,prefix:a,tokenKey:s,encKey:l,onError:c,onSuccess:u,baseUrl:d,autoConnect:p=!0,forceConnected:g=!0,saveConnect:y=!0,useSocket:b=!0,provider:A="wallet"}){const x=ui({checking:!1,loading:!1,token:"",url:"",store:null,status:"created",error:"",checkCount:0,mfaCode:0,appInfo:null,memberAppInfo:null,connectedDid:"",saveConnect:!1,inExistingSession:!1,nextWorkflow:"",baseUrl:d,prefix:`${a}/${e}`,extraParams:Fq(i,y1),checkFn:t,results:{},action:e,provider:A}),D=U.useRef(null),O=fg[o]||fg.en,M=Xt(()=>oot(),[]),q=Math.ceil(r/n),B=ui({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:j,decrypt:K}=qGe(),oe=i0(),ue=Cc(),G=U.useRef(null),P=U.useRef(null),T={...x.extraParams,locale:o,[s]:x.token||(M==null?void 0:M.token),provider:x.provider},f=async()=>{if(!(M!=null&&M.token&&(M==null?void 0:M.token)===x.token)){try{T[s]&&x.status==="created"&&await x.checkFn(`${x.prefix}/timeout?${Op(T)}`,{headers:Gm(x.baseUrl)})}catch{}try{x.token&&P.current&&(await G.current.unsubscribe(aC(x.token)),P.current=null)}catch{}}},h=St((...v)=>{const L={[l]:j,...x.extraParams,locale:o,forceConnected:g,autoConnect:p&&!oe.wallet&&!B.cancelWhenScannedCounter&&["ios","android"].includes(yi.get("connected_wallet_os")),provider:x.provider};ue&&(L.visitorId=ue);const ne=a5(D.current||{},["sourceAppPid","verbose"]);return Object.keys(ne).forEach(J=>{(!L[J]||J===l&&ne[J])&&(L[J]=ne[J])}),M!=null&&M.token&&!L.sourceToken&&(L.sourceToken=M==null?void 0:M.token),iot({action:e,prefix:x.prefix,baseUrl:x.baseUrl,checkFn:x.checkFn,extraParams:L})(...v)}),w=St(async(v=!0)=>{v&&f();try{x.loading=!0,x.token="",x.url="",x.store=null,x.extraParams=Fq(i,y1),await Zl();const L=await h(),ne=L.extra||{};x.loading=!1,x.token=L.token,x.url=L.url,x.status="created",x.error="",x.checkCount=0,x.appInfo=L.appInfo,x.memberAppInfo=L.memberAppInfo,x.connectedDid=ne.connectedDid,x.saveConnect=ne.saveConnect}catch(L){x.loading=!1,x.status="error",x.error=`${O.generateError}: ${L.message}`}}),_=()=>{B.cancelWhenScannedCounter++};U.useEffect(()=>{B.cancelWhenScannedCounter>0&&(i.nw?c(new Error(O.retryForbidden)):w())},[B.cancelWhenScannedCounter]),U.useEffect(()=>(b&&jq(x.baseUrl)&&Uie()?(!G.current||G.current.isConnected()===!1||G.current.baseUrl!==x.baseUrl)&&(G.current=new Fie.WsClient(`${sot()}//${rot(x.baseUrl)}${aot()}${fre}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),G.current.baseUrl=x.baseUrl,G.current.onOpen(()=>{B.isSocketAvailable=!0}),G.current.connect()):B.isSocketAvailable&&(B.isSocketAvailable=!1),()=>{G.current&&(G.current.disconnect(),G.current=null)}),[x.baseUrl]);const R=()=>!x.token||x.loading||Vq(x.status)?null:n,k=U.useRef(null);U.useEffect(()=>{k.current={state:x,params:T}}),U.useEffect(()=>()=>{const{state:v,params:L}=k.current;v.status==="created"&&L[s]&&v.checkFn(`${v.prefix}/timeout?${Op(L)}`,{headers:Gm(v.baseUrl)})},[]);const C=async(v=!1)=>{var L;if(x.checking||(x.status==="created"&&x.checkCount++,B.isSocketAvailable&&!v))return null;try{x.checking=!0;const ne=await x.checkFn(`${x.prefix}/status?${Op(T)}`,{headers:Gm(x.baseUrl)}),{status:F,error:J,mfaCode:se=0}=ne.data;if(x.store=ne.data,x.mfaCode=se,x.checking=!1,x.status=F,F==="error"&&J){const pe=new Error(J);throw pe.response=ne,pe}return ne.data}catch(ne){const{response:F}=ne;if(F!=null&&F.status){T[s]&&x.checkFn(`${x.prefix}/timeout?${Op(T)}`,{headers:Gm(x.baseUrl)});const J=(L=F==null?void 0:F.data)!=null&&L.error?F.data.error:ne.message,se=new Error(J);se.code=F.status,x.status="error",x.checking=!1,x.error=J,c(se,x==null?void 0:x.store,K)}else x.status="error",x.checking=!1,x.error=O.generateError}return null},E=async()=>{try{if(M.error)throw M.error;x.loading=!0,x.token=M.token,x.url=M.url,x.inExistingSession=!0;let v=await C();if((["scanned"].includes(v==null?void 0:v.status)||(v==null?void 0:v.sourceToken)===(M==null?void 0:M.token))&&(await w(!1),v=await C()),D.current=(v==null?void 0:v.extraParams)||null,v!=null&&v.status&&!["created"].includes(v==null?void 0:v.status))throw new Error(`${O.invalidSessionStatus} [${v.status}]`)}catch(v){x.status="error",x.error=v.message,c(v,x==null?void 0:x.store,K)}finally{x.loading=!1}};return U.useEffect(()=>{var v;if(!x.token&&!x.store&&!x.loading&&!x.error)if(M)E();else{w(!1);return}if(x.status!=="timeout"&&x.checkCount>q){x.status="timeout",f();return}if(x.status==="succeed"&&!B.onSuccessCalled){const L=hre({...x.store,appInfo:x.appInfo,memberAppInfo:x.memberAppInfo});if(jq(x.baseUrl)&&y&&x.saveConnect&&x.store.did&&v1(L,!0),x.store){const{nextWorkflow:ne}=x.store;if(ne)try{const F=WV(ne,s);x.nextWorkflow=(F==null?void 0:F.nextWorkflow)||ne,Object.assign(x,F),x.store=null,x.error="",x.url="",x.appInfo=null,x.memberAppInfo=null,x.checkCount=0,x.status="scanned",x.results={...x.results,[x.token]:x.store},x.checkFn=gu({baseURL:F.baseUrl,timeout:8e3}).get,C()}catch(F){console.error(`Invalid nextWorkflow: ${ne}`,F),x.status="error",x.error=`Invalid nextWorkflow: ${ne}: ${F.message}`}else if(x.nextWorkflow&&(x.nextWorkflow="",x.url=""),typeof u=="function"){const F=Object.values({...x.results,[x.token]:x.store});B.onSuccessCalled=!0;const J=F.length>1?F:F[0],se=oh(J);u(se,K,{sourceAppPid:i==null?void 0:i.sourceAppPid,...L})}}return}if((v=x.store)!=null&&v.nextWorkflow){const{nextWorkflow:L}=x.store;try{const ne=WV(L,s);x.nextWorkflow=(ne==null?void 0:ne.nextWorkflow)||L,Object.assign(x,ne),x.store=null,x.error="",x.url="",x.appInfo=null,x.memberAppInfo=null,x.checkCount=0,x.status="scanned",x.results={...x.results,[x.token]:x.store},x.checkFn=gu({baseURL:ne.baseUrl,timeout:8e3}).get,C()}catch(ne){console.error(`Invalid nextWorkflow: ${L}`,ne),x.status="error",x.error=`Invalid nextWorkflow: ${L}: ${ne.message}`}}}),U.useEffect(()=>{if(x.token&&B.isSocketAvailable&&G.current){let v=!1;P.current?P.current.token!==x.token&&(G.current.unsubscribe(aC(P.current.token)),v=!0):v=!0,v&&(P.current=G.current.subscribe(aC(x.token)),P.current.token=x.token,P.current.on("updated",({response:L})=>{let{status:ne,error:F}=L;ne==="forbidden"&&(F=O.forbidden,ne="error"),x.status=ne,x.mfaCode=L.mfaCode||0,x.store=L,x.error=F,F&&c(new Error(F),x==null?void 0:x.store,K)}))}},[x.token,B.isSocketAvailable,G.current]),Dit(C,R()),not(()=>{B.isSocketAvailable&&x.token&&Vq(x.status)===!1&&C(!0)}),{state:x,generate:w,cancelWhenScanned:_}}var W9={},l5={};Object.defineProperty(l5,"__esModule",{value:!0});l5.default=void 0;var vf={call:function(t,n,r){var i="";typeof n=="function"&&(r=n,n={});var o={data:n===void 0?null:n};if(typeof r=="function"){var a="dscb"+window.dscb++;window[a]=r,o._dscbstub=a}return o=JSON.stringify(o),window._dsbridge?i=_dsbridge.call(t,o):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(i=prompt("_dsbridge="+t,o)),JSON.parse(i||"{}").data},register:function(t,n,r){var i=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){vf.call("_dsb.dsinit")},0)),typeof n=="object"?i._obs[t]=n:i[t]=n},registerAsyn:function(t,n){this.register(t,n,!0)},hasNativeMethod:function(t,n){return this.call("_dsb.hasNativeMethod",{name:t,type:n||"all"})},disableJavascriptDialogBlock:function(t){this.call("_dsb.disableJavascriptDialogBlock",{disable:t!==!1})}};(function(){if(!(window._dsbridge||window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)||window._dsf)return;const e=window.close;var t={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:vf,close:function(){vf.call("_dsb.closePage"),e()},_handleMessageFromNative:function(i){var o=JSON.parse(i.data),a={id:i.callbackId,complete:!0},s=this._dsf[i.method],l=this._dsaf[i.method],c=function(D,O){a.data=D.apply(O,o),vf.call("_dsb.returnValue",a)},u=function(D,O){o.push(function(M,q){a.data=M,a.complete=q!==!1,vf.call("_dsb.returnValue",a)}),D.apply(O,o)};if(s)c(s,this._dsf);else if(l)u(l,this._dsaf);else{var d=i.method.split(".");if(d.length<2)return;var p=d.pop(),g=d.join("."),y=this._dsf._obs,b=y[g]||{},A=b[p];if(A&&typeof A=="function"){c(A,b);return}if(y=this._dsaf._obs,b=y[g]||{},A=b[p],A&&typeof A=="function"){u(A,b);return}}}};for(var n in t)window[n]=t[n];vf.register("_hasJavascriptMethod",function(r,i){var o=r.split(".");if(o.length<2)return!!(_dsf[o]||_dsaf[o]);var r=o.pop(),a=o.join("."),s=_dsf._obs[a]||_dsaf._obs[a];return s&&!!s[r]})})();l5.default=vf;Object.defineProperty(W9,"__esModule",{value:!0});var u5=W9.default=void 0,Xs=uot(l5);function uot(e){return e&&e.__esModule?e:{default:e}}u5=W9.default={call(){Xs.default.call(...arguments)},asyncCall(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise((r,i)=>{Xs.default.call(...t,o=>{try{const a=JSON.parse(o);if(a.code===0){const s=JSON.parse(a.data);r(s)}else i(new Error(a.error))}catch{r(o)}})})},shareMessage(e){const{content:t,imgUrl:n,success:r,fail:i}=e;if(!t&&!n){i("params error");return}Xs.default.call("arcShare",JSON.stringify({content:t,imgUrl:n}),o=>{const a=JSON.parse(o);a&&a.code===0?typeof r=="function"&&r(o):typeof i=="function"&&i(o)})},showLoading(){Xs.default.call("arcShowLoading")},hideLoading(){Xs.default.call("arcHideLoading")},showToast(e){e&&typeof e=="string"&&Xs.default.call("arcToast",e)},chooseImgs(e){const{limit:t,success:n,fail:r}=e;Xs.default.call("arcChooseImgs",JSON.stringify({limit:t}),i=>{const o=JSON.parse(i);o&&o.code===0?typeof n=="function"&&n(i):typeof r=="function"&&r(i)})},previewImgs(e){const{imgs:t}=e;!t||t.length===0||Xs.default.call("arcPreviewImgs",JSON.stringify(e))},isSetPWD(e){const{success:t,fail:n}=e;Xs.default.call("arcIsSetPWD","",r=>{const i=JSON.parse(r);i&&i.code===0?typeof t=="function"&&t(r):typeof n=="function"&&n(r)})},isCodeABOk(e){const{success:t,fail:n}=e;Xs.default.call("arcIsCodeABOk","",r=>{const i=JSON.parse(r);i&&i.code===0?typeof t=="function"&&t(r):typeof n=="function"&&n(r)})}};function G9({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i,connectState:o}=Ll(),a=r(i?"openDidConnect":"openInWallet"),s=Xt(()=>{if(!e.url)return"";const u=new URL(window.location.href);u.searchParams.set("tokenKey",e.token);const d=new URL(e.url);return d.searchParams.set("callback",encodeURIComponent(u)),d.searchParams.set("callback_delay",1500),d.searchParams.set("locale",t),d.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),l=St(()=>{u5.call("authAction",{action:"auth",deepLink:s})}),c={};return i||(c.component="a",c.href=s),ey(()=>{o.autoActiveWebview&&s&&(o.autoActiveWebview=!1,l())}),I.jsxs(Au,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:Rt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...c,onClick:i?l:Zn,children:[I.jsxs(ct,{sx:{display:"flex",alignItems:"center",gap:1},children:[I.jsx(Bh,{width:"24px",height:"24px"}),I.jsx(tn,{sx:{fontSize:"14px",fontWeight:500},children:a})]}),I.jsx(Yn,{icon:K6,fontSize:"1.3rem",color:Rt.primaryBase})]})}G9.propTypes={tokenState:Q.object.isRequired,locale:Q.string,tokenKey:Q.string};G9.defaultProps={locale:"en",tokenKey:"_t_"};const cot={width:24,height:24,body:'<path fill="currentColor" d="M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.7 0 3.113-.863t2.187-2.312q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20Z"/>'};function jie({onRefresh:e,...t}){const n=r=>{r.stopPropagation(),e()};return I.jsx(ct,{...t,onClick:n,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.75)",cursor:"pointer",...t.sx},children:I.jsx(ct,{sx:{backgroundColor:Rt.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:I.jsx(Yn,{icon:cot,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}jie.propTypes={onRefresh:Q.func.isRequired};const w2=["scanned","succeed","error","busy"];function K9({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:o,checkTimeout:a,locale:s,tokenKey:l,encKey:c,baseUrl:u,autoConnect:d,forceConnected:p,saveConnect:g,useSocket:y,allowWallet:b,provider:A,webWalletUrl:x,onRecreateSession:D,onClose:O,messages:M,enabledConnectTypes:q}){var le,ve,Ae;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const B=U.useContext(Sd),{connectState:j,extraParams:K,staticState:oe,changeStatus:ue,isWalletWebview:G,matchSmallScreen:P,t:T}=Ll(),f=i0(),h=Kg(),{setBaseUrl:w,oauthState:_,getOAuthConfigList:R}=j9(),k=Xt(()=>{var xe;return A||(K==null?void 0:K.provider)||((xe=B==null?void 0:B.session)==null?void 0:xe.provider)||"wallet"},[K==null?void 0:K.provider,(le=B==null?void 0:B.session)==null?void 0:le.provider]);U.useEffect(()=>{w(u)},[u]);const{state:C,generate:E,cancelWhenScanned:v}=lot({action:n,baseUrl:u,checkFn:i,checkInterval:o,checkTimeout:a,extraParams:K,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:c,autoConnect:d,forceConnected:p,saveConnect:g,useSocket:y,allowWallet:b,provider:k}),[L,ne]=U.useState([]);MQ(async()=>{const xe=await R({sourceAppPid:j==null?void 0:j.sourceAppPid});ne(xe)},[j==null?void 0:j.sourceAppPid]);const F=$Q(j==null?void 0:j.sourceAppPid);Xf(()=>{Xi(F)||E()},[j==null?void 0:j.sourceAppPid]);const J=Xt(()=>w2.includes(_.status)||w2.includes(C.status),[C.status,_.status]);U.useEffect(()=>{w2.includes(_.status)?ue(_.status):w2.includes(C.status)?ue(C.status):ue("created")},[ue,C.status,_.status]);const se=St(()=>{D(),_.reset(),E(!1)}),pe=St(()=>{D(),oe.current.cancelCount++,v()}),be=Xt(()=>({confirm:M.confirm,success:M.success,error:C.error||_.error||""}),[M.confirm,M.success,C.error,_.error]),Ee=Xt(()=>b&&q.includes("mobile")&&!G,[b,q,G]),H=Cee(x),$=Xt(()=>b&&q.includes("web")&&(H||h)&&(!f.mobile.any||h),[b,q,(ve=f==null?void 0:f.mobile)==null?void 0:ve.any]),Z=Xt(()=>b&&q.includes("mobile")&&f.mobile.any&&!h,[b,q,(Ae=f==null?void 0:f.mobile)==null?void 0:Ae.any]),Y=Xt(()=>{const xe=HYe(Object.keys(ul),q);return L.filter(He=>xe.includes(He.provider))},[L,q]),ie=Xt(()=>Y.length>0&&["login","invite"].includes(C.action),[Y]),Te=Xt(()=>{const xe=Ee||$||Z;let He=null;return ie&&(He=xe?I.jsxs(I.Fragment,{children:[I.jsx(Sh,{sx:{color:Rt.textMuted,width:P?"200px":"368px",opacity:.6,maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:Rt.lineStep}},children:"OR"}),I.jsx(p4,{providerList:Y,onSuccess:e,onError:t,tokenState:C,locale:s,type:"list"})]}):I.jsxs(I.Fragment,{children:[I.jsx(tn,{variant:"body2",sx:{mt:1,textAlign:"center",color:Rt.foregroundsFgSubtile},children:T("loginWithBelow")}),I.jsx(p4,{providerList:Y,onSuccess:e,onError:t,tokenState:C,type:"list",locale:s})]})),I.jsxs(I.Fragment,{children:[C.status==="timeout"?I.jsx(jie,{onRefresh:se,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,I.jsx(ct,{"data-did-auth-url":C.url,sx:{display:"none"}}),Z&&I.jsx(G9,{tokenState:C,locale:s,tokenKey:l}),Ee&&I.jsx(D9,{tokenState:C,messages:M,locale:s}),$&&I.jsx(R9,{tokenState:C,webWalletUrl:x,locale:s}),He]})},[C,C.url,C.status,Ee,$,Z,Y,ie,ie,e,t,s,l,M,x]);return Xt(()=>C.loading||_.loading||!C.token&&!C.error,[C.loading,_.loading])?I.jsx(pD,{}):J?I.jsxs(I.Fragment,{children:[I.jsx(ct,{"data-did-auth-url":C.url,sx:{display:"none"}}),I.jsx(Q6,{status:_.status||C.status,nextWorkflow:C.nextWorkflow,mfaCode:C.mfaCode,onCancel:pe,onRetry:se,onClose:O,messages:be,locale:s,className:"auth-status"})]}):Te}K9.propTypes={onError:Q.func,onSuccess:Q.func.isRequired,action:Q.string.isRequired,checkFn:Q.func.isRequired,prefix:Q.string,checkInterval:Q.number,checkTimeout:Q.number,locale:Q.oneOf(["en","zh",""]),tokenKey:Q.string,encKey:Q.string,baseUrl:Q.string,autoConnect:Q.bool,forceConnected:Q.oneOfType([Q.bool,Q.string]),saveConnect:Q.bool,useSocket:Q.bool,allowWallet:Q.bool,provider:Q.oneOf([Ds.WALLET,...Object.keys(ul),""]),webWalletUrl:Q.string,onRecreateSession:Q.func,onClose:Q.func,messages:Q.object,enabledConnectTypes:Q.arrayOf(Q.oneOf(["web","mobile",...Object.keys(ul)]))};K9.defaultProps={prefix:n9,onError:Zn,checkInterval:2*1e3,checkTimeout:cre*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:See(),onRecreateSession:Zn,onClose:Zn,messages:{},enabledConnectTypes:["web","mobile",...Object.keys(ul)]};var sC=mee,fot=wee,dot=V9,pot=1/0,hot=sC&&1/dot(new sC([,-0]))[1]==pot?function(e){return new sC(e)}:fot,mot=hot,got=A9,yot=Jre,vot=Yre,bot=_9,wot=mot,Tot=V9,xot=200;function Sot(e,t,n){var r=-1,i=yot,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=vot;else if(o>=xot){var c=t?null:wot(e);if(c)return Tot(c);a=!1,i=bot,l=new got}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var Vie=Sot,Cot=M9,Aot=s5,_ot=yy,Eot=Vie,qq=E9,Rot=Rie,kot=_ot(function(e){var t=Rot(e);return qq(t)&&(t=void 0),Eot(Cot(e,1,qq,!0),Aot(t))}),Dot=kot;const Lot=Kt(Dot);function Oot(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var Iot=Oot,Pot=Iot,Mot=Pot(),qie=Mot,Bot=qie,Not=vy;function $ot(e,t){return e&&Bot(e,t,Not)}var Fot=$ot,Uot=wd;function jot(e,t){return function(n,r){if(n==null)return n;if(!Uot(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var Vot=jot,qot=Fot,zot=Vot,Hot=zot(qot),Wot=Hot,Got=Wot,Kot=wd;function Jot(e,t){var n=-1,r=Kot(e)?Array(e.length):[];return Got(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var Yot=Jot;function Zot(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Xot=Zot,zq=Hg;function Qot(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=zq(e),a=t!==void 0,s=t===null,l=t===t,c=zq(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var eat=Qot,tat=eat;function nat(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=tat(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var rat=nat,lC=e0,iat=Gg,oat=s5,aat=Yot,sat=Xot,lat=oy,uat=rat,cat=t5,fat=zo;function dat(e,t,n){t.length?t=lC(t,function(o){return fat(o)?function(a){return iat(a,o.length===1?o[0]:o)}:o}):t=[cat];var r=-1;t=lC(t,lat(oat));var i=aat(e,function(o,a,s){var l=lC(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return sat(i,function(o,a){return uat(o,a,n)})}var pat=dat,hat=Wg,mat=wd,gat=r5,yat=io;function vat(e,t,n){if(!yat(n))return!1;var r=typeof t;return(r=="number"?mat(n)&&gat(t,n.length):r=="string"&&t in n)?hat(n[t],e):!1}var zie=vat,bat=M9,wat=pat,Tat=yy,Hq=zie,xat=Tat(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Hq(e,t[0],t[1])?t=[]:n>2&&Hq(t[0],t[1],t[2])&&(t=[t[0]]),wat(e,bat(t,1),[])}),Sat=xat;const Hie=Kt(Sat),Cat=An(vi,"/api/user-session");function Wie({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/",fetchAll:o=!1}={}){const a=Cc(),s=Xt(()=>gu({baseURL:An(i,Cat)},{lazy:!0,lazyTime:500}),[i]),l=St(async()=>{const{data:b=[]}=await s.get("",{params:{visitorId:a}}),A=xl(),x=Us();if(o&&A&&x){const{data:D}=await s.get(An(x.appUrl,vi,"/api/user-session"),{params:{visitorId:a}});return b.concat(D||[])}return!A||!x?b.filter(D=>{var O;return((O=D==null?void 0:D.user)==null?void 0:O.sourceAppPid)===null}):b}),c=ui({loaded:!1,loadingId:null}),u=sIe(l,{manual:!r,onFinally(){c.loaded=!0},refreshDeps:[i]}),d=async b=>{var x,D,O;const A=i5(b,["userDid","visitorId","passportId"]);try{c.loadingId=b.id;const M=Us();if(xl()&&M&&n!==b.appPid){const{data:B}=await s.post("login",{...A,appPid:n},{baseURL:An(M.appUrl,vi,"/api/user-session")});return B}const{data:q}=await s.post("login",{...A,appPid:n});return q}catch(M){const q=M.response?((D=(x=M.response)==null?void 0:x.data)==null?void 0:D.error)||((O=M.response)==null?void 0:O.data):M.message;throw oi.error(q),console.error("Quick login error",M),M}finally{c.loadingId=null}},p=Xt(()=>u.data?u.data.filter(b=>b.status!=="expired"):[],[u.data]),g=Xt(()=>{const b=new Date().getTime(),A=Hie(p,x=>b-new Date(x.updatedAt).getTime());return Lot(A,x=>[x.userDid].join("_"))},[p,t,e]),y=Xt(()=>!!(g&&g.length>0),[g]);return{loadingId:c.loadingId,userSessions:g,quickLoginEnabled:y,loginUserSession:d,loading:u.loading,loaded:u.loaded,refresh:u.refreshAsync}}const Aat={width:24,height:24,body:'<path fill="currentColor" d="M11.95 18q.525 0 .888-.363t.362-.887q0-.525-.362-.888t-.888-.362q-.525 0-.887.363t-.363.887q0 .525.363.888t.887.362Zm.05 4q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20Zm0-8Zm.1-4.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.938t.75-.787q.575-.55.988-1.2t.412-1.45q0-1.275-1.038-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.113.638t.338.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2Z"/>'},Gie={width:24,height:24,body:'<path fill="currentColor" d="m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4L9.55 18Z"/>'};function J9({appInfo:e,...t}){const[n,r]=U.useState(!1);if(n||!(e.appUrl||e.appLogo))return I.jsx(_l,{did:e.appPid,size:32});let i=e.appLogo||"";return Jg(i)||(i=An(e.appUrl||"",i)),I.jsx($f,{src:i,alt:e.appName||"Blocklet Icon",width:32,height:32,...t,onError:()=>r(!0)})}J9.propTypes={appInfo:Q.object.isRequired};const _at=e=>e?e.split(":").pop():"";function c5({appInfo:e,active:t,appLogo:n}){return I.jsxs(ct,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:Rt.textBase,"& .app-info-content":{paddingLeft:"8px",overflow:"hidden"},"& .app-info-name":{maxWidth:"100%",paddingRight:"32px",lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"},"& .app-info-did":{fontSize:0},"& .app-info-did .did-address-text":{color:Rt.textMuted,fontSize:"12px"}},children:[n||I.jsx(ct,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:I.jsx(J9,{appInfo:e})}),I.jsxs(ct,{className:"app-info-content",children:[I.jsx(ct,{className:"app-info-name",children:e.appName}),e.appPid&&I.jsx(hg,{size:12,className:"app-info-did",copyable:!1,color:Rt.textMuted,compact:!1,responsive:!1,children:_at(e.appPid)})]}),t?I.jsx(ao,{size:"small",color:"success",children:I.jsx(qDe,{icon:Gie,color:"success"})}):null]})}c5.propTypes={appInfo:Q.object.isRequired,active:Q.bool,appLogo:Q.node};c5.defaultProps={active:!1,appLogo:null};function PE({appInfo:e}){const t=U.useRef(null),n=ui({hoverOnButton:!1,hoverOnPopover:!1}),r=Xt(()=>n.hoverOnButton||n.hoverOnPopover,[n.hoverOnButton,n.hoverOnPopover]);return I.jsxs(I.Fragment,{children:[I.jsx(ct,{component:"span",ref:t,sx:{color:Rt.foregroundsFgInteractive,cursor:"help"},onClick:()=>{n.hoverOnButton=!0},onMouseEnter:()=>{n.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{n.hoverOnButton=!1},200)},children:e.appName}),I.jsx(Xk,{open:r,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${Rt.gray6}, 0px 0px 0px 1px ${Rt.gray6}`,py:1,px:1.5,borderRadius:2,transform:"translateY(-6px) !important"}}},anchorEl:t.current,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{n.open=!1},disableRestoreFocus:!0,children:I.jsx(ct,{component:"span",sx:{pointerEvents:"auto"},onMouseEnter:()=>{n.hoverOnPopover=!0},onMouseLeave:()=>{n.hoverOnPopover=!1},children:I.jsx(c5,{appInfo:e,appLogo:I.jsx(J9,{appInfo:e})})})})]})}PE.propTypes={appInfo:Q.object.isRequired};function Wq(){const{appInfoList:e,t,extraParams:n,connectState:r}=Ll(),i=U.useRef(null),o=ui({open:!1});return I.jsxs(I.Fragment,{children:[I.jsx(ct,{component:"span",ref:i,sx:{textTransform:"lowercase",color:Rt.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{o.open=!0},children:t("switch")}),I.jsx(ALe,{anchorEl:i.current,open:o.open,onClose:()=>{o.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${Rt.gray6}, 0px 0px 0px 1px ${Rt.gray6}`,borderRadius:2}}},children:e.map(a=>I.jsx(rg,{onClick:()=>{o.open=!1,r.sourceAppPid=a.sourceAppPid},children:I.jsx(c5,{appInfo:a,active:a.sourceAppPid===(n==null?void 0:n.sourceAppPid)})},a.appPid))})]})}function Y9({locale:e,disableSwitchApp:t}){const{appInfoList:n,extraParams:r,connectState:i,blocklet:o}=Ll(),a=Xt(()=>n.find(c=>ih.isUndefined(r==null?void 0:r.sourceAppPid)?!0:ih.isNull(c.sourceAppPid)?c.appPid===(o==null?void 0:o.appPid):c.sourceAppPid===(r==null?void 0:r.sourceAppPid)),[r==null?void 0:r.sourceAppPid,n]),s=!t&&n.length>1;ey(()=>{(o==null?void 0:o.appPid)===(a==null?void 0:a.appPid)?i.sourceAppPid=null:i.sourceAppPid=a==null?void 0:a.appPid});const l=Xt(()=>e==="zh"?I.jsxs(I.Fragment,{children:["您正在使用 ",I.jsx(PE,{appInfo:a,appInfoList:n})," 账户来连接站点",s?I.jsxs(I.Fragment,{children:[",点击",I.jsx(Wq,{appInfoList:n})]}):null]}):I.jsxs(I.Fragment,{children:["You're using ",I.jsx(PE,{appInfo:a})," account for site access",s?I.jsxs(I.Fragment,{children:[". Click to ",I.jsx(Wq,{appInfoList:n})]}):null]}),[e,a,n,s]);return ih.isEmpty(n)?null:I.jsxs(ct,{sx:{fontSize:"13px",color:Rt.foregroundsFgSubtile,lineHeight:1.5},children:[l,s&&I.jsx(ct,{component:"span",sx:{display:"inline-block",ml:.5,fontSize:"13px",height:"16px",lineHeight:1,verticalAlign:"middle"},children:I.jsx(ct,{component:Yn,icon:Aat,sx:{verticalAlign:"middle"}})})]})}Y9.propTypes={locale:Q.string,disableSwitchApp:Q.bool};Y9.defaultProps={locale:"en",disableSwitchApp:!1};var Z9={};Object.defineProperty(Z9,"__esModule",{value:!0});var Kie=Z9.default=void 0;Eat(U);var uC=I;function Eat(e){return e&&e.__esModule?e:{default:e}}function Gq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gq(Object(n),!0).forEach(function(r){Rat(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rat(e,t,n){return t=kat(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kat(e){var t=Dat(e,"string");return typeof t=="symbol"?t:String(t)}function Dat(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X9=function(t){return(0,uC.jsxs)("svg",Kq(Kq({},t),{},{children:[(0,uC.jsx)("path",{d:"M7.366.646L8.46 0h3.981v11.96H8.564a.381.381 0 0 1-.194-.053L4.18 9.431V2.53l.508-.3.893.528-.508.3v5.845L8.7 11.046h2.85V.914h-2.85l-.44.26-.893-.528z",fill:"color(display-p3 .4196 .7412 .9961)"}),(0,uC.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.868 8.903V3.057L4.242.915H1.393v10.132h2.85l.44-.26.893.527-1.095.647H.5V0h3.981l4.28 2.53v6.9l-.506.3-.893-.528.506-.299z",fill:"color(display-p3 .2706 .5961 .9804)"})]}))};X9.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};X9.displayName="did-logo-colorful";Kie=Z9.default=X9;function Lat({...e}){return I.jsxs(ct,{...e,sx:{display:"flex",alignItems:"center",color:Rt.foregroundsFgMuted,gap:.5,...e.sx},children:[I.jsx(Kie,{}),"Powered By",I.jsx(ct,{component:"a",href:"https://www.didconnect.io/",target:"_blank",rel:"noopener",sx:{color:Rt.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"DID Connect"})]})}function Q9({children:e,initHeight:t,slotProps:n}){var s;const[r,i]=U.useState(t),o=U.useRef(null),a=bd(o);return U.useEffect(()=>{a!=null&&a.height&&i(a.height)},[a==null?void 0:a.height,r]),I.jsx(ct,{...n==null?void 0:n.root,sx:{height:r,overflow:"hidden",transition:"height 0.2s ease-in-out",...(s=n==null?void 0:n.root)==null?void 0:s.sx},children:I.jsx(ct,{...n==null?void 0:n.container,ref:o,children:e})})}Q9.propTypes={initHeight:Q.number,children:Q.node.isRequired,slotProps:Q.object};Q9.defaultProps={initHeight:0,slotProps:{}};const T2="did-connect",Jq="quick-connect";function eL({mode:e,isFullScreen:t,hideCloseButton:n,...r}){var h;const i=ui({showTab:T2}),{connectState:o,blocklet:a,appInfoList:s,extraParams:l}=Ll(),{extraContent:c,onSuccess:u,action:d,onClose:p,options:g}=r,y=Xt(()=>s.find(w=>Xi(l==null?void 0:l.sourceAppPid)?!0:nU(w.sourceAppPid)?w.appPid===(a==null?void 0:a.appPid):w.sourceAppPid===(l==null?void 0:l.sourceAppPid)),[l==null?void 0:l.sourceAppPid,s]),b=Xt(()=>nU(o==null?void 0:o.sourceAppPid)?y==null?void 0:y.appPid:(o==null?void 0:o.sourceAppPid)||GQ(),[o==null?void 0:o.sourceAppPid]),{quickLoginEnabled:A,loading:x,userSessions:D,loginUserSession:O,refresh:M}=Wie({appPid:b,loginAppPid:a==null?void 0:a.appPid,sourceAppPid:o==null?void 0:o.sourceAppPid,autoFetch:["login"].includes(d),baseUrl:(y==null?void 0:y.appUrl)||""}),q=Xt(()=>{var w;return((w=r==null?void 0:r.messages)==null?void 0:w.title)||$Ge},[(h=r==null?void 0:r.messages)==null?void 0:h.title]),B=Xt(()=>{if(d==="login"){const w=Us(a),_=xl(a);return l!=null&&l.forceConnected?D.filter(R=>R.userDid===(l==null?void 0:l.forceConnected)):!_||!w?D.filter(R=>{var k;return((k=R==null?void 0:R.user)==null?void 0:k.sourceAppPid)===null}):D.filter(R=>{var k;return b===a.appPid?((k=R.user)==null?void 0:k.sourceAppPid)===(l==null?void 0:l.sourceAppPid):!0})}return D},[l==null?void 0:l.forceConnected,d,D]),j=St(async(...w)=>{var C,E,v;const _=await O(...w),[R]=w,k={};R&&((C=R==null?void 0:R.user)!=null&&C.did&&(k.connected_did=R.user.did),(E=R==null?void 0:R.user)!=null&&E.pk&&(k.connected_pk=R.user.pk),(v=R==null?void 0:R.extra)!=null&&v.walletOS&&(k.connected_wallet_os=R.extra.walletOS),R!=null&&R.appPid&&(k.connected_app=R.appPid)),await u({..._,encrypted:!1},L=>L,k)});U.useEffect(()=>{(g==null?void 0:g.showQuickConnect)!==!1&&!x&&A&&(i.showTab=Jq)},[x,A,g==null?void 0:g.showQuickConnect]);const K=fIe(x,{wait:100}),oe=St(()=>{i.showTab=T2}),ue=St(()=>{i.showTab=Jq}),G=Xt(()=>B.length===0?!0:i.showTab===T2||!A,[i.showTab,A]),P=Xt(()=>{let w=!0;return(x||K)&&(w=!1),A||(w=!1),g.showQuickConnect===!1&&(w=!1),i.showTab!==T2&&(w=!1),w},[A,i.showTab,x,K]),T=Xt(()=>I.jsx(ct,{onClick:p,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:Rt.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:I.jsx(Yn,{icon:pee})}),[p]);let f=null;return x||K?f=I.jsx(pD,{}):G?f=I.jsx(K9,{...r,onClose:p}):f=I.jsx(C9,{userSessions:B,onLogin:j,onRetry:M,onClose:p,messages:r.messages,onLoginAnother:oe}),I.jsxs(zRe,{variant:"outlined",sx:{color:Rt.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:Rt.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[I.jsx(d7e,{title:I.jsxs(I.Fragment,{children:[P&&I.jsx(ao,{size:"small",disabled:o.status!=="created",onClick:ue,disableRipple:!0,sx:{fontSize:"0.75em"},children:I.jsx(Yn,{icon:aMe,color:Rt.textMuted})}),q]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:n?null:T,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),I.jsx(n7e,{sx:{borderTop:`1px solid ${Rt.strokeBorderBase}`,borderBottom:`1px solid ${Rt.strokeBorderBase}`,flex:1,verticalAlign:"middle",overflow:"auto",p:2.5,position:"relative","&::after":{content:'""',height:"100%",verticalAlign:"middle",display:"inline-block",width:0}},children:I.jsxs(Q9,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[I.jsx(Y9,{locale:r.locale,disableSwitchApp:r.disableSwitchApp}),f,c?I.jsx(ct,{children:c}):null]})}),I.jsx(YRe,{sx:{py:2,px:2.5,justifyContent:"center"},children:I.jsx(Lat,{sx:{fontSize:"12px"}})})]})}eL.propTypes={action:Q.string.isRequired,onSuccess:Q.func,onClose:Q.func,messages:Q.object,extraContent:Q.any,disableSwitchApp:Q.bool,mode:Q.oneOf(["fullScreen","dialog","normal"]),isFullScreen:Q.bool,options:Q.object,hideCloseButton:Q.bool,locale:Q.string};eL.defaultProps={onSuccess:Zn,onClose:Zn,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function tL(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:o}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");return I.jsx(r9,{blocklet:r,action:i,locale:o,extraParams:n,sx:{position:"relative",width:"100%",height:"100%",lineHeight:1.2,fontFamily:"Inter",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:I.jsx(eL,{...e})})}tL.propTypes={checkFn:Q.func.isRequired,extraParams:Q.object,blocklet:Q.object.isRequired,action:Q.string.isRequired,locale:Q.string};tL.defaultProps={extraParams:{},locale:"en"};const nL=bNe(eNe(xNe(tL)));var rL={},Oat=ga;Object.defineProperty(rL,"__esModule",{value:!0});var Jie=rL.default=void 0,Iat=Oat(Hs()),Pat=I;Jie=rL.default=(0,Iat.default)((0,Pat.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0"}),"CheckCircleRounded");var iL={},Mat=ga;Object.defineProperty(iL,"__esModule",{value:!0});var Yie=iL.default=void 0,Bat=Mat(Hs()),Nat=I;Yie=iL.default=(0,Bat.default)((0,Nat.jsx)("path",{d:"M12 2C6.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 8m3.88-11.71L10 14.17l-1.88-1.88a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7c.39-.39.39-1.02 0-1.41-.39-.39-1.03-.39-1.42 0"}),"CheckCircleOutlineRounded");var Zie=function(t){return I.jsx("svg",{...t,children:I.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",children:[I.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),I.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Zie.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var Xie=function(t){return I.jsx("svg",{...t,children:I.jsx("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};Xie.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};var Qie=function(t){return I.jsx("svg",{...t,children:I.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#000",children:[I.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),I.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Qie.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var eoe=function(t){return I.jsx("svg",{...t,children:I.jsx("path",{fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};eoe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};function x0({showText:e,showLogo:t,mode:n,layout:r,...i}){const o=n==="light"?I.jsx(Zie,{}):I.jsx(Qie,{}),a=n==="light"?I.jsx(Xie,{className:"logo-text"}):I.jsx(eoe,{className:"logo-text"});return I.jsxs($at,{layout:r,...i,children:[t&&o,e&&a]})}x0.propTypes={mode:Q.oneOf(["light","dark"]),layout:Q.oneOf(["vertical","horizontal"]),showText:Q.bool,showLogo:Q.bool};x0.defaultProps={mode:"dark",layout:"vertical",showText:!0,showLogo:!0};const $at=or("span")`
488
+ `),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let i of this.reqs)i.abort();this.readyState=sl.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,i){let o,a=()=>{this.reqs.delete(o),r()};o=h4.request(e,this.endpointURL(),t,n,this.timeout,a,s=>{this.reqs.delete(o),this.isActive()&&i(s)}),this.reqs.add(o)}},Hm=class{constructor(e,t={}){let n=t.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,r=>{let{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Hm.syncState(this.state,r,i,o),this.pendingDiffs.forEach(s=>{this.state=Hm.syncDiff(this.state,s,i,o)}),this.pendingDiffs=[],a()}),this.channel.on(n.diff,r=>{let{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(r):(this.state=Hm.syncDiff(this.state,r,i,o),a())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return Hm.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,n,r){let i=this.clone(e),o={},a={};return this.map(i,(s,l)=>{t[s]||(a[s]=l)}),this.map(t,(s,l)=>{let c=i[s];if(c){let u=l.metas.map(y=>y.phx_ref),d=c.metas.map(y=>y.phx_ref),p=l.metas.filter(y=>d.indexOf(y.phx_ref)<0),g=c.metas.filter(y=>u.indexOf(y.phx_ref)<0);p.length>0&&(o[s]=l,o[s].metas=p),g.length>0&&(a[s]=this.clone(c),a[s].metas=g)}else o[s]=l}),this.syncDiff(i,{joins:o,leaves:a},n,r)}static syncDiff(e,t,n,r){let{joins:i,leaves:o}=this.clone(t);return n||(n=function(){}),r||(r=function(){}),this.map(i,(a,s)=>{let l=e[a];if(e[a]=this.clone(s),l){let c=e[a].metas.map(d=>d.phx_ref),u=l.metas.filter(d=>c.indexOf(d.phx_ref)<0);e[a].metas.unshift(...u)}n(a,l,s)}),this.map(o,(a,s)=>{let l=e[a];if(!l)return;let c=s.metas.map(u=>u.phx_ref);l.metas=l.metas.filter(u=>c.indexOf(u.phx_ref)<0),r(a,l,s),l.metas.length===0&&delete e[a]}),e}static list(e,t){return t||(t=function(n,r){return r}),this.map(e,(n,r)=>t(n,r))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static clone(e){return JSON.parse(JSON.stringify(e))}},Wm={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,o,a]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:o,payload:a})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:o}=e,a=this.META_LENGTH+t.length+n.length+i.length+r.length,s=new ArrayBuffer(this.HEADER_LENGTH+a),l=new DataView(s),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,t.length),l.setUint8(c++,n.length),l.setUint8(c++,i.length),l.setUint8(c++,r.length),Array.from(t,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(c++,d.charCodeAt(0)));var u=new Uint8Array(s.byteLength+o.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(o),s.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),o=t.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(e.slice(a,a+r));a=a+r;let l=n.decode(e.slice(a,a+i));a=a+i;let c=n.decode(e.slice(a,a+o));a=a+o;let u=e.slice(a,e.byteLength);return{join_ref:s,ref:null,topic:l,event:c,payload:u}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),o=t.getUint8(3),a=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(s,s+r));s=s+r;let c=n.decode(e.slice(s,s+i));s=s+i;let u=n.decode(e.slice(s,s+o));s=s+o;let d=n.decode(e.slice(s,s+a));s=s+a;let p=e.slice(s,e.byteLength),g={status:d,response:p};return{join_ref:l,ref:c,topic:u,event:Kl.reply,payload:g}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),o=this.HEADER_LENGTH+2,a=n.decode(e.slice(o,o+r));o=o+r;let s=n.decode(e.slice(o,o+i));o=o+i;let l=e.slice(o,e.byteLength);return{join_ref:null,ref:null,topic:a,event:s,payload:l}}},qit=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||Uit,this.transport=n.transport||x1.WebSocket||Fb,this.establishedConnections=0,this.defaultEncoder=Wm.encode.bind(Wm),this.defaultDecoder=Wm.decode.bind(Wm),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Fb?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;zm&&zm.addEventListener&&(zm.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),zm.addEventListener("pageshow",i=>{r===this.connectClock&&(r=null,this.connect())})),this.heartbeatIntervalMs=n.heartbeatIntervalMs||3e4,this.rejoinAfterMs=i=>n.rejoinAfterMs?n.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>n.reconnectAfterMs?n.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=n.logger||null,this.longpollerTimeout=n.longpollerTimeout||2e4,this.params=T1(n.params||{}),this.endPoint=`${t}/${OE.websocket}`,this.vsn=n.vsn||Fit,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Nie(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Fb}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=h4.appendParams(h4.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,n,r){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,n,r)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=T1(t)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=n=>this.onConnError(n),this.conn.onmessage=n=>this.onConnMessage(n),this.conn.onclose=n=>this.onConnClose(n))}log(t,n,r){this.logger(t,n,r)}hasLogger(){return this.logger!==null}onOpen(t){let n=this.makeRef();return this.stateChangeCallbacks.open.push([n,t]),n}onClose(t){let n=this.makeRef();return this.stateChangeCallbacks.close.push([n,t]),n}onError(t){let n=this.makeRef();return this.stateChangeCallbacks.error.push([n,t]),n}onMessage(t){let n=this.makeRef();return this.stateChangeCallbacks.message.push([n,t]),n}ping(t){if(!this.isConnected())return!1;let n=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:n});let i=this.onMessage(o=>{o.ref===n&&(this.off([i]),t(Date.now()-r))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,t])=>t())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),jit,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,n,r){if(!this.conn)return t&&t();this.waitForBufferDone(()=>{this.conn&&(n?this.conn.close(n,r||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,n=1){if(n===5||!this.conn||!this.conn.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(t,n+1)},150*n)}waitForSocketClosed(t,n=1){if(n===5||!this.conn||this.conn.readyState===sl.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(t,n+1)},150*n)}onConnClose(t){let n=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&n!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,r])=>r(t))}onConnError(t){this.hasLogger()&&this.log("transport",t);let n=this.transport,r=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,i])=>{i(t,n,r)}),(n===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Kl.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case sl.connecting:return"connecting";case sl.open:return"open";case sl.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(n=>n.joinRef()!==t.joinRef())}off(t){for(let n in this.stateChangeCallbacks)this.stateChangeCallbacks[n]=this.stateChangeCallbacks[n].filter(([r])=>t.indexOf(r)===-1)}channel(t,n={}){let r=new $ie(t,n,this);return this.channels.push(r),r}push(t){if(this.hasLogger()){let{topic:n,event:r,payload:i,ref:o,join_ref:a}=t;this.log("push",`${n} ${r} (${a}, ${o})`,i)}this.isConnected()?this.encode(t,n=>this.conn.send(n)):this.sendBuffer.push(()=>this.encode(t,n=>this.conn.send(n)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:i,payload:o,ref:a,join_ref:s}=n;a&&a===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${o.status||""} ${r} ${i} ${a&&"("+a+")"||""}`,o);for(let l=0;l<this.channels.length;l++){const c=this.channels[l];c.isMember(r,i,o,s)&&c.trigger(i,o,a,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,c]=this.stateChangeCallbacks.message[l];c(n)}})}leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r.isJoined()||r.isJoining()));n&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),n.leave())}},IE={exports:{}},iC,Uq;function zit(){if(Uq)return iC;Uq=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,o=r*365.25;iC=function(u,d){d=d||{};var p=typeof u;if(p==="string"&&u.length>0)return a(u);if(p==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function a(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var p=parseFloat(d[1]),g=(d[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return p*o;case"weeks":case"week":case"w":return p*i;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function s(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=r?c(u,d,r,"day"):d>=n?c(u,d,n,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,p,g){var y=d>=p*1.5;return Math.round(u/p)+" "+g+(y?"s":"")}return iC}function Hit(e){n.debug=n,n.default=n,n.coerce=l,n.disable=o,n.enable=i,n.enabled=a,n.humanize=zit(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let p=0;p<u.length;p++)d=(d<<5)-d+u.charCodeAt(p),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,p=null,g,y;function b(...A){if(!b.enabled)return;const x=b,D=Number(new Date),O=D-(d||D);x.diff=O,x.prev=d,x.curr=D,d=D,A[0]=n.coerce(A[0]),typeof A[0]!="string"&&A.unshift("%O");let M=0;A[0]=A[0].replace(/%([a-zA-Z%])/g,(B,j)=>{if(B==="%%")return"%";M++;const K=n.formatters[j];if(typeof K=="function"){const oe=A[M];B=K.call(x,oe),A.splice(M,1),M--}return B}),n.formatArgs.call(x,A),(x.log||n.log).apply(x,A)}return b.namespace=u,b.useColors=n.useColors(),b.color=n.selectColor(u),b.extend=r,b.destroy=n.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(g!==n.namespaces&&(g=n.namespaces,y=n.enabled(u)),y),set:A=>{p=A}}),typeof n.init=="function"&&n.init(b),b}function r(u,d){const p=n(this.namespace+(typeof d>"u"?":":d)+u);return p.log=this.log,p}function i(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const p=(typeof u=="string"?u:"").split(/[\s,]+/),g=p.length;for(d=0;d<g;d++)p[d]&&(u=p[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function o(){const u=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),u}function a(u){if(u[u.length-1]==="*")return!0;let d,p;for(d=0,p=n.skips.length;d<p;d++)if(n.skips[d].test(u))return!1;for(d=0,p=n.names.length;d<p;d++)if(n.names[d].test(u))return!0;return!1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var Wit=Hit;(function(e,t){var n={};t.formatArgs=i,t.save=o,t.load=a,t.useColors=r,t.storage=s(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;c.splice(1,0,u,"color: inherit");let d=0,p=0;c[0].replace(/%[a-zA-Z%]/g,g=>{g!=="%%"&&(d++,g==="%c"&&(p=d))}),c.splice(p,0,u)}t.log=console.debug||console.log||(()=>{});function o(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function a(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof pn<"u"&&"env"in pn&&(c=n.DEBUG),c}function s(){try{return localStorage}catch{}}e.exports=Wit(t);const{formatters:l}=e.exports;l.j=function(c){try{return JSON.stringify(c)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(IE,IE.exports);var H9=IE.exports;const n_t=Kt(H9),Git=H9;var Kit=(e,t=!1)=>{const n=Git(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const Jit=Kit;var Yit=(e,t,n)=>class extends e{constructor(i,o={}){super(i,{transport:n,...o}),this._logger=Jit("client",o.silent),this.emitter=new t,this.onOpen(()=>{this._logger.debug("socket open",i)}),this.onClose(()=>{this._logger.debug("socket close",i)}),this.onError(a=>{this._logger.error("socket error",a.error)}),this.onMessage(a=>{this._logger.debug("socket message",a)})}on(i,o,a={}){this.ensureJoinChannel(i,a),this.emitter.on(i,o)}off(i,o){o?this.emitter.off(i,o):this.emitter.removeAllListeners(i),this.ensureLeaveChannel(i)}disconnect(i,o,a){this.emitter.eventNames().forEach(s=>{this.emitter.removeAllListeners(s)}),super.disconnect(i,o,a)}ensureJoinChannel(i,o={}){if(this.emitter.listenerCount(i)>0)return;const s=this.channel(i,o);s.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),s.on(i,({status:l,response:c})=>{l==="ok"?this.emitter.emit(i,c):this._logger.debug("response error",{topic:i,status:l,data:c})})}ensureLeaveChannel(i){if(this.emitter.listenerCount(i)>0)return;const a=this.channels.find(s=>s.topic===i);a&&(this.remove(a),a.leave().receive("ok",s=>{this._logger.debug("leave success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("leave error",{topic:i,err:s})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:i})}),a.off(i))}subscribe(i,o={}){let a=this.channels.find(s=>s.topic===i);return a||(a=this.channel(i,o),a.join().receive("ok",s=>{this._logger.debug("join success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("join error",{topic:i,error:s})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),a)}unsubscribe(i){this.ensureLeaveChannel(i)}};const Zit=q9,{Socket:Xit}=Nit,Qit=Yit;var eot=Qit(Xit,Zit);const tot=eot;var Fie={WsClient:tot};function not(e){const t=U.useRef(e);U.useEffect(()=>{t.current=e},[e]),U.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function rot(e){const t=e||window.location.href;return new URL(t).host}function Gm(e){const t={},n=e||window.location.href;if(n){const{hostname:r,protocol:i,port:o}=new URL(n);t["x-real-hostname"]=r,t["x-real-port"]=o,t["x-real-protocol"]=i.endsWith(":")?i.substring(0,i.length-1):i}return t}const oC={};function iot({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const o=`${t}/token?${Op(r)}`;return oC[o]||(oC[o]=async function(){var d,p;const s=+new Date,l=await n(o,{headers:Gm(i)}),c=+new Date;if(c-s<500&&await Zl(500-(c-s)),(d=l==null?void 0:l.data)!=null&&d.token)return l.data;if((p=l==null?void 0:l.data)!=null&&p.error)throw new Error(l.data.error);const u=Jg(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${u}`)}),oC[o]}const oot=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=jGe(t);return{token:VGe(n),url:n}}catch(e){return{error:e}}},Uie=()=>If(globalThis,"blocklet.appPid")||If(globalThis,"blocklet.appId")||If(globalThis,"env.appId")||"",aot=()=>(If(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(fre,""),aC=e=>`relay:${Uie()}:${e}`,sot=()=>window.location.protocol==="https:"?"wss:":"ws:",jq=e=>!e||new URL(e).origin===window.location.origin,Vq=e=>["succeed","error","timeout","busy"].includes(e);function lot({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:o,prefix:a,tokenKey:s,encKey:l,onError:c,onSuccess:u,baseUrl:d,autoConnect:p=!0,forceConnected:g=!0,saveConnect:y=!0,useSocket:b=!0,provider:A="wallet"}){const x=ui({checking:!1,loading:!1,token:"",url:"",store:null,status:"created",error:"",checkCount:0,mfaCode:0,appInfo:null,memberAppInfo:null,connectedDid:"",saveConnect:!1,inExistingSession:!1,nextWorkflow:"",baseUrl:d,prefix:`${a}/${e}`,extraParams:Fq(i,y1),checkFn:t,results:{},action:e,provider:A}),D=U.useRef(null),O=fg[o]||fg.en,M=Xt(()=>oot(),[]),q=Math.ceil(r/n),B=ui({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:j,decrypt:K}=qGe(),oe=i0(),ue=Cc(),G=U.useRef(null),P=U.useRef(null),T={...x.extraParams,locale:o,[s]:x.token||(M==null?void 0:M.token),provider:x.provider},f=async()=>{if(!(M!=null&&M.token&&(M==null?void 0:M.token)===x.token)){try{T[s]&&x.status==="created"&&await x.checkFn(`${x.prefix}/timeout?${Op(T)}`,{headers:Gm(x.baseUrl)})}catch{}try{x.token&&P.current&&(await G.current.unsubscribe(aC(x.token)),P.current=null)}catch{}}},h=St((...v)=>{const L={[l]:j,...x.extraParams,locale:o,forceConnected:g,autoConnect:p&&!oe.wallet&&!B.cancelWhenScannedCounter&&["ios","android"].includes(yi.get("connected_wallet_os")),provider:x.provider};ue&&(L.visitorId=ue);const ne=a5(D.current||{},["sourceAppPid","verbose"]);return Object.keys(ne).forEach(J=>{(!L[J]||J===l&&ne[J])&&(L[J]=ne[J])}),M!=null&&M.token&&!L.sourceToken&&(L.sourceToken=M==null?void 0:M.token),iot({action:e,prefix:x.prefix,baseUrl:x.baseUrl,checkFn:x.checkFn,extraParams:L})(...v)}),w=St(async(v=!0)=>{v&&f();try{x.loading=!0,x.token="",x.url="",x.store=null,x.extraParams=Fq(i,y1),await Zl();const L=await h(),ne=L.extra||{};x.loading=!1,x.token=L.token,x.url=L.url,x.status="created",x.error="",x.checkCount=0,x.appInfo=L.appInfo,x.memberAppInfo=L.memberAppInfo,x.connectedDid=ne.connectedDid,x.saveConnect=ne.saveConnect}catch(L){x.loading=!1,x.status="error",x.error=`${O.generateError}: ${L.message}`}}),_=()=>{B.cancelWhenScannedCounter++};U.useEffect(()=>{B.cancelWhenScannedCounter>0&&(i.nw?c(new Error(O.retryForbidden)):w())},[B.cancelWhenScannedCounter]),U.useEffect(()=>(b&&jq(x.baseUrl)&&Uie()?(!G.current||G.current.isConnected()===!1||G.current.baseUrl!==x.baseUrl)&&(G.current=new Fie.WsClient(`${sot()}//${rot(x.baseUrl)}${aot()}${fre}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),G.current.baseUrl=x.baseUrl,G.current.onOpen(()=>{B.isSocketAvailable=!0}),G.current.connect()):B.isSocketAvailable&&(B.isSocketAvailable=!1),()=>{G.current&&(G.current.disconnect(),G.current=null)}),[x.baseUrl]);const R=()=>!x.token||x.loading||Vq(x.status)?null:n,k=U.useRef(null);U.useEffect(()=>{k.current={state:x,params:T}}),U.useEffect(()=>()=>{const{state:v,params:L}=k.current;v.status==="created"&&L[s]&&v.checkFn(`${v.prefix}/timeout?${Op(L)}`,{headers:Gm(v.baseUrl)})},[]);const C=async(v=!1)=>{var L;if(x.checking||(x.status==="created"&&x.checkCount++,B.isSocketAvailable&&!v))return null;try{x.checking=!0;const ne=await x.checkFn(`${x.prefix}/status?${Op(T)}`,{headers:Gm(x.baseUrl)}),{status:F,error:J,mfaCode:se=0}=ne.data;if(x.store=ne.data,x.mfaCode=se,x.checking=!1,x.status=F,F==="error"&&J){const pe=new Error(J);throw pe.response=ne,pe}return ne.data}catch(ne){const{response:F}=ne;if(F!=null&&F.status){T[s]&&x.checkFn(`${x.prefix}/timeout?${Op(T)}`,{headers:Gm(x.baseUrl)});const J=(L=F==null?void 0:F.data)!=null&&L.error?F.data.error:ne.message,se=new Error(J);se.code=F.status,x.status="error",x.checking=!1,x.error=J,c(se,x==null?void 0:x.store,K)}else x.status="error",x.checking=!1,x.error=O.generateError}return null},E=async()=>{try{if(M.error)throw M.error;x.loading=!0,x.token=M.token,x.url=M.url,x.inExistingSession=!0;let v=await C();if((["scanned"].includes(v==null?void 0:v.status)||(v==null?void 0:v.sourceToken)===(M==null?void 0:M.token))&&(await w(!1),v=await C()),D.current=(v==null?void 0:v.extraParams)||null,v!=null&&v.status&&!["created"].includes(v==null?void 0:v.status))throw new Error(`${O.invalidSessionStatus} [${v.status}]`)}catch(v){x.status="error",x.error=v.message,c(v,x==null?void 0:x.store,K)}finally{x.loading=!1}};return U.useEffect(()=>{var v;if(!x.token&&!x.store&&!x.loading&&!x.error)if(M)E();else{w(!1);return}if(x.status!=="timeout"&&x.checkCount>q){x.status="timeout",f();return}if(x.status==="succeed"&&!B.onSuccessCalled){const L=hre({...x.store,appInfo:x.appInfo,memberAppInfo:x.memberAppInfo});if(jq(x.baseUrl)&&y&&x.saveConnect&&x.store.did&&v1(L,!0),x.store){const{nextWorkflow:ne}=x.store;if(ne)try{const F=WV(ne,s);x.nextWorkflow=(F==null?void 0:F.nextWorkflow)||ne,Object.assign(x,F),x.store=null,x.error="",x.url="",x.appInfo=null,x.memberAppInfo=null,x.checkCount=0,x.status="scanned",x.results={...x.results,[x.token]:x.store},x.checkFn=gu({baseURL:F.baseUrl,timeout:8e3}).get,C()}catch(F){console.error(`Invalid nextWorkflow: ${ne}`,F),x.status="error",x.error=`Invalid nextWorkflow: ${ne}: ${F.message}`}else if(x.nextWorkflow&&(x.nextWorkflow="",x.url=""),typeof u=="function"){const F=Object.values({...x.results,[x.token]:x.store});B.onSuccessCalled=!0;const J=F.length>1?F:F[0],se=oh(J);u(se,K,{sourceAppPid:i==null?void 0:i.sourceAppPid,...L})}}return}if((v=x.store)!=null&&v.nextWorkflow){const{nextWorkflow:L}=x.store;try{const ne=WV(L,s);x.nextWorkflow=(ne==null?void 0:ne.nextWorkflow)||L,Object.assign(x,ne),x.store=null,x.error="",x.url="",x.appInfo=null,x.memberAppInfo=null,x.checkCount=0,x.status="scanned",x.results={...x.results,[x.token]:x.store},x.checkFn=gu({baseURL:ne.baseUrl,timeout:8e3}).get,C()}catch(ne){console.error(`Invalid nextWorkflow: ${L}`,ne),x.status="error",x.error=`Invalid nextWorkflow: ${L}: ${ne.message}`}}}),U.useEffect(()=>{if(x.token&&B.isSocketAvailable&&G.current){let v=!1;P.current?P.current.token!==x.token&&(G.current.unsubscribe(aC(P.current.token)),v=!0):v=!0,v&&(P.current=G.current.subscribe(aC(x.token)),P.current.token=x.token,P.current.on("updated",({response:L})=>{let{status:ne,error:F}=L;ne==="forbidden"&&(F=O.forbidden,ne="error"),x.status=ne,x.mfaCode=L.mfaCode||0,x.store=L,x.error=F,F&&c(new Error(F),x==null?void 0:x.store,K)}))}},[x.token,B.isSocketAvailable,G.current]),Dit(C,R()),not(()=>{B.isSocketAvailable&&x.token&&Vq(x.status)===!1&&C(!0)}),{state:x,generate:w,cancelWhenScanned:_}}var W9={},l5={};Object.defineProperty(l5,"__esModule",{value:!0});l5.default=void 0;var vf={call:function(t,n,r){var i="";typeof n=="function"&&(r=n,n={});var o={data:n===void 0?null:n};if(typeof r=="function"){var a="dscb"+window.dscb++;window[a]=r,o._dscbstub=a}return o=JSON.stringify(o),window._dsbridge?i=_dsbridge.call(t,o):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(i=prompt("_dsbridge="+t,o)),JSON.parse(i||"{}").data},register:function(t,n,r){var i=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){vf.call("_dsb.dsinit")},0)),typeof n=="object"?i._obs[t]=n:i[t]=n},registerAsyn:function(t,n){this.register(t,n,!0)},hasNativeMethod:function(t,n){return this.call("_dsb.hasNativeMethod",{name:t,type:n||"all"})},disableJavascriptDialogBlock:function(t){this.call("_dsb.disableJavascriptDialogBlock",{disable:t!==!1})}};(function(){if(!(window._dsbridge||window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)||window._dsf)return;const e=window.close;var t={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:vf,close:function(){vf.call("_dsb.closePage"),e()},_handleMessageFromNative:function(i){var o=JSON.parse(i.data),a={id:i.callbackId,complete:!0},s=this._dsf[i.method],l=this._dsaf[i.method],c=function(D,O){a.data=D.apply(O,o),vf.call("_dsb.returnValue",a)},u=function(D,O){o.push(function(M,q){a.data=M,a.complete=q!==!1,vf.call("_dsb.returnValue",a)}),D.apply(O,o)};if(s)c(s,this._dsf);else if(l)u(l,this._dsaf);else{var d=i.method.split(".");if(d.length<2)return;var p=d.pop(),g=d.join("."),y=this._dsf._obs,b=y[g]||{},A=b[p];if(A&&typeof A=="function"){c(A,b);return}if(y=this._dsaf._obs,b=y[g]||{},A=b[p],A&&typeof A=="function"){u(A,b);return}}}};for(var n in t)window[n]=t[n];vf.register("_hasJavascriptMethod",function(r,i){var o=r.split(".");if(o.length<2)return!!(_dsf[o]||_dsaf[o]);var r=o.pop(),a=o.join("."),s=_dsf._obs[a]||_dsaf._obs[a];return s&&!!s[r]})})();l5.default=vf;Object.defineProperty(W9,"__esModule",{value:!0});var u5=W9.default=void 0,Xs=uot(l5);function uot(e){return e&&e.__esModule?e:{default:e}}u5=W9.default={call(){Xs.default.call(...arguments)},asyncCall(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise((r,i)=>{Xs.default.call(...t,o=>{try{const a=JSON.parse(o);if(a.code===0){const s=JSON.parse(a.data);r(s)}else i(new Error(a.error))}catch{r(o)}})})},shareMessage(e){const{content:t,imgUrl:n,success:r,fail:i}=e;if(!t&&!n){i("params error");return}Xs.default.call("arcShare",JSON.stringify({content:t,imgUrl:n}),o=>{const a=JSON.parse(o);a&&a.code===0?typeof r=="function"&&r(o):typeof i=="function"&&i(o)})},showLoading(){Xs.default.call("arcShowLoading")},hideLoading(){Xs.default.call("arcHideLoading")},showToast(e){e&&typeof e=="string"&&Xs.default.call("arcToast",e)},chooseImgs(e){const{limit:t,success:n,fail:r}=e;Xs.default.call("arcChooseImgs",JSON.stringify({limit:t}),i=>{const o=JSON.parse(i);o&&o.code===0?typeof n=="function"&&n(i):typeof r=="function"&&r(i)})},previewImgs(e){const{imgs:t}=e;!t||t.length===0||Xs.default.call("arcPreviewImgs",JSON.stringify(e))},isSetPWD(e){const{success:t,fail:n}=e;Xs.default.call("arcIsSetPWD","",r=>{const i=JSON.parse(r);i&&i.code===0?typeof t=="function"&&t(r):typeof n=="function"&&n(r)})},isCodeABOk(e){const{success:t,fail:n}=e;Xs.default.call("arcIsCodeABOk","",r=>{const i=JSON.parse(r);i&&i.code===0?typeof t=="function"&&t(r):typeof n=="function"&&n(r)})}};function G9({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i,connectState:o}=Ll(),a=r(i?"openDidConnect":"openInWallet"),s=Xt(()=>{if(!e.url)return"";const u=new URL(window.location.href);u.searchParams.set("tokenKey",e.token);const d=new URL(e.url);return d.searchParams.set("callback",encodeURIComponent(u)),d.searchParams.set("callback_delay",1500),d.searchParams.set("locale",t),d.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),l=St(()=>{u5.call("authAction",{action:"auth",deepLink:s})}),c={};return i||(c.component="a",c.href=s),ey(()=>{o.autoActiveWebview&&s&&(o.autoActiveWebview=!1,l())}),I.jsxs(Au,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:Rt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...c,onClick:i?l:Zn,children:[I.jsxs(ct,{sx:{display:"flex",alignItems:"center",gap:1},children:[I.jsx(Bh,{width:"24px",height:"24px"}),I.jsx(tn,{sx:{fontSize:"14px",fontWeight:500},children:a})]}),I.jsx(Yn,{icon:K6,fontSize:"1.3rem",color:Rt.primaryBase})]})}G9.propTypes={tokenState:Q.object.isRequired,locale:Q.string,tokenKey:Q.string};G9.defaultProps={locale:"en",tokenKey:"_t_"};const cot={width:24,height:24,body:'<path fill="currentColor" d="M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.7 0 3.113-.863t2.187-2.312q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20Z"/>'};function jie({onRefresh:e,...t}){const n=r=>{r.stopPropagation(),e()};return I.jsx(ct,{...t,onClick:n,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.75)",cursor:"pointer",...t.sx},children:I.jsx(ct,{sx:{backgroundColor:Rt.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:I.jsx(Yn,{icon:cot,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}jie.propTypes={onRefresh:Q.func.isRequired};const w2=["scanned","succeed","error","busy"];function K9({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:o,checkTimeout:a,locale:s,tokenKey:l,encKey:c,baseUrl:u,autoConnect:d,forceConnected:p,saveConnect:g,useSocket:y,allowWallet:b,provider:A,webWalletUrl:x,onRecreateSession:D,onClose:O,messages:M,enabledConnectTypes:q}){var le,ve,Ae;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const B=U.useContext(Sd),{connectState:j,extraParams:K,staticState:oe,changeStatus:ue,isWalletWebview:G,matchSmallScreen:P,t:T}=Ll(),f=i0(),h=Kg(),{setBaseUrl:w,oauthState:_,getOAuthConfigList:R}=j9(),k=Xt(()=>{var xe;return A||(K==null?void 0:K.provider)||((xe=B==null?void 0:B.session)==null?void 0:xe.provider)||"wallet"},[K==null?void 0:K.provider,(le=B==null?void 0:B.session)==null?void 0:le.provider]);U.useEffect(()=>{w(u)},[u]);const{state:C,generate:E,cancelWhenScanned:v}=lot({action:n,baseUrl:u,checkFn:i,checkInterval:o,checkTimeout:a,extraParams:K,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:c,autoConnect:d,forceConnected:p,saveConnect:g,useSocket:y,allowWallet:b,provider:k}),[L,ne]=U.useState([]);MQ(async()=>{const xe=await R({sourceAppPid:j==null?void 0:j.sourceAppPid});ne(xe)},[j==null?void 0:j.sourceAppPid]);const F=$Q(j==null?void 0:j.sourceAppPid);Xf(()=>{Xi(F)||E()},[j==null?void 0:j.sourceAppPid]);const J=Xt(()=>w2.includes(_.status)||w2.includes(C.status),[C.status,_.status]);U.useEffect(()=>{w2.includes(_.status)?ue(_.status):w2.includes(C.status)?ue(C.status):ue("created")},[ue,C.status,_.status]);const se=St(()=>{D(),_.reset(),E(!1)}),pe=St(()=>{D(),oe.current.cancelCount++,v()}),be=Xt(()=>({confirm:M.confirm,success:M.success,error:C.error||_.error||""}),[M.confirm,M.success,C.error,_.error]),Ee=Xt(()=>b&&q.includes("mobile")&&!G,[b,q,G]),H=Cee(x),$=Xt(()=>b&&q.includes("web")&&(H||h)&&(!f.mobile.any||h),[b,q,(ve=f==null?void 0:f.mobile)==null?void 0:ve.any]),Z=Xt(()=>b&&q.includes("mobile")&&f.mobile.any&&!h,[b,q,(Ae=f==null?void 0:f.mobile)==null?void 0:Ae.any]),Y=Xt(()=>{const xe=HYe(Object.keys(ul),q);return L.filter(He=>xe.includes(He.provider))},[L,q]),ie=Xt(()=>Y.length>0&&["login","invite"].includes(C.action),[Y]),Te=Xt(()=>{const xe=Ee||$||Z;let He=null;return ie&&(He=xe?I.jsxs(I.Fragment,{children:[I.jsx(Sh,{sx:{color:Rt.textMuted,width:P?"200px":"368px",opacity:.6,maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:Rt.lineStep}},children:"OR"}),I.jsx(p4,{providerList:Y,onSuccess:e,onError:t,tokenState:C,locale:s,type:"list"})]}):I.jsxs(I.Fragment,{children:[I.jsx(tn,{variant:"body2",sx:{mt:1,textAlign:"center",color:Rt.foregroundsFgSubtile},children:T("loginWithBelow")}),I.jsx(p4,{providerList:Y,onSuccess:e,onError:t,tokenState:C,type:"list",locale:s})]})),I.jsxs(I.Fragment,{children:[C.status==="timeout"?I.jsx(jie,{onRefresh:se,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,I.jsx(ct,{"data-did-auth-url":C.url,sx:{display:"none"}}),Z&&I.jsx(G9,{tokenState:C,locale:s,tokenKey:l}),Ee&&I.jsx(D9,{tokenState:C,messages:M,locale:s}),$&&I.jsx(R9,{tokenState:C,webWalletUrl:x,locale:s}),He]})},[C,C.url,C.status,Ee,$,Z,Y,ie,ie,e,t,s,l,M,x]);return Xt(()=>C.loading||_.loading||!C.token&&!C.error,[C.loading,_.loading])?I.jsx(pD,{}):J?I.jsxs(I.Fragment,{children:[I.jsx(ct,{"data-did-auth-url":C.url,sx:{display:"none"}}),I.jsx(Q6,{status:_.status||C.status,nextWorkflow:C.nextWorkflow,mfaCode:C.mfaCode,onCancel:pe,onRetry:se,onClose:O,messages:be,locale:s,className:"auth-status"})]}):Te}K9.propTypes={onError:Q.func,onSuccess:Q.func.isRequired,action:Q.string.isRequired,checkFn:Q.func.isRequired,prefix:Q.string,checkInterval:Q.number,checkTimeout:Q.number,locale:Q.oneOf(["en","zh",""]),tokenKey:Q.string,encKey:Q.string,baseUrl:Q.string,autoConnect:Q.bool,forceConnected:Q.oneOfType([Q.bool,Q.string]),saveConnect:Q.bool,useSocket:Q.bool,allowWallet:Q.bool,provider:Q.oneOf([Ds.WALLET,...Object.keys(ul),""]),webWalletUrl:Q.string,onRecreateSession:Q.func,onClose:Q.func,messages:Q.object,enabledConnectTypes:Q.arrayOf(Q.oneOf(["web","mobile",...Object.keys(ul)]))};K9.defaultProps={prefix:n9,onError:Zn,checkInterval:2*1e3,checkTimeout:cre*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:See(),onRecreateSession:Zn,onClose:Zn,messages:{},enabledConnectTypes:["web","mobile",...Object.keys(ul)]};var sC=mee,fot=wee,dot=V9,pot=1/0,hot=sC&&1/dot(new sC([,-0]))[1]==pot?function(e){return new sC(e)}:fot,mot=hot,got=A9,yot=Jre,vot=Yre,bot=_9,wot=mot,Tot=V9,xot=200;function Sot(e,t,n){var r=-1,i=yot,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=vot;else if(o>=xot){var c=t?null:wot(e);if(c)return Tot(c);a=!1,i=bot,l=new got}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var Vie=Sot,Cot=M9,Aot=s5,_ot=yy,Eot=Vie,qq=E9,Rot=Rie,kot=_ot(function(e){var t=Rot(e);return qq(t)&&(t=void 0),Eot(Cot(e,1,qq,!0),Aot(t))}),Dot=kot;const Lot=Kt(Dot);function Oot(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var Iot=Oot,Pot=Iot,Mot=Pot(),qie=Mot,Bot=qie,Not=vy;function $ot(e,t){return e&&Bot(e,t,Not)}var Fot=$ot,Uot=wd;function jot(e,t){return function(n,r){if(n==null)return n;if(!Uot(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var Vot=jot,qot=Fot,zot=Vot,Hot=zot(qot),Wot=Hot,Got=Wot,Kot=wd;function Jot(e,t){var n=-1,r=Kot(e)?Array(e.length):[];return Got(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var Yot=Jot;function Zot(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Xot=Zot,zq=Hg;function Qot(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=zq(e),a=t!==void 0,s=t===null,l=t===t,c=zq(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var eat=Qot,tat=eat;function nat(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=tat(i[r],o[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var rat=nat,lC=e0,iat=Gg,oat=s5,aat=Yot,sat=Xot,lat=oy,uat=rat,cat=t5,fat=zo;function dat(e,t,n){t.length?t=lC(t,function(o){return fat(o)?function(a){return iat(a,o.length===1?o[0]:o)}:o}):t=[cat];var r=-1;t=lC(t,lat(oat));var i=aat(e,function(o,a,s){var l=lC(t,function(c){return c(o)});return{criteria:l,index:++r,value:o}});return sat(i,function(o,a){return uat(o,a,n)})}var pat=dat,hat=Wg,mat=wd,gat=r5,yat=io;function vat(e,t,n){if(!yat(n))return!1;var r=typeof t;return(r=="number"?mat(n)&&gat(t,n.length):r=="string"&&t in n)?hat(n[t],e):!1}var zie=vat,bat=M9,wat=pat,Tat=yy,Hq=zie,xat=Tat(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Hq(e,t[0],t[1])?t=[]:n>2&&Hq(t[0],t[1],t[2])&&(t=[t[0]]),wat(e,bat(t,1),[])}),Sat=xat;const Hie=Kt(Sat),Cat=An(vi,"/api/user-session");function Wie({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/",fetchAll:o=!1}={}){const a=Cc(),s=Xt(()=>gu({baseURL:An(i,Cat)},{lazy:!0,lazyTime:500}),[i]),l=St(async()=>{const{data:b=[]}=await s.get("",{params:{visitorId:a}}),A=xl(),x=Us();if(o&&A&&x){const{data:D}=await s.get(An(x.appUrl,vi,"/api/user-session"),{params:{visitorId:a}});return b.concat(D||[])}return!A||!x?b.filter(D=>{var O;return((O=D==null?void 0:D.user)==null?void 0:O.sourceAppPid)===null}):b}),c=ui({loaded:!1,loadingId:null}),u=sIe(l,{manual:!r,onFinally(){c.loaded=!0},refreshDeps:[i]}),d=async b=>{var x,D,O;const A=i5(b,["userDid","visitorId","passportId"]);try{c.loadingId=b.id;const M=Us();if(xl()&&M&&n!==b.appPid){const{data:B}=await s.post("login",{...A,appPid:n},{baseURL:An(M.appUrl,vi,"/api/user-session")});return B}const{data:q}=await s.post("login",{...A,appPid:n});return q}catch(M){const q=M.response?((D=(x=M.response)==null?void 0:x.data)==null?void 0:D.error)||((O=M.response)==null?void 0:O.data):M.message;throw oi.error(q),console.error("Quick login error",M),M}finally{c.loadingId=null}},p=Xt(()=>u.data?u.data.filter(b=>b.status!=="expired"):[],[u.data]),g=Xt(()=>{const b=new Date().getTime(),A=Hie(p,x=>b-new Date(x.updatedAt).getTime());return Lot(A,x=>[x.userDid].join("_"))},[p,t,e]),y=Xt(()=>!!(g&&g.length>0),[g]);return{loadingId:c.loadingId,userSessions:g,quickLoginEnabled:y,loginUserSession:d,loading:u.loading,loaded:u.loaded,refresh:u.refreshAsync}}const Aat={width:24,height:24,body:'<path fill="currentColor" d="M11.95 18q.525 0 .888-.363t.362-.887q0-.525-.362-.888t-.888-.362q-.525 0-.887.363t-.363.887q0 .525.363.888t.887.362Zm.05 4q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20Zm0-8Zm.1-4.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.938t.75-.787q.575-.55.988-1.2t.412-1.45q0-1.275-1.038-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.113.638t.338.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2Z"/>'},Gie={width:24,height:24,body:'<path fill="currentColor" d="m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4L9.55 18Z"/>'};function J9({appInfo:e,...t}){const[n,r]=U.useState(!1);if(n||!(e.appUrl||e.appLogo))return I.jsx(_l,{did:e.appPid,size:32});let i=e.appLogo||"";return Jg(i)||(i=An(e.appUrl||"",i)),I.jsx($f,{src:i,alt:e.appName||"Blocklet Icon",width:32,height:32,...t,onError:()=>r(!0)})}J9.propTypes={appInfo:Q.object.isRequired};const _at=e=>e?e.split(":").pop():"";function c5({appInfo:e,active:t,appLogo:n}){return I.jsxs(ct,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:Rt.textBase,"& .app-info-content":{paddingLeft:"8px",overflow:"hidden"},"& .app-info-name":{maxWidth:"100%",paddingRight:"32px",lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"},"& .app-info-did":{fontSize:0},"& .app-info-did .did-address-text":{color:Rt.textMuted,fontSize:"12px"}},children:[n||I.jsx(ct,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:I.jsx(J9,{appInfo:e})}),I.jsxs(ct,{className:"app-info-content",children:[I.jsx(ct,{className:"app-info-name",children:e.appName}),e.appPid&&I.jsx(hg,{size:12,className:"app-info-did",copyable:!1,color:Rt.textMuted,compact:!1,responsive:!1,children:_at(e.appPid)})]}),t?I.jsx(ao,{size:"small",color:"success",children:I.jsx(qDe,{icon:Gie,color:"success"})}):null]})}c5.propTypes={appInfo:Q.object.isRequired,active:Q.bool,appLogo:Q.node};c5.defaultProps={active:!1,appLogo:null};function PE({appInfo:e}){const t=U.useRef(null),n=ui({hoverOnButton:!1,hoverOnPopover:!1}),r=Xt(()=>n.hoverOnButton||n.hoverOnPopover,[n.hoverOnButton,n.hoverOnPopover]);return I.jsxs(I.Fragment,{children:[I.jsx(ct,{component:"span",ref:t,sx:{color:Rt.foregroundsFgInteractive,cursor:"help"},onClick:()=>{n.hoverOnButton=!0},onMouseEnter:()=>{n.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{n.hoverOnButton=!1},200)},children:e.appName}),I.jsx(Xk,{open:r,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${Rt.gray6}, 0px 0px 0px 1px ${Rt.gray6}`,py:1,px:1.5,borderRadius:2,transform:"translateY(-6px) !important"}}},anchorEl:t.current,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{n.open=!1},disableRestoreFocus:!0,children:I.jsx(ct,{component:"span",sx:{pointerEvents:"auto"},onMouseEnter:()=>{n.hoverOnPopover=!0},onMouseLeave:()=>{n.hoverOnPopover=!1},children:I.jsx(c5,{appInfo:e,appLogo:I.jsx(J9,{appInfo:e})})})})]})}PE.propTypes={appInfo:Q.object.isRequired};function Wq(){const{appInfoList:e,t,extraParams:n,connectState:r}=Ll(),i=U.useRef(null),o=ui({open:!1});return I.jsxs(I.Fragment,{children:[I.jsx(ct,{component:"span",ref:i,sx:{textTransform:"lowercase",color:Rt.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{o.open=!0},children:t("switch")}),I.jsx(ALe,{anchorEl:i.current,open:o.open,onClose:()=>{o.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${Rt.gray6}, 0px 0px 0px 1px ${Rt.gray6}`,borderRadius:2}}},children:e.map(a=>I.jsx(rg,{onClick:()=>{o.open=!1,r.sourceAppPid=a.sourceAppPid},children:I.jsx(c5,{appInfo:a,active:a.sourceAppPid===(n==null?void 0:n.sourceAppPid)})},a.appPid))})]})}function Y9({locale:e,disableSwitchApp:t}){const{appInfoList:n,extraParams:r,connectState:i,blocklet:o}=Ll(),a=Xt(()=>n.find(c=>ih.isUndefined(r==null?void 0:r.sourceAppPid)?!0:ih.isNull(c.sourceAppPid)?c.appPid===(o==null?void 0:o.appPid):c.sourceAppPid===(r==null?void 0:r.sourceAppPid)),[r==null?void 0:r.sourceAppPid,n]),s=!t&&n.length>1;ey(()=>{(o==null?void 0:o.appPid)===(a==null?void 0:a.appPid)?i.sourceAppPid=null:i.sourceAppPid=a==null?void 0:a.appPid});const l=Xt(()=>e==="zh"?I.jsxs(I.Fragment,{children:["您正在使用 ",I.jsx(PE,{appInfo:a,appInfoList:n})," 账户来连接站点",s?I.jsxs(I.Fragment,{children:[",点击",I.jsx(Wq,{appInfoList:n})]}):null]}):I.jsxs(I.Fragment,{children:["You're using ",I.jsx(PE,{appInfo:a})," account for site access",s?I.jsxs(I.Fragment,{children:[". Click to ",I.jsx(Wq,{appInfoList:n})]}):null]}),[e,a,n,s]);return ih.isEmpty(n)?null:I.jsxs(ct,{sx:{fontSize:"13px",color:Rt.foregroundsFgSubtile,lineHeight:1.5},children:[l,s&&I.jsx(ct,{component:"span",sx:{display:"inline-block",ml:.5,fontSize:"13px",height:"16px",lineHeight:1,verticalAlign:"middle"},children:I.jsx(ct,{component:Yn,icon:Aat,sx:{verticalAlign:"middle"}})})]})}Y9.propTypes={locale:Q.string,disableSwitchApp:Q.bool};Y9.defaultProps={locale:"en",disableSwitchApp:!1};var Z9={};Object.defineProperty(Z9,"__esModule",{value:!0});var Kie=Z9.default=void 0;Eat(U);var uC=I;function Eat(e){return e&&e.__esModule?e:{default:e}}function Gq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gq(Object(n),!0).forEach(function(r){Rat(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gq(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rat(e,t,n){return t=kat(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kat(e){var t=Dat(e,"string");return typeof t=="symbol"?t:String(t)}function Dat(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X9=function(t){return(0,uC.jsxs)("svg",Kq(Kq({},t),{},{children:[(0,uC.jsx)("path",{d:"M7.366.646L8.46 0h3.981v11.96H8.564a.381.381 0 0 1-.194-.053L4.18 9.431V2.53l.508-.3.893.528-.508.3v5.845L8.7 11.046h2.85V.914h-2.85l-.44.26-.893-.528z",fill:"color(display-p3 .4196 .7412 .9961)"}),(0,uC.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.868 8.903V3.057L4.242.915H1.393v10.132h2.85l.44-.26.893.527-1.095.647H.5V0h3.981l4.28 2.53v6.9l-.506.3-.893-.528.506-.299z",fill:"color(display-p3 .2706 .5961 .9804)"})]}))};X9.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};X9.displayName="did-logo-colorful";Kie=Z9.default=X9;function Lat({...e}){return I.jsxs(ct,{...e,sx:{display:"flex",alignItems:"center",color:Rt.foregroundsFgMuted,gap:.5,...e.sx},children:[I.jsx(Kie,{}),"Powered By",I.jsx(ct,{component:"a",href:"https://www.didconnect.io/",target:"_blank",rel:"noopener",sx:{color:Rt.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"DID Connect"})]})}function Q9({children:e,initHeight:t,slotProps:n}){var s;const[r,i]=U.useState(t),o=U.useRef(null),a=bd(o);return U.useEffect(()=>{a!=null&&a.height&&i(a.height)},[a==null?void 0:a.height,r]),I.jsx(ct,{...n==null?void 0:n.root,sx:{height:r,overflow:"hidden",transition:"height 0.2s ease-in-out",...(s=n==null?void 0:n.root)==null?void 0:s.sx},children:I.jsx(ct,{...n==null?void 0:n.container,ref:o,children:e})})}Q9.propTypes={initHeight:Q.number,children:Q.node.isRequired,slotProps:Q.object};Q9.defaultProps={initHeight:0,slotProps:{}};const T2="did-connect",Jq="quick-connect";function eL({mode:e,isFullScreen:t,hideCloseButton:n,...r}){var h;const i=ui({showTab:T2}),{connectState:o,blocklet:a,appInfoList:s,extraParams:l}=Ll(),{extraContent:c,onSuccess:u,action:d,onClose:p,options:g}=r,y=Xt(()=>s.find(w=>Xi(l==null?void 0:l.sourceAppPid)?!0:nU(w.sourceAppPid)?w.appPid===(a==null?void 0:a.appPid):w.sourceAppPid===(l==null?void 0:l.sourceAppPid)),[l==null?void 0:l.sourceAppPid,s]),b=Xt(()=>nU(o==null?void 0:o.sourceAppPid)?y==null?void 0:y.appPid:(o==null?void 0:o.sourceAppPid)||GQ(),[o==null?void 0:o.sourceAppPid]),{quickLoginEnabled:A,loading:x,userSessions:D,loginUserSession:O,refresh:M}=Wie({appPid:b,loginAppPid:a==null?void 0:a.appPid,sourceAppPid:o==null?void 0:o.sourceAppPid,autoFetch:["login"].includes(d),baseUrl:(y==null?void 0:y.appUrl)||""}),q=Xt(()=>{var w;return((w=r==null?void 0:r.messages)==null?void 0:w.title)||$Ge},[(h=r==null?void 0:r.messages)==null?void 0:h.title]),B=Xt(()=>{if(d==="login"){const w=Us(a),_=xl(a);return l!=null&&l.forceConnected?D.filter(R=>R.userDid===(l==null?void 0:l.forceConnected)):!_||!w?D.filter(R=>{var k;return((k=R==null?void 0:R.user)==null?void 0:k.sourceAppPid)===null}):D.filter(R=>{var k;return b===a.appPid?((k=R.user)==null?void 0:k.sourceAppPid)===(l==null?void 0:l.sourceAppPid):!0})}return D},[l==null?void 0:l.forceConnected,d,D]),j=St(async(...w)=>{var C,E,v;const _=await O(...w),[R]=w,k={};R&&((C=R==null?void 0:R.user)!=null&&C.did&&(k.connected_did=R.user.did),(E=R==null?void 0:R.user)!=null&&E.pk&&(k.connected_pk=R.user.pk),(v=R==null?void 0:R.extra)!=null&&v.walletOS&&(k.connected_wallet_os=R.extra.walletOS),R!=null&&R.appPid&&(k.connected_app=R.appPid)),await u({..._,encrypted:!1},L=>L,k)});U.useEffect(()=>{(g==null?void 0:g.showQuickConnect)!==!1&&!x&&A&&(i.showTab=Jq)},[x,A,g==null?void 0:g.showQuickConnect]);const K=fIe(x,{wait:100}),oe=St(()=>{i.showTab=T2}),ue=St(()=>{i.showTab=Jq}),G=Xt(()=>B.length===0?!0:i.showTab===T2||!A,[i.showTab,A]),P=Xt(()=>{let w=!0;return(x||K)&&(w=!1),A||(w=!1),g.showQuickConnect===!1&&(w=!1),i.showTab!==T2&&(w=!1),w},[A,i.showTab,x,K]),T=Xt(()=>I.jsx(ct,{onClick:p,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:Rt.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:I.jsx(Yn,{icon:pee})}),[p]);let f=null;return x||K?f=I.jsx(pD,{}):G?f=I.jsx(K9,{...r,onClose:p}):f=I.jsx(C9,{userSessions:B,onLogin:j,onRetry:M,onClose:p,messages:r.messages,onLoginAnother:oe}),I.jsxs(zRe,{variant:"outlined",sx:{color:Rt.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:Rt.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[I.jsx(d7e,{title:I.jsxs(I.Fragment,{children:[P&&I.jsx(ao,{size:"small",disabled:o.status!=="created",onClick:ue,disableRipple:!0,sx:{fontSize:"0.75em"},children:I.jsx(Yn,{icon:aMe,color:Rt.textMuted})}),q]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:n?null:T,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),I.jsx(n7e,{sx:{borderTop:`1px solid ${Rt.strokeBorderBase}`,borderBottom:`1px solid ${Rt.strokeBorderBase}`,flex:1,verticalAlign:"middle",overflow:"auto",p:2.5,position:"relative","&::after":{content:'""',height:"100%",verticalAlign:"middle",display:"inline-block",width:0}},children:I.jsxs(Q9,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[I.jsx(Y9,{locale:r.locale,disableSwitchApp:r.disableSwitchApp}),f,c?I.jsx(ct,{children:c}):null]})}),I.jsx(YRe,{sx:{py:2,px:2.5,justifyContent:"center"},children:I.jsx(Lat,{sx:{fontSize:"12px"}})})]})}eL.propTypes={action:Q.string.isRequired,onSuccess:Q.func,onClose:Q.func,messages:Q.object,extraContent:Q.any,disableSwitchApp:Q.bool,mode:Q.oneOf(["fullScreen","dialog","normal"]),isFullScreen:Q.bool,options:Q.object,hideCloseButton:Q.bool,locale:Q.string};eL.defaultProps={onSuccess:Zn,onClose:Zn,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function tL(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:o}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");return I.jsx(r9,{blocklet:r,action:i,locale:o,extraParams:n,sx:{position:"relative",width:"100%",height:"100%",lineHeight:1.2,fontFamily:"Inter",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:I.jsx(eL,{...e})})}tL.propTypes={checkFn:Q.func.isRequired,extraParams:Q.object,blocklet:Q.object.isRequired,action:Q.string.isRequired,locale:Q.string};tL.defaultProps={extraParams:{},locale:"en"};const nL=bNe(eNe(xNe(tL)));var rL={},Oat=ga;Object.defineProperty(rL,"__esModule",{value:!0});var Jie=rL.default=void 0,Iat=Oat(Hs()),Pat=I;Jie=rL.default=(0,Iat.default)((0,Pat.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0"}),"CheckCircleRounded");var iL={},Mat=ga;Object.defineProperty(iL,"__esModule",{value:!0});var Yie=iL.default=void 0,Bat=Mat(Hs()),Nat=I;Yie=iL.default=(0,Bat.default)((0,Nat.jsx)("path",{d:"M12 2C6.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 8m3.88-11.71L10 14.17l-1.88-1.88a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7c.39-.39.39-1.02 0-1.41-.39-.39-1.03-.39-1.42 0"}),"CheckCircleOutlineRounded");var Zie=function(t){return I.jsx("svg",{...t,children:I.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",children:[I.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),I.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Zie.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var Xie=function(t){return I.jsx("svg",{...t,children:I.jsx("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};Xie.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};var Qie=function(t){return I.jsx("svg",{...t,children:I.jsxs("g",{fill:"none",fillRule:"evenodd",stroke:"#000",children:[I.jsx("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"}),I.jsx("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"})]})})};Qie.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"45",height:"52",viewBox:"0 0 45 52"};var eoe=function(t){return I.jsx("svg",{...t,children:I.jsx("path",{fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917h-7.09v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4v2.021c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})})};eoe.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"99",height:"18",viewBox:"0 0 99 18"};function x0({showText:e,showLogo:t,mode:n,layout:r,...i}){const o=n==="light"?I.jsx(Zie,{}):I.jsx(Qie,{}),a=n==="light"?I.jsx(Xie,{className:"logo-text"}):I.jsx(eoe,{className:"logo-text"});return I.jsxs($at,{layout:r,...i,children:[t&&o,e&&a]})}x0.propTypes={mode:Q.oneOf(["light","dark"]),layout:Q.oneOf(["vertical","horizontal"]),showText:Q.bool,showLogo:Q.bool};x0.defaultProps={mode:"dark",layout:"vertical",showText:!0,showLogo:!0};const $at=or("span")`
489
489
  display: inline-flex;
490
490
  flex-direction: ${e=>e.layout==="horizontal"?"row":"column"};
491
491
  justify-content: center;
@@ -576,7 +576,7 @@ function print() { __p += __j.call(arguments, '') }
576
576
  }
577
577
  }
578
578
  `,f5=U.createContext({});function ioe(){const{node:e}=U.useContext(f5);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}var d5={exports:{}},ooe={};const Jat=Oi(V8e);var ME={},_u={},Yat=Tu,Zat=us,Xat="[object Boolean]";function Qat(e){return e===!0||e===!1||Zat(e)&&Yat(e)==Xat}var est=Qat,tst=Tu,nst=us,rst="[object Number]";function ist(e){return typeof e=="number"||nst(e)&&tst(e)==rst}var ost=ist,ast=Ak,sst=Kw,lst=Ek,ust=Bc;function cst(e){return function(t){t=ust(t);var n=sst(t)?lst(t):void 0,r=n?n[0]:t.charAt(0),i=n?ast(n,1).join(""):t.slice(1);return r[e]()+i}}var fst=cst,dst=fst,pst=dst("toUpperCase"),lL=pst;const i_t=Kt(lL);var hst=Bc,mst=lL;function gst(e){return mst(hst(e).toLowerCase())}var yst=gst;function vst(e,t,n,r){var i=-1,o=e==null?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}var bst=vst;function wst(e){return function(t){return e==null?void 0:e[t]}}var Tst=wst,xst=Tst,Sst={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Cst=xst(Sst),Ast=Cst,_st=Ast,Est=Bc,Rst=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kst="\\u0300-\\u036f",Dst="\\ufe20-\\ufe2f",Lst="\\u20d0-\\u20ff",Ost=kst+Dst+Lst,Ist="["+Ost+"]",Pst=RegExp(Ist,"g");function Mst(e){return e=Est(e),e&&e.replace(Rst,_st).replace(Pst,"")}var Bst=Mst,Nst=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function $st(e){return e.match(Nst)||[]}var Fst=$st,Ust=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function jst(e){return Ust.test(e)}var Vst=jst,aoe="\\ud800-\\udfff",qst="\\u0300-\\u036f",zst="\\ufe20-\\ufe2f",Hst="\\u20d0-\\u20ff",Wst=qst+zst+Hst,soe="\\u2700-\\u27bf",loe="a-z\\xdf-\\xf6\\xf8-\\xff",Gst="\\xac\\xb1\\xd7\\xf7",Kst="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Jst="\\u2000-\\u206f",Yst=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",uoe="A-Z\\xc0-\\xd6\\xd8-\\xde",Zst="\\ufe0e\\ufe0f",coe=Gst+Kst+Jst+Yst,foe="['’]",ez="["+coe+"]",Xst="["+Wst+"]",doe="\\d+",Qst="["+soe+"]",poe="["+loe+"]",hoe="[^"+aoe+coe+doe+soe+loe+uoe+"]",elt="\\ud83c[\\udffb-\\udfff]",tlt="(?:"+Xst+"|"+elt+")",nlt="[^"+aoe+"]",moe="(?:\\ud83c[\\udde6-\\uddff]){2}",goe="[\\ud800-\\udbff][\\udc00-\\udfff]",gp="["+uoe+"]",rlt="\\u200d",tz="(?:"+poe+"|"+hoe+")",ilt="(?:"+gp+"|"+hoe+")",nz="(?:"+foe+"(?:d|ll|m|re|s|t|ve))?",rz="(?:"+foe+"(?:D|LL|M|RE|S|T|VE))?",yoe=tlt+"?",voe="["+Zst+"]?",olt="(?:"+rlt+"(?:"+[nlt,moe,goe].join("|")+")"+voe+yoe+")*",alt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",slt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",llt=voe+yoe+olt,ult="(?:"+[Qst,moe,goe].join("|")+")"+llt,clt=RegExp([gp+"?"+poe+"+"+nz+"(?="+[ez,gp,"$"].join("|")+")",ilt+"+"+rz+"(?="+[ez,gp+tz,"$"].join("|")+")",gp+"?"+tz+"+"+nz,gp+"+"+rz,slt,alt,doe,ult].join("|"),"g");function flt(e){return e.match(clt)||[]}var dlt=flt,plt=Fst,hlt=Vst,mlt=Bc,glt=dlt;function ylt(e,t,n){return e=mlt(e),t=n?void 0:t,t===void 0?hlt(e)?glt(e):plt(e):e.match(t)||[]}var vlt=ylt,blt=bst,wlt=Bst,Tlt=vlt,xlt="['’]",Slt=RegExp(xlt,"g");function Clt(e){return function(t){return blt(Tlt(wlt(t).replace(Slt,"")),e,"")}}var Alt=Clt,_lt=yst,Elt=Alt,Rlt=Elt(function(e,t,n){return t=t.toLowerCase(),e+(n?_lt(t):t)}),boe=Rlt;const o_t=Kt(boe);var klt=rX,Dlt=_k,Llt=aX,Olt=Bc;function Ilt(e,t,n){e=Olt(e),t=Llt(t);var r=t?Dlt(e):0;return t&&r<t?e+klt(t-r,n):e}var Plt=Ilt,Mlt={unescape:woe,escape:Toe,encode:Blt,decode:Nlt};function woe(e){return(e+"===".slice((e.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function Toe(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Blt(e,t){return Toe(Qt.from(e,t||"utf8").toString("base64"))}function Nlt(e,t){return Qt.from(woe(e),"base64").toString(t||"utf8")}var uL={exports:{}};uL.exports;(function(e){(function(t,n){function r(T,f){if(!T)throw new Error(f||"Assertion failed")}function i(T,f){T.super_=f;var h=function(){};h.prototype=f.prototype,T.prototype=new h,T.prototype.constructor=T}function o(T,f,h){if(o.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&((f==="le"||f==="be")&&(h=f,f=10),this._init(T||0,f||10,h||"be"))}typeof t=="object"?t.exports=o:n.BN=o,o.BN=o,o.wordSize=26;var a;try{typeof window<"u"&&typeof window.Buffer<"u"?a=window.Buffer:a=Rl.Buffer}catch{}o.isBN=function(f){return f instanceof o?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===o.wordSize&&Array.isArray(f.words)},o.max=function(f,h){return f.cmp(h)>0?f:h},o.min=function(f,h){return f.cmp(h)<0?f:h},o.prototype._init=function(f,h,w){if(typeof f=="number")return this._initNumber(f,h,w);if(typeof f=="object")return this._initArray(f,h,w);h==="hex"&&(h=16),r(h===(h|0)&&h>=2&&h<=36),f=f.toString().replace(/\s+/g,"");var _=0;f[0]==="-"&&(_++,this.negative=1),_<f.length&&(h===16?this._parseHex(f,_,w):(this._parseBase(f,h,_),w==="le"&&this._initArray(this.toArray(),h,w)))},o.prototype._initNumber=function(f,h,w){f<0&&(this.negative=1,f=-f),f<67108864?(this.words=[f&67108863],this.length=1):f<4503599627370496?(this.words=[f&67108863,f/67108864&67108863],this.length=2):(r(f<9007199254740992),this.words=[f&67108863,f/67108864&67108863,1],this.length=3),w==="le"&&this._initArray(this.toArray(),h,w)},o.prototype._initArray=function(f,h,w){if(r(typeof f.length=="number"),f.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(f.length/3),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var R,k,C=0;if(w==="be")for(_=f.length-1,R=0;_>=0;_-=3)k=f[_]|f[_-1]<<8|f[_-2]<<16,this.words[R]|=k<<C&67108863,this.words[R+1]=k>>>26-C&67108863,C+=24,C>=26&&(C-=26,R++);else if(w==="le")for(_=0,R=0;_<f.length;_+=3)k=f[_]|f[_+1]<<8|f[_+2]<<16,this.words[R]|=k<<C&67108863,this.words[R+1]=k>>>26-C&67108863,C+=24,C>=26&&(C-=26,R++);return this._strip()};function s(T,f){var h=T.charCodeAt(f);if(h>=48&&h<=57)return h-48;if(h>=65&&h<=70)return h-55;if(h>=97&&h<=102)return h-87;r(!1,"Invalid character in "+T)}function l(T,f,h){var w=s(T,h);return h-1>=f&&(w|=s(T,h-1)<<4),w}o.prototype._parseHex=function(f,h,w){this.length=Math.ceil((f.length-h)/6),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var R=0,k=0,C;if(w==="be")for(_=f.length-1;_>=h;_-=2)C=l(f,h,_)<<R,this.words[k]|=C&67108863,R>=18?(R-=18,k+=1,this.words[k]|=C>>>26):R+=8;else{var E=f.length-h;for(_=E%2===0?h+1:h;_<f.length;_+=2)C=l(f,h,_)<<R,this.words[k]|=C&67108863,R>=18?(R-=18,k+=1,this.words[k]|=C>>>26):R+=8}this._strip()};function c(T,f,h,w){for(var _=0,R=0,k=Math.min(T.length,h),C=f;C<k;C++){var E=T.charCodeAt(C)-48;_*=w,E>=49?R=E-49+10:E>=17?R=E-17+10:R=E,r(E>=0&&R<w,"Invalid character"),_+=R}return _}o.prototype._parseBase=function(f,h,w){this.words=[0],this.length=1;for(var _=0,R=1;R<=67108863;R*=h)_++;_--,R=R/h|0;for(var k=f.length-w,C=k%_,E=Math.min(k,k-C)+w,v=0,L=w;L<E;L+=_)v=c(f,L,L+_,h),this.imuln(R),this.words[0]+v<67108864?this.words[0]+=v:this._iaddn(v);if(C!==0){var ne=1;for(v=c(f,L,f.length,h),L=0;L<C;L++)ne*=h;this.imuln(ne),this.words[0]+v<67108864?this.words[0]+=v:this._iaddn(v)}this._strip()},o.prototype.copy=function(f){f.words=new Array(this.length);for(var h=0;h<this.length;h++)f.words[h]=this.words[h];f.length=this.length,f.negative=this.negative,f.red=this.red};function u(T,f){T.words=f.words,T.length=f.length,T.negative=f.negative,T.red=f.red}if(o.prototype._move=function(f){u(f,this)},o.prototype.clone=function(){var f=new o(null);return this.copy(f),f},o.prototype._expand=function(f){for(;this.length<f;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch{o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],y=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(f,h){f=f||10,h=h|0||1;var w;if(f===16||f==="hex"){w="";for(var _=0,R=0,k=0;k<this.length;k++){var C=this.words[k],E=((C<<_|R)&16777215).toString(16);R=C>>>24-_&16777215,_+=2,_>=26&&(_-=26,k--),R!==0||k!==this.length-1?w=p[6-E.length]+E+w:w=E+w}for(R!==0&&(w=R.toString(16)+w);w.length%h!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(f===(f|0)&&f>=2&&f<=36){var v=g[f],L=y[f];w="";var ne=this.clone();for(ne.negative=0;!ne.isZero();){var F=ne.modrn(L).toString(f);ne=ne.idivn(L),ne.isZero()?w=F+w:w=p[v-F.length]+F+w}for(this.isZero()&&(w="0"+w);w.length%h!==0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(f,h){return this.toArrayLike(a,f,h)}),o.prototype.toArray=function(f,h){return this.toArrayLike(Array,f,h)};var b=function(f,h){return f.allocUnsafe?f.allocUnsafe(h):new f(h)};o.prototype.toArrayLike=function(f,h,w){this._strip();var _=this.byteLength(),R=w||Math.max(1,_);r(_<=R,"byte array longer than desired length"),r(R>0,"Requested array length <= 0");var k=b(f,R),C=h==="le"?"LE":"BE";return this["_toArrayLike"+C](k,_),k},o.prototype._toArrayLikeLE=function(f,h){for(var w=0,_=0,R=0,k=0;R<this.length;R++){var C=this.words[R]<<k|_;f[w++]=C&255,w<f.length&&(f[w++]=C>>8&255),w<f.length&&(f[w++]=C>>16&255),k===6?(w<f.length&&(f[w++]=C>>24&255),_=0,k=0):(_=C>>>24,k+=2)}if(w<f.length)for(f[w++]=_;w<f.length;)f[w++]=0},o.prototype._toArrayLikeBE=function(f,h){for(var w=f.length-1,_=0,R=0,k=0;R<this.length;R++){var C=this.words[R]<<k|_;f[w--]=C&255,w>=0&&(f[w--]=C>>8&255),w>=0&&(f[w--]=C>>16&255),k===6?(w>=0&&(f[w--]=C>>24&255),_=0,k=0):(_=C>>>24,k+=2)}if(w>=0)for(f[w--]=_;w>=0;)f[w--]=0},Math.clz32?o.prototype._countBits=function(f){return 32-Math.clz32(f)}:o.prototype._countBits=function(f){var h=f,w=0;return h>=4096&&(w+=13,h>>>=13),h>=64&&(w+=7,h>>>=7),h>=8&&(w+=4,h>>>=4),h>=2&&(w+=2,h>>>=2),w+h},o.prototype._zeroBits=function(f){if(f===0)return 26;var h=f,w=0;return h&8191||(w+=13,h>>>=13),h&127||(w+=7,h>>>=7),h&15||(w+=4,h>>>=4),h&3||(w+=2,h>>>=2),h&1||w++,w},o.prototype.bitLength=function(){var f=this.words[this.length-1],h=this._countBits(f);return(this.length-1)*26+h};function A(T){for(var f=new Array(T.bitLength()),h=0;h<f.length;h++){var w=h/26|0,_=h%26;f[h]=T.words[w]>>>_&1}return f}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,h=0;h<this.length;h++){var w=this._zeroBits(this.words[h]);if(f+=w,w!==26)break}return f},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(f){return this.negative!==0?this.abs().inotn(f).iaddn(1):this.clone()},o.prototype.fromTwos=function(f){return this.testn(f-1)?this.notn(f).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(f){for(;this.length<f.length;)this.words[this.length++]=0;for(var h=0;h<f.length;h++)this.words[h]=this.words[h]|f.words[h];return this._strip()},o.prototype.ior=function(f){return r((this.negative|f.negative)===0),this.iuor(f)},o.prototype.or=function(f){return this.length>f.length?this.clone().ior(f):f.clone().ior(this)},o.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},o.prototype.iuand=function(f){var h;this.length>f.length?h=f:h=this;for(var w=0;w<h.length;w++)this.words[w]=this.words[w]&f.words[w];return this.length=h.length,this._strip()},o.prototype.iand=function(f){return r((this.negative|f.negative)===0),this.iuand(f)},o.prototype.and=function(f){return this.length>f.length?this.clone().iand(f):f.clone().iand(this)},o.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},o.prototype.iuxor=function(f){var h,w;this.length>f.length?(h=this,w=f):(h=f,w=this);for(var _=0;_<w.length;_++)this.words[_]=h.words[_]^w.words[_];if(this!==h)for(;_<h.length;_++)this.words[_]=h.words[_];return this.length=h.length,this._strip()},o.prototype.ixor=function(f){return r((this.negative|f.negative)===0),this.iuxor(f)},o.prototype.xor=function(f){return this.length>f.length?this.clone().ixor(f):f.clone().ixor(this)},o.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},o.prototype.inotn=function(f){r(typeof f=="number"&&f>=0);var h=Math.ceil(f/26)|0,w=f%26;this._expand(h),w>0&&h--;for(var _=0;_<h;_++)this.words[_]=~this.words[_]&67108863;return w>0&&(this.words[_]=~this.words[_]&67108863>>26-w),this._strip()},o.prototype.notn=function(f){return this.clone().inotn(f)},o.prototype.setn=function(f,h){r(typeof f=="number"&&f>=0);var w=f/26|0,_=f%26;return this._expand(w+1),h?this.words[w]=this.words[w]|1<<_:this.words[w]=this.words[w]&~(1<<_),this._strip()},o.prototype.iadd=function(f){var h;if(this.negative!==0&&f.negative===0)return this.negative=0,h=this.isub(f),this.negative^=1,this._normSign();if(this.negative===0&&f.negative!==0)return f.negative=0,h=this.isub(f),f.negative=1,h._normSign();var w,_;this.length>f.length?(w=this,_=f):(w=f,_=this);for(var R=0,k=0;k<_.length;k++)h=(w.words[k]|0)+(_.words[k]|0)+R,this.words[k]=h&67108863,R=h>>>26;for(;R!==0&&k<w.length;k++)h=(w.words[k]|0)+R,this.words[k]=h&67108863,R=h>>>26;if(this.length=w.length,R!==0)this.words[this.length]=R,this.length++;else if(w!==this)for(;k<w.length;k++)this.words[k]=w.words[k];return this},o.prototype.add=function(f){var h;return f.negative!==0&&this.negative===0?(f.negative=0,h=this.sub(f),f.negative^=1,h):f.negative===0&&this.negative!==0?(this.negative=0,h=f.sub(this),this.negative=1,h):this.length>f.length?this.clone().iadd(f):f.clone().iadd(this)},o.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var h=this.iadd(f);return f.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var w=this.cmp(f);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,R;w>0?(_=this,R=f):(_=f,R=this);for(var k=0,C=0;C<R.length;C++)h=(_.words[C]|0)-(R.words[C]|0)+k,k=h>>26,this.words[C]=h&67108863;for(;k!==0&&C<_.length;C++)h=(_.words[C]|0)+k,k=h>>26,this.words[C]=h&67108863;if(k===0&&C<_.length&&_!==this)for(;C<_.length;C++)this.words[C]=_.words[C];return this.length=Math.max(this.length,C),_!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(f){return this.clone().isub(f)};function x(T,f,h){h.negative=f.negative^T.negative;var w=T.length+f.length|0;h.length=w,w=w-1|0;var _=T.words[0]|0,R=f.words[0]|0,k=_*R,C=k&67108863,E=k/67108864|0;h.words[0]=C;for(var v=1;v<w;v++){for(var L=E>>>26,ne=E&67108863,F=Math.min(v,f.length-1),J=Math.max(0,v-T.length+1);J<=F;J++){var se=v-J|0;_=T.words[se]|0,R=f.words[J]|0,k=_*R+ne,L+=k/67108864|0,ne=k&67108863}h.words[v]=ne|0,E=L|0}return E!==0?h.words[v]=E|0:h.length--,h._strip()}var D=function(f,h,w){var _=f.words,R=h.words,k=w.words,C=0,E,v,L,ne=_[0]|0,F=ne&8191,J=ne>>>13,se=_[1]|0,pe=se&8191,be=se>>>13,Ee=_[2]|0,H=Ee&8191,$=Ee>>>13,Z=_[3]|0,Y=Z&8191,ie=Z>>>13,Te=_[4]|0,me=Te&8191,le=Te>>>13,ve=_[5]|0,Ae=ve&8191,xe=ve>>>13,He=_[6]|0,Ye=He&8191,ge=He>>>13,Pe=_[7]|0,te=Pe&8191,we=Pe>>>13,Be=_[8]|0,ke=Be&8191,re=Be>>>13,V=_[9]|0,W=V&8191,ce=V>>>13,Re=R[0]|0,_e=Re&8191,De=Re>>>13,Ve=R[1]|0,Fe=Ve&8191,je=Ve>>>13,ot=R[2]|0,Ze=ot&8191,Je=ot>>>13,Le=R[3]|0,Oe=Le&8191,Ie=Le>>>13,nt=R[4]|0,rt=nt&8191,et=nt>>>13,xt=R[5]|0,Xe=xt&8191,Ge=xt>>>13,Nt=R[6]|0,ee=Nt&8191,ae=Nt>>>13,fe=R[7]|0,z=fe&8191,de=fe>>>13,Ue=R[8]|0,Me=Ue&8191,qe=Ue>>>13,lt=R[9]|0,at=lt&8191,it=lt>>>13;w.negative=f.negative^h.negative,w.length=19,E=Math.imul(F,_e),v=Math.imul(F,De),v=v+Math.imul(J,_e)|0,L=Math.imul(J,De);var Yt=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,E=Math.imul(pe,_e),v=Math.imul(pe,De),v=v+Math.imul(be,_e)|0,L=Math.imul(be,De),E=E+Math.imul(F,Fe)|0,v=v+Math.imul(F,je)|0,v=v+Math.imul(J,Fe)|0,L=L+Math.imul(J,je)|0;var At=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(At>>>26)|0,At&=67108863,E=Math.imul(H,_e),v=Math.imul(H,De),v=v+Math.imul($,_e)|0,L=Math.imul($,De),E=E+Math.imul(pe,Fe)|0,v=v+Math.imul(pe,je)|0,v=v+Math.imul(be,Fe)|0,L=L+Math.imul(be,je)|0,E=E+Math.imul(F,Ze)|0,v=v+Math.imul(F,Je)|0,v=v+Math.imul(J,Ze)|0,L=L+Math.imul(J,Je)|0;var Tt=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,E=Math.imul(Y,_e),v=Math.imul(Y,De),v=v+Math.imul(ie,_e)|0,L=Math.imul(ie,De),E=E+Math.imul(H,Fe)|0,v=v+Math.imul(H,je)|0,v=v+Math.imul($,Fe)|0,L=L+Math.imul($,je)|0,E=E+Math.imul(pe,Ze)|0,v=v+Math.imul(pe,Je)|0,v=v+Math.imul(be,Ze)|0,L=L+Math.imul(be,Je)|0,E=E+Math.imul(F,Oe)|0,v=v+Math.imul(F,Ie)|0,v=v+Math.imul(J,Oe)|0,L=L+Math.imul(J,Ie)|0;var It=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(It>>>26)|0,It&=67108863,E=Math.imul(me,_e),v=Math.imul(me,De),v=v+Math.imul(le,_e)|0,L=Math.imul(le,De),E=E+Math.imul(Y,Fe)|0,v=v+Math.imul(Y,je)|0,v=v+Math.imul(ie,Fe)|0,L=L+Math.imul(ie,je)|0,E=E+Math.imul(H,Ze)|0,v=v+Math.imul(H,Je)|0,v=v+Math.imul($,Ze)|0,L=L+Math.imul($,Je)|0,E=E+Math.imul(pe,Oe)|0,v=v+Math.imul(pe,Ie)|0,v=v+Math.imul(be,Oe)|0,L=L+Math.imul(be,Ie)|0,E=E+Math.imul(F,rt)|0,v=v+Math.imul(F,et)|0,v=v+Math.imul(J,rt)|0,L=L+Math.imul(J,et)|0;var zt=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(zt>>>26)|0,zt&=67108863,E=Math.imul(Ae,_e),v=Math.imul(Ae,De),v=v+Math.imul(xe,_e)|0,L=Math.imul(xe,De),E=E+Math.imul(me,Fe)|0,v=v+Math.imul(me,je)|0,v=v+Math.imul(le,Fe)|0,L=L+Math.imul(le,je)|0,E=E+Math.imul(Y,Ze)|0,v=v+Math.imul(Y,Je)|0,v=v+Math.imul(ie,Ze)|0,L=L+Math.imul(ie,Je)|0,E=E+Math.imul(H,Oe)|0,v=v+Math.imul(H,Ie)|0,v=v+Math.imul($,Oe)|0,L=L+Math.imul($,Ie)|0,E=E+Math.imul(pe,rt)|0,v=v+Math.imul(pe,et)|0,v=v+Math.imul(be,rt)|0,L=L+Math.imul(be,et)|0,E=E+Math.imul(F,Xe)|0,v=v+Math.imul(F,Ge)|0,v=v+Math.imul(J,Xe)|0,L=L+Math.imul(J,Ge)|0;var Et=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(Et>>>26)|0,Et&=67108863,E=Math.imul(Ye,_e),v=Math.imul(Ye,De),v=v+Math.imul(ge,_e)|0,L=Math.imul(ge,De),E=E+Math.imul(Ae,Fe)|0,v=v+Math.imul(Ae,je)|0,v=v+Math.imul(xe,Fe)|0,L=L+Math.imul(xe,je)|0,E=E+Math.imul(me,Ze)|0,v=v+Math.imul(me,Je)|0,v=v+Math.imul(le,Ze)|0,L=L+Math.imul(le,Je)|0,E=E+Math.imul(Y,Oe)|0,v=v+Math.imul(Y,Ie)|0,v=v+Math.imul(ie,Oe)|0,L=L+Math.imul(ie,Ie)|0,E=E+Math.imul(H,rt)|0,v=v+Math.imul(H,et)|0,v=v+Math.imul($,rt)|0,L=L+Math.imul($,et)|0,E=E+Math.imul(pe,Xe)|0,v=v+Math.imul(pe,Ge)|0,v=v+Math.imul(be,Xe)|0,L=L+Math.imul(be,Ge)|0,E=E+Math.imul(F,ee)|0,v=v+Math.imul(F,ae)|0,v=v+Math.imul(J,ee)|0,L=L+Math.imul(J,ae)|0;var Dt=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,E=Math.imul(te,_e),v=Math.imul(te,De),v=v+Math.imul(we,_e)|0,L=Math.imul(we,De),E=E+Math.imul(Ye,Fe)|0,v=v+Math.imul(Ye,je)|0,v=v+Math.imul(ge,Fe)|0,L=L+Math.imul(ge,je)|0,E=E+Math.imul(Ae,Ze)|0,v=v+Math.imul(Ae,Je)|0,v=v+Math.imul(xe,Ze)|0,L=L+Math.imul(xe,Je)|0,E=E+Math.imul(me,Oe)|0,v=v+Math.imul(me,Ie)|0,v=v+Math.imul(le,Oe)|0,L=L+Math.imul(le,Ie)|0,E=E+Math.imul(Y,rt)|0,v=v+Math.imul(Y,et)|0,v=v+Math.imul(ie,rt)|0,L=L+Math.imul(ie,et)|0,E=E+Math.imul(H,Xe)|0,v=v+Math.imul(H,Ge)|0,v=v+Math.imul($,Xe)|0,L=L+Math.imul($,Ge)|0,E=E+Math.imul(pe,ee)|0,v=v+Math.imul(pe,ae)|0,v=v+Math.imul(be,ee)|0,L=L+Math.imul(be,ae)|0,E=E+Math.imul(F,z)|0,v=v+Math.imul(F,de)|0,v=v+Math.imul(J,z)|0,L=L+Math.imul(J,de)|0;var Ut=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,E=Math.imul(ke,_e),v=Math.imul(ke,De),v=v+Math.imul(re,_e)|0,L=Math.imul(re,De),E=E+Math.imul(te,Fe)|0,v=v+Math.imul(te,je)|0,v=v+Math.imul(we,Fe)|0,L=L+Math.imul(we,je)|0,E=E+Math.imul(Ye,Ze)|0,v=v+Math.imul(Ye,Je)|0,v=v+Math.imul(ge,Ze)|0,L=L+Math.imul(ge,Je)|0,E=E+Math.imul(Ae,Oe)|0,v=v+Math.imul(Ae,Ie)|0,v=v+Math.imul(xe,Oe)|0,L=L+Math.imul(xe,Ie)|0,E=E+Math.imul(me,rt)|0,v=v+Math.imul(me,et)|0,v=v+Math.imul(le,rt)|0,L=L+Math.imul(le,et)|0,E=E+Math.imul(Y,Xe)|0,v=v+Math.imul(Y,Ge)|0,v=v+Math.imul(ie,Xe)|0,L=L+Math.imul(ie,Ge)|0,E=E+Math.imul(H,ee)|0,v=v+Math.imul(H,ae)|0,v=v+Math.imul($,ee)|0,L=L+Math.imul($,ae)|0,E=E+Math.imul(pe,z)|0,v=v+Math.imul(pe,de)|0,v=v+Math.imul(be,z)|0,L=L+Math.imul(be,de)|0,E=E+Math.imul(F,Me)|0,v=v+Math.imul(F,qe)|0,v=v+Math.imul(J,Me)|0,L=L+Math.imul(J,qe)|0;var Ht=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,E=Math.imul(W,_e),v=Math.imul(W,De),v=v+Math.imul(ce,_e)|0,L=Math.imul(ce,De),E=E+Math.imul(ke,Fe)|0,v=v+Math.imul(ke,je)|0,v=v+Math.imul(re,Fe)|0,L=L+Math.imul(re,je)|0,E=E+Math.imul(te,Ze)|0,v=v+Math.imul(te,Je)|0,v=v+Math.imul(we,Ze)|0,L=L+Math.imul(we,Je)|0,E=E+Math.imul(Ye,Oe)|0,v=v+Math.imul(Ye,Ie)|0,v=v+Math.imul(ge,Oe)|0,L=L+Math.imul(ge,Ie)|0,E=E+Math.imul(Ae,rt)|0,v=v+Math.imul(Ae,et)|0,v=v+Math.imul(xe,rt)|0,L=L+Math.imul(xe,et)|0,E=E+Math.imul(me,Xe)|0,v=v+Math.imul(me,Ge)|0,v=v+Math.imul(le,Xe)|0,L=L+Math.imul(le,Ge)|0,E=E+Math.imul(Y,ee)|0,v=v+Math.imul(Y,ae)|0,v=v+Math.imul(ie,ee)|0,L=L+Math.imul(ie,ae)|0,E=E+Math.imul(H,z)|0,v=v+Math.imul(H,de)|0,v=v+Math.imul($,z)|0,L=L+Math.imul($,de)|0,E=E+Math.imul(pe,Me)|0,v=v+Math.imul(pe,qe)|0,v=v+Math.imul(be,Me)|0,L=L+Math.imul(be,qe)|0,E=E+Math.imul(F,at)|0,v=v+Math.imul(F,it)|0,v=v+Math.imul(J,at)|0,L=L+Math.imul(J,it)|0;var $t=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+($t>>>26)|0,$t&=67108863,E=Math.imul(W,Fe),v=Math.imul(W,je),v=v+Math.imul(ce,Fe)|0,L=Math.imul(ce,je),E=E+Math.imul(ke,Ze)|0,v=v+Math.imul(ke,Je)|0,v=v+Math.imul(re,Ze)|0,L=L+Math.imul(re,Je)|0,E=E+Math.imul(te,Oe)|0,v=v+Math.imul(te,Ie)|0,v=v+Math.imul(we,Oe)|0,L=L+Math.imul(we,Ie)|0,E=E+Math.imul(Ye,rt)|0,v=v+Math.imul(Ye,et)|0,v=v+Math.imul(ge,rt)|0,L=L+Math.imul(ge,et)|0,E=E+Math.imul(Ae,Xe)|0,v=v+Math.imul(Ae,Ge)|0,v=v+Math.imul(xe,Xe)|0,L=L+Math.imul(xe,Ge)|0,E=E+Math.imul(me,ee)|0,v=v+Math.imul(me,ae)|0,v=v+Math.imul(le,ee)|0,L=L+Math.imul(le,ae)|0,E=E+Math.imul(Y,z)|0,v=v+Math.imul(Y,de)|0,v=v+Math.imul(ie,z)|0,L=L+Math.imul(ie,de)|0,E=E+Math.imul(H,Me)|0,v=v+Math.imul(H,qe)|0,v=v+Math.imul($,Me)|0,L=L+Math.imul($,qe)|0,E=E+Math.imul(pe,at)|0,v=v+Math.imul(pe,it)|0,v=v+Math.imul(be,at)|0,L=L+Math.imul(be,it)|0;var Vt=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(Vt>>>26)|0,Vt&=67108863,E=Math.imul(W,Ze),v=Math.imul(W,Je),v=v+Math.imul(ce,Ze)|0,L=Math.imul(ce,Je),E=E+Math.imul(ke,Oe)|0,v=v+Math.imul(ke,Ie)|0,v=v+Math.imul(re,Oe)|0,L=L+Math.imul(re,Ie)|0,E=E+Math.imul(te,rt)|0,v=v+Math.imul(te,et)|0,v=v+Math.imul(we,rt)|0,L=L+Math.imul(we,et)|0,E=E+Math.imul(Ye,Xe)|0,v=v+Math.imul(Ye,Ge)|0,v=v+Math.imul(ge,Xe)|0,L=L+Math.imul(ge,Ge)|0,E=E+Math.imul(Ae,ee)|0,v=v+Math.imul(Ae,ae)|0,v=v+Math.imul(xe,ee)|0,L=L+Math.imul(xe,ae)|0,E=E+Math.imul(me,z)|0,v=v+Math.imul(me,de)|0,v=v+Math.imul(le,z)|0,L=L+Math.imul(le,de)|0,E=E+Math.imul(Y,Me)|0,v=v+Math.imul(Y,qe)|0,v=v+Math.imul(ie,Me)|0,L=L+Math.imul(ie,qe)|0,E=E+Math.imul(H,at)|0,v=v+Math.imul(H,it)|0,v=v+Math.imul($,at)|0,L=L+Math.imul($,it)|0;var Mt=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,E=Math.imul(W,Oe),v=Math.imul(W,Ie),v=v+Math.imul(ce,Oe)|0,L=Math.imul(ce,Ie),E=E+Math.imul(ke,rt)|0,v=v+Math.imul(ke,et)|0,v=v+Math.imul(re,rt)|0,L=L+Math.imul(re,et)|0,E=E+Math.imul(te,Xe)|0,v=v+Math.imul(te,Ge)|0,v=v+Math.imul(we,Xe)|0,L=L+Math.imul(we,Ge)|0,E=E+Math.imul(Ye,ee)|0,v=v+Math.imul(Ye,ae)|0,v=v+Math.imul(ge,ee)|0,L=L+Math.imul(ge,ae)|0,E=E+Math.imul(Ae,z)|0,v=v+Math.imul(Ae,de)|0,v=v+Math.imul(xe,z)|0,L=L+Math.imul(xe,de)|0,E=E+Math.imul(me,Me)|0,v=v+Math.imul(me,qe)|0,v=v+Math.imul(le,Me)|0,L=L+Math.imul(le,qe)|0,E=E+Math.imul(Y,at)|0,v=v+Math.imul(Y,it)|0,v=v+Math.imul(ie,at)|0,L=L+Math.imul(ie,it)|0;var Ft=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,E=Math.imul(W,rt),v=Math.imul(W,et),v=v+Math.imul(ce,rt)|0,L=Math.imul(ce,et),E=E+Math.imul(ke,Xe)|0,v=v+Math.imul(ke,Ge)|0,v=v+Math.imul(re,Xe)|0,L=L+Math.imul(re,Ge)|0,E=E+Math.imul(te,ee)|0,v=v+Math.imul(te,ae)|0,v=v+Math.imul(we,ee)|0,L=L+Math.imul(we,ae)|0,E=E+Math.imul(Ye,z)|0,v=v+Math.imul(Ye,de)|0,v=v+Math.imul(ge,z)|0,L=L+Math.imul(ge,de)|0,E=E+Math.imul(Ae,Me)|0,v=v+Math.imul(Ae,qe)|0,v=v+Math.imul(xe,Me)|0,L=L+Math.imul(xe,qe)|0,E=E+Math.imul(me,at)|0,v=v+Math.imul(me,it)|0,v=v+Math.imul(le,at)|0,L=L+Math.imul(le,it)|0;var jt=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(jt>>>26)|0,jt&=67108863,E=Math.imul(W,Xe),v=Math.imul(W,Ge),v=v+Math.imul(ce,Xe)|0,L=Math.imul(ce,Ge),E=E+Math.imul(ke,ee)|0,v=v+Math.imul(ke,ae)|0,v=v+Math.imul(re,ee)|0,L=L+Math.imul(re,ae)|0,E=E+Math.imul(te,z)|0,v=v+Math.imul(te,de)|0,v=v+Math.imul(we,z)|0,L=L+Math.imul(we,de)|0,E=E+Math.imul(Ye,Me)|0,v=v+Math.imul(Ye,qe)|0,v=v+Math.imul(ge,Me)|0,L=L+Math.imul(ge,qe)|0,E=E+Math.imul(Ae,at)|0,v=v+Math.imul(Ae,it)|0,v=v+Math.imul(xe,at)|0,L=L+Math.imul(xe,it)|0;var Ot=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,E=Math.imul(W,ee),v=Math.imul(W,ae),v=v+Math.imul(ce,ee)|0,L=Math.imul(ce,ae),E=E+Math.imul(ke,z)|0,v=v+Math.imul(ke,de)|0,v=v+Math.imul(re,z)|0,L=L+Math.imul(re,de)|0,E=E+Math.imul(te,Me)|0,v=v+Math.imul(te,qe)|0,v=v+Math.imul(we,Me)|0,L=L+Math.imul(we,qe)|0,E=E+Math.imul(Ye,at)|0,v=v+Math.imul(Ye,it)|0,v=v+Math.imul(ge,at)|0,L=L+Math.imul(ge,it)|0;var Qe=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,E=Math.imul(W,z),v=Math.imul(W,de),v=v+Math.imul(ce,z)|0,L=Math.imul(ce,de),E=E+Math.imul(ke,Me)|0,v=v+Math.imul(ke,qe)|0,v=v+Math.imul(re,Me)|0,L=L+Math.imul(re,qe)|0,E=E+Math.imul(te,at)|0,v=v+Math.imul(te,it)|0,v=v+Math.imul(we,at)|0,L=L+Math.imul(we,it)|0;var tt=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(tt>>>26)|0,tt&=67108863,E=Math.imul(W,Me),v=Math.imul(W,qe),v=v+Math.imul(ce,Me)|0,L=Math.imul(ce,qe),E=E+Math.imul(ke,at)|0,v=v+Math.imul(ke,it)|0,v=v+Math.imul(re,at)|0,L=L+Math.imul(re,it)|0;var yt=(C+E|0)+((v&8191)<<13)|0;C=(L+(v>>>13)|0)+(yt>>>26)|0,yt&=67108863,E=Math.imul(W,at),v=Math.imul(W,it),v=v+Math.imul(ce,at)|0,L=Math.imul(ce,it);var ft=(C+E|0)+((v&8191)<<13)|0;return C=(L+(v>>>13)|0)+(ft>>>26)|0,ft&=67108863,k[0]=Yt,k[1]=At,k[2]=Tt,k[3]=It,k[4]=zt,k[5]=Et,k[6]=Dt,k[7]=Ut,k[8]=Ht,k[9]=$t,k[10]=Vt,k[11]=Mt,k[12]=Ft,k[13]=jt,k[14]=Ot,k[15]=Qe,k[16]=tt,k[17]=yt,k[18]=ft,C!==0&&(k[19]=C,w.length++),w};Math.imul||(D=x);function O(T,f,h){h.negative=f.negative^T.negative,h.length=T.length+f.length;for(var w=0,_=0,R=0;R<h.length-1;R++){var k=_;_=0;for(var C=w&67108863,E=Math.min(R,f.length-1),v=Math.max(0,R-T.length+1);v<=E;v++){var L=R-v,ne=T.words[L]|0,F=f.words[v]|0,J=ne*F,se=J&67108863;k=k+(J/67108864|0)|0,se=se+C|0,C=se&67108863,k=k+(se>>>26)|0,_+=k>>>26,k&=67108863}h.words[R]=C,w=k,k=_}return w!==0?h.words[R]=w:h.length--,h._strip()}function M(T,f,h){return O(T,f,h)}o.prototype.mulTo=function(f,h){var w,_=this.length+f.length;return this.length===10&&f.length===10?w=D(this,f,h):_<63?w=x(this,f,h):_<1024?w=O(this,f,h):w=M(this,f,h),w},o.prototype.mul=function(f){var h=new o(null);return h.words=new Array(this.length+f.length),this.mulTo(f,h)},o.prototype.mulf=function(f){var h=new o(null);return h.words=new Array(this.length+f.length),M(this,f,h)},o.prototype.imul=function(f){return this.clone().mulTo(f,this)},o.prototype.imuln=function(f){var h=f<0;h&&(f=-f),r(typeof f=="number"),r(f<67108864);for(var w=0,_=0;_<this.length;_++){var R=(this.words[_]|0)*f,k=(R&67108863)+(w&67108863);w>>=26,w+=R/67108864|0,w+=k>>>26,this.words[_]=k&67108863}return w!==0&&(this.words[_]=w,this.length++),h?this.ineg():this},o.prototype.muln=function(f){return this.clone().imuln(f)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(f){var h=A(f);if(h.length===0)return new o(1);for(var w=this,_=0;_<h.length&&h[_]===0;_++,w=w.sqr());if(++_<h.length)for(var R=w.sqr();_<h.length;_++,R=R.sqr())h[_]!==0&&(w=w.mul(R));return w},o.prototype.iushln=function(f){r(typeof f=="number"&&f>=0);var h=f%26,w=(f-h)/26,_=67108863>>>26-h<<26-h,R;if(h!==0){var k=0;for(R=0;R<this.length;R++){var C=this.words[R]&_,E=(this.words[R]|0)-C<<h;this.words[R]=E|k,k=C>>>26-h}k&&(this.words[R]=k,this.length++)}if(w!==0){for(R=this.length-1;R>=0;R--)this.words[R+w]=this.words[R];for(R=0;R<w;R++)this.words[R]=0;this.length+=w}return this._strip()},o.prototype.ishln=function(f){return r(this.negative===0),this.iushln(f)},o.prototype.iushrn=function(f,h,w){r(typeof f=="number"&&f>=0);var _;h?_=(h-h%26)/26:_=0;var R=f%26,k=Math.min((f-R)/26,this.length),C=67108863^67108863>>>R<<R,E=w;if(_-=k,_=Math.max(0,_),E){for(var v=0;v<k;v++)E.words[v]=this.words[v];E.length=k}if(k!==0)if(this.length>k)for(this.length-=k,v=0;v<this.length;v++)this.words[v]=this.words[v+k];else this.words[0]=0,this.length=1;var L=0;for(v=this.length-1;v>=0&&(L!==0||v>=_);v--){var ne=this.words[v]|0;this.words[v]=L<<26-R|ne>>>R,L=ne&C}return E&&L!==0&&(E.words[E.length++]=L),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(f,h,w){return r(this.negative===0),this.iushrn(f,h,w)},o.prototype.shln=function(f){return this.clone().ishln(f)},o.prototype.ushln=function(f){return this.clone().iushln(f)},o.prototype.shrn=function(f){return this.clone().ishrn(f)},o.prototype.ushrn=function(f){return this.clone().iushrn(f)},o.prototype.testn=function(f){r(typeof f=="number"&&f>=0);var h=f%26,w=(f-h)/26,_=1<<h;if(this.length<=w)return!1;var R=this.words[w];return!!(R&_)},o.prototype.imaskn=function(f){r(typeof f=="number"&&f>=0);var h=f%26,w=(f-h)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(h!==0&&w++,this.length=Math.min(w,this.length),h!==0){var _=67108863^67108863>>>h<<h;this.words[this.length-1]&=_}return this._strip()},o.prototype.maskn=function(f){return this.clone().imaskn(f)},o.prototype.iaddn=function(f){return r(typeof f=="number"),r(f<67108864),f<0?this.isubn(-f):this.negative!==0?this.length===1&&(this.words[0]|0)<=f?(this.words[0]=f-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(f),this.negative=1,this):this._iaddn(f)},o.prototype._iaddn=function(f){this.words[0]+=f;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},o.prototype.isubn=function(f){if(r(typeof f=="number"),r(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this._strip()},o.prototype.addn=function(f){return this.clone().iaddn(f)},o.prototype.subn=function(f){return this.clone().isubn(f)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(f,h,w){var _=f.length+w,R;this._expand(_);var k,C=0;for(R=0;R<f.length;R++){k=(this.words[R+w]|0)+C;var E=(f.words[R]|0)*h;k-=E&67108863,C=(k>>26)-(E/67108864|0),this.words[R+w]=k&67108863}for(;R<this.length-w;R++)k=(this.words[R+w]|0)+C,C=k>>26,this.words[R+w]=k&67108863;if(C===0)return this._strip();for(r(C===-1),C=0,R=0;R<this.length;R++)k=-(this.words[R]|0)+C,C=k>>26,this.words[R]=k&67108863;return this.negative=1,this._strip()},o.prototype._wordDiv=function(f,h){var w=this.length-f.length,_=this.clone(),R=f,k=R.words[R.length-1]|0,C=this._countBits(k);w=26-C,w!==0&&(R=R.ushln(w),_.iushln(w),k=R.words[R.length-1]|0);var E=_.length-R.length,v;if(h!=="mod"){v=new o(null),v.length=E+1,v.words=new Array(v.length);for(var L=0;L<v.length;L++)v.words[L]=0}var ne=_.clone()._ishlnsubmul(R,1,E);ne.negative===0&&(_=ne,v&&(v.words[E]=1));for(var F=E-1;F>=0;F--){var J=(_.words[R.length+F]|0)*67108864+(_.words[R.length+F-1]|0);for(J=Math.min(J/k|0,67108863),_._ishlnsubmul(R,J,F);_.negative!==0;)J--,_.negative=0,_._ishlnsubmul(R,1,F),_.isZero()||(_.negative^=1);v&&(v.words[F]=J)}return v&&v._strip(),_._strip(),h!=="div"&&w!==0&&_.iushrn(w),{div:v||null,mod:_}},o.prototype.divmod=function(f,h,w){if(r(!f.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var _,R,k;return this.negative!==0&&f.negative===0?(k=this.neg().divmod(f,h),h!=="mod"&&(_=k.div.neg()),h!=="div"&&(R=k.mod.neg(),w&&R.negative!==0&&R.iadd(f)),{div:_,mod:R}):this.negative===0&&f.negative!==0?(k=this.divmod(f.neg(),h),h!=="mod"&&(_=k.div.neg()),{div:_,mod:k.mod}):this.negative&f.negative?(k=this.neg().divmod(f.neg(),h),h!=="div"&&(R=k.mod.neg(),w&&R.negative!==0&&R.isub(f)),{div:k.div,mod:R}):f.length>this.length||this.cmp(f)<0?{div:new o(0),mod:this}:f.length===1?h==="div"?{div:this.divn(f.words[0]),mod:null}:h==="mod"?{div:null,mod:new o(this.modrn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new o(this.modrn(f.words[0]))}:this._wordDiv(f,h)},o.prototype.div=function(f){return this.divmod(f,"div",!1).div},o.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},o.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},o.prototype.divRound=function(f){var h=this.divmod(f);if(h.mod.isZero())return h.div;var w=h.div.negative!==0?h.mod.isub(f):h.mod,_=f.ushrn(1),R=f.andln(1),k=w.cmp(_);return k<0||R===1&&k===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},o.prototype.modrn=function(f){var h=f<0;h&&(f=-f),r(f<=67108863);for(var w=(1<<26)%f,_=0,R=this.length-1;R>=0;R--)_=(w*_+(this.words[R]|0))%f;return h?-_:_},o.prototype.modn=function(f){return this.modrn(f)},o.prototype.idivn=function(f){var h=f<0;h&&(f=-f),r(f<=67108863);for(var w=0,_=this.length-1;_>=0;_--){var R=(this.words[_]|0)+w*67108864;this.words[_]=R/f|0,w=R%f}return this._strip(),h?this.ineg():this},o.prototype.divn=function(f){return this.clone().idivn(f)},o.prototype.egcd=function(f){r(f.negative===0),r(!f.isZero());var h=this,w=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var _=new o(1),R=new o(0),k=new o(0),C=new o(1),E=0;h.isEven()&&w.isEven();)h.iushrn(1),w.iushrn(1),++E;for(var v=w.clone(),L=h.clone();!h.isZero();){for(var ne=0,F=1;!(h.words[0]&F)&&ne<26;++ne,F<<=1);if(ne>0)for(h.iushrn(ne);ne-- >0;)(_.isOdd()||R.isOdd())&&(_.iadd(v),R.isub(L)),_.iushrn(1),R.iushrn(1);for(var J=0,se=1;!(w.words[0]&se)&&J<26;++J,se<<=1);if(J>0)for(w.iushrn(J);J-- >0;)(k.isOdd()||C.isOdd())&&(k.iadd(v),C.isub(L)),k.iushrn(1),C.iushrn(1);h.cmp(w)>=0?(h.isub(w),_.isub(k),R.isub(C)):(w.isub(h),k.isub(_),C.isub(R))}return{a:k,b:C,gcd:w.iushln(E)}},o.prototype._invmp=function(f){r(f.negative===0),r(!f.isZero());var h=this,w=f.clone();h.negative!==0?h=h.umod(f):h=h.clone();for(var _=new o(1),R=new o(0),k=w.clone();h.cmpn(1)>0&&w.cmpn(1)>0;){for(var C=0,E=1;!(h.words[0]&E)&&C<26;++C,E<<=1);if(C>0)for(h.iushrn(C);C-- >0;)_.isOdd()&&_.iadd(k),_.iushrn(1);for(var v=0,L=1;!(w.words[0]&L)&&v<26;++v,L<<=1);if(v>0)for(w.iushrn(v);v-- >0;)R.isOdd()&&R.iadd(k),R.iushrn(1);h.cmp(w)>=0?(h.isub(w),_.isub(R)):(w.isub(h),R.isub(_))}var ne;return h.cmpn(1)===0?ne=_:ne=R,ne.cmpn(0)<0&&ne.iadd(f),ne},o.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var h=this.clone(),w=f.clone();h.negative=0,w.negative=0;for(var _=0;h.isEven()&&w.isEven();_++)h.iushrn(1),w.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;w.isEven();)w.iushrn(1);var R=h.cmp(w);if(R<0){var k=h;h=w,w=k}else if(R===0||w.cmpn(1)===0)break;h.isub(w)}while(!0);return w.iushln(_)},o.prototype.invm=function(f){return this.egcd(f).a.umod(f)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(f){return this.words[0]&f},o.prototype.bincn=function(f){r(typeof f=="number");var h=f%26,w=(f-h)/26,_=1<<h;if(this.length<=w)return this._expand(w+1),this.words[w]|=_,this;for(var R=_,k=w;R!==0&&k<this.length;k++){var C=this.words[k]|0;C+=R,R=C>>>26,C&=67108863,this.words[k]=C}return R!==0&&(this.words[k]=R,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(f){var h=f<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this._strip();var w;if(this.length>1)w=1;else{h&&(f=-f),r(f<=67108863,"Number is too big");var _=this.words[0]|0;w=_===f?0:_<f?-1:1}return this.negative!==0?-w|0:w},o.prototype.cmp=function(f){if(this.negative!==0&&f.negative===0)return-1;if(this.negative===0&&f.negative!==0)return 1;var h=this.ucmp(f);return this.negative!==0?-h|0:h},o.prototype.ucmp=function(f){if(this.length>f.length)return 1;if(this.length<f.length)return-1;for(var h=0,w=this.length-1;w>=0;w--){var _=this.words[w]|0,R=f.words[w]|0;if(_!==R){_<R?h=-1:_>R&&(h=1);break}}return h},o.prototype.gtn=function(f){return this.cmpn(f)===1},o.prototype.gt=function(f){return this.cmp(f)===1},o.prototype.gten=function(f){return this.cmpn(f)>=0},o.prototype.gte=function(f){return this.cmp(f)>=0},o.prototype.ltn=function(f){return this.cmpn(f)===-1},o.prototype.lt=function(f){return this.cmp(f)===-1},o.prototype.lten=function(f){return this.cmpn(f)<=0},o.prototype.lte=function(f){return this.cmp(f)<=0},o.prototype.eqn=function(f){return this.cmpn(f)===0},o.prototype.eq=function(f){return this.cmp(f)===0},o.red=function(f){return new G(f)},o.prototype.toRed=function(f){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(f){return this.red=f,this},o.prototype.forceRed=function(f){return r(!this.red,"Already a number in reduction context"),this._forceRed(f)},o.prototype.redAdd=function(f){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},o.prototype.redIAdd=function(f){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},o.prototype.redSub=function(f){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},o.prototype.redISub=function(f){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},o.prototype.redShl=function(f){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},o.prototype.redMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},o.prototype.redIMul=function(f){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(f){return r(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var q={k256:null,p224:null,p192:null,p25519:null};function B(T,f){this.name=T,this.p=new o(f,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}B.prototype._tmp=function(){var f=new o(null);return f.words=new Array(Math.ceil(this.n/13)),f},B.prototype.ireduce=function(f){var h=f,w;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),w=h.bitLength();while(w>this.n);var _=w<this.n?-1:h.ucmp(this.p);return _===0?(h.words[0]=0,h.length=1):_>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},B.prototype.split=function(f,h){f.iushrn(this.n,0,h)},B.prototype.imulK=function(f){return f.imul(this.k)};function j(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(j,B),j.prototype.split=function(f,h){for(var w=4194303,_=Math.min(f.length,9),R=0;R<_;R++)h.words[R]=f.words[R];if(h.length=_,f.length<=9){f.words[0]=0,f.length=1;return}var k=f.words[9];for(h.words[h.length++]=k&w,R=10;R<f.length;R++){var C=f.words[R]|0;f.words[R-10]=(C&w)<<4|k>>>22,k=C}k>>>=22,f.words[R-10]=k,k===0&&f.length>10?f.length-=10:f.length-=9},j.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var h=0,w=0;w<f.length;w++){var _=f.words[w]|0;h+=_*977,f.words[w]=h&67108863,h=_*64+(h/67108864|0)}return f.words[f.length-1]===0&&(f.length--,f.words[f.length-1]===0&&f.length--),f};function K(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}i(K,B);function oe(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}i(oe,B);function ue(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}i(ue,B),ue.prototype.imulK=function(f){for(var h=0,w=0;w<f.length;w++){var _=(f.words[w]|0)*19+h,R=_&67108863;_>>>=26,f.words[w]=R,h=_}return h!==0&&(f.words[f.length++]=h),f},o._prime=function(f){if(q[f])return q[f];var h;if(f==="k256")h=new j;else if(f==="p224")h=new K;else if(f==="p192")h=new oe;else if(f==="p25519")h=new ue;else throw new Error("Unknown prime "+f);return q[f]=h,h};function G(T){if(typeof T=="string"){var f=o._prime(T);this.m=f.p,this.prime=f}else r(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}G.prototype._verify1=function(f){r(f.negative===0,"red works only with positives"),r(f.red,"red works only with red numbers")},G.prototype._verify2=function(f,h){r((f.negative|h.negative)===0,"red works only with positives"),r(f.red&&f.red===h.red,"red works only with red numbers")},G.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):(u(f,f.umod(this.m)._forceRed(this)),f)},G.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},G.prototype.add=function(f,h){this._verify2(f,h);var w=f.add(h);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},G.prototype.iadd=function(f,h){this._verify2(f,h);var w=f.iadd(h);return w.cmp(this.m)>=0&&w.isub(this.m),w},G.prototype.sub=function(f,h){this._verify2(f,h);var w=f.sub(h);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},G.prototype.isub=function(f,h){this._verify2(f,h);var w=f.isub(h);return w.cmpn(0)<0&&w.iadd(this.m),w},G.prototype.shl=function(f,h){return this._verify1(f),this.imod(f.ushln(h))},G.prototype.imul=function(f,h){return this._verify2(f,h),this.imod(f.imul(h))},G.prototype.mul=function(f,h){return this._verify2(f,h),this.imod(f.mul(h))},G.prototype.isqr=function(f){return this.imul(f,f.clone())},G.prototype.sqr=function(f){return this.mul(f,f)},G.prototype.sqrt=function(f){if(f.isZero())return f.clone();var h=this.m.andln(3);if(r(h%2===1),h===3){var w=this.m.add(new o(1)).iushrn(2);return this.pow(f,w)}for(var _=this.m.subn(1),R=0;!_.isZero()&&_.andln(1)===0;)R++,_.iushrn(1);r(!_.isZero());var k=new o(1).toRed(this),C=k.redNeg(),E=this.m.subn(1).iushrn(1),v=this.m.bitLength();for(v=new o(2*v*v).toRed(this);this.pow(v,E).cmp(C)!==0;)v.redIAdd(C);for(var L=this.pow(v,_),ne=this.pow(f,_.addn(1).iushrn(1)),F=this.pow(f,_),J=R;F.cmp(k)!==0;){for(var se=F,pe=0;se.cmp(k)!==0;pe++)se=se.redSqr();r(pe<J);var be=this.pow(L,new o(1).iushln(J-pe-1));ne=ne.redMul(be),L=be.redSqr(),F=F.redMul(L),J=pe}return ne},G.prototype.invm=function(f){var h=f._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},G.prototype.pow=function(f,h){if(h.isZero())return new o(1).toRed(this);if(h.cmpn(1)===0)return f.clone();var w=4,_=new Array(1<<w);_[0]=new o(1).toRed(this),_[1]=f;for(var R=2;R<_.length;R++)_[R]=this.mul(_[R-1],f);var k=_[0],C=0,E=0,v=h.bitLength()%26;for(v===0&&(v=26),R=h.length-1;R>=0;R--){for(var L=h.words[R],ne=v-1;ne>=0;ne--){var F=L>>ne&1;if(k!==_[0]&&(k=this.sqr(k)),F===0&&C===0){E=0;continue}C<<=1,C|=F,E++,!(E!==w&&(R!==0||ne!==0))&&(k=this.mul(k,_[C]),E=0,C=0)}v=26}return k},G.prototype.convertTo=function(f){var h=f.umod(this.m);return h===f?h.clone():h},G.prototype.convertFrom=function(f){var h=f.clone();return h.red=null,h},o.mont=function(f){return new P(f)};function P(T){G.call(this,T),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(P,G),P.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},P.prototype.convertFrom=function(f){var h=this.imod(f.mul(this.rinv));return h.red=null,h},P.prototype.imul=function(f,h){if(f.isZero()||h.isZero())return f.words[0]=0,f.length=1,f;var w=f.imul(h),_=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=w.isub(_).iushrn(this.shift),k=R;return R.cmp(this.m)>=0?k=R.isub(this.m):R.cmpn(0)<0&&(k=R.iadd(this.m)),k._forceRed(this)},P.prototype.mul=function(f,h){if(f.isZero()||h.isZero())return new o(0)._forceRed(this);var w=f.mul(h),_=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=w.isub(_).iushrn(this.shift),k=R;return R.cmp(this.m)>=0?k=R.isub(this.m):R.cmpn(0)<0&&(k=R.iadd(this.m)),k._forceRed(this)},P.prototype.invm=function(f){var h=this.imod(f._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(e,ht)})(uL);var $lt=uL.exports,xoe={};/*! https://mths.be/utf8js v3.0.0 by @mathias */(function(e){(function(t){var n=String.fromCharCode;function r(b){for(var A=[],x=0,D=b.length,O,M;x<D;)O=b.charCodeAt(x++),O>=55296&&O<=56319&&x<D?(M=b.charCodeAt(x++),(M&64512)==56320?A.push(((O&1023)<<10)+(M&1023)+65536):(A.push(O),x--)):A.push(O);return A}function i(b){for(var A=b.length,x=-1,D,O="";++x<A;)D=b[x],D>65535&&(D-=65536,O+=n(D>>>10&1023|55296),D=56320|D&1023),O+=n(D);return O}function o(b){if(b>=55296&&b<=57343)throw Error("Lone surrogate U+"+b.toString(16).toUpperCase()+" is not a scalar value")}function a(b,A){return n(b>>A&63|128)}function s(b){if(!(b&4294967168))return n(b);var A="";return b&4294965248?b&4294901760?b&4292870144||(A=n(b>>18&7|240),A+=a(b,12),A+=a(b,6)):(o(b),A=n(b>>12&15|224),A+=a(b,6)):A=n(b>>6&31|192),A+=n(b&63|128),A}function l(b){for(var A=r(b),x=A.length,D=-1,O,M="";++D<x;)O=A[D],M+=s(O);return M}function c(){if(g>=p)throw Error("Invalid byte index");var b=d[g]&255;if(g++,(b&192)==128)return b&63;throw Error("Invalid continuation byte")}function u(){var b,A,x,D,O;if(g>p)throw Error("Invalid byte index");if(g==p)return!1;if(b=d[g]&255,g++,!(b&128))return b;if((b&224)==192){if(A=c(),O=(b&31)<<6|A,O>=128)return O;throw Error("Invalid continuation byte")}if((b&240)==224){if(A=c(),x=c(),O=(b&15)<<12|A<<6|x,O>=2048)return o(O),O;throw Error("Invalid continuation byte")}if((b&248)==240&&(A=c(),x=c(),D=c(),O=(b&7)<<18|A<<12|x<<6|D,O>=65536&&O<=1114111))return O;throw Error("Invalid UTF-8 detected")}var d,p,g;function y(b){d=r(b),p=d.length,g=0;for(var A=[],x;(x=u())!==!1;)A.push(x);return i(A)}t.version="3.0.0",t.encode=l,t.decode=y})(e)})(xoe);(function(e){var t=ht&&ht.__createBinding||(Object.create?function(le,ve,Ae,xe){xe===void 0&&(xe=Ae);var He=Object.getOwnPropertyDescriptor(ve,Ae);(!He||("get"in He?!ve.__esModule:He.writable||He.configurable))&&(He={enumerable:!0,get:function(){return ve[Ae]}}),Object.defineProperty(le,xe,He)}:function(le,ve,Ae,xe){xe===void 0&&(xe=Ae),le[xe]=ve[Ae]}),n=ht&&ht.__setModuleDefault||(Object.create?function(le,ve){Object.defineProperty(le,"default",{enumerable:!0,value:ve})}:function(le,ve){le.default=ve}),r=ht&&ht.__importStar||function(le){if(le&&le.__esModule)return le;var ve={};if(le!=null)for(var Ae in le)Ae!=="default"&&Object.prototype.hasOwnProperty.call(le,Ae)&&t(ve,le,Ae);return n(ve,le),ve},i=ht&&ht.__importDefault||function(le){return le&&le.__esModule?le:{default:le}};Object.defineProperty(e,"__esModule",{value:!0}),e.formatTxType=e.isSameDid=e.toDid=e.toAddress=e.fromBase64=e.toBase64=e.fromBase58=e.toBase58=e.toBuffer=e.toUint8Array=e.isUUID=e.UUID=e.isUint8Array=e.fromTokenToUnit=e.fromUnitToToken=e.numberToString=e.toHex=e.hexToBytes=e.bytesToHex=e.numberToHex=e.hexToNumber=e.hexToUtf8=e.utf8ToHex=e.toBN=e.isHex=e.isHexStrict=e.isBigNumber=e.isBN=e.stripHexPrefix=e.isHexPrefixed=e.numberToBN=e.rightPad=e.leftPad=e.BN=e.isBase58btc=void 0;const o=i(est),a=i(Tne),s=i(ost),l=i(io),c=i(lL),u=i(boe),d=i(Tee),p=i(Plt);e.rightPad=p.default;const g=i(sX);e.leftPad=g.default;const y=i(lX),b=i(Mlt),A=i($lt);e.BN=A.default;const x=r(xoe),D="did:abt:",O=new A.default(0),M=new A.default(-1),q={encode:le=>`z${y.default.encode(le)}`,decode:le=>y.default.decode(le.slice(1))},B=le=>{if(typeof le!="string")return!1;if(le[0]==="z")try{return q.decode(le),!0}catch{return!1}return!1};e.isBase58btc=B;const j=le=>{if(typeof le=="string"||typeof le=="number"){let ve=new A.default(1);const Ae=String(le).toLowerCase().trim(),xe=Ae.substr(0,2)==="0x"||Ae.substr(0,3)==="-0x";let He=(0,e.stripHexPrefix)(Ae);if(He.substr(0,1)==="-"&&(He=(0,e.stripHexPrefix)(He.slice(1)),ve=new A.default(-1,10)),He=He===""?"0":He,!He.match(/^-?[0-9]+$/)&&He.match(/^[0-9A-Fa-f]+$/)||He.match(/^[a-fA-F]+$/)||xe===!0&&He.match(/^[0-9A-Fa-f]+$/))return new A.default(He,16).mul(ve);if((He.match(/^-?[0-9]+$/)||He==="")&&xe===!1)return new A.default(He,10).mul(ve)}if((0,e.isBN)(le))return new A.default(le.toString(10),10);throw new Error(`[number-to-bn] while converting number ${JSON.stringify(le)} to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.`)};e.numberToBN=j;const K=le=>{if(typeof le!="string")throw new Error("[is-hex-prefixed] value must be type string");return le.slice(0,2).toLowerCase()==="0x"};e.isHexPrefixed=K;const oe=le=>typeof le=="string"&&(0,e.isHexPrefixed)(le)?le.slice(2):le;e.stripHexPrefix=oe;const ue=le=>le instanceof A.default||le&&le.constructor&&le.constructor.name==="BN";e.isBN=ue;const G=le=>le&&le.constructor&&le.constructor.name==="BigNumber";e.isBigNumber=G;const P=le=>((0,a.default)(le)||(0,s.default)(le))&&/^(-)?0x[0-9a-f]*$/i.test(le);e.isHexStrict=P;const T=le=>((0,a.default)(le)||(0,s.default)(le))&&/^(-0x|0x|0X|-0X)?[0-9a-f]*$/i.test(le);e.isHex=T;const f=(le,ve=10)=>{try{if(typeof le=="number"&&le>0){const Ae=Number(le).toLocaleString("fullwide",{useGrouping:!1});return new A.default(Ae,ve)}return(0,e.numberToBN)(le)}catch(Ae){throw new Error(`${Ae} Given value: "${le}"`)}};e.toBN=f;const h=le=>{le=x.encode(le);let ve="";le=le.replace(/^(?:\u0000)*/,""),le=le.split("").reverse().join(""),le=le.replace(/^(?:\u0000)*/,""),le=le.split("").reverse().join("");for(let Ae=0;Ae<le.length;Ae++){const He=le.charCodeAt(Ae).toString(16);ve+=He.length<2?`0${He}`:He}return`0x${ve}`};e.utf8ToHex=h;const w=le=>{if(!(0,e.isHexStrict)(le))throw new Error(`The parameter "${le}" must be a valid HEX string.`);let ve="",Ae=0;le=le.replace(/^0x/i,""),le=le.replace(/^(?:00)*/,""),le=le.split("").reverse().join(""),le=le.replace(/^(?:00)*/,""),le=le.split("").reverse().join("");const xe=le.length;for(let He=0;He<xe;He+=2)Ae=parseInt(le.substr(He,2),16),ve+=String.fromCharCode(Ae);return x.decode(ve)};e.hexToUtf8=w;const _=le=>le?(0,e.toBN)(le).toNumber():0;e.hexToNumber=_;const R=le=>{if((0,d.default)(le)||typeof le>"u")return le;if(!isFinite(le)&&!(0,e.isHex)(le))throw new Error(`Given input "${le}" is not a number.`);const ve=(0,e.toBN)(le),Ae=ve.toString(16);return ve.lt(new A.default(0))?`-0x${Ae.substr(1)}`:`0x${Ae}`};e.numberToHex=R;const k=le=>{const ve=[];for(let Ae=0;Ae<le.length;Ae++)ve.push((le[Ae]>>>4).toString(16)),ve.push((le[Ae]&15).toString(16));return`0x${ve.join("")}`};e.bytesToHex=k;const C=le=>{if(le=le.toString(16),!(0,e.isHex)(le))throw new Error(`Given value "${le}" is not a valid hex string.`);le=le.replace(/^0x/i,""),le=le.length%2?`0${le}`:le;const ve=[];for(let Ae=0;Ae<le.length;Ae+=2)ve.push(parseInt(le.substr(Ae,2),16));return ve};e.hexToBytes=C;const E=(le,ve=!1)=>F(le)||Qt.isBuffer(le)?ve?"bytes":(0,e.bytesToHex)(le):(0,e.isBase58btc)(le)?ve?"bytes":(0,e.bytesToHex)(q.decode(le)):(0,o.default)(le)?ve?"bool":le?"0x01":"0x00":(0,l.default)(le)&&!(0,e.isBigNumber)(le)&&!(0,e.isBN)(le)?ve?"string":(0,e.utf8ToHex)(JSON.stringify(le)):typeof le=="string"?le.indexOf("-0x")===0||le.indexOf("-0X")===0?ve?"int256":(0,e.numberToHex)(le):le.indexOf("0x")===0||le.indexOf("0X")===0?ve?"bytes":le:ve?"string":(0,e.utf8ToHex)(le):ve?le<0?"int256":"uint256":(0,e.numberToHex)(le);e.toHex=E;const v=le=>{if(typeof le=="string"){if(!le.match(/^-?[0-9.]+$/))throw new Error(`Invalid value '${le}' while converting to string, should be a number matching (^-?[0-9.]+).`);return le}if(typeof le=="number")return Number.isInteger(le)&&le>0?Number(le).toLocaleString("fullwide",{useGrouping:!1}):String(le);if(typeof le=="object"&&le.toString&&(le.toTwos||le.dividedToIntegerBy))return le.toPrecision?String(le.toPrecision()):le.toString(10);throw new Error(`while converting number to string, invalid number value '${le}' type ${typeof le}.`)};e.numberToString=v;const L=(le,ve=18,Ae={})=>{let xe=(0,e.toBN)(le);const He=xe.lt(O),Ye=(0,e.toBN)(`1${"0".repeat(ve)}`,10),ge=Ye.toString(10).length-1||1,Pe=Ae||{};He&&(xe=xe.mul(M));let te=xe.mod(Ye).toString(10);for(;te.length<ge;)te=`0${te}`;Pe.pad||(te=te.match(/^([0-9]*[1-9]|0)(0*)/)[1]);let we=xe.div(Ye).toString(10);Pe.commify&&(we=we.replace(/\B(?=(\d{3})+(?!\d))/g,","));let Be=`${we}${te==="0"?"":`.${te}`}`;return He&&(Be=`-${Be}`),Be};e.fromUnitToToken=L;const ne=(le,ve=18)=>{let Ae=(0,e.numberToString)(le);const xe=(0,e.toBN)(`1${"0".repeat(ve)}`,10),He=xe.toString(10).length-1||1,Ye=Ae.substring(0,1)==="-";if(Ye&&(Ae=Ae.substring(1)),Ae===".")throw new Error(`error converting token ${le} to unit, invalid value`);const ge=Ae.split(".");if(ge.length>2)throw new Error(`error converting token ${le} to unit, too many decimal points`);let Pe=ge[0],te=ge[1];if(Pe||(Pe="0"),te||(te="0"),te.length>He)throw new Error(`error converting token ${le} to unit, too many decimal places`);for(;te.length<He;)te+="0";Pe=new A.default(Pe),te=new A.default(te);let we=Pe.mul(xe).add(te);return Ye&&(we=we.mul(M)),new A.default(we.toString(10),10)};e.fromTokenToUnit=ne;function F(le){return Object.prototype.toString.call(le)==="[object Uint8Array]"}e.isUint8Array=F;function J(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,le=>{const ve=Math.random()*16|0;return(le==="x"?ve:ve&3|8).toString(16)})}e.UUID=J;function se(le){return/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(le)}e.isUUID=se;function pe(le){let ve=null;if([null,void 0,""].includes(le))ve=new Uint8Array;else if(Qt.isBuffer(le))ve=new Uint8Array(le);else if((0,e.isHexStrict)(le))ve=new Uint8Array((0,e.hexToBytes)(le));else if(F(le))ve=new Uint8Array(le);else if((0,e.isBase58btc)(le))ve=new Uint8Array(q.decode(le));else if(typeof le=="string")ve=new Uint8Array((0,e.hexToBytes)((0,e.toHex)(le)));else throw new Error(`Unsupported input type ${typeof le} detected for toBuffer, only Uint8Array/Buffer/Hex/Base58 are supported`);return ve}e.toUint8Array=pe;function be(le){return Qt.from(pe(le))}e.toBuffer=be;function Ee(le){const ve=q.encode(pe(le));return Qt.from(ve).toString("utf-8")}e.toBase58=Ee;function H(le){if((0,e.isBase58btc)(le)===!1)throw new Error("fromBase58 expect strict base58 encoded string as input");return Qt.from(q.decode(le))}e.fromBase58=H;function $(le,ve=!0){const Ae=b.default.encode(be(le));return ve?b.default.escape(Ae):Ae}e.toBase64=$;function Z(le){if(typeof le!="string")throw new Error("fromBase64 requires input to be a string");return Qt.from(b.default.unescape(le),"base64")}e.fromBase64=Z;function Y(le){return le.replace(D,"")}e.toAddress=Y;function ie(le){return`${D}${Y(le)}`}e.toDid=ie;function Te(le,ve){return Y(le)===Y(ve)}e.isSameDid=Te;function me(le){return(0,c.default)((0,u.default)(le))}e.formatTxType=me})(_u);var Soe={},Eu={};Object.defineProperty(Eu,"__esModule",{value:!0});Eu.encode=void 0;const Rm=_u;function Flt(e,t="hex"){return["hex","base16"].includes(t)?(0,Rm.toHex)(e):t==="base58"?(0,Rm.toBase58)(e):t==="base64"?(0,Rm.toBase64)(e):t==="Uint8Array"?(0,Rm.toUint8Array)(e):t==="buffer"?(0,Rm.toBuffer)(e):e}Eu.encode=Flt;var wy={},Coe={exports:{}};(function(e){(function(){var t="input is invalid type",n="finalize already called",r=typeof window=="object",i=r?window:{};i.JS_SHA3_NO_WINDOW&&(r=!1);var o=!r&&typeof self=="object",a=!i.JS_SHA3_NO_NODE_JS&&typeof pn=="object"&&pn.versions&&pn.versions.node;a?i=ht:o&&(i=self);var s=!i.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,l=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),u=[31,7936,2031616,520093696],d=[4,1024,262144,67108864],p=[1,256,65536,16777216],g=[6,1536,393216,100663296],y=[0,8,16,24],b=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],A=[224,256,384,512],x=[128,256],D=["hex","buffer","arrayBuffer","array","digest"],O={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(F){return Object.prototype.toString.call(F)==="[object Array]"}),l&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(F){return typeof F=="object"&&F.buffer&&F.buffer.constructor===ArrayBuffer});for(var M=function(F,J,se){return function(pe){return new v(F,J,F).update(pe)[se]()}},q=function(F,J,se){return function(pe,be){return new v(F,J,be).update(pe)[se]()}},B=function(F,J,se){return function(pe,be,Ee,H){return f["cshake"+F].update(pe,be,Ee,H)[se]()}},j=function(F,J,se){return function(pe,be,Ee,H){return f["kmac"+F].update(pe,be,Ee,H)[se]()}},K=function(F,J,se,pe){for(var be=0;be<D.length;++be){var Ee=D[be];F[Ee]=J(se,pe,Ee)}return F},oe=function(F,J){var se=M(F,J,"hex");return se.create=function(){return new v(F,J,F)},se.update=function(pe){return se.create().update(pe)},K(se,M,F,J)},ue=function(F,J){var se=q(F,J,"hex");return se.create=function(pe){return new v(F,J,pe)},se.update=function(pe,be){return se.create(be).update(pe)},K(se,q,F,J)},G=function(F,J){var se=O[F],pe=B(F,J,"hex");return pe.create=function(be,Ee,H){return!Ee&&!H?f["shake"+F].create(be):new v(F,J,be).bytepad([Ee,H],se)},pe.update=function(be,Ee,H,$){return pe.create(Ee,H,$).update(be)},K(pe,B,F,J)},P=function(F,J){var se=O[F],pe=j(F,J,"hex");return pe.create=function(be,Ee,H){return new L(F,J,Ee).bytepad(["KMAC",H],se).bytepad([be],se)},pe.update=function(be,Ee,H,$){return pe.create(be,H,$).update(Ee)},K(pe,j,F,J)},T=[{name:"keccak",padding:p,bits:A,createMethod:oe},{name:"sha3",padding:g,bits:A,createMethod:oe},{name:"shake",padding:u,bits:x,createMethod:ue},{name:"cshake",padding:d,bits:x,createMethod:G},{name:"kmac",padding:d,bits:x,createMethod:P}],f={},h=[],w=0;w<T.length;++w)for(var _=T[w],R=_.bits,k=0;k<R.length;++k){var C=_.name+"_"+R[k];if(h.push(C),f[C]=_.createMethod(R[k],_.padding),_.name!=="sha3"){var E=_.name+R[k];h.push(E),f[E]=f[C]}}function v(F,J,se){this.blocks=[],this.s=[],this.padding=J,this.outputBits=se,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(F<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=se>>5,this.extraBytes=(se&31)>>3;for(var pe=0;pe<50;++pe)this.s[pe]=0}v.prototype.update=function(F){if(this.finalized)throw new Error(n);var J,se=typeof F;if(se!=="string"){if(se==="object"){if(F===null)throw new Error(t);if(l&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!Array.isArray(F)&&(!l||!ArrayBuffer.isView(F)))throw new Error(t)}else throw new Error(t);J=!0}for(var pe=this.blocks,be=this.byteCount,Ee=F.length,H=this.blockCount,$=0,Z=this.s,Y,ie;$<Ee;){if(this.reset)for(this.reset=!1,pe[0]=this.block,Y=1;Y<H+1;++Y)pe[Y]=0;if(J)for(Y=this.start;$<Ee&&Y<be;++$)pe[Y>>2]|=F[$]<<y[Y++&3];else for(Y=this.start;$<Ee&&Y<be;++$)ie=F.charCodeAt($),ie<128?pe[Y>>2]|=ie<<y[Y++&3]:ie<2048?(pe[Y>>2]|=(192|ie>>6)<<y[Y++&3],pe[Y>>2]|=(128|ie&63)<<y[Y++&3]):ie<55296||ie>=57344?(pe[Y>>2]|=(224|ie>>12)<<y[Y++&3],pe[Y>>2]|=(128|ie>>6&63)<<y[Y++&3],pe[Y>>2]|=(128|ie&63)<<y[Y++&3]):(ie=65536+((ie&1023)<<10|F.charCodeAt(++$)&1023),pe[Y>>2]|=(240|ie>>18)<<y[Y++&3],pe[Y>>2]|=(128|ie>>12&63)<<y[Y++&3],pe[Y>>2]|=(128|ie>>6&63)<<y[Y++&3],pe[Y>>2]|=(128|ie&63)<<y[Y++&3]);if(this.lastByteIndex=Y,Y>=be){for(this.start=Y-be,this.block=pe[H],Y=0;Y<H;++Y)Z[Y]^=pe[Y];ne(Z),this.reset=!0}else this.start=Y}return this},v.prototype.encode=function(F,J){var se=F&255,pe=1,be=[se];for(F=F>>8,se=F&255;se>0;)be.unshift(se),F=F>>8,se=F&255,++pe;return J?be.push(pe):be.unshift(pe),this.update(be),be.length},v.prototype.encodeString=function(F){var J,se=typeof F;if(se!=="string"){if(se==="object"){if(F===null)throw new Error(t);if(l&&F.constructor===ArrayBuffer)F=new Uint8Array(F);else if(!Array.isArray(F)&&(!l||!ArrayBuffer.isView(F)))throw new Error(t)}else throw new Error(t);J=!0}var pe=0,be=F.length;if(J)pe=be;else for(var Ee=0;Ee<F.length;++Ee){var H=F.charCodeAt(Ee);H<128?pe+=1:H<2048?pe+=2:H<55296||H>=57344?pe+=3:(H=65536+((H&1023)<<10|F.charCodeAt(++Ee)&1023),pe+=4)}return pe+=this.encode(pe*8),this.update(F),pe},v.prototype.bytepad=function(F,J){for(var se=this.encode(J),pe=0;pe<F.length;++pe)se+=this.encodeString(F[pe]);var be=J-se%J,Ee=[];return Ee.length=be,this.update(Ee),this},v.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var F=this.blocks,J=this.lastByteIndex,se=this.blockCount,pe=this.s;if(F[J>>2]|=this.padding[J&3],this.lastByteIndex===this.byteCount)for(F[0]=F[se],J=1;J<se+1;++J)F[J]=0;for(F[se-1]|=2147483648,J=0;J<se;++J)pe[J]^=F[J];ne(pe)}},v.prototype.toString=v.prototype.hex=function(){this.finalize();for(var F=this.blockCount,J=this.s,se=this.outputBlocks,pe=this.extraBytes,be=0,Ee=0,H="",$;Ee<se;){for(be=0;be<F&&Ee<se;++be,++Ee)$=J[be],H+=c[$>>4&15]+c[$&15]+c[$>>12&15]+c[$>>8&15]+c[$>>20&15]+c[$>>16&15]+c[$>>28&15]+c[$>>24&15];Ee%F===0&&(ne(J),be=0)}return pe&&($=J[be],H+=c[$>>4&15]+c[$&15],pe>1&&(H+=c[$>>12&15]+c[$>>8&15]),pe>2&&(H+=c[$>>20&15]+c[$>>16&15])),H},v.prototype.arrayBuffer=function(){this.finalize();var F=this.blockCount,J=this.s,se=this.outputBlocks,pe=this.extraBytes,be=0,Ee=0,H=this.outputBits>>3,$;pe?$=new ArrayBuffer(se+1<<2):$=new ArrayBuffer(H);for(var Z=new Uint32Array($);Ee<se;){for(be=0;be<F&&Ee<se;++be,++Ee)Z[Ee]=J[be];Ee%F===0&&ne(J)}return pe&&(Z[be]=J[be],$=$.slice(0,H)),$},v.prototype.buffer=v.prototype.arrayBuffer,v.prototype.digest=v.prototype.array=function(){this.finalize();for(var F=this.blockCount,J=this.s,se=this.outputBlocks,pe=this.extraBytes,be=0,Ee=0,H=[],$,Z;Ee<se;){for(be=0;be<F&&Ee<se;++be,++Ee)$=Ee<<2,Z=J[be],H[$]=Z&255,H[$+1]=Z>>8&255,H[$+2]=Z>>16&255,H[$+3]=Z>>24&255;Ee%F===0&&ne(J)}return pe&&($=Ee<<2,Z=J[be],H[$]=Z&255,pe>1&&(H[$+1]=Z>>8&255),pe>2&&(H[$+2]=Z>>16&255)),H};function L(F,J,se){v.call(this,F,J,se)}L.prototype=new v,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),v.prototype.finalize.call(this)};var ne=function(F){var J,se,pe,be,Ee,H,$,Z,Y,ie,Te,me,le,ve,Ae,xe,He,Ye,ge,Pe,te,we,Be,ke,re,V,W,ce,Re,_e,De,Ve,Fe,je,ot,Ze,Je,Le,Oe,Ie,nt,rt,et,xt,Xe,Ge,Nt,ee,ae,fe,z,de,Ue,Me,qe,lt,at,it,Yt,At,Tt,It,zt;for(pe=0;pe<48;pe+=2)be=F[0]^F[10]^F[20]^F[30]^F[40],Ee=F[1]^F[11]^F[21]^F[31]^F[41],H=F[2]^F[12]^F[22]^F[32]^F[42],$=F[3]^F[13]^F[23]^F[33]^F[43],Z=F[4]^F[14]^F[24]^F[34]^F[44],Y=F[5]^F[15]^F[25]^F[35]^F[45],ie=F[6]^F[16]^F[26]^F[36]^F[46],Te=F[7]^F[17]^F[27]^F[37]^F[47],me=F[8]^F[18]^F[28]^F[38]^F[48],le=F[9]^F[19]^F[29]^F[39]^F[49],J=me^(H<<1|$>>>31),se=le^($<<1|H>>>31),F[0]^=J,F[1]^=se,F[10]^=J,F[11]^=se,F[20]^=J,F[21]^=se,F[30]^=J,F[31]^=se,F[40]^=J,F[41]^=se,J=be^(Z<<1|Y>>>31),se=Ee^(Y<<1|Z>>>31),F[2]^=J,F[3]^=se,F[12]^=J,F[13]^=se,F[22]^=J,F[23]^=se,F[32]^=J,F[33]^=se,F[42]^=J,F[43]^=se,J=H^(ie<<1|Te>>>31),se=$^(Te<<1|ie>>>31),F[4]^=J,F[5]^=se,F[14]^=J,F[15]^=se,F[24]^=J,F[25]^=se,F[34]^=J,F[35]^=se,F[44]^=J,F[45]^=se,J=Z^(me<<1|le>>>31),se=Y^(le<<1|me>>>31),F[6]^=J,F[7]^=se,F[16]^=J,F[17]^=se,F[26]^=J,F[27]^=se,F[36]^=J,F[37]^=se,F[46]^=J,F[47]^=se,J=ie^(be<<1|Ee>>>31),se=Te^(Ee<<1|be>>>31),F[8]^=J,F[9]^=se,F[18]^=J,F[19]^=se,F[28]^=J,F[29]^=se,F[38]^=J,F[39]^=se,F[48]^=J,F[49]^=se,ve=F[0],Ae=F[1],Ge=F[11]<<4|F[10]>>>28,Nt=F[10]<<4|F[11]>>>28,ce=F[20]<<3|F[21]>>>29,Re=F[21]<<3|F[20]>>>29,At=F[31]<<9|F[30]>>>23,Tt=F[30]<<9|F[31]>>>23,rt=F[40]<<18|F[41]>>>14,et=F[41]<<18|F[40]>>>14,je=F[2]<<1|F[3]>>>31,ot=F[3]<<1|F[2]>>>31,xe=F[13]<<12|F[12]>>>20,He=F[12]<<12|F[13]>>>20,ee=F[22]<<10|F[23]>>>22,ae=F[23]<<10|F[22]>>>22,_e=F[33]<<13|F[32]>>>19,De=F[32]<<13|F[33]>>>19,It=F[42]<<2|F[43]>>>30,zt=F[43]<<2|F[42]>>>30,Me=F[5]<<30|F[4]>>>2,qe=F[4]<<30|F[5]>>>2,Ze=F[14]<<6|F[15]>>>26,Je=F[15]<<6|F[14]>>>26,Ye=F[25]<<11|F[24]>>>21,ge=F[24]<<11|F[25]>>>21,fe=F[34]<<15|F[35]>>>17,z=F[35]<<15|F[34]>>>17,Ve=F[45]<<29|F[44]>>>3,Fe=F[44]<<29|F[45]>>>3,ke=F[6]<<28|F[7]>>>4,re=F[7]<<28|F[6]>>>4,lt=F[17]<<23|F[16]>>>9,at=F[16]<<23|F[17]>>>9,Le=F[26]<<25|F[27]>>>7,Oe=F[27]<<25|F[26]>>>7,Pe=F[36]<<21|F[37]>>>11,te=F[37]<<21|F[36]>>>11,de=F[47]<<24|F[46]>>>8,Ue=F[46]<<24|F[47]>>>8,xt=F[8]<<27|F[9]>>>5,Xe=F[9]<<27|F[8]>>>5,V=F[18]<<20|F[19]>>>12,W=F[19]<<20|F[18]>>>12,it=F[29]<<7|F[28]>>>25,Yt=F[28]<<7|F[29]>>>25,Ie=F[38]<<8|F[39]>>>24,nt=F[39]<<8|F[38]>>>24,we=F[48]<<14|F[49]>>>18,Be=F[49]<<14|F[48]>>>18,F[0]=ve^~xe&Ye,F[1]=Ae^~He&ge,F[10]=ke^~V&ce,F[11]=re^~W&Re,F[20]=je^~Ze&Le,F[21]=ot^~Je&Oe,F[30]=xt^~Ge&ee,F[31]=Xe^~Nt&ae,F[40]=Me^~lt&it,F[41]=qe^~at&Yt,F[2]=xe^~Ye&Pe,F[3]=He^~ge&te,F[12]=V^~ce&_e,F[13]=W^~Re&De,F[22]=Ze^~Le&Ie,F[23]=Je^~Oe&nt,F[32]=Ge^~ee&fe,F[33]=Nt^~ae&z,F[42]=lt^~it&At,F[43]=at^~Yt&Tt,F[4]=Ye^~Pe&we,F[5]=ge^~te&Be,F[14]=ce^~_e&Ve,F[15]=Re^~De&Fe,F[24]=Le^~Ie&rt,F[25]=Oe^~nt&et,F[34]=ee^~fe&de,F[35]=ae^~z&Ue,F[44]=it^~At&It,F[45]=Yt^~Tt&zt,F[6]=Pe^~we&ve,F[7]=te^~Be&Ae,F[16]=_e^~Ve&ke,F[17]=De^~Fe&re,F[26]=Ie^~rt&je,F[27]=nt^~et&ot,F[36]=fe^~de&xt,F[37]=z^~Ue&Xe,F[46]=At^~It&Me,F[47]=Tt^~zt&qe,F[8]=we^~ve&xe,F[9]=Be^~Ae&He,F[18]=Ve^~ke&V,F[19]=Fe^~re&W,F[28]=rt^~je&Ze,F[29]=et^~ot&Je,F[38]=de^~xt&Ge,F[39]=Ue^~Xe&Nt,F[48]=It^~Me&lt,F[49]=zt^~qe&at,F[0]^=b[pe],F[1]^=b[pe+1]};if(s)e.exports=f;else for(w=0;w<h.length;++w)i[h[w]]=f[h[w]]})()})(Coe);var Aoe=Coe.exports,Ult=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wy,"__esModule",{value:!0});wy.KeccakHasher=void 0;const jlt=Ult(Aoe),Vlt=_u,qlt=Eu;class _oe{constructor(){[224,256,384,512].forEach(t=>{const n=`hash${t}`,r=o=>jlt.default[`keccak${t}`](o),i=(o,a)=>a===1?r(o):i(r(o),a-1);this[n]=(o,a=1,s="hex")=>{let l=o;try{l=(0,Vlt.toUint8Array)(o)}catch{}const c=i(l,a);return(0,qlt.encode)(`0x${c}`,s)}})}}wy.KeccakHasher=_oe;wy.default=new _oe;var Ty={};Object.defineProperty(Ty,"__esModule",{value:!0});Ty.Sha2Hasher=void 0;const zlt=_u,x2=fy,Hlt=Eu,Wlt={sha224:x2.sha224,sha256:x2.sha256,sha384:x2.sha384,sha512:x2.sha512};class Eoe{constructor(){[224,256,384,512].forEach(t=>{const n=`hash${t}`,r=Wlt[`sha${t}`],i=(o,a)=>{let s=o;try{s=(0,zlt.toUint8Array)(o)}catch{}return a===1?`0x${r().update(s).digest("hex")}`:i(i(s,1),a-1)};this[n]=(o,a=2,s="hex")=>{const l=i(o,a);return(0,Hlt.encode)(l,s)}})}}Ty.Sha2Hasher=Eoe;Ty.default=new Eoe;var xy={},Glt=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xy,"__esModule",{value:!0});xy.Sha3Hasher=void 0;const Klt=Glt(Aoe),Jlt=_u,Ylt=Eu;class Roe{constructor(){[224,256,384,512].forEach(t=>{const n=`hash${t}`,r=Klt.default[`sha3_${t}`],i=(o,a)=>a===1?r(o):i(r(o),a-1);this[n]=(o,a=1,s="hex")=>{let l=o;try{l=(0,Jlt.toUint8Array)(o)}catch{}const c=i(l,a);return(0,Ylt.encode)(`0x${c}`,s)}})}}xy.Sha3Hasher=Roe;xy.default=new Roe;var Sy={},p5={};function BE(){var e=Array.prototype.slice.call(arguments);function t(){var n=this.constructor;if(n===t)throw new Error("Cannot create an instance of Interface");for(var r=Object.getPrototypeOf(this),i=[],o=0;o<e.length;o++)typeof r[e[o]]!="function"&&i.push(e[o]);if(i.length)throw new Error("The following function(s) need to be implemented for class "+n.name+": "+i.join(", "))}return t.isImplementedBy=function(n){for(var r=Object.getPrototypeOf(n),i=!0,o=0;o<e.length;o++)if(typeof r[e[o]]!="function"){i=!1;break}return i},t}BE.create=BE;var Zlt=BE,Xlt=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p5,"__esModule",{value:!0});const Qlt=Xlt(Zlt);p5.default=Qlt.default.create("genKeyPair","getPublicKey","sign","verify");var cL=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sy,"__esModule",{value:!0});Sy.Ed25519Signer=void 0;const eut=cL(pne),tut=cL(Cu),of=_u,nut=cL(p5),S2=Eu,C2=eut.default.sign;class koe extends nut.default{constructor(){super()}genKeyPair(t="hex",n){const r=n?(0,of.toUint8Array)(n):new Uint8Array((0,tut.default)(32));if(r.byteLength!==32)throw new Error("Invalid seed to generate key pair");const i=C2.keyPair.fromSeed(r);return i.publicKey=(0,S2.encode)(i.publicKey,t),i.secretKey=(0,S2.encode)(i.secretKey,t),i}getPublicKey(t,n="hex"){const r=(0,of.toUint8Array)(t),i=C2.keyPair.fromSecretKey(r).publicKey;return(0,S2.encode)(i,n)}sign(t,n,r="hex"){const i=(0,of.toUint8Array)(n),o=(0,of.toUint8Array)(t),a=C2.detached(o,i);return(0,S2.encode)(a,r)}verify(t,n,r){const i=(0,of.toUint8Array)(r),o=(0,of.toUint8Array)(t),a=(0,of.toUint8Array)(n);return C2.detached.verify(o,a,i)}}Sy.Ed25519Signer=koe;Sy.default=new koe;var Cy={};const af=(e,t)=>parseInt(e.slice(t*2+2,t*2+4),16),rut=e=>{let t;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues)t=window.crypto.getRandomValues(new Uint8Array(e));else if(typeof Z_<"u")t=Z_("crypto").randomBytes(e);else throw"Safe random numbers not available.";let n="0x";for(let r=0;r<e;++r)n+=("00"+t[r].toString(16)).slice(-2);return n},fL=e=>(e.length-2)/2,iut=e=>"0x"+e.reduce((t,n)=>t+n.slice(2),""),out=(e,t,n)=>"0x"+n.slice(e*2+2,t*2+2),aut=e=>{let t="0x";for(let n=0,r=fL(e);n<r;++n)t+=e.slice((r-n)*2,(r-n+1)*2);return t},Doe=(e,t)=>t.length===e*2+2?t:Doe(e,"0x0"+t.slice(2)),Loe=(e,t)=>t.length===e*2+2?t:Loe(e,t+"0"),Ooe=e=>{let t=[];for(let n=2,r=e.length;n<r;n+=2)t.push(parseInt(e.slice(n,n+2),16));return t},Ioe=e=>{let t="0x";for(let n=0,r=e.length;n<r;++n){let i=e[n];t+=(i<16?"0":"")+i.toString(16)}return t},sut=e=>new Uint8Array(Ooe(e)),lut=e=>Ioe([].slice.call(e,0)),uut=e=>{let t=e.toString(16);return t.length%2===0?"0x"+t:"0x0"+t},cut=e=>parseInt(e.slice(2),16),fut=(e,t)=>e.concat(t.slice(2)),dut=e=>e==="0x0"?"0x":e.length%2===0?e:"0x0"+e.slice(2),put=e=>e[2]==="0"?"0x"+e.slice(3):e,hut=e=>{let t="0x";for(let n=0;n<e.length;++n)t+=("00"+e.charCodeAt(n).toString(16)).slice(-2);return t},mut=e=>{let t="";for(let n=2;n<e.length;n+=2)t+=String.fromCharCode(parseInt(e.slice(n,n+2),16));return t},gut=e=>{const t=r=>{const i=r.toString(16);return i.length<2?"0"+i:i};let n="0x";for(let r=0;r!=e.length;r++){let i=e.charCodeAt(r);if(i<128){n+=t(i);continue}if(i<2048)n+=t(i>>6|192);else{if(i>55295&&i<56320){if(++r==e.length)return null;let o=e.charCodeAt(r);if(o<56320||o>57343)return null;i=65536+((i&1023)<<10)+(o&1023),n+=t(i>>18|240),n+=t(i>>12&63|128)}else n+=t(i>>12|224);n+=t(i>>6&63|128)}n+=t(i&63|128)}return n},yut=e=>{let t="",n=0,r=fL(e);for(;n<r;){let i=af(e,n++);if(i>127){if(i>191&&i<224){if(n>=r)return null;i=(i&31)<<6|af(e,n)&63}else if(i>223&&i<240){if(n+1>=r)return null;i=(i&15)<<12|(af(e,n)&63)<<6|af(e,++n)&63}else if(i>239&&i<248){if(n+2>=r)return null;i=(i&7)<<18|(af(e,n)&63)<<12|(af(e,++n)&63)<<6|af(e,++n)&63}else return null;++n}if(i<=65535)t+=String.fromCharCode(i);else if(i<=1114111)i-=65536,t+=String.fromCharCode(i>>10|55296),t+=String.fromCharCode(i&1023|56320);else return null}return t};var Poe={random:rut,length:fL,concat:fut,flatten:iut,slice:out,reverse:aut,pad:Doe,padRight:Loe,fromAscii:hut,toAscii:mut,fromString:gut,toString:yut,fromNumber:uut,toNumber:cut,fromNat:dut,toNat:put,fromArray:Ioe,toArray:Ooe,fromUint8Array:lut,toUint8Array:sut};const m4=xi,vut=Poe,but=e=>"0x"+e.toString("hex"),g4=e=>new m4(e.slice(2),16),dL=e=>{const t="0x"+(e.slice(0,2)==="0x"?new m4(e.slice(2),16):new m4(e,10)).toString("hex");return t==="0x0"?"0x":t},wut=e=>Boe($oe(e,dL("10000000000")))/1e8,Tut=e=>Noe(Moe(Math.floor(e*1e8)),dL("10000000000")),xut=e=>g4(e).toString(10),Moe=e=>typeof e=="string"?/^0x/.test(e)?e:"0x"+e:"0x"+new m4(e).toString("hex"),Boe=e=>g4(e).toNumber(),Sut=e=>vut.pad(32,e),h5=e=>(t,n)=>but(g4(t)[e](g4(n))),Cut=h5("add"),Noe=h5("mul"),$oe=h5("div"),Aut=h5("sub");var _ut={toString:xut,fromString:dL,toNumber:Boe,fromNumber:Moe,toEther:wut,fromEther:Tut,toUint256:Sut,add:Cut,mul:Noe,div:$oe,sub:Aut};const zu="0123456789abcdef".split(""),Eut=[1,256,65536,16777216],Ts=[0,8,16,24],iz=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],Rut=e=>({blocks:[],reset:!0,block:0,start:0,blockCount:1600-(e<<1)>>5,outputBlocks:e>>5,s:(t=>[].concat(t,t,t,t,t))([0,0,0,0,0,0,0,0,0,0])}),kut=(e,t)=>{for(var n=t.length,r=e.blocks,i=e.blockCount<<2,o=e.blockCount,a=e.outputBlocks,s=e.s,l=0,d,c;l<n;){if(e.reset)for(e.reset=!1,r[0]=e.block,d=1;d<o+1;++d)r[d]=0;if(typeof t!="string")for(d=e.start;l<n&&d<i;++l)r[d>>2]|=t[l]<<Ts[d++&3];else for(d=e.start;l<n&&d<i;++l)c=t.charCodeAt(l),c<128?r[d>>2]|=c<<Ts[d++&3]:c<2048?(r[d>>2]|=(192|c>>6)<<Ts[d++&3],r[d>>2]|=(128|c&63)<<Ts[d++&3]):c<55296||c>=57344?(r[d>>2]|=(224|c>>12)<<Ts[d++&3],r[d>>2]|=(128|c>>6&63)<<Ts[d++&3],r[d>>2]|=(128|c&63)<<Ts[d++&3]):(c=65536+((c&1023)<<10|t.charCodeAt(++l)&1023),r[d>>2]|=(240|c>>18)<<Ts[d++&3],r[d>>2]|=(128|c>>12&63)<<Ts[d++&3],r[d>>2]|=(128|c>>6&63)<<Ts[d++&3],r[d>>2]|=(128|c&63)<<Ts[d++&3]);if(e.lastByteIndex=d,d>=i){for(e.start=d-i,e.block=r[o],d=0;d<o;++d)s[d]^=r[d];cC(s),e.reset=!0}else e.start=d}if(d=e.lastByteIndex,r[d>>2]|=Eut[d&3],e.lastByteIndex===i)for(r[0]=r[o],d=1;d<o+1;++d)r[d]=0;for(r[o-1]|=2147483648,d=0;d<o;++d)s[d]^=r[d];cC(s);for(var u="",d=0,p=0,g;p<a;){for(d=0;d<o&&p<a;++d,++p)g=s[d],u+=zu[g>>4&15]+zu[g&15]+zu[g>>12&15]+zu[g>>8&15]+zu[g>>20&15]+zu[g>>16&15]+zu[g>>28&15]+zu[g>>24&15];p%o===0&&(cC(s),d=0)}return"0x"+u},cC=e=>{var t,n,r,i,o,a,s,l,c,u,d,p,g,y,b,A,x,D,O,M,q,B,j,K,oe,ue,G,P,T,f,h,w,_,R,k,C,E,v,L,ne,F,J,se,pe,be,Ee,H,$,Z,Y,ie,Te,me,le,ve,Ae,xe,He,Ye,ge,Pe,te,we;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],p=e[8]^e[18]^e[28]^e[38]^e[48],g=e[9]^e[19]^e[29]^e[39]^e[49],t=p^(a<<1|s>>>31),n=g^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|c>>>31),n=o^(c<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(u<<1|d>>>31),n=s^(d<<1|u>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(p<<1|g>>>31),n=c^(g<<1|p>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=u^(i<<1|o>>>31),n=d^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,y=e[0],b=e[1],Ee=e[11]<<4|e[10]>>>28,H=e[10]<<4|e[11]>>>28,P=e[20]<<3|e[21]>>>29,T=e[21]<<3|e[20]>>>29,ge=e[31]<<9|e[30]>>>23,Pe=e[30]<<9|e[31]>>>23,J=e[40]<<18|e[41]>>>14,se=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,k=e[3]<<1|e[2]>>>31,A=e[13]<<12|e[12]>>>20,x=e[12]<<12|e[13]>>>20,$=e[22]<<10|e[23]>>>22,Z=e[23]<<10|e[22]>>>22,f=e[33]<<13|e[32]>>>19,h=e[32]<<13|e[33]>>>19,te=e[42]<<2|e[43]>>>30,we=e[43]<<2|e[42]>>>30,le=e[5]<<30|e[4]>>>2,ve=e[4]<<30|e[5]>>>2,C=e[14]<<6|e[15]>>>26,E=e[15]<<6|e[14]>>>26,D=e[25]<<11|e[24]>>>21,O=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,ie=e[35]<<15|e[34]>>>17,w=e[45]<<29|e[44]>>>3,_=e[44]<<29|e[45]>>>3,K=e[6]<<28|e[7]>>>4,oe=e[7]<<28|e[6]>>>4,Ae=e[17]<<23|e[16]>>>9,xe=e[16]<<23|e[17]>>>9,v=e[26]<<25|e[27]>>>7,L=e[27]<<25|e[26]>>>7,M=e[36]<<21|e[37]>>>11,q=e[37]<<21|e[36]>>>11,Te=e[47]<<24|e[46]>>>8,me=e[46]<<24|e[47]>>>8,pe=e[8]<<27|e[9]>>>5,be=e[9]<<27|e[8]>>>5,ue=e[18]<<20|e[19]>>>12,G=e[19]<<20|e[18]>>>12,He=e[29]<<7|e[28]>>>25,Ye=e[28]<<7|e[29]>>>25,ne=e[38]<<8|e[39]>>>24,F=e[39]<<8|e[38]>>>24,B=e[48]<<14|e[49]>>>18,j=e[49]<<14|e[48]>>>18,e[0]=y^~A&D,e[1]=b^~x&O,e[10]=K^~ue&P,e[11]=oe^~G&T,e[20]=R^~C&v,e[21]=k^~E&L,e[30]=pe^~Ee&$,e[31]=be^~H&Z,e[40]=le^~Ae&He,e[41]=ve^~xe&Ye,e[2]=A^~D&M,e[3]=x^~O&q,e[12]=ue^~P&f,e[13]=G^~T&h,e[22]=C^~v&ne,e[23]=E^~L&F,e[32]=Ee^~$&Y,e[33]=H^~Z&ie,e[42]=Ae^~He&ge,e[43]=xe^~Ye&Pe,e[4]=D^~M&B,e[5]=O^~q&j,e[14]=P^~f&w,e[15]=T^~h&_,e[24]=v^~ne&J,e[25]=L^~F&se,e[34]=$^~Y&Te,e[35]=Z^~ie&me,e[44]=He^~ge&te,e[45]=Ye^~Pe&we,e[6]=M^~B&y,e[7]=q^~j&b,e[16]=f^~w&K,e[17]=h^~_&oe,e[26]=ne^~J&R,e[27]=F^~se&k,e[36]=Y^~Te&pe,e[37]=ie^~me&be,e[46]=ge^~te&le,e[47]=Pe^~we&ve,e[8]=B^~y&A,e[9]=j^~b&x,e[18]=w^~K&ue,e[19]=_^~oe&G,e[28]=J^~R&C,e[29]=se^~k&E,e[38]=Te^~pe&Ee,e[39]=me^~be&H,e[48]=te^~le&Ae,e[49]=we^~ve&xe,e[0]^=iz[r],e[1]^=iz[r+1]},A2=e=>t=>{var n;if(t.slice(0,2)==="0x"){n=[];for(var r=2,i=t.length;r<i;r+=2)n.push(parseInt(t.slice(r,r+2),16))}else n=t;return kut(Rut(e),n)};var Foe={keccak256:A2(256),keccak512:A2(512),keccak256s:A2(256),keccak512s:A2(512)};const _i=Poe,Dut=_ut,Lut=py(),pL=new Lut.ec("secp256k1"),{keccak256:y4,keccak256s:Out}=Foe,Iut=e=>{const t=y4(_i.concat(_i.random(32),e||_i.random(32))),n=_i.concat(_i.concat(_i.random(32),t),_i.random(32)),r=y4(n);return Uoe(r)},hL=e=>{const t=Out(e.slice(2));let n="0x";for(let r=0;r<40;r++)n+=parseInt(t[r+2],16)>7?e[r+2].toUpperCase():e[r+2];return n},Uoe=e=>{const t=new Qt(e.slice(2),"hex"),r="0x"+pL.keyFromPrivate(t).getPublic(!1,"hex").slice(2),i=y4(r);return{address:hL("0x"+i.slice(-40)),privateKey:e}},joe=([e,t,n])=>_i.flatten([t,n,e]),Voe=e=>[_i.slice(64,_i.length(e),e),_i.slice(0,32,e),_i.slice(32,64,e)],qoe=e=>(t,n)=>{const r=pL.keyFromPrivate(new Qt(n.slice(2),"hex")).sign(new Qt(t.slice(2),"hex"),{canonical:!0});return joe([Dut.fromString(_i.fromNumber(e+r.recoveryParam)),_i.pad(32,_i.fromNat("0x"+r.r.toString(16))),_i.pad(32,_i.fromNat("0x"+r.s.toString(16)))])},Put=qoe(27),Mut=(e,t)=>{const n=Voe(t),r={v:_i.toNumber(n[0]),r:n[1].slice(2),s:n[2].slice(2)},o="0x"+pL.recoverPubKey(new Qt(e.slice(2),"hex"),r,r.v<2?r.v:1-r.v%2).encode("hex",!1).slice(2),a=y4(o);return hL("0x"+a.slice(-40))};var But={create:Iut,toChecksum:hL,fromPrivate:Uoe,sign:Put,makeSigner:qoe,recover:Mut,encodeSignature:joe,decodeSignature:Voe},S0={},mL=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(S0,"__esModule",{value:!0});S0.Secp256k1Signer=void 0;const Nut=mL(py()),Oa=_u,$ut=mL(Cu),Fut=mL(p5),_2=Eu,Uut=Nut.default.ec,E2=new Uut("secp256k1");class zoe extends Fut.default{constructor(){super(),this.pkHasFormatPrefix=!0,this.pkCompressed=!1}isValidSK(t){if(t.byteLength!==32)return!1;const n=new Oa.BN(t);return n.cmp(E2.curve.n)<0&&!n.isZero()}genKeyPair(t="hex"){let n=null;do n=new Uint8Array((0,$ut.default)(32));while(!this.isValidSK(n));const r=this.getPublicKey((0,Oa.toHex)(n));return{secretKey:(0,_2.encode)(n,t),publicKey:(0,_2.encode)(r,t)}}getPublicKey(t,n="hex"){if(!this.isValidSK((0,Oa.toUint8Array)(t)))throw new Error("Invalid secret key");let r=E2.keyFromPrivate((0,Oa.toBuffer)(t)).getPublic(this.pkCompressed,"hex");return this.pkHasFormatPrefix===!1&&(r=r.slice(2)),(0,_2.encode)(`0x${r}`,n)}sign(t,n,r="hex"){let i=t;try{i=(0,Oa.toUint8Array)(t)}catch{}const o=E2.keyFromPrivate((0,Oa.toBuffer)(n)).sign((0,Oa.stripHexPrefix)(i),{canonical:!0}).toDER("hex");return(0,_2.encode)(`0x${o}`,r)}verify(t,n,r){let i=t;try{i=(0,Oa.toUint8Array)(t)}catch{}let o=(0,Oa.toBuffer)(r);return this.pkHasFormatPrefix===!1&&o[0]!==4&&o.byteLength===64&&(o=Qt.concat([Qt.from([4]),o])),E2.keyFromPublic(o).verify((0,Oa.stripHexPrefix)(i),(0,Oa.stripHexPrefix)((0,Oa.toHex)(n)))}}S0.Secp256k1Signer=zoe;S0.default=new zoe;var Hoe=ht&&ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cy,"__esModule",{value:!0});Cy.EthereumSigner=void 0;const oz=Hoe(But),jut=Hoe(Foe),fC=_u,Vut=S0;class Woe extends Vut.Secp256k1Signer{constructor(){super(),this.pkHasFormatPrefix=!1}ethHash(t){const n=(0,fC.isHexStrict)(t)?t:(0,fC.utf8ToHex)(t),r=(0,fC.hexToBytes)(n),i=Qt.from(r),o=`Ethereum Signed Message:
579
- ${r.length}`,a=Qt.from(o),s=Qt.concat([a,i]);return jut.default.keccak256s(s)}ethSign(t,n){return oz.default.sign(t,n)}ethRecover(t,n){return oz.default.recover(t,n)}}Cy.EthereumSigner=Woe;Cy.default=new Woe;(function(e){var t=ht&&ht.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.toTxHash=e.Hashers=e.Signers=e.getRandomBytes=e.getHasher=e.getSigner=e.types=e.Hasher=e.Signer=void 0;const n=t(Cu),r=Eu,i=t(wy),o=t(Ty),a=t(xy),s=t(Sy),l=t(Cy),c=t(S0);e.Signer={Ed25519:s.default,Secp256k1:c.default,Ethereum:l.default},e.Hasher={SHA2:o.default,SHA3:a.default,Keccak:i.default},e.types={KeyType:{ED25519:0,SECP256K1:1,ETHEREUM:2},HashType:{KECCAK:0,SHA3:1,KECCAK_384:2,SHA3_384:3,KECCAK_512:4,SHA3_512:5,SHA2:6},RoleType:{ROLE_ACCOUNT:0,ROLE_NODE:1,ROLE_DEVICE:2,ROLE_APPLICATION:3,ROLE_SMART_CONTRACT:4,ROLE_BOT:5,ROLE_ASSET:6,ROLE_STAKE:7,ROLE_VALIDATOR:8,ROLE_GROUP:9,ROLE_TX:10,ROLE_TETHER:11,ROLE_SWAP:12,ROLE_DELEGATION:13,ROLE_VC:14,ROLE_BLOCKLET:15,ROLE_STORE:16,ROLE_TOKEN:17,ROLE_FACTORY:18,ROLE_ROLLUP:19,ROLE_STORAGE:20,ROLE_ANY:63},EncodingType:{BASE16:0,BASE58:1}};function u(y){if(typeof e.Signers[y]>"u")throw new Error(`Unsupported signer type: ${y}`);return e.Signers[y]}e.getSigner=u;function d(y){if(typeof e.Hashers[y]>"u")throw new Error(`Unsupported hash type: ${y}`);return e.Hashers[y]}e.getHasher=d;function p(y=32,b="hex"){return(0,r.encode)((0,n.default)(y),b)}e.getRandomBytes=p,e.Signers=Object.freeze({[e.types.KeyType.ED25519]:e.Signer.Ed25519,[e.types.KeyType.SECP256K1]:e.Signer.Secp256k1,[e.types.KeyType.ETHEREUM]:e.Signer.Ethereum}),e.Hashers=Object.freeze({[e.types.HashType.KECCAK]:e.Hasher.Keccak.hash256,[e.types.HashType.KECCAK_384]:e.Hasher.Keccak.hash384,[e.types.HashType.KECCAK_512]:e.Hasher.Keccak.hash512,[e.types.HashType.SHA3]:e.Hasher.SHA3.hash256,[e.types.HashType.SHA3_384]:e.Hasher.SHA3.hash384,[e.types.HashType.SHA3_512]:e.Hasher.SHA3.hash512,[e.types.HashType.SHA2]:e.Hasher.SHA2.hash256});const g=y=>e.Hasher.SHA2.hash256(y,1,"hex").replace(/^0x/,"").toUpperCase();e.toTxHash=g})(Soe);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MOTIF_COLORS=e.DEFAULT_COLORS=void 0,e.rgbToHsl=r,e.hslToRgb=i,e.getNftBGColor=o,e.getPassportColorFromDid=a,e.getNftBGColorFromDid=s;const t=_u,n=Soe;e.DEFAULT_COLORS={"did-space":{start:"#7D3AC5",end:"#9761D1"},"app-space":{start:"#6CC68D",end:"#47B871"},"app-purchase":{start:"#DE7021",end:"#E48D4E"},"app-passport":{start:"#3882C7",end:"#7AB2F6"}},e.MOTIF_COLORS=["#E94E4E","#E41115","#E96B4E","#E5502E","#E98F4E","#E57A2E","#E98F4E","#E5A82E","#DACD5D","#DAC825","#BDD13D","#C8E31C","#AEE94E","#7FD558","#52CC19","#4FC469","#59DE9C","#19CC73","#5ED9D1","#19CCC0","#4ED7E9","#19B7CC","#45ACE8","#1C97DE","#4E68E9","#2E4DE5","#7F4EE9","#682EE5","#BE65E7","#AF40E2","#DF58C2","#E94E8F"];function r(l){const c=l.replace("#",""),u=parseInt(c.slice(0,2),16)/255,d=parseInt(c.slice(2,4),16)/255,p=parseInt(c.slice(4,6),16)/255,g=Math.max(u,d,p),y=Math.min(u,d,p);let b,A;const x=(g+y)/2;if(g===y)b=0,A=0;else{const D=g-y;switch(A=x>.5?D/(2-g-y):D/(g+y),g){case u:b=(d-p)/D+(d<p?6:0);break;case d:b=(p-u)/D+2;break;case p:b=(u-d)/D+4;break}b/=6}return[b,A,x]}function i(l,c,u){let d,p,g;if(c===0)d=u,p=u,g=u;else{const y=(x,D,O)=>{let M=O;return M<0&&(M+=1),M>1&&(M-=1),M<.16666666666666666?x+(D-x)*6*M:M<.5?D:M<.6666666666666666?x+(D-x)*(.6666666666666666-M)*6:x},b=u<.5?u*(1+c):u+c-u*c,A=2*u-b;d=y(A,b,l+1/3),p=y(A,b,l),g=y(A,b,l-1/3)}return`#${[Math.round(d*255),Math.round(p*255),Math.round(g*255)].map(y=>y.toString(16).padStart(2,"0")).join("")}`}function o(l){if(l){const c=r(l),u=[c[0]];c[1]>.7?u.push(.7):u.push(c[1]),c[2]>.6?u.push(.6):c[2]<.3?u.push(.3):u.push(c[2]);const d=[u[0],u[1],u[2]-.1],p=i(...u);return{start:i(...d),end:p}}return e.DEFAULT_COLORS["app-passport"]}function a(l){return`#${(0,t.toHex)(n.Hasher.SHA3.hash224(l)).slice(-6)}`}function s(l){return o(a(l))}})(ME);(function(e){var t=ht&&ht.__createBinding||(Object.create?function(B,j,K,oe){oe===void 0&&(oe=K);var ue=Object.getOwnPropertyDescriptor(j,K);(!ue||("get"in ue?!j.__esModule:ue.writable||ue.configurable))&&(ue={enumerable:!0,get:function(){return j[K]}}),Object.defineProperty(B,oe,ue)}:function(B,j,K,oe){oe===void 0&&(oe=K),B[oe]=j[K]}),n=ht&&ht.__exportStar||function(B,j){for(var K in B)K!=="default"&&!Object.prototype.hasOwnProperty.call(j,K)&&t(j,B,K)};Object.defineProperty(e,"__esModule",{value:!0}),e.getSvg=e.nanoid=e.getTagSvg=e.getBadgesSvg=e.getChainBadge=e.getVerifiableBadge=e.getDidSvg=e.getExtraSvg=e.getIssuerSvg=e.getHeaderSvg=e.getLayoutSvg=e.formatDid=void 0;const r=Jat,i=ME;n(ME,e);const o=(B,j)=>[B,j].join("-"),a=228,s=258,l=B=>/^(0x)?[0-9a-f]{40}$/i.test(B),c=B=>{const j=Uint8Array.from(B.slice(2).match(/.{1,2}/g).map(K=>parseInt(K,16))).slice(0,8).reduce((K,oe)=>K+oe,0)%i.MOTIF_COLORS.length;return i.MOTIF_COLORS[j]},u=(B,j=5)=>B.length>2*j?`${B.slice(0,j)}..${B.slice(-j)}`:B;e.formatDid=u;const d=(B,j,K)=>B==="did-space"?(oe,ue,G)=>`<svg
579
+ ${r.length}`,a=Qt.from(o),s=Qt.concat([a,i]);return jut.default.keccak256s(s)}ethSign(t,n){return oz.default.sign(t,n)}ethRecover(t,n){return oz.default.recover(t,n)}}Cy.EthereumSigner=Woe;Cy.default=new Woe;(function(e){var t=ht&&ht.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.toTxHash=e.Hashers=e.Signers=e.getRandomBytes=e.getHasher=e.getSigner=e.types=e.Hasher=e.Signer=void 0;const n=t(Cu),r=Eu,i=t(wy),o=t(Ty),a=t(xy),s=t(Sy),l=t(Cy),c=t(S0);e.Signer={Ed25519:s.default,Secp256k1:c.default,Ethereum:l.default},e.Hasher={SHA2:o.default,SHA3:a.default,Keccak:i.default},e.types={KeyType:{ED25519:0,SECP256K1:1,ETHEREUM:2},HashType:{KECCAK:0,SHA3:1,KECCAK_384:2,SHA3_384:3,KECCAK_512:4,SHA3_512:5,SHA2:6},RoleType:{ROLE_ACCOUNT:0,ROLE_NODE:1,ROLE_DEVICE:2,ROLE_APPLICATION:3,ROLE_SMART_CONTRACT:4,ROLE_BOT:5,ROLE_ASSET:6,ROLE_STAKE:7,ROLE_VALIDATOR:8,ROLE_GROUP:9,ROLE_TX:10,ROLE_TETHER:11,ROLE_SWAP:12,ROLE_DELEGATION:13,ROLE_VC:14,ROLE_BLOCKLET:15,ROLE_STORE:16,ROLE_TOKEN:17,ROLE_FACTORY:18,ROLE_ROLLUP:19,ROLE_STORAGE:20,ROLE_PROFILE:21,ROLE_ANY:63},EncodingType:{BASE16:0,BASE58:1}};function u(y){if(typeof e.Signers[y]>"u")throw new Error(`Unsupported signer type: ${y}`);return e.Signers[y]}e.getSigner=u;function d(y){if(typeof e.Hashers[y]>"u")throw new Error(`Unsupported hash type: ${y}`);return e.Hashers[y]}e.getHasher=d;function p(y=32,b="hex"){return(0,r.encode)((0,n.default)(y),b)}e.getRandomBytes=p,e.Signers=Object.freeze({[e.types.KeyType.ED25519]:e.Signer.Ed25519,[e.types.KeyType.SECP256K1]:e.Signer.Secp256k1,[e.types.KeyType.ETHEREUM]:e.Signer.Ethereum}),e.Hashers=Object.freeze({[e.types.HashType.KECCAK]:e.Hasher.Keccak.hash256,[e.types.HashType.KECCAK_384]:e.Hasher.Keccak.hash384,[e.types.HashType.KECCAK_512]:e.Hasher.Keccak.hash512,[e.types.HashType.SHA3]:e.Hasher.SHA3.hash256,[e.types.HashType.SHA3_384]:e.Hasher.SHA3.hash384,[e.types.HashType.SHA3_512]:e.Hasher.SHA3.hash512,[e.types.HashType.SHA2]:e.Hasher.SHA2.hash256});const g=y=>e.Hasher.SHA2.hash256(y,1,"hex").replace(/^0x/,"").toUpperCase();e.toTxHash=g})(Soe);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MOTIF_COLORS=e.DEFAULT_COLORS=void 0,e.rgbToHsl=r,e.hslToRgb=i,e.getNftBGColor=o,e.getPassportColorFromDid=a,e.getNftBGColorFromDid=s;const t=_u,n=Soe;e.DEFAULT_COLORS={"did-space":{start:"#7D3AC5",end:"#9761D1"},"app-space":{start:"#6CC68D",end:"#47B871"},"app-purchase":{start:"#DE7021",end:"#E48D4E"},"app-passport":{start:"#3882C7",end:"#7AB2F6"}},e.MOTIF_COLORS=["#E94E4E","#E41115","#E96B4E","#E5502E","#E98F4E","#E57A2E","#E98F4E","#E5A82E","#DACD5D","#DAC825","#BDD13D","#C8E31C","#AEE94E","#7FD558","#52CC19","#4FC469","#59DE9C","#19CC73","#5ED9D1","#19CCC0","#4ED7E9","#19B7CC","#45ACE8","#1C97DE","#4E68E9","#2E4DE5","#7F4EE9","#682EE5","#BE65E7","#AF40E2","#DF58C2","#E94E8F"];function r(l){const c=l.replace("#",""),u=parseInt(c.slice(0,2),16)/255,d=parseInt(c.slice(2,4),16)/255,p=parseInt(c.slice(4,6),16)/255,g=Math.max(u,d,p),y=Math.min(u,d,p);let b,A;const x=(g+y)/2;if(g===y)b=0,A=0;else{const D=g-y;switch(A=x>.5?D/(2-g-y):D/(g+y),g){case u:b=(d-p)/D+(d<p?6:0);break;case d:b=(p-u)/D+2;break;case p:b=(u-d)/D+4;break}b/=6}return[b,A,x]}function i(l,c,u){let d,p,g;if(c===0)d=u,p=u,g=u;else{const y=(x,D,O)=>{let M=O;return M<0&&(M+=1),M>1&&(M-=1),M<.16666666666666666?x+(D-x)*6*M:M<.5?D:M<.6666666666666666?x+(D-x)*(.6666666666666666-M)*6:x},b=u<.5?u*(1+c):u+c-u*c,A=2*u-b;d=y(A,b,l+1/3),p=y(A,b,l),g=y(A,b,l-1/3)}return`#${[Math.round(d*255),Math.round(p*255),Math.round(g*255)].map(y=>y.toString(16).padStart(2,"0")).join("")}`}function o(l){if(l){const c=r(l),u=[c[0]];c[1]>.7?u.push(.7):u.push(c[1]),c[2]>.6?u.push(.6):c[2]<.3?u.push(.3):u.push(c[2]);const d=[u[0],u[1],u[2]-.1],p=i(...u);return{start:i(...d),end:p}}return e.DEFAULT_COLORS["app-passport"]}function a(l){return`#${(0,t.toHex)(n.Hasher.SHA3.hash224(l)).slice(-6)}`}function s(l){return o(a(l))}})(ME);(function(e){var t=ht&&ht.__createBinding||(Object.create?function(B,j,K,oe){oe===void 0&&(oe=K);var ue=Object.getOwnPropertyDescriptor(j,K);(!ue||("get"in ue?!j.__esModule:ue.writable||ue.configurable))&&(ue={enumerable:!0,get:function(){return j[K]}}),Object.defineProperty(B,oe,ue)}:function(B,j,K,oe){oe===void 0&&(oe=K),B[oe]=j[K]}),n=ht&&ht.__exportStar||function(B,j){for(var K in B)K!=="default"&&!Object.prototype.hasOwnProperty.call(j,K)&&t(j,B,K)};Object.defineProperty(e,"__esModule",{value:!0}),e.getSvg=e.nanoid=e.getTagSvg=e.getBadgesSvg=e.getChainBadge=e.getVerifiableBadge=e.getDidSvg=e.getExtraSvg=e.getIssuerSvg=e.getHeaderSvg=e.getLayoutSvg=e.formatDid=void 0;const r=Jat,i=ME;n(ME,e);const o=(B,j)=>[B,j].join("-"),a=228,s=258,l=B=>/^(0x)?[0-9a-f]{40}$/i.test(B),c=B=>{const j=Uint8Array.from(B.slice(2).match(/.{1,2}/g).map(K=>parseInt(K,16))).slice(0,8).reduce((K,oe)=>K+oe,0)%i.MOTIF_COLORS.length;return i.MOTIF_COLORS[j]},u=(B,j=5)=>B.length>2*j?`${B.slice(0,j)}..${B.slice(-j)}`:B;e.formatDid=u;const d=(B,j,K)=>B==="did-space"?(oe,ue,G)=>`<svg
580
580
  width="${ue}"
581
581
  height="${G}"
582
582
  viewBox="0 0 228 258"
@@ -1491,8 +1491,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1491
1491
  box-shadow: none;
1492
1492
  background-color: rgba(0, 0, 0, 0.12) !important;
1493
1493
  }
1494
- `;function uxt(){const{t:e}=vo(),{info:t={},api:n}=Ol(),[r,i]=U.useState(),{status:o}=t;U.useEffect(()=>{o===rn.SERVER_STATUS.START_FROM_CRASH&&(i(!0),n.resetNodeStatus().catch(s=>{console.error(s.message)}))},[o]);const a=()=>{i(!1)};return r?I.jsx(MO,{description:e("dashboard.startFromCrashTip"),confirm:e("common.confirm"),showCancel:!1,color:"primary",onConfirm:a}):null}function cxt({error:e,resetErrorBoundary:t}){return I.jsx(aa,{children:I.jsxs(e6,{severity:"error",action:I.jsx(Ns,{onClick:t,color:"secondary",variant:"outlined",children:"Reload"}),style:{minWidth:480},children:[I.jsx(a_e,{children:"Oops, this application crashed"}),I.jsx(tn,{children:e.message})]})})}var fxt=Tg;Tg.flatten=Tg;Tg.unflatten=Ble;function Ple(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Mle(e){return e}function Tg(e,t){t=t||{};const n=t.delimiter||".",r=t.maxDepth,i=t.transformKey||Mle,o={};function a(s,l,c){c=c||1,Object.keys(s).forEach(function(u){const d=s[u],p=t.safe&&Array.isArray(d),g=Object.prototype.toString.call(d),y=Ple(d),b=g==="[object Object]"||g==="[object Array]",A=l?l+n+i(u):i(u);if(!p&&!y&&b&&Object.keys(d).length&&(!t.maxDepth||c<r))return a(d,A,c+1);o[A]=d})}return a(e),o}function Ble(e,t){t=t||{};const n=t.delimiter||".",r=t.overwrite||!1,i=t.transformKey||Mle,o={};if(Ple(e)||Object.prototype.toString.call(e)!=="[object Object]")return e;function s(u){const d=Number(u);return isNaN(d)||u.indexOf(".")!==-1||t.object?u:d}function l(u,d,p){return Object.keys(p).reduce(function(g,y){return g[u+n+y]=p[y],g},d)}function c(u){const d=Object.prototype.toString.call(u),p=d==="[object Array]",g=d==="[object Object]";if(u){if(p)return!u.length;if(g)return!Object.keys(u).length}else return!0}return e=Object.keys(e).reduce(function(u,d){const p=Object.prototype.toString.call(e[d]);return!(p==="[object Object]"||p==="[object Array]")||c(e[d])?(u[d]=e[d],u):l(d,u,Tg(e[d],t))},{}),Object.keys(e).forEach(function(u){const d=u.split(n).map(i);let p=s(d.shift()),g=s(d[0]),y=o;for(;g!==void 0;){if(p==="__proto__")return;const b=Object.prototype.toString.call(y[p]),A=b==="[object Object]"||b==="[object Array]";if(!r&&!A&&typeof y[p]<"u")return;(r&&!A||!r&&y[p]==null)&&(y[p]=typeof g=="number"&&!t.object?[]:{}),y=y[p],d.length>0&&(p=s(d.shift()),g=s(d[0]))}y[p]=Ble(e[u],t)}),o}const Nle=Kt(fxt);var dxt=uO,pxt=qse,hxt=pxt(function(e,t,n){dxt(e,t,n)}),mxt=hxt;const $le=Kt(mxt),gxt={setup:{connect:{title:"Signature Required",scan:"Connect your DID Wallet to become the owner of this server",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},keyPair:{title:"Derived KeyPair Required",scan:"Connect your DID Wallet to generate a key-pair for this app",confirm:"Review this operation on your DID Wallet",success:"Your key pair is securely stored"},verify:{title:"Ownership Credential Required",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},accept:{title:"Accepting server require ownership certificates",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},title:"Setup Blocklet Server",steps:{eula:"End User License Agreement",eulaFooter:"I have read and agreed to the terms of the EULA",connect:"Connect Owner DID Wallet",verify:"Verify Ownership",basicSettings:"Basic Settings",launchApp:"Launch Application",complete:"Complete"},congratulation:"Congratulations! Your Blocklet Server is secure and ready to use",redirectButton:"Take me to dashboard!"},login:{loginTo:"Connect to",description:"Only server owner and approved members can access the dashboard",switchDid:{title:"Switch DID Wallet",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},switchSpecifiedDid:{title:"Switch DID Wallet",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},connect:{title:"Connect DID Wallet",scan:"Connect your DID Wallet to provide passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},acceptServer:{title:"Claim Server with Ownership NFT",tooltip:"If you received a server ownership nft, you can claim your owner passport with this link."},exchangePassport:{title:"Exchange Passport with NFT",success:"You have successfully exchanged your passport and logged in with the passport",login:"Login",tooltip:"If you own NFT from collection {collections}, you can exchange your passport with this link.",dialog:{title:"Exchange Passport with NFT",scan:"Connect your DID Wallet to present your NFT to get a passport",confirm:"Select NFT on your DID Wallet",success:"Passport has been successfully exchanged"}},payablePassport:{title:"Purchase passport with payment",tooltip:"If you do not have a passport, you can purchase a passport with this link."},sidebar:{dashboard:"Dashboard",blocklets:"Blocklets",console:"Console",settings:"Settings"},system:{total:"Total",used:"Used",free:"Free",cores:"Number of cores",instances:"Number of instances"},common:{invalid:"Invalid",about:"About",access:"Access",change:"Change",upload:"Upload",accessKey:"Access Keys",action:"Action",actions:"Actions",add:"Add",address:"Address",afterTime:"After {time}",allow:"Allow",alreadyExist:"already exists",approve:"Approve",approved:"approved",appUrl:"APP Url",auditLogs:"Audit Trail",author:"Author",avatar:"Avatar",back:"Back",basic:"Basic",basicInfo:"Basic Information",profile:"Profile",bind:"Bind",blocklet:"Blocklet",blocklets:"Blocklets",blockletsStorage:"Blocklets Storage",cacheStorage:"Cache Storage",cancel:"Cancel",certificate:"certificate",category:"Log Topic",click:"Click to copy",close:"Close",collapseAll:"Collapse All",community:"Community",complete:"Complete",componentBasicInfo:"Component Basic Information",components:"Blocklets",config:"Configure",configuration:"Configuration",configNavigation:"Navigation",configSuccess:"Config successfully",confirm:"Confirm",connect:"Connect",console:"Console",continue:"Continue",continueWith:"Continue With",copiedTip:"Copied",copyAndClose:"Copy & Close",copyTip:"Click To Copy",coreStorage:"Core Storage",cpu:"CPU",create:"Create",createSuccess:"Create Access Key",created:"Created At",createdAt:"Created At",createdBy:"Created By",dAddress:"Decentralized Identifiers (DID)",dataStorage:"Storage on Local Disk",delConfirm:"Delete",delConfirmDescription:"Confirm delete {data}?",delete:"Delete",dependents:"Dependents",description:"Description",detail:"Detail",did:"DID",disk:"Disk",diskInfo:"Disk Info",docker:"IS Docker",documentation:"Documentation",domain:"Domain",downgradeTo:"Downgrade to",download:"Download",connectToStore:"Connect to Store",blockletStudio:"Studio",uploaded:"Uploaded",downloading:"Downloading",edit:"Edit",email:"Email",phone:"Phone",empty:"Empty",emptyData:"No results found",enable:"Enable",engine:"Engine",env:"Environment",environment:"Environment",expandAll:"Expand All",expired:"Expired",expires:"Expires",export:"Export",externalIp:"External IP",failed:"Failed",filter:"Log Filter",fingerprint:"Fingerprint",finish:"Finish",forbid:"Forbid",free:"Free",general:"General",gitpod:"IS Gitpod",goEULA:'Click to view "End User License Agreement"',group:"Group",image:"IS Image",install:"Install",installed:"Installed",installedAt:"Installed At",installSuccess:"Successfully installed",installing:"Installing",internalIp:"Internal IP",introduction:"Introduction",invite:"Invite",inviting:"Inviting",ip:"IP",isPublic:"Public",issue:"Issue",issuer:"Issuer",item:"Item",joined:"Joined",key:"Key",lastPublishedAt:"Published At",launcher:"Launcher Information",leavePageTip:"Are you sure to leave the page?",link:"Link",loading:"loading",log:"View Logs",logStorage:"Log Storage",login:"Login",logo:"Logo",logout:"Logout",logs:"Logs",manageTeam:"Manage Team",marketplace:"Marketplace",member:"Member",members:"Members",memory:"Memory",meta:"Meta Data",analytics:"Analytics",runtime:"Runtime",traffic:"Traffic",more:"More",mountPoint:"MountPoint",name:"Name",next:"Next",no:"No",noData:"No records to display",notice:"Unexpected bad things will happen if you don’t read this!",noticeTitle:"Notice",notification:"Notification",open:"Open",visitStore:"Visit Store",visitTarget:"Visit {name}",management:"Management",os:"Operating System",overview:"Overview",owner:"Owner",page404:"404 Page",passport:"Passport",permission:"Permission",port:"Port",pre:"Previous",preferences:"Preferences",preview:"Preview",protected:"Protected",protocol:"Protocol",purchase:"Purchase",reconnect:"Reconnect",disconnect:"Disconnect",readMore:"More",redirect:"Redirect",redirectCode:"Redirect Code",redirectPermanently:"Permanent Redirect",redirectTemporary:"Temporary Redirect",redirectUrl:"Redirect URL",rewrite:"Rewrite",release:"Release",rewriteUrl:"Rewrite URL",reject:"Reject",reload:"Reload",remark:"Remark",remove:"Remove",removeSuccess:"Remove successfully",renew:"Renew",reportIssue:"Report an issue",required:"Required",requiredErrorText:"{name} is required",resource:"Resource",restart:"Restart",restore:"Restore",retry:"Retry",revoke:"Revoke",role:"Role",running:"running",runtimeInfo:"Runtime Info",save:"Save",saveChanges:"Save Changes",saveSuccess:"Saved successfully",scheduleFailed:"schedule failed",scheduleSuccess:"successfully scheduled",scope:"Scope",screenshot:"Screenshot",search:"Search",security:"Security",serverDid:"Server DID",serverVersion:"Server Version",setting:"Settings",start:"Start",status:"Status",stop:"Stop",storage:"Storage",backup:"Backup",store:"Store",succeeded:"Succeeded",subscription:"Subscription",support:"Support",switch:"Switch",team:"Team",the:"The",timeAgo:"{time} ago",title:"Title",type:"Type",unavailable:"Unavailable",update:"Update",updateAvailable:"New version {version} available",updatedAt:"Updated At",updatedBy:"Updated By",upgrade:"Upgrade",upgradeTo:"Upgrade to",upgrading:"Upgrading",uptime:"Uptime",url:"URL",valid:"Valid",value:"Value",version:"Version",visit:"Visit",waiting:"Waiting",webhook:"Integrations",yes:"Yes",invalidParam:"Invalid Params",launch:"Launch",price:"Price",redirecting:"Redirecting",error:"Error",reminder:"Reminder",normal:"Normal",gateway:"Gateway",verifyNFT:"Verify NFT",errorMessage:"Error Message: ",slugifyHint:"The actual mount point will be: {value}",strategy:"Strategy",auto:"Auto",manual:"Manual",progress:"In progress",startTime:"Start time",endTime:"End time",selected:"Selected",timeoutError:"Timeout error",tags:"Tags",sourceApp:"Belong to App"},blocklet:{external:"External",notFound:"Blocklet not found on this server, maybe it has been deleted",installFromMarket:"Install New Blocklets",installFromUrl:"Install From Url",installFromCreate:"Create Blocklet",titleValidationError:"Title length must be between 3 and 40 characters",descriptionValidationError:"Description length must be between 3 and 160 characters",installFromDiskBackup:"Restore from this server",installedAt:"Installed At",internal:"Internal",startedAt:"Started At",stoppedAt:"Stopped At",urlEmptyTip:"No Access URL, ",goToAddRule:"Go To Add",services:"Exposed Services",upstreamPort:"Upstream Port",noService:"No Services",appId:"App DID",appPid:"Permanent DID",whyNeedAppPid:"If your application has been migrated, the permanent DID is the DID generated when this Blocklet was originally installed",alsoKnownAs:"Also Known As",skSource:"Owner Wallet",reloadSuccess:"Blocklet was reloaded successfully",statusTip:"Blocklet is {status}",initialUptime:"Less than 1m",dashboard:"Blocklet Dashboard",noComponent:"Application has no components and cannot be started",fromUrl:{title:"Install Blocklet",label:"Blocklet Meta URL",description:"The URL should point to the Meta File of the Blocklet. If you need to refer to a local file, please add the file:// prefix, e.g. file:///Users/foo/blocklet.json.",confirm:"Install",step0:"Input URL",step1:"Confirm Meta Info",existTipPrefix:"Blocklet with the same DID already exists, the version is",existTipSuffix:", Please install a higher version."},action:{stopDescription:"Stopping the blocklet will make its public interfaces unaccessible, which may cause end user failures",stopComponentDescription:"Stopping the component will make its public interfaces unaccessible, which may cause end user failures",confirmStop:"Yes, Stop It",cancelDownloadDescription:"Cancel download {name} ?",removeApplicationDescription:"Removing the application will erase code and data generated by this application, which is not recoverable if you do not have any backups",removeApplicationAfterBackup:"Backup and remove the application. You can restore the application from this server if you need",removeApplicationComplete:"Remove both code and data for this application",removeComponentDescription:"Removing the component will erase code and data generated by this component, which is not recoverable if you do not have any backups",removeComponentKeepData:"Keep data for this component, only remove code",removeComponentComplete:"Remove both code and data for this component",confirmRemove:"Yes, Remove It",confirmComponentRemove:"Yes, Remove It",upgradeDescription:"Upgrading the blocklet will make it temporarily unavailable, are you sure to continue?",confirmUpgrade:"Yes, Upgrade It",confirmRestart:"Yes, Restart It",restartDescription:"Restarting the blocklet will temporarily suspended and may not start because of a configuration change"},dev:{modeTip:"Please switch Blocklet Server to DEBUG mode"},index:{tableTitle:"Manage Your Blocklets",noBlocklet:"No blocklets found in this Blocklet Server, install a blocklet from market place to start."},admin:{iframeTitle:"Blocklet Admin Interface",title:"Admin Interface",noContent:"This blocklet does not have a admin interface",securityError:"SecurityError: Can not open the admin url from accessing a cross-origin frame"},config:{name:"App Name",description:"App Description",sk:"Secret key for the app wallet",logoSquare:"App Logo",logoRect:"Rect logo",logoRectDesc:"Usually displayed at the top of the page, default to app logo",logoFavicon:"Favicon",logoFaviconDesc:"Usually displayed in the browser's address bar or tab page, default to app logo",clusterSize:"Instance count when run this blocklet in cluster mode",copyrightOwner:"Copyright Owner (Display in footer)",copyrightYear:"Copyright Year (Display in footer)",deletable:{name:"Delete Protection",enable:"This blocklet can NOT currently be deleted",disable:"This blocklet can currently be deleted"},tenantMode:{name:"Multiple Tenant Mode",multiple:"This blocklet runs in multiple tenant mode, data should be isolated for each tenant",single:"This blocklet runs in single tenant mode, all data are shared"},walletType:{name:"Wallet Type",description:"Blocklet instance wallet type, will change the derived DID"},languages:"Supported Languages",selectLanguagesTip:"Adjust the order by removing and re-adding",languagesSearch:"Search by Country's Local Name, English Name, or ISO Code...",passportColor:"Passport Color",appUrl:"App URL",access:{title:"Who Can Access",description:"Who can access the blocklet",useDefault:"Use default",defaultDescription:"Use the application's default configuration",whoCanAccess:{all:{title:"Accessible to all",description:"Open to the world anyone can access without passport"},owner:{title:"Only me can access",description:"You must provide owner passport to access this application"},invited:{title:"Only invited people can access",description:"You can invite members later in the admin page"}},publicToStore:"Public On Store",publicInstanceTip:"The access address of this blocklet will be displayed in the Store (along with your DID for accepting donations)",updatedTip:"Access Control Modified"},changedTip:"Configuration updated, please restart Blocklet",missingRequired:"Missing required configuration to start the blocklet",gotoFix:"Go to fix",environment:{key:"Configuration key",value:"Configuration value",keyValueRequired:"Configuration key and value must be specified",invalidKey:"Configuration key must not start with BLOCKLET_ or COMPONENT_",deleteForbidden:"This configuration is required and should not be deleted",tip:"Configurations prefixed with BWA_ should not contain sensitive information because they will be sent to the browser"},dangerZone:"Danger Zone",blockletTypeChangeTip:"Wallet Type will be changed to <b>{value}</b>",appDidChangeTip:"This operation will change the DID of the application, which will lead to the following problems. Please confirm after careful evaluation:",appDidChangeTipL1:"The user's account connected to this application will change",appDidChangeTipL2:"The DID domain name of the application will change, and the original domain name will become invalid",appSkChangeTip:"You are changing application secret key",walletTypeTitle:"Update Wallet Type",appSkTitle:"Update Application Secret Key",sharedToAllComponents:"Will be shared to all components",session:{ttl:"Login session validity period (user will be asked to login again if they have no activity on this site for {day} days)",day:"{day} day",days:"{day} days"},clearCache:{name:"Cache Management",purpose:"Manage files cached in router and blocklet services",title:"Confirm Cache Clear?",action:"Clear Cache",success:"Successfully cleared {count} cache entries",description:"Are you sure you want to clear cached files in router and blocklet service? this operation may cause slight performance downgrade in the short term"}},overview:{source:"Source",deployedFrom:"Deployed From",accessControl:"Access Control",viewInStore:"View It In Store"},diskInfo:{empty:"Disk info not available now!",appDir:"App Directory",dataDir:"Data Directory",logDir:"Log Directory",cacheDir:"Cache Directory"},runtimeInfo:{noRunning:"Runtime information will be available when blocklet is running!",memoryUsage:"Memory Usage",cpuUsage:"CPU Usage",uptime:"Uptime",port:"Port",processId:"Process ID"},dist:{downloadLink:"Download Link",verify:"Verify"},status:{added:"Added",waiting:"Waiting",downloading:"Downloading",extracting:"Extracting",installing:"Installing",upgrading:"Upgrading",installed:"Installed",created:"Created",starting:"Starting",running:"Running",stopping:"Stopping",stopped:"Stopped",error:"Error",deleting:"Deleting",corrupted:"Corrupted",purchasing:"Waiting for purchase",purchased:"Purchased",verifying:"Verifying purchase",resource:"Resource"},list:{download:"Download",star:"Star"},component:{container:"Global Config",showContainer:"Show Global Config",didSpaceConfig:"Configure DID Spaces",didSpaceConfigTip:"Complete the following authorize process to store application data in DID Spaces",didSpaceConnected:"Storage being authorized to: {endpoint}",checkUpdateTitle:"Check for Updates",updateTitle:"Update Blocklets",noUpdate:"No Blocklets to update",add:"Add Blocklet",selectComponent:"Select Blocklet",selectRegistry:"Select Blocklet Store",selectRegistryTip:"You can switch blocklet store to see more components",selectInstance:"Select Instance",selectInstanceTip:"You can select an existing instance or create a new instance. Existing instances will use previously saved configuration and data",newInstance:"Create New Instance",noComponent:"No Blocklets",mountPoint:"What's the mount point?",mountPointTip:"If you set mount point to '/my-prefix', then all requests that begins with that mount point will be routed to the selected Blocklet",delete:"Delete Blocklet",deleteDescription:"This Blocklet will not be accessible after deletion. Confirm delete?",purchase:"Payment Required",tip:{stopBlocklet:"Please stop running Blocklet first",requiredBy:"The Blocklet is required by {name}"},choose:"Choose",upgrade:"Upgrade",addWithName:"Add Blocklet To {name}",relatedComponents:"Related Blocklets",required:"Required",noDependencies:"{name} doesn't have any dependencies",installed:"Installed",installingTip:"Installing component, please wait...",installingCanCloseWindowTip:"Installing component in the background, you can safely close this window",installSuccessTip:"Congratulations, the component was installed successfully!",missDownloadTokenTip:"Cannot add paid component without valid download token",purchaseComponentSecondCheckTip:"Please present your blocklet purchase NFT to continue",installComponentError:"There was an error installing the component, please retry again",downloadComponentError:"There was an error downloading the component, please retry again",addComponentTip:{introduction:"Welcome to the Add Component Wizard",isPurchase:"You need to Verify NFT before use <b>{name}</b> as a component;",belowInformation:"Below is the information for the component: ",verifyNFT:"Please select the Verify NFT method",config:"Please fill in the configuration of the component",environment:"Please fill in the environment of the component",fromUrl:"Add Blocklet From Url"},addNext:"Add {name}",upgradeNext:"Upgrade {name}",setting:"Settings"},router:{urlPath:"URL Path",noRunning:"The blocklet is not currently started. Unable to access through the following address!",securitySetting:"Security Setting",checkUrlAccessible:"Check the accessibility of the address",urlInaccessible:"It may be due to network reasons, the address is temporarily inaccessible",noAccessibleUrl:"No accessible URL",domainLockTooltip:"The system generated Domain cannot be edited.",urlLockTooltip:"The system generated URL Path cannot be edited.",showAllDomains:"Show all domains",showAllDIDs:"Show all DIDs",currentDomainTip:"You are accessing the current page through this domain"},export:{title:"Export Blocklet",name:"Bundle Name",nameTip:'e.g. "my-blocklet-name" or "@my-scope/blocklet-name"',result:"What's next",exportSource:"Export Source",success:"Blocklet successfully exported",resultTipStart:"With",resultTipEnd:"you can build and publish this blocklet within minutes",uploadedComponentTip:"Directly uploaded components cannot be exported:"},migrate:{title:"Migrate Application",scan:"Connect your DID Wallet to generate a key-pair for this application",confirm:"Review this operation on your DID Wallet",success:"Your application is successfully migrated, the page will be refreshed in {sec} seconds",intro:{l1:"Click here",l2:"to migrate your application to new version (changes are disabled before the migration completes)",l3:"1. The application DID will be fully controlled from your DID Wallet.",l4:"2. The application data will be migrated, and no further changes required.",l5:"3. The new application structure will give you more flexibly when change components.",l6:"4. Please do not change component mount points before component new version is out."},tip:{duplicate:"Find duplicate component {name}, please delete useless components and migrate again",running:"Please stop blocklet before migration"}},error:{isRunning:"Blocklet is running, please stop it first",isInProgress:"Blocklet is in progress, please wait for it to finish"},publish:{connectOrUpload:"Connect or Upload",projectSettings:"Project Settings",autoUploadTip:"Upload release to connected Blocklet Stores automatically after creation",possibleSameStoreTip:"Try resolving dependency blocklets to the same Blocklet Store before each uploading when possible",needProjectId:"Please create a project first",developerInfo:"Developer Information",branding:"Branding",brandingHelp:"More information about the blocklet will be displayed in the Store",download:"Download {name}",deleteStoreTip:"Are you sure you want to remove {name} from the connect Store list?",delete:"Delete {name}",copyInstallUrl:"Copy Install URL",createResource:"Create Resource",blockletStudio:"Blocklet Studio",tenantScope:"Tenant",addResource:"Add Blocklet",productTitle:"Product",versionTitle:"Versioning",imgTitle:"Images",resourceTitle:"Resources",resourceSelect:"Select resource from following blocklets",resourceUpload:"Upload resource from your disk (index.html is required in the archive)",blockletEmptyTip:"There aren’t any blocklets here",createBlockletTip:"You can create new blocklet through existing resources, components, and configuration in this application",createBlocklet:"New blocklet",reconnectStoreTip:"After reconnecting, a new developer will be bound. Are you sure you want to reconnect?",disconnectStoreTip:"After disconnecting, the blocklet will be removed from the store. Are you sure you want to disconnect?",componentNotRunning:"Blocklet {name} is not running, please start it first",allComponentsNotRunning:"Blocklets is not running, please start it first",releaseEmptyTip:"There aren't any releases here",resourceEmptyTip:"No available resources",viewLastRelease:"View last release",createReleaseTip:"You can create a release of the blocklet, along with release notes and resources, for other people to use",createRelease:"Create release",deleteReleaseTip:"The release cannot be recovered after deletion",createBlockletDid:"Create from DID Wallet",createReleaseSuccess:"Release created successfully",saveDraftSuccess:"Draft saved successfully",packTip:"Currently blocklets can be installed directly as applications. Components and application configurations will be automatically included in the Blocklet",resourceTip:"Currently, as a Resource Blocklet, it cannot be directly installed from the Store.",whyCantSeeInStore:"You need to publish the blocklet on connected store before you can see it in the store listing page",whyCantSeeResourceBlockletInStore:"Resource Blocklet are hidden from the store listing page by default",resourceChangedWarning:"You have modified the resource, please save it in time",install:"Install {name}",installResourceTip:"Install Url:",installResourceTip2:"If you want to see more tips, please visit",installResourceHelp:"Help Document",componentIncluded:"Included",componentForceRequired:"Required",steps:{branding:"Describe the basic information of your Blocklet. This information will be presented to users in the store.",introduction:"A clear introduction can effectively highlight your Blocklet. You can use Markdown syntax to write and preview it.",resources:"Please select the resources that need to be associated with the current Blocklet, as these resources will be installed along with the Blocklet.",blocklets:"Please select the Blocklets that need to be associated and installed when installing the current Blocklet.",version:"Set the release version and the change log."},connect:{title:"Create Blocklet DID",scan:"Scan the QR code below to generate Blocklet DID",confirm:"Confirm using DID Wallet",success:"Blocklet DID has been generated, please continue your operation"},deleteProject:{title:"Delete {name}",scan:"Scan the QR code below to delete {name}",confirm:"Confirm using DID Wallet",success:"Blocklet has been deleted, please continue your operation",description:"Are you sure you want to delete the Blocklet? Here are the issues you might encounter:",tip1:"The Blocklet cannot be recovered after deletion.",tip2:"You will no longer be able to publish new versions to the deleted Blocklet, which means that the Blocklet will not be updated in the Store anymore.",tip3:"Deleting the Blocklet will not affect its currently published version in the Store."},saveDraft:"Save Draft",releaseNote:"Release Note",errorTip:{noDid:"Blocklet DID is required",noFirstDid:"Please create Blocklet DID first",noTitle:"Blocklet Title is required",noVersion:"Blocklet Version is required",inValidVersion:"Invalid Blocklet Version",noResource:"Please select upload resource to be included in the blocklet",noDescription:"Blocklet Description is required",noNote:"Release Note is required"},uploadToStoreSuccess:"Blocklet upload to Store successfully, you need publish it in the Store",publishToStoreSuccess:"Blocklet published to Store successfully",connectStoreSuccess:"Blocklet Store connected successfully"}},dashboard:{nodeDid:"Node",ownerDid:"Owner",routingEngine:"Routing Engine",ownerNftURL:"Owner NFT",expirationLeft:"Expiration Left",startFromCrashTip:"Blocklet Server did not exit normally last time, please manually start the blocklets that needs to be run.",runtimeConfig:{blockletMaxMemoryLimit:"Blocklet Max Memory Limit",daemonMaxMemoryLimit:"Server Max Memory Limit",proxyMaxMemoryLimit:"Event Bus Max Memory Limit"}},store:{nameSort:"Name",popularSort:"Popularity",headerDescription:"Find and Install Your Blocklets",detail:{purchase:"Purchase {name}",open:"Open {name}",install:"Install {name}",upgrade:"Upgrade {name}",empty:"No introduction"},blockletRegistry:{changeFailed:"Change Blocklet Store Failed: ",addFailed:"Add Blocklet Store Failed: ",editFailed:"Edit Blocklet Store Failed: ",switchRegistry:"Switch Blocklet Store",addRegistry:"Add Blocklet Store",editRegistry:"Edit Blocklet Store",deleteRegistry:"Delete Blocklet Store",haveSameRegistry:"The same blocklet store exists",registryName:"Blocklet Store Name",registryUrl:"Blocklet Store URL",registryNameEmpty:"Blocklet Store name cannot be empty",registryUrlEmpty:"Blocklet store url cannot be empty",deleteDesc:'Confirm Delete blocklet store {name} ?<br/><span style="color: {color}">*After removing this blocklet store, you cannot update the apps installed from this blocklet store unless you add them again.</span>',confirmDesc:"Please input {name} to delete"},purchase:{title:"Purchase {name}",confirmed:"Your blocklet purchase NFT is verified",declined:"You do not provided valid the blocklet purchase NFT",waiting:"Waiting for purchase complete...",purchase:{title:"Purchase NFT",description:"Pay some token before installing this blocklet if you have not purchased this blocklet"},verify:{title:"Verify NFT",description:"Your NFT will be verified before installing this blocklet if you have purchased and hold the purchase NFT in your DID Wallet",auth:{title:"Purchase Credential Required",scan:"Connect DID Wallet to provide blocklet purchase NFT",confirm:"Review this operation on your DID Wallet",success:"Your purchase NFT is verified, and installing has started"}},auth:{title:"Purchase {name}",scan:"Scan following QRCode with your DID Wallet",confirm:"Confirm on your DID Wallet",success:"Purchase NFT sent to your DID Wallet"},launch:"Launch {name}",autoLaunch:"{name} successfully purchased, redirecting to launch page..."}},setting:{saveSuccess:"Settings Saved Successfully",unSavedTip:'There are unsaved changes, please click "Save Changes" to save them.',unSavedLeaveTip:"There are unsaved changes, are you sure to leave the page?",form:{name:"Name Your Server",nameRequired:"Server description is required",namePlaceholder:"Server Name",description:"Describe Your Server",descriptionHolder:"Server Description",descriptionRequired:"Server description is required",domain:"Your Server Domain Name",domainPlaceholder:"Server Domain Name",domainRequired:"Server domain is required",ipPlaceholder:"IP",ipRequired:"IP is required",registry:"Blocklet Store",registryPlaceholder:"Blocklet store to fetch blocklets",registryRequired:"Blocklet store is required ",registerUrl:"Blocklet Launcher URL",registerUrlPlaceholder:"Input the URL of your preferred Blocklet Launcher, you can use the official one safely",webWalletUrl:"DID Wallet URL",webWalletUrlPlaceholder:'Please input the URL of your hosted "DID Wallet", you can use the official one safely',nftDomainUrl:"NFT Domain URL",nftDomainUrlPlaceholder:'Please input the URL of your hosted "NFT Domain", you can use the official one safely',enableWelcomePage:"Enable welcome page",welcome:{switchLabel:"Welcome Page"},security:{switchLabel:"File System Isolation",switchTips:"After disabling this option, the file system of the Blocklet will no longer be in isolation, which may pose a risk of malicious software damaging the file system.",warningTips:"The file system isolation feature cannot take effect. Please upgrade the node.js version (current version is {version}) to v21.6.0 or higher."},upgrade:{title:"Upgrade Blocklet Server to {version}",description:"During the upgrade, your Blocklet Server will enter maintenance mode for a few minutes while the update is completed.",dialog:'Click on "confirm" to install the update. Blocklet Server will enter maintenance mode until the update is completed and return to production mode automatically.',confirm:"Upgrade",switchLabel:"Auto Update Check",enableBetaRelease:"Enable Beta Release",setup:"Preparing the upgrade",installing:"Installing Blocklet Server v{version}",restarting:"Restarting Blocklet Server",cleanup:"Migrating Blocklet Server data",verifying:"Verifying Blocklet Server v{version}",rollback:"Rollback Blocklet Server",complete:"Upgrade complete!",progress:"Upgrading {name}",check:"Check for Updates",latest:"You are running the latest version."},restart:{title:"Restart Blocklet Server",description:"During the restarting, your Blocklet Server will enter maintenance mode while the restart is completed.",dialog:'Click on "confirm" to restart. Blocklet Server will enter maintenance mode until the restart is completed and return to production mode automatically.',confirm:"Restart",setup:"Preparing the restart",verifying:"Verifying Blocklet Server",restarting:"Restarting Blocklet Server",cleanup:"Ensure everything is OK",rollback:"Cleanup the dirty state",complete:"Maintain complete!",progress:"Restarting {name}"},register:{titleAdded:"Added to Blocklet Launcher",title:"Add to Blocklet Launcher",description:"Once added, you can launch blocklets to this blocklet server from {url}.",descriptionOnAdded:"you can launch blocklets to this blocklet server from {url}.",btn:"Add",update:"Update",added:"Added",addSucceed:"Add succeed",updateSucceed:"Update succeed",detecting:"Detecting",timeout:"Detection timeout, please check if the blocklet launcher is started"},monitor:{diskThreshold:"Send alert when disk usage exceeds (%)",diskThresholdPlaceholder:"Please set the disk usage alert threshold"}},accessKey:{accessKeyId:"ACCESS KEY",lastUsed:"Last Used At",tip:"Please enter a name for this access key for future reference:",saveSecretTip:"This is the only time that your Access Secret key can be viewed and cannot be recovered. However, you can create new access keys at any time",iKnow:"I have copied and saved the Access Secret",showSecret:"Show Secret Access Key",hideSecret:"Hide Secret",title:"Delete Access Key",descriptionNoTime:"This will permanently delete the access key {key} with name {name}, which is (never used before)",description:"This will permanently delete access key {key} with name {name}, which is (last used on {time}, {timeAge})",confirm_desc:"Please input {name} to delete",remark:"Access Key Name",remarkInvalid:"Access Key Name is required"},webhook:{add:"Add Integration",delTitle:"Delete Integration",requiredError:"Please provide a valid {type}",confirm_desc:"Please input {name} to delete",test:"Test",description:"This will permanently delete integration with ID {id}",columns:{description:"ID",params:"Params",createdAt:"createdAt"}}},notification:{title:"Activities",empty:"No activities yet",viewAll:"View All",showRead:"Show Read",markAllAsRead:"Mark All as Read",markAsRead:"Mark As Read",proceed:"Proceed",checkingForUpdates:"Checking for updates...",installComponentError:"Not found uninstalled component {name}",installingComponent:"Installing component {name}",pushKit:{enable:"Enable PushKit notification",endpoint:"PushKit endpoint",endpointInvalid:"PushKit endpoint is invalid URL",testSuccess:"Test PushKit send successfully",testFailed:"Test PushKit send failed",testReceiver:"PushKit receiver",testSend:"Test push-kit send",inputTestReceiver:"Please input test receiver did",receiverRequired:"PushKit receiver is required",pushPath:"Api path for push-kit (default /api/push)",did:"PushKit Blocklet DID",customOptions:"Custom Options"},email:{enable:"Enable email notification",from:"Email sender",host:"SMTP server host",port:"SMTP server port",user:"SMTP server username",secure:"Enable secure connection",password:"SMTP server user password",fromRequired:"Email sender is required",fromInvalid:"Email sender is invalid",receiverRequired:"Email receiver is required",receiverInvalid:"Email receiver is invalid",hostRequired:"SMTP server host is required",hostInvalid:"SMTP server host is invalid",portRequired:"SMTP server port is required",portInvalid:"SMTP server port is invalid, port should be between 1 and 65535",userRequired:"SMTP server username is required",passwordRequired:"SMTP server user password is required",testSuccess:"Test email send successfully",testFailed:"Test email send failed",testReceiver:"Email receiver",testSendEmail:"Test email send",inputTestReceiver:"Please input test receiver email",disable:"Unsubscribe email notification",disableDescription:"After unsubscribe, you will no longer receive email notifications. To receive email notifications, you can subscribe it again on this page.",unsubscribe:"Unsubscribe email notification",unsubscribeDescription:"After unsubscribe, you will no longer receive any email notifications.",subscribe:"subscribe",subscribeDescription:"To receive email notifications, you can subscribe it again on settings page."},comingSoon:"More notification channel are under construction",unsubscribe:"Unsubscribe",unsubscribeSucceed:"Unsubscribe succeeded",unsubscribeFailed:"Unsubscribe failed",unsubscribeTokenRequired:"Unsubscribe token in required",unsubscribeTokenExpired:"Unsubscribe token is expired",unsubscribeTokenInvalid:"Unsubscribe token is invalid"},router:{routerSetting:"Domains & URLs",certSetting:"SSL Certificates",defaultSite:"Default",urlHelperText:"URL that do not start with HTTP/HTTPS are considered relative paths",empty:"Click on Actions to setup URL Mapping",healthy:{ok:"Blocklet or service is running",error:"Blocklet or service is not running or not installed"},service:{select:"Select Blocklet Services (Optional)",what:"Blocklet Services are pipelines executed against the request before redirecting to upstream blocklet"},nonProvider:{title:"Engine Change Warning",description:"If you change engine to none, your current page may not work properly because the previous engine will be stopped, are you sure to continue?",confirm:"I understand, continue"},validation:{urlRequired:"URL is required",redirectCodeRequired:"Redirect code is required",didRequired:"Blocklet is required",pathPrefixTooLong:"The URL Prefix cannot exceed {length} characters",pathPrefixCannotBeEmpty:"The URL Prefix cannot be empty",domainRequired:"Server domain is required",invalidUrl:"Please provide a valid URL",pathPrefixRequired:"URL prefix is required",redirectUrlRequired:"Redirect URL is required",rewriteUrlRequired:"Rewrite URL is required"},domain:{addSite:"Add Site",validate:{emptyTip:"Site domain cannot be empty",suffixTip:"Site domain cannot include {suffix}"},add:{title:"Add Domain Name",description:"Please provide a valid domain name",confirm:"Add",cancel:"Cancel",blocklet:"Select Blocklet",redirect:"Where to redirect the traffic?",port:"What port does your request handler need to listen to?",portTip:"This defaults to the main port of request handler, you can customize this",type:"Traffic Handler",component:"Select Component",pageGroup:"Page Group",pageGroupTip:"This component can render any group of pages listed above, leave empty to render all pages"},update:{title:"Update Site Domain",label:"Site Domain",description:"Please provide a valid site domain"},setup:{tipStart:"Add the DNS records for the domain",tipEnd:"as per the following guidelines",recordType:"Record Type",recordValue:"Record Value"},verify:{ok:"The domain resolution is normal",notResolved:"This domain neither resolved nor accessible, please check your DNS configuration"},https:{ok:"This domain has https enabled",bad:"This domain has not enabled https"},delete:{title:"Delete Site",description:'By confirming, you will delete your existing "{name}" site. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your site',confirm_desc:"Please input {name} to confirm"}},domainAlias:{nftDomain:"Automatic config with DID Domain",showTipHint:"How do I configure domain name resolution?",add:{title:"Add Additional Domain",domainDescription:"Please provide a valid domain name",forceTip:"Force add if domain name already exists",helperText:"If an HTTP or HTTPS URL is entered, it will be automatically converted into a domain name.",isDidDomainError:"This domain is a DID Domain. Please add it using the method for automatic domain configuration."},addCustomDomain:{name:"Custom Domain"},addDomainNFT:{showNFT:"Configure domain automatically",tips:"You can enter a domain purchased from DID Domain. If a DID Domain is detected, you must present the DID Domain NFT to continue.",connect:{title:"Please show your Domain NFT",scan:"Scan following QR code with DID Wallet to authorize to blocklet to use your domain",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},buyTip:"DID Domain will do the domain name resolution automatically, no need to configure it manually, and the application will update the resolution record of the domain name automatically when needed. If your don't have DID Domain NFT yet, ",buy:"buy it now!"},delete:{title:"Delete",description:"After removing a domain alias, access to that alias may not be handled properly."}},domainSecurity:{title:"Domain Security",cors:{title:"Allowed CORS Domains",description:'Domain list that can send cross origin requests to {name}, comma separated, use "*" to allow anyone, which is not recommended',domainInvalid:"Please input a valid list of domain names"}},rule:{add:{title:"Add URL Mapping",confirm:"Add",pathPrefix:"What's the URL Prefix?",pathPrefixTip:"If you set prefix to '/my-prefix', then all requests that begins with that prefix will be routed to the configured blocklet",blocklet:"Which Blocklet will be handling those requests?",port:"Which port of the blocklet will be handling requests?",portTip:"This defaults to the main port of blocklet, if your blocklet listens on multiple ports, you can customize this",responseType:"Response Type",responseBody:"Response Content",responseBodyTip:"Paste your response content here, should not exceed 4096 characters",responseBodyRequired:"Response content can not be empty"},delete:{title:"Delete URL Mapping",description:'By confirming, you will delete your existing "{name}" URL Mapping. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your URL Mapping.',confirm_desc:"Please input {name} to delete",cancel:"Cancel"},update:{title:"Update URL Mapping",confirm:"Yes, Update",cancel:"Cancel"}},cert:{name:"Certificate Name",domain:"Domain Name",action:"Action",commonName:"Common Name",boundDomains:"Domains",source:"Source",expired:"Expired",leftDays:" days left",issuedOn:"Issued On",expiryOn:"Expiry On",fingerprintAlg:"Fingerprint Algorithm",validityPeriod:"Validity Period",matchedSites:"Matched Sites",upload:"Manual Upload",publicCertHelperText:"Public certificates can be downloaded",nonPublicCertHelperText:"Non-public certificates cannot be downloaded",protectedCertHelperText:"Protected certificates cannot be edited",unprotectedCertHelperText:"Unprotected certificates can be edited",issuing:"Certificate being generated",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"},table:{nodata:"No data"},delete:{title:"Delete Certificate",description:"Confirm delete certificate of domain {domain}? Deleting it may affect related services. Please confirm it's safe before proceeding with the deletion.",confirm:"Confirm"},nginx:{title:"Update Certificate",titleAdd:"Add Certificate",pem:"SSL Certificate File",pemTip:'Please drop your server certificate file here, it should ends with ".pem" or ".crt"',key:"Private Key File",keyTip:'Please drop your server private key file here, it should ends with ".pem" or ".key"',confirm:"Save",cancel:"Cancel",invalidFile:"You have selected an invalid file",empty:"No file selected yet",source:"Source",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"}},detail:{title:"Certificate Details"},genLetsEncryptCert:{title:"Generate Let's Encrypt certificate",dnsTip:"Please make sure the domain name has point to the current Blocklet Server.",description:"Adding a certificate will make the service more secure, and Blocklet Server will automatically renew the certificate before it expires."}},gateway:{reqLimit:{status:{true:"Enabled",false:"Disabled"},switchLabel:"Request Limit",rate:"Request Limit({rate} Request/Second)",ipHeaderLabel:"Customize client IP header(Optional)",ipHeaderDesc:"If the Blocklet Server is running behind some proxies, you can set the header of the client's real IP here. Optional, leave empty to use default."},cacheEnabled:{switchLabel:"Enable Gateway Cache"}}},noMatch:{desc:"We can't find the page that you're looking for"},health:{connectionErrorTip:"Blocklet Server can't connect to the network, please check if Blocklet Server has been stopped or there is a network issue",connectionRecoveryTip:"Blocklet Server connectivity has been recovered",connectionStoppedTip:"Blocklet Server has been stopped",wrongAccessUrlTip:"Blocklet Server access address is wrong, please use the correct access address"},debug:{title:"Your Blocklet Server is up and running!"},team:{invite:"Invite New",add:"Add New",member:{name:"Name",passport:"Passport",passports:"Passports",lastLogin:"Last Login",lastLoginIp:"Last Login IP",source:"Register Source",source_derived:"Derived from oauth",source_wallet:"DID Wallet",filter:"Filter by",forbidLogin:"Forbid Login",forbidLoginDescription:"The user will not be able to connect to this application",allowLogin:"Allow Login",allowLoginDescription:"The user will be able to connect to this application",updateRole:"Update Role",deleteUser:"Delete User",deleteUserDescription:'Confirm delete user "{name}"?',revokePassport:"Revoke Passport",revokePassportDescription:"Once the passport is revoked, the passport holder can not use it to login again, are you sure to continue?",enablePassport:"Enable Passport",enablePassportDescription:"Once the revoked passport is enabled again, the passport holder can use it to login again, are you sure to continue?",passportPermissionTitle:"The passport has the following permissions:",search:"Search Member",hideBlockedMember:"Hide Unapproved Members",inviteDialog:{createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},error:{passportEmpty:"Passport should not be empty"},connectedAccounts:"Connected Accounts",connections:"Connections",federated:"Federated",switch:{did:"Switch DID",profile:"Switch Profile",passport:"Switch Passport"},settings:{notification:"Notifications",email:"Send email to me when some events happen",wallet:"Send notification to my wallet when some events happen",phone:"Send text message to me when some events happen",webhook:"Webhooks",add:"Add new webhook",url:"Custom URL",slack:"Slack Webhook",tested:"Test message sent"},activeUserSessions:"Active User Sessions",forceLogout:"Force logout",forceLogoutDescription:"Confirm to force logout this user?"},transferNode:{name:"Transfer Ownership",inviteDialog:{title:"Transfer Blocklet Server",tips:{progress:"Transfer the server needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the server with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and Blocklets.",revoke:'If you want to withdraw the transfer invitation, you can delete the invitation link in the "Team -> Members -> Inviting" page.'},createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},delegateDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize server to transfer server ownership NFT.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"}},transferApp:{name:"Transfer Ownership",transferDialog:{title:"Transfer Application",tips:{progress:"Transfer the application needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the application with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and settings."},createTransferLink:"Generate Transfer Link",createSuccessTip1:'The transfer link is successfully created, the invitee must use <a style="color: rgb(29, 193, 199)" target="_blank" href="https://www.didwallet.io/">DID Wallet</a> to receive the app ownership',createSuccessTip2:"Please click to copy and send the link to the invited member, please note that this transfer link can not be reused and will expire on {expireDate}. Your transfer link will only be shown once and will not be viewable again after closing this dialog",createSuccessTip3:"After the transfer is successful, the application will automatically restart to make the changes take effect",link:"Transfer Link",iKnow:"I have copied and saved the link"},connectDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize application to transfer ownership.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},receiveDialog:{title:"Receive Application Ownership",scan:"Scan following QR code with DID Wallet to receive the application ownership.",confirm:"Confirm on your DID Wallet",success:"Receive Ownership Successfully"},successTitle:"You have become the new owner of this application",visitDashboard:"Visit Application Dashboard"},permission:{create:{title:"Create Permission",description:`Format: <action>_<resource>
1495
- e.g. 'query_user', 'mutate_user'`},delete:{title:"Delete Permission",description:"Confirm delete {name}?"},error:{actionEmpty:"action cannot be empty",resourceEmpty:"resource cannot be empty",permissionTooLong:"permission cannot exceed {length} characters",descriptionTooLong:"description cannot exceed {length} characters"}},passport:{create:{title:"Create Passport",titleTip:"Title cannot be modified after created, recommended within 14 letters"},bind:{title:"Bind Permission",roleTip:"You will get all the permissions of the selected passport after binding",permissionTip:"You will get the selected permissions after binding",transferLeftTitle:"All permissions",transferRightTitle:"Granted permissions"},delete:{title:"Delete Passport",description:"The passports holds by user will lose all permissions after it is deleted. Are you sure to continue?"},error:{titleEmpty:"title cannot be empty",titleTooLong:"title cannot exceed {length} characters",descriptionEmpty:"description cannot be empty"},issuance:{pending:"Pending",create:{title:"Generate Link"},delete:{title:"Delete Receive Link",description:"Confirm delete {link}?"}},issue:"Issue Passport",disableIssuance:"Disable Passport Issuance",enableIssuance:"Enable Passport Issuance",disableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be disabled',enableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be enabled',trustedPassportIssuers:"Trusted Passport Issuers",trustedIssuers:"Trusted Issuers",trustedFactories:"Trusted NFT Collections",trustedFactoriesTip:"Manage trusted NFT Collections that can be used to exchange for a passport",searchFactoryAddress:"Search Collection DID",configFactories:"Config Trusted NFT Collections",configFactoriesTip:"Allow users to exchange NFTs for passport",factoryAddress:"NFT Collection Address",factory404:"NFT Collection not found",factoryAddressTip:"The NFT Collection address must exist on ArcBlock Main Chain",role:"Passport Type",ttl:"Passport Expire Policy",ttlNever:"Never Expire",ttlMint:"Since NFT Purchase",ttlExchange:"Since Passport Exchange",ttlNeverTip:"The passport will be valid until revoked",ttlMintTip:"The passport will be valid since the NFT is purchased until you specified ttl or revoke",ttlExchangeTip:"The passport will be valid since user successfully exchanged until you specified ttl or revoke",ttlTip:'"365d" means 365 days, you can also use "30 days" or "24h"',validUntil:"Valid until: {date}",externalPassport:"External Passport",notTrustedIssuerTip:"The passport cannot be used because the issuer is not on the list of trusted issuers",issuerDid:"Issuer DID",addNodeToTrustedIssuers:"Add current server as a trusted passport issuer",revoked:"Revoked",noPermission:"No permission to perform this operation",shouldNotDeleteCurrent:"You can not revoke your passport currently in use",mappingRule:"Mapping rule",defaultRule:"Default rule",search:"Search Passport",searchIssuerDid:"Search Issuer DID",issueBy:"Issue by {name}",configColor:"Config Passport Color",configColorTip:"Customize the color of the passport",color:"Passport Color",description:"Use this passport to connect {teamName} as {title}"},inviting:{link:"Invite Link",inviter:"Inviter",delete:{title:"Delete Invite Link",description:"Confirm delete {link}?"},disabledTip:"Invitation is not enabled"},whoCanAccess:{all:{title:"Accessible to all"},owner:{title:"Owner only"},invited:{title:"Invited user only"}}},launcher:{provider:"Provider",adminUrl:"URL"},session:{forbidLogin:"You have been blocked from access this server"},launchBlocklet:{appInfo:"Application Information",appInfoDesc:"Confirm the application information",author:"Application Author: {author}",setup:"Setup Blocklet",redirect:"Redirect",alreadyRunning:"Application {name} is already running on this Blocklet Server",alreadyInstalled:"Application {name} is already installed on this Blocklet Server",alreadyExists:"This application already exists, redirecting...",purchased:"Already Purchased",purchase:"Purchase",nextStep:"Next Step",agreement:"License Agreement",agreeAll:"Agree & Continue",installing:"Installing {appName} on {serverName}, it may take minutes to complete, please stay tuned...",redirecting:"{appName} is successfully installed, now starting...",start:"Launching",launch:"Install Blocklet to Server",launchSuccess:"{appName} is successfully launched!",installSuccess:"Blocklet is successfully installed and launched on {serverName}",openInRegistry:"View in Blocklet Store",subTitle:"Ready to install Blocklet {appName} on {serverName}",installingSubTitle:"{appName} installing",access:"Open the application",installRelatedComponents:"Install related Blocklets",viewApplication:"View Application",newVersion:"New Version",newVersionDesc:"The application already exists, but the current version can be upgraded",upgradeNow:"Upgrade Now",later:"Later",introduction:"Introduction",welcome:"Welcome to the Blocklet Launch Wizard",accept:"I agree to the Blocklet EULA",license:"Application License",next:"Agree to the EULA and continue",purchaseApp:"Purchase Blocklet",setupAppDesc:"Initialize your Blocklet",launched:"Complete",confirmInstall:"Confirm Installation",dialog:{title:"Become App Owner",nftFreeDescription:"Please present app space NFT and create app account to continue",nftPaidDescription:"Please present app space NFT and app purchase NFT to continue",freeDescription:"Please create app account to continue",paidDescription:"Please present app purchase NFT and create app account to continue",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully",authorizationTimeout:"Authorization timeout"},waiting:{verifying:"Verifying app meta...",downloading:"Downloading app bundle...",downloadingComponent:"Downloading {name}",extractingComponent:"Extracting {name}",extracting:"Extracting app bundle...",installing:"Installing app components...",installed:"Installed",starting:"Starting the app...",done:"Waiting for app ready..."},error:{loadMetaFailed:"Load app information failed",appMetaNotFound:"No information found for this app",downloadFailed:"Failed to download the app, please try again",installFailed:"Failed to install the app, please try again",startFailed:"Failed to start the app, please try again",launchFailed:"Failed to launch the app, please try again",installedButStopped:"The app is installed successfully, but cannot be started. You can start it manually after resolving blocking issues",installedButError:"The app is successfully installed, but failed to start",restoreFailed:"Failed to restore app, please try again",resourceBlocklet:"This blocklet cannot be launched directly, but you can add it into existing application."},steps:{introduction:"Introduction",installApp:"Install Application",purchaseSpace:"Purchase Space",prepareSpace:"Prepare Space"}},issuePassport:{title:"Receive Passport",description:"Use DID Wallet to receive the passport issued by {name}",dialog:{scan:"Use your DID Wallet to claim the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet",loginWithPassport:"Connect with this Passport",autoClose:"Page will auto close in {seconds}s",autoJump:"Page will auto jump in {seconds}s"}},lostPassport:{title:"Lost Passport",description:"The owner of {name} can scan the QR code to retrieve the passport, members please contact the owner to reissue the passport",dialog:{title:"Recover Passport",scan:"Use your DID Wallet to recover the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet"},return:"Connect with passport",selectPassport:"Select passport",receivePassport:"Receive passport"},invite:{message:"{name} invite you to be the {role} of {dapp}",success:"You have successfully joined {dapp}",receive:"Receive with",validUntil:"Valid until:",viewPermission:"View Permission",emptyPermission:"Empty Permission",open:"Open",description:{step1:"Download and setup your {wallet}",step2:"Click above button to receive passport",step3:"Login in {dapp} with received passport"},transferNFTDialog:{title:"Accept Blocklet Server {name}",scan:"Connect the Launcher to complete the reception of the Blocklet Server.",confirm:"Review this operation on your DID Wallet",success:"Connect successfully, waiting for confirmation of receiving the Server"}},receive:{dialog:{title:"Use your DID Wallet to receive passport",scan:"Connect your DID Wallet to receive passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},navigation:{navigation:"Navigation",access:"Access",members:"Members",passport:"Passport",analytics:"Analytics",dashboard:"Dashboard",studio:"Studio",blockletService:"Blocklet Service",actionFailed:"Action Failed",form:{title:"Title",titlePlaceholder:"Please input navigation title",titleTooLong:"Title length should small than {len}",icon:"Navigation Icon",iconPlaceholder:"Please input navigation icon",invalidIcon:"Icon is invalid",findMoreIcon:"Find more icons",link:"Link",linkPlaceholder:"Please input navigation link",invalidLink:"Link is invalid",component:"Component",componentPlaceholder:"Please select navigation component",role:"Role",rolePlaceholder:"Please select navigation role",locale:"Locale",localePlaceholder:"Please input locale need to add",localeExists:"{value} is already exists"},action:{add:"Add navigation",addSub:"Add sub navigation",edit:"Edit navigation",hide:"Hide navigation",show:"Show navigation",del:"Delete navigation",new:"New",noAddSub:"Uninstalled component can't add sub navigation",noEdit:"Uninstalled component can't edit",noDel:"Not allowed delete built-in navigation",reset:"Reset",restConfirmTitle:"Do you want to clear all custom navigation?",restConfirmDesc:"After clearing, the navigation will be restored to Blocklet's original default configuration.",resetSuccessful:"Reset successful"}},storage:{spaces:{tips:"Tips",label:"Enter DID Spaces Gateway",connected:{title:"Connected DID Spaces",tag:"Connected"},connectedWithName:"You have successfully connected to {name}",addedWithName:"You have successfully added {name}",connects:"Connect",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"},provideNFT:{title:"Please show the DID Spaces NFT for {appName}",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} show DID space NFT",success:"Connected successfully"},backup:{title:"Backup",records:"Backup Records"},autoBackup:{title:"Auto backup",enabled:"Automatic backup is on",disabled:"Automatic backup is off"},autoCheckUpdate:{title:"Automatically check for new version notification",enabled:"Automatically check for new version is on",disabled:"Automatically check for new version is off"},backupSuccessfully:"Backup successfully",restore:"Restore",restoreSuccessfully:"Restore successfully",gateway:{title:"Gateway",select:"Select a DID Spaces",add:{title:"Add DID Spaces",label:"Enter the url of the DID Spaces",failed:"Add DID Spaces failed",invalidUrl:"Invalid DID Spaces gateway url",duplicate:"DID Space({name}) already exist"},delete:{title:"Delete gateway",succeeded:"Delete DID Spaces{name} Success",failed:"Delete gateway failed",failedForSelected:"Unable to delete a selected DID Spaces"},connect:{title:"Connect DID Spaces",add:"Connect to DID Spaces now",addTips:"You are not connected to any Space yet",switch:"Switch DID Spaces",switchTips:"You are connected to {name}",connected:"Connected"},switch:{failedForMismatchSpace:"Please connect to the correct Space{name}"},connectTo:"Connect to DID Spaces"},strategy:{title:"Backup Strategy",autoBackup:"Auto backup",backupNow:"Backup now",viewBackupFiles:"View backup files"},progress:{title:"Backup progress"},record:{title:"Backup records",emptyData:"No records"},notYet:"You don't have a backup in progress yet...",connect:{now:"Connect now",title:"Connect DID Spaces",provider:"Provide your DID Spaces to start backups",providerForStorage:"Please connect your DID Spaces",useWallet:"Connect with DID Wallet",useWalletReconnect:"Reconnect with DID Wallet",useSpaceGateway:"Connect using the DID Spaces gateway",useSpaceGatewayReconnect:"Reconnect using the DID Spaces gateway",switchToSpace:"Switch to Space",switchToSpaceSucceeded:"Switched to Space{name}",succeeded:"You have successfully connected to DID Spaces",disconnect:"disconnect"},disconnected:{tag:"Disconnected",reconnectNow:"Reconnect Now"}}},log:{lastDays:{1:"Last 1 Day",7:"Last 1 Week"}},oauth:{commonSettings:"Common Settings",save:"Save",saveSuccess:"Save successfully",saveFailed:"Save failed",issued:"Issued",thirdPartyLogin:"Third party login",alreadyBindOAuth:"Already bind third party login",alreadyBindWallet:"Already bind DID Wallet",auth0:{enable:"Enable Auth0 login",domain:"Domain",domainDescription:"Auth0's domain is required",clientId:"Client ID",clientIdDescription:"Auth0 OAuth application client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Auth0 OAuth application Client Secret is required"},github:{enable:"Enable Github login",clientId:"Client ID",clientIdDescription:"Github OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Github OAuth application Client Secret is required"},google:{enable:"Enable Google login",clientId:"Client ID",clientIdDescription:"Google OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Google OAuth application Client Secret is required"},apple:{enable:"Enable Apple login",teamId:"Team ID",teamIdDescription:"Apple OAuth application Team ID is required",serviceId:"Service ID",serviceIdDescription:"Apple OAuth application Service ID is required",keyId:"Key ID",keyIdDescription:"Apple OAuth application Key ID is required",authKey:"Auth Key",authKeyDescription:"Apple OAuth application Auth Key is required",bundleId:"Bundle ID",bundleIdDescription:"Apple OAuth application Bundle ID is required"},comingSoon:"More login methods are under construction",moreLogin:"More Login",federated:"Federated Login",oauth:"Third Party Login",runTest:"Test"},expiration:{mobile:{tips:{success:"{validity}",warning:"{validity}",error:"Expired"},loadFailed:"Retry!"},desktop:{tips:{success:"Subscription will expire after {validity}",warning:"Subscription will expire after {validity}",error:"Subscription Expired"},loading:"Load subscription...",loadFailed:"Failed to load subscription info, please retry!",nextInvoice:"Next Invoice: {date}"}},analytics:{trend:"Trends",detail:"Breakdown",traffic:{totalRequests:"Total Requests",validRequests:"Success Requests",failedRequests:"Failed Requests",uniqueVisitors:"Unique Visitors",uniqueFiles:"Unique URLs",uniqueReferrers:"Unique Referrers",uniqueNotFound:"Unique 404",uniqueStaticFiles:"Unique Static Files",logSize:"Log Size",bandwidth:"Bandwidth"}},federated:{inviteJoinFederatedLogin:"Invite to join federated login",inviteJoinFederatedLoginDescription:"Copy the following address and fill it in the application where you need to join to apply for federated login.",federatedLogin:"Federated login",joinFederatedLogin:"Join federated login",joinFederatedLoginDescription:"Please enter the federated login address provided by Master Blocklet to join the federated login",quitFederatedLogin:"Quit federated login",quitFederatedLoginDescription:"After quit federated login, normal login is always available",federatedJoinAppUrl:"Federated login join appUrl",federatedJoinAppUrlRequired:"Please input federated login join appUrl",failedToGetFederatedLoginAppUrl:"Failed to get federated login join appUrl",federatedJoinAppUrlInvalid:"Federated login appUrl is invalid",siteDetail:"Site detail",approveToJoinLogin:"Approve to join federated login",approve:"Enable login",revoke:"Disable login",enableFederatedLogin:"Enable federated login",disableFederatedLogin:"Disable federated login",enableFederatedLoginDescription:"After enable federated login, this site will be auto login",disableFederatedLoginDescription:"After disable federated login, this site will not be auto login",enableFederatedAutoLogin:"Enable automatic login",enableFederatedAutoLoginDescription:"After enable automatic login, if there is currently a unified login status, the site will automatically log in the identity of the federated login",disableFederatedAutoLogin:"Disable automatic login",disableFederatedAutoLoginDescription:"After the automatic login is turned off, the site will not automatically log in the user information of the unified login, and you can still choose to manually click to log in with the identity of the federated login",info:{appId:"APP DID",appPid:"Permanent ID",migratedFrom:"Also Known As",appName:"Blocklet name",appDescription:"Blocklet description",appUrl:"Blocklet url",appLogo:"Blocklet logo",did:"Blocklet DID",serverId:"Blocklet Server ID",serverVersion:"Blocklet Server version",version:"Blocklet version",appliedAt:"Apply at",status:"Status"},status:{pending:"Pending",approved:"Approved",rejected:"Rejected",revoked:"Revoked"},disbandFederatedLogin:"Disband federated login",disbandFederatedLoginDescription:"After disband federated login, all member site will quit federated login automatically"},optionsOrder:{1:"Option One",2:"Option Two"}},yxt={blocklet:{restoreBlocklet:{title:"Restore Blocklet",description:"Please select the blocklet you want to restore",verify:{title:"Verify Ownership",subTitle:"Verify ownership of the blocklet with your DID Wallet",verify:"Verify",reconnect:"Try another blocklet",scan:"Scan QR code with your DID Wallet to prove ownership",confirm:"Sign delegation to allow server to download and decrypt the backup",success:"Ownership verified, the restoring is in progress",exists:"This blocklet already exists on this server and restore is aborted",open:"Visit Blocklet",overwrite:"Overwrite"},overwrite:{title:"Overwrite existing blocklet?",description:"The blocklet you are restoring already exists on this server, do you want to overwrite it? The exiting blocklet will be deleted first if you continue"},restore:{title:"Restore Blocklet"}},restoreFromServer:{selectTitle:"Select Application",description:"Please select the application you want to restore",backupIn:"Backup in"},restoreFromSpaces:{title:"Restore from DID Spaces",navSubTitle:"Restore",connect:{title:"Connect DID Space",subTitle:"Jump to DID Spaces, and select the blocklet you want to restore.",select:"Select DID Spaces Gateway",connect:"Connect"},selectBlocklet:{title:"Select App"},restore:{title:"Restore App",subTitle:"The app is being restored",completeTitle:"Everything is Ready",installedTitle:"Successfully restored!",installedSubTitle:"But still needs some configurations to start",support:'If retrying does not work, please ask help in the <a href="{communityLink}" target="_blank">community</a> or contact us at <a href="mailto: {supportEmail}">{supportEmail}</a>.'},nftAuthDialog:{title:"Please present your App Space NFT",scan:"Scan QR code with your DID Wallet to present your NFT",confirm:"Confirm on your DID Wallet",success:"NFT successfully verified!"},progress:{waiting:"Waiting for restore...",restoring:"Restoring...",importData:"Importing data...",downloading:"Downloading files, progress: {progress}",importSuccess:"Successfully imported!",installing:"Installing..."}}},server:{checkUpgrade:"Check new version"}},Co=e=>Nle($le(...e)),vxt={en:Nle($le(gxt,yxt)),ar:async()=>{const e=await Promise.all([yn(()=>import("./ar-CEz-3AyV.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./ar-DEFG_HSF.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},de:async()=>{const e=await Promise.all([yn(()=>import("./de-Di4pToxm.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./de-BXx5XWMv.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},es:async()=>{const e=await Promise.all([yn(()=>import("./es-CPDKeKrG.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./es-dYDfzHE0.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},fr:async()=>{const e=await Promise.all([yn(()=>import("./fr-9RG8cAa6.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./fr-DGLilU-8.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},hi:async()=>{const e=await Promise.all([yn(()=>import("./hi-DJLNiG5V.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./hi-EiYI5FnU.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},id:async()=>{const e=await Promise.all([yn(()=>import("./id-TqWAFNjj.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./id-BHuBzbF-.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},ja:async()=>{const e=await Promise.all([yn(()=>import("./ja-BSnhR_mh.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./ja-BeNRi6CF.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},ko:async()=>{const e=await Promise.all([yn(()=>import("./ko-gjYVLUHm.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./ko-BGPBfmUw.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},pt:async()=>{const e=await Promise.all([yn(()=>import("./pt-B-XCpQDv.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./pt-BmW9xdbz.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},ru:async()=>{const e=await Promise.all([yn(()=>import("./ru-DSPtM6j0.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./ru-DufkUHOM.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},th:async()=>{const e=await Promise.all([yn(()=>import("./th-CxPqMbkk.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./th-Dl-J4TkD.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},vi:async()=>{const e=await Promise.all([yn(()=>import("./vi-B8erxshV.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./vi-BMeJuBa9.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},zh:async()=>{const e=await Promise.all([yn(()=>import("./zh-XzadN7R3.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./zh-BDoN11lM.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},"zh-TW":async()=>{const e=await Promise.all([yn(()=>import("./zh-tw-BTlMDwjI.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./zh-tw-Dg9g_7UM.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)}},A1=vk({typography:{fontSize:14,button:{textTransform:"none"}},overrides:{MuiTableRow:{root:{"&:nth-child(even)":{backgroundColor:"rgba(0, 0, 0, 0.02)"}},head:{backgroundColor:"transparent"}}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}},breakpoints:{values:{xs:0,sm:600,md:960,lg:1280,xl:1920}}}),bxt=bu`
1494
+ `;function uxt(){const{t:e}=vo(),{info:t={},api:n}=Ol(),[r,i]=U.useState(),{status:o}=t;U.useEffect(()=>{o===rn.SERVER_STATUS.START_FROM_CRASH&&(i(!0),n.resetNodeStatus().catch(s=>{console.error(s.message)}))},[o]);const a=()=>{i(!1)};return r?I.jsx(MO,{description:e("dashboard.startFromCrashTip"),confirm:e("common.confirm"),showCancel:!1,color:"primary",onConfirm:a}):null}function cxt({error:e,resetErrorBoundary:t}){return I.jsx(aa,{children:I.jsxs(e6,{severity:"error",action:I.jsx(Ns,{onClick:t,color:"secondary",variant:"outlined",children:"Reload"}),style:{minWidth:480},children:[I.jsx(a_e,{children:"Oops, this application crashed"}),I.jsx(tn,{children:e.message})]})})}var fxt=Tg;Tg.flatten=Tg;Tg.unflatten=Ble;function Ple(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Mle(e){return e}function Tg(e,t){t=t||{};const n=t.delimiter||".",r=t.maxDepth,i=t.transformKey||Mle,o={};function a(s,l,c){c=c||1,Object.keys(s).forEach(function(u){const d=s[u],p=t.safe&&Array.isArray(d),g=Object.prototype.toString.call(d),y=Ple(d),b=g==="[object Object]"||g==="[object Array]",A=l?l+n+i(u):i(u);if(!p&&!y&&b&&Object.keys(d).length&&(!t.maxDepth||c<r))return a(d,A,c+1);o[A]=d})}return a(e),o}function Ble(e,t){t=t||{};const n=t.delimiter||".",r=t.overwrite||!1,i=t.transformKey||Mle,o={};if(Ple(e)||Object.prototype.toString.call(e)!=="[object Object]")return e;function s(u){const d=Number(u);return isNaN(d)||u.indexOf(".")!==-1||t.object?u:d}function l(u,d,p){return Object.keys(p).reduce(function(g,y){return g[u+n+y]=p[y],g},d)}function c(u){const d=Object.prototype.toString.call(u),p=d==="[object Array]",g=d==="[object Object]";if(u){if(p)return!u.length;if(g)return!Object.keys(u).length}else return!0}return e=Object.keys(e).reduce(function(u,d){const p=Object.prototype.toString.call(e[d]);return!(p==="[object Object]"||p==="[object Array]")||c(e[d])?(u[d]=e[d],u):l(d,u,Tg(e[d],t))},{}),Object.keys(e).forEach(function(u){const d=u.split(n).map(i);let p=s(d.shift()),g=s(d[0]),y=o;for(;g!==void 0;){if(p==="__proto__")return;const b=Object.prototype.toString.call(y[p]),A=b==="[object Object]"||b==="[object Array]";if(!r&&!A&&typeof y[p]<"u")return;(r&&!A||!r&&y[p]==null)&&(y[p]=typeof g=="number"&&!t.object?[]:{}),y=y[p],d.length>0&&(p=s(d.shift()),g=s(d[0]))}y[p]=Ble(e[u],t)}),o}const Nle=Kt(fxt);var dxt=uO,pxt=qse,hxt=pxt(function(e,t,n){dxt(e,t,n)}),mxt=hxt;const $le=Kt(mxt),gxt={setup:{connect:{title:"Signature Required",scan:"Connect your DID Wallet to become the owner of this server",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},keyPair:{title:"Derived KeyPair Required",scan:"Connect your DID Wallet to generate a key-pair for this app",confirm:"Review this operation on your DID Wallet",success:"Your key pair is securely stored"},verify:{title:"Ownership Credential Required",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},accept:{title:"Accepting server require ownership certificates",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},title:"Setup Blocklet Server",steps:{eula:"End User License Agreement",eulaFooter:"I have read and agreed to the terms of the EULA",connect:"Connect Owner DID Wallet",verify:"Verify Ownership",basicSettings:"Basic Settings",launchApp:"Launch Application",complete:"Complete"},congratulation:"Congratulations! Your Blocklet Server is secure and ready to use",redirectButton:"Take me to dashboard!"},login:{loginTo:"Connect to",description:"Only server owner and approved members can access the dashboard",switchDid:{title:"Switch DID Wallet",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},switchSpecifiedDid:{title:"Switch DID Wallet",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},connect:{title:"Connect DID Wallet",scan:"Connect your DID Wallet to provide passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},acceptServer:{title:"Claim Server with Ownership NFT",tooltip:"If you received a server ownership nft, you can claim your owner passport with this link."},exchangePassport:{title:"Exchange Passport with NFT",success:"You have successfully exchanged your passport and logged in with the passport",login:"Login",tooltip:"If you own NFT from collection {collections}, you can exchange your passport with this link.",dialog:{title:"Exchange Passport with NFT",scan:"Connect your DID Wallet to present your NFT to get a passport",confirm:"Select NFT on your DID Wallet",success:"Passport has been successfully exchanged"}},payablePassport:{title:"Purchase passport with payment",tooltip:"If you do not have a passport, you can purchase a passport with this link."},sidebar:{dashboard:"Dashboard",blocklets:"Blocklets",console:"Console",settings:"Settings"},system:{total:"Total",used:"Used",free:"Free",cores:"Number of cores",instances:"Number of instances"},common:{invalid:"Invalid",about:"About",access:"Access",change:"Change",upload:"Upload",accessKey:"Access Keys",action:"Action",actions:"Actions",add:"Add",address:"Address",afterTime:"After {time}",allow:"Allow",alreadyExist:"already exists",approve:"Approve",approved:"approved",appUrl:"APP Url",auditLogs:"Audit Trail",author:"Author",avatar:"Avatar",back:"Back",basic:"Basic",basicInfo:"Basic Information",profile:"Profile",bind:"Bind",blocklet:"Blocklet",blocklets:"Blocklets",blockletsStorage:"Blocklets Storage",cacheStorage:"Cache Storage",cancel:"Cancel",certificate:"certificate",category:"Log Topic",click:"Click to copy",close:"Close",collapseAll:"Collapse All",community:"Community",complete:"Complete",componentBasicInfo:"Component Basic Information",components:"Blocklets",config:"Configure",configuration:"Configuration",configNavigation:"Navigation",configSuccess:"Config successfully",confirm:"Confirm",connect:"Connect",console:"Console",continue:"Continue",continueWith:"Continue With",copiedTip:"Copied",copyAndClose:"Copy & Close",copyTip:"Click To Copy",coreStorage:"Core Storage",cpu:"CPU",create:"Create",createSuccess:"Create Access Key",created:"Created At",createdAt:"Created At",createdBy:"Created By",dAddress:"Decentralized Identifiers (DID)",dataStorage:"Storage on Local Disk",delConfirm:"Delete",delConfirmDescription:"Confirm delete {data}?",delete:"Delete",dependents:"Dependents",description:"Description",detail:"Detail",did:"DID",disk:"Disk",diskInfo:"Disk Info",docker:"IS Docker",documentation:"Documentation",domain:"Domain",downgradeTo:"Downgrade to",download:"Download",connectToStore:"Connect to Store",blockletStudio:"Studio",uploaded:"Uploaded",downloading:"Downloading",edit:"Edit",email:"Email",phone:"Phone",empty:"Empty",emptyData:"No results found",enable:"Enable",engine:"Engine",env:"Environment",environment:"Environment",expandAll:"Expand All",expired:"Expired",expires:"Expires",export:"Export",externalIp:"External IP",failed:"Failed",filter:"Log Filter",fingerprint:"Fingerprint",finish:"Finish",forbid:"Forbid",free:"Free",general:"General",gitpod:"IS Gitpod",goEULA:'Click to view "End User License Agreement"',group:"Group",image:"IS Image",install:"Install",installed:"Installed",installedAt:"Installed At",installSuccess:"Successfully installed",installing:"Installing",internalIp:"Internal IP",introduction:"Introduction",invite:"Invite",inviting:"Inviting",ip:"IP",isPublic:"Public",issue:"Issue",issuer:"Issuer",item:"Item",joined:"Joined",key:"Key",lastPublishedAt:"Published At",launcher:"Launcher Information",leavePageTip:"Are you sure to leave the page?",link:"Link",loading:"loading",log:"View Logs",logStorage:"Log Storage",login:"Login",logo:"Logo",logout:"Logout",logs:"Logs",manageTeam:"Manage Team",marketplace:"Marketplace",member:"Member",members:"Members",memory:"Memory",meta:"Meta Data",analytics:"Analytics",runtime:"Runtime",traffic:"Traffic",more:"More",mountPoint:"MountPoint",name:"Name",next:"Next",no:"No",noData:"No records to display",notice:"Unexpected bad things will happen if you don’t read this!",noticeTitle:"Notice",notification:"Notification",open:"Open",visitStore:"Visit Store",visitTarget:"Visit {name}",management:"Management",os:"Operating System",overview:"Overview",owner:"Owner",page404:"404 Page",passport:"Passport",permission:"Permission",port:"Port",pre:"Previous",preferences:"Preferences",preview:"Preview",protected:"Protected",protocol:"Protocol",purchase:"Purchase",reconnect:"Reconnect",disconnect:"Disconnect",readMore:"More",redirect:"Redirect",redirectCode:"Redirect Code",redirectPermanently:"Permanent Redirect",redirectTemporary:"Temporary Redirect",redirectUrl:"Redirect URL",rewrite:"Rewrite",release:"Release",rewriteUrl:"Rewrite URL",reject:"Reject",reload:"Reload",remark:"Remark",remove:"Remove",removeSuccess:"Remove successfully",renew:"Renew",reportIssue:"Report an issue",required:"Required",requiredErrorText:"{name} is required",resource:"Resource",restart:"Restart",restore:"Restore",retry:"Retry",revoke:"Revoke",role:"Role",running:"running",runtimeInfo:"Runtime Info",save:"Save",saveChanges:"Save Changes",saveSuccess:"Saved successfully",scheduleFailed:"schedule failed",scheduleSuccess:"successfully scheduled",scope:"Scope",screenshot:"Screenshot",search:"Search",security:"Security",serverDid:"Server DID",serverVersion:"Server Version",setting:"Settings",start:"Start",status:"Status",stop:"Stop",storage:"Storage",backup:"Backup",store:"Store",succeeded:"Succeeded",subscription:"Subscription",support:"Support",switch:"Switch",team:"Team",the:"The",timeAgo:"{time} ago",title:"Title",type:"Type",unavailable:"Unavailable",update:"Update",updateAvailable:"New version {version} available",updatedAt:"Updated At",updatedBy:"Updated By",upgrade:"Upgrade",upgradeTo:"Upgrade to",upgrading:"Upgrading",uptime:"Uptime",url:"URL",valid:"Valid",value:"Value",version:"Version",visit:"Visit",waiting:"Waiting",webhook:"Integrations",yes:"Yes",invalidParam:"Invalid Params",launch:"Launch",price:"Price",redirecting:"Redirecting",error:"Error",reminder:"Reminder",normal:"Normal",gateway:"Gateway",verifyNFT:"Verify NFT",errorMessage:"Error Message: ",slugifyHint:"The actual mount point will be: {value}",strategy:"Strategy",auto:"Auto",manual:"Manual",progress:"In progress",startTime:"Start time",endTime:"End time",selected:"Selected",timeoutError:"Timeout error",tags:"Tags",sourceApp:"Belong to App"},blocklet:{external:"External",notFound:"Blocklet not found on this server, maybe it has been deleted",installFromMarket:"Install New Blocklets",installFromUrl:"Install From Url",installFromCreate:"Create Blocklet",titleValidationError:"Title length must be between 3 and 40 characters",descriptionValidationError:"Description length must be between 3 and 160 characters",installFromDiskBackup:"Restore from this server",installedAt:"Installed At",internal:"Internal",startedAt:"Started At",stoppedAt:"Stopped At",urlEmptyTip:"No Access URL, ",goToAddRule:"Go To Add",services:"Exposed Services",upstreamPort:"Upstream Port",noService:"No Services",appId:"App DID",appPid:"Permanent DID",whyNeedAppPid:"If your application has been migrated, the permanent DID is the DID generated when this Blocklet was originally installed",alsoKnownAs:"Also Known As",skSource:"Owner Wallet",reloadSuccess:"Blocklet was reloaded successfully",statusTip:"Blocklet is {status}",initialUptime:"Less than 1m",dashboard:"Blocklet Dashboard",noComponent:"Application has no components and cannot be started",fromUrl:{title:"Install Blocklet",label:"Blocklet Meta URL",description:"The URL should point to the Meta File of the Blocklet. If you need to refer to a local file, please add the file:// prefix, e.g. file:///Users/foo/blocklet.json.",confirm:"Install",step0:"Input URL",step1:"Confirm Meta Info",existTipPrefix:"Blocklet with the same DID already exists, the version is",existTipSuffix:", Please install a higher version."},action:{stopDescription:"Stopping the blocklet will make its public interfaces unaccessible, which may cause end user failures",stopComponentDescription:"Stopping the component will make its public interfaces unaccessible, which may cause end user failures",confirmStop:"Yes, Stop It",cancelDownloadDescription:"Cancel download {name} ?",removeApplicationDescription:"Removing the application will erase code and data generated by this application, which is not recoverable if you do not have any backups",removeApplicationAfterBackup:"Backup and remove the application. You can restore the application from this server if you need",removeApplicationComplete:"Remove both code and data for this application",removeComponentDescription:"Removing the component will erase code and data generated by this component, which is not recoverable if you do not have any backups",removeComponentKeepData:"Keep data for this component, only remove code",removeComponentComplete:"Remove both code and data for this component",confirmRemove:"Yes, Remove It",confirmComponentRemove:"Yes, Remove It",upgradeDescription:"Upgrading the blocklet will make it temporarily unavailable, are you sure to continue?",confirmUpgrade:"Yes, Upgrade It",confirmRestart:"Yes, Restart It",restartDescription:"Restarting the blocklet will temporarily suspended and may not start because of a configuration change"},dev:{modeTip:"Please switch Blocklet Server to DEBUG mode"},index:{tableTitle:"Manage Your Blocklets",noBlocklet:"No blocklets found in this Blocklet Server, install a blocklet from market place to start."},admin:{iframeTitle:"Blocklet Admin Interface",title:"Admin Interface",noContent:"This blocklet does not have a admin interface",securityError:"SecurityError: Can not open the admin url from accessing a cross-origin frame"},config:{name:"App Name",description:"App Description",sk:"Secret key for the app wallet",logoSquare:"App Logo",logoRect:"Rect logo",logoRectDesc:"Usually displayed at the top of the page, default to app logo",logoFavicon:"Favicon",logoFaviconDesc:"Usually displayed in the browser's address bar or tab page, default to app logo",clusterSize:"Instance count when run this blocklet in cluster mode",copyrightOwner:"Copyright Owner (Display in footer)",copyrightYear:"Copyright Year (Display in footer)",deletable:{name:"Delete Protection",enable:"This blocklet can NOT currently be deleted",disable:"This blocklet can currently be deleted"},tenantMode:{name:"Multiple Tenant Mode",multiple:"This blocklet runs in multiple tenant mode, data should be isolated for each tenant",single:"This blocklet runs in single tenant mode, all data are shared"},walletType:{name:"Wallet Type",description:"Blocklet instance wallet type, will change the derived DID"},languages:"Supported Languages",selectLanguagesTip:"Adjust the order by removing and re-adding",languagesSearch:"Search by Country's Local Name, English Name, or ISO Code...",passportColor:"Passport Color",appUrl:"App URL",access:{title:"Who Can Access",description:"Who can access the blocklet",useDefault:"Use default",defaultDescription:"Use the application's default configuration",whoCanAccess:{all:{title:"Accessible to all",description:"Open to the world anyone can access without passport"},owner:{title:"Only me can access",description:"You must provide owner passport to access this application"},invited:{title:"Only invited people can access",description:"You can invite members later in the admin page"}},publicToStore:"Public On Store",publicInstanceTip:"The access address of this blocklet will be displayed in the Store (along with your DID for accepting donations)",updatedTip:"Access Control Modified"},changedTip:"Configuration updated, please restart Blocklet",missingRequired:"Missing required configuration to start the blocklet",gotoFix:"Go to fix",environment:{key:"Configuration key",value:"Configuration value",keyValueRequired:"Configuration key and value must be specified",invalidKey:"Configuration key must not start with BLOCKLET_ or COMPONENT_",deleteForbidden:"This configuration is required and should not be deleted",tip:"Configurations prefixed with BWA_ should not contain sensitive information because they will be sent to the browser"},dangerZone:"Danger Zone",blockletTypeChangeTip:"Wallet Type will be changed to <b>{value}</b>",appDidChangeTip:"This operation will change the DID of the application, which will lead to the following problems. Please confirm after careful evaluation:",appDidChangeTipL1:"The user's account connected to this application will change",appDidChangeTipL2:"The DID domain name of the application will change, and the original domain name will become invalid",appSkChangeTip:"You are changing application secret key",walletTypeTitle:"Update Wallet Type",appSkTitle:"Update Application Secret Key",sharedToAllComponents:"Will be shared to all components",session:{ttl:"Login session validity period (user will be asked to login again if they have no activity on this site for {day} days)",day:"{day} day",days:"{day} days"},clearCache:{name:"Cache Management",purpose:"Manage files cached in router and blocklet services",title:"Confirm Cache Clear?",action:"Clear Cache",success:"Successfully cleared {count} cache entries",description:"Are you sure you want to clear cached files in router and blocklet service? this operation may cause slight performance downgrade in the short term"}},overview:{source:"Source",deployedFrom:"Deployed From",accessControl:"Access Control",viewInStore:"View It In Store"},diskInfo:{empty:"Disk info not available now!",appDir:"App Directory",dataDir:"Data Directory",logDir:"Log Directory",cacheDir:"Cache Directory"},runtimeInfo:{noRunning:"Runtime information will be available when blocklet is running!",memoryUsage:"Memory Usage",cpuUsage:"CPU Usage",uptime:"Uptime",port:"Port",processId:"Process ID"},dist:{downloadLink:"Download Link",verify:"Verify"},status:{added:"Added",waiting:"Waiting",downloading:"Downloading",extracting:"Extracting",installing:"Installing",upgrading:"Upgrading",installed:"Installed",created:"Created",starting:"Starting",running:"Running",stopping:"Stopping",stopped:"Stopped",error:"Error",deleting:"Deleting",corrupted:"Corrupted",purchasing:"Waiting for purchase",purchased:"Purchased",verifying:"Verifying purchase",resource:"Resource"},list:{download:"Download",star:"Star"},component:{container:"Global Config",showContainer:"Show Global Config",didSpaceConfig:"Configure DID Spaces",didSpaceConfigTip:"Complete the following authorize process to store application data in DID Spaces",didSpaceConnected:"Storage being authorized to: {endpoint}",checkUpdateTitle:"Check for Updates",updateTitle:"Update Blocklets",noUpdate:"No Blocklets to update",add:"Add Blocklet",selectComponent:"Select Blocklet",selectRegistry:"Select Blocklet Store",selectRegistryTip:"You can switch blocklet store to see more components",selectInstance:"Select Instance",selectInstanceTip:"You can select an existing instance or create a new instance. Existing instances will use previously saved configuration and data",newInstance:"Create New Instance",noComponent:"No Blocklets",mountPoint:"What's the mount point?",mountPointTip:"If you set mount point to '/my-prefix', then all requests that begins with that mount point will be routed to the selected Blocklet",delete:"Delete Blocklet",deleteDescription:"This Blocklet will not be accessible after deletion. Confirm delete?",purchase:"Payment Required",tip:{stopBlocklet:"Please stop running Blocklet first",requiredBy:"The Blocklet is required by {name}"},choose:"Choose",upgrade:"Upgrade",addWithName:"Add Blocklet To {name}",relatedComponents:"Related Blocklets",required:"Required",noDependencies:"{name} doesn't have any dependencies",installed:"Installed",installingTip:"Installing component, please wait...",installingCanCloseWindowTip:"Installing component in the background, you can safely close this window",installSuccessTip:"Congratulations, the component was installed successfully!",missDownloadTokenTip:"Cannot add paid component without valid download token",purchaseComponentSecondCheckTip:"Please present your blocklet purchase NFT to continue",installComponentError:"There was an error installing the component, please retry again",downloadComponentError:"There was an error downloading the component, please retry again",addComponentTip:{introduction:"Welcome to the Add Component Wizard",isPurchase:"You need to Verify NFT before use <b>{name}</b> as a component;",belowInformation:"Below is the information for the component: ",verifyNFT:"Please select the Verify NFT method",config:"Please fill in the configuration of the component",environment:"Please fill in the environment of the component",fromUrl:"Add Blocklet From Url"},addNext:"Add {name}",upgradeNext:"Upgrade {name}",setting:"Settings"},router:{urlPath:"URL Path",noRunning:"The blocklet is not currently started. Unable to access through the following address!",securitySetting:"Security Setting",checkUrlAccessible:"Check the accessibility of the address",urlInaccessible:"It may be due to network reasons, the address is temporarily inaccessible",noAccessibleUrl:"No accessible URL",domainLockTooltip:"The system generated Domain cannot be edited.",urlLockTooltip:"The system generated URL Path cannot be edited.",showAllDomains:"Show all domains",showAllDIDs:"Show all DIDs",currentDomainTip:"You are accessing the current page through this domain"},export:{title:"Export Blocklet",name:"Bundle Name",nameTip:'e.g. "my-blocklet-name" or "@my-scope/blocklet-name"',result:"What's next",exportSource:"Export Source",success:"Blocklet successfully exported",resultTipStart:"With",resultTipEnd:"you can build and publish this blocklet within minutes",uploadedComponentTip:"Directly uploaded components cannot be exported:"},migrate:{title:"Migrate Application",scan:"Connect your DID Wallet to generate a key-pair for this application",confirm:"Review this operation on your DID Wallet",success:"Your application is successfully migrated, the page will be refreshed in {sec} seconds",intro:{l1:"Click here",l2:"to migrate your application to new version (changes are disabled before the migration completes)",l3:"1. The application DID will be fully controlled from your DID Wallet.",l4:"2. The application data will be migrated, and no further changes required.",l5:"3. The new application structure will give you more flexibly when change components.",l6:"4. Please do not change component mount points before component new version is out."},tip:{duplicate:"Find duplicate component {name}, please delete useless components and migrate again",running:"Please stop blocklet before migration"}},error:{isRunning:"Blocklet is running, please stop it first",isInProgress:"Blocklet is in progress, please wait for it to finish"},publish:{connectOrUpload:"Connect or Upload",projectSettings:"Project Settings",noStoreSelected:"Please select one of the existing stores or add a new store to continue",autoUploadTip:"Upload release to connected Blocklet Stores automatically after creation",possibleSameStoreTip:"Try resolving dependency blocklets to the same Blocklet Store before each uploading when possible",needProjectId:"Please create a project first",developerInfo:"Developer Information",branding:"Branding",brandingHelp:"More information about the blocklet will be displayed in the Store",download:"Download {name}",deleteStoreTip:"Are you sure you want to remove {name} from the connect Store list?",delete:"Delete {name}",copyInstallUrl:"Copy Install URL",createResource:"Create Resource",blockletStudio:"Blocklet Studio",tenantScope:"Tenant",addResource:"Add Blocklet",productTitle:"Product",versionTitle:"Versioning",imgTitle:"Images",resourceTitle:"Resources",resourceSelect:"Select resource from following blocklets",resourceUpload:"Upload resource from your disk (index.html is required in the archive)",blockletEmptyTip:"There aren’t any blocklets here",createBlockletTip:"You can create new blocklet through existing resources, components, and configuration in this application",createBlocklet:"New blocklet",reconnectStoreTip:"After reconnecting, a new developer will be bound. Are you sure you want to reconnect?",disconnectStoreTip:"After disconnecting, the blocklet will be removed from the store. Are you sure you want to disconnect?",componentNotRunning:"Blocklet {name} is not running, please start it first",allComponentsNotRunning:"Blocklets is not running, please start it first",releaseEmptyTip:"There aren't any releases here",resourceEmptyTip:"No available resources",viewLastRelease:"View last release",createReleaseTip:"You can create a release of the blocklet, along with release notes and resources, for other people to use",createRelease:"Create release",deleteReleaseTip:"The release cannot be recovered after deletion",createBlockletDid:"Create from DID Wallet",createReleaseSuccess:"Release created successfully",saveDraftSuccess:"Draft saved successfully",packTip:"Currently blocklets can be installed directly as applications. Components and application configurations will be automatically included in the Blocklet",resourceTip:"Currently, as a Resource Blocklet, it cannot be directly installed from the Store.",whyCantSeeInStore:"You need to publish the blocklet on connected store before you can see it in the store listing page",whyCantSeeResourceBlockletInStore:"Resource Blocklet are hidden from the store listing page by default",resourceChangedWarning:"You have modified the resource, please save it in time",install:"Install {name}",installResourceTip:"Install Url:",installResourceTip2:"If you want to see more tips, please visit",installResourceHelp:"Help Document",componentIncluded:"Included",componentForceRequired:"Required",steps:{branding:"Describe the basic information of your Blocklet. This information will be presented to users in the store.",introduction:"A clear introduction can effectively highlight your Blocklet. You can use Markdown syntax to write and preview it.",resources:"Please select the resources that need to be associated with the current Blocklet, as these resources will be installed along with the Blocklet.",blocklets:"Please select the Blocklets that need to be associated and installed when installing the current Blocklet.",version:"Set the release version and the change log."},connect:{title:"Create Blocklet DID",scan:"Scan the QR code below to generate Blocklet DID",confirm:"Confirm using DID Wallet",success:"Blocklet DID has been generated, please continue your operation"},deleteProject:{title:"Delete {name}",scan:"Scan the QR code below to delete {name}",confirm:"Confirm using DID Wallet",success:"Blocklet has been deleted, please continue your operation",description:"Are you sure you want to delete the Blocklet? Here are the issues you might encounter:",tip1:"The Blocklet cannot be recovered after deletion.",tip2:"You will no longer be able to publish new versions to the deleted Blocklet, which means that the Blocklet will not be updated in the Store anymore.",tip3:"Deleting the Blocklet will not affect its currently published version in the Store."},saveDraft:"Save Draft",releaseNote:"Release Note",errorTip:{noDid:"Blocklet DID is required",noFirstDid:"Please create Blocklet DID first",noTitle:"Blocklet Title is required",noVersion:"Blocklet Version is required",inValidVersion:"Invalid Blocklet Version",noResource:"Please select upload resource to be included in the blocklet",noDescription:"Blocklet Description is required",noNote:"Release Note is required"},uploadToStoreSuccess:"Blocklet upload to Store successfully, you need publish it in the Store",publishToStoreSuccess:"Blocklet published to Store successfully",connectStoreSuccess:"Blocklet Store connected successfully"}},dashboard:{nodeDid:"Node",ownerDid:"Owner",routingEngine:"Routing Engine",ownerNftURL:"Owner NFT",expirationLeft:"Expiration Left",startFromCrashTip:"Blocklet Server did not exit normally last time, please manually start the blocklets that needs to be run.",runtimeConfig:{blockletMaxMemoryLimit:"Blocklet Max Memory Limit",daemonMaxMemoryLimit:"Server Max Memory Limit",proxyMaxMemoryLimit:"Event Bus Max Memory Limit"}},store:{nameSort:"Name",popularSort:"Popularity",headerDescription:"Find and Install Your Blocklets",detail:{purchase:"Purchase {name}",open:"Open {name}",install:"Install {name}",upgrade:"Upgrade {name}",empty:"No introduction"},blockletRegistry:{changeFailed:"Change Blocklet Store Failed: ",addFailed:"Add Blocklet Store Failed: ",editFailed:"Edit Blocklet Store Failed: ",switchRegistry:"Switch Blocklet Store",addRegistry:"Add Blocklet Store",editRegistry:"Edit Blocklet Store",deleteRegistry:"Delete Blocklet Store",haveSameRegistry:"The same blocklet store exists",registryName:"Blocklet Store Name",registryUrl:"Blocklet Store URL",registryNameEmpty:"Blocklet Store name cannot be empty",registryUrlEmpty:"Blocklet store url cannot be empty",deleteDesc:'Confirm Delete blocklet store {name} ?<br/><span style="color: {color}">*After removing this blocklet store, you cannot update the apps installed from this blocklet store unless you add them again.</span>',confirmDesc:"Please input {name} to delete"},purchase:{title:"Purchase {name}",confirmed:"Your blocklet purchase NFT is verified",declined:"You do not provided valid the blocklet purchase NFT",waiting:"Waiting for purchase complete...",purchase:{title:"Purchase NFT",description:"Pay some token before installing this blocklet if you have not purchased this blocklet"},verify:{title:"Verify NFT",description:"Your NFT will be verified before installing this blocklet if you have purchased and hold the purchase NFT in your DID Wallet",auth:{title:"Purchase Credential Required",scan:"Connect DID Wallet to provide blocklet purchase NFT",confirm:"Review this operation on your DID Wallet",success:"Your purchase NFT is verified, and installing has started"}},auth:{title:"Purchase {name}",scan:"Scan following QRCode with your DID Wallet",confirm:"Confirm on your DID Wallet",success:"Purchase NFT sent to your DID Wallet"},launch:"Launch {name}",autoLaunch:"{name} successfully purchased, redirecting to launch page..."}},setting:{saveSuccess:"Settings Saved Successfully",unSavedTip:'There are unsaved changes, please click "Save Changes" to save them.',unSavedLeaveTip:"There are unsaved changes, are you sure to leave the page?",form:{name:"Name Your Server",nameRequired:"Server description is required",namePlaceholder:"Server Name",description:"Describe Your Server",descriptionHolder:"Server Description",descriptionRequired:"Server description is required",domain:"Your Server Domain Name",domainPlaceholder:"Server Domain Name",domainRequired:"Server domain is required",ipPlaceholder:"IP",ipRequired:"IP is required",registry:"Blocklet Store",registryPlaceholder:"Blocklet store to fetch blocklets",registryRequired:"Blocklet store is required ",registerUrl:"Blocklet Launcher URL",registerUrlPlaceholder:"Input the URL of your preferred Blocklet Launcher, you can use the official one safely",webWalletUrl:"DID Wallet URL",webWalletUrlPlaceholder:'Please input the URL of your hosted "DID Wallet", you can use the official one safely',nftDomainUrl:"NFT Domain URL",nftDomainUrlPlaceholder:'Please input the URL of your hosted "NFT Domain", you can use the official one safely',enableWelcomePage:"Enable welcome page",welcome:{switchLabel:"Welcome Page"},security:{switchLabel:"File System Isolation",switchTips:"After disabling this option, the file system of the Blocklet will no longer be in isolation, which may pose a risk of malicious software damaging the file system.",warningTips:"The file system isolation feature cannot take effect. Please upgrade the node.js version (current version is {version}) to v21.6.0 or higher."},upgrade:{title:"Upgrade Blocklet Server to {version}",description:"During the upgrade, your Blocklet Server will enter maintenance mode for a few minutes while the update is completed.",dialog:'Click on "confirm" to install the update. Blocklet Server will enter maintenance mode until the update is completed and return to production mode automatically.',confirm:"Upgrade",switchLabel:"Auto Update Check",enableBetaRelease:"Enable Beta Release",setup:"Preparing the upgrade",installing:"Installing Blocklet Server v{version}",restarting:"Restarting Blocklet Server",cleanup:"Migrating Blocklet Server data",verifying:"Verifying Blocklet Server v{version}",rollback:"Rollback Blocklet Server",complete:"Upgrade complete!",progress:"Upgrading {name}",check:"Check for Updates",latest:"You are running the latest version."},restart:{title:"Restart Blocklet Server",description:"During the restarting, your Blocklet Server will enter maintenance mode while the restart is completed.",dialog:'Click on "confirm" to restart. Blocklet Server will enter maintenance mode until the restart is completed and return to production mode automatically.',confirm:"Restart",setup:"Preparing the restart",verifying:"Verifying Blocklet Server",restarting:"Restarting Blocklet Server",cleanup:"Ensure everything is OK",rollback:"Cleanup the dirty state",complete:"Maintain complete!",progress:"Restarting {name}"},register:{titleAdded:"Added to Blocklet Launcher",title:"Add to Blocklet Launcher",description:"Once added, you can launch blocklets to this blocklet server from {url}.",descriptionOnAdded:"you can launch blocklets to this blocklet server from {url}.",btn:"Add",update:"Update",added:"Added",addSucceed:"Add succeed",updateSucceed:"Update succeed",detecting:"Detecting",timeout:"Detection timeout, please check if the blocklet launcher is started"},monitor:{diskThreshold:"Send alert when disk usage exceeds (%)",diskThresholdPlaceholder:"Please set the disk usage alert threshold"}},accessKey:{accessKeyId:"ACCESS KEY",lastUsed:"Last Used At",tip:"Please enter a name for this access key for future reference:",saveSecretTip:"This is the only time that your Access Secret key can be viewed and cannot be recovered. However, you can create new access keys at any time",iKnow:"I have copied and saved the Access Secret",showSecret:"Show Secret Access Key",hideSecret:"Hide Secret",title:"Delete Access Key",descriptionNoTime:"This will permanently delete the access key {key} with name {name}, which is (never used before)",description:"This will permanently delete access key {key} with name {name}, which is (last used on {time}, {timeAge})",confirm_desc:"Please input {name} to delete",remark:"Access Key Name",remarkInvalid:"Access Key Name is required"},webhook:{add:"Add Integration",delTitle:"Delete Integration",requiredError:"Please provide a valid {type}",confirm_desc:"Please input {name} to delete",test:"Test",description:"This will permanently delete integration with ID {id}",columns:{description:"ID",params:"Params",createdAt:"createdAt"}}},notification:{title:"Activities",empty:"No activities yet",viewAll:"View All",showRead:"Show Read",markAllAsRead:"Mark All as Read",markAsRead:"Mark As Read",proceed:"Proceed",checkingForUpdates:"Checking for updates...",installComponentError:"Not found uninstalled component {name}",installingComponent:"Installing component {name}",pushKit:{enable:"Enable PushKit notification",endpoint:"PushKit endpoint",endpointInvalid:"PushKit endpoint is invalid URL",testSuccess:"Test PushKit send successfully",testFailed:"Test PushKit send failed",testReceiver:"PushKit receiver",testSend:"Test push-kit send",inputTestReceiver:"Please input test receiver did",receiverRequired:"PushKit receiver is required",pushPath:"Api path for push-kit (default /api/push)",did:"PushKit Blocklet DID",customOptions:"Custom Options"},email:{enable:"Enable email notification",from:"Email sender",host:"SMTP server host",port:"SMTP server port",user:"SMTP server username",secure:"Enable secure connection",password:"SMTP server user password",fromRequired:"Email sender is required",fromInvalid:"Email sender is invalid",receiverRequired:"Email receiver is required",receiverInvalid:"Email receiver is invalid",hostRequired:"SMTP server host is required",hostInvalid:"SMTP server host is invalid",portRequired:"SMTP server port is required",portInvalid:"SMTP server port is invalid, port should be between 1 and 65535",userRequired:"SMTP server username is required",passwordRequired:"SMTP server user password is required",testSuccess:"Test email send successfully",testFailed:"Test email send failed",testReceiver:"Email receiver",testSendEmail:"Test email send",inputTestReceiver:"Please input test receiver email",disable:"Unsubscribe email notification",disableDescription:"After unsubscribe, you will no longer receive email notifications. To receive email notifications, you can subscribe it again on this page.",unsubscribe:"Unsubscribe email notification",unsubscribeDescription:"After unsubscribe, you will no longer receive any email notifications.",subscribe:"subscribe",subscribeDescription:"To receive email notifications, you can subscribe it again on settings page."},comingSoon:"More notification channel are under construction",unsubscribe:"Unsubscribe",unsubscribeSucceed:"Unsubscribe succeeded",unsubscribeFailed:"Unsubscribe failed",unsubscribeTokenRequired:"Unsubscribe token in required",unsubscribeTokenExpired:"Unsubscribe token is expired",unsubscribeTokenInvalid:"Unsubscribe token is invalid"},router:{routerSetting:"Domains & URLs",certSetting:"SSL Certificates",defaultSite:"Default",urlHelperText:"URL that do not start with HTTP/HTTPS are considered relative paths",empty:"Click on Actions to setup URL Mapping",healthy:{ok:"Blocklet or service is running",error:"Blocklet or service is not running or not installed"},service:{select:"Select Blocklet Services (Optional)",what:"Blocklet Services are pipelines executed against the request before redirecting to upstream blocklet"},nonProvider:{title:"Engine Change Warning",description:"If you change engine to none, your current page may not work properly because the previous engine will be stopped, are you sure to continue?",confirm:"I understand, continue"},validation:{urlRequired:"URL is required",redirectCodeRequired:"Redirect code is required",didRequired:"Blocklet is required",pathPrefixTooLong:"The URL Prefix cannot exceed {length} characters",pathPrefixCannotBeEmpty:"The URL Prefix cannot be empty",domainRequired:"Server domain is required",invalidUrl:"Please provide a valid URL",pathPrefixRequired:"URL prefix is required",redirectUrlRequired:"Redirect URL is required",rewriteUrlRequired:"Rewrite URL is required"},domain:{addSite:"Add Site",validate:{emptyTip:"Site domain cannot be empty",suffixTip:"Site domain cannot include {suffix}"},add:{title:"Add Domain Name",description:"Please provide a valid domain name",confirm:"Add",cancel:"Cancel",blocklet:"Select Blocklet",redirect:"Where to redirect the traffic?",port:"What port does your request handler need to listen to?",portTip:"This defaults to the main port of request handler, you can customize this",type:"Traffic Handler",component:"Select Component",pageGroup:"Page Group",pageGroupTip:"This component can render any group of pages listed above, leave empty to render all pages"},update:{title:"Update Site Domain",label:"Site Domain",description:"Please provide a valid site domain"},setup:{tipStart:"Add the DNS records for the domain",tipEnd:"as per the following guidelines",recordType:"Record Type",recordValue:"Record Value"},verify:{ok:"The domain resolution is normal",notResolved:"This domain neither resolved nor accessible, please check your DNS configuration"},https:{ok:"This domain has https enabled",bad:"This domain has not enabled https"},delete:{title:"Delete Site",description:'By confirming, you will delete your existing "{name}" site. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your site',confirm_desc:"Please input {name} to confirm"}},domainAlias:{nftDomain:"Automatic config with DID Domain",showTipHint:"How do I configure domain name resolution?",add:{title:"Add Additional Domain",domainDescription:"Please provide a valid domain name",forceTip:"Force add if domain name already exists",helperText:"If an HTTP or HTTPS URL is entered, it will be automatically converted into a domain name.",isDidDomainError:"This domain is a DID Domain. Please add it using the method for automatic domain configuration."},addCustomDomain:{name:"Custom Domain"},addDomainNFT:{showNFT:"Configure domain automatically",tips:"You can enter a domain purchased from DID Domain. If a DID Domain is detected, you must present the DID Domain NFT to continue.",connect:{title:"Please show your Domain NFT",scan:"Scan following QR code with DID Wallet to authorize to blocklet to use your domain",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},buyTip:"DID Domain will do the domain name resolution automatically, no need to configure it manually, and the application will update the resolution record of the domain name automatically when needed. If your don't have DID Domain NFT yet, ",buy:"buy it now!"},delete:{title:"Delete",description:"After removing a domain alias, access to that alias may not be handled properly."}},domainSecurity:{title:"Domain Security",cors:{title:"Allowed CORS Domains",description:'Domain list that can send cross origin requests to {name}, comma separated, use "*" to allow anyone, which is not recommended',domainInvalid:"Please input a valid list of domain names"}},rule:{add:{title:"Add URL Mapping",confirm:"Add",pathPrefix:"What's the URL Prefix?",pathPrefixTip:"If you set prefix to '/my-prefix', then all requests that begins with that prefix will be routed to the configured blocklet",blocklet:"Which Blocklet will be handling those requests?",port:"Which port of the blocklet will be handling requests?",portTip:"This defaults to the main port of blocklet, if your blocklet listens on multiple ports, you can customize this",responseType:"Response Type",responseBody:"Response Content",responseBodyTip:"Paste your response content here, should not exceed 4096 characters",responseBodyRequired:"Response content can not be empty"},delete:{title:"Delete URL Mapping",description:'By confirming, you will delete your existing "{name}" URL Mapping. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your URL Mapping.',confirm_desc:"Please input {name} to delete",cancel:"Cancel"},update:{title:"Update URL Mapping",confirm:"Yes, Update",cancel:"Cancel"}},cert:{name:"Certificate Name",domain:"Domain Name",action:"Action",commonName:"Common Name",boundDomains:"Domains",source:"Source",expired:"Expired",leftDays:" days left",issuedOn:"Issued On",expiryOn:"Expiry On",fingerprintAlg:"Fingerprint Algorithm",validityPeriod:"Validity Period",matchedSites:"Matched Sites",upload:"Manual Upload",publicCertHelperText:"Public certificates can be downloaded",nonPublicCertHelperText:"Non-public certificates cannot be downloaded",protectedCertHelperText:"Protected certificates cannot be edited",unprotectedCertHelperText:"Unprotected certificates can be edited",issuing:"Certificate being generated",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"},table:{nodata:"No data"},delete:{title:"Delete Certificate",description:"Confirm delete certificate of domain {domain}? Deleting it may affect related services. Please confirm it's safe before proceeding with the deletion.",confirm:"Confirm"},nginx:{title:"Update Certificate",titleAdd:"Add Certificate",pem:"SSL Certificate File",pemTip:'Please drop your server certificate file here, it should ends with ".pem" or ".crt"',key:"Private Key File",keyTip:'Please drop your server private key file here, it should ends with ".pem" or ".key"',confirm:"Save",cancel:"Cancel",invalidFile:"You have selected an invalid file",empty:"No file selected yet",source:"Source",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"}},detail:{title:"Certificate Details"},genLetsEncryptCert:{title:"Generate Let's Encrypt certificate",dnsTip:"Please make sure the domain name has point to the current Blocklet Server.",description:"Adding a certificate will make the service more secure, and Blocklet Server will automatically renew the certificate before it expires."}},gateway:{reqLimit:{status:{true:"Enabled",false:"Disabled"},switchLabel:"Request Limit",rate:"Request Limit({rate} Request/Second)",ipHeaderLabel:"Customize client IP header(Optional)",ipHeaderDesc:"If the Blocklet Server is running behind some proxies, you can set the header of the client's real IP here. Optional, leave empty to use default."},cacheEnabled:{switchLabel:"Enable Gateway Cache"}}},noMatch:{desc:"We can't find the page that you're looking for"},health:{connectionErrorTip:"Blocklet Server can't connect to the network, please check if Blocklet Server has been stopped or there is a network issue",connectionRecoveryTip:"Blocklet Server connectivity has been recovered",connectionStoppedTip:"Blocklet Server has been stopped",wrongAccessUrlTip:"Blocklet Server access address is wrong, please use the correct access address"},debug:{title:"Your Blocklet Server is up and running!"},team:{invite:"Invite New",add:"Add New",member:{name:"Name",passport:"Passport",passports:"Passports",lastLogin:"Last Login",lastLoginIp:"Last Login IP",source:"Register Source",source_derived:"Derived from oauth",source_wallet:"DID Wallet",filter:"Filter by",forbidLogin:"Forbid Login",forbidLoginDescription:"The user will not be able to connect to this application",allowLogin:"Allow Login",allowLoginDescription:"The user will be able to connect to this application",updateRole:"Update Role",deleteUser:"Delete User",deleteUserDescription:'Confirm delete user "{name}"?',revokePassport:"Revoke Passport",revokePassportDescription:"Once the passport is revoked, the passport holder can not use it to login again, are you sure to continue?",enablePassport:"Enable Passport",enablePassportDescription:"Once the revoked passport is enabled again, the passport holder can use it to login again, are you sure to continue?",passportPermissionTitle:"The passport has the following permissions:",search:"Search Member",hideBlockedMember:"Hide Unapproved Members",inviteDialog:{createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},error:{passportEmpty:"Passport should not be empty"},connectedAccounts:"Connected Accounts",connections:"Connections",federated:"Federated",switch:{did:"Switch DID",profile:"Switch Profile",passport:"Switch Passport"},settings:{notification:"Notifications",email:"Send email to me when some events happen",wallet:"Send notification to my wallet when some events happen",phone:"Send text message to me when some events happen",webhook:"Webhooks",add:"Add new webhook",url:"Custom URL",slack:"Slack Webhook",tested:"Test message sent"},activeUserSessions:"Active User Sessions",forceLogout:"Force logout",forceLogoutDescription:"Confirm to force logout this user?"},transferNode:{name:"Transfer Ownership",inviteDialog:{title:"Transfer Blocklet Server",tips:{progress:"Transfer the server needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the server with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and Blocklets.",revoke:'If you want to withdraw the transfer invitation, you can delete the invitation link in the "Team -> Members -> Inviting" page.'},createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},delegateDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize server to transfer server ownership NFT.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"}},transferApp:{name:"Transfer Ownership",transferDialog:{title:"Transfer Application",tips:{progress:"Transfer the application needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the application with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and settings."},createTransferLink:"Generate Transfer Link",createSuccessTip1:'The transfer link is successfully created, the invitee must use <a style="color: rgb(29, 193, 199)" target="_blank" href="https://www.didwallet.io/">DID Wallet</a> to receive the app ownership',createSuccessTip2:"Please click to copy and send the link to the invited member, please note that this transfer link can not be reused and will expire on {expireDate}. Your transfer link will only be shown once and will not be viewable again after closing this dialog",createSuccessTip3:"After the transfer is successful, the application will automatically restart to make the changes take effect",link:"Transfer Link",iKnow:"I have copied and saved the link"},connectDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize application to transfer ownership.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},receiveDialog:{title:"Receive Application Ownership",scan:"Scan following QR code with DID Wallet to receive the application ownership.",confirm:"Confirm on your DID Wallet",success:"Receive Ownership Successfully"},successTitle:"You have become the new owner of this application",visitDashboard:"Visit Application Dashboard"},permission:{create:{title:"Create Permission",description:`Format: <action>_<resource>
1495
+ e.g. 'query_user', 'mutate_user'`},delete:{title:"Delete Permission",description:"Confirm delete {name}?"},error:{actionEmpty:"action cannot be empty",resourceEmpty:"resource cannot be empty",permissionTooLong:"permission cannot exceed {length} characters",descriptionTooLong:"description cannot exceed {length} characters"}},passport:{create:{title:"Create Passport",titleTip:"Title cannot be modified after created, recommended within 14 letters"},bind:{title:"Bind Permission",roleTip:"You will get all the permissions of the selected passport after binding",permissionTip:"You will get the selected permissions after binding",transferLeftTitle:"All permissions",transferRightTitle:"Granted permissions"},delete:{title:"Delete Passport",description:"The passports holds by user will lose all permissions after it is deleted. Are you sure to continue?"},error:{titleEmpty:"title cannot be empty",titleTooLong:"title cannot exceed {length} characters",descriptionEmpty:"description cannot be empty"},issuance:{pending:"Pending",create:{title:"Generate Link"},delete:{title:"Delete Receive Link",description:"Confirm delete {link}?"}},issue:"Issue Passport",disableIssuance:"Disable Passport Issuance",enableIssuance:"Enable Passport Issuance",disableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be disabled',enableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be enabled',trustedPassportIssuers:"Trusted Passport Issuers",trustedIssuers:"Trusted Issuers",trustedFactories:"Trusted NFT Collections",trustedFactoriesTip:"Manage trusted NFT Collections that can be used to exchange for a passport",searchFactoryAddress:"Search Collection DID",configFactories:"Config Trusted NFT Collections",configFactoriesTip:"Allow users to exchange NFTs for passport",factoryAddress:"NFT Collection Address",factory404:"NFT Collection not found",factoryAddressTip:"The NFT Collection address must exist on ArcBlock Main Chain",role:"Passport Type",ttl:"Passport Expire Policy",ttlNever:"Never Expire",ttlMint:"Since NFT Purchase",ttlExchange:"Since Passport Exchange",ttlNeverTip:"The passport will be valid until revoked",ttlMintTip:"The passport will be valid since the NFT is purchased until you specified ttl or revoke",ttlExchangeTip:"The passport will be valid since user successfully exchanged until you specified ttl or revoke",ttlTip:'"365d" means 365 days, you can also use "30 days" or "24h"',validUntil:"Valid until: {date}",externalPassport:"External Passport",notTrustedIssuerTip:"The passport cannot be used because the issuer is not on the list of trusted issuers",issuerDid:"Issuer DID",addNodeToTrustedIssuers:"Add current server as a trusted passport issuer",revoked:"Revoked",noPermission:"No permission to perform this operation",shouldNotDeleteCurrent:"You can not revoke your passport currently in use",mappingRule:"Mapping rule",defaultRule:"Default rule",search:"Search Passport",searchIssuerDid:"Search Issuer DID",issueBy:"Issue by {name}",configColor:"Config Passport Color",configColorTip:"Customize the color of the passport",color:"Passport Color",description:"Use this passport to connect {teamName} as {title}"},inviting:{link:"Invite Link",inviter:"Inviter",delete:{title:"Delete Invite Link",description:"Confirm delete {link}?"},disabledTip:"Invitation is not enabled"},whoCanAccess:{all:{title:"Accessible to all"},owner:{title:"Owner only"},invited:{title:"Invited user only"}}},launcher:{provider:"Provider",adminUrl:"URL"},session:{forbidLogin:"You have been blocked from access this server"},launchBlocklet:{appInfo:"Application Information",appInfoDesc:"Confirm the application information",author:"Application Author: {author}",setup:"Setup Blocklet",redirect:"Redirect",alreadyRunning:"Application {name} is already running on this Blocklet Server",alreadyInstalled:"Application {name} is already installed on this Blocklet Server",alreadyExists:"This application already exists, redirecting...",purchased:"Already Purchased",purchase:"Purchase",nextStep:"Next Step",agreement:"License Agreement",agreeAll:"Agree & Continue",installing:"Installing {appName} on {serverName}, it may take minutes to complete, please stay tuned...",redirecting:"{appName} is successfully installed, now starting...",start:"Launching",launch:"Install Blocklet to Server",launchSuccess:"{appName} is successfully launched!",installSuccess:"Blocklet is successfully installed and launched on {serverName}",openInRegistry:"View in Blocklet Store",subTitle:"Ready to install Blocklet {appName} on {serverName}",installingSubTitle:"{appName} installing",access:"Open the application",installRelatedComponents:"Install related Blocklets",viewApplication:"View Application",newVersion:"New Version",newVersionDesc:"The application already exists, but the current version can be upgraded",upgradeNow:"Upgrade Now",later:"Later",introduction:"Introduction",welcome:"Welcome to the Blocklet Launch Wizard",accept:"I agree to the Blocklet EULA",license:"Application License",next:"Agree to the EULA and continue",purchaseApp:"Purchase Blocklet",setupAppDesc:"Initialize your Blocklet",launched:"Complete",confirmInstall:"Confirm Installation",dialog:{title:"Become App Owner",nftFreeDescription:"Please present app space NFT and create app account to continue",nftPaidDescription:"Please present app space NFT and app purchase NFT to continue",freeDescription:"Please create app account to continue",paidDescription:"Please present app purchase NFT and create app account to continue",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully",authorizationTimeout:"Authorization timeout"},waiting:{verifying:"Verifying app meta...",downloading:"Downloading app bundle...",downloadingComponent:"Downloading {name}",extractingComponent:"Extracting {name}",extracting:"Extracting app bundle...",installing:"Installing app components...",installed:"Installed",starting:"Starting the app...",done:"Waiting for app ready..."},error:{loadMetaFailed:"Load app information failed",appMetaNotFound:"No information found for this app",downloadFailed:"Failed to download the app, please try again",installFailed:"Failed to install the app, please try again",startFailed:"Failed to start the app, please try again",launchFailed:"Failed to launch the app, please try again",installedButStopped:"The app is installed successfully, but cannot be started. You can start it manually after resolving blocking issues",installedButError:"The app is successfully installed, but failed to start",restoreFailed:"Failed to restore app, please try again",resourceBlocklet:"This blocklet cannot be launched directly, but you can add it into existing application."},steps:{introduction:"Introduction",installApp:"Install Application",purchaseSpace:"Purchase Space",prepareSpace:"Prepare Space"}},issuePassport:{title:"Receive Passport",description:"Use DID Wallet to receive the passport issued by {name}",dialog:{scan:"Use your DID Wallet to claim the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet",loginWithPassport:"Connect with this Passport",autoClose:"Page will auto close in {seconds}s",autoJump:"Page will auto jump in {seconds}s"}},lostPassport:{title:"Lost Passport",description:"The owner of {name} can scan the QR code to retrieve the passport, members please contact the owner to reissue the passport",dialog:{title:"Recover Passport",scan:"Use your DID Wallet to recover the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet"},return:"Connect with passport",selectPassport:"Select passport",receivePassport:"Receive passport"},invite:{message:"{name} invite you to be the {role} of {dapp}",success:"You have successfully joined {dapp}",receive:"Receive with",validUntil:"Valid until:",viewPermission:"View Permission",emptyPermission:"Empty Permission",open:"Open",description:{step1:"Download and setup your {wallet}",step2:"Click above button to receive passport",step3:"Login in {dapp} with received passport"},transferNFTDialog:{title:"Accept Blocklet Server {name}",scan:"Connect the Launcher to complete the reception of the Blocklet Server.",confirm:"Review this operation on your DID Wallet",success:"Connect successfully, waiting for confirmation of receiving the Server"}},receive:{dialog:{title:"Use your DID Wallet to receive passport",scan:"Connect your DID Wallet to receive passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},navigation:{navigation:"Navigation",access:"Access",members:"Members",passport:"Passport",analytics:"Analytics",dashboard:"Dashboard",studio:"Studio",blockletService:"Blocklet Service",actionFailed:"Action Failed",form:{title:"Title",titlePlaceholder:"Please input navigation title",titleTooLong:"Title length should small than {len}",icon:"Navigation Icon",iconPlaceholder:"Please input navigation icon",invalidIcon:"Icon is invalid",findMoreIcon:"Find more icons",link:"Link",linkPlaceholder:"Please input navigation link",invalidLink:"Link is invalid",component:"Component",componentPlaceholder:"Please select navigation component",role:"Role",rolePlaceholder:"Please select navigation role",locale:"Locale",localePlaceholder:"Please input locale need to add",localeExists:"{value} is already exists"},action:{add:"Add navigation",addSub:"Add sub navigation",edit:"Edit navigation",hide:"Hide navigation",show:"Show navigation",del:"Delete navigation",new:"New",noAddSub:"Uninstalled component can't add sub navigation",noEdit:"Uninstalled component can't edit",noDel:"Not allowed delete built-in navigation",reset:"Reset",restConfirmTitle:"Do you want to clear all custom navigation?",restConfirmDesc:"After clearing, the navigation will be restored to Blocklet's original default configuration.",resetSuccessful:"Reset successful"}},storage:{spaces:{tips:"Tips",label:"Enter DID Spaces Gateway",connected:{title:"Connected DID Spaces",tag:"Connected"},connectedWithName:"You have successfully connected to {name}",addedWithName:"You have successfully added {name}",connects:"Connect",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"},provideNFT:{title:"Please show the DID Spaces NFT for {appName}",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} show DID space NFT",success:"Connected successfully"},backup:{title:"Backup",records:"Backup Records"},autoBackup:{title:"Auto backup",enabled:"Automatic backup is on",disabled:"Automatic backup is off"},autoCheckUpdate:{title:"Automatically check for new version notification",enabled:"Automatically check for new version is on",disabled:"Automatically check for new version is off"},backupSuccessfully:"Backup successfully",restore:"Restore",restoreSuccessfully:"Restore successfully",gateway:{title:"Gateway",select:"Select a DID Spaces",add:{title:"Add DID Spaces",label:"Enter the url of the DID Spaces",failed:"Add DID Spaces failed",invalidUrl:"Invalid DID Spaces gateway url",duplicate:"DID Space({name}) already exist"},delete:{title:"Delete gateway",succeeded:"Delete DID Spaces{name} Success",failed:"Delete gateway failed",failedForSelected:"Unable to delete a selected DID Spaces"},connect:{title:"Connect DID Spaces",add:"Connect to DID Spaces now",addTips:"You are not connected to any Space yet",switch:"Switch DID Spaces",switchTips:"You are connected to {name}",connected:"Connected"},switch:{failedForMismatchSpace:"Please connect to the correct Space{name}"},connectTo:"Connect to DID Spaces"},strategy:{title:"Backup Strategy",autoBackup:"Auto backup",backupNow:"Backup now",viewBackupFiles:"View backup files"},progress:{title:"Backup progress"},record:{title:"Backup records",emptyData:"No records"},notYet:"You don't have a backup in progress yet...",connect:{now:"Connect now",title:"Connect DID Spaces",provider:"Provide your DID Spaces to start backups",providerForStorage:"Please connect your DID Spaces",useWallet:"Connect with DID Wallet",useWalletReconnect:"Reconnect with DID Wallet",useSpaceGateway:"Connect using the DID Spaces gateway",useSpaceGatewayReconnect:"Reconnect using the DID Spaces gateway",switchToSpace:"Switch to Space",switchToSpaceSucceeded:"Switched to Space{name}",succeeded:"You have successfully connected to DID Spaces",disconnect:"disconnect"},disconnected:{tag:"Disconnected",reconnectNow:"Reconnect Now"}}},log:{lastDays:{1:"Last 1 Day",7:"Last 1 Week"}},oauth:{commonSettings:"Common Settings",save:"Save",saveSuccess:"Save successfully",saveFailed:"Save failed",issued:"Issued",thirdPartyLogin:"Third party login",alreadyBindOAuth:"Already bind third party login",alreadyBindWallet:"Already bind DID Wallet",auth0:{enable:"Enable Auth0 login",domain:"Domain",domainDescription:"Auth0's domain is required",clientId:"Client ID",clientIdDescription:"Auth0 OAuth application client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Auth0 OAuth application Client Secret is required"},github:{enable:"Enable Github login",clientId:"Client ID",clientIdDescription:"Github OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Github OAuth application Client Secret is required"},google:{enable:"Enable Google login",clientId:"Client ID",clientIdDescription:"Google OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Google OAuth application Client Secret is required"},apple:{enable:"Enable Apple login",teamId:"Team ID",teamIdDescription:"Apple OAuth application Team ID is required",serviceId:"Service ID",serviceIdDescription:"Apple OAuth application Service ID is required",keyId:"Key ID",keyIdDescription:"Apple OAuth application Key ID is required",authKey:"Auth Key",authKeyDescription:"Apple OAuth application Auth Key is required",bundleId:"Bundle ID",bundleIdDescription:"Apple OAuth application Bundle ID is required"},comingSoon:"More login methods are under construction",moreLogin:"More Login",federated:"Federated Login",oauth:"Third Party Login",runTest:"Test"},expiration:{mobile:{tips:{success:"{validity}",warning:"{validity}",error:"Expired"},loadFailed:"Retry!"},desktop:{tips:{success:"Subscription will expire after {validity}",warning:"Subscription will expire after {validity}",error:"Subscription Expired"},loading:"Load subscription...",loadFailed:"Failed to load subscription info, please retry!",nextInvoice:"Next Invoice: {date}"}},analytics:{trend:"Trends",detail:"Breakdown",traffic:{totalRequests:"Total Requests",validRequests:"Success Requests",failedRequests:"Failed Requests",uniqueVisitors:"Unique Visitors",uniqueFiles:"Unique URLs",uniqueReferrers:"Unique Referrers",uniqueNotFound:"Unique 404",uniqueStaticFiles:"Unique Static Files",logSize:"Log Size",bandwidth:"Bandwidth"}},federated:{inviteJoinFederatedLogin:"Invite to join federated login",inviteJoinFederatedLoginDescription:"Copy the following address and fill it in the application where you need to join to apply for federated login.",federatedLogin:"Federated login",joinFederatedLogin:"Join federated login",joinFederatedLoginDescription:"Please enter the federated login address provided by Master Blocklet to join the federated login",quitFederatedLogin:"Quit federated login",quitFederatedLoginDescription:"After quit federated login, normal login is always available",federatedJoinAppUrl:"Federated login join appUrl",federatedJoinAppUrlRequired:"Please input federated login join appUrl",failedToGetFederatedLoginAppUrl:"Failed to get federated login join appUrl",federatedJoinAppUrlInvalid:"Federated login appUrl is invalid",siteDetail:"Site detail",approveToJoinLogin:"Approve to join federated login",approve:"Enable login",revoke:"Disable login",enableFederatedLogin:"Enable federated login",disableFederatedLogin:"Disable federated login",enableFederatedLoginDescription:"After enable federated login, this site will be auto login",disableFederatedLoginDescription:"After disable federated login, this site will not be auto login",enableFederatedAutoLogin:"Enable automatic login",enableFederatedAutoLoginDescription:"After enable automatic login, if there is currently a unified login status, the site will automatically log in the identity of the federated login",disableFederatedAutoLogin:"Disable automatic login",disableFederatedAutoLoginDescription:"After the automatic login is turned off, the site will not automatically log in the user information of the unified login, and you can still choose to manually click to log in with the identity of the federated login",info:{appId:"APP DID",appPid:"Permanent ID",migratedFrom:"Also Known As",appName:"Blocklet name",appDescription:"Blocklet description",appUrl:"Blocklet url",appLogo:"Blocklet logo",did:"Blocklet DID",serverId:"Blocklet Server ID",serverVersion:"Blocklet Server version",version:"Blocklet version",appliedAt:"Apply at",status:"Status"},status:{pending:"Pending",approved:"Approved",rejected:"Rejected",revoked:"Revoked"},disbandFederatedLogin:"Disband federated login",disbandFederatedLoginDescription:"After disband federated login, all member site will quit federated login automatically"},optionsOrder:{1:"Option One",2:"Option Two"}},yxt={blocklet:{restoreBlocklet:{title:"Restore Blocklet",description:"Please select the blocklet you want to restore",verify:{title:"Verify Ownership",subTitle:"Verify ownership of the blocklet with your DID Wallet",verify:"Verify",reconnect:"Try another blocklet",scan:"Scan QR code with your DID Wallet to prove ownership",confirm:"Sign delegation to allow server to download and decrypt the backup",success:"Ownership verified, the restoring is in progress",exists:"This blocklet already exists on this server and restore is aborted",open:"Visit Blocklet",overwrite:"Overwrite"},overwrite:{title:"Overwrite existing blocklet?",description:"The blocklet you are restoring already exists on this server, do you want to overwrite it? The exiting blocklet will be deleted first if you continue"},restore:{title:"Restore Blocklet"}},restoreFromServer:{selectTitle:"Select Application",description:"Please select the application you want to restore",backupIn:"Backup in"},restoreFromSpaces:{title:"Restore from DID Spaces",navSubTitle:"Restore",connect:{title:"Connect DID Space",subTitle:"Jump to DID Spaces, and select the blocklet you want to restore.",select:"Select DID Spaces Gateway",connect:"Connect"},selectBlocklet:{title:"Select App"},restore:{title:"Restore App",subTitle:"The app is being restored",completeTitle:"Everything is Ready",installedTitle:"Successfully restored!",installedSubTitle:"But still needs some configurations to start",support:'If retrying does not work, please ask help in the <a href="{communityLink}" target="_blank">community</a> or contact us at <a href="mailto: {supportEmail}">{supportEmail}</a>.'},nftAuthDialog:{title:"Please present your App Space NFT",scan:"Scan QR code with your DID Wallet to present your NFT",confirm:"Confirm on your DID Wallet",success:"NFT successfully verified!"},progress:{waiting:"Waiting for restore...",restoring:"Restoring...",importData:"Importing data...",downloading:"Downloading files, progress: {progress}",importSuccess:"Successfully imported!",installing:"Installing..."}}},server:{checkUpgrade:"Check new version"}},Co=e=>Nle($le(...e)),vxt={en:Nle($le(gxt,yxt)),ar:async()=>{const e=await Promise.all([yn(()=>import("./ar-D-8bmv2Q.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./ar-DEFG_HSF.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},de:async()=>{const e=await Promise.all([yn(()=>import("./de-BXUm1QYV.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./de-BXx5XWMv.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},es:async()=>{const e=await Promise.all([yn(()=>import("./es-CH6tZGrR.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./es-dYDfzHE0.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},fr:async()=>{const e=await Promise.all([yn(()=>import("./fr-roccVFT3.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./fr-DGLilU-8.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},hi:async()=>{const e=await Promise.all([yn(()=>import("./hi-VN-lZj6f.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./hi-EiYI5FnU.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},id:async()=>{const e=await Promise.all([yn(()=>import("./id-C-ovCb8b.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./id-BHuBzbF-.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},ja:async()=>{const e=await Promise.all([yn(()=>import("./ja-D-sN9ij0.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./ja-BeNRi6CF.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},ko:async()=>{const e=await Promise.all([yn(()=>import("./ko-DFpbqZ_Q.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./ko-BGPBfmUw.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},pt:async()=>{const e=await Promise.all([yn(()=>import("./pt-BXC7UTMq.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./pt-BmW9xdbz.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},ru:async()=>{const e=await Promise.all([yn(()=>import("./ru-BbD1NNUC.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./ru-DufkUHOM.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},th:async()=>{const e=await Promise.all([yn(()=>import("./th-VkDcmE_T.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./th-Dl-J4TkD.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},vi:async()=>{const e=await Promise.all([yn(()=>import("./vi-CanFbf1v.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./vi-BMeJuBa9.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},zh:async()=>{const e=await Promise.all([yn(()=>import("./zh-BxXo7x1m.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./zh-BDoN11lM.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)},"zh-TW":async()=>{const e=await Promise.all([yn(()=>import("./zh-tw-Bvqjz2OU.js"),[],import.meta.url).then(t=>t.default),yn(()=>import("./zh-tw-Dg9g_7UM.js"),[],import.meta.url).then(t=>t.default)]);return Co(e)}},A1=vk({typography:{fontSize:14,button:{textTransform:"none"}},overrides:{MuiTableRow:{root:{"&:nth-child(even)":{backgroundColor:"rgba(0, 0, 0, 0.02)"}},head:{backgroundColor:"transparent"}}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}},breakpoints:{values:{xs:0,sm:600,md:960,lg:1280,xl:1920}}}),bxt=bu`
1496
1496
  a {
1497
1497
  color: ${I3.A700};
1498
1498
  text-decoration: none;
@@ -2490,4 +2490,4 @@ ${r}
2490
2490
  ${e=>e.scrollable?"":"overflow: hidden"};
2491
2491
  }
2492
2492
  `;function ECt(){const{t:e}=vo(),{session:t}=D0(),{info:n,refresh:r}=Ol();return ho(mi.TeamEvents.userUpdated,({teamDid:i,user:o})=>{i===n.did&&o&&!o.approved&&t&&t.user&&t.user.did===o.did&&(oi.warning(e("session.forbidLogin"),{autoHideDuration:10*1e3}),t.logout())}),ho(rn.EVENTS.NOTIFICATION_CREATE,i=>{i.entityType==="node"&&r({silent:!0})}),ho(rn.EVENTS.NODE_UPDATED,()=>{r({silent:!0})}),null}var Ls={},RCt=Vie;function kCt(e){return e&&e.length?RCt(e):[]}var Tue=kCt;const oEt=Kt(Tue),DCt=Oi(aHe);class LCt{constructor(t){this.value=t,this.next=void 0}}let OCt=class{constructor(){this.clear()}enqueue(t){const n=new LCt(t);this._head?(this._tail.next=n,this._tail=n):(this._head=n,this._tail=n),this._size++}dequeue(){const t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};var ICt=OCt;const PCt=ICt,MCt=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=new PCt;let n=0;const r=()=>{n--,t.size>0&&t.dequeue()()},i=async(s,l,...c)=>{n++;const u=(async()=>s(...c))();l(u);try{await u}catch{}r()},o=(s,l,...c)=>{t.enqueue(i.bind(null,s,l,...c)),(async()=>(await Promise.resolve(),n<e&&t.size>0&&t.dequeue()()))()},a=(s,...l)=>new Promise(c=>{o(s,c,...l)});return Object.defineProperties(a,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),a};var BCt=MCt,xue={},Li={};Li.endianness=function(){return"LE"};Li.hostname=function(){return typeof location<"u"?location.hostname:""};Li.loadavg=function(){return[]};Li.uptime=function(){return 0};Li.freemem=function(){return Number.MAX_VALUE};Li.totalmem=function(){return Number.MAX_VALUE};Li.cpus=function(){return[]};Li.type=function(){return"Browser"};Li.release=function(){return typeof navigator<"u"?navigator.appVersion:""};Li.networkInterfaces=Li.getNetworkInterfaces=function(){return{}};Li.arch=function(){return"javascript"};Li.platform=function(){return"browser"};Li.tmpdir=Li.tmpDir=function(){return"/tmp"};Li.EOL=`
2493
- `;Li.homedir=function(){return"/"};(function(e){var t=ht&&ht.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.hasMountPoint=e.hasStartEngine=e.isPackBlocklet=e.isGatewayBlocklet=e.getBlockletEngine=void 0;const n=t(Li),r=mi,i=c=>{if(c===void 0)throw new Error("blocklet meta param is required");const{engine:u}=c;if(!u)return{interpreter:"node",source:""};if(!Array.isArray(u))return u;const d=n.default.platform(),p=u.find(g=>g.platform===d);if(!p)throw new Error(`can not find a proper engine interpreter on ${d}`);return p};e.getBlockletEngine=i;const o=c=>(c==null?void 0:c.group)===r.BlockletGroup.gateway;e.isGatewayBlocklet=o;const a=c=>(c==null?void 0:c.group)===r.BlockletGroup.pack;e.isPackBlocklet=a;const s=c=>!!(c!=null&&c.main)||(0,e.getBlockletEngine)(c||{}).interpreter==="blocklet";e.hasStartEngine=s;const l=c=>((0,e.hasStartEngine)(c)||((c==null?void 0:c.interfaces)||[]).find(u=>u.type===r.BLOCKLET_INTERFACE_TYPE_WEB))&&(0,e.isGatewayBlocklet)(c)===!1;e.hasMountPoint=l})(xue);(function(e){var t=ht&&ht.__importDefault||function(te){return te&&te.__esModule?te:{default:te}};Object.defineProperty(e,"__esModule",{value:!0}),e.isPackBlocklet=e.isGatewayBlocklet=e.isAccessible=e.isRunning=e.isBeforeInstalled=e.isInProgress=e.getBlockletServices=e.getBlockletAppIdList=e.getRolesFromAuthConfig=e.isPreferenceKey=e.isExternalBlocklet=e.getBlockletChainInfo=e.getChainInfo=e.getConnectAppUrl=e.getParentComponentName=e.filterComponentsV2=e.findComponentByIdV2=e.findComponentV2=e.findComponentById=e.findComponent=e.getComponentBundleId=e.getComponentName=e.getComponentId=e.replaceSlotToIp=e.getComponentWhoCanAccess=e.getWhoCanAccess=e.findServiceFromMeta=e.findWebInterfacePort=e.findWebInterface=e.fixBlockletStatus=e.getAppDescription=e.getDisplayName=e.getAppName=e.hasRunnableComponent=e.wipeSensitiveData=e.isEnvShareable=e.isEnvShareableToClient=e.getComponentMissingConfigs=e.getAppMissingConfigs=e.getSharedConfigObj=e.isDeletableBlocklet=e.forEachComponentV2Sync=e.forEachComponentV2=e.forEachChildSync=e.forEachChild=e.forEachBlockletSync=e.forEachBlocklet=e.isFreeComponent=e.isFreeBlocklet=e.getAppUrl=void 0,e.hasResourceType=e.hasStartEngine=void 0;const n=t(Gw),r=t(Tue),i=DCt,o=t(BCt),a=t(rn),s=mi,l=xue;Object.defineProperty(e,"hasStartEngine",{enumerable:!0,get:function(){return l.hasStartEngine}}),Object.defineProperty(e,"isGatewayBlocklet",{enumerable:!0,get:function(){return l.isGatewayBlocklet}}),Object.defineProperty(e,"isPackBlocklet",{enumerable:!0,get:function(){return l.isPackBlocklet}});const{NODE_SERVICES:c,SLOT_FOR_IP_DNS_SITE:u,WHO_CAN_ACCESS:d,WHO_CAN_ACCESS_PREFIX_ROLES:p}=a.default,g=(te,we=[])=>`${we.map(Be=>Be&&Be.meta?Be.meta.did:"").join("/")}${we.length?"/":""}${te&&te.meta?te.meta.did:""}`;e.getComponentId=g;const y=(te,we=[])=>`${we.map(Be=>Be&&Be.meta?Be.meta.name:"").join("/")}${we.length?"/":""}${te&&te.meta?te.meta.name:""}`;e.getComponentName=y;const b=te=>`${te.meta.bundleName}@${te.meta.version}`;e.getComponentBundleId=b;const A=te=>{if(!te)return"";const we=te.split("/");return we.pop(),!we.length||(we[we.length-1].startsWith("@")&&we.pop(),!we.length)?"":we.join("/")};e.getParentComponentName=A;const x=(te,we,{parallel:Be=!1,concurrencyLimit:ke=5,sync:re,params:V,_parent:W,_root:ce,_level:Re=0,_tasks:_e,_ancestors:De=[],_limit:Ve}={})=>{const Fe=ce||W||te,je=g(te,De),ot=De.concat(te);if(re){const Le=we(te,{parent:W,root:Fe,level:Re,params:V,ancestors:De,id:je});if(te.children)for(const Oe of te.children)x(Oe,we,{sync:re,params:Le,_parent:te,_root:Fe,_level:Re+1,_ancestors:ot});return null}if(!Be)return new Promise(async(Le,Oe)=>{try{const Ie=await we(te,{parent:W,root:Fe,level:Re,ancestors:De,params:V,id:je});if(te.children)for(const nt of te.children)await x(nt,we,{params:Ie,_parent:te,_root:Fe,_level:Re+1,_ancestors:ot});Le(null)}catch(Ie){Oe(Ie)}});const Ze=Ve||(0,o.default)(ke),Je=_e||[];if(Je.push(Ze(()=>we(te,{parent:W,root:Fe,level:Re,ancestors:De,id:je}))),te.children)for(const Le of te.children)x(Le,we,{parallel:Be,_parent:te,_root:Fe,_level:Re+1,_tasks:Je,_ancestors:ot,_limit:Ze});return _e?null:Promise.all(Je)};e.forEachBlocklet=x;const D=(te,we)=>x(te,we,{sync:!0});e.forEachBlockletSync=D;const O=(te,we,{parallel:Be=!1,concurrencyLimit:ke=5,sync:re}={})=>{if(re){if(te.children)for(const ce of te.children)we(ce);return null}if(!Be)return new Promise(async(ce,Re)=>{try{if(te.children)for(const _e of te.children)await we(_e);ce(null)}catch(_e){Re(_e)}});const V=(0,o.default)(ke),W=[];if(te.children)for(const ce of te.children)W.push(V(()=>we(ce)));return Promise.all(W)};e.forEachComponentV2=O;const M=(te,we)=>O(te,we,{sync:!0});e.forEachComponentV2Sync=M;const q=(te,we,Be)=>x(te,(ke,re)=>re.level===0?{}:we(ke,re),Be);e.forEachChild=q;const B=(te,we)=>q(te,we,{sync:!0});e.forEachChildSync=B;const j=(te,we,{_ancestors:Be=[],returnAncestors:ke=!1}={})=>{if(!we)return null;if(we(te,{ancestors:Be}))return ke?{component:te,ancestors:Be}:te;for(const re of te.children||[]){const V=Be.concat(te),W=j(re,we,{_ancestors:V,returnAncestors:ke});if(W)return W}return null};e.findComponent=j;const K=(te,we,{returnAncestors:Be=!1}={})=>(Array.isArray(we)&&(we=we.join("/")),j(te,(ke,{ancestors:re})=>{const V=g(ke,re);return we===V},{returnAncestors:Be}));e.findComponentById=K;const oe=(te,we)=>{if(!we)return null;for(const Be of te.children||[])if(we(Be,te))return Be;return null};e.findComponentV2=oe;const ue=(te,we)=>we?(Array.isArray(we)&&(we=we.join("/")),oe(te,(Be,ke)=>{if(we.includes("/")){const re=g(Be,[ke]);return we===re}return we===Be.meta.did})):null;e.findComponentByIdV2=ue;const G=(te,we)=>{if(!we)return[];const Be=[];for(const ke of te.children||[])we(ke,te)&&Be.push(ke);return Be};e.filterComponentsV2=G;const P=te=>!!te&&!!(te.key||te.name)&&!te.secure&&te.shared!==!1&&!s.BLOCKLET_CONFIGURABLE_KEY[te.key||te.name];e.isEnvShareableToClient=P;const T=te=>!!te&&!!(te.key||te.name)&&!te.secure&&!!te.shared&&!s.BLOCKLET_CONFIGURABLE_KEY[te.key||te.name];e.isEnvShareable=T;const f=(te,we)=>{const Be={};return!te||!we||(Array.isArray(te.configs)&&te.configs.forEach(({key:ke,value:re,secure:V})=>{if(!T({key:ke,secure:V,shared:!0}))return;const W=(te.configObj||{})[ke]||re,ce=(we.configs||[]).find(Re=>Re.key===ke);(!ce||T(ce)||!ce.value&&!(we.configObj||{})[ce.key])&&(Be[ke]=W)}),(te.configs||[]).forEach(({key:ke,value:re})=>{[s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_HOST,s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_ID,s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_TYPE].includes(ke)&&(Be[s.CHAIN_PROP_MAP[ke]]=re)})),Be};e.getSharedConfigObj=f;const h=te=>te.key.startsWith(s.BLOCKLET_PREFERENCE_PREFIX)===!0;e.isPreferenceKey=h;const w=(te,we)=>!!(te.required&&(!te.value&&!we[te.key]||Object.values(s.CHAIN_PROP_MAP).includes(te.key)&&Object.keys(we).includes(te.key)&&!we[te.key])),_=(te={})=>{const we=[];return M(te,Be=>{var V;if(((V=Be.meta)==null?void 0:V.group)===s.BlockletGroup.gateway)return;const ke=Be.configs||[],re=f(te,Be);ke.forEach(W=>{w(W,re)&&we.push({did:Be.meta.did,key:W.key,description:W.description})})}),we.filter(Be=>!h(Be))};e.getAppMissingConfigs=_;const R=(te={},we={})=>{const Be=[],ke=te.configs||[],re=f(we,te);return ke.forEach(V=>{w(V,re)&&Be.push({did:te.meta.did,key:V.key,description:V.description})}),Be};e.getComponentMissingConfigs=R;const k=te=>te.payment?(te.payment.price||[]).map(Be=>Be.value||0).every(Be=>Be===0):!0;e.isFreeBlocklet=k;const C=te=>!te.payment||!te.payment.componentPrice?!0:!te.payment.componentPrice.length;e.isFreeComponent=C;const E=te=>te&&(x(te,we=>{we.configs&&(we.configs=we.configs.filter(Be=>!h(Be)),we.configs.forEach(Be=>{Be.secure&&(Be.value=Be.value?"__encrypted__":"")})),(we.environments||[]).forEach(Be=>{["BLOCKLET_APP_SK","BLOCKLET_APP_PSK"].includes(Be.key)&&(Be.value="__encrypted__")}),(we.migratedFrom||[]).forEach(Be=>{Be.appSk="__encrypted__"}),delete te.configObj,delete te.environmentObj},{sync:!0}),te);e.wipeSensitiveData=E;const v=te=>{if(!te)return!1;const we=te.environments.find(Be=>Be.key==="BLOCKLET_DELETABLE");return we?we.value==="yes":!0};e.isDeletableBlocklet=v;const L=te=>{let we=!1;return D(te,Be=>{Be.meta.group!==s.BlockletGroup.gateway&&(we=!0)}),we};e.hasRunnableComponent=L;const ne=(te,we=!1)=>{if(!te)return"";const{meta:Be}=te;let ke;if(!we&&te.environments){const re=te.environments.find(V=>V.key==="BLOCKLET_APP_NAME");re&&re.value&&(ke=re.value)}return ke||Be.title||Be.name};e.getAppName=ne,e.getDisplayName=ne;const F=(te,we=!1)=>{if(!te)return"";const{meta:Be}=te;let ke;if(!we&&te.environments){const re=te.environments.find(V=>V.key==="BLOCKLET_APP_DESCRIPTION");re&&re.value&&(ke=re.value)}return ke||Be.description||Be.name};e.getAppDescription=F;function J(te){var ke,re,V;const we=(V=(re=(ke=te==null?void 0:te.site)==null?void 0:ke.domainAliases)==null?void 0:re.sort((W,ce)=>{var Re,_e,De,Ve;return(Re=W.accessibility)!=null&&Re.accessible&&((_e=ce.accessibility)!=null&&_e.accessible)?+W.isProtected-+ce.isProtected:+((De=ce.accessibility)==null?void 0:De.accessible)-+((Ve=W.accessibility)==null?void 0:Ve.accessible)}))==null?void 0:V.map(W=>{var _e;const ce=(_e=W==null?void 0:W.domainStatus)!=null&&_e.isHttps?"https://":"http://",Re=W==null?void 0:W.value;return`${ce}${Re}`}).filter(Boolean);return we==null?void 0:we[0]}e.getAppUrl=J;const se=te=>{te&&(D(te,we=>{we.status=(0,s.fromBlockletStatus)(we.status),we.source!==void 0&&(we.source=(0,s.fromBlockletSource)(we.source))}),te.settings&&(te.settings.children||[]).forEach(we=>{D(we,Be=>{Be.status=(0,s.fromBlockletStatus)(Be.status),Be.source!==void 0&&(Be.source=(0,s.fromBlockletSource)(Be.source))})}))};e.fixBlockletStatus=se;const pe=te=>{if(!te)return null;const we=te.meta||te||{},{interfaces:Be=[]}=we;return Array.isArray(Be)?Be.find(ke=>ke.type===s.BLOCKLET_INTERFACE_TYPE_WEB):null};e.findWebInterface=pe;const be=te=>{if(!te)return null;const we=pe(te),{ports:Be}=te;return!we||!Be?null:Be[we.port]};e.findWebInterfacePort=be;const Ee=(te,we)=>{const Be=[we];we===c.AUTH&&Be.push(c.AUTH_SERVICE);const ke=pe(te);return ke?(ke.services||[]).find(re=>Be.includes(re.name)):null};e.findServiceFromMeta=Ee;const H=te=>{if(!te)return d.ALL;if((0,n.default)(te,"settings.whoCanAccess"))return te.settings.whoCanAccess;const we=Ee(te.meta,c.AUTH);return(0,n.default)(we,"config.whoCanAccess")?we.config.whoCanAccess:d.ALL};e.getWhoCanAccess=H;const $=(te,we)=>{const Be=(te.configs||[]).find(re=>re.key===s.BLOCKLET_CONFIGURABLE_KEY.COMPONENT_ACCESS_WHO);if(Be)return Be.value;if(we&&(0,n.default)(we,"settings.whoCanAccess")&&(0,n.default)(we,"settings.whoCanAccess")!==d.ALL)return(0,n.default)(we,"settings.whoCanAccess");const ke=Ee(te.meta,c.AUTH);return(0,n.default)(ke,"config.whoCanAccess")?ke.config.whoCanAccess:d.ALL};e.getComponentWhoCanAccess=$;const Z=({request:te,baseUrl:we})=>{const Be=te.headers["x-blocklet-did"]||"",ke=te.headers["x-blocklet-real-did"]||"",re=te.headers["x-path-prefix"]||"/",V=te.headers["x-group-path-prefix"]||"/";let W=we;return Be!==ke&&re!==V&&(W=(0,i.joinURL)(W,"/").replace(re,V)),W};e.getConnectAppUrl=Z;const Y=(te,we)=>{const Be=(we||"").includes(":")?":":/\./;return(te||"").replace(u,(we||"").replace(new RegExp(Be,"g"),"-"))};e.replaceSlotToIp=Y;const ie=te=>{const we=Object.entries(s.CHAIN_INFO_CONFIG).reduce((Be,ke)=>{const[re,[V,W]]=ke;return Be[V]=(0,n.default)(te,re)||W,Be},{});return we.type==="ethereum"&&we.id==="none"&&(we.id="1"),we};e.getChainInfo=ie;const Te=te=>{const we=ie({});if(!te)return we;const Be=ie(te.configObj);if(Be.host!=="none")return Be;let ke;return B(te,re=>{if(ke&&ke.host!=="none")return;const V=ie(re.configObj);V.host!=="none"&&(ke=V)}),ke||we};e.getBlockletChainInfo=Te;const me=te=>!!(te!=null&&te.controller);e.isExternalBlocklet=me;const le=te=>te.whoCanAccess.startsWith(p)?te.whoCanAccess.substring(p.length).split(","):[];e.getRolesFromAuthConfig=le;const ve=te=>{const we=Array.isArray(te.migratedFrom)?te.migratedFrom.map(Be=>Be.appDid):[];return(0,r.default)([te.appDid,te.appPid,...we].filter(Boolean))};e.getBlockletAppIdList=ve;const Ae=te=>{const we=[];return te&&D(te,Be=>{var re;(((re=Be.meta)==null?void 0:re.interfaces)||[]).filter(V=>V.type===s.BLOCKLET_INTERFACE_TYPE_SERVICE).forEach(V=>{const W=V.port||{};we.push({name:V.name,protocol:V.protocol,port:Number(W.external),upstreamPort:Number((Be.ports||{})[W.internal])})})}),we};e.getBlockletServices=Ae;const xe=te=>[s.BlockletStatus.downloading,s.BlockletStatus.waiting,s.BlockletStatus.starting,s.BlockletStatus.installing,s.BlockletStatus.stopping,s.BlockletStatus.upgrading,"downloading","waiting","starting","installing","extracting","stopping","upgrading","restarting","deleting"].includes(te);e.isInProgress=xe;const He=te=>[s.BlockletStatus.added,s.BlockletStatus.waiting,s.BlockletStatus.downloading,s.BlockletStatus.installing,"added","waiting","downloading","installing"].includes(te);e.isBeforeInstalled=He;const Ye=te=>[s.BlockletStatus.running,"running"].includes(te);e.isRunning=Ye;const ge=te=>[s.BlockletStatus.running,s.BlockletStatus.waiting,s.BlockletStatus.downloading,"running","waiting","downloading"].includes(te);e.isAccessible=ge;const Pe=(te,{type:we,did:Be}={type:"",did:""})=>{var ke,re,V;return te?!(0,l.hasStartEngine)(te.meta)&&((V=(re=(ke=te.meta)==null?void 0:ke.resource)==null?void 0:re.bundles)==null?void 0:V.length)>0&&(te.meta.resource.bundles||[]).some(W=>W.type===we&&W.did===Be):!1};e.hasResourceType=Pe,e.default={isFreeBlocklet:k,isFreeComponent:C,forEachBlocklet:x,forEachBlockletSync:D,forEachChild:q,forEachChildSync:B,forEachComponentV2:O,forEachComponentV2Sync:M,isDeletableBlocklet:v,getSharedConfigObj:f,getAppMissingConfigs:_,getComponentMissingConfigs:R,isEnvShareableToClient:P,isEnvShareable:T,wipeSensitiveData:E,hasRunnableComponent:L,getAppName:ne,getAppDescription:F,getAppUrl:J,getDisplayName:ne,fixBlockletStatus:se,findWebInterface:pe,findWebInterfacePort:be,findServiceFromMeta:Ee,getWhoCanAccess:H,getComponentWhoCanAccess:$,replaceSlotToIp:Y,getComponentId:g,getComponentName:y,getComponentBundleId:b,findComponent:j,findComponentById:K,findComponentV2:oe,findComponentByIdV2:ue,filterComponentsV2:G,getParentComponentName:A,getConnectAppUrl:Z,getChainInfo:ie,getBlockletChainInfo:Te,isExternalBlocklet:me,isPreferenceKey:h,getRolesFromAuthConfig:le,getBlockletServices:Ae,isInProgress:xe,isBeforeInstalled:He,isRunning:Ye,isAccessible:ge,isGatewayBlocklet:l.isGatewayBlocklet,isPackBlocklet:l.isPackBlocklet,hasStartEngine:l.hasStartEngine,hasResourceType:Pe}})(Ls);const Sue=(e,t=!1)=>{const n=e.routing.adminPath;return t?encodeURIComponent(An(window.location.origin,n)):An(window.location.origin,n)},sEt=(e,t,n)=>{const r=Sue(t),i=An(n,`/api/blocklets/${e.did}/blocklet.json`),o=new URL(An(r,"/launch-blocklet/agreement"));return o.searchParams.set("blocklet_meta_url",i),o.searchParams.set("from",window.location.href),o.href},NCt=async(e,{getIP:t}={})=>{if(!e||!e.length)return[];if(!t||!e.some(r=>r.value.includes(rn.SLOT_FOR_IP_DNS_SITE)))return e;const n=await t();return n?e.map(r=>{try{return r.value=Ls.replaceSlotToIp(r.value,n),r}catch{return r}}).filter(Boolean):e},$Ct=e=>{const t={didSpace:null};return Ls.forEachBlockletSync(e,n=>{var r,i;t.didSpace===mi.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||t.didSpace===mi.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP||(i=(r=n==null?void 0:n.meta)==null?void 0:r.capabilities)!=null&&i.didSpace&&(t.didSpace=n.meta.capabilities.didSpace)}),t},oG=async(e,{fixRuntime:t=!0,oldBlocklet:n,getIP:r}={})=>{if(e.site||(e.site={domainAliases:[],rules:[]}),e.site.rules.forEach(i=>{i.from.pathPrefix=CL(i.from.pathPrefix||"/")}),e.site.rules=Hie(e.site.rules,i=>i.from.pathPrefix),t===!0)e.site.domainAliases=await NCt(e.site.domainAliases,{getIP:r}),e.appRuntimeInfo&&(e.appRuntimeInfo.startAt=new Date-e.appRuntimeInfo.uptime),Ls.forEachBlockletSync(e,i=>{i.runtimeInfo&&(i.runtimeInfo.startAt=new Date-i.runtimeInfo.uptime)});else if(t==="merge-old"&&n){e.site.domainAliases=n.site.domainAliases,e.appRuntimeInfo=n.appRuntimeInfo;const i={};Ls.forEachBlockletSync(n,(o,{id:a})=>{i[a]=o}),Ls.forEachBlockletSync(e,(o,{id:a})=>{const s=i[a];s&&(o.runtimeInfo=s.runtimeInfo,o.diskInfo=s.diskInfo,o.engine=s.engine)})}else e.site.domainAliases=[];e.capabilities=$Ct(e)},aG="arcblock",lEt=(e,t=!1)=>{let n;return t?(n=(e.configs||[]).find(r=>r.key==="BLOCKLET_APP_CHAIN_TYPE"),n&&n.value||(n=(e.environments||[]).find(r=>["CHAIN_TYPE","BLOCKLET_APP_CHAIN_TYPE"].includes(r.key)),n&&n.value)?n.value:aG):(n=(e.environments||[]).find(r=>["CHAIN_TYPE","BLOCKLET_APP_CHAIN_TYPE"].includes(r.name)),n&&n.default?n.default:aG)},uEt=e=>!cD(e==null?void 0:e.controller);let uA=null;const FCt=async()=>{const e=window.env.apiPrefix||"/",t=An(e,"/api/dns-resolve?accessible=1");try{return(await Mr.get(t)).data.address}catch{return null}},sG=()=>(uA||(uA=FCt()),uA),Cue=U.createContext({}),{Provider:UCt,Consumer:cEt}=Cue,lG=(e,t,n)=>n?e.map(r=>{const i={...r},o=t.find(a=>a.meta.did===r.meta.did);return o&&n.forEach(a=>{i[a]=o[a]}),i}):t;function jCt({children:e}){const t=Ol(),n=I5(),[r,i]=U.useState(null),[o,a]=U.useState(!1),[s,l]=U.useState([]),[c,u]=U.useState([]),[d,p]=U.useState(!1),g=(M,q)=>{Ls.isExternalBlocklet(M)?u(q):l(q)},y=4,b=async({silent:M=!0,retries:q=y,updates:B,useCache:j=!0}={})=>{M||a(!0);try{i(null);const{blocklets:K}=await n.getBlocklets({input:{useCache:j}});for(const G of K)await oG(G,{getIP:sG});const oe=K.filter(G=>!Ls.isExternalBlocklet(G)),ue=K.filter(Ls.isExternalBlocklet);l(G=>lG(G,oe,B)),u(G=>lG(G,ue,B)),a(!1),p(!0)}catch(K){q>0?setTimeout(()=>b({silent:M,retries:q-1,useCache:j}),1e3):(a(!1),i(K))}},A=async M=>{try{const{blocklet:q}=await t.api.getBlocklet({input:{did:M.meta.did,attachRuntimeInfo:!0}});await oG(q,{getIP:sG}),g(q,B=>B.some(j=>j.meta.did===q.meta.did)?B.map(j=>j.meta.did===q.meta.did?q:j):[...B,q])}catch(q){i(q)}},x=M=>{t.refresh(),A(M)};U.useEffect(()=>{b({silent:!1})},[]);const D=M=>{const q={};Ls.forEachBlockletSync(M,(B,{id:j})=>{q[j]=mi.fromBlockletStatus(B.status)}),g(M,B=>B.map(j=>(j.meta.did===M.meta.did&&Ls.forEachBlockletSync(j,(K,{id:oe})=>{q[oe]&&(K.status=q[oe])}),j)))};ho(mi.BlockletEvents.added,M=>{M.status=mi.fromBlockletStatus(M.status),g(M,q=>[...q,M])}),ho(mi.BlockletEvents.removed,M=>{t.refresh(),g(M,q=>q.filter(B=>B.meta.did!==M.meta.did))}),ho(mi.BlockletEvents.statusChange,D),ho(mi.BlockletEvents.installed,x),ho(mi.BlockletEvents.upgraded,x),ho(mi.BlockletEvents.updated,A),ho(mi.BlockletEvents.startFailed,A);const O={loading:o,error:r,data:s,externalData:c,refresh:b,initialized:d,api:n};return I.jsx(UCt,{value:{blocklets:O},children:e})}function fEt(){const{blocklets:e}=U.useContext(Cue);return e}const VCt=({user:e,launchType:t,nftId:n})=>{var r;if(!e)return!1;if(t==="serverless"){if(!n)throw new Error("nftId is required");return((r=e==null?void 0:e.controller)==null?void 0:r.nftId)===n}return(e.permissions||[]).includes("mutate_blocklets")},dEt=e=>{var t,n;return e.isGetBlocklet&&((n=(t=e.runtimeBlocklet)==null?void 0:t.controller)==null?void 0:n.consumedAt)},pEt=async e=>{const t=Ydt({blocklet:e});let n="";return n=t.find(r=>{try{const{hostname:i}=new URL(r);return uae.isSlpDomain(i)}catch(i){return console.error(i),!1}}),n||(n=await ept(t)),n},Aue=U.createContext({}),{Provider:qCt,Consumer:hEt}=Aue;function zCt({children:e}){const{session:t}=D0(),{t:n}=vo(),{api:r,info:i}=Ol(),[o]=mY(),a=I5(),s=o.get("launchType"),l=o.get("fromLauncher"),c=o.get("blocklet_meta_url")||"",u=o.get("nftId")||"",d=o.get("launcherSessionId")||"",p=o.get("launcherUrl")||"",g=new URL(c).origin,[y,b]=U.useState({meta:null,appDid:o.get("appDid")||null,sessionId:o.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),A=(ue,G)=>b(P=>({...P,appDid:ue,sessionId:G})),x=VCt({user:t.user,launchType:s,nftId:u}),[D,O]=U.useState(null),[M,q]=U.useState(!0),B=U.useMemo(()=>i?Sue(i):"",[i]),j=async ue=>{if(!ue)throw new Error("appDid should not be empty");const{blocklet:G}=await r.getBlocklet({input:{did:ue,attachConfig:!1}});if(!G)return null;const P=mi.BlockletStatus[G.status],T=!!u,f=P<mi.BlockletStatus.installed,h=P===mi.BlockletStatus.installed,w=P===mi.BlockletStatus.running;return b(_=>({..._,isInstalled:h,isRunning:w,isExternal:T,isInstalling:f})),{isInstalled:h,isRunning:w,isExternal:T,isInstalling:f}},K=async()=>{q(!0);try{if(!c)throw new Error(n("common.invalidParam"));const[{meta:ue,isFree:G,registryUrl:P},{launcherSession:T,error:f}]=await Promise.all([r.getBlockletMetaFromUrl({input:{url:c,checkPrice:!0}}),d?r.getLauncherSession({input:{launcherSessionId:d,launcherUrl:p}}):Promise.resolve({})]);if(d&&!T)throw new Error(`Launch session invalid: ${f}`);if(!ue)throw new Error(n("LaunchBlockletBlocklet.error.loadMetaFailed"));let h={};x&&y.appDid&&(h=await j(y.appDid)),b(w=>({...w,...h,meta:ue,isFree:G,registryUrl:P,launcherSession:T}))}catch(ue){console.error(ue),O(ue.message)}finally{q(!1)}};U.useEffect(()=>{var ue,G,P;((ue=t==null?void 0:t.user)==null?void 0:ue.role)===rn.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&((P=(G=t==null?void 0:t.user)==null?void 0:G.controller)==null?void 0:P.nftId)!==u&&t.logout(),K()},[]),U.useEffect(()=>{M||!y.meta||(x?y.appDid&&j(y.appDid).catch(ue=>{oi.error(ue.message)}):(b(ue=>({...ue,isInstalled:!1,isRunning:!1,isExternal:!1})),O(null)))},[x]);const oe={meta:y.meta,isFree:y.isFree,appDid:y.appDid,sessionId:y.sessionId,isInstalling:y.isInstalling,isInstalled:y.isInstalled,isExternal:y.isExternal,isRunning:y.isRunning,serverUrl:B,storeUrl:y.registryUrl||g,blockletMetaUrl:c,fromLauncher:l,loading:M,error:D,api:a,getBlocklet:j,setAppDid:A,launcherUrl:p,launcherSession:y.launcherSession,launcherSessionId:d};return I.jsx(qCt,{value:oe,children:e})}function mEt(){return U.useContext(Aue)}function _ue(){return new URLSearchParams(wi().search)}const Eue=U.createContext(),{Provider:HCt,Consumer:gEt}=Eue;function Rue({children:e}){const n=_ue().get("blocklet_meta_url"),r=K8t(async()=>{const{data:o}=await SL.get(n);return o});if(r.loading)return I.jsx(aa,{children:I.jsx(ca,{})});const i={meta:r.value,error:r.error};return I.jsx(HCt,{value:i,children:e})}Rue.propTypes={children:Q.any.isRequired};function yEt(){return U.useContext(Eue)}const WCt=U.lazy(()=>yn(()=>import("./index-DZKqUnTF.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),GCt=U.lazy(()=>yn(()=>import("./index-Bqn9PxRk.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,2,30,31,32,33,34]),import.meta.url)),KCt=U.lazy(()=>yn(()=>import("./index-DRUswABH.js"),__vite__mapDeps([35,36,37,38,39,40,41,6,42,43,44,45,46,13,10,12,26,19,18]),import.meta.url)),JCt=U.lazy(()=>yn(()=>import("./index-BDn9U5Ot.js"),__vite__mapDeps([47,6,48,49,50,18,17,51,10,52,53,32,13,12,42,54,43,44,55,3,56,57,19,23,24,58,59,60]),import.meta.url)),YCt=U.lazy(()=>yn(()=>import("./index-BDZ151O-.js"),__vite__mapDeps([61,62,11,59,63,64,51,65,13,10,12,7,8,9,14,15,16,17,18,19,66,55,3,56,2,67,6,68,69,32,20,21,70,34,71,72,73,4,74]),import.meta.url)),ZCt=U.lazy(()=>yn(()=>import("./index-CI8Tta57.js"),__vite__mapDeps([75,76,23,24,10,77]),import.meta.url)),XCt=U.lazy(()=>yn(()=>import("./index-Uu4_Hkiy.js"),__vite__mapDeps([78,62,11,79,80,81,18,6,10,12,82,14,83,84,32,85,86,87,17,13,7,8,9,15,16,19,88,34,89,90,51,25,26,50,21,91,57,3,2,92,56,93,33,23,24,94,95,96,49,52,97,1,55,72]),import.meta.url)),QCt=U.lazy(()=>yn(()=>import("./detail-DLFDHa_m.js"),__vite__mapDeps([98,62,11,20,21,22,6,19,23,24,31,57,91,60]),import.meta.url)),eAt=U.lazy(()=>yn(()=>import("./index-xRrM1Elc.js"),[],import.meta.url)),tAt=U.lazy(()=>yn(()=>import("./index-MEqFmjFL.js"),__vite__mapDeps([99,1,82,14]),import.meta.url)),nAt=U.lazy(()=>yn(()=>import("./index-BECf3fsQ.js"),__vite__mapDeps([100,101,102,103,70,104]),import.meta.url)),rAt=U.lazy(()=>yn(()=>import("./index-Duj01YgO.js"),__vite__mapDeps([105,70,86,54,104,30]),import.meta.url)),iAt=U.lazy(()=>yn(()=>import("./index-ByBI4w1s.js"),__vite__mapDeps([106,104]),import.meta.url)),oAt=U.lazy(()=>yn(()=>import("./index-By3aktAK.js"),__vite__mapDeps([107,36,37,38,39,40,41,108,80,81,46,26,6,28,25,29,67]),import.meta.url)),aAt=U.lazy(()=>yn(()=>import("./index-D8GrnpjT.js"),__vite__mapDeps([109,102]),import.meta.url)),sAt=U.lazy(()=>yn(()=>import("./index-DqgF2ZFL.js"),__vite__mapDeps([110,101,102,103,70,104]),import.meta.url)),lAt=U.lazy(()=>yn(()=>import("./index-B4IAtVFw.js").then(e=>e.a2),__vite__mapDeps([111,112]),import.meta.url)),uAt=U.lazy(()=>yn(()=>import("./index-lMNBpZHy.js"),__vite__mapDeps([113,62,11,114,115,116,71,10,117,9,13,12,52,7,8,14,15,16,17,18,19,31,118,119,4,6,97,24]),import.meta.url));function kue(){const e=Ol(),{session:t}=D0(),{wallet:n}=i0(),r=t.user&&t.user.did;return U.useEffect(()=>{const i=U5();return r?i.connect():i.isConnected()&&i.disconnect(),()=>{i.isConnected()&&i.disconnect()}},[r]),U.useEffect(()=>{if(n)return()=>{};const i=()=>{document.visibilityState==="visible"&&t.refresh()};return document.addEventListener("visibilitychange",i),()=>{document.removeEventListener("visibilitychange",i)}},[]),{node:e,session:t}}function cAt(){var a;const{t:e}=vo(),{node:t,session:n}=kue(),r=wi();U.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${r.pathname}${r.search}`)},[r]),U.useEffect(()=>{var s;((s=n==null?void 0:n.user)==null?void 0:s.role)===rn.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&n.logout()},[(a=n==null?void 0:n.user)==null?void 0:a.role]);const i=I.jsx(ca,{});if(t.loading||n.loading)return I.jsx(aa,{children:i});if(!t.info.initialized)return aCe.getServerAuthMethod(t.info)==="nft"?I.jsx(EO,{action:"verify-owner"}):I.jsx(aa,{children:I.jsx(W6t,{})});if(t.info.upgradeSessionId)return I.jsx(aa,{children:I.jsx(yle,{})});if(!n.user)return I.jsx(kO,{loadingEle:i});const o=I.jsx(aa,{children:I.jsx(ca,{})});return I.jsx(CCt,{children:I.jsxs(jCt,{children:[I.jsx(t5t,{}),I.jsx(uxt,{}),I.jsx(ECt,{}),I.jsx(U.Suspense,{fallback:o,children:I.jsxs(tw,{children:[I.jsx(ir,{path:"/dashboard",element:I.jsx(ea,{fullWidth:!0,title:"Dashboard",children:I.jsx(WCt,{})})}),I.jsx(ir,{path:"/blocklets",element:I.jsx(ea,{fullWidth:!0,title:e("common.blocklets"),children:I.jsx(GCt,{})})}),I.jsx(ir,{path:"/blocklets/:did/:tab",element:I.jsx(ea,{fullWidth:!0,title:"Blocklets",children:I.jsx(QCt,{})})}),I.jsx(ir,{path:"/settings/:tab",element:I.jsx(ea,{fullWidth:!0,title:e("common.setting"),children:I.jsx(YCt,{})})}),I.jsx(ir,{path:"/eula",element:I.jsx(ea,{fullWidth:!0,title:e("setup.steps.eula"),children:I.jsx(eAt,{})})}),I.jsx(ir,{path:"/store",element:I.jsx(ea,{fullWidth:!0,title:e("common.store"),children:I.jsx(JCt,{})})}),I.jsx(ir,{path:"/console",element:I.jsx(ea,{title:`GraphQL ${e("common.console")}`,scrollable:!1,fullWidth:!0,children:I.jsx(lAt,{})})}),I.jsx(ir,{path:"/notifications",element:I.jsx(ea,{children:I.jsx(tAt,{})})}),I.jsx(ir,{path:"/team/:tab",element:I.jsx(ea,{fullWidth:!0,title:e("common.team"),children:I.jsx(XCt,{})})}),I.jsx(ir,{path:"/logs/:name",element:I.jsx(ea,{scrollable:!1,fullWidth:!0,title:e("common.logs"),children:I.jsx(ZCt,{})})}),I.jsx(ir,{path:"/analytics/:tab",element:I.jsx(ea,{fullWidth:!0,title:e("common.analytics"),children:I.jsx(uAt,{})})}),I.jsx(ir,{path:"/",element:I.jsx(nl,{to:"/dashboard",replace:!0})}),I.jsx(ir,{path:"/team",element:I.jsx(nl,{to:"/team/members",replace:!0})}),I.jsx(ir,{path:"/analytics",element:I.jsx(nl,{to:"/analytics/traffic",replace:!0})}),I.jsx(ir,{path:"/logs",element:I.jsx(nl,{to:"/logs/abtnode",replace:!0})}),I.jsx(ir,{path:"/router",element:I.jsx(nl,{to:"/router/rules",replace:!0})}),I.jsx(ir,{path:"/settings",element:I.jsx(nl,{to:"/settings/basic",replace:!0})}),I.jsx(ir,{path:"/marketplace",element:I.jsx(nl,{to:"/store",replace:!0})}),I.jsx(ir,{path:"/marketplace/:did",element:I.jsx(nl,{to:"/store/:did",replace:!0})}),I.jsx(ir,{path:"*",element:I.jsx(aAt,{})})]})})]})})}function lf({children:e}){const{node:t,session:n}=kue();return t.loading||!n.initialized&&n.loading?I.jsx(aa,{children:I.jsx(ca,{})}):t.info.upgradeSessionId?I.jsx(aa,{children:I.jsx(yle,{})}):e}function fAt(){const{changeLocale:e}=vo(),t=_ue();U.useEffect(()=>{const r=t.get("locale");r&&["zh","en"].includes(r)&&e(r)},[]);const n=I.jsx(aa,{children:I.jsx(ca,{})});return I.jsx(U.Suspense,{fallback:n,children:I.jsxs(tw,{children:[I.jsx(ir,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:I.jsx(lf,{children:I.jsx(nAt,{})})}),I.jsx(ir,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:I.jsx(lf,{children:I.jsx(rAt,{})})}),I.jsx(ir,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:I.jsx(lf,{children:I.jsx(iAt,{})})}),I.jsx(ir,{path:"/accept-server",element:I.jsx(lf,{children:I.jsx(EO,{action:"accept-server"})})}),I.jsx(ir,{path:"/launch-blocklet/*",element:I.jsx(lf,{children:I.jsx(zCt,{children:I.jsx(oAt,{})})})}),I.jsx(ir,{path:"/blocklets/restore/*",element:I.jsx(lf,{children:I.jsx(Rue,{children:I.jsx(KCt,{})})})}),I.jsx(ir,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:I.jsx(lf,{children:I.jsx(sAt,{})})}),I.jsx(ir,{path:"/*",element:I.jsx(cAt,{})})]})})}function dAt(){const e=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return I.jsxs(I.Fragment,{children:[I.jsx(yk,{}),I.jsx(fY,{history:ICe,basename:e,children:I.jsx(wxt,{children:I.jsx(fAt,{})})})]})}const pAt=AJ(document.getElementById("root"));pAt.render(I.jsx(dAt,{}));const uG=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";Xge(`${uG}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:uG},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(e){console.error("Error during service worker registration:",e)}});export{ih as $,oi as A,Ns as B,ca as C,L9 as D,mY as E,rn as F,Wx as G,Vs as H,eI as I,e6 as J,xft as K,aQ as L,Ls as M,bl as N,ct as O,Q as P,cD as Q,m9 as R,rg as S,uue as T,H5 as U,aa as V,BO as W,Bc as X,r2e as Y,c9 as Z,Alt as _,ho as a,ALe as a$,PL as a0,An as a1,ao as a2,n5 as a3,axt as a4,K_t as a5,L9e as a6,Zk as a7,F9e as a8,uQ as a9,Wle as aA,Xdt as aB,xue as aC,X9e as aD,NCt as aE,CL as aF,Hie as aG,sG as aH,S_t as aI,Tae as aJ,Hs as aK,ga as aL,ICe as aM,KH as aN,ui as aO,MQ as aP,Jdt as aQ,w_t as aR,tDe as aS,I_t as aT,K8t as aU,SL as aV,T_t as aW,j_t as aX,Kdt as aY,tQ as aZ,GX as a_,Sue as aa,yEt as ab,aCe as ac,MO as ad,IL as ae,pEt as af,n_t as ag,dEt as ah,U5 as ai,_ue as aj,D_t as ak,SI as al,AO as am,J7 as an,tw as ao,ir as ap,nl as aq,bu as ar,_l as as,gz as at,sEt as au,Mr as av,D0 as aw,Fo as ax,M_t as ay,Z6 as az,mi as b,fk as b$,x_t as b0,Xk as b1,zRe as b2,n7e as b3,Zdt as b4,U_t as b5,nAe as b6,Uct as b7,l6 as b8,u6 as b9,Vie as bA,yy as bB,dQe as bC,Rie as bD,E9 as bE,jle as bF,y_t as bG,nEt as bH,f_t as bI,O_t as bJ,oo as bK,kt as bL,_c as bM,ye as bN,H4e as bO,Bt as bP,ln as bQ,an as bR,sn as bS,wl as bT,Pt as bU,un as bV,wu as bW,b7e as bX,pt as bY,Jn as bZ,p_ as b_,yQ as ba,en as bb,Jr as bc,rc as bd,Sh as be,L_t as bf,f5 as bg,XJ as bh,ra as bi,vQ as bj,hg as bk,W_t as bl,ioe as bm,lEt as bn,yn as bo,g_t as bp,xRe as bq,dY as br,G_t as bs,A9 as bt,e0 as bu,oy as bv,Jre as bw,Yre as bx,_9 as by,M9 as bz,I5 as c,Uw as c$,jr as c0,ck as c1,IAt as c2,s_t as c3,Ydt as c4,uae as c5,$le as c6,$_t as c7,a5 as c8,oG as c9,ure as cA,ey as cB,n9 as cC,vi as cD,m_t as cE,d_t as cF,p_t as cG,Nle as cH,gxt as cI,Pk as cJ,Oi as cK,LAt as cL,Um as cM,Qp as cN,Sct as cO,ht as cP,Lre as cQ,gAt as cR,BAt as cS,Xct as cT,v5 as cU,iCt as cV,Q2e as cW,z_t as cX,ns as cY,uk as cZ,Sc as c_,DRe as ca,ORe as cb,npt as cc,H9e as cd,oRe as ce,vue as cf,ACt as cg,sIe as ch,St as ci,vOe as cj,Rr as ck,Qf as cl,fu as cm,i0 as cn,Qg as co,oc as cp,e5t as cq,j5 as cr,mEt as cs,qGe as ct,VCt as cu,B_t as cv,ept as cw,k_t as cx,$f as cy,wi as cz,fEt as d,_At as d$,Ha as d0,Ri as d1,Rt as d2,zX as d3,GEe as d4,qa as d5,i_t as d6,o_t as d7,d9 as d8,cDe as d9,_u as dA,lL as dB,tXe as dC,Soe as dD,m5 as dE,kit as dF,Gw as dG,sd as dH,JEe as dI,C3 as dJ,Mwe as dK,Tc as dL,Oo as dM,gZ as dN,a6e as dO,r6 as dP,cs as dQ,a0 as dR,a6 as dS,o0 as dT,dk as dU,XY as dV,A4e as dW,E4e as dX,qbe as dY,tZ as dZ,qg as d_,ng as da,B3 as db,fQ as dc,dLe as dd,CF as de,SF as df,sLe as dg,qAt as dh,pn as di,bAt as dj,vAt as dk,yAt as dl,wAt as dm,Vh as dn,s9 as dp,s5 as dq,wd as dr,vy as ds,VJe as dt,aX as du,Zn as dv,OAt as dw,oh as dx,sX as dy,Qt as dz,Z8t as e,vk as e$,RAt as e0,EAt as e1,AAt as e2,G4e as e3,Ug as e4,Wh as e5,o$ as e6,CAt as e7,vh as e8,xwe as e9,UAt as eA,er as eB,Pp as eC,UEe as eD,Gv as eE,ERe as eF,qx as eG,S7e as eH,Vm as eI,nDe as eJ,Q9e as eK,N3 as eL,_Le as eM,pm as eN,KLe as eO,tu as eP,E3 as eQ,_3 as eR,lOe as eS,nOe as eT,HAt as eU,Oie as eV,Fs as eW,Nh as eX,pZ as eY,gk as eZ,Z_ as e_,Y7 as ea,PZ as eb,SAt as ec,kAt as ed,t4e as ee,xc as ef,LZ as eg,Rwe as eh,r4e as ei,xAt as ej,d_ as ek,X3e as el,e4e as em,El as en,n4e as eo,V4e as ep,Nw as eq,x6e as er,TAt as es,y6e as et,Qc as eu,rAe as ev,FAt as ew,DAe as ex,LAe as ey,GAe as ez,$c as f,n6 as f$,JY as f0,iQ as f1,aKe as f2,Mh as f3,Gh as f4,dZ as f5,_w as f6,jg as f7,F3 as f8,DF as f9,nZe as fA,Nc as fB,yD as fC,Y$e as fD,J$e as fE,Mn as fF,ly as fG,py as fH,dne as fI,RD as fJ,C_t as fK,Sd as fL,__t as fM,a_t as fN,R_t as fO,ooe as fP,Koe as fQ,O6t as fR,H9 as fS,Mse as fT,wae as fU,X2t as fV,Fie as fW,Uwe as fX,Yn as fY,MZ as fZ,bk as f_,Xf as fa,si as fb,pat as fc,zo as fd,b0 as fe,Xt as ff,id as fg,cIe as fh,AJ as fi,bd as fj,dr as fk,Yee as fl,Gee as fm,Cft as fn,mZ as fo,Fw as fp,A3 as fq,G1 as fr,LQ as fs,wee as ft,J6t as fu,h_t as fv,OI as fw,PQ as fx,mAt as fy,Cc as fz,Kt as g,iTt as g$,_9e as g0,kk as g1,Q8e as g2,hI as g3,MAt as g4,vI as g5,yI as g6,u5 as g7,QAt as g8,aI as g9,n8e as gA,Ak as gB,qct as gC,Ek as gD,c_t as gE,DCt as gF,yft as gG,f9 as gH,uEt as gI,q_t as gJ,SJe as gK,b_t as gL,A_t as gM,E_t as gN,i5 as gO,rie as gP,iie as gQ,nie as gR,gie as gS,vZ as gT,S3 as gU,UAe as gV,X2e as gW,V5t as gX,K5t as gY,Z5t as gZ,tTt as g_,Iy as ga,uI as gb,yd as gc,t5 as gd,Fot as ge,Yot as gf,Tne as gg,tD as gh,toe as gi,r5 as gj,Z1 as gk,i6 as gl,Hx as gm,o6 as gn,H7e as go,JX as gp,KCe as gq,Vve as gr,v_t as gs,N_t as gt,lSt as gu,Yg as gv,VCe as gw,Xw as gx,Kre as gy,Ck as gz,PO as h,FTt as h0,UTt as h1,Sle as h2,Cle as h3,cze as h4,_nt as h5,ug as h6,gze as h7,l_t as h8,GAt as h9,$N as hA,P_t as hB,c3t as hC,H_t as hD,F_t as hE,e_t as hF,Zct as hG,rEt as hH,YX as hI,Wot as hJ,O9 as hK,IQ as hL,X_t as hM,Z_t as hN,OQ as hO,oEt as hP,HX as hQ,V_t as ha,Fq as hb,y1 as hc,yIe as hd,NQ as he,$3 as hf,WAt as hg,ig as hh,DAt as hi,s6e as hj,$At as hk,JCe as hl,CRe as hm,qDe as hn,$De as ho,jAt as hp,zDe as hq,VAt as hr,hLe as hs,zAt as ht,sTt as hu,C_ as hv,__ as hw,vle as hx,Fwe as hy,u9 as hz,Ch as i,I as j,If as k,u_t as l,tn as m,ts as n,y5 as o,TR as p,vo as q,U as r,or as s,cCt as t,Ol as u,Q8t as v,Dke as w,nL as x,OL as y,Ic as z};
2493
+ `;Li.homedir=function(){return"/"};(function(e){var t=ht&&ht.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.hasMountPoint=e.hasStartEngine=e.isPackBlocklet=e.isGatewayBlocklet=e.getBlockletEngine=void 0;const n=t(Li),r=mi,i=c=>{if(c===void 0)throw new Error("blocklet meta param is required");const{engine:u}=c;if(!u)return{interpreter:"node",source:""};if(!Array.isArray(u))return u;const d=n.default.platform(),p=u.find(g=>g.platform===d);if(!p)throw new Error(`can not find a proper engine interpreter on ${d}`);return p};e.getBlockletEngine=i;const o=c=>(c==null?void 0:c.group)===r.BlockletGroup.gateway;e.isGatewayBlocklet=o;const a=c=>(c==null?void 0:c.group)===r.BlockletGroup.pack;e.isPackBlocklet=a;const s=c=>!!(c!=null&&c.main)||(0,e.getBlockletEngine)(c||{}).interpreter==="blocklet";e.hasStartEngine=s;const l=c=>((0,e.hasStartEngine)(c)||((c==null?void 0:c.interfaces)||[]).find(u=>u.type===r.BLOCKLET_INTERFACE_TYPE_WEB))&&(0,e.isGatewayBlocklet)(c)===!1;e.hasMountPoint=l})(xue);(function(e){var t=ht&&ht.__importDefault||function(te){return te&&te.__esModule?te:{default:te}};Object.defineProperty(e,"__esModule",{value:!0}),e.isPackBlocklet=e.isGatewayBlocklet=e.isAccessible=e.isRunning=e.isBeforeInstalled=e.isInProgress=e.getBlockletServices=e.getBlockletAppIdList=e.getRolesFromAuthConfig=e.isPreferenceKey=e.isExternalBlocklet=e.getBlockletChainInfo=e.getChainInfo=e.getConnectAppUrl=e.getParentComponentName=e.filterComponentsV2=e.findComponentByIdV2=e.findComponentV2=e.findComponentById=e.findComponent=e.getComponentBundleId=e.getComponentName=e.getComponentId=e.replaceSlotToIp=e.getComponentWhoCanAccess=e.getWhoCanAccess=e.findServiceFromMeta=e.findWebInterfacePort=e.findWebInterface=e.fixBlockletStatus=e.getAppDescription=e.getDisplayName=e.getAppName=e.hasRunnableComponent=e.wipeSensitiveData=e.isEnvShareable=e.isEnvShareableToClient=e.getComponentMissingConfigs=e.getAppMissingConfigs=e.getSharedConfigObj=e.isDeletableBlocklet=e.forEachComponentV2Sync=e.forEachComponentV2=e.forEachChildSync=e.forEachChild=e.forEachBlockletSync=e.forEachBlocklet=e.isFreeComponent=e.isFreeBlocklet=e.getAppUrl=void 0,e.hasResourceType=e.hasStartEngine=void 0;const n=t(Gw),r=t(Tue),i=DCt,o=t(BCt),a=t(rn),s=mi,l=xue;Object.defineProperty(e,"hasStartEngine",{enumerable:!0,get:function(){return l.hasStartEngine}}),Object.defineProperty(e,"isGatewayBlocklet",{enumerable:!0,get:function(){return l.isGatewayBlocklet}}),Object.defineProperty(e,"isPackBlocklet",{enumerable:!0,get:function(){return l.isPackBlocklet}});const{NODE_SERVICES:c,SLOT_FOR_IP_DNS_SITE:u,WHO_CAN_ACCESS:d,WHO_CAN_ACCESS_PREFIX_ROLES:p}=a.default,g=(te,we=[])=>`${we.map(Be=>Be&&Be.meta?Be.meta.did:"").join("/")}${we.length?"/":""}${te&&te.meta?te.meta.did:""}`;e.getComponentId=g;const y=(te,we=[])=>`${we.map(Be=>Be&&Be.meta?Be.meta.name:"").join("/")}${we.length?"/":""}${te&&te.meta?te.meta.name:""}`;e.getComponentName=y;const b=te=>`${te.meta.bundleName}@${te.meta.version}`;e.getComponentBundleId=b;const A=te=>{if(!te)return"";const we=te.split("/");return we.pop(),!we.length||(we[we.length-1].startsWith("@")&&we.pop(),!we.length)?"":we.join("/")};e.getParentComponentName=A;const x=(te,we,{parallel:Be=!1,concurrencyLimit:ke=5,sync:re,params:V,_parent:W,_root:ce,_level:Re=0,_tasks:_e,_ancestors:De=[],_limit:Ve}={})=>{const Fe=ce||W||te,je=g(te,De),ot=De.concat(te);if(re){const Le=we(te,{parent:W,root:Fe,level:Re,params:V,ancestors:De,id:je});if(te.children)for(const Oe of te.children)x(Oe,we,{sync:re,params:Le,_parent:te,_root:Fe,_level:Re+1,_ancestors:ot});return null}if(!Be)return new Promise(async(Le,Oe)=>{try{const Ie=await we(te,{parent:W,root:Fe,level:Re,ancestors:De,params:V,id:je});if(te.children)for(const nt of te.children)await x(nt,we,{params:Ie,_parent:te,_root:Fe,_level:Re+1,_ancestors:ot});Le(null)}catch(Ie){Oe(Ie)}});const Ze=Ve||(0,o.default)(ke),Je=_e||[];if(Je.push(Ze(()=>we(te,{parent:W,root:Fe,level:Re,ancestors:De,id:je}))),te.children)for(const Le of te.children)x(Le,we,{parallel:Be,_parent:te,_root:Fe,_level:Re+1,_tasks:Je,_ancestors:ot,_limit:Ze});return _e?null:Promise.all(Je)};e.forEachBlocklet=x;const D=(te,we)=>x(te,we,{sync:!0});e.forEachBlockletSync=D;const O=(te,we,{parallel:Be=!1,concurrencyLimit:ke=5,sync:re}={})=>{if(re){if(te.children)for(const ce of te.children)we(ce);return null}if(!Be)return new Promise(async(ce,Re)=>{try{if(te.children)for(const _e of te.children)await we(_e);ce(null)}catch(_e){Re(_e)}});const V=(0,o.default)(ke),W=[];if(te.children)for(const ce of te.children)W.push(V(()=>we(ce)));return Promise.all(W)};e.forEachComponentV2=O;const M=(te,we)=>O(te,we,{sync:!0});e.forEachComponentV2Sync=M;const q=(te,we,Be)=>x(te,(ke,re)=>re.level===0?{}:we(ke,re),Be);e.forEachChild=q;const B=(te,we)=>q(te,we,{sync:!0});e.forEachChildSync=B;const j=(te,we,{_ancestors:Be=[],returnAncestors:ke=!1}={})=>{if(!we)return null;if(we(te,{ancestors:Be}))return ke?{component:te,ancestors:Be}:te;for(const re of te.children||[]){const V=Be.concat(te),W=j(re,we,{_ancestors:V,returnAncestors:ke});if(W)return W}return null};e.findComponent=j;const K=(te,we,{returnAncestors:Be=!1}={})=>(Array.isArray(we)&&(we=we.join("/")),j(te,(ke,{ancestors:re})=>{const V=g(ke,re);return we===V},{returnAncestors:Be}));e.findComponentById=K;const oe=(te,we)=>{if(!we)return null;for(const Be of te.children||[])if(we(Be,te))return Be;return null};e.findComponentV2=oe;const ue=(te,we)=>we?(Array.isArray(we)&&(we=we.join("/")),oe(te,(Be,ke)=>{if(we.includes("/")){const re=g(Be,[ke]);return we===re}return we===Be.meta.did})):null;e.findComponentByIdV2=ue;const G=(te,we)=>{if(!we)return[];const Be=[];for(const ke of te.children||[])we(ke,te)&&Be.push(ke);return Be};e.filterComponentsV2=G;const P=te=>!!te&&!!(te.key||te.name)&&!te.secure&&te.shared!==!1&&!s.BLOCKLET_CONFIGURABLE_KEY[te.key||te.name];e.isEnvShareableToClient=P;const T=te=>!!te&&!!(te.key||te.name)&&!te.secure&&!!te.shared&&!s.BLOCKLET_CONFIGURABLE_KEY[te.key||te.name];e.isEnvShareable=T;const f=(te,we)=>{const Be={};return!te||!we||(Array.isArray(te.configs)&&te.configs.forEach(({key:ke,value:re,secure:V})=>{if(!T({key:ke,secure:V,shared:!0}))return;const W=(te.configObj||{})[ke]||re,ce=(we.configs||[]).find(Re=>Re.key===ke);(!ce||T(ce)||!ce.value&&!(we.configObj||{})[ce.key])&&(Be[ke]=W)}),(te.configs||[]).forEach(({key:ke,value:re})=>{[s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_HOST,s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_ID,s.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_CHAIN_TYPE].includes(ke)&&(Be[s.CHAIN_PROP_MAP[ke]]=re)})),Be};e.getSharedConfigObj=f;const h=te=>te.key.startsWith(s.BLOCKLET_PREFERENCE_PREFIX)===!0;e.isPreferenceKey=h;const w=(te,we)=>!!(te.required&&(!te.value&&!we[te.key]||Object.values(s.CHAIN_PROP_MAP).includes(te.key)&&Object.keys(we).includes(te.key)&&!we[te.key])),_=(te={})=>{const we=[];return M(te,Be=>{var V;if(((V=Be.meta)==null?void 0:V.group)===s.BlockletGroup.gateway)return;const ke=Be.configs||[],re=f(te,Be);ke.forEach(W=>{w(W,re)&&we.push({did:Be.meta.did,key:W.key,description:W.description})})}),we.filter(Be=>!h(Be))};e.getAppMissingConfigs=_;const R=(te={},we={})=>{const Be=[],ke=te.configs||[],re=f(we,te);return ke.forEach(V=>{w(V,re)&&Be.push({did:te.meta.did,key:V.key,description:V.description})}),Be};e.getComponentMissingConfigs=R;const k=te=>te.payment?(te.payment.price||[]).map(Be=>Be.value||0).every(Be=>Be===0):!0;e.isFreeBlocklet=k;const C=te=>!te.payment||!te.payment.componentPrice?!0:!te.payment.componentPrice.length;e.isFreeComponent=C;const E=te=>te&&(x(te,we=>{we.configs&&(we.configs=we.configs.filter(Be=>!h(Be)),we.configs.forEach(Be=>{Be.secure&&(Be.value=Be.value?"__encrypted__":"")})),(we.environments||[]).forEach(Be=>{["BLOCKLET_APP_SK","BLOCKLET_APP_PSK"].includes(Be.key)&&(Be.value="__encrypted__")}),(we.migratedFrom||[]).forEach(Be=>{Be.appSk="__encrypted__"}),delete te.configObj,delete te.environmentObj},{sync:!0}),te);e.wipeSensitiveData=E;const v=te=>{if(!te)return!1;const we=te.environments.find(Be=>Be.key==="BLOCKLET_DELETABLE");return we?we.value==="yes":!0};e.isDeletableBlocklet=v;const L=te=>{let we=!1;return D(te,Be=>{Be.meta.group!==s.BlockletGroup.gateway&&(we=!0)}),we};e.hasRunnableComponent=L;const ne=(te,we=!1)=>{if(!te)return"";const{meta:Be}=te;let ke;if(!we&&te.environments){const re=te.environments.find(V=>V.key==="BLOCKLET_APP_NAME");re&&re.value&&(ke=re.value)}return ke||Be.title||Be.name};e.getAppName=ne,e.getDisplayName=ne;const F=(te,we=!1)=>{if(!te)return"";const{meta:Be}=te;let ke;if(!we&&te.environments){const re=te.environments.find(V=>V.key==="BLOCKLET_APP_DESCRIPTION");re&&re.value&&(ke=re.value)}return ke||Be.description||Be.name};e.getAppDescription=F;function J(te){var ke,re,V;const we=(V=(re=(ke=te==null?void 0:te.site)==null?void 0:ke.domainAliases)==null?void 0:re.sort((W,ce)=>{var Re,_e,De,Ve;return(Re=W.accessibility)!=null&&Re.accessible&&((_e=ce.accessibility)!=null&&_e.accessible)?+W.isProtected-+ce.isProtected:+((De=ce.accessibility)==null?void 0:De.accessible)-+((Ve=W.accessibility)==null?void 0:Ve.accessible)}))==null?void 0:V.map(W=>{var _e;const ce=(_e=W==null?void 0:W.domainStatus)!=null&&_e.isHttps?"https://":"http://",Re=W==null?void 0:W.value;return`${ce}${Re}`}).filter(Boolean);return we==null?void 0:we[0]}e.getAppUrl=J;const se=te=>{te&&(D(te,we=>{we.status=(0,s.fromBlockletStatus)(we.status),we.source!==void 0&&(we.source=(0,s.fromBlockletSource)(we.source))}),te.settings&&(te.settings.children||[]).forEach(we=>{D(we,Be=>{Be.status=(0,s.fromBlockletStatus)(Be.status),Be.source!==void 0&&(Be.source=(0,s.fromBlockletSource)(Be.source))})}))};e.fixBlockletStatus=se;const pe=te=>{if(!te)return null;const we=te.meta||te||{},{interfaces:Be=[]}=we;return Array.isArray(Be)?Be.find(ke=>ke.type===s.BLOCKLET_INTERFACE_TYPE_WEB):null};e.findWebInterface=pe;const be=te=>{if(!te)return null;const we=pe(te),{ports:Be}=te;return!we||!Be?null:Be[we.port]};e.findWebInterfacePort=be;const Ee=(te,we)=>{const Be=[we];we===c.AUTH&&Be.push(c.AUTH_SERVICE);const ke=pe(te);return ke?(ke.services||[]).find(re=>Be.includes(re.name)):null};e.findServiceFromMeta=Ee;const H=te=>{if(!te)return d.ALL;if((0,n.default)(te,"settings.whoCanAccess"))return te.settings.whoCanAccess;const we=Ee(te.meta,c.AUTH);return(0,n.default)(we,"config.whoCanAccess")?we.config.whoCanAccess:d.ALL};e.getWhoCanAccess=H;const $=(te,we)=>{const Be=(te.configs||[]).find(re=>re.key===s.BLOCKLET_CONFIGURABLE_KEY.COMPONENT_ACCESS_WHO);if(Be)return Be.value;if(we&&(0,n.default)(we,"settings.whoCanAccess")&&(0,n.default)(we,"settings.whoCanAccess")!==d.ALL)return(0,n.default)(we,"settings.whoCanAccess");const ke=Ee(te.meta,c.AUTH);return(0,n.default)(ke,"config.whoCanAccess")?ke.config.whoCanAccess:d.ALL};e.getComponentWhoCanAccess=$;const Z=({request:te,baseUrl:we})=>{const Be=te.headers["x-blocklet-did"]||"",ke=te.headers["x-blocklet-real-did"]||"",re=te.headers["x-path-prefix"]||"/",V=te.headers["x-group-path-prefix"]||"/";let W=we;return Be!==ke&&re!==V&&(W=(0,i.joinURL)(W,"/").replace(re,V)),W};e.getConnectAppUrl=Z;const Y=(te,we)=>{const Be=(we||"").includes(":")?":":/\./;return(te||"").replace(u,(we||"").replace(new RegExp(Be,"g"),"-"))};e.replaceSlotToIp=Y;const ie=te=>{const we=Object.entries(s.CHAIN_INFO_CONFIG).reduce((Be,ke)=>{const[re,[V,W]]=ke;return Be[V]=(0,n.default)(te,re)||W,Be},{});return we.type==="ethereum"&&we.id==="none"&&(we.id="1"),we};e.getChainInfo=ie;const Te=te=>{const we=ie({});if(!te)return we;const Be=ie(te.configObj);if(Be.host!=="none")return Be;let ke;return B(te,re=>{if(ke&&ke.host!=="none")return;const V=ie(re.configObj);V.host!=="none"&&(ke=V)}),ke||we};e.getBlockletChainInfo=Te;const me=te=>!!(te!=null&&te.controller);e.isExternalBlocklet=me;const le=te=>te.whoCanAccess.startsWith(p)?te.whoCanAccess.substring(p.length).split(","):[];e.getRolesFromAuthConfig=le;const ve=te=>{const we=Array.isArray(te.migratedFrom)?te.migratedFrom.map(Be=>Be.appDid):[];return(0,r.default)([te.appDid,te.appPid,...we].filter(Boolean))};e.getBlockletAppIdList=ve;const Ae=te=>{const we=[];return te&&D(te,Be=>{var re;(((re=Be.meta)==null?void 0:re.interfaces)||[]).filter(V=>V.type===s.BLOCKLET_INTERFACE_TYPE_SERVICE).forEach(V=>{const W=V.port||{};we.push({name:V.name,protocol:V.protocol,port:Number(W.external),upstreamPort:Number((Be.ports||{})[W.internal])})})}),we};e.getBlockletServices=Ae;const xe=te=>[s.BlockletStatus.downloading,s.BlockletStatus.waiting,s.BlockletStatus.starting,s.BlockletStatus.installing,s.BlockletStatus.stopping,s.BlockletStatus.upgrading,"downloading","waiting","starting","installing","extracting","stopping","upgrading","restarting","deleting"].includes(te);e.isInProgress=xe;const He=te=>[s.BlockletStatus.added,s.BlockletStatus.waiting,s.BlockletStatus.downloading,s.BlockletStatus.installing,"added","waiting","downloading","installing"].includes(te);e.isBeforeInstalled=He;const Ye=te=>[s.BlockletStatus.running,"running"].includes(te);e.isRunning=Ye;const ge=te=>[s.BlockletStatus.running,s.BlockletStatus.waiting,s.BlockletStatus.downloading,"running","waiting","downloading"].includes(te);e.isAccessible=ge;const Pe=(te,{type:we,did:Be}={type:"",did:""})=>{var ke,re,V;return te?!(0,l.hasStartEngine)(te.meta)&&((V=(re=(ke=te.meta)==null?void 0:ke.resource)==null?void 0:re.bundles)==null?void 0:V.length)>0&&(te.meta.resource.bundles||[]).some(W=>W.type===we&&W.did===Be):!1};e.hasResourceType=Pe,e.default={isFreeBlocklet:k,isFreeComponent:C,forEachBlocklet:x,forEachBlockletSync:D,forEachChild:q,forEachChildSync:B,forEachComponentV2:O,forEachComponentV2Sync:M,isDeletableBlocklet:v,getSharedConfigObj:f,getAppMissingConfigs:_,getComponentMissingConfigs:R,isEnvShareableToClient:P,isEnvShareable:T,wipeSensitiveData:E,hasRunnableComponent:L,getAppName:ne,getAppDescription:F,getAppUrl:J,getDisplayName:ne,fixBlockletStatus:se,findWebInterface:pe,findWebInterfacePort:be,findServiceFromMeta:Ee,getWhoCanAccess:H,getComponentWhoCanAccess:$,replaceSlotToIp:Y,getComponentId:g,getComponentName:y,getComponentBundleId:b,findComponent:j,findComponentById:K,findComponentV2:oe,findComponentByIdV2:ue,filterComponentsV2:G,getParentComponentName:A,getConnectAppUrl:Z,getChainInfo:ie,getBlockletChainInfo:Te,isExternalBlocklet:me,isPreferenceKey:h,getRolesFromAuthConfig:le,getBlockletServices:Ae,isInProgress:xe,isBeforeInstalled:He,isRunning:Ye,isAccessible:ge,isGatewayBlocklet:l.isGatewayBlocklet,isPackBlocklet:l.isPackBlocklet,hasStartEngine:l.hasStartEngine,hasResourceType:Pe}})(Ls);const Sue=(e,t=!1)=>{const n=e.routing.adminPath;return t?encodeURIComponent(An(window.location.origin,n)):An(window.location.origin,n)},sEt=(e,t,n)=>{const r=Sue(t),i=An(n,`/api/blocklets/${e.did}/blocklet.json`),o=new URL(An(r,"/launch-blocklet/agreement"));return o.searchParams.set("blocklet_meta_url",i),o.searchParams.set("from",window.location.href),o.href},NCt=async(e,{getIP:t}={})=>{if(!e||!e.length)return[];if(!t||!e.some(r=>r.value.includes(rn.SLOT_FOR_IP_DNS_SITE)))return e;const n=await t();return n?e.map(r=>{try{return r.value=Ls.replaceSlotToIp(r.value,n),r}catch{return r}}).filter(Boolean):e},$Ct=e=>{const t={didSpace:null};return Ls.forEachBlockletSync(e,n=>{var r,i;t.didSpace===mi.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||t.didSpace===mi.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP||(i=(r=n==null?void 0:n.meta)==null?void 0:r.capabilities)!=null&&i.didSpace&&(t.didSpace=n.meta.capabilities.didSpace)}),t},oG=async(e,{fixRuntime:t=!0,oldBlocklet:n,getIP:r}={})=>{if(e.site||(e.site={domainAliases:[],rules:[]}),e.site.rules.forEach(i=>{i.from.pathPrefix=CL(i.from.pathPrefix||"/")}),e.site.rules=Hie(e.site.rules,i=>i.from.pathPrefix),t===!0)e.site.domainAliases=await NCt(e.site.domainAliases,{getIP:r}),e.appRuntimeInfo&&(e.appRuntimeInfo.startAt=new Date-e.appRuntimeInfo.uptime),Ls.forEachBlockletSync(e,i=>{i.runtimeInfo&&(i.runtimeInfo.startAt=new Date-i.runtimeInfo.uptime)});else if(t==="merge-old"&&n){e.site.domainAliases=n.site.domainAliases,e.appRuntimeInfo=n.appRuntimeInfo;const i={};Ls.forEachBlockletSync(n,(o,{id:a})=>{i[a]=o}),Ls.forEachBlockletSync(e,(o,{id:a})=>{const s=i[a];s&&(o.runtimeInfo=s.runtimeInfo,o.diskInfo=s.diskInfo,o.engine=s.engine)})}else e.site.domainAliases=[];e.capabilities=$Ct(e)},aG="arcblock",lEt=(e,t=!1)=>{let n;return t?(n=(e.configs||[]).find(r=>r.key==="BLOCKLET_APP_CHAIN_TYPE"),n&&n.value||(n=(e.environments||[]).find(r=>["CHAIN_TYPE","BLOCKLET_APP_CHAIN_TYPE"].includes(r.key)),n&&n.value)?n.value:aG):(n=(e.environments||[]).find(r=>["CHAIN_TYPE","BLOCKLET_APP_CHAIN_TYPE"].includes(r.name)),n&&n.default?n.default:aG)},uEt=e=>!cD(e==null?void 0:e.controller);let uA=null;const FCt=async()=>{const e=window.env.apiPrefix||"/",t=An(e,"/api/dns-resolve?accessible=1");try{return(await Mr.get(t)).data.address}catch{return null}},sG=()=>(uA||(uA=FCt()),uA),Cue=U.createContext({}),{Provider:UCt,Consumer:cEt}=Cue,lG=(e,t,n)=>n?e.map(r=>{const i={...r},o=t.find(a=>a.meta.did===r.meta.did);return o&&n.forEach(a=>{i[a]=o[a]}),i}):t;function jCt({children:e}){const t=Ol(),n=I5(),[r,i]=U.useState(null),[o,a]=U.useState(!1),[s,l]=U.useState([]),[c,u]=U.useState([]),[d,p]=U.useState(!1),g=(M,q)=>{Ls.isExternalBlocklet(M)?u(q):l(q)},y=4,b=async({silent:M=!0,retries:q=y,updates:B,useCache:j=!0}={})=>{M||a(!0);try{i(null);const{blocklets:K}=await n.getBlocklets({input:{useCache:j}});for(const G of K)await oG(G,{getIP:sG});const oe=K.filter(G=>!Ls.isExternalBlocklet(G)),ue=K.filter(Ls.isExternalBlocklet);l(G=>lG(G,oe,B)),u(G=>lG(G,ue,B)),a(!1),p(!0)}catch(K){q>0?setTimeout(()=>b({silent:M,retries:q-1,useCache:j}),1e3):(a(!1),i(K))}},A=async M=>{try{const{blocklet:q}=await t.api.getBlocklet({input:{did:M.meta.did,attachRuntimeInfo:!0}});await oG(q,{getIP:sG}),g(q,B=>B.some(j=>j.meta.did===q.meta.did)?B.map(j=>j.meta.did===q.meta.did?q:j):[...B,q])}catch(q){i(q)}},x=M=>{t.refresh(),A(M)};U.useEffect(()=>{b({silent:!1})},[]);const D=M=>{const q={};Ls.forEachBlockletSync(M,(B,{id:j})=>{q[j]=mi.fromBlockletStatus(B.status)}),g(M,B=>B.map(j=>(j.meta.did===M.meta.did&&Ls.forEachBlockletSync(j,(K,{id:oe})=>{q[oe]&&(K.status=q[oe])}),j)))};ho(mi.BlockletEvents.added,M=>{M.status=mi.fromBlockletStatus(M.status),g(M,q=>[...q,M])}),ho(mi.BlockletEvents.removed,M=>{t.refresh(),g(M,q=>q.filter(B=>B.meta.did!==M.meta.did))}),ho(mi.BlockletEvents.statusChange,D),ho(mi.BlockletEvents.installed,x),ho(mi.BlockletEvents.upgraded,x),ho(mi.BlockletEvents.updated,A),ho(mi.BlockletEvents.startFailed,A);const O={loading:o,error:r,data:s,externalData:c,refresh:b,initialized:d,api:n};return I.jsx(UCt,{value:{blocklets:O},children:e})}function fEt(){const{blocklets:e}=U.useContext(Cue);return e}const VCt=({user:e,launchType:t,nftId:n})=>{var r;if(!e)return!1;if(t==="serverless"){if(!n)throw new Error("nftId is required");return((r=e==null?void 0:e.controller)==null?void 0:r.nftId)===n}return(e.permissions||[]).includes("mutate_blocklets")},dEt=e=>{var t,n;return e.isGetBlocklet&&((n=(t=e.runtimeBlocklet)==null?void 0:t.controller)==null?void 0:n.consumedAt)},pEt=async e=>{const t=Ydt({blocklet:e});let n="";return n=t.find(r=>{try{const{hostname:i}=new URL(r);return uae.isSlpDomain(i)}catch(i){return console.error(i),!1}}),n||(n=await ept(t)),n},Aue=U.createContext({}),{Provider:qCt,Consumer:hEt}=Aue;function zCt({children:e}){const{session:t}=D0(),{t:n}=vo(),{api:r,info:i}=Ol(),[o]=mY(),a=I5(),s=o.get("launchType"),l=o.get("fromLauncher"),c=o.get("blocklet_meta_url")||"",u=o.get("nftId")||"",d=o.get("launcherSessionId")||"",p=o.get("launcherUrl")||"",g=new URL(c).origin,[y,b]=U.useState({meta:null,appDid:o.get("appDid")||null,sessionId:o.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),A=(ue,G)=>b(P=>({...P,appDid:ue,sessionId:G})),x=VCt({user:t.user,launchType:s,nftId:u}),[D,O]=U.useState(null),[M,q]=U.useState(!0),B=U.useMemo(()=>i?Sue(i):"",[i]),j=async ue=>{if(!ue)throw new Error("appDid should not be empty");const{blocklet:G}=await r.getBlocklet({input:{did:ue,attachConfig:!1}});if(!G)return null;const P=mi.BlockletStatus[G.status],T=!!u,f=P<mi.BlockletStatus.installed,h=P===mi.BlockletStatus.installed,w=P===mi.BlockletStatus.running;return b(_=>({..._,isInstalled:h,isRunning:w,isExternal:T,isInstalling:f})),{isInstalled:h,isRunning:w,isExternal:T,isInstalling:f}},K=async()=>{q(!0);try{if(!c)throw new Error(n("common.invalidParam"));const[{meta:ue,isFree:G,registryUrl:P},{launcherSession:T,error:f}]=await Promise.all([r.getBlockletMetaFromUrl({input:{url:c,checkPrice:!0}}),d?r.getLauncherSession({input:{launcherSessionId:d,launcherUrl:p}}):Promise.resolve({})]);if(d&&!T)throw new Error(`Launch session invalid: ${f}`);if(!ue)throw new Error(n("LaunchBlockletBlocklet.error.loadMetaFailed"));let h={};x&&y.appDid&&(h=await j(y.appDid)),b(w=>({...w,...h,meta:ue,isFree:G,registryUrl:P,launcherSession:T}))}catch(ue){console.error(ue),O(ue.message)}finally{q(!1)}};U.useEffect(()=>{var ue,G,P;((ue=t==null?void 0:t.user)==null?void 0:ue.role)===rn.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&((P=(G=t==null?void 0:t.user)==null?void 0:G.controller)==null?void 0:P.nftId)!==u&&t.logout(),K()},[]),U.useEffect(()=>{M||!y.meta||(x?y.appDid&&j(y.appDid).catch(ue=>{oi.error(ue.message)}):(b(ue=>({...ue,isInstalled:!1,isRunning:!1,isExternal:!1})),O(null)))},[x]);const oe={meta:y.meta,isFree:y.isFree,appDid:y.appDid,sessionId:y.sessionId,isInstalling:y.isInstalling,isInstalled:y.isInstalled,isExternal:y.isExternal,isRunning:y.isRunning,serverUrl:B,storeUrl:y.registryUrl||g,blockletMetaUrl:c,fromLauncher:l,loading:M,error:D,api:a,getBlocklet:j,setAppDid:A,launcherUrl:p,launcherSession:y.launcherSession,launcherSessionId:d};return I.jsx(qCt,{value:oe,children:e})}function mEt(){return U.useContext(Aue)}function _ue(){return new URLSearchParams(wi().search)}const Eue=U.createContext(),{Provider:HCt,Consumer:gEt}=Eue;function Rue({children:e}){const n=_ue().get("blocklet_meta_url"),r=K8t(async()=>{const{data:o}=await SL.get(n);return o});if(r.loading)return I.jsx(aa,{children:I.jsx(ca,{})});const i={meta:r.value,error:r.error};return I.jsx(HCt,{value:i,children:e})}Rue.propTypes={children:Q.any.isRequired};function yEt(){return U.useContext(Eue)}const WCt=U.lazy(()=>yn(()=>import("./index-CbPaNvvH.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),GCt=U.lazy(()=>yn(()=>import("./index-TI2qUI_a.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,2,30,31,32,33,34]),import.meta.url)),KCt=U.lazy(()=>yn(()=>import("./index-DPpbsWxv.js"),__vite__mapDeps([35,36,37,38,39,40,41,6,42,43,44,45,13,10,12,26,19,18]),import.meta.url)),JCt=U.lazy(()=>yn(()=>import("./index-CLH3ksD7.js"),__vite__mapDeps([46,6,47,48,49,18,17,50,10,51,52,32,13,12,42,53,43,54,3,55,56,19,23,24,57,58,59]),import.meta.url)),YCt=U.lazy(()=>yn(()=>import("./index-acmUpn3d.js"),__vite__mapDeps([60,61,11,58,62,63,50,64,13,10,12,7,8,9,14,15,16,17,18,19,65,54,3,55,2,66,6,67,68,32,20,21,69,34,70,71,72,4,73]),import.meta.url)),ZCt=U.lazy(()=>yn(()=>import("./index-B1SbHyW5.js"),__vite__mapDeps([74,75,23,24,10,76]),import.meta.url)),XCt=U.lazy(()=>yn(()=>import("./index-DXsxzqj2.js"),__vite__mapDeps([77,61,11,78,79,80,18,6,10,12,81,14,82,83,32,84,85,86,17,13,7,8,9,15,16,19,87,34,88,89,50,25,26,49,21,90,56,3,2,91,55,92,33,23,24,93,94,95,48,51,96,1,54,71]),import.meta.url)),QCt=U.lazy(()=>yn(()=>import("./detail-DyxiW4dq.js"),__vite__mapDeps([97,61,11,20,21,22,6,19,23,24,31,56,90,59]),import.meta.url)),eAt=U.lazy(()=>yn(()=>import("./index-CPi6NfEK.js"),[],import.meta.url)),tAt=U.lazy(()=>yn(()=>import("./index-C58qacTd.js"),__vite__mapDeps([98,1,81,14]),import.meta.url)),nAt=U.lazy(()=>yn(()=>import("./index-DkQkHMJF.js"),__vite__mapDeps([99,100,101,102,69,103]),import.meta.url)),rAt=U.lazy(()=>yn(()=>import("./index-BjzrGmqR.js"),__vite__mapDeps([104,69,85,53,103,30]),import.meta.url)),iAt=U.lazy(()=>yn(()=>import("./index-DbQJ3ais.js"),__vite__mapDeps([105,103]),import.meta.url)),oAt=U.lazy(()=>yn(()=>import("./index-DMD3Xl4z.js"),__vite__mapDeps([106,36,37,38,39,40,41,107,79,80,45,26,6,28,25,29,66]),import.meta.url)),aAt=U.lazy(()=>yn(()=>import("./index-UwSS4D-y.js"),__vite__mapDeps([108,101]),import.meta.url)),sAt=U.lazy(()=>yn(()=>import("./index-CEpV9K4b.js"),__vite__mapDeps([109,100,101,102,69,103]),import.meta.url)),lAt=U.lazy(()=>yn(()=>import("./index-BwmL6hWx.js").then(e=>e.a2),__vite__mapDeps([110,111]),import.meta.url)),uAt=U.lazy(()=>yn(()=>import("./index-B4V-mN0B.js"),__vite__mapDeps([112,61,11,113,114,115,70,10,116,9,13,12,51,7,8,14,15,16,17,18,19,31,117,118,4,6,96,24]),import.meta.url));function kue(){const e=Ol(),{session:t}=D0(),{wallet:n}=i0(),r=t.user&&t.user.did;return U.useEffect(()=>{const i=U5();return r?i.connect():i.isConnected()&&i.disconnect(),()=>{i.isConnected()&&i.disconnect()}},[r]),U.useEffect(()=>{if(n)return()=>{};const i=()=>{document.visibilityState==="visible"&&t.refresh()};return document.addEventListener("visibilitychange",i),()=>{document.removeEventListener("visibilitychange",i)}},[]),{node:e,session:t}}function cAt(){var a;const{t:e}=vo(),{node:t,session:n}=kue(),r=wi();U.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${r.pathname}${r.search}`)},[r]),U.useEffect(()=>{var s;((s=n==null?void 0:n.user)==null?void 0:s.role)===rn.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&n.logout()},[(a=n==null?void 0:n.user)==null?void 0:a.role]);const i=I.jsx(ca,{});if(t.loading||n.loading)return I.jsx(aa,{children:i});if(!t.info.initialized)return aCe.getServerAuthMethod(t.info)==="nft"?I.jsx(EO,{action:"verify-owner"}):I.jsx(aa,{children:I.jsx(W6t,{})});if(t.info.upgradeSessionId)return I.jsx(aa,{children:I.jsx(yle,{})});if(!n.user)return I.jsx(kO,{loadingEle:i});const o=I.jsx(aa,{children:I.jsx(ca,{})});return I.jsx(CCt,{children:I.jsxs(jCt,{children:[I.jsx(t5t,{}),I.jsx(uxt,{}),I.jsx(ECt,{}),I.jsx(U.Suspense,{fallback:o,children:I.jsxs(tw,{children:[I.jsx(ir,{path:"/dashboard",element:I.jsx(ea,{fullWidth:!0,title:"Dashboard",children:I.jsx(WCt,{})})}),I.jsx(ir,{path:"/blocklets",element:I.jsx(ea,{fullWidth:!0,title:e("common.blocklets"),children:I.jsx(GCt,{})})}),I.jsx(ir,{path:"/blocklets/:did/:tab",element:I.jsx(ea,{fullWidth:!0,title:"Blocklets",children:I.jsx(QCt,{})})}),I.jsx(ir,{path:"/settings/:tab",element:I.jsx(ea,{fullWidth:!0,title:e("common.setting"),children:I.jsx(YCt,{})})}),I.jsx(ir,{path:"/eula",element:I.jsx(ea,{fullWidth:!0,title:e("setup.steps.eula"),children:I.jsx(eAt,{})})}),I.jsx(ir,{path:"/store",element:I.jsx(ea,{fullWidth:!0,title:e("common.store"),children:I.jsx(JCt,{})})}),I.jsx(ir,{path:"/console",element:I.jsx(ea,{title:`GraphQL ${e("common.console")}`,scrollable:!1,fullWidth:!0,children:I.jsx(lAt,{})})}),I.jsx(ir,{path:"/notifications",element:I.jsx(ea,{children:I.jsx(tAt,{})})}),I.jsx(ir,{path:"/team/:tab",element:I.jsx(ea,{fullWidth:!0,title:e("common.team"),children:I.jsx(XCt,{})})}),I.jsx(ir,{path:"/logs/:name",element:I.jsx(ea,{scrollable:!1,fullWidth:!0,title:e("common.logs"),children:I.jsx(ZCt,{})})}),I.jsx(ir,{path:"/analytics/:tab",element:I.jsx(ea,{fullWidth:!0,title:e("common.analytics"),children:I.jsx(uAt,{})})}),I.jsx(ir,{path:"/",element:I.jsx(nl,{to:"/dashboard",replace:!0})}),I.jsx(ir,{path:"/team",element:I.jsx(nl,{to:"/team/members",replace:!0})}),I.jsx(ir,{path:"/analytics",element:I.jsx(nl,{to:"/analytics/traffic",replace:!0})}),I.jsx(ir,{path:"/logs",element:I.jsx(nl,{to:"/logs/abtnode",replace:!0})}),I.jsx(ir,{path:"/router",element:I.jsx(nl,{to:"/router/rules",replace:!0})}),I.jsx(ir,{path:"/settings",element:I.jsx(nl,{to:"/settings/basic",replace:!0})}),I.jsx(ir,{path:"/marketplace",element:I.jsx(nl,{to:"/store",replace:!0})}),I.jsx(ir,{path:"/marketplace/:did",element:I.jsx(nl,{to:"/store/:did",replace:!0})}),I.jsx(ir,{path:"*",element:I.jsx(aAt,{})})]})})]})})}function lf({children:e}){const{node:t,session:n}=kue();return t.loading||!n.initialized&&n.loading?I.jsx(aa,{children:I.jsx(ca,{})}):t.info.upgradeSessionId?I.jsx(aa,{children:I.jsx(yle,{})}):e}function fAt(){const{changeLocale:e}=vo(),t=_ue();U.useEffect(()=>{const r=t.get("locale");r&&["zh","en"].includes(r)&&e(r)},[]);const n=I.jsx(aa,{children:I.jsx(ca,{})});return I.jsx(U.Suspense,{fallback:n,children:I.jsxs(tw,{children:[I.jsx(ir,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:I.jsx(lf,{children:I.jsx(nAt,{})})}),I.jsx(ir,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:I.jsx(lf,{children:I.jsx(rAt,{})})}),I.jsx(ir,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:I.jsx(lf,{children:I.jsx(iAt,{})})}),I.jsx(ir,{path:"/accept-server",element:I.jsx(lf,{children:I.jsx(EO,{action:"accept-server"})})}),I.jsx(ir,{path:"/launch-blocklet/*",element:I.jsx(lf,{children:I.jsx(zCt,{children:I.jsx(oAt,{})})})}),I.jsx(ir,{path:"/blocklets/restore/*",element:I.jsx(lf,{children:I.jsx(Rue,{children:I.jsx(KCt,{})})})}),I.jsx(ir,{path:`${rn.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:I.jsx(lf,{children:I.jsx(sAt,{})})}),I.jsx(ir,{path:"/*",element:I.jsx(cAt,{})})]})})}function dAt(){const e=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return I.jsxs(I.Fragment,{children:[I.jsx(yk,{}),I.jsx(fY,{history:ICe,basename:e,children:I.jsx(wxt,{children:I.jsx(fAt,{})})})]})}const pAt=AJ(document.getElementById("root"));pAt.render(I.jsx(dAt,{}));const uG=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";Xge(`${uG}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:uG},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(e){console.error("Error during service worker registration:",e)}});export{ih as $,oi as A,Ns as B,ca as C,L9 as D,mY as E,rn as F,Wx as G,Vs as H,eI as I,e6 as J,xft as K,aQ as L,Ls as M,bl as N,ct as O,Q as P,cD as Q,m9 as R,rg as S,uue as T,H5 as U,aa as V,BO as W,Bc as X,r2e as Y,c9 as Z,Alt as _,ho as a,ALe as a$,PL as a0,An as a1,ao as a2,n5 as a3,axt as a4,K_t as a5,L9e as a6,Zk as a7,F9e as a8,uQ as a9,Wle as aA,Xdt as aB,xue as aC,X9e as aD,NCt as aE,CL as aF,Hie as aG,sG as aH,S_t as aI,Tae as aJ,Hs as aK,ga as aL,ICe as aM,KH as aN,ui as aO,MQ as aP,Jdt as aQ,w_t as aR,tDe as aS,I_t as aT,K8t as aU,SL as aV,T_t as aW,j_t as aX,Kdt as aY,tQ as aZ,GX as a_,Sue as aa,yEt as ab,aCe as ac,MO as ad,IL as ae,pEt as af,n_t as ag,dEt as ah,U5 as ai,_ue as aj,D_t as ak,SI as al,AO as am,J7 as an,tw as ao,ir as ap,nl as aq,bu as ar,_l as as,gz as at,sEt as au,Mr as av,D0 as aw,Fo as ax,M_t as ay,Z6 as az,mi as b,fk as b$,x_t as b0,Xk as b1,zRe as b2,n7e as b3,Zdt as b4,U_t as b5,nAe as b6,Uct as b7,l6 as b8,u6 as b9,Vie as bA,yy as bB,dQe as bC,Rie as bD,E9 as bE,jle as bF,y_t as bG,nEt as bH,f_t as bI,O_t as bJ,oo as bK,kt as bL,_c as bM,ye as bN,H4e as bO,Bt as bP,ln as bQ,an as bR,sn as bS,wl as bT,Pt as bU,un as bV,wu as bW,b7e as bX,pt as bY,Jn as bZ,p_ as b_,yQ as ba,en as bb,Jr as bc,rc as bd,Sh as be,L_t as bf,f5 as bg,XJ as bh,ra as bi,vQ as bj,hg as bk,W_t as bl,ioe as bm,lEt as bn,yn as bo,g_t as bp,xRe as bq,dY as br,G_t as bs,A9 as bt,e0 as bu,oy as bv,Jre as bw,Yre as bx,_9 as by,M9 as bz,I5 as c,Uw as c$,jr as c0,ck as c1,IAt as c2,s_t as c3,Ydt as c4,uae as c5,$le as c6,$_t as c7,a5 as c8,oG as c9,ure as cA,ey as cB,n9 as cC,vi as cD,m_t as cE,d_t as cF,p_t as cG,Nle as cH,gxt as cI,Pk as cJ,Oi as cK,LAt as cL,Um as cM,Qp as cN,Sct as cO,ht as cP,Lre as cQ,gAt as cR,BAt as cS,Xct as cT,v5 as cU,iCt as cV,Q2e as cW,z_t as cX,ns as cY,uk as cZ,Sc as c_,DRe as ca,ORe as cb,npt as cc,H9e as cd,oRe as ce,vue as cf,ACt as cg,sIe as ch,St as ci,vOe as cj,Rr as ck,Qf as cl,fu as cm,i0 as cn,Qg as co,oc as cp,e5t as cq,j5 as cr,mEt as cs,qGe as ct,VCt as cu,B_t as cv,ept as cw,k_t as cx,$f as cy,wi as cz,fEt as d,_At as d$,Ha as d0,Ri as d1,Rt as d2,zX as d3,GEe as d4,qa as d5,i_t as d6,o_t as d7,d9 as d8,cDe as d9,_u as dA,lL as dB,tXe as dC,Soe as dD,m5 as dE,kit as dF,Gw as dG,sd as dH,JEe as dI,C3 as dJ,Mwe as dK,Tc as dL,Oo as dM,gZ as dN,a6e as dO,r6 as dP,cs as dQ,a0 as dR,a6 as dS,o0 as dT,dk as dU,XY as dV,A4e as dW,E4e as dX,qbe as dY,tZ as dZ,qg as d_,ng as da,B3 as db,fQ as dc,dLe as dd,CF as de,SF as df,sLe as dg,qAt as dh,pn as di,bAt as dj,vAt as dk,yAt as dl,wAt as dm,Vh as dn,s9 as dp,s5 as dq,wd as dr,vy as ds,VJe as dt,aX as du,Zn as dv,OAt as dw,oh as dx,sX as dy,Qt as dz,Z8t as e,vk as e$,RAt as e0,EAt as e1,AAt as e2,G4e as e3,Ug as e4,Wh as e5,o$ as e6,CAt as e7,vh as e8,xwe as e9,UAt as eA,er as eB,Pp as eC,UEe as eD,Gv as eE,ERe as eF,qx as eG,S7e as eH,Vm as eI,nDe as eJ,Q9e as eK,N3 as eL,_Le as eM,pm as eN,KLe as eO,tu as eP,E3 as eQ,_3 as eR,lOe as eS,nOe as eT,HAt as eU,Oie as eV,Fs as eW,Nh as eX,pZ as eY,gk as eZ,Z_ as e_,Y7 as ea,PZ as eb,SAt as ec,kAt as ed,t4e as ee,xc as ef,LZ as eg,Rwe as eh,r4e as ei,xAt as ej,d_ as ek,X3e as el,e4e as em,El as en,n4e as eo,V4e as ep,Nw as eq,x6e as er,TAt as es,y6e as et,Qc as eu,rAe as ev,FAt as ew,DAe as ex,LAe as ey,GAe as ez,$c as f,n6 as f$,JY as f0,iQ as f1,aKe as f2,Mh as f3,Gh as f4,dZ as f5,_w as f6,jg as f7,F3 as f8,DF as f9,nZe as fA,Nc as fB,yD as fC,Y$e as fD,J$e as fE,Mn as fF,ly as fG,py as fH,dne as fI,RD as fJ,C_t as fK,Sd as fL,__t as fM,a_t as fN,R_t as fO,ooe as fP,Koe as fQ,O6t as fR,H9 as fS,Mse as fT,wae as fU,X2t as fV,Fie as fW,Uwe as fX,Yn as fY,MZ as fZ,bk as f_,Xf as fa,si as fb,pat as fc,zo as fd,b0 as fe,Xt as ff,id as fg,cIe as fh,AJ as fi,bd as fj,dr as fk,Yee as fl,Gee as fm,Cft as fn,mZ as fo,Fw as fp,A3 as fq,G1 as fr,LQ as fs,wee as ft,J6t as fu,h_t as fv,OI as fw,PQ as fx,mAt as fy,Cc as fz,Kt as g,iTt as g$,_9e as g0,kk as g1,Q8e as g2,hI as g3,MAt as g4,vI as g5,yI as g6,u5 as g7,QAt as g8,aI as g9,n8e as gA,Ak as gB,qct as gC,Ek as gD,c_t as gE,DCt as gF,yft as gG,f9 as gH,uEt as gI,q_t as gJ,SJe as gK,b_t as gL,A_t as gM,E_t as gN,i5 as gO,rie as gP,iie as gQ,nie as gR,gie as gS,vZ as gT,S3 as gU,UAe as gV,X2e as gW,V5t as gX,K5t as gY,Z5t as gZ,tTt as g_,Iy as ga,uI as gb,yd as gc,t5 as gd,Fot as ge,Yot as gf,Tne as gg,tD as gh,toe as gi,r5 as gj,Z1 as gk,i6 as gl,Hx as gm,o6 as gn,H7e as go,JX as gp,KCe as gq,Vve as gr,v_t as gs,N_t as gt,lSt as gu,Yg as gv,VCe as gw,Xw as gx,Kre as gy,Ck as gz,PO as h,FTt as h0,UTt as h1,Sle as h2,Cle as h3,cze as h4,_nt as h5,ug as h6,gze as h7,l_t as h8,GAt as h9,$N as hA,P_t as hB,c3t as hC,H_t as hD,F_t as hE,e_t as hF,Zct as hG,rEt as hH,YX as hI,Wot as hJ,O9 as hK,IQ as hL,X_t as hM,Z_t as hN,OQ as hO,oEt as hP,HX as hQ,V_t as ha,Fq as hb,y1 as hc,yIe as hd,NQ as he,$3 as hf,WAt as hg,ig as hh,DAt as hi,s6e as hj,$At as hk,JCe as hl,CRe as hm,qDe as hn,$De as ho,jAt as hp,zDe as hq,VAt as hr,hLe as hs,zAt as ht,sTt as hu,C_ as hv,__ as hw,vle as hx,Fwe as hy,u9 as hz,Ch as i,I as j,If as k,u_t as l,tn as m,ts as n,y5 as o,TR as p,vo as q,U as r,or as s,cCt as t,Ol as u,Q8t as v,Dke as w,nL as x,OL as y,Ic as z};