@abtnode/webapp 1.16.45-beta-20250625-064956-91b0fb8f → 1.16.45-beta-20250625-103530-e1f5b0b8

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 (202) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-cf9EXlHB.js → AdapterDayjs-E4yM52LP.js} +1 -1
  4. package/dist/assets/{Add-ClzfE4cH.js → Add-D2TQfh7X.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-CJ2MJgn5.js → ArrowDropDown-CBIRS7SW.js} +1 -1
  6. package/dist/assets/{Autocomplete-CayznxGz.js → Autocomplete-0XS5VLQn.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-C9QQGBOd.js → Breadcrumbs-DCvbP9kf.js} +1 -1
  8. package/dist/assets/{ButtonGroup-B3J8Qdyl.js → ButtonGroup-BRc5Mvfz.js} +1 -1
  9. package/dist/assets/{CSSTransition-Cz8SmnJv.js → CSSTransition-DjFeDehe.js} +1 -1
  10. package/dist/assets/{CallMerge-B6RVJ3nX.js → CallMerge-C385zQmP.js} +1 -1
  11. package/dist/assets/{CardContent-Cg4RjHpv.js → CardContent-Dh0x7KhT.js} +1 -1
  12. package/dist/assets/{ChevronLeft-BNmKlc1J.js → ChevronLeft-wJPPsN4a.js} +1 -1
  13. package/dist/assets/{ChevronRight-DRPUyxAK.js → ChevronRight-CDUMkHbB.js} +1 -1
  14. package/dist/assets/{Clear-C1AC1AtD.js → Clear-mjEuyGV9.js} +1 -1
  15. package/dist/assets/{Close-DRWGcKKl.js → Close-sGCryJEQ.js} +1 -1
  16. package/dist/assets/{Community-BPBk9hGT.js → Community-Bq6V3Mk4.js} +1 -1
  17. package/dist/assets/{Delete-CcdfJXTL.js → Delete-C10UTDTa.js} +1 -1
  18. package/dist/assets/{DeleteOutline-US18RBQ-.js → DeleteOutline-DQOyLpQF.js} +1 -1
  19. package/dist/assets/{Done-DoaEDHCG.js → Done-DBcGlcYy.js} +1 -1
  20. package/dist/assets/{Edit-CJQK4atN.js → Edit-bCJZHM02.js} +1 -1
  21. package/dist/assets/{ErrorOutline-CR7yRjZc.js → ErrorOutline-B_WZTMrs.js} +1 -1
  22. package/dist/assets/{HelpOutline-DIMDDIpO.js → HelpOutline-p6D5-C25.js} +1 -1
  23. package/dist/assets/{Holiday-DwuuABxa.js → Holiday-C-8T9pp5.js} +1 -1
  24. package/dist/assets/{Launch-CSu1nrjk.js → Launch-BiPqX7Sl.js} +1 -1
  25. package/dist/assets/{Link-CBIXUB_y.js → Link-CxSgUcmR.js} +1 -1
  26. package/dist/assets/{ListItemButton-FKXnIc0i.js → ListItemButton-CTRWl4wH.js} +1 -1
  27. package/dist/assets/{ListSubheader-Cawr8223.js → ListSubheader-Bu9Ik2IZ.js} +1 -1
  28. package/dist/assets/{LoadingButton-CRKt-OT1.js → LoadingButton-C6i2W4lv.js} +1 -1
  29. package/dist/assets/{LockIcon-CnYrREef.js → LockIcon-bxMdIquI.js} +1 -1
  30. package/dist/assets/{Meeting-COxcunCf.js → Meeting-BVrVyyy4.js} +1 -1
  31. package/dist/assets/{MoreHoriz-JIt9gEw_.js → MoreHoriz-CcxbIhaP.js} +1 -1
  32. package/dist/assets/{MoreVert-CjjkmApl.js → MoreVert-DKgaskjs.js} +1 -1
  33. package/dist/assets/{OffSick-Dlf0wRCP.js → OffSick-DKCRzD7f.js} +1 -1
  34. package/dist/assets/{OpenInNew-D-RnzHyt.js → OpenInNew-5_4x5etb.js} +1 -1
  35. package/dist/assets/{Public-DQrPVGw9.js → Public-COK1L07u.js} +1 -1
  36. package/dist/assets/{Refresh-g_ze8RC-.js → Refresh-C0seUUWd.js} +1 -1
  37. package/dist/assets/{SchemaReference.es-Bs4TGph_.js → SchemaReference.es-CzIRQDzg.js} +1 -1
  38. package/dist/assets/{Search-DmfQzntI.js → Search-DwP9rMAv.js} +1 -1
  39. package/dist/assets/{Slider-C7KUHAl4.js → Slider-BzRBSnPk.js} +1 -1
  40. package/dist/assets/{Stepper-ECw_WCHI.js → Stepper-DfRVqYtc.js} +1 -1
  41. package/dist/assets/{Switch-D1aSf0Rk.js → Switch-D_mpzogT.js} +1 -1
  42. package/dist/assets/{TableRow-CL8yhyVQ.js → TableRow-DOao2Ax-.js} +1 -1
  43. package/dist/assets/{TableSearch-CxUE73Wm.js → TableSearch-Dft7-3wK.js} +1 -1
  44. package/dist/assets/{ToggleButtonGroup-BADZ1hmi.js → ToggleButtonGroup-BUu4D5L7.js} +1 -1
  45. package/dist/assets/{Verified-CoaucJDJ.js → Verified-BSzKS7xS.js} +1 -1
  46. package/dist/assets/{VerifiedUser-CGiTKpYb.js → VerifiedUser-BqOD-Fqo.js} +1 -1
  47. package/dist/assets/{ViewColumn-DVO6c2uh.js → ViewColumn-D1D834qi.js} +1 -1
  48. package/dist/assets/{ViewList-CaLfZh_J.js → ViewList-cWPNtvI-.js} +1 -1
  49. package/dist/assets/{WorkingRemotely-CIlCJe_n.js → WorkingRemotely-0VGV80ew.js} +1 -1
  50. package/dist/assets/{_createAggregator-DKh4oPcE.js → _createAggregator-CMxDsGJ3.js} +1 -1
  51. package/dist/assets/{actions-D0cYymRM.js → actions-BcIVTnAX.js} +1 -1
  52. package/dist/assets/{actions-DMblPsrA.js → actions-zzCHS6pi.js} +1 -1
  53. package/dist/assets/{agreement-CmpcKfmG.js → agreement-DInxmYjI.js} +1 -1
  54. package/dist/assets/api-D5wEK6Va.js +1 -0
  55. package/dist/assets/{appearance-CC06pu2W.js → appearance-CxHyHWPt.js} +1 -1
  56. package/dist/assets/{audit-logs-D9nHuKQm.js → audit-logs-Bgk4Ic5f.js} +1 -1
  57. package/dist/assets/{base-chart-DHzZnb2L.js → base-chart-NtFlfL_c.js} +1 -1
  58. package/dist/assets/{blocklet-C56CLqfn.js → blocklet-Bc_ClD86.js} +1 -1
  59. package/dist/assets/{brace-fold.es-WYquVZ0Q.js → brace-fold.es-BC_qbUU6.js} +1 -1
  60. package/dist/assets/{chain-DKfcWWlC.js → chain-JM3VbMj6.js} +1 -1
  61. package/dist/assets/{click-to-copy-CiS9u8Lz.js → click-to-copy-w2kJfNpC.js} +1 -1
  62. package/dist/assets/cloneDeep-DuGt6vnv.js +1 -0
  63. package/dist/assets/{closebrackets.es-BTFbO_zS.js → closebrackets.es-GLataU8s.js} +1 -1
  64. package/dist/assets/{codemirror.es-bTfvwT0x.js → codemirror.es-CPacOghE.js} +1 -1
  65. package/dist/assets/{collapse-De1M4hZU.js → collapse-Cs0TSeLZ.js} +1 -1
  66. package/dist/assets/{comment.es-CfIJpCF-.js → comment.es-BPrKqMcg.js} +1 -1
  67. package/dist/assets/{config-navigation-NKWvqO8O.js → config-navigation-G5mNaiwU.js} +3 -3
  68. package/dist/assets/{connect-to-B4CwZqBJ.js → connect-to-D1igV5DJ.js} +1 -1
  69. package/dist/assets/{delete-confirm-Ca6B5KxO.js → delete-confirm-CUccptOs.js} +1 -1
  70. package/dist/assets/{detail-B0kwpZJg.js → detail-CIyPI2Zg.js} +3 -3
  71. package/dist/assets/{dialog.es-b4YsH3yO.js → dialog.es-DPX8MF2x.js} +1 -1
  72. package/dist/assets/{domains-DfM0llnu.js → domains-B-XWBCV-.js} +1 -1
  73. package/dist/assets/{download-D2RXPhXc.js → download-AyvGrGas.js} +1 -1
  74. package/dist/assets/emotion-react.browser.esm-CQDycQuU.js +1 -0
  75. package/dist/assets/{foldgutter.es-Bmzc1lAn.js → foldgutter.es-Cn2HJ_R6.js} +1 -1
  76. package/dist/assets/{get-safe-url-Dsy-huUv.js → get-safe-url-D2r1Jp8K.js} +1 -1
  77. package/dist/assets/{get-safe-url-DuYpuHQJ.js → get-safe-url-qdss-omj.js} +1 -1
  78. package/dist/assets/getValidReactChildren-CY2W7jdq.js +1 -0
  79. package/dist/assets/{hint.es-D3enHBIe.js → hint.es-B0_E7oDV.js} +1 -1
  80. package/dist/assets/{hint.es2-D_8pEhNZ.js → hint.es2-CkA5Ojxm.js} +1 -1
  81. package/dist/assets/{iframe-JzwQis4I.js → iframe-Bnxo1dLZ.js} +1 -1
  82. package/dist/assets/{index-DuyB74pI.js → index-B-mcVa4K.js} +1 -1
  83. package/dist/assets/{index-CHr_TiKg.js → index-B0_gMilI.js} +1 -1
  84. package/dist/assets/{index-C-wwh49Y.js → index-B7FSbWm9.js} +1 -1
  85. package/dist/assets/{index-BcLnPbZ_.js → index-BAhGYMnX.js} +1 -1
  86. package/dist/assets/{index-BOaWHm3y.js → index-BArACHO5.js} +1 -1
  87. package/dist/assets/{index-uhXfBcTY.js → index-BIZ-Ixy-.js} +1 -1
  88. package/dist/assets/{index-Xeh4Hy1K.js → index-BJSZStMQ.js} +1 -1
  89. package/dist/assets/{index-BR_N19sK.js → index-BO8b-WlO.js} +1 -1
  90. package/dist/assets/{index-Bv0UYgtN.js → index-BQY1ZvsJ.js} +1 -1
  91. package/dist/assets/{index-qPfSbb8F.js → index-BUkVq1KR.js} +1 -1
  92. package/dist/assets/{index-mWC0dxsG.js → index-BbGn7XFj.js} +1 -1
  93. package/dist/assets/{index-CEkzM2Hy.js → index-BnzUPpMN.js} +1 -1
  94. package/dist/assets/{index-DzIW7WPn.js → index-BpIOZERe.js} +1 -1
  95. package/dist/assets/{index-DqZUR6e0.js → index-BxXndJkQ.js} +1 -1
  96. package/dist/assets/{index-1fDaH0GR.js → index-CBfZNY0Z.js} +3 -3
  97. package/dist/assets/{index-YHRJ5Z9D.js → index-CCMSBvIe.js} +1 -1
  98. package/dist/assets/{index-DdKwcnDa.js → index-CQdblJIx.js} +1 -1
  99. package/dist/assets/{index-CEwaV1Oe.js → index-CdBw0Rvc.js} +1 -1
  100. package/dist/assets/{index-CuCDUbks.js → index-Ce3dTL3G.js} +3 -3
  101. package/dist/assets/{index-DPPR0A8j.js → index-Ce8dbaep.js} +5 -5
  102. package/dist/assets/{index-CUf9smnR.js → index-CeFoMPWZ.js} +1 -1
  103. package/dist/assets/{index-D651LXXD.js → index-Ck_YBWqK.js} +1 -1
  104. package/dist/assets/{index-C-gpDEaK.js → index-Clc-dEl9.js} +1 -1
  105. package/dist/assets/{index-CPkjKWDT.js → index-ClfS6Wq6.js} +1 -1
  106. package/dist/assets/{index-C40_ZUH_.js → index-CrLXqIb7.js} +1 -1
  107. package/dist/assets/{index-Bmgy-F8w.js → index-CzBg2DcB.js} +3 -3
  108. package/dist/assets/{index-CbpkZm_D.js → index-D0dXqFdL.js} +1 -1
  109. package/dist/assets/{index-BwtBZueg.js → index-D40Co5qF.js} +1 -1
  110. package/dist/assets/{index-Br9fC4wn.js → index-D4DyTQbM.js} +1 -1
  111. package/dist/assets/{index-DmqHgbIB.js → index-D64bGcCD.js} +1 -1
  112. package/dist/assets/{index-f3wryxsZ.js → index-DHEWoODL.js} +1 -1
  113. package/dist/assets/{index-mJjX2o0I.js → index-DOSme2iX.js} +1 -1
  114. package/dist/assets/{index--aogETCe.js → index-DW9Xv_7D.js} +1 -1
  115. package/dist/assets/{index-8TfE60DJ.js → index-DctpXRMA.js} +1 -1
  116. package/dist/assets/{index-Bp85PVE7.js → index-DjE3WLlJ.js} +1 -1
  117. package/dist/assets/{index-BsTEuRio.js → index-DkmCetRt.js} +4 -4
  118. package/dist/assets/{index-BVHtC5Hk.js → index-Dmeb7V2o.js} +1 -1
  119. package/dist/assets/{index-pLwCyBIW.js → index-DpRMSDR-.js} +1 -1
  120. package/dist/assets/{index-Dy6Ndspk.js → index-E7rLoRQ5.js} +1 -1
  121. package/dist/assets/{index-QAr8nKeC.js → index-IQhHZWUm.js} +3 -3
  122. package/dist/assets/index-L_Yodacf.js +1 -0
  123. package/dist/assets/{index-Diry1rOC.js → index-blT9Z9Gx.js} +1 -1
  124. package/dist/assets/{index-p0Tn5q9W.js → index-caqtONTv.js} +1 -1
  125. package/dist/assets/{index-Ci6qo3N4.js → index-dEt78fXN.js} +1 -1
  126. package/dist/assets/{index-hpqdONWL.js → index-dpCkDSbC.js} +1 -1
  127. package/dist/assets/{index-B8Ac-C82.js → index-m9ErtPu_.js} +1 -1
  128. package/dist/assets/{index-DJfwuANq.js → index-pk3XQI9A.js} +1 -1
  129. package/dist/assets/{index.esm-BeKnx9US.js → index.esm-DTgyrZjY.js} +1 -1
  130. package/dist/assets/{info-addon.es-DcDBZCZ9.js → info-addon.es-3NJa6KtA.js} +1 -1
  131. package/dist/assets/{info.es-CMDl0oHG.js → info.es-D-2edHpl.js} +1 -1
  132. package/dist/assets/{install-from-url-T6jdS-sd.js → install-from-url-BUkOwP2l.js} +1 -1
  133. package/dist/assets/{invitation-BQpAoUra.js → invitation-481ssj-o.js} +1 -1
  134. package/dist/assets/is-path-prefix-equal-K8f_bIrg.js +1 -0
  135. package/dist/assets/{item-zzpJhUAv.js → item-RbokiK1S.js} +1 -1
  136. package/dist/assets/{javascript.es-rVaecCeY.js → javascript.es-CS98pEs7.js} +1 -1
  137. package/dist/assets/{jump-to-line.es-fZd9SPeK.js → jump-to-line.es-Cdsa1EQo.js} +1 -1
  138. package/dist/assets/{jump.es-C2i0yVn0.js → jump.es-pKJs0PcZ.js} +1 -1
  139. package/dist/assets/{lint.es-T7Eyo8Ee.js → lint.es-DeuR4cvW.js} +1 -1
  140. package/dist/assets/{lint.es2-D9w-DqTv.js → lint.es2-C7vsGpeF.js} +1 -1
  141. package/dist/assets/{lint.es3-BR3fJTRU.js → lint.es3-0afVfh7y.js} +1 -1
  142. package/dist/assets/{list-header-BHP30ooa.js → list-header-DWRXNIum.js} +1 -1
  143. package/dist/assets/{log-BPS1ovHk.js → log-Rnj_l_kW.js} +1 -1
  144. package/dist/assets/{lottie-react.esm-BHwF6ttF.js → lottie-react.esm-DNImM5G_.js} +1 -1
  145. package/dist/assets/{matchbrackets.es-B45wj5E9.js → matchbrackets.es-BJaiUavw.js} +1 -1
  146. package/dist/assets/{memory-CNHjW2ab.js → memory-2Fu8FiJD.js} +1 -1
  147. package/dist/assets/{metric-BcRet1lX.js → metric-kljbRSzj.js} +1 -1
  148. package/dist/assets/{mode.es-BLJK3yl5.js → mode.es-C79BwdHS.js} +1 -1
  149. package/dist/assets/{mode.es2-hlIytxg7.js → mode.es2-BIOYicG_.js} +1 -1
  150. package/dist/assets/{mode.es3-CVTYL_Rp.js → mode.es3-YEJDAVOM.js} +1 -1
  151. package/dist/assets/omit-CD2nIiw-.js +1 -0
  152. package/dist/assets/{onlineParser.es-D7LXCAe9.js → onlineParser.es-kcMv2bES.js} +1 -1
  153. package/dist/assets/{overview-Dl1-aEub.js → overview-aa6AEDWe.js} +1 -1
  154. package/dist/assets/{permission-syQYMJDU.js → permission-DqA1Itpd.js} +1 -1
  155. package/dist/assets/{preference-Bjp0l-rP.js → preference-Dt8qKNft.js} +3 -3
  156. package/dist/assets/{raf-schd.esm-D4X3rkFT.js → raf-schd.esm-C9R6qVVJ.js} +1 -1
  157. package/dist/assets/refType-BrGyx1l3.js +1 -0
  158. package/dist/assets/{resource-dialog-Bj4Rm8z8.js → resource-dialog-CwBd61wu.js} +4 -4
  159. package/dist/assets/{runtime-DHGpU07w.js → runtime-URfV7tzy.js} +1 -1
  160. package/dist/assets/sdk-BC4LVkFc.js +1 -0
  161. package/dist/assets/{search.es-DEh8WYav.js → search.es-DvQtO2_U.js} +1 -1
  162. package/dist/assets/{searchcursor.es-BHK3Udfj.js → searchcursor.es-DJzC0uAr.js} +1 -1
  163. package/dist/assets/{service-BLsXGeBF.js → service-BzIEeoYC.js} +1 -1
  164. package/dist/assets/{shorten-label-rkbgI37z.js → shorten-label-DT6MTw_Y.js} +1 -1
  165. package/dist/assets/{show-hint.es-TLn5XERt.js → show-hint.es-BmWjOG2q.js} +1 -1
  166. package/dist/assets/{simple-select-CqR13Ja_.js → simple-select-nLAqpT5F.js} +1 -1
  167. package/dist/assets/{spaces-DLzKX3Ra.js → spaces-DsmO0L1O.js} +1 -1
  168. package/dist/assets/{status-CyZk73aw.js → status-CUeSClwm.js} +1 -1
  169. package/dist/assets/{status-CtyoZCac.js → status-v3mesVji.js} +1 -1
  170. package/dist/assets/{sublime.es-B7ROfjSt.js → sublime.es-CLNRcVpg.js} +1 -1
  171. package/dist/assets/{switch-control-DRItWC8V.js → switch-control-govDdBhh.js} +1 -1
  172. package/dist/assets/{table-icons-CN1Rmj7L.js → table-icons-CZpYFKPQ.js} +1 -1
  173. package/dist/assets/{team-7oU1sdtL.js → team-CkCCW1aD.js} +1 -1
  174. package/dist/assets/{toLower-BetQNSka.js → toLower-DpWKFPAZ.js} +1 -1
  175. package/dist/assets/toUpper-kboku50i.js +1 -0
  176. package/dist/assets/{traffic-BXrg_wx7.js → traffic-WLACfpsK.js} +1 -1
  177. package/dist/assets/{url-evaluation-PNUzVXFG.js → url-evaluation-BWYsY9n8.js} +1 -1
  178. package/dist/assets/{url-join-BT4uwgMW.js → url-join-DmZTNNym.js} +1 -1
  179. package/dist/assets/{use-mobile-DaylDy56.js → use-mobile-BEQS_2hb.js} +1 -1
  180. package/dist/assets/{use-mobile-zJMHEWPE.js → use-mobile-BrO2MDso.js} +1 -1
  181. package/dist/assets/{useAsync-8QQYXZ2o.js → useAsync-RS3fE03r.js} +1 -1
  182. package/dist/assets/{useAsyncRetry-CGk8Cu9u.js → useAsyncRetry-CqTGYIbd.js} +1 -1
  183. package/dist/assets/{useLocalStorage-DdJoK4w7.js → useLocalStorage-BYncjTWP.js} +1 -1
  184. package/dist/assets/{useThemeProps-Rte_NmVE.js → useThemeProps-DBY5yQQ5.js} +1 -1
  185. package/dist/assets/{util-DlhHM2MK.js → util-Bic844-w.js} +1 -1
  186. package/dist/assets/{wait-container-BPSvZhQ4.js → wait-container-BAiPD7CZ.js} +1 -1
  187. package/dist/assets/{withStyles-D2YScWal.js → withStyles-CoizY6JC.js} +1 -1
  188. package/dist/assets/{without-wallet-CXyXy2KB.js → without-wallet-J6nBTF9O.js} +1 -1
  189. package/dist/assets/{wrap-locale-kaXbWMUB.js → wrap-locale-yCE4rNok.js} +1 -1
  190. package/dist/index.html +1 -1
  191. package/dist/service-worker.js +1 -1
  192. package/package.json +1 -1
  193. package/dist/assets/api-D8CXYVbD.js +0 -1
  194. package/dist/assets/cloneDeep-fDhnQcTQ.js +0 -1
  195. package/dist/assets/emotion-react.browser.esm-CyqIkV2y.js +0 -1
  196. package/dist/assets/getValidReactChildren-BhCPp8PX.js +0 -1
  197. package/dist/assets/index-DtQb3yWv.js +0 -1
  198. package/dist/assets/is-path-prefix-equal-DAINokq6.js +0 -1
  199. package/dist/assets/omit-Difyap46.js +0 -1
  200. package/dist/assets/refType-Bi7lNIS6.js +0 -1
  201. package/dist/assets/sdk--zV5g1Ng.js +0 -1
  202. package/dist/assets/toUpper-CnLEnHph.js +0 -1
