@abtnode/blocklet-services 1.17.8 → 1.17.9

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 (128) hide show
  1. package/dist/assets/{Google-CG1lv5ol.js → Google-BpkBLSiL.js} +1 -1
  2. package/dist/assets/{access-control-CWoVUHgh.js → access-control-BIhY5wfd.js} +1 -1
  3. package/dist/assets/{actions-rfPaFLCj.js → actions-Cqfaor6G.js} +1 -1
  4. package/dist/assets/{add-component-core-D0UktG5E.js → add-component-core-B8HzULLJ.js} +1 -1
  5. package/dist/assets/{add-resource-B7lRLkA_.js → add-resource-CEddRkJz.js} +1 -1
  6. package/dist/assets/{advanced-ymKehsrI.js → advanced-DkQUAOtW.js} +1 -1
  7. package/dist/assets/{aigne-yDpeUg7z.js → aigne-BXMpb7iF.js} +1 -1
  8. package/dist/assets/{appearance-CG-6r2py.js → appearance-xmocGS9K.js} +1 -1
  9. package/dist/assets/{audit-logs-C-OsN7ub.js → audit-logs-BJPoC3sp.js} +1 -1
  10. package/dist/assets/{authorize-DjikDURs.js → authorize-CeTEulz5.js} +1 -1
  11. package/dist/assets/{base32-BFSrw7-h.js → base32-Cx5Qjcq5.js} +1 -1
  12. package/dist/assets/{bind-account-BVdU9BOU.js → bind-account-Dpc4iwR3.js} +1 -1
  13. package/dist/assets/{branding-D6MicIet.js → branding-Bz1ajNEX.js} +1 -1
  14. package/dist/assets/{branding-C42_zeHW.js → branding-OeU_TRNz.js} +1 -1
  15. package/dist/assets/{branding-CqLoLW7D.js → branding-vz6onXUa.js} +1 -1
  16. package/dist/assets/{bundle-avatar-7Wt_FbiF.js → bundle-avatar-CQ5BcuIS.js} +1 -1
  17. package/dist/assets/{complete-ziHMeIgC.js → complete-RloCU6Dp.js} +1 -1
  18. package/dist/assets/{component-Djqgi00F.js → component-Cjmzo-fv.js} +2 -2
  19. package/dist/assets/{config-Bko_B6fT.js → config-Bb4cFHRC.js} +1 -1
  20. package/dist/assets/{config-BQiW0tZA.js → config-CJmL1lNg.js} +1 -1
  21. package/dist/assets/{config-navigation-BwAXHqA4.js → config-navigation-CV6BVvIo.js} +2 -2
  22. package/dist/assets/{config-DtX2hGRq.js → config-rELfdDu6.js} +1 -1
  23. package/dist/assets/{config-space-DMk4apM9.js → config-space-CjtdFXkd.js} +1 -1
  24. package/dist/assets/{confirm-BMWka5pp.js → confirm-DhDNorbd.js} +1 -1
  25. package/dist/assets/{connect-D7P92kCs.js → connect-DrvWw6WK.js} +1 -1
  26. package/dist/assets/{connect-BP5XU00d.js → connect-J76vh4nC.js} +1 -1
  27. package/dist/assets/{connect-CzwZd1QL.js → connect-pvi_9C1U.js} +1 -1
  28. package/dist/assets/{connect-to-D5tNZXTo.js → connect-to-BRIhV6_s.js} +1 -1
  29. package/dist/assets/{dashboard-BZs_YRr4.js → dashboard-OrVG8J2E.js} +2 -2
  30. package/dist/assets/{delete-confirm-CwOFci6r.js → delete-confirm-C0N4quT9.js} +1 -1
  31. package/dist/assets/{domain-CvkFdrHE.js → domain-DRBQmuep.js} +1 -1
  32. package/dist/assets/{domain-action-card-D9LF4Rpy.js → domain-action-card-BXg1GQv4.js} +1 -1
  33. package/dist/assets/{domains-BeQB_OAv.js → domains-ClxiW6KS.js} +1 -1
  34. package/dist/assets/{email-DmH_Ukt2.js → email-QHwvdq0F.js} +1 -1
  35. package/dist/assets/engine-BmJsBu5Z.js +1 -0
  36. package/dist/assets/{exchange-passport-CidDSOuv.js → exchange-passport-_nLFQuN2.js} +1 -1
  37. package/dist/assets/{federated-detail-dialog-CkIKuPwA.js → federated-detail-dialog-B3FXukx8.js} +1 -1
  38. package/dist/assets/{form-DwiizKm1.js → form-BEZi0to4.js} +1 -1
  39. package/dist/assets/{fuel-D1KEpJ7m.js → fuel-D3ouL-7h.js} +1 -1
  40. package/dist/assets/{gen-access-key-rsAO4mAP.js → gen-access-key-DDpUJQ6-.js} +1 -1
  41. package/dist/assets/{gen-simple-access-key-DGcsvu3t.js → gen-simple-access-key-BTB-PYVK.js} +1 -1
  42. package/dist/assets/{get-safe-url-C1Ml6qBb.js → get-safe-url-uxJSMQTF.js} +1 -1
  43. package/dist/assets/{home-DKIZCHrI.js → home-BuvlMo1H.js} +1 -1
  44. package/dist/assets/{iframe-eNnbtEC_.js → iframe-CVEnFycA.js} +1 -1
  45. package/dist/assets/{index-DliNbpRr.js → index--yN2lwQm.js} +1 -1
  46. package/dist/assets/{index-BDz_o8O7.js → index-8APBdkv_.js} +1 -1
  47. package/dist/assets/{index-BVgxwS3B.js → index-BLYrVxV3.js} +1 -1
  48. package/dist/assets/{index-3rd8tEjJ.js → index-BLi7-52u.js} +1 -1
  49. package/dist/assets/{index-CPwDD0Vr.js → index-BaK_cJO7.js} +1 -1
  50. package/dist/assets/{index-B4YwAnux.js → index-Bz8EYhmA.js} +1 -1
  51. package/dist/assets/{index-DtobDjZ_.js → index-C0ZPC8OS.js} +1 -1
  52. package/dist/assets/{index-BjD8juw_.js → index-C2_MQP4T.js} +1 -1
  53. package/dist/assets/{index-BKqykGJ0.js → index-C2jYGrXX.js} +1 -1
  54. package/dist/assets/{index-ChjBQq8c.js → index-C9rUhDwd.js} +1 -1
  55. package/dist/assets/{index-fulV4VYn.js → index-CBR-Vn-z.js} +1 -1
  56. package/dist/assets/{index-BqN4XYa3.js → index-CEH7q22l.js} +1 -1
  57. package/dist/assets/{index-QkGGubJA.js → index-CNX69Q5e.js} +1 -1
  58. package/dist/assets/{index-qy92cIq_.js → index-CUa0qHck.js} +1 -1
  59. package/dist/assets/{index-DPBkkhMC.js → index-CZWagtq4.js} +1 -1
  60. package/dist/assets/{index-C_8V6Zdm.js → index-C_LVs1QE.js} +1 -1
  61. package/dist/assets/{index-CRVOCdMR.js → index-CbgqxO1V.js} +1 -1
  62. package/dist/assets/{index-BgdIPmn8.js → index-CeSwZI3Q.js} +1 -1
  63. package/dist/assets/{index-DOtXGGiB.js → index-CeaSaqPE.js} +1 -1
  64. package/dist/assets/{index-DcM4ljaV.js → index-CgSpL7jz.js} +4 -4
  65. package/dist/assets/{index-dA_JPQDw.js → index-CiGaRVW9.js} +1 -1
  66. package/dist/assets/{index-6ovPLp0y.js → index-D0mTUcjJ.js} +2 -2
  67. package/dist/assets/{index-BtpVtm9d.js → index-DI80KOep.js} +1 -1
  68. package/dist/assets/{index-EZZK7Nyo.js → index-DwaBdfGv.js} +3 -3
  69. package/dist/assets/{index-CEsBpdP3.js → index-DzOChX1R.js} +1 -1
  70. package/dist/assets/{index-rwBbhEdR.js → index-WAnZs-pf.js} +1 -1
  71. package/dist/assets/{index-DjpY9R14.js → index-_llkmI7F.js} +1 -1
  72. package/dist/assets/{index-t0K-45aJ.js → index-k0OLPTEM.js} +1 -1
  73. package/dist/assets/{info-outline-rounded-CxbBCZbx.js → info-outline-rounded-CmLwPXzn.js} +1 -1
  74. package/dist/assets/{invitation-tRY9vnXE.js → invitation-CcqRXA0x.js} +1 -1
  75. package/dist/assets/{invitations-Db5hitbJ.js → invitations-Rtn4ZgkA.js} +1 -1
  76. package/dist/assets/{invite-FhylBBBB.js → invite-BVCWrw1u.js} +1 -1
  77. package/dist/assets/{issue-passport-BMFNH3nj.js → issue-passport-D9KC0G_A.js} +1 -1
  78. package/dist/assets/{item-CHfrpFLz.js → item-Cno3GsuG.js} +1 -1
  79. package/dist/assets/{layout-ej-JNJCP.js → layout-DkUZePxy.js} +1 -1
  80. package/dist/assets/{list-CIMWgr08.js → list-BaZEqvv_.js} +1 -1
  81. package/dist/assets/{list-DX9meaEq.js → list-qpUoyhan.js} +1 -1
  82. package/dist/assets/{localization-DJF_aQrB.js → localization-VWhLouBc.js} +1 -1
  83. package/dist/assets/{log-C-XJlJmX.js → log-CGsJ5N6b.js} +1 -1
  84. package/dist/assets/{login-WWa0obto.js → login-BUZAiJi7.js} +1 -1
  85. package/dist/assets/{login-oauth-callback-558tm7Kk.js → login-oauth-callback-D7IVWJCK.js} +1 -1
  86. package/dist/assets/{logo-uploader-C_AnxhNP.js → logo-uploader-CEZXDf8O.js} +1 -1
  87. package/dist/assets/{lost-passport-DauVMfLO.js → lost-passport-BShdkOY2.js} +1 -1
  88. package/dist/assets/{metadata-CbEG9b2n.js → metadata-iEUnwzkK.js} +1 -1
  89. package/dist/assets/{open-window-hkynwoL5.js → open-window-CKutfNqx.js} +1 -1
  90. package/dist/assets/{over-due-invoice-payment-CPLJV5KG.js → over-due-invoice-payment-D6491JHf.js} +1 -1
  91. package/dist/assets/{overview-JVbZ7hCB.js → overview-ns7CHx6H.js} +1 -1
  92. package/dist/assets/{passport-bxIQRuHM.js → passport-2AVRJTQK.js} +1 -1
  93. package/dist/assets/{passport-item-C7svpOMT.js → passport-item-CeYGFFGn.js} +1 -1
  94. package/dist/assets/{permission-CiRkLVwn.js → permission-C2bdzuoM.js} +1 -1
  95. package/dist/assets/{preferences-DgvuFkNS.js → preferences-Bm3lpvWM.js} +1 -1
  96. package/dist/assets/{profile-embed-DyHkusY5.js → profile-embed-CBiaNgfm.js} +1 -1
  97. package/dist/assets/{publish-resource-DqQSmKCy.js → publish-resource-Cb8cFftb.js} +1 -1
  98. package/dist/assets/{runtime-OuwOSzER.js → runtime-W3sVCToB.js} +1 -1
  99. package/dist/assets/sdk-CuoW9qgj.js +1 -0
  100. package/dist/assets/{security-DwWYfqfY.js → security-FuAWjgqg.js} +1 -1
  101. package/dist/assets/{session-D6Z4R7oi.js → session-BEf_KK-i.js} +1 -1
  102. package/dist/assets/{setup-N7vDP87_.js → setup-BUrG-d2H.js} +1 -1
  103. package/dist/assets/{spaces-B8t2gKsu.js → spaces-DiyZ082O.js} +1 -1
  104. package/dist/assets/{start-D0WlW7li.js → start-Rwj2OQ5m.js} +1 -1
  105. package/dist/assets/{starting-progress--6NzzPU1.js → starting-progress-s-XqSluO.js} +1 -1
  106. package/dist/assets/{status-DI89bjlc.js → status-CTDbw135.js} +1 -1
  107. package/dist/assets/{step-actions-D0ooBDiZ.js → step-actions-Ezqn_AMv.js} +1 -1
  108. package/dist/assets/{studio-fGrv4L1C.js → studio-CYIn9aNz.js} +1 -1
  109. package/dist/assets/{team-sypU8pIA.js → team-Bso_Sjaa.js} +1 -1
  110. package/dist/assets/{traffic-CB937Mlw.js → traffic-BqxYiIWh.js} +1 -1
  111. package/dist/assets/{transfer-C29v213E.js → transfer-OPn3RlKK.js} +1 -1
  112. package/dist/assets/{unsubscribe-D4mqt-ru.js → unsubscribe-CdltWhMv.js} +1 -1
  113. package/dist/assets/{use-app-logo-Dt5Rf_oh.js → use-app-logo-DcBQK--f.js} +1 -1
  114. package/dist/assets/{user-center-BNVLcFuw.js → user-center-Bc5-qHT9.js} +2 -2
  115. package/dist/assets/{user-follower-BF8dghPj.js → user-follower-D8zGIprF.js} +1 -1
  116. package/dist/assets/{util-BKm61knf.js → util-CIgNPQhV.js} +1 -1
  117. package/dist/assets/{util-C7ejGMZd.js → util-Cz5-V-1E.js} +1 -1
  118. package/dist/assets/{utils-yU0z64Pf.js → utils-CWRBZd9l.js} +1 -1
  119. package/dist/assets/{wait-connect-B1z3SEpN.js → wait-connect-2CirehkG.js} +1 -1
  120. package/dist/assets/{wallet-hidden-topbar-SQtOXLKg.js → wallet-hidden-topbar-CZaZNW94.js} +1 -1
  121. package/dist/assets/{wizard-components-Dxf0c0dt.js → wizard-components-BwA5watz.js} +1 -1
  122. package/dist/assets/{wizard-DwUESHQa.js → wizard-xTNgKfB7.js} +1 -1
  123. package/dist/assets/{wrap-locale-Ck3xud_e.js → wrap-locale-AxlzuLIu.js} +1 -1
  124. package/dist/assets/{zh-oZCQbfAf.js → zh-BYHnQ2ca.js} +1 -1
  125. package/dist/index.html +1 -1
  126. package/package.json +23 -23
  127. package/dist/assets/engine-CvxZhwAf.js +0 -1
  128. package/dist/assets/sdk-BDbUPswI.js +0 -1
