@abtnode/webapp 1.16.47-beta-20250717-221700-2d886a18 → 1.16.47-beta-20250718-075003-940d2e2a

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 (185) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-CY5F-qOY.js → AdapterDayjs-BFw8WrXl.js} +1 -1
  4. package/dist/assets/{Add-C-JGR7WX.js → Add-3_OvaFrP.js} +1 -1
  5. package/dist/assets/ArrowDropDown-BS9tp8MS.js +1 -0
  6. package/dist/assets/{Autocomplete-BUKgT1H8.js → Autocomplete-8ICuj-KH.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-BHAIleTC.js → Breadcrumbs-BGvPLgGW.js} +1 -1
  8. package/dist/assets/{ButtonGroup-BpbIaw4r.js → ButtonGroup-C0aG4xOT.js} +1 -1
  9. package/dist/assets/{CSSTransition-CEGsXFa4.js → CSSTransition-KO9L5iBp.js} +1 -1
  10. package/dist/assets/{CallMerge-BG9sfWb7.js → CallMerge-F8oCB8nE.js} +1 -1
  11. package/dist/assets/{CardContent-Brh_eQ9r.js → CardContent-Cqmek5wY.js} +1 -1
  12. package/dist/assets/{ChevronLeft-mBfiaSS1.js → ChevronLeft-BPyHvtRf.js} +1 -1
  13. package/dist/assets/{ChevronRight-BhZK0m02.js → ChevronRight-BgqwQ3It.js} +1 -1
  14. package/dist/assets/{Clear-BgmnunuK.js → Clear-DMvY-1OH.js} +1 -1
  15. package/dist/assets/{DeleteOutline-CMvAWFzN.js → DeleteOutline-qcbzQjhi.js} +1 -1
  16. package/dist/assets/{Done-KBM5PYQe.js → Done-BowXQslF.js} +1 -1
  17. package/dist/assets/{Edit-qr4VAp95.js → Edit-BQ0nYDQE.js} +1 -1
  18. package/dist/assets/{ErrorOutline-DrbqnFJ2.js → ErrorOutline-DAMAJ1cH.js} +1 -1
  19. package/dist/assets/{FilterList-C5IPtX8B.js → FilterList-BZwgYvWc.js} +1 -1
  20. package/dist/assets/{Google-BISAgJ7z.js → Google-BbDWC590.js} +1 -1
  21. package/dist/assets/{HelpOutline-C5r6R3H8.js → HelpOutline-Dq1Jw2rR.js} +1 -1
  22. package/dist/assets/{Launch-DirijHL1.js → Launch-DXqdimna.js} +1 -1
  23. package/dist/assets/{Link-RiuSe0e2.js → Link-BRz6zIZp.js} +1 -1
  24. package/dist/assets/{ListItemButton-G0gHUcJH.js → ListItemButton-BQgIuXFI.js} +1 -1
  25. package/dist/assets/{ListSubheader-DA2-DVZb.js → ListSubheader-BOpeFxej.js} +1 -1
  26. package/dist/assets/{LoadingButton-zyVJPqWL.js → LoadingButton-BnL-MknW.js} +1 -1
  27. package/dist/assets/{MoreVert-_f7HjK7U.js → MoreVert-L8j8_EPz.js} +1 -1
  28. package/dist/assets/{OpenInNew-B8Hi9-Aa.js → OpenInNew-CNDlD7xM.js} +1 -1
  29. package/dist/assets/{Refresh-D5HBHck5.js → Refresh-DfIM0DIk.js} +1 -1
  30. package/dist/assets/{Search-BJ29HaSB.js → Search-DhxCIV3r.js} +1 -1
  31. package/dist/assets/{Slider-8UJs62jS.js → Slider-ClGXzRor.js} +1 -1
  32. package/dist/assets/{Stepper-DFkDVDUN.js → Stepper-JT4HRwKe.js} +1 -1
  33. package/dist/assets/{Switch-B-0geYaG.js → Switch-MO_QYoYi.js} +1 -1
  34. package/dist/assets/{TableSearch-B-T4xf1Y.js → TableSearch-DFzxfreZ.js} +1 -1
  35. package/dist/assets/{ToggleButtonGroup-D0lgwkEn.js → ToggleButtonGroup-ByMjc-sd.js} +1 -1
  36. package/dist/assets/{Verified-D9QmxLSp.js → Verified-CsK6wp5l.js} +1 -1
  37. package/dist/assets/{VerifiedUser-W0URZfI1.js → VerifiedUser-CMhuvwNe.js} +1 -1
  38. package/dist/assets/{ViewList-CBW6lkQ9.js → ViewList-Duo-FkyC.js} +1 -1
  39. package/dist/assets/{_createAggregator-B7uAY9MP.js → _createAggregator-jhHxKsby.js} +1 -1
  40. package/dist/assets/{actions-J2QPqEIR.js → actions-CZaWtcNS.js} +1 -1
  41. package/dist/assets/{actions-Bqwe_eeJ.js → actions-qwmjFYBC.js} +1 -1
  42. package/dist/assets/{agreement-C3fURNDy.js → agreement-D5zRURFk.js} +1 -1
  43. package/dist/assets/api-BgPXZvcj.js +1 -0
  44. package/dist/assets/{appearance-BkUNpZVk.js → appearance-D0pksf5H.js} +1 -1
  45. package/dist/assets/{audit-logs-CgyzZo8L.js → audit-logs-CDjWOFeM.js} +1 -1
  46. package/dist/assets/{base-chart-CzIZI7kP.js → base-chart-CluI6A_u.js} +1 -1
  47. package/dist/assets/{blocklet-CxgGBUvX.js → blocklet-DmmVfj87.js} +1 -1
  48. package/dist/assets/{chain-C1BJFkRR.js → chain-DjRxb2FX.js} +1 -1
  49. package/dist/assets/{click-to-copy-BJD4pP2S.js → click-to-copy-C9lDYNLy.js} +1 -1
  50. package/dist/assets/client-DdpjvpuA.js +1 -0
  51. package/dist/assets/cloneDeep-BrIshN9W.js +1 -0
  52. package/dist/assets/{collapse-BChJU-xb.js → collapse-BQKIAHAH.js} +1 -1
  53. package/dist/assets/{config-navigation-ILBEBfla.js → config-navigation-CQIu6H-p.js} +3 -3
  54. package/dist/assets/{connect-to-D2f0TQaC.js → connect-to-DHpXpfiO.js} +1 -1
  55. package/dist/assets/{cssMode-Cq_mmr8j.js → cssMode-BBItj1D2.js} +1 -1
  56. package/dist/assets/{delete-confirm-CwBSbfmS.js → delete-confirm-BMlllWsg.js} +1 -1
  57. package/dist/assets/{depsEqual-DMHly6fz.js → depsEqual-CgwmaLj6.js} +1 -1
  58. package/dist/assets/{detail-DIUSlB-S.js → detail-C2QPTAoo.js} +3 -3
  59. package/dist/assets/{domains-DBt_qdYG.js → domains-Dl1bYLcB.js} +1 -1
  60. package/dist/assets/{download-BYyG4swb.js → download-BDQD3mNs.js} +1 -1
  61. package/dist/assets/emotion-cache.browser.esm-B0z8ZzTf.js +1 -0
  62. package/dist/assets/engine-DUBYjcGZ.js +1 -0
  63. package/dist/assets/{freemarker2-YNWsYPEX.js → freemarker2-CxtHcqRE.js} +1 -1
  64. package/dist/assets/{get-safe-url-D5Xp3EJt.js → get-safe-url-DjCQU-uR.js} +1 -1
  65. package/dist/assets/getValidReactChildren--K7J75d3.js +1 -0
  66. package/dist/assets/{graphqlMode-CkZj1Pkv.js → graphqlMode-CbjQQAvT.js} +2 -2
  67. package/dist/assets/{handlebars-CIYh89DK.js → handlebars-C66BpWqS.js} +1 -1
  68. package/dist/assets/{html-CzHkpzUZ.js → html-CcZE7wWD.js} +1 -1
  69. package/dist/assets/{htmlMode-BdxWzg-L.js → htmlMode-Co-CiFip.js} +1 -1
  70. package/dist/assets/{iframe-CKLYV5eL.js → iframe-CDG05FDN.js} +1 -1
  71. package/dist/assets/{index-C6eCVPuA.js → index-2lVCCQPq.js} +1 -1
  72. package/dist/assets/{index-DkQMdkDJ.js → index-7JYHSDyg.js} +1 -1
  73. package/dist/assets/{index-CrTw1v2G.js → index-Aeyu2TZE.js} +1 -1
  74. package/dist/assets/{index-BhwBVrhP.js → index-B78o0tBY.js} +1 -1
  75. package/dist/assets/{index-ukCxqYQ3.js → index-B9sYADXK.js} +3 -3
  76. package/dist/assets/{index-BTwjaad9.js → index-BDbOUXLI.js} +1 -1
  77. package/dist/assets/{index-D18QOAa2.js → index-BKWGpyEb.js} +1 -1
  78. package/dist/assets/{index-Cwf3bf57.js → index-BMSZcMWl.js} +1 -1
  79. package/dist/assets/{index-D1w_phcb.js → index-BMW6t5La.js} +3 -3
  80. package/dist/assets/{index-CViKQyIh.js → index-B_5pYJ4-.js} +1 -1
  81. package/dist/assets/{index-DNG5izj4.js → index-Bdl1ybk6.js} +1 -1
  82. package/dist/assets/{index-luUossMM.js → index-BeHzPQZj.js} +1 -1
  83. package/dist/assets/{index-CvywAZEv.js → index-Bf6iPAUC.js} +1 -1
  84. package/dist/assets/{index-C_L0YUuS.js → index-Bh_lBdo5.js} +1 -1
  85. package/dist/assets/{index-CMJ6xnSL.js → index-BnfGPxgW.js} +3 -3
  86. package/dist/assets/{index-DP68LpSl.js → index-By2wVIz8.js} +1 -1
  87. package/dist/assets/{index-ipzNz7Ju.js → index-C3kcppBt.js} +3 -3
  88. package/dist/assets/{index-_8oRZcHP.js → index-C4mOfCm_.js} +104 -105
  89. package/dist/assets/{index-D2I55BMO.js → index-C8N7W-i9.js} +1 -1
  90. package/dist/assets/{index-D2GtEPw5.js → index-CHuu0Peu.js} +1 -1
  91. package/dist/assets/{index-CJwX-OYV.js → index-COm9hgx_.js} +1 -1
  92. package/dist/assets/{index-Cul8PQ9A.js → index-COoCcBTs.js} +1 -1
  93. package/dist/assets/{index-BCocEWMy.js → index-CWitGXiK.js} +1 -1
  94. package/dist/assets/{index-C3hJRnJE.js → index-CgrNfQPb.js} +1 -1
  95. package/dist/assets/{index-C_Wb23_l.js → index-Ci4hOeJE.js} +9 -9
  96. package/dist/assets/{index-DUinRQw4.js → index-CrmgQXdO.js} +1 -1
  97. package/dist/assets/{index-DJ3LOVXA.js → index-DMDr-aHX.js} +1 -1
  98. package/dist/assets/{index-B8TH6W7H.js → index-DOUb8Oty.js} +1 -1
  99. package/dist/assets/{index-BkktSh-D.js → index-D_0TT77X.js} +1 -1
  100. package/dist/assets/{index-Bnzx_d6J.js → index-DcEAUxTy.js} +1 -1
  101. package/dist/assets/{index-BoCWZ9Ig.js → index-DiXzeHiX.js} +1 -1
  102. package/dist/assets/{index-CI3XNytL.js → index-DkZ-t39O.js} +1 -1
  103. package/dist/assets/{index-CSdvRvdf.js → index-Dl5cdLQr.js} +1 -1
  104. package/dist/assets/{index-DWevfoMr.js → index-Dn78lnTO.js} +1 -1
  105. package/dist/assets/{index-CNNYI2ZJ.js → index-Dogk0bXr.js} +1 -1
  106. package/dist/assets/{index-FGF_OyEg.js → index-DqEym-za.js} +1 -1
  107. package/dist/assets/{index-DRXB64XT.js → index-DwRrLRJc.js} +1 -1
  108. package/dist/assets/{index-WCnj110a.js → index-EO2zxFAb.js} +1 -1
  109. package/dist/assets/{index-aDhSn6Mb.js → index-IN1tBuCi.js} +2 -2
  110. package/dist/assets/index-P46fTVgx.js +1 -0
  111. package/dist/assets/{index-gcsLojkd.js → index-PpgfbTC9.js} +1 -1
  112. package/dist/assets/{index-CF-9tLrO.js → index-TN8GUnjq.js} +1 -1
  113. package/dist/assets/{index-10qlFG48.js → index-Zbp1kEfl.js} +1 -1
  114. package/dist/assets/{index-DyuzoqrM.js → index-aHwqwLCS.js} +1 -1
  115. package/dist/assets/{index-DSEgIocn.js → index-aTfhQ_l6.js} +1 -1
  116. package/dist/assets/{index-hcJKr5Kv.js → index-quoltoEL.js} +1 -1
  117. package/dist/assets/{index-UlSeBo7J.js → index-wt9OBpRJ.js} +1 -1
  118. package/dist/assets/{index.esm-BbCeLnEG.js → index.esm-DNwQmbRZ.js} +1 -1
  119. package/dist/assets/{install-from-url-Cssyl_EF.js → install-from-url-n_csAYU3.js} +1 -1
  120. package/dist/assets/{invitation-BbzPu4Vz.js → invitation-CJpjGArf.js} +1 -1
  121. package/dist/assets/{is-path-prefix-equal-xOcqHaZi.js → is-path-prefix-equal-H7FSCLy3.js} +1 -1
  122. package/dist/assets/{item-CA0AhoeU.js → item-DB4nd60x.js} +1 -1
  123. package/dist/assets/{javascript-iz35kkfv.js → javascript-CRAJjnJB.js} +1 -1
  124. package/dist/assets/{jsonMode-DTMWRjiz.js → jsonMode-JVhrkI3w.js} +1 -1
  125. package/dist/assets/{liquid-D_2oxmDK.js → liquid-pnBuAzEz.js} +1 -1
  126. package/dist/assets/{list-header-rZDwQy84.js → list-header-BFKavQgG.js} +1 -1
  127. package/dist/assets/{log-UVsl0ja-.js → log-C7JSHIt2.js} +1 -1
  128. package/dist/assets/{lottie-react.esm-D-ZQShTC.js → lottie-react.esm-D1pS2-gK.js} +1 -1
  129. package/dist/assets/{mdx-9l6bUhTM.js → mdx-DHtsrRy5.js} +1 -1
  130. package/dist/assets/{memory-Bs7i-RSl.js → memory-oRFPonQg.js} +1 -1
  131. package/dist/assets/{metric-Bhfho-F8.js → metric-nsIZMw3V.js} +1 -1
  132. package/dist/assets/omit-B4Sq5gLR.js +1 -0
  133. package/dist/assets/{overview-Dpbkcjeq.js → overview-BP2YMbQO.js} +1 -1
  134. package/dist/assets/{permission-CjJ84P8d.js → permission-CAwWHgKo.js} +1 -1
  135. package/dist/assets/{preference-J3dyippO.js → preference-D2ak1a33.js} +3 -3
  136. package/dist/assets/{python-D62k2JIN.js → python-DXO2W9B9.js} +1 -1
  137. package/dist/assets/{raf-schd.esm-C1oPRTDZ.js → raf-schd.esm-ClEAlDQA.js} +1 -1
  138. package/dist/assets/{razor-B8qk-YVu.js → razor-CKVf_K1K.js} +1 -1
  139. package/dist/assets/{rotate-session-key-D91iBAY4.js → rotate-session-key-IpOZAFU_.js} +1 -1
  140. package/dist/assets/{runtime-tnq2Lk6e.js → runtime-K5Ixf2xG.js} +1 -1
  141. package/dist/assets/schema-Bp4DleAG.js +1 -0
  142. package/dist/assets/sdk-Bvs7QtVW.js +1 -0
  143. package/dist/assets/{service-WuUIzS1n.js → service-De8RUcAB.js} +1 -1
  144. package/dist/assets/{shorten-label-Daz_9q6V.js → shorten-label-BB7eBTVn.js} +1 -1
  145. package/dist/assets/{simple-select-DWPU6K2J.js → simple-select-DuFdntI_.js} +1 -1
  146. package/dist/assets/{spaces-GphSy-vT.js → spaces-DboV6EBE.js} +1 -1
  147. package/dist/assets/{status-8_e4qfZ_.js → status-D0iiky_Q.js} +1 -1
  148. package/dist/assets/{status-RQRQdpaf.js → status-YKpSQSD8.js} +1 -1
  149. package/dist/assets/{switch-control-CKSbA6D9.js → switch-control-BvELbAm3.js} +1 -1
  150. package/dist/assets/{table-icons-oE5i83sx.js → table-icons-BJW-SCQe.js} +1 -1
  151. package/dist/assets/{team-CSpa5Bju.js → team-D7M0Ye34.js} +1 -1
  152. package/dist/assets/{toLower-CN0NnjsS.js → toLower-aE-9IHcm.js} +1 -1
  153. package/dist/assets/toUpper-Bb2HGHT9.js +1 -0
  154. package/dist/assets/{traffic-C_abMGz2.js → traffic-BA1sKvQV.js} +1 -1
  155. package/dist/assets/{tsMode-DPBq0xUc.js → tsMode-cBsNNznm.js} +1 -1
  156. package/dist/assets/{typescript-EAZJ11vd.js → typescript-D0SX8RzB.js} +1 -1
  157. package/dist/assets/{url-evaluation-C9ybfEbS.js → url-evaluation-CNPtf5Sl.js} +1 -1
  158. package/dist/assets/{url-join-B-Ittgpb.js → url-join-BBoInSaA.js} +1 -1
  159. package/dist/assets/{use-mobile-CaA0LsNn.js → use-mobile-B1UpSPIX.js} +1 -1
  160. package/dist/assets/{use-mobile-CFs8fmsh.js → use-mobile-Cebu3wjw.js} +1 -1
  161. package/dist/assets/{useAsync-BKfoGger.js → useAsync-CBexZUTy.js} +1 -1
  162. package/dist/assets/{useAsyncRetry-NHLe7YO4.js → useAsyncRetry-CKBioJX5.js} +1 -1
  163. package/dist/assets/{useLocalStorage-BEs66pts.js → useLocalStorage-BTzsh1Lj.js} +1 -1
  164. package/dist/assets/{useThemeProps-DXk_HLKM.js → useThemeProps-d3GR3gue.js} +1 -1
  165. package/dist/assets/{util-Cbf8gAh_.js → util-DXUxNwaT.js} +1 -1
  166. package/dist/assets/{wait-container-C4klN3Th.js → wait-container-2gTMdAkJ.js} +1 -1
  167. package/dist/assets/{without-wallet-DaUHusY5.js → without-wallet-CIoRe4lL.js} +1 -1
  168. package/dist/assets/{wrap-locale-5NaChz5C.js → wrap-locale-3LS80w24.js} +1 -1
  169. package/dist/assets/{xml-ZkmPNLNd.js → xml-BUC5O1uY.js} +1 -1
  170. package/dist/assets/{yaml-CuZzQDBi.js → yaml-DiA-8wK9.js} +1 -1
  171. package/dist/index.html +1 -1
  172. package/dist/service-worker.js +1 -1
  173. package/package.json +1 -1
  174. package/dist/assets/ArrowDropDown-CFSWcN3J.js +0 -1
  175. package/dist/assets/api-Dksjqhj9.js +0 -1
  176. package/dist/assets/client-D1yTa59W.js +0 -1
  177. package/dist/assets/cloneDeep-DymekVbc.js +0 -1
  178. package/dist/assets/emotion-cache.browser.esm-2hka6KsY.js +0 -1
  179. package/dist/assets/engine-IPaOGJ95.js +0 -1
  180. package/dist/assets/getValidReactChildren-Cq-L2XG5.js +0 -1
  181. package/dist/assets/index-ZXKsu0i-.js +0 -1
  182. package/dist/assets/omit-DOuoJ5G3.js +0 -1
  183. package/dist/assets/schema-C2mGuU4x.js +0 -1
  184. package/dist/assets/sdk-fTtyOYPc.js +0 -1
  185. package/dist/assets/toUpper-Dul2guy6.js +0 -1