@@ -1 +1 @@
1
- import{C as i}from"./codemirror.es-bTfvwT0x.js";import"./index-DPPR0A8j.js";import"./index-BsTEuRio.js";var y=Object.defineProperty,u=(e,t)=>y(e,"name",{value:t,configurable:!0});i.defineOption("info",!1,(e,t,n)=>{if(n&&n!==i.Init){const o=e.state.info.onMouseOver;i.off(e.getWrapperElement(),"mouseover",o),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const o=e.state.info=v(t);o.onMouseOver=h.bind(null,e),i.on(e.getWrapperElement(),"mouseover",o.onMouseOver)}});function v(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}u(v,"createState");function g(e){const t=e.state.info.options;return(t==null?void 0:t.hoverTime)||500}u(g,"getHoverTime");function h(e,t){const n=e.state.info,o=t.target||t.srcElement;if(!(o instanceof HTMLElement)||o.nodeName!=="SPAN"||n.hoverTimeout!==void 0)return;const s=o.getBoundingClientRect(),r=u(function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(f,a)},"onMouseMove"),p=u(function(){i.off(document,"mousemove",r),i.off(e.getWrapperElement(),"mouseout",p),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},"onMouseOut"),f=u(function(){i.off(document,"mousemove",r),i.off(e.getWrapperElement(),"mouseout",p),n.hoverTimeout=void 0,T(e,s)},"onHover"),a=g(e);n.hoverTimeout=setTimeout(f,a),i.on(document,"mousemove",r),i.on(e.getWrapperElement(),"mouseout",p)}u(h,"onMouseOver");function T(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),s=e.state.info.options,r=s.render||e.getHelper(n,"info");if(r){const p=e.getTokenAt(n,!0);if(p){const f=r(p,s,e,n);f&&M(e,t,f)}}}u(T,"onMouseHover");function M(e,t,n){const o=document.createElement("div");o.className="CodeMirror-info",o.appendChild(n),document.body.appendChild(o);const s=o.getBoundingClientRect(),r=window.getComputedStyle(o),p=s.right-s.left+parseFloat(r.marginLeft)+parseFloat(r.marginRight),f=s.bottom-s.top+parseFloat(r.marginTop)+parseFloat(r.marginBottom);let a=t.bottom;f>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(a=t.top-f),a<0&&(a=t.bottom);let l=Math.max(0,window.innerWidth-p-15);l>t.left&&(l=t.left),o.style.opacity="1",o.style.top=a+"px",o.style.left=l+"px";let d;const c=u(function(){clearTimeout(d)},"onMouseOverPopup"),m=u(function(){clearTimeout(d),d=setTimeout(O,200)},"onMouseOut"),O=u(function(){i.off(o,"mouseover",c),i.off(o,"mouseout",m),i.off(e.getWrapperElement(),"mouseout",m),o.style.opacity?(o.style.opacity="0",setTimeout(()=>{o.parentNode&&o.parentNode.removeChild(o)},600)):o.parentNode&&o.parentNode.removeChild(o)},"hidePopup");i.on(o,"mouseover",c),i.on(o,"mouseout",m),i.on(e.getWrapperElement(),"mouseout",m)}u(M,"showPopup");
1
+ import{C as i}from"./codemirror.es-CPacOghE.js";import"./index-Ce8dbaep.js";import"./index-DkmCetRt.js";var y=Object.defineProperty,u=(e,t)=>y(e,"name",{value:t,configurable:!0});i.defineOption("info",!1,(e,t,n)=>{if(n&&n!==i.Init){const o=e.state.info.onMouseOver;i.off(e.getWrapperElement(),"mouseover",o),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const o=e.state.info=v(t);o.onMouseOver=h.bind(null,e),i.on(e.getWrapperElement(),"mouseover",o.onMouseOver)}});function v(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}u(v,"createState");function g(e){const t=e.state.info.options;return(t==null?void 0:t.hoverTime)||500}u(g,"getHoverTime");function h(e,t){const n=e.state.info,o=t.target||t.srcElement;if(!(o instanceof HTMLElement)||o.nodeName!=="SPAN"||n.hoverTimeout!==void 0)return;const s=o.getBoundingClientRect(),r=u(function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(f,a)},"onMouseMove"),p=u(function(){i.off(document,"mousemove",r),i.off(e.getWrapperElement(),"mouseout",p),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},"onMouseOut"),f=u(function(){i.off(document,"mousemove",r),i.off(e.getWrapperElement(),"mouseout",p),n.hoverTimeout=void 0,T(e,s)},"onHover"),a=g(e);n.hoverTimeout=setTimeout(f,a),i.on(document,"mousemove",r),i.on(e.getWrapperElement(),"mouseout",p)}u(h,"onMouseOver");function T(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),s=e.state.info.options,r=s.render||e.getHelper(n,"info");if(r){const p=e.getTokenAt(n,!0);if(p){const f=r(p,s,e,n);f&&M(e,t,f)}}}u(T,"onMouseHover");function M(e,t,n){const o=document.createElement("div");o.className="CodeMirror-info",o.appendChild(n),document.body.appendChild(o);const s=o.getBoundingClientRect(),r=window.getComputedStyle(o),p=s.right-s.left+parseFloat(r.marginLeft)+parseFloat(r.marginRight),f=s.bottom-s.top+parseFloat(r.marginTop)+parseFloat(r.marginBottom);let a=t.bottom;f>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(a=t.top-f),a<0&&(a=t.bottom);let l=Math.max(0,window.innerWidth-p-15);l>t.left&&(l=t.left),o.style.opacity="1",o.style.top=a+"px",o.style.left=l+"px";let d;const c=u(function(){clearTimeout(d)},"onMouseOverPopup"),m=u(function(){clearTimeout(d),d=setTimeout(O,200)},"onMouseOut"),O=u(function(){i.off(o,"mouseover",c),i.off(o,"mouseout",m),i.off(e.getWrapperElement(),"mouseout",m),o.style.opacity?(o.style.opacity="0",setTimeout(()=>{o.parentNode&&o.parentNode.removeChild(o)},600)):o.parentNode&&o.parentNode.removeChild(o)},"hidePopup");i.on(o,"mouseover",c),i.on(o,"mouseout",m),i.on(e.getWrapperElement(),"mouseout",m)}u(M,"showPopup");
@@ -1 +1 @@
1
- import{C as h}from"./codemirror.es-bTfvwT0x.js";import{g as E,a as C,b as N,c as _,d as V,e as x}from"./SchemaReference.es-Bs4TGph_.js";import"./info-addon.es-DcDBZCZ9.js";import{Y as A,r as F}from"./index-DPPR0A8j.js";import"./index-BsTEuRio.js";import"./introspection.es-CPJcz6nz.js";import"./forEachState.es-D8bf0zSr.js";var L=Object.defineProperty,l=(r,e)=>L(r,"name",{value:e,configurable:!0});h.registerHelper("info","graphql",(r,e)=>{if(!e.schema||!r.state)return;const i=r.state,n=i.kind,d=i.step,c=E(e.schema,r.state);if(n==="Field"&&d===0&&c.fieldDef||n==="AliasedField"&&d===2&&c.fieldDef){const a=document.createElement("div");return o(a,c,e),u(a,e,c.fieldDef),a}else if(n==="Directive"&&d===1&&c.directiveDef){const a=document.createElement("div");return f(a,c,e),u(a,e,c.directiveDef),a}else if(n==="Argument"&&d===0&&c.argDef){const a=document.createElement("div");return p(a,c,e),u(a,e,c.argDef),a}else if(n==="EnumValue"&&c.enumValue&&c.enumValue.description){const a=document.createElement("div");return D(a,c,e),u(a,e,c.enumValue),a}else if(n==="NamedType"&&c.type&&c.type.description){const a=document.createElement("div");return m(a,c,e,c.type),u(a,e,c.type),a}});function o(r,e,i){s(r,e,i),v(r,e,i,e.type)}l(o,"renderField");function s(r,e,i){var n;const d=((n=e.fieldDef)===null||n===void 0?void 0:n.name)||"";d.slice(0,2)!=="__"&&(m(r,e,i,e.parentType),t(r,".")),t(r,d,"field-name",i,C(e))}l(s,"renderQualifiedField");function f(r,e,i){var n;const d="@"+(((n=e.directiveDef)===null||n===void 0?void 0:n.name)||"");t(r,d,"directive-name",i,N(e))}l(f,"renderDirective");function p(r,e,i){var n;e.directiveDef?f(r,e,i):e.fieldDef&&s(r,e,i);const d=((n=e.argDef)===null||n===void 0?void 0:n.name)||"";t(r,"("),t(r,d,"arg-name",i,_(e)),v(r,e,i,e.inputType),t(r,")")}l(p,"renderArg");function v(r,e,i,n){t(r,": "),m(r,e,i,n)}l(v,"renderTypeAnnotation");function D(r,e,i){var n;const d=((n=e.enumValue)===null||n===void 0?void 0:n.name)||"";m(r,e,i,e.inputType),t(r,"."),t(r,d,"enum-value",i,V(e))}l(D,"renderEnumValue");function m(r,e,i,n){n instanceof A?(m(r,e,i,n.ofType),t(r,"!")):n instanceof F?(t(r,"["),m(r,e,i,n.ofType),t(r,"]")):t(r,(n==null?void 0:n.name)||"","type-name",i,x(e,n))}l(m,"renderType");function u(r,e,i){const n=i.description;if(n){const d=document.createElement("div");d.className="info-description",e.renderDescription?d.innerHTML=e.renderDescription(n):d.appendChild(document.createTextNode(n)),r.appendChild(d)}T(r,e,i)}l(u,"renderDescription");function T(r,e,i){const n=i.deprecationReason;if(n){const d=document.createElement("div");d.className="info-deprecation",e.renderDescription?d.innerHTML=e.renderDescription(n):d.appendChild(document.createTextNode(n));const c=document.createElement("span");c.className="info-deprecation-label",c.appendChild(document.createTextNode("Deprecated: ")),d.insertBefore(c,d.firstChild),r.appendChild(d)}}l(T,"renderDeprecation");function t(r,e,i="",n={onClick:null},d=null){if(i){const c=n.onClick;let a;c?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",g=>{c(d,g)})):a=document.createElement("span"),a.className=i,a.appendChild(document.createTextNode(e)),r.appendChild(a)}else r.appendChild(document.createTextNode(e))}l(t,"text");
1
+ import{C as h}from"./codemirror.es-CPacOghE.js";import{g as E,a as C,b as N,c as _,d as V,e as x}from"./SchemaReference.es-CzIRQDzg.js";import"./info-addon.es-3NJa6KtA.js";import{Y as A,r as F}from"./index-Ce8dbaep.js";import"./index-DkmCetRt.js";import"./introspection.es-CPJcz6nz.js";import"./forEachState.es-D8bf0zSr.js";var L=Object.defineProperty,l=(r,e)=>L(r,"name",{value:e,configurable:!0});h.registerHelper("info","graphql",(r,e)=>{if(!e.schema||!r.state)return;const i=r.state,n=i.kind,d=i.step,c=E(e.schema,r.state);if(n==="Field"&&d===0&&c.fieldDef||n==="AliasedField"&&d===2&&c.fieldDef){const a=document.createElement("div");return o(a,c,e),u(a,e,c.fieldDef),a}else if(n==="Directive"&&d===1&&c.directiveDef){const a=document.createElement("div");return f(a,c,e),u(a,e,c.directiveDef),a}else if(n==="Argument"&&d===0&&c.argDef){const a=document.createElement("div");return p(a,c,e),u(a,e,c.argDef),a}else if(n==="EnumValue"&&c.enumValue&&c.enumValue.description){const a=document.createElement("div");return D(a,c,e),u(a,e,c.enumValue),a}else if(n==="NamedType"&&c.type&&c.type.description){const a=document.createElement("div");return m(a,c,e,c.type),u(a,e,c.type),a}});function o(r,e,i){s(r,e,i),v(r,e,i,e.type)}l(o,"renderField");function s(r,e,i){var n;const d=((n=e.fieldDef)===null||n===void 0?void 0:n.name)||"";d.slice(0,2)!=="__"&&(m(r,e,i,e.parentType),t(r,".")),t(r,d,"field-name",i,C(e))}l(s,"renderQualifiedField");function f(r,e,i){var n;const d="@"+(((n=e.directiveDef)===null||n===void 0?void 0:n.name)||"");t(r,d,"directive-name",i,N(e))}l(f,"renderDirective");function p(r,e,i){var n;e.directiveDef?f(r,e,i):e.fieldDef&&s(r,e,i);const d=((n=e.argDef)===null||n===void 0?void 0:n.name)||"";t(r,"("),t(r,d,"arg-name",i,_(e)),v(r,e,i,e.inputType),t(r,")")}l(p,"renderArg");function v(r,e,i,n){t(r,": "),m(r,e,i,n)}l(v,"renderTypeAnnotation");function D(r,e,i){var n;const d=((n=e.enumValue)===null||n===void 0?void 0:n.name)||"";m(r,e,i,e.inputType),t(r,"."),t(r,d,"enum-value",i,V(e))}l(D,"renderEnumValue");function m(r,e,i,n){n instanceof A?(m(r,e,i,n.ofType),t(r,"!")):n instanceof F?(t(r,"["),m(r,e,i,n.ofType),t(r,"]")):t(r,(n==null?void 0:n.name)||"","type-name",i,x(e,n))}l(m,"renderType");function u(r,e,i){const n=i.description;if(n){const d=document.createElement("div");d.className="info-description",e.renderDescription?d.innerHTML=e.renderDescription(n):d.appendChild(document.createTextNode(n)),r.appendChild(d)}T(r,e,i)}l(u,"renderDescription");function T(r,e,i){const n=i.deprecationReason;if(n){const d=document.createElement("div");d.className="info-deprecation",e.renderDescription?d.innerHTML=e.renderDescription(n):d.appendChild(document.createTextNode(n));const c=document.createElement("span");c.className="info-deprecation-label",c.appendChild(document.createTextNode("Deprecated: ")),d.insertBefore(c,d.firstChild),r.appendChild(d)}}l(T,"renderDeprecation");function t(r,e,i="",n={onClick:null},d=null){if(i){const c=n.onClick;let a;c?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",g=>{c(d,g)})):a=document.createElement("span"),a.className=i,a.appendChild(document.createTextNode(e)),r.appendChild(a)}else r.appendChild(document.createTextNode(e))}l(t,"text");
@@ -1 +1 @@
1
- import{P as R,j as f,fg as re,d8 as O,fh as ie,b as Pt,N as Ut,fi as ne,a7 as se,bi as oe,r as C,aa as ae,a5 as le,ab as ce,bn as ue,br as he,o as fe,m as pe,cM as me,bB as de,x as bt,J as ge,W as ve,cv as ye,k as be,t as xe,D as je,B as xt,C as jt,s as _e,Y as Se,v as Ee,Z as _t,y as Ce,A as we}from"./index-BsTEuRio.js";import{W as Re}from"./url-evaluation-PNUzVXFG.js";import{s as Ot,n as Ae,W as Ie}from"./without-wallet-CXyXy2KB.js";import{r as Pe}from"./cloneDeep-fDhnQcTQ.js";import{_ as Lt}from"./useLocalStorage-DdJoK4w7.js";import{I as St}from"./index-DuyB74pI.js";import{d as Ue}from"./Delete-CcdfJXTL.js";import{A as Oe}from"./Autocomplete-CayznxGz.js";import{L as Le}from"./ListItemButton-FKXnIc0i.js";import{S as Te,a as De,b as Ne}from"./Stepper-ECw_WCHI.js";function Me({mode:t,...e}){return t==="development"?f.jsx(Re,{type:"primary",...e,children:"DEV"}):null}Me.propTypes={mode:R.string.isRequired};var Tt={},pt={exports:{}},Dt={exports:{}},tt=Dt.exports={github:{protocols:["git","http","git+ssh","git+https","ssh","https"],domain:"github.com",treepath:"tree",filetemplate:"https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}",bugstemplate:"https://{domain}/{user}/{project}/issues",gittemplate:"git://{auth@}{domain}/{user}/{project}.git{#committish}",tarballtemplate:"https://codeload.{domain}/{user}/{project}/tar.gz/{committish}"},bitbucket:{protocols:["git+ssh","git+https","ssh","https"],domain:"bitbucket.org",treepath:"src",tarballtemplate:"https://{domain}/{user}/{project}/get/{committish}.tar.gz"},gitlab:{protocols:["git+ssh","git+https","ssh","https"],domain:"gitlab.com",treepath:"tree",bugstemplate:"https://{domain}/{user}/{project}/issues",httpstemplate:"git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}",tarballtemplate:"https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}",pathmatch:/^\/([^/]+)\/((?!.*(\/-\/|\/repository(\/[^/]+)?\/archive\.tar\.gz)).*?)(?:\.git|\/)?$/},gist:{protocols:["git","git+ssh","git+https","ssh","https"],domain:"gist.github.com",pathmatch:/^[/](?:([^/]+)[/])?([a-z0-9]{7,})(?:[.]git)?$/,filetemplate:"https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}",bugstemplate:"https://{domain}/{project}",gittemplate:"git://{domain}/{project}.git{#committish}",sshtemplate:"git@{domain}:/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{project}.git{#committish}",browsetemplate:"https://{domain}/{project}{/committish}",browsefiletemplate:"https://{domain}/{project}{/committish}{#path}",docstemplate:"https://{domain}/{project}{/committish}",httpstemplate:"git+https://{domain}/{project}.git{#committish}",shortcuttemplate:"{type}:{project}{#committish}",pathtemplate:"{project}{#committish}",tarballtemplate:"https://codeload.github.com/gist/{project}/tar.gz/{committish}",hashformat:function(t){return"file-"+Nt(t)}}},Et={sshtemplate:"git@{domain}:{user}/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{user}/{project}.git{#committish}",browsetemplate:"https://{domain}/{user}/{project}{/tree/committish}",browsefiletemplate:"https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}",docstemplate:"https://{domain}/{user}/{project}{/tree/committish}#readme",httpstemplate:"git+https://{auth@}{domain}/{user}/{project}.git{#committish}",filetemplate:"https://{domain}/{user}/{project}/raw/{committish}/{path}",shortcuttemplate:"{type}:{user}/{project}{#committish}",pathtemplate:"{user}/{project}{#committish}",pathmatch:/^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/,hashformat:Nt};Object.keys(tt).forEach(function(t){Object.keys(Et).forEach(function(e){tt[t][e]||(tt[t][e]=Et[e])}),tt[t].protocols_re=RegExp("^("+tt[t].protocols.map(function(e){return e.replace(/([\\+*{}()[\]$^|])/g,"\\$1")}).join("|")+"):$")});function Nt(t){return t.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}var Mt=Dt.exports,Ct=Mt,Y=Object.assign||function(e,r){if(r===null||typeof r!="object")return e;const i=Object.keys(r);let s=i.length;for(;s--;)e[i[s]]=r[i[s]];return e},Be=E;function E(t,e,r,i,s,l,u){var c=this;c.type=t,Object.keys(Ct[t]).forEach(function(m){c[m]=Ct[t][m]}),c.user=e,c.auth=r,c.project=i,c.committish=s,c.default=l,c.opts=u||{}}E.prototype.hash=function(){return this.committish?"#"+this.committish:""};E.prototype._fill=function(t,e){if(t){var r=Y({},e);r.path=r.path?r.path.replace(/^[/]+/g,""):"",e=Y(Y({},this.opts),e);var i=this;Object.keys(this).forEach(function(h){i[h]!=null&&r[h]==null&&(r[h]=i[h])});var s=r.auth,l=r.committish,u=r.fragment,c=r.path,m=r.project;Object.keys(r).forEach(function(h){var S=r[h];(h==="path"||h==="project")&&typeof S=="string"?r[h]=S.split("/").map(function(w){return encodeURIComponent(w)}).join("/"):h!=="domain"&&(r[h]=encodeURIComponent(S))}),r["auth@"]=s?s+"@":"",r["#fragment"]=u?"#"+this.hashformat(u):"",r.fragment=r.fragment?r.fragment:"",r["#path"]=c?"#"+this.hashformat(c):"",r["/path"]=r.path?"/"+r.path:"",r.projectPath=m.split("/").map(encodeURIComponent).join("/"),e.noCommittish?(r["#committish"]="",r["/tree/committish"]="",r["/committish"]="",r.committish=""):(r["#committish"]=l?"#"+l:"",r["/tree/committish"]=r.committish?"/"+r.treepath+"/"+r.committish:"",r["/committish"]=r.committish?"/"+r.committish:"",r.committish=r.committish||"master");var b=t;return Object.keys(r).forEach(function(h){b=b.replace(new RegExp("[{]"+h+"[}]","g"),r[h])}),e.noGitPlus?b.replace(/^git[+]/,""):b}};E.prototype.ssh=function(t){return this._fill(this.sshtemplate,t)};E.prototype.sshurl=function(t){return this._fill(this.sshurltemplate,t)};E.prototype.browse=function(t,e,r){return typeof t=="string"?(typeof e!="string"&&(r=e,e=null),this._fill(this.browsefiletemplate,Y({fragment:e,path:t},r))):this._fill(this.browsetemplate,t)};E.prototype.docs=function(t){return this._fill(this.docstemplate,t)};E.prototype.bugs=function(t){return this._fill(this.bugstemplate,t)};E.prototype.https=function(t){return this._fill(this.httpstemplate,t)};E.prototype.git=function(t){return this._fill(this.gittemplate,t)};E.prototype.shortcut=function(t){return this._fill(this.shortcuttemplate,t)};E.prototype.path=function(t){return this._fill(this.pathtemplate,t)};E.prototype.tarball=function(t){var e=Y({},t,{noCommittish:!1});return this._fill(this.tarballtemplate,e)};E.prototype.file=function(t,e){return this._fill(this.filetemplate,Y({path:t},e))};E.prototype.getDefaultRepresentation=function(){return this.default};E.prototype.toString=function(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)};var lt,wt;function We(){return wt||(wt=1,lt=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),lt}var $e=p;p.Node=G;p.create=p;function p(t){var e=this;if(e instanceof p||(e=new p),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}p.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};p.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};p.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};p.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)Ge(this,arguments[t]);return this.length};p.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)qe(this,arguments[t]);return this.length};p.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};p.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};p.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};p.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};p.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};p.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};p.prototype.map=function(t,e){e=e||this;for(var r=new p,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};p.prototype.mapReverse=function(t,e){e=e||this;for(var r=new p,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};p.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;i!==null;s++)r=t(r,i.value,s),i=i.next;return r};p.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;i!==null;s--)r=t(r,i.value,s),i=i.prev;return r};p.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};p.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};p.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new p;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;s!==null&&i<t;i++)s=s.next;for(;s!==null&&i<e;i++,s=s.next)r.push(s.value);return r};p.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new p;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;s!==null&&i>e;i--)s=s.prev;for(;s!==null&&i>t;i--,s=s.prev)r.push(s.value);return r};p.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,s=this.head;s!==null&&i<t;i++)s=s.next;for(var l=[],i=0;s&&i<e;i++)l.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var i=0;i<r.length;i++)s=Fe(this,s,r[i]);return l};p.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function Fe(t,e,r){var i=e===t.head?new G(r,null,e,t):new G(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function Ge(t,e){t.tail=new G(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function qe(t,e){t.head=new G(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function G(t,e,r,i){if(!(this instanceof G))return new G(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{We()(p)}catch{}const He=$e,$=Symbol("max"),D=Symbol("length"),J=Symbol("lengthCalculator"),rt=Symbol("allowStale"),F=Symbol("maxAge"),T=Symbol("dispose"),Rt=Symbol("noDisposeOnSet"),j=Symbol("lruList"),I=Symbol("cache"),Bt=Symbol("updateAgeOnGet"),ct=()=>1;class Ke{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[$]=e.max||1/0;const r=e.length||ct;if(this[J]=typeof r!="function"?ct:r,this[rt]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[F]=e.maxAge||0,this[T]=e.dispose,this[Rt]=e.noDisposeOnSet||!1,this[Bt]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[$]=e||1/0,et(this)}get max(){return this[$]}set allowStale(e){this[rt]=!!e}get allowStale(){return this[rt]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[F]=e,et(this)}get maxAge(){return this[F]}set lengthCalculator(e){typeof e!="function"&&(e=ct),e!==this[J]&&(this[J]=e,this[D]=0,this[j].forEach(r=>{r.length=this[J](r.value,r.key),this[D]+=r.length})),et(this)}get lengthCalculator(){return this[J]}get length(){return this[D]}get itemCount(){return this[j].length}rforEach(e,r){r=r||this;for(let i=this[j].tail;i!==null;){const s=i.prev;At(this,e,i,r),i=s}}forEach(e,r){r=r||this;for(let i=this[j].head;i!==null;){const s=i.next;At(this,e,i,r),i=s}}keys(){return this[j].toArray().map(e=>e.key)}values(){return this[j].toArray().map(e=>e.value)}reset(){this[T]&&this[j]&&this[j].length&&this[j].forEach(e=>this[T](e.key,e.value)),this[I]=new Map,this[j]=new He,this[D]=0}dump(){return this[j].map(e=>nt(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[j]}set(e,r,i){if(i=i||this[F],i&&typeof i!="number")throw new TypeError("maxAge must be a number");const s=i?Date.now():0,l=this[J](r,e);if(this[I].has(e)){if(l>this[$])return X(this,this[I].get(e)),!1;const m=this[I].get(e).value;return this[T]&&(this[Rt]||this[T](e,m.value)),m.now=s,m.maxAge=i,m.value=r,this[D]+=l-m.length,m.length=l,this.get(e),et(this),!0}const u=new Ve(e,r,l,s,i);return u.length>this[$]?(this[T]&&this[T](e,r),!1):(this[D]+=u.length,this[j].unshift(u),this[I].set(e,this[j].head),et(this),!0)}has(e){if(!this[I].has(e))return!1;const r=this[I].get(e).value;return!nt(this,r)}get(e){return ut(this,e,!0)}peek(e){return ut(this,e,!1)}pop(){const e=this[j].tail;return e?(X(this,e),e.value):null}del(e){X(this,this[I].get(e))}load(e){this.reset();const r=Date.now();for(let i=e.length-1;i>=0;i--){const s=e[i],l=s.e||0;if(l===0)this.set(s.k,s.v);else{const u=l-r;u>0&&this.set(s.k,s.v,u)}}}prune(){this[I].forEach((e,r)=>ut(this,r,!1))}}const ut=(t,e,r)=>{const i=t[I].get(e);if(i){const s=i.value;if(nt(t,s)){if(X(t,i),!t[rt])return}else r&&(t[Bt]&&(i.value.now=Date.now()),t[j].unshiftNode(i));return s.value}},nt=(t,e)=>{if(!e||!e.maxAge&&!t[F])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[F]&&r>t[F]},et=t=>{if(t[D]>t[$])for(let e=t[j].tail;t[D]>t[$]&&e!==null;){const r=e.prev;X(t,e),e=r}},X=(t,e)=>{if(e){const r=e.value;t[T]&&t[T](r.key,r.value),t[D]-=r.length,t[I].delete(r.key),t[j].removeNode(e)}};class Ve{constructor(e,r,i,s,l){this.key=e,this.value=r,this.length=i,this.now=s,this.maxAge=l||0}}const At=(t,e,r,i)=>{let s=r.value;nt(t,s)&&(X(t,r),t[rt]||(s=void 0)),s&&e.call(i,s.value,s.key,t)};var ze=Ke,ft=re,It=Mt,Je=pt.exports=Be,Ye=ze,ht=new Ye({max:1e3}),Xe={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function Qe(t){return Xe[t]||t.slice(0,-1)}var Ze={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0};pt.exports.fromUrl=function(t,e){if(typeof t=="string"){var r=t+JSON.stringify(e||{});return ht.has(r)||ht.set(r,ke(t,e)),ht.get(r)}};function ke(t,e){if(!(t==null||t==="")){var r=er(tr(t)?"github:"+t:t),i=rr(r),s=r.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/),l=Object.keys(It).map(function(u){try{var c=It[u],m=null;i.auth&&Ze[i.protocol]&&(m=i.auth);var b=i.hash?decodeURIComponent(i.hash.substr(1)):null,h=null,S=null,w=null;if(s&&s[1]===u)h=s[2]&&decodeURIComponent(s[2]),S=decodeURIComponent(s[3].replace(/\.git$/,"")),w="shortcut";else{if(i.host&&i.host!==c.domain&&i.host.replace(/^www[.]/,"")!==c.domain||!c.protocols_re.test(i.protocol)||!i.path)return;var g=c.pathmatch,U=i.path.match(g);if(!U)return;U[1]!==null&&U[1]!==void 0&&(h=decodeURIComponent(U[1].replace(/^:/,""))),S=decodeURIComponent(U[2]),w=Qe(i.protocol)}return new Je(u,h,m,S,b,w,e)}catch(N){if(!(N instanceof URIError))throw N}}).filter(function(u){return u});if(l.length===1)return l[0]}}function tr(t){return/^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(t)}function er(t){var e=ft.parse(t);return e.protocol==="gist:"&&e.host&&!e.path?e.protocol+"/"+e.host:t}function rr(t){var e=t.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);if(!e){var r=ft.parse(t);if(r.auth){const s=t.match(/[^@]+@[^:/]+/);if(s){var i=new ft.URL(s[0]);r.auth=i.username||"",i.password&&(r.auth+=":"+i.password)}}return r}return{protocol:"git+ssh:",slashes:!0,auth:e[1],host:e[2],port:null,hostname:e[2],hash:e[4],search:null,query:null,pathname:"/"+e[3],path:"/"+e[3],href:"git+ssh://"+e[1]+"@"+e[2]+"/"+e[3]+(e[4]||"")}}var ir=pt.exports,q={},P={},nr=O&&O.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(P,"__esModule",{value:!0});P.setService=P.findService=P.getDefaultServiceConfig=P.getServiceConfig=void 0;const sr=nr(Pe),or=Ot,Wt={},mt=t=>{Wt[t.name]={validate:t.schema.validate.bind(t.schema),defaultConfig:t.default}};P.setService=mt;mt({name:"auth",schema:or.authConfigSchema,default:{}});const $t=t=>{if(!t)throw new Error("service name should not be empty");const e=Wt[t];if(!e)throw new Error(`service ${t} does not exist`);return e},Ft=(t,e,{validate:r}={})=>{const i=$t(t),s=(0,sr.default)(e||{}),{value:l,error:u}=i.validate(s);if(r&&u)throw new Error(`Invalid blocklet service config: ${u.details.map(c=>c.message).join(", ")}`);return l};P.getServiceConfig=Ft;const Gt=t=>{const{defaultConfig:e}=$t(t);return e};P.getDefaultServiceConfig=Gt;const qt=(t,e)=>{const r=[e];return(t||[]).find(i=>r.includes(i.name))};P.findService=qt;P.default={getServiceConfig:Ft,getDefaultServiceConfig:Gt,findService:qt,setService:mt};Object.defineProperty(q,"__esModule",{value:!0});q.fixAndValidateService=q.validateMeta=void 0;const ar=Ot,lr=P,cr=t=>(!t.interfaces||!t.interfaces.length||t.interfaces.forEach(e=>{e.services&&e.services.length&&e.services.forEach(r=>{r.config=(0,lr.getServiceConfig)(r.name,r.config,{validate:!0})})}),t);q.fixAndValidateService=cr;const Ht=(t,{ensureFiles:e=!1,ensureDist:r=!1,ensureComponentStore:i=!0,ensureName:s=!1,skipValidateDidName:l=!1,schemaOptions:u={}}={})=>{const c=(0,ar.createBlockletSchema)(null,{ensureFiles:e,ensureDist:r,ensureComponentStore:i,ensureName:s,skipValidateDidName:l,...u}),{value:m,error:b}=c.validate(t);if(b)throw new Error(`Invalid blocklet meta: ${b.details.map(h=>h.message).join(", ")}`);return m};q.validateMeta=Ht;q.default=Ht;(function(t){var e=O&&O.__createBinding||(Object.create?function(n,o,v,y){y===void 0&&(y=v);var d=Object.getOwnPropertyDescriptor(o,v);(!d||("get"in d?!o.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return o[v]}}),Object.defineProperty(n,y,d)}:function(n,o,v,y){y===void 0&&(y=v),n[y]=o[v]}),r=O&&O.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),i=O&&O.__importStar||function(){var n=function(o){return n=Object.getOwnPropertyNames||function(v){var y=[];for(var d in v)Object.prototype.hasOwnProperty.call(v,d)&&(y[y.length]=d);return y},n(o)};return function(o){if(o&&o.__esModule)return o;var v={};if(o!=null)for(var y=n(o),d=0;d<y.length;d++)y[d]!=="default"&&e(v,o,y[d]);return r(v,o),v}}(),s=O&&O.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.fixService=t.fixInterfaces=t.parsePerson=t.formatPerson=t.fixName=t.fixTags=t.fixPerson=t.fixKeywords=t.fixFiles=t.fixRepository=t.fixRequired=void 0;const l=s(ie),u=i(ir),c=Pt,m=q;Object.defineProperty(t,"fixService",{enumerable:!0,get:function(){return m.fixAndValidateService}});const b=Ae,h=(n,o)=>{n.description||(n.description=`Blocklet from ${o}`),n.version||(n.version=c.BLOCKLET_DEFAULT_VERSION)};t.fixRequired=h;const S=n=>{if(n.repository&&(typeof n.repository=="string"&&(n.repository={type:"git",url:n.repository}),n.repository.url)){const o=u.fromUrl(n.repository.url);o&&(n.repository.url=o.getDefaultRepresentation()==="shortcut"?o.https():o.toString())}};t.fixRepository=S;const w=n=>{Array.isArray(n.files)?n.files&&(n.files=n.files.filter(o=>!(!o||typeof o!="string"))):delete n.files};t.fixFiles=w;const g=n=>{typeof n.keywords=="string"&&(n.keywords=n.keywords.split(/,\s+/)),n.keywords&&!Array.isArray(n.keywords)?delete n.keywords:n.keywords&&(n.keywords=n.keywords.filter(o=>!(typeof o!="string"||!o)))};t.fixKeywords=g;const U=n=>{typeof n.tags=="string"&&(n.tags=n.tags.split(/,\s+/)),n.tags&&!Array.isArray(n.tags)?delete n.tags:n.tags&&(n.tags=n.tags.filter(o=>!(typeof o!="string"||!o)))};t.fixTags=U;const N=(n,o)=>(n.author&&(n.author=o(n.author)),["maintainers","contributors"].forEach(v=>{Array.isArray(n[v])&&(n[v]=n[v].map(o))}),n),H=n=>{if(!n)return"";if(typeof n=="string")return n;const o=n.name||"",v=n.url||n.web,y=v?` (${v})`:"",d=n.email||n.mail,x=d?` <${d}>`:"";return o+x+y};t.formatPerson=H;const A=n=>{if(typeof n!="string")return n;const o=n.match(/^([^(<]+)/),v=n.match(/\(([^)]+)\)/),y=n.match(/<([^>]+)>/),d={};return o&&o[0].trim()&&(d.name=o[0].trim()),y&&([,d.email]=y),v&&([,d.url]=v),d};t.parsePerson=A;const Q=n=>(N(n,H),N(n,A),n);t.fixPerson=Q;const M=(n,o=!0)=>{if(Array.isArray(n.interfaces)||(n.interfaces=[]),n.interfaces.length)return n.interfaces.forEach(x=>{x.type===c.BLOCKLET_INTERFACE_TYPE_WEB&&(x.protocol="http")}),n;const y=(0,l.default)(n,"capabilities.dynamicPathPrefix",!0)?c.BLOCKLET_DYNAMIC_PATH_PREFIX:"/",d=({type:x="web",name:B,path:Z="/",protocol:st="http",port:it=c.BLOCKLET_DEFAULT_PORT_NAME})=>{n.interfaces.push({type:x,name:B,path:Z,prefix:y,port:it,protocol:st})};return[c.BLOCKLET_INTERFACE_PUBLIC].forEach(x=>{n[x]&&d({name:x,path:n[x]})}),Array.isArray(n.exposeServices)&&n.exposeServices.forEach(x=>{d({type:"service",name:x.protocol,protocol:x.protocol,port:{internal:`BLOCKLET_${x.protocol}_PORT`.toUpperCase(),external:x.port}})}),o&&(delete n.publicUrl,delete n.adminUrl,delete n.configUrl,delete n.docUrl,delete n.exposeServices,n.capabilities&&delete n.capabilities.dynamicPathPrefix),n};t.fixInterfaces=M;const K=n=>{const{did:o}=n;try{(0,b.validateNewDid)(o),n.name=o}catch{}return n};t.fixName=K,t.default={fixRequired:h,fixRepository:S,fixFiles:w,fixKeywords:g,fixPerson:Q,fixTags:U,fixName:K,formatPerson:H,parsePerson:A,fixInterfaces:M,fixService:m.fixAndValidateService}})(Tt);function Kt({owner:t,locale:e}){return f.jsxs(Ut,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.fullName,t.did?f.jsx(ne,{sx:{lineHeight:"initial","&::before":{content:'"("'},"&::after":{content:'")"'}},did:t.did,compact:!0,size:14,locale:e}):null]})}Kt.propTypes={owner:R.object.isRequired,locale:R.string.isRequired};const ur="install-blocklet-from-URL",Vt=()=>{const[t,e]=Lt(ur,"[]",{raw:!0}),r=s=>{const l=s.trim(),u=JSON.parse(t),c=u.findIndex(m=>m===l);c!==0&&(c>0&&u.splice(c,1),u.length>=10&&u.splice(9),u.unshift(l),e(JSON.stringify(u)))},i=s=>{if(!s)return;const l=JSON.parse(t),u=s.trim(),c=l.findIndex(m=>m===u);c>-1&&(l.splice(c,1),e(JSON.stringify(l)))};return{urls:t?JSON.parse(t):[],addUrlRecord:r,removeUrlRecord:i}},hr=se(()=>({listItemText:{"& span":{display:"block",width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}}));function dt(t){const{value:e,onValueChange:r,children:i,helperText:s}=t,{urls:l,removeUrlRecord:u}=Vt(),c=(b,h)=>{b.preventDefault(),b.stopPropagation(),u(h)},m=hr();return f.jsxs(Ut,{children:[f.jsx(Oe,{freeSolo:!0,options:l,inputValue:e,onInputChange:(b,h)=>{r(h)},disableClearable:!0,popupIcon:null,renderInput:b=>oe.cloneElement(i,{...b}),renderOption:(b,h)=>C.createElement(ae,{...b,key:h,secondaryAction:f.jsx(le,{edge:"end","aria-label":"delete",onClick:S=>c(S,h),children:f.jsx(Ue,{})})},f.jsx(Le,{role:void 0,dense:!0,sx:{paddingLeft:0,paddingRight:30,"&:hover":{backgroundColor:"transparent"}},children:f.jsx(ce,{primary:h,className:m.listItemText})})),ListboxProps:{sx:{maxHeight:300,overflow:"auto"}}}),f.jsx(ue,{style:{margin:0},children:s})]})}dt.propTypes={onValueChange:R.func,children:R.node,value:R.string,helperText:R.string};dt.defaultProps={onValueChange:()=>{},children:null,value:"",helperText:""};function zt({defaultUrl:t,onCancel:e,onSuccess:r,onError:i,mode:s,handleText:l}){const{api:u}=he(),{api:c,session:m}=fe(),[b,h]=C.useState(!1),[S,w]=C.useState(""),{t:g,locale:U}=pe(),N={dist:{}},{encryptKey:H}=me(),[A,Q]=C.useState(t),[M,K]=C.useState(t?1:0),[n,o]=C.useState(N),[v,y]=C.useState(!1),[d,x]=C.useState(""),[B]=Lt("instant-blocklet-install",!1),[Z,st]=C.useState({}),it=s==="component",ot=it?!0:!t,{addUrlRecord:Jt}=Vt(),k=C.useMemo(()=>{var L;return(((L=m.user)==null?void 0:L.connectedAccounts)||[]).some(z=>z.provider===Pt.LOGIN_PROVIDER.WALLET)},[m.user]),at=async()=>{o(N),w(null),h(!0);let a=A.trim();!a.startsWith("https://")&&!a.startsWith("http://")&&!a.startsWith("file://")&&(a=`file://${a}`);try{const _=decodeURIComponent(a);try{new URL(_)}catch{throw new Error("Invalid URL")}const{meta:L,inStore:z,registryUrl:ee}=await u.getBlockletMetaFromUrl({input:{url:_}});o(L),st({inStore:z,registryUrl:ee,inputUrl:a}),Jt(a)}catch(_){console.error(_);const L=`Blocklet Install failed: ${_t(_)}`;w(L),i(_)}finally{h(!1)}},Yt=()=>{var _;if(it){r({meta:n,...Z}),e();return}if(B){h(!0),y(!0);return}const a=bt(((_=window==null?void 0:window.env)==null?void 0:_.apiPrefix)??"/","/launch-blocklet/install");window.location.href=Ce(a,{blocklet_meta_url:decodeURIComponent(A.trim()),from:"url"})},gt=()=>{h(!1),y(!1),r({meta:n,...Z}),e()},Xt=()=>{h(!1),y(!1)};C.useEffect(()=>{t&&at()},[t]);const V=C.useMemo(()=>({title:n.title,wt:de(n),blockletMetaUrl:decodeURIComponent(A.trim())}),[n,A]),vt=C.useCallback(async()=>{var L;if(k||B){x("");return}const a=new URL(window.location.href);a.pathname=bt(((L=window==null?void 0:window.env)==null?void 0:L.apiPrefix)??"/","/api/did/launch-free-blocklet-by-session/token"),a.searchParams.set("_ek_",H),Object.keys(V).forEach(z=>{a.searchParams.set(z,V[z])});const{data:_}=await c.get(a.href);_.url?x(_.url):x("")},[k,V,c,H,B]);C.useEffect(()=>{vt()},[vt]);const Qt=C.useMemo(()=>k&&d?{...V,nw:d,skipMigrateAccount:!0}:V,[V,d,k]),Zt=[{name:g("common.name"),value:ge.getDisplayName({meta:n},!0)},{name:g("common.version"),value:n.version},{name:g("common.did"),value:n.did?f.jsx(ve,{did:n.did}):null},{name:g("common.author"),value:n.owner?f.jsx(Kt,{owner:n.owner,locale:U}):Tt.formatPerson(n.author)},{name:g("blocklet.dist.downloadLink"),value:n.dist.tarball}],kt=()=>b?f.jsx("div",{style:{height:200,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:f.jsx(jt,{})}):n.did?f.jsx("div",{style:{paddingLeft:"10%"},children:Zt.map(a=>a.name===g("common.did")?f.jsx(St,{valueComponent:"div",nameWidth:120,name:a.name,nameFormatter:()=>g("common.did"),children:a.value},a.name):f.jsx(St,{valueComponent:"div",nameWidth:120,name:a.name,children:a.value},a.name))}):null,te=ye(async()=>{let a=n.title;m.user&&(a=`${m.user.fullName}'s ${n.title}`);try{gt(),await u.launchBlockletWithoutWallet({input:{title:a,blockletMetaUrl:decodeURIComponent(A.trim()),type:"store",storeUrl:Z.registryUrl,onlyRequired:!0}})}catch(_){console.error("launchBlockletWithoutWallet error:",_),we.error(_t(_),{autoHideDuration:3e3})}}),yt=[{label:g("blocklet.fromUrl.step0"),body:f.jsx(be,{component:"div",children:f.jsx(dt,{style:{marginBottom:32},value:A,helperText:g("blocklet.fromUrl.description"),onValueChange:a=>{w(null),Q(a)},children:f.jsx(xe,{label:g("blocklet.fromUrl.label"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"blocklet-url-input",fullWidth:!0,autoFocus:!0,margin:"dense",value:A,onChange:a=>{w(null),Q(a.target.value)},disabled:b,onKeyPress:a=>{a.key==="Enter"&&(a.preventDefault(),at(),K(1))}})})}),cancel:g("common.cancel"),confirm:g("common.next"),onCancel:e,onConfirm:()=>{at(),K(1)}},{label:g("blocklet.fromUrl.step1"),body:kt(),cancel:g(ot?"common.pre":"common.cancel"),confirm:(l==null?void 0:l.confirm)||g("blocklet.fromUrl.confirm"),onCancel:()=>{ot?K(a=>a-1):e()},onConfirm:()=>{Yt()}}],W=yt[M];return f.jsxs(f.Fragment,{children:[f.jsxs(je,{title:(l==null?void 0:l.title)||g("blocklet.fromUrl.title"),fullWidth:!0,maxWidth:"md",onClose:()=>W.onCancel(),showCloseButton:M===0,disableEscapeKeyDown:!0,open:!0,actions:f.jsxs(f.Fragment,{children:[W.cancel&&f.jsx(xt,{onClick:a=>{a.stopPropagation(),w(null),W.onCancel()},color:"inherit",children:W.cancel||g("common.cancel")}),f.jsxs(xt,{onClick:a=>{a.stopPropagation(),W.onConfirm()},color:"primary","data-cy":"install-blocklet-next-step",disabled:b||!A||S,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[b&&M===0&&f.jsx(jt,{size:16}),W.confirm]})]}),children:[ot&&f.jsx(Te,{alternativeLabel:!0,activeStep:M,children:yt.map(({label:a})=>f.jsx(De,{children:f.jsx(Ne,{children:a})},a))}),f.jsx(_e,{component:"div",style:{marginTop:24},children:W.body}),!!S&&f.jsx(Se,{severity:"error",style:{width:"100%",marginTop:8},children:S})]}),n&&v&&f.jsx(Ee,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:!k&&!B?"bind-wallet":"launch-free-blocklet-by-session",checkFn:c.get,checkTimeout:5*60*1e3,onSuccess:gt,extraParams:Qt,messages:{title:g("setup.keyPair.title"),scan:g("setup.keyPair.scan"),confirm:g("setup.keyPair.confirm"),success:g("setup.keyPair.success")},onClose:Xt,customItems:B?[]:[f.jsx(Ie,{onClick:te})]})]})}zt.propTypes={defaultUrl:R.string,onCancel:R.func.isRequired,onSuccess:R.func.isRequired,onError:R.func,mode:R.oneOf(["install","component"]),handleText:R.object};zt.defaultProps={onError:()=>{},defaultUrl:"",mode:"install",handleText:{}};export{Me as B,zt as I,Kt as a,Tt as f};
1
+ import{P as R,j as f,fg as re,d8 as O,fh as ie,b as Pt,N as Ut,fi as ne,a7 as se,bi as oe,r as C,aa as ae,a5 as le,ab as ce,bn as ue,br as he,o as fe,m as pe,cM as me,bB as de,x as bt,J as ge,W as ve,cv as ye,k as be,t as xe,D as je,B as xt,C as jt,s as _e,Y as Se,v as Ee,Z as _t,y as Ce,A as we}from"./index-DkmCetRt.js";import{W as Re}from"./url-evaluation-BWYsY9n8.js";import{s as Ot,n as Ae,W as Ie}from"./without-wallet-J6nBTF9O.js";import{r as Pe}from"./cloneDeep-DuGt6vnv.js";import{_ as Lt}from"./useLocalStorage-BYncjTWP.js";import{I as St}from"./index-B-mcVa4K.js";import{d as Ue}from"./Delete-C10UTDTa.js";import{A as Oe}from"./Autocomplete-0XS5VLQn.js";import{L as Le}from"./ListItemButton-CTRWl4wH.js";import{S as Te,a as De,b as Ne}from"./Stepper-DfRVqYtc.js";function Me({mode:t,...e}){return t==="development"?f.jsx(Re,{type:"primary",...e,children:"DEV"}):null}Me.propTypes={mode:R.string.isRequired};var Tt={},pt={exports:{}},Dt={exports:{}},tt=Dt.exports={github:{protocols:["git","http","git+ssh","git+https","ssh","https"],domain:"github.com",treepath:"tree",filetemplate:"https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}",bugstemplate:"https://{domain}/{user}/{project}/issues",gittemplate:"git://{auth@}{domain}/{user}/{project}.git{#committish}",tarballtemplate:"https://codeload.{domain}/{user}/{project}/tar.gz/{committish}"},bitbucket:{protocols:["git+ssh","git+https","ssh","https"],domain:"bitbucket.org",treepath:"src",tarballtemplate:"https://{domain}/{user}/{project}/get/{committish}.tar.gz"},gitlab:{protocols:["git+ssh","git+https","ssh","https"],domain:"gitlab.com",treepath:"tree",bugstemplate:"https://{domain}/{user}/{project}/issues",httpstemplate:"git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}",tarballtemplate:"https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}",pathmatch:/^\/([^/]+)\/((?!.*(\/-\/|\/repository(\/[^/]+)?\/archive\.tar\.gz)).*?)(?:\.git|\/)?$/},gist:{protocols:["git","git+ssh","git+https","ssh","https"],domain:"gist.github.com",pathmatch:/^[/](?:([^/]+)[/])?([a-z0-9]{7,})(?:[.]git)?$/,filetemplate:"https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}",bugstemplate:"https://{domain}/{project}",gittemplate:"git://{domain}/{project}.git{#committish}",sshtemplate:"git@{domain}:/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{project}.git{#committish}",browsetemplate:"https://{domain}/{project}{/committish}",browsefiletemplate:"https://{domain}/{project}{/committish}{#path}",docstemplate:"https://{domain}/{project}{/committish}",httpstemplate:"git+https://{domain}/{project}.git{#committish}",shortcuttemplate:"{type}:{project}{#committish}",pathtemplate:"{project}{#committish}",tarballtemplate:"https://codeload.github.com/gist/{project}/tar.gz/{committish}",hashformat:function(t){return"file-"+Nt(t)}}},Et={sshtemplate:"git@{domain}:{user}/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{user}/{project}.git{#committish}",browsetemplate:"https://{domain}/{user}/{project}{/tree/committish}",browsefiletemplate:"https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}",docstemplate:"https://{domain}/{user}/{project}{/tree/committish}#readme",httpstemplate:"git+https://{auth@}{domain}/{user}/{project}.git{#committish}",filetemplate:"https://{domain}/{user}/{project}/raw/{committish}/{path}",shortcuttemplate:"{type}:{user}/{project}{#committish}",pathtemplate:"{user}/{project}{#committish}",pathmatch:/^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/,hashformat:Nt};Object.keys(tt).forEach(function(t){Object.keys(Et).forEach(function(e){tt[t][e]||(tt[t][e]=Et[e])}),tt[t].protocols_re=RegExp("^("+tt[t].protocols.map(function(e){return e.replace(/([\\+*{}()[\]$^|])/g,"\\$1")}).join("|")+"):$")});function Nt(t){return t.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}var Mt=Dt.exports,Ct=Mt,Y=Object.assign||function(e,r){if(r===null||typeof r!="object")return e;const i=Object.keys(r);let s=i.length;for(;s--;)e[i[s]]=r[i[s]];return e},Be=E;function E(t,e,r,i,s,l,u){var c=this;c.type=t,Object.keys(Ct[t]).forEach(function(m){c[m]=Ct[t][m]}),c.user=e,c.auth=r,c.project=i,c.committish=s,c.default=l,c.opts=u||{}}E.prototype.hash=function(){return this.committish?"#"+this.committish:""};E.prototype._fill=function(t,e){if(t){var r=Y({},e);r.path=r.path?r.path.replace(/^[/]+/g,""):"",e=Y(Y({},this.opts),e);var i=this;Object.keys(this).forEach(function(h){i[h]!=null&&r[h]==null&&(r[h]=i[h])});var s=r.auth,l=r.committish,u=r.fragment,c=r.path,m=r.project;Object.keys(r).forEach(function(h){var S=r[h];(h==="path"||h==="project")&&typeof S=="string"?r[h]=S.split("/").map(function(w){return encodeURIComponent(w)}).join("/"):h!=="domain"&&(r[h]=encodeURIComponent(S))}),r["auth@"]=s?s+"@":"",r["#fragment"]=u?"#"+this.hashformat(u):"",r.fragment=r.fragment?r.fragment:"",r["#path"]=c?"#"+this.hashformat(c):"",r["/path"]=r.path?"/"+r.path:"",r.projectPath=m.split("/").map(encodeURIComponent).join("/"),e.noCommittish?(r["#committish"]="",r["/tree/committish"]="",r["/committish"]="",r.committish=""):(r["#committish"]=l?"#"+l:"",r["/tree/committish"]=r.committish?"/"+r.treepath+"/"+r.committish:"",r["/committish"]=r.committish?"/"+r.committish:"",r.committish=r.committish||"master");var b=t;return Object.keys(r).forEach(function(h){b=b.replace(new RegExp("[{]"+h+"[}]","g"),r[h])}),e.noGitPlus?b.replace(/^git[+]/,""):b}};E.prototype.ssh=function(t){return this._fill(this.sshtemplate,t)};E.prototype.sshurl=function(t){return this._fill(this.sshurltemplate,t)};E.prototype.browse=function(t,e,r){return typeof t=="string"?(typeof e!="string"&&(r=e,e=null),this._fill(this.browsefiletemplate,Y({fragment:e,path:t},r))):this._fill(this.browsetemplate,t)};E.prototype.docs=function(t){return this._fill(this.docstemplate,t)};E.prototype.bugs=function(t){return this._fill(this.bugstemplate,t)};E.prototype.https=function(t){return this._fill(this.httpstemplate,t)};E.prototype.git=function(t){return this._fill(this.gittemplate,t)};E.prototype.shortcut=function(t){return this._fill(this.shortcuttemplate,t)};E.prototype.path=function(t){return this._fill(this.pathtemplate,t)};E.prototype.tarball=function(t){var e=Y({},t,{noCommittish:!1});return this._fill(this.tarballtemplate,e)};E.prototype.file=function(t,e){return this._fill(this.filetemplate,Y({path:t},e))};E.prototype.getDefaultRepresentation=function(){return this.default};E.prototype.toString=function(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)};var lt,wt;function We(){return wt||(wt=1,lt=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),lt}var $e=p;p.Node=G;p.create=p;function p(t){var e=this;if(e instanceof p||(e=new p),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}p.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};p.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};p.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};p.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)Ge(this,arguments[t]);return this.length};p.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)qe(this,arguments[t]);return this.length};p.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};p.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};p.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;r!==null;i++)t.call(e,r.value,i,this),r=r.next};p.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;r!==null;i--)t.call(e,r.value,i,this),r=r.prev};p.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};p.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};p.prototype.map=function(t,e){e=e||this;for(var r=new p,i=this.head;i!==null;)r.push(t.call(e,i.value,this)),i=i.next;return r};p.prototype.mapReverse=function(t,e){e=e||this;for(var r=new p,i=this.tail;i!==null;)r.push(t.call(e,i.value,this)),i=i.prev;return r};p.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;i!==null;s++)r=t(r,i.value,s),i=i.next;return r};p.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;i!==null;s--)r=t(r,i.value,s),i=i.prev;return r};p.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};p.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};p.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new p;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;s!==null&&i<t;i++)s=s.next;for(;s!==null&&i<e;i++,s=s.next)r.push(s.value);return r};p.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new p;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;s!==null&&i>e;i--)s=s.prev;for(;s!==null&&i>t;i--,s=s.prev)r.push(s.value);return r};p.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,s=this.head;s!==null&&i<t;i++)s=s.next;for(var l=[],i=0;s&&i<e;i++)l.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var i=0;i<r.length;i++)s=Fe(this,s,r[i]);return l};p.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};function Fe(t,e,r){var i=e===t.head?new G(r,null,e,t):new G(r,e,e.next,t);return i.next===null&&(t.tail=i),i.prev===null&&(t.head=i),t.length++,i}function Ge(t,e){t.tail=new G(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function qe(t,e){t.head=new G(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function G(t,e,r,i){if(!(this instanceof G))return new G(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{We()(p)}catch{}const He=$e,$=Symbol("max"),D=Symbol("length"),J=Symbol("lengthCalculator"),rt=Symbol("allowStale"),F=Symbol("maxAge"),T=Symbol("dispose"),Rt=Symbol("noDisposeOnSet"),j=Symbol("lruList"),I=Symbol("cache"),Bt=Symbol("updateAgeOnGet"),ct=()=>1;class Ke{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[$]=e.max||1/0;const r=e.length||ct;if(this[J]=typeof r!="function"?ct:r,this[rt]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[F]=e.maxAge||0,this[T]=e.dispose,this[Rt]=e.noDisposeOnSet||!1,this[Bt]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[$]=e||1/0,et(this)}get max(){return this[$]}set allowStale(e){this[rt]=!!e}get allowStale(){return this[rt]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[F]=e,et(this)}get maxAge(){return this[F]}set lengthCalculator(e){typeof e!="function"&&(e=ct),e!==this[J]&&(this[J]=e,this[D]=0,this[j].forEach(r=>{r.length=this[J](r.value,r.key),this[D]+=r.length})),et(this)}get lengthCalculator(){return this[J]}get length(){return this[D]}get itemCount(){return this[j].length}rforEach(e,r){r=r||this;for(let i=this[j].tail;i!==null;){const s=i.prev;At(this,e,i,r),i=s}}forEach(e,r){r=r||this;for(let i=this[j].head;i!==null;){const s=i.next;At(this,e,i,r),i=s}}keys(){return this[j].toArray().map(e=>e.key)}values(){return this[j].toArray().map(e=>e.value)}reset(){this[T]&&this[j]&&this[j].length&&this[j].forEach(e=>this[T](e.key,e.value)),this[I]=new Map,this[j]=new He,this[D]=0}dump(){return this[j].map(e=>nt(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[j]}set(e,r,i){if(i=i||this[F],i&&typeof i!="number")throw new TypeError("maxAge must be a number");const s=i?Date.now():0,l=this[J](r,e);if(this[I].has(e)){if(l>this[$])return X(this,this[I].get(e)),!1;const m=this[I].get(e).value;return this[T]&&(this[Rt]||this[T](e,m.value)),m.now=s,m.maxAge=i,m.value=r,this[D]+=l-m.length,m.length=l,this.get(e),et(this),!0}const u=new Ve(e,r,l,s,i);return u.length>this[$]?(this[T]&&this[T](e,r),!1):(this[D]+=u.length,this[j].unshift(u),this[I].set(e,this[j].head),et(this),!0)}has(e){if(!this[I].has(e))return!1;const r=this[I].get(e).value;return!nt(this,r)}get(e){return ut(this,e,!0)}peek(e){return ut(this,e,!1)}pop(){const e=this[j].tail;return e?(X(this,e),e.value):null}del(e){X(this,this[I].get(e))}load(e){this.reset();const r=Date.now();for(let i=e.length-1;i>=0;i--){const s=e[i],l=s.e||0;if(l===0)this.set(s.k,s.v);else{const u=l-r;u>0&&this.set(s.k,s.v,u)}}}prune(){this[I].forEach((e,r)=>ut(this,r,!1))}}const ut=(t,e,r)=>{const i=t[I].get(e);if(i){const s=i.value;if(nt(t,s)){if(X(t,i),!t[rt])return}else r&&(t[Bt]&&(i.value.now=Date.now()),t[j].unshiftNode(i));return s.value}},nt=(t,e)=>{if(!e||!e.maxAge&&!t[F])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[F]&&r>t[F]},et=t=>{if(t[D]>t[$])for(let e=t[j].tail;t[D]>t[$]&&e!==null;){const r=e.prev;X(t,e),e=r}},X=(t,e)=>{if(e){const r=e.value;t[T]&&t[T](r.key,r.value),t[D]-=r.length,t[I].delete(r.key),t[j].removeNode(e)}};class Ve{constructor(e,r,i,s,l){this.key=e,this.value=r,this.length=i,this.now=s,this.maxAge=l||0}}const At=(t,e,r,i)=>{let s=r.value;nt(t,s)&&(X(t,r),t[rt]||(s=void 0)),s&&e.call(i,s.value,s.key,t)};var ze=Ke,ft=re,It=Mt,Je=pt.exports=Be,Ye=ze,ht=new Ye({max:1e3}),Xe={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function Qe(t){return Xe[t]||t.slice(0,-1)}var Ze={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0};pt.exports.fromUrl=function(t,e){if(typeof t=="string"){var r=t+JSON.stringify(e||{});return ht.has(r)||ht.set(r,ke(t,e)),ht.get(r)}};function ke(t,e){if(!(t==null||t==="")){var r=er(tr(t)?"github:"+t:t),i=rr(r),s=r.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/),l=Object.keys(It).map(function(u){try{var c=It[u],m=null;i.auth&&Ze[i.protocol]&&(m=i.auth);var b=i.hash?decodeURIComponent(i.hash.substr(1)):null,h=null,S=null,w=null;if(s&&s[1]===u)h=s[2]&&decodeURIComponent(s[2]),S=decodeURIComponent(s[3].replace(/\.git$/,"")),w="shortcut";else{if(i.host&&i.host!==c.domain&&i.host.replace(/^www[.]/,"")!==c.domain||!c.protocols_re.test(i.protocol)||!i.path)return;var g=c.pathmatch,U=i.path.match(g);if(!U)return;U[1]!==null&&U[1]!==void 0&&(h=decodeURIComponent(U[1].replace(/^:/,""))),S=decodeURIComponent(U[2]),w=Qe(i.protocol)}return new Je(u,h,m,S,b,w,e)}catch(N){if(!(N instanceof URIError))throw N}}).filter(function(u){return u});if(l.length===1)return l[0]}}function tr(t){return/^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(t)}function er(t){var e=ft.parse(t);return e.protocol==="gist:"&&e.host&&!e.path?e.protocol+"/"+e.host:t}function rr(t){var e=t.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);if(!e){var r=ft.parse(t);if(r.auth){const s=t.match(/[^@]+@[^:/]+/);if(s){var i=new ft.URL(s[0]);r.auth=i.username||"",i.password&&(r.auth+=":"+i.password)}}return r}return{protocol:"git+ssh:",slashes:!0,auth:e[1],host:e[2],port:null,hostname:e[2],hash:e[4],search:null,query:null,pathname:"/"+e[3],path:"/"+e[3],href:"git+ssh://"+e[1]+"@"+e[2]+"/"+e[3]+(e[4]||"")}}var ir=pt.exports,q={},P={},nr=O&&O.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(P,"__esModule",{value:!0});P.setService=P.findService=P.getDefaultServiceConfig=P.getServiceConfig=void 0;const sr=nr(Pe),or=Ot,Wt={},mt=t=>{Wt[t.name]={validate:t.schema.validate.bind(t.schema),defaultConfig:t.default}};P.setService=mt;mt({name:"auth",schema:or.authConfigSchema,default:{}});const $t=t=>{if(!t)throw new Error("service name should not be empty");const e=Wt[t];if(!e)throw new Error(`service ${t} does not exist`);return e},Ft=(t,e,{validate:r}={})=>{const i=$t(t),s=(0,sr.default)(e||{}),{value:l,error:u}=i.validate(s);if(r&&u)throw new Error(`Invalid blocklet service config: ${u.details.map(c=>c.message).join(", ")}`);return l};P.getServiceConfig=Ft;const Gt=t=>{const{defaultConfig:e}=$t(t);return e};P.getDefaultServiceConfig=Gt;const qt=(t,e)=>{const r=[e];return(t||[]).find(i=>r.includes(i.name))};P.findService=qt;P.default={getServiceConfig:Ft,getDefaultServiceConfig:Gt,findService:qt,setService:mt};Object.defineProperty(q,"__esModule",{value:!0});q.fixAndValidateService=q.validateMeta=void 0;const ar=Ot,lr=P,cr=t=>(!t.interfaces||!t.interfaces.length||t.interfaces.forEach(e=>{e.services&&e.services.length&&e.services.forEach(r=>{r.config=(0,lr.getServiceConfig)(r.name,r.config,{validate:!0})})}),t);q.fixAndValidateService=cr;const Ht=(t,{ensureFiles:e=!1,ensureDist:r=!1,ensureComponentStore:i=!0,ensureName:s=!1,skipValidateDidName:l=!1,schemaOptions:u={}}={})=>{const c=(0,ar.createBlockletSchema)(null,{ensureFiles:e,ensureDist:r,ensureComponentStore:i,ensureName:s,skipValidateDidName:l,...u}),{value:m,error:b}=c.validate(t);if(b)throw new Error(`Invalid blocklet meta: ${b.details.map(h=>h.message).join(", ")}`);return m};q.validateMeta=Ht;q.default=Ht;(function(t){var e=O&&O.__createBinding||(Object.create?function(n,o,v,y){y===void 0&&(y=v);var d=Object.getOwnPropertyDescriptor(o,v);(!d||("get"in d?!o.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return o[v]}}),Object.defineProperty(n,y,d)}:function(n,o,v,y){y===void 0&&(y=v),n[y]=o[v]}),r=O&&O.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),i=O&&O.__importStar||function(){var n=function(o){return n=Object.getOwnPropertyNames||function(v){var y=[];for(var d in v)Object.prototype.hasOwnProperty.call(v,d)&&(y[y.length]=d);return y},n(o)};return function(o){if(o&&o.__esModule)return o;var v={};if(o!=null)for(var y=n(o),d=0;d<y.length;d++)y[d]!=="default"&&e(v,o,y[d]);return r(v,o),v}}(),s=O&&O.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.fixService=t.fixInterfaces=t.parsePerson=t.formatPerson=t.fixName=t.fixTags=t.fixPerson=t.fixKeywords=t.fixFiles=t.fixRepository=t.fixRequired=void 0;const l=s(ie),u=i(ir),c=Pt,m=q;Object.defineProperty(t,"fixService",{enumerable:!0,get:function(){return m.fixAndValidateService}});const b=Ae,h=(n,o)=>{n.description||(n.description=`Blocklet from ${o}`),n.version||(n.version=c.BLOCKLET_DEFAULT_VERSION)};t.fixRequired=h;const S=n=>{if(n.repository&&(typeof n.repository=="string"&&(n.repository={type:"git",url:n.repository}),n.repository.url)){const o=u.fromUrl(n.repository.url);o&&(n.repository.url=o.getDefaultRepresentation()==="shortcut"?o.https():o.toString())}};t.fixRepository=S;const w=n=>{Array.isArray(n.files)?n.files&&(n.files=n.files.filter(o=>!(!o||typeof o!="string"))):delete n.files};t.fixFiles=w;const g=n=>{typeof n.keywords=="string"&&(n.keywords=n.keywords.split(/,\s+/)),n.keywords&&!Array.isArray(n.keywords)?delete n.keywords:n.keywords&&(n.keywords=n.keywords.filter(o=>!(typeof o!="string"||!o)))};t.fixKeywords=g;const U=n=>{typeof n.tags=="string"&&(n.tags=n.tags.split(/,\s+/)),n.tags&&!Array.isArray(n.tags)?delete n.tags:n.tags&&(n.tags=n.tags.filter(o=>!(typeof o!="string"||!o)))};t.fixTags=U;const N=(n,o)=>(n.author&&(n.author=o(n.author)),["maintainers","contributors"].forEach(v=>{Array.isArray(n[v])&&(n[v]=n[v].map(o))}),n),H=n=>{if(!n)return"";if(typeof n=="string")return n;const o=n.name||"",v=n.url||n.web,y=v?` (${v})`:"",d=n.email||n.mail,x=d?` <${d}>`:"";return o+x+y};t.formatPerson=H;const A=n=>{if(typeof n!="string")return n;const o=n.match(/^([^(<]+)/),v=n.match(/\(([^)]+)\)/),y=n.match(/<([^>]+)>/),d={};return o&&o[0].trim()&&(d.name=o[0].trim()),y&&([,d.email]=y),v&&([,d.url]=v),d};t.parsePerson=A;const Q=n=>(N(n,H),N(n,A),n);t.fixPerson=Q;const M=(n,o=!0)=>{if(Array.isArray(n.interfaces)||(n.interfaces=[]),n.interfaces.length)return n.interfaces.forEach(x=>{x.type===c.BLOCKLET_INTERFACE_TYPE_WEB&&(x.protocol="http")}),n;const y=(0,l.default)(n,"capabilities.dynamicPathPrefix",!0)?c.BLOCKLET_DYNAMIC_PATH_PREFIX:"/",d=({type:x="web",name:B,path:Z="/",protocol:st="http",port:it=c.BLOCKLET_DEFAULT_PORT_NAME})=>{n.interfaces.push({type:x,name:B,path:Z,prefix:y,port:it,protocol:st})};return[c.BLOCKLET_INTERFACE_PUBLIC].forEach(x=>{n[x]&&d({name:x,path:n[x]})}),Array.isArray(n.exposeServices)&&n.exposeServices.forEach(x=>{d({type:"service",name:x.protocol,protocol:x.protocol,port:{internal:`BLOCKLET_${x.protocol}_PORT`.toUpperCase(),external:x.port}})}),o&&(delete n.publicUrl,delete n.adminUrl,delete n.configUrl,delete n.docUrl,delete n.exposeServices,n.capabilities&&delete n.capabilities.dynamicPathPrefix),n};t.fixInterfaces=M;const K=n=>{const{did:o}=n;try{(0,b.validateNewDid)(o),n.name=o}catch{}return n};t.fixName=K,t.default={fixRequired:h,fixRepository:S,fixFiles:w,fixKeywords:g,fixPerson:Q,fixTags:U,fixName:K,formatPerson:H,parsePerson:A,fixInterfaces:M,fixService:m.fixAndValidateService}})(Tt);function Kt({owner:t,locale:e}){return f.jsxs(Ut,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.fullName,t.did?f.jsx(ne,{sx:{lineHeight:"initial","&::before":{content:'"("'},"&::after":{content:'")"'}},did:t.did,compact:!0,size:14,locale:e}):null]})}Kt.propTypes={owner:R.object.isRequired,locale:R.string.isRequired};const ur="install-blocklet-from-URL",Vt=()=>{const[t,e]=Lt(ur,"[]",{raw:!0}),r=s=>{const l=s.trim(),u=JSON.parse(t),c=u.findIndex(m=>m===l);c!==0&&(c>0&&u.splice(c,1),u.length>=10&&u.splice(9),u.unshift(l),e(JSON.stringify(u)))},i=s=>{if(!s)return;const l=JSON.parse(t),u=s.trim(),c=l.findIndex(m=>m===u);c>-1&&(l.splice(c,1),e(JSON.stringify(l)))};return{urls:t?JSON.parse(t):[],addUrlRecord:r,removeUrlRecord:i}},hr=se(()=>({listItemText:{"& span":{display:"block",width:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}}));function dt(t){const{value:e,onValueChange:r,children:i,helperText:s}=t,{urls:l,removeUrlRecord:u}=Vt(),c=(b,h)=>{b.preventDefault(),b.stopPropagation(),u(h)},m=hr();return f.jsxs(Ut,{children:[f.jsx(Oe,{freeSolo:!0,options:l,inputValue:e,onInputChange:(b,h)=>{r(h)},disableClearable:!0,popupIcon:null,renderInput:b=>oe.cloneElement(i,{...b}),renderOption:(b,h)=>C.createElement(ae,{...b,key:h,secondaryAction:f.jsx(le,{edge:"end","aria-label":"delete",onClick:S=>c(S,h),children:f.jsx(Ue,{})})},f.jsx(Le,{role:void 0,dense:!0,sx:{paddingLeft:0,paddingRight:30,"&:hover":{backgroundColor:"transparent"}},children:f.jsx(ce,{primary:h,className:m.listItemText})})),ListboxProps:{sx:{maxHeight:300,overflow:"auto"}}}),f.jsx(ue,{style:{margin:0},children:s})]})}dt.propTypes={onValueChange:R.func,children:R.node,value:R.string,helperText:R.string};dt.defaultProps={onValueChange:()=>{},children:null,value:"",helperText:""};function zt({defaultUrl:t,onCancel:e,onSuccess:r,onError:i,mode:s,handleText:l}){const{api:u}=he(),{api:c,session:m}=fe(),[b,h]=C.useState(!1),[S,w]=C.useState(""),{t:g,locale:U}=pe(),N={dist:{}},{encryptKey:H}=me(),[A,Q]=C.useState(t),[M,K]=C.useState(t?1:0),[n,o]=C.useState(N),[v,y]=C.useState(!1),[d,x]=C.useState(""),[B]=Lt("instant-blocklet-install",!1),[Z,st]=C.useState({}),it=s==="component",ot=it?!0:!t,{addUrlRecord:Jt}=Vt(),k=C.useMemo(()=>{var L;return(((L=m.user)==null?void 0:L.connectedAccounts)||[]).some(z=>z.provider===Pt.LOGIN_PROVIDER.WALLET)},[m.user]),at=async()=>{o(N),w(null),h(!0);let a=A.trim();!a.startsWith("https://")&&!a.startsWith("http://")&&!a.startsWith("file://")&&(a=`file://${a}`);try{const _=decodeURIComponent(a);try{new URL(_)}catch{throw new Error("Invalid URL")}const{meta:L,inStore:z,registryUrl:ee}=await u.getBlockletMetaFromUrl({input:{url:_}});o(L),st({inStore:z,registryUrl:ee,inputUrl:a}),Jt(a)}catch(_){console.error(_);const L=`Blocklet Install failed: ${_t(_)}`;w(L),i(_)}finally{h(!1)}},Yt=()=>{var _;if(it){r({meta:n,...Z}),e();return}if(B){h(!0),y(!0);return}const a=bt(((_=window==null?void 0:window.env)==null?void 0:_.apiPrefix)??"/","/launch-blocklet/install");window.location.href=Ce(a,{blocklet_meta_url:decodeURIComponent(A.trim()),from:"url"})},gt=()=>{h(!1),y(!1),r({meta:n,...Z}),e()},Xt=()=>{h(!1),y(!1)};C.useEffect(()=>{t&&at()},[t]);const V=C.useMemo(()=>({title:n.title,wt:de(n),blockletMetaUrl:decodeURIComponent(A.trim())}),[n,A]),vt=C.useCallback(async()=>{var L;if(k||B){x("");return}const a=new URL(window.location.href);a.pathname=bt(((L=window==null?void 0:window.env)==null?void 0:L.apiPrefix)??"/","/api/did/launch-free-blocklet-by-session/token"),a.searchParams.set("_ek_",H),Object.keys(V).forEach(z=>{a.searchParams.set(z,V[z])});const{data:_}=await c.get(a.href);_.url?x(_.url):x("")},[k,V,c,H,B]);C.useEffect(()=>{vt()},[vt]);const Qt=C.useMemo(()=>k&&d?{...V,nw:d,skipMigrateAccount:!0}:V,[V,d,k]),Zt=[{name:g("common.name"),value:ge.getDisplayName({meta:n},!0)},{name:g("common.version"),value:n.version},{name:g("common.did"),value:n.did?f.jsx(ve,{did:n.did}):null},{name:g("common.author"),value:n.owner?f.jsx(Kt,{owner:n.owner,locale:U}):Tt.formatPerson(n.author)},{name:g("blocklet.dist.downloadLink"),value:n.dist.tarball}],kt=()=>b?f.jsx("div",{style:{height:200,width:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},children:f.jsx(jt,{})}):n.did?f.jsx("div",{style:{paddingLeft:"10%"},children:Zt.map(a=>a.name===g("common.did")?f.jsx(St,{valueComponent:"div",nameWidth:120,name:a.name,nameFormatter:()=>g("common.did"),children:a.value},a.name):f.jsx(St,{valueComponent:"div",nameWidth:120,name:a.name,children:a.value},a.name))}):null,te=ye(async()=>{let a=n.title;m.user&&(a=`${m.user.fullName}'s ${n.title}`);try{gt(),await u.launchBlockletWithoutWallet({input:{title:a,blockletMetaUrl:decodeURIComponent(A.trim()),type:"store",storeUrl:Z.registryUrl,onlyRequired:!0}})}catch(_){console.error("launchBlockletWithoutWallet error:",_),we.error(_t(_),{autoHideDuration:3e3})}}),yt=[{label:g("blocklet.fromUrl.step0"),body:f.jsx(be,{component:"div",children:f.jsx(dt,{style:{marginBottom:32},value:A,helperText:g("blocklet.fromUrl.description"),onValueChange:a=>{w(null),Q(a)},children:f.jsx(xe,{label:g("blocklet.fromUrl.label"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"blocklet-url-input",fullWidth:!0,autoFocus:!0,margin:"dense",value:A,onChange:a=>{w(null),Q(a.target.value)},disabled:b,onKeyPress:a=>{a.key==="Enter"&&(a.preventDefault(),at(),K(1))}})})}),cancel:g("common.cancel"),confirm:g("common.next"),onCancel:e,onConfirm:()=>{at(),K(1)}},{label:g("blocklet.fromUrl.step1"),body:kt(),cancel:g(ot?"common.pre":"common.cancel"),confirm:(l==null?void 0:l.confirm)||g("blocklet.fromUrl.confirm"),onCancel:()=>{ot?K(a=>a-1):e()},onConfirm:()=>{Yt()}}],W=yt[M];return f.jsxs(f.Fragment,{children:[f.jsxs(je,{title:(l==null?void 0:l.title)||g("blocklet.fromUrl.title"),fullWidth:!0,maxWidth:"md",onClose:()=>W.onCancel(),showCloseButton:M===0,disableEscapeKeyDown:!0,open:!0,actions:f.jsxs(f.Fragment,{children:[W.cancel&&f.jsx(xt,{onClick:a=>{a.stopPropagation(),w(null),W.onCancel()},color:"inherit",children:W.cancel||g("common.cancel")}),f.jsxs(xt,{onClick:a=>{a.stopPropagation(),W.onConfirm()},color:"primary","data-cy":"install-blocklet-next-step",disabled:b||!A||S,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[b&&M===0&&f.jsx(jt,{size:16}),W.confirm]})]}),children:[ot&&f.jsx(Te,{alternativeLabel:!0,activeStep:M,children:yt.map(({label:a})=>f.jsx(De,{children:f.jsx(Ne,{children:a})},a))}),f.jsx(_e,{component:"div",style:{marginTop:24},children:W.body}),!!S&&f.jsx(Se,{severity:"error",style:{width:"100%",marginTop:8},children:S})]}),n&&v&&f.jsx(Ee,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:!k&&!B?"bind-wallet":"launch-free-blocklet-by-session",checkFn:c.get,checkTimeout:5*60*1e3,onSuccess:gt,extraParams:Qt,messages:{title:g("setup.keyPair.title"),scan:g("setup.keyPair.scan"),confirm:g("setup.keyPair.confirm"),success:g("setup.keyPair.success")},onClose:Xt,customItems:B?[]:[f.jsx(Ie,{onClick:te})]})]})}zt.propTypes={defaultUrl:R.string,onCancel:R.func.isRequired,onSuccess:R.func.isRequired,onError:R.func,mode:R.oneOf(["install","component"]),handleText:R.object};zt.defaultProps={onError:()=>{},defaultUrl:"",mode:"install",handleText:{}};export{Me as B,zt as I,Kt as a,Tt as f};
@@ -1,4 +1,4 @@
1
- import{bX as T,j as s,P as i,n as v,r as m,e as E,bj as $,D as A,m as j,o as H,aU as M,cX as F,cv as b,x as U,cY as q,F as B,cZ as O,cE as Y,c_ as N,c$ as S,aw as V,N as L,bd as W,b9 as X,cu as J,C as K}from"./index-BsTEuRio.js";import{R as Z}from"./index-qPfSbb8F.js";import{N as G}from"./index-YHRJ5Z9D.js";import{C as z}from"./index-DzIW7WPn.js";import{b as Q}from"./sdk--zV5g1Ng.js";import{w as ee}from"./wrap-locale-kaXbWMUB.js";const se=T(s.jsx("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}),"Inbox");function P({invitation:e,createPassportSvg:a,passportColor:c}){const[p,o]=m.useState(!1),{t}=m.useContext(E),l=m.useMemo(()=>(e.role.title||e.role.name).toUpperCase(),[e.role.title,e.role.name]),u=m.useMemo(()=>a({title:l,issuer:e.info.name,issuerDid:e.info.appDid,ownerName:"Your Name",ownerDid:e.info.appDid,preferredColor:e.info.passportColor||c,extra:e.passportExpireTime?{key:"Exp",value:$(e.passportExpireTime).format("YYYY-MM-DD HH:mm:ss")}:void 0}),[e,l]),x=m.useCallback(()=>{o(!0)},[]),r=m.useCallback(()=>{o(!1)},[]);return s.jsxs(s.Fragment,{children:[s.jsx(re,{children:s.jsxs("div",{className:"invite-passport__card",onClick:x,children:[!!e.display&&s.jsx(G,{data:e.display,style:{width:"100%",height:"100%"}}),!e.display&&s.jsx("div",{className:"invite-passport__cover",dangerouslySetInnerHTML:{__html:u}})]})}),s.jsx(A,{open:p,title:t("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:r,children:e.role.permissions&&e.role.permissions.length>0?s.jsx("ul",{style:{listStyle:"circle",padding:"0 20px"},children:e.role.permissions.map(n=>s.jsx("li",{style:{listStyle:"circle"},children:n.description},n.name))}):s.jsxs("div",{style:{color:"#999",textAlign:"center"},children:[s.jsx(se,{style:{width:"30px",height:"30px"}}),s.jsx("div",{children:t("invite.emptyPermission")})]})})]})}P.propTypes={invitation:i.object.isRequired,createPassportSvg:i.func.isRequired,passportColor:i.string};P.defaultProps={passportColor:"auto"};const re=v.div`
1
+ import{bX as T,j as s,P as i,n as v,r as m,e as E,bj as $,D as A,m as j,o as H,aU as M,cX as F,cv as b,x as U,cY as q,F as B,cZ as O,cE as Y,c_ as N,c$ as S,aw as V,N as L,bd as W,b9 as X,cu as J,C as K}from"./index-DkmCetRt.js";import{R as Z}from"./index-BUkVq1KR.js";import{N as G}from"./index-CCMSBvIe.js";import{C as z}from"./index-BpIOZERe.js";import{b as Q}from"./sdk-BC4LVkFc.js";import{w as ee}from"./wrap-locale-yCE4rNok.js";const se=T(s.jsx("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}),"Inbox");function P({invitation:e,createPassportSvg:a,passportColor:c}){const[p,o]=m.useState(!1),{t}=m.useContext(E),l=m.useMemo(()=>(e.role.title||e.role.name).toUpperCase(),[e.role.title,e.role.name]),u=m.useMemo(()=>a({title:l,issuer:e.info.name,issuerDid:e.info.appDid,ownerName:"Your Name",ownerDid:e.info.appDid,preferredColor:e.info.passportColor||c,extra:e.passportExpireTime?{key:"Exp",value:$(e.passportExpireTime).format("YYYY-MM-DD HH:mm:ss")}:void 0}),[e,l]),x=m.useCallback(()=>{o(!0)},[]),r=m.useCallback(()=>{o(!1)},[]);return s.jsxs(s.Fragment,{children:[s.jsx(re,{children:s.jsxs("div",{className:"invite-passport__card",onClick:x,children:[!!e.display&&s.jsx(G,{data:e.display,style:{width:"100%",height:"100%"}}),!e.display&&s.jsx("div",{className:"invite-passport__cover",dangerouslySetInnerHTML:{__html:u}})]})}),s.jsx(A,{open:p,title:t("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:r,children:e.role.permissions&&e.role.permissions.length>0?s.jsx("ul",{style:{listStyle:"circle",padding:"0 20px"},children:e.role.permissions.map(n=>s.jsx("li",{style:{listStyle:"circle"},children:n.description},n.name))}):s.jsxs("div",{style:{color:"#999",textAlign:"center"},children:[s.jsx(se,{style:{width:"30px",height:"30px"}}),s.jsx("div",{children:t("invite.emptyPermission")})]})})]})}P.propTypes={invitation:i.object.isRequired,createPassportSvg:i.func.isRequired,passportColor:i.string};P.defaultProps={passportColor:"auto"};const re=v.div`
2
2
  display: flex;
3
3
  max-width: 350px;
4
4
  margin: 30px auto;
@@ -0,0 +1 @@
1
+ import{bm as i,gc as e}from"./index-DkmCetRt.js";const a=e;var o=(r,t)=>a(r)===a(t);const P=i(o);export{P as i};