@@ -1 +1 @@
1
- import{y as s}from"./vendor-utils-_C9URqjS.js";import{b6 as a,b7 as e}from"./index-DcM4ljaV.js";import{af as t}from"./vendor-ux-PO0jFgJf.js";const c=o=>{const{response:r}=o;return r?`Request failed: ${r.status} ${r.statusText}: ${JSON.stringify(r.data)}`:o.message},g=o=>o.scope==="kyc"?a({...o,issuerAvatarUrl:s(window.location.origin,t,"/blocklet/logo"),type:o.role}):e({...o,issuerAvatarUrl:s(window.location.origin,t,"/blocklet/logo")});export{g,c as l};
1
+ import{y as s}from"./vendor-utils-_C9URqjS.js";import{b6 as a,b7 as e}from"./index-CgSpL7jz.js";import{af as t}from"./vendor-ux-PO0jFgJf.js";const c=o=>{const{response:r}=o;return r?`Request failed: ${r.status} ${r.statusText}: ${JSON.stringify(r.data)}`:o.message},g=o=>o.scope==="kyc"?a({...o,issuerAvatarUrl:s(window.location.origin,t,"/blocklet/logo"),type:o.role}):e({...o,issuerAvatarUrl:s(window.location.origin,t,"/blocklet/logo")});export{g,c as l};
@@ -1 +1 @@
1
- import{W as g}from"./index-DcM4ljaV.js";import{a3 as E}from"./vendor-ux-PO0jFgJf.js";import{b as y}from"./vendor-hooks-Ca2cSNuD.js";import{r as m}from"./vendor-react-DX7tU9aY.js";import{g as h}from"./get-safe-url-C1Ml6qBb.js";import{e as T}from"./vendor-utils-_C9URqjS.js";function $({messageType:n,onOpen:o,onClose:r}){const e=m.useRef(null),t=m.useRef(null),w=async s=>{setTimeout(()=>{try{r?.()}catch{}},10*1e3),e.current&&(clearInterval(t.current),e.current.close());const a=Math.random().toString(36).slice(2);e.current=window.open(`${g}/open-window?key=${a}`,"_blank"),o?.(e.current),t.current=setInterval(()=>{(!e.current||e.current.closed)&&(e.current=null,clearInterval(t.current),setTimeout(()=>{r?.()},1100))},200),await Promise.resolve(s(e.current,c=>{if(!e.current){localStorage.setItem(`open-window-url-${a}`,JSON.stringify({url:c,time:Date.now()}));return}e.current.location.href=h(c,{allowDomains:null})}))},i=y(s=>{const{type:a,error:c}=s.data;e.current&&a===n&&c&&(E.error(c),r?.())});return m.useEffect(()=>(window.addEventListener("message",i),()=>{window.removeEventListener("message",i)}),[i]),w}const u={};function b(n){u[n]&&(clearTimeout(u[n]),delete u[n])}async function l(n,{interval:o=1e3,maxDuration:r=120*1e3,intervalFirst:e=4e3,timerKey:t=""}){u[t]&&clearTimeout(u[t]),await new Promise(s=>setTimeout(s,e));const w=Date.now(),i=async(s,a)=>{try{const c=await n();s(c)}catch(c){Date.now()-w>r?a(c):t?u[t]=setTimeout(()=>i(s,a),o):setTimeout(()=>i(s,a),o)}};return new Promise(i)}function j(){return Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+`${Date.now()}`.slice(-6)}function v(n,{did:o,projectId:r,messageId:e}){return l(async()=>{const t=await n.getProject({input:{did:o,projectId:r,messageId:e}});if(!t?.project?.blockletDid)throw new Error("Connected store not found");return t.project.blockletDid},{timerKey:"connect-studio"})}function O(n,{did:o,projectId:r,storeId:e}){return l(async()=>{const t=await n.getProject({input:{did:o,projectId:r,messageId:""}});if(!t?.project?.connectedStores?.length)throw new Error("Connected store not found");if(!t.project.connectedStores.find(i=>i.storeId===e))throw new Error("Connected store not found")},{timerKey:`connect-store-${e}`})}function W(n,{did:o,projectId:r,endpointId:e}){return l(async()=>{const t=await n.getProject({input:{did:o,projectId:r,messageId:""}});if(!t?.project?.connectedEndpoints?.length)throw new Error("Connected endpoint not found");if(!t.project.connectedEndpoints.find(i=>i.endpointId===e))throw new Error("Connected endpoint not found")},{timerKey:`connect-store-${e}`})}function M(n,{did:o,refresh:r,t:e,providerName:t,values:w,timerKey:i}){return l(async()=>{const{blocklet:s}=await n.getBlocklet({input:{did:o}}),a=T(s,"settings.aigne",{}),{url:c,key:f,provider:p}=a||{},{key:d}=w;if(p==="aigneHub"){if(!c||!f)throw new Error(e("setting.aigne.connectTimeOut",{provider:t}));if(d&&d===f)throw new Error(e("setting.aigne.connectTimeOut",{provider:t}));await r(),clearTimeout(u[`connect-aigne-${o}`])}else{if(!d||d!==f)throw new Error(e("setting.aigne.connectTimeOut",{provider:t}));await r(),clearTimeout(u[`connect-aigne-${o}`])}},{timerKey:i,maxDuration:180*1e3})}export{j as a,v as b,b as c,O as d,W as e,$ as u,M as w};
1
+ import{W as g}from"./index-CgSpL7jz.js";import{a3 as E}from"./vendor-ux-PO0jFgJf.js";import{b as y}from"./vendor-hooks-Ca2cSNuD.js";import{r as m}from"./vendor-react-DX7tU9aY.js";import{g as h}from"./get-safe-url-uxJSMQTF.js";import{e as T}from"./vendor-utils-_C9URqjS.js";function $({messageType:n,onOpen:o,onClose:r}){const e=m.useRef(null),t=m.useRef(null),w=async s=>{setTimeout(()=>{try{r?.()}catch{}},10*1e3),e.current&&(clearInterval(t.current),e.current.close());const a=Math.random().toString(36).slice(2);e.current=window.open(`${g}/open-window?key=${a}`,"_blank"),o?.(e.current),t.current=setInterval(()=>{(!e.current||e.current.closed)&&(e.current=null,clearInterval(t.current),setTimeout(()=>{r?.()},1100))},200),await Promise.resolve(s(e.current,c=>{if(!e.current){localStorage.setItem(`open-window-url-${a}`,JSON.stringify({url:c,time:Date.now()}));return}e.current.location.href=h(c,{allowDomains:null})}))},i=y(s=>{const{type:a,error:c}=s.data;e.current&&a===n&&c&&(E.error(c),r?.())});return m.useEffect(()=>(window.addEventListener("message",i),()=>{window.removeEventListener("message",i)}),[i]),w}const u={};function b(n){u[n]&&(clearTimeout(u[n]),delete u[n])}async function l(n,{interval:o=1e3,maxDuration:r=120*1e3,intervalFirst:e=4e3,timerKey:t=""}){u[t]&&clearTimeout(u[t]),await new Promise(s=>setTimeout(s,e));const w=Date.now(),i=async(s,a)=>{try{const c=await n();s(c)}catch(c){Date.now()-w>r?a(c):t?u[t]=setTimeout(()=>i(s,a),o):setTimeout(()=>i(s,a),o)}};return new Promise(i)}function j(){return Math.random().toString(36).slice(2)+Math.random().toString(36).slice(2)+`${Date.now()}`.slice(-6)}function v(n,{did:o,projectId:r,messageId:e}){return l(async()=>{const t=await n.getProject({input:{did:o,projectId:r,messageId:e}});if(!t?.project?.blockletDid)throw new Error("Connected store not found");return t.project.blockletDid},{timerKey:"connect-studio"})}function O(n,{did:o,projectId:r,storeId:e}){return l(async()=>{const t=await n.getProject({input:{did:o,projectId:r,messageId:""}});if(!t?.project?.connectedStores?.length)throw new Error("Connected store not found");if(!t.project.connectedStores.find(i=>i.storeId===e))throw new Error("Connected store not found")},{timerKey:`connect-store-${e}`})}function W(n,{did:o,projectId:r,endpointId:e}){return l(async()=>{const t=await n.getProject({input:{did:o,projectId:r,messageId:""}});if(!t?.project?.connectedEndpoints?.length)throw new Error("Connected endpoint not found");if(!t.project.connectedEndpoints.find(i=>i.endpointId===e))throw new Error("Connected endpoint not found")},{timerKey:`connect-store-${e}`})}function M(n,{did:o,refresh:r,t:e,providerName:t,values:w,timerKey:i}){return l(async()=>{const{blocklet:s}=await n.getBlocklet({input:{did:o}}),a=T(s,"settings.aigne",{}),{url:c,key:f,provider:p}=a||{},{key:d}=w;if(p==="aigneHub"){if(!c||!f)throw new Error(e("setting.aigne.connectTimeOut",{provider:t}));if(d&&d===f)throw new Error(e("setting.aigne.connectTimeOut",{provider:t}));await r(),clearTimeout(u[`connect-aigne-${o}`])}else{if(!d||d!==f)throw new Error(e("setting.aigne.connectTimeOut",{provider:t}));await r(),clearTimeout(u[`connect-aigne-${o}`])}},{timerKey:i,maxDuration:180*1e3})}export{j as a,v as b,b as c,O as d,W as e,$ as u,M as w};
@@ -1,4 +1,4 @@
1
- import{G as te,j as f,al as G,I as Ce,Q as Ot,aj as qt,H as Ft,P as Nt,W as Dt,U as Ut,b$ as Ht,T as _,X as y,Z as zt,a0 as Bt,S as Wt,R as Pe,L as Qt,bb as ot,c0 as he,ap as Vt,bq as Zt,aT as H,ak as Gt,bM as Kt}from"./vendor-mui-core-CDEc-eG6.js";import{r as j,a as Jt}from"./vendor-react-DX7tU9aY.js";import{a4 as rt,aF as Yt,aG as Xt,aH as en,aI as tn,aD as nn,W as it,aJ as Ee,at as Me,ah as Re}from"./index-DcM4ljaV.js";import{g as on}from"./theme-mode-toggle-WRMGhjzA.js";import{ab as pe,bD as _e,af as st,bE as rn,bk as sn,bF as cn,a2 as an,bn as ct,bo as ln,as as at,bG as un,aa as dn,bm as fn,b4 as hn,aA as pn}from"./vendor-ux-PO0jFgJf.js";import{i as gn,b as K,a as T,s as mn,z as yn}from"./vendor-hooks-Ca2cSNuD.js";import{a8 as bn,F as ne,y as z,a as lt}from"./vendor-utils-_C9URqjS.js";import{u as xn}from"./use-mobile-DKWj9MJD.js";import{p as wn}from"./purify.es-HRjpPm7y.js";import{r as kn}from"./index-BVgxwS3B.js";function vn(e){try{return new URL(e).origin!==window.location.origin}catch{return!1}}function jn(e,n){try{if(!vn(e))return e;const t=bn(e),r={utm_source:window.location.hostname,utm_medium:`${n}_nav`,utm_campaign:"default",utm_content:new URL(e).hostname,...t};return ne(e,r)}catch(t){return console.error("Failed to generate UTM URL:",t),e}}const ut=Object.freeze({left:0,top:0,width:16,height:16}),J=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),B=Object.freeze({...ut,...J}),ge=Object.freeze({...B,body:"",hidden:!1}),Cn=Object.freeze({width:null,height:null}),dt=Object.freeze({...Cn,...J});function In(e,n=0){const t=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(t===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(t!==e){let o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-t.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return n}const Sn=/[\s,]+/;function Tn(e,n){n.split(Sn).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const ft={...dt,preserveAspectRatio:""};function Oe(e){const n={...ft},t=(r,o)=>e.getAttribute(r)||o;return n.width=t("width",null),n.height=t("height",null),n.rotate=In(t("rotate","")),Tn(n,t("flip","")),n.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),n}function $n(e,n){for(const t in ft)if(e[t]!==n[t])return!0;return!1}const q=/^[a-z0-9]+(-[a-z0-9]+)*$/,W=(e,n,t,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),a=o.pop(),l={provider:o.length>0?o[0]:r,prefix:a,name:s};return n&&!V(l)?null:l}const i=o[0],c=i.split("-");if(c.length>1){const s={provider:r,prefix:c.shift(),name:c.join("-")};return n&&!V(s)?null:s}if(t&&r===""){const s={provider:r,prefix:"",name:i};return n&&!V(s,t)?null:s}return null},V=(e,n)=>e?!!((e.provider===""||e.provider.match(q))&&(n&&e.prefix===""||e.prefix.match(q))&&e.name.match(q)):!1;function Ln(e,n){const t={};!e.hFlip!=!n.hFlip&&(t.hFlip=!0),!e.vFlip!=!n.vFlip&&(t.vFlip=!0);const r=((e.rotate||0)+(n.rotate||0))%4;return r&&(t.rotate=r),t}function qe(e,n){const t=Ln(e,n);for(const r in ge)r in J?r in e&&!(r in t)&&(t[r]=J[r]):r in n?t[r]=n[r]:r in e&&(t[r]=e[r]);return t}function An(e,n){const t=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(c){if(t[c])return o[c]=[];if(!(c in o)){o[c]=null;const s=r[c]&&r[c].parent,a=s&&i(s);a&&(o[c]=[s].concat(a))}return o[c]}return Object.keys(t).concat(Object.keys(r)).forEach(i),o}function Pn(e,n,t){const r=e.icons,o=e.aliases||Object.create(null);let i={};function c(s){i=qe(r[s]||o[s],i)}return c(n),t.forEach(c),qe(e,i)}function ht(e,n){const t=[];if(typeof e!="object"||typeof e.icons!="object")return t;e.not_found instanceof Array&&e.not_found.forEach(o=>{n(o,null),t.push(o)});const r=An(e);for(const o in r){const i=r[o];i&&(n(o,Pn(e,o,i)),t.push(o))}return t}const En={provider:"",aliases:{},not_found:{},...ut};function se(e,n){for(const t in n)if(t in e&&typeof e[t]!=typeof n[t])return!1;return!0}function pt(e){if(typeof e!="object"||e===null)return null;const n=e;if(typeof n.prefix!="string"||!e.icons||typeof e.icons!="object"||!se(e,En))return null;const t=n.icons;for(const o in t){const i=t[o];if(!o.match(q)||typeof i.body!="string"||!se(i,ge))return null}const r=n.aliases||Object.create(null);for(const o in r){const i=r[o],c=i.parent;if(!o.match(q)||typeof c!="string"||!t[c]&&!r[c]||!se(i,ge))return null}return n}const Y=Object.create(null);function Mn(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}function P(e,n){const t=Y[e]||(Y[e]=Object.create(null));return t[n]||(t[n]=Mn(e,n))}function Ie(e,n){return pt(n)?ht(n,(t,r)=>{r?e.icons[t]=r:e.missing.add(t)}):[]}function Rn(e,n,t){try{if(typeof t.body=="string")return e.icons[n]={...t},!0}catch{}return!1}function _n(e,n){let t=[];return(typeof e=="string"?[e]:Object.keys(Y)).forEach(o=>{(typeof o=="string"&&typeof n=="string"?[n]:Object.keys(Y[o]||{})).forEach(c=>{const s=P(o,c);t=t.concat(Object.keys(s.icons).map(a=>(o!==""?"@"+o+":":"")+c+":"+a))})}),t}let N=!1;function gt(e){return typeof e=="boolean"&&(N=e),N}function D(e){const n=typeof e=="string"?W(e,!0,N):e;if(n){const t=P(n.provider,n.prefix),r=n.name;return t.icons[r]||(t.missing.has(r)?null:void 0)}}function mt(e,n){const t=W(e,!0,N);if(!t)return!1;const r=P(t.provider,t.prefix);return Rn(r,t.name,n)}function Fe(e,n){if(typeof e!="object")return!1;if(typeof n!="string"&&(n=e.provider||""),N&&!n&&!e.prefix){let o=!1;return pt(e)&&(e.prefix="",ht(e,(i,c)=>{c&&mt(i,c)&&(o=!0)})),o}const t=e.prefix;if(!V({provider:n,prefix:t,name:"a"}))return!1;const r=P(n,t);return!!Ie(r,e)}function On(e){return!!D(e)}function qn(e){const n=D(e);return n?{...B,...n}:null}function Fn(e){const n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,c=o.prefix,s=o.name,a=t[i]||(t[i]=Object.create(null)),l=a[c]||(a[c]=P(i,c));let u;s in l.icons?u=n.loaded:c===""||l.missing.has(s)?u=n.missing:u=n.pending;const d={provider:i,prefix:c,name:s};u.push(d)}),n}function yt(e,n){e.forEach(t=>{const r=t.loaderCallbacks;r&&(t.loaderCallbacks=r.filter(o=>o.id!==n))})}function Nn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!n.length)return;let t=!1;const r=e.provider,o=e.prefix;n.forEach(i=>{const c=i.icons,s=c.pending.length;c.pending=c.pending.filter(a=>{if(a.prefix!==o)return!0;const l=a.name;if(e.icons[l])c.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))c.missing.push({provider:r,prefix:o,name:l});else return t=!0,!0;return!1}),c.pending.length!==s&&(t||yt([e],i.id),i.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),i.abort))})}))}let Dn=0;function Un(e,n,t){const r=Dn++,o=yt.bind(null,t,r);if(!n.pending.length)return o;const i={id:r,icons:n,callback:e,abort:o};return t.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(i)}),o}const me=Object.create(null);function Ne(e,n){me[e]=n}function ye(e){return me[e]||me[""]}function Hn(e,n=!0,t=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?W(o,n,t):o;i&&r.push(i)}),r}var zn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Bn(e,n,t,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let c;if(e.random){let k=e.resources.slice(0);for(c=[];k.length>1;){const C=Math.floor(Math.random()*k.length);c.push(k[C]),k=k.slice(0,C).concat(k.slice(C+1))}c=c.concat(k)}else c=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let a="pending",l=0,u,d=null,h=[],p=[];typeof r=="function"&&p.push(r);function g(){d&&(clearTimeout(d),d=null)}function m(){a==="pending"&&(a="aborted"),g(),h.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),h=[]}function b(k,C){C&&(p=[]),typeof k=="function"&&p.push(k)}function x(){return{startTime:s,payload:n,status:a,queriesSent:l,queriesPending:h.length,subscribe:b,abort:m}}function w(){a="failed",p.forEach(k=>{k(void 0,u)})}function v(){h.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),h=[]}function $(k,C,L){const A=C!=="success";switch(h=h.filter(E=>E!==k),a){case"pending":break;case"failed":if(A||!e.dataAfterTimeout)return;break;default:return}if(C==="abort"){u=L,w();return}if(A){u=L,h.length||(c.length?S():w());return}if(g(),v(),!e.random){const E=e.resources.indexOf(k.resource);E!==-1&&E!==e.index&&(e.index=E)}a="completed",p.forEach(E=>{E(L)})}function S(){if(a!=="pending")return;g();const k=c.shift();if(k===void 0){if(h.length){d=setTimeout(()=>{g(),a==="pending"&&(v(),w())},e.timeout);return}w();return}const C={status:"pending",resource:k,callback:(L,A)=>{$(C,L,A)}};h.push(C),l++,d=setTimeout(S,e.rotate),t(k,n,C.callback)}return setTimeout(S),x}function bt(e){const n={...zn,...e};let t=[];function r(){t=t.filter(s=>s().status==="pending")}function o(s,a,l){const u=Bn(n,s,a,(d,h)=>{r(),l&&l(d,h)});return t.push(u),u}function i(s){return t.find(a=>s(a))||null}return{query:o,find:i,setIndex:s=>{n.index=s},getIndex:()=>n.index,cleanup:r}}function Se(e){let n;if(typeof e.resources=="string")n=[e.resources];else if(n=e.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const oe=Object.create(null),O=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;O.length>0;)O.length===1||Math.random()>.5?Z.push(O.shift()):Z.push(O.pop());oe[""]=Se({resources:["https://api.iconify.design"].concat(Z)});function De(e,n){const t=Se(n);return t===null?!1:(oe[e]=t,!0)}function re(e){return oe[e]}function Wn(){return Object.keys(oe)}function Ue(){}const ce=Object.create(null);function Qn(e){if(!ce[e]){const n=re(e);if(!n)return;const t=bt(n),r={config:n,redundancy:t};ce[e]=r}return ce[e]}function xt(e,n,t){let r,o;if(typeof e=="string"){const i=ye(e);if(!i)return t(void 0,424),Ue;o=i.send;const c=Qn(e);c&&(r=c.redundancy)}else{const i=Se(e);if(i){r=bt(i);const c=e.resources?e.resources[0]:"",s=ye(c);s&&(o=s.send)}}return!r||!o?(t(void 0,424),Ue):r.query(n,o,t)().abort}const He="iconify2",U="iconify",wt=U+"-count",ze=U+"-version",kt=36e5,Vn=168;function be(e,n){try{return e.getItem(n)}catch{}}function Te(e,n,t){try{return e.setItem(n,t),!0}catch{}}function Be(e,n){try{e.removeItem(n)}catch{}}function xe(e,n){return Te(e,wt,n.toString())}function we(e){return parseInt(be(e,wt))||0}const M={local:!0,session:!0},vt={local:new Set,session:new Set};let $e=!1;function Zn(e){$e=e}let Q=typeof window>"u"?{}:window;function jt(e){const n=e+"Storage";try{if(Q&&Q[n]&&typeof Q[n].length=="number")return Q[n]}catch{}M[e]=!1}function Ct(e,n){const t=jt(e);if(!t)return;const r=be(t,ze);if(r!==He){if(r){const s=we(t);for(let a=0;a<s;a++)Be(t,U+a.toString())}Te(t,ze,He),xe(t,0);return}const o=Math.floor(Date.now()/kt)-Vn,i=s=>{const a=U+s.toString(),l=be(t,a);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&n(u,s))return!0}catch{}Be(t,a)}};let c=we(t);for(let s=c-1;s>=0;s--)i(s)||(s===c-1?(c--,xe(t,c)):vt[e].add(s))}function It(){if(!$e){Zn(!0);for(const e in M)Ct(e,n=>{const t=n.data,r=n.provider,o=t.prefix,i=P(r,o);if(!Ie(i,t).length)return!1;const c=t.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,c):c,!0})}}function Gn(e,n){const t=e.lastModifiedCached;if(t&&t>=n)return t===n;if(e.lastModifiedCached=n,t)for(const r in M)Ct(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===n});return!0}function Kn(e,n){$e||It();function t(r){let o;if(!M[r]||!(o=jt(r)))return;const i=vt[r];let c;if(i.size)i.delete(c=Array.from(i).shift());else if(c=we(o),!xe(o,c+1))return;const s={cached:Math.floor(Date.now()/kt),provider:e.provider,data:n};return Te(o,U+c.toString(),JSON.stringify(s))}n.lastModified&&!Gn(e,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),t("local")||t("session"))}function We(){}function Jn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Nn(e)}))}function Yn(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=ye(t)))return;i.prepare(t,r,o).forEach(s=>{xt(t,s,a=>{if(typeof a!="object")s.icons.forEach(l=>{e.missing.add(l)});else try{const l=Ie(e,a);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),Kn(e,a)}catch(l){console.error(l)}Jn(e)})})}))}const Le=(e,n)=>{const t=Hn(e,!0,gt()),r=Fn(t);if(!r.pending.length){let a=!0;return n&&setTimeout(()=>{a&&n(r.loaded,r.missing,r.pending,We)}),()=>{a=!1}}const o=Object.create(null),i=[];let c,s;return r.pending.forEach(a=>{const{provider:l,prefix:u}=a;if(u===s&&l===c)return;c=l,s=u,i.push(P(l,u));const d=o[l]||(o[l]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(a=>{const{provider:l,prefix:u,name:d}=a,h=P(l,u),p=h.pendingIcons||(h.pendingIcons=new Set);p.has(d)||(p.add(d),o[l][u].push(d))}),i.forEach(a=>{const{provider:l,prefix:u}=a;o[l][u].length&&Yn(a,o[l][u])}),n?Un(n,r,i):We},Xn=e=>new Promise((n,t)=>{const r=typeof e=="string"?W(e,!0):e;if(!r){t(e);return}Le([r||e],o=>{if(o.length&&r){const i=D(r);if(i){n({...B,...i});return}}t(e)})});function eo(e){try{const n=typeof e=="string"?JSON.parse(e):e;if(typeof n.body=="string")return{...n}}catch{}}function to(e,n){const t=typeof e=="string"?W(e,!0,!0):null;if(!t){const i=eo(e);return{value:e,data:i}}const r=D(t);if(r!==void 0||!t.prefix)return{value:e,name:t,data:r};const o=Le([t],()=>n(e,t,D(t)));return{value:e,name:t,loading:o}}function ae(e){return e.hasAttribute("inline")}let St=!1;try{St=navigator.vendor.indexOf("Apple")===0}catch{}function no(e,n){switch(n){case"svg":case"bg":case"mask":return n}return n!=="style"&&(St||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const oo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ro=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ke(e,n,t){if(n===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*n*t)/t;if(typeof e!="string")return e;const r=e.split(oo);if(r===null||!r.length)return e;const o=[];let i=r.shift(),c=ro.test(i);for(;;){if(c){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*n*t)/t)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");c=!c}}const io=e=>e==="unset"||e==="undefined"||e==="none";function Tt(e,n){const t={...B,...e},r={...dt,...n},o={left:t.left,top:t.top,width:t.width,height:t.height};let i=t.body;[t,r].forEach(g=>{const m=[],b=g.hFlip,x=g.vFlip;let w=g.rotate;b?x?w+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):x&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.push("scale(1 -1)"),o.top=o.left=0);let v;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:v=o.height/2+o.top,m.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,m.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}w%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),m.length&&(i='<g transform="'+m.join(" ")+'">'+i+"</g>")});const c=r.width,s=r.height,a=o.width,l=o.height;let u,d;c===null?(d=s===null?"1em":s==="auto"?l:s,u=ke(d,a/l)):(u=c==="auto"?a:c,d=s===null?ke(u,l/a):s==="auto"?l:s);const h={},p=(g,m)=>{io(m)||(h[g]=m.toString())};return p("width",u),p("height",d),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+a.toString()+" "+l.toString(),{attributes:h,body:i}}const so=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let X=so();function co(e){X=e}function ao(){return X}function lo(e,n){const t=re(e);if(!t)return 0;let r;if(!t.maxURL)r=0;else{let o=0;t.resources.forEach(c=>{o=Math.max(o,c.length)});const i=n+".json?icons=";r=t.maxURL-o-t.path.length-i.length}return r}function uo(e){return e===404}const fo=(e,n,t)=>{const r=[],o=lo(e,n),i="icons";let c={type:i,provider:e,prefix:n,icons:[]},s=0;return t.forEach((a,l)=>{s+=a.length+1,s>=o&&l>0&&(r.push(c),c={type:i,provider:e,prefix:n,icons:[]},s=a.length),c.icons.push(a)}),r.push(c),r};function ho(e){if(typeof e=="string"){const n=re(e);if(n)return n.path}return"/"}const po=(e,n,t)=>{if(!X){t("abort",424);return}let r=ho(n.provider);switch(n.type){case"icons":{const i=n.prefix,s=n.icons.join(","),a=new URLSearchParams({icons:s});r+=i+".json?"+a.toString();break}case"custom":{const i=n.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:t("abort",400);return}let o=503;X(e+r).then(i=>{const c=i.status;if(c!==200){setTimeout(()=>{t(uo(c)?"abort":"next",c)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?t("abort",i):t("next",o)});return}setTimeout(()=>{t("success",i)})}).catch(()=>{t("next",o)})},go={prepare:fo,send:po};function Qe(e,n){switch(e){case"local":case"session":M[e]=n;break;case"all":for(const t in M)M[t]=n;break}}const le="data-style";let $t="";function mo(e){$t=e}function Ve(e,n){let t=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(le));t||(t=document.createElement("style"),t.setAttribute(le,le),e.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+$t}function Lt(){Ne("",go),gt(!0);let e;try{e=window}catch{}if(e){if(It(),e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Fe(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const r in t){const o="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;De(r,i)||console.error(o)}catch{console.error(o)}}}}return{enableCache:t=>Qe(t,!0),disableCache:t=>Qe(t,!1),iconExists:On,getIcon:qn,listIcons:_n,addIcon:mt,addCollection:Fe,calculateSize:ke,buildIcon:Tt,loadIcons:Le,loadIcon:Xn,addAPIProvider:De,appendCustomStyle:mo,_api:{getAPIConfig:re,setAPIModule:Ne,sendAPIQuery:xt,setFetch:co,getFetch:ao,listAPIProviders:Wn}}}function At(e,n){let t=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in n)t+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}function yo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function bo(e){return"data:image/svg+xml,"+yo(e)}function xo(e){return'url("'+bo(e)+'")'}const ve={"background-color":"currentColor"},Pt={"background-color":"transparent"},Ze={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ge={"-webkit-mask":ve,mask:ve,background:Pt};for(const e in Ge){const n=Ge[e];for(const t in Ze)n[e+"-"+t]=Ze[t]}function Ke(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function wo(e,n,t){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const i=e.attributes,c=At(o,{...i,width:n.width+"",height:n.height+""}),s=xo(c),a=r.style,l={"--svg":s,width:Ke(i.width),height:Ke(i.height),...t?ve:Pt};for(const u in l)a.setProperty(u,l[u]);return r}let F;function ko(){try{F=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{F=null}}function vo(e){return F===void 0&&ko(),F?F.createHTML(e):e}function jo(e){const n=document.createElement("span"),t=e.attributes;let r="";t.width||(r="width: inherit;"),t.height||(r+="height: inherit;"),r&&(t.style=r);const o=At(e.body,t);return n.innerHTML=vo(o),n.firstChild}function Je(e,n){const t=n.icon.data,r=n.customisations,o=Tt(t,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const i=n.renderedMode;let c;i==="svg"?c=jo(o):c=wo(o,{...B,...t},i==="mask");const s=Array.from(e.childNodes).find(a=>{const l=a.tagName&&a.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});s?c.tagName==="SPAN"&&s.tagName===c.tagName?s.setAttribute("style",c.getAttribute("style")):e.replaceChild(c,s):e.appendChild(c)}function Ye(e,n,t){const r=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:n,icon:e,lastRender:r}}function Co(e="iconify-icon"){let n,t;try{n=window.customElements,t=window.HTMLElement}catch{return}if(!n||!t)return;const r=n.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],i=class extends t{_shadowRoot;_state;_checkQueued=!1;constructor(){super();const s=this._shadowRoot=this.attachShadow({mode:"open"}),a=ae(this);Ve(s,a),this._state=Ye({value:""},a),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(s){if(s==="inline"){const a=ae(this),l=this._state;a!==l.inline&&(l.inline=a,Ve(this._shadowRoot,a))}else this._queueCheck()}get icon(){const s=this.getAttribute("icon");if(s&&s.slice(0,1)==="{")try{return JSON.parse(s)}catch{}return s}set icon(s){typeof s=="object"&&(s=JSON.stringify(s)),this.setAttribute("icon",s)}get inline(){return ae(this)}set inline(s){s?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const s=this._state;if(s.rendered){const a=this._shadowRoot;if(s.renderedMode==="svg")try{a.lastChild.setCurrentTime(0);return}catch{}Je(a,s)}}get status(){const s=this._state;return s.rendered?"rendered":s.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const s=this._state,a=this.getAttribute("icon");if(a!==s.icon.value){this._iconChanged(a);return}if(!s.rendered)return;const l=this.getAttribute("mode"),u=Oe(this);(s.attrMode!==l||$n(s.customisations,u))&&this._renderIcon(s.icon,u,l)}_iconChanged(s){const a=to(s,(l,u,d)=>{const h=this._state;if(h.rendered||this.getAttribute("icon")!==l)return;const p={value:l,name:u,data:d};p.data?this._gotIconData(p):h.icon=p});a.data?this._gotIconData(a):this._state=Ye(a,this._state.inline,this._state)}_gotIconData(s){this._checkQueued=!1,this._renderIcon(s,Oe(this),this.getAttribute("mode"))}_renderIcon(s,a,l){const u=no(s.data.body,l),d=this._state.inline;Je(this._shadowRoot,this._state={rendered:!0,icon:s,inline:d,customisations:a,attrMode:l,renderedMode:u})}};o.forEach(s=>{s in i.prototype||Object.defineProperty(i.prototype,s,{get:function(){return this.getAttribute(s)},set:function(a){a!==null?this.setAttribute(s,a):this.removeAttribute(s)}})});const c=Lt();for(const s in c)i[s]=i.prototype[s]=c[s];return n.define(e,i),i}const Io=Co()||Lt(),{enableCache:Ar,disableCache:Pr,iconExists:Er,getIcon:Mr,listIcons:Rr,addIcon:_r,addCollection:Or,calculateSize:qr,buildIcon:Fr,loadIcons:Nr,loadIcon:Dr,addAPIProvider:Ur,_api:Hr}=Io,ie=(e,n,t="children")=>e.map(r=>Array.isArray(r[t])?n({...r,[t]:ie(r[t],n,t)}):n(r)),zr=(e,n="children")=>{const t=[];return ie(e,r=>t.push(r),n),t},Ae=(e,n,t="children")=>e.map(r=>({...r})).filter(r=>{const o=r[t];if(Array.isArray(o)){const c=Ae(o,n,t);r[t]=c?.length?c:void 0}const i={filteredChildren:r[t],isLeaf:!o?.length};return n(r,i)}),So=e=>/^https?:\/\//.test(e),To=e=>/^mailto:/i.test(e.trim()),$o=e=>{if(!e||!e?.startsWith("/"))return!1;const n=o=>o.endsWith("/")?o:`${o}/`,t=n(window.location.pathname),r=n(new URL(e,window.location.origin).pathname);return t.startsWith(r)},Br=(e=[])=>{const n=e.map((t,r)=>({path:t,index:r})).filter(t=>$o(t.path));return n?.length?n.slice(1).reduce((t,r)=>t.path.length>=r.path.length?t:r,n[0]).index:-1},Wr=(e,n={})=>{const{columns:t=1,breakInside:r=!1,groupHeight:o=48,itemHeight:i=24,childrenKey:c="items"}=n,s=e.length,a=e.reduce((m,b)=>m+o+(b[c]?.length||0)*i,0),l=Math.ceil(a/t),u=[[]];let d=0,h=0;const p=l*.2,g=m=>h>l-p&&d<t-1&&h+m>l+p;return e.forEach(m=>{const b=o+(m[c]?.length||0)*i;r&&g(o)&&(d++,h=0,u[d]=[]),!r&&h>0&&(s<=t||g(b))&&(d++,h=0,u[d]=[]),u[d].push({...m,group:!0}),h+=o,m[c]&&m[c].forEach(x=>{r&&g(i)&&(d++,h=0,u[d]=[]),u[d].push({...x,group:!1}),h+=i})}),u},Qr=window?.blocklet?.groupPrefix||window?.blocklet?.prefix||"/",Lo=e=>{const n={...e},t=e?.background;return typeof t=="string"?n.background={header:t,footer:t,default:t}:t&&typeof t=="object"&&(n.background={header:t.header||t.default,footer:t.footer||t.default,default:t.default}),n},Ao=(e,n="en",t="en")=>{if(typeof e=="string"){if(So(e)){const o=new URL(e);return o.searchParams.set("locale",n),o.href}if(To(e))return e;const r=new URL(e,window.location.origin);return r.searchParams.set("locale",n),r.pathname+r.search}return typeof e=="object"?e[n]||e[t]||e.en:e},Po=({navigation:e,locale:n,defaultLocale:t,section:r="header"})=>{if(!e?.length)return e;const o=(i,c)=>i&&typeof i=="object"?i[c]||i[t]||i.en:i;return ie(e,i=>({...i,title:o(i.title,n),description:o(i.description,n),link:jn(i.items?.length?i.link:Ao(i.link,n,t),r),_rawLink:i.link}),"items")},Eo=e=>ie(e,n=>n.role?{...n,role:Array.isArray(n.role)?n.role:[n.role]}:n,"items"),Mo=e=>{if(!e?.length)return null;const n=Eo(e),t={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return n.forEach(r=>{r.section?Array.isArray(r.section)?r.section.forEach(o=>{t[o]?.push(r)}):typeof r.section=="string"&&t[r.section]?.push(r):t.header.push(r)}),t},Vr=e=>{if(!e)return null;const n={...e};return n.theme=Lo(n.theme),n.navigation=Mo(Ro(n.navigation)),n},Ro=(e=[])=>Ae(e,(n,t)=>!!n.link||t.filteredChildren?.length,"items"),_o=(e,n)=>Ae(e,(t,r)=>{const o=!t.role||n&&(t.role.includes(n)||t.role.includes("guest"));return r.isLeaf?o:o&&r.filteredChildren?.length},"items"),Oo={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},qo={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function Fo({session:e,locale:n="zh",size:t=24,popperType:r="click",sx:o,...i}){const c=window?.blocklet||{},s=(c.navigation||[]).filter(p=>p.section==="sessionManager"&&!["/sessionManager"].includes(p.id)).filter(p=>!!(p?.role||[]).includes(e?.user?.role||"guest")).map(p=>{const g=(c?.componentMountPoints||[]).find(m=>p.component===m.name);return{...p,component:g}}),a=te(),l=j.useRef(null),u=gn({open:!1}),d=K((p=!u.open)=>{u.open=p}),h=r==="hover"?{onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)}:{onClick:()=>d()};return s.length===0||!e?.user?null:f.jsxs(G,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",...o},...i,...h,children:[f.jsx(Ce,{size:"medium",ref:l,children:f.jsx(pe,{icon:Oo,fontSize:t,style:{transform:"scale(1.08)"}})}),f.jsx(Ot,{open:u.open,anchorEl:l.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:p})=>f.jsx(qt,{onClickAway:g=>{g.preventDefault(),g.stopPropagation(),d(!1)},children:f.jsx(Ft,{...p,timeout:350,children:f.jsxs(Nt,{variant:"outlined",sx:{borderRadius:1.5,width:350,maxWidth:"90vw",p:2},children:[f.jsx(Dt,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:s.map(g=>f.jsx(Ut,{disablePadding:!0,children:f.jsxs(Ht,{href:_e(g.link,n),sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:1,"&:hover":{backgroundColor:"action.hover"}},children:[g?.component?.did?f.jsx(G,{component:"img",src:`${st}/blocklet/logo-bundle/${g.component.did}`,sx:{borderRadius:1,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):f.jsx(pe,{fontSize:50,icon:g.icon||qo,color:a.palette.text.secondary}),f.jsx(_,{sx:{fontSize:"12px",color:"text.primary",textAlign:"center",lineHeight:"normal"},children:_e(g.title,n)})]})},g.id))}),f.jsx(rn,{session:e,children:f.jsx(sn,{variant:"outlined",fullWidth:!0,href:cn,sx:{mt:1},children:n==="zh"?"管理":"Manage"})})]})})})})]})}const Zr=y.shape({appLogo:y.node,appName:y.string,theme:y.shape({background:y.string}),enableConnect:y.bool,enableLocale:y.bool,navigation:y.arrayOf(y.shape({title:y.oneOfType([y.string,y.object]),link:y.oneOfType([y.string,y.object]),icon:y.string,items:y.arrayOf(y.shape({title:y.oneOfType([y.string,y.object]),link:y.oneOfType([y.string,y.object])}))}))}),No=y.shape({showText:y.bool,showRole:y.bool,switchDid:y.bool,switchProfile:y.bool,switchPassport:y.bool,disableLogout:y.bool,onLogin:y.func,onLogout:y.func,onSwitchDid:y.func,onSwitchProfile:y.func,onSwitchPassport:y.func,menu:y.array,menuRender:y.func,dark:y.bool,size:y.number,profileUrl:y.string,renderUserButton:y.func}),Do=["admin","owner"],Uo=e=>e.endsWith(".ip.abtnet.io"),Ho=e=>e.endsWith(".did.abtnet.io"),zo={en:{guest:{title:"Notice: You are using a temporary domain",description:"You are accessing this site through a temporary domain. For a better experience, please contact the site administrator to configure a custom domain. Using a custom domain not only makes access more convenient but also ensures your access is more secure."},owner:{title:"Enhance Your Website Security",description:"Dear administrator, we recommend configuring your custom domain immediately, which will:",benefits1:"Automatically obtain HTTPS certificates to ensure secure data transmission",benefits2:"Create an exclusive brand image and increase website credibility",benefits3:"Get a shorter, more memorable access address",benefits4:"Provide visitors with a more professional experience",benefits5:"Domain configuration takes just minutes to complete, taking your website to the next level!"},skip:"Remind Me Later",bindDomain:"Configure Domain"},zh:{guest:{title:"温馨提示:当前使用的是临时域名",description:"您正在通过临时域名访问本站点。为了获得更好的访问体验,请联系站点管理员配置自定义域名。使用自定义域名不仅访问更便捷,还能确保您的访问更加安全。"},owner:{title:"提升网站安全性与专业度",description:"尊敬的管理员,我们建议您尽快配置自定义域名,这样可以:",benefits1:"自动获取 HTTPS 证书,确保数据传输安全",benefits2:"打造专属品牌形象,提升网站可信度",benefits3:"获得更简短、易记的访问地址",benefits4:"为访客提供更专业的访问体验",benefits5:"只需几分钟即可完成域名配置,全面提升您的网站品质!"},skip:"稍后提醒",bindDomain:"配置域名"}},Bo=1e3*60*60*24*30,Xe=".well-known/service/admin/domains";function Et({locale:e="en",session:n={}}){const t=n?.user,r=xn(),[o,i]=j.useState(()=>{const h=window.localStorage.getItem("domain-warning-skip");if(!h)return!0;const p=+new Date,g=+new Date(h);return p-g>Bo}),c=K((h,p={})=>an(zo,h,e,"en",p)),s=j.useMemo(()=>{try{const{hostname:h}=new URL(window.location.href);return h}catch{return""}},[]),a=j.useMemo(()=>[c("owner.benefits1"),c("owner.benefits2"),c("owner.benefits3"),c("owner.benefits4"),c("owner.benefits5")],[c]),l=j.useCallback(()=>{window.localStorage.setItem("domain-warning-skip",new Date().toISOString()),i(!1)},[]),u=j.useCallback(()=>{const h=z(window.location.origin,Xe);h.startsWith("http")&&window.open(h,"_blank"),i(!1)},[]),d=t?.role&&Do.includes(t.role);return window.location.href.includes(Xe)||r||!Uo(s)&&!Ho(s)?null:f.jsxs(zt,{open:o,disableEscapeKeyDown:!0,fullWidth:!0,maxWidth:"sm",onClose:()=>i(!1),children:[f.jsxs(Bt,{sx:{padding:"20px !important"},children:[f.jsx(_,{sx:{fontSize:"20px",fontWeight:"500"},children:c(d?"owner.title":"guest.title")}),f.jsx(_,{sx:{marginTop:"20px",fontSize:"14px",color:"text.secondary"},children:c(d?"owner.description":"guest.description")}),d&&f.jsx(G,{component:"ul",children:a.map(h=>f.jsx(_,{component:"li",sx:{fontSize:"14px",color:"text.secondary"},children:h},h))})]}),f.jsxs(Wt,{sx:{px:"12px !important"},children:[f.jsx(Pe,{onClick:l,children:c("skip")}),d&&f.jsx(Pe,{variant:"contained",onClick:u,children:c("bindDomain")})]})]})}Et.propTypes={locale:y.string,session:y.object};const Wo=e=>j.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},j.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.251 2.5c-2.576-.006-4.747 2.1-4.766 4.506v5.784c0 .793-.084 1.778-.58 2.71h12.19c-.496-.932-.58-1.917-.58-2.711V7.01c-.035-2.403-2.21-4.502-4.797-4.508L9.25 2.5zM17.015 7v5.789c0 .79.1 1.562.53 2.219l.287.438c.436.664-.033 1.554-.817 1.554H2.985c-.785 0-1.255-.89-.818-1.554l.287-.438c.43-.657.53-1.428.53-2.218V7c.024-3.291 2.927-6.008 6.27-6l1.467.003c3.344.008 6.254 2.706 6.294 5.998zM11.06 18.06A1.5 1.5 0 0 0 11.5 17H13a3 3 0 0 1-6 0h1.5a1.5 1.5 0 0 0 2.56 1.06z",fill:"currentColor"})),I={};function Qo(e="admin"){let n="/";!window?.blocklet&&window?.env?.apiPrefix&&(n=window.env.apiPrefix);const t=z(n,st,e);return new Yt(t,{heartbeatIntervalMs:100*1e3})}function Vo(e="admin"){return I[e]||(I[e]=Qo(e)),I[e]}const Zo=(e="admin")=>{const n=j.use(rt),{session:t}=n??{},r=T(()=>t.user?.did,[t.user]),o=mn(r);return yn(()=>{Object.keys(I).forEach(i=>{I[i]?.isConnected()&&I[i]?.disconnect(),delete I[i]})}),r?(o&&o!==r&&Object.keys(I).forEach(i=>{I[i]&&(I[i].isConnected()&&I[i].disconnect(),I[i].connect())}),!I[e]&&t.user&&(I[e]=Vo(e),I[e].connect()),I[e]):null},Go={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0"/><path d="m9 12l2 2l4-4"/></g>'},Ko={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-3v4m0 3v.01"/>'},Jo={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 0 9-9a9 9 0 0 0-9-9a9 9 0 0 0-9 9a9 9 0 0 0 9 9zM9 8l6 8m0-8l-6 8"/>'};function Yo(){const e=te();return[...e.breakpoints.keys].reverse().reduce((n,t)=>{const r=Qt(e.breakpoints.up(t));return!n&&r?t:n},null)||"xs"}var ue,et;function Xo(){if(et)return ue;et=1;const{joinURL:e,withQuery:n}=Xt(),{toTypeInfo:t}=kn(),{isEVMChain:r,getExplorerUrl:o}=en(),{arcChainConfig:i}=tn(),c={ROLE_ROLLUP:"number"},s="https://explorer.abtnetwork.io/explorer/";return ue=function({hash:l,asset:u,rollup:d,address:h,token:p,stake:g,chainId:m=""}){if(r(m)){const v=o(m);return l?e(v,`tx/${l}`):u?e(v,`token/${u}`):e(v,`address/${h}`)}const x=i[m]?.defaultRPC,w=x?`${x}`:void 0;return d&&t(d).role===c.ROLE_ROLLUP?l?n(e(s,`rollups/${d}/moves/${l}`),{host:w}):n(e(s,`rollups/${d}`),{host:w}):u?n(e(s,`assets/${u}`),{host:w}):l?n(e(s,`txs/${l}`),{host:w}):p?n(e(s,`tokens/${p}/tx`),{host:w}):g?n(e(s,`stakes/${g}`),{host:w}):n(e(s,`accounts/${h}`),{host:w})},ue}var de,tt;function Mt(){return tt||(tt=1,de={isSameAddr:(e,n)=>String(e).toLowerCase()===String(n).toLowerCase()}),de}var fe,nt;function er(){if(nt)return fe;nt=1;const e=Xo(),{isSameAddr:n}=Mt();class t{constructor({type:a,did:l,chainId:u,text:d}){this.text=d,this.did=l,this.type=a,this.chainId=u}}const r=s=>{const a=[];try{let l=0;const u=/<(.+?)\(?[tx|nft|token|stake|did|dapp|link]+[:](.+?)\)?>/gi,d=s.matchAll(u);for(const h of d){const p=/\([tx|nft|token|stake|did|dapp|link]+[:](.+?)\)/gi,g=h[0],m=h.index||l,b=m+g.length;if([...g.matchAll(p)].length>1)return[s];let w="";const v=p.exec(g);let $="";if(v){const A=v[0];w=g.replace(A,"").replace(/^</,"").replace(/(>)$/,""),$=A.replace(/\)$/,"").replace(/^\(/,"")}else $=g;const S=$.split(":"),k=(S[0]||"").replace(/^</,"").replace(/^\(/,"").toUpperCase(),C=(S[1]||"").replace(/>$/,"").replace(/\)$/,""),L=(S[S.length-1]||"").replace(/>$/,"").replace(/\)$/,"");a.push(s.substring(l,m)),a.push(new t({type:k,chainId:C,did:L,text:w||k})),l=b}return l<s.length&&a.push(s.substring(l)),a}catch(l){return console.error(l?.message),[s]}},o=s=>{let a;const{type:l,chainId:u,did:d}=s;return n(l,"link")?a=`${u}:${d}`:n(l,"tx")?a=e({hash:d,chainId:u}):n(l,"stake")?a=e({stake:d,chainId:u}):n(l,"nft")?a=e({asset:d,chainId:u}):n(l,"token")?a=e({token:d,chainId:u}):n(l,"did")&&(a=e({address:d,chainId:u})),a};return fe={toClickableSpan:(s,a=!0)=>r(s).map(u=>{if(u instanceof t){if(a){const d=o(u),{type:h,chainId:p,did:g}=u;return n(h,"dapp")?`<em style="font-weight:bold;" data-type="${h}" data-chain-id="${p}" data-did="${g}">${u.text}</em>`:d?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${d}">${u.text}</a>`:`<em style="font-weight:bold;" data-type="${h}" data-chain-id="${p}" data-did="${g}">${u.text}</em>`}return u.text}return u}).join(""),toTextList:r,toSlackLink:s=>r(s).map(l=>l instanceof t?`<${o(l)}|${l.text}>`:l.replace(/:\n/g,": ")).join(""),Link:t,getLink:o},fe}var ee=er(),Rt=Mt();const tr=e=>!lt(e.activity)&&!!e.activity?.type&&!!e.activity?.actor,nr=e=>{if(!e)return null;const{meta:n,target:t}=e;return{metaLink:n?.id,targetLink:t?.id}},or=async(e,n)=>{try{return await nn().user.getProfileUrl({did:e,locale:n})}catch(t){console.error(t);return}},rr=async(e,n)=>{const{type:t,did:r}=e;return Rt.isSameAddr(t,"did")&&await or(r,n)||ee.getLink(e)},ir=async(e,n,t=!0)=>{const r=ee.toTextList(e);return await Promise.all(r.map(async o=>{if(o instanceof ee.Link){if(t){const i=await rr(o,n),{type:c,chainId:s,did:a}=o;return Rt.isSameAddr(c,"dapp")?`<em class="dapp" data-type="${c}" data-chain-id="${s}" data-did="${a}">${o.text}</em>`:i?`<a target="_blank" rel="noopener noreferrer" class="link" href="${i}">${o.text}</a>`:`<em class="common" data-type="${c}" data-chain-id="${s}" data-did="${a}">${o.text}</em>`}return o.text}return o})).then(o=>o.join(""))},sr=e=>wn.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),cr={comment:(e,n)=>n&&n>1?f.jsxs(f.Fragment,{children:["left ",n," comments on your ",e]}):f.jsxs(f.Fragment,{children:["commented on your ",e]}),like:e=>f.jsxs(f.Fragment,{children:["liked your ",e]}),follow:()=>f.jsx(f.Fragment,{children:"followed you"}),tips:e=>f.jsxs(f.Fragment,{children:["gave tips to your ",e]}),mention:e=>f.jsxs(f.Fragment,{children:["mentioned you in ",e]}),assign:()=>f.jsx(f.Fragment,{children:"assigned you a task"})};function R({user:e,color:n=void 0}){const{palette:t}=te(),r=ne(z(it,"user"),{did:e.did}),o=n||t.text.primary;return f.jsx(ot,{href:r,color:o,target:"_blank",onClick:i=>{i.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none","&:hover":{cursor:"pointer"}},children:e.fullName||"System"})}R.displayName="UserLink";function ar({activity:e,users:n,actors:t,extra:r={},mountPoint:o=""}){const{palette:i}=te(),{type:c,target:s}=e||{},{type:a}=s||{},{linkColor:l=i.text.primary}=r||{},u=T(()=>{if(!Array.isArray(n))return new Map;const b=new Map;return n.forEach(x=>{x?.did&&!b.has(x.did)&&b.set(x.did,x)}),b},[n]),d=T(()=>Array.isArray(t)?t.map(b=>b?u.get(b)||{did:b,fullName:"System"}:null).filter(Boolean):[],[t,u]),h=K(()=>{if(!Array.isArray(d)||d.length===0)return null;if(d.length===1)return f.jsx(R,{user:d[0],color:l});const b=d.slice(0,-1),x=d[d.length-1];if(d.length===2)return f.jsxs(f.Fragment,{children:[f.jsx(R,{user:b[0],color:l})," and ",f.jsx(R,{user:x,color:l})]});const w=d.length>3,v=w?d.slice(0,2):b;return f.jsxs(f.Fragment,{children:[v.map(($,S)=>f.jsxs(Jt.Fragment,{children:[f.jsx(R,{user:$,color:l}),S<v.length-1?", ":""]},$.did)),w?`, and ${d.length-2} others`:f.jsxs(f.Fragment,{children:[", and ",f.jsx(R,{user:x,color:l})]})]})}),p=K(()=>{const b=c?cr[c]:null;return b?b(a,n.length):null}),g=T(()=>{const b=h(),x=p();return!b||!x?null:f.jsxs(f.Fragment,{children:[b," ",x]})},[c,a,d,h,p]),m=T(()=>{if(!e)return null;const b=nr(e);return b?.targetLink?z(o,b.targetLink):null},[e,o]);return!c||lt(s)?null:f.jsxs(f.Fragment,{children:[g," ",m&&f.jsx(ot,{href:m,color:l,target:"_blank",sx:{textDecoration:"none"},onClick:b=>{b.customPreventRedirect=!0},children:s.name})]})}const lr={normal:Ee,success:Go,info:Ee,warning:Ko,error:Jo},ur=H(Gt)`
1
+ import{G as te,j as f,al as G,I as Ce,Q as Ot,aj as qt,H as Ft,P as Nt,W as Dt,U as Ut,b$ as Ht,T as _,X as y,Z as zt,a0 as Bt,S as Wt,R as Pe,L as Qt,bb as ot,c0 as he,ap as Vt,bq as Zt,aT as H,ak as Gt,bM as Kt}from"./vendor-mui-core-CDEc-eG6.js";import{r as j,a as Jt}from"./vendor-react-DX7tU9aY.js";import{a4 as rt,aF as Yt,aG as Xt,aH as en,aI as tn,aD as nn,W as it,aJ as Ee,at as Me,ah as Re}from"./index-CgSpL7jz.js";import{g as on}from"./theme-mode-toggle-WRMGhjzA.js";import{ab as pe,bD as _e,af as st,bE as rn,bk as sn,bF as cn,a2 as an,bn as ct,bo as ln,as as at,bG as un,aa as dn,bm as fn,b4 as hn,aA as pn}from"./vendor-ux-PO0jFgJf.js";import{i as gn,b as K,a as T,s as mn,z as yn}from"./vendor-hooks-Ca2cSNuD.js";import{a8 as bn,F as ne,y as z,a as lt}from"./vendor-utils-_C9URqjS.js";import{u as xn}from"./use-mobile-DKWj9MJD.js";import{p as wn}from"./purify.es-HRjpPm7y.js";import{r as kn}from"./index-BLYrVxV3.js";function vn(e){try{return new URL(e).origin!==window.location.origin}catch{return!1}}function jn(e,n){try{if(!vn(e))return e;const t=bn(e),r={utm_source:window.location.hostname,utm_medium:`${n}_nav`,utm_campaign:"default",utm_content:new URL(e).hostname,...t};return ne(e,r)}catch(t){return console.error("Failed to generate UTM URL:",t),e}}const ut=Object.freeze({left:0,top:0,width:16,height:16}),J=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),B=Object.freeze({...ut,...J}),ge=Object.freeze({...B,body:"",hidden:!1}),Cn=Object.freeze({width:null,height:null}),dt=Object.freeze({...Cn,...J});function In(e,n=0){const t=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(t===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(t!==e){let o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-t.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return n}const Sn=/[\s,]+/;function Tn(e,n){n.split(Sn).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const ft={...dt,preserveAspectRatio:""};function Oe(e){const n={...ft},t=(r,o)=>e.getAttribute(r)||o;return n.width=t("width",null),n.height=t("height",null),n.rotate=In(t("rotate","")),Tn(n,t("flip","")),n.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),n}function $n(e,n){for(const t in ft)if(e[t]!==n[t])return!0;return!1}const q=/^[a-z0-9]+(-[a-z0-9]+)*$/,W=(e,n,t,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const s=o.pop(),a=o.pop(),l={provider:o.length>0?o[0]:r,prefix:a,name:s};return n&&!V(l)?null:l}const i=o[0],c=i.split("-");if(c.length>1){const s={provider:r,prefix:c.shift(),name:c.join("-")};return n&&!V(s)?null:s}if(t&&r===""){const s={provider:r,prefix:"",name:i};return n&&!V(s,t)?null:s}return null},V=(e,n)=>e?!!((e.provider===""||e.provider.match(q))&&(n&&e.prefix===""||e.prefix.match(q))&&e.name.match(q)):!1;function Ln(e,n){const t={};!e.hFlip!=!n.hFlip&&(t.hFlip=!0),!e.vFlip!=!n.vFlip&&(t.vFlip=!0);const r=((e.rotate||0)+(n.rotate||0))%4;return r&&(t.rotate=r),t}function qe(e,n){const t=Ln(e,n);for(const r in ge)r in J?r in e&&!(r in t)&&(t[r]=J[r]):r in n?t[r]=n[r]:r in e&&(t[r]=e[r]);return t}function An(e,n){const t=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(c){if(t[c])return o[c]=[];if(!(c in o)){o[c]=null;const s=r[c]&&r[c].parent,a=s&&i(s);a&&(o[c]=[s].concat(a))}return o[c]}return Object.keys(t).concat(Object.keys(r)).forEach(i),o}function Pn(e,n,t){const r=e.icons,o=e.aliases||Object.create(null);let i={};function c(s){i=qe(r[s]||o[s],i)}return c(n),t.forEach(c),qe(e,i)}function ht(e,n){const t=[];if(typeof e!="object"||typeof e.icons!="object")return t;e.not_found instanceof Array&&e.not_found.forEach(o=>{n(o,null),t.push(o)});const r=An(e);for(const o in r){const i=r[o];i&&(n(o,Pn(e,o,i)),t.push(o))}return t}const En={provider:"",aliases:{},not_found:{},...ut};function se(e,n){for(const t in n)if(t in e&&typeof e[t]!=typeof n[t])return!1;return!0}function pt(e){if(typeof e!="object"||e===null)return null;const n=e;if(typeof n.prefix!="string"||!e.icons||typeof e.icons!="object"||!se(e,En))return null;const t=n.icons;for(const o in t){const i=t[o];if(!o.match(q)||typeof i.body!="string"||!se(i,ge))return null}const r=n.aliases||Object.create(null);for(const o in r){const i=r[o],c=i.parent;if(!o.match(q)||typeof c!="string"||!t[c]&&!r[c]||!se(i,ge))return null}return n}const Y=Object.create(null);function Mn(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}function P(e,n){const t=Y[e]||(Y[e]=Object.create(null));return t[n]||(t[n]=Mn(e,n))}function Ie(e,n){return pt(n)?ht(n,(t,r)=>{r?e.icons[t]=r:e.missing.add(t)}):[]}function Rn(e,n,t){try{if(typeof t.body=="string")return e.icons[n]={...t},!0}catch{}return!1}function _n(e,n){let t=[];return(typeof e=="string"?[e]:Object.keys(Y)).forEach(o=>{(typeof o=="string"&&typeof n=="string"?[n]:Object.keys(Y[o]||{})).forEach(c=>{const s=P(o,c);t=t.concat(Object.keys(s.icons).map(a=>(o!==""?"@"+o+":":"")+c+":"+a))})}),t}let N=!1;function gt(e){return typeof e=="boolean"&&(N=e),N}function D(e){const n=typeof e=="string"?W(e,!0,N):e;if(n){const t=P(n.provider,n.prefix),r=n.name;return t.icons[r]||(t.missing.has(r)?null:void 0)}}function mt(e,n){const t=W(e,!0,N);if(!t)return!1;const r=P(t.provider,t.prefix);return Rn(r,t.name,n)}function Fe(e,n){if(typeof e!="object")return!1;if(typeof n!="string"&&(n=e.provider||""),N&&!n&&!e.prefix){let o=!1;return pt(e)&&(e.prefix="",ht(e,(i,c)=>{c&&mt(i,c)&&(o=!0)})),o}const t=e.prefix;if(!V({provider:n,prefix:t,name:"a"}))return!1;const r=P(n,t);return!!Ie(r,e)}function On(e){return!!D(e)}function qn(e){const n=D(e);return n?{...B,...n}:null}function Fn(e){const n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,c=o.prefix,s=o.name,a=t[i]||(t[i]=Object.create(null)),l=a[c]||(a[c]=P(i,c));let u;s in l.icons?u=n.loaded:c===""||l.missing.has(s)?u=n.missing:u=n.pending;const d={provider:i,prefix:c,name:s};u.push(d)}),n}function yt(e,n){e.forEach(t=>{const r=t.loaderCallbacks;r&&(t.loaderCallbacks=r.filter(o=>o.id!==n))})}function Nn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!n.length)return;let t=!1;const r=e.provider,o=e.prefix;n.forEach(i=>{const c=i.icons,s=c.pending.length;c.pending=c.pending.filter(a=>{if(a.prefix!==o)return!0;const l=a.name;if(e.icons[l])c.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))c.missing.push({provider:r,prefix:o,name:l});else return t=!0,!0;return!1}),c.pending.length!==s&&(t||yt([e],i.id),i.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),i.abort))})}))}let Dn=0;function Un(e,n,t){const r=Dn++,o=yt.bind(null,t,r);if(!n.pending.length)return o;const i={id:r,icons:n,callback:e,abort:o};return t.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(i)}),o}const me=Object.create(null);function Ne(e,n){me[e]=n}function ye(e){return me[e]||me[""]}function Hn(e,n=!0,t=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?W(o,n,t):o;i&&r.push(i)}),r}var zn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Bn(e,n,t,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let c;if(e.random){let k=e.resources.slice(0);for(c=[];k.length>1;){const C=Math.floor(Math.random()*k.length);c.push(k[C]),k=k.slice(0,C).concat(k.slice(C+1))}c=c.concat(k)}else c=e.resources.slice(i).concat(e.resources.slice(0,i));const s=Date.now();let a="pending",l=0,u,d=null,h=[],p=[];typeof r=="function"&&p.push(r);function g(){d&&(clearTimeout(d),d=null)}function m(){a==="pending"&&(a="aborted"),g(),h.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),h=[]}function b(k,C){C&&(p=[]),typeof k=="function"&&p.push(k)}function x(){return{startTime:s,payload:n,status:a,queriesSent:l,queriesPending:h.length,subscribe:b,abort:m}}function w(){a="failed",p.forEach(k=>{k(void 0,u)})}function v(){h.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),h=[]}function $(k,C,L){const A=C!=="success";switch(h=h.filter(E=>E!==k),a){case"pending":break;case"failed":if(A||!e.dataAfterTimeout)return;break;default:return}if(C==="abort"){u=L,w();return}if(A){u=L,h.length||(c.length?S():w());return}if(g(),v(),!e.random){const E=e.resources.indexOf(k.resource);E!==-1&&E!==e.index&&(e.index=E)}a="completed",p.forEach(E=>{E(L)})}function S(){if(a!=="pending")return;g();const k=c.shift();if(k===void 0){if(h.length){d=setTimeout(()=>{g(),a==="pending"&&(v(),w())},e.timeout);return}w();return}const C={status:"pending",resource:k,callback:(L,A)=>{$(C,L,A)}};h.push(C),l++,d=setTimeout(S,e.rotate),t(k,n,C.callback)}return setTimeout(S),x}function bt(e){const n={...zn,...e};let t=[];function r(){t=t.filter(s=>s().status==="pending")}function o(s,a,l){const u=Bn(n,s,a,(d,h)=>{r(),l&&l(d,h)});return t.push(u),u}function i(s){return t.find(a=>s(a))||null}return{query:o,find:i,setIndex:s=>{n.index=s},getIndex:()=>n.index,cleanup:r}}function Se(e){let n;if(typeof e.resources=="string")n=[e.resources];else if(n=e.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const oe=Object.create(null),O=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;O.length>0;)O.length===1||Math.random()>.5?Z.push(O.shift()):Z.push(O.pop());oe[""]=Se({resources:["https://api.iconify.design"].concat(Z)});function De(e,n){const t=Se(n);return t===null?!1:(oe[e]=t,!0)}function re(e){return oe[e]}function Wn(){return Object.keys(oe)}function Ue(){}const ce=Object.create(null);function Qn(e){if(!ce[e]){const n=re(e);if(!n)return;const t=bt(n),r={config:n,redundancy:t};ce[e]=r}return ce[e]}function xt(e,n,t){let r,o;if(typeof e=="string"){const i=ye(e);if(!i)return t(void 0,424),Ue;o=i.send;const c=Qn(e);c&&(r=c.redundancy)}else{const i=Se(e);if(i){r=bt(i);const c=e.resources?e.resources[0]:"",s=ye(c);s&&(o=s.send)}}return!r||!o?(t(void 0,424),Ue):r.query(n,o,t)().abort}const He="iconify2",U="iconify",wt=U+"-count",ze=U+"-version",kt=36e5,Vn=168;function be(e,n){try{return e.getItem(n)}catch{}}function Te(e,n,t){try{return e.setItem(n,t),!0}catch{}}function Be(e,n){try{e.removeItem(n)}catch{}}function xe(e,n){return Te(e,wt,n.toString())}function we(e){return parseInt(be(e,wt))||0}const M={local:!0,session:!0},vt={local:new Set,session:new Set};let $e=!1;function Zn(e){$e=e}let Q=typeof window>"u"?{}:window;function jt(e){const n=e+"Storage";try{if(Q&&Q[n]&&typeof Q[n].length=="number")return Q[n]}catch{}M[e]=!1}function Ct(e,n){const t=jt(e);if(!t)return;const r=be(t,ze);if(r!==He){if(r){const s=we(t);for(let a=0;a<s;a++)Be(t,U+a.toString())}Te(t,ze,He),xe(t,0);return}const o=Math.floor(Date.now()/kt)-Vn,i=s=>{const a=U+s.toString(),l=be(t,a);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&n(u,s))return!0}catch{}Be(t,a)}};let c=we(t);for(let s=c-1;s>=0;s--)i(s)||(s===c-1?(c--,xe(t,c)):vt[e].add(s))}function It(){if(!$e){Zn(!0);for(const e in M)Ct(e,n=>{const t=n.data,r=n.provider,o=t.prefix,i=P(r,o);if(!Ie(i,t).length)return!1;const c=t.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,c):c,!0})}}function Gn(e,n){const t=e.lastModifiedCached;if(t&&t>=n)return t===n;if(e.lastModifiedCached=n,t)for(const r in M)Ct(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===n});return!0}function Kn(e,n){$e||It();function t(r){let o;if(!M[r]||!(o=jt(r)))return;const i=vt[r];let c;if(i.size)i.delete(c=Array.from(i).shift());else if(c=we(o),!xe(o,c+1))return;const s={cached:Math.floor(Date.now()/kt),provider:e.provider,data:n};return Te(o,U+c.toString(),JSON.stringify(s))}n.lastModified&&!Gn(e,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),t("local")||t("session"))}function We(){}function Jn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Nn(e)}))}function Yn(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=ye(t)))return;i.prepare(t,r,o).forEach(s=>{xt(t,s,a=>{if(typeof a!="object")s.icons.forEach(l=>{e.missing.add(l)});else try{const l=Ie(e,a);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),Kn(e,a)}catch(l){console.error(l)}Jn(e)})})}))}const Le=(e,n)=>{const t=Hn(e,!0,gt()),r=Fn(t);if(!r.pending.length){let a=!0;return n&&setTimeout(()=>{a&&n(r.loaded,r.missing,r.pending,We)}),()=>{a=!1}}const o=Object.create(null),i=[];let c,s;return r.pending.forEach(a=>{const{provider:l,prefix:u}=a;if(u===s&&l===c)return;c=l,s=u,i.push(P(l,u));const d=o[l]||(o[l]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(a=>{const{provider:l,prefix:u,name:d}=a,h=P(l,u),p=h.pendingIcons||(h.pendingIcons=new Set);p.has(d)||(p.add(d),o[l][u].push(d))}),i.forEach(a=>{const{provider:l,prefix:u}=a;o[l][u].length&&Yn(a,o[l][u])}),n?Un(n,r,i):We},Xn=e=>new Promise((n,t)=>{const r=typeof e=="string"?W(e,!0):e;if(!r){t(e);return}Le([r||e],o=>{if(o.length&&r){const i=D(r);if(i){n({...B,...i});return}}t(e)})});function eo(e){try{const n=typeof e=="string"?JSON.parse(e):e;if(typeof n.body=="string")return{...n}}catch{}}function to(e,n){const t=typeof e=="string"?W(e,!0,!0):null;if(!t){const i=eo(e);return{value:e,data:i}}const r=D(t);if(r!==void 0||!t.prefix)return{value:e,name:t,data:r};const o=Le([t],()=>n(e,t,D(t)));return{value:e,name:t,loading:o}}function ae(e){return e.hasAttribute("inline")}let St=!1;try{St=navigator.vendor.indexOf("Apple")===0}catch{}function no(e,n){switch(n){case"svg":case"bg":case"mask":return n}return n!=="style"&&(St||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const oo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ro=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ke(e,n,t){if(n===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*n*t)/t;if(typeof e!="string")return e;const r=e.split(oo);if(r===null||!r.length)return e;const o=[];let i=r.shift(),c=ro.test(i);for(;;){if(c){const s=parseFloat(i);isNaN(s)?o.push(i):o.push(Math.ceil(s*n*t)/t)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");c=!c}}const io=e=>e==="unset"||e==="undefined"||e==="none";function Tt(e,n){const t={...B,...e},r={...dt,...n},o={left:t.left,top:t.top,width:t.width,height:t.height};let i=t.body;[t,r].forEach(g=>{const m=[],b=g.hFlip,x=g.vFlip;let w=g.rotate;b?x?w+=2:(m.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),m.push("scale(-1 1)"),o.top=o.left=0):x&&(m.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),m.push("scale(1 -1)"),o.top=o.left=0);let v;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:v=o.height/2+o.top,m.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:m.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,m.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}w%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),m.length&&(i='<g transform="'+m.join(" ")+'">'+i+"</g>")});const c=r.width,s=r.height,a=o.width,l=o.height;let u,d;c===null?(d=s===null?"1em":s==="auto"?l:s,u=ke(d,a/l)):(u=c==="auto"?a:c,d=s===null?ke(u,l/a):s==="auto"?l:s);const h={},p=(g,m)=>{io(m)||(h[g]=m.toString())};return p("width",u),p("height",d),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+a.toString()+" "+l.toString(),{attributes:h,body:i}}const so=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let X=so();function co(e){X=e}function ao(){return X}function lo(e,n){const t=re(e);if(!t)return 0;let r;if(!t.maxURL)r=0;else{let o=0;t.resources.forEach(c=>{o=Math.max(o,c.length)});const i=n+".json?icons=";r=t.maxURL-o-t.path.length-i.length}return r}function uo(e){return e===404}const fo=(e,n,t)=>{const r=[],o=lo(e,n),i="icons";let c={type:i,provider:e,prefix:n,icons:[]},s=0;return t.forEach((a,l)=>{s+=a.length+1,s>=o&&l>0&&(r.push(c),c={type:i,provider:e,prefix:n,icons:[]},s=a.length),c.icons.push(a)}),r.push(c),r};function ho(e){if(typeof e=="string"){const n=re(e);if(n)return n.path}return"/"}const po=(e,n,t)=>{if(!X){t("abort",424);return}let r=ho(n.provider);switch(n.type){case"icons":{const i=n.prefix,s=n.icons.join(","),a=new URLSearchParams({icons:s});r+=i+".json?"+a.toString();break}case"custom":{const i=n.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:t("abort",400);return}let o=503;X(e+r).then(i=>{const c=i.status;if(c!==200){setTimeout(()=>{t(uo(c)?"abort":"next",c)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?t("abort",i):t("next",o)});return}setTimeout(()=>{t("success",i)})}).catch(()=>{t("next",o)})},go={prepare:fo,send:po};function Qe(e,n){switch(e){case"local":case"session":M[e]=n;break;case"all":for(const t in M)M[t]=n;break}}const le="data-style";let $t="";function mo(e){$t=e}function Ve(e,n){let t=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(le));t||(t=document.createElement("style"),t.setAttribute(le,le),e.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+$t}function Lt(){Ne("",go),gt(!0);let e;try{e=window}catch{}if(e){if(It(),e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Fe(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const r in t){const o="IconifyProviders["+r+"] is invalid.";try{const i=t[r];if(typeof i!="object"||!i||i.resources===void 0)continue;De(r,i)||console.error(o)}catch{console.error(o)}}}}return{enableCache:t=>Qe(t,!0),disableCache:t=>Qe(t,!1),iconExists:On,getIcon:qn,listIcons:_n,addIcon:mt,addCollection:Fe,calculateSize:ke,buildIcon:Tt,loadIcons:Le,loadIcon:Xn,addAPIProvider:De,appendCustomStyle:mo,_api:{getAPIConfig:re,setAPIModule:Ne,sendAPIQuery:xt,setFetch:co,getFetch:ao,listAPIProviders:Wn}}}function At(e,n){let t=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in n)t+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}function yo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function bo(e){return"data:image/svg+xml,"+yo(e)}function xo(e){return'url("'+bo(e)+'")'}const ve={"background-color":"currentColor"},Pt={"background-color":"transparent"},Ze={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ge={"-webkit-mask":ve,mask:ve,background:Pt};for(const e in Ge){const n=Ge[e];for(const t in Ze)n[e+"-"+t]=Ze[t]}function Ke(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function wo(e,n,t){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const i=e.attributes,c=At(o,{...i,width:n.width+"",height:n.height+""}),s=xo(c),a=r.style,l={"--svg":s,width:Ke(i.width),height:Ke(i.height),...t?ve:Pt};for(const u in l)a.setProperty(u,l[u]);return r}let F;function ko(){try{F=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{F=null}}function vo(e){return F===void 0&&ko(),F?F.createHTML(e):e}function jo(e){const n=document.createElement("span"),t=e.attributes;let r="";t.width||(r="width: inherit;"),t.height||(r+="height: inherit;"),r&&(t.style=r);const o=At(e.body,t);return n.innerHTML=vo(o),n.firstChild}function Je(e,n){const t=n.icon.data,r=n.customisations,o=Tt(t,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const i=n.renderedMode;let c;i==="svg"?c=jo(o):c=wo(o,{...B,...t},i==="mask");const s=Array.from(e.childNodes).find(a=>{const l=a.tagName&&a.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});s?c.tagName==="SPAN"&&s.tagName===c.tagName?s.setAttribute("style",c.getAttribute("style")):e.replaceChild(c,s):e.appendChild(c)}function Ye(e,n,t){const r=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:n,icon:e,lastRender:r}}function Co(e="iconify-icon"){let n,t;try{n=window.customElements,t=window.HTMLElement}catch{return}if(!n||!t)return;const r=n.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],i=class extends t{_shadowRoot;_state;_checkQueued=!1;constructor(){super();const s=this._shadowRoot=this.attachShadow({mode:"open"}),a=ae(this);Ve(s,a),this._state=Ye({value:""},a),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(s){if(s==="inline"){const a=ae(this),l=this._state;a!==l.inline&&(l.inline=a,Ve(this._shadowRoot,a))}else this._queueCheck()}get icon(){const s=this.getAttribute("icon");if(s&&s.slice(0,1)==="{")try{return JSON.parse(s)}catch{}return s}set icon(s){typeof s=="object"&&(s=JSON.stringify(s)),this.setAttribute("icon",s)}get inline(){return ae(this)}set inline(s){s?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const s=this._state;if(s.rendered){const a=this._shadowRoot;if(s.renderedMode==="svg")try{a.lastChild.setCurrentTime(0);return}catch{}Je(a,s)}}get status(){const s=this._state;return s.rendered?"rendered":s.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const s=this._state,a=this.getAttribute("icon");if(a!==s.icon.value){this._iconChanged(a);return}if(!s.rendered)return;const l=this.getAttribute("mode"),u=Oe(this);(s.attrMode!==l||$n(s.customisations,u))&&this._renderIcon(s.icon,u,l)}_iconChanged(s){const a=to(s,(l,u,d)=>{const h=this._state;if(h.rendered||this.getAttribute("icon")!==l)return;const p={value:l,name:u,data:d};p.data?this._gotIconData(p):h.icon=p});a.data?this._gotIconData(a):this._state=Ye(a,this._state.inline,this._state)}_gotIconData(s){this._checkQueued=!1,this._renderIcon(s,Oe(this),this.getAttribute("mode"))}_renderIcon(s,a,l){const u=no(s.data.body,l),d=this._state.inline;Je(this._shadowRoot,this._state={rendered:!0,icon:s,inline:d,customisations:a,attrMode:l,renderedMode:u})}};o.forEach(s=>{s in i.prototype||Object.defineProperty(i.prototype,s,{get:function(){return this.getAttribute(s)},set:function(a){a!==null?this.setAttribute(s,a):this.removeAttribute(s)}})});const c=Lt();for(const s in c)i[s]=i.prototype[s]=c[s];return n.define(e,i),i}const Io=Co()||Lt(),{enableCache:Ar,disableCache:Pr,iconExists:Er,getIcon:Mr,listIcons:Rr,addIcon:_r,addCollection:Or,calculateSize:qr,buildIcon:Fr,loadIcons:Nr,loadIcon:Dr,addAPIProvider:Ur,_api:Hr}=Io,ie=(e,n,t="children")=>e.map(r=>Array.isArray(r[t])?n({...r,[t]:ie(r[t],n,t)}):n(r)),zr=(e,n="children")=>{const t=[];return ie(e,r=>t.push(r),n),t},Ae=(e,n,t="children")=>e.map(r=>({...r})).filter(r=>{const o=r[t];if(Array.isArray(o)){const c=Ae(o,n,t);r[t]=c?.length?c:void 0}const i={filteredChildren:r[t],isLeaf:!o?.length};return n(r,i)}),So=e=>/^https?:\/\//.test(e),To=e=>/^mailto:/i.test(e.trim()),$o=e=>{if(!e||!e?.startsWith("/"))return!1;const n=o=>o.endsWith("/")?o:`${o}/`,t=n(window.location.pathname),r=n(new URL(e,window.location.origin).pathname);return t.startsWith(r)},Br=(e=[])=>{const n=e.map((t,r)=>({path:t,index:r})).filter(t=>$o(t.path));return n?.length?n.slice(1).reduce((t,r)=>t.path.length>=r.path.length?t:r,n[0]).index:-1},Wr=(e,n={})=>{const{columns:t=1,breakInside:r=!1,groupHeight:o=48,itemHeight:i=24,childrenKey:c="items"}=n,s=e.length,a=e.reduce((m,b)=>m+o+(b[c]?.length||0)*i,0),l=Math.ceil(a/t),u=[[]];let d=0,h=0;const p=l*.2,g=m=>h>l-p&&d<t-1&&h+m>l+p;return e.forEach(m=>{const b=o+(m[c]?.length||0)*i;r&&g(o)&&(d++,h=0,u[d]=[]),!r&&h>0&&(s<=t||g(b))&&(d++,h=0,u[d]=[]),u[d].push({...m,group:!0}),h+=o,m[c]&&m[c].forEach(x=>{r&&g(i)&&(d++,h=0,u[d]=[]),u[d].push({...x,group:!1}),h+=i})}),u},Qr=window?.blocklet?.groupPrefix||window?.blocklet?.prefix||"/",Lo=e=>{const n={...e},t=e?.background;return typeof t=="string"?n.background={header:t,footer:t,default:t}:t&&typeof t=="object"&&(n.background={header:t.header||t.default,footer:t.footer||t.default,default:t.default}),n},Ao=(e,n="en",t="en")=>{if(typeof e=="string"){if(So(e)){const o=new URL(e);return o.searchParams.set("locale",n),o.href}if(To(e))return e;const r=new URL(e,window.location.origin);return r.searchParams.set("locale",n),r.pathname+r.search}return typeof e=="object"?e[n]||e[t]||e.en:e},Po=({navigation:e,locale:n,defaultLocale:t,section:r="header"})=>{if(!e?.length)return e;const o=(i,c)=>i&&typeof i=="object"?i[c]||i[t]||i.en:i;return ie(e,i=>({...i,title:o(i.title,n),description:o(i.description,n),link:jn(i.items?.length?i.link:Ao(i.link,n,t),r),_rawLink:i.link}),"items")},Eo=e=>ie(e,n=>n.role?{...n,role:Array.isArray(n.role)?n.role:[n.role]}:n,"items"),Mo=e=>{if(!e?.length)return null;const n=Eo(e),t={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return n.forEach(r=>{r.section?Array.isArray(r.section)?r.section.forEach(o=>{t[o]?.push(r)}):typeof r.section=="string"&&t[r.section]?.push(r):t.header.push(r)}),t},Vr=e=>{if(!e)return null;const n={...e};return n.theme=Lo(n.theme),n.navigation=Mo(Ro(n.navigation)),n},Ro=(e=[])=>Ae(e,(n,t)=>!!n.link||t.filteredChildren?.length,"items"),_o=(e,n)=>Ae(e,(t,r)=>{const o=!t.role||n&&(t.role.includes(n)||t.role.includes("guest"));return r.isLeaf?o:o&&r.filteredChildren?.length},"items"),Oo={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},qo={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function Fo({session:e,locale:n="zh",size:t=24,popperType:r="click",sx:o,...i}){const c=window?.blocklet||{},s=(c.navigation||[]).filter(p=>p.section==="sessionManager"&&!["/sessionManager"].includes(p.id)).filter(p=>!!(p?.role||[]).includes(e?.user?.role||"guest")).map(p=>{const g=(c?.componentMountPoints||[]).find(m=>p.component===m.name);return{...p,component:g}}),a=te(),l=j.useRef(null),u=gn({open:!1}),d=K((p=!u.open)=>{u.open=p}),h=r==="hover"?{onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)}:{onClick:()=>d()};return s.length===0||!e?.user?null:f.jsxs(G,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",...o},...i,...h,children:[f.jsx(Ce,{size:"medium",ref:l,children:f.jsx(pe,{icon:Oo,fontSize:t,style:{transform:"scale(1.08)"}})}),f.jsx(Ot,{open:u.open,anchorEl:l.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:p})=>f.jsx(qt,{onClickAway:g=>{g.preventDefault(),g.stopPropagation(),d(!1)},children:f.jsx(Ft,{...p,timeout:350,children:f.jsxs(Nt,{variant:"outlined",sx:{borderRadius:1.5,width:350,maxWidth:"90vw",p:2},children:[f.jsx(Dt,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:s.map(g=>f.jsx(Ut,{disablePadding:!0,children:f.jsxs(Ht,{href:_e(g.link,n),sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:1,"&:hover":{backgroundColor:"action.hover"}},children:[g?.component?.did?f.jsx(G,{component:"img",src:`${st}/blocklet/logo-bundle/${g.component.did}`,sx:{borderRadius:1,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):f.jsx(pe,{fontSize:50,icon:g.icon||qo,color:a.palette.text.secondary}),f.jsx(_,{sx:{fontSize:"12px",color:"text.primary",textAlign:"center",lineHeight:"normal"},children:_e(g.title,n)})]})},g.id))}),f.jsx(rn,{session:e,children:f.jsx(sn,{variant:"outlined",fullWidth:!0,href:cn,sx:{mt:1},children:n==="zh"?"管理":"Manage"})})]})})})})]})}const Zr=y.shape({appLogo:y.node,appName:y.string,theme:y.shape({background:y.string}),enableConnect:y.bool,enableLocale:y.bool,navigation:y.arrayOf(y.shape({title:y.oneOfType([y.string,y.object]),link:y.oneOfType([y.string,y.object]),icon:y.string,items:y.arrayOf(y.shape({title:y.oneOfType([y.string,y.object]),link:y.oneOfType([y.string,y.object])}))}))}),No=y.shape({showText:y.bool,showRole:y.bool,switchDid:y.bool,switchProfile:y.bool,switchPassport:y.bool,disableLogout:y.bool,onLogin:y.func,onLogout:y.func,onSwitchDid:y.func,onSwitchProfile:y.func,onSwitchPassport:y.func,menu:y.array,menuRender:y.func,dark:y.bool,size:y.number,profileUrl:y.string,renderUserButton:y.func}),Do=["admin","owner"],Uo=e=>e.endsWith(".ip.abtnet.io"),Ho=e=>e.endsWith(".did.abtnet.io"),zo={en:{guest:{title:"Notice: You are using a temporary domain",description:"You are accessing this site through a temporary domain. For a better experience, please contact the site administrator to configure a custom domain. Using a custom domain not only makes access more convenient but also ensures your access is more secure."},owner:{title:"Enhance Your Website Security",description:"Dear administrator, we recommend configuring your custom domain immediately, which will:",benefits1:"Automatically obtain HTTPS certificates to ensure secure data transmission",benefits2:"Create an exclusive brand image and increase website credibility",benefits3:"Get a shorter, more memorable access address",benefits4:"Provide visitors with a more professional experience",benefits5:"Domain configuration takes just minutes to complete, taking your website to the next level!"},skip:"Remind Me Later",bindDomain:"Configure Domain"},zh:{guest:{title:"温馨提示:当前使用的是临时域名",description:"您正在通过临时域名访问本站点。为了获得更好的访问体验,请联系站点管理员配置自定义域名。使用自定义域名不仅访问更便捷,还能确保您的访问更加安全。"},owner:{title:"提升网站安全性与专业度",description:"尊敬的管理员,我们建议您尽快配置自定义域名,这样可以:",benefits1:"自动获取 HTTPS 证书,确保数据传输安全",benefits2:"打造专属品牌形象,提升网站可信度",benefits3:"获得更简短、易记的访问地址",benefits4:"为访客提供更专业的访问体验",benefits5:"只需几分钟即可完成域名配置,全面提升您的网站品质!"},skip:"稍后提醒",bindDomain:"配置域名"}},Bo=1e3*60*60*24*30,Xe=".well-known/service/admin/domains";function Et({locale:e="en",session:n={}}){const t=n?.user,r=xn(),[o,i]=j.useState(()=>{const h=window.localStorage.getItem("domain-warning-skip");if(!h)return!0;const p=+new Date,g=+new Date(h);return p-g>Bo}),c=K((h,p={})=>an(zo,h,e,"en",p)),s=j.useMemo(()=>{try{const{hostname:h}=new URL(window.location.href);return h}catch{return""}},[]),a=j.useMemo(()=>[c("owner.benefits1"),c("owner.benefits2"),c("owner.benefits3"),c("owner.benefits4"),c("owner.benefits5")],[c]),l=j.useCallback(()=>{window.localStorage.setItem("domain-warning-skip",new Date().toISOString()),i(!1)},[]),u=j.useCallback(()=>{const h=z(window.location.origin,Xe);h.startsWith("http")&&window.open(h,"_blank"),i(!1)},[]),d=t?.role&&Do.includes(t.role);return window.location.href.includes(Xe)||r||!Uo(s)&&!Ho(s)?null:f.jsxs(zt,{open:o,disableEscapeKeyDown:!0,fullWidth:!0,maxWidth:"sm",onClose:()=>i(!1),children:[f.jsxs(Bt,{sx:{padding:"20px !important"},children:[f.jsx(_,{sx:{fontSize:"20px",fontWeight:"500"},children:c(d?"owner.title":"guest.title")}),f.jsx(_,{sx:{marginTop:"20px",fontSize:"14px",color:"text.secondary"},children:c(d?"owner.description":"guest.description")}),d&&f.jsx(G,{component:"ul",children:a.map(h=>f.jsx(_,{component:"li",sx:{fontSize:"14px",color:"text.secondary"},children:h},h))})]}),f.jsxs(Wt,{sx:{px:"12px !important"},children:[f.jsx(Pe,{onClick:l,children:c("skip")}),d&&f.jsx(Pe,{variant:"contained",onClick:u,children:c("bindDomain")})]})]})}Et.propTypes={locale:y.string,session:y.object};const Wo=e=>j.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},j.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.251 2.5c-2.576-.006-4.747 2.1-4.766 4.506v5.784c0 .793-.084 1.778-.58 2.71h12.19c-.496-.932-.58-1.917-.58-2.711V7.01c-.035-2.403-2.21-4.502-4.797-4.508L9.25 2.5zM17.015 7v5.789c0 .79.1 1.562.53 2.219l.287.438c.436.664-.033 1.554-.817 1.554H2.985c-.785 0-1.255-.89-.818-1.554l.287-.438c.43-.657.53-1.428.53-2.218V7c.024-3.291 2.927-6.008 6.27-6l1.467.003c3.344.008 6.254 2.706 6.294 5.998zM11.06 18.06A1.5 1.5 0 0 0 11.5 17H13a3 3 0 0 1-6 0h1.5a1.5 1.5 0 0 0 2.56 1.06z",fill:"currentColor"})),I={};function Qo(e="admin"){let n="/";!window?.blocklet&&window?.env?.apiPrefix&&(n=window.env.apiPrefix);const t=z(n,st,e);return new Yt(t,{heartbeatIntervalMs:100*1e3})}function Vo(e="admin"){return I[e]||(I[e]=Qo(e)),I[e]}const Zo=(e="admin")=>{const n=j.use(rt),{session:t}=n??{},r=T(()=>t.user?.did,[t.user]),o=mn(r);return yn(()=>{Object.keys(I).forEach(i=>{I[i]?.isConnected()&&I[i]?.disconnect(),delete I[i]})}),r?(o&&o!==r&&Object.keys(I).forEach(i=>{I[i]&&(I[i].isConnected()&&I[i].disconnect(),I[i].connect())}),!I[e]&&t.user&&(I[e]=Vo(e),I[e].connect()),I[e]):null},Go={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0"/><path d="m9 12l2 2l4-4"/></g>'},Ko={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-3v4m0 3v.01"/>'},Jo={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 0 9-9a9 9 0 0 0-9-9a9 9 0 0 0-9 9a9 9 0 0 0 9 9zM9 8l6 8m0-8l-6 8"/>'};function Yo(){const e=te();return[...e.breakpoints.keys].reverse().reduce((n,t)=>{const r=Qt(e.breakpoints.up(t));return!n&&r?t:n},null)||"xs"}var ue,et;function Xo(){if(et)return ue;et=1;const{joinURL:e,withQuery:n}=Xt(),{toTypeInfo:t}=kn(),{isEVMChain:r,getExplorerUrl:o}=en(),{arcChainConfig:i}=tn(),c={ROLE_ROLLUP:"number"},s="https://explorer.abtnetwork.io/explorer/";return ue=function({hash:l,asset:u,rollup:d,address:h,token:p,stake:g,chainId:m=""}){if(r(m)){const v=o(m);return l?e(v,`tx/${l}`):u?e(v,`token/${u}`):e(v,`address/${h}`)}const x=i[m]?.defaultRPC,w=x?`${x}`:void 0;return d&&t(d).role===c.ROLE_ROLLUP?l?n(e(s,`rollups/${d}/moves/${l}`),{host:w}):n(e(s,`rollups/${d}`),{host:w}):u?n(e(s,`assets/${u}`),{host:w}):l?n(e(s,`txs/${l}`),{host:w}):p?n(e(s,`tokens/${p}/tx`),{host:w}):g?n(e(s,`stakes/${g}`),{host:w}):n(e(s,`accounts/${h}`),{host:w})},ue}var de,tt;function Mt(){return tt||(tt=1,de={isSameAddr:(e,n)=>String(e).toLowerCase()===String(n).toLowerCase()}),de}var fe,nt;function er(){if(nt)return fe;nt=1;const e=Xo(),{isSameAddr:n}=Mt();class t{constructor({type:a,did:l,chainId:u,text:d}){this.text=d,this.did=l,this.type=a,this.chainId=u}}const r=s=>{const a=[];try{let l=0;const u=/<(.+?)\(?[tx|nft|token|stake|did|dapp|link]+[:](.+?)\)?>/gi,d=s.matchAll(u);for(const h of d){const p=/\([tx|nft|token|stake|did|dapp|link]+[:](.+?)\)/gi,g=h[0],m=h.index||l,b=m+g.length;if([...g.matchAll(p)].length>1)return[s];let w="";const v=p.exec(g);let $="";if(v){const A=v[0];w=g.replace(A,"").replace(/^</,"").replace(/(>)$/,""),$=A.replace(/\)$/,"").replace(/^\(/,"")}else $=g;const S=$.split(":"),k=(S[0]||"").replace(/^</,"").replace(/^\(/,"").toUpperCase(),C=(S[1]||"").replace(/>$/,"").replace(/\)$/,""),L=(S[S.length-1]||"").replace(/>$/,"").replace(/\)$/,"");a.push(s.substring(l,m)),a.push(new t({type:k,chainId:C,did:L,text:w||k})),l=b}return l<s.length&&a.push(s.substring(l)),a}catch(l){return console.error(l?.message),[s]}},o=s=>{let a;const{type:l,chainId:u,did:d}=s;return n(l,"link")?a=`${u}:${d}`:n(l,"tx")?a=e({hash:d,chainId:u}):n(l,"stake")?a=e({stake:d,chainId:u}):n(l,"nft")?a=e({asset:d,chainId:u}):n(l,"token")?a=e({token:d,chainId:u}):n(l,"did")&&(a=e({address:d,chainId:u})),a};return fe={toClickableSpan:(s,a=!0)=>r(s).map(u=>{if(u instanceof t){if(a){const d=o(u),{type:h,chainId:p,did:g}=u;return n(h,"dapp")?`<em style="font-weight:bold;" data-type="${h}" data-chain-id="${p}" data-did="${g}">${u.text}</em>`:d?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${d}">${u.text}</a>`:`<em style="font-weight:bold;" data-type="${h}" data-chain-id="${p}" data-did="${g}">${u.text}</em>`}return u.text}return u}).join(""),toTextList:r,toSlackLink:s=>r(s).map(l=>l instanceof t?`<${o(l)}|${l.text}>`:l.replace(/:\n/g,": ")).join(""),Link:t,getLink:o},fe}var ee=er(),Rt=Mt();const tr=e=>!lt(e.activity)&&!!e.activity?.type&&!!e.activity?.actor,nr=e=>{if(!e)return null;const{meta:n,target:t}=e;return{metaLink:n?.id,targetLink:t?.id}},or=async(e,n)=>{try{return await nn().user.getProfileUrl({did:e,locale:n})}catch(t){console.error(t);return}},rr=async(e,n)=>{const{type:t,did:r}=e;return Rt.isSameAddr(t,"did")&&await or(r,n)||ee.getLink(e)},ir=async(e,n,t=!0)=>{const r=ee.toTextList(e);return await Promise.all(r.map(async o=>{if(o instanceof ee.Link){if(t){const i=await rr(o,n),{type:c,chainId:s,did:a}=o;return Rt.isSameAddr(c,"dapp")?`<em class="dapp" data-type="${c}" data-chain-id="${s}" data-did="${a}">${o.text}</em>`:i?`<a target="_blank" rel="noopener noreferrer" class="link" href="${i}">${o.text}</a>`:`<em class="common" data-type="${c}" data-chain-id="${s}" data-did="${a}">${o.text}</em>`}return o.text}return o})).then(o=>o.join(""))},sr=e=>wn.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),cr={comment:(e,n)=>n&&n>1?f.jsxs(f.Fragment,{children:["left ",n," comments on your ",e]}):f.jsxs(f.Fragment,{children:["commented on your ",e]}),like:e=>f.jsxs(f.Fragment,{children:["liked your ",e]}),follow:()=>f.jsx(f.Fragment,{children:"followed you"}),tips:e=>f.jsxs(f.Fragment,{children:["gave tips to your ",e]}),mention:e=>f.jsxs(f.Fragment,{children:["mentioned you in ",e]}),assign:()=>f.jsx(f.Fragment,{children:"assigned you a task"})};function R({user:e,color:n=void 0}){const{palette:t}=te(),r=ne(z(it,"user"),{did:e.did}),o=n||t.text.primary;return f.jsx(ot,{href:r,color:o,target:"_blank",onClick:i=>{i.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none","&:hover":{cursor:"pointer"}},children:e.fullName||"System"})}R.displayName="UserLink";function ar({activity:e,users:n,actors:t,extra:r={},mountPoint:o=""}){const{palette:i}=te(),{type:c,target:s}=e||{},{type:a}=s||{},{linkColor:l=i.text.primary}=r||{},u=T(()=>{if(!Array.isArray(n))return new Map;const b=new Map;return n.forEach(x=>{x?.did&&!b.has(x.did)&&b.set(x.did,x)}),b},[n]),d=T(()=>Array.isArray(t)?t.map(b=>b?u.get(b)||{did:b,fullName:"System"}:null).filter(Boolean):[],[t,u]),h=K(()=>{if(!Array.isArray(d)||d.length===0)return null;if(d.length===1)return f.jsx(R,{user:d[0],color:l});const b=d.slice(0,-1),x=d[d.length-1];if(d.length===2)return f.jsxs(f.Fragment,{children:[f.jsx(R,{user:b[0],color:l})," and ",f.jsx(R,{user:x,color:l})]});const w=d.length>3,v=w?d.slice(0,2):b;return f.jsxs(f.Fragment,{children:[v.map(($,S)=>f.jsxs(Jt.Fragment,{children:[f.jsx(R,{user:$,color:l}),S<v.length-1?", ":""]},$.did)),w?`, and ${d.length-2} others`:f.jsxs(f.Fragment,{children:[", and ",f.jsx(R,{user:x,color:l})]})]})}),p=K(()=>{const b=c?cr[c]:null;return b?b(a,n.length):null}),g=T(()=>{const b=h(),x=p();return!b||!x?null:f.jsxs(f.Fragment,{children:[b," ",x]})},[c,a,d,h,p]),m=T(()=>{if(!e)return null;const b=nr(e);return b?.targetLink?z(o,b.targetLink):null},[e,o]);return!c||lt(s)?null:f.jsxs(f.Fragment,{children:[g," ",m&&f.jsx(ot,{href:m,color:l,target:"_blank",sx:{textDecoration:"none"},onClick:b=>{b.customPreventRedirect=!0},children:s.name})]})}const lr={normal:Ee,success:Go,info:Ee,warning:Ko,error:Jo},ur=H(Gt)`
2
2
  font-size: 20px;
3
3
  `,dr=H.div`
4
4
  display: flex;
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.__toCdnUrl("assets/vendor-ux-DYcPPYq2.css"),window.__toCdnUrl("assets/index-DrCTi6nm.css")])))=>i.map(i=>d[i]);
2
- import{j as e,aT as E,al as c,ao as X,T as b,a7 as P,n as J,X as r}from"./vendor-mui-core-CDEc-eG6.js";import{j as Y,u as Z,r as o,k as ee,l as g,N as te}from"./vendor-react-DX7tU9aY.js";import{y as i}from"./vendor-utils-_C9URqjS.js";import{W as $,v as se,u as ne,F as T,G as w,I as ie,J as re,K as z,L as oe}from"./index-DcM4ljaV.js";import{aa as N,ao as ae,J as x}from"./vendor-ux-PO0jFgJf.js";import{g as O}from"./get-safe-url-C1Ml6qBb.js";import{u as le}from"./use-server-logo-btsDYvqE.js";function Le(t=`${$}/setup`,d=!1,h=null){const{t:s}=N(),[f,y]=Y(),p=Z(),{meta:m,blocklet:n,actions:a,launcherSession:v}=se(),j=localStorage.getItem("blocklet-server-url"),{session:S}=ne(),D=n?.environments?.find(u=>u.key===T.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT)?.value,B=le({onClick:()=>{window.open(O(j,{allowDomains:null}))}}),I=w("fromLauncher"),U=w("launcherUrl"),W=w("launchType"),R=w("visitorId");R&&(ae(R),f.delete("visitorId"),y(f)),o.useEffect(()=>{ie(),S.user&&(a?.refreshMeta(),a?.refreshBlocklet({showError:!1}))},[S.user]),o.useEffect(()=>{a.refreshFuel({showError:!1})},[n?.meta?.did]);const q=u=>{const l=u?.capabilities?.didSpace;return l?l===T.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||l===T.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP?{key:"did-space",stepTitle:s("setup.steps.didSpace"),name:e.jsxs(e.Fragment,{children:[s("setup.steps.didSpace")," ",e.jsx("span",{className:"required",children:"*"})]}),path:i(t,"did-space"),description:s("setup.didSpace.subTitle"),getButtonDisabled:()=>!D}:l===T.BLOCKLET_APP_SPACE_REQUIREMENT.OPTIONAL?{key:"did-space",stepTitle:s("setup.steps.didSpace"),name:e.jsx(e.Fragment,{children:s("setup.steps.didSpace")}),path:i(t,"did-space"),description:s("setup.didSpace.subTitle"),getButtonDisabled:()=>!1}:(console.warn(`capabilities.didSpace cannot take the value ${l}`),null):null},F=()=>{const{requirements:u}=m;return{key:"aigne",stepTitle:s("setup.steps.aigne"),name:e.jsxs(e.Fragment,{children:[s("setup.aigne.title")," ",u?.aigne&&e.jsx("span",{className:"required",children:"*"})]}),path:i(t,"aigne"),description:s("setup.aigne.subTitle")}},_=[{key:"bind-account",stepTitle:s("setup.steps.connect"),name:s("setup.connectAccount.title"),path:i(t,"bind-account"),description:s("setup.connectAccount.subTitle")},{key:"access",stepTitle:s("setup.steps.access"),name:s("setup.accessControl.title"),path:i(t,"access"),description:s("setup.accessControl.subTitle")},F(),{key:"domain",stepTitle:s("setup.steps.domain"),name:s("setup.domain.title"),path:i(t,"domain"),description:s("setup.domain.subTitle")},q(n),d?{key:"branding",stepTitle:s("setup.steps.branding"),name:s("setup.branding.title"),path:i(t,"branding"),description:s("setup.branding.subTitle")}:{key:"config",stepTitle:s("setup.steps.config"),name:e.jsxs(e.Fragment,{children:[s("setup.steps.config")," ",re(m)&&e.jsx("span",{className:"required",children:"*"})]}),path:i(t,"config"),description:s("setup.config.subTitle")},m?.requirements?.fuels?.length?{key:"fuel",stepTitle:s("setup.steps.fuel"),name:e.jsxs(e.Fragment,{children:[s("setup.steps.fuel")," ",e.jsx("span",{className:"required",children:"*"})]}),path:i(t,"fuel"),description:s("setup.fuel.subTitle")}:null].filter(Boolean),k=_.findIndex(u=>`${z.replace(/\/$/,"")}${t}/${u.key}`===window.location.pathname),V=i(z,$,`/blocklet/logo?v=${n?.updatedAt}`),K=async u=>{const{search:l}=new URL(window.location.href),H=_[k];if(l.includes("from=empty")&&H.key==="config"){window.open(O(`${i(oe,"/overview/components")}${l}`));return}if(!u)_[k+1]?p(`${i(t,_[k+1].key)}${l}`):h?h():p(`${i(t,"complete")}${l}`);else{const A=_.findIndex(G=>G.key===u);A>-1?p(`${i(t,_[A].key)}${l}`):h?h():p(`${i(t,"complete")}${l}`)}await a.refreshBlocklet()},M=u=>{const{search:l}=new URL(window.location.href);p(`${i(t,u)}${l}`)},Q=()=>{p(-1)},C=[{key:"install",name:s("launchBlocklet.steps.installApp"),path:i(t,"install")},{key:"setup",name:s("setup.steps.launchApp"),children:_}];let L=[{key:"agreement",name:s("launchBlocklet.introduction"),path:i(t,"agreement")},...C];return I&&(L=[{key:"purchase-space",name:s("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:s("launchBlocklet.steps.prepareSpace")},...C]),{meta:m,blocklet:n,actions:a,launcherSession:v,session:S,steps:_,stepIndex:k,totalSteps:L,fromLauncher:I,launcherUrl:U,launchType:W,logoUrl:V,logo:B,t:s,onNext:K,onPrevious:Q,onStepClick:M}}const ce=o.lazy(()=>x(()=>import("./connect-CzwZd1QL.js"),__vite__mapDeps([0,1]),import.meta.url)),pe=o.lazy(()=>x(()=>import("./bind-account-BVdU9BOU.js"),__vite__mapDeps([0,1]),import.meta.url)),de=o.lazy(()=>x(()=>import("./config-BQiW0tZA.js"),__vite__mapDeps([0,1]),import.meta.url)),ue=o.lazy(()=>x(()=>import("./index-DtobDjZ_.js"),__vite__mapDeps([0,1]),import.meta.url)),me=o.lazy(()=>x(()=>import("./branding-D6MicIet.js"),__vite__mapDeps([0,1]),import.meta.url)),fe=o.lazy(()=>x(()=>import("./domain-CvkFdrHE.js"),__vite__mapDeps([0,1]),import.meta.url)),ge=o.lazy(()=>x(()=>import("./access-control-CWoVUHgh.js"),__vite__mapDeps([0,1]),import.meta.url)),xe=o.lazy(()=>x(()=>import("./fuel-D1KEpJ7m.js"),__vite__mapDeps([0,1]),import.meta.url)),he=o.lazy(()=>x(()=>import("./aigne-yDpeUg7z.js"),__vite__mapDeps([0,1]),import.meta.url)),ye=o.lazy(()=>x(()=>import("./complete-ziHMeIgC.js"),__vite__mapDeps([0,1]),import.meta.url)),_e=E(c)`
2
+ import{j as e,aT as E,al as c,ao as X,T as b,a7 as P,n as J,X as r}from"./vendor-mui-core-CDEc-eG6.js";import{j as Y,u as Z,r as o,k as ee,l as g,N as te}from"./vendor-react-DX7tU9aY.js";import{y as i}from"./vendor-utils-_C9URqjS.js";import{W as $,v as se,u as ne,F as T,G as w,I as ie,J as re,K as z,L as oe}from"./index-CgSpL7jz.js";import{aa as N,ao as ae,J as x}from"./vendor-ux-PO0jFgJf.js";import{g as O}from"./get-safe-url-uxJSMQTF.js";import{u as le}from"./use-server-logo-btsDYvqE.js";function Le(t=`${$}/setup`,d=!1,h=null){const{t:s}=N(),[f,y]=Y(),p=Z(),{meta:m,blocklet:n,actions:a,launcherSession:v}=se(),j=localStorage.getItem("blocklet-server-url"),{session:S}=ne(),D=n?.environments?.find(u=>u.key===T.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT)?.value,B=le({onClick:()=>{window.open(O(j,{allowDomains:null}))}}),I=w("fromLauncher"),U=w("launcherUrl"),W=w("launchType"),R=w("visitorId");R&&(ae(R),f.delete("visitorId"),y(f)),o.useEffect(()=>{ie(),S.user&&(a?.refreshMeta(),a?.refreshBlocklet({showError:!1}))},[S.user]),o.useEffect(()=>{a.refreshFuel({showError:!1})},[n?.meta?.did]);const q=u=>{const l=u?.capabilities?.didSpace;return l?l===T.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||l===T.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP?{key:"did-space",stepTitle:s("setup.steps.didSpace"),name:e.jsxs(e.Fragment,{children:[s("setup.steps.didSpace")," ",e.jsx("span",{className:"required",children:"*"})]}),path:i(t,"did-space"),description:s("setup.didSpace.subTitle"),getButtonDisabled:()=>!D}:l===T.BLOCKLET_APP_SPACE_REQUIREMENT.OPTIONAL?{key:"did-space",stepTitle:s("setup.steps.didSpace"),name:e.jsx(e.Fragment,{children:s("setup.steps.didSpace")}),path:i(t,"did-space"),description:s("setup.didSpace.subTitle"),getButtonDisabled:()=>!1}:(console.warn(`capabilities.didSpace cannot take the value ${l}`),null):null},F=()=>{const{requirements:u}=m;return{key:"aigne",stepTitle:s("setup.steps.aigne"),name:e.jsxs(e.Fragment,{children:[s("setup.aigne.title")," ",u?.aigne&&e.jsx("span",{className:"required",children:"*"})]}),path:i(t,"aigne"),description:s("setup.aigne.subTitle")}},_=[{key:"bind-account",stepTitle:s("setup.steps.connect"),name:s("setup.connectAccount.title"),path:i(t,"bind-account"),description:s("setup.connectAccount.subTitle")},{key:"access",stepTitle:s("setup.steps.access"),name:s("setup.accessControl.title"),path:i(t,"access"),description:s("setup.accessControl.subTitle")},F(),{key:"domain",stepTitle:s("setup.steps.domain"),name:s("setup.domain.title"),path:i(t,"domain"),description:s("setup.domain.subTitle")},q(n),d?{key:"branding",stepTitle:s("setup.steps.branding"),name:s("setup.branding.title"),path:i(t,"branding"),description:s("setup.branding.subTitle")}:{key:"config",stepTitle:s("setup.steps.config"),name:e.jsxs(e.Fragment,{children:[s("setup.steps.config")," ",re(m)&&e.jsx("span",{className:"required",children:"*"})]}),path:i(t,"config"),description:s("setup.config.subTitle")},m?.requirements?.fuels?.length?{key:"fuel",stepTitle:s("setup.steps.fuel"),name:e.jsxs(e.Fragment,{children:[s("setup.steps.fuel")," ",e.jsx("span",{className:"required",children:"*"})]}),path:i(t,"fuel"),description:s("setup.fuel.subTitle")}:null].filter(Boolean),k=_.findIndex(u=>`${z.replace(/\/$/,"")}${t}/${u.key}`===window.location.pathname),V=i(z,$,`/blocklet/logo?v=${n?.updatedAt}`),K=async u=>{const{search:l}=new URL(window.location.href),H=_[k];if(l.includes("from=empty")&&H.key==="config"){window.open(O(`${i(oe,"/overview/components")}${l}`));return}if(!u)_[k+1]?p(`${i(t,_[k+1].key)}${l}`):h?h():p(`${i(t,"complete")}${l}`);else{const A=_.findIndex(G=>G.key===u);A>-1?p(`${i(t,_[A].key)}${l}`):h?h():p(`${i(t,"complete")}${l}`)}await a.refreshBlocklet()},M=u=>{const{search:l}=new URL(window.location.href);p(`${i(t,u)}${l}`)},Q=()=>{p(-1)},C=[{key:"install",name:s("launchBlocklet.steps.installApp"),path:i(t,"install")},{key:"setup",name:s("setup.steps.launchApp"),children:_}];let L=[{key:"agreement",name:s("launchBlocklet.introduction"),path:i(t,"agreement")},...C];return I&&(L=[{key:"purchase-space",name:s("launchBlocklet.steps.purchaseSpace")},{key:"prepare-space",name:s("launchBlocklet.steps.prepareSpace")},...C]),{meta:m,blocklet:n,actions:a,launcherSession:v,session:S,steps:_,stepIndex:k,totalSteps:L,fromLauncher:I,launcherUrl:U,launchType:W,logoUrl:V,logo:B,t:s,onNext:K,onPrevious:Q,onStepClick:M}}const ce=o.lazy(()=>x(()=>import("./connect-pvi_9C1U.js"),__vite__mapDeps([0,1]),import.meta.url)),pe=o.lazy(()=>x(()=>import("./bind-account-Dpc4iwR3.js"),__vite__mapDeps([0,1]),import.meta.url)),de=o.lazy(()=>x(()=>import("./config-CJmL1lNg.js"),__vite__mapDeps([0,1]),import.meta.url)),ue=o.lazy(()=>x(()=>import("./index-C0ZPC8OS.js"),__vite__mapDeps([0,1]),import.meta.url)),me=o.lazy(()=>x(()=>import("./branding-Bz1ajNEX.js"),__vite__mapDeps([0,1]),import.meta.url)),fe=o.lazy(()=>x(()=>import("./domain-DRBQmuep.js"),__vite__mapDeps([0,1]),import.meta.url)),ge=o.lazy(()=>x(()=>import("./access-control-BIhY5wfd.js"),__vite__mapDeps([0,1]),import.meta.url)),xe=o.lazy(()=>x(()=>import("./fuel-D3ouL-7h.js"),__vite__mapDeps([0,1]),import.meta.url)),he=o.lazy(()=>x(()=>import("./aigne-BXMpb7iF.js"),__vite__mapDeps([0,1]),import.meta.url)),ye=o.lazy(()=>x(()=>import("./complete-RloCU6Dp.js"),__vite__mapDeps([0,1]),import.meta.url)),_e=E(c)`
3
3
  background: ${({theme:t})=>J(t.palette.primary.main,.05)};
4
4
  `,Ae=E(c)`
5
5
  width: 100vw;
@@ -1,4 +1,4 @@
1
- import{j as e,bc as h,al as n,R as l,aR as f}from"./vendor-mui-core-CDEc-eG6.js";import{W as u,N as w,D as j,E as y}from"./index-DcM4ljaV.js";import{C as g}from"./config-space-DMk4apM9.js";import{P as v}from"./vendor-arcblock-BVQTtbN-.js";import{N as b}from"./index-B4YwAnux.js";import{aa as k,bl as C}from"./vendor-ux-PO0jFgJf.js";import{r as W}from"./vendor-react-DX7tU9aY.js";import{u as S,a as P,S as E,b as z,c as D,W as I}from"./wizard-components-Dxf0c0dt.js";import"./vendor-utils-_C9URqjS.js";import"./vendor-hooks-Ca2cSNuD.js";import"./spaces-B8t2gKsu.js";import"./api-Bo6lutcq.js";import"./fallback-DAsXuNMP.js";import"./nav-menu-CFJ8S6L5.js";import"./wallet-hidden-topbar-SQtOXLKg.js";import"./theme-mode-toggle-WRMGhjzA.js";import"./use-mobile-DKWj9MJD.js";import"./purify.es-HRjpPm7y.js";import"./index-BVgxwS3B.js";import"./use-blocklet-logo-nVOJALp0.js";import"./get-safe-url-C1Ml6qBb.js";import"./use-server-logo-btsDYvqE.js";import"./server-logo-notext.svg-CtPRYaCm.js";import"./use-mobile-CnCzXOEv.js";const N=f`
1
+ import{j as e,bc as h,al as n,R as l,aR as f}from"./vendor-mui-core-CDEc-eG6.js";import{W as u,N as w,D as j,E as y}from"./index-CgSpL7jz.js";import{C as g}from"./config-space-CjtdFXkd.js";import{P as v}from"./vendor-arcblock-BVQTtbN-.js";import{N as b}from"./index-Bz8EYhmA.js";import{aa as k,bl as C}from"./vendor-ux-PO0jFgJf.js";import{r as W}from"./vendor-react-DX7tU9aY.js";import{u as S,a as P,S as E,b as z,c as D,W as I}from"./wizard-components-BwA5watz.js";import"./vendor-utils-_C9URqjS.js";import"./vendor-hooks-Ca2cSNuD.js";import"./spaces-DiyZ082O.js";import"./api-Bo6lutcq.js";import"./fallback-DAsXuNMP.js";import"./nav-menu-CFJ8S6L5.js";import"./wallet-hidden-topbar-CZaZNW94.js";import"./theme-mode-toggle-WRMGhjzA.js";import"./use-mobile-DKWj9MJD.js";import"./purify.es-HRjpPm7y.js";import"./index-BLYrVxV3.js";import"./use-blocklet-logo-nVOJALp0.js";import"./get-safe-url-uxJSMQTF.js";import"./use-server-logo-btsDYvqE.js";import"./server-logo-notext.svg-CtPRYaCm.js";import"./use-mobile-CnCzXOEv.js";const N=f`
2
2
  html,
3
3
  body,
4
4
  #app,
@@ -1 +1 @@
1
- import{T as n}from"./vendor-ux-PO0jFgJf.js";import{t as a}from"./index-BjD8juw_.js";import{j as r}from"./vendor-mui-core-CDEc-eG6.js";function m(t){return function(o){return r.jsx(n,{translations:a,children:r.jsx(t,{...o})})}}export{m as w};
1
+ import{T as n}from"./vendor-ux-PO0jFgJf.js";import{t as a}from"./index-C2_MQP4T.js";import{j as r}from"./vendor-mui-core-CDEc-eG6.js";function m(t){return function(o){return r.jsx(n,{translations:a,children:r.jsx(t,{...o})})}}export{m as w};
@@ -1 +1 @@
1
- import{g as s}from"./vendor-react-DX7tU9aY.js";import{b0 as i}from"./index-DcM4ljaV.js";function c(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=i();const p=s(f),l=c({__proto__:null,default:p},[f]);export{l as z};
1
+ import{g as s}from"./vendor-react-DX7tU9aY.js";import{b0 as i}from"./index-CgSpL7jz.js";function c(t,a){for(var o=0;o<a.length;o++){const e=a[o];if(typeof e!="string"&&!Array.isArray(e)){for(const r in e)if(r!=="default"&&!(r in t)){const n=Object.getOwnPropertyDescriptor(e,r);n&&Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var f=i();const p=s(f),l=c({__proto__:null,default:p},[f]);export{l as z};
package/dist/index.html CHANGED
@@ -18,7 +18,7 @@
18
18
  padding: 0;
19
19
  }
20
20
  </style>
21
- <script type="module" crossorigin src="/.well-known/service/static/assets/index-DcM4ljaV.js"></script>
21
+ <script type="module" crossorigin src="/.well-known/service/static/assets/index-CgSpL7jz.js"></script>
22
22
  <link rel="stylesheet" crossorigin href="/.well-known/service/static/assets/vendor-ux-DYcPPYq2.css">
23
23
  <link rel="stylesheet" crossorigin href="/.well-known/service/static/assets/index-DrCTi6nm.css">
24
24
  <link rel="manifest" href="/.well-known/service/static/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/.well-known/service/static/registerSW.js"></script></head>
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.17.8",
6
+ "version": "1.17.9",
7
7
  "description": "Provide unified services for every blocklet",
8
8
  "main": "api/index.js",
9
9
  "files": [
@@ -32,17 +32,17 @@
32
32
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
33
33
  "license": "Apache-2.0",
34
34
  "dependencies": {
35
- "@abtnode/analytics": "1.17.8",
36
- "@abtnode/auth": "1.17.8",
37
- "@abtnode/connect-storage": "1.17.8",
38
- "@abtnode/constant": "1.17.8",
39
- "@abtnode/core": "1.17.8",
40
- "@abtnode/cron": "1.17.8",
41
- "@abtnode/db-cache": "1.17.8",
42
- "@abtnode/logger": "1.17.8",
43
- "@abtnode/models": "1.17.8",
44
- "@abtnode/router-templates": "1.17.8",
45
- "@abtnode/util": "1.17.8",
35
+ "@abtnode/analytics": "1.17.9",
36
+ "@abtnode/auth": "1.17.9",
37
+ "@abtnode/connect-storage": "1.17.9",
38
+ "@abtnode/constant": "1.17.9",
39
+ "@abtnode/core": "1.17.9",
40
+ "@abtnode/cron": "1.17.9",
41
+ "@abtnode/db-cache": "1.17.9",
42
+ "@abtnode/logger": "1.17.9",
43
+ "@abtnode/models": "1.17.9",
44
+ "@abtnode/router-templates": "1.17.9",
45
+ "@abtnode/util": "1.17.9",
46
46
  "@arcblock/did": "1.29.3",
47
47
  "@arcblock/did-connect-js": "1.29.3",
48
48
  "@arcblock/did-ext": "1.29.3",
@@ -52,18 +52,18 @@
52
52
  "@arcblock/jwt": "1.29.3",
53
53
  "@arcblock/validator": "1.29.3",
54
54
  "@arcblock/ws": "1.29.3",
55
- "@blocklet/constant": "1.17.8",
55
+ "@blocklet/constant": "1.17.9",
56
56
  "@blocklet/dbhub": "^0.2.9",
57
- "@blocklet/env": "1.17.8",
57
+ "@blocklet/env": "1.17.9",
58
58
  "@blocklet/error": "^0.3.5",
59
59
  "@blocklet/form-builder": "^0.1.12",
60
60
  "@blocklet/form-collector": "^0.1.8",
61
- "@blocklet/images": "1.17.8",
62
- "@blocklet/js-sdk": "1.17.8",
63
- "@blocklet/meta": "1.17.8",
64
- "@blocklet/rate-limit": "1.17.8",
65
- "@blocklet/sdk": "1.17.8",
66
- "@blocklet/server-js": "1.17.8",
61
+ "@blocklet/images": "1.17.9",
62
+ "@blocklet/js-sdk": "1.17.9",
63
+ "@blocklet/meta": "1.17.9",
64
+ "@blocklet/rate-limit": "1.17.9",
65
+ "@blocklet/sdk": "1.17.9",
66
+ "@blocklet/server-js": "1.17.9",
67
67
  "@blocklet/theme": "^3.5.0",
68
68
  "@blocklet/theme-builder": "0.4.8",
69
69
  "@blocklet/uploader-server": "^0.3.19",
@@ -127,7 +127,7 @@
127
127
  "whatwg-url": "14.0.0"
128
128
  },
129
129
  "devDependencies": {
130
- "@abtnode/ux": "1.17.8",
130
+ "@abtnode/ux": "1.17.9",
131
131
  "@arcblock/bridge": "^3.5.0",
132
132
  "@arcblock/did-connect-react": "^3.5.0",
133
133
  "@arcblock/icons": "^3.5.0",
@@ -137,7 +137,7 @@
137
137
  "@blocklet/did-space-react": "^1.2.15",
138
138
  "@blocklet/launcher-layout": "^3.5.0",
139
139
  "@blocklet/payment-react": "^1.25.7",
140
- "@blocklet/tracker": "1.17.8",
140
+ "@blocklet/tracker": "1.17.9",
141
141
  "@blocklet/ui-react": "^3.5.0",
142
142
  "@blocklet/uploader": "^0.3.19",
143
143
  "@iconify/iconify": "^3.1.1",
@@ -216,5 +216,5 @@
216
216
  "url": "https://github.com/ArcBlock/blocklet-server/issues",
217
217
  "email": "shijun@arcblock.io"
218
218
  },
219
- "gitHead": "565d1f907979ae79559d155249110befbb39d2d7"
219
+ "gitHead": "05dcc21faa379fbffcde742a3ea0d9919258e750"
220
220
  }
@@ -1 +0,0 @@
1
- import{bC as e}from"./index-DcM4ljaV.js";var i=e();export{i as e};
@@ -1 +0,0 @@
1
- import{aD as o}from"./index-DcM4ljaV.js";const e=o();export{e as b};