@@ -1,4 +1,4 @@
1
- import{m as i}from"./index-C_Wb23_l.js";import"./index-_8oRZcHP.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m as i}from"./index-Ci4hOeJE.js";import"./index-C4mOfCm_.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1,4 +1,4 @@
1
- import{m as s}from"./index-C_Wb23_l.js";import"./index-_8oRZcHP.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m as s}from"./index-Ci4hOeJE.js";import"./index-C4mOfCm_.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1,4 +1,4 @@
1
- import{m as lt}from"./index-C_Wb23_l.js";import"./index-_8oRZcHP.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m as lt}from"./index-Ci4hOeJE.js";import"./index-C4mOfCm_.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1 +1 @@
1
- import{gU as x,be as E}from"./index-_8oRZcHP.js";const N=({url:r,allowFullScreen:o,position:a,display:u,height:i,width:y,overflow:c,styles:f,onLoad:p,onMouseOver:b,onMouseOut:w,scrolling:d,id:m,frameBorder:t,ariaHidden:O,sandbox:s,allow:j,className:g,title:h,ariaLabel:k,ariaLabelledby:P,name:v,target:A,loading:F,importance:I,referrerpolicy:M,allowpaymentrequest:S,src:U,key:q})=>{const n=x({src:U||r,target:A||null,style:{position:a||null,display:u||"initial",overflow:c||null},scrolling:d||null,allowpaymentrequest:S||null,importance:I||null,sandbox:s&&[...s].join(" ")||null,loading:F||null,styles:f||null,name:v||null,className:g||null,allowFullScreen:"allowFullScreen",referrerpolicy:M||null,title:h||null,allow:j||null,id:m||null,"aria-labelledby":P||null,"aria-hidden":O||null,"aria-label":k||null,width:y||null,height:i||null,onLoad:p||null,onMouseOver:b||null,onMouseOut:w||null,key:q||"iframe"});let l=Object.create(null);for(let e of Object.keys(n))n[e]!=null&&(l[e]=n[e]);for(let e of Object.keys(l.style))l.style[e]==null&&delete l.style[e];if(l.styles)for(let e of Object.keys(l.styles))l.styles.hasOwnProperty(e)&&(l.style[e]=l.styles[e]),Object.keys(l.styles).pop()==e&&delete l.styles;if(o)if("allow"in l){const e=l.allow.replace("fullscreen","");l.allow=`fullscreen ${e.trim()}`.trim()}else l.allow="fullscreen";return t>=0&&(l.style.hasOwnProperty("border")||(l.style.border=t)),E.createElement("iframe",Object.assign({},l))};export{N as I};
1
+ import{gU as x,be as E}from"./index-C4mOfCm_.js";const N=({url:r,allowFullScreen:o,position:a,display:u,height:i,width:y,overflow:c,styles:f,onLoad:p,onMouseOver:b,onMouseOut:w,scrolling:d,id:m,frameBorder:t,ariaHidden:O,sandbox:s,allow:j,className:g,title:h,ariaLabel:k,ariaLabelledby:P,name:v,target:A,loading:F,importance:I,referrerpolicy:M,allowpaymentrequest:S,src:U,key:q})=>{const n=x({src:U||r,target:A||null,style:{position:a||null,display:u||"initial",overflow:c||null},scrolling:d||null,allowpaymentrequest:S||null,importance:I||null,sandbox:s&&[...s].join(" ")||null,loading:F||null,styles:f||null,name:v||null,className:g||null,allowFullScreen:"allowFullScreen",referrerpolicy:M||null,title:h||null,allow:j||null,id:m||null,"aria-labelledby":P||null,"aria-hidden":O||null,"aria-label":k||null,width:y||null,height:i||null,onLoad:p||null,onMouseOver:b||null,onMouseOut:w||null,key:q||"iframe"});let l=Object.create(null);for(let e of Object.keys(n))n[e]!=null&&(l[e]=n[e]);for(let e of Object.keys(l.style))l.style[e]==null&&delete l.style[e];if(l.styles)for(let e of Object.keys(l.styles))l.styles.hasOwnProperty(e)&&(l.style[e]=l.styles[e]),Object.keys(l.styles).pop()==e&&delete l.styles;if(o)if("allow"in l){const e=l.allow.replace("fullscreen","");l.allow=`fullscreen ${e.trim()}`.trim()}else l.allow="fullscreen";return t>=0&&(l.style.hasOwnProperty("border")||(l.style.border=t)),E.createElement("iframe",Object.assign({},l))};export{N as I};
@@ -1,4 +1,4 @@
1
- import{ak as ee,A as T,r as f,a as te,b as se,m as S,u as j,x as re,aw as A,J as F,j as t,w as $,ax as oe,T as R,y as k,$ as q,o as m,ay as ne,az as ae,v as _,C as N,aA as ie,H as O,Y as W,aB as le,aC as ce,N as B,aD as ue,E as de,L as pe,aE as he,aa as fe,s as M,a7 as me,a8 as ge,aF as xe,a9 as be}from"./index-_8oRZcHP.js";import{u as L}from"./useLocalStorage-BEs66pts.js";import{C as ke,c as ye,e as Se,_ as je,a as we,d as ve,s as Pe,S as z,b as Re,A as Ce}from"./item-CA0AhoeU.js";import{e as D}from"./engine-IPaOGJ95.js";import{g as U}from"./get-safe-url-D5Xp3EJt.js";import{P as V}from"./permission-CjJ84P8d.js";import{A as Le}from"./ArrowDropDown-CFSWcN3J.js";import{B as Ee}from"./Breadcrumbs-BHAIleTC.js";import"./ChevronLeft-mBfiaSS1.js";import"./ChevronRight-BhZK0m02.js";import"./Search-BJ29HaSB.js";import"./index-luUossMM.js";import"./blocklet-CxgGBUvX.js";import"./Autocomplete-BUKgT1H8.js";import"./ListSubheader-DA2-DVZb.js";import"./Verified-D9QmxLSp.js";import"./VerifiedUser-W0URZfI1.js";import"./Add-C-JGR7WX.js";import"./Launch-DirijHL1.js";import"./Done-KBM5PYQe.js";import"./DeleteOutline-CMvAWFzN.js";import"./delete-confirm-CwBSbfmS.js";import"./click-to-copy-BJD4pP2S.js";import"./MoreVert-_f7HjK7U.js";import"./ButtonGroup-BpbIaw4r.js";import"./getValidReactChildren-Cq-L2XG5.js";function De(e){const n=ee(),l=T(),[s,o]=L(`sid:blocklet:purchase:${e}`),[i,c]=f.useState(!1),[u,a]=f.useState(null),d=()=>{const{pathname:r,searchParams:g}=new URL(window.location.href),x=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";g.get("sid")&&(o(""),l(r.replace(x,"/"),{replace:!0}))},p=!!(n.get("assetDid")&&s&&n.get("sid")===s);return te(se.BlockletEvents.purchaseChange,r=>{r.did===e&&(a(r.session),["declined","confirmed","error"].includes(r.session.status)&&(c(!0),setTimeout(d,2e3)))}),f.useEffect(()=>{u&&u.id!==s&&o(u.id)},[u]),{hasCompleted:i,hasPurchased:p,session:u,setSession:a,doRedirect:d}}function Be(e){setTimeout(()=>{window.location.href=U(e,{allowDomains:null})},1e3)}function H({meta:e,onCancel:n,handlePaySuccess:l=Be,storeUrl:s}){const{t:o}=S(),{info:i}=j(),[c,u]=f.useState("both"),[a,d]=f.useState(1),p=re(i),r=A(e,i,s),g=P=>{P!==c&&u(P)},x=()=>{c&&(d(2),c==="verify"&&(window.location.href=U(r)))},w=(P,E)=>{E!=="backdropClick"&&n()},b=()=>{l(r)},h=F.getDisplayName({meta:e});if(c==="purchase"&&a===2)return t.jsx($,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:oe.create({baseURL:k(s,"/store")}).get,onSuccess:b,onClose:n,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:p,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:h}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(R,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(R,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:h})]})]})}});const v=q;return t.jsx(v,{title:o("store.purchase.title",{name:h}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:w,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(ke,{action:c,onNext:x,onSelect:g})})})}H.propTypes={...ye,storeUrl:m.string.isRequired,handlePaySuccess:m.func};function K({meta:e,buttonText:n,storeUrl:l,isResource:s=!1}){const{t:o}=S(),i=T(),{info:c}=j(),{api:u}=ne(),a=F.isFreeBlocklet(e)===!1,[d,p]=f.useState(!1),{hasPurchased:r}=De(e.did),[g,x]=f.useState(!1),[w]=L("instant-blocklet-install",!1),[b,h]=f.useState(!1),v=f.useMemo(()=>d?o(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[d,o,a]),P=f.useMemo(()=>s?o("blocklet.status.resource"):a?n.purchase:n.launch,[a,n,s]),E=y=>{y.preventDefault(),y.stopPropagation();try{if(p(!0),a){x(!0);return}if(w){h(!0);return}if(!a){const C=A(e,c,l);window.location.href=U(C)}}catch(C){O.error(W(C),{autoHideDuration:5e3}),console.error("Blocklet installed failed",C)}finally{p(!1)}},Q=()=>{p(!1),x(!1)},X=y=>{p(!1),h(!1),i(`/blocklets/${y.appDid}/components`)},Z=()=>{p(!1),h(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(Se,{children:t.jsx(V,{permission:"mutate_blocklets",children:y=>t.jsx(ae,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(_,{onClick:E,size:"small",sx:{cursor:s?"not-allowed":"pointer",overflow:"hidden"},disabled:!!(v||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:v?t.jsxs(t.Fragment,{children:[t.jsx(N,{size:16,style:{marginRight:3}}),v]}):P},e.did)})})}),(r||g)&&t.jsx(H,{method:"launch",meta:e,mode:"both",onCancel:Q,storeUrl:l}),b&&t.jsx($,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:u.get,checkTimeout:5*60*1e3,onSuccess:X,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ie(l,e.did).trim())},messages:{title:o("setup.keyPair.title"),scan:o("setup.keyPair.scan"),confirm:o("setup.keyPair.confirm"),success:o("setup.keyPair.success")},onClose:Z})]})}K.propTypes={isResource:m.bool,meta:m.object.isRequired,buttonText:m.shape({purchase:m.string.isRequired,launch:m.string.isRequired}).isRequired,storeUrl:m.string.isRequired};const Ue=(e,n,l)=>{const s=fe(n);return k(l,`/blocklets/${e.did}/?server-url=${s}`)},I=({meta:e,attribute:n,value:l})=>e._formatted?e._formatted[n]:l,Ie=(e,n)=>{if(!e||!n)return"";try{return k(n,e)}catch(l){return console.warn("Failed to construct avatar URL:",l),""}};function G({blocklet:e,endpoint:n="",serverVersion:l=""}){const{t:s}=S(),o=j();let i=k(o.imgPrefix,"blocklet.png");const c=n;if(c.startsWith("http")&&e.logo)i=k(c,ue(e.did,e.logo,e.version));else{let g=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");g&&(g=`/${g}`),i=k(g,`/blocklet/logo/${e.did}`)}try{const r=new URL(i);r.searchParams.set("v",e.version||+new Date),i=r.href}catch{}const u=o?.info.mode!==de.NODE_MODES.SERVERLESS,a=r=>r.currentTarget.contains(r.target)?!0:(r.preventDefault(),!1),d={meta:e,buttonText:{purchase:s("common.purchase"),launch:s("common.launch")},storeUrl:c};let p=null;return u&&(p=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(we,{serverVersion:l,requirementVersion:e.requirements?.server,size:"small",children:t.jsx(K,{isResource:!(D.hasStartEngine(e)||D.isGatewayBlocklet(e)||D.isPackBlocklet(e)),...d})})})),t.jsx(pe,{href:Ue(e,o.info,n),style:{color:"initial",textDecoration:"none"},onClick:a,target:"_blank",children:t.jsx(Te,{title:I({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:I({meta:e,attribute:"description",value:e.description}),cover:e.logo?i:"",version:e.version,onButtonClick:null,icons:e.docker?.image?[{key:"docker",icon:t.jsx(B,{sx:{display:"flex",color:"primary.main"},children:t.jsx(he,{icon:ve})}),title:s("blocklet.dockerImage")}]:[],official:e.isOfficial?{tooltip:s("blocklet.component.isOfficial")}:void 0,author:e.owner.fullName,avatar:Ie(e.owner.avatar,n),download:e.stats.downloads,button:p})})}G.propTypes={blocklet:m.object.isRequired,serverVersion:m.string,endpoint:m.string};function Y({storeUrl:e,handleSearchSelect:n=null,extraFilter:l=void 0,...s}){const{locale:o}=S(),i=j(),[c,u]=f.useState({}),a=r=>{u(r)},d=e,p=i?.info?.version;return f.useEffect(()=>{u({})},[d]),t.jsx(le,{FallbackComponent:ce,resetKeys:[d],children:t.jsx(B,{...s,sx:{"& .title-bar":{pt:0},".blocklet-list":{mt:0},"& h2":{display:"none"}},children:t.jsx(je,{layout:{showExplore:!1,showTitle:!0},blockletRender:r=>t.jsx(G,{...r,endpoint:d}),baseSearch:!0,endpoint:d,locale:o,onFilterChange:a,onSearchSelect:n,filters:c,extraFilter:l,serverVersion:p})})})}Y.propTypes={storeUrl:m.string.isRequired,handleSearchSelect:m.func,extraFilter:m.func};const Te=M(Pe)`
1
+ import{ak as ee,A as T,r as f,a as te,b as se,m as S,u as j,x as re,aw as A,J as F,j as t,w as $,ax as oe,T as R,y as k,$ as q,o as m,ay as ne,az as ae,v as _,C as N,aA as ie,H as O,Y as W,aB as le,aC as ce,N as B,aD as ue,E as de,L as pe,aE as he,aa as fe,s as M,a7 as me,a8 as ge,aF as xe,a9 as be}from"./index-C4mOfCm_.js";import{u as L}from"./useLocalStorage-BTzsh1Lj.js";import{C as ke,c as ye,e as Se,_ as je,a as we,d as ve,s as Pe,S as z,b as Re,A as Ce}from"./item-DB4nd60x.js";import{e as D}from"./engine-DUBYjcGZ.js";import{g as U}from"./get-safe-url-DjCQU-uR.js";import{P as V}from"./permission-CAwWHgKo.js";import{A as Le}from"./ArrowDropDown-BS9tp8MS.js";import{B as Ee}from"./Breadcrumbs-BGvPLgGW.js";import"./ChevronLeft-BPyHvtRf.js";import"./ChevronRight-BgqwQ3It.js";import"./Search-DhxCIV3r.js";import"./index-BeHzPQZj.js";import"./blocklet-DmmVfj87.js";import"./Autocomplete-8ICuj-KH.js";import"./ListSubheader-BOpeFxej.js";import"./Verified-CsK6wp5l.js";import"./VerifiedUser-CMhuvwNe.js";import"./Add-3_OvaFrP.js";import"./Launch-DXqdimna.js";import"./Done-BowXQslF.js";import"./DeleteOutline-qcbzQjhi.js";import"./delete-confirm-BMlllWsg.js";import"./click-to-copy-C9lDYNLy.js";import"./MoreVert-L8j8_EPz.js";import"./ButtonGroup-C0aG4xOT.js";import"./getValidReactChildren--K7J75d3.js";function De(e){const n=ee(),l=T(),[s,o]=L(`sid:blocklet:purchase:${e}`),[i,c]=f.useState(!1),[u,a]=f.useState(null),d=()=>{const{pathname:r,searchParams:g}=new URL(window.location.href),x=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";g.get("sid")&&(o(""),l(r.replace(x,"/"),{replace:!0}))},p=!!(n.get("assetDid")&&s&&n.get("sid")===s);return te(se.BlockletEvents.purchaseChange,r=>{r.did===e&&(a(r.session),["declined","confirmed","error"].includes(r.session.status)&&(c(!0),setTimeout(d,2e3)))}),f.useEffect(()=>{u&&u.id!==s&&o(u.id)},[u]),{hasCompleted:i,hasPurchased:p,session:u,setSession:a,doRedirect:d}}function Be(e){setTimeout(()=>{window.location.href=U(e,{allowDomains:null})},1e3)}function H({meta:e,onCancel:n,handlePaySuccess:l=Be,storeUrl:s}){const{t:o}=S(),{info:i}=j(),[c,u]=f.useState("both"),[a,d]=f.useState(1),p=re(i),r=A(e,i,s),g=P=>{P!==c&&u(P)},x=()=>{c&&(d(2),c==="verify"&&(window.location.href=U(r)))},w=(P,E)=>{E!=="backdropClick"&&n()},b=()=>{l(r)},h=F.getDisplayName({meta:e});if(c==="purchase"&&a===2)return t.jsx($,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:oe.create({baseURL:k(s,"/store")}).get,onSuccess:b,onClose:n,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:p,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:h}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(R,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(R,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:h})]})]})}});const v=q;return t.jsx(v,{title:o("store.purchase.title",{name:h}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:w,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(ke,{action:c,onNext:x,onSelect:g})})})}H.propTypes={...ye,storeUrl:m.string.isRequired,handlePaySuccess:m.func};function K({meta:e,buttonText:n,storeUrl:l,isResource:s=!1}){const{t:o}=S(),i=T(),{info:c}=j(),{api:u}=ne(),a=F.isFreeBlocklet(e)===!1,[d,p]=f.useState(!1),{hasPurchased:r}=De(e.did),[g,x]=f.useState(!1),[w]=L("instant-blocklet-install",!1),[b,h]=f.useState(!1),v=f.useMemo(()=>d?o(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[d,o,a]),P=f.useMemo(()=>s?o("blocklet.status.resource"):a?n.purchase:n.launch,[a,n,s]),E=y=>{y.preventDefault(),y.stopPropagation();try{if(p(!0),a){x(!0);return}if(w){h(!0);return}if(!a){const C=A(e,c,l);window.location.href=U(C)}}catch(C){O.error(W(C),{autoHideDuration:5e3}),console.error("Blocklet installed failed",C)}finally{p(!1)}},Q=()=>{p(!1),x(!1)},X=y=>{p(!1),h(!1),i(`/blocklets/${y.appDid}/components`)},Z=()=>{p(!1),h(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(Se,{children:t.jsx(V,{permission:"mutate_blocklets",children:y=>t.jsx(ae,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(_,{onClick:E,size:"small",sx:{cursor:s?"not-allowed":"pointer",overflow:"hidden"},disabled:!!(v||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:v?t.jsxs(t.Fragment,{children:[t.jsx(N,{size:16,style:{marginRight:3}}),v]}):P},e.did)})})}),(r||g)&&t.jsx(H,{method:"launch",meta:e,mode:"both",onCancel:Q,storeUrl:l}),b&&t.jsx($,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:u.get,checkTimeout:5*60*1e3,onSuccess:X,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ie(l,e.did).trim())},messages:{title:o("setup.keyPair.title"),scan:o("setup.keyPair.scan"),confirm:o("setup.keyPair.confirm"),success:o("setup.keyPair.success")},onClose:Z})]})}K.propTypes={isResource:m.bool,meta:m.object.isRequired,buttonText:m.shape({purchase:m.string.isRequired,launch:m.string.isRequired}).isRequired,storeUrl:m.string.isRequired};const Ue=(e,n,l)=>{const s=fe(n);return k(l,`/blocklets/${e.did}/?server-url=${s}`)},I=({meta:e,attribute:n,value:l})=>e._formatted?e._formatted[n]:l,Ie=(e,n)=>{if(!e||!n)return"";try{return k(n,e)}catch(l){return console.warn("Failed to construct avatar URL:",l),""}};function G({blocklet:e,endpoint:n="",serverVersion:l=""}){const{t:s}=S(),o=j();let i=k(o.imgPrefix,"blocklet.png");const c=n;if(c.startsWith("http")&&e.logo)i=k(c,ue(e.did,e.logo,e.version));else{let g=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");g&&(g=`/${g}`),i=k(g,`/blocklet/logo/${e.did}`)}try{const r=new URL(i);r.searchParams.set("v",e.version||+new Date),i=r.href}catch{}const u=o?.info.mode!==de.NODE_MODES.SERVERLESS,a=r=>r.currentTarget.contains(r.target)?!0:(r.preventDefault(),!1),d={meta:e,buttonText:{purchase:s("common.purchase"),launch:s("common.launch")},storeUrl:c};let p=null;return u&&(p=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(we,{serverVersion:l,requirementVersion:e.requirements?.server,size:"small",children:t.jsx(K,{isResource:!(D.hasStartEngine(e)||D.isGatewayBlocklet(e)||D.isPackBlocklet(e)),...d})})})),t.jsx(pe,{href:Ue(e,o.info,n),style:{color:"initial",textDecoration:"none"},onClick:a,target:"_blank",children:t.jsx(Te,{title:I({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:I({meta:e,attribute:"description",value:e.description}),cover:e.logo?i:"",version:e.version,onButtonClick:null,icons:e.docker?.image?[{key:"docker",icon:t.jsx(B,{sx:{display:"flex",color:"primary.main"},children:t.jsx(he,{icon:ve})}),title:s("blocklet.dockerImage")}]:[],official:e.isOfficial?{tooltip:s("blocklet.component.isOfficial")}:void 0,author:e.owner.fullName,avatar:Ie(e.owner.avatar,n),download:e.stats.downloads,button:p})})}G.propTypes={blocklet:m.object.isRequired,serverVersion:m.string,endpoint:m.string};function Y({storeUrl:e,handleSearchSelect:n=null,extraFilter:l=void 0,...s}){const{locale:o}=S(),i=j(),[c,u]=f.useState({}),a=r=>{u(r)},d=e,p=i?.info?.version;return f.useEffect(()=>{u({})},[d]),t.jsx(le,{FallbackComponent:ce,resetKeys:[d],children:t.jsx(B,{...s,sx:{"& .title-bar":{pt:0},".blocklet-list":{mt:0},"& h2":{display:"none"}},children:t.jsx(je,{layout:{showExplore:!1,showTitle:!0},blockletRender:r=>t.jsx(G,{...r,endpoint:d}),baseSearch:!0,endpoint:d,locale:o,onFilterChange:a,onSearchSelect:n,filters:c,extraFilter:l,serverVersion:p})})})}Y.propTypes={storeUrl:m.string.isRequired,handleSearchSelect:m.func,extraFilter:m.func};const Te=M(Pe)`
2
2
  .ms-highlight {
3
3
  color: ${e=>e.theme.palette.primary.main};
4
4
  }
@@ -1 +1 @@
1
- import{A as g,bm as v,u as y,j as r,Q as f,S as x,U as h}from"./index-_8oRZcHP.js";import{L as S,D as j}from"./download-BYyG4swb.js";import{u as L}from"./useLocalStorage-BEs66pts.js";import"./ButtonGroup-BpbIaw4r.js";import"./getValidReactChildren-Cq-L2XG5.js";function I(){const c=g(),[s,i]=L("server-logs-filter",{name:"abtnode",type:{abtnode:"error"}}),{name:t=s.name}=v(),{info:l}=y(),n=l.routing.provider,a=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr","pm2"]},{id:"blocklet-services",name:"Blocklet Services",types:["error","info","access","stdout","stderr"]}];if(n){const e=`Service Gateway(${n})`;a.push({id:`service-gateway-${n}`,name:e,types:["error","access","security"]})}const d=e=>{i({...s,name:e.target.value}),c(`/logs/${e.target.value}`)},m=r.jsx(f,{sx:{minWidth:240},children:r.jsx(x,{value:t,onChange:d,size:"small",children:a.map(e=>r.jsx(h,{value:e.id,children:e.name},e.id))})}),o=a.find(e=>e.id===t)||a[0],p=o.types.indexOf(s.type[t]||"error"),u=e=>{i({name:t,type:{...s.type,[t]:e}})};return r.jsx(S,{name:o.name,logId:o.id,types:o.types,prepend:m,postpend:r.jsx(j,{id:l.did,name:"blocklet-server"}),defaultTypeIndex:p,onTypeChange:u},o.id)}export{I as default};
1
+ import{A as g,bm as v,u as y,j as r,Q as f,S as x,U as h}from"./index-C4mOfCm_.js";import{L as S,D as j}from"./download-BDQD3mNs.js";import{u as L}from"./useLocalStorage-BTzsh1Lj.js";import"./ButtonGroup-C0aG4xOT.js";import"./getValidReactChildren--K7J75d3.js";function I(){const c=g(),[s,i]=L("server-logs-filter",{name:"abtnode",type:{abtnode:"error"}}),{name:t=s.name}=v(),{info:l}=y(),n=l.routing.provider,a=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr","pm2"]},{id:"blocklet-services",name:"Blocklet Services",types:["error","info","access","stdout","stderr"]}];if(n){const e=`Service Gateway(${n})`;a.push({id:`service-gateway-${n}`,name:e,types:["error","access","security"]})}const d=e=>{i({...s,name:e.target.value}),c(`/logs/${e.target.value}`)},m=r.jsx(f,{sx:{minWidth:240},children:r.jsx(x,{value:t,onChange:d,size:"small",children:a.map(e=>r.jsx(h,{value:e.id,children:e.name},e.id))})}),o=a.find(e=>e.id===t)||a[0],p=o.types.indexOf(s.type[t]||"error"),u=e=>{i({name:t,type:{...s.type,[t]:e}})};return r.jsx(S,{name:o.name,logId:o.id,types:o.types,prepend:m,postpend:r.jsx(j,{id:l.did,name:"blocklet-server"}),defaultTypeIndex:p,onTypeChange:u},o.id)}export{I as default};
@@ -1,4 +1,4 @@
1
- import{j as o,T as i,di as x,dj as d,dc as f}from"./index-_8oRZcHP.js";function w({name:t,nameFormatter:r=e=>typeof e=="string"?e.split(" ").map(c=>x(d(c))).join(" "):e,layout:n="horizontal",children:a,valueComponent:l="div",nameWidth:m=90,...s}){return o.jsxs(p,{layout:n,width:m,...s,children:[o.jsx(i,{color:"textSecondary",className:"info-row__name",children:r(t)}),a&&o.jsx(i,{color:"textPrimary",component:l,className:"info-row__value",children:a})]})}const p=f("div")`
1
+ import{j as o,T as i,di as x,dj as d,dc as f}from"./index-C4mOfCm_.js";function w({name:t,nameFormatter:r=e=>typeof e=="string"?e.split(" ").map(c=>x(d(c))).join(" "):e,layout:n="horizontal",children:a,valueComponent:l="div",nameWidth:m=90,...s}){return o.jsxs(p,{layout:n,width:m,...s,children:[o.jsx(i,{color:"textSecondary",className:"info-row__name",children:r(t)}),a&&o.jsx(i,{color:"textPrimary",component:l,className:"info-row__value",children:a})]})}const p=f("div")`
2
2
  display: flex;
3
3
  flex-direction: ${t=>t.layout==="vertical"?"column":"row"};
4
4
  justify-content: flex-start;
@@ -1,4 +1,4 @@
1
- import{aG as Yn,j as t,r as N,fF as no,fG as io,cr as We,bd as Gn,by as He,N as ae,at as Zn,az as $e,T as we,eK as oo,aP as ot,fH as so,m as Ee,F as Qn,fI as Lr,fJ as ao,cU as Xn,cq as lo,bk as Yr,dE as bt,P as yt,aU as Dt,fK as co,C as Qe,fL as vt,ev as Ae,fM as Jn,fN as uo,fO as fo,fP as po,fQ as mo,fR as ho,fS as ei,fT as go,fU as _r,fV as bo,fW as yo,fX as vo,fY as wo,ew as qr,fZ as ti,ex as xo,cE as Er,ey as Co,dA as So,f_ as To,bW as at,bX as lt,cf as ri,dK as Oe,eW as ce,bZ as Eo,b8 as Se,da as Rt,d4 as ni,b_ as qe,b$ as et,U as Xe,av as kt,dG as ii,d7 as jo,f$ as qt,bg as oi,g0 as si,o as b,bf as De,Q as wt,bi as Po,t as st,g1 as Do,bn as Re,R as jr,S as Pr,dC as Ro,g2 as At,g3 as ko,H as Ue,au as xt,$ as Ge,D as Ur,X as rt,v as Te,Y as ze,g4 as Ao,i as Dr,aW as Oo,w as Io,x as No,s as je,f1 as Mo,g as Ct,ad as St,bz as Je,g5 as Lo,dB as _o,di as qo,f as Uo,n as Tt,E as Ye,dt as Fo,g6 as Bo,ez as Vo,g7 as ai,g8 as Ot,g9 as $o,dD as Gr,b as Ze,W as Fr,dF as zo,bq as li,br as Ko,bs as ci,aE as Wo,fE as ui,ga as di,aS as Ho,aF as Yo,a9 as Go,y as Zo,gb as Qo,a4 as Xo,bB as Jo,V as es,O as ts}from"./index-_8oRZcHP.js";import{A as It}from"./Add-C-JGR7WX.js";import{V as rs}from"./ViewList-CBW6lkQ9.js";import{H as Br,g as ns}from"./index-WCnj110a.js";import{u as is}from"./use-mobile-CFs8fmsh.js";import{e as Zr}from"./client-D1yTa59W.js";import{R as os,a as $t,W as fi,D as ss}from"./url-evaluation-C9ybfEbS.js";import{u as Ie}from"./team-CSpa5Bju.js";import{u as pi}from"./blocklet-CxgGBUvX.js";import{P as Ve}from"./permission-CjJ84P8d.js";import{C as Ut}from"./click-to-copy-BJD4pP2S.js";import{s as Ke,g as as,S as ls,u as Fe,a as mi,b as Et,c as hi,d as Ft,e as gi,f as Vr,P as bi,D as yi,h as Nt,M as mt,i as vi,j as Qr,k as gt,v as cs,l as us,m as Xr,n as ds,o as fs,p as ps,q as ms,C as hs,r as gs,t as Mt,w as nt,x as Lt,y as Jr,z as en,A as bs,T as ys,B as $r,E as vs,F as ws,G as xs,H as Cs,I as Ss,J as Ts,K as Es,L as jt,N as it,O as wi,Q as js,V as Rr,R as xi,U as Ps,W as tn,X as Ds,Y as Rs,Z as ks,_ as As,$ as Os,a0 as Is}from"./AdapterDayjs-CY5F-qOY.js";import{u as Ne}from"./useThemeProps-DXk_HLKM.js";import{a as rn,b as Ns,t as Ms,T as Ls}from"./index-CI3XNytL.js";import{v as Pe}from"./index-CrTw1v2G.js";import{V as _s}from"./Verified-D9QmxLSp.js";import{D as qs}from"./DeleteOutline-CMvAWFzN.js";import{E as nn}from"./ErrorOutline-DrbqnFJ2.js";import{y as Ci}from"./index-luUossMM.js";import{S as Us}from"./Search-BJ29HaSB.js";import{N as Fs}from"./index-BoCWZ9Ig.js";import{b as Bs}from"./sdk-fTtyOYPc.js";import{A as Vs}from"./actions-Bqwe_eeJ.js";import{S as $s}from"./shorten-label-Daz_9q6V.js";const zs=Yn(t.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),Ks=Yn(t.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Si=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})),Ti=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),N.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),N.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Ei=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),N.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),Ws=e=>N.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("g",{clipPath:"url(#clip0)"},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})),N.createElement("defs",null,N.createElement("clipPath",{id:"clip0"},N.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),ji=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10C3.25 6.27208 6.27208 3.25 10 3.25C13.7279 3.25 16.75 6.27208 16.75 10C16.75 13.7279 13.7279 16.75 10 16.75C6.27208 16.75 3.25 13.7279 3.25 10ZM10 1.75C5.44365 1.75 1.75 5.44365 1.75 10C1.75 14.5564 5.44365 18.25 10 18.25C14.5563 18.25 18.25 14.5564 18.25 10C18.25 5.44365 14.5563 1.75 10 1.75ZM8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L11.9697 13.0303C12.2626 13.3232 12.7374 13.3232 13.0303 13.0303C13.3232 12.7374 13.3232 12.2626 13.0303 11.9697L8.03033 6.96967Z"}));var zt={},Kt,on;function Hs(){return on||(on=1,Kt=e=>encodeURIComponent(e).replace(/[!'()*]/g,c=>`%${c.charCodeAt(0).toString(16).toUpperCase()}`)),Kt}var Wt,sn;function Ys(){if(sn)return Wt;sn=1;var e="%[a-f0-9]{2}",c=new RegExp("("+e+")|([^%]+?)","gi"),o=new RegExp("("+e+")+","gi");function r(m,p){try{return[decodeURIComponent(m.join(""))]}catch{}if(m.length===1)return m;p=p||1;var s=m.slice(0,p),i=m.slice(p);return Array.prototype.concat.call([],r(s),r(i))}function y(m){try{return decodeURIComponent(m)}catch{for(var p=m.match(c)||[],s=1;s<p.length;s++)m=r(p,s).join(""),p=m.match(c)||[];return m}}function x(m){for(var p={"%FE%FF":"��","%FF%FE":"��"},s=o.exec(m);s;){try{p[s[0]]=decodeURIComponent(s[0])}catch{var i=y(s[0]);i!==s[0]&&(p[s[0]]=i)}s=o.exec(m)}p["%C2"]="�";for(var n=Object.keys(p),S=0;S<n.length;S++){var a=n[S];m=m.replace(new RegExp(a,"g"),p[a])}return m}return Wt=function(m){if(typeof m!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof m+"`");try{return m=m.replace(/\+/g," "),decodeURIComponent(m)}catch{return x(m)}},Wt}var Ht,an;function Gs(){return an||(an=1,Ht=(e,c)=>{if(!(typeof e=="string"&&typeof c=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(c==="")return[e];const o=e.indexOf(c);return o===-1?[e]:[e.slice(0,o),e.slice(o+c.length)]}),Ht}var Yt,ln;function Zs(){return ln||(ln=1,Yt=function(e,c){for(var o={},r=Object.keys(e),y=Array.isArray(c),x=0;x<r.length;x++){var m=r[x],p=e[m];(y?c.indexOf(m)!==-1:c(m,p,e))&&(o[m]=p)}return o}),Yt}var cn;function Qs(){return cn||(cn=1,function(e){const c=Hs(),o=Ys(),r=Gs(),y=Zs(),x=g=>g==null;function m(g){switch(g.arrayFormat){case"index":return f=>(h,w)=>{const T=h.length;return w===void 0||g.skipNull&&w===null||g.skipEmptyString&&w===""?h:w===null?[...h,[i(f,g),"[",T,"]"].join("")]:[...h,[i(f,g),"[",i(T,g),"]=",i(w,g)].join("")]};case"bracket":return f=>(h,w)=>w===void 0||g.skipNull&&w===null||g.skipEmptyString&&w===""?h:w===null?[...h,[i(f,g),"[]"].join("")]:[...h,[i(f,g),"[]=",i(w,g)].join("")];case"comma":case"separator":return f=>(h,w)=>w==null||w.length===0?h:h.length===0?[[i(f,g),"=",i(w,g)].join("")]:[[h,i(w,g)].join(g.arrayFormatSeparator)];default:return f=>(h,w)=>w===void 0||g.skipNull&&w===null||g.skipEmptyString&&w===""?h:w===null?[...h,i(f,g)]:[...h,[i(f,g),"=",i(w,g)].join("")]}}function p(g){let f;switch(g.arrayFormat){case"index":return(h,w,T)=>{if(f=/\[(\d*)\]$/.exec(h),h=h.replace(/\[\d*\]$/,""),!f){T[h]=w;return}T[h]===void 0&&(T[h]={}),T[h][f[1]]=w};case"bracket":return(h,w,T)=>{if(f=/(\[\])$/.exec(h),h=h.replace(/\[\]$/,""),!f){T[h]=w;return}if(T[h]===void 0){T[h]=[w];return}T[h]=[].concat(T[h],w)};case"comma":case"separator":return(h,w,T)=>{const A=typeof w=="string"&&w.includes(g.arrayFormatSeparator),k=typeof w=="string"&&!A&&n(w,g).includes(g.arrayFormatSeparator);w=k?n(w,g):w;const I=A||k?w.split(g.arrayFormatSeparator).map(D=>n(D,g)):w===null?w:n(w,g);T[h]=I};default:return(h,w,T)=>{if(T[h]===void 0){T[h]=w;return}T[h]=[].concat(T[h],w)}}}function s(g){if(typeof g!="string"||g.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function i(g,f){return f.encode?f.strict?c(g):encodeURIComponent(g):g}function n(g,f){return f.decode?o(g):g}function S(g){return Array.isArray(g)?g.sort():typeof g=="object"?S(Object.keys(g)).sort((f,h)=>Number(f)-Number(h)).map(f=>g[f]):g}function a(g){const f=g.indexOf("#");return f!==-1&&(g=g.slice(0,f)),g}function l(g){let f="";const h=g.indexOf("#");return h!==-1&&(f=g.slice(h)),f}function u(g){g=a(g);const f=g.indexOf("?");return f===-1?"":g.slice(f+1)}function d(g,f){return f.parseNumbers&&!Number.isNaN(Number(g))&&typeof g=="string"&&g.trim()!==""?g=Number(g):f.parseBooleans&&g!==null&&(g.toLowerCase()==="true"||g.toLowerCase()==="false")&&(g=g.toLowerCase()==="true"),g}function v(g,f){f=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},f),s(f.arrayFormatSeparator);const h=p(f),w=Object.create(null);if(typeof g!="string"||(g=g.trim().replace(/^[?#&]/,""),!g))return w;for(const T of g.split("&")){if(T==="")continue;let[A,k]=r(f.decode?T.replace(/\+/g," "):T,"=");k=k===void 0?null:["comma","separator"].includes(f.arrayFormat)?k:n(k,f),h(n(A,f),k,w)}for(const T of Object.keys(w)){const A=w[T];if(typeof A=="object"&&A!==null)for(const k of Object.keys(A))A[k]=d(A[k],f);else w[T]=d(A,f)}return f.sort===!1?w:(f.sort===!0?Object.keys(w).sort():Object.keys(w).sort(f.sort)).reduce((T,A)=>{const k=w[A];return k&&typeof k=="object"&&!Array.isArray(k)?T[A]=S(k):T[A]=k,T},Object.create(null))}e.extract=u,e.parse=v,e.stringify=(g,f)=>{if(!g)return"";f=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},f),s(f.arrayFormatSeparator);const h=k=>f.skipNull&&x(g[k])||f.skipEmptyString&&g[k]==="",w=m(f),T={};for(const k of Object.keys(g))h(k)||(T[k]=g[k]);const A=Object.keys(T);return f.sort!==!1&&A.sort(f.sort),A.map(k=>{const I=g[k];return I===void 0?"":I===null?i(k,f):Array.isArray(I)?I.reduce(w(k),[]).join("&"):i(k,f)+"="+i(I,f)}).filter(k=>k.length>0).join("&")},e.parseUrl=(g,f)=>{f=Object.assign({decode:!0},f);const[h,w]=r(g,"#");return Object.assign({url:h.split("?")[0]||"",query:v(u(g),f)},f&&f.parseFragmentIdentifier&&w?{fragmentIdentifier:n(w,f)}:{})},e.stringifyUrl=(g,f)=>{f=Object.assign({encode:!0,strict:!0},f);const h=a(g.url).split("?")[0]||"",w=e.extract(g.url),T=e.parse(w,{sort:!1}),A=Object.assign(T,g.query);let k=e.stringify(A,f);k&&(k=`?${k}`);let I=l(g.url);return g.fragmentIdentifier&&(I=`#${i(g.fragmentIdentifier,f)}`),`${h}${k}${I}`},e.pick=(g,f,h)=>{h=Object.assign({parseFragmentIdentifier:!0},h);const{url:w,query:T,fragmentIdentifier:A}=e.parseUrl(g,h);return e.stringifyUrl({url:w,query:y(T,f),fragmentIdentifier:A},h)},e.exclude=(g,f,h)=>{const w=Array.isArray(f)?T=>!f.includes(T):(T,A)=>!f(T,A);return e.pick(g,w,h)}}(zt)),zt}var Gt=Qs();const dt=no,Xs={parseNumbers:!1,parseBooleans:!1},Js={skipNull:!1,skipEmptyString:!1},ea=(e,c)=>{var o,r;const{navigateMode:y="push",parseOptions:x,stringifyOptions:m}={},p=Object.assign(Object.assign({},Xs),x),s=Object.assign(Object.assign({},Js),m),i=dt.useLocation(),n=(o=dt.useHistory)===null||o===void 0?void 0:o.call(dt),S=(r=dt.useNavigate)===null||r===void 0?void 0:r.call(dt),a=io(),l=N.useRef(typeof e=="function"?e():e||{}),u=N.useMemo(()=>Gt.parse(i.search,p),[i.search]),d=N.useMemo(()=>Object.assign(Object.assign({},l.current),u),[u]);return[d,We(g=>{const f=typeof g=="function"?g(d):g;a(),n&&n[y]({hash:i.hash,search:Gt.stringify(Object.assign(Object.assign({},u),f),s)||"?"},i.state),S&&S({hash:i.hash,search:Gt.stringify(Object.assign(Object.assign({},u),f),s)||"?"},{replace:y==="replace",state:i.state})})]};var ht={exports:{}},ta=ht.exports,un;function ra(){return un||(un=1,function(e,c){(function(o,r){var y="1.0.40",x="",m="?",p="function",s="undefined",i="object",n="string",S="major",a="model",l="name",u="type",d="vendor",v="version",g="architecture",f="console",h="mobile",w="tablet",T="smarttv",A="wearable",k="embedded",I=500,D="Amazon",B="Apple",W="ASUS",G="BlackBerry",te="Browser",pe="Chrome",ne="Edge",re="Firefox",fe="Google",ye="Huawei",M="LG",q="Microsoft",H="Motorola",z="Opera",Y="Samsung",R="Sharp",E="Sony",P="Xiaomi",U="Zebra",F="Facebook",$="Chromium OS",Q="Mac OS",le=" Browser",de=function(O,_){var L={};for(var Z in O)_[Z]&&_[Z].length%2===0?L[Z]=_[Z].concat(O[Z]):L[Z]=O[Z];return L},me=function(O){for(var _={},L=0;L<O.length;L++)_[O[L].toUpperCase()]=O[L];return _},he=function(O,_){return typeof O===n?ve(_).indexOf(ve(O))!==-1:!1},ve=function(O){return O.toLowerCase()},Ce=function(O){return typeof O===n?O.replace(/[^\d\.]/g,x).split(".")[0]:r},xe=function(O,_){if(typeof O===n)return O=O.replace(/^\s\s*/,x),typeof _===s?O:O.substring(0,I)},be=function(O,_){for(var L=0,Z,ie,ue,ee,J,ge;L<_.length&&!J;){var Me=_[L],Le=_[L+1];for(Z=ie=0;Z<Me.length&&!J&&Me[Z];)if(J=Me[Z++].exec(O),J)for(ue=0;ue<Le.length;ue++)ge=J[++ie],ee=Le[ue],typeof ee===i&&ee.length>0?ee.length===2?typeof ee[1]==p?this[ee[0]]=ee[1].call(this,ge):this[ee[0]]=ee[1]:ee.length===3?typeof ee[1]===p&&!(ee[1].exec&&ee[1].test)?this[ee[0]]=ge?ee[1].call(this,ge,ee[2]):r:this[ee[0]]=ge?ge.replace(ee[1],ee[2]):r:ee.length===4&&(this[ee[0]]=ge?ee[3].call(this,ge.replace(ee[1],ee[2])):r):this[ee]=ge||r;L+=2}},se=function(O,_){for(var L in _)if(typeof _[L]===i&&_[L].length>0){for(var Z=0;Z<_[L].length;Z++)if(he(_[L][Z],O))return L===m?r:L}else if(he(_[L],O))return L===m?r:L;return _.hasOwnProperty("*")?_["*"]:O},oe={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},V={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,v],[/opios[\/ ]+([\w\.]+)/i],[v,[l,z+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[v,[l,z+" GX"]],[/\bopr\/([\w\.]+)/i],[v,[l,z]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[v,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,v],[/quark(?:pc)?\/([-\w\.]+)/i],[v,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[v,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[l,"UC"+te]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[l,"Smart Lenovo "+te]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+te],v],[/\bfocus\/([\w\.]+)/i],[v,[l,re+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[l,z+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[l,z+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[l,"MIUI"+le]],[/fxios\/([\w\.-]+)/i],[v,[l,re]],[/\bqihoobrowser\/?([\w\.]*)/i],[v,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],v],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+le],v],[/samsungbrowser\/([\w\.]+)/i],[v,[l,Y+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[v,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,v],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[v,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,F],v],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[l,pe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,pe+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[l,"Android "+te]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[v,se,oe]],[/(webkit|khtml)\/([\w\.]+)/i],[l,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],v],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[l,re+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,[v,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,ve]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,x,ve]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,ve]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[d,Y],[u,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[a,[d,Y],[u,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[a,[d,B],[u,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[d,B],[u,w]],[/(macintosh);/i],[a,[d,B]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[d,R],[u,h]],[/(?:honor)([-\w ]+)[;\)]/i],[a,[d,"Honor"],[u,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[d,ye],[u,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[d,ye],[u,h]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[a,/_/g," "],[d,P],[u,h]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[d,P],[u,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[d,"OPPO"],[u,h]],[/\b(opd2\d{3}a?) bui/i],[a,[d,"OPPO"],[u,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[d,"Vivo"],[u,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[a,[d,"Realme"],[u,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[d,H],[u,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[d,H],[u,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[d,M],[u,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[d,M],[u,h]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[d,"Lenovo"],[u,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[d,"Nokia"],[u,h]],[/(pixel c)\b/i],[a,[d,fe],[u,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[d,fe],[u,h]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[d,E],[u,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[d,E],[u,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[d,"OnePlus"],[u,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[d,D],[u,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[d,D],[u,h]],[/(playbook);[-\w\),; ]+(rim)/i],[a,d,[u,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[d,G],[u,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[d,W],[u,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[d,W],[u,h]],[/(nexus 9)/i],[a,[d,"HTC"],[u,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[a,/_/g," "],[u,h]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[a,[d,"TCL"],[u,w]],[/(itel) ((\w+))/i],[[d,ve],a,[u,se,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[d,"Acer"],[u,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[d,"Meizu"],[u,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[a,[d,"Ulefone"],[u,h]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[a,[d,"Energizer"],[u,h]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[a,[d,"Cat"],[u,h]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[a,[d,"Smartfren"],[u,h]],[/droid.+; (a(?:015|06[35]|142p?))/i],[a,[d,"Nothing"],[u,h]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,a,[u,h]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,a,[u,w]],[/(surface duo)/i],[a,[d,q],[u,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[d,"Fairphone"],[u,h]],[/(u304aa)/i],[a,[d,"AT&T"],[u,h]],[/\bsie-(\w*)/i],[a,[d,"Siemens"],[u,h]],[/\b(rct\w+) b/i],[a,[d,"RCA"],[u,w]],[/\b(venue[\d ]{2,7}) b/i],[a,[d,"Dell"],[u,w]],[/\b(q(?:mv|ta)\w+) b/i],[a,[d,"Verizon"],[u,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[d,"Barnes & Noble"],[u,w]],[/\b(tm\d{3}\w+) b/i],[a,[d,"NuVision"],[u,w]],[/\b(k88) b/i],[a,[d,"ZTE"],[u,w]],[/\b(nx\d{3}j) b/i],[a,[d,"ZTE"],[u,h]],[/\b(gen\d{3}) b.+49h/i],[a,[d,"Swiss"],[u,h]],[/\b(zur\d{3}) b/i],[a,[d,"Swiss"],[u,w]],[/\b((zeki)?tb.*\b) b/i],[a,[d,"Zeki"],[u,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],a,[u,w]],[/\b(ns-?\w{0,9}) b/i],[a,[d,"Insignia"],[u,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[d,"NextBook"],[u,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],a,[u,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],a,[u,h]],[/\b(ph-1) /i],[a,[d,"Essential"],[u,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[d,"Envizen"],[u,w]],[/\b(trio[-\w\. ]+) b/i],[a,[d,"MachSpeed"],[u,w]],[/\btu_(1491) b/i],[a,[d,"Rotor"],[u,w]],[/(shield[\w ]+) b/i],[a,[d,"Nvidia"],[u,w]],[/(sprint) (\w+)/i],[d,a,[u,h]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[d,q],[u,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[d,U],[u,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[d,U],[u,h]],[/smart-tv.+(samsung)/i],[d,[u,T]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[d,Y],[u,T]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,M],[u,T]],[/(apple) ?tv/i],[d,[a,B+" TV"],[u,T]],[/crkey/i],[[a,pe+"cast"],[d,fe],[u,T]],[/droid.+aft(\w+)( bui|\))/i],[a,[d,D],[u,T]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[d,R],[u,T]],[/(bravia[\w ]+)( bui|\))/i],[a,[d,E],[u,T]],[/(mitv-\w{5}) bui/i],[a,[d,P],[u,T]],[/Hbbtv.*(technisat) (.*);/i],[d,a,[u,T]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,xe],[a,xe],[u,T]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,a,[u,f]],[/droid.+; (shield) bui/i],[a,[d,"Nvidia"],[u,f]],[/(playstation [345portablevi]+)/i],[a,[d,E],[u,f]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[d,q],[u,f]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[a,[d,Y],[u,A]],[/((pebble))app/i],[d,a,[u,A]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[a,[d,B],[u,A]],[/droid.+; (glass) \d/i],[a,[d,fe],[u,A]],[/droid.+; (wt63?0{2,3})\)/i],[a,[d,U],[u,A]],[/droid.+; (glass) \d/i],[a,[d,fe],[u,A]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,a,[u,A]],[/; (quest( \d| pro)?)/i],[a,[d,F],[u,A]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[u,k]],[/(aeobc)\b/i],[a,[d,D],[u,k]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[a,[u,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[u,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,h]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[l,ne+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[l,v],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[v,se,X]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,se,X],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,Q],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,v],[/\(bb(10);/i],[v,[l,G]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[l,re+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[l,pe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,$],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,v],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,v]]},K=function(O,_){if(typeof O===i&&(_=O,O=r),!(this instanceof K))return new K(O,_).getResult();var L=typeof o!==s&&o.navigator?o.navigator:r,Z=O||(L&&L.userAgent?L.userAgent:x),ie=L&&L.userAgentData?L.userAgentData:r,ue=_?de(V,_):V,ee=L&&L.userAgent==Z;return this.getBrowser=function(){var J={};return J[l]=r,J[v]=r,be.call(J,Z,ue.browser),J[S]=Ce(J[v]),ee&&L&&L.brave&&typeof L.brave.isBrave==p&&(J[l]="Brave"),J},this.getCPU=function(){var J={};return J[g]=r,be.call(J,Z,ue.cpu),J},this.getDevice=function(){var J={};return J[d]=r,J[a]=r,J[u]=r,be.call(J,Z,ue.device),ee&&!J[u]&&ie&&ie.mobile&&(J[u]=h),ee&&J[a]=="Macintosh"&&L&&typeof L.standalone!==s&&L.maxTouchPoints&&L.maxTouchPoints>2&&(J[a]="iPad",J[u]=w),J},this.getEngine=function(){var J={};return J[l]=r,J[v]=r,be.call(J,Z,ue.engine),J},this.getOS=function(){var J={};return J[l]=r,J[v]=r,be.call(J,Z,ue.os),ee&&!J[l]&&ie&&ie.platform&&ie.platform!="Unknown"&&(J[l]=ie.platform.replace(/chrome os/i,$).replace(/macos/i,Q)),J},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Z},this.setUA=function(J){return Z=typeof J===n&&J.length>I?xe(J,I):J,this},this.setUA(Z),this};K.VERSION=y,K.BROWSER=me([l,v,S]),K.CPU=me([g]),K.DEVICE=me([a,d,u,f,h,T,w,A,k]),K.ENGINE=K.OS=me([l,v]),e.exports&&(c=e.exports=K),c.UAParser=K;var C=typeof o!==s&&(o.jQuery||o.Zepto);if(C&&!C.ua){var j=new K;C.ua=j.getResult(),C.ua.get=function(){return j.getUA()},C.ua.set=function(O){j.setUA(O);var _=j.getResult();for(var L in _)C.ua[L]=_[L]}}})(typeof window=="object"?window:ta)}(ht,ht.exports)),ht.exports}var na=ra();const Zt=Gn(na);function ia({user:e,sessionUser:c}){const o=He(()=>(e?.passports||[])?.find(r=>r.name===c.role),[e?.passports,c?.role]);return t.jsxs(ae,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(Zn,{size:40,variant:"circle",shape:"circle",src:c.avatar,did:c.did,sx:{flexShrink:0}}),t.jsxs(ae,{sx:{flex:1,overflow:"hidden"},children:[t.jsxs(ae,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx($e,{title:c.fullName,children:t.jsx(we,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:c.fullName})}),t.jsx(oo,{label:o?.title||o?.name||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:"text.primary",borderColor:"grey.300",backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),t.jsx($e,{title:c.email,children:t.jsx(we,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:c.email})})]})]})}const oa={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有{type}会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有{type}会话",logoutAllSessionConfirm:"确定要注销所有{type}会话吗?",online:"活跃"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all {type} sessions",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all {type} sessions",logoutAllSessionConfirm:"Are you sure to logout all {type} sessions?",online:"Active"}},Pi="Reserved IP",dn="ip-region-cache";async function sa(e){const c=`https://ipapi.co/${e}/json/`,o=await(await fetch(c)).json();let r="";return o.error?o.reserved&&(r=Pi):r=[o.country_name,o.region,o.city].filter(Boolean).join("/"),r}async function aa(e){const c=`https://api.ip.sb/geoip/${e}`,o=await(await fetch(c)).json();let r="";return o.error?o.reserved&&(r=Pi):r=[o.country,o.region,o.city].filter(Boolean).join("/"),r}async function la(e){let c="",o={};try{const r=localStorage.getItem(dn);r&&(o=JSON.parse(r))}catch{o={}}if(o[e])c=o[e];else{try{c=await aa(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!c)try{c=await sa(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(c){const r=Object.keys(o);r.length>100&&delete o[r[0]],o[e]&&delete o[e],o[e]=c,localStorage.setItem(dn,JSON.stringify(o))}return c}const fn=e=>new Zt(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Zt.BROWSER.NAME,Zt.BROWSER.VERSION]]}).getResult(),pn={display:"flex",justifyContent:"flex-end",textAlign:"right"},ca=new co({concurrency:1}),ua=N.memo(({userSession:e,isMobile:c=!1})=>{const o=ot({loading:!0,ipRegion:""}),{t:r}=Ee();return N.useEffect(()=>{ca.add(async()=>{try{o.ipRegion=await la(e.lastLoginIp)}finally{o.loading=!1}})},[o,e.lastLoginIp]),t.jsx(ae,{...c&&{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:1,flexWrap:"wrap"},children:o.ipRegion?t.jsxs(t.Fragment,{children:[t.jsx(we,{variant:"body2",children:o.ipRegion}),t.jsx(we,{variant:"body2",color:"grey",children:e.lastLoginIp||r("unknown")})]}):t.jsxs(t.Fragment,{children:[t.jsx(we,{children:e.lastLoginIp||r("unknown")}),o.loading?t.jsx(we,{variant:"body2",color:"grey",sx:{textAlign:"center"},children:t.jsx(Qe,{size:12,color:"inherit"})}):null]})})});function da({user:e,showAction:c=!0,showUser:o=!0,getUserSessions:r,showOffline:y=!1}){const x=ot({status:"online",page:1,pageSize:10}),m=ot({online:0,expired:0,offline:0}),p=so(),{locale:s}=Ee(),i=is({key:"md"}),n=Qn(I=>I.breakpoints.down("lg")),{confirmApi:S,confirmHolder:a}=Lr(),l=We((I,D={})=>ao(oa,I,s,"en",D)),u=We(async()=>{const I=await r({page:x.page,pageSize:x.pageSize,status:x.status}),D=I?.paging?.total||0;return m[x.status]=D,{total:D,list:I?.list||[]}});Xn(async()=>{const I=await r({page:1,pageSize:1,status:"expired"});m.expired=I?.paging?.total||0;const D=await r({page:1,pageSize:1,status:"offline"});m.offline=D?.paging?.total||0});const d=lo(u,{refreshDeps:[x.status,x.page,x.pageSize]}),v=He(()=>d.data?.list||[],[d.data?.list]),g=He(()=>{const I=x.status;return I==="online"?m[I]<=1:m[I]===0},[v,p]),f=He(()=>Yr({},i?pn:{}),[i]),h=We(({visitorId:I})=>{S.open({title:l("logoutThisSession"),content:l("logoutThisSessionConfirm"),confirmButtonText:l("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:l("cancel"),onConfirm:async()=>{await Zr.user.logout({visitorId:I,includeFederated:!0});const{page:D=0}=x,{list:B=[]}=d.data||{},W=B.length||0;D>1&&W===1&&(x.page=Math.max(D-1,1)),d.refresh(),S.close()}})}),w=We(()=>{S.open({title:l("logoutAllSession",{type:l(x.status)}),content:l("logoutAllSessionConfirm",{type:l(x.status)}),confirmButtonText:l("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:l("cancel"),onConfirm:async()=>{await Zr.user.logout({status:x.status,visitorId:p,includeFederated:!0}),x.page=1,d.refresh(),S.close()}})}),T=[];c&&T.push(t.jsx($e,{title:l("logoutAllTips",{type:l(x.status)}),children:t.jsx(bt,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:w,disabled:g,children:l("logoutAll",{type:l(x.status)})})},"logoutAll"));const A=He(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600,page:x.page-1,rowsPerPage:x.pageSize,count:d.data?.total||0}),[d.data?.total,x.page,x.pageSize]),k=[{label:l("platform"),name:"platform",options:{customBodyRenderLite:I=>{const D=v[I],B=fn(D?.ua);return t.jsx(ae,{sx:f,children:[B.os?.name,B.os?.version].filter(Boolean).join("/")||l("unknown")})}}},{label:l("deviceType"),name:"deviceType",options:{customBodyRenderLite:I=>{const D=v[I],B=fn(D?.ua);return t.jsx(ae,{sx:f,children:[B.browser?.name,B.browser?.version].filter(Boolean).join("/")||l("unknown")})}}},{label:l("walletOS"),name:"walletOS",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:D.extra?.walletOS||l("unknown")})}}},o&&{label:l("user"),name:"user",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:Yr({minWidth:150,maxWidth:250},i?pn:{}),children:t.jsx(ia,{sessionUser:D.user,user:e})})}}},{label:l("createdAt"),name:"createdAt",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:D.createdAt?t.jsx(yt,{value:D.createdAt,relativeRange:3*86400*1e3,locale:s}):l("unknown")})}}},!y&&{label:l("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:D.status==="expired"?l("expired"):t.jsx(yt,{value:D.updatedAt,relativeRange:3*86400*1e3,locale:s})})}}},{label:l("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ua,{userSession:D,isMobile:i})}}},c&&{label:l("actions"),name:"actions",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:t.jsx(bt,{sx:{whiteSpace:"nowrap",fontSize:"12px !important",lineHeight:"1.25",px:1},disabled:p===D.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>h({visitorId:D.visitorId}),children:D.status==="expired"?l("remove"):p===D.visitorId?l("currentSession"):l("logout")})})}}}].filter(Boolean);return t.jsxs(ae,{className:"pc-user-sessions",sx:{maxWidth:i?"unset":n?"calc(100vw - 300px)":"100%",...i&&{".pc-user-sessions-table > div:nth-child(2)":{border:"1px solid",borderColor:"divider",borderRadius:1}},".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableRow-root":{border:"unset","&:nth-child(even)":{backgroundColor:"grey.50","&:hover":{backgroundColor:I=>`${I.palette.grey[50]} !important`}}},".MuiTableRow-hover":{"&:hover":{backgroundColor:"inherit !important"}},".MuiTableCell-root":{paddingRight:"8px",paddingLeft:"8px",color:"text.secondary",...i&&{padding:"8px !important","&:first-child":{paddingTop:"20px!important"},"&:last-child":{paddingBottom:"20px!important"}}}},children:[a,t.jsx(Br,{count:d.data?.total||0,locale:s,data:v,columns:k,customButtons:T,options:A,loading:d.loading,className:"pc-user-sessions-table",title:t.jsxs(os,{row:!0,sx:{lineHeight:1,ml:1},onChange:I=>{x.status=I.target.value},children:[t.jsx(Dt,{value:"online",control:t.jsx($t,{size:"small",sx:{lineHeight:1,fontSize:0},checked:x.status==="online"}),label:t.jsxs(we,{sx:{display:"flex",alignItems:"center"},children:[l("online"),t.jsxs(we,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",m.online,")"]})]})}),t.jsx(Dt,{value:"expired",control:t.jsx($t,{size:"small",sx:{lineHeight:1,fontSize:0},checked:x.status==="expired"}),label:t.jsxs(we,{sx:{display:"flex",alignItems:"center"},children:[l("expired"),t.jsxs(we,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",m.expired,")"]})]})}),y?t.jsx(Dt,{value:"offline",control:t.jsx($t,{size:"small",sx:{lineHeight:1,fontSize:0},checked:x.status==="offline"}),label:t.jsxs(we,{sx:{display:"flex",alignItems:"center"},children:[l("offline"),t.jsxs(we,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",m.offline,")"]})]})}):null]}),onChange:I=>{x.page=I.page+1,x.pageSize=I.rowsPerPage}})]})}var Qt={exports:{}},Xt={},mn;function Di(){if(mn)return Xt;mn=1;function e(f){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(f)}function c(f,h,w){return Object.defineProperty(f,"prototype",{writable:!1}),f}function o(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function r(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),h&&y(f,h)}function y(f,h){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,A){return T.__proto__=A,T},y(f,h)}function x(f){var h=s();return function(){var T=i(f),A;if(h){var k=i(this).constructor;A=Reflect.construct(T,arguments,k)}else A=T.apply(this,arguments);return m(this,A)}}function m(f,h){if(h&&(e(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(f)}function p(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function s(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function i(f){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},i(f)}var n={},S,a;function l(f,h,w){w||(w=Error);function T(k,I,D){return typeof h=="string"?h:h(k,I,D)}var A=function(k){r(D,k);var I=x(D);function D(B,W,G){var te;return o(this,D),te=I.call(this,T(B,W,G)),te.code=f,te}return c(D)}(w);n[f]=A}function u(f,h){if(Array.isArray(f)){var w=f.length;return f=f.map(function(T){return String(T)}),w>2?"one of ".concat(h," ").concat(f.slice(0,w-1).join(", "),", or ")+f[w-1]:w===2?"one of ".concat(h," ").concat(f[0]," or ").concat(f[1]):"of ".concat(h," ").concat(f[0])}else return"of ".concat(h," ").concat(String(f))}function d(f,h,w){return f.substr(0,h.length)===h}function v(f,h,w){return(w===void 0||w>f.length)&&(w=f.length),f.substring(w-h.length,w)===h}function g(f,h,w){return typeof w!="number"&&(w=0),w+h.length>f.length?!1:f.indexOf(h,w)!==-1}return l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",function(f,h,w){S===void 0&&(S=kr()),S(typeof f=="string","'name' must be a string");var T;typeof h=="string"&&d(h,"not ")?(T="must not be",h=h.replace(/^not /,"")):T="must be";var A;if(v(f," argument"))A="The ".concat(f," ").concat(T," ").concat(u(h,"type"));else{var k=g(f,".")?"property":"argument";A='The "'.concat(f,'" ').concat(k," ").concat(T," ").concat(u(h,"type"))}return A+=". Received type ".concat(e(w)),A},TypeError),l("ERR_INVALID_ARG_VALUE",function(f,h){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";a===void 0&&(a=vt());var T=a.inspect(h);return T.length>128&&(T="".concat(T.slice(0,128),"...")),"The argument '".concat(f,"' ").concat(w,". Received ").concat(T)},TypeError),l("ERR_INVALID_RETURN_VALUE",function(f,h,w){var T;return w&&w.constructor&&w.constructor.name?T="instance of ".concat(w.constructor.name):T="type ".concat(e(w)),"Expected ".concat(f,' to be returned from the "').concat(h,'"')+" function but got ".concat(T,".")},TypeError),l("ERR_MISSING_ARGS",function(){for(var f=arguments.length,h=new Array(f),w=0;w<f;w++)h[w]=arguments[w];S===void 0&&(S=kr()),S(h.length>0,"At least one arg needs to be specified");var T="The ",A=h.length;switch(h=h.map(function(k){return'"'.concat(k,'"')}),A){case 1:T+="".concat(h[0]," argument");break;case 2:T+="".concat(h[0]," and ").concat(h[1]," arguments");break;default:T+=h.slice(0,A-1).join(", "),T+=", and ".concat(h[A-1]," arguments");break}return"".concat(T," must be specified")},TypeError),Xt.codes=n,Xt}var Jt,hn;function fa(){if(hn)return Jt;hn=1;function e(M,q){var H=Object.keys(M);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(M);q&&(z=z.filter(function(Y){return Object.getOwnPropertyDescriptor(M,Y).enumerable})),H.push.apply(H,z)}return H}function c(M){for(var q=1;q<arguments.length;q++){var H=arguments[q]!=null?arguments[q]:{};q%2?e(Object(H),!0).forEach(function(z){o(M,z,H[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(H)):e(Object(H)).forEach(function(z){Object.defineProperty(M,z,Object.getOwnPropertyDescriptor(H,z))})}return M}function o(M,q,H){return q=m(q),q in M?Object.defineProperty(M,q,{value:H,enumerable:!0,configurable:!0,writable:!0}):M[q]=H,M}function r(M,q){if(!(M instanceof q))throw new TypeError("Cannot call a class as a function")}function y(M,q){for(var H=0;H<q.length;H++){var z=q[H];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(M,m(z.key),z)}}function x(M,q,H){return q&&y(M.prototype,q),Object.defineProperty(M,"prototype",{writable:!1}),M}function m(M){var q=p(M,"string");return f(q)==="symbol"?q:String(q)}function p(M,q){if(f(M)!=="object"||M===null)return M;var H=M[Symbol.toPrimitive];if(H!==void 0){var z=H.call(M,q);if(f(z)!=="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}function s(M,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(q&&q.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),q&&v(M,q)}function i(M){var q=u();return function(){var z=g(M),Y;if(q){var R=g(this).constructor;Y=Reflect.construct(z,arguments,R)}else Y=z.apply(this,arguments);return n(this,Y)}}function n(M,q){if(q&&(f(q)==="object"||typeof q=="function"))return q;if(q!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function a(M){var q=typeof Map=="function"?new Map:void 0;return a=function(z){if(z===null||!d(z))return z;if(typeof z!="function")throw new TypeError("Super expression must either be null or a function");if(typeof q<"u"){if(q.has(z))return q.get(z);q.set(z,Y)}function Y(){return l(z,arguments,g(this).constructor)}return Y.prototype=Object.create(z.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),v(Y,z)},a(M)}function l(M,q,H){return u()?l=Reflect.construct.bind():l=function(Y,R,E){var P=[null];P.push.apply(P,R);var U=Function.bind.apply(Y,P),F=new U;return E&&v(F,E.prototype),F},l.apply(null,arguments)}function u(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function d(M){return Function.toString.call(M).indexOf("[native code]")!==-1}function v(M,q){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,Y){return z.__proto__=Y,z},v(M,q)}function g(M){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},g(M)}function f(M){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},f(M)}var h=vt(),w=h.inspect,T=Di(),A=T.codes.ERR_INVALID_ARG_TYPE;function k(M,q,H){return(H===void 0||H>M.length)&&(H=M.length),M.substring(H-q.length,H)===q}function I(M,q){if(q=Math.floor(q),M.length==0||q==0)return"";var H=M.length*q;for(q=Math.floor(Math.log(q)/Math.log(2));q;)M+=M,q--;return M+=M.substring(0,H-M.length),M}var D="",B="",W="",G="",te={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},pe=10;function ne(M){var q=Object.keys(M),H=Object.create(Object.getPrototypeOf(M));return q.forEach(function(z){H[z]=M[z]}),Object.defineProperty(H,"message",{value:M.message}),H}function re(M){return w(M,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function fe(M,q,H){var z="",Y="",R=0,E="",P=!1,U=re(M),F=U.split(`
1
+ import{aG as Yn,j as t,r as N,fF as no,fG as io,cr as We,bd as Gn,by as He,N as ae,at as Zn,az as $e,T as we,eK as oo,aP as ot,fH as so,m as Ee,F as Qn,fI as Lr,fJ as ao,cU as Xn,cq as lo,bk as Yr,dE as bt,P as yt,aU as Dt,fK as co,C as Qe,fL as vt,ev as Ae,fM as Jn,fN as uo,fO as fo,fP as po,fQ as mo,fR as ho,fS as ei,fT as go,fU as _r,fV as bo,fW as yo,fX as vo,fY as wo,ew as qr,fZ as ti,ex as xo,cE as Er,ey as Co,dA as So,f_ as To,bW as at,bX as lt,cf as ri,dK as Oe,eW as ce,bZ as Eo,b8 as Se,da as Rt,d4 as ni,b_ as qe,b$ as et,U as Xe,av as kt,dG as ii,d7 as jo,f$ as qt,bg as oi,g0 as si,o as b,bf as De,Q as wt,bi as Po,t as st,g1 as Do,bn as Re,R as jr,S as Pr,dC as Ro,g2 as At,g3 as ko,H as Ue,au as xt,$ as Ge,D as Ur,X as rt,v as Te,Y as ze,g4 as Ao,i as Dr,aW as Oo,w as Io,x as No,s as je,f1 as Mo,g as Ct,ad as St,bz as Je,g5 as Lo,dB as _o,di as qo,f as Uo,n as Tt,E as Ye,dt as Fo,g6 as Bo,ez as Vo,g7 as ai,g8 as Ot,g9 as $o,dD as Gr,b as Ze,W as Fr,dF as zo,bq as li,br as Ko,bs as ci,aE as Wo,fE as ui,ga as di,aS as Ho,aF as Yo,a9 as Go,y as Zo,gb as Qo,a4 as Xo,bB as Jo,V as es,O as ts}from"./index-C4mOfCm_.js";import{A as It}from"./Add-3_OvaFrP.js";import{V as rs}from"./ViewList-Duo-FkyC.js";import{H as Br,g as ns}from"./index-EO2zxFAb.js";import{u as is}from"./use-mobile-Cebu3wjw.js";import{e as Zr}from"./client-DdpjvpuA.js";import{R as os,a as $t,W as fi,D as ss}from"./url-evaluation-CNPtf5Sl.js";import{u as Ie}from"./team-D7M0Ye34.js";import{u as pi}from"./blocklet-DmmVfj87.js";import{P as Ve}from"./permission-CAwWHgKo.js";import{C as Ut}from"./click-to-copy-C9lDYNLy.js";import{s as Ke,g as as,S as ls,u as Fe,a as mi,b as Et,c as hi,d as Ft,e as gi,f as Vr,P as bi,D as yi,h as Nt,M as mt,i as vi,j as Qr,k as gt,v as cs,l as us,m as Xr,n as ds,o as fs,p as ps,q as ms,C as hs,r as gs,t as Mt,w as nt,x as Lt,y as Jr,z as en,A as bs,T as ys,B as $r,E as vs,F as ws,G as xs,H as Cs,I as Ss,J as Ts,K as Es,L as jt,N as it,O as wi,Q as js,V as Rr,R as xi,U as Ps,W as tn,X as Ds,Y as Rs,Z as ks,_ as As,$ as Os,a0 as Is}from"./AdapterDayjs-BFw8WrXl.js";import{u as Ne}from"./useThemeProps-d3GR3gue.js";import{a as rn,b as Ns,t as Ms,T as Ls}from"./index-DkZ-t39O.js";import{v as Pe}from"./index-Aeyu2TZE.js";import{V as _s}from"./Verified-CsK6wp5l.js";import{D as qs}from"./DeleteOutline-qcbzQjhi.js";import{E as nn}from"./ErrorOutline-DAMAJ1cH.js";import{y as Ci}from"./index-BeHzPQZj.js";import{S as Us}from"./Search-DhxCIV3r.js";import{N as Fs}from"./index-DiXzeHiX.js";import{b as Bs}from"./sdk-Bvs7QtVW.js";import{A as Vs}from"./actions-qwmjFYBC.js";import{S as $s}from"./shorten-label-BB7eBTVn.js";const zs=Yn(t.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),Ks=Yn(t.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Si=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})),Ti=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),N.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),N.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Ei=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),N.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),Ws=e=>N.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("g",{clipPath:"url(#clip0)"},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})),N.createElement("defs",null,N.createElement("clipPath",{id:"clip0"},N.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),ji=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10C3.25 6.27208 6.27208 3.25 10 3.25C13.7279 3.25 16.75 6.27208 16.75 10C16.75 13.7279 13.7279 16.75 10 16.75C6.27208 16.75 3.25 13.7279 3.25 10ZM10 1.75C5.44365 1.75 1.75 5.44365 1.75 10C1.75 14.5564 5.44365 18.25 10 18.25C14.5563 18.25 18.25 14.5564 18.25 10C18.25 5.44365 14.5563 1.75 10 1.75ZM8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L11.9697 13.0303C12.2626 13.3232 12.7374 13.3232 13.0303 13.0303C13.3232 12.7374 13.3232 12.2626 13.0303 11.9697L8.03033 6.96967Z"}));var zt={},Kt,on;function Hs(){return on||(on=1,Kt=e=>encodeURIComponent(e).replace(/[!'()*]/g,c=>`%${c.charCodeAt(0).toString(16).toUpperCase()}`)),Kt}var Wt,sn;function Ys(){if(sn)return Wt;sn=1;var e="%[a-f0-9]{2}",c=new RegExp("("+e+")|([^%]+?)","gi"),o=new RegExp("("+e+")+","gi");function r(m,p){try{return[decodeURIComponent(m.join(""))]}catch{}if(m.length===1)return m;p=p||1;var s=m.slice(0,p),i=m.slice(p);return Array.prototype.concat.call([],r(s),r(i))}function y(m){try{return decodeURIComponent(m)}catch{for(var p=m.match(c)||[],s=1;s<p.length;s++)m=r(p,s).join(""),p=m.match(c)||[];return m}}function x(m){for(var p={"%FE%FF":"��","%FF%FE":"��"},s=o.exec(m);s;){try{p[s[0]]=decodeURIComponent(s[0])}catch{var i=y(s[0]);i!==s[0]&&(p[s[0]]=i)}s=o.exec(m)}p["%C2"]="�";for(var n=Object.keys(p),S=0;S<n.length;S++){var a=n[S];m=m.replace(new RegExp(a,"g"),p[a])}return m}return Wt=function(m){if(typeof m!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof m+"`");try{return m=m.replace(/\+/g," "),decodeURIComponent(m)}catch{return x(m)}},Wt}var Ht,an;function Gs(){return an||(an=1,Ht=(e,c)=>{if(!(typeof e=="string"&&typeof c=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(c==="")return[e];const o=e.indexOf(c);return o===-1?[e]:[e.slice(0,o),e.slice(o+c.length)]}),Ht}var Yt,ln;function Zs(){return ln||(ln=1,Yt=function(e,c){for(var o={},r=Object.keys(e),y=Array.isArray(c),x=0;x<r.length;x++){var m=r[x],p=e[m];(y?c.indexOf(m)!==-1:c(m,p,e))&&(o[m]=p)}return o}),Yt}var cn;function Qs(){return cn||(cn=1,function(e){const c=Hs(),o=Ys(),r=Gs(),y=Zs(),x=g=>g==null;function m(g){switch(g.arrayFormat){case"index":return f=>(h,w)=>{const T=h.length;return w===void 0||g.skipNull&&w===null||g.skipEmptyString&&w===""?h:w===null?[...h,[i(f,g),"[",T,"]"].join("")]:[...h,[i(f,g),"[",i(T,g),"]=",i(w,g)].join("")]};case"bracket":return f=>(h,w)=>w===void 0||g.skipNull&&w===null||g.skipEmptyString&&w===""?h:w===null?[...h,[i(f,g),"[]"].join("")]:[...h,[i(f,g),"[]=",i(w,g)].join("")];case"comma":case"separator":return f=>(h,w)=>w==null||w.length===0?h:h.length===0?[[i(f,g),"=",i(w,g)].join("")]:[[h,i(w,g)].join(g.arrayFormatSeparator)];default:return f=>(h,w)=>w===void 0||g.skipNull&&w===null||g.skipEmptyString&&w===""?h:w===null?[...h,i(f,g)]:[...h,[i(f,g),"=",i(w,g)].join("")]}}function p(g){let f;switch(g.arrayFormat){case"index":return(h,w,T)=>{if(f=/\[(\d*)\]$/.exec(h),h=h.replace(/\[\d*\]$/,""),!f){T[h]=w;return}T[h]===void 0&&(T[h]={}),T[h][f[1]]=w};case"bracket":return(h,w,T)=>{if(f=/(\[\])$/.exec(h),h=h.replace(/\[\]$/,""),!f){T[h]=w;return}if(T[h]===void 0){T[h]=[w];return}T[h]=[].concat(T[h],w)};case"comma":case"separator":return(h,w,T)=>{const A=typeof w=="string"&&w.includes(g.arrayFormatSeparator),k=typeof w=="string"&&!A&&n(w,g).includes(g.arrayFormatSeparator);w=k?n(w,g):w;const I=A||k?w.split(g.arrayFormatSeparator).map(D=>n(D,g)):w===null?w:n(w,g);T[h]=I};default:return(h,w,T)=>{if(T[h]===void 0){T[h]=w;return}T[h]=[].concat(T[h],w)}}}function s(g){if(typeof g!="string"||g.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function i(g,f){return f.encode?f.strict?c(g):encodeURIComponent(g):g}function n(g,f){return f.decode?o(g):g}function S(g){return Array.isArray(g)?g.sort():typeof g=="object"?S(Object.keys(g)).sort((f,h)=>Number(f)-Number(h)).map(f=>g[f]):g}function a(g){const f=g.indexOf("#");return f!==-1&&(g=g.slice(0,f)),g}function l(g){let f="";const h=g.indexOf("#");return h!==-1&&(f=g.slice(h)),f}function u(g){g=a(g);const f=g.indexOf("?");return f===-1?"":g.slice(f+1)}function d(g,f){return f.parseNumbers&&!Number.isNaN(Number(g))&&typeof g=="string"&&g.trim()!==""?g=Number(g):f.parseBooleans&&g!==null&&(g.toLowerCase()==="true"||g.toLowerCase()==="false")&&(g=g.toLowerCase()==="true"),g}function v(g,f){f=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},f),s(f.arrayFormatSeparator);const h=p(f),w=Object.create(null);if(typeof g!="string"||(g=g.trim().replace(/^[?#&]/,""),!g))return w;for(const T of g.split("&")){if(T==="")continue;let[A,k]=r(f.decode?T.replace(/\+/g," "):T,"=");k=k===void 0?null:["comma","separator"].includes(f.arrayFormat)?k:n(k,f),h(n(A,f),k,w)}for(const T of Object.keys(w)){const A=w[T];if(typeof A=="object"&&A!==null)for(const k of Object.keys(A))A[k]=d(A[k],f);else w[T]=d(A,f)}return f.sort===!1?w:(f.sort===!0?Object.keys(w).sort():Object.keys(w).sort(f.sort)).reduce((T,A)=>{const k=w[A];return k&&typeof k=="object"&&!Array.isArray(k)?T[A]=S(k):T[A]=k,T},Object.create(null))}e.extract=u,e.parse=v,e.stringify=(g,f)=>{if(!g)return"";f=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},f),s(f.arrayFormatSeparator);const h=k=>f.skipNull&&x(g[k])||f.skipEmptyString&&g[k]==="",w=m(f),T={};for(const k of Object.keys(g))h(k)||(T[k]=g[k]);const A=Object.keys(T);return f.sort!==!1&&A.sort(f.sort),A.map(k=>{const I=g[k];return I===void 0?"":I===null?i(k,f):Array.isArray(I)?I.reduce(w(k),[]).join("&"):i(k,f)+"="+i(I,f)}).filter(k=>k.length>0).join("&")},e.parseUrl=(g,f)=>{f=Object.assign({decode:!0},f);const[h,w]=r(g,"#");return Object.assign({url:h.split("?")[0]||"",query:v(u(g),f)},f&&f.parseFragmentIdentifier&&w?{fragmentIdentifier:n(w,f)}:{})},e.stringifyUrl=(g,f)=>{f=Object.assign({encode:!0,strict:!0},f);const h=a(g.url).split("?")[0]||"",w=e.extract(g.url),T=e.parse(w,{sort:!1}),A=Object.assign(T,g.query);let k=e.stringify(A,f);k&&(k=`?${k}`);let I=l(g.url);return g.fragmentIdentifier&&(I=`#${i(g.fragmentIdentifier,f)}`),`${h}${k}${I}`},e.pick=(g,f,h)=>{h=Object.assign({parseFragmentIdentifier:!0},h);const{url:w,query:T,fragmentIdentifier:A}=e.parseUrl(g,h);return e.stringifyUrl({url:w,query:y(T,f),fragmentIdentifier:A},h)},e.exclude=(g,f,h)=>{const w=Array.isArray(f)?T=>!f.includes(T):(T,A)=>!f(T,A);return e.pick(g,w,h)}}(zt)),zt}var Gt=Qs();const dt=no,Xs={parseNumbers:!1,parseBooleans:!1},Js={skipNull:!1,skipEmptyString:!1},ea=(e,c)=>{var o,r;const{navigateMode:y="push",parseOptions:x,stringifyOptions:m}={},p=Object.assign(Object.assign({},Xs),x),s=Object.assign(Object.assign({},Js),m),i=dt.useLocation(),n=(o=dt.useHistory)===null||o===void 0?void 0:o.call(dt),S=(r=dt.useNavigate)===null||r===void 0?void 0:r.call(dt),a=io(),l=N.useRef(typeof e=="function"?e():e||{}),u=N.useMemo(()=>Gt.parse(i.search,p),[i.search]),d=N.useMemo(()=>Object.assign(Object.assign({},l.current),u),[u]);return[d,We(g=>{const f=typeof g=="function"?g(d):g;a(),n&&n[y]({hash:i.hash,search:Gt.stringify(Object.assign(Object.assign({},u),f),s)||"?"},i.state),S&&S({hash:i.hash,search:Gt.stringify(Object.assign(Object.assign({},u),f),s)||"?"},{replace:y==="replace",state:i.state})})]};var ht={exports:{}},ta=ht.exports,un;function ra(){return un||(un=1,function(e,c){(function(o,r){var y="1.0.40",x="",m="?",p="function",s="undefined",i="object",n="string",S="major",a="model",l="name",u="type",d="vendor",v="version",g="architecture",f="console",h="mobile",w="tablet",T="smarttv",A="wearable",k="embedded",I=500,D="Amazon",B="Apple",W="ASUS",G="BlackBerry",te="Browser",pe="Chrome",ne="Edge",re="Firefox",fe="Google",ye="Huawei",M="LG",q="Microsoft",H="Motorola",z="Opera",Y="Samsung",R="Sharp",E="Sony",P="Xiaomi",U="Zebra",F="Facebook",$="Chromium OS",Q="Mac OS",le=" Browser",de=function(O,_){var L={};for(var Z in O)_[Z]&&_[Z].length%2===0?L[Z]=_[Z].concat(O[Z]):L[Z]=O[Z];return L},me=function(O){for(var _={},L=0;L<O.length;L++)_[O[L].toUpperCase()]=O[L];return _},he=function(O,_){return typeof O===n?ve(_).indexOf(ve(O))!==-1:!1},ve=function(O){return O.toLowerCase()},Ce=function(O){return typeof O===n?O.replace(/[^\d\.]/g,x).split(".")[0]:r},xe=function(O,_){if(typeof O===n)return O=O.replace(/^\s\s*/,x),typeof _===s?O:O.substring(0,I)},be=function(O,_){for(var L=0,Z,ie,ue,ee,J,ge;L<_.length&&!J;){var Me=_[L],Le=_[L+1];for(Z=ie=0;Z<Me.length&&!J&&Me[Z];)if(J=Me[Z++].exec(O),J)for(ue=0;ue<Le.length;ue++)ge=J[++ie],ee=Le[ue],typeof ee===i&&ee.length>0?ee.length===2?typeof ee[1]==p?this[ee[0]]=ee[1].call(this,ge):this[ee[0]]=ee[1]:ee.length===3?typeof ee[1]===p&&!(ee[1].exec&&ee[1].test)?this[ee[0]]=ge?ee[1].call(this,ge,ee[2]):r:this[ee[0]]=ge?ge.replace(ee[1],ee[2]):r:ee.length===4&&(this[ee[0]]=ge?ee[3].call(this,ge.replace(ee[1],ee[2])):r):this[ee]=ge||r;L+=2}},se=function(O,_){for(var L in _)if(typeof _[L]===i&&_[L].length>0){for(var Z=0;Z<_[L].length;Z++)if(he(_[L][Z],O))return L===m?r:L}else if(he(_[L],O))return L===m?r:L;return _.hasOwnProperty("*")?_["*"]:O},oe={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},V={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,v],[/opios[\/ ]+([\w\.]+)/i],[v,[l,z+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[v,[l,z+" GX"]],[/\bopr\/([\w\.]+)/i],[v,[l,z]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[v,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,v],[/quark(?:pc)?\/([-\w\.]+)/i],[v,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[v,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[l,"UC"+te]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[l,"Smart Lenovo "+te]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+te],v],[/\bfocus\/([\w\.]+)/i],[v,[l,re+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[l,z+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[l,z+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[l,"MIUI"+le]],[/fxios\/([\w\.-]+)/i],[v,[l,re]],[/\bqihoobrowser\/?([\w\.]*)/i],[v,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],v],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+le],v],[/samsungbrowser\/([\w\.]+)/i],[v,[l,Y+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[v,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,v],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[v,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,F],v],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[l,pe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,pe+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[l,"Android "+te]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[v,se,oe]],[/(webkit|khtml)\/([\w\.]+)/i],[l,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],v],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[l,re+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[l,[v,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,ve]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,x,ve]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,ve]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[a,[d,Y],[u,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[a,[d,Y],[u,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[a,[d,B],[u,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[d,B],[u,w]],[/(macintosh);/i],[a,[d,B]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[d,R],[u,h]],[/(?:honor)([-\w ]+)[;\)]/i],[a,[d,"Honor"],[u,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[d,ye],[u,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[d,ye],[u,h]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[a,/_/g," "],[d,P],[u,h]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/g," "],[d,P],[u,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[a,[d,"OPPO"],[u,h]],[/\b(opd2\d{3}a?) bui/i],[a,[d,"OPPO"],[u,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[d,"Vivo"],[u,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[a,[d,"Realme"],[u,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[a,[d,H],[u,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[d,H],[u,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[d,M],[u,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[d,M],[u,h]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[d,"Lenovo"],[u,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[d,"Nokia"],[u,h]],[/(pixel c)\b/i],[a,[d,fe],[u,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[d,fe],[u,h]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[d,E],[u,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[d,E],[u,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[d,"OnePlus"],[u,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[d,D],[u,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[d,D],[u,h]],[/(playbook);[-\w\),; ]+(rim)/i],[a,d,[u,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[d,G],[u,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[d,W],[u,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[d,W],[u,h]],[/(nexus 9)/i],[a,[d,"HTC"],[u,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[a,/_/g," "],[u,h]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[a,[d,"TCL"],[u,w]],[/(itel) ((\w+))/i],[[d,ve],a,[u,se,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[d,"Acer"],[u,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[d,"Meizu"],[u,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[a,[d,"Ulefone"],[u,h]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[a,[d,"Energizer"],[u,h]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[a,[d,"Cat"],[u,h]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[a,[d,"Smartfren"],[u,h]],[/droid.+; (a(?:015|06[35]|142p?))/i],[a,[d,"Nothing"],[u,h]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,a,[u,h]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,a,[u,w]],[/(surface duo)/i],[a,[d,q],[u,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[d,"Fairphone"],[u,h]],[/(u304aa)/i],[a,[d,"AT&T"],[u,h]],[/\bsie-(\w*)/i],[a,[d,"Siemens"],[u,h]],[/\b(rct\w+) b/i],[a,[d,"RCA"],[u,w]],[/\b(venue[\d ]{2,7}) b/i],[a,[d,"Dell"],[u,w]],[/\b(q(?:mv|ta)\w+) b/i],[a,[d,"Verizon"],[u,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[d,"Barnes & Noble"],[u,w]],[/\b(tm\d{3}\w+) b/i],[a,[d,"NuVision"],[u,w]],[/\b(k88) b/i],[a,[d,"ZTE"],[u,w]],[/\b(nx\d{3}j) b/i],[a,[d,"ZTE"],[u,h]],[/\b(gen\d{3}) b.+49h/i],[a,[d,"Swiss"],[u,h]],[/\b(zur\d{3}) b/i],[a,[d,"Swiss"],[u,w]],[/\b((zeki)?tb.*\b) b/i],[a,[d,"Zeki"],[u,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],a,[u,w]],[/\b(ns-?\w{0,9}) b/i],[a,[d,"Insignia"],[u,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[d,"NextBook"],[u,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],a,[u,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],a,[u,h]],[/\b(ph-1) /i],[a,[d,"Essential"],[u,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[d,"Envizen"],[u,w]],[/\b(trio[-\w\. ]+) b/i],[a,[d,"MachSpeed"],[u,w]],[/\btu_(1491) b/i],[a,[d,"Rotor"],[u,w]],[/(shield[\w ]+) b/i],[a,[d,"Nvidia"],[u,w]],[/(sprint) (\w+)/i],[d,a,[u,h]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[d,q],[u,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[d,U],[u,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[d,U],[u,h]],[/smart-tv.+(samsung)/i],[d,[u,T]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[d,Y],[u,T]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,M],[u,T]],[/(apple) ?tv/i],[d,[a,B+" TV"],[u,T]],[/crkey/i],[[a,pe+"cast"],[d,fe],[u,T]],[/droid.+aft(\w+)( bui|\))/i],[a,[d,D],[u,T]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[d,R],[u,T]],[/(bravia[\w ]+)( bui|\))/i],[a,[d,E],[u,T]],[/(mitv-\w{5}) bui/i],[a,[d,P],[u,T]],[/Hbbtv.*(technisat) (.*);/i],[d,a,[u,T]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,xe],[a,xe],[u,T]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,a,[u,f]],[/droid.+; (shield) bui/i],[a,[d,"Nvidia"],[u,f]],[/(playstation [345portablevi]+)/i],[a,[d,E],[u,f]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[d,q],[u,f]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[a,[d,Y],[u,A]],[/((pebble))app/i],[d,a,[u,A]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[a,[d,B],[u,A]],[/droid.+; (glass) \d/i],[a,[d,fe],[u,A]],[/droid.+; (wt63?0{2,3})\)/i],[a,[d,U],[u,A]],[/droid.+; (glass) \d/i],[a,[d,fe],[u,A]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,a,[u,A]],[/; (quest( \d| pro)?)/i],[a,[d,F],[u,A]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[u,k]],[/(aeobc)\b/i],[a,[d,D],[u,k]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[a,[u,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[u,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,h]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[l,ne+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[l,v],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[v,se,X]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,se,X],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,Q],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,v],[/\(bb(10);/i],[v,[l,G]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[l,re+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[l,pe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,$],v],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,v],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,v]]},K=function(O,_){if(typeof O===i&&(_=O,O=r),!(this instanceof K))return new K(O,_).getResult();var L=typeof o!==s&&o.navigator?o.navigator:r,Z=O||(L&&L.userAgent?L.userAgent:x),ie=L&&L.userAgentData?L.userAgentData:r,ue=_?de(V,_):V,ee=L&&L.userAgent==Z;return this.getBrowser=function(){var J={};return J[l]=r,J[v]=r,be.call(J,Z,ue.browser),J[S]=Ce(J[v]),ee&&L&&L.brave&&typeof L.brave.isBrave==p&&(J[l]="Brave"),J},this.getCPU=function(){var J={};return J[g]=r,be.call(J,Z,ue.cpu),J},this.getDevice=function(){var J={};return J[d]=r,J[a]=r,J[u]=r,be.call(J,Z,ue.device),ee&&!J[u]&&ie&&ie.mobile&&(J[u]=h),ee&&J[a]=="Macintosh"&&L&&typeof L.standalone!==s&&L.maxTouchPoints&&L.maxTouchPoints>2&&(J[a]="iPad",J[u]=w),J},this.getEngine=function(){var J={};return J[l]=r,J[v]=r,be.call(J,Z,ue.engine),J},this.getOS=function(){var J={};return J[l]=r,J[v]=r,be.call(J,Z,ue.os),ee&&!J[l]&&ie&&ie.platform&&ie.platform!="Unknown"&&(J[l]=ie.platform.replace(/chrome os/i,$).replace(/macos/i,Q)),J},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Z},this.setUA=function(J){return Z=typeof J===n&&J.length>I?xe(J,I):J,this},this.setUA(Z),this};K.VERSION=y,K.BROWSER=me([l,v,S]),K.CPU=me([g]),K.DEVICE=me([a,d,u,f,h,T,w,A,k]),K.ENGINE=K.OS=me([l,v]),e.exports&&(c=e.exports=K),c.UAParser=K;var C=typeof o!==s&&(o.jQuery||o.Zepto);if(C&&!C.ua){var j=new K;C.ua=j.getResult(),C.ua.get=function(){return j.getUA()},C.ua.set=function(O){j.setUA(O);var _=j.getResult();for(var L in _)C.ua[L]=_[L]}}})(typeof window=="object"?window:ta)}(ht,ht.exports)),ht.exports}var na=ra();const Zt=Gn(na);function ia({user:e,sessionUser:c}){const o=He(()=>(e?.passports||[])?.find(r=>r.name===c.role),[e?.passports,c?.role]);return t.jsxs(ae,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(Zn,{size:40,variant:"circle",shape:"circle",src:c.avatar,did:c.did,sx:{flexShrink:0}}),t.jsxs(ae,{sx:{flex:1,overflow:"hidden"},children:[t.jsxs(ae,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx($e,{title:c.fullName,children:t.jsx(we,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:c.fullName})}),t.jsx(oo,{label:o?.title||o?.name||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:"text.primary",borderColor:"grey.300",backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),t.jsx($e,{title:c.email,children:t.jsx(we,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:c.email})})]})]})}const oa={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有{type}会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有{type}会话",logoutAllSessionConfirm:"确定要注销所有{type}会话吗?",online:"活跃"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all {type} sessions",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all {type} sessions",logoutAllSessionConfirm:"Are you sure to logout all {type} sessions?",online:"Active"}},Pi="Reserved IP",dn="ip-region-cache";async function sa(e){const c=`https://ipapi.co/${e}/json/`,o=await(await fetch(c)).json();let r="";return o.error?o.reserved&&(r=Pi):r=[o.country_name,o.region,o.city].filter(Boolean).join("/"),r}async function aa(e){const c=`https://api.ip.sb/geoip/${e}`,o=await(await fetch(c)).json();let r="";return o.error?o.reserved&&(r=Pi):r=[o.country,o.region,o.city].filter(Boolean).join("/"),r}async function la(e){let c="",o={};try{const r=localStorage.getItem(dn);r&&(o=JSON.parse(r))}catch{o={}}if(o[e])c=o[e];else{try{c=await aa(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!c)try{c=await sa(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(c){const r=Object.keys(o);r.length>100&&delete o[r[0]],o[e]&&delete o[e],o[e]=c,localStorage.setItem(dn,JSON.stringify(o))}return c}const fn=e=>new Zt(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Zt.BROWSER.NAME,Zt.BROWSER.VERSION]]}).getResult(),pn={display:"flex",justifyContent:"flex-end",textAlign:"right"},ca=new co({concurrency:1}),ua=N.memo(({userSession:e,isMobile:c=!1})=>{const o=ot({loading:!0,ipRegion:""}),{t:r}=Ee();return N.useEffect(()=>{ca.add(async()=>{try{o.ipRegion=await la(e.lastLoginIp)}finally{o.loading=!1}})},[o,e.lastLoginIp]),t.jsx(ae,{...c&&{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:1,flexWrap:"wrap"},children:o.ipRegion?t.jsxs(t.Fragment,{children:[t.jsx(we,{variant:"body2",children:o.ipRegion}),t.jsx(we,{variant:"body2",color:"grey",children:e.lastLoginIp||r("unknown")})]}):t.jsxs(t.Fragment,{children:[t.jsx(we,{children:e.lastLoginIp||r("unknown")}),o.loading?t.jsx(we,{variant:"body2",color:"grey",sx:{textAlign:"center"},children:t.jsx(Qe,{size:12,color:"inherit"})}):null]})})});function da({user:e,showAction:c=!0,showUser:o=!0,getUserSessions:r,showOffline:y=!1}){const x=ot({status:"online",page:1,pageSize:10}),m=ot({online:0,expired:0,offline:0}),p=so(),{locale:s}=Ee(),i=is({key:"md"}),n=Qn(I=>I.breakpoints.down("lg")),{confirmApi:S,confirmHolder:a}=Lr(),l=We((I,D={})=>ao(oa,I,s,"en",D)),u=We(async()=>{const I=await r({page:x.page,pageSize:x.pageSize,status:x.status}),D=I?.paging?.total||0;return m[x.status]=D,{total:D,list:I?.list||[]}});Xn(async()=>{const I=await r({page:1,pageSize:1,status:"expired"});m.expired=I?.paging?.total||0;const D=await r({page:1,pageSize:1,status:"offline"});m.offline=D?.paging?.total||0});const d=lo(u,{refreshDeps:[x.status,x.page,x.pageSize]}),v=He(()=>d.data?.list||[],[d.data?.list]),g=He(()=>{const I=x.status;return I==="online"?m[I]<=1:m[I]===0},[v,p]),f=He(()=>Yr({},i?pn:{}),[i]),h=We(({visitorId:I})=>{S.open({title:l("logoutThisSession"),content:l("logoutThisSessionConfirm"),confirmButtonText:l("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:l("cancel"),onConfirm:async()=>{await Zr.user.logout({visitorId:I,includeFederated:!0});const{page:D=0}=x,{list:B=[]}=d.data||{},W=B.length||0;D>1&&W===1&&(x.page=Math.max(D-1,1)),d.refresh(),S.close()}})}),w=We(()=>{S.open({title:l("logoutAllSession",{type:l(x.status)}),content:l("logoutAllSessionConfirm",{type:l(x.status)}),confirmButtonText:l("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:l("cancel"),onConfirm:async()=>{await Zr.user.logout({status:x.status,visitorId:p,includeFederated:!0}),x.page=1,d.refresh(),S.close()}})}),T=[];c&&T.push(t.jsx($e,{title:l("logoutAllTips",{type:l(x.status)}),children:t.jsx(bt,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:w,disabled:g,children:l("logoutAll",{type:l(x.status)})})},"logoutAll"));const A=He(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600,page:x.page-1,rowsPerPage:x.pageSize,count:d.data?.total||0}),[d.data?.total,x.page,x.pageSize]),k=[{label:l("platform"),name:"platform",options:{customBodyRenderLite:I=>{const D=v[I],B=fn(D?.ua);return t.jsx(ae,{sx:f,children:[B.os?.name,B.os?.version].filter(Boolean).join("/")||l("unknown")})}}},{label:l("deviceType"),name:"deviceType",options:{customBodyRenderLite:I=>{const D=v[I],B=fn(D?.ua);return t.jsx(ae,{sx:f,children:[B.browser?.name,B.browser?.version].filter(Boolean).join("/")||l("unknown")})}}},{label:l("walletOS"),name:"walletOS",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:D.extra?.walletOS||l("unknown")})}}},o&&{label:l("user"),name:"user",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:Yr({minWidth:150,maxWidth:250},i?pn:{}),children:t.jsx(ia,{sessionUser:D.user,user:e})})}}},{label:l("createdAt"),name:"createdAt",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:D.createdAt?t.jsx(yt,{value:D.createdAt,relativeRange:3*86400*1e3,locale:s}):l("unknown")})}}},!y&&{label:l("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:D.status==="expired"?l("expired"):t.jsx(yt,{value:D.updatedAt,relativeRange:3*86400*1e3,locale:s})})}}},{label:l("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ua,{userSession:D,isMobile:i})}}},c&&{label:l("actions"),name:"actions",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:t.jsx(bt,{sx:{whiteSpace:"nowrap",fontSize:"12px !important",lineHeight:"1.25",px:1},disabled:p===D.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>h({visitorId:D.visitorId}),children:D.status==="expired"?l("remove"):p===D.visitorId?l("currentSession"):l("logout")})})}}}].filter(Boolean);return t.jsxs(ae,{className:"pc-user-sessions",sx:{maxWidth:i?"unset":n?"calc(100vw - 300px)":"100%",...i&&{".pc-user-sessions-table > div:nth-child(2)":{border:"1px solid",borderColor:"divider",borderRadius:1}},".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableRow-root":{border:"unset","&:nth-child(even)":{backgroundColor:"grey.50","&:hover":{backgroundColor:I=>`${I.palette.grey[50]} !important`}}},".MuiTableRow-hover":{"&:hover":{backgroundColor:"inherit !important"}},".MuiTableCell-root":{paddingRight:"8px",paddingLeft:"8px",color:"text.secondary",...i&&{padding:"8px !important","&:first-child":{paddingTop:"20px!important"},"&:last-child":{paddingBottom:"20px!important"}}}},children:[a,t.jsx(Br,{count:d.data?.total||0,locale:s,data:v,columns:k,customButtons:T,options:A,loading:d.loading,className:"pc-user-sessions-table",title:t.jsxs(os,{row:!0,sx:{lineHeight:1,ml:1},onChange:I=>{x.status=I.target.value},children:[t.jsx(Dt,{value:"online",control:t.jsx($t,{size:"small",sx:{lineHeight:1,fontSize:0},checked:x.status==="online"}),label:t.jsxs(we,{sx:{display:"flex",alignItems:"center"},children:[l("online"),t.jsxs(we,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",m.online,")"]})]})}),t.jsx(Dt,{value:"expired",control:t.jsx($t,{size:"small",sx:{lineHeight:1,fontSize:0},checked:x.status==="expired"}),label:t.jsxs(we,{sx:{display:"flex",alignItems:"center"},children:[l("expired"),t.jsxs(we,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",m.expired,")"]})]})}),y?t.jsx(Dt,{value:"offline",control:t.jsx($t,{size:"small",sx:{lineHeight:1,fontSize:0},checked:x.status==="offline"}),label:t.jsxs(we,{sx:{display:"flex",alignItems:"center"},children:[l("offline"),t.jsxs(we,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",m.offline,")"]})]})}):null]}),onChange:I=>{x.page=I.page+1,x.pageSize=I.rowsPerPage}})]})}var Qt={exports:{}},Xt={},mn;function Di(){if(mn)return Xt;mn=1;function e(f){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(f)}function c(f,h,w){return Object.defineProperty(f,"prototype",{writable:!1}),f}function o(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function r(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),h&&y(f,h)}function y(f,h){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,A){return T.__proto__=A,T},y(f,h)}function x(f){var h=s();return function(){var T=i(f),A;if(h){var k=i(this).constructor;A=Reflect.construct(T,arguments,k)}else A=T.apply(this,arguments);return m(this,A)}}function m(f,h){if(h&&(e(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(f)}function p(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function s(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function i(f){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},i(f)}var n={},S,a;function l(f,h,w){w||(w=Error);function T(k,I,D){return typeof h=="string"?h:h(k,I,D)}var A=function(k){r(D,k);var I=x(D);function D(B,W,G){var te;return o(this,D),te=I.call(this,T(B,W,G)),te.code=f,te}return c(D)}(w);n[f]=A}function u(f,h){if(Array.isArray(f)){var w=f.length;return f=f.map(function(T){return String(T)}),w>2?"one of ".concat(h," ").concat(f.slice(0,w-1).join(", "),", or ")+f[w-1]:w===2?"one of ".concat(h," ").concat(f[0]," or ").concat(f[1]):"of ".concat(h," ").concat(f[0])}else return"of ".concat(h," ").concat(String(f))}function d(f,h,w){return f.substr(0,h.length)===h}function v(f,h,w){return(w===void 0||w>f.length)&&(w=f.length),f.substring(w-h.length,w)===h}function g(f,h,w){return typeof w!="number"&&(w=0),w+h.length>f.length?!1:f.indexOf(h,w)!==-1}return l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",function(f,h,w){S===void 0&&(S=kr()),S(typeof f=="string","'name' must be a string");var T;typeof h=="string"&&d(h,"not ")?(T="must not be",h=h.replace(/^not /,"")):T="must be";var A;if(v(f," argument"))A="The ".concat(f," ").concat(T," ").concat(u(h,"type"));else{var k=g(f,".")?"property":"argument";A='The "'.concat(f,'" ').concat(k," ").concat(T," ").concat(u(h,"type"))}return A+=". Received type ".concat(e(w)),A},TypeError),l("ERR_INVALID_ARG_VALUE",function(f,h){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";a===void 0&&(a=vt());var T=a.inspect(h);return T.length>128&&(T="".concat(T.slice(0,128),"...")),"The argument '".concat(f,"' ").concat(w,". Received ").concat(T)},TypeError),l("ERR_INVALID_RETURN_VALUE",function(f,h,w){var T;return w&&w.constructor&&w.constructor.name?T="instance of ".concat(w.constructor.name):T="type ".concat(e(w)),"Expected ".concat(f,' to be returned from the "').concat(h,'"')+" function but got ".concat(T,".")},TypeError),l("ERR_MISSING_ARGS",function(){for(var f=arguments.length,h=new Array(f),w=0;w<f;w++)h[w]=arguments[w];S===void 0&&(S=kr()),S(h.length>0,"At least one arg needs to be specified");var T="The ",A=h.length;switch(h=h.map(function(k){return'"'.concat(k,'"')}),A){case 1:T+="".concat(h[0]," argument");break;case 2:T+="".concat(h[0]," and ").concat(h[1]," arguments");break;default:T+=h.slice(0,A-1).join(", "),T+=", and ".concat(h[A-1]," arguments");break}return"".concat(T," must be specified")},TypeError),Xt.codes=n,Xt}var Jt,hn;function fa(){if(hn)return Jt;hn=1;function e(M,q){var H=Object.keys(M);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(M);q&&(z=z.filter(function(Y){return Object.getOwnPropertyDescriptor(M,Y).enumerable})),H.push.apply(H,z)}return H}function c(M){for(var q=1;q<arguments.length;q++){var H=arguments[q]!=null?arguments[q]:{};q%2?e(Object(H),!0).forEach(function(z){o(M,z,H[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(H)):e(Object(H)).forEach(function(z){Object.defineProperty(M,z,Object.getOwnPropertyDescriptor(H,z))})}return M}function o(M,q,H){return q=m(q),q in M?Object.defineProperty(M,q,{value:H,enumerable:!0,configurable:!0,writable:!0}):M[q]=H,M}function r(M,q){if(!(M instanceof q))throw new TypeError("Cannot call a class as a function")}function y(M,q){for(var H=0;H<q.length;H++){var z=q[H];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(M,m(z.key),z)}}function x(M,q,H){return q&&y(M.prototype,q),Object.defineProperty(M,"prototype",{writable:!1}),M}function m(M){var q=p(M,"string");return f(q)==="symbol"?q:String(q)}function p(M,q){if(f(M)!=="object"||M===null)return M;var H=M[Symbol.toPrimitive];if(H!==void 0){var z=H.call(M,q);if(f(z)!=="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}function s(M,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(q&&q.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),q&&v(M,q)}function i(M){var q=u();return function(){var z=g(M),Y;if(q){var R=g(this).constructor;Y=Reflect.construct(z,arguments,R)}else Y=z.apply(this,arguments);return n(this,Y)}}function n(M,q){if(q&&(f(q)==="object"||typeof q=="function"))return q;if(q!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function a(M){var q=typeof Map=="function"?new Map:void 0;return a=function(z){if(z===null||!d(z))return z;if(typeof z!="function")throw new TypeError("Super expression must either be null or a function");if(typeof q<"u"){if(q.has(z))return q.get(z);q.set(z,Y)}function Y(){return l(z,arguments,g(this).constructor)}return Y.prototype=Object.create(z.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),v(Y,z)},a(M)}function l(M,q,H){return u()?l=Reflect.construct.bind():l=function(Y,R,E){var P=[null];P.push.apply(P,R);var U=Function.bind.apply(Y,P),F=new U;return E&&v(F,E.prototype),F},l.apply(null,arguments)}function u(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function d(M){return Function.toString.call(M).indexOf("[native code]")!==-1}function v(M,q){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,Y){return z.__proto__=Y,z},v(M,q)}function g(M){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},g(M)}function f(M){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},f(M)}var h=vt(),w=h.inspect,T=Di(),A=T.codes.ERR_INVALID_ARG_TYPE;function k(M,q,H){return(H===void 0||H>M.length)&&(H=M.length),M.substring(H-q.length,H)===q}function I(M,q){if(q=Math.floor(q),M.length==0||q==0)return"";var H=M.length*q;for(q=Math.floor(Math.log(q)/Math.log(2));q;)M+=M,q--;return M+=M.substring(0,H-M.length),M}var D="",B="",W="",G="",te={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},pe=10;function ne(M){var q=Object.keys(M),H=Object.create(Object.getPrototypeOf(M));return q.forEach(function(z){H[z]=M[z]}),Object.defineProperty(H,"message",{value:M.message}),H}function re(M){return w(M,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function fe(M,q,H){var z="",Y="",R=0,E="",P=!1,U=re(M),F=U.split(`
2
2
  `),$=re(q).split(`
3
3
  `),Q=0,le="";if(H==="strictEqual"&&f(M)==="object"&&f(q)==="object"&&M!==null&&q!==null&&(H="strictEqualObject"),F.length===1&&$.length===1&&F[0]!==$[0]){var de=F[0].length+$[0].length;if(de<=pe){if((f(M)!=="object"||M===null)&&(f(q)!=="object"||q===null)&&(M!==0||q!==0))return"".concat(te[H],`
4
4
 
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-D1w_phcb.js","./index-_8oRZcHP.js","./index-DGkT7afN.css","./url-join-B-Ittgpb.js","./index-CJwX-OYV.js","./_createAggregator-B7uAY9MP.js","./depsEqual-DMHly6fz.js","./index-hcJKr5Kv.js","./index-DRYJ0xIl.js","./toUpper-Dul2guy6.js","./index-B5LvOF-F.css"])))=>i.map(i=>d[i]);
2
- import{aG as Ve,j as e,dn as vo,gp as Ro,ip as So,m as A,bn as H,N as b,az as xe,H as N,o as r,f as lt,r as d,g as Ce,bA as Me,b as K,J as L,X as Tt,bz as Ge,Y as ae,iq as ko,t as Z,s as B,a4 as J,aV as bn,T as te,$ as ct,dD as Xt,y as Ye,b8 as wo,bE as Eo,E as U,b1 as To,gc as Io,gd as Po,C as me,f1 as Uo,hd as _o,x as Do,ax as Jt,w as No,ir as Lo,is as Bo,v as pe,it as Oo,Z as Mo,a0 as Ao,iu as jn,bo as vn,U as Re,f7 as qo,e_ as Fo,aB as $o,aC as zo,bk as Go,aD as Wo,aE as X,aO as Vo,cN as Yo,F as Rn,bm as Ko,_ as Ho,O as ot,aZ as Nt,iv as Zo,a_ as ye,ho as Qo,aA as en,cL as Xo,ad as Ae,aM as Sn,bS as Lt,cw as Jo,L as dt,iw as es,b9 as ts,A as kn,aU as It,h as ns,aS as ze,P as vt,W as os,bB as wn,fI as ss,cr as rs,aJ as is,bt as as,aR as ls,dE as cs,fd as tn,ix as nn,gH as on,V as sn,G as st,cK as ds,gF as us,bR as ps,iy as ms}from"./index-_8oRZcHP.js";import{y as fs}from"./index-luUossMM.js";import{a as hs,c as gs,d as xs,u as Bt,R as ys}from"./actions-J2QPqEIR.js";import{S as Cs}from"./switch-control-CKSbA6D9.js";import{u as fe}from"./blocklet-CxgGBUvX.js";import{P as Pt,w as ut}from"./permission-CjJ84P8d.js";import{E as En}from"./Edit-qr4VAp95.js";import{T as bs,M as js,t as vs}from"./table-icons-oE5i83sx.js";import{s as Rs,F as Ss,R as it,L as ks,S as ws,B as Es}from"./preference-J3dyippO.js";import{C as rn}from"./click-to-copy-BJD4pP2S.js";import{v as Rt}from"./index-DWevfoMr.js";import{A as Ts}from"./Add-C-JGR7WX.js";import{A as Ot}from"./Link-RiuSe0e2.js";import{C as Is,c as Ps,b as Us,f as Tn,A as _s,_ as Ds,a as Ns,e as Ls,d as In,s as Bs,g as Os,S as Ms}from"./item-CA0AhoeU.js";import{T as As,L as qs,a as Pn,u as an,W as Fs,P as $s}from"./index-DUinRQw4.js";import{e as Un}from"./engine-IPaOGJ95.js";import{u as zs,C as Gs,D as Ws,a as Vs,b as Ys}from"./connect-to-D2f0TQaC.js";import{C as Ks,u as Hs,A as Zs}from"./agreement-C3fURNDy.js";import{D as Qs}from"./Done-KBM5PYQe.js";import{A as Xs,a as Js,b as er,c as tr}from"./collapse-BChJU-xb.js";import{C as nr,a as or}from"./Google-BISAgJ7z.js";import{I as _n,f as sr,a as rr,B as ir}from"./install-from-url-Cssyl_EF.js";import{a as ln}from"./api-Dksjqhj9.js";import{v as Dn,e as ar,a as at}from"./util-Cbf8gAh_.js";import{u as Nn}from"./use-mobile-CaA0LsNn.js";import{A as lr}from"./ArrowDropDown-CFSWcN3J.js";import{u as cr}from"./useLocalStorage-BEs66pts.js";import{D as pt,W as We,R as dr,a as cn}from"./url-evaluation-C9ybfEbS.js";import{L as Ln}from"./Launch-DirijHL1.js";import{D as ur}from"./delete-confirm-CwBSbfmS.js";import{B as Bn}from"./status-RQRQdpaf.js";import{A as On}from"./actions-Bqwe_eeJ.js";import{v as St}from"./index-CrTw1v2G.js";import{t as pr}from"./toUpper-Dul2guy6.js";import{S as mr}from"./Switch-B-0geYaG.js";import{a as fr}from"./team-CSpa5Bju.js";import"./MoreVert-_f7HjK7U.js";import"./get-safe-url-D5Xp3EJt.js";import"./ButtonGroup-BpbIaw4r.js";import"./getValidReactChildren-Cq-L2XG5.js";import"./FilterList-C5IPtX8B.js";import"./CSSTransition-CEGsXFa4.js";import"./emotion-cache.browser.esm-2hka6KsY.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./raf-schd.esm-C1oPRTDZ.js";import"./redux-DfszZyTl.js";import"./useThemeProps-DXk_HLKM.js";import"./index-CI3XNytL.js";import"./Clear-BgmnunuK.js";import"./ChevronRight-BhZK0m02.js";import"./ChevronLeft-mBfiaSS1.js";import"./Search-BJ29HaSB.js";import"./omit-DOuoJ5G3.js";import"./index-CJwX-OYV.js";import"./index-hcJKr5Kv.js";import"./iframe-CKLYV5eL.js";import"./Autocomplete-BUKgT1H8.js";import"./ListSubheader-DA2-DVZb.js";import"./Verified-D9QmxLSp.js";import"./VerifiedUser-W0URZfI1.js";import"./DeleteOutline-CMvAWFzN.js";import"./url-join-B-Ittgpb.js";import"./index-BojVbZw0.js";import"./spaces-GphSy-vT.js";import"./OpenInNew-B8Hi9-Aa.js";import"./index-DRYJ0xIl.js";import"./HelpOutline-C5r6R3H8.js";import"./index-gcsLojkd.js";import"./decode-DPztD6kB.js";import"./cloneDeep-DymekVbc.js";import"./without-wallet-DaUHusY5.js";import"./ListItemButton-G0gHUcJH.js";import"./Stepper-DFkDVDUN.js";import"./is-path-prefix-equal-xOcqHaZi.js";const hr=Ve(e.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"})),gr=Ve(e.jsx("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"})),Mn=Ve(e.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"})),xr=Ve(e.jsx("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"})),yr=Ve(e.jsx("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"}));function dn(t,o){var n={};return o=vo(o),Ro(t,function(a,s,i){So(n,s,o(a,s,i))}),n}function An({children:t=null,...o}){const{t:n}=A(),{api:a}=H(),{blocklet:s}=fe(),i=s?.settings?.autoCheckUpdate,f=async h=>{await a.updateAutoCheckUpdate({input:{did:s.meta.did,autoCheckUpdate:h}})},c=async()=>{try{const h=!i?.enabled;await f({enabled:h}),N.success(n(h?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(h){N.error(h.message)}},u=!!i?.enabled;return e.jsxs(b,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[t,e.jsx(xe,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:e.jsx("div",{children:e.jsx(Cs,{checked:u,onChange:c,name:"enableWelcomePage",style:{...o.style,zoom:.8}})})})]})}An.propTypes={children:r.any};function un(t){function o({sx:n,...a}){return e.jsx(t,{...a,sx:{color:"text.primary",...n}})}return o}const Cr={...dn(vs,un),...dn(hs,un)},br=(t,o)=>{let{description:n}=t;return(Object.values(K.CHAIN_PROP_MAP).includes(t.key)||L.isEnvShareable(t))&&(n?n=`${n} (${o("blocklet.config.sharedToAllComponents")})`:n=o("blocklet.config.sharedToAllComponents")),n&&e.jsx("div",{style:{marginLeft:12},children:n})},kt=(t,o,n=[])=>!n?.length&&!t.custom&&!["CHAIN_ID","CHAIN_HOST"].includes(t.key)&&!o.meta.environments.find(a=>a.name===t.key)&&o.children.every(a=>!a.meta.environments.find(s=>s.name===t.key))?!0:t.custom,pn=t=>[K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(t)?!0:!(t.startsWith("BLOCKLET_")||t.startsWith("COMPONENT_")),wt=t=>[K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(t)===!1;function qn({blocklet:t,ancestors:o=[]}){const n=H(),{palette:a}=lt(),{inService:s}=n,{t:i}=d.useContext(Ce),f=[...o.map(m=>m.meta.did),t.meta.did],c=()=>N.success(i("blocklet.config.changedTip")),u=m=>kt(m,t,o);if(Me(t.status)||t.status==="unknown"&&Me(t.status))return null;const h=m=>new Promise(async(g,v)=>{if(!m.key.trim()||!m.value.trim()){N.error(i("blocklet.config.environment.keyValueRequired")),v();return}if(pn(m.key)===!1){N.error(i("blocklet.config.environment.invalidKey")),v();return}m.custom=wt(m.key);try{const k=await n.api.configBlocklet({input:{did:f,configs:[m]}});c(k.blocklet),g()}catch(k){N.error(ae(k)),v()}}),y=(m,g)=>new Promise(async(v,k)=>{if(m.required&&(!m.key.trim()||!m.value.trim())){N.error(i("blocklet.config.environment.keyValueRequired")),k();return}if(pn(m.key)===!1){N.error(i("blocklet.config.environment.invalidKey")),k();return}if(m.key===K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){const O=ko(m);if(O){N.error(O),k();return}}const j=[{...m,value:m.secure&&m.value==="__encrypted__"?"":m.value}];if(m.key!==g.key){if(!kt(m,t,o)){N.error("Only key of custom env can be changed"),k();return}j.push({key:g.key,custom:wt(m.key)})}try{const O=await n.api.configBlocklet({input:{did:f,configs:j}});c(O.blocklet),v()}catch(O){N.error(ae(O)),k()}}),l=m=>new Promise(async(g,v)=>{if(m.required){N.error(i("blocklet.config.environment.deleteForbidden")),v();return}if(!kt(m,t,o)){N.error("Only key of custom env can be changed"),v();return}try{const k=await n.api.configBlocklet({input:{did:f,configs:[{key:m.key,custom:wt(m.key)}]}});c(k.blocklet),g()}catch(k){N.error(ae(k)),v()}}),R=(t.configs||[]).filter(m=>!K.BLOCKLET_CONFIGURABLE_KEY[m.key]||[K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(m.key)),C=L.getSharedConfigObj(o[0],t),p=L.getComponentMissingConfigs(t,o[0]),E=R.map(m=>({...m,value:Object.values(K.CHAIN_PROP_MAP).includes(m.key)&&Object.keys(C).includes(m.key)?C[m.key]:C[m.key]||m.value})),S=E.some(m=>m.key&&m.key.startsWith("BWA_")),w={onRowAdd:h,onRowUpdate:y,onRowDelete:l,isDeletable:u},x=()=>[{title:i("common.key"),field:"key",initialEditValue:"",width:"30%",render:m=>e.jsx(rn,{value:m.value,style:{color:m.required&&!m.value?a.error.main:a.text.primary,fontWeight:m.required?"bold":"normal"},children:m.key}),editComponent:m=>{const{value:g,rowData:v,onChange:k}=m;return e.jsx(mn,{children:e.jsx(Z,{fullWidth:!0,size:"small",value:Rs.escapeTag(g),onChange:j=>k(j.target.value),variant:"outlined",label:"Key",placeholder:i("blocklet.config.environment.key"),margin:"dense",autoFocus:!0,slotProps:{input:{readOnly:u(v)===!1}}})})}},{title:i("common.value"),field:"value",initialEditValue:"",width:"calc((100% - (96px + 30%)) / 1)",render:m=>m.value?m.secure?"******":e.jsx(rn,{unstyled:!0,value:m.value,style:{wordBreak:"break-all"},children:m.value}):null,editComponent:m=>{const{value:g,rowData:v,onChange:k}=m;return e.jsxs(mn,{children:[e.jsx(Z,{fullWidth:!0,size:"small",value:g==="__encrypted__"?"":g,onChange:j=>k(j.target.value),variant:"outlined",label:i("common.value"),placeholder:i("blocklet.config.environment.value"),margin:"dense"}),br(v,i)]})}}];return e.jsxs(jr,{children:[!!p.length&&e.jsx(Tt,{severity:"error",style:{marginTop:24},children:i("blocklet.config.missingRequired")}),S&&e.jsx(Tt,{severity:"info",children:i("blocklet.config.environment.tip")}),e.jsx(Pt,{permission:s?"":"mutate_blocklets",role:s?Ge:[],children:m=>e.jsx(bs,{className:"config-table",children:e.jsx(js,{title:e.jsx(b,{sx:{fontWeight:"bold"},children:i("common.environments")}),columns:x(),icons:Cr,options:{emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",paging:!1,search:!1,actionsCellStyle:{padding:"0",textAlign:"right",width:"80px"}},localization:{header:{actions:i("common.actions")},body:{emptyDataSourceMessage:i("common.noData")}},data:E,editable:m?w:{}})})})]})}qn.propTypes={blocklet:r.object.isRequired,ancestors:r.array};const jr=B.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BMW6t5La.js","./index-C4mOfCm_.js","./index-DGkT7afN.css","./url-join-BBoInSaA.js","./index-COm9hgx_.js","./_createAggregator-jhHxKsby.js","./depsEqual-CgwmaLj6.js","./index-quoltoEL.js","./index-DRYJ0xIl.js","./toUpper-Bb2HGHT9.js","./index-B5LvOF-F.css"])))=>i.map(i=>d[i]);
2
+ import{aG as Ve,j as e,dn as vo,gp as Ro,ip as So,m as A,bn as H,N as b,az as xe,H as N,o as r,f as lt,r as d,g as Ce,bA as Me,b as K,J as L,X as Tt,bz as Ge,Y as ae,iq as ko,t as Z,s as B,a4 as J,aV as bn,T as te,$ as ct,dD as Xt,y as Ye,b8 as wo,bE as Eo,E as U,b1 as To,gc as Io,gd as Po,C as me,f1 as Uo,hd as _o,x as Do,ax as Jt,w as No,ir as Lo,is as Bo,v as pe,it as Oo,Z as Mo,a0 as Ao,iu as jn,bo as vn,U as Re,f7 as qo,e_ as Fo,aB as $o,aC as zo,bk as Go,aD as Wo,aE as X,aO as Vo,cN as Yo,F as Rn,bm as Ko,_ as Ho,O as ot,aZ as Nt,iv as Zo,a_ as ye,ho as Qo,aA as en,cL as Xo,ad as Ae,aM as Sn,bS as Lt,cw as Jo,L as dt,iw as es,b9 as ts,A as kn,aU as It,h as ns,aS as ze,P as vt,W as os,bB as wn,fI as ss,cr as rs,aJ as is,bt as as,aR as ls,dE as cs,fd as tn,ix as nn,gH as on,V as sn,G as st,cK as ds,gF as us,bR as ps,iy as ms}from"./index-C4mOfCm_.js";import{y as fs}from"./index-BeHzPQZj.js";import{a as hs,c as gs,d as xs,u as Bt,R as ys}from"./actions-CZaWtcNS.js";import{S as Cs}from"./switch-control-BvELbAm3.js";import{u as fe}from"./blocklet-DmmVfj87.js";import{P as Pt,w as ut}from"./permission-CAwWHgKo.js";import{E as En}from"./Edit-BQ0nYDQE.js";import{T as bs,M as js,t as vs}from"./table-icons-BJW-SCQe.js";import{s as Rs,F as Ss,R as it,L as ks,S as ws,B as Es}from"./preference-D2ak1a33.js";import{C as rn}from"./click-to-copy-C9lDYNLy.js";import{v as Rt}from"./index-Dn78lnTO.js";import{A as Ts}from"./Add-3_OvaFrP.js";import{A as Ot}from"./Link-BRz6zIZp.js";import{C as Is,c as Ps,b as Us,f as Tn,A as _s,_ as Ds,a as Ns,e as Ls,d as In,s as Bs,g as Os,S as Ms}from"./item-DB4nd60x.js";import{T as As,L as qs,a as Pn,u as an,W as Fs,P as $s}from"./index-CrmgQXdO.js";import{e as Un}from"./engine-DUBYjcGZ.js";import{u as zs,C as Gs,D as Ws,a as Vs,b as Ys}from"./connect-to-DHpXpfiO.js";import{C as Ks,u as Hs,A as Zs}from"./agreement-D5zRURFk.js";import{D as Qs}from"./Done-BowXQslF.js";import{A as Xs,a as Js,b as er,c as tr}from"./collapse-BQKIAHAH.js";import{C as nr,a as or}from"./Google-BbDWC590.js";import{I as _n,f as sr,a as rr,B as ir}from"./install-from-url-n_csAYU3.js";import{a as ln}from"./api-BgPXZvcj.js";import{v as Dn,e as ar,a as at}from"./util-DXUxNwaT.js";import{u as Nn}from"./use-mobile-B1UpSPIX.js";import{A as lr}from"./ArrowDropDown-BS9tp8MS.js";import{u as cr}from"./useLocalStorage-BTzsh1Lj.js";import{D as pt,W as We,R as dr,a as cn}from"./url-evaluation-CNPtf5Sl.js";import{L as Ln}from"./Launch-DXqdimna.js";import{D as ur}from"./delete-confirm-BMlllWsg.js";import{B as Bn}from"./status-YKpSQSD8.js";import{A as On}from"./actions-qwmjFYBC.js";import{v as St}from"./index-Aeyu2TZE.js";import{t as pr}from"./toUpper-Bb2HGHT9.js";import{S as mr}from"./Switch-MO_QYoYi.js";import{a as fr}from"./team-D7M0Ye34.js";import"./MoreVert-L8j8_EPz.js";import"./get-safe-url-DjCQU-uR.js";import"./ButtonGroup-C0aG4xOT.js";import"./getValidReactChildren--K7J75d3.js";import"./FilterList-BZwgYvWc.js";import"./CSSTransition-KO9L5iBp.js";import"./emotion-cache.browser.esm-B0z8ZzTf.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./raf-schd.esm-ClEAlDQA.js";import"./redux-DfszZyTl.js";import"./useThemeProps-d3GR3gue.js";import"./index-DkZ-t39O.js";import"./Clear-DMvY-1OH.js";import"./ChevronRight-BgqwQ3It.js";import"./ChevronLeft-BPyHvtRf.js";import"./Search-DhxCIV3r.js";import"./omit-B4Sq5gLR.js";import"./index-COm9hgx_.js";import"./index-quoltoEL.js";import"./iframe-CDG05FDN.js";import"./Autocomplete-8ICuj-KH.js";import"./ListSubheader-BOpeFxej.js";import"./Verified-CsK6wp5l.js";import"./VerifiedUser-CMhuvwNe.js";import"./DeleteOutline-qcbzQjhi.js";import"./url-join-BBoInSaA.js";import"./index-BojVbZw0.js";import"./spaces-DboV6EBE.js";import"./OpenInNew-CNDlD7xM.js";import"./index-DRYJ0xIl.js";import"./HelpOutline-Dq1Jw2rR.js";import"./index-PpgfbTC9.js";import"./decode-DPztD6kB.js";import"./cloneDeep-BrIshN9W.js";import"./without-wallet-CIoRe4lL.js";import"./ListItemButton-BQgIuXFI.js";import"./Stepper-JT4HRwKe.js";import"./is-path-prefix-equal-H7FSCLy3.js";const hr=Ve(e.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"})),gr=Ve(e.jsx("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"})),Mn=Ve(e.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"})),xr=Ve(e.jsx("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"})),yr=Ve(e.jsx("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"}));function dn(t,o){var n={};return o=vo(o),Ro(t,function(a,s,i){So(n,s,o(a,s,i))}),n}function An({children:t=null,...o}){const{t:n}=A(),{api:a}=H(),{blocklet:s}=fe(),i=s?.settings?.autoCheckUpdate,f=async h=>{await a.updateAutoCheckUpdate({input:{did:s.meta.did,autoCheckUpdate:h}})},c=async()=>{try{const h=!i?.enabled;await f({enabled:h}),N.success(n(h?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(h){N.error(h.message)}},u=!!i?.enabled;return e.jsxs(b,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[t,e.jsx(xe,{title:n("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:e.jsx("div",{children:e.jsx(Cs,{checked:u,onChange:c,name:"enableWelcomePage",style:{...o.style,zoom:.8}})})})]})}An.propTypes={children:r.any};function un(t){function o({sx:n,...a}){return e.jsx(t,{...a,sx:{color:"text.primary",...n}})}return o}const Cr={...dn(vs,un),...dn(hs,un)},br=(t,o)=>{let{description:n}=t;return(Object.values(K.CHAIN_PROP_MAP).includes(t.key)||L.isEnvShareable(t))&&(n?n=`${n} (${o("blocklet.config.sharedToAllComponents")})`:n=o("blocklet.config.sharedToAllComponents")),n&&e.jsx("div",{style:{marginLeft:12},children:n})},kt=(t,o,n=[])=>!n?.length&&!t.custom&&!["CHAIN_ID","CHAIN_HOST"].includes(t.key)&&!o.meta.environments.find(a=>a.name===t.key)&&o.children.every(a=>!a.meta.environments.find(s=>s.name===t.key))?!0:t.custom,pn=t=>[K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(t)?!0:!(t.startsWith("BLOCKLET_")||t.startsWith("COMPONENT_")),wt=t=>[K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(t)===!1;function qn({blocklet:t,ancestors:o=[]}){const n=H(),{palette:a}=lt(),{inService:s}=n,{t:i}=d.useContext(Ce),f=[...o.map(m=>m.meta.did),t.meta.did],c=()=>N.success(i("blocklet.config.changedTip")),u=m=>kt(m,t,o);if(Me(t.status)||t.status==="unknown"&&Me(t.status))return null;const h=m=>new Promise(async(g,v)=>{if(!m.key.trim()||!m.value.trim()){N.error(i("blocklet.config.environment.keyValueRequired")),v();return}if(pn(m.key)===!1){N.error(i("blocklet.config.environment.invalidKey")),v();return}m.custom=wt(m.key);try{const k=await n.api.configBlocklet({input:{did:f,configs:[m]}});c(k.blocklet),g()}catch(k){N.error(ae(k)),v()}}),y=(m,g)=>new Promise(async(v,k)=>{if(m.required&&(!m.key.trim()||!m.value.trim())){N.error(i("blocklet.config.environment.keyValueRequired")),k();return}if(pn(m.key)===!1){N.error(i("blocklet.config.environment.invalidKey")),k();return}if(m.key===K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){const O=ko(m);if(O){N.error(O),k();return}}const j=[{...m,value:m.secure&&m.value==="__encrypted__"?"":m.value}];if(m.key!==g.key){if(!kt(m,t,o)){N.error("Only key of custom env can be changed"),k();return}j.push({key:g.key,custom:wt(m.key)})}try{const O=await n.api.configBlocklet({input:{did:f,configs:j}});c(O.blocklet),v()}catch(O){N.error(ae(O)),k()}}),l=m=>new Promise(async(g,v)=>{if(m.required){N.error(i("blocklet.config.environment.deleteForbidden")),v();return}if(!kt(m,t,o)){N.error("Only key of custom env can be changed"),v();return}try{const k=await n.api.configBlocklet({input:{did:f,configs:[{key:m.key,custom:wt(m.key)}]}});c(k.blocklet),g()}catch(k){N.error(ae(k)),v()}}),R=(t.configs||[]).filter(m=>!K.BLOCKLET_CONFIGURABLE_KEY[m.key]||[K.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(m.key)),C=L.getSharedConfigObj(o[0],t),p=L.getComponentMissingConfigs(t,o[0]),E=R.map(m=>({...m,value:Object.values(K.CHAIN_PROP_MAP).includes(m.key)&&Object.keys(C).includes(m.key)?C[m.key]:C[m.key]||m.value})),S=E.some(m=>m.key&&m.key.startsWith("BWA_")),w={onRowAdd:h,onRowUpdate:y,onRowDelete:l,isDeletable:u},x=()=>[{title:i("common.key"),field:"key",initialEditValue:"",width:"30%",render:m=>e.jsx(rn,{value:m.value,style:{color:m.required&&!m.value?a.error.main:a.text.primary,fontWeight:m.required?"bold":"normal"},children:m.key}),editComponent:m=>{const{value:g,rowData:v,onChange:k}=m;return e.jsx(mn,{children:e.jsx(Z,{fullWidth:!0,size:"small",value:Rs.escapeTag(g),onChange:j=>k(j.target.value),variant:"outlined",label:"Key",placeholder:i("blocklet.config.environment.key"),margin:"dense",autoFocus:!0,slotProps:{input:{readOnly:u(v)===!1}}})})}},{title:i("common.value"),field:"value",initialEditValue:"",width:"calc((100% - (96px + 30%)) / 1)",render:m=>m.value?m.secure?"******":e.jsx(rn,{unstyled:!0,value:m.value,style:{wordBreak:"break-all"},children:m.value}):null,editComponent:m=>{const{value:g,rowData:v,onChange:k}=m;return e.jsxs(mn,{children:[e.jsx(Z,{fullWidth:!0,size:"small",value:g==="__encrypted__"?"":g,onChange:j=>k(j.target.value),variant:"outlined",label:i("common.value"),placeholder:i("blocklet.config.environment.value"),margin:"dense"}),br(v,i)]})}}];return e.jsxs(jr,{children:[!!p.length&&e.jsx(Tt,{severity:"error",style:{marginTop:24},children:i("blocklet.config.missingRequired")}),S&&e.jsx(Tt,{severity:"info",children:i("blocklet.config.environment.tip")}),e.jsx(Pt,{permission:s?"":"mutate_blocklets",role:s?Ge:[],children:m=>e.jsx(bs,{className:"config-table",children:e.jsx(js,{title:e.jsx(b,{sx:{fontWeight:"bold"},children:i("common.environments")}),columns:x(),icons:Cr,options:{emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",paging:!1,search:!1,actionsCellStyle:{padding:"0",textAlign:"right",width:"80px"}},localization:{header:{actions:i("common.actions")},body:{emptyDataSourceMessage:i("common.noData")}},data:E,editable:m?w:{}})})})]})}qn.propTypes={blocklet:r.object.isRequired,ancestors:r.array};const jr=B.div`
3
3
  .config-table {
4
4
  margin-bottom: 24px;
5
5
  position: relative;
@@ -66,7 +66,7 @@ import{aG as Ve,j as e,dn as vo,gp as Ro,ip as So,m as A,bn as H,N as b,az as xe
66
66
  .ux-dialog_closeButton {
67
67
  margin: 0;
68
68
  }
69
- `,Rr=d.lazy(()=>Eo(()=>import("./index-D1w_phcb.js").then(t=>t.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(t=>({default:t.Uploader}))),Sr="/blocklet/component/upload",fn=[".html",".htm",".tgz",".zip"],kr=Number(window.env?.MAX_UPLOAD_FILE_SIZE)||U.MAX_UPLOAD_FILE_SIZE,wr=kr*1024*1024;function Fn({did:t,prefix:o,headers:n=()=>({}),onUploaded:a=Xt,open:s=!1,onClose:i=Xt}){const{t:f,locale:c}=A(),u=d.useRef(null),h=d.useCallback(y=>{const{status:l,data:R}=y;if(l===200){a(R);return}N.error(f("blocklet.component.addComponentTip.uploadFailed"))},[a,f]);return d.useEffect(()=>{s?u.current?.open():u.current?.close()},[s]),e.jsx(Er,{id:`component-uploader-${t}`,children:e.jsx(Rr,{ref:u,locale:c,popup:!0,onUploadFinish:h,plugins:[],onClose:i,installerProps:{disabled:!0},apiPathProps:{uploader:Ye(o,Sr,t),disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:fn,maxFileSize:wr,maxNumberOfFiles:1}},tusProps:{headers:n},dashboardProps:{note:f("blocklet.component.addComponentTip.allowedFileTypes",{types:fn.map(y=>y.replace(".","")).join(", ")})}})},`component-uploader-${t}`)}Fn.propTypes={did:r.string.isRequired,prefix:r.string.isRequired,open:r.bool,headers:r.func,onUploaded:r.func,onClose:r.func};const Er=wo(b)`
69
+ `,Rr=d.lazy(()=>Eo(()=>import("./index-BMW6t5La.js").then(t=>t.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(t=>({default:t.Uploader}))),Sr="/blocklet/component/upload",fn=[".html",".htm",".tgz",".zip"],kr=Number(window.env?.MAX_UPLOAD_FILE_SIZE)||U.MAX_UPLOAD_FILE_SIZE,wr=kr*1024*1024;function Fn({did:t,prefix:o,headers:n=()=>({}),onUploaded:a=Xt,open:s=!1,onClose:i=Xt}){const{t:f,locale:c}=A(),u=d.useRef(null),h=d.useCallback(y=>{const{status:l,data:R}=y;if(l===200){a(R);return}N.error(f("blocklet.component.addComponentTip.uploadFailed"))},[a,f]);return d.useEffect(()=>{s?u.current?.open():u.current?.close()},[s]),e.jsx(Er,{id:`component-uploader-${t}`,children:e.jsx(Rr,{ref:u,locale:c,popup:!0,onUploadFinish:h,plugins:[],onClose:i,installerProps:{disabled:!0},apiPathProps:{uploader:Ye(o,Sr,t),disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileTypes:fn,maxFileSize:wr,maxNumberOfFiles:1}},tusProps:{headers:n},dashboardProps:{note:f("blocklet.component.addComponentTip.allowedFileTypes",{types:fn.map(y=>y.replace(".","")).join(", ")})}})},`component-uploader-${t}`)}Fn.propTypes={did:r.string.isRequired,prefix:r.string.isRequired,open:r.bool,headers:r.func,onUploaded:r.func,onClose:r.func};const Er=wo(b)`
70
70
  .uploader-wrapper {
71
71
  display: inline-flex;
72
72
  position: relative;
@@ -1,4 +1,4 @@
1
- import{aG as je,j as e,u as Q,r as h,e as Fe,aH as $r,E as k,aI as Ur,aJ as an,aK as Hn,aL as sn,aM as et,m as z,ad as le,s as ne,aN as ln,o as p,aO as zr,aP as cn,aQ as Br,H as ae,O as dn,T as A,t as q,az as fe,aR as Pe,C as K,X as be,v as V,aS as Gn,Y as ge,N as W,g as Mt,P as tt,aT as Mr,d as Wt,aU as Ie,aV as me,aa as Wr,aW as qr,aX as Hr,y as Gr,A as Kn,W as un,h as mn,i as te,aY as qt,a as Et,U as X,b as ct,aZ as Yn,a_ as Vn,V as Xn,a4 as _t,a$ as Kr,b0 as Yr,b1 as Vr,b2 as Xr,b3 as nt,J as Qr,b4 as Zr,aF as Ge,b5 as Jr,a9 as jt,a6 as wt,b6 as ei,a7 as Pt,L as Ht,K as ti,b7 as ni,b8 as Qn,a8 as ri,b9 as Zn,ba as De,bb as ke,bc as ii,bd as Gt,be as oi,$ as Jn,D as At,f as er,bf as ai,bg as fn,ak as si,bh as li,bi as ee,bj as ci,S as pn,p as gn,l as hn,bk as di,bl as ui,bm as mi}from"./index-_8oRZcHP.js";import{T as fi}from"./index-CI3XNytL.js";import{A as pi}from"./ArrowDropDown-CFSWcN3J.js";import{u as Kt,C as B,a as xn}from"./index.esm-BbCeLnEG.js";import{S as oe}from"./switch-control-CKSbA6D9.js";import{P as re}from"./permission-CjJ84P8d.js";import{H as tr,g as gi}from"./index-WCnj110a.js";import{A as nr}from"./Link-RiuSe0e2.js";import{D as ve,R as rr,a as It,b as hi,W as Ke}from"./url-evaluation-C9ybfEbS.js";import{D as dt}from"./delete-confirm-CwBSbfmS.js";import{v as rt}from"./index-CrTw1v2G.js";import{s as xi}from"./logo-BKA11TRi.js";import{u as yi}from"./useLocalStorage-BEs66pts.js";import{R as bi}from"./Refresh-D5HBHck5.js";import{L as vi}from"./LoadingButton-zyVJPqWL.js";import{C as ji,R as wi,P as ir}from"./rotate-session-key-D91iBAY4.js";import{A as Le}from"./Add-C-JGR7WX.js";import{B as or,D as yn}from"./status-RQRQdpaf.js";import{i as Ci}from"./is-path-prefix-equal-xOcqHaZi.js";import{N as Si}from"./ChevronRight-BhZK0m02.js";import{I as Di}from"./MoreVert-_f7HjK7U.js";import{E as ar}from"./Edit-qr4VAp95.js";import{A as ki}from"./CallMerge-BG9sfWb7.js";import{C as Ri}from"./CardContent-Brh_eQ9r.js";import{S as Ti}from"./Slider-8UJs62jS.js";import"./Switch-B-0geYaG.js";import"./FilterList-C5IPtX8B.js";import"./CSSTransition-CEGsXFa4.js";import"./emotion-cache.browser.esm-2hka6KsY.js";import"./index-CF-9tLrO.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-DMHly6fz.js";import"./index-luUossMM.js";import"./TableSearch-B-T4xf1Y.js";import"./Search-BJ29HaSB.js";import"./Clear-BgmnunuK.js";import"./click-to-copy-BJD4pP2S.js";import"./visuallyHidden-Dan1xhjv.js";const Ei=je(e.jsx("path",{d:"m7 14 5-5 5 5z"})),_i=je(e.jsx("path",{d:"M12 3 2 21h20zm1 5.92L18.6 19H13zm-2 0V19H5.4z"})),Pi=je(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),sr=je(e.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),Ai=je(e.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"})),Ii=je(e.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"})),Li=je(e.jsx("path",{d:"m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9z"})),ye="Dashboard",lr=h.createContext({}),{Provider:Oi,Consumer:as}=lr,bn=[ye,k.DOMAIN_FOR_IP_SITE,k.DOMAIN_FOR_IP_SITE_REGEXP],Fi=(t,r)=>{if(t.name===k.DOMAIN_FOR_DEFAULT_SITE)return-1;if(r.name===k.DOMAIN_FOR_DEFAULT_SITE)return 1;const n=bn.includes(t.name),i=bn.includes(r.name);return n&&i?sn(t.name,r.name):n?-1:i?1:sn(t.name,r.name)},Ni=({sites:t,nodePort:r})=>{const n=window.location.hostname,a=(t||[]).map(o=>{const{id:s,rules:u=[],corsAllowedOrigins:m=[]}=o;let{domain:d,domainAliases:c}=o;c=c||[],[k.DOMAIN_FOR_IP_SITE,k.DOMAIN_FOR_IP_SITE_REGEXP].includes(d)&&(d=ye,c.find(x=>x.value===n)||c.unshift({protected:!1,value:n}));const w={id:s,name:d,type:"domain",items:[],domainAliases:c,isProtected:o.isProtected,corsAllowedOrigins:m};return(u||[]).forEach(x=>{const{id:C,isProtected:E,from:{pathPrefix:j},to:D}=x;if(D.type===k.ROUTING_RULE_TYPES.BLOCKLET){let S="";Number.parseInt(D.port,10)===Number.parseInt(r,10)?(S="Blocklet Server Dashboard",D.type=k.ROUTING_RULE_TYPES.DAEMON):S=D.did,w.items.push({id:C,name:an(j||"/"),title:S,type:"rule",isProtected:E,pathPrefix:j,to:D})}else w.items.push({id:C,pathPrefix:j,name:an(j||"/"),title:"Blocklet Server Dashboard",type:"rule",isProtected:E,to:D})}),w.items=Hn(w.items,x=>x.name),w}).sort(Fi),l=a.reduce((o,s)=>{let{name:u}=s;return u.endsWith(k.BLOCKLET_SITE_GROUP_SUFFIX)&&([u]=u.split(".")),o[u]={...s,rules:s.items},o},{});return{sites:a,siteMap:l}},$i=({did:t,domain:r,mountPoint:n,siteMap:i,params:a}={})=>{if(!i)return null;const l=i[t];if(!l)return null;const o=r||(l.domainAliases||[])[0];if(!o)return null;let s=n;if(!s){const u=l.rules.filter(m=>!m.name.startsWith(k.WELLKNOWN_PATH_PREFIX))[0];s=u?u.name:"/"}return et(o.value,s,a)},Ui=({did:t,mountPoint:r,siteMap:n,params:i}={})=>{if(!n)return[];const a=n[t];if(!a)return[];const l=a.domainAliases||[];if(!l.length)return[];let o=r;if(!o){const s=a.rules.filter(u=>!u.name.startsWith(k.WELLKNOWN_PATH_PREFIX))[0];o=s?s.name:"/"}return l.map(s=>et(s.value,o,i))},zi=t=>{const r=t.map(i=>i.domain).filter(i=>![k.DOMAIN_FOR_IP_SITE_REGEXP,k.DOMAIN_FOR_DEFAULT_SITE].includes(i));let n=[];return t.forEach(i=>n.push(...i.domainAliases||[])),n=n.map(i=>typeof i=="string"?{value:i,isProtected:!1}:i),{domains:r,domainsAliases:n}};function vn({children:t}){const{api:r,info:n}=Q(),[i,a]=h.useState([]),[l,o]=h.useState([]),[s,u]=h.useState([]),m=Fe(async()=>{const{sites:_}=await r.getRoutingSites({input:{snapshotHash:""}}),v=_||[];await Promise.all(v.map(async g=>(g.domainAliases=await $r(g.domainAliases,{getIP:Ur}),g)));const f=zi(v);a(v),o(f.domains),u([window.location.hostname,...f.domains,...f.domainsAliases.map(g=>g.value)])},[n]),d=(_,v)=>{a(f=>f.map(g=>g.id===_?v.domain?v:{...v,domain:g.domain}:g))},c=_=>r.takeRoutingSnapshot({input:{dryRun:!1,message:encodeURIComponent(_)}}),w=async _=>{const v=await r.addRoutingSite({input:_});a(i.concat(v.site))},x=async(_,v)=>{const f=await r.updateRoutingSite({input:{id:_,...v}});if(f.site&&f.site.id){const g=i.findIndex(R=>R.id===f.site.id);g!==-1&&(i.splice(g,1,f.site),a([].concat(i)))}},C=async _=>{await r.deleteRoutingSite({input:{id:_}}),a(i.filter(v=>v.id!==_))},E=async(_,v,f)=>{const g=await r.addDomainAlias({input:{id:_,domainAlias:v,force:f}});d(_,g.site)},j=async(_,v)=>{const f=await r.deleteDomainAlias({input:{id:_,domainAlias:v}});d(_,f.site)},D=async(_,v)=>{const{site:f}=await r.addRoutingRule({input:{id:_,rule:v}});d(_,f)},S=async(_,v)=>{const{site:f}=await r.updateRoutingRule({input:{id:_,rule:v}});d(_,f)},b=async(_,v)=>{const{site:f}=await r.deleteRoutingRule({input:{id:_,ruleId:v}});d(_,f)},y={loading:m.loading,error:m.error,refresh:m.retry,api:r,actions:{addSite:w,updateSite:x,deleteSite:C,addDomainAlias:E,deleteDomainAlias:j,takeSnapshot:c,addRule:D,updateRule:S,deleteRule:b}},{sites:L,siteMap:F}=Ni({sites:i,nodePort:n.port});return y.sites=L,y.siteMap=F,y.domains=l,y.allDomains=s,y.getBlockletUrl=({did:_,domain:v,mountPoint:f,params:g})=>$i({did:_,domain:v,mountPoint:f,siteMap:y.siteMap,params:g}),y.getBlockletUrls=({did:_,mountPoint:v,params:f})=>Ui({did:_,mountPoint:v,siteMap:y.siteMap,params:f}),e.jsx(Oi,{value:{routing:y},children:t})}function de(){const{routing:t}=h.useContext(lr);return t}function Yt(t){const r=[k.DOMAIN_FOR_IP_SITE_REGEXP,k.DOMAIN_FOR_DEFAULT_SITE,k.DOMAIN_FOR_IP_SITE];return typeof window<"u"&&typeof window.location<"u"&&r.push(window.location.hostname),r.includes(t)}function Bi(){return null}function cr({confirm:t=null}){const[r,n]=h.useState(null),{t:i}=z(),a=()=>{n(null)},l=async s=>{if(s){let u=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";u==="/"?ln.push(`${s.pathname}`):(u.endsWith("/")&&(u=u.substring(0,u.length-1)),ln.push(`${u}${s.pathname}`)),window.location.reload()}},o=(s,...u)=>{let m=typeof t=="function"?t(s,...u):t;return m?(typeof m=="string"&&(m={description:m}),n({title:i("common.noticeTitle"),description:i("common.leavePageTip"),confirm:i("common.confirm"),cancel:i("common.cancel"),onConfirm:()=>l(s),onCancel:()=>a(),...m}),!1):!0};return e.jsxs(Mi,{children:[e.jsx(Bi,{message:o}),r&&e.jsx(le,{title:r.title,description:r.description,confirm:r.confirm,cancel:r.cancel,params:r.params,onConfirm:r.onConfirm,onCancel:r.onCancel})]})}cr.propTypes={confirm:p.oneOfType([p.object,p.string,p.func])};const Mi=ne.div`
1
+ import{aG as je,j as e,u as Q,r as h,e as Fe,aH as $r,E as k,aI as Ur,aJ as an,aK as Hn,aL as sn,aM as et,m as z,ad as le,s as ne,aN as ln,o as p,aO as zr,aP as cn,aQ as Br,H as ae,O as dn,T as A,t as q,az as fe,aR as Pe,C as K,X as be,v as V,aS as Gn,Y as ge,N as W,g as Mt,P as tt,aT as Mr,d as Wt,aU as Ie,aV as me,aa as Wr,aW as qr,aX as Hr,y as Gr,A as Kn,W as un,h as mn,i as te,aY as qt,a as Et,U as X,b as ct,aZ as Yn,a_ as Vn,V as Xn,a4 as _t,a$ as Kr,b0 as Yr,b1 as Vr,b2 as Xr,b3 as nt,J as Qr,b4 as Zr,aF as Ge,b5 as Jr,a9 as jt,a6 as wt,b6 as ei,a7 as Pt,L as Ht,K as ti,b7 as ni,b8 as Qn,a8 as ri,b9 as Zn,ba as De,bb as ke,bc as ii,bd as Gt,be as oi,$ as Jn,D as At,f as er,bf as ai,bg as fn,ak as si,bh as li,bi as ee,bj as ci,S as pn,p as gn,l as hn,bk as di,bl as ui,bm as mi}from"./index-C4mOfCm_.js";import{T as fi}from"./index-DkZ-t39O.js";import{A as pi}from"./ArrowDropDown-BS9tp8MS.js";import{u as Kt,C as B,a as xn}from"./index.esm-DNwQmbRZ.js";import{S as oe}from"./switch-control-BvELbAm3.js";import{P as re}from"./permission-CAwWHgKo.js";import{H as tr,g as gi}from"./index-EO2zxFAb.js";import{A as nr}from"./Link-BRz6zIZp.js";import{D as ve,R as rr,a as It,b as hi,W as Ke}from"./url-evaluation-CNPtf5Sl.js";import{D as dt}from"./delete-confirm-BMlllWsg.js";import{v as rt}from"./index-Aeyu2TZE.js";import{s as xi}from"./logo-BKA11TRi.js";import{u as yi}from"./useLocalStorage-BTzsh1Lj.js";import{R as bi}from"./Refresh-DfIM0DIk.js";import{L as vi}from"./LoadingButton-BnL-MknW.js";import{C as ji,R as wi,P as ir}from"./rotate-session-key-IpOZAFU_.js";import{A as Le}from"./Add-3_OvaFrP.js";import{B as or,D as yn}from"./status-YKpSQSD8.js";import{i as Ci}from"./is-path-prefix-equal-H7FSCLy3.js";import{N as Si}from"./ChevronRight-BgqwQ3It.js";import{I as Di}from"./MoreVert-L8j8_EPz.js";import{E as ar}from"./Edit-BQ0nYDQE.js";import{A as ki}from"./CallMerge-F8oCB8nE.js";import{C as Ri}from"./CardContent-Cqmek5wY.js";import{S as Ti}from"./Slider-ClGXzRor.js";import"./Switch-MO_QYoYi.js";import"./FilterList-BZwgYvWc.js";import"./CSSTransition-KO9L5iBp.js";import"./emotion-cache.browser.esm-B0z8ZzTf.js";import"./index-TN8GUnjq.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-CgwmaLj6.js";import"./index-BeHzPQZj.js";import"./TableSearch-DFzxfreZ.js";import"./Search-DhxCIV3r.js";import"./Clear-DMvY-1OH.js";import"./click-to-copy-C9lDYNLy.js";import"./visuallyHidden-Dan1xhjv.js";const Ei=je(e.jsx("path",{d:"m7 14 5-5 5 5z"})),_i=je(e.jsx("path",{d:"M12 3 2 21h20zm1 5.92L18.6 19H13zm-2 0V19H5.4z"})),Pi=je(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),sr=je(e.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),Ai=je(e.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"})),Ii=je(e.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"})),Li=je(e.jsx("path",{d:"m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9z"})),ye="Dashboard",lr=h.createContext({}),{Provider:Oi,Consumer:as}=lr,bn=[ye,k.DOMAIN_FOR_IP_SITE,k.DOMAIN_FOR_IP_SITE_REGEXP],Fi=(t,r)=>{if(t.name===k.DOMAIN_FOR_DEFAULT_SITE)return-1;if(r.name===k.DOMAIN_FOR_DEFAULT_SITE)return 1;const n=bn.includes(t.name),i=bn.includes(r.name);return n&&i?sn(t.name,r.name):n?-1:i?1:sn(t.name,r.name)},Ni=({sites:t,nodePort:r})=>{const n=window.location.hostname,a=(t||[]).map(o=>{const{id:s,rules:u=[],corsAllowedOrigins:m=[]}=o;let{domain:d,domainAliases:c}=o;c=c||[],[k.DOMAIN_FOR_IP_SITE,k.DOMAIN_FOR_IP_SITE_REGEXP].includes(d)&&(d=ye,c.find(x=>x.value===n)||c.unshift({protected:!1,value:n}));const w={id:s,name:d,type:"domain",items:[],domainAliases:c,isProtected:o.isProtected,corsAllowedOrigins:m};return(u||[]).forEach(x=>{const{id:C,isProtected:E,from:{pathPrefix:j},to:D}=x;if(D.type===k.ROUTING_RULE_TYPES.BLOCKLET){let S="";Number.parseInt(D.port,10)===Number.parseInt(r,10)?(S="Blocklet Server Dashboard",D.type=k.ROUTING_RULE_TYPES.DAEMON):S=D.did,w.items.push({id:C,name:an(j||"/"),title:S,type:"rule",isProtected:E,pathPrefix:j,to:D})}else w.items.push({id:C,pathPrefix:j,name:an(j||"/"),title:"Blocklet Server Dashboard",type:"rule",isProtected:E,to:D})}),w.items=Hn(w.items,x=>x.name),w}).sort(Fi),l=a.reduce((o,s)=>{let{name:u}=s;return u.endsWith(k.BLOCKLET_SITE_GROUP_SUFFIX)&&([u]=u.split(".")),o[u]={...s,rules:s.items},o},{});return{sites:a,siteMap:l}},$i=({did:t,domain:r,mountPoint:n,siteMap:i,params:a}={})=>{if(!i)return null;const l=i[t];if(!l)return null;const o=r||(l.domainAliases||[])[0];if(!o)return null;let s=n;if(!s){const u=l.rules.filter(m=>!m.name.startsWith(k.WELLKNOWN_PATH_PREFIX))[0];s=u?u.name:"/"}return et(o.value,s,a)},Ui=({did:t,mountPoint:r,siteMap:n,params:i}={})=>{if(!n)return[];const a=n[t];if(!a)return[];const l=a.domainAliases||[];if(!l.length)return[];let o=r;if(!o){const s=a.rules.filter(u=>!u.name.startsWith(k.WELLKNOWN_PATH_PREFIX))[0];o=s?s.name:"/"}return l.map(s=>et(s.value,o,i))},zi=t=>{const r=t.map(i=>i.domain).filter(i=>![k.DOMAIN_FOR_IP_SITE_REGEXP,k.DOMAIN_FOR_DEFAULT_SITE].includes(i));let n=[];return t.forEach(i=>n.push(...i.domainAliases||[])),n=n.map(i=>typeof i=="string"?{value:i,isProtected:!1}:i),{domains:r,domainsAliases:n}};function vn({children:t}){const{api:r,info:n}=Q(),[i,a]=h.useState([]),[l,o]=h.useState([]),[s,u]=h.useState([]),m=Fe(async()=>{const{sites:_}=await r.getRoutingSites({input:{snapshotHash:""}}),v=_||[];await Promise.all(v.map(async g=>(g.domainAliases=await $r(g.domainAliases,{getIP:Ur}),g)));const f=zi(v);a(v),o(f.domains),u([window.location.hostname,...f.domains,...f.domainsAliases.map(g=>g.value)])},[n]),d=(_,v)=>{a(f=>f.map(g=>g.id===_?v.domain?v:{...v,domain:g.domain}:g))},c=_=>r.takeRoutingSnapshot({input:{dryRun:!1,message:encodeURIComponent(_)}}),w=async _=>{const v=await r.addRoutingSite({input:_});a(i.concat(v.site))},x=async(_,v)=>{const f=await r.updateRoutingSite({input:{id:_,...v}});if(f.site&&f.site.id){const g=i.findIndex(R=>R.id===f.site.id);g!==-1&&(i.splice(g,1,f.site),a([].concat(i)))}},C=async _=>{await r.deleteRoutingSite({input:{id:_}}),a(i.filter(v=>v.id!==_))},E=async(_,v,f)=>{const g=await r.addDomainAlias({input:{id:_,domainAlias:v,force:f}});d(_,g.site)},j=async(_,v)=>{const f=await r.deleteDomainAlias({input:{id:_,domainAlias:v}});d(_,f.site)},D=async(_,v)=>{const{site:f}=await r.addRoutingRule({input:{id:_,rule:v}});d(_,f)},S=async(_,v)=>{const{site:f}=await r.updateRoutingRule({input:{id:_,rule:v}});d(_,f)},b=async(_,v)=>{const{site:f}=await r.deleteRoutingRule({input:{id:_,ruleId:v}});d(_,f)},y={loading:m.loading,error:m.error,refresh:m.retry,api:r,actions:{addSite:w,updateSite:x,deleteSite:C,addDomainAlias:E,deleteDomainAlias:j,takeSnapshot:c,addRule:D,updateRule:S,deleteRule:b}},{sites:L,siteMap:F}=Ni({sites:i,nodePort:n.port});return y.sites=L,y.siteMap=F,y.domains=l,y.allDomains=s,y.getBlockletUrl=({did:_,domain:v,mountPoint:f,params:g})=>$i({did:_,domain:v,mountPoint:f,siteMap:y.siteMap,params:g}),y.getBlockletUrls=({did:_,mountPoint:v,params:f})=>Ui({did:_,mountPoint:v,siteMap:y.siteMap,params:f}),e.jsx(Oi,{value:{routing:y},children:t})}function de(){const{routing:t}=h.useContext(lr);return t}function Yt(t){const r=[k.DOMAIN_FOR_IP_SITE_REGEXP,k.DOMAIN_FOR_DEFAULT_SITE,k.DOMAIN_FOR_IP_SITE];return typeof window<"u"&&typeof window.location<"u"&&r.push(window.location.hostname),r.includes(t)}function Bi(){return null}function cr({confirm:t=null}){const[r,n]=h.useState(null),{t:i}=z(),a=()=>{n(null)},l=async s=>{if(s){let u=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";u==="/"?ln.push(`${s.pathname}`):(u.endsWith("/")&&(u=u.substring(0,u.length-1)),ln.push(`${u}${s.pathname}`)),window.location.reload()}},o=(s,...u)=>{let m=typeof t=="function"?t(s,...u):t;return m?(typeof m=="string"&&(m={description:m}),n({title:i("common.noticeTitle"),description:i("common.leavePageTip"),confirm:i("common.confirm"),cancel:i("common.cancel"),onConfirm:()=>l(s),onCancel:()=>a(),...m}),!1):!0};return e.jsxs(Mi,{children:[e.jsx(Bi,{message:o}),r&&e.jsx(le,{title:r.title,description:r.description,confirm:r.confirm,cancel:r.cancel,params:r.params,onConfirm:r.onConfirm,onCancel:r.onCancel})]})}cr.propTypes={confirm:p.oneOfType([p.object,p.string,p.func])};const Mi=ne.div`
2
2
  margin-bottom: 24px;
3
3
  .top-btns-alert {
4
4
  @media (max-width: ${t=>t.theme.breakpoints.values.sm}px) {
@@ -1,4 +1,4 @@
1
- import{aG as v,j as t,N as a,dc as w,m as z,f as p,dh as E}from"./index-_8oRZcHP.js";const I=v(t.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m4.3 14.3c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0a.996.996 0 0 1 0-1.41L10.59 12 7.7 9.11a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l2.89-2.89c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41"}));function r({icon:e=null,title:n="",description:o="",extra:b=null,...y}){return t.jsxs(P,{...y,children:[e,typeof n=="string"?t.jsx(a,{sx:{mt:3,fontSize:22,fontWeight:400,color:"#47494E",textAlign:"center"},children:n}):n,typeof o=="string"?t.jsx(a,{sx:{mt:1,fontSize:14,color:"#7F828B",textAlign:"center"},children:o}):o,t.jsx(a,{sx:{mt:3},children:b})]})}const P=w("div")`
1
+ import{aG as v,j as t,N as a,dc as w,m as z,f as p,dh as E}from"./index-C4mOfCm_.js";const I=v(t.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m4.3 14.3c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0a.996.996 0 0 1 0-1.41L10.59 12 7.7 9.11a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l2.89-2.89c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41"}));function r({icon:e=null,title:n="",description:o="",extra:b=null,...y}){return t.jsxs(P,{...y,children:[e,typeof n=="string"?t.jsx(a,{sx:{mt:3,fontSize:22,fontWeight:400,color:"#47494E",textAlign:"center"},children:n}):n,typeof o=="string"?t.jsx(a,{sx:{mt:1,fontSize:14,color:"#7F828B",textAlign:"center"},children:o}):o,t.jsx(a,{sx:{mt:3},children:b})]})}const P=w("div")`
2
2
  box-sizing: border-box;
3
3
  display: flex;
4
4
  flex-direction: column;