@abtnode/blocklet-services 1.16.29-beta-1fb308f8 → 1.16.29-beta-bc7cae11
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.
- package/api/libs/connect/session.js +5 -4
- package/api/routes/federated.js +2 -1
- package/api/routes/oauth.js +3 -2
- package/api/routes/user-session.js +3 -2
- package/api/routes/user.js +5 -4
- package/api/services/auth/connect/invite.js +2 -1
- package/api/services/auth/connect/issue-passport.js +2 -1
- package/api/services/auth/connect/receive-transfer-app-owner.js +3 -2
- package/api/services/auth/connect/setup.js +3 -2
- package/api/services/auth/session.js +2 -1
- package/api/util/federated.js +2 -2
- package/dist/assets/{Add-BZ7ZYVjp.js → Add-BBefdilQ.js} +1 -1
- package/dist/assets/{AddBox-Dptu2K5s.js → AddBox-9DGcS-MG.js} +1 -1
- package/dist/assets/{Alert-CMX-K3fl.js → Alert-DGb37jLj.js} +1 -1
- package/dist/assets/{ArrowDropDown-BHB91Q_p.js → ArrowDropDown-Cxk0N412.js} +1 -1
- package/dist/assets/{Avatar-BsWomwcd.js → Avatar-CrZevpVT.js} +1 -1
- package/dist/assets/{ButtonGroup-B3eeFp-U.js → ButtonGroup-CBtiYzi1.js} +1 -1
- package/dist/assets/{CheckCircle-DFY2L2pA.js → CheckCircle-BxF-I3Me.js} +1 -1
- package/dist/assets/{ChevronRight-BWxGsqYb.js → ChevronRight-AS9SMBKm.js} +1 -1
- package/dist/assets/{Close-CH7xdBg-.js → Close-DRu6wvrV.js} +1 -1
- package/dist/assets/{CloseOutlined-xB3FnxFh.js → CloseOutlined-CC0J2Lyy.js} +1 -1
- package/dist/assets/{Delete-CfzQCYSP.js → Delete-C7l4SOZI.js} +1 -1
- package/dist/assets/{DeleteOutline-DXY50-zB.js → DeleteOutline-D71IOe8i.js} +1 -1
- package/dist/assets/{Done-Zoiu5U2x.js → Done-CB6ptsS1.js} +1 -1
- package/dist/assets/{Download-Btr3tn4O.js → Download-agqzff4Y.js} +1 -1
- package/dist/assets/{Edit-Bv8wdysg.js → Edit-Bb3AKMgg.js} +1 -1
- package/dist/assets/{EditIcon-BoTBX9Vo.js → EditIcon-Cbbk-DVV.js} +1 -1
- package/dist/assets/{Error-pRghRavn.js → Error-BOhmpL8g.js} +1 -1
- package/dist/assets/{ExpandMore-CRbFTb5y.js → ExpandMore-Dvz9OwWC.js} +1 -1
- package/dist/assets/{FilterList-CLkPMFp0.js → FilterList-ff47YUMR.js} +1 -1
- package/dist/assets/{FormControl-24PD8_fY.js → FormControl-Cer2DNeG.js} +1 -1
- package/dist/assets/{FormControlLabel-KyoBPdSk.js → FormControlLabel-slPLSd52.js} +1 -1
- package/dist/assets/{FormGroup-DsIQVrXz.js → FormGroup-Dw6XUVV7.js} +1 -1
- package/dist/assets/{Google-DdO9mcms.js → Google-Ca4C_ogQ.js} +1 -1
- package/dist/assets/{Hidden--9BCZNYr.js → Hidden-D4Ps8OY8.js} +1 -1
- package/dist/assets/{InfoOutlined-BxsSlLLq.js → InfoOutlined-rM90DbT0.js} +1 -1
- package/dist/assets/{InputAdornment-C1Qpudux.js → InputAdornment-CJ6E5NPG.js} +1 -1
- package/dist/assets/{InputLabel-xESrNHmo.js → InputLabel-DGVWp51O.js} +1 -1
- package/dist/assets/{LastPage-C4q9ssZQ.js → LastPage-BAHd4PCY.js} +1 -1
- package/dist/assets/{Launch-BDBE--jB.js → Launch-B5cicSSp.js} +1 -1
- package/dist/assets/{LaunchOutlined-D6LBWORQ.js → LaunchOutlined-D8njupv3.js} +1 -1
- package/dist/assets/{Link-sFv_5np_.js → Link-BzsuoCpX.js} +1 -1
- package/dist/assets/{ListItemText-kSkjBnFz.js → ListItemText-D4Ob_XTe.js} +1 -1
- package/dist/assets/{LoadingButton-BrfFIQlJ.js → LoadingButton-CDwHK3cA.js} +1 -1
- package/dist/assets/{LockIcon-BiOBCC5U.js → LockIcon-Qf5_VMFO.js} +1 -1
- package/dist/assets/{Loop-dhx5P4wW.js → Loop-BdvSoyFm.js} +1 -1
- package/dist/assets/{MoreVert-DI1V1WEt.js → MoreVert-CHkTd-Fy.js} +1 -1
- package/dist/assets/{OpenInNew-BmxYDMFI.js → OpenInNew-CNeHvvAg.js} +1 -1
- package/dist/assets/{Pagination-DcodKnzW.js → Pagination-DlvzKO0y.js} +1 -1
- package/dist/assets/{PlayArrow-DLI0bEL5.js → PlayArrow-8NfranTa.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-smUXs82m.js → QuestionMarkCircle-CtgD7UmY.js} +1 -1
- package/dist/assets/{RadioGroup-uV0Cme3k.js → RadioGroup-BjZzpFUD.js} +1 -1
- package/dist/assets/{Search-CBLNui8O.js → Search-CTCLEOih.js} +1 -1
- package/dist/assets/{Select-D8XELjVf.js → Select-CSMfbqLF.js} +1 -1
- package/dist/assets/{ServerLogo-B5llEjs9.js → ServerLogo-nD4vw4bZ.js} +1 -1
- package/dist/assets/{Skeleton-CGGXM9I8.js → Skeleton-rajE_QnZ.js} +1 -1
- package/dist/assets/{Slider-DAWYuhgN.js → Slider-B-2Yhhkh.js} +1 -1
- package/dist/assets/{Stepper-CNAz-9-7.js → Stepper-D9Rm4S6u.js} +1 -1
- package/dist/assets/{TextField-Dt3whk-X.js → TextField-1dyd78Uo.js} +1 -1
- package/dist/assets/{Toolbar-B20O0aZq.js → Toolbar-BcgPkSTa.js} +1 -1
- package/dist/assets/{ViewList-DvHqGbZf.js → ViewList-Bw4e7iU9.js} +1 -1
- package/dist/assets/{access-control-B7lBm9Xn.js → access-control-B0TCJKBY.js} +1 -1
- package/dist/assets/{actions-C8AzzJ-C.js → actions-iPL86FQf.js} +1 -1
- package/dist/assets/{add-component-core-D2D1kYIa.js → add-component-core-vHfWESQ0.js} +2 -2
- package/dist/assets/{add-resource-D_lXratj.js → add-resource-CViQYEiF.js} +1 -1
- package/dist/assets/{addon-CgivKVAA.js → addon-Cr3Bez3F.js} +1 -1
- package/dist/assets/{analytics-vOTBcnsr.js → analytics-3gRRSLoL.js} +1 -1
- package/dist/assets/api-Cbb760z7.js +1 -0
- package/dist/assets/{audit-logs-B4Z2eeIc.js → audit-logs-DUuXFjfb.js} +1 -1
- package/dist/assets/{button-DFXsaHZa.js → button-CZ6ydwHq.js} +1 -1
- package/dist/assets/{click-to-copy-C73Tfn_T.js → click-to-copy-CtDsx8HW.js} +1 -1
- package/dist/assets/{complete-DnYXmI7_.js → complete-CfMiokk-.js} +1 -1
- package/dist/assets/{component-8cILKrY_.js → component-DjBaMuP7.js} +48 -48
- package/dist/assets/{config-BtF485M4.js → config-DYzvNiYC.js} +1 -1
- package/dist/assets/{config-zmyq-NQK.js → config-DhSdlE1a.js} +1 -1
- package/dist/assets/{config-navigation-DFqvSjYb.js → config-navigation-bjJPMCHN.js} +1 -1
- package/dist/assets/{confirm-DqzDl9MX.js → confirm-XU7r1m-R.js} +1 -1
- package/dist/assets/{connect-BnLzwO7S.js → connect--Dg8FiT_.js} +1 -1
- package/dist/assets/{connect-AwdnCiZM.js → connect-BhrLK1J8.js} +1 -1
- package/dist/assets/{connect-to-RRtLSFp2.js → connect-to-DahvP8Y1.js} +1 -1
- package/dist/assets/{content-layout-DabnStRh.js → content-layout-B1ljyLtV.js} +1 -1
- package/dist/assets/{dashboard-B8uTlQlw.js → dashboard-DE7DJDSa.js} +3 -3
- package/dist/assets/{did-address-zjDIEnBt.js → did-address-B_DwUdNk.js} +1 -1
- package/dist/assets/{domain-0lknTONS.js → domain-DnhyV8eb.js} +1 -1
- package/dist/assets/{domain-list-DBzpKiNh.js → domain-list-D5Lo9ODM.js} +1 -1
- package/dist/assets/{exchange-passport-C0GAsRNR.js → exchange-passport-B9V8uClk.js} +1 -1
- package/dist/assets/{fallback-dS7iHIHz.js → fallback-BXtPnr4J.js} +1 -1
- package/dist/assets/{format-error-C3RZfboJ.js → format-error-4Q__nYfZ.js} +1 -1
- package/dist/assets/{fuel-CXmyADDj.js → fuel-B1_ZL9gN.js} +1 -1
- package/dist/assets/{fullpage-BL-25w5_.js → fullpage-BT9id3pL.js} +1 -1
- package/dist/assets/{home-CV2SpOCA.js → home-BVB6fRN1.js} +1 -1
- package/dist/assets/{iframe-DLQvYgUm.js → iframe-C_lOVo0t.js} +1 -1
- package/dist/assets/{index-4iP6eqAD.js → index-68l8R1Tw.js} +1 -1
- package/dist/assets/index-7sys7P3_.js +54 -0
- package/dist/assets/{index-i4Rp6jpb.js → index-B7qGek6Z.js} +1 -1
- package/dist/assets/{index-DtpVJrTw.js → index-B8GCQRpR.js} +1 -1
- package/dist/assets/{index-WeQ9_XM1.js → index-BBZ3c9TB.js} +1 -1
- package/dist/assets/{index-C1E7AqRZ.js → index-B_WMHsn-.js} +1 -1
- package/dist/assets/{index-C0YJC7GF.js → index-Bc09ZxQb.js} +1 -1
- package/dist/assets/{index-NHAbpx1v.js → index-BiONsTKz.js} +1 -1
- package/dist/assets/{index-C8FGOK1B.js → index-Br-RW-yz.js} +1 -1
- package/dist/assets/{index-CCszCgZV.js → index-BtVyj2sq.js} +1 -1
- package/dist/assets/{index-Cu_qbLkU.js → index-Bx6bGMG5.js} +1 -1
- package/dist/assets/{index-ufLdI70u.js → index-Bxuy64SC.js} +4 -4
- package/dist/assets/{index-CRxNIeZQ.js → index-C15VfYmO.js} +1 -1
- package/dist/assets/{index-Wcry0Teq.js → index-CKL-laxo.js} +7 -7
- package/dist/assets/{index-nWE9J5FZ.js → index-Cl9zMzvp.js} +1 -1
- package/dist/assets/{index-TgNkusIW.js → index-ClTiYlx7.js} +1 -1
- package/dist/assets/{index-TRv28IoN.js → index-Cy1pWz_-.js} +1 -1
- package/dist/assets/{index-CZOrK58Q.js → index-D797deZZ.js} +1 -1
- package/dist/assets/{index-DSfGCYv7.js → index-D8QE5TUo.js} +1 -1
- package/dist/assets/{index-NCKBCLy8.js → index-DGsdYUTy.js} +1 -1
- package/dist/assets/{index-CR6hY1ov.js → index-DIcuOSp-.js} +1 -1
- package/dist/assets/{index-DZdxCnUI.js → index-DKm5nXbC.js} +1 -1
- package/dist/assets/{index-UV0pqllk.js → index-DXzr1vlD.js} +1 -1
- package/dist/assets/{index-CzP2U-sb.js → index-DYFy7cRy.js} +1 -1
- package/dist/assets/{index-Dea62Jm1.js → index-D_vCXmky.js} +1 -1
- package/dist/assets/{index-Cx2hCC4T.js → index-Daj4u33W.js} +1 -1
- package/dist/assets/{index-DkR7ODFP.js → index-DiKCTpVq.js} +1 -1
- package/dist/assets/{index-D1PChAZE.js → index-Difp4Nmn.js} +1 -1
- package/dist/assets/{index-CZwVfTcs.js → index-DjW4zOSO.js} +1 -1
- package/dist/assets/{index-DxKIQYAq.js → index-JY4WbRkD.js} +1 -1
- package/dist/assets/{index-B_2iNKVl.js → index-lRrPZDV7.js} +1 -1
- package/dist/assets/{index-BOPCIoSH.js → index-oq6wT_-k.js} +4 -4
- package/dist/assets/{index.es-mzwrGHcf.js → index.es-CEclEfC4.js} +1 -1
- package/dist/assets/{index.esm-BFBh3vJP.js → index.esm-9w4KX96S.js} +1 -1
- package/dist/assets/{invitation-C8njUVnT.js → invitation-DZfb3abn.js} +1 -1
- package/dist/assets/{invite-DGRTk7ZM.js → invite-BzCeKHmV.js} +1 -1
- package/dist/assets/{issue-passport-D2Q1-74y.js → issue-passport-BTra3aBA.js} +1 -1
- package/dist/assets/{item-DTQh_HzF.js → item-DQOauhEW.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-DCeO1l3a.js → jss-plugin-props-sort.esm-CqmNbFUK.js} +1 -1
- package/dist/assets/{launch-result-message-BbNNNIuG.js → launch-result-message-DF2F_Nk1.js} +1 -1
- package/dist/assets/{layout-CZagI57K.js → layout-BV-D6Bvg.js} +1 -1
- package/dist/assets/{list-header-BDT7MrFM.js → list-header-BFJ1g5Pd.js} +1 -1
- package/dist/assets/localization-CC3JYlLl.js +1 -0
- package/dist/assets/{log-a5aa2VEB.js → log-BkPAHzve.js} +1 -1
- package/dist/assets/{login-DL_cFDan.js → login-GpOY32jR.js} +1 -1
- package/dist/assets/{login-oauth-callback-yPda069A.js → login-oauth-callback-BXcvvtNd.js} +1 -1
- package/dist/assets/logo-uploader-9jzoJUqb.js +122 -0
- package/dist/assets/{lost-passport-Dv4pNp1C.js → lost-passport-D2dkzuxx.js} +3 -3
- package/dist/assets/{lottie-BtiHsDgJ.js → lottie-CPn5d9jk.js} +1 -1
- package/dist/assets/{notifications-Di-pNhDI.js → notifications-6fwrO_MN.js} +1 -1
- package/dist/assets/{open-window-DHayT3Px.js → open-window-BV1JKQks.js} +1 -1
- package/dist/assets/{overview-CEHRWRHQ.js → overview-BdOnSC1j.js} +1 -1
- package/dist/assets/{page-header-Bldx8iyY.js → page-header-Dvh6dktN.js} +1 -1
- package/dist/assets/{permission--4loJJqK.js → permission-DZeK6AbN.js} +1 -1
- package/dist/assets/{preferences-C-QiUc19.js → preferences-CTJS3peX.js} +1 -1
- package/dist/assets/publish-resource-D4elIPww.js +1 -0
- package/dist/assets/{react-xWs_79Th.js → react-DPLPLcFl.js} +3 -3
- package/dist/assets/{redux-BKgRDt6m.js → redux-BgWMXwcD.js} +1 -1
- package/dist/assets/resource-dialog-UXzlULX3.js +57 -0
- package/dist/assets/{selector-BZXSF6RZ.js → selector-DNASi6q5.js} +1 -1
- package/dist/assets/session-CfhWbdlo.js +1 -0
- package/dist/assets/{setup-ByUHGOc2.js → setup-D22hA_X1.js} +3 -3
- package/dist/assets/{shorten-label-Cb27JBwd.js → shorten-label-Cxc6hnLE.js} +1 -1
- package/dist/assets/{slicedToArray-D_fsSo9H.js → slicedToArray-Cnjq9B44.js} +1 -1
- package/dist/assets/{spaces-Bsjcm4Pb.js → spaces-uh0-9BIK.js} +1 -1
- package/dist/assets/{start-BhdnYJM5.js → start-DtUbBWzn.js} +1 -1
- package/dist/assets/{step-actions-D8u8IW-q.js → step-actions-C41O6GNN.js} +1 -1
- package/dist/assets/{studio-DbKc8Lmo.js → studio-CthLCD8E.js} +1 -1
- package/dist/assets/{switch-control-dBHoPJGS.js → switch-control-DhLEUZ_s.js} +1 -1
- package/dist/assets/{toUpper-DF_77JAD.js → toUpper-BrcLZF82.js} +1 -1
- package/dist/assets/{transfer-BAjaassl.js → transfer-C9nVty2y.js} +1 -1
- package/dist/assets/{uniqBy-7zzhp_MA.js → uniqBy-BEUwXF1F.js} +1 -1
- package/dist/assets/{unsubscribe-gdLy_PwD.js → unsubscribe-CYrzKBcR.js} +1 -1
- package/dist/assets/{url-join-a02ntsC0.js → url-join-Dmqllk0M.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-Czhm8Xb6.js → use-blocklet-info-for-connect-did-spaces-CQKr4Oxs.js} +1 -1
- package/dist/assets/{use-mobile-D_wMsqK5.js → use-mobile-BRT6lf9q.js} +1 -1
- package/dist/assets/{useAsync-D5xkbSFA.js → useAsync-CHxrrpSP.js} +1 -1
- package/dist/assets/{useFormControl-BolgsUUb.js → useFormControl-mJ-zGBTP.js} +1 -1
- package/dist/assets/{useLocalStorage-C1CKxRfv.js → useLocalStorage-Baxk9CsU.js} +1 -1
- package/dist/assets/{useSetState-ssJWkpMc.js → useSetState-BNfbrQBe.js} +1 -1
- package/dist/assets/{useSlot-BrPZCaVM.js → useSlot-BR_C9CI2.js} +1 -1
- package/dist/assets/{useSlotProps-C136Xtvi.js → useSlotProps-Ce-vPOjj.js} +1 -1
- package/dist/assets/{useThemeProps-a1wtq5sP.js → useThemeProps-BAdUyHsK.js} +1 -1
- package/dist/assets/user-center-CspBKliV.js +1 -0
- package/dist/assets/{user-sessions-pWupxx83.js → user-sessions-CS9jw7By.js} +1 -1
- package/dist/assets/{util-B4OkdChr.js → util-DZx8Tjz3.js} +1 -1
- package/dist/assets/{wrap-locale-B65MV90l.js → wrap-locale-CcD8jMrU.js} +1 -1
- package/dist/assets/{zh-XzadN7R3.js → zh-DuJ3QKF9.js} +1 -1
- package/dist/assets/zh-tw-L8o5R-ra.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +36 -36
- package/dist/assets/api-SdQuBmE7.js +0 -1
- package/dist/assets/blocklet-storage-B60YNmnE.js +0 -1
- package/dist/assets/index-DRbH4VnZ.js +0 -54
- package/dist/assets/localization-CBBPUDcB.js +0 -1
- package/dist/assets/logo-uploader-tIXv-22X.js +0 -122
- package/dist/assets/publish-resource-C7-6c_gV.js +0 -1
- package/dist/assets/resource-dialog-CUxO1GKE.js +0 -57
- package/dist/assets/session-C0iFSkEy.js +0 -1
- package/dist/assets/user-center-LIAN3Isw.js +0 -1
- package/dist/assets/zh-tw-BTlMDwjI.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__fileDeps=["assets/login-
|
|
1
|
+
const __vite__fileDeps=["assets/login-GpOY32jR.js","assets/use-passport-id-B-b-_oYF.js","assets/LaunchOutlined-D8njupv3.js","assets/login-oauth-callback-BXcvvtNd.js","assets/fallback-BXtPnr4J.js","assets/Alert-DGb37jLj.js","assets/useSlot-BR_C9CI2.js","assets/connect-BhrLK1J8.js","assets/index-DYFy7cRy.js","assets/fullpage-BT9id3pL.js","assets/Link-BzsuoCpX.js","assets/exchange-passport-B9V8uClk.js","assets/wrap-locale-CcD8jMrU.js","assets/issue-passport-BTra3aBA.js","assets/invitation-DZfb3abn.js","assets/index-D_vCXmky.js","assets/session-CfhWbdlo.js","assets/CheckCircle-BxF-I3Me.js","assets/lost-passport-D2dkzuxx.js","assets/ViewList-Bw4e7iU9.js","assets/Done-CB6ptsS1.js","assets/did-address-B_DwUdNk.js","assets/Avatar-CrZevpVT.js","assets/Stepper-D9Rm4S6u.js","assets/start-DtUbBWzn.js","assets/PlayArrow-8NfranTa.js","assets/Error-BOhmpL8g.js","assets/ServerLogo-nD4vw4bZ.js","assets/addon-Cr3Bez3F.js","assets/selector-DNASi6q5.js","assets/QuestionMarkCircle-CtgD7UmY.js","assets/setup-D22hA_X1.js","assets/index-Cy1pWz_-.js","assets/spaces-uh0-9BIK.js","assets/api-Cbb760z7.js","assets/url-join-Dmqllk0M.js","assets/Skeleton-rajE_QnZ.js","assets/Hidden-D4Ps8OY8.js","assets/invite-BzCeKHmV.js","assets/transfer-C9nVty2y.js","assets/dashboard-DE7DJDSa.js","assets/index-DiKCTpVq.js","assets/useLocalStorage-Baxk9CsU.js","assets/MoreVert-CHkTd-Fy.js","assets/confirm-XU7r1m-R.js","assets/format-error-4Q__nYfZ.js","assets/Delete-C7l4SOZI.js","assets/ListItemText-D4Ob_XTe.js","assets/ButtonGroup-CBtiYzi1.js","assets/RadioGroup-BjZzpFUD.js","assets/FormControlLabel-slPLSd52.js","assets/useFormControl-mJ-zGBTP.js","assets/FormGroup-Dw6XUVV7.js","assets/permission-DZeK6AbN.js","assets/useAsync-CHxrrpSP.js","assets/index-68l8R1Tw.js","assets/useSetState-BNfbrQBe.js","assets/index-ClTiYlx7.js","assets/Toolbar-BcgPkSTa.js","assets/index-Br-RW-yz.js","assets/user-center-CspBKliV.js","assets/index-DKm5nXbC.js","assets/ExpandMore-Dvz9OwWC.js","assets/resource-dialog-UXzlULX3.js","assets/use-mobile-BRT6lf9q.js","assets/OpenInNew-CNeHvvAg.js","assets/CloseOutlined-CC0J2Lyy.js","assets/index-C15VfYmO.js","assets/uniqBy-BEUwXF1F.js","assets/index-Bx6bGMG5.js","assets/Select-CSMfbqLF.js","assets/FormControl-Cer2DNeG.js","assets/TextField-1dyd78Uo.js","assets/InputLabel-DGVWp51O.js","assets/InputAdornment-CJ6E5NPG.js","assets/user-sessions-CS9jw7By.js","assets/index-JY4WbRkD.js","assets/FilterList-ff47YUMR.js","assets/useThemeProps-BAdUyHsK.js","assets/toPropertyKey-hKuLU48H.js","assets/LastPage-BAHd4PCY.js","assets/index-B_WMHsn-.js","assets/redux-BgWMXwcD.js","assets/Search-CTCLEOih.js","assets/home-BVB6fRN1.js","assets/studio-CthLCD8E.js","assets/preferences-CTJS3peX.js","assets/iframe-C_lOVo0t.js","assets/localization-CC3JYlLl.js","assets/add-resource-CViQYEiF.js","assets/add-component-core-vHfWESQ0.js","assets/lottie-CPn5d9jk.js","assets/launch-result-message-DF2F_Nk1.js","assets/Close-DRu6wvrV.js","assets/page-header-Dvh6dktN.js","assets/logo-uploader-9jzoJUqb.js","assets/index-B8GCQRpR.js","assets/index-DIcuOSp-.js","assets/EditIcon-Cbbk-DVV.js","assets/Google-Ca4C_ogQ.js","assets/index-Bc09ZxQb.js","assets/index-D4PP6P2d.css","assets/index-DGsdYUTy.js","assets/index-BBZ3c9TB.js","assets/item-DQOauhEW.js","assets/Add-BBefdilQ.js","assets/Launch-B5cicSSp.js","assets/DeleteOutline-D71IOe8i.js","assets/click-to-copy-CtDsx8HW.js","assets/shorten-label-Cxc6hnLE.js","assets/jss-plugin-props-sort.esm-CqmNbFUK.js","assets/util-DZx8Tjz3.js","assets/connect-to-DahvP8Y1.js","assets/use-blocklet-info-for-connect-did-spaces-CQKr4Oxs.js","assets/index-BiONsTKz.js","assets/content-layout-B1ljyLtV.js","assets/ArrowDropDown-Cxk0N412.js","assets/preact.module-B1z5cdvs.js","assets/add-component-core-CxkJY_14.css","assets/publish-resource-D4elIPww.js","assets/index-Bxuy64SC.js","assets/AddBox-9DGcS-MG.js","assets/ChevronRight-AS9SMBKm.js","assets/Download-agqzff4Y.js","assets/index-HqFqdQ4r.js","assets/useSlotProps-Ce-vPOjj.js","assets/index-lRrPZDV7.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
|
2
2
|
var CS=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var un=(e,t,n)=>(CS(e,t,"read from private field"),n?n.call(e):t.get(e)),aa=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Vi=(e,t,n,r)=>(CS(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var RS=(e,t,n,r)=>({set _(i){Vi(e,t,i,n)},get _(){return un(e,t,r)}}),kr=(e,t,n)=>(CS(e,t,"access private method"),n);function ife(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();const afe="modulepreload",ofe=function(e){return"/.well-known/service/static/"+e},DL={},ln=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.all(n.map(l=>{if(l=ofe(l),l in DL)return;DL[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!r)for(let m=a.length-1;m>=0;m--){const y=a[m];if(y.href===l&&(!c||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":afe,c||(p.as="script",p.crossOrigin=""),p.href=l,s&&p.setAttribute("nonce",s),document.head.appendChild(p),c)return new Promise((m,y)=>{p.addEventListener("load",m),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${l}`)))})}))}return i.then(()=>t()).catch(a=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a})};var ft=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fi(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var sV={exports:{}},Ab={},lV={exports:{}},Nn={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
@@ -199,7 +199,7 @@ object-assign
|
|
|
199
199
|
animation-iteration-count: infinite;
|
|
200
200
|
animation-delay: 200ms;
|
|
201
201
|
}
|
|
202
|
-
`),wo.rippleVisible,I_e,nC,({theme:e})=>e.transitions.easing.easeInOut,wo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,wo.child,wo.childLeaving,k_e,nC,({theme:e})=>e.transitions.easing.easeInOut,wo.childPulsate,D_e,({theme:e})=>e.transitions.easing.easeInOut),P_e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=r,s=en(r,x_e),[l,c]=Z.useState([]),u=Z.useRef(0),d=Z.useRef(null);Z.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=Z.useRef(!1),m=Zc(),y=Z.useRef(null),b=Z.useRef(null),_=Z.useCallback(P=>{const{pulsate:U,rippleX:L,rippleY:F,rippleSize:G,cb:ie}=P;c(se=>[...se,q.jsx(O_e,{classes:{ripple:tn(a.ripple,wo.ripple),rippleVisible:tn(a.rippleVisible,wo.rippleVisible),ripplePulsate:tn(a.ripplePulsate,wo.ripplePulsate),child:tn(a.child,wo.child),childLeaving:tn(a.childLeaving,wo.childLeaving),childPulsate:tn(a.childPulsate,wo.childPulsate)},timeout:nC,pulsate:U,rippleX:L,rippleY:F,rippleSize:G},u.current)]),u.current+=1,d.current=ie},[a]),S=Z.useCallback((P={},U={},L=()=>{})=>{const{pulsate:F=!1,center:G=i||U.pulsate,fakeElement:ie=!1}=U;if((P==null?void 0:P.type)==="mousedown"&&p.current){p.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(p.current=!0);const se=ie?null:b.current,K=se?se.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,E,f;if(G||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)B=Math.round(K.width/2),E=Math.round(K.height/2);else{const{clientX:h,clientY:T}=P.touches&&P.touches.length>0?P.touches[0]:P;B=Math.round(h-K.left),E=Math.round(T-K.top)}if(G)f=Math.sqrt((2*K.width**2+K.height**2)/3),f%2===0&&(f+=1);else{const h=Math.max(Math.abs((se?se.clientWidth:0)-B),B)*2+2,T=Math.max(Math.abs((se?se.clientHeight:0)-E),E)*2+2;f=Math.sqrt(h**2+T**2)}P!=null&&P.touches?y.current===null&&(y.current=()=>{_({pulsate:F,rippleX:B,rippleY:E,rippleSize:f,cb:L})},m.start($_e,()=>{y.current&&(y.current(),y.current=null)})):_({pulsate:F,rippleX:B,rippleY:E,rippleSize:f,cb:L})},[i,_,m]),$=Z.useCallback(()=>{S({},{pulsate:!0})},[S]),D=Z.useCallback((P,U)=>{if(m.clear(),(P==null?void 0:P.type)==="touchend"&&y.current){y.current(),y.current=null,m.start(0,()=>{D(P,U)});return}y.current=null,c(L=>L.length>0?L.slice(1):L),d.current=U},[m]);return Z.useImperativeHandle(n,()=>({pulsate:$,start:S,stop:D}),[$,S,D]),q.jsx(L_e,Ie({className:tn(wo.root,a.root,o),ref:b},s,{children:q.jsx(d_e,{component:null,exit:!0,children:l})}))}),M_e=P_e;function B_e(e){return Gn("MuiButtonBase",e)}const N_e=zn("MuiButtonBase",["root","disabled","focusVisible"]),F_e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],U_e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=nr({root:["root",t&&"disabled",n&&"focusVisible"]},B_e,i);return n&&r&&(o.root+=` ${r}`),o},H_e=Zt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${N_e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),j_e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:y,onClick:b,onContextMenu:_,onDragLeave:S,onFocus:$,onFocusVisible:D,onKeyDown:P,onKeyUp:U,onMouseDown:L,onMouseLeave:F,onMouseUp:G,onTouchEnd:ie,onTouchMove:se,onTouchStart:K,tabIndex:B=0,TouchRippleProps:E,touchRippleRef:f,type:h}=r,T=en(r,F_e),w=Z.useRef(null),R=Z.useRef(null),I=hi(R,f),{isFocusVisibleRef:C,onFocus:x,onBlur:v,ref:k}=sx(),[ne,N]=Z.useState(!1);c&&ne&&N(!1),Z.useImperativeHandle(i,()=>({focusVisible:()=>{N(!0),w.current.focus()}}),[]);const[Y,re]=Z.useState(!1);Z.useEffect(()=>{re(!0)},[]);const le=Y&&!u&&!c;Z.useEffect(()=>{ne&&p&&!u&&Y&&R.current.pulsate()},[u,p,ne,Y]);function ge(Re,te,V=d){return Gs(J=>(te&&te(J),!V&&R.current&&R.current[Re](J),!0))}const Se=ge("start",L),j=ge("stop",_),M=ge("stop",S),z=ge("stop",G),W=ge("stop",Re=>{ne&&Re.preventDefault(),F&&F(Re)}),ee=ge("start",K),ve=ge("stop",ie),he=ge("stop",se),oe=ge("stop",Re=>{v(Re),C.current===!1&&N(!1),y&&y(Re)},!1),ye=Gs(Re=>{w.current||(w.current=Re.currentTarget),x(Re),C.current===!0&&(N(!0),D&&D(Re)),$&&$(Re)}),we=()=>{const Re=w.current;return l&&l!=="button"&&!(Re.tagName==="A"&&Re.href)},Te=Z.useRef(!1),Ve=Gs(Re=>{p&&!Te.current&&ne&&R.current&&Re.key===" "&&(Te.current=!0,R.current.stop(Re,()=>{R.current.start(Re)})),Re.target===Re.currentTarget&&we()&&Re.key===" "&&Re.preventDefault(),P&&P(Re),Re.target===Re.currentTarget&&we()&&Re.key==="Enter"&&!c&&(Re.preventDefault(),b&&b(Re))}),Ke=Gs(Re=>{p&&Re.key===" "&&R.current&&ne&&!Re.defaultPrevented&&(Te.current=!1,R.current.stop(Re,()=>{R.current.pulsate(Re)})),U&&U(Re),b&&Re.target===Re.currentTarget&&we()&&Re.key===" "&&!Re.defaultPrevented&&b(Re)});let je=l;je==="button"&&(T.href||T.to)&&(je=m);const Ge={};je==="button"?(Ge.type=h===void 0?"button":h,Ge.disabled=c):(!T.href&&!T.to&&(Ge.role="button"),c&&(Ge["aria-disabled"]=c));const pe=hi(n,k,w),Ae=Ie({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:B,focusVisible:ne}),Fe=U_e(Ae);return q.jsxs(H_e,Ie({as:je,className:tn(Fe.root,s),ownerState:Ae,onBlur:oe,onClick:b,onContextMenu:j,onFocus:ye,onKeyDown:Ve,onKeyUp:Ke,onMouseDown:Se,onMouseLeave:W,onMouseUp:z,onDragLeave:M,onTouchEnd:ve,onTouchMove:he,onTouchStart:ee,ref:pe,tabIndex:c?-1:B,type:h},Ge,T,{children:[o,le?q.jsx(M_e,Ie({ref:I,center:a},E)):null]}))}),Y1=j_e;function V_e(e){return Gn("MuiIconButton",e)}const J_e=zn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),q_e=["edge","children","className","color","disabled","disableFocusRipple","size"],G_e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,o={root:["root",n&&"disabled",r!=="default"&&`color${Pt(r)}`,i&&`edge${Pt(i)}`,`size${Pt(a)}`]};return nr(o,V_e,t)},z_e=Zt(Y1,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Pt(n.color)}`],n.edge&&t[`edge${Pt(n.edge)}`],t[`size${Pt(n.size)}`]]}})(({theme:e,ownerState:t})=>Ie({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Er(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Ie({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Ie({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Ie({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Er(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${J_e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),W_e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,d=en(r,q_e),p=Ie({},r,{edge:i,color:s,disabled:l,disableFocusRipple:c,size:u}),m=G_e(p);return q.jsx(z_e,Ie({className:tn(m.root,o),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},d,{ownerState:p,children:a}))}),ou=W_e;function K_e(e){return Gn("MuiTypography",e)}const Y_e=zn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Pvt=Y_e,Z_e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],X_e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Pt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return nr(s,K_e,o)},Q_e=Zt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Pt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Ie({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),EP={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},e4e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},t4e=e=>e4e[e]||e,n4e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiTypography"}),i=t4e(r.color),a=ex(Ie({},r,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:p="body1",variantMapping:m=EP}=a,y=en(a,Z_e),b=Ie({},a,{align:o,color:i,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:p,variantMapping:m}),_=l||(d?"p":m[p]||EP[p])||"span",S=X_e(b);return q.jsx(Q_e,Ie({as:_,ref:n,ownerState:b,className:tn(S.root,s)},y))}),or=n4e;var Ox={};Object.defineProperty(Ox,"__esModule",{value:!0});var TW=Ox.default=void 0,r4e=a4e(Z),i4e=jG;function EW(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(EW=function(r){return r?n:t})(e)}function a4e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=EW(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function o4e(e){return Object.keys(e).length===0}function s4e(e=null){const t=r4e.useContext(i4e.ThemeContext);return!t||o4e(t)?e:t}TW=Ox.default=s4e;var wa="top",Uo="bottom",Ho="right",_a="left",Px="auto",Jm=[wa,Uo,Ho,_a],Rp="start",Z1="end",l4e="clippingParents",AW="viewport",g0="popper",u4e="reference",AP=Jm.reduce(function(e,t){return e.concat([t+"-"+Rp,t+"-"+Z1])},[]),SW=[].concat(Jm,[Px]).reduce(function(e,t){return e.concat([t,t+"-"+Rp,t+"-"+Z1])},[]),c4e="beforeRead",f4e="read",d4e="afterRead",p4e="beforeMain",h4e="main",m4e="afterMain",g4e="beforeWrite",y4e="write",v4e="afterWrite",b4e=[c4e,f4e,d4e,p4e,h4e,m4e,g4e,y4e,v4e];function tl(e){return e?(e.nodeName||"").toLowerCase():null}function Ka(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Af(e){var t=Ka(e).Element;return e instanceof t||e instanceof Element}function Lo(e){var t=Ka(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Mx(e){if(typeof ShadowRoot>"u")return!1;var t=Ka(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function T4e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!Lo(a)||!tl(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function E4e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(l,c){return l[c]="",l},{});!Lo(i)||!tl(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const A4e={name:"applyStyles",enabled:!0,phase:"write",fn:T4e,effect:E4e,requires:["computeStyles"]};function Zs(e){return e.split("-")[0]}var lf=Math.max,_2=Math.min,xp=Math.round;function rC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wW(){return!/^((?!chrome|android).)*safari/i.test(rC())}function $p(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Lo(e)&&(i=e.offsetWidth>0&&xp(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&xp(r.height)/e.offsetHeight||1);var o=Af(e)?Ka(e):window,s=o.visualViewport,l=!wW()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/a,d=r.width/i,p=r.height/a;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function Bx(e){var t=$p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function _W(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Mx(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Kl(e){return Ka(e).getComputedStyle(e)}function S4e(e){return["table","td","th"].indexOf(tl(e))>=0}function pc(e){return((Af(e)?e.ownerDocument:e.document)||window.document).documentElement}function HT(e){return tl(e)==="html"?e:e.assignedSlot||e.parentNode||(Mx(e)?e.host:null)||pc(e)}function SP(e){return!Lo(e)||Kl(e).position==="fixed"?null:e.offsetParent}function w4e(e){var t=/firefox/i.test(rC()),n=/Trident/i.test(rC());if(n&&Lo(e)){var r=Kl(e);if(r.position==="fixed")return null}var i=HT(e);for(Mx(i)&&(i=i.host);Lo(i)&&["html","body"].indexOf(tl(i))<0;){var a=Kl(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function qm(e){for(var t=Ka(e),n=SP(e);n&&S4e(n)&&Kl(n).position==="static";)n=SP(n);return n&&(tl(n)==="html"||tl(n)==="body"&&Kl(n).position==="static")?t:n||w4e(e)||t}function Nx(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function o1(e,t,n){return lf(e,_2(t,n))}function _4e(e,t,n){var r=o1(e,t,n);return r>n?n:r}function CW(){return{top:0,right:0,bottom:0,left:0}}function RW(e){return Object.assign({},CW(),e)}function xW(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var C4e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,RW(typeof t!="number"?t:xW(t,Jm))};function R4e(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Zs(n.placement),l=Nx(s),c=[_a,Ho].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!o)){var d=C4e(i.padding,n),p=Bx(a),m=l==="y"?wa:_a,y=l==="y"?Uo:Ho,b=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],_=o[l]-n.rects.reference[l],S=qm(a),$=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,D=b/2-_/2,P=d[m],U=$-p[u]-d[y],L=$/2-p[u]/2+D,F=o1(P,L,U),G=l;n.modifiersData[r]=(t={},t[G]=F,t.centerOffset=F-L,t)}}function x4e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||_W(t.elements.popper,i)&&(t.elements.arrow=i))}const $4e={name:"arrow",enabled:!0,phase:"main",fn:R4e,effect:x4e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ip(e){return e.split("-")[1]}var I4e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function k4e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:xp(n*i)/i||0,y:xp(r*i)/i||0}}function wP(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=o.x,m=p===void 0?0:p,y=o.y,b=y===void 0?0:y,_=typeof u=="function"?u({x:m,y:b}):{x:m,y:b};m=_.x,b=_.y;var S=o.hasOwnProperty("x"),$=o.hasOwnProperty("y"),D=_a,P=wa,U=window;if(c){var L=qm(n),F="clientHeight",G="clientWidth";if(L===Ka(n)&&(L=pc(n),Kl(L).position!=="static"&&s==="absolute"&&(F="scrollHeight",G="scrollWidth")),L=L,i===wa||(i===_a||i===Ho)&&a===Z1){P=Uo;var ie=d&&L===U&&U.visualViewport?U.visualViewport.height:L[F];b-=ie-r.height,b*=l?1:-1}if(i===_a||(i===wa||i===Uo)&&a===Z1){D=Ho;var se=d&&L===U&&U.visualViewport?U.visualViewport.width:L[G];m-=se-r.width,m*=l?1:-1}}var K=Object.assign({position:s},c&&I4e),B=u===!0?k4e({x:m,y:b},Ka(n)):{x:m,y:b};if(m=B.x,b=B.y,l){var E;return Object.assign({},K,(E={},E[P]=$?"0":"",E[D]=S?"0":"",E.transform=(U.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",E))}return Object.assign({},K,(t={},t[P]=$?b+"px":"",t[D]=S?m+"px":"",t.transform="",t))}function D4e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Zs(t.placement),variation:Ip(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,wP(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wP(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const L4e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:D4e,data:{}};var Ny={passive:!0};function O4e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,l=Ka(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,Ny)}),s&&l.addEventListener("resize",n.update,Ny),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ny)}),s&&l.removeEventListener("resize",n.update,Ny)}}const P4e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:O4e,data:{}};var M4e={left:"right",right:"left",bottom:"top",top:"bottom"};function l3(e){return e.replace(/left|right|bottom|top/g,function(t){return M4e[t]})}var B4e={start:"end",end:"start"};function _P(e){return e.replace(/start|end/g,function(t){return B4e[t]})}function Fx(e){var t=Ka(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ux(e){return $p(pc(e)).left+Fx(e).scrollLeft}function N4e(e,t){var n=Ka(e),r=pc(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=wW();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+Ux(e),y:l}}function F4e(e){var t,n=pc(e),r=Fx(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=lf(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=lf(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Ux(e),l=-r.scrollTop;return Kl(i||n).direction==="rtl"&&(s+=lf(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function Hx(e){var t=Kl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function $W(e){return["html","body","#document"].indexOf(tl(e))>=0?e.ownerDocument.body:Lo(e)&&Hx(e)?e:$W(HT(e))}function s1(e,t){var n;t===void 0&&(t=[]);var r=$W(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Ka(r),o=i?[a].concat(a.visualViewport||[],Hx(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(s1(HT(o)))}function iC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function U4e(e,t){var n=$p(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function CP(e,t,n){return t===AW?iC(N4e(e,n)):Af(t)?U4e(t,n):iC(F4e(pc(e)))}function H4e(e){var t=s1(HT(e)),n=["absolute","fixed"].indexOf(Kl(e).position)>=0,r=n&&Lo(e)?qm(e):e;return Af(r)?t.filter(function(i){return Af(i)&&_W(i,r)&&tl(i)!=="body"}):[]}function j4e(e,t,n,r){var i=t==="clippingParents"?H4e(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(l,c){var u=CP(e,c,r);return l.top=lf(u.top,l.top),l.right=_2(u.right,l.right),l.bottom=_2(u.bottom,l.bottom),l.left=lf(u.left,l.left),l},CP(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function IW(e){var t=e.reference,n=e.element,r=e.placement,i=r?Zs(r):null,a=r?Ip(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case wa:l={x:o,y:t.y-n.height};break;case Uo:l={x:o,y:t.y+t.height};break;case Ho:l={x:t.x+t.width,y:s};break;case _a:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?Nx(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Rp:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Z1:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function X1(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?l4e:s,c=n.rootBoundary,u=c===void 0?AW:c,d=n.elementContext,p=d===void 0?g0:d,m=n.altBoundary,y=m===void 0?!1:m,b=n.padding,_=b===void 0?0:b,S=RW(typeof _!="number"?_:xW(_,Jm)),$=p===g0?u4e:g0,D=e.rects.popper,P=e.elements[y?$:p],U=j4e(Af(P)?P:P.contextElement||pc(e.elements.popper),l,u,o),L=$p(e.elements.reference),F=IW({reference:L,element:D,strategy:"absolute",placement:i}),G=iC(Object.assign({},D,F)),ie=p===g0?G:L,se={top:U.top-ie.top+S.top,bottom:ie.bottom-U.bottom+S.bottom,left:U.left-ie.left+S.left,right:ie.right-U.right+S.right},K=e.modifiersData.offset;if(p===g0&&K){var B=K[i];Object.keys(se).forEach(function(E){var f=[Ho,Uo].indexOf(E)>=0?1:-1,h=[wa,Uo].indexOf(E)>=0?"y":"x";se[E]+=B[h]*f})}return se}function V4e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?SW:l,u=Ip(r),d=u?s?AP:AP.filter(function(y){return Ip(y)===u}):Jm,p=d.filter(function(y){return c.indexOf(y)>=0});p.length===0&&(p=d);var m=p.reduce(function(y,b){return y[b]=X1(e,{placement:b,boundary:i,rootBoundary:a,padding:o})[Zs(b)],y},{});return Object.keys(m).sort(function(y,b){return m[y]-m[b]})}function J4e(e){if(Zs(e)===Px)return[];var t=l3(e);return[_P(e),t,_P(t)]}function q4e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,b=n.allowedAutoPlacements,_=t.options.placement,S=Zs(_),$=S===_,D=l||($||!y?[l3(_)]:J4e(_)),P=[_].concat(D).reduce(function(ne,N){return ne.concat(Zs(N)===Px?V4e(t,{placement:N,boundary:u,rootBoundary:d,padding:c,flipVariations:y,allowedAutoPlacements:b}):N)},[]),U=t.rects.reference,L=t.rects.popper,F=new Map,G=!0,ie=P[0],se=0;se<P.length;se++){var K=P[se],B=Zs(K),E=Ip(K)===Rp,f=[wa,Uo].indexOf(B)>=0,h=f?"width":"height",T=X1(t,{placement:K,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),w=f?E?Ho:_a:E?Uo:wa;U[h]>L[h]&&(w=l3(w));var R=l3(w),I=[];if(a&&I.push(T[B]<=0),s&&I.push(T[w]<=0,T[R]<=0),I.every(function(ne){return ne})){ie=K,G=!1;break}F.set(K,I)}if(G)for(var C=y?3:1,x=function(N){var Y=P.find(function(re){var le=F.get(re);if(le)return le.slice(0,N).every(function(ge){return ge})});if(Y)return ie=Y,"break"},v=C;v>0;v--){var k=x(v);if(k==="break")break}t.placement!==ie&&(t.modifiersData[r]._skip=!0,t.placement=ie,t.reset=!0)}}const G4e={name:"flip",enabled:!0,phase:"main",fn:q4e,requiresIfExists:["offset"],data:{_skip:!1}};function RP(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xP(e){return[wa,Ho,Uo,_a].some(function(t){return e[t]>=0})}function z4e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=X1(t,{elementContext:"reference"}),s=X1(t,{altBoundary:!0}),l=RP(o,r),c=RP(s,i,a),u=xP(l),d=xP(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const W4e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:z4e};function K4e(e,t,n){var r=Zs(e),i=[_a,wa].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[_a,Ho].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Y4e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=SW.reduce(function(u,d){return u[d]=K4e(d,t.rects,a),u},{}),s=o[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}const Z4e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Y4e};function X4e(e){var t=e.state,n=e.name;t.modifiersData[n]=IW({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Q4e={name:"popperOffsets",enabled:!0,phase:"read",fn:X4e,data:{}};function e5e(e){return e==="x"?"y":"x"}function t5e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,m=p===void 0?!0:p,y=n.tetherOffset,b=y===void 0?0:y,_=X1(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),S=Zs(t.placement),$=Ip(t.placement),D=!$,P=Nx(S),U=e5e(P),L=t.modifiersData.popperOffsets,F=t.rects.reference,G=t.rects.popper,ie=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,se=typeof ie=="number"?{mainAxis:ie,altAxis:ie}:Object.assign({mainAxis:0,altAxis:0},ie),K=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(L){if(a){var E,f=P==="y"?wa:_a,h=P==="y"?Uo:Ho,T=P==="y"?"height":"width",w=L[P],R=w+_[f],I=w-_[h],C=m?-G[T]/2:0,x=$===Rp?F[T]:G[T],v=$===Rp?-G[T]:-F[T],k=t.elements.arrow,ne=m&&k?Bx(k):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:CW(),Y=N[f],re=N[h],le=o1(0,F[T],ne[T]),ge=D?F[T]/2-C-le-Y-se.mainAxis:x-le-Y-se.mainAxis,Se=D?-F[T]/2+C+le+re+se.mainAxis:v+le+re+se.mainAxis,j=t.elements.arrow&&qm(t.elements.arrow),M=j?P==="y"?j.clientTop||0:j.clientLeft||0:0,z=(E=K==null?void 0:K[P])!=null?E:0,W=w+ge-z-M,ee=w+Se-z,ve=o1(m?_2(R,W):R,w,m?lf(I,ee):I);L[P]=ve,B[P]=ve-w}if(s){var he,oe=P==="x"?wa:_a,ye=P==="x"?Uo:Ho,we=L[U],Te=U==="y"?"height":"width",Ve=we+_[oe],Ke=we-_[ye],je=[wa,_a].indexOf(S)!==-1,Ge=(he=K==null?void 0:K[U])!=null?he:0,pe=je?Ve:we-F[Te]-G[Te]-Ge+se.altAxis,Ae=je?we+F[Te]+G[Te]-Ge-se.altAxis:Ke,Fe=m&&je?_4e(pe,we,Ae):o1(m?pe:Ve,we,m?Ae:Ke);L[U]=Fe,B[U]=Fe-we}t.modifiersData[r]=B}}const n5e={name:"preventOverflow",enabled:!0,phase:"main",fn:t5e,requiresIfExists:["offset"]};function r5e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function i5e(e){return e===Ka(e)||!Lo(e)?Fx(e):r5e(e)}function a5e(e){var t=e.getBoundingClientRect(),n=xp(t.width)/e.offsetWidth||1,r=xp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function o5e(e,t,n){n===void 0&&(n=!1);var r=Lo(t),i=Lo(t)&&a5e(t),a=pc(t),o=$p(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((tl(t)!=="body"||Hx(a))&&(s=i5e(t)),Lo(t)?(l=$p(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Ux(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function s5e(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function l5e(e){var t=s5e(e);return b4e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function u5e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function c5e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var $P={placement:"bottom",modifiers:[],strategy:"absolute"};function IP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function f5e(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?$P:i;return function(s,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},$P,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,m={state:u,setOptions:function(S){var $=typeof S=="function"?S(u.options):S;b(),u.options=Object.assign({},a,u.options,$),u.scrollParents={reference:Af(s)?s1(s):s.contextElement?s1(s.contextElement):[],popper:s1(l)};var D=l5e(c5e([].concat(r,u.options.modifiers)));return u.orderedModifiers=D.filter(function(P){return P.enabled}),y(),m.update()},forceUpdate:function(){if(!p){var S=u.elements,$=S.reference,D=S.popper;if(IP($,D)){u.rects={reference:o5e($,qm(D),u.options.strategy==="fixed"),popper:Bx(D)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(se){return u.modifiersData[se.name]=Object.assign({},se.data)});for(var P=0;P<u.orderedModifiers.length;P++){if(u.reset===!0){u.reset=!1,P=-1;continue}var U=u.orderedModifiers[P],L=U.fn,F=U.options,G=F===void 0?{}:F,ie=U.name;typeof L=="function"&&(u=L({state:u,options:G,name:ie,instance:m})||u)}}}},update:u5e(function(){return new Promise(function(_){m.forceUpdate(),_(u)})}),destroy:function(){b(),p=!0}};if(!IP(s,l))return m;m.setOptions(c).then(function(_){!p&&c.onFirstUpdate&&c.onFirstUpdate(_)});function y(){u.orderedModifiers.forEach(function(_){var S=_.name,$=_.options,D=$===void 0?{}:$,P=_.effect;if(typeof P=="function"){var U=P({state:u,name:S,instance:m,options:D}),L=function(){};d.push(U||L)}})}function b(){d.forEach(function(_){return _()}),d=[]}return m}}var d5e=[P4e,Q4e,L4e,A4e,Z4e,G4e,n5e,$4e,W4e],p5e=f5e({defaultModifiers:d5e});function h5e(e){return typeof e=="function"?e():e}const m5e=Z.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[o,s]=Z.useState(null),l=hi(Z.isValidElement(r)?r.ref:null,n);if(zl(()=>{a||s(h5e(i)||document.body)},[i,a]),zl(()=>{if(o&&!a)return v2(n,o),()=>{v2(n,null)}},[n,o,a]),a){if(Z.isValidElement(r)){const c={ref:l};return Z.cloneElement(r,c)}return q.jsx(Z.Fragment,{children:r})}return q.jsx(Z.Fragment,{children:o&&_m.createPortal(r,o)})}),kW=m5e;function g5e(e){return Gn("MuiPopper",e)}zn("MuiPopper",["root"]);const y5e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],v5e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function b5e(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function aC(e){return typeof e=="function"?e():e}function T5e(e){return e.nodeType!==void 0}const E5e=e=>{const{classes:t}=e;return nr({root:["root"]},g5e,t)},A5e={},S5e=Z.forwardRef(function(t,n){var r;const{anchorEl:i,children:a,direction:o,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:m={},slots:y={},TransitionProps:b}=t,_=en(t,y5e),S=Z.useRef(null),$=hi(S,n),D=Z.useRef(null),P=hi(D,p),U=Z.useRef(P);zl(()=>{U.current=P},[P]),Z.useImperativeHandle(p,()=>D.current,[]);const L=b5e(u,o),[F,G]=Z.useState(L),[ie,se]=Z.useState(aC(i));Z.useEffect(()=>{D.current&&D.current.forceUpdate()}),Z.useEffect(()=>{i&&se(aC(i))},[i]),zl(()=>{if(!ie||!c)return;const h=R=>{G(R.placement)};let T=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:R})=>{h(R)}}];l!=null&&(T=T.concat(l)),d&&d.modifiers!=null&&(T=T.concat(d.modifiers));const w=p5e(ie,S.current,Ie({placement:L},d,{modifiers:T}));return U.current(w),()=>{w.destroy(),U.current(null)}},[ie,s,l,c,d,L]);const K={placement:F};b!==null&&(K.TransitionProps=b);const B=E5e(t),E=(r=y.root)!=null?r:"div",f=vf({elementType:E,externalSlotProps:m.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:$},ownerState:t,className:B.root});return q.jsx(E,Ie({},f,{children:typeof a=="function"?a(K):a}))}),w5e=Z.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=A5e,popperRef:m,style:y,transition:b=!1,slotProps:_={},slots:S={}}=t,$=en(t,v5e),[D,P]=Z.useState(!0),U=()=>{P(!1)},L=()=>{P(!0)};if(!l&&!u&&(!b||D))return null;let F;if(a)F=a;else if(r){const se=aC(r);F=se&&T5e(se)?Ai(se).body:Ai(null).body}const G=!u&&l&&(!b||D)?"none":void 0,ie=b?{in:u,onEnter:U,onExited:L}:void 0;return q.jsx(kW,{disablePortal:s,container:F,children:q.jsx(S5e,Ie({anchorEl:r,direction:o,disablePortal:s,modifiers:c,ref:n,open:b?!D:u,placement:d,popperOptions:p,popperRef:m,slotProps:_,slots:S},$,{style:Ie({position:"fixed",top:0,left:0,display:G},y),TransitionProps:ie,children:i}))})}),_5e=w5e,C5e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],R5e=Zt(_5e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),x5e=Z.forwardRef(function(t,n){var r;const i=TW(),a=Zn({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:m,open:y,placement:b,popperOptions:_,popperRef:S,transition:$,slots:D,slotProps:P}=a,U=en(a,C5e),L=(r=D==null?void 0:D.root)!=null?r:l==null?void 0:l.Root,F=Ie({anchorEl:o,container:u,disablePortal:d,keepMounted:p,modifiers:m,open:y,placement:b,popperOptions:_,popperRef:S,transition:$},U);return q.jsx(R5e,Ie({as:s,direction:i==null?void 0:i.direction,slots:{root:L},slotProps:P??c},F,{ref:n}))}),jT=x5e,$5e=NT(q.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function I5e(e){return Gn("MuiChip",e)}const k5e=zn("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),qn=k5e,D5e=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],L5e=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:o,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Pt(r)}`,`color${Pt(i)}`,s&&"clickable",s&&`clickableColor${Pt(i)}`,o&&"deletable",o&&`deletableColor${Pt(i)}`,`${l}${Pt(i)}`],label:["label",`label${Pt(r)}`],avatar:["avatar",`avatar${Pt(r)}`,`avatarColor${Pt(i)}`],icon:["icon",`icon${Pt(r)}`,`iconColor${Pt(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Pt(r)}`,`deleteIconColor${Pt(i)}`,`deleteIcon${Pt(l)}Color${Pt(i)}`]};return nr(c,I5e,t)},O5e=Zt("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:o,size:s,variant:l}=n;return[{[`& .${qn.avatar}`]:t.avatar},{[`& .${qn.avatar}`]:t[`avatar${Pt(s)}`]},{[`& .${qn.avatar}`]:t[`avatarColor${Pt(r)}`]},{[`& .${qn.icon}`]:t.icon},{[`& .${qn.icon}`]:t[`icon${Pt(s)}`]},{[`& .${qn.icon}`]:t[`iconColor${Pt(i)}`]},{[`& .${qn.deleteIcon}`]:t.deleteIcon},{[`& .${qn.deleteIcon}`]:t[`deleteIcon${Pt(s)}`]},{[`& .${qn.deleteIcon}`]:t[`deleteIconColor${Pt(r)}`]},{[`& .${qn.deleteIcon}`]:t[`deleteIcon${Pt(l)}Color${Pt(r)}`]},t.root,t[`size${Pt(s)}`],t[`color${Pt(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Pt(r)})`],o&&t.deletable,o&&r!=="default"&&t[`deletableColor${Pt(r)}`],t[l],t[`${l}${Pt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Ie({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${qn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${qn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${qn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${qn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${qn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${qn.icon}`]:Ie({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&Ie({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${qn.deleteIcon}`]:Ie({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Er(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Er(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Er(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${qn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Er(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${qn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>Ie({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Er(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${qn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Er(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${qn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>Ie({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${qn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${qn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${qn.avatar}`]:{marginLeft:4},[`& .${qn.avatarSmall}`]:{marginLeft:2},[`& .${qn.icon}`]:{marginLeft:4},[`& .${qn.iconSmall}`]:{marginLeft:2},[`& .${qn.deleteIcon}`]:{marginRight:5},[`& .${qn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Er(e.palette[t.color].main,.7)}`,[`&.${qn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Er(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${qn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Er(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${qn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Er(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),P5e=Zt("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Pt(r)}`]]}})(({ownerState:e})=>Ie({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function kP(e){return e.key==="Backspace"||e.key==="Delete"}const M5e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:o,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:m,onDelete:y,onKeyDown:b,onKeyUp:_,size:S="medium",variant:$="filled",tabIndex:D,skipFocusWhenDisabled:P=!1}=r,U=en(r,D5e),L=Z.useRef(null),F=hi(L,n),G=I=>{I.stopPropagation(),y&&y(I)},ie=I=>{I.currentTarget===I.target&&kP(I)&&I.preventDefault(),b&&b(I)},se=I=>{I.currentTarget===I.target&&(y&&kP(I)?y(I):I.key==="Escape"&&L.current&&L.current.blur()),_&&_(I)},K=o!==!1&&m?!0:o,B=K||y?Y1:l||"div",E=Ie({},r,{component:B,disabled:u,size:S,color:s,iconColor:Z.isValidElement(d)&&d.props.color||s,onDelete:!!y,clickable:K,variant:$}),f=L5e(E),h=B===Y1?Ie({component:l||"div",focusVisibleClassName:f.focusVisible},y&&{disableRipple:!0}):{};let T=null;y&&(T=c&&Z.isValidElement(c)?Z.cloneElement(c,{className:tn(c.props.className,f.deleteIcon),onClick:G}):q.jsx($5e,{className:tn(f.deleteIcon),onClick:G}));let w=null;i&&Z.isValidElement(i)&&(w=Z.cloneElement(i,{className:tn(f.avatar,i.props.className)}));let R=null;return d&&Z.isValidElement(d)&&(R=Z.cloneElement(d,{className:tn(f.icon,d.props.className)})),q.jsxs(O5e,Ie({as:B,className:tn(f.root,a),disabled:K&&u?!0:void 0,onClick:m,onKeyDown:ie,onKeyUp:se,ref:F,tabIndex:P&&u?-1:D,ownerState:E},h,U,{children:[w||R,q.jsx(P5e,{className:tn(f.label),ownerState:E,children:p}),T]}))}),DW=M5e,B5e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],N5e={entering:{opacity:1},entered:{opacity:1}},F5e=Z.forwardRef(function(t,n){const r=ru(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:m,onExited:y,onExiting:b,style:_,timeout:S=i,TransitionComponent:$=FT}=t,D=en(t,B5e),P=Z.useRef(null),U=hi(P,s.ref,n),L=f=>h=>{if(f){const T=P.current;h===void 0?f(T):f(T,h)}},F=L(p),G=L((f,h)=>{Lx(f);const T=rc({style:_,timeout:S,easing:l},{mode:"enter"});f.style.webkitTransition=r.transitions.create("opacity",T),f.style.transition=r.transitions.create("opacity",T),u&&u(f,h)}),ie=L(d),se=L(b),K=L(f=>{const h=rc({style:_,timeout:S,easing:l},{mode:"exit"});f.style.webkitTransition=r.transitions.create("opacity",h),f.style.transition=r.transitions.create("opacity",h),m&&m(f)}),B=L(y),E=f=>{a&&a(P.current,f)};return q.jsx($,Ie({appear:o,in:c,nodeRef:P,onEnter:G,onEntered:ie,onEntering:F,onExit:K,onExited:B,onExiting:se,addEndListener:E,timeout:S},D,{children:(f,h)=>Z.cloneElement(s,Ie({style:Ie({opacity:0,visibility:f==="exited"&&!c?"hidden":void 0},N5e[f],_,s.props.style),ref:U},h))}))}),VT=F5e;function U5e(e){return Gn("MuiBackdrop",e)}zn("MuiBackdrop",["root","invisible"]);const H5e=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],j5e=e=>{const{classes:t,invisible:n}=e;return nr({root:["root",n&&"invisible"]},U5e,t)},V5e=Zt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Ie({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),J5e=Z.forwardRef(function(t,n){var r,i,a;const o=Zn({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:d={},invisible:p=!1,open:m,slotProps:y={},slots:b={},TransitionComponent:_=VT,transitionDuration:S}=o,$=en(o,H5e),D=Ie({},o,{component:c,invisible:p}),P=j5e(D),U=(r=y.root)!=null?r:d.root;return q.jsx(_,Ie({in:m,timeout:S},$,{children:q.jsx(V5e,Ie({"aria-hidden":!0},U,{as:(i=(a=b.root)!=null?a:u.Root)!=null?i:c,className:tn(P.root,l,U==null?void 0:U.className),ownerState:Ie({},D,U==null?void 0:U.ownerState),classes:P,ref:n,children:s}))}))}),LW=J5e,q5e=zn("MuiBox",["root"]),G5e=q5e,z5e=Nm(),W5e=mge({themeId:_p,defaultTheme:z5e,defaultClassName:G5e.root,generateClassName:tx.generate}),Et=W5e;function K5e(e){return Gn("MuiButton",e)}const Y5e=zn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Fy=Y5e,Z5e=Z.createContext({}),X5e=Z5e,Q5e=Z.createContext(void 0),e6e=Q5e,t6e=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],n6e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Pt(t)}`,`size${Pt(i)}`,`${a}Size${Pt(i)}`,`color${Pt(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Pt(i)}`],endIcon:["icon","endIcon",`iconSize${Pt(i)}`]},l=nr(s,K5e,o);return Ie({},o,l)},OW=e=>Ie({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),r6e=Zt(Y1,{shouldForwardProp:e=>ST(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Pt(n.color)}`],t[`size${Pt(n.size)}`],t[`${n.variant}Size${Pt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Ie({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ie({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Er(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Er(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Er(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Ie({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Fy.focusVisible}`]:Ie({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Fy.disabled}`]:Ie({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Er(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Fy.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fy.disabled}`]:{boxShadow:"none"}}),i6e=Zt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Pt(n.size)}`]]}})(({ownerState:e})=>Ie({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},OW(e))),a6e=Zt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Pt(n.size)}`]]}})(({ownerState:e})=>Ie({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},OW(e))),o6e=Z.forwardRef(function(t,n){const r=Z.useContext(X5e),i=Z.useContext(e6e),a=G1(r,t),o=Zn({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:y,focusVisibleClassName:b,fullWidth:_=!1,size:S="medium",startIcon:$,type:D,variant:P="text"}=o,U=en(o,t6e),L=Ie({},o,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:m,fullWidth:_,size:S,type:D,variant:P}),F=n6e(L),G=$&&q.jsx(i6e,{className:F.startIcon,ownerState:L,children:$}),ie=y&&q.jsx(a6e,{className:F.endIcon,ownerState:L,children:y}),se=i||"";return q.jsxs(r6e,Ie({ownerState:L,className:tn(r.className,F.root,u,se),component:c,disabled:d,focusRipple:!m,focusVisibleClassName:tn(F.focusVisible,b),ref:n,type:D},U,{classes:F,children:[G,s,ie]}))}),PW=o6e;function s6e(e){return Gn("MuiCard",e)}zn("MuiCard",["root"]);const l6e=["className","raised"],u6e=e=>{const{classes:t}=e;return nr({root:["root"]},s6e,t)},c6e=Zt(dh,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),f6e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiCard"}),{className:i,raised:a=!1}=r,o=en(r,l6e),s=Ie({},r,{raised:a}),l=u6e(s);return q.jsx(c6e,Ie({className:tn(l.root,i),elevation:a?8:void 0,ref:n,ownerState:s},o))}),d6e=f6e;function p6e(e){return Gn("MuiCardActions",e)}zn("MuiCardActions",["root","spacing"]);const h6e=["disableSpacing","className"],m6e=e=>{const{classes:t,disableSpacing:n}=e;return nr({root:["root",!n&&"spacing"]},p6e,t)},g6e=Zt("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>Ie({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),y6e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiCardActions"}),{disableSpacing:i=!1,className:a}=r,o=en(r,h6e),s=Ie({},r,{disableSpacing:i}),l=m6e(s);return q.jsx(g6e,Ie({className:tn(l.root,a),ownerState:s,ref:n},o))}),v6e=y6e;function b6e(e){return Gn("MuiCardContent",e)}zn("MuiCardContent",["root"]);const T6e=["className","component"],E6e=e=>{const{classes:t}=e;return nr({root:["root"]},b6e,t)},A6e=Zt("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),S6e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiCardContent"}),{className:i,component:a="div"}=r,o=en(r,T6e),s=Ie({},r,{component:a}),l=E6e(s);return q.jsx(A6e,Ie({as:a,className:tn(l.root,i),ownerState:s,ref:n},o))}),w6e=S6e;function _6e(e){return Gn("MuiCardHeader",e)}const C6e=zn("MuiCardHeader",["root","avatar","action","content","title","subheader"]),DP=C6e,R6e=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],x6e=e=>{const{classes:t}=e;return nr({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},_6e,t)},$6e=Zt("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>Ie({[`& .${DP.title}`]:t.title,[`& .${DP.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),I6e=Zt("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),k6e=Zt("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),D6e=Zt("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),L6e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiCardHeader"}),{action:i,avatar:a,className:o,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:p}=r,m=en(r,R6e),y=Ie({},r,{component:s,disableTypography:l}),b=x6e(y);let _=d;_!=null&&_.type!==or&&!l&&(_=q.jsx(or,Ie({variant:a?"body2":"h5",className:b.title,component:"span",display:"block"},p,{children:_})));let S=c;return S!=null&&S.type!==or&&!l&&(S=q.jsx(or,Ie({variant:a?"body2":"body1",className:b.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:S}))),q.jsxs($6e,Ie({className:tn(b.root,o),as:s,ref:n,ownerState:y},m,{children:[a&&q.jsx(I6e,{className:b.avatar,ownerState:y,children:a}),q.jsxs(D6e,{className:b.content,ownerState:y,children:[_,S]}),i&&q.jsx(k6e,{className:b.action,ownerState:y,children:i})]}))}),O6e=L6e;function LP(e){return e.substring(2).toLowerCase()}function P6e(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function jx(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=e,o=Z.useRef(!1),s=Z.useRef(null),l=Z.useRef(!1),c=Z.useRef(!1);Z.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=hi(t.ref,s),d=Gs(y=>{const b=c.current;c.current=!1;const _=Ai(s.current);if(!l.current||!s.current||"clientX"in y&&P6e(y,_))return;if(o.current){o.current=!1;return}let S;y.composedPath?S=y.composedPath().indexOf(s.current)>-1:S=!_.documentElement.contains(y.target)||s.current.contains(y.target),!S&&(n||!b)&&i(y)}),p=y=>b=>{c.current=!0;const _=t.props[y];_&&_(b)},m={ref:u};return a!==!1&&(m[a]=p(a)),Z.useEffect(()=>{if(a!==!1){const y=LP(a),b=Ai(s.current),_=()=>{o.current=!0};return b.addEventListener(y,d),b.addEventListener("touchmove",_),()=>{b.removeEventListener(y,d),b.removeEventListener("touchmove",_)}}},[d,a]),r!==!1&&(m[r]=p(r)),Z.useEffect(()=>{if(r!==!1){const y=LP(r),b=Ai(s.current);return b.addEventListener(y,d),()=>{b.removeEventListener(y,d)}}},[d,r]),q.jsx(Z.Fragment,{children:Z.cloneElement(t,m)})}const M6e=Aye({createStyledComponent:Zt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Pt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Zn({props:e,name:"MuiContainer"})}),B6e=M6e;function N6e(e){const t=Ai(e);return t.body===e?nc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function l1(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function OP(e){return parseInt(nc(e).getComputedStyle(e).paddingRight,10)||0}function F6e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function PP(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!F6e(o);s&&l&&l1(o,i)})}function fw(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function U6e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(N6e(r)){const o=OG(Ai(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${OP(r)+o}px`;const s=Ai(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${OP(l)+o}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Ai(r).body;else{const o=r.parentElement,s=nc(r);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function H6e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class j6e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&l1(t.modalRef,!1);const i=H6e(n);PP(n,t.mount,t.modalRef,i,!0);const a=fw(this.containers,o=>o.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=fw(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=U6e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=fw(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&l1(t.modalRef,n),PP(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&l1(o.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const V6e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function J6e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function q6e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function G6e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||q6e(e))}function z6e(e){const t=[],n=[];return Array.from(e.querySelectorAll(V6e)).forEach((r,i)=>{const a=J6e(r);a===-1||!G6e(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function W6e(){return!0}function K6e(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=z6e,isEnabled:o=W6e,open:s}=e,l=Z.useRef(!1),c=Z.useRef(null),u=Z.useRef(null),d=Z.useRef(null),p=Z.useRef(null),m=Z.useRef(!1),y=Z.useRef(null),b=hi(t.ref,y),_=Z.useRef(null);Z.useEffect(()=>{!s||!y.current||(m.current=!n)},[n,s]),Z.useEffect(()=>{if(!s||!y.current)return;const D=Ai(y.current);return y.current.contains(D.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),m.current&&y.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),Z.useEffect(()=>{if(!s||!y.current)return;const D=Ai(y.current),P=F=>{_.current=F,!(r||!o()||F.key!=="Tab")&&D.activeElement===y.current&&F.shiftKey&&(l.current=!0,u.current&&u.current.focus())},U=()=>{const F=y.current;if(F===null)return;if(!D.hasFocus()||!o()||l.current){l.current=!1;return}if(F.contains(D.activeElement)||r&&D.activeElement!==c.current&&D.activeElement!==u.current)return;if(D.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let G=[];if((D.activeElement===c.current||D.activeElement===u.current)&&(G=a(y.current)),G.length>0){var ie,se;const K=!!((ie=_.current)!=null&&ie.shiftKey&&((se=_.current)==null?void 0:se.key)==="Tab"),B=G[0],E=G[G.length-1];typeof B!="string"&&typeof E!="string"&&(K?E.focus():B.focus())}else F.focus()};D.addEventListener("focusin",U),D.addEventListener("keydown",P,!0);const L=setInterval(()=>{D.activeElement&&D.activeElement.tagName==="BODY"&&U()},50);return()=>{clearInterval(L),D.removeEventListener("focusin",U),D.removeEventListener("keydown",P,!0)}},[n,r,i,o,s,a]);const S=D=>{d.current===null&&(d.current=D.relatedTarget),m.current=!0,p.current=D.target;const P=t.props.onFocus;P&&P(D)},$=D=>{d.current===null&&(d.current=D.relatedTarget),m.current=!0};return q.jsxs(Z.Fragment,{children:[q.jsx("div",{tabIndex:s?0:-1,onFocus:$,ref:c,"data-testid":"sentinelStart"}),Z.cloneElement(t,{ref:b,onFocus:S}),q.jsx("div",{tabIndex:s?0:-1,onFocus:$,ref:u,"data-testid":"sentinelEnd"})]})}function Y6e(e){return typeof e=="function"?e():e}function Z6e(e){return e?e.props.hasOwnProperty("in"):!1}const X6e=new j6e;function Q6e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=X6e,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=Z.useRef({}),m=Z.useRef(null),y=Z.useRef(null),b=hi(y,d),[_,S]=Z.useState(!u),$=Z6e(l);let D=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(D=!1);const P=()=>Ai(m.current),U=()=>(p.current.modalRef=y.current,p.current.mount=m.current,p.current),L=()=>{i.mount(U(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},F=Gs(()=>{const T=Y6e(t)||P().body;i.add(U(),T),y.current&&L()}),G=Z.useCallback(()=>i.isTopModal(U()),[i]),ie=Gs(T=>{m.current=T,T&&(u&&G()?L():y.current&&l1(y.current,D))}),se=Z.useCallback(()=>{i.remove(U(),D)},[D,i]);Z.useEffect(()=>()=>{se()},[se]),Z.useEffect(()=>{u?F():(!$||!a)&&se()},[u,se,$,a,F]);const K=T=>w=>{var R;(R=T.onKeyDown)==null||R.call(T,w),!(w.key!=="Escape"||w.which===229||!G())&&(n||(w.stopPropagation(),c&&c(w,"escapeKeyDown")))},B=T=>w=>{var R;(R=T.onClick)==null||R.call(T,w),w.target===w.currentTarget&&c&&c(w,"backdropClick")};return{getRootProps:(T={})=>{const w=MG(e);delete w.onTransitionEnter,delete w.onTransitionExited;const R=Ie({},w,T);return Ie({role:"presentation"},R,{onKeyDown:K(R),ref:b})},getBackdropProps:(T={})=>{const w=T;return Ie({"aria-hidden":!0},w,{onClick:B(w),open:u})},getTransitionProps:()=>{const T=()=>{S(!1),o&&o()},w=()=>{S(!0),s&&s(),a&&se()};return{onEnter:N6(T,l==null?void 0:l.props.onEnter),onExited:N6(w,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:ie,isTopModal:G,exited:_,hasTransition:$}}function eCe(e){return Gn("MuiModal",e)}zn("MuiModal",["root","hidden","backdrop"]);const tCe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],nCe=e=>{const{open:t,exited:n,classes:r}=e;return nr({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},eCe,r)},rCe=Zt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Ie({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),iCe=Zt(LW,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),aCe=Z.forwardRef(function(t,n){var r,i,a,o,s,l;const c=Zn({name:"MuiModal",props:t}),{BackdropComponent:u=iCe,BackdropProps:d,className:p,closeAfterTransition:m=!1,children:y,container:b,component:_,components:S={},componentsProps:$={},disableAutoFocus:D=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:U=!1,disablePortal:L=!1,disableRestoreFocus:F=!1,disableScrollLock:G=!1,hideBackdrop:ie=!1,keepMounted:se=!1,onBackdropClick:K,open:B,slotProps:E,slots:f}=c,h=en(c,tCe),T=Ie({},c,{closeAfterTransition:m,disableAutoFocus:D,disableEnforceFocus:P,disableEscapeKeyDown:U,disablePortal:L,disableRestoreFocus:F,disableScrollLock:G,hideBackdrop:ie,keepMounted:se}),{getRootProps:w,getBackdropProps:R,getTransitionProps:I,portalRef:C,isTopModal:x,exited:v,hasTransition:k}=Q6e(Ie({},T,{rootRef:n})),ne=Ie({},T,{exited:v}),N=nCe(ne),Y={};if(y.props.tabIndex===void 0&&(Y.tabIndex="-1"),k){const{onEnter:z,onExited:W}=I();Y.onEnter=z,Y.onExited=W}const re=(r=(i=f==null?void 0:f.root)!=null?i:S.Root)!=null?r:rCe,le=(a=(o=f==null?void 0:f.backdrop)!=null?o:S.Backdrop)!=null?a:u,ge=(s=E==null?void 0:E.root)!=null?s:$.root,Se=(l=E==null?void 0:E.backdrop)!=null?l:$.backdrop,j=vf({elementType:re,externalSlotProps:ge,externalForwardedProps:h,getSlotProps:w,additionalProps:{ref:n,as:_},ownerState:ne,className:tn(p,ge==null?void 0:ge.className,N==null?void 0:N.root,!ne.open&&ne.exited&&(N==null?void 0:N.hidden))}),M=vf({elementType:le,externalSlotProps:Se,additionalProps:d,getSlotProps:z=>R(Ie({},z,{onClick:W=>{K&&K(W),z!=null&&z.onClick&&z.onClick(W)}})),className:tn(Se==null?void 0:Se.className,d==null?void 0:d.className,N==null?void 0:N.backdrop),ownerState:ne});return!se&&!B&&(!k||v)?null:q.jsx(kW,{ref:C,container:b,disablePortal:L,children:q.jsxs(re,Ie({},j,{children:[!ie&&u?q.jsx(le,Ie({},M)):null,q.jsx(K6e,{disableEnforceFocus:P,disableAutoFocus:D,disableRestoreFocus:F,isEnabled:x,open:B,children:Z.cloneElement(y,Y)})]}))})}),MW=aCe;function oCe(e){return Gn("MuiDialog",e)}const sCe=zn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),dw=sCe,lCe=Z.createContext({}),BW=lCe,uCe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],cCe=Zt(LW,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),fCe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,o={root:["root"],container:["container",`scroll${Pt(n)}`],paper:["paper",`paperScroll${Pt(n)}`,`paperWidth${Pt(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return nr(o,oCe,t)},dCe=Zt(MW,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),pCe=Zt("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Pt(n.scroll)}`]]}})(({ownerState:e})=>Ie({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),hCe=Zt(dh,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Pt(n.scroll)}`],t[`paperWidth${Pt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>Ie({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${dw.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${dw.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${dw.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),mCe=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiDialog"}),i=ru(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:y=!1,maxWidth:b="sm",onBackdropClick:_,onClick:S,onClose:$,open:D,PaperComponent:P=dh,PaperProps:U={},scroll:L="paper",TransitionComponent:F=VT,transitionDuration:G=a,TransitionProps:ie}=r,se=en(r,uCe),K=Ie({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:y,maxWidth:b,scroll:L}),B=fCe(K),E=Z.useRef(),f=R=>{E.current=R.target===R.currentTarget},h=R=>{S&&S(R),E.current&&(E.current=null,_&&_(R),$&&$(R,"backdropClick"))},T=ox(s),w=Z.useMemo(()=>({titleId:T}),[T]);return q.jsx(dCe,Ie({className:tn(B.root,d),closeAfterTransition:!0,components:{Backdrop:cCe},componentsProps:{backdrop:Ie({transitionDuration:G,as:l},c)},disableEscapeKeyDown:p,onClose:$,open:D,ref:n,onClick:h,ownerState:K},se,{children:q.jsx(F,Ie({appear:!0,in:D,timeout:G,role:"presentation"},ie,{children:q.jsx(pCe,{className:tn(B.container),onMouseDown:f,ownerState:K,children:q.jsx(hCe,Ie({as:P,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":T},U,{className:tn(B.paper,U.className),ownerState:K,children:q.jsx(BW.Provider,{value:w,children:u})}))})}))}))}),Vx=mCe;function gCe(e){return Gn("MuiDialogActions",e)}zn("MuiDialogActions",["root","spacing"]);const yCe=["className","disableSpacing"],vCe=e=>{const{classes:t,disableSpacing:n}=e;return nr({root:["root",!n&&"spacing"]},gCe,t)},bCe=Zt("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>Ie({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),TCe=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1}=r,o=en(r,yCe),s=Ie({},r,{disableSpacing:a}),l=vCe(s);return q.jsx(bCe,Ie({className:tn(l.root,i),ownerState:s,ref:n},o))}),ECe=TCe;function ACe(e){return Gn("MuiDialogContent",e)}zn("MuiDialogContent",["root","dividers"]);function SCe(e){return Gn("MuiDialogTitle",e)}const wCe=zn("MuiDialogTitle",["root"]),_Ce=wCe,CCe=["className","dividers"],RCe=e=>{const{classes:t,dividers:n}=e;return nr({root:["root",n&&"dividers"]},ACe,t)},xCe=Zt("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>Ie({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${_Ce.root} + &`]:{paddingTop:0}})),$Ce=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1}=r,o=en(r,CCe),s=Ie({},r,{dividers:a}),l=RCe(s);return q.jsx(xCe,Ie({className:tn(l.root,i),ownerState:s,ref:n},o))}),Jx=$Ce,ICe=["className","id"],kCe=e=>{const{classes:t}=e;return nr({root:["root"]},SCe,t)},DCe=Zt(or,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),LCe=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiDialogTitle"}),{className:i,id:a}=r,o=en(r,ICe),s=r,l=kCe(s),{titleId:c=a}=Z.useContext(BW);return q.jsx(DCe,Ie({component:"h2",className:tn(l.root,i),ownerState:s,ref:n,variant:"h6",id:a??c},o))}),OCe=LCe;function PCe(e){return Gn("MuiDivider",e)}const MCe=zn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),MP=MCe,BCe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],NCe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return nr({root:["root",t&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},PCe,r)},FCe=Zt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Ie({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Er(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Ie({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Ie({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>Ie({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>Ie({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),UCe=Zt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Ie({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),NW=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,y=en(r,BCe),b=Ie({},r,{absolute:i,component:s,flexItem:l,light:c,orientation:u,role:d,textAlign:p,variant:m}),_=NCe(b);return q.jsx(FCe,Ie({as:s,className:tn(_.root,o),role:d,ref:n,ownerState:b},y,{children:a?q.jsx(UCe,{className:_.wrapper,ownerState:b,children:a}):null}))});NW.muiSkipListHighlight=!0;const C2=NW,HCe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function jCe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=nc(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const c=a.getComputedStyle(t);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const c=o.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${a.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function VCe(e){return typeof e=="function"?e():e}function Uy(e,t,n){const r=VCe(n),i=jCe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const JCe=Z.forwardRef(function(t,n){const r=ru(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:c,direction:u="down",easing:d=i,in:p,onEnter:m,onEntered:y,onEntering:b,onExit:_,onExited:S,onExiting:$,style:D,timeout:P=a,TransitionComponent:U=FT}=t,L=en(t,HCe),F=Z.useRef(null),G=hi(l.ref,F,n),ie=R=>I=>{R&&(I===void 0?R(F.current):R(F.current,I))},se=ie((R,I)=>{Uy(u,R,c),Lx(R),m&&m(R,I)}),K=ie((R,I)=>{const C=rc({timeout:P,style:D,easing:d},{mode:"enter"});R.style.webkitTransition=r.transitions.create("-webkit-transform",Ie({},C)),R.style.transition=r.transitions.create("transform",Ie({},C)),R.style.webkitTransform="none",R.style.transform="none",b&&b(R,I)}),B=ie(y),E=ie($),f=ie(R=>{const I=rc({timeout:P,style:D,easing:d},{mode:"exit"});R.style.webkitTransition=r.transitions.create("-webkit-transform",I),R.style.transition=r.transitions.create("transform",I),Uy(u,R,c),_&&_(R)}),h=ie(R=>{R.style.webkitTransition="",R.style.transition="",S&&S(R)}),T=R=>{o&&o(F.current,R)},w=Z.useCallback(()=>{F.current&&Uy(u,F.current,c)},[u,c]);return Z.useEffect(()=>{if(p||u==="down"||u==="right")return;const R=ax(()=>{F.current&&Uy(u,F.current,c)}),I=nc(F.current);return I.addEventListener("resize",R),()=>{R.clear(),I.removeEventListener("resize",R)}},[u,p,c]),Z.useEffect(()=>{p||w()},[p,w]),q.jsx(U,Ie({nodeRef:F,onEnter:se,onEntered:B,onEntering:K,onExit:f,onExited:h,onExiting:E,addEndListener:T,appear:s,in:p,timeout:P},L,{children:(R,I)=>Z.cloneElement(l,Ie({ref:G,style:Ie({visibility:R==="exited"&&!p?"hidden":void 0},D,l.props.style)},I))}))}),FW=JCe,qCe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function oC(e){return`scale(${e}, ${e**2})`}const GCe={entering:{opacity:1,transform:oC(1)},entered:{opacity:1,transform:"none"}},pw=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),UW=Z.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:m,style:y,timeout:b="auto",TransitionComponent:_=FT}=t,S=en(t,qCe),$=Zc(),D=Z.useRef(),P=ru(),U=Z.useRef(null),L=hi(U,a.ref,n),F=h=>T=>{if(h){const w=U.current;T===void 0?h(w):h(w,T)}},G=F(u),ie=F((h,T)=>{Lx(h);const{duration:w,delay:R,easing:I}=rc({style:y,timeout:b,easing:o},{mode:"enter"});let C;b==="auto"?(C=P.transitions.getAutoHeightDuration(h.clientHeight),D.current=C):C=w,h.style.transition=[P.transitions.create("opacity",{duration:C,delay:R}),P.transitions.create("transform",{duration:pw?C:C*.666,delay:R,easing:I})].join(","),l&&l(h,T)}),se=F(c),K=F(m),B=F(h=>{const{duration:T,delay:w,easing:R}=rc({style:y,timeout:b,easing:o},{mode:"exit"});let I;b==="auto"?(I=P.transitions.getAutoHeightDuration(h.clientHeight),D.current=I):I=T,h.style.transition=[P.transitions.create("opacity",{duration:I,delay:w}),P.transitions.create("transform",{duration:pw?I:I*.666,delay:pw?w:w||I*.333,easing:R})].join(","),h.style.opacity=0,h.style.transform=oC(.75),d&&d(h)}),E=F(p),f=h=>{b==="auto"&&$.start(D.current||0,h),r&&r(U.current,h)};return q.jsx(_,Ie({appear:i,in:s,nodeRef:U,onEnter:ie,onEntered:se,onEntering:G,onExit:B,onExited:E,onExiting:K,addEndListener:f,timeout:b==="auto"?null:b},S,{children:(h,T)=>Z.cloneElement(a,Ie({style:Ie({opacity:0,transform:oC(.75),visibility:h==="exited"&&!s?"hidden":void 0},GCe[h],y,a.props.style),ref:L},T))}))});UW.muiSupportAuto=!0;const sC=UW;function zCe(e){return Gn("MuiIcon",e)}const WCe=zn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),Mvt=WCe,KCe=["baseClassName","className","color","component","fontSize"],YCe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Pt(t)}`,`fontSize${Pt(n)}`]};return nr(i,zCe,r)},ZCe=Zt("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Pt(n.color)}`],t[`fontSize${Pt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),HW=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiIcon"}),{baseClassName:i="material-icons",className:a,color:o="inherit",component:s="span",fontSize:l="medium"}=r,c=en(r,KCe),u=Ie({},r,{baseClassName:i,color:o,component:s,fontSize:l}),d=YCe(u);return q.jsx(ZCe,Ie({as:s,className:tn(i,"notranslate",d.root,a),ownerState:u,"aria-hidden":!0,ref:n},c))});HW.muiName="Icon";const XCe=HW;function QCe(e){return Gn("MuiLinearProgress",e)}const eRe=zn("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),Bvt=eRe,tRe=["className","color","value","valueBuffer","variant"];let ph=e=>e,BP,NP,FP,UP,HP,jP;const lC=4,nRe=ll(BP||(BP=ph`
|
|
202
|
+
`),wo.rippleVisible,I_e,nC,({theme:e})=>e.transitions.easing.easeInOut,wo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,wo.child,wo.childLeaving,k_e,nC,({theme:e})=>e.transitions.easing.easeInOut,wo.childPulsate,D_e,({theme:e})=>e.transitions.easing.easeInOut),P_e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=r,s=en(r,x_e),[l,c]=Z.useState([]),u=Z.useRef(0),d=Z.useRef(null);Z.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=Z.useRef(!1),m=Zc(),y=Z.useRef(null),b=Z.useRef(null),_=Z.useCallback(P=>{const{pulsate:U,rippleX:L,rippleY:F,rippleSize:G,cb:ie}=P;c(se=>[...se,q.jsx(O_e,{classes:{ripple:tn(a.ripple,wo.ripple),rippleVisible:tn(a.rippleVisible,wo.rippleVisible),ripplePulsate:tn(a.ripplePulsate,wo.ripplePulsate),child:tn(a.child,wo.child),childLeaving:tn(a.childLeaving,wo.childLeaving),childPulsate:tn(a.childPulsate,wo.childPulsate)},timeout:nC,pulsate:U,rippleX:L,rippleY:F,rippleSize:G},u.current)]),u.current+=1,d.current=ie},[a]),S=Z.useCallback((P={},U={},L=()=>{})=>{const{pulsate:F=!1,center:G=i||U.pulsate,fakeElement:ie=!1}=U;if((P==null?void 0:P.type)==="mousedown"&&p.current){p.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(p.current=!0);const se=ie?null:b.current,K=se?se.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,E,f;if(G||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)B=Math.round(K.width/2),E=Math.round(K.height/2);else{const{clientX:h,clientY:T}=P.touches&&P.touches.length>0?P.touches[0]:P;B=Math.round(h-K.left),E=Math.round(T-K.top)}if(G)f=Math.sqrt((2*K.width**2+K.height**2)/3),f%2===0&&(f+=1);else{const h=Math.max(Math.abs((se?se.clientWidth:0)-B),B)*2+2,T=Math.max(Math.abs((se?se.clientHeight:0)-E),E)*2+2;f=Math.sqrt(h**2+T**2)}P!=null&&P.touches?y.current===null&&(y.current=()=>{_({pulsate:F,rippleX:B,rippleY:E,rippleSize:f,cb:L})},m.start($_e,()=>{y.current&&(y.current(),y.current=null)})):_({pulsate:F,rippleX:B,rippleY:E,rippleSize:f,cb:L})},[i,_,m]),$=Z.useCallback(()=>{S({},{pulsate:!0})},[S]),D=Z.useCallback((P,U)=>{if(m.clear(),(P==null?void 0:P.type)==="touchend"&&y.current){y.current(),y.current=null,m.start(0,()=>{D(P,U)});return}y.current=null,c(L=>L.length>0?L.slice(1):L),d.current=U},[m]);return Z.useImperativeHandle(n,()=>({pulsate:$,start:S,stop:D}),[$,S,D]),q.jsx(L_e,Ie({className:tn(wo.root,a.root,o),ref:b},s,{children:q.jsx(d_e,{component:null,exit:!0,children:l})}))}),M_e=P_e;function B_e(e){return Gn("MuiButtonBase",e)}const N_e=zn("MuiButtonBase",["root","disabled","focusVisible"]),F_e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],U_e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=nr({root:["root",t&&"disabled",n&&"focusVisible"]},B_e,i);return n&&r&&(o.root+=` ${r}`),o},H_e=Zt("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${N_e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),j_e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:y,onClick:b,onContextMenu:_,onDragLeave:S,onFocus:$,onFocusVisible:D,onKeyDown:P,onKeyUp:U,onMouseDown:L,onMouseLeave:F,onMouseUp:G,onTouchEnd:ie,onTouchMove:se,onTouchStart:K,tabIndex:B=0,TouchRippleProps:E,touchRippleRef:f,type:h}=r,T=en(r,F_e),w=Z.useRef(null),R=Z.useRef(null),I=hi(R,f),{isFocusVisibleRef:C,onFocus:x,onBlur:v,ref:k}=sx(),[ne,N]=Z.useState(!1);c&&ne&&N(!1),Z.useImperativeHandle(i,()=>({focusVisible:()=>{N(!0),w.current.focus()}}),[]);const[Y,re]=Z.useState(!1);Z.useEffect(()=>{re(!0)},[]);const le=Y&&!u&&!c;Z.useEffect(()=>{ne&&p&&!u&&Y&&R.current.pulsate()},[u,p,ne,Y]);function ge(Re,te,V=d){return Gs(J=>(te&&te(J),!V&&R.current&&R.current[Re](J),!0))}const Se=ge("start",L),j=ge("stop",_),M=ge("stop",S),z=ge("stop",G),W=ge("stop",Re=>{ne&&Re.preventDefault(),F&&F(Re)}),ee=ge("start",K),ve=ge("stop",ie),he=ge("stop",se),oe=ge("stop",Re=>{v(Re),C.current===!1&&N(!1),y&&y(Re)},!1),ye=Gs(Re=>{w.current||(w.current=Re.currentTarget),x(Re),C.current===!0&&(N(!0),D&&D(Re)),$&&$(Re)}),we=()=>{const Re=w.current;return l&&l!=="button"&&!(Re.tagName==="A"&&Re.href)},Te=Z.useRef(!1),Ve=Gs(Re=>{p&&!Te.current&&ne&&R.current&&Re.key===" "&&(Te.current=!0,R.current.stop(Re,()=>{R.current.start(Re)})),Re.target===Re.currentTarget&&we()&&Re.key===" "&&Re.preventDefault(),P&&P(Re),Re.target===Re.currentTarget&&we()&&Re.key==="Enter"&&!c&&(Re.preventDefault(),b&&b(Re))}),Ke=Gs(Re=>{p&&Re.key===" "&&R.current&&ne&&!Re.defaultPrevented&&(Te.current=!1,R.current.stop(Re,()=>{R.current.pulsate(Re)})),U&&U(Re),b&&Re.target===Re.currentTarget&&we()&&Re.key===" "&&!Re.defaultPrevented&&b(Re)});let je=l;je==="button"&&(T.href||T.to)&&(je=m);const Ge={};je==="button"?(Ge.type=h===void 0?"button":h,Ge.disabled=c):(!T.href&&!T.to&&(Ge.role="button"),c&&(Ge["aria-disabled"]=c));const pe=hi(n,k,w),Ae=Ie({},r,{centerRipple:a,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:p,tabIndex:B,focusVisible:ne}),Fe=U_e(Ae);return q.jsxs(H_e,Ie({as:je,className:tn(Fe.root,s),ownerState:Ae,onBlur:oe,onClick:b,onContextMenu:j,onFocus:ye,onKeyDown:Ve,onKeyUp:Ke,onMouseDown:Se,onMouseLeave:W,onMouseUp:z,onDragLeave:M,onTouchEnd:ve,onTouchMove:he,onTouchStart:ee,ref:pe,tabIndex:c?-1:B,type:h},Ge,T,{children:[o,le?q.jsx(M_e,Ie({ref:I,center:a},E)):null]}))}),Y1=j_e;function V_e(e){return Gn("MuiIconButton",e)}const J_e=zn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),q_e=["edge","children","className","color","disabled","disableFocusRipple","size"],G_e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,o={root:["root",n&&"disabled",r!=="default"&&`color${Pt(r)}`,i&&`edge${Pt(i)}`,`size${Pt(a)}`]};return nr(o,V_e,t)},z_e=Zt(Y1,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Pt(n.color)}`],n.edge&&t[`edge${Pt(n.edge)}`],t[`size${Pt(n.size)}`]]}})(({theme:e,ownerState:t})=>Ie({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Er(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Ie({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Ie({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Ie({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Er(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${J_e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),W_e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium"}=r,d=en(r,q_e),p=Ie({},r,{edge:i,color:s,disabled:l,disableFocusRipple:c,size:u}),m=G_e(p);return q.jsx(z_e,Ie({className:tn(m.root,o),centerRipple:!0,focusRipple:!c,disabled:l,ref:n},d,{ownerState:p,children:a}))}),ou=W_e;function K_e(e){return Gn("MuiTypography",e)}const Y_e=zn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Pvt=Y_e,Z_e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],X_e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Pt(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return nr(s,K_e,o)},Q_e=Zt("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Pt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Ie({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),EP={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},e4e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},t4e=e=>e4e[e]||e,n4e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiTypography"}),i=t4e(r.color),a=ex(Ie({},r,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:u=!1,paragraph:d=!1,variant:p="body1",variantMapping:m=EP}=a,y=en(a,Z_e),b=Ie({},a,{align:o,color:i,className:s,component:l,gutterBottom:c,noWrap:u,paragraph:d,variant:p,variantMapping:m}),_=l||(d?"p":m[p]||EP[p])||"span",S=X_e(b);return q.jsx(Q_e,Ie({as:_,ref:n,ownerState:b,className:tn(S.root,s)},y))}),or=n4e;var Ox={};Object.defineProperty(Ox,"__esModule",{value:!0});var TW=Ox.default=void 0,r4e=a4e(Z),i4e=jG;function EW(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(EW=function(r){return r?n:t})(e)}function a4e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=EW(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function o4e(e){return Object.keys(e).length===0}function s4e(e=null){const t=r4e.useContext(i4e.ThemeContext);return!t||o4e(t)?e:t}TW=Ox.default=s4e;var wa="top",Uo="bottom",Ho="right",_a="left",Px="auto",Jm=[wa,Uo,Ho,_a],Rp="start",Z1="end",l4e="clippingParents",AW="viewport",g0="popper",u4e="reference",AP=Jm.reduce(function(e,t){return e.concat([t+"-"+Rp,t+"-"+Z1])},[]),SW=[].concat(Jm,[Px]).reduce(function(e,t){return e.concat([t,t+"-"+Rp,t+"-"+Z1])},[]),c4e="beforeRead",f4e="read",d4e="afterRead",p4e="beforeMain",h4e="main",m4e="afterMain",g4e="beforeWrite",y4e="write",v4e="afterWrite",b4e=[c4e,f4e,d4e,p4e,h4e,m4e,g4e,y4e,v4e];function tl(e){return e?(e.nodeName||"").toLowerCase():null}function Ka(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Af(e){var t=Ka(e).Element;return e instanceof t||e instanceof Element}function Lo(e){var t=Ka(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Mx(e){if(typeof ShadowRoot>"u")return!1;var t=Ka(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function T4e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!Lo(a)||!tl(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function E4e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(l,c){return l[c]="",l},{});!Lo(i)||!tl(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const A4e={name:"applyStyles",enabled:!0,phase:"write",fn:T4e,effect:E4e,requires:["computeStyles"]};function Zs(e){return e.split("-")[0]}var lf=Math.max,_2=Math.min,xp=Math.round;function rC(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wW(){return!/^((?!chrome|android).)*safari/i.test(rC())}function $p(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Lo(e)&&(i=e.offsetWidth>0&&xp(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&xp(r.height)/e.offsetHeight||1);var o=Af(e)?Ka(e):window,s=o.visualViewport,l=!wW()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/i,u=(r.top+(l&&s?s.offsetTop:0))/a,d=r.width/i,p=r.height/a;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function Bx(e){var t=$p(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function _W(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Mx(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Kl(e){return Ka(e).getComputedStyle(e)}function S4e(e){return["table","td","th"].indexOf(tl(e))>=0}function pc(e){return((Af(e)?e.ownerDocument:e.document)||window.document).documentElement}function HT(e){return tl(e)==="html"?e:e.assignedSlot||e.parentNode||(Mx(e)?e.host:null)||pc(e)}function SP(e){return!Lo(e)||Kl(e).position==="fixed"?null:e.offsetParent}function w4e(e){var t=/firefox/i.test(rC()),n=/Trident/i.test(rC());if(n&&Lo(e)){var r=Kl(e);if(r.position==="fixed")return null}var i=HT(e);for(Mx(i)&&(i=i.host);Lo(i)&&["html","body"].indexOf(tl(i))<0;){var a=Kl(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function qm(e){for(var t=Ka(e),n=SP(e);n&&S4e(n)&&Kl(n).position==="static";)n=SP(n);return n&&(tl(n)==="html"||tl(n)==="body"&&Kl(n).position==="static")?t:n||w4e(e)||t}function Nx(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function o1(e,t,n){return lf(e,_2(t,n))}function _4e(e,t,n){var r=o1(e,t,n);return r>n?n:r}function CW(){return{top:0,right:0,bottom:0,left:0}}function RW(e){return Object.assign({},CW(),e)}function xW(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var C4e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,RW(typeof t!="number"?t:xW(t,Jm))};function R4e(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Zs(n.placement),l=Nx(s),c=[_a,Ho].indexOf(s)>=0,u=c?"height":"width";if(!(!a||!o)){var d=C4e(i.padding,n),p=Bx(a),m=l==="y"?wa:_a,y=l==="y"?Uo:Ho,b=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],_=o[l]-n.rects.reference[l],S=qm(a),$=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,D=b/2-_/2,P=d[m],U=$-p[u]-d[y],L=$/2-p[u]/2+D,F=o1(P,L,U),G=l;n.modifiersData[r]=(t={},t[G]=F,t.centerOffset=F-L,t)}}function x4e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||_W(t.elements.popper,i)&&(t.elements.arrow=i))}const $4e={name:"arrow",enabled:!0,phase:"main",fn:R4e,effect:x4e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ip(e){return e.split("-")[1]}var I4e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function k4e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:xp(n*i)/i||0,y:xp(r*i)/i||0}}function wP(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=o.x,m=p===void 0?0:p,y=o.y,b=y===void 0?0:y,_=typeof u=="function"?u({x:m,y:b}):{x:m,y:b};m=_.x,b=_.y;var S=o.hasOwnProperty("x"),$=o.hasOwnProperty("y"),D=_a,P=wa,U=window;if(c){var L=qm(n),F="clientHeight",G="clientWidth";if(L===Ka(n)&&(L=pc(n),Kl(L).position!=="static"&&s==="absolute"&&(F="scrollHeight",G="scrollWidth")),L=L,i===wa||(i===_a||i===Ho)&&a===Z1){P=Uo;var ie=d&&L===U&&U.visualViewport?U.visualViewport.height:L[F];b-=ie-r.height,b*=l?1:-1}if(i===_a||(i===wa||i===Uo)&&a===Z1){D=Ho;var se=d&&L===U&&U.visualViewport?U.visualViewport.width:L[G];m-=se-r.width,m*=l?1:-1}}var K=Object.assign({position:s},c&&I4e),B=u===!0?k4e({x:m,y:b},Ka(n)):{x:m,y:b};if(m=B.x,b=B.y,l){var E;return Object.assign({},K,(E={},E[P]=$?"0":"",E[D]=S?"0":"",E.transform=(U.devicePixelRatio||1)<=1?"translate("+m+"px, "+b+"px)":"translate3d("+m+"px, "+b+"px, 0)",E))}return Object.assign({},K,(t={},t[P]=$?b+"px":"",t[D]=S?m+"px":"",t.transform="",t))}function D4e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Zs(t.placement),variation:Ip(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,wP(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wP(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const L4e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:D4e,data:{}};var Ny={passive:!0};function O4e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,l=Ka(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,Ny)}),s&&l.addEventListener("resize",n.update,Ny),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ny)}),s&&l.removeEventListener("resize",n.update,Ny)}}const P4e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:O4e,data:{}};var M4e={left:"right",right:"left",bottom:"top",top:"bottom"};function l3(e){return e.replace(/left|right|bottom|top/g,function(t){return M4e[t]})}var B4e={start:"end",end:"start"};function _P(e){return e.replace(/start|end/g,function(t){return B4e[t]})}function Fx(e){var t=Ka(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ux(e){return $p(pc(e)).left+Fx(e).scrollLeft}function N4e(e,t){var n=Ka(e),r=pc(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var c=wW();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+Ux(e),y:l}}function F4e(e){var t,n=pc(e),r=Fx(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=lf(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=lf(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Ux(e),l=-r.scrollTop;return Kl(i||n).direction==="rtl"&&(s+=lf(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function Hx(e){var t=Kl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function $W(e){return["html","body","#document"].indexOf(tl(e))>=0?e.ownerDocument.body:Lo(e)&&Hx(e)?e:$W(HT(e))}function s1(e,t){var n;t===void 0&&(t=[]);var r=$W(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Ka(r),o=i?[a].concat(a.visualViewport||[],Hx(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(s1(HT(o)))}function iC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function U4e(e,t){var n=$p(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function CP(e,t,n){return t===AW?iC(N4e(e,n)):Af(t)?U4e(t,n):iC(F4e(pc(e)))}function H4e(e){var t=s1(HT(e)),n=["absolute","fixed"].indexOf(Kl(e).position)>=0,r=n&&Lo(e)?qm(e):e;return Af(r)?t.filter(function(i){return Af(i)&&_W(i,r)&&tl(i)!=="body"}):[]}function j4e(e,t,n,r){var i=t==="clippingParents"?H4e(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(l,c){var u=CP(e,c,r);return l.top=lf(u.top,l.top),l.right=_2(u.right,l.right),l.bottom=_2(u.bottom,l.bottom),l.left=lf(u.left,l.left),l},CP(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function IW(e){var t=e.reference,n=e.element,r=e.placement,i=r?Zs(r):null,a=r?Ip(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case wa:l={x:o,y:t.y-n.height};break;case Uo:l={x:o,y:t.y+t.height};break;case Ho:l={x:t.x+t.width,y:s};break;case _a:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?Nx(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Rp:l[c]=l[c]-(t[u]/2-n[u]/2);break;case Z1:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function X1(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,l=s===void 0?l4e:s,c=n.rootBoundary,u=c===void 0?AW:c,d=n.elementContext,p=d===void 0?g0:d,m=n.altBoundary,y=m===void 0?!1:m,b=n.padding,_=b===void 0?0:b,S=RW(typeof _!="number"?_:xW(_,Jm)),$=p===g0?u4e:g0,D=e.rects.popper,P=e.elements[y?$:p],U=j4e(Af(P)?P:P.contextElement||pc(e.elements.popper),l,u,o),L=$p(e.elements.reference),F=IW({reference:L,element:D,strategy:"absolute",placement:i}),G=iC(Object.assign({},D,F)),ie=p===g0?G:L,se={top:U.top-ie.top+S.top,bottom:ie.bottom-U.bottom+S.bottom,left:U.left-ie.left+S.left,right:ie.right-U.right+S.right},K=e.modifiersData.offset;if(p===g0&&K){var B=K[i];Object.keys(se).forEach(function(E){var f=[Ho,Uo].indexOf(E)>=0?1:-1,h=[wa,Uo].indexOf(E)>=0?"y":"x";se[E]+=B[h]*f})}return se}function V4e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?SW:l,u=Ip(r),d=u?s?AP:AP.filter(function(y){return Ip(y)===u}):Jm,p=d.filter(function(y){return c.indexOf(y)>=0});p.length===0&&(p=d);var m=p.reduce(function(y,b){return y[b]=X1(e,{placement:b,boundary:i,rootBoundary:a,padding:o})[Zs(b)],y},{});return Object.keys(m).sort(function(y,b){return m[y]-m[b]})}function J4e(e){if(Zs(e)===Px)return[];var t=l3(e);return[_P(e),t,_P(t)]}function q4e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,b=n.allowedAutoPlacements,_=t.options.placement,S=Zs(_),$=S===_,D=l||($||!y?[l3(_)]:J4e(_)),P=[_].concat(D).reduce(function(ne,N){return ne.concat(Zs(N)===Px?V4e(t,{placement:N,boundary:u,rootBoundary:d,padding:c,flipVariations:y,allowedAutoPlacements:b}):N)},[]),U=t.rects.reference,L=t.rects.popper,F=new Map,G=!0,ie=P[0],se=0;se<P.length;se++){var K=P[se],B=Zs(K),E=Ip(K)===Rp,f=[wa,Uo].indexOf(B)>=0,h=f?"width":"height",T=X1(t,{placement:K,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),w=f?E?Ho:_a:E?Uo:wa;U[h]>L[h]&&(w=l3(w));var R=l3(w),I=[];if(a&&I.push(T[B]<=0),s&&I.push(T[w]<=0,T[R]<=0),I.every(function(ne){return ne})){ie=K,G=!1;break}F.set(K,I)}if(G)for(var C=y?3:1,x=function(N){var Y=P.find(function(re){var le=F.get(re);if(le)return le.slice(0,N).every(function(ge){return ge})});if(Y)return ie=Y,"break"},v=C;v>0;v--){var k=x(v);if(k==="break")break}t.placement!==ie&&(t.modifiersData[r]._skip=!0,t.placement=ie,t.reset=!0)}}const G4e={name:"flip",enabled:!0,phase:"main",fn:q4e,requiresIfExists:["offset"],data:{_skip:!1}};function RP(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function xP(e){return[wa,Ho,Uo,_a].some(function(t){return e[t]>=0})}function z4e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=X1(t,{elementContext:"reference"}),s=X1(t,{altBoundary:!0}),l=RP(o,r),c=RP(s,i,a),u=xP(l),d=xP(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const W4e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:z4e};function K4e(e,t,n){var r=Zs(e),i=[_a,wa].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[_a,Ho].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Y4e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=SW.reduce(function(u,d){return u[d]=K4e(d,t.rects,a),u},{}),s=o[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}const Z4e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Y4e};function X4e(e){var t=e.state,n=e.name;t.modifiersData[n]=IW({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Q4e={name:"popperOffsets",enabled:!0,phase:"read",fn:X4e,data:{}};function e5e(e){return e==="x"?"y":"x"}function t5e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,m=p===void 0?!0:p,y=n.tetherOffset,b=y===void 0?0:y,_=X1(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),S=Zs(t.placement),$=Ip(t.placement),D=!$,P=Nx(S),U=e5e(P),L=t.modifiersData.popperOffsets,F=t.rects.reference,G=t.rects.popper,ie=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,se=typeof ie=="number"?{mainAxis:ie,altAxis:ie}:Object.assign({mainAxis:0,altAxis:0},ie),K=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(L){if(a){var E,f=P==="y"?wa:_a,h=P==="y"?Uo:Ho,T=P==="y"?"height":"width",w=L[P],R=w+_[f],I=w-_[h],C=m?-G[T]/2:0,x=$===Rp?F[T]:G[T],v=$===Rp?-G[T]:-F[T],k=t.elements.arrow,ne=m&&k?Bx(k):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:CW(),Y=N[f],re=N[h],le=o1(0,F[T],ne[T]),ge=D?F[T]/2-C-le-Y-se.mainAxis:x-le-Y-se.mainAxis,Se=D?-F[T]/2+C+le+re+se.mainAxis:v+le+re+se.mainAxis,j=t.elements.arrow&&qm(t.elements.arrow),M=j?P==="y"?j.clientTop||0:j.clientLeft||0:0,z=(E=K==null?void 0:K[P])!=null?E:0,W=w+ge-z-M,ee=w+Se-z,ve=o1(m?_2(R,W):R,w,m?lf(I,ee):I);L[P]=ve,B[P]=ve-w}if(s){var he,oe=P==="x"?wa:_a,ye=P==="x"?Uo:Ho,we=L[U],Te=U==="y"?"height":"width",Ve=we+_[oe],Ke=we-_[ye],je=[wa,_a].indexOf(S)!==-1,Ge=(he=K==null?void 0:K[U])!=null?he:0,pe=je?Ve:we-F[Te]-G[Te]-Ge+se.altAxis,Ae=je?we+F[Te]+G[Te]-Ge-se.altAxis:Ke,Fe=m&&je?_4e(pe,we,Ae):o1(m?pe:Ve,we,m?Ae:Ke);L[U]=Fe,B[U]=Fe-we}t.modifiersData[r]=B}}const n5e={name:"preventOverflow",enabled:!0,phase:"main",fn:t5e,requiresIfExists:["offset"]};function r5e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function i5e(e){return e===Ka(e)||!Lo(e)?Fx(e):r5e(e)}function a5e(e){var t=e.getBoundingClientRect(),n=xp(t.width)/e.offsetWidth||1,r=xp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function o5e(e,t,n){n===void 0&&(n=!1);var r=Lo(t),i=Lo(t)&&a5e(t),a=pc(t),o=$p(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((tl(t)!=="body"||Hx(a))&&(s=i5e(t)),Lo(t)?(l=$p(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Ux(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function s5e(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function l5e(e){var t=s5e(e);return b4e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function u5e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function c5e(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var $P={placement:"bottom",modifiers:[],strategy:"absolute"};function IP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function f5e(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?$P:i;return function(s,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},$P,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,m={state:u,setOptions:function(S){var $=typeof S=="function"?S(u.options):S;b(),u.options=Object.assign({},a,u.options,$),u.scrollParents={reference:Af(s)?s1(s):s.contextElement?s1(s.contextElement):[],popper:s1(l)};var D=l5e(c5e([].concat(r,u.options.modifiers)));return u.orderedModifiers=D.filter(function(P){return P.enabled}),y(),m.update()},forceUpdate:function(){if(!p){var S=u.elements,$=S.reference,D=S.popper;if(IP($,D)){u.rects={reference:o5e($,qm(D),u.options.strategy==="fixed"),popper:Bx(D)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(se){return u.modifiersData[se.name]=Object.assign({},se.data)});for(var P=0;P<u.orderedModifiers.length;P++){if(u.reset===!0){u.reset=!1,P=-1;continue}var U=u.orderedModifiers[P],L=U.fn,F=U.options,G=F===void 0?{}:F,ie=U.name;typeof L=="function"&&(u=L({state:u,options:G,name:ie,instance:m})||u)}}}},update:u5e(function(){return new Promise(function(_){m.forceUpdate(),_(u)})}),destroy:function(){b(),p=!0}};if(!IP(s,l))return m;m.setOptions(c).then(function(_){!p&&c.onFirstUpdate&&c.onFirstUpdate(_)});function y(){u.orderedModifiers.forEach(function(_){var S=_.name,$=_.options,D=$===void 0?{}:$,P=_.effect;if(typeof P=="function"){var U=P({state:u,name:S,instance:m,options:D}),L=function(){};d.push(U||L)}})}function b(){d.forEach(function(_){return _()}),d=[]}return m}}var d5e=[P4e,Q4e,L4e,A4e,Z4e,G4e,n5e,$4e,W4e],p5e=f5e({defaultModifiers:d5e});function h5e(e){return typeof e=="function"?e():e}const m5e=Z.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[o,s]=Z.useState(null),l=hi(Z.isValidElement(r)?r.ref:null,n);if(zl(()=>{a||s(h5e(i)||document.body)},[i,a]),zl(()=>{if(o&&!a)return v2(n,o),()=>{v2(n,null)}},[n,o,a]),a){if(Z.isValidElement(r)){const c={ref:l};return Z.cloneElement(r,c)}return q.jsx(Z.Fragment,{children:r})}return q.jsx(Z.Fragment,{children:o&&_m.createPortal(r,o)})}),kW=m5e;function g5e(e){return Gn("MuiPopper",e)}zn("MuiPopper",["root"]);const y5e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],v5e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function b5e(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function aC(e){return typeof e=="function"?e():e}function T5e(e){return e.nodeType!==void 0}const E5e=e=>{const{classes:t}=e;return nr({root:["root"]},g5e,t)},A5e={},S5e=Z.forwardRef(function(t,n){var r;const{anchorEl:i,children:a,direction:o,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:p,slotProps:m={},slots:y={},TransitionProps:b}=t,_=en(t,y5e),S=Z.useRef(null),$=hi(S,n),D=Z.useRef(null),P=hi(D,p),U=Z.useRef(P);zl(()=>{U.current=P},[P]),Z.useImperativeHandle(p,()=>D.current,[]);const L=b5e(u,o),[F,G]=Z.useState(L),[ie,se]=Z.useState(aC(i));Z.useEffect(()=>{D.current&&D.current.forceUpdate()}),Z.useEffect(()=>{i&&se(aC(i))},[i]),zl(()=>{if(!ie||!c)return;const h=R=>{G(R.placement)};let T=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:R})=>{h(R)}}];l!=null&&(T=T.concat(l)),d&&d.modifiers!=null&&(T=T.concat(d.modifiers));const w=p5e(ie,S.current,Ie({placement:L},d,{modifiers:T}));return U.current(w),()=>{w.destroy(),U.current(null)}},[ie,s,l,c,d,L]);const K={placement:F};b!==null&&(K.TransitionProps=b);const B=E5e(t),E=(r=y.root)!=null?r:"div",f=vf({elementType:E,externalSlotProps:m.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:$},ownerState:t,className:B.root});return q.jsx(E,Ie({},f,{children:typeof a=="function"?a(K):a}))}),w5e=Z.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:p=A5e,popperRef:m,style:y,transition:b=!1,slotProps:_={},slots:S={}}=t,$=en(t,v5e),[D,P]=Z.useState(!0),U=()=>{P(!1)},L=()=>{P(!0)};if(!l&&!u&&(!b||D))return null;let F;if(a)F=a;else if(r){const se=aC(r);F=se&&T5e(se)?Ai(se).body:Ai(null).body}const G=!u&&l&&(!b||D)?"none":void 0,ie=b?{in:u,onEnter:U,onExited:L}:void 0;return q.jsx(kW,{disablePortal:s,container:F,children:q.jsx(S5e,Ie({anchorEl:r,direction:o,disablePortal:s,modifiers:c,ref:n,open:b?!D:u,placement:d,popperOptions:p,popperRef:m,slotProps:_,slots:S},$,{style:Ie({position:"fixed",top:0,left:0,display:G},y),TransitionProps:ie,children:i}))})}),_5e=w5e,C5e=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],R5e=Zt(_5e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),x5e=Z.forwardRef(function(t,n){var r;const i=TW(),a=Zn({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:l,componentsProps:c,container:u,disablePortal:d,keepMounted:p,modifiers:m,open:y,placement:b,popperOptions:_,popperRef:S,transition:$,slots:D,slotProps:P}=a,U=en(a,C5e),L=(r=D==null?void 0:D.root)!=null?r:l==null?void 0:l.Root,F=Ie({anchorEl:o,container:u,disablePortal:d,keepMounted:p,modifiers:m,open:y,placement:b,popperOptions:_,popperRef:S,transition:$},U);return q.jsx(R5e,Ie({as:s,direction:i==null?void 0:i.direction,slots:{root:L},slotProps:P??c},F,{ref:n}))}),jT=x5e,$5e=NT(q.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function I5e(e){return Gn("MuiChip",e)}const k5e=zn("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),qn=k5e,D5e=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],L5e=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:o,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled",`size${Pt(r)}`,`color${Pt(i)}`,s&&"clickable",s&&`clickableColor${Pt(i)}`,o&&"deletable",o&&`deletableColor${Pt(i)}`,`${l}${Pt(i)}`],label:["label",`label${Pt(r)}`],avatar:["avatar",`avatar${Pt(r)}`,`avatarColor${Pt(i)}`],icon:["icon",`icon${Pt(r)}`,`iconColor${Pt(a)}`],deleteIcon:["deleteIcon",`deleteIcon${Pt(r)}`,`deleteIconColor${Pt(i)}`,`deleteIcon${Pt(l)}Color${Pt(i)}`]};return nr(c,I5e,t)},O5e=Zt("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:o,size:s,variant:l}=n;return[{[`& .${qn.avatar}`]:t.avatar},{[`& .${qn.avatar}`]:t[`avatar${Pt(s)}`]},{[`& .${qn.avatar}`]:t[`avatarColor${Pt(r)}`]},{[`& .${qn.icon}`]:t.icon},{[`& .${qn.icon}`]:t[`icon${Pt(s)}`]},{[`& .${qn.icon}`]:t[`iconColor${Pt(i)}`]},{[`& .${qn.deleteIcon}`]:t.deleteIcon},{[`& .${qn.deleteIcon}`]:t[`deleteIcon${Pt(s)}`]},{[`& .${qn.deleteIcon}`]:t[`deleteIconColor${Pt(r)}`]},{[`& .${qn.deleteIcon}`]:t[`deleteIcon${Pt(l)}Color${Pt(r)}`]},t.root,t[`size${Pt(s)}`],t[`color${Pt(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${Pt(r)})`],o&&t.deletable,o&&r!=="default"&&t[`deletableColor${Pt(r)}`],t[l],t[`${l}${Pt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Ie({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${qn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${qn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${qn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${qn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${qn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${qn.icon}`]:Ie({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&Ie({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${qn.deleteIcon}`]:Ie({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Er(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Er(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Er(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${qn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Er(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${qn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>Ie({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Er(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${qn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Er(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${qn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>Ie({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${qn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${qn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${qn.avatar}`]:{marginLeft:4},[`& .${qn.avatarSmall}`]:{marginLeft:2},[`& .${qn.icon}`]:{marginLeft:4},[`& .${qn.iconSmall}`]:{marginLeft:2},[`& .${qn.deleteIcon}`]:{marginRight:5},[`& .${qn.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Er(e.palette[t.color].main,.7)}`,[`&.${qn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Er(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${qn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Er(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${qn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Er(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),P5e=Zt("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Pt(r)}`]]}})(({ownerState:e})=>Ie({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function kP(e){return e.key==="Backspace"||e.key==="Delete"}const M5e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:o,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:p,onClick:m,onDelete:y,onKeyDown:b,onKeyUp:_,size:S="medium",variant:$="filled",tabIndex:D,skipFocusWhenDisabled:P=!1}=r,U=en(r,D5e),L=Z.useRef(null),F=hi(L,n),G=I=>{I.stopPropagation(),y&&y(I)},ie=I=>{I.currentTarget===I.target&&kP(I)&&I.preventDefault(),b&&b(I)},se=I=>{I.currentTarget===I.target&&(y&&kP(I)?y(I):I.key==="Escape"&&L.current&&L.current.blur()),_&&_(I)},K=o!==!1&&m?!0:o,B=K||y?Y1:l||"div",E=Ie({},r,{component:B,disabled:u,size:S,color:s,iconColor:Z.isValidElement(d)&&d.props.color||s,onDelete:!!y,clickable:K,variant:$}),f=L5e(E),h=B===Y1?Ie({component:l||"div",focusVisibleClassName:f.focusVisible},y&&{disableRipple:!0}):{};let T=null;y&&(T=c&&Z.isValidElement(c)?Z.cloneElement(c,{className:tn(c.props.className,f.deleteIcon),onClick:G}):q.jsx($5e,{className:tn(f.deleteIcon),onClick:G}));let w=null;i&&Z.isValidElement(i)&&(w=Z.cloneElement(i,{className:tn(f.avatar,i.props.className)}));let R=null;return d&&Z.isValidElement(d)&&(R=Z.cloneElement(d,{className:tn(f.icon,d.props.className)})),q.jsxs(O5e,Ie({as:B,className:tn(f.root,a),disabled:K&&u?!0:void 0,onClick:m,onKeyDown:ie,onKeyUp:se,ref:F,tabIndex:P&&u?-1:D,ownerState:E},h,U,{children:[w||R,q.jsx(P5e,{className:tn(f.label),ownerState:E,children:p}),T]}))}),DW=M5e,B5e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],N5e={entering:{opacity:1},entered:{opacity:1}},F5e=Z.forwardRef(function(t,n){const r=ru(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:m,onExited:y,onExiting:b,style:_,timeout:S=i,TransitionComponent:$=FT}=t,D=en(t,B5e),P=Z.useRef(null),U=hi(P,s.ref,n),L=f=>h=>{if(f){const T=P.current;h===void 0?f(T):f(T,h)}},F=L(p),G=L((f,h)=>{Lx(f);const T=rc({style:_,timeout:S,easing:l},{mode:"enter"});f.style.webkitTransition=r.transitions.create("opacity",T),f.style.transition=r.transitions.create("opacity",T),u&&u(f,h)}),ie=L(d),se=L(b),K=L(f=>{const h=rc({style:_,timeout:S,easing:l},{mode:"exit"});f.style.webkitTransition=r.transitions.create("opacity",h),f.style.transition=r.transitions.create("opacity",h),m&&m(f)}),B=L(y),E=f=>{a&&a(P.current,f)};return q.jsx($,Ie({appear:o,in:c,nodeRef:P,onEnter:G,onEntered:ie,onEntering:F,onExit:K,onExited:B,onExiting:se,addEndListener:E,timeout:S},D,{children:(f,h)=>Z.cloneElement(s,Ie({style:Ie({opacity:0,visibility:f==="exited"&&!c?"hidden":void 0},N5e[f],_,s.props.style),ref:U},h))}))}),VT=F5e;function U5e(e){return Gn("MuiBackdrop",e)}zn("MuiBackdrop",["root","invisible"]);const H5e=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],j5e=e=>{const{classes:t,invisible:n}=e;return nr({root:["root",n&&"invisible"]},U5e,t)},V5e=Zt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Ie({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),J5e=Z.forwardRef(function(t,n){var r,i,a;const o=Zn({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:u={},componentsProps:d={},invisible:p=!1,open:m,slotProps:y={},slots:b={},TransitionComponent:_=VT,transitionDuration:S}=o,$=en(o,H5e),D=Ie({},o,{component:c,invisible:p}),P=j5e(D),U=(r=y.root)!=null?r:d.root;return q.jsx(_,Ie({in:m,timeout:S},$,{children:q.jsx(V5e,Ie({"aria-hidden":!0},U,{as:(i=(a=b.root)!=null?a:u.Root)!=null?i:c,className:tn(P.root,l,U==null?void 0:U.className),ownerState:Ie({},D,U==null?void 0:U.ownerState),classes:P,ref:n,children:s}))}))}),LW=J5e,q5e=zn("MuiBox",["root"]),G5e=q5e,z5e=Nm(),W5e=mge({themeId:_p,defaultTheme:z5e,defaultClassName:G5e.root,generateClassName:tx.generate}),Et=W5e;function K5e(e){return Gn("MuiButton",e)}const Y5e=zn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Fy=Y5e,Z5e=Z.createContext({}),X5e=Z5e,Q5e=Z.createContext(void 0),e6e=Q5e,t6e=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],n6e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Pt(t)}`,`size${Pt(i)}`,`${a}Size${Pt(i)}`,`color${Pt(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Pt(i)}`],endIcon:["icon","endIcon",`iconSize${Pt(i)}`]},l=nr(s,K5e,o);return Ie({},o,l)},OW=e=>Ie({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),r6e=Zt(Y1,{shouldForwardProp:e=>ST(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Pt(n.color)}`],t[`size${Pt(n.size)}`],t[`${n.variant}Size${Pt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Ie({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Ie({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Er(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Er(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Er(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Ie({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Fy.focusVisible}`]:Ie({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Fy.disabled}`]:Ie({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Er(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Fy.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fy.disabled}`]:{boxShadow:"none"}}),i6e=Zt("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Pt(n.size)}`]]}})(({ownerState:e})=>Ie({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},OW(e))),a6e=Zt("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Pt(n.size)}`]]}})(({ownerState:e})=>Ie({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},OW(e))),o6e=Z.forwardRef(function(t,n){const r=Z.useContext(X5e),i=Z.useContext(e6e),a=G1(r,t),o=Zn({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:y,focusVisibleClassName:b,fullWidth:_=!1,size:S="medium",startIcon:$,type:D,variant:P="text"}=o,U=en(o,t6e),L=Ie({},o,{color:l,component:c,disabled:d,disableElevation:p,disableFocusRipple:m,fullWidth:_,size:S,type:D,variant:P}),F=n6e(L),G=$&&q.jsx(i6e,{className:F.startIcon,ownerState:L,children:$}),ie=y&&q.jsx(a6e,{className:F.endIcon,ownerState:L,children:y}),se=i||"";return q.jsxs(r6e,Ie({ownerState:L,className:tn(r.className,F.root,u,se),component:c,disabled:d,focusRipple:!m,focusVisibleClassName:tn(F.focusVisible,b),ref:n,type:D},U,{classes:F,children:[G,s,ie]}))}),PW=o6e;function s6e(e){return Gn("MuiCard",e)}zn("MuiCard",["root"]);const l6e=["className","raised"],u6e=e=>{const{classes:t}=e;return nr({root:["root"]},s6e,t)},c6e=Zt(dh,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),f6e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiCard"}),{className:i,raised:a=!1}=r,o=en(r,l6e),s=Ie({},r,{raised:a}),l=u6e(s);return q.jsx(c6e,Ie({className:tn(l.root,i),elevation:a?8:void 0,ref:n,ownerState:s},o))}),d6e=f6e;function p6e(e){return Gn("MuiCardActions",e)}zn("MuiCardActions",["root","spacing"]);const h6e=["disableSpacing","className"],m6e=e=>{const{classes:t,disableSpacing:n}=e;return nr({root:["root",!n&&"spacing"]},p6e,t)},g6e=Zt("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>Ie({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),y6e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiCardActions"}),{disableSpacing:i=!1,className:a}=r,o=en(r,h6e),s=Ie({},r,{disableSpacing:i}),l=m6e(s);return q.jsx(g6e,Ie({className:tn(l.root,a),ownerState:s,ref:n},o))}),v6e=y6e;function b6e(e){return Gn("MuiCardContent",e)}zn("MuiCardContent",["root"]);const T6e=["className","component"],E6e=e=>{const{classes:t}=e;return nr({root:["root"]},b6e,t)},A6e=Zt("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),S6e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiCardContent"}),{className:i,component:a="div"}=r,o=en(r,T6e),s=Ie({},r,{component:a}),l=E6e(s);return q.jsx(A6e,Ie({as:a,className:tn(l.root,i),ownerState:s,ref:n},o))}),w6e=S6e;function _6e(e){return Gn("MuiCardHeader",e)}const C6e=zn("MuiCardHeader",["root","avatar","action","content","title","subheader"]),DP=C6e,R6e=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],x6e=e=>{const{classes:t}=e;return nr({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},_6e,t)},$6e=Zt("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>Ie({[`& .${DP.title}`]:t.title,[`& .${DP.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),I6e=Zt("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),k6e=Zt("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),D6e=Zt("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),L6e=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiCardHeader"}),{action:i,avatar:a,className:o,component:s="div",disableTypography:l=!1,subheader:c,subheaderTypographyProps:u,title:d,titleTypographyProps:p}=r,m=en(r,R6e),y=Ie({},r,{component:s,disableTypography:l}),b=x6e(y);let _=d;_!=null&&_.type!==or&&!l&&(_=q.jsx(or,Ie({variant:a?"body2":"h5",className:b.title,component:"span",display:"block"},p,{children:_})));let S=c;return S!=null&&S.type!==or&&!l&&(S=q.jsx(or,Ie({variant:a?"body2":"body1",className:b.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:S}))),q.jsxs($6e,Ie({className:tn(b.root,o),as:s,ref:n,ownerState:y},m,{children:[a&&q.jsx(I6e,{className:b.avatar,ownerState:y,children:a}),q.jsxs(D6e,{className:b.content,ownerState:y,children:[_,S]}),i&&q.jsx(k6e,{className:b.action,ownerState:y,children:i})]}))}),O6e=L6e;function LP(e){return e.substring(2).toLowerCase()}function P6e(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function jx(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:a="onTouchEnd"}=e,o=Z.useRef(!1),s=Z.useRef(null),l=Z.useRef(!1),c=Z.useRef(!1);Z.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=hi(t.ref,s),d=Gs(y=>{const b=c.current;c.current=!1;const _=Ai(s.current);if(!l.current||!s.current||"clientX"in y&&P6e(y,_))return;if(o.current){o.current=!1;return}let S;y.composedPath?S=y.composedPath().indexOf(s.current)>-1:S=!_.documentElement.contains(y.target)||s.current.contains(y.target),!S&&(n||!b)&&i(y)}),p=y=>b=>{c.current=!0;const _=t.props[y];_&&_(b)},m={ref:u};return a!==!1&&(m[a]=p(a)),Z.useEffect(()=>{if(a!==!1){const y=LP(a),b=Ai(s.current),_=()=>{o.current=!0};return b.addEventListener(y,d),b.addEventListener("touchmove",_),()=>{b.removeEventListener(y,d),b.removeEventListener("touchmove",_)}}},[d,a]),r!==!1&&(m[r]=p(r)),Z.useEffect(()=>{if(r!==!1){const y=LP(r),b=Ai(s.current);return b.addEventListener(y,d),()=>{b.removeEventListener(y,d)}}},[d,r]),q.jsx(Z.Fragment,{children:Z.cloneElement(t,m)})}const M6e=Aye({createStyledComponent:Zt("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Pt(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Zn({props:e,name:"MuiContainer"})}),B6e=M6e;function N6e(e){const t=Ai(e);return t.body===e?nc(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function l1(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function OP(e){return parseInt(nc(e).getComputedStyle(e).paddingRight,10)||0}function F6e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function PP(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!F6e(o);s&&l&&l1(o,i)})}function fw(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function U6e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(N6e(r)){const o=OG(Ai(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${OP(r)+o}px`;const s=Ai(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${OP(l)+o}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Ai(r).body;else{const o=r.parentElement,s=nc(r);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function H6e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class j6e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&l1(t.modalRef,!1);const i=H6e(n);PP(n,t.mount,t.modalRef,i,!0);const a=fw(this.containers,o=>o.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=fw(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=U6e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=fw(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&l1(t.modalRef,n),PP(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&l1(o.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const V6e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function J6e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function q6e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function G6e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||q6e(e))}function z6e(e){const t=[],n=[];return Array.from(e.querySelectorAll(V6e)).forEach((r,i)=>{const a=J6e(r);a===-1||!G6e(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function W6e(){return!0}function K6e(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=z6e,isEnabled:o=W6e,open:s}=e,l=Z.useRef(!1),c=Z.useRef(null),u=Z.useRef(null),d=Z.useRef(null),p=Z.useRef(null),m=Z.useRef(!1),y=Z.useRef(null),b=hi(t.ref,y),_=Z.useRef(null);Z.useEffect(()=>{!s||!y.current||(m.current=!n)},[n,s]),Z.useEffect(()=>{if(!s||!y.current)return;const D=Ai(y.current);return y.current.contains(D.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),m.current&&y.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),Z.useEffect(()=>{if(!s||!y.current)return;const D=Ai(y.current),P=F=>{_.current=F,!(r||!o()||F.key!=="Tab")&&D.activeElement===y.current&&F.shiftKey&&(l.current=!0,u.current&&u.current.focus())},U=()=>{const F=y.current;if(F===null)return;if(!D.hasFocus()||!o()||l.current){l.current=!1;return}if(F.contains(D.activeElement)||r&&D.activeElement!==c.current&&D.activeElement!==u.current)return;if(D.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let G=[];if((D.activeElement===c.current||D.activeElement===u.current)&&(G=a(y.current)),G.length>0){var ie,se;const K=!!((ie=_.current)!=null&&ie.shiftKey&&((se=_.current)==null?void 0:se.key)==="Tab"),B=G[0],E=G[G.length-1];typeof B!="string"&&typeof E!="string"&&(K?E.focus():B.focus())}else F.focus()};D.addEventListener("focusin",U),D.addEventListener("keydown",P,!0);const L=setInterval(()=>{D.activeElement&&D.activeElement.tagName==="BODY"&&U()},50);return()=>{clearInterval(L),D.removeEventListener("focusin",U),D.removeEventListener("keydown",P,!0)}},[n,r,i,o,s,a]);const S=D=>{d.current===null&&(d.current=D.relatedTarget),m.current=!0,p.current=D.target;const P=t.props.onFocus;P&&P(D)},$=D=>{d.current===null&&(d.current=D.relatedTarget),m.current=!0};return q.jsxs(Z.Fragment,{children:[q.jsx("div",{tabIndex:s?0:-1,onFocus:$,ref:c,"data-testid":"sentinelStart"}),Z.cloneElement(t,{ref:b,onFocus:S}),q.jsx("div",{tabIndex:s?0:-1,onFocus:$,ref:u,"data-testid":"sentinelEnd"})]})}function Y6e(e){return typeof e=="function"?e():e}function Z6e(e){return e?e.props.hasOwnProperty("in"):!1}const X6e=new j6e;function Q6e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=X6e,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=Z.useRef({}),m=Z.useRef(null),y=Z.useRef(null),b=hi(y,d),[_,S]=Z.useState(!u),$=Z6e(l);let D=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(D=!1);const P=()=>Ai(m.current),U=()=>(p.current.modalRef=y.current,p.current.mount=m.current,p.current),L=()=>{i.mount(U(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},F=Gs(()=>{const T=Y6e(t)||P().body;i.add(U(),T),y.current&&L()}),G=Z.useCallback(()=>i.isTopModal(U()),[i]),ie=Gs(T=>{m.current=T,T&&(u&&G()?L():y.current&&l1(y.current,D))}),se=Z.useCallback(()=>{i.remove(U(),D)},[D,i]);Z.useEffect(()=>()=>{se()},[se]),Z.useEffect(()=>{u?F():(!$||!a)&&se()},[u,se,$,a,F]);const K=T=>w=>{var R;(R=T.onKeyDown)==null||R.call(T,w),!(w.key!=="Escape"||w.which===229||!G())&&(n||(w.stopPropagation(),c&&c(w,"escapeKeyDown")))},B=T=>w=>{var R;(R=T.onClick)==null||R.call(T,w),w.target===w.currentTarget&&c&&c(w,"backdropClick")};return{getRootProps:(T={})=>{const w=MG(e);delete w.onTransitionEnter,delete w.onTransitionExited;const R=Ie({},w,T);return Ie({role:"presentation"},R,{onKeyDown:K(R),ref:b})},getBackdropProps:(T={})=>{const w=T;return Ie({"aria-hidden":!0},w,{onClick:B(w),open:u})},getTransitionProps:()=>{const T=()=>{S(!1),o&&o()},w=()=>{S(!0),s&&s(),a&&se()};return{onEnter:N6(T,l==null?void 0:l.props.onEnter),onExited:N6(w,l==null?void 0:l.props.onExited)}},rootRef:b,portalRef:ie,isTopModal:G,exited:_,hasTransition:$}}function eCe(e){return Gn("MuiModal",e)}zn("MuiModal",["root","hidden","backdrop"]);const tCe=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],nCe=e=>{const{open:t,exited:n,classes:r}=e;return nr({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},eCe,r)},rCe=Zt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Ie({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),iCe=Zt(LW,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),aCe=Z.forwardRef(function(t,n){var r,i,a,o,s,l;const c=Zn({name:"MuiModal",props:t}),{BackdropComponent:u=iCe,BackdropProps:d,className:p,closeAfterTransition:m=!1,children:y,container:b,component:_,components:S={},componentsProps:$={},disableAutoFocus:D=!1,disableEnforceFocus:P=!1,disableEscapeKeyDown:U=!1,disablePortal:L=!1,disableRestoreFocus:F=!1,disableScrollLock:G=!1,hideBackdrop:ie=!1,keepMounted:se=!1,onBackdropClick:K,open:B,slotProps:E,slots:f}=c,h=en(c,tCe),T=Ie({},c,{closeAfterTransition:m,disableAutoFocus:D,disableEnforceFocus:P,disableEscapeKeyDown:U,disablePortal:L,disableRestoreFocus:F,disableScrollLock:G,hideBackdrop:ie,keepMounted:se}),{getRootProps:w,getBackdropProps:R,getTransitionProps:I,portalRef:C,isTopModal:x,exited:v,hasTransition:k}=Q6e(Ie({},T,{rootRef:n})),ne=Ie({},T,{exited:v}),N=nCe(ne),Y={};if(y.props.tabIndex===void 0&&(Y.tabIndex="-1"),k){const{onEnter:z,onExited:W}=I();Y.onEnter=z,Y.onExited=W}const re=(r=(i=f==null?void 0:f.root)!=null?i:S.Root)!=null?r:rCe,le=(a=(o=f==null?void 0:f.backdrop)!=null?o:S.Backdrop)!=null?a:u,ge=(s=E==null?void 0:E.root)!=null?s:$.root,Se=(l=E==null?void 0:E.backdrop)!=null?l:$.backdrop,j=vf({elementType:re,externalSlotProps:ge,externalForwardedProps:h,getSlotProps:w,additionalProps:{ref:n,as:_},ownerState:ne,className:tn(p,ge==null?void 0:ge.className,N==null?void 0:N.root,!ne.open&&ne.exited&&(N==null?void 0:N.hidden))}),M=vf({elementType:le,externalSlotProps:Se,additionalProps:d,getSlotProps:z=>R(Ie({},z,{onClick:W=>{K&&K(W),z!=null&&z.onClick&&z.onClick(W)}})),className:tn(Se==null?void 0:Se.className,d==null?void 0:d.className,N==null?void 0:N.backdrop),ownerState:ne});return!se&&!B&&(!k||v)?null:q.jsx(kW,{ref:C,container:b,disablePortal:L,children:q.jsxs(re,Ie({},j,{children:[!ie&&u?q.jsx(le,Ie({},M)):null,q.jsx(K6e,{disableEnforceFocus:P,disableAutoFocus:D,disableRestoreFocus:F,isEnabled:x,open:B,children:Z.cloneElement(y,Y)})]}))})}),MW=aCe;function oCe(e){return Gn("MuiDialog",e)}const sCe=zn("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),dw=sCe,lCe=Z.createContext({}),BW=lCe,uCe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],cCe=Zt(LW,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),fCe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,o={root:["root"],container:["container",`scroll${Pt(n)}`],paper:["paper",`paperScroll${Pt(n)}`,`paperWidth${Pt(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return nr(o,oCe,t)},dCe=Zt(MW,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),pCe=Zt("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Pt(n.scroll)}`]]}})(({ownerState:e})=>Ie({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),hCe=Zt(dh,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Pt(n.scroll)}`],t[`paperWidth${Pt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>Ie({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${dw.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${dw.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${dw.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),mCe=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiDialog"}),i=ru(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:y=!1,maxWidth:b="sm",onBackdropClick:_,onClick:S,onClose:$,open:D,PaperComponent:P=dh,PaperProps:U={},scroll:L="paper",TransitionComponent:F=VT,transitionDuration:G=a,TransitionProps:ie}=r,se=en(r,uCe),K=Ie({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:y,maxWidth:b,scroll:L}),B=fCe(K),E=Z.useRef(),f=R=>{E.current=R.target===R.currentTarget},h=R=>{S&&S(R),E.current&&(E.current=null,_&&_(R),$&&$(R,"backdropClick"))},T=ox(s),w=Z.useMemo(()=>({titleId:T}),[T]);return q.jsx(dCe,Ie({className:tn(B.root,d),closeAfterTransition:!0,components:{Backdrop:cCe},componentsProps:{backdrop:Ie({transitionDuration:G,as:l},c)},disableEscapeKeyDown:p,onClose:$,open:D,ref:n,onClick:h,ownerState:K},se,{children:q.jsx(F,Ie({appear:!0,in:D,timeout:G,role:"presentation"},ie,{children:q.jsx(pCe,{className:tn(B.container),onMouseDown:f,ownerState:K,children:q.jsx(hCe,Ie({as:P,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":T},U,{className:tn(B.paper,U.className),ownerState:K,children:q.jsx(BW.Provider,{value:w,children:u})}))})}))}))}),Vx=mCe;function gCe(e){return Gn("MuiDialogActions",e)}zn("MuiDialogActions",["root","spacing"]);const yCe=["className","disableSpacing"],vCe=e=>{const{classes:t,disableSpacing:n}=e;return nr({root:["root",!n&&"spacing"]},gCe,t)},bCe=Zt("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>Ie({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),TCe=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1}=r,o=en(r,yCe),s=Ie({},r,{disableSpacing:a}),l=vCe(s);return q.jsx(bCe,Ie({className:tn(l.root,i),ownerState:s,ref:n},o))}),ECe=TCe;function ACe(e){return Gn("MuiDialogContent",e)}zn("MuiDialogContent",["root","dividers"]);function SCe(e){return Gn("MuiDialogTitle",e)}const wCe=zn("MuiDialogTitle",["root"]),_Ce=wCe,CCe=["className","dividers"],RCe=e=>{const{classes:t,dividers:n}=e;return nr({root:["root",n&&"dividers"]},ACe,t)},xCe=Zt("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>Ie({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${_Ce.root} + &`]:{paddingTop:0}})),$Ce=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1}=r,o=en(r,CCe),s=Ie({},r,{dividers:a}),l=RCe(s);return q.jsx(xCe,Ie({className:tn(l.root,i),ownerState:s,ref:n},o))}),Jx=$Ce,ICe=["className","id"],kCe=e=>{const{classes:t}=e;return nr({root:["root"]},SCe,t)},DCe=Zt(or,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),LCe=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiDialogTitle"}),{className:i,id:a}=r,o=en(r,ICe),s=r,l=kCe(s),{titleId:c=a}=Z.useContext(BW);return q.jsx(DCe,Ie({component:"h2",className:tn(l.root,i),ownerState:s,ref:n,variant:"h6",id:a??c},o))}),OCe=LCe;function PCe(e){return Gn("MuiDivider",e)}const MCe=zn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),MP=MCe,BCe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],NCe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return nr({root:["root",t&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},PCe,r)},FCe=Zt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Ie({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Er(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Ie({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Ie({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Ie({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Ie({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),UCe=Zt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Ie({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),NW=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:c=!1,orientation:u="horizontal",role:d=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,y=en(r,BCe),b=Ie({},r,{absolute:i,component:s,flexItem:l,light:c,orientation:u,role:d,textAlign:p,variant:m}),_=NCe(b);return q.jsx(FCe,Ie({as:s,className:tn(_.root,o),role:d,ref:n,ownerState:b},y,{children:a?q.jsx(UCe,{className:_.wrapper,ownerState:b,children:a}):null}))});NW.muiSkipListHighlight=!0;const C2=NW,HCe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function jCe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=nc(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const c=a.getComputedStyle(t);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const c=o.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${a.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function VCe(e){return typeof e=="function"?e():e}function Uy(e,t,n){const r=VCe(n),i=jCe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const JCe=Z.forwardRef(function(t,n){const r=ru(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:c,direction:u="down",easing:d=i,in:p,onEnter:m,onEntered:y,onEntering:b,onExit:_,onExited:S,onExiting:$,style:D,timeout:P=a,TransitionComponent:U=FT}=t,L=en(t,HCe),F=Z.useRef(null),G=hi(l.ref,F,n),ie=R=>I=>{R&&(I===void 0?R(F.current):R(F.current,I))},se=ie((R,I)=>{Uy(u,R,c),Lx(R),m&&m(R,I)}),K=ie((R,I)=>{const C=rc({timeout:P,style:D,easing:d},{mode:"enter"});R.style.webkitTransition=r.transitions.create("-webkit-transform",Ie({},C)),R.style.transition=r.transitions.create("transform",Ie({},C)),R.style.webkitTransform="none",R.style.transform="none",b&&b(R,I)}),B=ie(y),E=ie($),f=ie(R=>{const I=rc({timeout:P,style:D,easing:d},{mode:"exit"});R.style.webkitTransition=r.transitions.create("-webkit-transform",I),R.style.transition=r.transitions.create("transform",I),Uy(u,R,c),_&&_(R)}),h=ie(R=>{R.style.webkitTransition="",R.style.transition="",S&&S(R)}),T=R=>{o&&o(F.current,R)},w=Z.useCallback(()=>{F.current&&Uy(u,F.current,c)},[u,c]);return Z.useEffect(()=>{if(p||u==="down"||u==="right")return;const R=ax(()=>{F.current&&Uy(u,F.current,c)}),I=nc(F.current);return I.addEventListener("resize",R),()=>{R.clear(),I.removeEventListener("resize",R)}},[u,p,c]),Z.useEffect(()=>{p||w()},[p,w]),q.jsx(U,Ie({nodeRef:F,onEnter:se,onEntered:B,onEntering:K,onExit:f,onExited:h,onExiting:E,addEndListener:T,appear:s,in:p,timeout:P},L,{children:(R,I)=>Z.cloneElement(l,Ie({ref:G,style:Ie({visibility:R==="exited"&&!p?"hidden":void 0},D,l.props.style)},I))}))}),FW=JCe,qCe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function oC(e){return`scale(${e}, ${e**2})`}const GCe={entering:{opacity:1,transform:oC(1)},entered:{opacity:1,transform:"none"}},pw=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),UW=Z.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:p,onExiting:m,style:y,timeout:b="auto",TransitionComponent:_=FT}=t,S=en(t,qCe),$=Zc(),D=Z.useRef(),P=ru(),U=Z.useRef(null),L=hi(U,a.ref,n),F=h=>T=>{if(h){const w=U.current;T===void 0?h(w):h(w,T)}},G=F(u),ie=F((h,T)=>{Lx(h);const{duration:w,delay:R,easing:I}=rc({style:y,timeout:b,easing:o},{mode:"enter"});let C;b==="auto"?(C=P.transitions.getAutoHeightDuration(h.clientHeight),D.current=C):C=w,h.style.transition=[P.transitions.create("opacity",{duration:C,delay:R}),P.transitions.create("transform",{duration:pw?C:C*.666,delay:R,easing:I})].join(","),l&&l(h,T)}),se=F(c),K=F(m),B=F(h=>{const{duration:T,delay:w,easing:R}=rc({style:y,timeout:b,easing:o},{mode:"exit"});let I;b==="auto"?(I=P.transitions.getAutoHeightDuration(h.clientHeight),D.current=I):I=T,h.style.transition=[P.transitions.create("opacity",{duration:I,delay:w}),P.transitions.create("transform",{duration:pw?I:I*.666,delay:pw?w:w||I*.333,easing:R})].join(","),h.style.opacity=0,h.style.transform=oC(.75),d&&d(h)}),E=F(p),f=h=>{b==="auto"&&$.start(D.current||0,h),r&&r(U.current,h)};return q.jsx(_,Ie({appear:i,in:s,nodeRef:U,onEnter:ie,onEntered:se,onEntering:G,onExit:B,onExited:E,onExiting:K,addEndListener:f,timeout:b==="auto"?null:b},S,{children:(h,T)=>Z.cloneElement(a,Ie({style:Ie({opacity:0,transform:oC(.75),visibility:h==="exited"&&!s?"hidden":void 0},GCe[h],y,a.props.style),ref:L},T))}))});UW.muiSupportAuto=!0;const sC=UW;function zCe(e){return Gn("MuiIcon",e)}const WCe=zn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]),Mvt=WCe,KCe=["baseClassName","className","color","component","fontSize"],YCe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Pt(t)}`,`fontSize${Pt(n)}`]};return nr(i,zCe,r)},ZCe=Zt("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Pt(n.color)}`],t[`fontSize${Pt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),HW=Z.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiIcon"}),{baseClassName:i="material-icons",className:a,color:o="inherit",component:s="span",fontSize:l="medium"}=r,c=en(r,KCe),u=Ie({},r,{baseClassName:i,color:o,component:s,fontSize:l}),d=YCe(u);return q.jsx(ZCe,Ie({as:s,className:tn(i,"notranslate",d.root,a),ownerState:u,"aria-hidden":!0,ref:n},c))});HW.muiName="Icon";const XCe=HW;function QCe(e){return Gn("MuiLinearProgress",e)}const eRe=zn("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]),Bvt=eRe,tRe=["className","color","value","valueBuffer","variant"];let ph=e=>e,BP,NP,FP,UP,HP,jP;const lC=4,nRe=ll(BP||(BP=ph`
|
|
203
203
|
0% {
|
|
204
204
|
left: -35%;
|
|
205
205
|
right: 100%;
|
|
@@ -257,7 +257,7 @@ object-assign
|
|
|
257
257
|
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
258
258
|
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},m7e=function(t){return Yt.createElement(Ef,Object.assign({},t),Yt.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
259
259
|
0 22,12A10,10 0 0,0 12,2Z`}))},Jy={fontSize:20,marginInlineEnd:8},g7e={default:void 0,success:Yt.createElement(d7e,{style:Jy}),warning:Yt.createElement(p7e,{style:Jy}),error:Yt.createElement(h7e,{style:Jy}),info:Yt.createElement(m7e,{style:Jy})};function c1(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];var l=[].concat(o);t&&l.indexOf(t)===-1&&l.push(t),n.apply(this,l),r.apply(this,l)}},function(){})}var y7e=typeof window<"u"?Z.useLayoutEffect:Z.useEffect;function eM(e){var t=Z.useRef(e);return y7e(function(){t.current=e}),Z.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var v7e=Z.forwardRef(function(e,t){var n=e.children,r=e.autoHideDuration,i=e.ClickAwayListenerProps,a=e.disableWindowBlurListener,o=a===void 0?!1:a,s=e.onClose,l=e.onMouseEnter,c=e.onMouseLeave,u=e.open,d=e.resumeHideDuration,p=Ku(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),m=Z.useRef(),y=eM(function(){s&&s.apply(void 0,arguments)}),b=eM(function(U){!s||U==null||(clearTimeout(m.current),m.current=setTimeout(function(){y(null,Lu.TIMEOUT)},U))});Z.useEffect(function(){return u&&b(r),function(){clearTimeout(m.current)}},[u,r,b]);var _=function(){clearTimeout(m.current)},S=Z.useCallback(function(){r!=null&&b(d??r*.5)},[r,d,b]),$=function(L){l&&l(L),_()},D=function(L){c&&c(L),S()},P=function(L){s&&s(L,Lu.CLICKAWAY)};return Z.useEffect(function(){if(!o&&u)return window.addEventListener("focus",S),window.addEventListener("blur",_),function(){window.removeEventListener("focus",S),window.removeEventListener("blur",_)}},[o,S,u]),Z.createElement(jx,Tr({onClickAway:P},i),Z.createElement("div",Tr({onMouseEnter:$,onMouseLeave:D,ref:t},p),n))}),Cl="SnackbarItem",ua={contentRoot:Cl+"-contentRoot",lessPadding:Cl+"-lessPadding",variantSuccess:Cl+"-variantSuccess",variantError:Cl+"-variantError",variantInfo:Cl+"-variantInfo",variantWarning:Cl+"-variantWarning",message:Cl+"-message",action:Cl+"-action",wrappedRoot:Cl+"-wrappedRoot"},b7e=Zt(v7e)(function(e){var t,n=e.theme,r=n.palette.mode||n.palette.type,i=Hge(n.palette.background.default,r==="light"?.8:.98);return t={},t["&."+ua.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},t["."+ua.contentRoot]=Tr({},n.typography.body2,{backgroundColor:i,color:n.palette.getContrastText(i),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),t["."+ua.lessPadding]={paddingLeft:8*2.5},t["."+ua.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},t["."+ua.variantError]={backgroundColor:"#d32f2f",color:"#fff"},t["."+ua.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},t["."+ua.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},t["."+ua.message]={display:"flex",alignItems:"center",padding:"8px 0"},t["."+ua.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},t}),T7e=function(t){var n=t.classes,r=Ku(t,["classes"]),i=Z.useRef(),a=Z.useState(!0),o=a[0],s=a[1];Z.useEffect(function(){return function(){i.current&&clearTimeout(i.current)}},[]);var l=c1([r.snack.onClose,r.onClose],r.snack.key),c=function(){r.snack.requestClose&&l(null,Lu.INSTRCUTED)},u=function(){i.current=setTimeout(function(){s(!o)},125)},d=r.style,p=r.ariaAttributes,m=r.className,y=r.hideIconVariant,b=r.iconVariant,_=r.snack,S=r.action,$=r.content,D=r.TransitionComponent,P=r.TransitionProps,U=r.transitionDuration,L=Ku(r,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),F=_.key,G=_.open,ie=_.className,se=_.variant,K=_.content,B=_.action,E=_.ariaAttributes,f=_.anchorOrigin,h=_.message,T=_.TransitionComponent,w=_.TransitionProps,R=_.transitionDuration,I=Ku(_,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),C=Tr({},g7e,{},b)[se],x=Tr({"aria-describedby":"notistack-snackbar"},gw(E,p)),v=T||D||Qc.TransitionComponent,k=gw(R,U,Qc.transitionDuration),ne=Tr({direction:f7e(f)},gw(w,P)),N=B||S;typeof N=="function"&&(N=N(F));var Y=K||$;typeof Y=="function"&&(Y=Y(F,_.message));var re=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce(function(le,ge){var Se;return Tr({},le,(Se={},Se[ge]=c1([r.snack[ge],r[ge]],r.snack.key),Se))},{});return Yt.createElement(T_e,{unmountOnExit:!0,timeout:175,in:o,onExited:re.onExited},Yt.createElement(b7e,Object.assign({},L,I,{open:G,className:Q1(n.root,ua.wrappedRoot,n[u3.toAnchorOrigin(f)]),onClose:l}),Yt.createElement(v,Object.assign({appear:!0,in:G,timeout:k},ne,{onExit:re.onExit,onExiting:re.onExiting,onExited:u,onEnter:re.onEnter,onEntering:re.onEntering,onEntered:c1([re.onEntered,c])}),Y||Yt.createElement(c7e,Object.assign({},x,{role:"alert",style:d,className:Q1(ua.contentRoot,ua[u3.toVariant(se)],n[u3.toVariant(se)],m,ie,!y&&C&&ua.lessPadding)}),Yt.createElement("div",{id:x["aria-describedby"],className:ua.message},y?null:C,h),N&&Yt.createElement("div",{className:ua.action},N)))))},yw={container:"& > .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},vw=16,xc="SnackbarContainer",ss={root:xc+"-root",rootDense:xc+"-rootDense",top:xc+"-top",bottom:xc+"-bottom",left:xc+"-left",right:xc+"-right",center:xc+"-center"},E7e=Zt("div")(function(e){var t,n,r,i,a,o,s=e.theme;return o={},o["&."+ss.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:s.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[yw.container]={pointerEvents:"all"},t[yw.wrapper]={padding:_l.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+_l.view.default*2+"px)",t[s.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+vw*2+"px)"},t),o["&."+ss.rootDense]=(n={},n[yw.wrapper]={padding:_l.snackbar.dense+"px 0px"},n),o["&."+ss.top]={top:_l.view.default-_l.snackbar.default,flexDirection:"column"},o["&."+ss.bottom]={bottom:_l.view.default-_l.snackbar.default,flexDirection:"column-reverse"},o["&."+ss.left]=(r={left:_l.view.default},r[s.breakpoints.up("sm")]={alignItems:"flex-start"},r[s.breakpoints.down("sm")]={left:vw+"px"},r),o["&."+ss.right]=(i={right:_l.view.default},i[s.breakpoints.up("sm")]={alignItems:"flex-end"},i[s.breakpoints.down("sm")]={right:vw+"px"},i),o["&."+ss.center]=(a={left:"50%",transform:"translateX(-50%)"},a[s.breakpoints.up("sm")]={alignItems:"center"},a),o}),A7e=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,a=Ku(t,["className","anchorOrigin","dense"]),o=Q1(ss[r.vertical],ss[r.horizontal],ss.root,n,i&&ss.rootDense);return Yt.createElement(E7e,Object.assign({className:o},a))},S7e=Yt.memo(A7e),w7e=function(e){r7e(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(a,o){o===void 0&&(o={});var s=o,l=s.key,c=s.preventDuplicate,u=Ku(s,["key","preventDuplicate"]),d=Vy(l),p=d?l:new Date().getTime()+Math.random(),m=s7e(u,i.props,Qc),y=Tr({key:p},u,{message:a,open:!0,entered:!1,requestClose:!1,variant:m("variant"),anchorOrigin:m("anchorOrigin"),autoHideDuration:m("autoHideDuration")});return u.persist&&(y.autoHideDuration=void 0),i.setState(function(b){if(c===void 0&&i.props.preventDuplicate||c){var _=function(P){return d?P.key===l:P.message===a},S=b.queue.findIndex(_)>-1,$=b.snacks.findIndex(_)>-1;if(S||$)return b}return i.handleDisplaySnack(Tr({},b,{queue:[].concat(b.queue,[y])}))}),p},i.handleDisplaySnack=function(a){var o=a.snacks;return o.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var o=a.queue,s=a.snacks;return o.length>0?Tr({},a,{snacks:[].concat(s,[o[0]]),queue:o.slice(1,o.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(u){return!u.open||u.requestClose}))return a;var o=!1,s=!1,l=a.snacks.reduce(function(u,d){return u+(d.open&&d.persist?1:0)},0);l===i.maxSnack&&(s=!0);var c=a.snacks.map(function(u){return!o&&(!u.persist||s)?(o=!0,u.entered?(u.onClose&&u.onClose(null,Lu.MAXSNACK,u.key),i.props.onClose&&i.props.onClose(null,Lu.MAXSNACK,u.key),Tr({},u,{open:!1})):Tr({},u,{requestClose:!0})):Tr({},u)});return Tr({},a,{snacks:c})},i.handleEnteredSnack=function(a,o,s){if(!Vy(s))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var c=l.snacks;return{snacks:c.map(function(u){return u.key===s?Tr({},u,{entered:!0}):Tr({},u)})}})},i.handleCloseSnack=function(a,o,s){if(i.props.onClose&&i.props.onClose(a,o,s),o!==Lu.CLICKAWAY){var l=s===void 0;i.setState(function(c){var u=c.snacks,d=c.queue;return{snacks:u.map(function(p){return!l&&p.key!==s?Tr({},p):p.entered?Tr({},p,{open:!1}):Tr({},p,{requestClose:!0})}),queue:d.filter(function(p){return p.key!==s})}})}},i.closeSnackbar=function(a){var o=i.state.snacks.find(function(s){return s.key===a});Vy(a)&&o&&o.onClose&&o.onClose(null,Lu.INSTRUCTED,a),i.handleCloseSnack(null,Lu.INSTRUCTED,a)},i.handleExitedSnack=function(a,o,s){var l=o||s;if(!Vy(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(c){var u=i.processQueue(Tr({},c,{snacks:c.snacks.filter(function(d){return d.key!==l})}));return u.queue.length===0?u:i.handleDismissOldest(u)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(ZP(i)),closeSnackbar:i.closeSnackbar.bind(ZP(i))}},i}var n=t.prototype;return n.render=function(){var i=this,a=this.state.contextValue,o=this.props,s=o.iconVariant,l=o.dense,c=l===void 0?Qc.dense:l,u=o.hideIconVariant,d=u===void 0?Qc.hideIconVariant:u,p=o.domRoot,m=o.children,y=o.classes,b=y===void 0?{}:y,_=Ku(o,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),S=this.state.snacks.reduce(function(D,P){var U,L=a7e(P.anchorOrigin),F=D[L]||[];return Tr({},D,(U={},U[L]=[].concat(F,[P]),U))},{}),$=Object.keys(S).map(function(D){var P=S[D];return Yt.createElement(S7e,{key:D,dense:c,anchorOrigin:P[0].anchorOrigin,className:Q1(b.containerRoot,b[u3.toContainerAnchorOrigin(D)])},P.map(function(U){return Yt.createElement(T7e,Object.assign({},_,{key:U.key,snack:U,dense:c,iconVariant:s,hideIconVariant:d,classes:o7e(b),onClose:i.handleCloseSnack,onExited:c1([i.handleExitedSnack,i.props.onExited]),onEntered:c1([i.handleEnteredSnack,i.props.onEntered])}))}))});return Yt.createElement(zW.Provider,{value:a},m,p?_m.createPortal($,p):$)},n7e(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Qc.maxSnack}}]),t}(Z.Component),_7e=function(){return Z.useContext(zW)},zx={},bw={};const C7e=Fi(a_e);var tM;function Gm(){return tM||(tM=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=C7e}(bw)),bw}var R7e=Mf;Object.defineProperty(zx,"__esModule",{value:!0});var Wx=zx.default=void 0,x7e=R7e(Gm()),$7e=q;Wx=zx.default=(0,x7e.default)((0,$7e.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function I7e(){}var KW=I7e;const Hn=zt(KW);let YW=Hn,ZW=Hn,XW=Hn,QW=Hn;const qy=(e,t)=>(n,r={})=>{e(n,{autoHideDuration:5e3,variant:t,...r})};function x2({children:e}){const t=Z.createRef(),n=r=>()=>{t.current.closeSnackbar(r)};return q.jsxs(w7e,{anchorOrigin:{vertical:"top",horizontal:"right"},ref:t,action:r=>q.jsx(ou,{"aria-label":"close",color:"inherit",onClick:n(r),size:"large",children:q.jsx(Wx,{style:{fontSize:16}})},"close"),children:[q.jsx(k7e,{}),e]})}function k7e(){const{enqueueSnackbar:e}=_7e();return YW=qy(e,"success"),ZW=qy(e,"error"),XW=qy(e,"warning"),QW=qy(e,"info"),null}const zr={success:(e,t={},...n)=>YW(e,t,...n),error:(e,t={autoHideDuration:15e3},...n)=>ZW(e,t,...n),warning:(e,t={},...n)=>XW(e,t,...n),info:(e,t={},...n)=>QW(e,t,...n)};var D7e=em;em.flatten=em;em.unflatten=nK;function eK(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function tK(e){return e}function em(e,t){t=t||{};const n=t.delimiter||".",r=t.maxDepth,i=t.transformKey||tK,a={};function o(s,l,c){c=c||1,Object.keys(s).forEach(function(u){const d=s[u],p=t.safe&&Array.isArray(d),m=Object.prototype.toString.call(d),y=eK(d),b=m==="[object Object]"||m==="[object Array]",_=l?l+n+i(u):i(u);if(!p&&!y&&b&&Object.keys(d).length&&(!t.maxDepth||c<r))return o(d,_,c+1);a[_]=d})}return o(e),a}function nK(e,t){t=t||{};const n=t.delimiter||".",r=t.overwrite||!1,i=t.transformKey||tK,a={};if(eK(e)||Object.prototype.toString.call(e)!=="[object Object]")return e;function s(u){const d=Number(u);return isNaN(d)||u.indexOf(".")!==-1||t.object?u:d}function l(u,d,p){return Object.keys(p).reduce(function(m,y){return m[u+n+y]=p[y],m},d)}function c(u){const d=Object.prototype.toString.call(u),p=d==="[object Array]",m=d==="[object Object]";if(u){if(p)return!u.length;if(m)return!Object.keys(u).length}else return!0}return e=Object.keys(e).reduce(function(u,d){const p=Object.prototype.toString.call(e[d]);return!(p==="[object Object]"||p==="[object Array]")||c(e[d])?(u[d]=e[d],u):l(d,u,em(e[d],t))},{}),Object.keys(e).forEach(function(u){const d=u.split(n).map(i);let p=s(d.shift()),m=s(d[0]),y=a;for(;m!==void 0;){if(p==="__proto__")return;const b=Object.prototype.toString.call(y[p]),_=b==="[object Object]"||b==="[object Array]";if(!r&&!_&&typeof y[p]<"u")return;(r&&!_||!r&&y[p]==null)&&(y[p]=typeof m=="number"&&!t.object?[]:{}),y=y[p],d.length>0&&(p=s(d.shift()),m=s(d[0]))}y[p]=nK(e[u],t)}),a}const oa=zt(D7e);var L7e=IT;function O7e(){this.__data__=new L7e,this.size=0}var P7e=O7e;function M7e(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var B7e=M7e;function N7e(e){return this.__data__.get(e)}var F7e=N7e;function U7e(e){return this.__data__.has(e)}var H7e=U7e,j7e=IT,V7e=hx,J7e=mx,q7e=200;function G7e(e,t){var n=this.__data__;if(n instanceof j7e){var r=n.__data__;if(!V7e||r.length<q7e-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new J7e(r)}return n.set(e,t),this.size=n.size,this}var z7e=G7e,W7e=IT,K7e=P7e,Y7e=B7e,Z7e=F7e,X7e=H7e,Q7e=z7e;function hh(e){var t=this.__data__=new W7e(e);this.size=t.size}hh.prototype.clear=K7e;hh.prototype.delete=Y7e;hh.prototype.get=Z7e;hh.prototype.has=X7e;hh.prototype.set=Q7e;var JT=hh,exe=Bf,txe=function(){try{var e=exe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),rK=txe,nM=rK;function nxe(e,t,n){t=="__proto__"&&nM?nM(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Kx=nxe,rxe=Kx,ixe=Hm;function axe(e,t,n){(n!==void 0&&!ixe(e[t],n)||n===void 0&&!(t in e))&&rxe(e,t,n)}var iK=axe;function oxe(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var sxe=oxe,lxe=sxe,uxe=lxe(),aK=uxe,$2={exports:{}};$2.exports;(function(e,t){var n=Ss,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(c,u){if(u)return c.slice();var d=c.length,p=s?s(d):new c.constructor(d);return c.copy(p),p}e.exports=l})($2,$2.exports);var oK=$2.exports,cxe=Ss,fxe=cxe.Uint8Array,sK=fxe,rM=sK;function dxe(e){var t=new e.constructor(e.byteLength);return new rM(t).set(new rM(e)),t}var Yx=dxe,pxe=Yx;function hxe(e,t){var n=t?pxe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var lK=hxe;function mxe(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var uK=mxe,gxe=ta,iM=Object.create,yxe=function(){function e(){}return function(t){if(!gxe(t))return{};if(iM)return iM(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),vxe=yxe;function bxe(e,t){return function(n){return e(t(n))}}var cK=bxe,Txe=cK,Exe=Txe(Object.getPrototypeOf,Object),Zx=Exe,Axe=Object.prototype;function Sxe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Axe;return e===n}var qT=Sxe,wxe=vxe,_xe=Zx,Cxe=qT;function Rxe(e){return typeof e.constructor=="function"&&!Cxe(e)?wxe(_xe(e)):{}}var fK=Rxe,xxe=iu,$xe=qo,Ixe="[object Arguments]";function kxe(e){return $xe(e)&&xxe(e)==Ixe}var Dxe=kxe,aM=Dxe,Lxe=qo,dK=Object.prototype,Oxe=dK.hasOwnProperty,Pxe=dK.propertyIsEnumerable,Mxe=aM(function(){return arguments}())?aM:function(e){return Lxe(e)&&Oxe.call(e,"callee")&&!Pxe.call(e,"callee")},zm=Mxe,Bxe=9007199254740991;function Nxe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Bxe}var Xx=Nxe,Fxe=RT,Uxe=Xx;function Hxe(e){return e!=null&&Uxe(e.length)&&!Fxe(e)}var Nf=Hxe,jxe=Nf,Vxe=qo;function Jxe(e){return Vxe(e)&&jxe(e)}var Qx=Jxe,I2={exports:{}};function qxe(){return!1}var Gxe=qxe;I2.exports;(function(e,t){var n=Ss,r=Gxe,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(I2,I2.exports);var Wm=I2.exports,zxe=iu,Wxe=Zx,Kxe=qo,Yxe="[object Object]",Zxe=Function.prototype,Xxe=Object.prototype,pK=Zxe.toString,Qxe=Xxe.hasOwnProperty,e8e=pK.call(Object);function t8e(e){if(!Kxe(e)||zxe(e)!=Yxe)return!1;var t=Wxe(e);if(t===null)return!0;var n=Qxe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&pK.call(n)==e8e}var e8=t8e;const n8e=zt(e8);var r8e=iu,i8e=Xx,a8e=qo,o8e="[object Arguments]",s8e="[object Array]",l8e="[object Boolean]",u8e="[object Date]",c8e="[object Error]",f8e="[object Function]",d8e="[object Map]",p8e="[object Number]",h8e="[object Object]",m8e="[object RegExp]",g8e="[object Set]",y8e="[object String]",v8e="[object WeakMap]",b8e="[object ArrayBuffer]",T8e="[object DataView]",E8e="[object Float32Array]",A8e="[object Float64Array]",S8e="[object Int8Array]",w8e="[object Int16Array]",_8e="[object Int32Array]",C8e="[object Uint8Array]",R8e="[object Uint8ClampedArray]",x8e="[object Uint16Array]",$8e="[object Uint32Array]",br={};br[E8e]=br[A8e]=br[S8e]=br[w8e]=br[_8e]=br[C8e]=br[R8e]=br[x8e]=br[$8e]=!0;br[o8e]=br[s8e]=br[b8e]=br[l8e]=br[T8e]=br[u8e]=br[c8e]=br[f8e]=br[d8e]=br[p8e]=br[h8e]=br[m8e]=br[g8e]=br[y8e]=br[v8e]=!1;function I8e(e){return a8e(e)&&i8e(e.length)&&!!br[r8e(e)]}var k8e=I8e;function D8e(e){return function(t){return e(t)}}var Km=D8e,k2={exports:{}};k2.exports;(function(e,t){var n=vz,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(k2,k2.exports);var t8=k2.exports,L8e=k8e,O8e=Km,oM=t8,sM=oM&&oM.isTypedArray,P8e=sM?O8e(sM):L8e,GT=P8e;function M8e(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var hK=M8e,B8e=Kx,N8e=Hm,F8e=Object.prototype,U8e=F8e.hasOwnProperty;function H8e(e,t,n){var r=e[t];(!(U8e.call(e,t)&&N8e(r,n))||n===void 0&&!(t in e))&&B8e(e,t,n)}var n8=H8e,j8e=n8,V8e=Kx;function J8e(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?V8e(n,s,l):j8e(n,s,l)}return n}var mh=J8e;function q8e(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var G8e=q8e,z8e=9007199254740991,W8e=/^(?:0|[1-9]\d*)$/;function K8e(e,t){var n=typeof e;return t=t??z8e,!!t&&(n=="number"||n!="symbol"&&W8e.test(e))&&e>-1&&e%1==0&&e<t}var zT=K8e,Y8e=G8e,Z8e=zm,X8e=Ia,Q8e=Wm,e$e=zT,t$e=GT,n$e=Object.prototype,r$e=n$e.hasOwnProperty;function i$e(e,t){var n=X8e(e),r=!n&&Z8e(e),i=!n&&!r&&Q8e(e),a=!n&&!r&&!i&&t$e(e),o=n||r||i||a,s=o?Y8e(e.length,String):[],l=s.length;for(var c in e)(t||r$e.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||e$e(c,l)))&&s.push(c);return s}var mK=i$e;function a$e(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var o$e=a$e,s$e=ta,l$e=qT,u$e=o$e,c$e=Object.prototype,f$e=c$e.hasOwnProperty;function d$e(e){if(!s$e(e))return u$e(e);var t=l$e(e),n=[];for(var r in e)r=="constructor"&&(t||!f$e.call(e,r))||n.push(r);return n}var p$e=d$e,h$e=mK,m$e=p$e,g$e=Nf;function y$e(e){return g$e(e)?h$e(e,!0):m$e(e)}var Ym=y$e,v$e=mh,b$e=Ym;function T$e(e){return v$e(e,b$e(e))}var E$e=T$e,lM=iK,A$e=oK,S$e=lK,w$e=uK,_$e=fK,uM=zm,cM=Ia,C$e=Qx,R$e=Wm,x$e=RT,$$e=ta,I$e=e8,k$e=GT,fM=hK,D$e=E$e;function L$e(e,t,n,r,i,a,o){var s=fM(e,n),l=fM(t,n),c=o.get(l);if(c){lM(e,n,c);return}var u=a?a(s,l,n+"",e,t,o):void 0,d=u===void 0;if(d){var p=cM(l),m=!p&&R$e(l),y=!p&&!m&&k$e(l);u=l,p||m||y?cM(s)?u=s:C$e(s)?u=w$e(s):m?(d=!1,u=A$e(l,!0)):y?(d=!1,u=S$e(l,!0)):u=[]:I$e(l)||uM(l)?(u=s,uM(s)?u=D$e(s):(!$$e(s)||x$e(s))&&(u=_$e(l))):d=!1}d&&(o.set(l,u),i(u,l,r,a,o),o.delete(l)),lM(e,n,u)}var O$e=L$e,P$e=JT,M$e=iK,B$e=aK,N$e=O$e,F$e=ta,U$e=Ym,H$e=hK;function gK(e,t,n,r,i){e!==t&&B$e(t,function(a,o){if(i||(i=new P$e),F$e(a))N$e(e,t,o,n,gK,r,i);else{var s=r?r(H$e(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),M$e(e,o,s)}},U$e)}var r8=gK;function j$e(e){return e}var WT=j$e;function V$e(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var yK=V$e,J$e=yK,dM=Math.max;function q$e(e,t,n){return t=dM(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=dM(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),J$e(e,this,s)}}var vK=q$e;function G$e(e){return function(){return e}}var z$e=G$e,W$e=z$e,pM=rK,K$e=WT,Y$e=pM?function(e,t){return pM(e,"toString",{configurable:!0,enumerable:!1,value:W$e(t),writable:!0})}:K$e,Z$e=Y$e,X$e=800,Q$e=16,eIe=Date.now;function tIe(e){var t=0,n=0;return function(){var r=eIe(),i=Q$e-(r-n);if(n=r,i>0){if(++t>=X$e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var nIe=tIe,rIe=Z$e,iIe=nIe,aIe=iIe(rIe),bK=aIe,oIe=WT,sIe=vK,lIe=bK;function uIe(e,t){return lIe(sIe(e,t,oIe),e+"")}var Zm=uIe,cIe=Hm,fIe=Nf,dIe=zT,pIe=ta;function hIe(e,t,n){if(!pIe(n))return!1;var r=typeof t;return(r=="number"?fIe(n)&&dIe(t,n.length):r=="string"&&t in n)?cIe(n[t],e):!1}var TK=hIe,mIe=Zm,gIe=TK;function yIe(e){return mIe(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&gIe(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var EK=yIe,vIe=r8,bIe=EK,TIe=bIe(function(e,t,n){vIe(e,t,n)}),EIe=TIe;const Wi=zt(EIe),AIe={setup:{connect:{title:"Signature Required",scan:"Connect your DID Wallet to become the owner of this server",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},keyPair:{title:"Derived KeyPair Required",scan:"Connect your DID Wallet to generate a key-pair for this app",confirm:"Review this operation on your DID Wallet",success:"Your key pair is securely stored"},verify:{title:"Ownership Credential Required",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},accept:{title:"Accepting server require ownership certificates",scan:"Connect your DID Wallet to provide ownership credentials",confirm:"Review this operation on your DID Wallet",success:"Your account is connected to this server"},title:"Setup Blocklet Server",steps:{eula:"End User License Agreement",eulaFooter:"I have read and agreed to the terms of the EULA",connect:"Connect Owner DID Wallet",verify:"Verify Ownership",basicSettings:"Basic Settings",launchApp:"Launch Application",complete:"Complete"},congratulation:"Congratulations! Your Blocklet Server is secure and ready to use",redirectButton:"Take me to dashboard!"},login:{loginTo:"Connect to",description:"Only server owner and approved members can access the dashboard",switchDid:{title:"Switch DID Wallet",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},switchSpecifiedDid:{title:"Switch DID Wallet",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},connect:{title:"Connect DID Wallet",scan:"Connect your DID Wallet to provide passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},acceptServer:{title:"Claim Server with Ownership NFT",tooltip:"If you received a server ownership nft, you can claim your owner passport with this link."},exchangePassport:{title:"Exchange Passport with NFT",success:"You have successfully exchanged your passport and logged in with the passport",login:"Login",tooltip:"If you own NFT from collection {collections}, you can exchange your passport with this link.",dialog:{title:"Exchange Passport with NFT",scan:"Connect your DID Wallet to present your NFT to get a passport",confirm:"Select NFT on your DID Wallet",success:"Passport has been successfully exchanged"}},payablePassport:{title:"Purchase passport with payment",tooltip:"If you do not have a passport, you can purchase a passport with this link."},sidebar:{dashboard:"Dashboard",blocklets:"Blocklets",console:"Console",settings:"Settings"},system:{total:"Total",used:"Used",free:"Free",cores:"Number of cores",instances:"Number of instances"},common:{invalid:"Invalid",about:"About",access:"Access",change:"Change",upload:"Upload",accessKey:"Access Keys",action:"Action",actions:"Actions",add:"Add",address:"Address",afterTime:"After {time}",allow:"Allow",alreadyExist:"already exists",approve:"Approve",approved:"approved",appUrl:"APP Url",auditLogs:"Audit Trail",author:"Author",avatar:"Avatar",back:"Back",basic:"Basic",basicInfo:"Basic Information",profile:"Profile",bind:"Bind",blocklet:"Blocklet",blocklets:"Blocklets",blockletsStorage:"Blocklets Storage",cacheStorage:"Cache Storage",cancel:"Cancel",certificate:"certificate",category:"Log Topic",click:"Click to copy",close:"Close",collapseAll:"Collapse All",community:"Community",complete:"Complete",componentBasicInfo:"Component Basic Information",components:"Blocklets",config:"Configure",configuration:"Configuration",configNavigation:"Navigation",configSuccess:"Config successfully",confirm:"Confirm",connect:"Connect",console:"Console",continue:"Continue",continueWith:"Continue With",copiedTip:"Copied",copyAndClose:"Copy & Close",copyTip:"Click To Copy",coreStorage:"Core Storage",cpu:"CPU",create:"Create",createSuccess:"Create Access Key",created:"Created At",createdAt:"Created At",createdBy:"Created By",dAddress:"Decentralized Identifiers (DID)",dataStorage:"Storage on Local Disk",delConfirm:"Delete",delConfirmDescription:"Confirm delete {data}?",delete:"Delete",dependents:"Dependents",description:"Description",detail:"Detail",did:"DID",disk:"Disk",diskInfo:"Disk Info",docker:"IS Docker",documentation:"Documentation",domain:"Domain",downgradeTo:"Downgrade to",download:"Download",connectToStore:"Connect to Store",blockletStudio:"Studio",uploaded:"Uploaded",downloading:"Downloading",edit:"Edit",email:"Email",phone:"Phone",empty:"Empty",emptyData:"No results found",enable:"Enable",engine:"Engine",env:"Environment",environment:"Environment",expandAll:"Expand All",expired:"Expired",expires:"Expires",export:"Export",externalIp:"External IP",failed:"Failed",filter:"Log Filter",fingerprint:"Fingerprint",finish:"Finish",forbid:"Forbid",free:"Free",general:"General",gitpod:"IS Gitpod",goEULA:'Click to view "End User License Agreement"',group:"Group",image:"IS Image",install:"Install",installed:"Installed",installedAt:"Installed At",installSuccess:"Successfully installed",installing:"Installing",internalIp:"Internal IP",introduction:"Introduction",invite:"Invite",inviting:"Inviting",ip:"IP",isPublic:"Public",issue:"Issue",issuer:"Issuer",item:"Item",joined:"Joined",key:"Key",lastPublishedAt:"Published At",launcher:"Launcher Information",leavePageTip:"Are you sure to leave the page?",link:"Link",loading:"loading",log:"View Logs",logStorage:"Log Storage",login:"Login",logo:"Logo",logout:"Logout",logs:"Logs",manageTeam:"Manage Team",marketplace:"Marketplace",member:"Member",members:"Members",memory:"Memory",meta:"Meta Data",analytics:"Analytics",runtime:"Runtime",traffic:"Traffic",more:"More",mountPoint:"MountPoint",name:"Name",next:"Next",no:"No",noData:"No records to display",notice:"Unexpected bad things will happen if you don’t read this!",noticeTitle:"Notice",notification:"Notification",open:"Open",visitStore:"Visit Store",visitTarget:"Visit {name}",management:"Management",os:"Operating System",overview:"Overview",owner:"Owner",page404:"404 Page",passport:"Passport",permission:"Permission",port:"Port",pre:"Previous",preferences:"Preferences",preview:"Preview",protected:"Protected",protocol:"Protocol",purchase:"Purchase",reconnect:"Reconnect",disconnect:"Disconnect",readMore:"More",redirect:"Redirect",redirectCode:"Redirect Code",redirectPermanently:"Permanent Redirect",redirectTemporary:"Temporary Redirect",redirectUrl:"Redirect URL",rewrite:"Rewrite",release:"Release",rewriteUrl:"Rewrite URL",reject:"Reject",reload:"Reload",remark:"Remark",remove:"Remove",removeSuccess:"Remove successfully",renew:"Renew",reportIssue:"Report an issue",required:"Required",requiredErrorText:"{name} is required",resource:"Resource",restart:"Restart",restore:"Restore",retry:"Retry",revoke:"Revoke",role:"Role",running:"running",runtimeInfo:"Runtime Info",save:"Save",saveChanges:"Save Changes",saveSuccess:"Saved successfully",scheduleFailed:"schedule failed",scheduleSuccess:"successfully scheduled",scope:"Scope",screenshot:"Screenshot",search:"Search",security:"Security",serverDid:"Server DID",serverVersion:"Server Version",setting:"Settings",start:"Start",status:"Status",stop:"Stop",storage:"Storage",backup:"Backup",store:"Store",succeeded:"Succeeded",subscription:"Subscription",support:"Support",switch:"Switch",team:"Team",the:"The",timeAgo:"{time} ago",title:"Title",type:"Type",unavailable:"Unavailable",update:"Update",updateAvailable:"New version {version} available",updatedAt:"Updated At",updatedBy:"Updated By",upgrade:"Upgrade",upgradeTo:"Upgrade to",upgrading:"Upgrading",uptime:"Uptime",url:"URL",valid:"Valid",value:"Value",version:"Version",visit:"Visit",waiting:"Waiting",webhook:"Integrations",yes:"Yes",invalidParam:"Invalid Params",launch:"Launch",price:"Price",redirecting:"Redirecting",error:"Error",reminder:"Reminder",normal:"Normal",gateway:"Gateway",verifyNFT:"Verify NFT",errorMessage:"Error Message: ",slugifyHint:"The actual mount point will be: {value}",strategy:"Strategy",auto:"Auto",manual:"Manual",progress:"In progress",startTime:"Start time",endTime:"End time",selected:"Selected",timeoutError:"Timeout error",tags:"Tags",sourceApp:"Belong to App"},blocklet:{external:"External",notFound:"Blocklet not found on this server, maybe it has been deleted",installFromMarket:"Install New Blocklets",installFromUrl:"Install From Url",installFromCreate:"Create Blocklet",titleValidationError:"Title length must be between 3 and 40 characters",descriptionValidationError:"Description length must be between 3 and 160 characters",installFromDiskBackup:"Restore from this server",installedAt:"Installed At",internal:"Internal",startedAt:"Started At",stoppedAt:"Stopped At",urlEmptyTip:"No Access URL, ",goToAddRule:"Go To Add",services:"Exposed Services",upstreamPort:"Upstream Port",noService:"No Services",appId:"App DID",appPid:"Permanent DID",whyNeedAppPid:"If your application has been migrated, the permanent DID is the DID generated when this Blocklet was originally installed",alsoKnownAs:"Also Known As",skSource:"Owner Wallet",reloadSuccess:"Blocklet was reloaded successfully",statusTip:"Blocklet is {status}",initialUptime:"Less than 1m",dashboard:"Blocklet Dashboard",noComponent:"Application has no components and cannot be started",fromUrl:{title:"Install Blocklet",label:"Blocklet Meta URL",description:"The URL should point to the Meta File of the Blocklet. If you need to refer to a local file, please add the file:// prefix, e.g. file:///Users/foo/blocklet.json.",confirm:"Install",step0:"Input URL",step1:"Confirm Meta Info",existTipPrefix:"Blocklet with the same DID already exists, the version is",existTipSuffix:", Please install a higher version."},action:{stopDescription:"Stopping the blocklet will make its public interfaces unaccessible, which may cause end user failures",stopComponentDescription:"Stopping the component will make its public interfaces unaccessible, which may cause end user failures",confirmStop:"Yes, Stop It",cancelDownloadDescription:"Cancel download {name} ?",removeApplicationDescription:"Removing the application will erase code and data generated by this application, which is not recoverable if you do not have any backups",removeApplicationAfterBackup:"Backup and remove the application. You can restore the application from this server if you need",removeApplicationComplete:"Remove both code and data for this application",removeComponentDescription:"Removing the component will erase code and data generated by this component, which is not recoverable if you do not have any backups",removeComponentKeepData:"Keep data for this component, only remove code",removeComponentComplete:"Remove both code and data for this component",confirmRemove:"Yes, Remove It",confirmComponentRemove:"Yes, Remove It",upgradeDescription:"Upgrading the blocklet will make it temporarily unavailable, are you sure to continue?",confirmUpgrade:"Yes, Upgrade It",confirmRestart:"Yes, Restart It",restartDescription:"Restarting the blocklet will temporarily suspended and may not start because of a configuration change"},dev:{modeTip:"Please switch Blocklet Server to DEBUG mode"},index:{tableTitle:"Manage Your Blocklets",noBlocklet:"No blocklets found in this Blocklet Server, install a blocklet from market place to start."},admin:{iframeTitle:"Blocklet Admin Interface",title:"Admin Interface",noContent:"This blocklet does not have a admin interface",securityError:"SecurityError: Can not open the admin url from accessing a cross-origin frame"},config:{name:"App Name",description:"App Description",sk:"Secret key for the app wallet",logoSquare:"App Logo",logoRect:"Rect logo",logoRectDesc:"Usually displayed at the top of the page, default to app logo",logoFavicon:"Favicon",logoFaviconDesc:"Usually displayed in the browser's address bar or tab page, default to app logo",clusterSize:"Instance count when run this blocklet in cluster mode",copyrightOwner:"Copyright Owner (Display in footer)",copyrightYear:"Copyright Year (Display in footer)",deletable:{name:"Delete Protection",enable:"This blocklet can NOT currently be deleted",disable:"This blocklet can currently be deleted"},tenantMode:{name:"Multiple Tenant Mode",multiple:"This blocklet runs in multiple tenant mode, data should be isolated for each tenant",single:"This blocklet runs in single tenant mode, all data are shared"},walletType:{name:"Wallet Type",description:"Blocklet instance wallet type, will change the derived DID"},languages:"Supported Languages",selectLanguagesTip:"Adjust the order by removing and re-adding",languagesSearch:"Search by Country's Local Name, English Name, or ISO Code...",passportColor:"Passport Color",appUrl:"App URL",access:{title:"Who Can Access",description:"Who can access the blocklet",useDefault:"Use default",defaultDescription:"Use the application's default configuration",whoCanAccess:{all:{title:"Accessible to all",description:"Open to the world anyone can access without passport"},owner:{title:"Only me can access",description:"You must provide owner passport to access this application"},invited:{title:"Only invited people can access",description:"You can invite members later in the admin page"}},publicToStore:"Public On Store",publicInstanceTip:"The access address of this blocklet will be displayed in the Store (along with your DID for accepting donations)",updatedTip:"Access Control Modified"},changedTip:"Configuration updated, please restart Blocklet",missingRequired:"Missing required configuration to start the blocklet",gotoFix:"Go to fix",environment:{key:"Configuration key",value:"Configuration value",keyValueRequired:"Configuration key and value must be specified",invalidKey:"Configuration key must not start with BLOCKLET_ or COMPONENT_",deleteForbidden:"This configuration is required and should not be deleted",tip:"Configurations prefixed with BWA_ should not contain sensitive information because they will be sent to the browser"},dangerZone:"Danger Zone",blockletTypeChangeTip:"Wallet Type will be changed to <b>{value}</b>",appDidChangeTip:"This operation will change the DID of the application, which will lead to the following problems. Please confirm after careful evaluation:",appDidChangeTipL1:"The user's account connected to this application will change",appDidChangeTipL2:"The DID domain name of the application will change, and the original domain name will become invalid",appSkChangeTip:"You are changing application secret key",walletTypeTitle:"Update Wallet Type",appSkTitle:"Update Application Secret Key",sharedToAllComponents:"Will be shared to all components",session:{ttl:"Login session validity period (user will be asked to login again if they have no activity on this site for {day} days)",day:"{day} day",days:"{day} days"},clearCache:{name:"Cache Management",purpose:"Manage files cached in router and blocklet services",title:"Confirm Cache Clear?",action:"Clear Cache",success:"Successfully cleared {count} cache entries",description:"Are you sure you want to clear cached files in router and blocklet service? this operation may cause slight performance downgrade in the short term"}},overview:{source:"Source",deployedFrom:"Deployed From",accessControl:"Access Control",viewInStore:"View It In Store"},diskInfo:{empty:"Disk info not available now!",appDir:"App Directory",dataDir:"Data Directory",logDir:"Log Directory",cacheDir:"Cache Directory"},runtimeInfo:{noRunning:"Runtime information will be available when blocklet is running!",memoryUsage:"Memory Usage",cpuUsage:"CPU Usage",uptime:"Uptime",port:"Port",processId:"Process ID"},dist:{downloadLink:"Download Link",verify:"Verify"},status:{added:"Added",waiting:"Waiting",downloading:"Downloading",extracting:"Extracting",installing:"Installing",upgrading:"Upgrading",installed:"Installed",created:"Created",starting:"Starting",running:"Running",stopping:"Stopping",stopped:"Stopped",error:"Error",deleting:"Deleting",corrupted:"Corrupted",purchasing:"Waiting for purchase",purchased:"Purchased",verifying:"Verifying purchase",resource:"Resource"},list:{download:"Download",star:"Star"},component:{container:"Global Config",showContainer:"Show Global Config",didSpaceConfig:"Configure DID Spaces",didSpaceConfigTip:"Complete the following authorize process to store application data in DID Spaces",didSpaceConnected:"Storage being authorized to: {endpoint}",checkUpdateTitle:"Check for Updates",updateTitle:"Update Blocklets",noUpdate:"No Blocklets to update",add:"Add Blocklet",selectComponent:"Select Blocklet",selectRegistry:"Select Blocklet Store",selectRegistryTip:"You can switch blocklet store to see more components",selectInstance:"Select Instance",selectInstanceTip:"You can select an existing instance or create a new instance. Existing instances will use previously saved configuration and data",newInstance:"Create New Instance",noComponent:"No Blocklets",mountPoint:"What's the mount point?",mountPointTip:"If you set mount point to '/my-prefix', then all requests that begins with that mount point will be routed to the selected Blocklet",delete:"Delete Blocklet",deleteDescription:"This Blocklet will not be accessible after deletion. Confirm delete?",purchase:"Payment Required",tip:{stopBlocklet:"Please stop running Blocklet first",requiredBy:"The Blocklet is required by {name}"},choose:"Choose",upgrade:"Upgrade",addWithName:"Add Blocklet To {name}",relatedComponents:"Related Blocklets",required:"Required",noDependencies:"{name} doesn't have any dependencies",installed:"Installed",installingTip:"Installing component, please wait...",installingCanCloseWindowTip:"Installing component in the background, you can safely close this window",installSuccessTip:"Congratulations, the component was installed successfully!",missDownloadTokenTip:"Cannot add paid component without valid download token",purchaseComponentSecondCheckTip:"Please present your blocklet purchase NFT to continue",installComponentError:"There was an error installing the component, please retry again",downloadComponentError:"There was an error downloading the component, please retry again",addComponentTip:{introduction:"Welcome to the Add Component Wizard",isPurchase:"You need to Verify NFT before use <b>{name}</b> as a component;",belowInformation:"Below is the information for the component: ",verifyNFT:"Please select the Verify NFT method",config:"Please fill in the configuration of the component",environment:"Please fill in the environment of the component",fromUrl:"Add Blocklet From Url"},addNext:"Add {name}",upgradeNext:"Upgrade {name}",setting:"Settings"},router:{urlPath:"URL Path",noRunning:"The blocklet is not currently started. Unable to access through the following address!",securitySetting:"Security Setting",checkUrlAccessible:"Check the accessibility of the address",urlInaccessible:"It may be due to network reasons, the address is temporarily inaccessible",noAccessibleUrl:"No accessible URL",domainLockTooltip:"The system generated Domain cannot be edited.",urlLockTooltip:"The system generated URL Path cannot be edited.",showAllDomains:"Show all domains",showAllDIDs:"Show all DIDs",currentDomainTip:"You are accessing the current page through this domain"},export:{title:"Export Blocklet",name:"Bundle Name",nameTip:'e.g. "my-blocklet-name" or "@my-scope/blocklet-name"',result:"What's next",exportSource:"Export Source",success:"Blocklet successfully exported",resultTipStart:"With",resultTipEnd:"you can build and publish this blocklet within minutes",uploadedComponentTip:"Directly uploaded components cannot be exported:"},migrate:{title:"Migrate Application",scan:"Connect your DID Wallet to generate a key-pair for this application",confirm:"Review this operation on your DID Wallet",success:"Your application is successfully migrated, the page will be refreshed in {sec} seconds",intro:{l1:"Click here",l2:"to migrate your application to new version (changes are disabled before the migration completes)",l3:"1. The application DID will be fully controlled from your DID Wallet.",l4:"2. The application data will be migrated, and no further changes required.",l5:"3. The new application structure will give you more flexibly when change components.",l6:"4. Please do not change component mount points before component new version is out."},tip:{duplicate:"Find duplicate component {name}, please delete useless components and migrate again",running:"Please stop blocklet before migration"}},error:{isRunning:"Blocklet is running, please stop it first",isInProgress:"Blocklet is in progress, please wait for it to finish"},publish:{connectOrUpload:"Connect or Upload",projectSettings:"Project Settings",autoUploadTip:"Upload release to connected Blocklet Stores automatically after creation",possibleSameStoreTip:"Try resolving dependency blocklets to the same Blocklet Store before each uploading when possible",needProjectId:"Please create a project first",developerInfo:"Developer Information",branding:"Branding",brandingHelp:"More information about the blocklet will be displayed in the Store",download:"Download {name}",deleteStoreTip:"Are you sure you want to remove {name} from the connect Store list?",delete:"Delete {name}",copyInstallUrl:"Copy Install URL",createResource:"Create Resource",blockletStudio:"Blocklet Studio",tenantScope:"Tenant",addResource:"Add Blocklet",productTitle:"Product",versionTitle:"Versioning",imgTitle:"Images",resourceTitle:"Resources",resourceSelect:"Select resource from following blocklets",resourceUpload:"Upload resource from your disk (index.html is required in the archive)",blockletEmptyTip:"There aren’t any blocklets here",createBlockletTip:"You can create new blocklet through existing resources, components, and configuration in this application",createBlocklet:"New blocklet",reconnectStoreTip:"After reconnecting, a new developer will be bound. Are you sure you want to reconnect?",disconnectStoreTip:"After disconnecting, the blocklet will be removed from the store. Are you sure you want to disconnect?",componentNotRunning:"Blocklet {name} is not running, please start it first",allComponentsNotRunning:"Blocklets is not running, please start it first",releaseEmptyTip:"There aren't any releases here",resourceEmptyTip:"No available resources",viewLastRelease:"View last release",createReleaseTip:"You can create a release of the blocklet, along with release notes and resources, for other people to use",createRelease:"Create release",deleteReleaseTip:"The release cannot be recovered after deletion",createBlockletDid:"Create from DID Wallet",createReleaseSuccess:"Release created successfully",saveDraftSuccess:"Draft saved successfully",packTip:"Currently blocklets can be installed directly as applications. Components and application configurations will be automatically included in the Blocklet",resourceTip:"Currently, as a Resource Blocklet, it cannot be directly installed from the Store.",whyCantSeeInStore:"You need to publish the blocklet on connected store before you can see it in the store listing page",whyCantSeeResourceBlockletInStore:"Resource Blocklet are hidden from the store listing page by default",resourceChangedWarning:"You have modified the resource, please save it in time",install:"Install {name}",installResourceTip:"Install Url:",installResourceTip2:"If you want to see more tips, please visit",installResourceHelp:"Help Document",componentIncluded:"Included",componentForceRequired:"Required",steps:{branding:"Describe the basic information of your Blocklet. This information will be presented to users in the store.",introduction:"A clear introduction can effectively highlight your Blocklet. You can use Markdown syntax to write and preview it.",resources:"Please select the resources that need to be associated with the current Blocklet, as these resources will be installed along with the Blocklet.",blocklets:"Please select the Blocklets that need to be associated and installed when installing the current Blocklet.",version:"Set the release version and the change log."},connect:{title:"Create Blocklet DID",scan:"Scan the QR code below to generate Blocklet DID",confirm:"Confirm using DID Wallet",success:"Blocklet DID has been generated, please continue your operation"},deleteProject:{title:"Delete {name}",scan:"Scan the QR code below to delete {name}",confirm:"Confirm using DID Wallet",success:"Blocklet has been deleted, please continue your operation",description:"Are you sure you want to delete the Blocklet? Here are the issues you might encounter:",tip1:"The Blocklet cannot be recovered after deletion.",tip2:"You will no longer be able to publish new versions to the deleted Blocklet, which means that the Blocklet will not be updated in the Store anymore.",tip3:"Deleting the Blocklet will not affect its currently published version in the Store."},saveDraft:"Save Draft",releaseNote:"Release Note",errorTip:{noDid:"Blocklet DID is required",noFirstDid:"Please create Blocklet DID first",noTitle:"Blocklet Title is required",noVersion:"Blocklet Version is required",inValidVersion:"Invalid Blocklet Version",noResource:"Please select upload resource to be included in the blocklet",noDescription:"Blocklet Description is required",noNote:"Release Note is required"},uploadToStoreSuccess:"Blocklet upload to Store successfully, you need publish it in the Store",publishToStoreSuccess:"Blocklet published to Store successfully",connectStoreSuccess:"Blocklet Store connected successfully"}},dashboard:{nodeDid:"Node",ownerDid:"Owner",routingEngine:"Routing Engine",ownerNftURL:"Owner NFT",expirationLeft:"Expiration Left",startFromCrashTip:"Blocklet Server did not exit normally last time, please manually start the blocklets that needs to be run.",runtimeConfig:{blockletMaxMemoryLimit:"Blocklet Max Memory Limit",daemonMaxMemoryLimit:"Server Max Memory Limit",proxyMaxMemoryLimit:"Event Bus Max Memory Limit"}},store:{nameSort:"Name",popularSort:"Popularity",headerDescription:"Find and Install Your Blocklets",detail:{purchase:"Purchase {name}",open:"Open {name}",install:"Install {name}",upgrade:"Upgrade {name}",empty:"No introduction"},blockletRegistry:{changeFailed:"Change Blocklet Store Failed: ",addFailed:"Add Blocklet Store Failed: ",editFailed:"Edit Blocklet Store Failed: ",switchRegistry:"Switch Blocklet Store",addRegistry:"Add Blocklet Store",editRegistry:"Edit Blocklet Store",deleteRegistry:"Delete Blocklet Store",haveSameRegistry:"The same blocklet store exists",registryName:"Blocklet Store Name",registryUrl:"Blocklet Store URL",registryNameEmpty:"Blocklet Store name cannot be empty",registryUrlEmpty:"Blocklet store url cannot be empty",deleteDesc:'Confirm Delete blocklet store {name} ?<br/><span style="color: {color}">*After removing this blocklet store, you cannot update the apps installed from this blocklet store unless you add them again.</span>',confirmDesc:"Please input {name} to delete"},purchase:{title:"Purchase {name}",confirmed:"Your blocklet purchase NFT is verified",declined:"You do not provided valid the blocklet purchase NFT",waiting:"Waiting for purchase complete...",purchase:{title:"Purchase NFT",description:"Pay some token before installing this blocklet if you have not purchased this blocklet"},verify:{title:"Verify NFT",description:"Your NFT will be verified before installing this blocklet if you have purchased and hold the purchase NFT in your DID Wallet",auth:{title:"Purchase Credential Required",scan:"Connect DID Wallet to provide blocklet purchase NFT",confirm:"Review this operation on your DID Wallet",success:"Your purchase NFT is verified, and installing has started"}},auth:{title:"Purchase {name}",scan:"Scan following QRCode with your DID Wallet",confirm:"Confirm on your DID Wallet",success:"Purchase NFT sent to your DID Wallet"},launch:"Launch {name}",autoLaunch:"{name} successfully purchased, redirecting to launch page..."}},setting:{saveSuccess:"Settings Saved Successfully",unSavedTip:'There are unsaved changes, please click "Save Changes" to save them.',unSavedLeaveTip:"There are unsaved changes, are you sure to leave the page?",form:{name:"Name Your Server",nameRequired:"Server description is required",namePlaceholder:"Server Name",description:"Describe Your Server",descriptionHolder:"Server Description",descriptionRequired:"Server description is required",domain:"Your Server Domain Name",domainPlaceholder:"Server Domain Name",domainRequired:"Server domain is required",ipPlaceholder:"IP",ipRequired:"IP is required",registry:"Blocklet Store",registryPlaceholder:"Blocklet store to fetch blocklets",registryRequired:"Blocklet store is required ",registerUrl:"Blocklet Launcher URL",registerUrlPlaceholder:"Input the URL of your preferred Blocklet Launcher, you can use the official one safely",webWalletUrl:"DID Wallet URL",webWalletUrlPlaceholder:'Please input the URL of your hosted "DID Wallet", you can use the official one safely',nftDomainUrl:"NFT Domain URL",nftDomainUrlPlaceholder:'Please input the URL of your hosted "NFT Domain", you can use the official one safely',enableWelcomePage:"Enable welcome page",welcome:{switchLabel:"Welcome Page"},security:{switchLabel:"File System Isolation",switchTips:"After disabling this option, the file system of the Blocklet will no longer be in isolation, which may pose a risk of malicious software damaging the file system.",warningTips:"The file system isolation feature cannot take effect. Please upgrade the node.js version (current version is {version}) to v21.6.0 or higher."},upgrade:{title:"Upgrade Blocklet Server to {version}",description:"During the upgrade, your Blocklet Server will enter maintenance mode for a few minutes while the update is completed.",dialog:'Click on "confirm" to install the update. Blocklet Server will enter maintenance mode until the update is completed and return to production mode automatically.',confirm:"Upgrade",switchLabel:"Auto Update Check",enableBetaRelease:"Enable Beta Release",setup:"Preparing the upgrade",installing:"Installing Blocklet Server v{version}",restarting:"Restarting Blocklet Server",cleanup:"Migrating Blocklet Server data",verifying:"Verifying Blocklet Server v{version}",rollback:"Rollback Blocklet Server",complete:"Upgrade complete!",progress:"Upgrading {name}",check:"Check for Updates",latest:"You are running the latest version."},restart:{title:"Restart Blocklet Server",description:"During the restarting, your Blocklet Server will enter maintenance mode while the restart is completed.",dialog:'Click on "confirm" to restart. Blocklet Server will enter maintenance mode until the restart is completed and return to production mode automatically.',confirm:"Restart",setup:"Preparing the restart",verifying:"Verifying Blocklet Server",restarting:"Restarting Blocklet Server",cleanup:"Ensure everything is OK",rollback:"Cleanup the dirty state",complete:"Maintain complete!",progress:"Restarting {name}"},register:{titleAdded:"Added to Blocklet Launcher",title:"Add to Blocklet Launcher",description:"Once added, you can launch blocklets to this blocklet server from {url}.",descriptionOnAdded:"you can launch blocklets to this blocklet server from {url}.",btn:"Add",update:"Update",added:"Added",addSucceed:"Add succeed",updateSucceed:"Update succeed",detecting:"Detecting",timeout:"Detection timeout, please check if the blocklet launcher is started"},monitor:{diskThreshold:"Send alert when disk usage exceeds (%)",diskThresholdPlaceholder:"Please set the disk usage alert threshold"}},accessKey:{accessKeyId:"ACCESS KEY",lastUsed:"Last Used At",tip:"Please enter a name for this access key for future reference:",saveSecretTip:"This is the only time that your Access Secret key can be viewed and cannot be recovered. However, you can create new access keys at any time",iKnow:"I have copied and saved the Access Secret",showSecret:"Show Secret Access Key",hideSecret:"Hide Secret",title:"Delete Access Key",descriptionNoTime:"This will permanently delete the access key {key} with name {name}, which is (never used before)",description:"This will permanently delete access key {key} with name {name}, which is (last used on {time}, {timeAge})",confirm_desc:"Please input {name} to delete",remark:"Access Key Name",remarkInvalid:"Access Key Name is required"},webhook:{add:"Add Integration",delTitle:"Delete Integration",requiredError:"Please provide a valid {type}",confirm_desc:"Please input {name} to delete",test:"Test",description:"This will permanently delete integration with ID {id}",columns:{description:"ID",params:"Params",createdAt:"createdAt"}}},notification:{title:"Activities",empty:"No activities yet",viewAll:"View All",showRead:"Show Read",markAllAsRead:"Mark All as Read",markAsRead:"Mark As Read",proceed:"Proceed",checkingForUpdates:"Checking for updates...",installComponentError:"Not found uninstalled component {name}",installingComponent:"Installing component {name}",pushKit:{enable:"Enable PushKit notification",endpoint:"PushKit endpoint",endpointInvalid:"PushKit endpoint is invalid URL",testSuccess:"Test PushKit send successfully",testFailed:"Test PushKit send failed",testReceiver:"PushKit receiver",testSend:"Test push-kit send",inputTestReceiver:"Please input test receiver did",receiverRequired:"PushKit receiver is required",pushPath:"Api path for push-kit (default /api/push)",did:"PushKit Blocklet DID",customOptions:"Custom Options"},email:{enable:"Enable email notification",from:"Email sender",host:"SMTP server host",port:"SMTP server port",user:"SMTP server username",secure:"Enable secure connection",password:"SMTP server user password",fromRequired:"Email sender is required",fromInvalid:"Email sender is invalid",receiverRequired:"Email receiver is required",receiverInvalid:"Email receiver is invalid",hostRequired:"SMTP server host is required",hostInvalid:"SMTP server host is invalid",portRequired:"SMTP server port is required",portInvalid:"SMTP server port is invalid, port should be between 1 and 65535",userRequired:"SMTP server username is required",passwordRequired:"SMTP server user password is required",testSuccess:"Test email send successfully",testFailed:"Test email send failed",testReceiver:"Email receiver",testSendEmail:"Test email send",inputTestReceiver:"Please input test receiver email",disable:"Unsubscribe email notification",disableDescription:"After unsubscribe, you will no longer receive email notifications. To receive email notifications, you can subscribe it again on this page.",unsubscribe:"Unsubscribe email notification",unsubscribeDescription:"After unsubscribe, you will no longer receive any email notifications.",subscribe:"subscribe",subscribeDescription:"To receive email notifications, you can subscribe it again on settings page."},comingSoon:"More notification channel are under construction",unsubscribe:"Unsubscribe",unsubscribeSucceed:"Unsubscribe succeeded",unsubscribeFailed:"Unsubscribe failed",unsubscribeTokenRequired:"Unsubscribe token in required",unsubscribeTokenExpired:"Unsubscribe token is expired",unsubscribeTokenInvalid:"Unsubscribe token is invalid"},router:{routerSetting:"Domains & URLs",certSetting:"SSL Certificates",defaultSite:"Default",urlHelperText:"URL that do not start with HTTP/HTTPS are considered relative paths",empty:"Click on Actions to setup URL Mapping",healthy:{ok:"Blocklet or service is running",error:"Blocklet or service is not running or not installed"},service:{select:"Select Blocklet Services (Optional)",what:"Blocklet Services are pipelines executed against the request before redirecting to upstream blocklet"},nonProvider:{title:"Engine Change Warning",description:"If you change engine to none, your current page may not work properly because the previous engine will be stopped, are you sure to continue?",confirm:"I understand, continue"},validation:{urlRequired:"URL is required",redirectCodeRequired:"Redirect code is required",didRequired:"Blocklet is required",pathPrefixTooLong:"The URL Prefix cannot exceed {length} characters",pathPrefixCannotBeEmpty:"The URL Prefix cannot be empty",domainRequired:"Server domain is required",invalidUrl:"Please provide a valid URL",pathPrefixRequired:"URL prefix is required",redirectUrlRequired:"Redirect URL is required",rewriteUrlRequired:"Rewrite URL is required"},domain:{addSite:"Add Site",validate:{emptyTip:"Site domain cannot be empty",suffixTip:"Site domain cannot include {suffix}"},add:{title:"Add Domain Name",description:"Please provide a valid domain name",confirm:"Add",cancel:"Cancel",blocklet:"Select Blocklet",redirect:"Where to redirect the traffic?",port:"What port does your request handler need to listen to?",portTip:"This defaults to the main port of request handler, you can customize this",type:"Traffic Handler",component:"Select Component",pageGroup:"Page Group",pageGroupTip:"This component can render any group of pages listed above, leave empty to render all pages"},update:{title:"Update Site Domain",label:"Site Domain",description:"Please provide a valid site domain"},setup:{tipStart:"Add the DNS records for the domain",tipEnd:"as per the following guidelines",recordType:"Record Type",recordValue:"Record Value"},verify:{ok:"The domain resolution is normal",notResolved:"This domain neither resolved nor accessible, please check your DNS configuration"},https:{ok:"This domain has https enabled",bad:"This domain has not enabled https"},delete:{title:"Delete Site",description:'By confirming, you will delete your existing "{name}" site. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your site',confirm_desc:"Please input {name} to confirm"}},domainAlias:{nftDomain:"Automatic config with DID Domain",showTipHint:"How do I configure domain name resolution?",add:{title:"Add Additional Domain",domainDescription:"Please provide a valid domain name",forceTip:"Force add if domain name already exists",helperText:"If an HTTP or HTTPS URL is entered, it will be automatically converted into a domain name.",isDidDomainError:"This domain is a DID Domain. Please add it using the method for automatic domain configuration."},addCustomDomain:{name:"Custom Domain"},addDomainNFT:{showNFT:"Configure domain automatically",tips:"You can enter a domain purchased from DID Domain. If a DID Domain is detected, you must present the DID Domain NFT to continue.",connect:{title:"Please show your Domain NFT",scan:"Scan following QR code with DID Wallet to authorize to blocklet to use your domain",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},buyTip:"DID Domain will do the domain name resolution automatically, no need to configure it manually, and the application will update the resolution record of the domain name automatically when needed. If your don't have DID Domain NFT yet, ",buy:"buy it now!"},delete:{title:"Delete",description:"After removing a domain alias, access to that alias may not be handled properly."}},domainSecurity:{title:"Domain Security",cors:{title:"Allowed CORS Domains",description:'Domain list that can send cross origin requests to {name}, comma separated, use "*" to allow anyone, which is not recommended',domainInvalid:"Please input a valid list of domain names"}},rule:{add:{title:"Add URL Mapping",confirm:"Add",pathPrefix:"What's the URL Prefix?",pathPrefixTip:"If you set prefix to '/my-prefix', then all requests that begins with that prefix will be routed to the configured blocklet",blocklet:"Which Blocklet will be handling those requests?",port:"Which port of the blocklet will be handling requests?",portTip:"This defaults to the main port of blocklet, if your blocklet listens on multiple ports, you can customize this",responseType:"Response Type",responseBody:"Response Content",responseBodyTip:"Paste your response content here, should not exceed 4096 characters",responseBodyRequired:"Response content can not be empty"},delete:{title:"Delete URL Mapping",description:'By confirming, you will delete your existing "{name}" URL Mapping. Type "{name}" below and select Delete to complete the change, or select Cancel if you want to leave your URL Mapping.',confirm_desc:"Please input {name} to delete",cancel:"Cancel"},update:{title:"Update URL Mapping",confirm:"Yes, Update",cancel:"Cancel"}},cert:{name:"Certificate Name",domain:"Domain Name",action:"Action",commonName:"Common Name",boundDomains:"Domains",source:"Source",expired:"Expired",leftDays:" days left",issuedOn:"Issued On",expiryOn:"Expiry On",fingerprintAlg:"Fingerprint Algorithm",validityPeriod:"Validity Period",matchedSites:"Matched Sites",upload:"Manual Upload",publicCertHelperText:"Public certificates can be downloaded",nonPublicCertHelperText:"Non-public certificates cannot be downloaded",protectedCertHelperText:"Protected certificates cannot be edited",unprotectedCertHelperText:"Unprotected certificates can be edited",issuing:"Certificate being generated",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"},table:{nodata:"No data"},delete:{title:"Delete Certificate",description:"Confirm delete certificate of domain {domain}? Deleting it may affect related services. Please confirm it's safe before proceeding with the deletion.",confirm:"Confirm"},nginx:{title:"Update Certificate",titleAdd:"Add Certificate",pem:"SSL Certificate File",pemTip:'Please drop your server certificate file here, it should ends with ".pem" or ".crt"',key:"Private Key File",keyTip:'Please drop your server private key file here, it should ends with ".pem" or ".key"',confirm:"Save",cancel:"Cancel",invalidFile:"You have selected an invalid file",empty:"No file selected yet",source:"Source",sourceTypes:{upload:"Manual Upload",lets_encrypt:"Let's Encrypt"}},detail:{title:"Certificate Details"},genLetsEncryptCert:{title:"Generate Let's Encrypt certificate",dnsTip:"Please make sure the domain name has point to the current Blocklet Server.",description:"Adding a certificate will make the service more secure, and Blocklet Server will automatically renew the certificate before it expires."}},gateway:{reqLimit:{status:{true:"Enabled",false:"Disabled"},switchLabel:"Request Limit",rate:"Request Limit({rate} Request/Second)",ipHeaderLabel:"Customize client IP header(Optional)",ipHeaderDesc:"If the Blocklet Server is running behind some proxies, you can set the header of the client's real IP here. Optional, leave empty to use default."},cacheEnabled:{switchLabel:"Enable Gateway Cache"}}},noMatch:{desc:"We can't find the page that you're looking for"},health:{connectionErrorTip:"Blocklet Server can't connect to the network, please check if Blocklet Server has been stopped or there is a network issue",connectionRecoveryTip:"Blocklet Server connectivity has been recovered",connectionStoppedTip:"Blocklet Server has been stopped",wrongAccessUrlTip:"Blocklet Server access address is wrong, please use the correct access address"},debug:{title:"Your Blocklet Server is up and running!"},team:{invite:"Invite New",add:"Add New",member:{name:"Name",passport:"Passport",passports:"Passports",lastLogin:"Last Login",lastLoginIp:"Last Login IP",source:"Register Source",source_derived:"Derived from oauth",source_wallet:"DID Wallet",filter:"Filter by",forbidLogin:"Forbid Login",forbidLoginDescription:"The user will not be able to connect to this application",allowLogin:"Allow Login",allowLoginDescription:"The user will be able to connect to this application",updateRole:"Update Role",deleteUser:"Delete User",deleteUserDescription:'Confirm delete user "{name}"?',revokePassport:"Revoke Passport",revokePassportDescription:"Once the passport is revoked, the passport holder can not use it to login again, are you sure to continue?",enablePassport:"Enable Passport",enablePassportDescription:"Once the revoked passport is enabled again, the passport holder can use it to login again, are you sure to continue?",passportPermissionTitle:"The passport has the following permissions:",search:"Search Member",hideBlockedMember:"Hide Unapproved Members",inviteDialog:{createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},error:{passportEmpty:"Passport should not be empty"},connectedAccounts:"Connected Accounts",connections:"Connections",federated:"Federated",switch:{did:"Switch DID",profile:"Switch Profile",passport:"Switch Passport"},settings:{notification:"Notifications",email:"Send email to me when some events happen",wallet:"Send notification to my wallet when some events happen",phone:"Send text message to me when some events happen",webhook:"Webhooks",add:"Add new webhook",url:"Custom URL",slack:"Slack Webhook",tested:"Test message sent"},activeUserSessions:"Active User Sessions",forceLogout:"Force logout",forceLogoutDescription:"Confirm to force logout this user?"},transferNode:{name:"Transfer Ownership",inviteDialog:{title:"Transfer Blocklet Server",tips:{progress:"Transfer the server needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the server with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and Blocklets.",revoke:'If you want to withdraw the transfer invitation, you can delete the invitation link in the "Team -> Members -> Inviting" page.'},createInviteLink:"Generate Invitation Link",createSuccessTip:"The invitation link is successfully created, click to copy and send the link to the invited member, please note that this invitation link can not be reused and will expire on {expireDate}"},delegateDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize server to transfer server ownership NFT.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"}},transferApp:{name:"Transfer Ownership",transferDialog:{title:"Transfer Application",tips:{progress:"Transfer the application needs to be accepted by the receiver to complete the transfer operation, and once the receiver accepts it, you cannot log in to the application with the current passport again.",newOwnerPermissions:"The new Owner will have the right to manage all operations such as members, passports, and settings."},createTransferLink:"Generate Transfer Link",createSuccessTip1:'The transfer link is successfully created, the invitee must use <a style="color: rgb(29, 193, 199)" target="_blank" href="https://www.didwallet.io/">DID Wallet</a> to receive the app ownership',createSuccessTip2:"Please click to copy and send the link to the invited member, please note that this transfer link can not be reused and will expire on {expireDate}. Your transfer link will only be shown once and will not be viewable again after closing this dialog",createSuccessTip3:"After the transfer is successful, the application will automatically restart to make the changes take effect",link:"Transfer Link",iKnow:"I have copied and saved the link"},connectDialog:{title:"Authorize Required",scan:"Scan following QR code with DID Wallet to authorize application to transfer ownership.",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully"},receiveDialog:{title:"Receive Application Ownership",scan:"Scan following QR code with DID Wallet to receive the application ownership.",confirm:"Confirm on your DID Wallet",success:"Receive Ownership Successfully"},successTitle:"You have become the new owner of this application",visitDashboard:"Visit Application Dashboard"},permission:{create:{title:"Create Permission",description:`Format: <action>_<resource>
|
|
260
|
-
e.g. 'query_user', 'mutate_user'`},delete:{title:"Delete Permission",description:"Confirm delete {name}?"},error:{actionEmpty:"action cannot be empty",resourceEmpty:"resource cannot be empty",permissionTooLong:"permission cannot exceed {length} characters",descriptionTooLong:"description cannot exceed {length} characters"}},passport:{create:{title:"Create Passport",titleTip:"Title cannot be modified after created, recommended within 14 letters"},bind:{title:"Bind Permission",roleTip:"You will get all the permissions of the selected passport after binding",permissionTip:"You will get the selected permissions after binding",transferLeftTitle:"All permissions",transferRightTitle:"Granted permissions"},delete:{title:"Delete Passport",description:"The passports holds by user will lose all permissions after it is deleted. Are you sure to continue?"},error:{titleEmpty:"title cannot be empty",titleTooLong:"title cannot exceed {length} characters",descriptionEmpty:"description cannot be empty"},issuance:{pending:"Pending",create:{title:"Generate Link"},delete:{title:"Delete Receive Link",description:"Confirm delete {link}?"}},issue:"Issue Passport",disableIssuance:"Disable Passport Issuance",enableIssuance:"Enable Passport Issuance",disableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be disabled',enableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be enabled',trustedPassportIssuers:"Trusted Passport Issuers",trustedIssuers:"Trusted Issuers",trustedFactories:"Trusted NFT Collections",trustedFactoriesTip:"Manage trusted NFT Collections that can be used to exchange for a passport",searchFactoryAddress:"Search Collection DID",configFactories:"Config Trusted NFT Collections",configFactoriesTip:"Allow users to exchange NFTs for passport",factoryAddress:"NFT Collection Address",factory404:"NFT Collection not found",factoryAddressTip:"The NFT Collection address must exist on ArcBlock Main Chain",role:"Passport Type",ttl:"Passport Expire Policy",ttlNever:"Never Expire",ttlMint:"Since NFT Purchase",ttlExchange:"Since Passport Exchange",ttlNeverTip:"The passport will be valid until revoked",ttlMintTip:"The passport will be valid since the NFT is purchased until you specified ttl or revoke",ttlExchangeTip:"The passport will be valid since user successfully exchanged until you specified ttl or revoke",ttlTip:'"365d" means 365 days, you can also use "30 days" or "24h"',validUntil:"Valid until: {date}",externalPassport:"External Passport",notTrustedIssuerTip:"The passport cannot be used because the issuer is not on the list of trusted issuers",issuerDid:"Issuer DID",addNodeToTrustedIssuers:"Add current server as a trusted passport issuer",revoked:"Revoked",noPermission:"No permission to perform this operation",shouldNotDeleteCurrent:"You can not revoke your passport currently in use",mappingRule:"Mapping rule",defaultRule:"Default rule",search:"Search Passport",searchIssuerDid:"Search Issuer DID",issueBy:"Issue by {name}",configColor:"Config Passport Color",configColorTip:"Customize the color of the passport",color:"Passport Color",description:"Use this passport to connect {teamName} as {title}"},inviting:{link:"Invite Link",inviter:"Inviter",delete:{title:"Delete Invite Link",description:"Confirm delete {link}?"},disabledTip:"Invitation is not enabled"},whoCanAccess:{all:{title:"Accessible to all"},owner:{title:"Owner only"},invited:{title:"Invited user only"}}},launcher:{provider:"Provider",adminUrl:"URL"},session:{forbidLogin:"You have been blocked from access this server"},launchBlocklet:{appInfo:"Application Information",appInfoDesc:"Confirm the application information",author:"Application Author: {author}",setup:"Setup Blocklet",redirect:"Redirect",alreadyRunning:"Application {name} is already running on this Blocklet Server",alreadyInstalled:"Application {name} is already installed on this Blocklet Server",alreadyExists:"This application already exists, redirecting...",purchased:"Already Purchased",purchase:"Purchase",nextStep:"Next Step",agreement:"License Agreement",agreeAll:"Agree & Continue",installing:"Installing {appName} on {serverName}, it may take minutes to complete, please stay tuned...",redirecting:"{appName} is successfully installed, now starting...",start:"Launching",launch:"Install Blocklet to Server",launchSuccess:"{appName} is successfully launched!",installSuccess:"Blocklet is successfully installed and launched on {serverName}",openInRegistry:"View in Blocklet Store",subTitle:"Ready to install Blocklet {appName} on {serverName}",installingSubTitle:"{appName} installing",access:"Open the application",installRelatedComponents:"Install related Blocklets",viewApplication:"View Application",newVersion:"New Version",newVersionDesc:"The application already exists, but the current version can be upgraded",upgradeNow:"Upgrade Now",later:"Later",introduction:"Introduction",welcome:"Welcome to the Blocklet Launch Wizard",accept:"I agree to the Blocklet EULA",license:"Application License",next:"Agree to the EULA and continue",purchaseApp:"Purchase Blocklet",setupAppDesc:"Initialize your Blocklet",launched:"Complete",confirmInstall:"Confirm Installation",dialog:{title:"Become App Owner",nftFreeDescription:"Please present app space NFT and create app account to continue",nftPaidDescription:"Please present app space NFT and app purchase NFT to continue",freeDescription:"Please create app account to continue",paidDescription:"Please present app purchase NFT and create app account to continue",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully",authorizationTimeout:"Authorization timeout"},waiting:{verifying:"Verifying app meta...",downloading:"Downloading app bundle...",downloadingComponent:"Downloading {name}",extractingComponent:"Extracting {name}",extracting:"Extracting app bundle...",installing:"Installing app components...",installed:"Installed",starting:"Starting the app...",done:"Waiting for app ready..."},error:{loadMetaFailed:"Load app information failed",appMetaNotFound:"No information found for this app",downloadFailed:"Failed to download the app, please try again",installFailed:"Failed to install the app, please try again",startFailed:"Failed to start the app, please try again",launchFailed:"Failed to launch the app, please try again",installedButStopped:"The app is installed successfully, but cannot be started. You can start it manually after resolving blocking issues",installedButError:"The app is successfully installed, but failed to start",restoreFailed:"Failed to restore app, please try again",resourceBlocklet:"This blocklet cannot be launched directly, but you can add it into existing application."},steps:{introduction:"Introduction",installApp:"Install Application",purchaseSpace:"Purchase Space",prepareSpace:"Prepare Space"}},issuePassport:{title:"Receive Passport",description:"Use DID Wallet to receive the passport issued by {name}",dialog:{scan:"Use your DID Wallet to claim the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet",loginWithPassport:"Connect with this Passport",autoClose:"Page will auto close in {seconds}s",autoJump:"Page will auto jump in {seconds}s"}},lostPassport:{title:"Lost Passport",description:"The owner of {name} can scan the QR code to retrieve the passport, members please contact the owner to reissue the passport",dialog:{title:"Recover Passport",scan:"Use your DID Wallet to recover the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet"},return:"Connect with passport",selectPassport:"Select passport",receivePassport:"Receive passport"},invite:{message:"{name} invite you to be the {role} of {dapp}",success:"You have successfully joined {dapp}",receive:"Receive with",validUntil:"Valid until:",viewPermission:"View Permission",emptyPermission:"Empty Permission",open:"Open",description:{step1:"Download and setup your {wallet}",step2:"Click above button to receive passport",step3:"Login in {dapp} with received passport"},transferNFTDialog:{title:"Accept Blocklet Server {name}",scan:"Connect the Launcher to complete the reception of the Blocklet Server.",confirm:"Review this operation on your DID Wallet",success:"Connect successfully, waiting for confirmation of receiving the Server"}},receive:{dialog:{title:"Use your DID Wallet to receive passport",scan:"Connect your DID Wallet to receive passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},navigation:{navigation:"Navigation",access:"Access",members:"Members",passport:"Passport",analytics:"Analytics",dashboard:"Dashboard",studio:"Studio",blockletService:"Blocklet Service",actionFailed:"Action Failed",form:{title:"Title",titlePlaceholder:"Please input navigation title",titleTooLong:"Title length should small than {len}",icon:"Navigation Icon",iconPlaceholder:"Please input navigation icon",invalidIcon:"Icon is invalid",findMoreIcon:"Find more icons",link:"Link",linkPlaceholder:"Please input navigation link",invalidLink:"Link is invalid",component:"Component",componentPlaceholder:"Please select navigation component",role:"Role",rolePlaceholder:"Please select navigation role",locale:"Locale",localePlaceholder:"Please input locale need to add",localeExists:"{value} is already exists"},action:{add:"Add navigation",addSub:"Add sub navigation",edit:"Edit navigation",hide:"Hide navigation",show:"Show navigation",del:"Delete navigation",new:"New",noAddSub:"Uninstalled component can't add sub navigation",noEdit:"Uninstalled component can't edit",noDel:"Not allowed delete built-in navigation",reset:"Reset",restConfirmTitle:"Do you want to clear all custom navigation?",restConfirmDesc:"After clearing, the navigation will be restored to Blocklet's original default configuration.",resetSuccessful:"Reset successful"}},storage:{spaces:{tips:"Tips",label:"Enter DID Spaces Gateway",connected:{title:"Connected DID Spaces",tag:"Connected"},connectedWithName:"You have successfully connected to {name}",addedWithName:"You have successfully added {name}",connects:"Connect",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"},provideNFT:{title:"Please show the DID Spaces NFT for {appName}",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} show DID space NFT",success:"Connected successfully"},backup:{title:"Backup",records:"Backup Records"},autoBackup:{title:"Auto backup",enabled:"Automatic backup is on",disabled:"Automatic backup is off"},autoCheckUpdate:{title:"Automatically check for new version notification",enabled:"Automatically check for new version is on",disabled:"Automatically check for new version is off"},backupSuccessfully:"Backup successfully",restore:"Restore",restoreSuccessfully:"Restore successfully",gateway:{title:"Gateway",select:"Select a DID Spaces",add:{title:"Add DID Spaces",label:"Enter the url of the DID Spaces",failed:"Add DID Spaces failed",invalidUrl:"Invalid DID Spaces gateway url",duplicate:"DID Space({name}) already exist"},delete:{title:"Delete gateway",succeeded:"Delete DID Spaces{name} Success",failed:"Delete gateway failed",failedForSelected:"Unable to delete a selected DID Spaces"},connect:{title:"Connect DID Spaces",add:"Connect to DID Spaces now",addTips:"You are not connected to any Space yet",switch:"Switch DID Spaces",switchTips:"You are connected to {name}",connected:"Connected"},switch:{failedForMismatchSpace:"Please connect to the correct Space{name}"},connectTo:"Connect to DID Spaces"},strategy:{title:"Backup Strategy",autoBackup:"Auto backup",backupNow:"Backup now",viewBackupFiles:"View backup files"},progress:{title:"Backup progress"},record:{title:"Backup records",emptyData:"No records"},notYet:"You don't have a backup in progress yet...",connect:{now:"Connect now",title:"Connect DID Spaces",provider:"Provide your DID Spaces to start backups",providerForStorage:"Please connect your DID Spaces",useWallet:"Connect with DID Wallet",useWalletReconnect:"Reconnect with DID Wallet",useSpaceGateway:"Connect using the DID Spaces gateway",useSpaceGatewayReconnect:"Reconnect using the DID Spaces gateway",switchToSpace:"Switch to Space",switchToSpaceSucceeded:"Switched to Space{name}",succeeded:"You have successfully connected to DID Spaces",disconnect:"disconnect"},disconnected:{tag:"Disconnected",reconnectNow:"Reconnect Now"}}},log:{lastDays:{1:"Last 1 Day",7:"Last 1 Week"}},oauth:{commonSettings:"Common Settings",save:"Save",saveSuccess:"Save successfully",saveFailed:"Save failed",issued:"Issued",thirdPartyLogin:"Third party login",alreadyBindOAuth:"Already bind third party login",alreadyBindWallet:"Already bind DID Wallet",auth0:{enable:"Enable Auth0 login",domain:"Domain",domainDescription:"Auth0's domain is required",clientId:"Client ID",clientIdDescription:"Auth0 OAuth application client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Auth0 OAuth application Client Secret is required"},github:{enable:"Enable Github login",clientId:"Client ID",clientIdDescription:"Github OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Github OAuth application Client Secret is required"},google:{enable:"Enable Google login",clientId:"Client ID",clientIdDescription:"Google OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Google OAuth application Client Secret is required"},apple:{enable:"Enable Apple login",teamId:"Team ID",teamIdDescription:"Apple OAuth application Team ID is required",serviceId:"Service ID",serviceIdDescription:"Apple OAuth application Service ID is required",keyId:"Key ID",keyIdDescription:"Apple OAuth application Key ID is required",authKey:"Auth Key",authKeyDescription:"Apple OAuth application Auth Key is required",bundleId:"Bundle ID",bundleIdDescription:"Apple OAuth application Bundle ID is required"},comingSoon:"More login methods are under construction",moreLogin:"More Login",federated:"Federated Login",oauth:"Third Party Login",runTest:"Test"},expiration:{mobile:{tips:{success:"{validity}",warning:"{validity}",error:"Expired"},loadFailed:"Retry!"},desktop:{tips:{success:"Subscription will expire after {validity}",warning:"Subscription will expire after {validity}",error:"Subscription Expired"},loading:"Load subscription...",loadFailed:"Failed to load subscription info, please retry!",nextInvoice:"Next Invoice: {date}"}},analytics:{trend:"Trends",detail:"Breakdown",traffic:{totalRequests:"Total Requests",validRequests:"Success Requests",failedRequests:"Failed Requests",uniqueVisitors:"Unique Visitors",uniqueFiles:"Unique URLs",uniqueReferrers:"Unique Referrers",uniqueNotFound:"Unique 404",uniqueStaticFiles:"Unique Static Files",logSize:"Log Size",bandwidth:"Bandwidth"}},federated:{inviteJoinFederatedLogin:"Invite to join federated login",inviteJoinFederatedLoginDescription:"Copy the following address and fill it in the application where you need to join to apply for federated login.",federatedLogin:"Federated login",joinFederatedLogin:"Join federated login",joinFederatedLoginDescription:"Please enter the federated login address provided by Master Blocklet to join the federated login",quitFederatedLogin:"Quit federated login",quitFederatedLoginDescription:"After quit federated login, normal login is always available",federatedJoinAppUrl:"Federated login join appUrl",federatedJoinAppUrlRequired:"Please input federated login join appUrl",failedToGetFederatedLoginAppUrl:"Failed to get federated login join appUrl",federatedJoinAppUrlInvalid:"Federated login appUrl is invalid",siteDetail:"Site detail",approveToJoinLogin:"Approve to join federated login",approve:"Enable login",revoke:"Disable login",enableFederatedLogin:"Enable federated login",disableFederatedLogin:"Disable federated login",enableFederatedLoginDescription:"After enable federated login, this site will be auto login",disableFederatedLoginDescription:"After disable federated login, this site will not be auto login",enableFederatedAutoLogin:"Enable automatic login",enableFederatedAutoLoginDescription:"After enable automatic login, if there is currently a unified login status, the site will automatically log in the identity of the federated login",disableFederatedAutoLogin:"Disable automatic login",disableFederatedAutoLoginDescription:"After the automatic login is turned off, the site will not automatically log in the user information of the unified login, and you can still choose to manually click to log in with the identity of the federated login",info:{appId:"APP DID",appPid:"Permanent ID",migratedFrom:"Also Known As",appName:"Blocklet name",appDescription:"Blocklet description",appUrl:"Blocklet url",appLogo:"Blocklet logo",did:"Blocklet DID",serverId:"Blocklet Server ID",serverVersion:"Blocklet Server version",version:"Blocklet version",appliedAt:"Apply at",status:"Status"},status:{pending:"Pending",approved:"Approved",rejected:"Rejected",revoked:"Revoked"},disbandFederatedLogin:"Disband federated login",disbandFederatedLoginDescription:"After disband federated login, all member site will quit federated login automatically"},optionsOrder:{1:"Option One",2:"Option Two"}},SIe={pageTitle:{login:"Login",dashboard:"Blocklet Dashboard",userCenter:"User Center",invite:"Invite",issuePassport:"Issue Passport",lostPassort:"Lost Passport"},auth:{noPermission:{title:"No Permission",description:"You are not the administrator of the blocklet"}},login:{reLogin:"Reconnect",description:"You must connect your DID Wallet to access {name}",already:"You are connected as",connectWallet:"Connect DID Wallet",closeWindow:"Close window",switchDid:{title:"Switch DID Wallet",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},switchSpecifiedDid:{title:"Switch DID Wallet",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},connect:{title:"Connect DID Wallet",scan:"Connect your DID Wallet to access this application",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"},accessLimit:{title:"Page access restricted ",description:"This page requires the following passports to access, please connect to the wallet to change or apply for the corresponding pass.",alreadyHavePassport:"Already have the passport",connectWithPassport:"Connect with this passport",buyPassport:"buyPassport"},connectWithPassport:"Connect with this passport",needManualClose:"Login success, if this window is not auto closed, please close it."},studio:{home:"Studio",preferences:"Preference Builder",localization:"Localization"},blocklet:{startApplication:"Start Application",startDescription:"Ready to start {name}",start:"Start",starting:"Starting...",open:"Open",suspended:"Application suspended",redemptionTip:"This application has been suspended due to payment expiration. Please renew before the {deadline} to resume. Failure to renew within the specified timeframe will result in the inability to renew or resume.",manageSubscription:"Manage Subscription"},setup:{steps:{connect:"Connect",didSpace:"DID Spaces",config:"Configuration",domain:"Domain",access:"Access Control",fuel:"Fuel",complete:"Complete",introduction:"Introduction",selectNodeDesc:"Select Blocklet Server",launchAppDesc:"Install Blocklet to Server",setupAppDesc:"Setup Blocklet",launched:"Complete"},connect:{title:"Connect to Application",scan:"Connect your DID Wallet to provide user profile and the blocklet's Owner privileges, then you can configure and launch the app.",confirm:"Confirm on your DID Wallet",success:"You are connected successfully"},domain:{addTitle:"Add a new domain name (Optional)",title:"Domain Setting",subTitle:"Set a custom domain for the application",label:"Please provide a valid domain name",tipStart:"Please make sure",tipEnd:"has point to the current Server",cannotResolve:"{domain} can not be resolved, please check your DNS configuration",checkingResolvable:"Checking domain status...",addingCert:"Generating certificate...",addingDomain:"Adding domain...",recordType:"Record Type",recordValue:"Record Value",skipStart:"You can",skip:"skip custom domain setting",skipEnd:"and use the default domain to access the application",genCertSuccess:"The {domain} certificate is issued successfully",genCertFailed:"Failed to issue certificate for {domain}: {message}",genCertFailedForNFTDomain:"Added NFT domain successfully, but failed to generate HTTPS certificate, please try again later",resolvedAddressError:"{domain} does not point to the same IP address as {curDomain}",invalidDNSReminder:"{error}. However, you can continue to add the domain, but automatic certificate generation is not available.",continueAdd:"Continue Adding"},didSpace:{title:"Configure DID Spaces",subTitle:"Complete the following connection process to store application data in DID Spaces",tips:"Tips",description:"Configure the DID Spaces instance address and store the application data in DID Spaces after a successful connection",label:"Please select the DID Spaces service",connected:"You have successfully connected to DID Spaces",connect:"Connect Now",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"}},config:{title:"Configuration",subTitle:"Other configuration items (you will also need to set the following items)"},complete:{title:"Everything is Ready",failedTitle:"Failed to start Blocklet",backToServer:"Back to Blocklet Server",notRunning:"Blocklet failed to start on the first shot, please retry"},fuel:{title:"Fuel required to start",tipStart:"slot",tipEnd:" is required for this application to work properly, the fund are saved in the application wallet and can consumed for transaction gas purpose. You can withdraw your balance at any time when you no longer have the app running.",addressTitle:"Application Account",addressTip:"Fuel the application with DID Wallet",need:"Need",current:"Current",fuelApp:"Fuel the application"},title:"Setup",next:"Next",previous:"Previous",continue:"Continue",skip:"Skip",startNow:"Start Now",confirm:"Confirm",cancel:"Cancel"},user:{walletNotification:"DID Wallet notification",emailNotification:"Email notification",smsNotification:"SMS notification",addWebhook:"Add New Webhook"}},wIe={en:oa(Wi(AIe,SIe)),ar:async()=>{const e=await Promise.all([ln(()=>import("./ar-CEz-3AyV.js"),[]).then(t=>t.default),ln(()=>import("./ar-B7BWKAT0.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},de:async()=>{const e=await Promise.all([ln(()=>import("./de-Di4pToxm.js"),[]).then(t=>t.default),ln(()=>import("./de-ELpbFffa.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},es:async()=>{const e=await Promise.all([ln(()=>import("./es-CPDKeKrG.js"),[]).then(t=>t.default),ln(()=>import("./es-4F6iKSAU.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},fr:async()=>{const e=await Promise.all([ln(()=>import("./fr-9RG8cAa6.js"),[]).then(t=>t.default),ln(()=>import("./fr-DOPIs7lg.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},hi:async()=>{const e=await Promise.all([ln(()=>import("./hi-DJLNiG5V.js"),[]).then(t=>t.default),ln(()=>import("./hi-Dzp-4zoH.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},id:async()=>{const e=await Promise.all([ln(()=>import("./id-TqWAFNjj.js"),[]).then(t=>t.default),ln(()=>import("./id-Bumv1FYl.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},ja:async()=>{const e=await Promise.all([ln(()=>import("./ja-BSnhR_mh.js"),[]).then(t=>t.default),ln(()=>import("./ja-CqCu7wgc.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},ko:async()=>{const e=await Promise.all([ln(()=>import("./ko-gjYVLUHm.js"),[]).then(t=>t.default),ln(()=>import("./ko-RwPO5IMK.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},pt:async()=>{const e=await Promise.all([ln(()=>import("./pt-B-XCpQDv.js"),[]).then(t=>t.default),ln(()=>import("./pt-BwOCnpCh.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},ru:async()=>{const e=await Promise.all([ln(()=>import("./ru-DSPtM6j0.js"),[]).then(t=>t.default),ln(()=>import("./ru-CBC11P4x.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},th:async()=>{const e=await Promise.all([ln(()=>import("./th-CxPqMbkk.js"),[]).then(t=>t.default),ln(()=>import("./th-CzfAwl4e.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},vi:async()=>{const e=await Promise.all([ln(()=>import("./vi-B8erxshV.js"),[]).then(t=>t.default),ln(()=>import("./vi-BDUtfRQR.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},zh:async()=>{const e=await Promise.all([ln(()=>import("./zh-XzadN7R3.js"),[]).then(t=>t.default),ln(()=>import("./zh-BiD8p9-Q.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},"zh-TW":async()=>{const e=await Promise.all([ln(()=>import("./zh-tw-BTlMDwjI.js"),[]).then(t=>t.default),ln(()=>import("./zh-tw-DTnWxJQa.js"),[]).then(t=>t.default)]);return oa(Wi(...e))}};function _Ie(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var CIe=_Ie,RIe=cK,xIe=RIe(Object.keys,Object),$Ie=xIe,IIe=qT,kIe=$Ie,DIe=Object.prototype,LIe=DIe.hasOwnProperty;function OIe(e){if(!IIe(e))return kIe(e);var t=[];for(var n in Object(e))LIe.call(e,n)&&n!="constructor"&&t.push(n);return t}var AK=OIe,PIe=mK,MIe=AK,BIe=Nf;function NIe(e){return BIe(e)?PIe(e):MIe(e)}var Xm=NIe,FIe=mh,UIe=Xm;function HIe(e,t){return e&&FIe(t,UIe(t),e)}var jIe=HIe,VIe=mh,JIe=Ym;function qIe(e,t){return e&&VIe(t,JIe(t),e)}var GIe=qIe;function zIe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var WIe=zIe;function KIe(){return[]}var SK=KIe,YIe=WIe,ZIe=SK,XIe=Object.prototype,QIe=XIe.propertyIsEnumerable,hM=Object.getOwnPropertySymbols,eke=hM?function(e){return e==null?[]:(e=Object(e),YIe(hM(e),function(t){return QIe.call(e,t)}))}:ZIe,i8=eke,tke=mh,nke=i8;function rke(e,t){return tke(e,nke(e),t)}var ike=rke;function ake(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var a8=ake,oke=a8,ske=Zx,lke=i8,uke=SK,cke=Object.getOwnPropertySymbols,fke=cke?function(e){for(var t=[];e;)oke(t,lke(e)),e=ske(e);return t}:uke,wK=fke,dke=mh,pke=wK;function hke(e,t){return dke(e,pke(e),t)}var mke=hke,gke=a8,yke=Ia;function vke(e,t,n){var r=t(e);return yke(e)?r:gke(r,n(e))}var _K=vke,bke=_K,Tke=i8,Eke=Xm;function Ake(e){return bke(e,Eke,Tke)}var CK=Ake,Ske=_K,wke=wK,_ke=Ym;function Cke(e){return Ske(e,_ke,wke)}var o8=Cke,Rke=Bf,xke=Ss,$ke=Rke(xke,"DataView"),Ike=$ke,kke=Bf,Dke=Ss,Lke=kke(Dke,"Promise"),Oke=Lke,Pke=Bf,Mke=Ss,Bke=Pke(Mke,"Set"),RK=Bke,Nke=Bf,Fke=Ss,Uke=Nke(Fke,"WeakMap"),Hke=Uke,cC=Ike,fC=hx,dC=Oke,pC=RK,hC=Hke,xK=iu,gh=Tz,mM="[object Map]",jke="[object Object]",gM="[object Promise]",yM="[object Set]",vM="[object WeakMap]",bM="[object DataView]",Vke=gh(cC),Jke=gh(fC),qke=gh(dC),Gke=gh(pC),zke=gh(hC),Fc=xK;(cC&&Fc(new cC(new ArrayBuffer(1)))!=bM||fC&&Fc(new fC)!=mM||dC&&Fc(dC.resolve())!=gM||pC&&Fc(new pC)!=yM||hC&&Fc(new hC)!=vM)&&(Fc=function(e){var t=xK(e),n=t==jke?e.constructor:void 0,r=n?gh(n):"";if(r)switch(r){case Vke:return bM;case Jke:return mM;case qke:return gM;case Gke:return yM;case zke:return vM}return t});var Qm=Fc,Wke=Object.prototype,Kke=Wke.hasOwnProperty;function Yke(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Kke.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Zke=Yke,Xke=Yx;function Qke(e,t){var n=t?Xke(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var eDe=Qke,tDe=/\w*$/;function nDe(e){var t=new e.constructor(e.source,tDe.exec(e));return t.lastIndex=e.lastIndex,t}var rDe=nDe,TM=ah,EM=TM?TM.prototype:void 0,AM=EM?EM.valueOf:void 0;function iDe(e){return AM?Object(AM.call(e)):{}}var aDe=iDe,oDe=Yx,sDe=eDe,lDe=rDe,uDe=aDe,cDe=lK,fDe="[object Boolean]",dDe="[object Date]",pDe="[object Map]",hDe="[object Number]",mDe="[object RegExp]",gDe="[object Set]",yDe="[object String]",vDe="[object Symbol]",bDe="[object ArrayBuffer]",TDe="[object DataView]",EDe="[object Float32Array]",ADe="[object Float64Array]",SDe="[object Int8Array]",wDe="[object Int16Array]",_De="[object Int32Array]",CDe="[object Uint8Array]",RDe="[object Uint8ClampedArray]",xDe="[object Uint16Array]",$De="[object Uint32Array]";function IDe(e,t,n){var r=e.constructor;switch(t){case bDe:return oDe(e);case fDe:case dDe:return new r(+e);case TDe:return sDe(e,n);case EDe:case ADe:case SDe:case wDe:case _De:case CDe:case RDe:case xDe:case $De:return cDe(e,n);case pDe:return new r;case hDe:case yDe:return new r(e);case mDe:return lDe(e);case gDe:return new r;case vDe:return uDe(e)}}var kDe=IDe,DDe=Qm,LDe=qo,ODe="[object Map]";function PDe(e){return LDe(e)&&DDe(e)==ODe}var MDe=PDe,BDe=MDe,NDe=Km,SM=t8,wM=SM&&SM.isMap,FDe=wM?NDe(wM):BDe,UDe=FDe,HDe=Qm,jDe=qo,VDe="[object Set]";function JDe(e){return jDe(e)&&HDe(e)==VDe}var qDe=JDe,GDe=qDe,zDe=Km,_M=t8,CM=_M&&_M.isSet,WDe=CM?zDe(CM):GDe,KDe=WDe,YDe=JT,ZDe=CIe,XDe=n8,QDe=jIe,eLe=GIe,tLe=oK,nLe=uK,rLe=ike,iLe=mke,aLe=CK,oLe=o8,sLe=Qm,lLe=Zke,uLe=kDe,cLe=fK,fLe=Ia,dLe=Wm,pLe=UDe,hLe=ta,mLe=KDe,gLe=Xm,yLe=Ym,vLe=1,bLe=2,TLe=4,$K="[object Arguments]",ELe="[object Array]",ALe="[object Boolean]",SLe="[object Date]",wLe="[object Error]",IK="[object Function]",_Le="[object GeneratorFunction]",CLe="[object Map]",RLe="[object Number]",kK="[object Object]",xLe="[object RegExp]",$Le="[object Set]",ILe="[object String]",kLe="[object Symbol]",DLe="[object WeakMap]",LLe="[object ArrayBuffer]",OLe="[object DataView]",PLe="[object Float32Array]",MLe="[object Float64Array]",BLe="[object Int8Array]",NLe="[object Int16Array]",FLe="[object Int32Array]",ULe="[object Uint8Array]",HLe="[object Uint8ClampedArray]",jLe="[object Uint16Array]",VLe="[object Uint32Array]",lr={};lr[$K]=lr[ELe]=lr[LLe]=lr[OLe]=lr[ALe]=lr[SLe]=lr[PLe]=lr[MLe]=lr[BLe]=lr[NLe]=lr[FLe]=lr[CLe]=lr[RLe]=lr[kK]=lr[xLe]=lr[$Le]=lr[ILe]=lr[kLe]=lr[ULe]=lr[HLe]=lr[jLe]=lr[VLe]=!0;lr[wLe]=lr[IK]=lr[DLe]=!1;function c3(e,t,n,r,i,a){var o,s=t&vLe,l=t&bLe,c=t&TLe;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!hLe(e))return e;var u=fLe(e);if(u){if(o=lLe(e),!s)return nLe(e,o)}else{var d=sLe(e),p=d==IK||d==_Le;if(dLe(e))return tLe(e,s);if(d==kK||d==$K||p&&!i){if(o=l||p?{}:cLe(e),!s)return l?iLe(e,eLe(o,e)):rLe(e,QDe(o,e))}else{if(!lr[d])return i?e:{};o=uLe(e,d,s)}}a||(a=new YDe);var m=a.get(e);if(m)return m;a.set(e,o),mLe(e)?e.forEach(function(_){o.add(c3(_,t,n,_,e,a))}):pLe(e)&&e.forEach(function(_,S){o.set(S,c3(_,t,n,S,e,a))});var y=c?l?oLe:aLe:l?yLe:gLe,b=u?void 0:y(e);return ZDe(b||e,function(_,S){b&&(S=_,_=e[S]),XDe(o,S,c3(_,t,n,S,e,a))}),o}var DK=c3;function JLe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var LK=JLe,qLe=jm,GLe=_z;function zLe(e,t){return t.length<2?e:qLe(e,GLe(t,0,-1))}var WLe=zLe,KLe=ch,YLe=LK,ZLe=WLe,XLe=fh;function QLe(e,t){return t=KLe(t,e),e=ZLe(e,t),e==null||delete e[XLe(YLe(t))]}var eOe=QLe,tOe=e8;function nOe(e){return tOe(e)?void 0:e}var rOe=nOe,RM=ah,iOe=zm,aOe=Ia,xM=RM?RM.isConcatSpreadable:void 0;function oOe(e){return aOe(e)||iOe(e)||!!(xM&&e&&e[xM])}var sOe=oOe,lOe=a8,uOe=sOe;function OK(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=uOe),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?OK(s,t-1,n,r,i):lOe(i,s):r||(i[i.length]=s)}return i}var s8=OK,cOe=s8;function fOe(e){var t=e==null?0:e.length;return t?cOe(e,1):[]}var PK=fOe;const jvt=zt(PK);var dOe=PK,pOe=vK,hOe=bK;function mOe(e){return hOe(pOe(e,void 0,dOe),e+"")}var MK=mOe,gOe=uh,yOe=DK,vOe=eOe,bOe=ch,TOe=mh,EOe=rOe,AOe=MK,SOe=o8,wOe=1,_Oe=2,COe=4,ROe=AOe(function(e,t){var n={};if(e==null)return n;var r=!1;t=gOe(t,function(a){return a=bOe(a,e),r||(r=a.length>1),a}),TOe(e,SOe(e),n),r&&(n=yOe(n,wOe|_Oe|COe,EOe));for(var i=t.length;i--;)vOe(n,t[i]);return n}),xOe=ROe;const kp=zt(xOe);var $Oe=n8,IOe=ch,kOe=zT,$M=ta,DOe=fh;function LOe(e,t,n,r){if(!$M(e))return e;t=IOe(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=DOe(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=$M(u)?u:kOe(t[i+1])?[]:{})}$Oe(s,l,c),s=s[l]}return e}var OOe=LOe,POe=jm,MOe=OOe,BOe=ch;function NOe(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=POe(e,o);n(s,o)&&MOe(a,BOe(o,e),s)}return a}var BK=NOe;function FOe(e,t){return e!=null&&t in Object(e)}var UOe=FOe,HOe=ch,jOe=zm,VOe=Ia,JOe=zT,qOe=Xx,GOe=fh;function zOe(e,t,n){t=HOe(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=GOe(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&qOe(i)&&JOe(o,i)&&(VOe(e)||jOe(e)))}var WOe=zOe,KOe=UOe,YOe=WOe;function ZOe(e,t){return e!=null&&YOe(e,t,KOe)}var NK=ZOe,XOe=BK,QOe=NK;function e9e(e,t){return XOe(e,t,function(n,r){return QOe(e,r)})}var t9e=e9e,n9e=t9e,r9e=MK,i9e=r9e(function(e,t){return e==null?{}:n9e(e,t)}),l8=i9e;const KT=zt(l8);var a9e=DK,o9e=1,s9e=4;function l9e(e){return a9e(e,o9e|s9e)}var u9e=l9e;const lp=zt(u9e);function c9e(e){return e===void 0}var f9e=c9e;const Ki=zt(f9e);var d9e=r8,IM=ta;function FK(e,t,n,r,i,a){return IM(e)&&IM(t)&&(a.set(t,e),d9e(e,t,void 0,FK,a),a.delete(t)),e}var p9e=FK,h9e=r8,m9e=EK,g9e=m9e(function(e,t,n,r){h9e(e,t,n,r)}),y9e=g9e,v9e=yK,b9e=Zm,T9e=p9e,E9e=y9e,A9e=b9e(function(e){return e.push(void 0,T9e),v9e(E9e,void 0,e)}),S9e=A9e;const w9e=zt(S9e);var UK={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function a(l,c,u,d,p){if(typeof u!="function")throw new TypeError("The listener must be a function");var m=new i(u,d||l,p),y=n?n+c:c;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],m]:l._events[y].push(m):(l._events[y]=m,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,m=d.length,y=new Array(m);p<m;p++)y[p]=d[p].fn;return y},s.prototype.listenerCount=function(c){var u=n?n+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,p,m,y){var b=n?n+c:c;if(!this._events[b])return!1;var _=this._events[b],S=arguments.length,$,D;if(_.fn){switch(_.once&&this.removeListener(c,_.fn,void 0,!0),S){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,u),!0;case 3:return _.fn.call(_.context,u,d),!0;case 4:return _.fn.call(_.context,u,d,p),!0;case 5:return _.fn.call(_.context,u,d,p,m),!0;case 6:return _.fn.call(_.context,u,d,p,m,y),!0}for(D=1,$=new Array(S-1);D<S;D++)$[D-1]=arguments[D];_.fn.apply(_.context,$)}else{var P=_.length,U;for(D=0;D<P;D++)switch(_[D].once&&this.removeListener(c,_[D].fn,void 0,!0),S){case 1:_[D].fn.call(_[D].context);break;case 2:_[D].fn.call(_[D].context,u);break;case 3:_[D].fn.call(_[D].context,u,d);break;case 4:_[D].fn.call(_[D].context,u,d,p);break;default:if(!$)for(U=1,$=new Array(S-1);U<S;U++)$[U-1]=arguments[U];_[D].fn.apply(_[D].context,$)}}return!0},s.prototype.on=function(c,u,d){return a(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return a(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,p){var m=n?n+c:c;if(!this._events[m])return this;if(!u)return o(this,m),this;var y=this._events[m];if(y.fn)y.fn===u&&(!p||y.once)&&(!d||y.context===d)&&o(this,m);else{for(var b=0,_=[],S=y.length;b<S;b++)(y[b].fn!==u||p&&!y[b].once||d&&y[b].context!==d)&&_.push(y[b]);_.length?this._events[m]=_.length===1?_[0]:_:o(this,m)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&o(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(UK);var _9e=UK.exports;const C9e=zt(_9e);var u8={exports:{}},YT={exports:{}};class HK extends Error{constructor(t){super(t),this.name="TimeoutError"}}const jK=(e,t,n,r)=>{let i;const a=new Promise((o,s)=>{if(typeof t!="number"||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(t===1/0){o(e);return}r={customTimers:{setTimeout,clearTimeout},...r},i=r.customTimers.setTimeout.call(void 0,()=>{if(typeof n=="function"){try{o(n())}catch(u){s(u)}return}const l=typeof n=="string"?n:`Promise timed out after ${t} milliseconds`,c=n instanceof Error?n:new HK(l);typeof e.cancel=="function"&&e.cancel(),s(c)},t),(async()=>{try{o(await e)}catch(l){s(l)}finally{r.customTimers.clearTimeout.call(void 0,i)}})()});return a.clear=()=>{clearTimeout(i),i=void 0},a};YT.exports=jK;YT.exports.default=jK;var Vvt=YT.exports.TimeoutError=HK,c8=YT.exports;const Jvt=zt(c8),R9e=c8,VK=async(e,t)=>{t={interval:20,timeout:1/0,leadingCheck:!0,...t};let n;const r=new Promise((i,a)=>{const o=async()=>{try{const s=await e();if(typeof s!="boolean")throw new TypeError("Expected condition to return a boolean");s===!0?i():n=setTimeout(o,t.interval)}catch(s){a(s)}};t.leadingCheck?o():n=setTimeout(o,t.interval)});if(t.timeout!==1/0)try{return await R9e(r,t.timeout)}catch(i){throw n&&clearTimeout(n),i}return r};u8.exports=VK;u8.exports.default=VK;var x9e=u8.exports;const $9e=zt(x9e);var I9e=function(e){return function(t,n){var r=Z.useRef(!1);e(function(){return function(){r.current=!1}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n)}},mC=function(e,t){return mC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},mC(e,t)};function JK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");mC(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Va=function(){return Va=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Va.apply(this,arguments)};function ZT(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function qK(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function GK(e,t){return function(n,r){t(n,r,e)}}function k9e(e,t,n,r,i,a){function o(S){if(S!==void 0&&typeof S!="function")throw new TypeError("Function expected");return S}for(var s=r.kind,l=s==="getter"?"get":s==="setter"?"set":"value",c=!t&&e?r.static?e:e.prototype:null,u=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d,p=!1,m=n.length-1;m>=0;m--){var y={};for(var b in r)y[b]=b==="access"?{}:r[b];for(var b in r.access)y.access[b]=r.access[b];y.addInitializer=function(S){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(S||null))};var _=(0,n[m])(s==="accessor"?{get:u.get,set:u.set}:u[l],y);if(s==="accessor"){if(_===void 0)continue;if(_===null||typeof _!="object")throw new TypeError("Object expected");(d=o(_.get))&&(u.get=d),(d=o(_.set))&&(u.set=d),(d=o(_.init))&&i.unshift(d)}else(d=o(_))&&(s==="field"?i.unshift(d):u[l]=d)}c&&Object.defineProperty(c,r.name,u),p=!0}function D9e(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function L9e(e){return typeof e=="symbol"?e:"".concat(e)}function O9e(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function zK(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function XT(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function QT(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var eE=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function WK(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&eE(t,e,n)}function D2(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function KK(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(xr(arguments[t]));return e}function YK(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function ci(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Dp(e){return this instanceof Dp?(this.v=e,this):new Dp(e)}function ZK(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,a=[];return i={},s("next"),s("throw"),s("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(m){return function(y){return Promise.resolve(y).then(m,d)}}function s(m,y){r[m]&&(i[m]=function(b){return new Promise(function(_,S){a.push([m,b,_,S])>1||l(m,b)})},y&&(i[m]=y(i[m])))}function l(m,y){try{c(r[m](y))}catch(b){p(a[0][3],b)}}function c(m){m.value instanceof Dp?Promise.resolve(m.value.v).then(u,d):p(a[0][2],m)}function u(m){l("next",m)}function d(m){l("throw",m)}function p(m,y){m(y),a.shift(),a.length&&l(a[0][0],a[0][1])}}function XK(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(o){return(n=!n)?{value:Dp(e[i](o)),done:!1}:a?a(o):o}:a}}function QK(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof D2=="function"?D2(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(s,l){o=e[a](o),i(s,l,o.done,o.value)})}}function i(a,o,s,l){Promise.resolve(l).then(function(c){a({value:c,done:s})},o)}}function eY(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P9e=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function tY(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&eE(t,e,n);return P9e(t,e),t}function nY(e){return e&&e.__esModule?e:{default:e}}function rY(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function iY(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function aY(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function oY(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var M9e=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function sY(e){function t(r){e.error=e.hasError?new M9e(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}const B9e={__extends:JK,__assign:Va,__rest:ZT,__decorate:qK,__param:GK,__metadata:zK,__awaiter:XT,__generator:QT,__createBinding:eE,__exportStar:WK,__values:D2,__read:xr,__spread:KK,__spreadArrays:YK,__spreadArray:ci,__await:Dp,__asyncGenerator:ZK,__asyncDelegator:XK,__asyncValues:QK,__makeTemplateObject:eY,__importStar:tY,__importDefault:nY,__classPrivateFieldGet:rY,__classPrivateFieldSet:iY,__classPrivateFieldIn:aY,__addDisposableResource:oY,__disposeResources:sY},qvt=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:oY,get __assign(){return Va},__asyncDelegator:XK,__asyncGenerator:ZK,__asyncValues:QK,__await:Dp,__awaiter:XT,__classPrivateFieldGet:rY,__classPrivateFieldIn:aY,__classPrivateFieldSet:iY,__createBinding:eE,__decorate:qK,__disposeResources:sY,__esDecorate:k9e,__exportStar:WK,__extends:JK,__generator:QT,__importDefault:nY,__importStar:tY,__makeTemplateObject:eY,__metadata:zK,__param:GK,__propKey:L9e,__read:xr,__rest:ZT,__runInitializers:D9e,__setFunctionName:O9e,__spread:KK,__spreadArray:ci,__spreadArrays:YK,__values:D2,default:B9e},Symbol.toStringTag,{value:"Module"}));var tm=function(e){return typeof e=="function"},Gvt=function(e){return typeof e=="string"},N9e=function(e){return typeof e=="number"},F9e=function(e){return typeof e>"u"};function Tt(e){var t=Z.useRef(e);t.current=Z.useMemo(function(){return e},[e]);var n=Z.useRef();return n.current||(n.current=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.current.apply(this,r)}),n.current}const Sf=I9e(Z.useEffect);var lY=function(e,t){var n=t.manual,r=t.ready,i=r===void 0?!0:r,a=t.defaultParams,o=a===void 0?[]:a,s=t.refreshDeps,l=s===void 0?[]:s,c=t.refreshDepsAction,u=Z.useRef(!1);return u.current=!1,Sf(function(){!n&&i&&(u.current=!0,e.run.apply(e,ci([],xr(o),!1)))},[i]),Sf(function(){u.current||n||(u.current=!0,c?c():e.refresh())},ci([],xr(l),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};lY.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return{loading:!r&&n}};const U9e=lY;function gC(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function Xt(e,t){var n=Z.useRef({deps:t,obj:void 0,initialized:!1}).current;return(n.initialized===!1||!gC(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function Lp(e){var t=Z.useRef(e);return t.current=e,t}var yh=function(e){var t=Lp(e);Z.useEffect(function(){return function(){t.current()}},[])},f3=new Map,H9e=function(e,t,n){var r=f3.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var i=void 0;t>-1&&(i=setTimeout(function(){f3.delete(e)},t)),f3.set(e,Va(Va({},n),{timer:i}))},j9e=function(e){return f3.get(e)},d3=new Map,V9e=function(e){return d3.get(e)},J9e=function(e,t){d3.set(e,t),t.then(function(n){return d3.delete(e),n}).catch(function(){d3.delete(e)})},Hc={},q9e=function(e,t){Hc[e]&&Hc[e].forEach(function(n){return n(t)})},Tw=function(e,t){return Hc[e]||(Hc[e]=[]),Hc[e].push(t),function(){var r=Hc[e].indexOf(t);Hc[e].splice(r,1)}},G9e=function(e,t){var n=t.cacheKey,r=t.cacheTime,i=r===void 0?5*60*1e3:r,a=t.staleTime,o=a===void 0?0:a,s=t.setCache,l=t.getCache,c=Z.useRef(),u=Z.useRef(),d=function(m,y){s?s(y):H9e(m,i,y),q9e(m,y.data)},p=function(m,y){return y===void 0&&(y=[]),l?l(y):j9e(m)};return Xt(function(){if(n){var m=p(n);m&&Object.hasOwnProperty.call(m,"data")&&(e.state.data=m.data,e.state.params=m.params,(o===-1||new Date().getTime()-m.time<=o)&&(e.state.loading=!1)),c.current=Tw(n,function(y){e.setState({data:y})})}},[]),yh(function(){var m;(m=c.current)===null||m===void 0||m.call(c)}),n?{onBefore:function(m){var y=p(n,m);return!y||!Object.hasOwnProperty.call(y,"data")?{}:o===-1||new Date().getTime()-y.time<=o?{loading:!1,data:y==null?void 0:y.data,error:void 0,returnNow:!0}:{data:y==null?void 0:y.data,error:void 0}},onRequest:function(m,y){var b=V9e(n);return b&&b!==u.current?{servicePromise:b}:(b=m.apply(void 0,ci([],xr(y),!1)),u.current=b,J9e(n,b),{servicePromise:b})},onSuccess:function(m,y){var b;n&&((b=c.current)===null||b===void 0||b.call(c),d(n,{data:m,params:y,time:new Date().getTime()}),c.current=Tw(n,function(_){e.setState({data:_})}))},onMutate:function(m){var y;n&&((y=c.current)===null||y===void 0||y.call(c),d(n,{data:m,params:e.state.params,time:new Date().getTime()}),c.current=Tw(n,function(b){e.setState({data:b})}))}}:{}};const z9e=G9e;var W9e=Ss,K9e=function(){return W9e.Date.now()},Y9e=K9e,Z9e=ta,Ew=Y9e,kM=Hz,X9e="Expected a function",Q9e=Math.max,ePe=Math.min;function tPe(e,t,n){var r,i,a,o,s,l,c=0,u=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(X9e);t=kM(t)||0,Z9e(n)&&(u=!!n.leading,d="maxWait"in n,a=d?Q9e(kM(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m(L){var F=r,G=i;return r=i=void 0,c=L,o=e.apply(G,F),o}function y(L){return c=L,s=setTimeout(S,t),u?m(L):o}function b(L){var F=L-l,G=L-c,ie=t-F;return d?ePe(ie,a-G):ie}function _(L){var F=L-l,G=L-c;return l===void 0||F>=t||F<0||d&&G>=a}function S(){var L=Ew();if(_(L))return $(L);s=setTimeout(S,b(L))}function $(L){return s=void 0,p&&r?m(L):(r=i=void 0,o)}function D(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function P(){return s===void 0?o:$(Ew())}function U(){var L=Ew(),F=_(L);if(r=arguments,i=this,l=L,F){if(s===void 0)return y(l);if(d)return clearTimeout(s),s=setTimeout(S,t),m(l)}return s===void 0&&(s=setTimeout(S,t)),o}return U.cancel=D,U.flush=P,U}var uY=tPe;const cY=zt(uY);var nPe=function(e,t){var n=t.debounceWait,r=t.debounceLeading,i=t.debounceTrailing,a=t.debounceMaxWait,o=Z.useRef(),s=Z.useMemo(function(){var l={};return r!==void 0&&(l.leading=r),i!==void 0&&(l.trailing=i),a!==void 0&&(l.maxWait=a),l},[r,i,a]);return Z.useEffect(function(){if(n){var l=e.runAsync.bind(e);return o.current=cY(function(c){c()},n,s),e.runAsync=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new Promise(function(d,p){var m;(m=o.current)===null||m===void 0||m.call(o,function(){l.apply(void 0,ci([],xr(c),!1)).then(d).catch(p)})})},function(){var c;(c=o.current)===null||c===void 0||c.cancel(),e.runAsync=l}}},[n,s]),n?{onCancel:function(){var l;(l=o.current)===null||l===void 0||l.cancel()}}:{}};const rPe=nPe;var iPe=function(e,t){var n=t.loadingDelay,r=t.ready,i=Z.useRef();if(!n)return{};var a=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return a(),r!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},n)),{loading:!1}},onFinally:function(){a()},onCancel:function(){a()}}};const aPe=iPe;var Ff=!!(typeof window<"u"&&window.document&&window.document.createElement);function f8(){return Ff?document.visibilityState!=="hidden":!0}var f1=[];function oPe(e){return f1.push(e),function(){var n=f1.indexOf(e);f1.splice(n,1)}}if(Ff){var sPe=function(){if(f8())for(var e=0;e<f1.length;e++){var t=f1[e];t()}};window.addEventListener("visibilitychange",sPe,!1)}var lPe=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,i=r===void 0?!0:r,a=t.pollingErrorRetryCount,o=a===void 0?-1:a,s=Z.useRef(),l=Z.useRef(),c=Z.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l)};return Sf(function(){n||u()},[n]),n?{onBefore:function(){u()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){o===-1||o!==-1&&c.current<=o?s.current=setTimeout(function(){!i&&!f8()?l.current=oPe(function(){e.refresh()}):e.refresh()},n):c.current=0},onCancel:function(){u()}}:{}};const uPe=lPe;function cPe(e,t){var n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n||(n=!0,e.apply(void 0,ci([],xr(r),!1)),setTimeout(function(){n=!1},t))}}function fPe(){return Ff&&typeof navigator.onLine<"u"?navigator.onLine:!0}var d1=[];function dPe(e){return d1.push(e),function(){var n=d1.indexOf(e);n>-1&&d1.splice(n,1)}}if(Ff){var DM=function(){if(!(!f8()||!fPe()))for(var e=0;e<d1.length;e++){var t=d1[e];t()}};window.addEventListener("visibilitychange",DM,!1),window.addEventListener("focus",DM,!1)}var pPe=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,i=r===void 0?5e3:r,a=Z.useRef(),o=function(){var s;(s=a.current)===null||s===void 0||s.call(a)};return Z.useEffect(function(){if(n){var s=cPe(e.refresh.bind(e),i);a.current=dPe(function(){s()})}return function(){o()}},[n,i]),yh(function(){o()}),{}};const hPe=pPe;var mPe=function(e,t){var n=t.retryInterval,r=t.retryCount,i=Z.useRef(),a=Z.useRef(0),o=Z.useRef(!1);return r?{onBefore:function(){o.current||(a.current=0),o.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,r===-1||a.current<=r){var s=n??Math.min(1e3*Math.pow(2,a.current),3e4);i.current=setTimeout(function(){o.current=!0,e.refresh()},s)}else a.current=0},onCancel:function(){a.current=0,i.current&&clearTimeout(i.current)}}:{}};const gPe=mPe;var yPe=uY,vPe=ta,bPe="Expected a function";function TPe(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(bPe);return vPe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),yPe(e,t,{leading:r,maxWait:t,trailing:i})}var EPe=TPe;const APe=zt(EPe);var SPe=function(e,t){var n=t.throttleWait,r=t.throttleLeading,i=t.throttleTrailing,a=Z.useRef(),o={};return r!==void 0&&(o.leading=r),i!==void 0&&(o.trailing=i),Z.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=APe(function(l){l()},n,o),e.runAsync=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new Promise(function(u,d){var p;(p=a.current)===null||p===void 0||p.call(a,function(){s.apply(void 0,ci([],xr(l),!1)).then(u).catch(d)})})},function(){var l;e.runAsync=s,(l=a.current)===null||l===void 0||l.cancel()}}},[n,r,i]),n?{onCancel:function(){var s;(s=a.current)===null||s===void 0||s.cancel()}}:{}};const wPe=SPe;var eg=function(e){Z.useEffect(function(){e==null||e()},[])},fY=function(){var e=xr(Z.useState({}),2),t=e[1];return Z.useCallback(function(){return t({})},[])},_Pe=function(){function e(t,n,r,i){i===void 0&&(i={}),this.serviceRef=t,this.options=n,this.subscribe=r,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Va(Va(Va({},this.state),{loading:!n.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Va(Va({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.pluginImpls.map(function(a){var o;return(o=a[t])===null||o===void 0?void 0:o.call.apply(o,ci([a],xr(n),!1))}).filter(Boolean);return Object.assign.apply(Object,ci([{}],xr(i),!1))},e.prototype.runAsync=function(){for(var t,n,r,i,a,o,s,l,c,u,d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];return XT(this,void 0,void 0,function(){var m,y,b,_,S,$,D,P,U,L,F;return QT(this,function(G){switch(G.label){case 0:if(this.count+=1,m=this.count,y=this.runPluginHandler("onBefore",d),b=y.stopNow,_=b===void 0?!1:b,S=y.returnNow,$=S===void 0?!1:S,D=ZT(y,["stopNow","returnNow"]),_)return[2,new Promise(function(){})];if(this.setState(Va({loading:!0,params:d},D)),$)return[2,Promise.resolve(D.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),G.label=1;case 1:return G.trys.push([1,3,,4]),P=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,P||(P=(F=this.serviceRef).current.apply(F,ci([],xr(d),!1))),[4,P];case 2:return U=G.sent(),m!==this.count?[2,new Promise(function(){})]:(this.setState({data:U,error:void 0,loading:!1}),(i=(r=this.options).onSuccess)===null||i===void 0||i.call(r,U,d),this.runPluginHandler("onSuccess",U,d),(o=(a=this.options).onFinally)===null||o===void 0||o.call(a,d,U,void 0),m===this.count&&this.runPluginHandler("onFinally",d,U,void 0),[2,U]);case 3:if(L=G.sent(),m!==this.count)return[2,new Promise(function(){})];throw this.setState({error:L,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,L,d),this.runPluginHandler("onError",L,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,L),m===this.count&&this.runPluginHandler("onFinally",d,void 0,L),L;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.runAsync.apply(this,ci([],xr(n),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,ci([],xr(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,ci([],xr(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=tm(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n})},e}();const CPe=_Pe;function RPe(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,i=r===void 0?!1:r,a=ZT(t,["manual"]),o=Va({manual:i},a),s=Lp(e),l=fY(),c=Xt(function(){var u=n.map(function(d){var p;return(p=d==null?void 0:d.onInit)===null||p===void 0?void 0:p.call(d,o)}).filter(Boolean);return new CPe(s,o,l,Object.assign.apply(Object,ci([{}],xr(u),!1)))},[]);return c.options=o,c.pluginImpls=n.map(function(u){return u(c,o)}),eg(function(){if(!i){var u=c.state.params||t.defaultParams||[];c.run.apply(c,ci([],xr(u),!1))}}),yh(function(){c.cancel()}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:Tt(c.cancel.bind(c)),refresh:Tt(c.refresh.bind(c)),refreshAsync:Tt(c.refreshAsync.bind(c)),run:Tt(c.run.bind(c)),runAsync:Tt(c.runAsync.bind(c)),mutate:Tt(c.mutate.bind(c))}}function xPe(e,t,n){return RPe(e,t,ci(ci([],xr(n||[]),!1),[rPe,aPe,uPe,hPe,wPe,U9e,z9e,gPe],!1))}function $Pe(e){return tm(e[Symbol.asyncIterator])}function dY(e,t){Z.useEffect(function(){var n=e(),r=!1;function i(){return XT(this,void 0,void 0,function(){var a;return QT(this,function(o){switch(o.label){case 0:if(!$Pe(n))return[3,4];o.label=1;case 1:return[4,n.next()];case 2:return a=o.sent(),a.done||r?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,n];case 5:o.sent(),o.label=6;case 6:return[2]}})})}return i(),function(){r=!0}},t)}function L2(e,t){if(Ff){if(!e)return t;var n;return tm(e)?n=e():"current"in e?n=e.current:n=e,n}}var pY=function(e){var t=function(n,r,i){var a=Z.useRef(!1),o=Z.useRef([]),s=Z.useRef([]),l=Z.useRef();e(function(){var c,u=Array.isArray(i)?i:[i],d=u.map(function(p){return L2(p)});if(!a.current){a.current=!0,o.current=d,s.current=r,l.current=n();return}(d.length!==o.current.length||!gC(o.current,d)||!gC(s.current,r))&&((c=l.current)===null||c===void 0||c.call(l),o.current=d,s.current=r,l.current=n())}),yh(function(){var c;(c=l.current)===null||c===void 0||c.call(l),a.current=!1})};return t},IPe=pY(Z.useEffect);const hY=IPe;function kPe(){var e=(typeof xo>"u"?"undefined":typeof xo)=="object"&&xo&&xo.Object===Object&&xo,t=typeof self=="object"&&self&&self.Object===Object&&self;return e||t}kPe()||(xo.Date=Date);function DPe(e,t){var n,r=Lp(e),i=(n=t==null?void 0:t.wait)!==null&&n!==void 0?n:1e3,a=Z.useMemo(function(){return cY(function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return r.current.apply(r,ci([],xr(o),!1))},i,t)},[]);return yh(function(){a.cancel()}),{run:a,cancel:a.cancel,flush:a.flush}}function LPe(e,t){var n=xr(Z.useState(e),2),r=n[0],i=n[1],a=DPe(function(){i(e)},t).run;return Z.useEffect(function(){a()},[e]),r}function LM(e,t,n){n===void 0&&(n={});var r=n.enable,i=r===void 0?!0:r,a=Lp(t);hY(function(){if(i){var o=L2(n.target,window);if(o!=null&&o.addEventListener){var s=function(l){return a.current(l)};return o.addEventListener(e,s,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,s,{capture:n.capture})}}}},[e,n.capture,n.once,n.passive,i],n.target)}var OPe=function(e,t,n){n===void 0&&(n={});var r=Tt(e),i=Z.useRef(null),a=Z.useCallback(function(){i.current&&clearInterval(i.current)},[]);return Z.useEffect(function(){if(!(!N9e(t)||t<0))return n.immediate&&r(),i.current=setInterval(r,t),a},[t,n.immediate]),a},OM="AHOOKS_SYNC_STORAGE_EVENT_NAME";function PPe(e){function t(n,r){r===void 0&&(r={});var i,a=r.listenStorageChange,o=a===void 0?!1:a,s=r.onError,l=s===void 0?function($){console.error($)}:s;try{i=e()}catch($){l($)}var c=function($){return r.serializer?r.serializer($):JSON.stringify($)},u=function($){return r.deserializer?r.deserializer($):JSON.parse($)};function d(){try{var $=i==null?void 0:i.getItem(n);if($)return u($)}catch(D){l(D)}return tm(r.defaultValue)?r.defaultValue():r.defaultValue}var p=xr(Z.useState(d),2),m=p[0],y=p[1];Sf(function(){y(d())},[n]);var b=function($){var D=tm($)?$(m):$;o||y(D);try{var P=void 0,U=i==null?void 0:i.getItem(n);F9e(D)?(P=null,i==null||i.removeItem(n)):(P=c(D),i==null||i.setItem(n,P)),dispatchEvent(new CustomEvent(OM,{detail:{key:n,newValue:P,oldValue:U,storageArea:i}}))}catch(L){l(L)}},_=function($){$.key!==n||$.storageArea!==i||y(d())},S=function($){_($.detail)};return LM("storage",_,{enable:o}),LM(OM,S,{enable:o}),[m,Tt(b)]}return t}var MPe=PPe(function(){return Ff?localStorage:void 0});const yC=MPe;function BPe(e){var t=Z.useRef(0),n=xr(Z.useState(e),2),r=n[0],i=n[1],a=Z.useCallback(function(o){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(o)})},[]);return yh(function(){cancelAnimationFrame(t.current)}),[r,a]}var NPe=function(e,t){return!Object.is(e,t)};function mY(e,t){t===void 0&&(t=NPe);var n=Z.useRef(),r=Z.useRef();return t(r.current,e)&&(n.current=r.current,r.current=e),n.current}var PM=new WeakMap,MM=new WeakMap;function gY(e,t){var n=PM.get(e);if(n)return n;if(MM.has(e))return e;var r=new Proxy(e,{get:function(i,a,o){var s=Reflect.get(i,a,o),l=Reflect.getOwnPropertyDescriptor(i,a);return!(l!=null&&l.configurable)&&!(l!=null&&l.writable)?s:n8e(s)||Array.isArray(s)?gY(s,t):s},set:function(i,a,o){var s=Reflect.set(i,a,o);return t(),s},deleteProperty:function(i,a){var o=Reflect.deleteProperty(i,a);return t(),o}});return PM.set(e,r),MM.set(r,e),r}function Si(e){var t=fY(),n=Z.useRef(e),r=Xt(function(){return gY(n.current,function(){t()})},[]);return r}var yY=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var o=a[i];n.call(r,o[1],o[0])}},t}()}(),vC=typeof window<"u"&&typeof document<"u"&&window.document===document,O2=function(){return typeof xo<"u"&&xo.Math===Math?xo:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),FPe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(O2):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),UPe=2;function HPe(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){FPe(a)}function s(){var l=Date.now();if(n){if(l-i<UPe)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=l}return s}var jPe=20,VPe=["top","right","bottom","left","width","height","size","weight"],JPe=typeof MutationObserver<"u",qPe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=HPe(this.refresh.bind(this),jPe)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!vC||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),JPe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!vC||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=VPe.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),vY=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Op=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||O2},bY=tE(0,0,0,0);function P2(e){return parseFloat(e)||0}function BM(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+P2(a)},0)}function GPe(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e["padding-"+a];n[a]=P2(o)}return n}function zPe(e){var t=e.getBBox();return tE(0,0,t.width,t.height)}function WPe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return bY;var r=Op(e).getComputedStyle(e),i=GPe(r),a=i.left+i.right,o=i.top+i.bottom,s=P2(r.width),l=P2(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=BM(r,"left","right")+a),Math.round(l+o)!==n&&(l-=BM(r,"top","bottom")+o)),!YPe(e)){var c=Math.round(s+a)-t,u=Math.round(l+o)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return tE(i.left,i.top,s,l)}var KPe=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Op(e).SVGGraphicsElement}:function(e){return e instanceof Op(e).SVGElement&&typeof e.getBBox=="function"}}();function YPe(e){return e===Op(e).document.documentElement}function ZPe(e){return vC?KPe(e)?zPe(e):WPe(e):bY}function XPe(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return vY(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function tE(e,t,n,r){return{x:e,y:t,width:n,height:r}}var QPe=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=tE(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=ZPe(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),eMe=function(){function e(t,n){var r=XPe(n);vY(this,{target:t,contentRect:r})}return e}(),tMe=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new yY,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Op(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new QPe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Op(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new eMe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),TY=typeof WeakMap<"u"?new WeakMap:new yY,EY=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=qPe.getInstance(),r=new tMe(t,n,this);TY.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){EY.prototype[e]=function(){var t;return(t=TY.get(this))[e].apply(t,arguments)}});var nMe=function(){return typeof O2.ResizeObserver<"u"?O2.ResizeObserver:EY}(),rMe=pY(Z.useLayoutEffect),iMe=Ff?rMe:hY;function tg(e){var t=xr(BPe(function(){var i=L2(e);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),n=t[0],r=t[1];return iMe(function(){var i=L2(e);if(i){var a=new nMe(function(o){o.forEach(function(s){var l=s.target,c=l.clientWidth,u=l.clientHeight;r({width:c,height:u})})});return a.observe(i),function(){a.disconnect()}}},[],e),n}const aMe=/[^\0-\x7E]/,oMe=/[\x2E\u3002\uFF0E\uFF61]/g,sMe={overflow:"Overflow Error","not-basic":"Illegal Input","invalid-input":"Invalid Input"},qd=Math.floor,Aw=String.fromCharCode;function NM(e){throw new RangeError(sMe[e])}const FM=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},lMe=function(e,t,n){let r=0;for(e=n?qd(e/700):e>>1,e+=qd(e/t);e>455;r+=36)e=qd(e/35);return qd(r+36*e/(e+38))};function uMe(e){return function(t,n){const r=t.split("@");let i="";r.length>1&&(i=r[0]+"@",t=r[1]);const a=function(o,s){const l=[];let c=o.length;for(;c--;)l[c]=s(o[c]);return l}((t=t.replace(oMe,".")).split("."),n).join(".");return i+a}(e,function(t){return aMe.test(t)?"xn--"+function(n){const r=[],i=(n=function(u){const d=[];let p=0;const m=u.length;for(;p<m;){const y=u.charCodeAt(p++);if(y>=55296&&y<=56319&&p<m){const b=u.charCodeAt(p++);(64512&b)==56320?d.push(((1023&y)<<10)+(1023&b)+65536):(d.push(y),p--)}else d.push(y)}return d}(n)).length;let a=128,o=0,s=72;for(const u of n)u<128&&r.push(Aw(u));const l=r.length;let c=l;for(l&&r.push("-");c<i;){let u=2147483647;for(const p of n)p>=a&&p<u&&(u=p);const d=c+1;u-a>qd((2147483647-o)/d)&&NM("overflow"),o+=(u-a)*d,a=u;for(const p of n)if(p<a&&++o>2147483647&&NM("overflow"),p==a){let m=o;for(let y=36;;y+=36){const b=y<=s?1:y>=s+26?26:y-s;if(m<b)break;const _=m-b,S=36-b;r.push(Aw(FM(b+_%S,0))),m=qd(_/S)}r.push(Aw(FM(m,0))),s=lMe(o,d,c==l),o=0,++c}++o,++a}return r.join("")}(t):t})}const AY=/#/g,SY=/&/g,wY=/\//g,cMe=/=/g,fMe=/\?/g,nE=/\+/g,_Y=/%5e/gi,dMe=/%60/gi,pMe=/%7b/gi,hMe=/%7c/gi,mMe=/%7d/gi,gMe=/%20/gi,yMe=/%2f/gi,vMe=/%252f/gi;function rE(e){return encodeURI(""+e).replace(hMe,"|")}function iE(e){return rE(e).replace(pMe,"{").replace(mMe,"}").replace(_Y,"^")}function M2(e){return rE(typeof e=="string"?e:JSON.stringify(e)).replace(nE,"%2B").replace(gMe,"+").replace(AY,"%23").replace(SY,"%26").replace(dMe,"`").replace(_Y,"^").replace(wY,"%2F")}function p3(e){return M2(e).replace(cMe,"%3D")}function aE(e){return rE(e).replace(AY,"%23").replace(fMe,"%3F").replace(vMe,"%2F").replace(SY,"%26").replace(nE,"%2B")}function bMe(e){return aE(e).replace(wY,"%2F")}function Mi(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function d8(e){return Mi(e.replace(yMe,"%252F"))}function CY(e){return Mi(e.replace(nE," "))}function RY(e){return Mi(e.replace(nE," "))}function B2(e=""){return uMe(e)}function wf(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=CY(r[1]);if(i==="__proto__"||i==="constructor")continue;const a=RY(r[2]||"");t[i]===void 0?t[i]=a:Array.isArray(t[i])?t[i].push(a):t[i]=[t[i],a]}return t}function xY(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${p3(e)}=${M2(n)}`).join("&"):`${p3(e)}=${M2(t)}`:p3(e)}function ng(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>xY(t,e[t])).filter(Boolean).join("&")}const TMe=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,$Y=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,EMe=/^([/\\]\s*){2,}[^/\\]/,AMe=/^[\s\0]*(blob|data|javascript|vbscript):$/i,SMe=/\/$|\/\?|\/#/,wMe=/^\.?\//;function _Me(e){return["./","../"].some(t=>e.startsWith(t))}function oE(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?TMe.test(e):$Y.test(e)||(t.acceptRelative?EMe.test(e):!1)}function CMe(e){return!!e&&AMe.test(e)}function N2(e="",t){return t?SMe.test(e):e.endsWith("/")}function nm(e="",t){if(!t)return(N2(e)?e.slice(0,-1):e)||"/";if(!N2(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");i>=0&&(n=e.slice(0,i),r=e.slice(i));const[a,...o]=n.split("?");return((a.endsWith("/")?a.slice(0,-1):a)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function Pp(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(N2(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");if(i>=0&&(n=e.slice(0,i),r=e.slice(i),!n))return r;const[a,...o]=n.split("?");return a+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function p8(e=""){return e.startsWith("/")}function h8(e=""){return(p8(e)?e.slice(1):e)||"/"}function bC(e=""){return p8(e)?e:"/"+e}function RMe(e=""){return e.split("://").map(t=>t.replace(/\/{2,}/g,"/")).join("://")}function xMe(e,t){if(m8(t)||oE(e))return e;const n=nm(t);return e.startsWith(n)?e:Cn(n,e)}function $Me(e,t){if(m8(t))return e;const n=nm(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Mp(e,t){const n=jo(e),r={...wf(n.search),...t};return n.search=ng(r),vh(n)}function IMe(e){return wf(jo(e).search)}function m8(e){return!e||e==="/"}function g8(e){return e&&e!=="/"}function Cn(e,...t){let n=e||"";for(const r of t.filter(i=>g8(i)))if(n){const i=r.replace(wMe,"");n=Pp(n)+i}else n=r;return n}function kMe(...e){var o,s,l,c;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let i=0;for(const u of n)if(!(!u||u==="/")){for(const[d,p]of u.split(t).entries())if(!(!p||p===".")){if(p===".."){if(r.length===1&&oE(r[0]))continue;r.pop(),i--;continue}if(d===1&&((o=r[r.length-1])!=null&&o.endsWith(":/"))){r[r.length-1]+="/"+p;continue}r.push(p),i++}}let a=r.join("/");return i>=0?(s=n[0])!=null&&s.startsWith("/")&&!a.startsWith("/")?a="/"+a:(l=n[0])!=null&&l.startsWith("./")&&!a.startsWith("./")&&(a="./"+a):a="../".repeat(-1*i)+a,(c=n[n.length-1])!=null&&c.endsWith("/")&&!a.endsWith("/")&&(a+="/"),a}function DMe(e){return sE(e,"http://")}function LMe(e){return sE(e,"https://")}function OMe(e){return sE(e,"")}function sE(e,t){let n=e.match($Y);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function PMe(e){const t=jo(e);return t.pathname=aE(d8(t.pathname)),t.hash=iE(Mi(t.hash)),t.host=B2(Mi(t.host)),t.search=ng(wf(t.search)),vh(t)}function MMe(e="",...t){if(typeof e!="string")throw new TypeError(`URL input should be string received ${typeof e} (${e})`);const n=t.filter(i=>g8(i));if(n.length===0)return e;const r=jo(e);for(const i of n){const a=jo(i);if(a.pathname&&(r.pathname=Pp(r.pathname)+h8(a.pathname)),a.hash&&a.hash!=="#"&&(r.hash=a.hash),a.search&&a.search!=="?")if(r.search&&r.search!=="?"){const o=ng({...wf(r.search),...wf(a.search)});r.search=o.length>0?"?"+o:""}else r.search=a.search}return vh(r)}function BMe(e,t){return Mi(nm(e))===Mi(nm(t))}function NMe(e,t,n={}){return n.trailingSlash||(e=Pp(e),t=Pp(t)),n.leadingSlash||(e=bC(e),t=bC(t)),n.encoding||(e=Mi(e),t=Mi(t)),e===t}function FMe(e,t){if(!t||t==="#")return e;const n=jo(e);return n.hash=t===""?"":"#"+iE(t),vh(n)}function UMe(e){return vh({...jo(e),hash:""})}function HMe(e){const t=jo(e);return(t.pathname||"/")+t.search+t.hash}const IY=Symbol.for("ufo:protocolRelative");function jo(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,p=""]=n;return{protocol:d.toLowerCase(),pathname:p,href:d+p,auth:"",host:"",search:"",hash:""}}if(!oE(e,{acceptRelative:!0}))return t?jo(t+e):TC(e);const[,r="",i,a=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",s=""]=a.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(s=s.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=TC(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:o,pathname:l,search:c,hash:u,[IY]:!r}}function TC(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function h3(e=""){const[t,n]=e.split(":");return{username:Mi(t),password:Mi(n)}}function EC(e=""){const[t,n]=(e.match(/([^/:]*):?(\d+)?/)||[]).splice(1);return{hostname:Mi(t),port:n}}function vh(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",a=e.host||"";return(e.protocol||e[IY]?(e.protocol||"")+"//":"")+i+a+t+n+r}const jMe=/\/([^/]+\.[^/]+)$/,VMe=/\/([^/]+)$/;function JMe(e="",{strict:t}){const{pathname:n}=jo(e),r=t?n.match(jMe):n.match(VMe);return r?r[1]:void 0}var qMe=Object.defineProperty,GMe=(e,t,n)=>t in e?qMe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pd=(e,t,n)=>(GMe(e,typeof t!="symbol"?t+"":t,n),n);class kY{constructor(t=""){if(pd(this,"protocol"),pd(this,"host"),pd(this,"auth"),pd(this,"pathname"),pd(this,"query",{}),pd(this,"hash"),typeof t!="string")throw new TypeError(`URL input should be string received ${typeof t} (${t})`);const n=jo(t);this.protocol=Mi(n.protocol),this.host=Mi(n.host),this.auth=Mi(n.auth),this.pathname=d8(n.pathname),this.query=wf(n.search),this.hash=Mi(n.hash)}get hostname(){return EC(this.host).hostname}get port(){return EC(this.host).port||""}get username(){return h3(this.auth).username}get password(){return h3(this.auth).password||""}get hasProtocol(){return this.protocol.length}get isAbsolute(){return this.hasProtocol||this.pathname[0]==="/"}get search(){const t=ng(this.query);return t.length>0?"?"+t:""}get searchParams(){const t=new URLSearchParams;for(const n in this.query){const r=this.query[n];if(Array.isArray(r))for(const i of r)t.append(n,i);else t.append(n,typeof r=="string"?r:JSON.stringify(r))}return t}get origin(){return(this.protocol?this.protocol+"//":"")+B2(this.host)}get fullpath(){return aE(this.pathname)+this.search+iE(this.hash)}get encodedAuth(){if(!this.auth)return"";const{username:t,password:n}=h3(this.auth);return encodeURIComponent(t)+(n?":"+encodeURIComponent(n):"")}get href(){const t=this.encodedAuth,n=(this.protocol?this.protocol+"//":"")+(t?t+"@":"")+B2(this.host);return this.hasProtocol&&this.isAbsolute?n+this.fullpath:this.fullpath}append(t){if(t.hasProtocol)throw new Error("Cannot append a URL with protocol");Object.assign(this.query,t.query),t.pathname&&(this.pathname=Pp(this.pathname)+h8(t.pathname)),t.hash&&(this.hash=t.hash)}toJSON(){return this.href}toString(){return this.href}}function zMe(e){return new kY(e)}const WMe=Object.freeze(Object.defineProperty({__proto__:null,$URL:kY,cleanDoubleSlashes:RMe,createURL:zMe,decode:Mi,decodePath:d8,decodeQueryKey:CY,decodeQueryValue:RY,encode:rE,encodeHash:iE,encodeHost:B2,encodeParam:bMe,encodePath:aE,encodeQueryItem:xY,encodeQueryKey:p3,encodeQueryValue:M2,getQuery:IMe,hasLeadingSlash:p8,hasProtocol:oE,hasTrailingSlash:N2,isEmptyURL:m8,isEqual:NMe,isNonEmptyURL:g8,isRelative:_Me,isSamePath:BMe,isScriptProtocol:CMe,joinRelativeURL:kMe,joinURL:Cn,normalizeURL:PMe,parseAuth:h3,parseFilename:JMe,parseHost:EC,parsePath:TC,parseQuery:wf,parseURL:jo,resolveURL:MMe,stringifyParsedURL:vh,stringifyQuery:ng,withBase:xMe,withFragment:FMe,withHttp:DMe,withHttps:LMe,withLeadingSlash:bC,withProtocol:sE,withQuery:Mp,withTrailingSlash:Pp,withoutBase:$Me,withoutFragment:UMe,withoutHost:HMe,withoutLeadingSlash:h8,withoutProtocol:OMe,withoutTrailingSlash:nm},Symbol.toStringTag,{value:"Module"})),p1=/^[a-z0-9]+(-[a-z0-9]+)*$/,rg=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const s=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:r,prefix:l,name:s};return t&&!m3(c)?null:c}const a=i[0],o=a.split("-");if(o.length>1){const s={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!m3(s)?null:s}if(n&&r===""){const s={provider:r,prefix:"",name:a};return t&&!m3(s,n)?null:s}return null},m3=(e,t)=>e?!!((e.provider===""||e.provider.match(p1))&&(t&&e.prefix===""||e.prefix.match(p1))&&e.name.match(p1)):!1,DY=Object.freeze({left:0,top:0,width:16,height:16}),F2=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),lE=Object.freeze({...DY,...F2}),AC=Object.freeze({...lE,body:"",hidden:!1});function KMe(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function UM(e,t){const n=KMe(e,t);for(const r in AC)r in F2?r in e&&!(r in n)&&(n[r]=F2[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function YMe(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(o){if(n[o])return i[o]=[];if(!(o in i)){i[o]=null;const s=r[o]&&r[o].parent,l=s&&a(s);l&&(i[o]=[s].concat(l))}return i[o]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function ZMe(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let a={};function o(s){a=UM(r[s]||i[s],a)}return o(t),n.forEach(o),UM(e,a)}function LY(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=YMe(e);for(const i in r){const a=r[i];a&&(t(i,ZMe(e,i,a)),n.push(i))}return n}const XMe={provider:"",aliases:{},not_found:{},...DY};function Sw(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function OY(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Sw(e,XMe))return null;const n=t.icons;for(const i in n){const a=n[i];if(!i.match(p1)||typeof a.body!="string"||!Sw(a,AC))return null}const r=t.aliases||Object.create(null);for(const i in r){const a=r[i],o=a.parent;if(!i.match(p1)||typeof o!="string"||!n[o]&&!r[o]||!Sw(a,AC))return null}return t}const HM=Object.create(null);function QMe(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function _f(e,t){const n=HM[e]||(HM[e]=Object.create(null));return n[t]||(n[t]=QMe(e,t))}function y8(e,t){return OY(t)?LY(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function eBe(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let rm=!1;function PY(e){return typeof e=="boolean"&&(rm=e),rm}function MY(e){const t=typeof e=="string"?rg(e,!0,rm):e;if(t){const n=_f(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function tBe(e,t){const n=rg(e,!0,rm);if(!n)return!1;const r=_f(n.provider,n.prefix);return eBe(r,n.name,t)}function nBe(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),rm&&!t&&!e.prefix){let i=!1;return OY(e)&&(e.prefix="",LY(e,(a,o)=>{o&&tBe(a,o)&&(i=!0)})),i}const n=e.prefix;if(!m3({provider:t,prefix:n,name:"a"}))return!1;const r=_f(t,n);return!!y8(r,e)}const BY=Object.freeze({width:null,height:null}),NY=Object.freeze({...BY,...F2}),rBe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,iBe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function jM(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(rBe);if(r===null||!r.length)return e;const i=[];let a=r.shift(),o=iBe.test(a);for(;;){if(o){const s=parseFloat(a);isNaN(s)?i.push(a):i.push(Math.ceil(s*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join("");o=!o}}const aBe=e=>e==="unset"||e==="undefined"||e==="none";function oBe(e,t){const n={...lE,...e},r={...NY,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,r].forEach(y=>{const b=[],_=y.hFlip,S=y.vFlip;let $=y.rotate;_?S?$+=2:(b.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),b.push("scale(-1 1)"),i.top=i.left=0):S&&(b.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),b.push("scale(1 -1)"),i.top=i.left=0);let D;switch($<0&&($-=Math.floor($/4)*4),$=$%4,$){case 1:D=i.height/2+i.top,b.unshift("rotate(90 "+D.toString()+" "+D.toString()+")");break;case 2:b.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:D=i.width/2+i.left,b.unshift("rotate(-90 "+D.toString()+" "+D.toString()+")");break}$%2===1&&(i.left!==i.top&&(D=i.left,i.left=i.top,i.top=D),i.width!==i.height&&(D=i.width,i.width=i.height,i.height=D)),b.length&&(a='<g transform="'+b.join(" ")+'">'+a+"</g>")});const o=r.width,s=r.height,l=i.width,c=i.height;let u,d;o===null?(d=s===null?"1em":s==="auto"?c:s,u=jM(d,l/c)):(u=o==="auto"?l:o,d=s===null?jM(u,c/l):s==="auto"?c:s);const p={},m=(y,b)=>{aBe(b)||(p[y]=b.toString())};return m("width",u),m("height",d),p.viewBox=i.left.toString()+" "+i.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:p,body:a}}const sBe=/\sid="(\S+)"/g,lBe="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let uBe=0;function cBe(e,t=lBe){const n=[];let r;for(;r=sBe.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{const o=typeof t=="function"?t(a):t+(uBe++).toString(),s=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const SC=Object.create(null);function fBe(e,t){SC[e]=t}function wC(e){return SC[e]||SC[""]}function v8(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,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 b8=Object.create(null),T0=["https://api.simplesvg.com","https://api.unisvg.com"],g3=[];for(;T0.length>0;)T0.length===1||Math.random()>.5?g3.push(T0.shift()):g3.push(T0.pop());b8[""]=v8({resources:["https://api.iconify.design"].concat(g3)});function dBe(e,t){const n=v8(t);return n===null?!1:(b8[e]=n,!0)}function T8(e){return b8[e]}const pBe=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let VM=pBe();function hBe(e,t){const n=T8(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(o=>{i=Math.max(i,o.length)});const a=t+".json?icons=";r=n.maxURL-i-n.path.length-a.length}return r}function mBe(e){return e===404}const gBe=(e,t,n)=>{const r=[],i=hBe(e,t),a="icons";let o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((l,c)=>{s+=l.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=l.length),o.icons.push(l)}),r.push(o),r};function yBe(e){if(typeof e=="string"){const t=T8(e);if(t)return t.path}return"/"}const vBe=(e,t,n)=>{if(!VM){n("abort",424);return}let r=yBe(t.provider);switch(t.type){case"icons":{const a=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});r+=a+".json?"+l.toString();break}case"custom":{const a=t.uri;r+=a.slice(0,1)==="/"?a.slice(1):a;break}default:n("abort",400);return}let i=503;VM(e+r).then(a=>{const o=a.status;if(o!==200){setTimeout(()=>{n(mBe(o)?"abort":"next",o)});return}return i=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?n("abort",a):n("next",i)});return}setTimeout(()=>{n("success",a)})}).catch(()=>{n("next",i)})},bBe={prepare:gBe,send:vBe};function TBe(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,a)=>i.provider!==a.provider?i.provider.localeCompare(a.provider):i.prefix!==a.prefix?i.prefix.localeCompare(a.prefix):i.name.localeCompare(a.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const a=i.provider,o=i.prefix,s=i.name,l=n[a]||(n[a]=Object.create(null)),c=l[o]||(l[o]=_f(a,o));let u;s in c.icons?u=t.loaded:o===""||c.missing.has(s)?u=t.missing:u=t.pending;const d={provider:a,prefix:o,name:s};u.push(d)}),t}function FY(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function EBe(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(a=>{const o=a.icons,s=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(e.icons[c])o.loaded.push({provider:r,prefix:i,name:c});else if(e.missing.has(c))o.missing.push({provider:r,prefix:i,name:c});else return n=!0,!0;return!1}),o.pending.length!==s&&(n||FY([e],a.id),a.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),a.abort))})}))}let ABe=0;function SBe(e,t,n){const r=ABe++,i=FY.bind(null,n,r);if(!t.pending.length)return i;const a={id:r,icons:t,callback:e,abort:i};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(a)}),i}function wBe(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const a=typeof i=="string"?rg(i,t,n):i;a&&r.push(a)}),r}var _Be={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function CBe(e,t,n,r){const i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index;let o;if(e.random){let L=e.resources.slice(0);for(o=[];L.length>1;){const F=Math.floor(Math.random()*L.length);o.push(L[F]),L=L.slice(0,F).concat(L.slice(F+1))}o=o.concat(L)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));const s=Date.now();let l="pending",c=0,u,d=null,p=[],m=[];typeof r=="function"&&m.push(r);function y(){d&&(clearTimeout(d),d=null)}function b(){l==="pending"&&(l="aborted"),y(),p.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),p=[]}function _(L,F){F&&(m=[]),typeof L=="function"&&m.push(L)}function S(){return{startTime:s,payload:t,status:l,queriesSent:c,queriesPending:p.length,subscribe:_,abort:b}}function $(){l="failed",m.forEach(L=>{L(void 0,u)})}function D(){p.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),p=[]}function P(L,F,G){const ie=F!=="success";switch(p=p.filter(se=>se!==L),l){case"pending":break;case"failed":if(ie||!e.dataAfterTimeout)return;break;default:return}if(F==="abort"){u=G,$();return}if(ie){u=G,p.length||(o.length?U():$());return}if(y(),D(),!e.random){const se=e.resources.indexOf(L.resource);se!==-1&&se!==e.index&&(e.index=se)}l="completed",m.forEach(se=>{se(G)})}function U(){if(l!=="pending")return;y();const L=o.shift();if(L===void 0){if(p.length){d=setTimeout(()=>{y(),l==="pending"&&(D(),$())},e.timeout);return}$();return}const F={status:"pending",resource:L,callback:(G,ie)=>{P(F,G,ie)}};p.push(F),c++,d=setTimeout(U,e.rotate),n(L,t,F.callback)}return setTimeout(U),S}function UY(e){const t={..._Be,...e};let n=[];function r(){n=n.filter(s=>s().status==="pending")}function i(s,l,c){const u=CBe(t,s,l,(d,p)=>{r(),c&&c(d,p)});return n.push(u),u}function a(s){return n.find(l=>s(l))||null}return{query:i,find:a,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:r}}function JM(){}const ww=Object.create(null);function RBe(e){if(!ww[e]){const t=T8(e);if(!t)return;const n=UY(t),r={config:t,redundancy:n};ww[e]=r}return ww[e]}function xBe(e,t,n){let r,i;if(typeof e=="string"){const a=wC(e);if(!a)return n(void 0,424),JM;i=a.send;const o=RBe(e);o&&(r=o.redundancy)}else{const a=v8(e);if(a){r=UY(a);const o=e.resources?e.resources[0]:"",s=wC(o);s&&(i=s.send)}}return!r||!i?(n(void 0,424),JM):r.query(t,i,n)().abort}const qM="iconify2",im="iconify",HY=im+"-count",GM=im+"-version",jY=36e5,$Be=168;function _C(e,t){try{return e.getItem(t)}catch{}}function E8(e,t,n){try{return e.setItem(t,n),!0}catch{}}function zM(e,t){try{e.removeItem(t)}catch{}}function CC(e,t){return E8(e,HY,t.toString())}function RC(e){return parseInt(_C(e,HY))||0}const uE={local:!0,session:!0},VY={local:new Set,session:new Set};let A8=!1;function IBe(e){A8=e}let Gy=typeof window>"u"?{}:window;function JY(e){const t=e+"Storage";try{if(Gy&&Gy[t]&&typeof Gy[t].length=="number")return Gy[t]}catch{}uE[e]=!1}function qY(e,t){const n=JY(e);if(!n)return;const r=_C(n,GM);if(r!==qM){if(r){const s=RC(n);for(let l=0;l<s;l++)zM(n,im+l.toString())}E8(n,GM,qM),CC(n,0);return}const i=Math.floor(Date.now()/jY)-$Be,a=s=>{const l=im+s.toString(),c=_C(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,s))return!0}catch{}zM(n,l)}};let o=RC(n);for(let s=o-1;s>=0;s--)a(s)||(s===o-1?(o--,CC(n,o)):VY[e].add(s))}function GY(){if(!A8){IBe(!0);for(const e in uE)qY(e,t=>{const n=t.data,r=t.provider,i=n.prefix,a=_f(r,i);if(!y8(a,n).length)return!1;const o=n.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,o):o,!0})}}function kBe(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in uE)qY(r,i=>{const a=i.data;return i.provider!==e.provider||a.prefix!==e.prefix||a.lastModified===t});return!0}function DBe(e,t){A8||GY();function n(r){let i;if(!uE[r]||!(i=JY(r)))return;const a=VY[r];let o;if(a.size)a.delete(o=Array.from(a).shift());else if(o=RC(i),!CC(i,o+1))return;const s={cached:Math.floor(Date.now()/jY),provider:e.provider,data:t};return E8(i,im+o.toString(),JSON.stringify(s))}t.lastModified&&!kBe(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function WM(){}function LBe(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,EBe(e)}))}function OBe(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let a;if(!i||!(a=wC(n)))return;a.prepare(n,r,i).forEach(s=>{xBe(n,s,l=>{if(typeof l!="object")s.icons.forEach(c=>{e.missing.add(c)});else try{const c=y8(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),DBe(e,l)}catch(c){console.error(c)}LBe(e)})})}))}const zY=(e,t)=>{const n=wBe(e,!0,PY()),r=TBe(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,WM)}),()=>{l=!1}}const i=Object.create(null),a=[];let o,s;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===s&&c===o)return;o=c,s=u,a.push(_f(c,u));const d=i[c]||(i[c]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:d}=l,p=_f(c,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(d)||(m.add(d),i[c][u].push(d))}),a.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&OBe(l,i[c][u])}),t?SBe(t,r,a):WM},zvt=e=>new Promise((t,n)=>{const r=typeof e=="string"?rg(e,!0):e;if(!r){n(e);return}zY([r||e],i=>{if(i.length&&r){const a=MY(r);if(a){t({...lE,...a});return}}n(e)})});function PBe(e,t){const n={...e};for(const r in t){const i=t[r],a=typeof i;r in BY?(i===null||i&&(a==="string"||a==="number"))&&(n[r]=i):a===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const MBe=/[\s,]+/;function BBe(e,t){t.split(MBe).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function NBe(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let a=parseFloat(e.slice(0,e.length-n.length));return isNaN(a)?0:(a=a/i,a%1===0?r(a):0)}}return t}function FBe(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function UBe(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function HBe(e){return"data:image/svg+xml,"+UBe(e)}function jBe(e){return'url("'+HBe(e)+'")'}let h1;function VBe(){try{h1=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{h1=null}}function JBe(e){return h1===void 0&&VBe(),h1?h1.createHTML(e):e}const WY={...NY,inline:!1},qBe={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},GBe={display:"inline-block"},xC={backgroundColor:"currentColor"},KY={backgroundColor:"transparent"},KM={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},YM={WebkitMask:xC,mask:xC,background:KY};for(const e in YM){const t=YM[e];for(const n in KM)t[e+n]=KM[n]}const zBe={...WY,inline:!0};function ZM(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const WBe=(e,t,n,r)=>{const i=n?zBe:WY,a=PBe(i,t),o=t.mode||"svg",s={},l=t.style||{},c={...o==="svg"?qBe:{},ref:r};for(let S in t){const $=t[S];if($!==void 0)switch(S){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[S]=$===!0||$==="true"||$===1;break;case"flip":typeof $=="string"&&BBe(a,$);break;case"color":s.color=$;break;case"rotate":typeof $=="string"?a[S]=NBe($):typeof $=="number"&&(a[S]=$);break;case"ariaHidden":case"aria-hidden":$!==!0&&$!=="true"&&delete c["aria-hidden"];break;default:i[S]===void 0&&(c[S]=$)}}const u=oBe(e,a),d=u.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),o==="svg"){c.style={...s,...l},Object.assign(c,d);let S=0,$=t.id;return typeof $=="string"&&($=$.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:JBe(cBe(u.body,$?()=>$+"ID"+S++:"iconifyReact"))},Yt.createElement("svg",c)}const{body:p,width:m,height:y}=e,b=o==="mask"||(o==="bg"?!1:p.indexOf("currentColor")!==-1),_=FBe(p,{...d,width:m+"",height:y+""});return c.style={...s,"--svg":jBe(_),width:ZM(d.width),height:ZM(d.height),...GBe,...b?xC:KY,...l},Yt.createElement("span",c)};PY(!0);fBe("",bBe);if(typeof document<"u"&&typeof window<"u"){GY();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!nBe(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;dBe(n,i)||console.error(r)}catch{console.error(r)}}}}class YY extends Yt.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const n=this.state,r=this.props.icon;if(typeof r=="object"&&r!==null&&typeof r.body=="string"){this._icon="",this._abortLoading(),(t||n.icon===null)&&this._setData({data:r});return}let i;if(typeof r!="string"||(i=rg(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const a=MY(i);if(!a){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),a!==null&&(this._loading={name:r,abort:zY([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const o=["iconify"];i.prefix!==""&&o.push("iconify--"+i.prefix),i.provider!==""&&o.push("iconify--"+i.provider),this._setData({data:a,classes:o}),this.props.onLoad&&this.props.onLoad(r)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(n===null)return t.children?t.children:Yt.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),WBe({...lE,...n.data},r,t._inline,t._ref)}}const Vn=Yt.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return Yt.createElement(YY,r)});Yt.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return Yt.createElement(YY,r)});const KBe={width:24,height:24,body:'<path fill="currentColor" d="M9.575 12L5.7 8.1q-.275-.275-.288-.688T5.7 6.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-4.6 4.6q-.275.275-.687.288T5.7 17.3q-.275-.275-.275-.7t.275-.7L9.575 12Zm6.6 0L12.3 8.1q-.275-.275-.288-.688T12.3 6.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.6 4.6q-.275.275-.687.288T12.3 17.3q-.275-.275-.275-.7t.275-.7l3.875-3.9Z"/>'};var _w=/iPhone/i,XM=/iPod/i,QM=/iPad/i,eB=/\biOS-universal(?:.+)Mac\b/i,Cw=/\bAndroid(?:.+)Mobile\b/i,tB=/Android/i,hd=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,zy=/Silk/i,Rl=/Windows Phone/i,nB=/\bWindows(?:.+)ARM\b/i,rB=/BlackBerry/i,iB=/BB10/i,aB=/Opera Mini/i,oB=/\b(CriOS|Chrome)(?:.+)Mobile/i,sB=/Mobile(?:.+)Firefox\b/i,lB=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function YBe(e){return function(t){return t.test(e)}}function ZBe(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);var i=YBe(n),a={apple:{phone:i(_w)&&!i(Rl),ipod:i(XM),tablet:!i(_w)&&(i(QM)||lB(t))&&!i(Rl),universal:i(eB),device:(i(_w)||i(XM)||i(QM)||i(eB)||lB(t))&&!i(Rl)},amazon:{phone:i(hd),tablet:!i(hd)&&i(zy),device:i(hd)||i(zy)},android:{phone:!i(Rl)&&i(hd)||!i(Rl)&&i(Cw),tablet:!i(Rl)&&!i(hd)&&!i(Cw)&&(i(zy)||i(tB)),device:!i(Rl)&&(i(hd)||i(zy)||i(Cw)||i(tB))||i(/\bokhttp\b/i)},windows:{phone:i(Rl),tablet:i(nB),device:i(Rl)||i(nB)},other:{blackberry:i(rB),blackberry10:i(iB),opera:i(aB),firefox:i(sB),chrome:i(oB),device:i(rB)||i(iB)||i(aB)||i(sB)||i(oB)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}const ZY="ABTWallet",XBe="ArcSphere";function QBe(e){var i;const n=new RegExp(`${ZY}/(?<version>[0-9.]+)`,"g").exec(e);return(i=n==null?void 0:n.groups)==null?void 0:i.version}function ig(){var n;const e=(n=window==null?void 0:window.navigator)==null?void 0:n.userAgent,[t]=Z.useState({wallet:e.indexOf(ZY)>-1||e.indexOf(XBe)>-1,walletVersion:QBe(e),wechat:/MicroMessenger/i.test(e),mobile:{apple:{phone:!1,ipod:!1,tablet:!1,device:!1},amazon:{phone:!1,tablet:!1,device:!1},android:{phone:!1,tablet:!1,device:!1},windows:{phone:!1,tablet:!1,device:!1},other:{blackberry:!1,blackberry10:!1,opera:!1,firefox:!1,chrome:!1,device:!1},phone:!1,tablet:!1,any:!1,...ZBe(e)}});return t}const uB={did:{contained:{backgroundColor:li.did.primary,color:li.common.white},outlined:{borderColor:li.did.primary,color:li.did.primary}},reverse:{contained:{backgroundColor:"rgba(255, 255, 255, 0.9)",color:li.grey[900]},outlined:{borderColor:li.grey[900],color:li.grey[900]}}};function eNe(e){function t(n){const r=Sx(n,t,["style"]),{children:i,rounded:a,loading:o,disabled:s,style:l,forwardedRef:c,color:u,...d}=r,p=s||o;let m=16;switch(d.size){case"small":m=14;break;case"large":m=18;break}const y=uB[u]&&uB[u][d.variant],b=Object.assign({},l,{boxShadow:"none",textTransform:"capitalize",...y});let _=d;return y||(_={..._,color:u}),a&&(b.borderRadius="100vw"),q.jsxs(e,{style:b,ref:c,disabled:p,..._,children:[o&&q.jsx(Fm,{size:m,style:{marginRight:5}}),i]})}return t.propTypes={children:me.any.isRequired,style:me.oneOfType([me.object,me.string]),size:me.oneOf(["large","medium","small"]),forwardedRef:me.any,rounded:me.bool},t.defaultProps={rounded:!1,size:"medium",forwardedRef:null,style:{}},Z.forwardRef((n,r)=>q.jsx(t,{...n,forwardedRef:r}))}const cB=eNe(PW);function S8({children:e,title:t,prepend:n,toolbar:r,actions:i,showCloseButton:a,actionsPosition:o,PaperProps:s,slotProps:l,...c}){const u=ru(),d=kG(u.breakpoints.down("md")),p=t||a||r,m=(b,_)=>{const{onClose:S}=c;S&&S(b,_)};s.style=Object.assign({minWidth:300,minHeight:300},s.style);const y=q.jsx(ou,{className:"ux-dialog_closeButton",onClick:b=>m(b,"closeButton"),children:q.jsx(Wx,{})});return q.jsxs(tNe,{fullScreen:d,onClose:m,PaperProps:s,...c,children:[p&&q.jsxs(nNe,{...l.header,className:"ux-dialog_header",isMobile:d,children:[q.jsxs("div",{className:"ux-dialog_left",children:[a&&d&&y,n&&q.jsx("div",{className:"ux-dialog_prepend",children:n}),t&&q.jsx(or,{variant:"h6",className:"ux-dialog_title",children:t})]}),q.jsxs("div",{className:"ux-dialog_right",children:[q.jsx("div",{className:"ux-dialog_toolbar",children:r}),a&&!d&&y]})]}),q.jsx(Jx,{...l.content,children:e}),i&&q.jsx(ECe,{className:`ux-dialog_actions--${o}`,children:i})]})}S8.propTypes={children:me.node.isRequired,title:me.node,prepend:me.node,toolbar:me.node,actions:me.node,showCloseButton:me.bool,actionsPosition:me.oneOf(["left","center","right"]),PaperProps:me.object,slotProps:me.shape({content:me.object,header:me.object})};S8.defaultProps={showCloseButton:!0,title:"",prepend:null,toolbar:null,actions:null,actionsPosition:"right",PaperProps:{},slotProps:{}};const tNe=ul(Vx)`
|
|
260
|
+
e.g. 'query_user', 'mutate_user'`},delete:{title:"Delete Permission",description:"Confirm delete {name}?"},error:{actionEmpty:"action cannot be empty",resourceEmpty:"resource cannot be empty",permissionTooLong:"permission cannot exceed {length} characters",descriptionTooLong:"description cannot exceed {length} characters"}},passport:{create:{title:"Create Passport",titleTip:"Title cannot be modified after created, recommended within 14 letters"},bind:{title:"Bind Permission",roleTip:"You will get all the permissions of the selected passport after binding",permissionTip:"You will get the selected permissions after binding",transferLeftTitle:"All permissions",transferRightTitle:"Granted permissions"},delete:{title:"Delete Passport",description:"The passports holds by user will lose all permissions after it is deleted. Are you sure to continue?"},error:{titleEmpty:"title cannot be empty",titleTooLong:"title cannot exceed {length} characters",descriptionEmpty:"description cannot be empty"},issuance:{pending:"Pending",create:{title:"Generate Link"},delete:{title:"Delete Receive Link",description:"Confirm delete {link}?"}},issue:"Issue Passport",disableIssuance:"Disable Passport Issuance",enableIssuance:"Enable Passport Issuance",disableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be disabled',enableIssuanceTip:'"Issue Passport", "Invite Member" and other operations will be enabled',trustedPassportIssuers:"Trusted Passport Issuers",trustedIssuers:"Trusted Issuers",trustedFactories:"Trusted NFT Collections",trustedFactoriesTip:"Manage trusted NFT Collections that can be used to exchange for a passport",searchFactoryAddress:"Search Collection DID",configFactories:"Config Trusted NFT Collections",configFactoriesTip:"Allow users to exchange NFTs for passport",factoryAddress:"NFT Collection Address",factory404:"NFT Collection not found",factoryAddressTip:"The NFT Collection address must exist on ArcBlock Main Chain",role:"Passport Type",ttl:"Passport Expire Policy",ttlNever:"Never Expire",ttlMint:"Since NFT Purchase",ttlExchange:"Since Passport Exchange",ttlNeverTip:"The passport will be valid until revoked",ttlMintTip:"The passport will be valid since the NFT is purchased until you specified ttl or revoke",ttlExchangeTip:"The passport will be valid since user successfully exchanged until you specified ttl or revoke",ttlTip:'"365d" means 365 days, you can also use "30 days" or "24h"',validUntil:"Valid until: {date}",externalPassport:"External Passport",notTrustedIssuerTip:"The passport cannot be used because the issuer is not on the list of trusted issuers",issuerDid:"Issuer DID",addNodeToTrustedIssuers:"Add current server as a trusted passport issuer",revoked:"Revoked",noPermission:"No permission to perform this operation",shouldNotDeleteCurrent:"You can not revoke your passport currently in use",mappingRule:"Mapping rule",defaultRule:"Default rule",search:"Search Passport",searchIssuerDid:"Search Issuer DID",issueBy:"Issue by {name}",configColor:"Config Passport Color",configColorTip:"Customize the color of the passport",color:"Passport Color",description:"Use this passport to connect {teamName} as {title}"},inviting:{link:"Invite Link",inviter:"Inviter",delete:{title:"Delete Invite Link",description:"Confirm delete {link}?"},disabledTip:"Invitation is not enabled"},whoCanAccess:{all:{title:"Accessible to all"},owner:{title:"Owner only"},invited:{title:"Invited user only"}}},launcher:{provider:"Provider",adminUrl:"URL"},session:{forbidLogin:"You have been blocked from access this server"},launchBlocklet:{appInfo:"Application Information",appInfoDesc:"Confirm the application information",author:"Application Author: {author}",setup:"Setup Blocklet",redirect:"Redirect",alreadyRunning:"Application {name} is already running on this Blocklet Server",alreadyInstalled:"Application {name} is already installed on this Blocklet Server",alreadyExists:"This application already exists, redirecting...",purchased:"Already Purchased",purchase:"Purchase",nextStep:"Next Step",agreement:"License Agreement",agreeAll:"Agree & Continue",installing:"Installing {appName} on {serverName}, it may take minutes to complete, please stay tuned...",redirecting:"{appName} is successfully installed, now starting...",start:"Launching",launch:"Install Blocklet to Server",launchSuccess:"{appName} is successfully launched!",installSuccess:"Blocklet is successfully installed and launched on {serverName}",openInRegistry:"View in Blocklet Store",subTitle:"Ready to install Blocklet {appName} on {serverName}",installingSubTitle:"{appName} installing",access:"Open the application",installRelatedComponents:"Install related Blocklets",viewApplication:"View Application",newVersion:"New Version",newVersionDesc:"The application already exists, but the current version can be upgraded",upgradeNow:"Upgrade Now",later:"Later",introduction:"Introduction",welcome:"Welcome to the Blocklet Launch Wizard",accept:"I agree to the Blocklet EULA",license:"Application License",next:"Agree to the EULA and continue",purchaseApp:"Purchase Blocklet",setupAppDesc:"Initialize your Blocklet",launched:"Complete",confirmInstall:"Confirm Installation",dialog:{title:"Become App Owner",nftFreeDescription:"Please present app space NFT and create app account to continue",nftPaidDescription:"Please present app space NFT and app purchase NFT to continue",freeDescription:"Please create app account to continue",paidDescription:"Please present app purchase NFT and create app account to continue",confirm:"Confirm on your DID Wallet",success:"Authorization Successfully",authorizationTimeout:"Authorization timeout"},waiting:{verifying:"Verifying app meta...",downloading:"Downloading app bundle...",downloadingComponent:"Downloading {name}",extractingComponent:"Extracting {name}",extracting:"Extracting app bundle...",installing:"Installing app components...",installed:"Installed",starting:"Starting the app...",done:"Waiting for app ready..."},error:{loadMetaFailed:"Load app information failed",appMetaNotFound:"No information found for this app",downloadFailed:"Failed to download the app, please try again",installFailed:"Failed to install the app, please try again",startFailed:"Failed to start the app, please try again",launchFailed:"Failed to launch the app, please try again",installedButStopped:"The app is installed successfully, but cannot be started. You can start it manually after resolving blocking issues",installedButError:"The app is successfully installed, but failed to start",restoreFailed:"Failed to restore app, please try again",resourceBlocklet:"This blocklet cannot be launched directly, but you can add it into existing application."},steps:{introduction:"Introduction",installApp:"Install Application",purchaseSpace:"Purchase Space",prepareSpace:"Prepare Space"}},issuePassport:{title:"Receive Passport",description:"Use DID Wallet to receive the passport issued by {name}",dialog:{scan:"Use your DID Wallet to claim the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet",loginWithPassport:"Connect with this Passport",autoClose:"Page will auto close in {seconds}s",autoJump:"Page will auto jump in {seconds}s"}},lostPassport:{title:"Lost Passport",description:"The owner of {name} can scan the QR code to retrieve the passport, members please contact the owner to reissue the passport",dialog:{title:"Recover Passport",scan:"Use your DID Wallet to recover the passport",confirm:"Confirm on your DID Wallet",success:"The passport has been successfully added in your wallet"},return:"Connect with passport",selectPassport:"Select passport",receivePassport:"Receive passport"},invite:{message:"{name} invite you to be the {role} of {dapp}",success:"You have successfully joined {dapp}",receive:"Receive with",validUntil:"Valid until:",viewPermission:"View Permission",emptyPermission:"Empty Permission",open:"Open",description:{step1:"Download and setup your {wallet}",step2:"Click above button to receive passport",step3:"Login in {dapp} with received passport"},transferNFTDialog:{title:"Accept Blocklet Server {name}",scan:"Connect the Launcher to complete the reception of the Blocklet Server.",confirm:"Review this operation on your DID Wallet",success:"Connect successfully, waiting for confirmation of receiving the Server"}},receive:{dialog:{title:"Use your DID Wallet to receive passport",scan:"Connect your DID Wallet to receive passport",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"}},navigation:{navigation:"Navigation",access:"Access",members:"Members",passport:"Passport",analytics:"Analytics",dashboard:"Dashboard",studio:"Studio",blockletService:"Blocklet Service",actionFailed:"Action Failed",form:{title:"Title",titlePlaceholder:"Please input navigation title",titleTooLong:"Title length should small than {len}",icon:"Navigation Icon",iconPlaceholder:"Please input navigation icon",invalidIcon:"Icon is invalid",findMoreIcon:"Find more icons",link:"Link",linkPlaceholder:"Please input navigation link",invalidLink:"Link is invalid",component:"Component",componentPlaceholder:"Please select navigation component",role:"Role",rolePlaceholder:"Please select navigation role",locale:"Locale",localePlaceholder:"Please input locale need to add",localeExists:"{value} is already exists"},action:{add:"Add navigation",addSub:"Add sub navigation",edit:"Edit navigation",hide:"Hide navigation",show:"Show navigation",del:"Delete navigation",new:"New",noAddSub:"Uninstalled component can't add sub navigation",noEdit:"Uninstalled component can't edit",noDel:"Not allowed delete built-in navigation",reset:"Reset",restConfirmTitle:"Do you want to clear all custom navigation?",restConfirmDesc:"After clearing, the navigation will be restored to Blocklet's original default configuration.",resetSuccessful:"Reset successful"}},storage:{spaces:{tips:"Tips",label:"Enter DID Spaces Gateway",connected:{title:"Connected DID Spaces",tag:"Connected"},connectedWithName:"You have successfully connected to {name}",addedWithName:"You have successfully added {name}",connects:"Connect",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"},provideNFT:{title:"Please show the DID Spaces NFT for {appName}",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} show DID space NFT",success:"Connected successfully"},backup:{title:"Backup",records:"Backup Records"},autoBackup:{title:"Auto backup",enabled:"Automatic backup is on",disabled:"Automatic backup is off"},autoCheckUpdate:{title:"Automatically check for new version notification",enabled:"Automatically check for new version is on",disabled:"Automatically check for new version is off"},backupSuccessfully:"Backup successfully",restore:"Restore",restoreSuccessfully:"Restore successfully",gateway:{title:"Gateway",select:"Select a DID Spaces",add:{title:"Add DID Spaces",label:"Enter the url of the DID Spaces",failed:"Add DID Spaces failed",invalidUrl:"Invalid DID Spaces gateway url",duplicate:"DID Space({name}) already exist"},delete:{title:"Delete gateway",succeeded:"Delete DID Spaces{name} Success",failed:"Delete gateway failed",failedForSelected:"Unable to delete a selected DID Spaces"},connect:{title:"Connect DID Spaces",add:"Connect to DID Spaces now",addTips:"You are not connected to any Space yet",switch:"Switch DID Spaces",switchTips:"You are connected to {name}",connected:"Connected"},switch:{failedForMismatchSpace:"Please connect to the correct Space{name}"},connectTo:"Connect to DID Spaces"},strategy:{title:"Backup Strategy",autoBackup:"Auto backup",backupNow:"Backup now",viewBackupFiles:"View backup files"},progress:{title:"Backup progress"},record:{title:"Backup records",emptyData:"No records"},notYet:"You don't have a backup in progress yet...",connect:{now:"Connect now",title:"Connect DID Spaces",provider:"Provide your DID Spaces to start backups",providerForStorage:"Please connect your DID Spaces",useWallet:"Connect with DID Wallet",useWalletReconnect:"Reconnect with DID Wallet",useSpaceGateway:"Connect using the DID Spaces gateway",useSpaceGatewayReconnect:"Reconnect using the DID Spaces gateway",switchToSpace:"Switch to Space",switchToSpaceSucceeded:"Switched to Space{name}",succeeded:"You have successfully connected to DID Spaces",disconnect:"disconnect"},disconnected:{tag:"Disconnected",reconnectNow:"Reconnect Now"}}},log:{lastDays:{1:"Last 1 Day",7:"Last 1 Week"}},oauth:{commonSettings:"Common Settings",save:"Save",saveSuccess:"Save successfully",saveFailed:"Save failed",issued:"Issued",thirdPartyLogin:"Third party login",alreadyBindOAuth:"Already bind third party login",alreadyBindWallet:"Already bind DID Wallet",auth0:{enable:"Enable Auth0 login",domain:"Domain",domainDescription:"Auth0's domain is required",clientId:"Client ID",clientIdDescription:"Auth0 OAuth application client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Auth0 OAuth application Client Secret is required"},github:{enable:"Enable Github login",clientId:"Client ID",clientIdDescription:"Github OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Github OAuth application Client Secret is required"},google:{enable:"Enable Google login",clientId:"Client ID",clientIdDescription:"Google OAuth application Client ID is required",clientSecret:"Client Secret",clientSecretDescription:"Google OAuth application Client Secret is required"},apple:{enable:"Enable Apple login",teamId:"Team ID",teamIdDescription:"Apple OAuth application Team ID is required",serviceId:"Service ID",serviceIdDescription:"Apple OAuth application Service ID is required",keyId:"Key ID",keyIdDescription:"Apple OAuth application Key ID is required",authKey:"Auth Key",authKeyDescription:"Apple OAuth application Auth Key is required",bundleId:"Bundle ID",bundleIdDescription:"Apple OAuth application Bundle ID is required"},comingSoon:"More login methods are under construction",moreLogin:"More Login",federated:"Federated Login",oauth:"Third Party Login",runTest:"Test"},expiration:{mobile:{tips:{success:"{validity}",warning:"{validity}",error:"Expired"},loadFailed:"Retry!"},desktop:{tips:{success:"Subscription will expire after {validity}",warning:"Subscription will expire after {validity}",error:"Subscription Expired"},loading:"Load subscription...",loadFailed:"Failed to load subscription info, please retry!",nextInvoice:"Next Invoice: {date}"}},analytics:{trend:"Trends",detail:"Breakdown",traffic:{totalRequests:"Total Requests",validRequests:"Success Requests",failedRequests:"Failed Requests",uniqueVisitors:"Unique Visitors",uniqueFiles:"Unique URLs",uniqueReferrers:"Unique Referrers",uniqueNotFound:"Unique 404",uniqueStaticFiles:"Unique Static Files",logSize:"Log Size",bandwidth:"Bandwidth"}},federated:{inviteJoinFederatedLogin:"Invite to join federated login",inviteJoinFederatedLoginDescription:"Copy the following address and fill it in the application where you need to join to apply for federated login.",federatedLogin:"Federated login",joinFederatedLogin:"Join federated login",joinFederatedLoginDescription:"Please enter the federated login address provided by Master Blocklet to join the federated login",quitFederatedLogin:"Quit federated login",quitFederatedLoginDescription:"After quit federated login, normal login is always available",federatedJoinAppUrl:"Federated login join appUrl",federatedJoinAppUrlRequired:"Please input federated login join appUrl",failedToGetFederatedLoginAppUrl:"Failed to get federated login join appUrl",federatedJoinAppUrlInvalid:"Federated login appUrl is invalid",siteDetail:"Site detail",approveToJoinLogin:"Approve to join federated login",approve:"Enable login",revoke:"Disable login",enableFederatedLogin:"Enable federated login",disableFederatedLogin:"Disable federated login",enableFederatedLoginDescription:"After enable federated login, this site will be auto login",disableFederatedLoginDescription:"After disable federated login, this site will not be auto login",enableFederatedAutoLogin:"Enable automatic login",enableFederatedAutoLoginDescription:"After enable automatic login, if there is currently a unified login status, the site will automatically log in the identity of the federated login",disableFederatedAutoLogin:"Disable automatic login",disableFederatedAutoLoginDescription:"After the automatic login is turned off, the site will not automatically log in the user information of the unified login, and you can still choose to manually click to log in with the identity of the federated login",info:{appId:"APP DID",appPid:"Permanent ID",migratedFrom:"Also Known As",appName:"Blocklet name",appDescription:"Blocklet description",appUrl:"Blocklet url",appLogo:"Blocklet logo",did:"Blocklet DID",serverId:"Blocklet Server ID",serverVersion:"Blocklet Server version",version:"Blocklet version",appliedAt:"Apply at",status:"Status"},status:{pending:"Pending",approved:"Approved",rejected:"Rejected",revoked:"Revoked"},disbandFederatedLogin:"Disband federated login",disbandFederatedLoginDescription:"After disband federated login, all member site will quit federated login automatically"},optionsOrder:{1:"Option One",2:"Option Two"}},SIe={pageTitle:{login:"Login",dashboard:"Blocklet Dashboard",userCenter:"User Center",invite:"Invite",issuePassport:"Issue Passport",lostPassort:"Lost Passport"},auth:{noPermission:{title:"No Permission",description:"You are not the administrator of the blocklet"}},login:{reLogin:"Reconnect",description:"You must connect your DID Wallet to access {name}",already:"You are connected as",connectWallet:"Connect DID Wallet",closeWindow:"Close window",switchDid:{title:"Switch DID Wallet",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},switchSpecifiedDid:{title:"Switch DID Wallet",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},connect:{title:"Connect DID Wallet",scan:"Connect your DID Wallet to access this application",confirm:"Confirm on your DID Wallet",success:"You are successfully connected"},accessLimit:{title:"Page access restricted ",description:"This page requires the following passports to access, please connect to the wallet to change or apply for the corresponding pass.",alreadyHavePassport:"Already have the passport",connectWithPassport:"Connect with this passport",buyPassport:"buyPassport"},connectWithPassport:"Connect with this passport",needManualClose:"Login success, if this window is not auto closed, please close it."},studio:{home:"Studio",preferences:"Preference Builder",localization:"Localization"},blocklet:{startApplication:"Start Application",startDescription:"Ready to start {name}",start:"Start",starting:"Starting...",open:"Open",suspended:"Application suspended",redemptionTip:"This application has been suspended due to payment expiration. Please renew before the {deadline} to resume. Failure to renew within the specified timeframe will result in the inability to renew or resume.",manageSubscription:"Manage Subscription"},setup:{steps:{connect:"Connect",didSpace:"DID Spaces",config:"Configuration",domain:"Domain",access:"Access Control",fuel:"Fuel",complete:"Complete",introduction:"Introduction",selectNodeDesc:"Select Blocklet Server",launchAppDesc:"Install Blocklet to Server",setupAppDesc:"Setup Blocklet",launched:"Complete"},connect:{title:"Connect to Application",scan:"Connect your DID Wallet to provide user profile and the blocklet's Owner privileges, then you can configure and launch the app.",confirm:"Confirm on your DID Wallet",success:"You are connected successfully"},domain:{addTitle:"Add a new domain name (Optional)",title:"Domain Setting",subTitle:"Set a custom domain for the application",label:"Please provide a valid domain name",tipStart:"Please make sure",tipEnd:"has point to the current Server",cannotResolve:"{domain} can not be resolved, please check your DNS configuration",checkingResolvable:"Checking domain status...",addingCert:"Generating certificate...",addingDomain:"Adding domain...",recordType:"Record Type",recordValue:"Record Value",skipStart:"You can",skip:"skip custom domain setting",skipEnd:"and use the default domain to access the application",genCertSuccess:"The {domain} certificate is issued successfully",genCertFailed:"Failed to issue certificate for {domain}: {message}",genCertFailedForNFTDomain:"Added NFT domain successfully, but failed to generate HTTPS certificate, please try again later",resolvedAddressError:"{domain} does not point to the same IP address as {curDomain}",invalidDNSReminder:"{error}. However, you can continue to add the domain, but automatic certificate generation is not available.",continueAdd:"Continue Adding"},didSpace:{title:"Configure DID Spaces",subTitle:"Complete the following connection process to store application data in DID Spaces",tips:"Tips",description:"Configure the DID Spaces instance address and store the application data in DID Spaces after a successful connection",label:"Please select the DID Spaces service",connected:"You have successfully connected to DID Spaces",connect:"Connect Now",reconnect:"Reconnect",addressCannotEmpty:"Address cannot be empty",addressNotValid:"{url} is not a valid address",authorize:{title:"Connect {appName} to DID Spaces",scan:"Use your DID Wallet to scan the QR code below to allow the app {appName} to connect to DID Spaces",success:"Connected successfully"}},config:{title:"Configuration",subTitle:"Other configuration items (you will also need to set the following items)"},complete:{title:"Everything is Ready",failedTitle:"Failed to start Blocklet",backToServer:"Back to Blocklet Server",notRunning:"Blocklet failed to start on the first shot, please retry"},fuel:{title:"Fuel required to start",tipStart:"slot",tipEnd:" is required for this application to work properly, the fund are saved in the application wallet and can consumed for transaction gas purpose. You can withdraw your balance at any time when you no longer have the app running.",addressTitle:"Application Account",addressTip:"Fuel the application with DID Wallet",need:"Need",current:"Current",fuelApp:"Fuel the application"},title:"Setup",next:"Next",previous:"Previous",continue:"Continue",skip:"Skip",startNow:"Start Now",confirm:"Confirm",cancel:"Cancel"},user:{walletNotification:"DID Wallet notification",emailNotification:"Email notification",smsNotification:"SMS notification",addWebhook:"Add New Webhook"}},wIe={en:oa(Wi(AIe,SIe)),ar:async()=>{const e=await Promise.all([ln(()=>import("./ar-CEz-3AyV.js"),[]).then(t=>t.default),ln(()=>import("./ar-B7BWKAT0.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},de:async()=>{const e=await Promise.all([ln(()=>import("./de-Di4pToxm.js"),[]).then(t=>t.default),ln(()=>import("./de-ELpbFffa.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},es:async()=>{const e=await Promise.all([ln(()=>import("./es-CPDKeKrG.js"),[]).then(t=>t.default),ln(()=>import("./es-4F6iKSAU.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},fr:async()=>{const e=await Promise.all([ln(()=>import("./fr-9RG8cAa6.js"),[]).then(t=>t.default),ln(()=>import("./fr-DOPIs7lg.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},hi:async()=>{const e=await Promise.all([ln(()=>import("./hi-DJLNiG5V.js"),[]).then(t=>t.default),ln(()=>import("./hi-Dzp-4zoH.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},id:async()=>{const e=await Promise.all([ln(()=>import("./id-TqWAFNjj.js"),[]).then(t=>t.default),ln(()=>import("./id-Bumv1FYl.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},ja:async()=>{const e=await Promise.all([ln(()=>import("./ja-BSnhR_mh.js"),[]).then(t=>t.default),ln(()=>import("./ja-CqCu7wgc.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},ko:async()=>{const e=await Promise.all([ln(()=>import("./ko-gjYVLUHm.js"),[]).then(t=>t.default),ln(()=>import("./ko-RwPO5IMK.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},pt:async()=>{const e=await Promise.all([ln(()=>import("./pt-B-XCpQDv.js"),[]).then(t=>t.default),ln(()=>import("./pt-BwOCnpCh.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},ru:async()=>{const e=await Promise.all([ln(()=>import("./ru-DSPtM6j0.js"),[]).then(t=>t.default),ln(()=>import("./ru-CBC11P4x.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},th:async()=>{const e=await Promise.all([ln(()=>import("./th-CxPqMbkk.js"),[]).then(t=>t.default),ln(()=>import("./th-CzfAwl4e.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},vi:async()=>{const e=await Promise.all([ln(()=>import("./vi-B8erxshV.js"),[]).then(t=>t.default),ln(()=>import("./vi-BDUtfRQR.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},zh:async()=>{const e=await Promise.all([ln(()=>import("./zh-DuJ3QKF9.js"),[]).then(t=>t.default),ln(()=>import("./zh-BiD8p9-Q.js"),[]).then(t=>t.default)]);return oa(Wi(...e))},"zh-TW":async()=>{const e=await Promise.all([ln(()=>import("./zh-tw-L8o5R-ra.js"),[]).then(t=>t.default),ln(()=>import("./zh-tw-DTnWxJQa.js"),[]).then(t=>t.default)]);return oa(Wi(...e))}};function _Ie(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var CIe=_Ie,RIe=cK,xIe=RIe(Object.keys,Object),$Ie=xIe,IIe=qT,kIe=$Ie,DIe=Object.prototype,LIe=DIe.hasOwnProperty;function OIe(e){if(!IIe(e))return kIe(e);var t=[];for(var n in Object(e))LIe.call(e,n)&&n!="constructor"&&t.push(n);return t}var AK=OIe,PIe=mK,MIe=AK,BIe=Nf;function NIe(e){return BIe(e)?PIe(e):MIe(e)}var Xm=NIe,FIe=mh,UIe=Xm;function HIe(e,t){return e&&FIe(t,UIe(t),e)}var jIe=HIe,VIe=mh,JIe=Ym;function qIe(e,t){return e&&VIe(t,JIe(t),e)}var GIe=qIe;function zIe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var WIe=zIe;function KIe(){return[]}var SK=KIe,YIe=WIe,ZIe=SK,XIe=Object.prototype,QIe=XIe.propertyIsEnumerable,hM=Object.getOwnPropertySymbols,eke=hM?function(e){return e==null?[]:(e=Object(e),YIe(hM(e),function(t){return QIe.call(e,t)}))}:ZIe,i8=eke,tke=mh,nke=i8;function rke(e,t){return tke(e,nke(e),t)}var ike=rke;function ake(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var a8=ake,oke=a8,ske=Zx,lke=i8,uke=SK,cke=Object.getOwnPropertySymbols,fke=cke?function(e){for(var t=[];e;)oke(t,lke(e)),e=ske(e);return t}:uke,wK=fke,dke=mh,pke=wK;function hke(e,t){return dke(e,pke(e),t)}var mke=hke,gke=a8,yke=Ia;function vke(e,t,n){var r=t(e);return yke(e)?r:gke(r,n(e))}var _K=vke,bke=_K,Tke=i8,Eke=Xm;function Ake(e){return bke(e,Eke,Tke)}var CK=Ake,Ske=_K,wke=wK,_ke=Ym;function Cke(e){return Ske(e,_ke,wke)}var o8=Cke,Rke=Bf,xke=Ss,$ke=Rke(xke,"DataView"),Ike=$ke,kke=Bf,Dke=Ss,Lke=kke(Dke,"Promise"),Oke=Lke,Pke=Bf,Mke=Ss,Bke=Pke(Mke,"Set"),RK=Bke,Nke=Bf,Fke=Ss,Uke=Nke(Fke,"WeakMap"),Hke=Uke,cC=Ike,fC=hx,dC=Oke,pC=RK,hC=Hke,xK=iu,gh=Tz,mM="[object Map]",jke="[object Object]",gM="[object Promise]",yM="[object Set]",vM="[object WeakMap]",bM="[object DataView]",Vke=gh(cC),Jke=gh(fC),qke=gh(dC),Gke=gh(pC),zke=gh(hC),Fc=xK;(cC&&Fc(new cC(new ArrayBuffer(1)))!=bM||fC&&Fc(new fC)!=mM||dC&&Fc(dC.resolve())!=gM||pC&&Fc(new pC)!=yM||hC&&Fc(new hC)!=vM)&&(Fc=function(e){var t=xK(e),n=t==jke?e.constructor:void 0,r=n?gh(n):"";if(r)switch(r){case Vke:return bM;case Jke:return mM;case qke:return gM;case Gke:return yM;case zke:return vM}return t});var Qm=Fc,Wke=Object.prototype,Kke=Wke.hasOwnProperty;function Yke(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Kke.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Zke=Yke,Xke=Yx;function Qke(e,t){var n=t?Xke(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var eDe=Qke,tDe=/\w*$/;function nDe(e){var t=new e.constructor(e.source,tDe.exec(e));return t.lastIndex=e.lastIndex,t}var rDe=nDe,TM=ah,EM=TM?TM.prototype:void 0,AM=EM?EM.valueOf:void 0;function iDe(e){return AM?Object(AM.call(e)):{}}var aDe=iDe,oDe=Yx,sDe=eDe,lDe=rDe,uDe=aDe,cDe=lK,fDe="[object Boolean]",dDe="[object Date]",pDe="[object Map]",hDe="[object Number]",mDe="[object RegExp]",gDe="[object Set]",yDe="[object String]",vDe="[object Symbol]",bDe="[object ArrayBuffer]",TDe="[object DataView]",EDe="[object Float32Array]",ADe="[object Float64Array]",SDe="[object Int8Array]",wDe="[object Int16Array]",_De="[object Int32Array]",CDe="[object Uint8Array]",RDe="[object Uint8ClampedArray]",xDe="[object Uint16Array]",$De="[object Uint32Array]";function IDe(e,t,n){var r=e.constructor;switch(t){case bDe:return oDe(e);case fDe:case dDe:return new r(+e);case TDe:return sDe(e,n);case EDe:case ADe:case SDe:case wDe:case _De:case CDe:case RDe:case xDe:case $De:return cDe(e,n);case pDe:return new r;case hDe:case yDe:return new r(e);case mDe:return lDe(e);case gDe:return new r;case vDe:return uDe(e)}}var kDe=IDe,DDe=Qm,LDe=qo,ODe="[object Map]";function PDe(e){return LDe(e)&&DDe(e)==ODe}var MDe=PDe,BDe=MDe,NDe=Km,SM=t8,wM=SM&&SM.isMap,FDe=wM?NDe(wM):BDe,UDe=FDe,HDe=Qm,jDe=qo,VDe="[object Set]";function JDe(e){return jDe(e)&&HDe(e)==VDe}var qDe=JDe,GDe=qDe,zDe=Km,_M=t8,CM=_M&&_M.isSet,WDe=CM?zDe(CM):GDe,KDe=WDe,YDe=JT,ZDe=CIe,XDe=n8,QDe=jIe,eLe=GIe,tLe=oK,nLe=uK,rLe=ike,iLe=mke,aLe=CK,oLe=o8,sLe=Qm,lLe=Zke,uLe=kDe,cLe=fK,fLe=Ia,dLe=Wm,pLe=UDe,hLe=ta,mLe=KDe,gLe=Xm,yLe=Ym,vLe=1,bLe=2,TLe=4,$K="[object Arguments]",ELe="[object Array]",ALe="[object Boolean]",SLe="[object Date]",wLe="[object Error]",IK="[object Function]",_Le="[object GeneratorFunction]",CLe="[object Map]",RLe="[object Number]",kK="[object Object]",xLe="[object RegExp]",$Le="[object Set]",ILe="[object String]",kLe="[object Symbol]",DLe="[object WeakMap]",LLe="[object ArrayBuffer]",OLe="[object DataView]",PLe="[object Float32Array]",MLe="[object Float64Array]",BLe="[object Int8Array]",NLe="[object Int16Array]",FLe="[object Int32Array]",ULe="[object Uint8Array]",HLe="[object Uint8ClampedArray]",jLe="[object Uint16Array]",VLe="[object Uint32Array]",lr={};lr[$K]=lr[ELe]=lr[LLe]=lr[OLe]=lr[ALe]=lr[SLe]=lr[PLe]=lr[MLe]=lr[BLe]=lr[NLe]=lr[FLe]=lr[CLe]=lr[RLe]=lr[kK]=lr[xLe]=lr[$Le]=lr[ILe]=lr[kLe]=lr[ULe]=lr[HLe]=lr[jLe]=lr[VLe]=!0;lr[wLe]=lr[IK]=lr[DLe]=!1;function c3(e,t,n,r,i,a){var o,s=t&vLe,l=t&bLe,c=t&TLe;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!hLe(e))return e;var u=fLe(e);if(u){if(o=lLe(e),!s)return nLe(e,o)}else{var d=sLe(e),p=d==IK||d==_Le;if(dLe(e))return tLe(e,s);if(d==kK||d==$K||p&&!i){if(o=l||p?{}:cLe(e),!s)return l?iLe(e,eLe(o,e)):rLe(e,QDe(o,e))}else{if(!lr[d])return i?e:{};o=uLe(e,d,s)}}a||(a=new YDe);var m=a.get(e);if(m)return m;a.set(e,o),mLe(e)?e.forEach(function(_){o.add(c3(_,t,n,_,e,a))}):pLe(e)&&e.forEach(function(_,S){o.set(S,c3(_,t,n,S,e,a))});var y=c?l?oLe:aLe:l?yLe:gLe,b=u?void 0:y(e);return ZDe(b||e,function(_,S){b&&(S=_,_=e[S]),XDe(o,S,c3(_,t,n,S,e,a))}),o}var DK=c3;function JLe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var LK=JLe,qLe=jm,GLe=_z;function zLe(e,t){return t.length<2?e:qLe(e,GLe(t,0,-1))}var WLe=zLe,KLe=ch,YLe=LK,ZLe=WLe,XLe=fh;function QLe(e,t){return t=KLe(t,e),e=ZLe(e,t),e==null||delete e[XLe(YLe(t))]}var eOe=QLe,tOe=e8;function nOe(e){return tOe(e)?void 0:e}var rOe=nOe,RM=ah,iOe=zm,aOe=Ia,xM=RM?RM.isConcatSpreadable:void 0;function oOe(e){return aOe(e)||iOe(e)||!!(xM&&e&&e[xM])}var sOe=oOe,lOe=a8,uOe=sOe;function OK(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=uOe),i||(i=[]);++a<o;){var s=e[a];t>0&&n(s)?t>1?OK(s,t-1,n,r,i):lOe(i,s):r||(i[i.length]=s)}return i}var s8=OK,cOe=s8;function fOe(e){var t=e==null?0:e.length;return t?cOe(e,1):[]}var PK=fOe;const jvt=zt(PK);var dOe=PK,pOe=vK,hOe=bK;function mOe(e){return hOe(pOe(e,void 0,dOe),e+"")}var MK=mOe,gOe=uh,yOe=DK,vOe=eOe,bOe=ch,TOe=mh,EOe=rOe,AOe=MK,SOe=o8,wOe=1,_Oe=2,COe=4,ROe=AOe(function(e,t){var n={};if(e==null)return n;var r=!1;t=gOe(t,function(a){return a=bOe(a,e),r||(r=a.length>1),a}),TOe(e,SOe(e),n),r&&(n=yOe(n,wOe|_Oe|COe,EOe));for(var i=t.length;i--;)vOe(n,t[i]);return n}),xOe=ROe;const kp=zt(xOe);var $Oe=n8,IOe=ch,kOe=zT,$M=ta,DOe=fh;function LOe(e,t,n,r){if(!$M(e))return e;t=IOe(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=DOe(t[i]),c=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=$M(u)?u:kOe(t[i+1])?[]:{})}$Oe(s,l,c),s=s[l]}return e}var OOe=LOe,POe=jm,MOe=OOe,BOe=ch;function NOe(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=POe(e,o);n(s,o)&&MOe(a,BOe(o,e),s)}return a}var BK=NOe;function FOe(e,t){return e!=null&&t in Object(e)}var UOe=FOe,HOe=ch,jOe=zm,VOe=Ia,JOe=zT,qOe=Xx,GOe=fh;function zOe(e,t,n){t=HOe(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=GOe(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&qOe(i)&&JOe(o,i)&&(VOe(e)||jOe(e)))}var WOe=zOe,KOe=UOe,YOe=WOe;function ZOe(e,t){return e!=null&&YOe(e,t,KOe)}var NK=ZOe,XOe=BK,QOe=NK;function e9e(e,t){return XOe(e,t,function(n,r){return QOe(e,r)})}var t9e=e9e,n9e=t9e,r9e=MK,i9e=r9e(function(e,t){return e==null?{}:n9e(e,t)}),l8=i9e;const KT=zt(l8);var a9e=DK,o9e=1,s9e=4;function l9e(e){return a9e(e,o9e|s9e)}var u9e=l9e;const lp=zt(u9e);function c9e(e){return e===void 0}var f9e=c9e;const Ki=zt(f9e);var d9e=r8,IM=ta;function FK(e,t,n,r,i,a){return IM(e)&&IM(t)&&(a.set(t,e),d9e(e,t,void 0,FK,a),a.delete(t)),e}var p9e=FK,h9e=r8,m9e=EK,g9e=m9e(function(e,t,n,r){h9e(e,t,n,r)}),y9e=g9e,v9e=yK,b9e=Zm,T9e=p9e,E9e=y9e,A9e=b9e(function(e){return e.push(void 0,T9e),v9e(E9e,void 0,e)}),S9e=A9e;const w9e=zt(S9e);var UK={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function a(l,c,u,d,p){if(typeof u!="function")throw new TypeError("The listener must be a function");var m=new i(u,d||l,p),y=n?n+c:c;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],m]:l._events[y].push(m):(l._events[y]=m,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,m=d.length,y=new Array(m);p<m;p++)y[p]=d[p].fn;return y},s.prototype.listenerCount=function(c){var u=n?n+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,p,m,y){var b=n?n+c:c;if(!this._events[b])return!1;var _=this._events[b],S=arguments.length,$,D;if(_.fn){switch(_.once&&this.removeListener(c,_.fn,void 0,!0),S){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,u),!0;case 3:return _.fn.call(_.context,u,d),!0;case 4:return _.fn.call(_.context,u,d,p),!0;case 5:return _.fn.call(_.context,u,d,p,m),!0;case 6:return _.fn.call(_.context,u,d,p,m,y),!0}for(D=1,$=new Array(S-1);D<S;D++)$[D-1]=arguments[D];_.fn.apply(_.context,$)}else{var P=_.length,U;for(D=0;D<P;D++)switch(_[D].once&&this.removeListener(c,_[D].fn,void 0,!0),S){case 1:_[D].fn.call(_[D].context);break;case 2:_[D].fn.call(_[D].context,u);break;case 3:_[D].fn.call(_[D].context,u,d);break;case 4:_[D].fn.call(_[D].context,u,d,p);break;default:if(!$)for(U=1,$=new Array(S-1);U<S;U++)$[U-1]=arguments[U];_[D].fn.apply(_[D].context,$)}}return!0},s.prototype.on=function(c,u,d){return a(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return a(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,p){var m=n?n+c:c;if(!this._events[m])return this;if(!u)return o(this,m),this;var y=this._events[m];if(y.fn)y.fn===u&&(!p||y.once)&&(!d||y.context===d)&&o(this,m);else{for(var b=0,_=[],S=y.length;b<S;b++)(y[b].fn!==u||p&&!y[b].once||d&&y[b].context!==d)&&_.push(y[b]);_.length?this._events[m]=_.length===1?_[0]:_:o(this,m)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&o(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(UK);var _9e=UK.exports;const C9e=zt(_9e);var u8={exports:{}},YT={exports:{}};class HK extends Error{constructor(t){super(t),this.name="TimeoutError"}}const jK=(e,t,n,r)=>{let i;const a=new Promise((o,s)=>{if(typeof t!="number"||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(t===1/0){o(e);return}r={customTimers:{setTimeout,clearTimeout},...r},i=r.customTimers.setTimeout.call(void 0,()=>{if(typeof n=="function"){try{o(n())}catch(u){s(u)}return}const l=typeof n=="string"?n:`Promise timed out after ${t} milliseconds`,c=n instanceof Error?n:new HK(l);typeof e.cancel=="function"&&e.cancel(),s(c)},t),(async()=>{try{o(await e)}catch(l){s(l)}finally{r.customTimers.clearTimeout.call(void 0,i)}})()});return a.clear=()=>{clearTimeout(i),i=void 0},a};YT.exports=jK;YT.exports.default=jK;var Vvt=YT.exports.TimeoutError=HK,c8=YT.exports;const Jvt=zt(c8),R9e=c8,VK=async(e,t)=>{t={interval:20,timeout:1/0,leadingCheck:!0,...t};let n;const r=new Promise((i,a)=>{const o=async()=>{try{const s=await e();if(typeof s!="boolean")throw new TypeError("Expected condition to return a boolean");s===!0?i():n=setTimeout(o,t.interval)}catch(s){a(s)}};t.leadingCheck?o():n=setTimeout(o,t.interval)});if(t.timeout!==1/0)try{return await R9e(r,t.timeout)}catch(i){throw n&&clearTimeout(n),i}return r};u8.exports=VK;u8.exports.default=VK;var x9e=u8.exports;const $9e=zt(x9e);var I9e=function(e){return function(t,n){var r=Z.useRef(!1);e(function(){return function(){r.current=!1}},[]),e(function(){if(!r.current)r.current=!0;else return t()},n)}},mC=function(e,t){return mC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},mC(e,t)};function JK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");mC(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Va=function(){return Va=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Va.apply(this,arguments)};function ZT(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function qK(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function GK(e,t){return function(n,r){t(n,r,e)}}function k9e(e,t,n,r,i,a){function o(S){if(S!==void 0&&typeof S!="function")throw new TypeError("Function expected");return S}for(var s=r.kind,l=s==="getter"?"get":s==="setter"?"set":"value",c=!t&&e?r.static?e:e.prototype:null,u=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d,p=!1,m=n.length-1;m>=0;m--){var y={};for(var b in r)y[b]=b==="access"?{}:r[b];for(var b in r.access)y.access[b]=r.access[b];y.addInitializer=function(S){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(S||null))};var _=(0,n[m])(s==="accessor"?{get:u.get,set:u.set}:u[l],y);if(s==="accessor"){if(_===void 0)continue;if(_===null||typeof _!="object")throw new TypeError("Object expected");(d=o(_.get))&&(u.get=d),(d=o(_.set))&&(u.set=d),(d=o(_.init))&&i.unshift(d)}else(d=o(_))&&(s==="field"?i.unshift(d):u[l]=d)}c&&Object.defineProperty(c,r.name,u),p=!0}function D9e(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function L9e(e){return typeof e=="symbol"?e:"".concat(e)}function O9e(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function zK(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function XT(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{c(r.next(u))}catch(d){o(d)}}function l(u){try{c(r.throw(u))}catch(d){o(d)}}function c(u){u.done?a(u.value):i(u.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}function QT(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(u){return l([c,u])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var eE=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function WK(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&eE(t,e,n)}function D2(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function KK(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(xr(arguments[t]));return e}function YK(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function ci(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Dp(e){return this instanceof Dp?(this.v=e,this):new Dp(e)}function ZK(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,a=[];return i={},s("next"),s("throw"),s("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(m){return function(y){return Promise.resolve(y).then(m,d)}}function s(m,y){r[m]&&(i[m]=function(b){return new Promise(function(_,S){a.push([m,b,_,S])>1||l(m,b)})},y&&(i[m]=y(i[m])))}function l(m,y){try{c(r[m](y))}catch(b){p(a[0][3],b)}}function c(m){m.value instanceof Dp?Promise.resolve(m.value.v).then(u,d):p(a[0][2],m)}function u(m){l("next",m)}function d(m){l("throw",m)}function p(m,y){m(y),a.shift(),a.length&&l(a[0][0],a[0][1])}}function XK(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(o){return(n=!n)?{value:Dp(e[i](o)),done:!1}:a?a(o):o}:a}}function QK(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof D2=="function"?D2(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(s,l){o=e[a](o),i(s,l,o.done,o.value)})}}function i(a,o,s,l){Promise.resolve(l).then(function(c){a({value:c,done:s})},o)}}function eY(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var P9e=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function tY(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&eE(t,e,n);return P9e(t,e),t}function nY(e){return e&&e.__esModule?e:{default:e}}function rY(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function iY(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function aY(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function oY(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var M9e=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function sY(e){function t(r){e.error=e.hasError?new M9e(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}const B9e={__extends:JK,__assign:Va,__rest:ZT,__decorate:qK,__param:GK,__metadata:zK,__awaiter:XT,__generator:QT,__createBinding:eE,__exportStar:WK,__values:D2,__read:xr,__spread:KK,__spreadArrays:YK,__spreadArray:ci,__await:Dp,__asyncGenerator:ZK,__asyncDelegator:XK,__asyncValues:QK,__makeTemplateObject:eY,__importStar:tY,__importDefault:nY,__classPrivateFieldGet:rY,__classPrivateFieldSet:iY,__classPrivateFieldIn:aY,__addDisposableResource:oY,__disposeResources:sY},qvt=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:oY,get __assign(){return Va},__asyncDelegator:XK,__asyncGenerator:ZK,__asyncValues:QK,__await:Dp,__awaiter:XT,__classPrivateFieldGet:rY,__classPrivateFieldIn:aY,__classPrivateFieldSet:iY,__createBinding:eE,__decorate:qK,__disposeResources:sY,__esDecorate:k9e,__exportStar:WK,__extends:JK,__generator:QT,__importDefault:nY,__importStar:tY,__makeTemplateObject:eY,__metadata:zK,__param:GK,__propKey:L9e,__read:xr,__rest:ZT,__runInitializers:D9e,__setFunctionName:O9e,__spread:KK,__spreadArray:ci,__spreadArrays:YK,__values:D2,default:B9e},Symbol.toStringTag,{value:"Module"}));var tm=function(e){return typeof e=="function"},Gvt=function(e){return typeof e=="string"},N9e=function(e){return typeof e=="number"},F9e=function(e){return typeof e>"u"};function Tt(e){var t=Z.useRef(e);t.current=Z.useMemo(function(){return e},[e]);var n=Z.useRef();return n.current||(n.current=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.current.apply(this,r)}),n.current}const Sf=I9e(Z.useEffect);var lY=function(e,t){var n=t.manual,r=t.ready,i=r===void 0?!0:r,a=t.defaultParams,o=a===void 0?[]:a,s=t.refreshDeps,l=s===void 0?[]:s,c=t.refreshDepsAction,u=Z.useRef(!1);return u.current=!1,Sf(function(){!n&&i&&(u.current=!0,e.run.apply(e,ci([],xr(o),!1)))},[i]),Sf(function(){u.current||n||(u.current=!0,c?c():e.refresh())},ci([],xr(l),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};lY.onInit=function(e){var t=e.ready,n=t===void 0?!0:t,r=e.manual;return{loading:!r&&n}};const U9e=lY;function gC(e,t){if(e===t)return!0;for(var n=0;n<e.length;n++)if(!Object.is(e[n],t[n]))return!1;return!0}function Xt(e,t){var n=Z.useRef({deps:t,obj:void 0,initialized:!1}).current;return(n.initialized===!1||!gC(n.deps,t))&&(n.deps=t,n.obj=e(),n.initialized=!0),n.obj}function Lp(e){var t=Z.useRef(e);return t.current=e,t}var yh=function(e){var t=Lp(e);Z.useEffect(function(){return function(){t.current()}},[])},f3=new Map,H9e=function(e,t,n){var r=f3.get(e);r!=null&&r.timer&&clearTimeout(r.timer);var i=void 0;t>-1&&(i=setTimeout(function(){f3.delete(e)},t)),f3.set(e,Va(Va({},n),{timer:i}))},j9e=function(e){return f3.get(e)},d3=new Map,V9e=function(e){return d3.get(e)},J9e=function(e,t){d3.set(e,t),t.then(function(n){return d3.delete(e),n}).catch(function(){d3.delete(e)})},Hc={},q9e=function(e,t){Hc[e]&&Hc[e].forEach(function(n){return n(t)})},Tw=function(e,t){return Hc[e]||(Hc[e]=[]),Hc[e].push(t),function(){var r=Hc[e].indexOf(t);Hc[e].splice(r,1)}},G9e=function(e,t){var n=t.cacheKey,r=t.cacheTime,i=r===void 0?5*60*1e3:r,a=t.staleTime,o=a===void 0?0:a,s=t.setCache,l=t.getCache,c=Z.useRef(),u=Z.useRef(),d=function(m,y){s?s(y):H9e(m,i,y),q9e(m,y.data)},p=function(m,y){return y===void 0&&(y=[]),l?l(y):j9e(m)};return Xt(function(){if(n){var m=p(n);m&&Object.hasOwnProperty.call(m,"data")&&(e.state.data=m.data,e.state.params=m.params,(o===-1||new Date().getTime()-m.time<=o)&&(e.state.loading=!1)),c.current=Tw(n,function(y){e.setState({data:y})})}},[]),yh(function(){var m;(m=c.current)===null||m===void 0||m.call(c)}),n?{onBefore:function(m){var y=p(n,m);return!y||!Object.hasOwnProperty.call(y,"data")?{}:o===-1||new Date().getTime()-y.time<=o?{loading:!1,data:y==null?void 0:y.data,error:void 0,returnNow:!0}:{data:y==null?void 0:y.data,error:void 0}},onRequest:function(m,y){var b=V9e(n);return b&&b!==u.current?{servicePromise:b}:(b=m.apply(void 0,ci([],xr(y),!1)),u.current=b,J9e(n,b),{servicePromise:b})},onSuccess:function(m,y){var b;n&&((b=c.current)===null||b===void 0||b.call(c),d(n,{data:m,params:y,time:new Date().getTime()}),c.current=Tw(n,function(_){e.setState({data:_})}))},onMutate:function(m){var y;n&&((y=c.current)===null||y===void 0||y.call(c),d(n,{data:m,params:e.state.params,time:new Date().getTime()}),c.current=Tw(n,function(b){e.setState({data:b})}))}}:{}};const z9e=G9e;var W9e=Ss,K9e=function(){return W9e.Date.now()},Y9e=K9e,Z9e=ta,Ew=Y9e,kM=Hz,X9e="Expected a function",Q9e=Math.max,ePe=Math.min;function tPe(e,t,n){var r,i,a,o,s,l,c=0,u=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(X9e);t=kM(t)||0,Z9e(n)&&(u=!!n.leading,d="maxWait"in n,a=d?Q9e(kM(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p);function m(L){var F=r,G=i;return r=i=void 0,c=L,o=e.apply(G,F),o}function y(L){return c=L,s=setTimeout(S,t),u?m(L):o}function b(L){var F=L-l,G=L-c,ie=t-F;return d?ePe(ie,a-G):ie}function _(L){var F=L-l,G=L-c;return l===void 0||F>=t||F<0||d&&G>=a}function S(){var L=Ew();if(_(L))return $(L);s=setTimeout(S,b(L))}function $(L){return s=void 0,p&&r?m(L):(r=i=void 0,o)}function D(){s!==void 0&&clearTimeout(s),c=0,r=l=i=s=void 0}function P(){return s===void 0?o:$(Ew())}function U(){var L=Ew(),F=_(L);if(r=arguments,i=this,l=L,F){if(s===void 0)return y(l);if(d)return clearTimeout(s),s=setTimeout(S,t),m(l)}return s===void 0&&(s=setTimeout(S,t)),o}return U.cancel=D,U.flush=P,U}var uY=tPe;const cY=zt(uY);var nPe=function(e,t){var n=t.debounceWait,r=t.debounceLeading,i=t.debounceTrailing,a=t.debounceMaxWait,o=Z.useRef(),s=Z.useMemo(function(){var l={};return r!==void 0&&(l.leading=r),i!==void 0&&(l.trailing=i),a!==void 0&&(l.maxWait=a),l},[r,i,a]);return Z.useEffect(function(){if(n){var l=e.runAsync.bind(e);return o.current=cY(function(c){c()},n,s),e.runAsync=function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];return new Promise(function(d,p){var m;(m=o.current)===null||m===void 0||m.call(o,function(){l.apply(void 0,ci([],xr(c),!1)).then(d).catch(p)})})},function(){var c;(c=o.current)===null||c===void 0||c.cancel(),e.runAsync=l}}},[n,s]),n?{onCancel:function(){var l;(l=o.current)===null||l===void 0||l.cancel()}}:{}};const rPe=nPe;var iPe=function(e,t){var n=t.loadingDelay,r=t.ready,i=Z.useRef();if(!n)return{};var a=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return a(),r!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},n)),{loading:!1}},onFinally:function(){a()},onCancel:function(){a()}}};const aPe=iPe;var Ff=!!(typeof window<"u"&&window.document&&window.document.createElement);function f8(){return Ff?document.visibilityState!=="hidden":!0}var f1=[];function oPe(e){return f1.push(e),function(){var n=f1.indexOf(e);f1.splice(n,1)}}if(Ff){var sPe=function(){if(f8())for(var e=0;e<f1.length;e++){var t=f1[e];t()}};window.addEventListener("visibilitychange",sPe,!1)}var lPe=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,i=r===void 0?!0:r,a=t.pollingErrorRetryCount,o=a===void 0?-1:a,s=Z.useRef(),l=Z.useRef(),c=Z.useRef(0),u=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l)};return Sf(function(){n||u()},[n]),n?{onBefore:function(){u()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){o===-1||o!==-1&&c.current<=o?s.current=setTimeout(function(){!i&&!f8()?l.current=oPe(function(){e.refresh()}):e.refresh()},n):c.current=0},onCancel:function(){u()}}:{}};const uPe=lPe;function cPe(e,t){var n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n||(n=!0,e.apply(void 0,ci([],xr(r),!1)),setTimeout(function(){n=!1},t))}}function fPe(){return Ff&&typeof navigator.onLine<"u"?navigator.onLine:!0}var d1=[];function dPe(e){return d1.push(e),function(){var n=d1.indexOf(e);n>-1&&d1.splice(n,1)}}if(Ff){var DM=function(){if(!(!f8()||!fPe()))for(var e=0;e<d1.length;e++){var t=d1[e];t()}};window.addEventListener("visibilitychange",DM,!1),window.addEventListener("focus",DM,!1)}var pPe=function(e,t){var n=t.refreshOnWindowFocus,r=t.focusTimespan,i=r===void 0?5e3:r,a=Z.useRef(),o=function(){var s;(s=a.current)===null||s===void 0||s.call(a)};return Z.useEffect(function(){if(n){var s=cPe(e.refresh.bind(e),i);a.current=dPe(function(){s()})}return function(){o()}},[n,i]),yh(function(){o()}),{}};const hPe=pPe;var mPe=function(e,t){var n=t.retryInterval,r=t.retryCount,i=Z.useRef(),a=Z.useRef(0),o=Z.useRef(!1);return r?{onBefore:function(){o.current||(a.current=0),o.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,r===-1||a.current<=r){var s=n??Math.min(1e3*Math.pow(2,a.current),3e4);i.current=setTimeout(function(){o.current=!0,e.refresh()},s)}else a.current=0},onCancel:function(){a.current=0,i.current&&clearTimeout(i.current)}}:{}};const gPe=mPe;var yPe=uY,vPe=ta,bPe="Expected a function";function TPe(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(bPe);return vPe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),yPe(e,t,{leading:r,maxWait:t,trailing:i})}var EPe=TPe;const APe=zt(EPe);var SPe=function(e,t){var n=t.throttleWait,r=t.throttleLeading,i=t.throttleTrailing,a=Z.useRef(),o={};return r!==void 0&&(o.leading=r),i!==void 0&&(o.trailing=i),Z.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=APe(function(l){l()},n,o),e.runAsync=function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new Promise(function(u,d){var p;(p=a.current)===null||p===void 0||p.call(a,function(){s.apply(void 0,ci([],xr(l),!1)).then(u).catch(d)})})},function(){var l;e.runAsync=s,(l=a.current)===null||l===void 0||l.cancel()}}},[n,r,i]),n?{onCancel:function(){var s;(s=a.current)===null||s===void 0||s.cancel()}}:{}};const wPe=SPe;var eg=function(e){Z.useEffect(function(){e==null||e()},[])},fY=function(){var e=xr(Z.useState({}),2),t=e[1];return Z.useCallback(function(){return t({})},[])},_Pe=function(){function e(t,n,r,i){i===void 0&&(i={}),this.serviceRef=t,this.options=n,this.subscribe=r,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Va(Va(Va({},this.state),{loading:!n.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Va(Va({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.pluginImpls.map(function(a){var o;return(o=a[t])===null||o===void 0?void 0:o.call.apply(o,ci([a],xr(n),!1))}).filter(Boolean);return Object.assign.apply(Object,ci([{}],xr(i),!1))},e.prototype.runAsync=function(){for(var t,n,r,i,a,o,s,l,c,u,d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];return XT(this,void 0,void 0,function(){var m,y,b,_,S,$,D,P,U,L,F;return QT(this,function(G){switch(G.label){case 0:if(this.count+=1,m=this.count,y=this.runPluginHandler("onBefore",d),b=y.stopNow,_=b===void 0?!1:b,S=y.returnNow,$=S===void 0?!1:S,D=ZT(y,["stopNow","returnNow"]),_)return[2,new Promise(function(){})];if(this.setState(Va({loading:!0,params:d},D)),$)return[2,Promise.resolve(D.data)];(n=(t=this.options).onBefore)===null||n===void 0||n.call(t,d),G.label=1;case 1:return G.trys.push([1,3,,4]),P=this.runPluginHandler("onRequest",this.serviceRef.current,d).servicePromise,P||(P=(F=this.serviceRef).current.apply(F,ci([],xr(d),!1))),[4,P];case 2:return U=G.sent(),m!==this.count?[2,new Promise(function(){})]:(this.setState({data:U,error:void 0,loading:!1}),(i=(r=this.options).onSuccess)===null||i===void 0||i.call(r,U,d),this.runPluginHandler("onSuccess",U,d),(o=(a=this.options).onFinally)===null||o===void 0||o.call(a,d,U,void 0),m===this.count&&this.runPluginHandler("onFinally",d,U,void 0),[2,U]);case 3:if(L=G.sent(),m!==this.count)return[2,new Promise(function(){})];throw this.setState({error:L,loading:!1}),(l=(s=this.options).onError)===null||l===void 0||l.call(s,L,d),this.runPluginHandler("onError",L,d),(u=(c=this.options).onFinally)===null||u===void 0||u.call(c,d,void 0,L),m===this.count&&this.runPluginHandler("onFinally",d,void 0,L),L;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];this.runAsync.apply(this,ci([],xr(n),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,ci([],xr(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,ci([],xr(this.state.params||[]),!1))},e.prototype.mutate=function(t){var n=tm(t)?t(this.state.data):t;this.runPluginHandler("onMutate",n),this.setState({data:n})},e}();const CPe=_Pe;function RPe(e,t,n){t===void 0&&(t={}),n===void 0&&(n=[]);var r=t.manual,i=r===void 0?!1:r,a=ZT(t,["manual"]),o=Va({manual:i},a),s=Lp(e),l=fY(),c=Xt(function(){var u=n.map(function(d){var p;return(p=d==null?void 0:d.onInit)===null||p===void 0?void 0:p.call(d,o)}).filter(Boolean);return new CPe(s,o,l,Object.assign.apply(Object,ci([{}],xr(u),!1)))},[]);return c.options=o,c.pluginImpls=n.map(function(u){return u(c,o)}),eg(function(){if(!i){var u=c.state.params||t.defaultParams||[];c.run.apply(c,ci([],xr(u),!1))}}),yh(function(){c.cancel()}),{loading:c.state.loading,data:c.state.data,error:c.state.error,params:c.state.params||[],cancel:Tt(c.cancel.bind(c)),refresh:Tt(c.refresh.bind(c)),refreshAsync:Tt(c.refreshAsync.bind(c)),run:Tt(c.run.bind(c)),runAsync:Tt(c.runAsync.bind(c)),mutate:Tt(c.mutate.bind(c))}}function xPe(e,t,n){return RPe(e,t,ci(ci([],xr(n||[]),!1),[rPe,aPe,uPe,hPe,wPe,U9e,z9e,gPe],!1))}function $Pe(e){return tm(e[Symbol.asyncIterator])}function dY(e,t){Z.useEffect(function(){var n=e(),r=!1;function i(){return XT(this,void 0,void 0,function(){var a;return QT(this,function(o){switch(o.label){case 0:if(!$Pe(n))return[3,4];o.label=1;case 1:return[4,n.next()];case 2:return a=o.sent(),a.done||r?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,n];case 5:o.sent(),o.label=6;case 6:return[2]}})})}return i(),function(){r=!0}},t)}function L2(e,t){if(Ff){if(!e)return t;var n;return tm(e)?n=e():"current"in e?n=e.current:n=e,n}}var pY=function(e){var t=function(n,r,i){var a=Z.useRef(!1),o=Z.useRef([]),s=Z.useRef([]),l=Z.useRef();e(function(){var c,u=Array.isArray(i)?i:[i],d=u.map(function(p){return L2(p)});if(!a.current){a.current=!0,o.current=d,s.current=r,l.current=n();return}(d.length!==o.current.length||!gC(o.current,d)||!gC(s.current,r))&&((c=l.current)===null||c===void 0||c.call(l),o.current=d,s.current=r,l.current=n())}),yh(function(){var c;(c=l.current)===null||c===void 0||c.call(l),a.current=!1})};return t},IPe=pY(Z.useEffect);const hY=IPe;function kPe(){var e=(typeof xo>"u"?"undefined":typeof xo)=="object"&&xo&&xo.Object===Object&&xo,t=typeof self=="object"&&self&&self.Object===Object&&self;return e||t}kPe()||(xo.Date=Date);function DPe(e,t){var n,r=Lp(e),i=(n=t==null?void 0:t.wait)!==null&&n!==void 0?n:1e3,a=Z.useMemo(function(){return cY(function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return r.current.apply(r,ci([],xr(o),!1))},i,t)},[]);return yh(function(){a.cancel()}),{run:a,cancel:a.cancel,flush:a.flush}}function LPe(e,t){var n=xr(Z.useState(e),2),r=n[0],i=n[1],a=DPe(function(){i(e)},t).run;return Z.useEffect(function(){a()},[e]),r}function LM(e,t,n){n===void 0&&(n={});var r=n.enable,i=r===void 0?!0:r,a=Lp(t);hY(function(){if(i){var o=L2(n.target,window);if(o!=null&&o.addEventListener){var s=function(l){return a.current(l)};return o.addEventListener(e,s,{capture:n.capture,once:n.once,passive:n.passive}),function(){o.removeEventListener(e,s,{capture:n.capture})}}}},[e,n.capture,n.once,n.passive,i],n.target)}var OPe=function(e,t,n){n===void 0&&(n={});var r=Tt(e),i=Z.useRef(null),a=Z.useCallback(function(){i.current&&clearInterval(i.current)},[]);return Z.useEffect(function(){if(!(!N9e(t)||t<0))return n.immediate&&r(),i.current=setInterval(r,t),a},[t,n.immediate]),a},OM="AHOOKS_SYNC_STORAGE_EVENT_NAME";function PPe(e){function t(n,r){r===void 0&&(r={});var i,a=r.listenStorageChange,o=a===void 0?!1:a,s=r.onError,l=s===void 0?function($){console.error($)}:s;try{i=e()}catch($){l($)}var c=function($){return r.serializer?r.serializer($):JSON.stringify($)},u=function($){return r.deserializer?r.deserializer($):JSON.parse($)};function d(){try{var $=i==null?void 0:i.getItem(n);if($)return u($)}catch(D){l(D)}return tm(r.defaultValue)?r.defaultValue():r.defaultValue}var p=xr(Z.useState(d),2),m=p[0],y=p[1];Sf(function(){y(d())},[n]);var b=function($){var D=tm($)?$(m):$;o||y(D);try{var P=void 0,U=i==null?void 0:i.getItem(n);F9e(D)?(P=null,i==null||i.removeItem(n)):(P=c(D),i==null||i.setItem(n,P)),dispatchEvent(new CustomEvent(OM,{detail:{key:n,newValue:P,oldValue:U,storageArea:i}}))}catch(L){l(L)}},_=function($){$.key!==n||$.storageArea!==i||y(d())},S=function($){_($.detail)};return LM("storage",_,{enable:o}),LM(OM,S,{enable:o}),[m,Tt(b)]}return t}var MPe=PPe(function(){return Ff?localStorage:void 0});const yC=MPe;function BPe(e){var t=Z.useRef(0),n=xr(Z.useState(e),2),r=n[0],i=n[1],a=Z.useCallback(function(o){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(o)})},[]);return yh(function(){cancelAnimationFrame(t.current)}),[r,a]}var NPe=function(e,t){return!Object.is(e,t)};function mY(e,t){t===void 0&&(t=NPe);var n=Z.useRef(),r=Z.useRef();return t(r.current,e)&&(n.current=r.current,r.current=e),n.current}var PM=new WeakMap,MM=new WeakMap;function gY(e,t){var n=PM.get(e);if(n)return n;if(MM.has(e))return e;var r=new Proxy(e,{get:function(i,a,o){var s=Reflect.get(i,a,o),l=Reflect.getOwnPropertyDescriptor(i,a);return!(l!=null&&l.configurable)&&!(l!=null&&l.writable)?s:n8e(s)||Array.isArray(s)?gY(s,t):s},set:function(i,a,o){var s=Reflect.set(i,a,o);return t(),s},deleteProperty:function(i,a){var o=Reflect.deleteProperty(i,a);return t(),o}});return PM.set(e,r),MM.set(r,e),r}function Si(e){var t=fY(),n=Z.useRef(e),r=Xt(function(){return gY(n.current,function(){t()})},[]);return r}var yY=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var o=a[i];n.call(r,o[1],o[0])}},t}()}(),vC=typeof window<"u"&&typeof document<"u"&&window.document===document,O2=function(){return typeof xo<"u"&&xo.Math===Math?xo:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),FPe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(O2):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),UPe=2;function HPe(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&s()}function o(){FPe(a)}function s(){var l=Date.now();if(n){if(l-i<UPe)return;r=!0}else n=!0,r=!1,setTimeout(o,t);i=l}return s}var jPe=20,VPe=["top","right","bottom","left","width","height","size","weight"],JPe=typeof MutationObserver<"u",qPe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=HPe(this.refresh.bind(this),jPe)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!vC||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),JPe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!vC||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=VPe.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),vY=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},Op=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||O2},bY=tE(0,0,0,0);function P2(e){return parseFloat(e)||0}function BM(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+P2(a)},0)}function GPe(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e["padding-"+a];n[a]=P2(o)}return n}function zPe(e){var t=e.getBBox();return tE(0,0,t.width,t.height)}function WPe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return bY;var r=Op(e).getComputedStyle(e),i=GPe(r),a=i.left+i.right,o=i.top+i.bottom,s=P2(r.width),l=P2(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=BM(r,"left","right")+a),Math.round(l+o)!==n&&(l-=BM(r,"top","bottom")+o)),!YPe(e)){var c=Math.round(s+a)-t,u=Math.round(l+o)-n;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return tE(i.left,i.top,s,l)}var KPe=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Op(e).SVGGraphicsElement}:function(e){return e instanceof Op(e).SVGElement&&typeof e.getBBox=="function"}}();function YPe(e){return e===Op(e).document.documentElement}function ZPe(e){return vC?KPe(e)?zPe(e):WPe(e):bY}function XPe(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return vY(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function tE(e,t,n,r){return{x:e,y:t,width:n,height:r}}var QPe=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=tE(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=ZPe(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),eMe=function(){function e(t,n){var r=XPe(n);vY(this,{target:t,contentRect:r})}return e}(),tMe=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new yY,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Op(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new QPe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Op(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new eMe(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),TY=typeof WeakMap<"u"?new WeakMap:new yY,EY=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=qPe.getInstance(),r=new tMe(t,n,this);TY.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){EY.prototype[e]=function(){var t;return(t=TY.get(this))[e].apply(t,arguments)}});var nMe=function(){return typeof O2.ResizeObserver<"u"?O2.ResizeObserver:EY}(),rMe=pY(Z.useLayoutEffect),iMe=Ff?rMe:hY;function tg(e){var t=xr(BPe(function(){var i=L2(e);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),n=t[0],r=t[1];return iMe(function(){var i=L2(e);if(i){var a=new nMe(function(o){o.forEach(function(s){var l=s.target,c=l.clientWidth,u=l.clientHeight;r({width:c,height:u})})});return a.observe(i),function(){a.disconnect()}}},[],e),n}const aMe=/[^\0-\x7E]/,oMe=/[\x2E\u3002\uFF0E\uFF61]/g,sMe={overflow:"Overflow Error","not-basic":"Illegal Input","invalid-input":"Invalid Input"},qd=Math.floor,Aw=String.fromCharCode;function NM(e){throw new RangeError(sMe[e])}const FM=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},lMe=function(e,t,n){let r=0;for(e=n?qd(e/700):e>>1,e+=qd(e/t);e>455;r+=36)e=qd(e/35);return qd(r+36*e/(e+38))};function uMe(e){return function(t,n){const r=t.split("@");let i="";r.length>1&&(i=r[0]+"@",t=r[1]);const a=function(o,s){const l=[];let c=o.length;for(;c--;)l[c]=s(o[c]);return l}((t=t.replace(oMe,".")).split("."),n).join(".");return i+a}(e,function(t){return aMe.test(t)?"xn--"+function(n){const r=[],i=(n=function(u){const d=[];let p=0;const m=u.length;for(;p<m;){const y=u.charCodeAt(p++);if(y>=55296&&y<=56319&&p<m){const b=u.charCodeAt(p++);(64512&b)==56320?d.push(((1023&y)<<10)+(1023&b)+65536):(d.push(y),p--)}else d.push(y)}return d}(n)).length;let a=128,o=0,s=72;for(const u of n)u<128&&r.push(Aw(u));const l=r.length;let c=l;for(l&&r.push("-");c<i;){let u=2147483647;for(const p of n)p>=a&&p<u&&(u=p);const d=c+1;u-a>qd((2147483647-o)/d)&&NM("overflow"),o+=(u-a)*d,a=u;for(const p of n)if(p<a&&++o>2147483647&&NM("overflow"),p==a){let m=o;for(let y=36;;y+=36){const b=y<=s?1:y>=s+26?26:y-s;if(m<b)break;const _=m-b,S=36-b;r.push(Aw(FM(b+_%S,0))),m=qd(_/S)}r.push(Aw(FM(m,0))),s=lMe(o,d,c==l),o=0,++c}++o,++a}return r.join("")}(t):t})}const AY=/#/g,SY=/&/g,wY=/\//g,cMe=/=/g,fMe=/\?/g,nE=/\+/g,_Y=/%5e/gi,dMe=/%60/gi,pMe=/%7b/gi,hMe=/%7c/gi,mMe=/%7d/gi,gMe=/%20/gi,yMe=/%2f/gi,vMe=/%252f/gi;function rE(e){return encodeURI(""+e).replace(hMe,"|")}function iE(e){return rE(e).replace(pMe,"{").replace(mMe,"}").replace(_Y,"^")}function M2(e){return rE(typeof e=="string"?e:JSON.stringify(e)).replace(nE,"%2B").replace(gMe,"+").replace(AY,"%23").replace(SY,"%26").replace(dMe,"`").replace(_Y,"^").replace(wY,"%2F")}function p3(e){return M2(e).replace(cMe,"%3D")}function aE(e){return rE(e).replace(AY,"%23").replace(fMe,"%3F").replace(vMe,"%2F").replace(SY,"%26").replace(nE,"%2B")}function bMe(e){return aE(e).replace(wY,"%2F")}function Mi(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function d8(e){return Mi(e.replace(yMe,"%252F"))}function CY(e){return Mi(e.replace(nE," "))}function RY(e){return Mi(e.replace(nE," "))}function B2(e=""){return uMe(e)}function wf(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=CY(r[1]);if(i==="__proto__"||i==="constructor")continue;const a=RY(r[2]||"");t[i]===void 0?t[i]=a:Array.isArray(t[i])?t[i].push(a):t[i]=[t[i],a]}return t}function xY(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${p3(e)}=${M2(n)}`).join("&"):`${p3(e)}=${M2(t)}`:p3(e)}function ng(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>xY(t,e[t])).filter(Boolean).join("&")}const TMe=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,$Y=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,EMe=/^([/\\]\s*){2,}[^/\\]/,AMe=/^[\s\0]*(blob|data|javascript|vbscript):$/i,SMe=/\/$|\/\?|\/#/,wMe=/^\.?\//;function _Me(e){return["./","../"].some(t=>e.startsWith(t))}function oE(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?TMe.test(e):$Y.test(e)||(t.acceptRelative?EMe.test(e):!1)}function CMe(e){return!!e&&AMe.test(e)}function N2(e="",t){return t?SMe.test(e):e.endsWith("/")}function nm(e="",t){if(!t)return(N2(e)?e.slice(0,-1):e)||"/";if(!N2(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");i>=0&&(n=e.slice(0,i),r=e.slice(i));const[a,...o]=n.split("?");return((a.endsWith("/")?a.slice(0,-1):a)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function Pp(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(N2(e,!0))return e||"/";let n=e,r="";const i=e.indexOf("#");if(i>=0&&(n=e.slice(0,i),r=e.slice(i),!n))return r;const[a,...o]=n.split("?");return a+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function p8(e=""){return e.startsWith("/")}function h8(e=""){return(p8(e)?e.slice(1):e)||"/"}function bC(e=""){return p8(e)?e:"/"+e}function RMe(e=""){return e.split("://").map(t=>t.replace(/\/{2,}/g,"/")).join("://")}function xMe(e,t){if(m8(t)||oE(e))return e;const n=nm(t);return e.startsWith(n)?e:Cn(n,e)}function $Me(e,t){if(m8(t))return e;const n=nm(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Mp(e,t){const n=jo(e),r={...wf(n.search),...t};return n.search=ng(r),vh(n)}function IMe(e){return wf(jo(e).search)}function m8(e){return!e||e==="/"}function g8(e){return e&&e!=="/"}function Cn(e,...t){let n=e||"";for(const r of t.filter(i=>g8(i)))if(n){const i=r.replace(wMe,"");n=Pp(n)+i}else n=r;return n}function kMe(...e){var o,s,l,c;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let i=0;for(const u of n)if(!(!u||u==="/")){for(const[d,p]of u.split(t).entries())if(!(!p||p===".")){if(p===".."){if(r.length===1&&oE(r[0]))continue;r.pop(),i--;continue}if(d===1&&((o=r[r.length-1])!=null&&o.endsWith(":/"))){r[r.length-1]+="/"+p;continue}r.push(p),i++}}let a=r.join("/");return i>=0?(s=n[0])!=null&&s.startsWith("/")&&!a.startsWith("/")?a="/"+a:(l=n[0])!=null&&l.startsWith("./")&&!a.startsWith("./")&&(a="./"+a):a="../".repeat(-1*i)+a,(c=n[n.length-1])!=null&&c.endsWith("/")&&!a.endsWith("/")&&(a+="/"),a}function DMe(e){return sE(e,"http://")}function LMe(e){return sE(e,"https://")}function OMe(e){return sE(e,"")}function sE(e,t){let n=e.match($Y);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function PMe(e){const t=jo(e);return t.pathname=aE(d8(t.pathname)),t.hash=iE(Mi(t.hash)),t.host=B2(Mi(t.host)),t.search=ng(wf(t.search)),vh(t)}function MMe(e="",...t){if(typeof e!="string")throw new TypeError(`URL input should be string received ${typeof e} (${e})`);const n=t.filter(i=>g8(i));if(n.length===0)return e;const r=jo(e);for(const i of n){const a=jo(i);if(a.pathname&&(r.pathname=Pp(r.pathname)+h8(a.pathname)),a.hash&&a.hash!=="#"&&(r.hash=a.hash),a.search&&a.search!=="?")if(r.search&&r.search!=="?"){const o=ng({...wf(r.search),...wf(a.search)});r.search=o.length>0?"?"+o:""}else r.search=a.search}return vh(r)}function BMe(e,t){return Mi(nm(e))===Mi(nm(t))}function NMe(e,t,n={}){return n.trailingSlash||(e=Pp(e),t=Pp(t)),n.leadingSlash||(e=bC(e),t=bC(t)),n.encoding||(e=Mi(e),t=Mi(t)),e===t}function FMe(e,t){if(!t||t==="#")return e;const n=jo(e);return n.hash=t===""?"":"#"+iE(t),vh(n)}function UMe(e){return vh({...jo(e),hash:""})}function HMe(e){const t=jo(e);return(t.pathname||"/")+t.search+t.hash}const IY=Symbol.for("ufo:protocolRelative");function jo(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,p=""]=n;return{protocol:d.toLowerCase(),pathname:p,href:d+p,auth:"",host:"",search:"",hash:""}}if(!oE(e,{acceptRelative:!0}))return t?jo(t+e):TC(e);const[,r="",i,a=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",s=""]=a.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(s=s.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=TC(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:o,pathname:l,search:c,hash:u,[IY]:!r}}function TC(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function h3(e=""){const[t,n]=e.split(":");return{username:Mi(t),password:Mi(n)}}function EC(e=""){const[t,n]=(e.match(/([^/:]*):?(\d+)?/)||[]).splice(1);return{hostname:Mi(t),port:n}}function vh(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",a=e.host||"";return(e.protocol||e[IY]?(e.protocol||"")+"//":"")+i+a+t+n+r}const jMe=/\/([^/]+\.[^/]+)$/,VMe=/\/([^/]+)$/;function JMe(e="",{strict:t}){const{pathname:n}=jo(e),r=t?n.match(jMe):n.match(VMe);return r?r[1]:void 0}var qMe=Object.defineProperty,GMe=(e,t,n)=>t in e?qMe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pd=(e,t,n)=>(GMe(e,typeof t!="symbol"?t+"":t,n),n);class kY{constructor(t=""){if(pd(this,"protocol"),pd(this,"host"),pd(this,"auth"),pd(this,"pathname"),pd(this,"query",{}),pd(this,"hash"),typeof t!="string")throw new TypeError(`URL input should be string received ${typeof t} (${t})`);const n=jo(t);this.protocol=Mi(n.protocol),this.host=Mi(n.host),this.auth=Mi(n.auth),this.pathname=d8(n.pathname),this.query=wf(n.search),this.hash=Mi(n.hash)}get hostname(){return EC(this.host).hostname}get port(){return EC(this.host).port||""}get username(){return h3(this.auth).username}get password(){return h3(this.auth).password||""}get hasProtocol(){return this.protocol.length}get isAbsolute(){return this.hasProtocol||this.pathname[0]==="/"}get search(){const t=ng(this.query);return t.length>0?"?"+t:""}get searchParams(){const t=new URLSearchParams;for(const n in this.query){const r=this.query[n];if(Array.isArray(r))for(const i of r)t.append(n,i);else t.append(n,typeof r=="string"?r:JSON.stringify(r))}return t}get origin(){return(this.protocol?this.protocol+"//":"")+B2(this.host)}get fullpath(){return aE(this.pathname)+this.search+iE(this.hash)}get encodedAuth(){if(!this.auth)return"";const{username:t,password:n}=h3(this.auth);return encodeURIComponent(t)+(n?":"+encodeURIComponent(n):"")}get href(){const t=this.encodedAuth,n=(this.protocol?this.protocol+"//":"")+(t?t+"@":"")+B2(this.host);return this.hasProtocol&&this.isAbsolute?n+this.fullpath:this.fullpath}append(t){if(t.hasProtocol)throw new Error("Cannot append a URL with protocol");Object.assign(this.query,t.query),t.pathname&&(this.pathname=Pp(this.pathname)+h8(t.pathname)),t.hash&&(this.hash=t.hash)}toJSON(){return this.href}toString(){return this.href}}function zMe(e){return new kY(e)}const WMe=Object.freeze(Object.defineProperty({__proto__:null,$URL:kY,cleanDoubleSlashes:RMe,createURL:zMe,decode:Mi,decodePath:d8,decodeQueryKey:CY,decodeQueryValue:RY,encode:rE,encodeHash:iE,encodeHost:B2,encodeParam:bMe,encodePath:aE,encodeQueryItem:xY,encodeQueryKey:p3,encodeQueryValue:M2,getQuery:IMe,hasLeadingSlash:p8,hasProtocol:oE,hasTrailingSlash:N2,isEmptyURL:m8,isEqual:NMe,isNonEmptyURL:g8,isRelative:_Me,isSamePath:BMe,isScriptProtocol:CMe,joinRelativeURL:kMe,joinURL:Cn,normalizeURL:PMe,parseAuth:h3,parseFilename:JMe,parseHost:EC,parsePath:TC,parseQuery:wf,parseURL:jo,resolveURL:MMe,stringifyParsedURL:vh,stringifyQuery:ng,withBase:xMe,withFragment:FMe,withHttp:DMe,withHttps:LMe,withLeadingSlash:bC,withProtocol:sE,withQuery:Mp,withTrailingSlash:Pp,withoutBase:$Me,withoutFragment:UMe,withoutHost:HMe,withoutLeadingSlash:h8,withoutProtocol:OMe,withoutTrailingSlash:nm},Symbol.toStringTag,{value:"Module"})),p1=/^[a-z0-9]+(-[a-z0-9]+)*$/,rg=(e,t,n,r="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const s=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:r,prefix:l,name:s};return t&&!m3(c)?null:c}const a=i[0],o=a.split("-");if(o.length>1){const s={provider:r,prefix:o.shift(),name:o.join("-")};return t&&!m3(s)?null:s}if(n&&r===""){const s={provider:r,prefix:"",name:a};return t&&!m3(s,n)?null:s}return null},m3=(e,t)=>e?!!((e.provider===""||e.provider.match(p1))&&(t&&e.prefix===""||e.prefix.match(p1))&&e.name.match(p1)):!1,DY=Object.freeze({left:0,top:0,width:16,height:16}),F2=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),lE=Object.freeze({...DY,...F2}),AC=Object.freeze({...lE,body:"",hidden:!1});function KMe(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function UM(e,t){const n=KMe(e,t);for(const r in AC)r in F2?r in e&&!(r in n)&&(n[r]=F2[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function YMe(e,t){const n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(o){if(n[o])return i[o]=[];if(!(o in i)){i[o]=null;const s=r[o]&&r[o].parent,l=s&&a(s);l&&(i[o]=[s].concat(l))}return i[o]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function ZMe(e,t,n){const r=e.icons,i=e.aliases||Object.create(null);let a={};function o(s){a=UM(r[s]||i[s],a)}return o(t),n.forEach(o),UM(e,a)}function LY(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const r=YMe(e);for(const i in r){const a=r[i];a&&(t(i,ZMe(e,i,a)),n.push(i))}return n}const XMe={provider:"",aliases:{},not_found:{},...DY};function Sw(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function OY(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Sw(e,XMe))return null;const n=t.icons;for(const i in n){const a=n[i];if(!i.match(p1)||typeof a.body!="string"||!Sw(a,AC))return null}const r=t.aliases||Object.create(null);for(const i in r){const a=r[i],o=a.parent;if(!i.match(p1)||typeof o!="string"||!n[o]&&!r[o]||!Sw(a,AC))return null}return t}const HM=Object.create(null);function QMe(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function _f(e,t){const n=HM[e]||(HM[e]=Object.create(null));return n[t]||(n[t]=QMe(e,t))}function y8(e,t){return OY(t)?LY(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function eBe(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let rm=!1;function PY(e){return typeof e=="boolean"&&(rm=e),rm}function MY(e){const t=typeof e=="string"?rg(e,!0,rm):e;if(t){const n=_f(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function tBe(e,t){const n=rg(e,!0,rm);if(!n)return!1;const r=_f(n.provider,n.prefix);return eBe(r,n.name,t)}function nBe(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),rm&&!t&&!e.prefix){let i=!1;return OY(e)&&(e.prefix="",LY(e,(a,o)=>{o&&tBe(a,o)&&(i=!0)})),i}const n=e.prefix;if(!m3({provider:t,prefix:n,name:"a"}))return!1;const r=_f(t,n);return!!y8(r,e)}const BY=Object.freeze({width:null,height:null}),NY=Object.freeze({...BY,...F2}),rBe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,iBe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function jM(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(rBe);if(r===null||!r.length)return e;const i=[];let a=r.shift(),o=iBe.test(a);for(;;){if(o){const s=parseFloat(a);isNaN(s)?i.push(a):i.push(Math.ceil(s*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join("");o=!o}}const aBe=e=>e==="unset"||e==="undefined"||e==="none";function oBe(e,t){const n={...lE,...e},r={...NY,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let a=n.body;[n,r].forEach(y=>{const b=[],_=y.hFlip,S=y.vFlip;let $=y.rotate;_?S?$+=2:(b.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),b.push("scale(-1 1)"),i.top=i.left=0):S&&(b.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),b.push("scale(1 -1)"),i.top=i.left=0);let D;switch($<0&&($-=Math.floor($/4)*4),$=$%4,$){case 1:D=i.height/2+i.top,b.unshift("rotate(90 "+D.toString()+" "+D.toString()+")");break;case 2:b.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:D=i.width/2+i.left,b.unshift("rotate(-90 "+D.toString()+" "+D.toString()+")");break}$%2===1&&(i.left!==i.top&&(D=i.left,i.left=i.top,i.top=D),i.width!==i.height&&(D=i.width,i.width=i.height,i.height=D)),b.length&&(a='<g transform="'+b.join(" ")+'">'+a+"</g>")});const o=r.width,s=r.height,l=i.width,c=i.height;let u,d;o===null?(d=s===null?"1em":s==="auto"?c:s,u=jM(d,l/c)):(u=o==="auto"?l:o,d=s===null?jM(u,c/l):s==="auto"?c:s);const p={},m=(y,b)=>{aBe(b)||(p[y]=b.toString())};return m("width",u),m("height",d),p.viewBox=i.left.toString()+" "+i.top.toString()+" "+l.toString()+" "+c.toString(),{attributes:p,body:a}}const sBe=/\sid="(\S+)"/g,lBe="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let uBe=0;function cBe(e,t=lBe){const n=[];let r;for(;r=sBe.exec(e);)n.push(r[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(a=>{const o=typeof t=="function"?t(a):t+(uBe++).toString(),s=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const SC=Object.create(null);function fBe(e,t){SC[e]=t}function wC(e){return SC[e]||SC[""]}function v8(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,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 b8=Object.create(null),T0=["https://api.simplesvg.com","https://api.unisvg.com"],g3=[];for(;T0.length>0;)T0.length===1||Math.random()>.5?g3.push(T0.shift()):g3.push(T0.pop());b8[""]=v8({resources:["https://api.iconify.design"].concat(g3)});function dBe(e,t){const n=v8(t);return n===null?!1:(b8[e]=n,!0)}function T8(e){return b8[e]}const pBe=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let VM=pBe();function hBe(e,t){const n=T8(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(o=>{i=Math.max(i,o.length)});const a=t+".json?icons=";r=n.maxURL-i-n.path.length-a.length}return r}function mBe(e){return e===404}const gBe=(e,t,n)=>{const r=[],i=hBe(e,t),a="icons";let o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((l,c)=>{s+=l.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=l.length),o.icons.push(l)}),r.push(o),r};function yBe(e){if(typeof e=="string"){const t=T8(e);if(t)return t.path}return"/"}const vBe=(e,t,n)=>{if(!VM){n("abort",424);return}let r=yBe(t.provider);switch(t.type){case"icons":{const a=t.prefix,s=t.icons.join(","),l=new URLSearchParams({icons:s});r+=a+".json?"+l.toString();break}case"custom":{const a=t.uri;r+=a.slice(0,1)==="/"?a.slice(1):a;break}default:n("abort",400);return}let i=503;VM(e+r).then(a=>{const o=a.status;if(o!==200){setTimeout(()=>{n(mBe(o)?"abort":"next",o)});return}return i=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?n("abort",a):n("next",i)});return}setTimeout(()=>{n("success",a)})}).catch(()=>{n("next",i)})},bBe={prepare:gBe,send:vBe};function TBe(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,a)=>i.provider!==a.provider?i.provider.localeCompare(a.provider):i.prefix!==a.prefix?i.prefix.localeCompare(a.prefix):i.name.localeCompare(a.name));let r={provider:"",prefix:"",name:""};return e.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const a=i.provider,o=i.prefix,s=i.name,l=n[a]||(n[a]=Object.create(null)),c=l[o]||(l[o]=_f(a,o));let u;s in c.icons?u=t.loaded:o===""||c.missing.has(s)?u=t.missing:u=t.pending;const d={provider:a,prefix:o,name:s};u.push(d)}),t}function FY(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==t))})}function EBe(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,i=e.prefix;t.forEach(a=>{const o=a.icons,s=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(e.icons[c])o.loaded.push({provider:r,prefix:i,name:c});else if(e.missing.has(c))o.missing.push({provider:r,prefix:i,name:c});else return n=!0,!0;return!1}),o.pending.length!==s&&(n||FY([e],a.id),a.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),a.abort))})}))}let ABe=0;function SBe(e,t,n){const r=ABe++,i=FY.bind(null,n,r);if(!t.pending.length)return i;const a={id:r,icons:t,callback:e,abort:i};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(a)}),i}function wBe(e,t=!0,n=!1){const r=[];return e.forEach(i=>{const a=typeof i=="string"?rg(i,t,n):i;a&&r.push(a)}),r}var _Be={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function CBe(e,t,n,r){const i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index;let o;if(e.random){let L=e.resources.slice(0);for(o=[];L.length>1;){const F=Math.floor(Math.random()*L.length);o.push(L[F]),L=L.slice(0,F).concat(L.slice(F+1))}o=o.concat(L)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));const s=Date.now();let l="pending",c=0,u,d=null,p=[],m=[];typeof r=="function"&&m.push(r);function y(){d&&(clearTimeout(d),d=null)}function b(){l==="pending"&&(l="aborted"),y(),p.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),p=[]}function _(L,F){F&&(m=[]),typeof L=="function"&&m.push(L)}function S(){return{startTime:s,payload:t,status:l,queriesSent:c,queriesPending:p.length,subscribe:_,abort:b}}function $(){l="failed",m.forEach(L=>{L(void 0,u)})}function D(){p.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),p=[]}function P(L,F,G){const ie=F!=="success";switch(p=p.filter(se=>se!==L),l){case"pending":break;case"failed":if(ie||!e.dataAfterTimeout)return;break;default:return}if(F==="abort"){u=G,$();return}if(ie){u=G,p.length||(o.length?U():$());return}if(y(),D(),!e.random){const se=e.resources.indexOf(L.resource);se!==-1&&se!==e.index&&(e.index=se)}l="completed",m.forEach(se=>{se(G)})}function U(){if(l!=="pending")return;y();const L=o.shift();if(L===void 0){if(p.length){d=setTimeout(()=>{y(),l==="pending"&&(D(),$())},e.timeout);return}$();return}const F={status:"pending",resource:L,callback:(G,ie)=>{P(F,G,ie)}};p.push(F),c++,d=setTimeout(U,e.rotate),n(L,t,F.callback)}return setTimeout(U),S}function UY(e){const t={..._Be,...e};let n=[];function r(){n=n.filter(s=>s().status==="pending")}function i(s,l,c){const u=CBe(t,s,l,(d,p)=>{r(),c&&c(d,p)});return n.push(u),u}function a(s){return n.find(l=>s(l))||null}return{query:i,find:a,setIndex:s=>{t.index=s},getIndex:()=>t.index,cleanup:r}}function JM(){}const ww=Object.create(null);function RBe(e){if(!ww[e]){const t=T8(e);if(!t)return;const n=UY(t),r={config:t,redundancy:n};ww[e]=r}return ww[e]}function xBe(e,t,n){let r,i;if(typeof e=="string"){const a=wC(e);if(!a)return n(void 0,424),JM;i=a.send;const o=RBe(e);o&&(r=o.redundancy)}else{const a=v8(e);if(a){r=UY(a);const o=e.resources?e.resources[0]:"",s=wC(o);s&&(i=s.send)}}return!r||!i?(n(void 0,424),JM):r.query(t,i,n)().abort}const qM="iconify2",im="iconify",HY=im+"-count",GM=im+"-version",jY=36e5,$Be=168;function _C(e,t){try{return e.getItem(t)}catch{}}function E8(e,t,n){try{return e.setItem(t,n),!0}catch{}}function zM(e,t){try{e.removeItem(t)}catch{}}function CC(e,t){return E8(e,HY,t.toString())}function RC(e){return parseInt(_C(e,HY))||0}const uE={local:!0,session:!0},VY={local:new Set,session:new Set};let A8=!1;function IBe(e){A8=e}let Gy=typeof window>"u"?{}:window;function JY(e){const t=e+"Storage";try{if(Gy&&Gy[t]&&typeof Gy[t].length=="number")return Gy[t]}catch{}uE[e]=!1}function qY(e,t){const n=JY(e);if(!n)return;const r=_C(n,GM);if(r!==qM){if(r){const s=RC(n);for(let l=0;l<s;l++)zM(n,im+l.toString())}E8(n,GM,qM),CC(n,0);return}const i=Math.floor(Date.now()/jY)-$Be,a=s=>{const l=im+s.toString(),c=_C(n,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,s))return!0}catch{}zM(n,l)}};let o=RC(n);for(let s=o-1;s>=0;s--)a(s)||(s===o-1?(o--,CC(n,o)):VY[e].add(s))}function GY(){if(!A8){IBe(!0);for(const e in uE)qY(e,t=>{const n=t.data,r=t.provider,i=n.prefix,a=_f(r,i);if(!y8(a,n).length)return!1;const o=n.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,o):o,!0})}}function kBe(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in uE)qY(r,i=>{const a=i.data;return i.provider!==e.provider||a.prefix!==e.prefix||a.lastModified===t});return!0}function DBe(e,t){A8||GY();function n(r){let i;if(!uE[r]||!(i=JY(r)))return;const a=VY[r];let o;if(a.size)a.delete(o=Array.from(a).shift());else if(o=RC(i),!CC(i,o+1))return;const s={cached:Math.floor(Date.now()/jY),provider:e.provider,data:t};return E8(i,im+o.toString(),JSON.stringify(s))}t.lastModified&&!kBe(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function WM(){}function LBe(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,EBe(e)}))}function OBe(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,i=e.iconsToLoad;delete e.iconsToLoad;let a;if(!i||!(a=wC(n)))return;a.prepare(n,r,i).forEach(s=>{xBe(n,s,l=>{if(typeof l!="object")s.icons.forEach(c=>{e.missing.add(c)});else try{const c=y8(e,l);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),DBe(e,l)}catch(c){console.error(c)}LBe(e)})})}))}const zY=(e,t)=>{const n=wBe(e,!0,PY()),r=TBe(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,WM)}),()=>{l=!1}}const i=Object.create(null),a=[];let o,s;return r.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===s&&c===o)return;o=c,s=u,a.push(_f(c,u));const d=i[c]||(i[c]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(l=>{const{provider:c,prefix:u,name:d}=l,p=_f(c,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(d)||(m.add(d),i[c][u].push(d))}),a.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&OBe(l,i[c][u])}),t?SBe(t,r,a):WM},zvt=e=>new Promise((t,n)=>{const r=typeof e=="string"?rg(e,!0):e;if(!r){n(e);return}zY([r||e],i=>{if(i.length&&r){const a=MY(r);if(a){t({...lE,...a});return}}n(e)})});function PBe(e,t){const n={...e};for(const r in t){const i=t[r],a=typeof i;r in BY?(i===null||i&&(a==="string"||a==="number"))&&(n[r]=i):a===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const MBe=/[\s,]+/;function BBe(e,t){t.split(MBe).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function NBe(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:r(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let a=parseFloat(e.slice(0,e.length-n.length));return isNaN(a)?0:(a=a/i,a%1===0?r(a):0)}}return t}function FBe(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function UBe(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function HBe(e){return"data:image/svg+xml,"+UBe(e)}function jBe(e){return'url("'+HBe(e)+'")'}let h1;function VBe(){try{h1=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{h1=null}}function JBe(e){return h1===void 0&&VBe(),h1?h1.createHTML(e):e}const WY={...NY,inline:!1},qBe={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},GBe={display:"inline-block"},xC={backgroundColor:"currentColor"},KY={backgroundColor:"transparent"},KM={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},YM={WebkitMask:xC,mask:xC,background:KY};for(const e in YM){const t=YM[e];for(const n in KM)t[e+n]=KM[n]}const zBe={...WY,inline:!0};function ZM(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const WBe=(e,t,n,r)=>{const i=n?zBe:WY,a=PBe(i,t),o=t.mode||"svg",s={},l=t.style||{},c={...o==="svg"?qBe:{},ref:r};for(let S in t){const $=t[S];if($!==void 0)switch(S){case"icon":case"style":case"children":case"onLoad":case"mode":case"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[S]=$===!0||$==="true"||$===1;break;case"flip":typeof $=="string"&&BBe(a,$);break;case"color":s.color=$;break;case"rotate":typeof $=="string"?a[S]=NBe($):typeof $=="number"&&(a[S]=$);break;case"ariaHidden":case"aria-hidden":$!==!0&&$!=="true"&&delete c["aria-hidden"];break;default:i[S]===void 0&&(c[S]=$)}}const u=oBe(e,a),d=u.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),o==="svg"){c.style={...s,...l},Object.assign(c,d);let S=0,$=t.id;return typeof $=="string"&&($=$.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:JBe(cBe(u.body,$?()=>$+"ID"+S++:"iconifyReact"))},Yt.createElement("svg",c)}const{body:p,width:m,height:y}=e,b=o==="mask"||(o==="bg"?!1:p.indexOf("currentColor")!==-1),_=FBe(p,{...d,width:m+"",height:y+""});return c.style={...s,"--svg":jBe(_),width:ZM(d.width),height:ZM(d.height),...GBe,...b?xC:KY,...l},Yt.createElement("span",c)};PY(!0);fBe("",bBe);if(typeof document<"u"&&typeof window<"u"){GY();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!nBe(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;dBe(n,i)||console.error(r)}catch{console.error(r)}}}}class YY extends Yt.Component{constructor(t){super(t),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(t){this.state.icon!==t&&this.setState({icon:t})}_checkIcon(t){const n=this.state,r=this.props.icon;if(typeof r=="object"&&r!==null&&typeof r.body=="string"){this._icon="",this._abortLoading(),(t||n.icon===null)&&this._setData({data:r});return}let i;if(typeof r!="string"||(i=rg(r,!1,!0))===null){this._abortLoading(),this._setData(null);return}const a=MY(i);if(!a){(!this._loading||this._loading.name!==r)&&(this._abortLoading(),this._icon="",this._setData(null),a!==null&&(this._loading={name:r,abort:zY([i],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||n.icon===null){this._abortLoading(),this._icon=r;const o=["iconify"];i.prefix!==""&&o.push("iconify--"+i.prefix),i.provider!==""&&o.push("iconify--"+i.provider),this._setData({data:a,classes:o}),this.props.onLoad&&this.props.onLoad(r)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(t){t.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){const t=this.props,n=this.state.icon;if(n===null)return t.children?t.children:Yt.createElement("span",{});let r=t;return n.classes&&(r={...t,className:(typeof t.className=="string"?t.className+" ":"")+n.classes.join(" ")}),WBe({...lE,...n.data},r,t._inline,t._ref)}}const Vn=Yt.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!1};return Yt.createElement(YY,r)});Yt.forwardRef(function(t,n){const r={...t,_ref:n,_inline:!0};return Yt.createElement(YY,r)});const KBe={width:24,height:24,body:'<path fill="currentColor" d="M9.575 12L5.7 8.1q-.275-.275-.288-.688T5.7 6.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.062.375t-.213.325l-4.6 4.6q-.275.275-.687.288T5.7 17.3q-.275-.275-.275-.7t.275-.7L9.575 12Zm6.6 0L12.3 8.1q-.275-.275-.288-.688T12.3 6.7q.275-.275.7-.275t.7.275l4.6 4.6q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.6 4.6q-.275.275-.687.288T12.3 17.3q-.275-.275-.275-.7t.275-.7l3.875-3.9Z"/>'};var _w=/iPhone/i,XM=/iPod/i,QM=/iPad/i,eB=/\biOS-universal(?:.+)Mac\b/i,Cw=/\bAndroid(?:.+)Mobile\b/i,tB=/Android/i,hd=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,zy=/Silk/i,Rl=/Windows Phone/i,nB=/\bWindows(?:.+)ARM\b/i,rB=/BlackBerry/i,iB=/BB10/i,aB=/Opera Mini/i,oB=/\b(CriOS|Chrome)(?:.+)Mobile/i,sB=/Mobile(?:.+)Firefox\b/i,lB=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function YBe(e){return function(t){return t.test(e)}}function ZBe(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);var i=YBe(n),a={apple:{phone:i(_w)&&!i(Rl),ipod:i(XM),tablet:!i(_w)&&(i(QM)||lB(t))&&!i(Rl),universal:i(eB),device:(i(_w)||i(XM)||i(QM)||i(eB)||lB(t))&&!i(Rl)},amazon:{phone:i(hd),tablet:!i(hd)&&i(zy),device:i(hd)||i(zy)},android:{phone:!i(Rl)&&i(hd)||!i(Rl)&&i(Cw),tablet:!i(Rl)&&!i(hd)&&!i(Cw)&&(i(zy)||i(tB)),device:!i(Rl)&&(i(hd)||i(zy)||i(Cw)||i(tB))||i(/\bokhttp\b/i)},windows:{phone:i(Rl),tablet:i(nB),device:i(Rl)||i(nB)},other:{blackberry:i(rB),blackberry10:i(iB),opera:i(aB),firefox:i(sB),chrome:i(oB),device:i(rB)||i(iB)||i(aB)||i(sB)||i(oB)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}const ZY="ABTWallet",XBe="ArcSphere";function QBe(e){var i;const n=new RegExp(`${ZY}/(?<version>[0-9.]+)`,"g").exec(e);return(i=n==null?void 0:n.groups)==null?void 0:i.version}function ig(){var n;const e=(n=window==null?void 0:window.navigator)==null?void 0:n.userAgent,[t]=Z.useState({wallet:e.indexOf(ZY)>-1||e.indexOf(XBe)>-1,walletVersion:QBe(e),wechat:/MicroMessenger/i.test(e),mobile:{apple:{phone:!1,ipod:!1,tablet:!1,device:!1},amazon:{phone:!1,tablet:!1,device:!1},android:{phone:!1,tablet:!1,device:!1},windows:{phone:!1,tablet:!1,device:!1},other:{blackberry:!1,blackberry10:!1,opera:!1,firefox:!1,chrome:!1,device:!1},phone:!1,tablet:!1,any:!1,...ZBe(e)}});return t}const uB={did:{contained:{backgroundColor:li.did.primary,color:li.common.white},outlined:{borderColor:li.did.primary,color:li.did.primary}},reverse:{contained:{backgroundColor:"rgba(255, 255, 255, 0.9)",color:li.grey[900]},outlined:{borderColor:li.grey[900],color:li.grey[900]}}};function eNe(e){function t(n){const r=Sx(n,t,["style"]),{children:i,rounded:a,loading:o,disabled:s,style:l,forwardedRef:c,color:u,...d}=r,p=s||o;let m=16;switch(d.size){case"small":m=14;break;case"large":m=18;break}const y=uB[u]&&uB[u][d.variant],b=Object.assign({},l,{boxShadow:"none",textTransform:"capitalize",...y});let _=d;return y||(_={..._,color:u}),a&&(b.borderRadius="100vw"),q.jsxs(e,{style:b,ref:c,disabled:p,..._,children:[o&&q.jsx(Fm,{size:m,style:{marginRight:5}}),i]})}return t.propTypes={children:me.any.isRequired,style:me.oneOfType([me.object,me.string]),size:me.oneOf(["large","medium","small"]),forwardedRef:me.any,rounded:me.bool},t.defaultProps={rounded:!1,size:"medium",forwardedRef:null,style:{}},Z.forwardRef((n,r)=>q.jsx(t,{...n,forwardedRef:r}))}const cB=eNe(PW);function S8({children:e,title:t,prepend:n,toolbar:r,actions:i,showCloseButton:a,actionsPosition:o,PaperProps:s,slotProps:l,...c}){const u=ru(),d=kG(u.breakpoints.down("md")),p=t||a||r,m=(b,_)=>{const{onClose:S}=c;S&&S(b,_)};s.style=Object.assign({minWidth:300,minHeight:300},s.style);const y=q.jsx(ou,{className:"ux-dialog_closeButton",onClick:b=>m(b,"closeButton"),children:q.jsx(Wx,{})});return q.jsxs(tNe,{fullScreen:d,onClose:m,PaperProps:s,...c,children:[p&&q.jsxs(nNe,{...l.header,className:"ux-dialog_header",isMobile:d,children:[q.jsxs("div",{className:"ux-dialog_left",children:[a&&d&&y,n&&q.jsx("div",{className:"ux-dialog_prepend",children:n}),t&&q.jsx(or,{variant:"h6",className:"ux-dialog_title",children:t})]}),q.jsxs("div",{className:"ux-dialog_right",children:[q.jsx("div",{className:"ux-dialog_toolbar",children:r}),a&&!d&&y]})]}),q.jsx(Jx,{...l.content,children:e}),i&&q.jsx(ECe,{className:`ux-dialog_actions--${o}`,children:i})]})}S8.propTypes={children:me.node.isRequired,title:me.node,prepend:me.node,toolbar:me.node,actions:me.node,showCloseButton:me.bool,actionsPosition:me.oneOf(["left","center","right"]),PaperProps:me.object,slotProps:me.shape({content:me.object,header:me.object})};S8.defaultProps={showCloseButton:!0,title:"",prepend:null,toolbar:null,actions:null,actionsPosition:"right",PaperProps:{},slotProps:{}};const tNe=ul(Vx)`
|
|
261
261
|
.MuiDialog-paper {
|
|
262
262
|
${e=>e.fullScreen?"border-radius: 0;":""};
|
|
263
263
|
}
|
|
@@ -425,7 +425,7 @@ Use Chrome, Firefox or Internet Explorer 11`)}var qHe=xn.Buffer,q2=ft.crypto||ft
|
|
|
425
425
|
use chrome, FireFox or Internet Explorer 11`)}var t=xn,n=lu,r=t.Buffer,i=t.kMaxLength,a=ft.crypto||ft.msCrypto,o=Math.pow(2,32)-1;function s(p,m){if(typeof p!="number"||p!==p)throw new TypeError("offset must be a number");if(p>o||p<0)throw new TypeError("offset must be a uint32");if(p>i||p>m)throw new RangeError("offset out of range")}function l(p,m,y){if(typeof p!="number"||p!==p)throw new TypeError("size must be a number");if(p>o||p<0)throw new TypeError("size must be a uint32");if(p+m>y||p>i)throw new RangeError("buffer too small")}a&&a.getRandomValues||!on.browser?(vd.randomFill=c,vd.randomFillSync=d):(vd.randomFill=e,vd.randomFillSync=e);function c(p,m,y,b){if(!r.isBuffer(p)&&!(p instanceof ft.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof m=="function")b=m,m=0,y=p.length;else if(typeof y=="function")b=y,y=p.length-m;else if(typeof b!="function")throw new TypeError('"cb" argument must be a function');return s(m,p.length),l(y,m,p.length),u(p,m,y,b)}function u(p,m,y,b){if(on.browser){var _=p.buffer,S=new Uint8Array(_,m,y);if(a.getRandomValues(S),b){on.nextTick(function(){b(null,p)});return}return p}if(b){n(y,function(D,P){if(D)return b(D);P.copy(p,m),b(null,p)});return}var $=n(y);return $.copy(p,m),p}function d(p,m,y){if(typeof m>"u"&&(m=0),!r.isBuffer(p)&&!(p instanceof ft.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return s(m,p.length),y===void 0&&(y=p.length-m),l(y,m,p.length),u(p,m,y)}return vd}var oU;function SQ(){if(oU)return wn;oU=1,wn.randomBytes=wn.rng=wn.pseudoRandomBytes=wn.prng=lu,wn.createHash=wn.Hash=ug(),wn.createHmac=wn.Hmac=xX();var e=YVe(),t=Object.keys(e),n=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);wn.getHashes=function(){return n};var r=OX();wn.pbkdf2=r.pbkdf2,wn.pbkdf2Sync=r.pbkdf2Sync;var i=mJe();wn.Cipher=i.Cipher,wn.createCipher=i.createCipher,wn.Cipheriv=i.Cipheriv,wn.createCipheriv=i.createCipheriv,wn.Decipher=i.Decipher,wn.createDecipher=i.createDecipher,wn.Decipheriv=i.Decipheriv,wn.createDecipheriv=i.createDecipheriv,wn.getCiphers=i.getCiphers,wn.listCiphers=i.listCiphers;var a=CJe();wn.DiffieHellmanGroup=a.DiffieHellmanGroup,wn.createDiffieHellmanGroup=a.createDiffieHellmanGroup,wn.getDiffieHellman=a.getDiffieHellman,wn.createDiffieHellman=a.createDiffieHellman,wn.DiffieHellman=a.DiffieHellman;var o=eze();wn.createSign=o.createSign,wn.Sign=o.Sign,wn.createVerify=o.createVerify,wn.Verify=o.Verify,wn.createECDH=tze();var s=ize();wn.publicEncrypt=s.publicEncrypt,wn.privateEncrypt=s.privateEncrypt,wn.publicDecrypt=s.publicDecrypt,wn.privateDecrypt=s.privateDecrypt;var l=aze();return wn.randomFill=l.randomFill,wn.randomFillSync=l.randomFillSync,wn.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
426
426
|
`))},wn.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},wn}(function(e){(function(t){var n=function(Q){var ae,fe=new Float64Array(16);if(Q)for(ae=0;ae<Q.length;ae++)fe[ae]=Q[ae];return fe},r=function(){throw new Error("no PRNG")},i=new Uint8Array(16),a=new Uint8Array(32);a[0]=9;var o=n(),s=n([1]),l=n([56129,1]),c=n([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=n([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=n([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),p=n([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),m=n([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function y(Q,ae,fe,H){Q[ae]=fe>>24&255,Q[ae+1]=fe>>16&255,Q[ae+2]=fe>>8&255,Q[ae+3]=fe&255,Q[ae+4]=H>>24&255,Q[ae+5]=H>>16&255,Q[ae+6]=H>>8&255,Q[ae+7]=H&255}function b(Q,ae,fe,H,ue){var Me,ke=0;for(Me=0;Me<ue;Me++)ke|=Q[ae+Me]^fe[H+Me];return(1&ke-1>>>8)-1}function _(Q,ae,fe,H){return b(Q,ae,fe,H,16)}function S(Q,ae,fe,H){return b(Q,ae,fe,H,32)}function $(Q,ae,fe,H){for(var ue=H[0]&255|(H[1]&255)<<8|(H[2]&255)<<16|(H[3]&255)<<24,Me=fe[0]&255|(fe[1]&255)<<8|(fe[2]&255)<<16|(fe[3]&255)<<24,ke=fe[4]&255|(fe[5]&255)<<8|(fe[6]&255)<<16|(fe[7]&255)<<24,Ue=fe[8]&255|(fe[9]&255)<<8|(fe[10]&255)<<16|(fe[11]&255)<<24,ot=fe[12]&255|(fe[13]&255)<<8|(fe[14]&255)<<16|(fe[15]&255)<<24,rt=H[4]&255|(H[5]&255)<<8|(H[6]&255)<<16|(H[7]&255)<<24,Qe=ae[0]&255|(ae[1]&255)<<8|(ae[2]&255)<<16|(ae[3]&255)<<24,Wt=ae[4]&255|(ae[5]&255)<<8|(ae[6]&255)<<16|(ae[7]&255)<<24,At=ae[8]&255|(ae[9]&255)<<8|(ae[10]&255)<<16|(ae[11]&255)<<24,vt=ae[12]&255|(ae[13]&255)<<8|(ae[14]&255)<<16|(ae[15]&255)<<24,$t=H[8]&255|(H[9]&255)<<8|(H[10]&255)<<16|(H[11]&255)<<24,Ut=fe[16]&255|(fe[17]&255)<<8|(fe[18]&255)<<16|(fe[19]&255)<<24,_t=fe[20]&255|(fe[21]&255)<<8|(fe[22]&255)<<16|(fe[23]&255)<<24,Ct=fe[24]&255|(fe[25]&255)<<8|(fe[26]&255)<<16|(fe[27]&255)<<24,Mt=fe[28]&255|(fe[29]&255)<<8|(fe[30]&255)<<16|(fe[31]&255)<<24,Ht=H[12]&255|(H[13]&255)<<8|(H[14]&255)<<16|(H[15]&255)<<24,Lt=ue,Nt=Me,It=ke,Ot=Ue,Bt=ot,xt=rt,Ze=Qe,Xe=Wt,ht=At,ct=vt,mt=$t,St=Ut,Qt=_t,pn=Ct,hn=Mt,cn=Ht,Pe,An=0;An<20;An+=2)Pe=Lt+Qt|0,Bt^=Pe<<7|Pe>>>25,Pe=Bt+Lt|0,ht^=Pe<<9|Pe>>>23,Pe=ht+Bt|0,Qt^=Pe<<13|Pe>>>19,Pe=Qt+ht|0,Lt^=Pe<<18|Pe>>>14,Pe=xt+Nt|0,ct^=Pe<<7|Pe>>>25,Pe=ct+xt|0,pn^=Pe<<9|Pe>>>23,Pe=pn+ct|0,Nt^=Pe<<13|Pe>>>19,Pe=Nt+pn|0,xt^=Pe<<18|Pe>>>14,Pe=mt+Ze|0,hn^=Pe<<7|Pe>>>25,Pe=hn+mt|0,It^=Pe<<9|Pe>>>23,Pe=It+hn|0,Ze^=Pe<<13|Pe>>>19,Pe=Ze+It|0,mt^=Pe<<18|Pe>>>14,Pe=cn+St|0,Ot^=Pe<<7|Pe>>>25,Pe=Ot+cn|0,Xe^=Pe<<9|Pe>>>23,Pe=Xe+Ot|0,St^=Pe<<13|Pe>>>19,Pe=St+Xe|0,cn^=Pe<<18|Pe>>>14,Pe=Lt+Ot|0,Nt^=Pe<<7|Pe>>>25,Pe=Nt+Lt|0,It^=Pe<<9|Pe>>>23,Pe=It+Nt|0,Ot^=Pe<<13|Pe>>>19,Pe=Ot+It|0,Lt^=Pe<<18|Pe>>>14,Pe=xt+Bt|0,Ze^=Pe<<7|Pe>>>25,Pe=Ze+xt|0,Xe^=Pe<<9|Pe>>>23,Pe=Xe+Ze|0,Bt^=Pe<<13|Pe>>>19,Pe=Bt+Xe|0,xt^=Pe<<18|Pe>>>14,Pe=mt+ct|0,St^=Pe<<7|Pe>>>25,Pe=St+mt|0,ht^=Pe<<9|Pe>>>23,Pe=ht+St|0,ct^=Pe<<13|Pe>>>19,Pe=ct+ht|0,mt^=Pe<<18|Pe>>>14,Pe=cn+hn|0,Qt^=Pe<<7|Pe>>>25,Pe=Qt+cn|0,pn^=Pe<<9|Pe>>>23,Pe=pn+Qt|0,hn^=Pe<<13|Pe>>>19,Pe=hn+pn|0,cn^=Pe<<18|Pe>>>14;Lt=Lt+ue|0,Nt=Nt+Me|0,It=It+ke|0,Ot=Ot+Ue|0,Bt=Bt+ot|0,xt=xt+rt|0,Ze=Ze+Qe|0,Xe=Xe+Wt|0,ht=ht+At|0,ct=ct+vt|0,mt=mt+$t|0,St=St+Ut|0,Qt=Qt+_t|0,pn=pn+Ct|0,hn=hn+Mt|0,cn=cn+Ht|0,Q[0]=Lt>>>0&255,Q[1]=Lt>>>8&255,Q[2]=Lt>>>16&255,Q[3]=Lt>>>24&255,Q[4]=Nt>>>0&255,Q[5]=Nt>>>8&255,Q[6]=Nt>>>16&255,Q[7]=Nt>>>24&255,Q[8]=It>>>0&255,Q[9]=It>>>8&255,Q[10]=It>>>16&255,Q[11]=It>>>24&255,Q[12]=Ot>>>0&255,Q[13]=Ot>>>8&255,Q[14]=Ot>>>16&255,Q[15]=Ot>>>24&255,Q[16]=Bt>>>0&255,Q[17]=Bt>>>8&255,Q[18]=Bt>>>16&255,Q[19]=Bt>>>24&255,Q[20]=xt>>>0&255,Q[21]=xt>>>8&255,Q[22]=xt>>>16&255,Q[23]=xt>>>24&255,Q[24]=Ze>>>0&255,Q[25]=Ze>>>8&255,Q[26]=Ze>>>16&255,Q[27]=Ze>>>24&255,Q[28]=Xe>>>0&255,Q[29]=Xe>>>8&255,Q[30]=Xe>>>16&255,Q[31]=Xe>>>24&255,Q[32]=ht>>>0&255,Q[33]=ht>>>8&255,Q[34]=ht>>>16&255,Q[35]=ht>>>24&255,Q[36]=ct>>>0&255,Q[37]=ct>>>8&255,Q[38]=ct>>>16&255,Q[39]=ct>>>24&255,Q[40]=mt>>>0&255,Q[41]=mt>>>8&255,Q[42]=mt>>>16&255,Q[43]=mt>>>24&255,Q[44]=St>>>0&255,Q[45]=St>>>8&255,Q[46]=St>>>16&255,Q[47]=St>>>24&255,Q[48]=Qt>>>0&255,Q[49]=Qt>>>8&255,Q[50]=Qt>>>16&255,Q[51]=Qt>>>24&255,Q[52]=pn>>>0&255,Q[53]=pn>>>8&255,Q[54]=pn>>>16&255,Q[55]=pn>>>24&255,Q[56]=hn>>>0&255,Q[57]=hn>>>8&255,Q[58]=hn>>>16&255,Q[59]=hn>>>24&255,Q[60]=cn>>>0&255,Q[61]=cn>>>8&255,Q[62]=cn>>>16&255,Q[63]=cn>>>24&255}function D(Q,ae,fe,H){for(var ue=H[0]&255|(H[1]&255)<<8|(H[2]&255)<<16|(H[3]&255)<<24,Me=fe[0]&255|(fe[1]&255)<<8|(fe[2]&255)<<16|(fe[3]&255)<<24,ke=fe[4]&255|(fe[5]&255)<<8|(fe[6]&255)<<16|(fe[7]&255)<<24,Ue=fe[8]&255|(fe[9]&255)<<8|(fe[10]&255)<<16|(fe[11]&255)<<24,ot=fe[12]&255|(fe[13]&255)<<8|(fe[14]&255)<<16|(fe[15]&255)<<24,rt=H[4]&255|(H[5]&255)<<8|(H[6]&255)<<16|(H[7]&255)<<24,Qe=ae[0]&255|(ae[1]&255)<<8|(ae[2]&255)<<16|(ae[3]&255)<<24,Wt=ae[4]&255|(ae[5]&255)<<8|(ae[6]&255)<<16|(ae[7]&255)<<24,At=ae[8]&255|(ae[9]&255)<<8|(ae[10]&255)<<16|(ae[11]&255)<<24,vt=ae[12]&255|(ae[13]&255)<<8|(ae[14]&255)<<16|(ae[15]&255)<<24,$t=H[8]&255|(H[9]&255)<<8|(H[10]&255)<<16|(H[11]&255)<<24,Ut=fe[16]&255|(fe[17]&255)<<8|(fe[18]&255)<<16|(fe[19]&255)<<24,_t=fe[20]&255|(fe[21]&255)<<8|(fe[22]&255)<<16|(fe[23]&255)<<24,Ct=fe[24]&255|(fe[25]&255)<<8|(fe[26]&255)<<16|(fe[27]&255)<<24,Mt=fe[28]&255|(fe[29]&255)<<8|(fe[30]&255)<<16|(fe[31]&255)<<24,Ht=H[12]&255|(H[13]&255)<<8|(H[14]&255)<<16|(H[15]&255)<<24,Lt=ue,Nt=Me,It=ke,Ot=Ue,Bt=ot,xt=rt,Ze=Qe,Xe=Wt,ht=At,ct=vt,mt=$t,St=Ut,Qt=_t,pn=Ct,hn=Mt,cn=Ht,Pe,An=0;An<20;An+=2)Pe=Lt+Qt|0,Bt^=Pe<<7|Pe>>>25,Pe=Bt+Lt|0,ht^=Pe<<9|Pe>>>23,Pe=ht+Bt|0,Qt^=Pe<<13|Pe>>>19,Pe=Qt+ht|0,Lt^=Pe<<18|Pe>>>14,Pe=xt+Nt|0,ct^=Pe<<7|Pe>>>25,Pe=ct+xt|0,pn^=Pe<<9|Pe>>>23,Pe=pn+ct|0,Nt^=Pe<<13|Pe>>>19,Pe=Nt+pn|0,xt^=Pe<<18|Pe>>>14,Pe=mt+Ze|0,hn^=Pe<<7|Pe>>>25,Pe=hn+mt|0,It^=Pe<<9|Pe>>>23,Pe=It+hn|0,Ze^=Pe<<13|Pe>>>19,Pe=Ze+It|0,mt^=Pe<<18|Pe>>>14,Pe=cn+St|0,Ot^=Pe<<7|Pe>>>25,Pe=Ot+cn|0,Xe^=Pe<<9|Pe>>>23,Pe=Xe+Ot|0,St^=Pe<<13|Pe>>>19,Pe=St+Xe|0,cn^=Pe<<18|Pe>>>14,Pe=Lt+Ot|0,Nt^=Pe<<7|Pe>>>25,Pe=Nt+Lt|0,It^=Pe<<9|Pe>>>23,Pe=It+Nt|0,Ot^=Pe<<13|Pe>>>19,Pe=Ot+It|0,Lt^=Pe<<18|Pe>>>14,Pe=xt+Bt|0,Ze^=Pe<<7|Pe>>>25,Pe=Ze+xt|0,Xe^=Pe<<9|Pe>>>23,Pe=Xe+Ze|0,Bt^=Pe<<13|Pe>>>19,Pe=Bt+Xe|0,xt^=Pe<<18|Pe>>>14,Pe=mt+ct|0,St^=Pe<<7|Pe>>>25,Pe=St+mt|0,ht^=Pe<<9|Pe>>>23,Pe=ht+St|0,ct^=Pe<<13|Pe>>>19,Pe=ct+ht|0,mt^=Pe<<18|Pe>>>14,Pe=cn+hn|0,Qt^=Pe<<7|Pe>>>25,Pe=Qt+cn|0,pn^=Pe<<9|Pe>>>23,Pe=pn+Qt|0,hn^=Pe<<13|Pe>>>19,Pe=hn+pn|0,cn^=Pe<<18|Pe>>>14;Q[0]=Lt>>>0&255,Q[1]=Lt>>>8&255,Q[2]=Lt>>>16&255,Q[3]=Lt>>>24&255,Q[4]=xt>>>0&255,Q[5]=xt>>>8&255,Q[6]=xt>>>16&255,Q[7]=xt>>>24&255,Q[8]=mt>>>0&255,Q[9]=mt>>>8&255,Q[10]=mt>>>16&255,Q[11]=mt>>>24&255,Q[12]=cn>>>0&255,Q[13]=cn>>>8&255,Q[14]=cn>>>16&255,Q[15]=cn>>>24&255,Q[16]=Ze>>>0&255,Q[17]=Ze>>>8&255,Q[18]=Ze>>>16&255,Q[19]=Ze>>>24&255,Q[20]=Xe>>>0&255,Q[21]=Xe>>>8&255,Q[22]=Xe>>>16&255,Q[23]=Xe>>>24&255,Q[24]=ht>>>0&255,Q[25]=ht>>>8&255,Q[26]=ht>>>16&255,Q[27]=ht>>>24&255,Q[28]=ct>>>0&255,Q[29]=ct>>>8&255,Q[30]=ct>>>16&255,Q[31]=ct>>>24&255}function P(Q,ae,fe,H){$(Q,ae,fe,H)}function U(Q,ae,fe,H){D(Q,ae,fe,H)}var L=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function F(Q,ae,fe,H,ue,Me,ke){var Ue=new Uint8Array(16),ot=new Uint8Array(64),rt,Qe;for(Qe=0;Qe<16;Qe++)Ue[Qe]=0;for(Qe=0;Qe<8;Qe++)Ue[Qe]=Me[Qe];for(;ue>=64;){for(P(ot,Ue,ke,L),Qe=0;Qe<64;Qe++)Q[ae+Qe]=fe[H+Qe]^ot[Qe];for(rt=1,Qe=8;Qe<16;Qe++)rt=rt+(Ue[Qe]&255)|0,Ue[Qe]=rt&255,rt>>>=8;ue-=64,ae+=64,H+=64}if(ue>0)for(P(ot,Ue,ke,L),Qe=0;Qe<ue;Qe++)Q[ae+Qe]=fe[H+Qe]^ot[Qe];return 0}function G(Q,ae,fe,H,ue){var Me=new Uint8Array(16),ke=new Uint8Array(64),Ue,ot;for(ot=0;ot<16;ot++)Me[ot]=0;for(ot=0;ot<8;ot++)Me[ot]=H[ot];for(;fe>=64;){for(P(ke,Me,ue,L),ot=0;ot<64;ot++)Q[ae+ot]=ke[ot];for(Ue=1,ot=8;ot<16;ot++)Ue=Ue+(Me[ot]&255)|0,Me[ot]=Ue&255,Ue>>>=8;fe-=64,ae+=64}if(fe>0)for(P(ke,Me,ue,L),ot=0;ot<fe;ot++)Q[ae+ot]=ke[ot];return 0}function ie(Q,ae,fe,H,ue){var Me=new Uint8Array(32);U(Me,H,ue,L);for(var ke=new Uint8Array(8),Ue=0;Ue<8;Ue++)ke[Ue]=H[Ue+16];return G(Q,ae,fe,ke,Me)}function se(Q,ae,fe,H,ue,Me,ke){var Ue=new Uint8Array(32);U(Ue,Me,ke,L);for(var ot=new Uint8Array(8),rt=0;rt<8;rt++)ot[rt]=Me[rt+16];return F(Q,ae,fe,H,ue,ot,Ue)}var K=function(Q){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var ae,fe,H,ue,Me,ke,Ue,ot;ae=Q[0]&255|(Q[1]&255)<<8,this.r[0]=ae&8191,fe=Q[2]&255|(Q[3]&255)<<8,this.r[1]=(ae>>>13|fe<<3)&8191,H=Q[4]&255|(Q[5]&255)<<8,this.r[2]=(fe>>>10|H<<6)&7939,ue=Q[6]&255|(Q[7]&255)<<8,this.r[3]=(H>>>7|ue<<9)&8191,Me=Q[8]&255|(Q[9]&255)<<8,this.r[4]=(ue>>>4|Me<<12)&255,this.r[5]=Me>>>1&8190,ke=Q[10]&255|(Q[11]&255)<<8,this.r[6]=(Me>>>14|ke<<2)&8191,Ue=Q[12]&255|(Q[13]&255)<<8,this.r[7]=(ke>>>11|Ue<<5)&8065,ot=Q[14]&255|(Q[15]&255)<<8,this.r[8]=(Ue>>>8|ot<<8)&8191,this.r[9]=ot>>>5&127,this.pad[0]=Q[16]&255|(Q[17]&255)<<8,this.pad[1]=Q[18]&255|(Q[19]&255)<<8,this.pad[2]=Q[20]&255|(Q[21]&255)<<8,this.pad[3]=Q[22]&255|(Q[23]&255)<<8,this.pad[4]=Q[24]&255|(Q[25]&255)<<8,this.pad[5]=Q[26]&255|(Q[27]&255)<<8,this.pad[6]=Q[28]&255|(Q[29]&255)<<8,this.pad[7]=Q[30]&255|(Q[31]&255)<<8};K.prototype.blocks=function(Q,ae,fe){for(var H=this.fin?0:2048,ue,Me,ke,Ue,ot,rt,Qe,Wt,At,vt,$t,Ut,_t,Ct,Mt,Ht,Lt,Nt,It,Ot=this.h[0],Bt=this.h[1],xt=this.h[2],Ze=this.h[3],Xe=this.h[4],ht=this.h[5],ct=this.h[6],mt=this.h[7],St=this.h[8],Qt=this.h[9],pn=this.r[0],hn=this.r[1],cn=this.r[2],Pe=this.r[3],An=this.r[4],Dn=this.r[5],Ln=this.r[6],mn=this.r[7],On=this.r[8],$n=this.r[9];fe>=16;)ue=Q[ae+0]&255|(Q[ae+1]&255)<<8,Ot+=ue&8191,Me=Q[ae+2]&255|(Q[ae+3]&255)<<8,Bt+=(ue>>>13|Me<<3)&8191,ke=Q[ae+4]&255|(Q[ae+5]&255)<<8,xt+=(Me>>>10|ke<<6)&8191,Ue=Q[ae+6]&255|(Q[ae+7]&255)<<8,Ze+=(ke>>>7|Ue<<9)&8191,ot=Q[ae+8]&255|(Q[ae+9]&255)<<8,Xe+=(Ue>>>4|ot<<12)&8191,ht+=ot>>>1&8191,rt=Q[ae+10]&255|(Q[ae+11]&255)<<8,ct+=(ot>>>14|rt<<2)&8191,Qe=Q[ae+12]&255|(Q[ae+13]&255)<<8,mt+=(rt>>>11|Qe<<5)&8191,Wt=Q[ae+14]&255|(Q[ae+15]&255)<<8,St+=(Qe>>>8|Wt<<8)&8191,Qt+=Wt>>>5|H,At=0,vt=At,vt+=Ot*pn,vt+=Bt*(5*$n),vt+=xt*(5*On),vt+=Ze*(5*mn),vt+=Xe*(5*Ln),At=vt>>>13,vt&=8191,vt+=ht*(5*Dn),vt+=ct*(5*An),vt+=mt*(5*Pe),vt+=St*(5*cn),vt+=Qt*(5*hn),At+=vt>>>13,vt&=8191,$t=At,$t+=Ot*hn,$t+=Bt*pn,$t+=xt*(5*$n),$t+=Ze*(5*On),$t+=Xe*(5*mn),At=$t>>>13,$t&=8191,$t+=ht*(5*Ln),$t+=ct*(5*Dn),$t+=mt*(5*An),$t+=St*(5*Pe),$t+=Qt*(5*cn),At+=$t>>>13,$t&=8191,Ut=At,Ut+=Ot*cn,Ut+=Bt*hn,Ut+=xt*pn,Ut+=Ze*(5*$n),Ut+=Xe*(5*On),At=Ut>>>13,Ut&=8191,Ut+=ht*(5*mn),Ut+=ct*(5*Ln),Ut+=mt*(5*Dn),Ut+=St*(5*An),Ut+=Qt*(5*Pe),At+=Ut>>>13,Ut&=8191,_t=At,_t+=Ot*Pe,_t+=Bt*cn,_t+=xt*hn,_t+=Ze*pn,_t+=Xe*(5*$n),At=_t>>>13,_t&=8191,_t+=ht*(5*On),_t+=ct*(5*mn),_t+=mt*(5*Ln),_t+=St*(5*Dn),_t+=Qt*(5*An),At+=_t>>>13,_t&=8191,Ct=At,Ct+=Ot*An,Ct+=Bt*Pe,Ct+=xt*cn,Ct+=Ze*hn,Ct+=Xe*pn,At=Ct>>>13,Ct&=8191,Ct+=ht*(5*$n),Ct+=ct*(5*On),Ct+=mt*(5*mn),Ct+=St*(5*Ln),Ct+=Qt*(5*Dn),At+=Ct>>>13,Ct&=8191,Mt=At,Mt+=Ot*Dn,Mt+=Bt*An,Mt+=xt*Pe,Mt+=Ze*cn,Mt+=Xe*hn,At=Mt>>>13,Mt&=8191,Mt+=ht*pn,Mt+=ct*(5*$n),Mt+=mt*(5*On),Mt+=St*(5*mn),Mt+=Qt*(5*Ln),At+=Mt>>>13,Mt&=8191,Ht=At,Ht+=Ot*Ln,Ht+=Bt*Dn,Ht+=xt*An,Ht+=Ze*Pe,Ht+=Xe*cn,At=Ht>>>13,Ht&=8191,Ht+=ht*hn,Ht+=ct*pn,Ht+=mt*(5*$n),Ht+=St*(5*On),Ht+=Qt*(5*mn),At+=Ht>>>13,Ht&=8191,Lt=At,Lt+=Ot*mn,Lt+=Bt*Ln,Lt+=xt*Dn,Lt+=Ze*An,Lt+=Xe*Pe,At=Lt>>>13,Lt&=8191,Lt+=ht*cn,Lt+=ct*hn,Lt+=mt*pn,Lt+=St*(5*$n),Lt+=Qt*(5*On),At+=Lt>>>13,Lt&=8191,Nt=At,Nt+=Ot*On,Nt+=Bt*mn,Nt+=xt*Ln,Nt+=Ze*Dn,Nt+=Xe*An,At=Nt>>>13,Nt&=8191,Nt+=ht*Pe,Nt+=ct*cn,Nt+=mt*hn,Nt+=St*pn,Nt+=Qt*(5*$n),At+=Nt>>>13,Nt&=8191,It=At,It+=Ot*$n,It+=Bt*On,It+=xt*mn,It+=Ze*Ln,It+=Xe*Dn,At=It>>>13,It&=8191,It+=ht*An,It+=ct*Pe,It+=mt*cn,It+=St*hn,It+=Qt*pn,At+=It>>>13,It&=8191,At=(At<<2)+At|0,At=At+vt|0,vt=At&8191,At=At>>>13,$t+=At,Ot=vt,Bt=$t,xt=Ut,Ze=_t,Xe=Ct,ht=Mt,ct=Ht,mt=Lt,St=Nt,Qt=It,ae+=16,fe-=16;this.h[0]=Ot,this.h[1]=Bt,this.h[2]=xt,this.h[3]=Ze,this.h[4]=Xe,this.h[5]=ht,this.h[6]=ct,this.h[7]=mt,this.h[8]=St,this.h[9]=Qt},K.prototype.finish=function(Q,ae){var fe=new Uint16Array(10),H,ue,Me,ke;if(this.leftover){for(ke=this.leftover,this.buffer[ke++]=1;ke<16;ke++)this.buffer[ke]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(H=this.h[1]>>>13,this.h[1]&=8191,ke=2;ke<10;ke++)this.h[ke]+=H,H=this.h[ke]>>>13,this.h[ke]&=8191;for(this.h[0]+=H*5,H=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=H,H=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=H,fe[0]=this.h[0]+5,H=fe[0]>>>13,fe[0]&=8191,ke=1;ke<10;ke++)fe[ke]=this.h[ke]+H,H=fe[ke]>>>13,fe[ke]&=8191;for(fe[9]-=8192,ue=(H^1)-1,ke=0;ke<10;ke++)fe[ke]&=ue;for(ue=~ue,ke=0;ke<10;ke++)this.h[ke]=this.h[ke]&ue|fe[ke];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Me=this.h[0]+this.pad[0],this.h[0]=Me&65535,ke=1;ke<8;ke++)Me=(this.h[ke]+this.pad[ke]|0)+(Me>>>16)|0,this.h[ke]=Me&65535;Q[ae+0]=this.h[0]>>>0&255,Q[ae+1]=this.h[0]>>>8&255,Q[ae+2]=this.h[1]>>>0&255,Q[ae+3]=this.h[1]>>>8&255,Q[ae+4]=this.h[2]>>>0&255,Q[ae+5]=this.h[2]>>>8&255,Q[ae+6]=this.h[3]>>>0&255,Q[ae+7]=this.h[3]>>>8&255,Q[ae+8]=this.h[4]>>>0&255,Q[ae+9]=this.h[4]>>>8&255,Q[ae+10]=this.h[5]>>>0&255,Q[ae+11]=this.h[5]>>>8&255,Q[ae+12]=this.h[6]>>>0&255,Q[ae+13]=this.h[6]>>>8&255,Q[ae+14]=this.h[7]>>>0&255,Q[ae+15]=this.h[7]>>>8&255},K.prototype.update=function(Q,ae,fe){var H,ue;if(this.leftover){for(ue=16-this.leftover,ue>fe&&(ue=fe),H=0;H<ue;H++)this.buffer[this.leftover+H]=Q[ae+H];if(fe-=ue,ae+=ue,this.leftover+=ue,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(fe>=16&&(ue=fe-fe%16,this.blocks(Q,ae,ue),ae+=ue,fe-=ue),fe){for(H=0;H<fe;H++)this.buffer[this.leftover+H]=Q[ae+H];this.leftover+=fe}};function B(Q,ae,fe,H,ue,Me){var ke=new K(Me);return ke.update(fe,H,ue),ke.finish(Q,ae),0}function E(Q,ae,fe,H,ue,Me){var ke=new Uint8Array(16);return B(ke,0,fe,H,ue,Me),_(Q,ae,ke,0)}function f(Q,ae,fe,H,ue){var Me;if(fe<32)return-1;for(se(Q,0,ae,0,fe,H,ue),B(Q,16,Q,32,fe-32,Q),Me=0;Me<16;Me++)Q[Me]=0;return 0}function h(Q,ae,fe,H,ue){var Me,ke=new Uint8Array(32);if(fe<32||(ie(ke,0,32,H,ue),E(ae,16,ae,32,fe-32,ke)!==0))return-1;for(se(Q,0,ae,0,fe,H,ue),Me=0;Me<32;Me++)Q[Me]=0;return 0}function T(Q,ae){var fe;for(fe=0;fe<16;fe++)Q[fe]=ae[fe]|0}function w(Q){var ae,fe,H=1;for(ae=0;ae<16;ae++)fe=Q[ae]+H+65535,H=Math.floor(fe/65536),Q[ae]=fe-H*65536;Q[0]+=H-1+37*(H-1)}function R(Q,ae,fe){for(var H,ue=~(fe-1),Me=0;Me<16;Me++)H=ue&(Q[Me]^ae[Me]),Q[Me]^=H,ae[Me]^=H}function I(Q,ae){var fe,H,ue,Me=n(),ke=n();for(fe=0;fe<16;fe++)ke[fe]=ae[fe];for(w(ke),w(ke),w(ke),H=0;H<2;H++){for(Me[0]=ke[0]-65517,fe=1;fe<15;fe++)Me[fe]=ke[fe]-65535-(Me[fe-1]>>16&1),Me[fe-1]&=65535;Me[15]=ke[15]-32767-(Me[14]>>16&1),ue=Me[15]>>16&1,Me[14]&=65535,R(ke,Me,1-ue)}for(fe=0;fe<16;fe++)Q[2*fe]=ke[fe]&255,Q[2*fe+1]=ke[fe]>>8}function C(Q,ae){var fe=new Uint8Array(32),H=new Uint8Array(32);return I(fe,Q),I(H,ae),S(fe,0,H,0)}function x(Q){var ae=new Uint8Array(32);return I(ae,Q),ae[0]&1}function v(Q,ae){var fe;for(fe=0;fe<16;fe++)Q[fe]=ae[2*fe]+(ae[2*fe+1]<<8);Q[15]&=32767}function k(Q,ae,fe){for(var H=0;H<16;H++)Q[H]=ae[H]+fe[H]}function ne(Q,ae,fe){for(var H=0;H<16;H++)Q[H]=ae[H]-fe[H]}function N(Q,ae,fe){var H,ue,Me=0,ke=0,Ue=0,ot=0,rt=0,Qe=0,Wt=0,At=0,vt=0,$t=0,Ut=0,_t=0,Ct=0,Mt=0,Ht=0,Lt=0,Nt=0,It=0,Ot=0,Bt=0,xt=0,Ze=0,Xe=0,ht=0,ct=0,mt=0,St=0,Qt=0,pn=0,hn=0,cn=0,Pe=fe[0],An=fe[1],Dn=fe[2],Ln=fe[3],mn=fe[4],On=fe[5],$n=fe[6],dr=fe[7],jn=fe[8],Qn=fe[9],pr=fe[10],hr=fe[11],Vr=fe[12],ri=fe[13],ii=fe[14],ai=fe[15];H=ae[0],Me+=H*Pe,ke+=H*An,Ue+=H*Dn,ot+=H*Ln,rt+=H*mn,Qe+=H*On,Wt+=H*$n,At+=H*dr,vt+=H*jn,$t+=H*Qn,Ut+=H*pr,_t+=H*hr,Ct+=H*Vr,Mt+=H*ri,Ht+=H*ii,Lt+=H*ai,H=ae[1],ke+=H*Pe,Ue+=H*An,ot+=H*Dn,rt+=H*Ln,Qe+=H*mn,Wt+=H*On,At+=H*$n,vt+=H*dr,$t+=H*jn,Ut+=H*Qn,_t+=H*pr,Ct+=H*hr,Mt+=H*Vr,Ht+=H*ri,Lt+=H*ii,Nt+=H*ai,H=ae[2],Ue+=H*Pe,ot+=H*An,rt+=H*Dn,Qe+=H*Ln,Wt+=H*mn,At+=H*On,vt+=H*$n,$t+=H*dr,Ut+=H*jn,_t+=H*Qn,Ct+=H*pr,Mt+=H*hr,Ht+=H*Vr,Lt+=H*ri,Nt+=H*ii,It+=H*ai,H=ae[3],ot+=H*Pe,rt+=H*An,Qe+=H*Dn,Wt+=H*Ln,At+=H*mn,vt+=H*On,$t+=H*$n,Ut+=H*dr,_t+=H*jn,Ct+=H*Qn,Mt+=H*pr,Ht+=H*hr,Lt+=H*Vr,Nt+=H*ri,It+=H*ii,Ot+=H*ai,H=ae[4],rt+=H*Pe,Qe+=H*An,Wt+=H*Dn,At+=H*Ln,vt+=H*mn,$t+=H*On,Ut+=H*$n,_t+=H*dr,Ct+=H*jn,Mt+=H*Qn,Ht+=H*pr,Lt+=H*hr,Nt+=H*Vr,It+=H*ri,Ot+=H*ii,Bt+=H*ai,H=ae[5],Qe+=H*Pe,Wt+=H*An,At+=H*Dn,vt+=H*Ln,$t+=H*mn,Ut+=H*On,_t+=H*$n,Ct+=H*dr,Mt+=H*jn,Ht+=H*Qn,Lt+=H*pr,Nt+=H*hr,It+=H*Vr,Ot+=H*ri,Bt+=H*ii,xt+=H*ai,H=ae[6],Wt+=H*Pe,At+=H*An,vt+=H*Dn,$t+=H*Ln,Ut+=H*mn,_t+=H*On,Ct+=H*$n,Mt+=H*dr,Ht+=H*jn,Lt+=H*Qn,Nt+=H*pr,It+=H*hr,Ot+=H*Vr,Bt+=H*ri,xt+=H*ii,Ze+=H*ai,H=ae[7],At+=H*Pe,vt+=H*An,$t+=H*Dn,Ut+=H*Ln,_t+=H*mn,Ct+=H*On,Mt+=H*$n,Ht+=H*dr,Lt+=H*jn,Nt+=H*Qn,It+=H*pr,Ot+=H*hr,Bt+=H*Vr,xt+=H*ri,Ze+=H*ii,Xe+=H*ai,H=ae[8],vt+=H*Pe,$t+=H*An,Ut+=H*Dn,_t+=H*Ln,Ct+=H*mn,Mt+=H*On,Ht+=H*$n,Lt+=H*dr,Nt+=H*jn,It+=H*Qn,Ot+=H*pr,Bt+=H*hr,xt+=H*Vr,Ze+=H*ri,Xe+=H*ii,ht+=H*ai,H=ae[9],$t+=H*Pe,Ut+=H*An,_t+=H*Dn,Ct+=H*Ln,Mt+=H*mn,Ht+=H*On,Lt+=H*$n,Nt+=H*dr,It+=H*jn,Ot+=H*Qn,Bt+=H*pr,xt+=H*hr,Ze+=H*Vr,Xe+=H*ri,ht+=H*ii,ct+=H*ai,H=ae[10],Ut+=H*Pe,_t+=H*An,Ct+=H*Dn,Mt+=H*Ln,Ht+=H*mn,Lt+=H*On,Nt+=H*$n,It+=H*dr,Ot+=H*jn,Bt+=H*Qn,xt+=H*pr,Ze+=H*hr,Xe+=H*Vr,ht+=H*ri,ct+=H*ii,mt+=H*ai,H=ae[11],_t+=H*Pe,Ct+=H*An,Mt+=H*Dn,Ht+=H*Ln,Lt+=H*mn,Nt+=H*On,It+=H*$n,Ot+=H*dr,Bt+=H*jn,xt+=H*Qn,Ze+=H*pr,Xe+=H*hr,ht+=H*Vr,ct+=H*ri,mt+=H*ii,St+=H*ai,H=ae[12],Ct+=H*Pe,Mt+=H*An,Ht+=H*Dn,Lt+=H*Ln,Nt+=H*mn,It+=H*On,Ot+=H*$n,Bt+=H*dr,xt+=H*jn,Ze+=H*Qn,Xe+=H*pr,ht+=H*hr,ct+=H*Vr,mt+=H*ri,St+=H*ii,Qt+=H*ai,H=ae[13],Mt+=H*Pe,Ht+=H*An,Lt+=H*Dn,Nt+=H*Ln,It+=H*mn,Ot+=H*On,Bt+=H*$n,xt+=H*dr,Ze+=H*jn,Xe+=H*Qn,ht+=H*pr,ct+=H*hr,mt+=H*Vr,St+=H*ri,Qt+=H*ii,pn+=H*ai,H=ae[14],Ht+=H*Pe,Lt+=H*An,Nt+=H*Dn,It+=H*Ln,Ot+=H*mn,Bt+=H*On,xt+=H*$n,Ze+=H*dr,Xe+=H*jn,ht+=H*Qn,ct+=H*pr,mt+=H*hr,St+=H*Vr,Qt+=H*ri,pn+=H*ii,hn+=H*ai,H=ae[15],Lt+=H*Pe,Nt+=H*An,It+=H*Dn,Ot+=H*Ln,Bt+=H*mn,xt+=H*On,Ze+=H*$n,Xe+=H*dr,ht+=H*jn,ct+=H*Qn,mt+=H*pr,St+=H*hr,Qt+=H*Vr,pn+=H*ri,hn+=H*ii,cn+=H*ai,Me+=38*Nt,ke+=38*It,Ue+=38*Ot,ot+=38*Bt,rt+=38*xt,Qe+=38*Ze,Wt+=38*Xe,At+=38*ht,vt+=38*ct,$t+=38*mt,Ut+=38*St,_t+=38*Qt,Ct+=38*pn,Mt+=38*hn,Ht+=38*cn,ue=1,H=Me+ue+65535,ue=Math.floor(H/65536),Me=H-ue*65536,H=ke+ue+65535,ue=Math.floor(H/65536),ke=H-ue*65536,H=Ue+ue+65535,ue=Math.floor(H/65536),Ue=H-ue*65536,H=ot+ue+65535,ue=Math.floor(H/65536),ot=H-ue*65536,H=rt+ue+65535,ue=Math.floor(H/65536),rt=H-ue*65536,H=Qe+ue+65535,ue=Math.floor(H/65536),Qe=H-ue*65536,H=Wt+ue+65535,ue=Math.floor(H/65536),Wt=H-ue*65536,H=At+ue+65535,ue=Math.floor(H/65536),At=H-ue*65536,H=vt+ue+65535,ue=Math.floor(H/65536),vt=H-ue*65536,H=$t+ue+65535,ue=Math.floor(H/65536),$t=H-ue*65536,H=Ut+ue+65535,ue=Math.floor(H/65536),Ut=H-ue*65536,H=_t+ue+65535,ue=Math.floor(H/65536),_t=H-ue*65536,H=Ct+ue+65535,ue=Math.floor(H/65536),Ct=H-ue*65536,H=Mt+ue+65535,ue=Math.floor(H/65536),Mt=H-ue*65536,H=Ht+ue+65535,ue=Math.floor(H/65536),Ht=H-ue*65536,H=Lt+ue+65535,ue=Math.floor(H/65536),Lt=H-ue*65536,Me+=ue-1+37*(ue-1),ue=1,H=Me+ue+65535,ue=Math.floor(H/65536),Me=H-ue*65536,H=ke+ue+65535,ue=Math.floor(H/65536),ke=H-ue*65536,H=Ue+ue+65535,ue=Math.floor(H/65536),Ue=H-ue*65536,H=ot+ue+65535,ue=Math.floor(H/65536),ot=H-ue*65536,H=rt+ue+65535,ue=Math.floor(H/65536),rt=H-ue*65536,H=Qe+ue+65535,ue=Math.floor(H/65536),Qe=H-ue*65536,H=Wt+ue+65535,ue=Math.floor(H/65536),Wt=H-ue*65536,H=At+ue+65535,ue=Math.floor(H/65536),At=H-ue*65536,H=vt+ue+65535,ue=Math.floor(H/65536),vt=H-ue*65536,H=$t+ue+65535,ue=Math.floor(H/65536),$t=H-ue*65536,H=Ut+ue+65535,ue=Math.floor(H/65536),Ut=H-ue*65536,H=_t+ue+65535,ue=Math.floor(H/65536),_t=H-ue*65536,H=Ct+ue+65535,ue=Math.floor(H/65536),Ct=H-ue*65536,H=Mt+ue+65535,ue=Math.floor(H/65536),Mt=H-ue*65536,H=Ht+ue+65535,ue=Math.floor(H/65536),Ht=H-ue*65536,H=Lt+ue+65535,ue=Math.floor(H/65536),Lt=H-ue*65536,Me+=ue-1+37*(ue-1),Q[0]=Me,Q[1]=ke,Q[2]=Ue,Q[3]=ot,Q[4]=rt,Q[5]=Qe,Q[6]=Wt,Q[7]=At,Q[8]=vt,Q[9]=$t,Q[10]=Ut,Q[11]=_t,Q[12]=Ct,Q[13]=Mt,Q[14]=Ht,Q[15]=Lt}function Y(Q,ae){N(Q,ae,ae)}function re(Q,ae){var fe=n(),H;for(H=0;H<16;H++)fe[H]=ae[H];for(H=253;H>=0;H--)Y(fe,fe),H!==2&&H!==4&&N(fe,fe,ae);for(H=0;H<16;H++)Q[H]=fe[H]}function le(Q,ae){var fe=n(),H;for(H=0;H<16;H++)fe[H]=ae[H];for(H=250;H>=0;H--)Y(fe,fe),H!==1&&N(fe,fe,ae);for(H=0;H<16;H++)Q[H]=fe[H]}function ge(Q,ae,fe){var H=new Uint8Array(32),ue=new Float64Array(80),Me,ke,Ue=n(),ot=n(),rt=n(),Qe=n(),Wt=n(),At=n();for(ke=0;ke<31;ke++)H[ke]=ae[ke];for(H[31]=ae[31]&127|64,H[0]&=248,v(ue,fe),ke=0;ke<16;ke++)ot[ke]=ue[ke],Qe[ke]=Ue[ke]=rt[ke]=0;for(Ue[0]=Qe[0]=1,ke=254;ke>=0;--ke)Me=H[ke>>>3]>>>(ke&7)&1,R(Ue,ot,Me),R(rt,Qe,Me),k(Wt,Ue,rt),ne(Ue,Ue,rt),k(rt,ot,Qe),ne(ot,ot,Qe),Y(Qe,Wt),Y(At,Ue),N(Ue,rt,Ue),N(rt,ot,Wt),k(Wt,Ue,rt),ne(Ue,Ue,rt),Y(ot,Ue),ne(rt,Qe,At),N(Ue,rt,l),k(Ue,Ue,Qe),N(rt,rt,Ue),N(Ue,Qe,At),N(Qe,ot,ue),Y(ot,Wt),R(Ue,ot,Me),R(rt,Qe,Me);for(ke=0;ke<16;ke++)ue[ke+16]=Ue[ke],ue[ke+32]=rt[ke],ue[ke+48]=ot[ke],ue[ke+64]=Qe[ke];var vt=ue.subarray(32),$t=ue.subarray(16);return re(vt,vt),N($t,$t,vt),I(Q,$t),0}function Se(Q,ae){return ge(Q,ae,a)}function j(Q,ae){return r(ae,32),Se(Q,ae)}function M(Q,ae,fe){var H=new Uint8Array(32);return ge(H,fe,ae),U(Q,i,H,L)}var z=f,W=h;function ee(Q,ae,fe,H,ue,Me){var ke=new Uint8Array(32);return M(ke,ue,Me),z(Q,ae,fe,H,ke)}function ve(Q,ae,fe,H,ue,Me){var ke=new Uint8Array(32);return M(ke,ue,Me),W(Q,ae,fe,H,ke)}var he=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function oe(Q,ae,fe,H){for(var ue=new Int32Array(16),Me=new Int32Array(16),ke,Ue,ot,rt,Qe,Wt,At,vt,$t,Ut,_t,Ct,Mt,Ht,Lt,Nt,It,Ot,Bt,xt,Ze,Xe,ht,ct,mt,St,Qt=Q[0],pn=Q[1],hn=Q[2],cn=Q[3],Pe=Q[4],An=Q[5],Dn=Q[6],Ln=Q[7],mn=ae[0],On=ae[1],$n=ae[2],dr=ae[3],jn=ae[4],Qn=ae[5],pr=ae[6],hr=ae[7],Vr=0;H>=128;){for(Bt=0;Bt<16;Bt++)xt=8*Bt+Vr,ue[Bt]=fe[xt+0]<<24|fe[xt+1]<<16|fe[xt+2]<<8|fe[xt+3],Me[Bt]=fe[xt+4]<<24|fe[xt+5]<<16|fe[xt+6]<<8|fe[xt+7];for(Bt=0;Bt<80;Bt++)if(ke=Qt,Ue=pn,ot=hn,rt=cn,Qe=Pe,Wt=An,At=Dn,vt=Ln,$t=mn,Ut=On,_t=$n,Ct=dr,Mt=jn,Ht=Qn,Lt=pr,Nt=hr,Ze=Ln,Xe=hr,ht=Xe&65535,ct=Xe>>>16,mt=Ze&65535,St=Ze>>>16,Ze=(Pe>>>14|jn<<18)^(Pe>>>18|jn<<14)^(jn>>>9|Pe<<23),Xe=(jn>>>14|Pe<<18)^(jn>>>18|Pe<<14)^(Pe>>>9|jn<<23),ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,Ze=Pe&An^~Pe&Dn,Xe=jn&Qn^~jn&pr,ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,Ze=he[Bt*2],Xe=he[Bt*2+1],ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,Ze=ue[Bt%16],Xe=Me[Bt%16],ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,ct+=ht>>>16,mt+=ct>>>16,St+=mt>>>16,It=mt&65535|St<<16,Ot=ht&65535|ct<<16,Ze=It,Xe=Ot,ht=Xe&65535,ct=Xe>>>16,mt=Ze&65535,St=Ze>>>16,Ze=(Qt>>>28|mn<<4)^(mn>>>2|Qt<<30)^(mn>>>7|Qt<<25),Xe=(mn>>>28|Qt<<4)^(Qt>>>2|mn<<30)^(Qt>>>7|mn<<25),ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,Ze=Qt&pn^Qt&hn^pn&hn,Xe=mn&On^mn&$n^On&$n,ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,ct+=ht>>>16,mt+=ct>>>16,St+=mt>>>16,vt=mt&65535|St<<16,Nt=ht&65535|ct<<16,Ze=rt,Xe=Ct,ht=Xe&65535,ct=Xe>>>16,mt=Ze&65535,St=Ze>>>16,Ze=It,Xe=Ot,ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,ct+=ht>>>16,mt+=ct>>>16,St+=mt>>>16,rt=mt&65535|St<<16,Ct=ht&65535|ct<<16,pn=ke,hn=Ue,cn=ot,Pe=rt,An=Qe,Dn=Wt,Ln=At,Qt=vt,On=$t,$n=Ut,dr=_t,jn=Ct,Qn=Mt,pr=Ht,hr=Lt,mn=Nt,Bt%16===15)for(xt=0;xt<16;xt++)Ze=ue[xt],Xe=Me[xt],ht=Xe&65535,ct=Xe>>>16,mt=Ze&65535,St=Ze>>>16,Ze=ue[(xt+9)%16],Xe=Me[(xt+9)%16],ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,It=ue[(xt+1)%16],Ot=Me[(xt+1)%16],Ze=(It>>>1|Ot<<31)^(It>>>8|Ot<<24)^It>>>7,Xe=(Ot>>>1|It<<31)^(Ot>>>8|It<<24)^(Ot>>>7|It<<25),ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,It=ue[(xt+14)%16],Ot=Me[(xt+14)%16],Ze=(It>>>19|Ot<<13)^(Ot>>>29|It<<3)^It>>>6,Xe=(Ot>>>19|It<<13)^(It>>>29|Ot<<3)^(Ot>>>6|It<<26),ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,ct+=ht>>>16,mt+=ct>>>16,St+=mt>>>16,ue[xt]=mt&65535|St<<16,Me[xt]=ht&65535|ct<<16;Ze=Qt,Xe=mn,ht=Xe&65535,ct=Xe>>>16,mt=Ze&65535,St=Ze>>>16,Ze=Q[0],Xe=ae[0],ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,ct+=ht>>>16,mt+=ct>>>16,St+=mt>>>16,Q[0]=Qt=mt&65535|St<<16,ae[0]=mn=ht&65535|ct<<16,Ze=pn,Xe=On,ht=Xe&65535,ct=Xe>>>16,mt=Ze&65535,St=Ze>>>16,Ze=Q[1],Xe=ae[1],ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,ct+=ht>>>16,mt+=ct>>>16,St+=mt>>>16,Q[1]=pn=mt&65535|St<<16,ae[1]=On=ht&65535|ct<<16,Ze=hn,Xe=$n,ht=Xe&65535,ct=Xe>>>16,mt=Ze&65535,St=Ze>>>16,Ze=Q[2],Xe=ae[2],ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,ct+=ht>>>16,mt+=ct>>>16,St+=mt>>>16,Q[2]=hn=mt&65535|St<<16,ae[2]=$n=ht&65535|ct<<16,Ze=cn,Xe=dr,ht=Xe&65535,ct=Xe>>>16,mt=Ze&65535,St=Ze>>>16,Ze=Q[3],Xe=ae[3],ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,ct+=ht>>>16,mt+=ct>>>16,St+=mt>>>16,Q[3]=cn=mt&65535|St<<16,ae[3]=dr=ht&65535|ct<<16,Ze=Pe,Xe=jn,ht=Xe&65535,ct=Xe>>>16,mt=Ze&65535,St=Ze>>>16,Ze=Q[4],Xe=ae[4],ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,ct+=ht>>>16,mt+=ct>>>16,St+=mt>>>16,Q[4]=Pe=mt&65535|St<<16,ae[4]=jn=ht&65535|ct<<16,Ze=An,Xe=Qn,ht=Xe&65535,ct=Xe>>>16,mt=Ze&65535,St=Ze>>>16,Ze=Q[5],Xe=ae[5],ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,ct+=ht>>>16,mt+=ct>>>16,St+=mt>>>16,Q[5]=An=mt&65535|St<<16,ae[5]=Qn=ht&65535|ct<<16,Ze=Dn,Xe=pr,ht=Xe&65535,ct=Xe>>>16,mt=Ze&65535,St=Ze>>>16,Ze=Q[6],Xe=ae[6],ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,ct+=ht>>>16,mt+=ct>>>16,St+=mt>>>16,Q[6]=Dn=mt&65535|St<<16,ae[6]=pr=ht&65535|ct<<16,Ze=Ln,Xe=hr,ht=Xe&65535,ct=Xe>>>16,mt=Ze&65535,St=Ze>>>16,Ze=Q[7],Xe=ae[7],ht+=Xe&65535,ct+=Xe>>>16,mt+=Ze&65535,St+=Ze>>>16,ct+=ht>>>16,mt+=ct>>>16,St+=mt>>>16,Q[7]=Ln=mt&65535|St<<16,ae[7]=hr=ht&65535|ct<<16,Vr+=128,H-=128}return H}function ye(Q,ae,fe){var H=new Int32Array(8),ue=new Int32Array(8),Me=new Uint8Array(256),ke,Ue=fe;for(H[0]=1779033703,H[1]=3144134277,H[2]=1013904242,H[3]=2773480762,H[4]=1359893119,H[5]=2600822924,H[6]=528734635,H[7]=1541459225,ue[0]=4089235720,ue[1]=2227873595,ue[2]=4271175723,ue[3]=1595750129,ue[4]=2917565137,ue[5]=725511199,ue[6]=4215389547,ue[7]=327033209,oe(H,ue,ae,fe),fe%=128,ke=0;ke<fe;ke++)Me[ke]=ae[Ue-fe+ke];for(Me[fe]=128,fe=256-128*(fe<112?1:0),Me[fe-9]=0,y(Me,fe-8,Ue/536870912|0,Ue<<3),oe(H,ue,Me,fe),ke=0;ke<8;ke++)y(Q,8*ke,H[ke],ue[ke]);return 0}function we(Q,ae){var fe=n(),H=n(),ue=n(),Me=n(),ke=n(),Ue=n(),ot=n(),rt=n(),Qe=n();ne(fe,Q[1],Q[0]),ne(Qe,ae[1],ae[0]),N(fe,fe,Qe),k(H,Q[0],Q[1]),k(Qe,ae[0],ae[1]),N(H,H,Qe),N(ue,Q[3],ae[3]),N(ue,ue,u),N(Me,Q[2],ae[2]),k(Me,Me,Me),ne(ke,H,fe),ne(Ue,Me,ue),k(ot,Me,ue),k(rt,H,fe),N(Q[0],ke,Ue),N(Q[1],rt,ot),N(Q[2],ot,Ue),N(Q[3],ke,rt)}function Te(Q,ae,fe){var H;for(H=0;H<4;H++)R(Q[H],ae[H],fe)}function Ve(Q,ae){var fe=n(),H=n(),ue=n();re(ue,ae[2]),N(fe,ae[0],ue),N(H,ae[1],ue),I(Q,H),Q[31]^=x(fe)<<7}function Ke(Q,ae,fe){var H,ue;for(T(Q[0],o),T(Q[1],s),T(Q[2],s),T(Q[3],o),ue=255;ue>=0;--ue)H=fe[ue/8|0]>>(ue&7)&1,Te(Q,ae,H),we(ae,Q),we(Q,Q),Te(Q,ae,H)}function je(Q,ae){var fe=[n(),n(),n(),n()];T(fe[0],d),T(fe[1],p),T(fe[2],s),N(fe[3],d,p),Ke(Q,fe,ae)}function Ge(Q,ae,fe){var H=new Uint8Array(64),ue=[n(),n(),n(),n()],Me;for(fe||r(ae,32),ye(H,ae,32),H[0]&=248,H[31]&=127,H[31]|=64,je(ue,H),Ve(Q,ue),Me=0;Me<32;Me++)ae[Me+32]=Q[Me];return 0}var pe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Ae(Q,ae){var fe,H,ue,Me;for(H=63;H>=32;--H){for(fe=0,ue=H-32,Me=H-12;ue<Me;++ue)ae[ue]+=fe-16*ae[H]*pe[ue-(H-32)],fe=Math.floor((ae[ue]+128)/256),ae[ue]-=fe*256;ae[ue]+=fe,ae[H]=0}for(fe=0,ue=0;ue<32;ue++)ae[ue]+=fe-(ae[31]>>4)*pe[ue],fe=ae[ue]>>8,ae[ue]&=255;for(ue=0;ue<32;ue++)ae[ue]-=fe*pe[ue];for(H=0;H<32;H++)ae[H+1]+=ae[H]>>8,Q[H]=ae[H]&255}function Fe(Q){var ae=new Float64Array(64),fe;for(fe=0;fe<64;fe++)ae[fe]=Q[fe];for(fe=0;fe<64;fe++)Q[fe]=0;Ae(Q,ae)}function Re(Q,ae,fe,H){var ue=new Uint8Array(64),Me=new Uint8Array(64),ke=new Uint8Array(64),Ue,ot,rt=new Float64Array(64),Qe=[n(),n(),n(),n()];ye(ue,H,32),ue[0]&=248,ue[31]&=127,ue[31]|=64;var Wt=fe+64;for(Ue=0;Ue<fe;Ue++)Q[64+Ue]=ae[Ue];for(Ue=0;Ue<32;Ue++)Q[32+Ue]=ue[32+Ue];for(ye(ke,Q.subarray(32),fe+32),Fe(ke),je(Qe,ke),Ve(Q,Qe),Ue=32;Ue<64;Ue++)Q[Ue]=H[Ue];for(ye(Me,Q,fe+64),Fe(Me),Ue=0;Ue<64;Ue++)rt[Ue]=0;for(Ue=0;Ue<32;Ue++)rt[Ue]=ke[Ue];for(Ue=0;Ue<32;Ue++)for(ot=0;ot<32;ot++)rt[Ue+ot]+=Me[Ue]*ue[ot];return Ae(Q.subarray(32),rt),Wt}function te(Q,ae){var fe=n(),H=n(),ue=n(),Me=n(),ke=n(),Ue=n(),ot=n();return T(Q[2],s),v(Q[1],ae),Y(ue,Q[1]),N(Me,ue,c),ne(ue,ue,Q[2]),k(Me,Q[2],Me),Y(ke,Me),Y(Ue,ke),N(ot,Ue,ke),N(fe,ot,ue),N(fe,fe,Me),le(fe,fe),N(fe,fe,ue),N(fe,fe,Me),N(fe,fe,Me),N(Q[0],fe,Me),Y(H,Q[0]),N(H,H,Me),C(H,ue)&&N(Q[0],Q[0],m),Y(H,Q[0]),N(H,H,Me),C(H,ue)?-1:(x(Q[0])===ae[31]>>7&&ne(Q[0],o,Q[0]),N(Q[3],Q[0],Q[1]),0)}function V(Q,ae,fe,H){var ue,Me=new Uint8Array(32),ke=new Uint8Array(64),Ue=[n(),n(),n(),n()],ot=[n(),n(),n(),n()];if(fe<64||te(ot,H))return-1;for(ue=0;ue<fe;ue++)Q[ue]=ae[ue];for(ue=0;ue<32;ue++)Q[ue+32]=H[ue];if(ye(ke,Q,fe),Fe(ke),Ke(Ue,ot,ke),je(ot,ae.subarray(32)),we(Ue,ot),Ve(Me,Ue),fe-=64,S(ae,0,Me,0)){for(ue=0;ue<fe;ue++)Q[ue]=0;return-1}for(ue=0;ue<fe;ue++)Q[ue]=ae[ue+64];return fe}var J=32,ce=24,Ce=32,_e=16,$e=32,Je=32,Be=32,Ne=32,st=32,Ye=ce,lt=Ce,Oe=_e,xe=64,De=32,it=64,tt=32,nt=64;t.lowlevel={crypto_core_hsalsa20:U,crypto_stream_xor:se,crypto_stream:ie,crypto_stream_salsa20_xor:F,crypto_stream_salsa20:G,crypto_onetimeauth:B,crypto_onetimeauth_verify:E,crypto_verify_16:_,crypto_verify_32:S,crypto_secretbox:f,crypto_secretbox_open:h,crypto_scalarmult:ge,crypto_scalarmult_base:Se,crypto_box_beforenm:M,crypto_box_afternm:z,crypto_box:ee,crypto_box_open:ve,crypto_box_keypair:j,crypto_hash:ye,crypto_sign:Re,crypto_sign_keypair:Ge,crypto_sign_open:V,crypto_secretbox_KEYBYTES:J,crypto_secretbox_NONCEBYTES:ce,crypto_secretbox_ZEROBYTES:Ce,crypto_secretbox_BOXZEROBYTES:_e,crypto_scalarmult_BYTES:$e,crypto_scalarmult_SCALARBYTES:Je,crypto_box_PUBLICKEYBYTES:Be,crypto_box_SECRETKEYBYTES:Ne,crypto_box_BEFORENMBYTES:st,crypto_box_NONCEBYTES:Ye,crypto_box_ZEROBYTES:lt,crypto_box_BOXZEROBYTES:Oe,crypto_sign_BYTES:xe,crypto_sign_PUBLICKEYBYTES:De,crypto_sign_SECRETKEYBYTES:it,crypto_sign_SEEDBYTES:tt,crypto_hash_BYTES:nt,gf:n,D:c,L:pe,pack25519:I,unpack25519:v,M:N,A:k,S:Y,Z:ne,pow2523:le,add:we,set25519:T,modL:Ae,scalarmult:Ke,scalarbase:je};function wt(Q,ae){if(Q.length!==J)throw new Error("bad key size");if(ae.length!==ce)throw new Error("bad nonce size")}function et(Q,ae){if(Q.length!==Be)throw new Error("bad public key size");if(ae.length!==Ne)throw new Error("bad secret key size")}function ze(){for(var Q=0;Q<arguments.length;Q++)if(!(arguments[Q]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Dt(Q){for(var ae=0;ae<Q.length;ae++)Q[ae]=0}t.randomBytes=function(Q){var ae=new Uint8Array(Q);return r(ae,Q),ae},t.secretbox=function(Q,ae,fe){ze(Q,ae,fe),wt(fe,ae);for(var H=new Uint8Array(Ce+Q.length),ue=new Uint8Array(H.length),Me=0;Me<Q.length;Me++)H[Me+Ce]=Q[Me];return f(ue,H,H.length,ae,fe),ue.subarray(_e)},t.secretbox.open=function(Q,ae,fe){ze(Q,ae,fe),wt(fe,ae);for(var H=new Uint8Array(_e+Q.length),ue=new Uint8Array(H.length),Me=0;Me<Q.length;Me++)H[Me+_e]=Q[Me];return H.length<32||h(ue,H,H.length,ae,fe)!==0?null:ue.subarray(Ce)},t.secretbox.keyLength=J,t.secretbox.nonceLength=ce,t.secretbox.overheadLength=_e,t.scalarMult=function(Q,ae){if(ze(Q,ae),Q.length!==Je)throw new Error("bad n size");if(ae.length!==$e)throw new Error("bad p size");var fe=new Uint8Array($e);return ge(fe,Q,ae),fe},t.scalarMult.base=function(Q){if(ze(Q),Q.length!==Je)throw new Error("bad n size");var ae=new Uint8Array($e);return Se(ae,Q),ae},t.scalarMult.scalarLength=Je,t.scalarMult.groupElementLength=$e,t.box=function(Q,ae,fe,H){var ue=t.box.before(fe,H);return t.secretbox(Q,ae,ue)},t.box.before=function(Q,ae){ze(Q,ae),et(Q,ae);var fe=new Uint8Array(st);return M(fe,Q,ae),fe},t.box.after=t.secretbox,t.box.open=function(Q,ae,fe,H){var ue=t.box.before(fe,H);return t.secretbox.open(Q,ae,ue)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var Q=new Uint8Array(Be),ae=new Uint8Array(Ne);return j(Q,ae),{publicKey:Q,secretKey:ae}},t.box.keyPair.fromSecretKey=function(Q){if(ze(Q),Q.length!==Ne)throw new Error("bad secret key size");var ae=new Uint8Array(Be);return Se(ae,Q),{publicKey:ae,secretKey:new Uint8Array(Q)}},t.box.publicKeyLength=Be,t.box.secretKeyLength=Ne,t.box.sharedKeyLength=st,t.box.nonceLength=Ye,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(Q,ae){if(ze(Q,ae),ae.length!==it)throw new Error("bad secret key size");var fe=new Uint8Array(xe+Q.length);return Re(fe,Q,Q.length,ae),fe},t.sign.open=function(Q,ae){if(ze(Q,ae),ae.length!==De)throw new Error("bad public key size");var fe=new Uint8Array(Q.length),H=V(fe,Q,Q.length,ae);if(H<0)return null;for(var ue=new Uint8Array(H),Me=0;Me<ue.length;Me++)ue[Me]=fe[Me];return ue},t.sign.detached=function(Q,ae){for(var fe=t.sign(Q,ae),H=new Uint8Array(xe),ue=0;ue<H.length;ue++)H[ue]=fe[ue];return H},t.sign.detached.verify=function(Q,ae,fe){if(ze(Q,ae,fe),ae.length!==xe)throw new Error("bad signature size");if(fe.length!==De)throw new Error("bad public key size");var H=new Uint8Array(xe+Q.length),ue=new Uint8Array(xe+Q.length),Me;for(Me=0;Me<xe;Me++)H[Me]=ae[Me];for(Me=0;Me<Q.length;Me++)H[Me+xe]=Q[Me];return V(ue,H,H.length,fe)>=0},t.sign.keyPair=function(){var Q=new Uint8Array(De),ae=new Uint8Array(it);return Ge(Q,ae),{publicKey:Q,secretKey:ae}},t.sign.keyPair.fromSecretKey=function(Q){if(ze(Q),Q.length!==it)throw new Error("bad secret key size");for(var ae=new Uint8Array(De),fe=0;fe<ae.length;fe++)ae[fe]=Q[32+fe];return{publicKey:ae,secretKey:new Uint8Array(Q)}},t.sign.keyPair.fromSeed=function(Q){if(ze(Q),Q.length!==tt)throw new Error("bad seed size");for(var ae=new Uint8Array(De),fe=new Uint8Array(it),H=0;H<32;H++)fe[H]=Q[H];return Ge(ae,fe,!0),{publicKey:ae,secretKey:fe}},t.sign.publicKeyLength=De,t.sign.secretKeyLength=it,t.sign.seedLength=tt,t.sign.signatureLength=xe,t.hash=function(Q){ze(Q);var ae=new Uint8Array(nt);return ye(ae,Q,Q.length),ae},t.hash.hashLength=nt,t.verify=function(Q,ae){return ze(Q,ae),Q.length===0||ae.length===0||Q.length!==ae.length?!1:b(Q,0,ae,0,Q.length)===0},t.setPRNG=function(Q){r=Q},function(){var Q=typeof self<"u"?self.crypto||self.msCrypto:null;if(Q&&Q.getRandomValues){var ae=65536;t.setPRNG(function(fe,H){var ue,Me=new Uint8Array(H);for(ue=0;ue<H;ue+=ae)Q.getRandomValues(Me.subarray(ue,ue+Math.min(H-ue,ae)));for(ue=0;ue<H;ue++)fe[ue]=Me[ue];Dt(Me)})}else typeof JC<"u"&&(Q=SQ(),Q&&Q.randomBytes&&t.setPRNG(function(fe,H){var ue,Me=Q.randomBytes(H);for(ue=0;ue<H;ue++)fe[ue]=Me[ue];Dt(Me)}))}()})(e.exports?e.exports:self.nacl=self.nacl||{})})(XZ);var wQ=XZ.exports;const Ul=zt(wQ),oze=Ul.box.publicKeyLength+Ul.box.overheadLength,sze="Input must be an string, Buffer or Uint8Array";function lze(e){let t;if(e instanceof Uint8Array)t=e;else if(typeof e=="string")t=new TextEncoder().encode(e);else throw new Error(sze);return t}function uze(e){return Array.prototype.map.call(e,function(t){return(t<16?"0":"")+t.toString(16)}).join("")}function lv(e){return(4294967296+e).toString(16).substring(1)}function cze(e,t,n){let r=`
|
|
427
427
|
`+e+" = ";for(let i=0;i<t.length;i+=2){if(n===32)r+=lv(t[i]).toUpperCase(),r+=" ",r+=lv(t[i+1]).toUpperCase();else if(n===64)r+=lv(t[i+1]).toUpperCase(),r+=lv(t[i]).toUpperCase();else throw new Error("Invalid size "+n);i%6===4?r+=`
|
|
428
|
-
`+new Array(e.length+4).join(" "):i<t.length-2&&(r+=" ")}console.log(r)}function fze(e,t,n){let r=new Date().getTime();const i=new Uint8Array(t);for(let o=0;o<t;o++)i[o]=o%256;const a=new Date().getTime();console.log("Generated random input in "+(a-r)+"ms"),r=a;for(let o=0;o<n;o++){const s=e(i),l=new Date().getTime(),c=l-r;r=l,console.log("Hashed in "+c+"ms: "+s.substring(0,20)+"..."),console.log(Math.round(t/(1<<20)/(c/1e3)*100)/100+" MB PER SECOND")}}var dze={normalizeInput:lze,toHex:uze,debugPrint:cze,testSpeed:fze};const $3=dze;function uv(e,t,n){const r=e[t]+e[n];let i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function sU(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let a=e[t+1]+r;i>=4294967296&&a++,e[t]=i,e[t+1]=a}function _Q(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function wu(e,t,n,r,i,a){const o=V0[i],s=V0[i+1],l=V0[a],c=V0[a+1];uv(bn,e,t),sU(bn,e,o,s);let u=bn[r]^bn[e],d=bn[r+1]^bn[e+1];bn[r]=d,bn[r+1]=u,uv(bn,n,r),u=bn[t]^bn[n],d=bn[t+1]^bn[n+1],bn[t]=u>>>24^d<<8,bn[t+1]=d>>>24^u<<8,uv(bn,e,t),sU(bn,e,l,c),u=bn[r]^bn[e],d=bn[r+1]^bn[e+1],bn[r]=u>>>16^d<<16,bn[r+1]=d>>>16^u<<16,uv(bn,n,r),u=bn[t]^bn[n],d=bn[t+1]^bn[n+1],bn[t]=d>>>31^u<<1,bn[t+1]=u>>>31^d<<1}const CQ=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),pze=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],Gi=new Uint8Array(pze.map(function(e){return e*2})),bn=new Uint32Array(32),V0=new Uint32Array(32);function RQ(e,t){let n=0;for(n=0;n<16;n++)bn[n]=e.h[n],bn[n+16]=CQ[n];for(bn[24]=bn[24]^e.t,bn[25]=bn[25]^e.t/4294967296,t&&(bn[28]=~bn[28],bn[29]=~bn[29]),n=0;n<32;n++)V0[n]=_Q(e.b,4*n);for(n=0;n<12;n++)wu(0,8,16,24,Gi[n*16+0],Gi[n*16+1]),wu(2,10,18,26,Gi[n*16+2],Gi[n*16+3]),wu(4,12,20,28,Gi[n*16+4],Gi[n*16+5]),wu(6,14,22,30,Gi[n*16+6],Gi[n*16+7]),wu(0,10,20,30,Gi[n*16+8],Gi[n*16+9]),wu(2,12,22,24,Gi[n*16+10],Gi[n*16+11]),wu(4,14,16,26,Gi[n*16+12],Gi[n*16+13]),wu(6,8,18,28,Gi[n*16+14],Gi[n*16+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^bn[n]^bn[n+16]}const _u=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function xQ(e,t,n,r){if(e===0||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&n.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(r&&r.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};_u.fill(0),_u[0]=e,t&&(_u[1]=t.length),_u[2]=1,_u[3]=1,n&&_u.set(n,32),r&&_u.set(r,48);for(let a=0;a<16;a++)i.h[a]=CQ[a]^_Q(_u,a*4);return t&&(h$(i,t),i.c=128),i}function h$(e,t){for(let n=0;n<t.length;n++)e.c===128&&(e.t+=e.c,RQ(e,!1),e.c=0),e.b[e.c++]=t[n]}function $Q(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;RQ(e,!0);const t=new Uint8Array(e.outlen);for(let n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(n&3);return t}function IQ(e,t,n,r,i){n=n||64,e=$3.normalizeInput(e),r&&(r=$3.normalizeInput(r)),i&&(i=$3.normalizeInput(i));const a=xQ(n,t,r,i);return h$(a,e),$Q(a)}function hze(e,t,n,r,i){const a=IQ(e,t,n,r,i);return $3.toHex(a)}var mze={blake2b:IQ,blake2bHex:hze,blake2bInit:xQ,blake2bUpdate:h$,blake2bFinal:$Q};const cv=zt(mze);function kQ(e,t){var n=cv.blake2bInit(Ul.box.nonceLength,null);return cv.blake2bUpdate(n,e),cv.blake2bUpdate(n,t),cv.blake2bFinal(n)}function gze(e){for(var t=0;t<e.length;t++)e[t]=0}function yze(e,t){var n=new Uint8Array(oze+e.length),r=Ul.box.keyPair();n.set(r.publicKey);var i=kQ(r.publicKey,t),a=Ul.box(e,i,t,r.secretKey);return n.set(a,r.publicKey.length),gze(r.secretKey),n}function vze(e,t,n){var r=e.subarray(0,Ul.box.publicKeyLength),i=kQ(r,t),a=e.subarray(Ul.box.publicKeyLength);return Ul.box.open(a,i,r,n)}const bze={seal:yze,open:vze};function Tze(e){return e==null}var Eze=Tze;const m1=zt(Eze);var Aze=iu,Sze=Ia,wze=qo,_ze="[object String]";function Cze(e){return typeof e=="string"||!Sze(e)&&wze(e)&&Aze(e)==_ze}var DQ=Cze;const Rze=zt(DQ),xze="@arcblock/did-connect",$ze="2.10.11",Ize="Client side library to work with DID Connect by ArcBlock.",kze=["react","arcblock","component"],Dze="wangshijun<wangshijun2010@gmail.com>",Lze="https://github.com/ArcBlock/ux#readme",Oze="Apache-2.0",Pze="lib/index.js",Mze="lib/index.js",Bze={type:"git",url:"git+https://github.com/ArcBlock/ux.git"},Nze={lint:"eslint src tests --ext js --ext jsx","lint:fix":"npm run lint -- --fix",build:"babel --config-file ./babel.config.es.js src --out-dir lib --copy-files --no-copy-ignored",autoexports:"node tools/auto-exports.js",watch:"babel --config-file ./babel.config.es.js src --out-dir lib -w --copy-files --no-copy-ignored",precommit:"CI=1 npm run lint",prepush:"CI=1 npm run lint",prepublish:"npm run build",test:"node tools/jest.js",coverage:"npm run test -- --coverage"},Fze={url:"https://github.com/ArcBlock/ux/issues"},Uze={"@arcblock/bridge":"^2.10.11","@arcblock/icons":"^2.10.11","@arcblock/react-hooks":"^2.10.11","@arcblock/ws":"^1.18.126","@fontsource/inter":"^5.0.16","@iconify-icons/logos":"^1.2.36","@iconify-icons/material-symbols":"^1.2.58","@iconify/react":"^4.1.1",ahooks:"^3.7.10",axios:"^1.7.2",buffer:"^6.0.3","core-js":"^3.25.5",eventemitter3:"^5.0.1","js-cookie":"^2.2.1","jwt-decode":"^3.1.2",lodash:"^4.17.21","mdi-material-ui":"^7.5.0","p-queue":"^6.6.2","p-wait-for":"^5.0.2","path-to-regexp":"^1.8.0",semver:"^7.5.4",tweetnacl:"^1.0.3","tweetnacl-sealedbox-js":"^1.2.0",ufo:"^1.5.3"},Hze={"@arcblock/ux":"^2.9.79","@blocklet/js-sdk":"^1.16.28-beta-641c9f13","@emotion/react":"^11.10.4","@emotion/styled":"^11.10.4","@mui/material":"^5.15.0",react:"^18.2.0","react-dom":"^18.2.0"},jze={access:"public"},Vze={"@babel/cli":"^7.19.3","@babel/core":"^7.19.3","@babel/preset-env":"^7.19.3","@babel/preset-react":"^7.18.6","eslint-plugin-react-hooks":"^4.6.0",glob:"^10.3.3",jest:"^28.1.3"},Jze="5804454b8b91ce5e812fed2fa65961fd5cfb0cfd",qze={name:xze,version:$ze,description:Ize,keywords:kze,author:Dze,homepage:Lze,license:Oze,main:Pze,module:Mze,repository:Bze,scripts:Nze,bugs:Fze,dependencies:Uze,peerDependencies:Hze,publishConfig:jze,devDependencies:Vze,gitHead:Jze},LQ=5*60,Gze=30*60,fi="/.well-known/service",zze="login_token",Wze="refresh_token",OQ="/.well-known/service",m$="/api/did",Kze="DID Connect",lU="__did-connect__";class PQ extends Error{constructor(){super("Failed to open popup")}}const Yze="wallet_url",MQ=()=>{var e,t;return window.localStorage.getItem(Yze)||((e=window.env)==null?void 0:e.webWalletUrl)||((t=window.blocklet)==null?void 0:t.webWalletUrl)||"https://web.abtwallet.io/"},BQ=e=>{const{protocol:t}=window.location;let n="";try{n=new URL(e).protocol}catch{n=""}return t===n},{version:Zze}=qze;function NQ(e){return(e+"===".slice((e.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function Xze(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const Qze=e=>window.atob(NQ(e)),eWe=e=>{const t=new URL(e),n=decodeURIComponent(t.searchParams.get("url"));return new URL(n).searchParams.get("_t_")},dp=(e,t)=>{var r,i,a;let n=t==null?void 0:t.publisher;if(!n){if(e!=null&&e.agentDid)return e.agentDid;n=e==null?void 0:e.publisher}return n?n.replace("did:abt:",""):((r=globalThis.blocklet)==null?void 0:r.appPid)||((i=globalThis.blocklet)==null?void 0:i.appId)||((a=globalThis.env)==null?void 0:a.appId)||""},FQ=e=>{var n;const t={connected_did:e.did||"",connected_pk:e.pk||"",connected_app:dp(e.appInfo,e.memberAppInfo)};return(n=e==null?void 0:e.connectedWallet)!=null&&n.os&&(t.connected_wallet_os=e.connectedWallet.os),t},g1=(e,t=!1)=>{if(!e)return;t||(e=FQ(e));const n=bf({expireInDays:7,returnDomain:!1});m1(e.connected_did)||Kr.set("connected_did",e.connected_did,n),m1(e.connected_pk)||Kr.set("connected_pk",e.connected_pk,n),m1(e.connected_app)||Kr.set("connected_app",e.connected_app,n),e.connected_wallet_os&&Kr.set("connected_wallet_os",e.connected_wallet_os,n)},fv=e=>Xze(Np.from(e).toString("base64")),uU=e=>Uint8Array.from(Np.from(NQ(e),"base64")),UQ=(e,t,n)=>{const r=bze.open(Uint8Array.from(Np.from(e,"base64")),uU(t),uU(n));return JSON.parse(Np.from(r).toString("utf8"))},cU=(e,t="_t_")=>{const n=new URL(e),r={baseUrl:n.origin,prefix:n.pathname.replace(/\/auth$/,""),token:n.searchParams.get(t)||""};if(!r.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!r.token)throw new Error("Invalid next workflow: token not found");return r},I3=(e,t)=>{var r;let n=e.message;return e.response&&(n=((r=e.response)==null?void 0:r.data)||t),n},eu=(e={},{lazy:t=!1,lazyTime:n=300}={})=>PHe({...e,headers:{...e.headers,"x-did-connect-version":Zze}},{lazy:t,lazyTime:n}),kl=(e=0)=>new Promise(t=>{setTimeout(()=>{t()},e)});function HQ(){if(typeof window>"u")return null;const e=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[e]||"en"}async function fU(){const e=window.location.href;try{const t=new URL(e),n=t.searchParams.get(lU);if(n){t.searchParams.delete(lU);const r=JSON.parse(Np.from(n,"base64").toString("utf-8"));if(Rze(r.forceConnected)&&Ki(r.sourceAppPid)){const a=await new YZ().user.getUserPublicInfo({did:r.forceConnected});Ki(a==null?void 0:a.sourceAppPid)||(r.sourceAppPid=a.sourceAppPid)}return{params:r,url:t.href}}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:e}}const jQ=(e,{width:t=600,height:n=700,name:r="did-connect:popup"}={})=>{const i=window.screenX+(window.innerWidth-t)/2,a=window.screenY+(window.innerHeight-n)/2,o=[`left=${i}`,`top=${a}`,`width=${t}`,`height=${n}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],s=window.open("",r,o.join(","));if(s===null)throw new PQ;return s.location.href=e,s},VQ=e=>new Promise((t,n)=>{let r,i;const a=({data:o})=>{if(o&&o.type==="authorization_response"){if(o!=null&&o.error){console.error(o.error);return}setTimeout(()=>{var s;(s=e.popup)==null||s.close(),clearTimeout(i),clearInterval(r),window.removeEventListener("message",a,!1),t(o)},e.closeTimeout||0)}};i=setTimeout(()=>{clearInterval(r),n(new Error("Timeout")),window.removeEventListener("message",a,!1)},(e.timeoutInSeconds||Gze)*1e3),r=setInterval(()=>{var o;(o=e.popup)!=null&&o.closed&&(clearInterval(r),clearTimeout(i),window.removeEventListener("message",a,!1),n(new Error("Popup closed")))},1e3),window.addEventListener("message",a)});function JQ({callback:e}){return Z.useEffect(()=>(window.addEventListener("focus",e),()=>{window.removeEventListener("focus",e)}),[]),null}JQ.propTypes={callback:me.func.isRequired};function g$({list:e,width:t,height:n,cardSpace:r,onSelect:i,defaultIndex:a}){const[o,s]=Z.useState(0),[l,c]=Z.useState(0),u=Z.useRef(null),d=b=>{if(b<0||b>e.length-1)return;s(b);const _=u.current.clientWidth;c(b*(t+r)-(_-t)/2+r*.5),i(b)};Z.useEffect(()=>{d(a);const b=_=>_.preventDefault();u.current.addEventListener("touchmove",b,{passive:!1})},[]);let p;const m=b=>{p=b.touches[0].clientX},y=b=>{const _=b.changedTouches[0],S=p-_.clientX;Math.abs(S)>60&&(S>0?d(o+1):d(o-1))};return q.jsx(tWe,{ref:u,onTouchStart:m,onTouchEnd:y,children:q.jsx("div",{className:"card-container",style:{transform:`translate(${-l}px, 0)`},children:e.map((b,_)=>b instanceof Function?q.jsx("div",{className:`card-item ${_===o?"selected":""}`,style:{width:t,height:n,margin:r/2},onClick:()=>d(_),children:b(_)},_):q.jsx("div",{className:`card-item ${_===o?"selected":""}`,style:{width:t,height:n,margin:r/2},onClick:()=>d(_),children:q.jsx("img",{src:b.src,alt:b.name})},_))})})}const tWe=q1.div`
|
|
428
|
+
`+new Array(e.length+4).join(" "):i<t.length-2&&(r+=" ")}console.log(r)}function fze(e,t,n){let r=new Date().getTime();const i=new Uint8Array(t);for(let o=0;o<t;o++)i[o]=o%256;const a=new Date().getTime();console.log("Generated random input in "+(a-r)+"ms"),r=a;for(let o=0;o<n;o++){const s=e(i),l=new Date().getTime(),c=l-r;r=l,console.log("Hashed in "+c+"ms: "+s.substring(0,20)+"..."),console.log(Math.round(t/(1<<20)/(c/1e3)*100)/100+" MB PER SECOND")}}var dze={normalizeInput:lze,toHex:uze,debugPrint:cze,testSpeed:fze};const $3=dze;function uv(e,t,n){const r=e[t]+e[n];let i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}function sU(e,t,n,r){let i=e[t]+n;n<0&&(i+=4294967296);let a=e[t+1]+r;i>=4294967296&&a++,e[t]=i,e[t+1]=a}function _Q(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function wu(e,t,n,r,i,a){const o=V0[i],s=V0[i+1],l=V0[a],c=V0[a+1];uv(bn,e,t),sU(bn,e,o,s);let u=bn[r]^bn[e],d=bn[r+1]^bn[e+1];bn[r]=d,bn[r+1]=u,uv(bn,n,r),u=bn[t]^bn[n],d=bn[t+1]^bn[n+1],bn[t]=u>>>24^d<<8,bn[t+1]=d>>>24^u<<8,uv(bn,e,t),sU(bn,e,l,c),u=bn[r]^bn[e],d=bn[r+1]^bn[e+1],bn[r]=u>>>16^d<<16,bn[r+1]=d>>>16^u<<16,uv(bn,n,r),u=bn[t]^bn[n],d=bn[t+1]^bn[n+1],bn[t]=d>>>31^u<<1,bn[t+1]=u>>>31^d<<1}const CQ=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),pze=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],Gi=new Uint8Array(pze.map(function(e){return e*2})),bn=new Uint32Array(32),V0=new Uint32Array(32);function RQ(e,t){let n=0;for(n=0;n<16;n++)bn[n]=e.h[n],bn[n+16]=CQ[n];for(bn[24]=bn[24]^e.t,bn[25]=bn[25]^e.t/4294967296,t&&(bn[28]=~bn[28],bn[29]=~bn[29]),n=0;n<32;n++)V0[n]=_Q(e.b,4*n);for(n=0;n<12;n++)wu(0,8,16,24,Gi[n*16+0],Gi[n*16+1]),wu(2,10,18,26,Gi[n*16+2],Gi[n*16+3]),wu(4,12,20,28,Gi[n*16+4],Gi[n*16+5]),wu(6,14,22,30,Gi[n*16+6],Gi[n*16+7]),wu(0,10,20,30,Gi[n*16+8],Gi[n*16+9]),wu(2,12,22,24,Gi[n*16+10],Gi[n*16+11]),wu(4,14,16,26,Gi[n*16+12],Gi[n*16+13]),wu(6,8,18,28,Gi[n*16+14],Gi[n*16+15]);for(n=0;n<16;n++)e.h[n]=e.h[n]^bn[n]^bn[n+16]}const _u=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function xQ(e,t,n,r){if(e===0||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&n.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(r&&r.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e};_u.fill(0),_u[0]=e,t&&(_u[1]=t.length),_u[2]=1,_u[3]=1,n&&_u.set(n,32),r&&_u.set(r,48);for(let a=0;a<16;a++)i.h[a]=CQ[a]^_Q(_u,a*4);return t&&(h$(i,t),i.c=128),i}function h$(e,t){for(let n=0;n<t.length;n++)e.c===128&&(e.t+=e.c,RQ(e,!1),e.c=0),e.b[e.c++]=t[n]}function $Q(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;RQ(e,!0);const t=new Uint8Array(e.outlen);for(let n=0;n<e.outlen;n++)t[n]=e.h[n>>2]>>8*(n&3);return t}function IQ(e,t,n,r,i){n=n||64,e=$3.normalizeInput(e),r&&(r=$3.normalizeInput(r)),i&&(i=$3.normalizeInput(i));const a=xQ(n,t,r,i);return h$(a,e),$Q(a)}function hze(e,t,n,r,i){const a=IQ(e,t,n,r,i);return $3.toHex(a)}var mze={blake2b:IQ,blake2bHex:hze,blake2bInit:xQ,blake2bUpdate:h$,blake2bFinal:$Q};const cv=zt(mze);function kQ(e,t){var n=cv.blake2bInit(Ul.box.nonceLength,null);return cv.blake2bUpdate(n,e),cv.blake2bUpdate(n,t),cv.blake2bFinal(n)}function gze(e){for(var t=0;t<e.length;t++)e[t]=0}function yze(e,t){var n=new Uint8Array(oze+e.length),r=Ul.box.keyPair();n.set(r.publicKey);var i=kQ(r.publicKey,t),a=Ul.box(e,i,t,r.secretKey);return n.set(a,r.publicKey.length),gze(r.secretKey),n}function vze(e,t,n){var r=e.subarray(0,Ul.box.publicKeyLength),i=kQ(r,t),a=e.subarray(Ul.box.publicKeyLength);return Ul.box.open(a,i,r,n)}const bze={seal:yze,open:vze};function Tze(e){return e==null}var Eze=Tze;const m1=zt(Eze);var Aze=iu,Sze=Ia,wze=qo,_ze="[object String]";function Cze(e){return typeof e=="string"||!Sze(e)&&wze(e)&&Aze(e)==_ze}var DQ=Cze;const Rze=zt(DQ),xze="@arcblock/did-connect",$ze="2.10.12",Ize="Client side library to work with DID Connect by ArcBlock.",kze=["react","arcblock","component"],Dze="wangshijun<wangshijun2010@gmail.com>",Lze="https://github.com/ArcBlock/ux#readme",Oze="Apache-2.0",Pze="lib/index.js",Mze="lib/index.js",Bze={type:"git",url:"git+https://github.com/ArcBlock/ux.git"},Nze={lint:"eslint src tests --ext js --ext jsx","lint:fix":"npm run lint -- --fix",build:"babel --config-file ./babel.config.es.js src --out-dir lib --copy-files --no-copy-ignored",autoexports:"node tools/auto-exports.js",watch:"babel --config-file ./babel.config.es.js src --out-dir lib -w --copy-files --no-copy-ignored",precommit:"CI=1 npm run lint",prepush:"CI=1 npm run lint",prepublish:"npm run build",test:"node tools/jest.js",coverage:"npm run test -- --coverage"},Fze={url:"https://github.com/ArcBlock/ux/issues"},Uze={"@arcblock/bridge":"^2.10.12","@arcblock/icons":"^2.10.12","@arcblock/react-hooks":"^2.10.12","@arcblock/ws":"^1.18.126","@fontsource/inter":"^5.0.16","@iconify-icons/logos":"^1.2.36","@iconify-icons/material-symbols":"^1.2.58","@iconify/react":"^4.1.1",ahooks:"^3.7.10",axios:"^1.7.2",buffer:"^6.0.3","core-js":"^3.25.5",eventemitter3:"^5.0.1","js-cookie":"^2.2.1","jwt-decode":"^3.1.2",lodash:"^4.17.21","mdi-material-ui":"^7.5.0","p-queue":"^6.6.2","p-wait-for":"^5.0.2","path-to-regexp":"^1.8.0",semver:"^7.5.4",tweetnacl:"^1.0.3","tweetnacl-sealedbox-js":"^1.2.0",ufo:"^1.5.3"},Hze={"@arcblock/ux":"^2.9.79","@blocklet/js-sdk":"^1.16.28-beta-641c9f13","@emotion/react":"^11.10.4","@emotion/styled":"^11.10.4","@mui/material":"^5.15.0",react:"^18.2.0","react-dom":"^18.2.0"},jze={access:"public"},Vze={"@babel/cli":"^7.19.3","@babel/core":"^7.19.3","@babel/preset-env":"^7.19.3","@babel/preset-react":"^7.18.6","eslint-plugin-react-hooks":"^4.6.0",glob:"^10.3.3",jest:"^28.1.3"},Jze="c32ebbc1536d9374a99865ff463f0a300b6e5372",qze={name:xze,version:$ze,description:Ize,keywords:kze,author:Dze,homepage:Lze,license:Oze,main:Pze,module:Mze,repository:Bze,scripts:Nze,bugs:Fze,dependencies:Uze,peerDependencies:Hze,publishConfig:jze,devDependencies:Vze,gitHead:Jze},LQ=5*60,Gze=30*60,fi="/.well-known/service",zze="login_token",Wze="refresh_token",OQ="/.well-known/service",m$="/api/did",Kze="DID Connect",lU="__did-connect__";class PQ extends Error{constructor(){super("Failed to open popup")}}const Yze="wallet_url",MQ=()=>{var e,t;return window.localStorage.getItem(Yze)||((e=window.env)==null?void 0:e.webWalletUrl)||((t=window.blocklet)==null?void 0:t.webWalletUrl)||"https://web.abtwallet.io/"},BQ=e=>{const{protocol:t}=window.location;let n="";try{n=new URL(e).protocol}catch{n=""}return t===n},{version:Zze}=qze;function NQ(e){return(e+"===".slice((e.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function Xze(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const Qze=e=>window.atob(NQ(e)),eWe=e=>{const t=new URL(e),n=decodeURIComponent(t.searchParams.get("url"));return new URL(n).searchParams.get("_t_")},dp=(e,t)=>{var r,i,a;let n=t==null?void 0:t.publisher;if(!n){if(e!=null&&e.agentDid)return e.agentDid;n=e==null?void 0:e.publisher}return n?n.replace("did:abt:",""):((r=globalThis.blocklet)==null?void 0:r.appPid)||((i=globalThis.blocklet)==null?void 0:i.appId)||((a=globalThis.env)==null?void 0:a.appId)||""},FQ=e=>{var n;const t={connected_did:e.did||"",connected_pk:e.pk||"",connected_app:dp(e.appInfo,e.memberAppInfo)};return(n=e==null?void 0:e.connectedWallet)!=null&&n.os&&(t.connected_wallet_os=e.connectedWallet.os),t},g1=(e,t=!1)=>{if(!e)return;t||(e=FQ(e));const n=bf({expireInDays:7,returnDomain:!1});m1(e.connected_did)||Kr.set("connected_did",e.connected_did,n),m1(e.connected_pk)||Kr.set("connected_pk",e.connected_pk,n),m1(e.connected_app)||Kr.set("connected_app",e.connected_app,n),e.connected_wallet_os&&Kr.set("connected_wallet_os",e.connected_wallet_os,n)},fv=e=>Xze(Np.from(e).toString("base64")),uU=e=>Uint8Array.from(Np.from(NQ(e),"base64")),UQ=(e,t,n)=>{const r=bze.open(Uint8Array.from(Np.from(e,"base64")),uU(t),uU(n));return JSON.parse(Np.from(r).toString("utf8"))},cU=(e,t="_t_")=>{const n=new URL(e),r={baseUrl:n.origin,prefix:n.pathname.replace(/\/auth$/,""),token:n.searchParams.get(t)||""};if(!r.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!r.token)throw new Error("Invalid next workflow: token not found");return r},I3=(e,t)=>{var r;let n=e.message;return e.response&&(n=((r=e.response)==null?void 0:r.data)||t),n},eu=(e={},{lazy:t=!1,lazyTime:n=300}={})=>PHe({...e,headers:{...e.headers,"x-did-connect-version":Zze}},{lazy:t,lazyTime:n}),kl=(e=0)=>new Promise(t=>{setTimeout(()=>{t()},e)});function HQ(){if(typeof window>"u")return null;const e=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[e]||"en"}async function fU(){const e=window.location.href;try{const t=new URL(e),n=t.searchParams.get(lU);if(n){t.searchParams.delete(lU);const r=JSON.parse(Np.from(n,"base64").toString("utf-8"));if(Rze(r.forceConnected)&&Ki(r.sourceAppPid)){const a=await new YZ().user.getUserPublicInfo({did:r.forceConnected});Ki(a==null?void 0:a.sourceAppPid)||(r.sourceAppPid=a.sourceAppPid)}return{params:r,url:t.href}}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:e}}const jQ=(e,{width:t=600,height:n=700,name:r="did-connect:popup"}={})=>{const i=window.screenX+(window.innerWidth-t)/2,a=window.screenY+(window.innerHeight-n)/2,o=[`left=${i}`,`top=${a}`,`width=${t}`,`height=${n}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],s=window.open("",r,o.join(","));if(s===null)throw new PQ;return s.location.href=e,s},VQ=e=>new Promise((t,n)=>{let r,i;const a=({data:o})=>{if(o&&o.type==="authorization_response"){if(o!=null&&o.error){console.error(o.error);return}setTimeout(()=>{var s;(s=e.popup)==null||s.close(),clearTimeout(i),clearInterval(r),window.removeEventListener("message",a,!1),t(o)},e.closeTimeout||0)}};i=setTimeout(()=>{clearInterval(r),n(new Error("Timeout")),window.removeEventListener("message",a,!1)},(e.timeoutInSeconds||Gze)*1e3),r=setInterval(()=>{var o;(o=e.popup)!=null&&o.closed&&(clearInterval(r),clearTimeout(i),window.removeEventListener("message",a,!1),n(new Error("Popup closed")))},1e3),window.addEventListener("message",a)});function JQ({callback:e}){return Z.useEffect(()=>(window.addEventListener("focus",e),()=>{window.removeEventListener("focus",e)}),[]),null}JQ.propTypes={callback:me.func.isRequired};function g$({list:e,width:t,height:n,cardSpace:r,onSelect:i,defaultIndex:a}){const[o,s]=Z.useState(0),[l,c]=Z.useState(0),u=Z.useRef(null),d=b=>{if(b<0||b>e.length-1)return;s(b);const _=u.current.clientWidth;c(b*(t+r)-(_-t)/2+r*.5),i(b)};Z.useEffect(()=>{d(a);const b=_=>_.preventDefault();u.current.addEventListener("touchmove",b,{passive:!1})},[]);let p;const m=b=>{p=b.touches[0].clientX},y=b=>{const _=b.changedTouches[0],S=p-_.clientX;Math.abs(S)>60&&(S>0?d(o+1):d(o-1))};return q.jsx(tWe,{ref:u,onTouchStart:m,onTouchEnd:y,children:q.jsx("div",{className:"card-container",style:{transform:`translate(${-l}px, 0)`},children:e.map((b,_)=>b instanceof Function?q.jsx("div",{className:`card-item ${_===o?"selected":""}`,style:{width:t,height:n,margin:r/2},onClick:()=>d(_),children:b(_)},_):q.jsx("div",{className:`card-item ${_===o?"selected":""}`,style:{width:t,height:n,margin:r/2},onClick:()=>d(_),children:q.jsx("img",{src:b.src,alt:b.name})},_))})})}const tWe=q1.div`
|
|
429
429
|
overflow: hidden;
|
|
430
430
|
mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);
|
|
431
431
|
overflow: hidden;
|
|
@@ -490,7 +490,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
490
490
|
`}return Ve.substring(0,Ve.length-1)},x.renderTo2dContext=function(j,M){M=M||2;for(var z=x.getModuleCount(),W=0;W<z;W++)for(var ee=0;ee<z;ee++)j.fillStyle=x.isDark(W,ee)?"black":"white",j.fillRect(W*M,ee*M,M,M)},x};u.stringToBytes=(u.stringToBytesFuncs={default:function(E){for(var f=[],h=0;h<E.length;h+=1){var T=E.charCodeAt(h);f.push(255&T)}return f}}).default,u.createStringToBytes=function(E,f){var h=function(){for(var w=K(E),R=function(){var ne=w.read();if(ne==-1)throw"eof";return ne},I=0,C={};;){var x=w.read();if(x==-1)break;var v=R(),k=R()<<8|R();C[String.fromCharCode(x<<8|v)]=k,I+=1}if(I!=f)throw I+" != "+f;return C}(),T=63;return function(w){for(var R=[],I=0;I<w.length;I+=1){var C=w.charCodeAt(I);if(C<128)R.push(C);else{var x=h[w.charAt(I)];typeof x=="number"?(255&x)==x?R.push(x):(R.push(x>>>8),R.push(255&x)):R.push(T)}}return R}};var d,p,m,y,b,_={L:1,M:0,Q:3,H:2},S=(d=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],p=1335,m=7973,b=function(E){for(var f=0;E!=0;)f+=1,E>>>=1;return f},(y={}).getBCHTypeInfo=function(E){for(var f=E<<10;b(f)-b(p)>=0;)f^=p<<b(f)-b(p);return 21522^(E<<10|f)},y.getBCHTypeNumber=function(E){for(var f=E<<12;b(f)-b(m)>=0;)f^=m<<b(f)-b(m);return E<<12|f},y.getPatternPosition=function(E){return d[E-1]},y.getMaskFunction=function(E){switch(E){case 0:return function(f,h){return(f+h)%2==0};case 1:return function(f,h){return f%2==0};case 2:return function(f,h){return h%3==0};case 3:return function(f,h){return(f+h)%3==0};case 4:return function(f,h){return(Math.floor(f/2)+Math.floor(h/3))%2==0};case 5:return function(f,h){return f*h%2+f*h%3==0};case 6:return function(f,h){return(f*h%2+f*h%3)%2==0};case 7:return function(f,h){return(f*h%3+(f+h)%2)%2==0};default:throw"bad maskPattern:"+E}},y.getErrorCorrectPolynomial=function(E){for(var f=D([1],0),h=0;h<E;h+=1)f=f.multiply(D([1,$.gexp(h)],0));return f},y.getLengthInBits=function(E,f){if(1<=f&&f<10)switch(E){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+E}else if(f<27)switch(E){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+E}else{if(!(f<41))throw"type:"+f;switch(E){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+E}}},y.getLostPoint=function(E){for(var f=E.getModuleCount(),h=0,T=0;T<f;T+=1)for(var w=0;w<f;w+=1){for(var R=0,I=E.isDark(T,w),C=-1;C<=1;C+=1)if(!(T+C<0||f<=T+C))for(var x=-1;x<=1;x+=1)w+x<0||f<=w+x||C==0&&x==0||I==E.isDark(T+C,w+x)&&(R+=1);R>5&&(h+=3+R-5)}for(T=0;T<f-1;T+=1)for(w=0;w<f-1;w+=1){var v=0;E.isDark(T,w)&&(v+=1),E.isDark(T+1,w)&&(v+=1),E.isDark(T,w+1)&&(v+=1),E.isDark(T+1,w+1)&&(v+=1),v!=0&&v!=4||(h+=3)}for(T=0;T<f;T+=1)for(w=0;w<f-6;w+=1)E.isDark(T,w)&&!E.isDark(T,w+1)&&E.isDark(T,w+2)&&E.isDark(T,w+3)&&E.isDark(T,w+4)&&!E.isDark(T,w+5)&&E.isDark(T,w+6)&&(h+=40);for(w=0;w<f;w+=1)for(T=0;T<f-6;T+=1)E.isDark(T,w)&&!E.isDark(T+1,w)&&E.isDark(T+2,w)&&E.isDark(T+3,w)&&E.isDark(T+4,w)&&!E.isDark(T+5,w)&&E.isDark(T+6,w)&&(h+=40);var k=0;for(w=0;w<f;w+=1)for(T=0;T<f;T+=1)E.isDark(T,w)&&(k+=1);return h+Math.abs(100*k/f/f-50)/5*10},y),$=function(){for(var E=new Array(256),f=new Array(256),h=0;h<8;h+=1)E[h]=1<<h;for(h=8;h<256;h+=1)E[h]=E[h-4]^E[h-5]^E[h-6]^E[h-8];for(h=0;h<255;h+=1)f[E[h]]=h;return{glog:function(T){if(T<1)throw"glog("+T+")";return f[T]},gexp:function(T){for(;T<0;)T+=255;for(;T>=256;)T-=255;return E[T]}}}();function D(E,f){if(E.length===void 0)throw E.length+"/"+f;var h=function(){for(var w=0;w<E.length&&E[w]==0;)w+=1;for(var R=new Array(E.length-w+f),I=0;I<E.length-w;I+=1)R[I]=E[I+w];return R}(),T={getAt:function(w){return h[w]},getLength:function(){return h.length},multiply:function(w){for(var R=new Array(T.getLength()+w.getLength()-1),I=0;I<T.getLength();I+=1)for(var C=0;C<w.getLength();C+=1)R[I+C]^=$.gexp($.glog(T.getAt(I))+$.glog(w.getAt(C)));return D(R,0)},mod:function(w){if(T.getLength()-w.getLength()<0)return T;for(var R=$.glog(T.getAt(0))-$.glog(w.getAt(0)),I=new Array(T.getLength()),C=0;C<T.getLength();C+=1)I[C]=T.getAt(C);for(C=0;C<w.getLength();C+=1)I[C]^=$.gexp($.glog(w.getAt(C))+R);return D(I,0).mod(w)}};return T}var P=function(){var E=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],f=function(T,w){var R={};return R.totalCount=T,R.dataCount=w,R},h={getRSBlocks:function(T,w){var R=function(Y,re){switch(re){case _.L:return E[4*(Y-1)+0];case _.M:return E[4*(Y-1)+1];case _.Q:return E[4*(Y-1)+2];case _.H:return E[4*(Y-1)+3];default:return}}(T,w);if(R===void 0)throw"bad rs block @ typeNumber:"+T+"/errorCorrectionLevel:"+w;for(var I=R.length/3,C=[],x=0;x<I;x+=1)for(var v=R[3*x+0],k=R[3*x+1],ne=R[3*x+2],N=0;N<v;N+=1)C.push(f(k,ne));return C}};return h}(),U=function(){var E=[],f=0,h={getBuffer:function(){return E},getAt:function(T){var w=Math.floor(T/8);return(E[w]>>>7-T%8&1)==1},put:function(T,w){for(var R=0;R<w;R+=1)h.putBit((T>>>w-R-1&1)==1)},getLengthInBits:function(){return f},putBit:function(T){var w=Math.floor(f/8);E.length<=w&&E.push(0),T&&(E[w]|=128>>>f%8),f+=1}};return h},L=function(E){var f=E,h={getMode:function(){return 1},getLength:function(R){return f.length},write:function(R){for(var I=f,C=0;C+2<I.length;)R.put(T(I.substring(C,C+3)),10),C+=3;C<I.length&&(I.length-C==1?R.put(T(I.substring(C,C+1)),4):I.length-C==2&&R.put(T(I.substring(C,C+2)),7))}},T=function(R){for(var I=0,C=0;C<R.length;C+=1)I=10*I+w(R.charAt(C));return I},w=function(R){if("0"<=R&&R<="9")return R.charCodeAt(0)-48;throw"illegal char :"+R};return h},F=function(E){var f=E,h={getMode:function(){return 2},getLength:function(w){return f.length},write:function(w){for(var R=f,I=0;I+1<R.length;)w.put(45*T(R.charAt(I))+T(R.charAt(I+1)),11),I+=2;I<R.length&&w.put(T(R.charAt(I)),6)}},T=function(w){if("0"<=w&&w<="9")return w.charCodeAt(0)-48;if("A"<=w&&w<="Z")return w.charCodeAt(0)-65+10;switch(w){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+w}};return h},G=function(E){var f=u.stringToBytes(E);return{getMode:function(){return 4},getLength:function(h){return f.length},write:function(h){for(var T=0;T<f.length;T+=1)h.put(f[T],8)}}},ie=function(E){var f=u.stringToBytesFuncs.SJIS;if(!f)throw"sjis not supported.";(function(w,R){var I=f("友");if(I.length!=2||(I[0]<<8|I[1])!=38726)throw"sjis not supported."})();var h=f(E),T={getMode:function(){return 8},getLength:function(w){return~~(h.length/2)},write:function(w){for(var R=h,I=0;I+1<R.length;){var C=(255&R[I])<<8|255&R[I+1];if(33088<=C&&C<=40956)C-=33088;else{if(!(57408<=C&&C<=60351))throw"illegal char at "+(I+1)+"/"+C;C-=49472}C=192*(C>>>8&255)+(255&C),w.put(C,13),I+=2}if(I<R.length)throw"illegal char at "+(I+1)}};return T},se=function(){var E=[],f={writeByte:function(h){E.push(255&h)},writeShort:function(h){f.writeByte(h),f.writeByte(h>>>8)},writeBytes:function(h,T,w){T=T||0,w=w||h.length;for(var R=0;R<w;R+=1)f.writeByte(h[R+T])},writeString:function(h){for(var T=0;T<h.length;T+=1)f.writeByte(h.charCodeAt(T))},toByteArray:function(){return E},toString:function(){var h="";h+="[";for(var T=0;T<E.length;T+=1)T>0&&(h+=","),h+=E[T];return h+"]"}};return f},K=function(E){var f=E,h=0,T=0,w=0,R={read:function(){for(;w<8;){if(h>=f.length){if(w==0)return-1;throw"unexpected end of file./"+w}var C=f.charAt(h);if(h+=1,C=="=")return w=0,-1;C.match(/^\s$/)||(T=T<<6|I(C.charCodeAt(0)),w+=6)}var x=T>>>w-8&255;return w-=8,x}},I=function(C){if(65<=C&&C<=90)return C-65;if(97<=C&&C<=122)return C-97+26;if(48<=C&&C<=57)return C-48+52;if(C==43)return 62;if(C==47)return 63;throw"c:"+C};return R},B=function(E,f,h){for(var T=function(k,ne){var N=k,Y=ne,re=new Array(k*ne),le={setPixel:function(j,M,z){re[M*N+j]=z},write:function(j){j.writeString("GIF87a"),j.writeShort(N),j.writeShort(Y),j.writeByte(128),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(0),j.writeByte(255),j.writeByte(255),j.writeByte(255),j.writeString(","),j.writeShort(0),j.writeShort(0),j.writeShort(N),j.writeShort(Y),j.writeByte(0);var M=ge(2);j.writeByte(2);for(var z=0;M.length-z>255;)j.writeByte(255),j.writeBytes(M,z,255),z+=255;j.writeByte(M.length-z),j.writeBytes(M,z,M.length-z),j.writeByte(0),j.writeString(";")}},ge=function(j){for(var M=1<<j,z=1+(1<<j),W=j+1,ee=Se(),ve=0;ve<M;ve+=1)ee.add(String.fromCharCode(ve));ee.add(String.fromCharCode(M)),ee.add(String.fromCharCode(z));var he,oe,ye,we=se(),Te=(he=we,oe=0,ye=0,{write:function(Ge,pe){if(Ge>>>pe)throw"length over";for(;oe+pe>=8;)he.writeByte(255&(Ge<<oe|ye)),pe-=8-oe,Ge>>>=8-oe,ye=0,oe=0;ye|=Ge<<oe,oe+=pe},flush:function(){oe>0&&he.writeByte(ye)}});Te.write(M,W);var Ve=0,Ke=String.fromCharCode(re[Ve]);for(Ve+=1;Ve<re.length;){var je=String.fromCharCode(re[Ve]);Ve+=1,ee.contains(Ke+je)?Ke+=je:(Te.write(ee.indexOf(Ke),W),ee.size()<4095&&(ee.size()==1<<W&&(W+=1),ee.add(Ke+je)),Ke=je)}return Te.write(ee.indexOf(Ke),W),Te.write(z,W),Te.flush(),we.toByteArray()},Se=function(){var j={},M=0,z={add:function(W){if(z.contains(W))throw"dup key:"+W;j[W]=M,M+=1},size:function(){return M},indexOf:function(W){return j[W]},contains:function(W){return j[W]!==void 0}};return z};return le}(E,f),w=0;w<f;w+=1)for(var R=0;R<E;R+=1)T.setPixel(R,w,h(R,w));var I=se();T.write(I);for(var C=function(){var k=0,ne=0,N=0,Y="",re={},le=function(Se){Y+=String.fromCharCode(ge(63&Se))},ge=function(Se){if(!(Se<0)){if(Se<26)return 65+Se;if(Se<52)return Se-26+97;if(Se<62)return Se-52+48;if(Se==62)return 43;if(Se==63)return 47}throw"n:"+Se};return re.writeByte=function(Se){for(k=k<<8|255&Se,ne+=8,N+=1;ne>=6;)le(k>>>ne-6),ne-=6},re.flush=function(){if(ne>0&&(le(k<<6-ne),k=0,ne=0),N%3!=0)for(var Se=3-N%3,j=0;j<Se;j+=1)Y+="="},re.toString=function(){return Y},re}(),x=I.toByteArray(),v=0;v<x.length;v+=1)C.writeByte(x[v]);return C.flush(),"data:image/gif;base64,"+C};return u}();c.stringToBytesFuncs["UTF-8"]=function(u){return function(d){for(var p=[],m=0;m<d.length;m++){var y=d.charCodeAt(m);y<128?p.push(y):y<2048?p.push(192|y>>6,128|63&y):y<55296||y>=57344?p.push(224|y>>12,128|y>>6&63,128|63&y):(m++,y=65536+((1023&y)<<10|1023&d.charCodeAt(m)),p.push(240|y>>18,128|y>>12&63,128|y>>6&63,128|63&y))}return p}(u)},(l=typeof(s=function(){return c})=="function"?s.apply(o,[]):s)===void 0||(a.exports=l)},676:(a,o,s)=>{s.d(o,{default:()=>Se});const l="Numeric",c="Alphanumeric",u="Byte";var d=function(){return d=Object.assign||function(j){for(var M,z=1,W=arguments.length;z<W;z++)for(var ee in M=arguments[z])Object.prototype.hasOwnProperty.call(M,ee)&&(j[ee]=M[ee]);return j},d.apply(this,arguments)},p=function(){for(var j=0,M=0,z=arguments.length;M<z;M++)j+=arguments[M].length;var W=Array(j),ee=0;for(M=0;M<z;M++)for(var ve=arguments[M],he=0,oe=ve.length;he<oe;he++,ee++)W[ee]=ve[he];return W},m=function(j){return!!j&&typeof j=="object"&&!Array.isArray(j)};function y(j){for(var M=[],z=1;z<arguments.length;z++)M[z-1]=arguments[z];if(!M.length)return j;var W=M.shift();return W!==void 0&&m(j)&&m(W)?(j=d({},j),Object.keys(W).forEach(function(ee){var ve=j[ee],he=W[ee];Array.isArray(ve)&&Array.isArray(he)?j[ee]=he:m(ve)&&m(he)?j[ee]=y(Object.assign({},ve),he):j[ee]=he}),y.apply(void 0,p([j],M))):j}function b(j,M){var z=document.createElement("a");z.download=M,z.href=j,document.body.appendChild(z),z.click(),document.body.removeChild(z)}var _=function(j,M,z,W){return new(z||(z=Promise))(function(ee,ve){function he(we){try{ye(W.next(we))}catch(Te){ve(Te)}}function oe(we){try{ye(W.throw(we))}catch(Te){ve(Te)}}function ye(we){var Te;we.done?ee(we.value):(Te=we.value,Te instanceof z?Te:new z(function(Ve){Ve(Te)})).then(he,oe)}ye((W=W.apply(j,M||[])).next())})},S=function(j,M){var z,W,ee,ve,he={label:0,sent:function(){if(1&ee[0])throw ee[1];return ee[1]},trys:[],ops:[]};return ve={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(ve[Symbol.iterator]=function(){return this}),ve;function oe(ye){return function(we){return function(Te){if(z)throw new TypeError("Generator is already executing.");for(;he;)try{if(z=1,W&&(ee=2&Te[0]?W.return:Te[0]?W.throw||((ee=W.return)&&ee.call(W),0):W.next)&&!(ee=ee.call(W,Te[1])).done)return ee;switch(W=0,ee&&(Te=[2&Te[0],ee.value]),Te[0]){case 0:case 1:ee=Te;break;case 4:return he.label++,{value:Te[1],done:!1};case 5:he.label++,W=Te[1],Te=[0];continue;case 7:Te=he.ops.pop(),he.trys.pop();continue;default:if(!((ee=(ee=he.trys).length>0&&ee[ee.length-1])||Te[0]!==6&&Te[0]!==2)){he=0;continue}if(Te[0]===3&&(!ee||Te[1]>ee[0]&&Te[1]<ee[3])){he.label=Te[1];break}if(Te[0]===6&&he.label<ee[1]){he.label=ee[1],ee=Te;break}if(ee&&he.label<ee[2]){he.label=ee[2],he.ops.push(Te);break}ee[2]&&he.ops.pop(),he.trys.pop();continue}Te=M.call(j,he)}catch(Ve){Te=[6,Ve],W=0}finally{z=ee=0}if(5&Te[0])throw Te[1];return{value:Te[0]?Te[1]:void 0,done:!0}}([ye,we])}}};function $(j){return _(this,void 0,void 0,function(){return S(this,function(M){return[2,new Promise(function(z){var W=new XMLHttpRequest;W.onload=function(){var ee=new FileReader;ee.onloadend=function(){z(ee.result)},ee.readAsDataURL(W.response)},W.open("GET",j),W.responseType="blob",W.send()})]})})}const D={L:.07,M:.15,Q:.25,H:.3};var P=function(){return P=Object.assign||function(j){for(var M,z=1,W=arguments.length;z<W;z++)for(var ee in M=arguments[z])Object.prototype.hasOwnProperty.call(M,ee)&&(j[ee]=M[ee]);return j},P.apply(this,arguments)},U=function(){function j(M){var z=M.svg,W=M.type;this._svg=z,this._type=W}return j.prototype.draw=function(M,z,W,ee){var ve;switch(this._type){case"dots":ve=this._drawDot;break;case"classy":ve=this._drawClassy;break;case"classy-rounded":ve=this._drawClassyRounded;break;case"rounded":ve=this._drawRounded;break;case"extra-rounded":ve=this._drawExtraRounded;break;default:ve=this._drawSquare}ve.call(this,{x:M,y:z,size:W,getNeighbor:ee})},j.prototype._rotateFigure=function(M){var z,W=M.x,ee=M.y,ve=M.size,he=M.rotation,oe=he===void 0?0:he,ye=W+ve/2,we=ee+ve/2;(0,M.draw)(),(z=this._element)===null||z===void 0||z.setAttribute("transform","rotate("+180*oe/Math.PI+","+ye+","+we+")")},j.prototype._basicDot=function(M){var z=this,W=M.size,ee=M.x,ve=M.y;this._rotateFigure(P(P({},M),{draw:function(){z._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),z._element.setAttribute("cx",String(ee+W/2)),z._element.setAttribute("cy",String(ve+W/2)),z._element.setAttribute("r",String(W/2))}}))},j.prototype._basicSquare=function(M){var z=this,W=M.size,ee=M.x,ve=M.y;this._rotateFigure(P(P({},M),{draw:function(){z._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),z._element.setAttribute("x",String(ee)),z._element.setAttribute("y",String(ve)),z._element.setAttribute("width",String(W)),z._element.setAttribute("height",String(W))}}))},j.prototype._basicSideRounded=function(M){var z=this,W=M.size,ee=M.x,ve=M.y;this._rotateFigure(P(P({},M),{draw:function(){z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),z._element.setAttribute("d","M "+ee+" "+ve+"v "+W+"h "+W/2+"a "+W/2+" "+W/2+", 0, 0, 0, 0 "+-W)}}))},j.prototype._basicCornerRounded=function(M){var z=this,W=M.size,ee=M.x,ve=M.y;this._rotateFigure(P(P({},M),{draw:function(){z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),z._element.setAttribute("d","M "+ee+" "+ve+"v "+W+"h "+W+"v "+-W/2+"a "+W/2+" "+W/2+", 0, 0, 0, "+-W/2+" "+-W/2)}}))},j.prototype._basicCornerExtraRounded=function(M){var z=this,W=M.size,ee=M.x,ve=M.y;this._rotateFigure(P(P({},M),{draw:function(){z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),z._element.setAttribute("d","M "+ee+" "+ve+"v "+W+"h "+W+"a "+W+" "+W+", 0, 0, 0, "+-W+" "+-W)}}))},j.prototype._basicCornersRounded=function(M){var z=this,W=M.size,ee=M.x,ve=M.y;this._rotateFigure(P(P({},M),{draw:function(){z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),z._element.setAttribute("d","M "+ee+" "+ve+"v "+W/2+"a "+W/2+" "+W/2+", 0, 0, 0, "+W/2+" "+W/2+"h "+W/2+"v "+-W/2+"a "+W/2+" "+W/2+", 0, 0, 0, "+-W/2+" "+-W/2)}}))},j.prototype._drawDot=function(M){var z=M.x,W=M.y,ee=M.size;this._basicDot({x:z,y:W,size:ee,rotation:0})},j.prototype._drawSquare=function(M){var z=M.x,W=M.y,ee=M.size;this._basicSquare({x:z,y:W,size:ee,rotation:0})},j.prototype._drawRounded=function(M){var z=M.x,W=M.y,ee=M.size,ve=M.getNeighbor,he=ve?+ve(-1,0):0,oe=ve?+ve(1,0):0,ye=ve?+ve(0,-1):0,we=ve?+ve(0,1):0,Te=he+oe+ye+we;if(Te!==0)if(Te>2||he&&oe||ye&&we)this._basicSquare({x:z,y:W,size:ee,rotation:0});else{if(Te===2){var Ve=0;return he&&ye?Ve=Math.PI/2:ye&&oe?Ve=Math.PI:oe&&we&&(Ve=-Math.PI/2),void this._basicCornerRounded({x:z,y:W,size:ee,rotation:Ve})}if(Te===1)return Ve=0,ye?Ve=Math.PI/2:oe?Ve=Math.PI:we&&(Ve=-Math.PI/2),void this._basicSideRounded({x:z,y:W,size:ee,rotation:Ve})}else this._basicDot({x:z,y:W,size:ee,rotation:0})},j.prototype._drawExtraRounded=function(M){var z=M.x,W=M.y,ee=M.size,ve=M.getNeighbor,he=ve?+ve(-1,0):0,oe=ve?+ve(1,0):0,ye=ve?+ve(0,-1):0,we=ve?+ve(0,1):0,Te=he+oe+ye+we;if(Te!==0)if(Te>2||he&&oe||ye&&we)this._basicSquare({x:z,y:W,size:ee,rotation:0});else{if(Te===2){var Ve=0;return he&&ye?Ve=Math.PI/2:ye&&oe?Ve=Math.PI:oe&&we&&(Ve=-Math.PI/2),void this._basicCornerExtraRounded({x:z,y:W,size:ee,rotation:Ve})}if(Te===1)return Ve=0,ye?Ve=Math.PI/2:oe?Ve=Math.PI:we&&(Ve=-Math.PI/2),void this._basicSideRounded({x:z,y:W,size:ee,rotation:Ve})}else this._basicDot({x:z,y:W,size:ee,rotation:0})},j.prototype._drawClassy=function(M){var z=M.x,W=M.y,ee=M.size,ve=M.getNeighbor,he=ve?+ve(-1,0):0,oe=ve?+ve(1,0):0,ye=ve?+ve(0,-1):0,we=ve?+ve(0,1):0;he+oe+ye+we!==0?he||ye?oe||we?this._basicSquare({x:z,y:W,size:ee,rotation:0}):this._basicCornerRounded({x:z,y:W,size:ee,rotation:Math.PI/2}):this._basicCornerRounded({x:z,y:W,size:ee,rotation:-Math.PI/2}):this._basicCornersRounded({x:z,y:W,size:ee,rotation:Math.PI/2})},j.prototype._drawClassyRounded=function(M){var z=M.x,W=M.y,ee=M.size,ve=M.getNeighbor,he=ve?+ve(-1,0):0,oe=ve?+ve(1,0):0,ye=ve?+ve(0,-1):0,we=ve?+ve(0,1):0;he+oe+ye+we!==0?he||ye?oe||we?this._basicSquare({x:z,y:W,size:ee,rotation:0}):this._basicCornerExtraRounded({x:z,y:W,size:ee,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:z,y:W,size:ee,rotation:-Math.PI/2}):this._basicCornersRounded({x:z,y:W,size:ee,rotation:Math.PI/2})},j}();const L=U;var F=function(){return F=Object.assign||function(j){for(var M,z=1,W=arguments.length;z<W;z++)for(var ee in M=arguments[z])Object.prototype.hasOwnProperty.call(M,ee)&&(j[ee]=M[ee]);return j},F.apply(this,arguments)},G=function(){function j(M){var z=M.svg,W=M.type;this._svg=z,this._type=W}return j.prototype.draw=function(M,z,W,ee){var ve;switch(this._type){case"square":ve=this._drawSquare;break;case"extra-rounded":ve=this._drawExtraRounded;break;default:ve=this._drawDot}ve.call(this,{x:M,y:z,size:W,rotation:ee})},j.prototype._rotateFigure=function(M){var z,W=M.x,ee=M.y,ve=M.size,he=M.rotation,oe=he===void 0?0:he,ye=W+ve/2,we=ee+ve/2;(0,M.draw)(),(z=this._element)===null||z===void 0||z.setAttribute("transform","rotate("+180*oe/Math.PI+","+ye+","+we+")")},j.prototype._basicDot=function(M){var z=this,W=M.size,ee=M.x,ve=M.y,he=W/7;this._rotateFigure(F(F({},M),{draw:function(){z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),z._element.setAttribute("clip-rule","evenodd"),z._element.setAttribute("d","M "+(ee+W/2)+" "+ve+"a "+W/2+" "+W/2+" 0 1 0 0.1 0zm 0 "+he+"a "+(W/2-he)+" "+(W/2-he)+" 0 1 1 -0.1 0Z")}}))},j.prototype._basicSquare=function(M){var z=this,W=M.size,ee=M.x,ve=M.y,he=W/7;this._rotateFigure(F(F({},M),{draw:function(){z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),z._element.setAttribute("clip-rule","evenodd"),z._element.setAttribute("d","M "+ee+" "+ve+"v "+W+"h "+W+"v "+-W+"zM "+(ee+he)+" "+(ve+he)+"h "+(W-2*he)+"v "+(W-2*he)+"h "+(2*he-W)+"z")}}))},j.prototype._basicExtraRounded=function(M){var z=this,W=M.size,ee=M.x,ve=M.y,he=W/7;this._rotateFigure(F(F({},M),{draw:function(){z._element=document.createElementNS("http://www.w3.org/2000/svg","path"),z._element.setAttribute("clip-rule","evenodd"),z._element.setAttribute("d","M "+ee+" "+(ve+2.5*he)+"v "+2*he+"a "+2.5*he+" "+2.5*he+", 0, 0, 0, "+2.5*he+" "+2.5*he+"h "+2*he+"a "+2.5*he+" "+2.5*he+", 0, 0, 0, "+2.5*he+" "+2.5*-he+"v "+-2*he+"a "+2.5*he+" "+2.5*he+", 0, 0, 0, "+2.5*-he+" "+2.5*-he+"h "+-2*he+"a "+2.5*he+" "+2.5*he+", 0, 0, 0, "+2.5*-he+" "+2.5*he+"M "+(ee+2.5*he)+" "+(ve+he)+"h "+2*he+"a "+1.5*he+" "+1.5*he+", 0, 0, 1, "+1.5*he+" "+1.5*he+"v "+2*he+"a "+1.5*he+" "+1.5*he+", 0, 0, 1, "+1.5*-he+" "+1.5*he+"h "+-2*he+"a "+1.5*he+" "+1.5*he+", 0, 0, 1, "+1.5*-he+" "+1.5*-he+"v "+-2*he+"a "+1.5*he+" "+1.5*he+", 0, 0, 1, "+1.5*he+" "+1.5*-he)}}))},j.prototype._drawDot=function(M){var z=M.x,W=M.y,ee=M.size,ve=M.rotation;this._basicDot({x:z,y:W,size:ee,rotation:ve})},j.prototype._drawSquare=function(M){var z=M.x,W=M.y,ee=M.size,ve=M.rotation;this._basicSquare({x:z,y:W,size:ee,rotation:ve})},j.prototype._drawExtraRounded=function(M){var z=M.x,W=M.y,ee=M.size,ve=M.rotation;this._basicExtraRounded({x:z,y:W,size:ee,rotation:ve})},j}();const ie=G;var se=function(){return se=Object.assign||function(j){for(var M,z=1,W=arguments.length;z<W;z++)for(var ee in M=arguments[z])Object.prototype.hasOwnProperty.call(M,ee)&&(j[ee]=M[ee]);return j},se.apply(this,arguments)},K=function(){function j(M){var z=M.svg,W=M.type;this._svg=z,this._type=W}return j.prototype.draw=function(M,z,W,ee){(this._type==="square"?this._drawSquare:this._drawDot).call(this,{x:M,y:z,size:W,rotation:ee})},j.prototype._rotateFigure=function(M){var z,W=M.x,ee=M.y,ve=M.size,he=M.rotation,oe=he===void 0?0:he,ye=W+ve/2,we=ee+ve/2;(0,M.draw)(),(z=this._element)===null||z===void 0||z.setAttribute("transform","rotate("+180*oe/Math.PI+","+ye+","+we+")")},j.prototype._basicDot=function(M){var z=this,W=M.size,ee=M.x,ve=M.y;this._rotateFigure(se(se({},M),{draw:function(){z._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),z._element.setAttribute("cx",String(ee+W/2)),z._element.setAttribute("cy",String(ve+W/2)),z._element.setAttribute("r",String(W/2))}}))},j.prototype._basicSquare=function(M){var z=this,W=M.size,ee=M.x,ve=M.y;this._rotateFigure(se(se({},M),{draw:function(){z._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),z._element.setAttribute("x",String(ee)),z._element.setAttribute("y",String(ve)),z._element.setAttribute("width",String(W)),z._element.setAttribute("height",String(W))}}))},j.prototype._drawDot=function(M){var z=M.x,W=M.y,ee=M.size,ve=M.rotation;this._basicDot({x:z,y:W,size:ee,rotation:ve})},j.prototype._drawSquare=function(M){var z=M.x,W=M.y,ee=M.size,ve=M.rotation;this._basicSquare({x:z,y:W,size:ee,rotation:ve})},j}();const B=K,E="circle";var f=function(j,M,z,W){return new(z||(z=Promise))(function(ee,ve){function he(we){try{ye(W.next(we))}catch(Te){ve(Te)}}function oe(we){try{ye(W.throw(we))}catch(Te){ve(Te)}}function ye(we){var Te;we.done?ee(we.value):(Te=we.value,Te instanceof z?Te:new z(function(Ve){Ve(Te)})).then(he,oe)}ye((W=W.apply(j,M||[])).next())})},h=function(j,M){var z,W,ee,ve,he={label:0,sent:function(){if(1&ee[0])throw ee[1];return ee[1]},trys:[],ops:[]};return ve={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(ve[Symbol.iterator]=function(){return this}),ve;function oe(ye){return function(we){return function(Te){if(z)throw new TypeError("Generator is already executing.");for(;he;)try{if(z=1,W&&(ee=2&Te[0]?W.return:Te[0]?W.throw||((ee=W.return)&&ee.call(W),0):W.next)&&!(ee=ee.call(W,Te[1])).done)return ee;switch(W=0,ee&&(Te=[2&Te[0],ee.value]),Te[0]){case 0:case 1:ee=Te;break;case 4:return he.label++,{value:Te[1],done:!1};case 5:he.label++,W=Te[1],Te=[0];continue;case 7:Te=he.ops.pop(),he.trys.pop();continue;default:if(!((ee=(ee=he.trys).length>0&&ee[ee.length-1])||Te[0]!==6&&Te[0]!==2)){he=0;continue}if(Te[0]===3&&(!ee||Te[1]>ee[0]&&Te[1]<ee[3])){he.label=Te[1];break}if(Te[0]===6&&he.label<ee[1]){he.label=ee[1],ee=Te;break}if(ee&&he.label<ee[2]){he.label=ee[2],he.ops.push(Te);break}ee[2]&&he.ops.pop(),he.trys.pop();continue}Te=M.call(j,he)}catch(Ve){Te=[6,Ve],W=0}finally{z=ee=0}if(5&Te[0])throw Te[1];return{value:Te[0]?Te[1]:void 0,done:!0}}([ye,we])}}},T=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],w=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const R=function(){function j(M){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(M.width)),this._element.setAttribute("height",String(M.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._instanceId=j.instanceCount++,this._options=M}return Object.defineProperty(j.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(j.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),j.prototype.getElement=function(){return this._element},j.prototype.drawQR=function(M){return f(this,void 0,void 0,function(){var z,W,ee,ve,he,oe,ye,we,Te,Ve,Ke=this;return h(this,function(je){switch(je.label){case 0:return z=M.getModuleCount(),W=Math.min(this._options.width,this._options.height)-2*this._options.margin,ee=this._options.shape===E?W/Math.sqrt(2):W,ve=ee/z,he={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=M,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(je.sent(),!this._image)return[2];oe=this._options,ye=oe.imageOptions,we=oe.qrOptions,Te=ye.imageSize*D[we.errorCorrectionLevel],Ve=Math.floor(Te*z*z),he=function(Ge){var pe=Ge.originalHeight,Ae=Ge.originalWidth,Fe=Ge.maxHiddenDots,Re=Ge.maxHiddenAxisDots,te=Ge.dotSize,V={x:0,y:0},J={x:0,y:0};if(pe<=0||Ae<=0||Fe<=0||te<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var ce=pe/Ae;return V.x=Math.floor(Math.sqrt(Fe/ce)),V.x<=0&&(V.x=1),Re&&Re<V.x&&(V.x=Re),V.x%2==0&&V.x--,J.x=V.x*te,V.y=1+2*Math.ceil((V.x*ce-1)/2),J.y=Math.round(J.x*ce),(V.y*V.x>Fe||Re&&Re<V.y)&&(Re&&Re<V.y?(V.y=Re,V.y%2==0&&V.x--):V.y-=2,J.y=V.y*te,V.x=1+2*Math.ceil((V.y/ce-1)/2),J.x=Math.round(J.y/ce)),{height:J.y,width:J.x,hideYDots:V.y,hideXDots:V.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:Ve,maxHiddenAxisDots:z-14,dotSize:ve}),je.label=2;case 2:return this.drawBackground(),this.drawDots(function(Ge,pe){var Ae,Fe,Re,te,V,J;return!(Ke._options.imageOptions.hideBackgroundDots&&Ge>=(z-he.hideXDots)/2&&Ge<(z+he.hideXDots)/2&&pe>=(z-he.hideYDots)/2&&pe<(z+he.hideYDots)/2||!((Ae=T[Ge])===null||Ae===void 0)&&Ae[pe]||!((Fe=T[Ge-z+7])===null||Fe===void 0)&&Fe[pe]||!((Re=T[Ge])===null||Re===void 0)&&Re[pe-z+7]||!((te=w[Ge])===null||te===void 0)&&te[pe]||!((V=w[Ge-z+7])===null||V===void 0)&&V[pe]||!((J=w[Ge])===null||J===void 0)&&J[pe-z+7])}),this.drawCorners(),this._options.image?[4,this.drawImage({width:he.width,height:he.height,count:z,dotSize:ve})]:[3,4];case 3:je.sent(),je.label=4;case 4:return[2]}})})},j.prototype.drawBackground=function(){var M,z,W,ee=this._element,ve=this._options;if(ee){var he=(M=ve.backgroundOptions)===null||M===void 0?void 0:M.gradient,oe=(z=ve.backgroundOptions)===null||z===void 0?void 0:z.color;if((he||oe)&&this._createColor({options:he,color:oe,additionalRotation:0,x:0,y:0,height:ve.height,width:ve.width,name:"background-color"}),(W=ve.backgroundOptions)===null||W===void 0?void 0:W.round){var ye=Math.min(ve.width,ve.height),we=document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color"),this._defs.appendChild(this._backgroundClipPath),we.setAttribute("x",String((ve.width-ye)/2)),we.setAttribute("y",String((ve.height-ye)/2)),we.setAttribute("width",String(ye)),we.setAttribute("height",String(ye)),we.setAttribute("rx",String(ye/2*ve.backgroundOptions.round)),this._backgroundClipPath.appendChild(we)}}},j.prototype.drawDots=function(M){var z,W,ee=this;if(!this._qr)throw"QR code is not defined";var ve=this._options,he=this._qr.getModuleCount();if(he>ve.width||he>ve.height)throw"The canvas is too small.";var oe=Math.min(ve.width,ve.height)-2*ve.margin,ye=(ve.shape===E?oe/Math.sqrt(2):oe)/he,we=(ve.width-he*ye)/2,Te=(ve.height-he*ye)/2,Ve=new L({svg:this._element,type:ve.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color-"+this._instanceId),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(z=ve.dotsOptions)===null||z===void 0?void 0:z.gradient,color:ve.dotsOptions.color,additionalRotation:0,x:0,y:0,height:ve.height,width:ve.width,name:"dot-color-"+this._instanceId});for(var Ke=function(_e){for(var $e=function(Be){return M&&!M(_e,Be)?"continue":!((W=je._qr)===null||W===void 0)&&W.isDark(_e,Be)?(Ve.draw(we+_e*ye,Te+Be*ye,ye,function(Ne,st){return!(_e+Ne<0||Be+st<0||_e+Ne>=he||Be+st>=he)&&!(M&&!M(_e+Ne,Be+st))&&!!ee._qr&&ee._qr.isDark(_e+Ne,Be+st)}),void(Ve._element&&je._dotsClipPath&&je._dotsClipPath.appendChild(Ve._element))):"continue"},Je=0;Je<he;Je++)$e(Je)},je=this,Ge=0;Ge<he;Ge++)Ke(Ge);if(ve.shape===E){var pe=Math.floor((oe/ye-he)/2),Ae=he+2*pe,Fe=we-pe*ye,Re=Te-pe*ye,te=[],V=Math.floor(Ae/2);for(Ge=0;Ge<Ae;Ge++){te[Ge]=[];for(var J=0;J<Ae;J++)Ge>=pe-1&&Ge<=Ae-pe&&J>=pe-1&&J<=Ae-pe||Math.sqrt((Ge-V)*(Ge-V)+(J-V)*(J-V))>V?te[Ge][J]=0:te[Ge][J]=this._qr.isDark(J-2*pe<0?J:J>=he?J-2*pe:J-pe,Ge-2*pe<0?Ge:Ge>=he?Ge-2*pe:Ge-pe)?1:0}var ce=function(_e){for(var $e=function(Be){if(!te[_e][Be])return"continue";Ve.draw(Fe+_e*ye,Re+Be*ye,ye,function(Ne,st){var Ye;return!!(!((Ye=te[_e+Ne])===null||Ye===void 0)&&Ye[Be+st])}),Ve._element&&Ce._dotsClipPath&&Ce._dotsClipPath.appendChild(Ve._element)},Je=0;Je<Ae;Je++)$e(Je)},Ce=this;for(Ge=0;Ge<Ae;Ge++)ce(Ge)}},j.prototype.drawCorners=function(){var M=this;if(!this._qr)throw"QR code is not defined";var z=this._element,W=this._options;if(!z)throw"Element code is not defined";var ee=this._qr.getModuleCount(),ve=Math.min(W.width,W.height)-2*W.margin,he=(W.shape===E?ve/Math.sqrt(2):ve)/ee,oe=7*he,ye=3*he,we=(W.width-ee*he)/2,Te=(W.height-ee*he)/2;[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(Ve){var Ke,je,Ge,pe,Ae,Fe,Re,te,V,J,ce,Ce,_e=Ve[0],$e=Ve[1],Je=Ve[2],Be=we+_e*he*(ee-7),Ne=Te+$e*he*(ee-7),st=M._dotsClipPath,Ye=M._dotsClipPath;if((!((Ke=W.cornersSquareOptions)===null||Ke===void 0)&&Ke.gradient||!((je=W.cornersSquareOptions)===null||je===void 0)&&je.color)&&((st=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+_e+"-"+$e),M._defs.appendChild(st),M._cornersSquareClipPath=M._cornersDotClipPath=Ye=st,M._createColor({options:(Ge=W.cornersSquareOptions)===null||Ge===void 0?void 0:Ge.gradient,color:(pe=W.cornersSquareOptions)===null||pe===void 0?void 0:pe.color,additionalRotation:Je,x:Be,y:Ne,height:oe,width:oe,name:"corners-square-color-"+_e+"-"+$e})),(Ae=W.cornersSquareOptions)===null||Ae===void 0?void 0:Ae.type){var lt=new ie({svg:M._element,type:W.cornersSquareOptions.type});lt.draw(Be,Ne,oe,Je),lt._element&&st&&st.appendChild(lt._element)}else for(var Oe=new L({svg:M._element,type:W.dotsOptions.type}),xe=function(nt){for(var wt=function(ze){if(!(!((Fe=T[nt])===null||Fe===void 0)&&Fe[ze]))return"continue";Oe.draw(Be+nt*he,Ne+ze*he,he,function(Dt,Q){var ae;return!!(!((ae=T[nt+Dt])===null||ae===void 0)&&ae[ze+Q])}),Oe._element&&st&&st.appendChild(Oe._element)},et=0;et<T[nt].length;et++)wt(et)},De=0;De<T.length;De++)xe(De);if((!((Re=W.cornersDotOptions)===null||Re===void 0)&&Re.gradient||!((te=W.cornersDotOptions)===null||te===void 0)&&te.color)&&((Ye=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+_e+"-"+$e),M._defs.appendChild(Ye),M._cornersDotClipPath=Ye,M._createColor({options:(V=W.cornersDotOptions)===null||V===void 0?void 0:V.gradient,color:(J=W.cornersDotOptions)===null||J===void 0?void 0:J.color,additionalRotation:Je,x:Be+2*he,y:Ne+2*he,height:ye,width:ye,name:"corners-dot-color-"+_e+"-"+$e})),(ce=W.cornersDotOptions)===null||ce===void 0?void 0:ce.type){var it=new B({svg:M._element,type:W.cornersDotOptions.type});it.draw(Be+2*he,Ne+2*he,ye,Je),it._element&&Ye&&Ye.appendChild(it._element)}else{Oe=new L({svg:M._element,type:W.dotsOptions.type});var tt=function(nt){for(var wt=function(ze){if(!(!((Ce=w[nt])===null||Ce===void 0)&&Ce[ze]))return"continue";Oe.draw(Be+nt*he,Ne+ze*he,he,function(Dt,Q){var ae;return!!(!((ae=w[nt+Dt])===null||ae===void 0)&&ae[ze+Q])}),Oe._element&&Ye&&Ye.appendChild(Oe._element)},et=0;et<w[nt].length;et++)wt(et)};for(De=0;De<w.length;De++)tt(De)}})},j.prototype.loadImage=function(){var M=this;return new Promise(function(z,W){var ee=M._options,ve=new Image;if(!ee.image)return W("Image is not defined");typeof ee.imageOptions.crossOrigin=="string"&&(ve.crossOrigin=ee.imageOptions.crossOrigin),M._image=ve,ve.onload=function(){z()},ve.src=ee.image})},j.prototype.drawImage=function(M){var z=M.width,W=M.height,ee=M.count,ve=M.dotSize;return f(this,void 0,void 0,function(){var he,oe,ye,we,Te,Ve,Ke,je,Ge;return h(this,function(pe){switch(pe.label){case 0:return he=this._options,oe=(he.width-ee*ve)/2,ye=(he.height-ee*ve)/2,we=oe+he.imageOptions.margin+(ee*ve-z)/2,Te=ye+he.imageOptions.margin+(ee*ve-W)/2,Ve=z-2*he.imageOptions.margin,Ke=W-2*he.imageOptions.margin,(je=document.createElementNS("http://www.w3.org/2000/svg","image")).setAttribute("x",String(we)),je.setAttribute("y",String(Te)),je.setAttribute("width",Ve+"px"),je.setAttribute("height",Ke+"px"),[4,$(he.image||"")];case 1:return Ge=pe.sent(),je.setAttribute("href",Ge||""),this._element.appendChild(je),[2]}})})},j.prototype._createColor=function(M){var z=M.options,W=M.color,ee=M.additionalRotation,ve=M.x,he=M.y,oe=M.height,ye=M.width,we=M.name,Te=ye>oe?ye:oe,Ve=document.createElementNS("http://www.w3.org/2000/svg","rect");if(Ve.setAttribute("x",String(ve)),Ve.setAttribute("y",String(he)),Ve.setAttribute("height",String(oe)),Ve.setAttribute("width",String(ye)),Ve.setAttribute("clip-path","url('#clip-path-"+we+"')"),z){var Ke;if(z.type==="radial")(Ke=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",we),Ke.setAttribute("gradientUnits","userSpaceOnUse"),Ke.setAttribute("fx",String(ve+ye/2)),Ke.setAttribute("fy",String(he+oe/2)),Ke.setAttribute("cx",String(ve+ye/2)),Ke.setAttribute("cy",String(he+oe/2)),Ke.setAttribute("r",String(Te/2));else{var je=((z.rotation||0)+ee)%(2*Math.PI),Ge=(je+2*Math.PI)%(2*Math.PI),pe=ve+ye/2,Ae=he+oe/2,Fe=ve+ye/2,Re=he+oe/2;Ge>=0&&Ge<=.25*Math.PI||Ge>1.75*Math.PI&&Ge<=2*Math.PI?(pe-=ye/2,Ae-=oe/2*Math.tan(je),Fe+=ye/2,Re+=oe/2*Math.tan(je)):Ge>.25*Math.PI&&Ge<=.75*Math.PI?(Ae-=oe/2,pe-=ye/2/Math.tan(je),Re+=oe/2,Fe+=ye/2/Math.tan(je)):Ge>.75*Math.PI&&Ge<=1.25*Math.PI?(pe+=ye/2,Ae+=oe/2*Math.tan(je),Fe-=ye/2,Re-=oe/2*Math.tan(je)):Ge>1.25*Math.PI&&Ge<=1.75*Math.PI&&(Ae+=oe/2,pe+=ye/2/Math.tan(je),Re-=oe/2,Fe-=ye/2/Math.tan(je)),(Ke=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",we),Ke.setAttribute("gradientUnits","userSpaceOnUse"),Ke.setAttribute("x1",String(Math.round(pe))),Ke.setAttribute("y1",String(Math.round(Ae))),Ke.setAttribute("x2",String(Math.round(Fe))),Ke.setAttribute("y2",String(Math.round(Re)))}z.colorStops.forEach(function(te){var V=te.offset,J=te.color,ce=document.createElementNS("http://www.w3.org/2000/svg","stop");ce.setAttribute("offset",100*V+"%"),ce.setAttribute("stop-color",J),Ke.appendChild(ce)}),Ve.setAttribute("fill","url('#"+we+"')"),this._defs.appendChild(Ke)}else W&&Ve.setAttribute("fill",W);this._element.appendChild(Ve)},j.instanceCount=0,j}(),I="canvas";for(var C={},x=0;x<=40;x++)C[x]=x;const v={type:I,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:C[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{round:0,color:"#fff"}};var k=function(){return k=Object.assign||function(j){for(var M,z=1,W=arguments.length;z<W;z++)for(var ee in M=arguments[z])Object.prototype.hasOwnProperty.call(M,ee)&&(j[ee]=M[ee]);return j},k.apply(this,arguments)};function ne(j){var M=k({},j);if(!M.colorStops||!M.colorStops.length)throw"Field 'colorStops' is required in gradient";return M.rotation?M.rotation=Number(M.rotation):M.rotation=0,M.colorStops=M.colorStops.map(function(z){return k(k({},z),{offset:Number(z.offset)})}),M}function N(j){var M=k({},j);return M.width=Number(M.width),M.height=Number(M.height),M.margin=Number(M.margin),M.imageOptions=k(k({},M.imageOptions),{hideBackgroundDots:!!M.imageOptions.hideBackgroundDots,imageSize:Number(M.imageOptions.imageSize),margin:Number(M.imageOptions.margin)}),M.margin>Math.min(M.width,M.height)&&(M.margin=Math.min(M.width,M.height)),M.dotsOptions=k({},M.dotsOptions),M.dotsOptions.gradient&&(M.dotsOptions.gradient=ne(M.dotsOptions.gradient)),M.cornersSquareOptions&&(M.cornersSquareOptions=k({},M.cornersSquareOptions),M.cornersSquareOptions.gradient&&(M.cornersSquareOptions.gradient=ne(M.cornersSquareOptions.gradient))),M.cornersDotOptions&&(M.cornersDotOptions=k({},M.cornersDotOptions),M.cornersDotOptions.gradient&&(M.cornersDotOptions.gradient=ne(M.cornersDotOptions.gradient))),M.backgroundOptions&&(M.backgroundOptions=k({},M.backgroundOptions),M.backgroundOptions.gradient&&(M.backgroundOptions.gradient=ne(M.backgroundOptions.gradient))),M}var Y=s(192),re=s.n(Y),le=function(j,M,z,W){return new(z||(z=Promise))(function(ee,ve){function he(we){try{ye(W.next(we))}catch(Te){ve(Te)}}function oe(we){try{ye(W.throw(we))}catch(Te){ve(Te)}}function ye(we){var Te;we.done?ee(we.value):(Te=we.value,Te instanceof z?Te:new z(function(Ve){Ve(Te)})).then(he,oe)}ye((W=W.apply(j,M||[])).next())})},ge=function(j,M){var z,W,ee,ve,he={label:0,sent:function(){if(1&ee[0])throw ee[1];return ee[1]},trys:[],ops:[]};return ve={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(ve[Symbol.iterator]=function(){return this}),ve;function oe(ye){return function(we){return function(Te){if(z)throw new TypeError("Generator is already executing.");for(;he;)try{if(z=1,W&&(ee=2&Te[0]?W.return:Te[0]?W.throw||((ee=W.return)&&ee.call(W),0):W.next)&&!(ee=ee.call(W,Te[1])).done)return ee;switch(W=0,ee&&(Te=[2&Te[0],ee.value]),Te[0]){case 0:case 1:ee=Te;break;case 4:return he.label++,{value:Te[1],done:!1};case 5:he.label++,W=Te[1],Te=[0];continue;case 7:Te=he.ops.pop(),he.trys.pop();continue;default:if(!((ee=(ee=he.trys).length>0&&ee[ee.length-1])||Te[0]!==6&&Te[0]!==2)){he=0;continue}if(Te[0]===3&&(!ee||Te[1]>ee[0]&&Te[1]<ee[3])){he.label=Te[1];break}if(Te[0]===6&&he.label<ee[1]){he.label=ee[1],ee=Te;break}if(ee&&he.label<ee[2]){he.label=ee[2],he.ops.push(Te);break}ee[2]&&he.ops.pop(),he.trys.pop();continue}Te=M.call(j,he)}catch(Ve){Te=[6,Ve],W=0}finally{z=ee=0}if(5&Te[0])throw Te[1];return{value:Te[0]?Te[1]:void 0,done:!0}}([ye,we])}}};const Se=function(){function j(M){this._options=M?N(y(v,M)):v,this.update()}return j._clearContainer=function(M){M&&(M.innerHTML="")},j.prototype._setupSvg=function(){var M=this;if(this._qr){var z=new R(this._options);this._svg=z.getElement(),this._svgDrawingPromise=z.drawQR(this._qr).then(function(){var W;M._svg&&((W=M._extension)===null||W===void 0||W.call(M,z.getElement(),M._options))})}},j.prototype._setupCanvas=function(){var M,z=this;this._qr&&(this._canvas=document.createElement("canvas"),this._canvas.width=this._options.width,this._canvas.height=this._options.height,this._setupSvg(),this._canvasDrawingPromise=(M=this._svgDrawingPromise)===null||M===void 0?void 0:M.then(function(){if(z._svg){var W=z._svg,ee=new XMLSerializer().serializeToString(W),ve="data:image/svg+xml;base64,"+btoa(ee),he=new Image;return new Promise(function(oe){he.onload=function(){var ye,we;(we=(ye=z._canvas)===null||ye===void 0?void 0:ye.getContext("2d"))===null||we===void 0||we.drawImage(he,0,0),oe()},he.src=ve})}}))},j.prototype._getElement=function(M){return M===void 0&&(M="png"),le(this,void 0,void 0,function(){return ge(this,function(z){switch(z.label){case 0:if(!this._qr)throw"QR code is empty";return M.toLowerCase()!=="svg"?[3,2]:(this._svg&&this._svgDrawingPromise||this._setupSvg(),[4,this._svgDrawingPromise]);case 1:return z.sent(),[2,this._svg];case 2:return this._canvas&&this._canvasDrawingPromise||this._setupCanvas(),[4,this._canvasDrawingPromise];case 3:return z.sent(),[2,this._canvas]}})})},j.prototype.update=function(M){j._clearContainer(this._container),this._options=M?N(y(this._options,M)):this._options,this._options.data&&(this._qr=re()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(z){switch(!0){case/^[0-9]*$/.test(z):return l;case/^[0-9A-Z $%*+\-./:]*$/.test(z):return c;default:return u}}(this._options.data)),this._qr.make(),this._options.type===I?this._setupCanvas():this._setupSvg(),this.append(this._container))},j.prototype.append=function(M){if(M){if(typeof M.appendChild!="function")throw"Container should be a single DOM node";this._options.type===I?this._canvas&&M.appendChild(this._canvas):this._svg&&M.appendChild(this._svg),this._container=M}},j.prototype.applyExtension=function(M){if(!M)throw"Extension function should be defined.";this._extension=M,this.update()},j.prototype.deleteExtension=function(){this._extension=void 0,this.update()},j.prototype.getRawData=function(M){return M===void 0&&(M="png"),le(this,void 0,void 0,function(){var z,W,ee;return ge(this,function(ve){switch(ve.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getElement(M)];case 1:return(z=ve.sent())?M.toLowerCase()==="svg"?(W=new XMLSerializer,ee=W.serializeToString(z),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
|
|
491
491
|
`+ee],{type:"image/svg+xml"})]):[2,new Promise(function(he){return z.toBlob(he,"image/"+M,1)})]:[2,null]}})})},j.prototype.download=function(M){return le(this,void 0,void 0,function(){var z,W,ee,ve,he;return ge(this,function(oe){switch(oe.label){case 0:if(!this._qr)throw"QR code is empty";return z="png",W="qr",typeof M=="string"?(z=M,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof M=="object"&&M!==null&&(M.name&&(W=M.name),M.extension&&(z=M.extension)),[4,this._getElement(z)];case 1:return(ee=oe.sent())?(z.toLowerCase()==="svg"?(ve=new XMLSerializer,he=`<?xml version="1.0" standalone="no"?>\r
|
|
492
492
|
`+(he=ve.serializeToString(ee)),b("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(he),W+".svg")):b(ee.toDataURL("image/"+z),W+"."+z),[2]):[2]}})})},j}()}},r={};function i(a){if(r[a])return r[a].exports;var o=r[a]={exports:{}};return n[a](o,o.exports,i),o.exports}return i.n=a=>{var o=a&&a.__esModule?()=>a.default:()=>a;return i.d(o,{a:o}),o},i.d=(a,o)=>{for(var s in o)i.o(o,s)&&!i.o(a,s)&&Object.defineProperty(a,s,{enumerable:!0,get:o[s]})},i.o=(a,o)=>Object.prototype.hasOwnProperty.call(a,o),i(676)})().default})})(gee);var wYe=gee.exports;const _Ye=zt(wYe),CYe={margin:0,dotsOptions:{type:"dots"},cornersSquareOptions:{type:"extra-rounded"},cornersDotOptions:{type:"dot"}};function V$({data:e,size:t,image:n,config:r,...i}){const a=Z.useRef(null),o=Z.useMemo(()=>({...CYe,data:e,width:t,height:t,...n&&{image:n,imageOptions:{crossOrigin:"anonymous",margin:0}},...r}),[e,t,n,r]),[s]=Z.useState(new _Ye(o));return Z.useEffect(()=>{a.current&&s.append(a.current)},[s,a]),Z.useEffect(()=>{s&&s.update(o)},[e,t,n,r]),q.jsx(Et,{ref:a,...i})}V$.propTypes={data:me.string.isRequired,size:me.number.isRequired,image:me.string,config:me.object};V$.defaultProps={image:null,config:{}};function J$({tokenState:e,locale:t,messages:n}){const{t:r,matchSmallScreen:i}=pl(),a="DID Wallet",o=(n==null?void 0:n.scan)||r("scanWithWallet"),s=r("download"),l=r("downloadTips"),c=160,u=Xt(()=>["zh","en"].includes?`https://www.didwallet.io/${t}`:"https://www.didwallet.io/en",[t]),d=Xt(()=>q.jsxs(q.Fragment,{children:[l," ",q.jsx(Et,{component:"a",href:u,target:"_blank",rel:"noopener",sx:{color:kt.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:s})]}),[u,s,l]);return q.jsxs(uu,{sx:{display:"flex",gap:1,justifyContent:"space-between",alignItems:i?"center":"stretch",flexDirection:i?"column":"row"},children:[q.jsx(Et,{sx:{display:i?"none":"block"},children:q.jsx(qp,{width:"24px",height:"24px"})}),q.jsxs(Et,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",flex:1,wordBreak:"break-word",width:i?186:"auto"},children:[q.jsxs(or,{sx:{fontSize:"14px",fontWeight:500,display:"flex",alignItems:"center",gap:1},children:[i?q.jsx(qp,{width:"24px",height:"24px"}):null,a]}),q.jsx(or,{sx:{flex:1,color:kt.foregroundsFgMuted,fontSize:"12px"},children:o}),q.jsx(Et,{sx:{color:kt.foregroundsFgMuted,fontSize:"12px",display:i?"none":"block"},children:d})]}),q.jsx(V$,{data:e.url,size:c,sx:{p:1.5,borderRadius:2,border:`1px solid ${kt.strokeBorderBase}`,backgroundColor:"white",fontSize:0}}),q.jsx(Et,{sx:{color:kt.textMuted,fontSize:"12px",display:i?"block":"none"},children:d})]})}J$.propTypes={tokenState:me.object.isRequired,locale:me.string,messages:me.object};J$.defaultProps={locale:"en",messages:{}};const yee={width:256,height:315,body:'<path d="M213.803 167.03c.442 47.58 41.74 63.413 42.197 63.615c-.35 1.116-6.599 22.563-21.757 44.716c-13.104 19.153-26.705 38.235-48.13 38.63c-21.05.388-27.82-12.483-51.888-12.483c-24.061 0-31.582 12.088-51.51 12.871c-20.68.783-36.428-20.71-49.64-39.793c-27-39.033-47.633-110.3-19.928-158.406c13.763-23.89 38.36-39.017 65.056-39.405c20.307-.387 39.475 13.662 51.889 13.662c12.406 0 35.699-16.895 60.186-14.414c10.25.427 39.026 4.14 57.503 31.186c-1.49.923-34.335 20.044-33.978 59.822M174.24 50.199c10.98-13.29 18.369-31.79 16.353-50.199c-15.826.636-34.962 10.546-46.314 23.828c-10.173 11.763-19.082 30.589-16.678 48.633c17.64 1.365 35.66-8.964 46.64-22.262"/>'},vee={width:256,height:250,body:'<path fill="#161614" d="M128.001 0C57.317 0 0 57.307 0 128.001c0 56.554 36.676 104.535 87.535 121.46c6.397 1.185 8.746-2.777 8.746-6.158c0-3.052-.12-13.135-.174-23.83c-35.61 7.742-43.124-15.103-43.124-15.103c-5.823-14.795-14.213-18.73-14.213-18.73c-11.613-7.944.876-7.78.876-7.78c12.853.902 19.621 13.19 19.621 13.19c11.417 19.568 29.945 13.911 37.249 10.64c1.149-8.272 4.466-13.92 8.127-17.116c-28.431-3.236-58.318-14.212-58.318-63.258c0-13.975 5-25.394 13.188-34.358c-1.329-3.224-5.71-16.242 1.24-33.874c0 0 10.749-3.44 35.21 13.121c10.21-2.836 21.16-4.258 32.038-4.307c10.878.049 21.837 1.47 32.066 4.307c24.431-16.56 35.165-13.12 35.165-13.12c6.967 17.63 2.584 30.65 1.255 33.873c8.207 8.964 13.173 20.383 13.173 34.358c0 49.163-29.944 59.988-58.447 63.157c4.591 3.972 8.682 11.762 8.682 23.704c0 17.126-.148 30.91-.148 35.126c0 3.407 2.304 7.398 8.792 6.14C219.37 232.5 256 184.537 256 128.002C256 57.307 198.691 0 128.001 0Zm-80.06 182.34c-.282.636-1.283.827-2.194.39c-.929-.417-1.45-1.284-1.15-1.922c.276-.655 1.279-.838 2.205-.399c.93.418 1.46 1.293 1.139 1.931Zm6.296 5.618c-.61.566-1.804.303-2.614-.591c-.837-.892-.994-2.086-.375-2.66c.63-.566 1.787-.301 2.626.591c.838.903 1 2.088.363 2.66Zm4.32 7.188c-.785.545-2.067.034-2.86-1.104c-.784-1.138-.784-2.503.017-3.05c.795-.547 2.058-.055 2.861 1.075c.782 1.157.782 2.522-.019 3.08Zm7.304 8.325c-.701.774-2.196.566-3.29-.49c-1.119-1.032-1.43-2.496-.726-3.27c.71-.776 2.213-.558 3.315.49c1.11 1.03 1.45 2.505.701 3.27Zm9.442 2.81c-.31 1.003-1.75 1.459-3.199 1.033c-1.448-.439-2.395-1.613-2.103-2.626c.301-1.01 1.747-1.484 3.207-1.028c1.446.436 2.396 1.602 2.095 2.622Zm10.744 1.193c.036 1.055-1.193 1.93-2.715 1.95c-1.53.034-2.769-.82-2.786-1.86c0-1.065 1.202-1.932 2.733-1.958c1.522-.03 2.768.818 2.768 1.868Zm10.555-.405c.182 1.03-.875 2.088-2.387 2.37c-1.485.271-2.861-.365-3.05-1.386c-.184-1.056.893-2.114 2.376-2.387c1.514-.263 2.868.356 3.061 1.403Z"/>'},bee={width:256,height:262,body:'<path fill="#4285F4" d="M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622l38.755 30.023l2.685.268c24.659-22.774 38.875-56.282 38.875-96.027"/><path fill="#34A853" d="M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055c-34.523 0-63.824-22.773-74.269-54.25l-1.531.13l-40.298 31.187l-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1"/><path fill="#FBBC05" d="M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82c0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782"/><path fill="#EB4335" d="M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0C79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251"/>'};function Tee({icon:e,...t}){return q.jsx(ou,{...t,sx:{backgroundColor:"white",border:`1px solid ${kt.borderBase}`,...t==null?void 0:t.sx},children:q.jsx(Vn,{icon:e,width:"1em",height:"1em"})})}Tee.propTypes={icon:me.any.isRequired};function Eee({providerList:e,onLogin:t}){return q.jsxs(uu,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[q.jsxs(Et,{sx:{display:"flex",alignItems:"center",gap:1},children:[q.jsx(Vn,{icon:D$,fontSize:"1.3rem"}),q.jsx(or,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Others"})]}),q.jsx(Et,{sx:{display:"flex",gap:2},children:e.map(r=>{const i={[Oi.AUTH0]:L$,[Oi.APPLE]:yee,[Oi.GITHUB]:vee,[Oi.GOOGLE]:bee};return q.jsx(Tee,{icon:i[r.provider],onClick:()=>t(r)},r.provider)})})]})}Eee.propTypes={onLogin:me.func.isRequired,providerList:me.array.isRequired};function Aee({title:e,icon:t,...n}){return q.jsxs(uu,{...n,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:kt.surfacePrimarySubtitle,"& .other-item-icon":{display:"inline-block",transform:"translateX(0)",opacity:"1"}},"& .other-item-icon":{opacity:"0",transform:"translateX(-100%)",transition:"transform 0.2s ease"},...n==null?void 0:n.sx},children:[q.jsxs(Et,{sx:{display:"flex",alignItems:"center",gap:1},children:[q.jsx(Vn,{icon:t,width:"1em",height:"1em",fontSize:"1.5rem",style:{transform:"scale(0.95)"}}),q.jsx(or,{sx:{fontSize:"16px",fontWeight:"bold"},children:e})]}),q.jsx(Vn,{className:"other-item-icon",icon:NE,fontSize:"1.3rem",color:kt.primaryBase})]})}Aee.propTypes={title:me.string.isRequired,icon:me.string.isRequired};function See({providerList:e,onLogin:t}){const{t:n}=pl(),r={[Oi.AUTH0]:L$,[Oi.APPLE]:yee,[Oi.GITHUB]:vee,[Oi.GOOGLE]:bee};return q.jsx(Et,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:e.map(i=>{if(i.provider===Oi.AUTH0&&e.length===1){const a=n("otherAccount");return q.jsxs(uu,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer","&:hover":{backgroundColor:kt.surfacePrimarySubtitle}},onClick:()=>{t(i)},children:[q.jsxs(Et,{sx:{display:"flex",alignItems:"center",gap:1},children:[q.jsx(Vn,{icon:D$,fontSize:"1.3rem"}),q.jsx(or,{sx:{fontSize:"16px",fontWeight:"bold"},children:a})]}),q.jsx(Et,{sx:{display:"flex",gap:2},children:[{provider:"auth0"},{provider:"google"},{provider:"apple"}].map(o=>q.jsx(ou,{sx:{backgroundColor:"white",border:`1px solid ${kt.borderBase}`},children:q.jsx(Vn,{icon:r[o.provider],width:"1em",height:"1em"})},o.provider))})]},i.provider)}return q.jsx(Aee,{title:Js[i.provider],icon:r[i.provider],onClick:()=>{t(i)}},i.provider)})})}See.propTypes={onLogin:me.func.isRequired,providerList:me.array.isRequired};function ab({providerList:e,type:t,onSuccess:n,onError:r,tokenState:i}){const{extraParams:a,changeStatus:o}=pl(),{loginOAuth:s,logoutOAuth:l,t:c,oauthState:u}=b$(),d=Tt(async p=>{const m=a==null?void 0:a.sourceAppPid;try{u.loading=!0,u.status="scanned";const y=await s(p,{action:i.action,...a}),b=bf({returnDomain:!1});Kr.remove("connected_did",b),Kr.remove("connected_pk",b),Kr.remove("connected_wallet_os",b),y!=null&&y.sessionToken&&(u.loading=!1,u.status="succeed",n({...y,encrypted:!1},_=>_,{sourceAppPid:m,connected_app:dp(i.appInfo,i.memberAppInfo)}))}catch(y){const b=I3(y,c("loginOAuthFailed"));u.loading=!1,u.error=b,u.status="error",await l({provider:p.provider}),r(new Error(b))}});return Z.useEffect(()=>{o(u.status)},[o,u.status]),t==="stack"?q.jsx(Eee,{providerList:e,onLogin:d}):q.jsx(See,{providerList:e,onLogin:d})}ab.propTypes={providerList:me.array.isRequired,type:me.oneOf(["list","stack"]),onSuccess:me.func.isRequired,onError:me.func.isRequired,tokenState:me.object.isRequired};ab.defaultProps={type:"stack"};function RYe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var xYe=RYe,$Ye=U$,IYe=xYe,kYe=H$,DYe=1,LYe=2;function OYe(e,t,n,r,i,a){var o=n&DYe,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,m=n&LYe?new $Ye:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var y=e[d],b=t[d];if(r)var _=o?r(b,y,d,t,e,a):r(y,b,d,e,t,a);if(_!==void 0){if(_)continue;p=!1;break}if(m){if(!IYe(t,function(S,$){if(!kYe(m,$)&&(y===S||i(y,S,n,r,a)))return m.push($)})){p=!1;break}}else if(!(y===b||i(y,b,n,r,a))){p=!1;break}}return a.delete(e),a.delete(t),p}var wee=OYe;function PYe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var MYe=PYe;function BYe(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var q$=BYe,AU=ah,SU=sK,NYe=Hm,FYe=wee,UYe=MYe,HYe=q$,jYe=1,VYe=2,JYe="[object Boolean]",qYe="[object Date]",GYe="[object Error]",zYe="[object Map]",WYe="[object Number]",KYe="[object RegExp]",YYe="[object Set]",ZYe="[object String]",XYe="[object Symbol]",QYe="[object ArrayBuffer]",eZe="[object DataView]",wU=AU?AU.prototype:void 0,L4=wU?wU.valueOf:void 0;function tZe(e,t,n,r,i,a,o){switch(n){case eZe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case QYe:return!(e.byteLength!=t.byteLength||!a(new SU(e),new SU(t)));case JYe:case qYe:case WYe:return NYe(+e,+t);case GYe:return e.name==t.name&&e.message==t.message;case KYe:case ZYe:return e==t+"";case zYe:var s=UYe;case YYe:var l=r&jYe;if(s||(s=HYe),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=VYe,o.set(e,t);var u=FYe(s(e),s(t),r,i,a,o);return o.delete(e),u;case XYe:if(L4)return L4.call(e)==L4.call(t)}return!1}var nZe=tZe,_U=CK,rZe=1,iZe=Object.prototype,aZe=iZe.hasOwnProperty;function oZe(e,t,n,r,i,a){var o=n&rZe,s=_U(e),l=s.length,c=_U(t),u=c.length;if(l!=u&&!o)return!1;for(var d=l;d--;){var p=s[d];if(!(o?p in t:aZe.call(t,p)))return!1}var m=a.get(e),y=a.get(t);if(m&&y)return m==t&&y==e;var b=!0;a.set(e,t),a.set(t,e);for(var _=o;++d<l;){p=s[d];var S=e[p],$=t[p];if(r)var D=o?r($,S,p,t,e,a):r(S,$,p,e,t,a);if(!(D===void 0?S===$||i(S,$,n,r,a):D)){b=!1;break}_||(_=p=="constructor")}if(b&&!_){var P=e.constructor,U=t.constructor;P!=U&&"constructor"in e&&"constructor"in t&&!(typeof P=="function"&&P instanceof P&&typeof U=="function"&&U instanceof U)&&(b=!1)}return a.delete(e),a.delete(t),b}var sZe=oZe,O4=JT,lZe=wee,uZe=nZe,cZe=sZe,CU=Qm,RU=Ia,xU=Wm,fZe=GT,dZe=1,$U="[object Arguments]",IU="[object Array]",yv="[object Object]",pZe=Object.prototype,kU=pZe.hasOwnProperty;function hZe(e,t,n,r,i,a){var o=RU(e),s=RU(t),l=o?IU:CU(e),c=s?IU:CU(t);l=l==$U?yv:l,c=c==$U?yv:c;var u=l==yv,d=c==yv,p=l==c;if(p&&xU(e)){if(!xU(t))return!1;o=!0,u=!1}if(p&&!u)return a||(a=new O4),o||fZe(e)?lZe(e,t,n,r,i,a):uZe(e,t,l,n,r,i,a);if(!(n&dZe)){var m=u&&kU.call(e,"__wrapped__"),y=d&&kU.call(t,"__wrapped__");if(m||y){var b=m?e.value():e,_=y?t.value():t;return a||(a=new O4),i(b,_,n,r,a)}}return p?(a||(a=new O4),cZe(e,t,n,r,i,a)):!1}var mZe=hZe,gZe=mZe,DU=qo;function _ee(e,t,n,r,i){return e===t?!0:e==null||t==null||!DU(e)&&!DU(t)?e!==e&&t!==t:gZe(e,t,n,r,_ee,i)}var G$=_ee,yZe=JT,vZe=G$,bZe=1,TZe=2;function EZe(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var l=s[0],c=e[l],u=s[1];if(o&&s[2]){if(c===void 0&&!(l in e))return!1}else{var d=new yZe;if(r)var p=r(c,u,l,e,t,d);if(!(p===void 0?vZe(u,c,bZe|TZe,r,d):p))return!1}}return!0}var AZe=EZe,SZe=ta;function wZe(e){return e===e&&!SZe(e)}var Cee=wZe,_Ze=Cee,CZe=Xm;function RZe(e){for(var t=CZe(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,_Ze(i)]}return t}var xZe=RZe;function $Ze(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var Ree=$Ze,IZe=AZe,kZe=xZe,DZe=Ree;function LZe(e){var t=kZe(e);return t.length==1&&t[0][2]?DZe(t[0][0],t[0][1]):function(n){return n===e||IZe(n,e,t)}}var OZe=LZe,PZe=G$,MZe=DT,BZe=NK,NZe=px,FZe=Cee,UZe=Ree,HZe=fh,jZe=1,VZe=2;function JZe(e,t){return NZe(e)&&FZe(t)?UZe(HZe(e),t):function(n){var r=MZe(n,e);return r===void 0&&r===t?BZe(n,e):PZe(t,r,jZe|VZe)}}var qZe=JZe,GZe=jm;function zZe(e){return function(t){return GZe(t,e)}}var WZe=zZe,KZe=Cz,YZe=WZe,ZZe=px,XZe=fh;function QZe(e){return ZZe(e)?KZe(XZe(e)):YZe(e)}var eXe=QZe,tXe=OZe,nXe=qZe,rXe=WT,iXe=Ia,aXe=eXe;function oXe(e){return typeof e=="function"?e:e==null?rXe:typeof e=="object"?iXe(e)?nXe(e[0],e[1]):tXe(e):aXe(e)}var HE=oXe,sXe="Expected a function";function lXe(e){if(typeof e!="function")throw new TypeError(sXe);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var uXe=lXe,cXe=uh,fXe=HE,dXe=BK,pXe=o8;function hXe(e,t){if(e==null)return{};var n=cXe(pXe(e),function(r){return[r]});return t=fXe(t),dXe(e,n,function(r,i){return t(r,i[0])})}var mXe=hXe,gXe=HE,yXe=uXe,vXe=mXe;function bXe(e,t){return vXe(e,yXe(gXe(t)))}var TXe=bXe;const LU=zt(TXe);function EXe(e,t){const n=Z.useRef();Z.useEffect(()=>{n.current=e},[e]),Z.useEffect(()=>{function r(){n.current()}if(t!==null){const i=setInterval(r,t);return()=>clearInterval(i)}},[t])}var z$=Object.defineProperty,AXe=Object.getOwnPropertyDescriptor,SXe=Object.getOwnPropertyNames,wXe=Object.prototype.hasOwnProperty,_Xe=(e,t)=>{for(var n in t)z$(e,n,{get:t[n],enumerable:!0})},CXe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of SXe(t))!wXe.call(e,i)&&i!==n&&z$(e,i,{get:()=>t[i],enumerable:!(r=AXe(t,i))||r.enumerable});return e},RXe=e=>CXe(z$({},"__esModule",{value:!0}),e),xee={};_Xe(xee,{Channel:()=>Iee,LongPoll:()=>D3,Presence:()=>q0,Serializer:()=>G0,Socket:()=>OXe});var xXe=RXe(xee),y1=e=>typeof e=="function"?e:function(){return e},$Xe=typeof self<"u"?self:null,J0=typeof window<"u"?window:null,v1=$Xe||J0||v1,IXe="2.0.0",Hs={connecting:0,open:1,closing:2,closed:3},kXe=1e4,DXe=1e3,Fa={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},$l={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},oR={longpoll:"longpoll",websocket:"websocket"},LXe={complete:4},vv=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},$ee=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},Iee=class{constructor(e,t,n){this.state=Fa.closed,this.topic=e,this.params=y1(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new vv(this,$l.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new $ee(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Fa.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Fa.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=Fa.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=Fa.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new vv(this,$l.leave,y1({}),this.timeout).send(),this.state=Fa.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on($l.reply,(r,i)=>{this.trigger(this.replyEventName(i),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(e){this.on($l.close,e)}onError(e){return this.on($l.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new vv(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Fa.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger($l.close,"leave")},n=new vv(this,$l.leave,y1({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Fa.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let i=this.onMessage(e,t,n,r);if(t&&!i)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let a=this.bindings.filter(o=>o.event===e);for(let o=0;o<a.length;o++)a[o].callback(i,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Fa.closed}isErrored(){return this.state===Fa.errored}isJoined(){return this.state===Fa.joined}isJoining(){return this.state===Fa.joining}isLeaving(){return this.state===Fa.leaving}},ob=class{static request(e,t,n,r,i,a,o){if(v1.XDomainRequest){let s=new v1.XDomainRequest;return this.xdomainRequest(s,e,t,r,i,a,o)}else{let s=new v1.XMLHttpRequest;return this.xhrRequest(s,e,t,n,r,i,a,o)}}static xdomainRequest(e,t,n,r,i,a,o){return e.timeout=i,e.open(t,n),e.onload=()=>{let s=this.parseJSON(e.responseText);o&&o(s)},a&&(e.ontimeout=a),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,i,a,o,s){return e.open(t,n,!0),e.timeout=a,e.setRequestHeader("Content-Type",r),e.onerror=()=>s&&s(null),e.onreadystatechange=()=>{if(e.readyState===LXe.complete&&s){let l=this.parseJSON(e.responseText);s(l)}},o&&(e.ontimeout=o),e.send(i),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=t?`${t}[${r}]`:r,a=e[r];typeof a=="object"?n.push(this.serialize(a,i)):n.push(encodeURIComponent(i)+"="+encodeURIComponent(a))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},D3=class{constructor(e){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=Hs.connecting,this.poll()}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+oR.websocket),"$1/"+oR.longpoll)}endpointURL(){return ob.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Hs.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Hs.open||this.readyState===Hs.connecting}poll(){this.ajax("GET","application/json",null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:n,messages:r}=e;this.token=n}else t=0;switch(t){case 200:r.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Hs.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${t}`)}})}send(e){this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST","application/x-ndjson",e.join(`
|
|
493
|
-
`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let i of this.reqs)i.abort();this.readyState=Hs.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,i){let a,o=()=>{this.reqs.delete(a),r()};a=ob.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},q0=class{constructor(e,t={}){let n=t.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,r=>{let{onJoin:i,onLeave:a,onSync:o}=this.caller;this.joinRef=this.channel.joinRef(),this.state=q0.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=q0.syncDiff(this.state,s,i,a)}),this.pendingDiffs=[],o()}),this.channel.on(n.diff,r=>{let{onJoin:i,onLeave:a,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(r):(this.state=q0.syncDiff(this.state,r,i,a),o())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return q0.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,n,r){let i=this.clone(e),a={},o={};return this.map(i,(s,l)=>{t[s]||(o[s]=l)}),this.map(t,(s,l)=>{let c=i[s];if(c){let u=l.metas.map(y=>y.phx_ref),d=c.metas.map(y=>y.phx_ref),p=l.metas.filter(y=>d.indexOf(y.phx_ref)<0),m=c.metas.filter(y=>u.indexOf(y.phx_ref)<0);p.length>0&&(a[s]=l,a[s].metas=p),m.length>0&&(o[s]=this.clone(c),o[s].metas=m)}else a[s]=l}),this.syncDiff(i,{joins:a,leaves:o},n,r)}static syncDiff(e,t,n,r){let{joins:i,leaves:a}=this.clone(t);return n||(n=function(){}),r||(r=function(){}),this.map(i,(o,s)=>{let l=e[o];if(e[o]=this.clone(s),l){let c=e[o].metas.map(d=>d.phx_ref),u=l.metas.filter(d=>c.indexOf(d.phx_ref)<0);e[o].metas.unshift(...u)}n(o,l,s)}),this.map(a,(o,s)=>{let l=e[o];if(!l)return;let c=s.metas.map(u=>u.phx_ref);l.metas=l.metas.filter(u=>c.indexOf(u.phx_ref)<0),r(o,l,s),l.metas.length===0&&delete e[o]}),e}static list(e,t){return t||(t=function(n,r){return r}),this.map(e,(n,r)=>t(n,r))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static clone(e){return JSON.parse(JSON.stringify(e))}},G0={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,a,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:a,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:a}=e,o=this.META_LENGTH+t.length+n.length+i.length+r.length,s=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(s),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,t.length),l.setUint8(c++,n.length),l.setUint8(c++,i.length),l.setUint8(c++,r.length),Array.from(t,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(c++,d.charCodeAt(0)));var u=new Uint8Array(s.byteLength+a.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(a),s.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+i));o=o+i;let c=n.decode(e.slice(o,o+a));o=o+a;let u=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:c,payload:u}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(s,s+r));s=s+r;let c=n.decode(e.slice(s,s+i));s=s+i;let u=n.decode(e.slice(s,s+a));s=s+a;let d=n.decode(e.slice(s,s+o));s=s+o;let p=e.slice(s,e.byteLength),m={status:d,response:p};return{join_ref:l,ref:c,topic:u,event:$l.reply,payload:m}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=this.HEADER_LENGTH+2,o=n.decode(e.slice(a,a+r));a=a+r;let s=n.decode(e.slice(a,a+i));a=a+i;let l=e.slice(a,e.byteLength);return{join_ref:null,ref:null,topic:o,event:s,payload:l}}},OXe=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||kXe,this.transport=n.transport||v1.WebSocket||D3,this.establishedConnections=0,this.defaultEncoder=G0.encode.bind(G0),this.defaultDecoder=G0.decode.bind(G0),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==D3?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;J0&&J0.addEventListener&&(J0.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),J0.addEventListener("pageshow",i=>{r===this.connectClock&&(r=null,this.connect())})),this.heartbeatIntervalMs=n.heartbeatIntervalMs||3e4,this.rejoinAfterMs=i=>n.rejoinAfterMs?n.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>n.reconnectAfterMs?n.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=n.logger||null,this.longpollerTimeout=n.longpollerTimeout||2e4,this.params=y1(n.params||{}),this.endPoint=`${t}/${oR.websocket}`,this.vsn=n.vsn||IXe,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new $ee(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return D3}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=ob.appendParams(ob.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,n,r){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,n,r)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=y1(t)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=n=>this.onConnError(n),this.conn.onmessage=n=>this.onConnMessage(n),this.conn.onclose=n=>this.onConnClose(n))}log(t,n,r){this.logger(t,n,r)}hasLogger(){return this.logger!==null}onOpen(t){let n=this.makeRef();return this.stateChangeCallbacks.open.push([n,t]),n}onClose(t){let n=this.makeRef();return this.stateChangeCallbacks.close.push([n,t]),n}onError(t){let n=this.makeRef();return this.stateChangeCallbacks.error.push([n,t]),n}onMessage(t){let n=this.makeRef();return this.stateChangeCallbacks.message.push([n,t]),n}ping(t){if(!this.isConnected())return!1;let n=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:n});let i=this.onMessage(a=>{a.ref===n&&(this.off([i]),t(Date.now()-r))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,t])=>t())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),DXe,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,n,r){if(!this.conn)return t&&t();this.waitForBufferDone(()=>{this.conn&&(n?this.conn.close(n,r||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,n=1){if(n===5||!this.conn||!this.conn.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(t,n+1)},150*n)}waitForSocketClosed(t,n=1){if(n===5||!this.conn||this.conn.readyState===Hs.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(t,n+1)},150*n)}onConnClose(t){let n=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&n!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,r])=>r(t))}onConnError(t){this.hasLogger()&&this.log("transport",t);let n=this.transport,r=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,i])=>{i(t,n,r)}),(n===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger($l.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Hs.connecting:return"connecting";case Hs.open:return"open";case Hs.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(n=>n.joinRef()!==t.joinRef())}off(t){for(let n in this.stateChangeCallbacks)this.stateChangeCallbacks[n]=this.stateChangeCallbacks[n].filter(([r])=>t.indexOf(r)===-1)}channel(t,n={}){let r=new Iee(t,n,this);return this.channels.push(r),r}push(t){if(this.hasLogger()){let{topic:n,event:r,payload:i,ref:a,join_ref:o}=t;this.log("push",`${n} ${r} (${o}, ${a})`,i)}this.isConnected()?this.encode(t,n=>this.conn.send(n)):this.sendBuffer.push(()=>this.encode(t,n=>this.conn.send(n)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:i,payload:a,ref:o,join_ref:s}=n;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${a.status||""} ${r} ${i} ${o&&"("+o+")"||""}`,a);for(let l=0;l<this.channels.length;l++){const c=this.channels[l];c.isMember(r,i,a,s)&&c.trigger(i,a,o,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,c]=this.stateChangeCallbacks.message[l];c(n)}})}leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r.isJoined()||r.isJoining()));n&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),n.leave())}},sR={exports:{}},P4,OU;function PXe(){if(OU)return P4;OU=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;P4=function(u,d){d=d||{};var p=typeof u;if(p==="string"&&u.length>0)return o(u);if(p==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function o(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var p=parseFloat(d[1]),m=(d[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return p*a;case"weeks":case"week":case"w":return p*i;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function s(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=r?c(u,d,r,"day"):d>=n?c(u,d,n,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,p,m){var y=d>=p*1.5;return Math.round(u/p)+" "+m+(y?"s":"")}return P4}function MXe(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=PXe(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let p=0;p<u.length;p++)d=(d<<5)-d+u.charCodeAt(p),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,p=null,m,y;function b(..._){if(!b.enabled)return;const S=b,$=Number(new Date),D=$-(d||$);S.diff=D,S.prev=d,S.curr=$,d=$,_[0]=n.coerce(_[0]),typeof _[0]!="string"&&_.unshift("%O");let P=0;_[0]=_[0].replace(/%([a-zA-Z%])/g,(L,F)=>{if(L==="%%")return"%";P++;const G=n.formatters[F];if(typeof G=="function"){const ie=_[P];L=G.call(S,ie),_.splice(P,1),P--}return L}),n.formatArgs.call(S,_),(S.log||n.log).apply(S,_)}return b.namespace=u,b.useColors=n.useColors(),b.color=n.selectColor(u),b.extend=r,b.destroy=n.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(m!==n.namespaces&&(m=n.namespaces,y=n.enabled(u)),y),set:_=>{p=_}}),typeof n.init=="function"&&n.init(b),b}function r(u,d){const p=n(this.namespace+(typeof d>"u"?":":d)+u);return p.log=this.log,p}function i(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const p=(typeof u=="string"?u:"").split(/[\s,]+/),m=p.length;for(d=0;d<m;d++)p[d]&&(u=p[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function a(){const u=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let d,p;for(d=0,p=n.skips.length;d<p;d++)if(n.skips[d].test(u))return!1;for(d=0,p=n.names.length;d<p;d++)if(n.names[d].test(u))return!0;return!1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var BXe=MXe;(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;c.splice(1,0,u,"color: inherit");let d=0,p=0;c[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(d++,m==="%c"&&(p=d))}),c.splice(p,0,u)}t.log=console.debug||console.log||(()=>{});function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function o(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof on<"u"&&"env"in on&&(c=n.DEBUG),c}function s(){try{return localStorage}catch{}}e.exports=BXe(t);const{formatters:l}=e.exports;l.j=function(c){try{return JSON.stringify(c)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(sR,sR.exports);var W$=sR.exports;const NXe=W$;var FXe=(e,t=!1)=>{const n=NXe(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const UXe=FXe;var HXe=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=UXe("client",a.silent),this.emitter=new t,this.onOpen(()=>{this._logger.debug("socket open",i)}),this.onClose(()=>{this._logger.debug("socket close",i)}),this.onError(o=>{this._logger.error("socket error",o.error)}),this.onMessage(o=>{this._logger.debug("socket message",o)})}on(i,a,o={}){this.ensureJoinChannel(i,o),this.emitter.on(i,a)}off(i,a){a?this.emitter.off(i,a):this.emitter.removeAllListeners(i),this.ensureLeaveChannel(i)}disconnect(i,a,o){this.emitter.eventNames().forEach(s=>{this.emitter.removeAllListeners(s)}),super.disconnect(i,a,o)}ensureJoinChannel(i,a={}){if(this.emitter.listenerCount(i)>0)return;const s=this.channel(i,a);s.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),s.on(i,({status:l,response:c})=>{l==="ok"?this.emitter.emit(i,c):this._logger.debug("response error",{topic:i,status:l,data:c})})}ensureLeaveChannel(i){if(this.emitter.listenerCount(i)>0)return;const o=this.channels.find(s=>s.topic===i);o&&(this.remove(o),o.leave().receive("ok",s=>{this._logger.debug("leave success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("leave error",{topic:i,err:s})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:i})}),o.off(i))}subscribe(i,a={}){let o=this.channels.find(s=>s.topic===i);return o||(o=this.channel(i,a),o.join().receive("ok",s=>{this._logger.debug("join success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("join error",{topic:i,error:s})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),o)}unsubscribe(i){this.ensureLeaveChannel(i)}};const jXe=w$,{Socket:VXe}=xXe,JXe=HXe;var qXe=JXe(VXe,jXe);const GXe=qXe;var K$={WsClient:GXe};function zXe(e){const t=Z.useRef(e);Z.useEffect(()=>{t.current=e},[e]),Z.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function WXe(e){const t=e||window.location.href;return new URL(t).host}function z0(e){const t={},n=e||window.location.href;if(n){const{hostname:r,protocol:i,port:a}=new URL(n);t["x-real-hostname"]=r,t["x-real-port"]=a,t["x-real-protocol"]=i.endsWith(":")?i.substring(0,i.length-1):i}return t}const M4={};function KXe({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${H0(r)}`;return M4[a]||(M4[a]=async function(){var d,p;const s=+new Date,l=await n(a,{headers:z0(i)}),c=+new Date;if(c-s<500&&await kl(500-(c-s)),(d=l==null?void 0:l.data)!=null&&d.token)return l.data;if((p=l==null?void 0:l.data)!=null&&p.error)throw new Error(l.data.error);const u=BT(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${u}`)}),M4[a]}const YXe=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=Qze(t);return{token:eWe(n),url:n}}catch(e){return{error:e}}},kee=()=>Wu(globalThis,"blocklet.appPid")||Wu(globalThis,"blocklet.appId")||Wu(globalThis,"env.appId")||"",ZXe=()=>(Wu(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(OQ,""),B4=e=>`relay:${kee()}:${e}`,XXe=()=>window.location.protocol==="https:"?"wss:":"ws:",PU=e=>!e||new URL(e).origin===window.location.origin,MU=e=>["succeed","error","timeout","busy"].includes(e);function QXe({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:a,prefix:o,tokenKey:s,encKey:l,onError:c,onSuccess:u,baseUrl:d,autoConnect:p=!0,forceConnected:m=!0,saveConnect:y=!0,useSocket:b=!0,provider:_="wallet"}){const S=Si({checking:!1,loading:!1,token:"",url:"",store:null,status:"created",error:"",checkCount:0,mfaCode:0,appInfo:null,memberAppInfo:null,connectedDid:"",saveConnect:!1,inExistingSession:!1,nextWorkflow:"",baseUrl:d,prefix:`${o}/${e}`,extraParams:LU(i,m1),checkFn:t,results:{},action:e,provider:_}),$=Z.useRef(null),D=um[a]||um.en,P=Xt(()=>YXe(),[]),U=Math.ceil(r/n),L=Si({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:F,decrypt:G}=vKe(),ie=ig(),se=Tf(),K=Z.useRef(null),B=Z.useRef(null),E={...S.extraParams,locale:a,[s]:S.token||(P==null?void 0:P.token),provider:S.provider},f=async()=>{if(!(P!=null&&P.token&&(P==null?void 0:P.token)===S.token)){try{E[s]&&S.status==="created"&&await S.checkFn(`${S.prefix}/timeout?${H0(E)}`,{headers:z0(S.baseUrl)})}catch{}try{S.token&&B.current&&(await K.current.unsubscribe(B4(S.token)),B.current=null)}catch{}}},h=Tt((...v)=>{const k={[l]:F,...S.extraParams,locale:a,forceConnected:m,autoConnect:p&&!ie.wallet&&!L.cancelWhenScannedCounter&&["ios","android"].includes(Kr.get("connected_wallet_os")),provider:S.provider};se&&(k.visitorId=se);const ne=kp($.current||{},["sourceAppPid","verbose"]);return Object.keys(ne).forEach(Y=>{(!k[Y]||Y===l&&ne[Y])&&(k[Y]=ne[Y])}),P!=null&&P.token&&!k.sourceToken&&(k.sourceToken=P==null?void 0:P.token),KXe({action:e,prefix:S.prefix,baseUrl:S.baseUrl,checkFn:S.checkFn,extraParams:k})(...v)}),T=Tt(async(v=!0)=>{v&&f();try{S.loading=!0,S.token="",S.url="",S.store=null,S.extraParams=LU(i,m1),await kl();const k=await h(),ne=k.extra||{};S.loading=!1,S.token=k.token,S.url=k.url,S.status="created",S.error="",S.checkCount=0,S.appInfo=k.appInfo,S.memberAppInfo=k.memberAppInfo,S.connectedDid=ne.connectedDid,S.saveConnect=ne.saveConnect}catch(k){S.loading=!1,S.status="error",S.error=`${D.generateError}: ${k.message}`}}),w=()=>{L.cancelWhenScannedCounter++};Z.useEffect(()=>{L.cancelWhenScannedCounter>0&&(i.nw?c(new Error(D.retryForbidden)):T())},[L.cancelWhenScannedCounter]),Z.useEffect(()=>(b&&PU(S.baseUrl)&&kee()?(!K.current||K.current.isConnected()===!1||K.current.baseUrl!==S.baseUrl)&&(K.current=new K$.WsClient(`${XXe()}//${WXe(S.baseUrl)}${ZXe()}${OQ}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),K.current.baseUrl=S.baseUrl,K.current.onOpen(()=>{L.isSocketAvailable=!0}),K.current.connect()):L.isSocketAvailable&&(L.isSocketAvailable=!1),()=>{K.current&&(K.current.disconnect(),K.current=null)}),[S.baseUrl]);const R=()=>!S.token||S.loading||MU(S.status)?null:n,I=Z.useRef(null);Z.useEffect(()=>{I.current={state:S,params:E}}),Z.useEffect(()=>()=>{const{state:v,params:k}=I.current;v.status==="created"&&k[s]&&v.checkFn(`${v.prefix}/timeout?${H0(k)}`,{headers:z0(v.baseUrl)})},[]);const C=async(v=!1)=>{var k;if(S.checking||(S.status==="created"&&S.checkCount++,L.isSocketAvailable&&!v))return null;try{S.checking=!0;const ne=await S.checkFn(`${S.prefix}/status?${H0(E)}`,{headers:z0(S.baseUrl)}),{status:N,error:Y,mfaCode:re=0}=ne.data;if(S.store=ne.data,S.mfaCode=re,S.checking=!1,S.status=N,N==="error"&&Y){const le=new Error(Y);throw le.response=ne,le}return ne.data}catch(ne){const{response:N}=ne;if(N!=null&&N.status){E[s]&&S.checkFn(`${S.prefix}/timeout?${H0(E)}`,{headers:z0(S.baseUrl)});const Y=(k=N==null?void 0:N.data)!=null&&k.error?N.data.error:ne.message,re=new Error(Y);re.code=N.status,S.status="error",S.checking=!1,S.error=Y,c(re,S==null?void 0:S.store,G)}else S.status="error",S.checking=!1,S.error=D.generateError}return null},x=async()=>{try{if(P.error)throw P.error;S.loading=!0,S.token=P.token,S.url=P.url,S.inExistingSession=!0;let v=await C();if((["scanned"].includes(v==null?void 0:v.status)||(v==null?void 0:v.sourceToken)===(P==null?void 0:P.token))&&(await T(!1),v=await C()),$.current=(v==null?void 0:v.extraParams)||null,v!=null&&v.status&&!["created"].includes(v==null?void 0:v.status))throw new Error(`${D.invalidSessionStatus} [${v.status}]`)}catch(v){S.status="error",S.error=v.message,c(v,S==null?void 0:S.store,G)}finally{S.loading=!1}};return Z.useEffect(()=>{var v;if(!S.token&&!S.store&&!S.loading&&!S.error)if(P)x();else{T(!1);return}if(S.status!=="timeout"&&S.checkCount>U){S.status="timeout",f();return}if(S.status==="succeed"&&!L.onSuccessCalled){const k=FQ({...S.store,appInfo:S.appInfo,memberAppInfo:S.memberAppInfo});if(PU(S.baseUrl)&&y&&S.saveConnect&&S.store.did&&g1(k,!0),S.store){const{nextWorkflow:ne}=S.store;if(ne)try{const N=cU(ne,s);S.nextWorkflow=(N==null?void 0:N.nextWorkflow)||ne,Object.assign(S,N),S.store=null,S.error="",S.url="",S.appInfo=null,S.memberAppInfo=null,S.checkCount=0,S.status="scanned",S.results={...S.results,[S.token]:S.store},S.checkFn=eu({baseURL:N.baseUrl,timeout:8e3}).get,C()}catch(N){console.error(`Invalid nextWorkflow: ${ne}`,N),S.status="error",S.error=`Invalid nextWorkflow: ${ne}: ${N.message}`}else if(S.nextWorkflow&&(S.nextWorkflow="",S.url=""),typeof u=="function"){const N=Object.values({...S.results,[S.token]:S.store});L.onSuccessCalled=!0;const Y=N.length>1?N:N[0],re=lp(Y);u(re,G,{sourceAppPid:i==null?void 0:i.sourceAppPid,...k})}}return}if((v=S.store)!=null&&v.nextWorkflow){const{nextWorkflow:k}=S.store;try{const ne=cU(k,s);S.nextWorkflow=(ne==null?void 0:ne.nextWorkflow)||k,Object.assign(S,ne),S.store=null,S.error="",S.url="",S.appInfo=null,S.memberAppInfo=null,S.checkCount=0,S.status="scanned",S.results={...S.results,[S.token]:S.store},S.checkFn=eu({baseURL:ne.baseUrl,timeout:8e3}).get,C()}catch(ne){console.error(`Invalid nextWorkflow: ${k}`,ne),S.status="error",S.error=`Invalid nextWorkflow: ${k}: ${ne.message}`}}}),Z.useEffect(()=>{if(S.token&&L.isSocketAvailable&&K.current){let v=!1;B.current?B.current.token!==S.token&&(K.current.unsubscribe(B4(B.current.token)),v=!0):v=!0,v&&(B.current=K.current.subscribe(B4(S.token)),B.current.token=S.token,B.current.on("updated",({response:k})=>{let{status:ne,error:N}=k;ne==="forbidden"&&(N=D.forbidden,ne="error"),S.status=ne,S.mfaCode=k.mfaCode||0,S.store=k,S.error=N,N&&c(new Error(N),S==null?void 0:S.store,G)}))}},[S.token,L.isSocketAvailable,K.current]),EXe(C,R()),zXe(()=>{L.isSocketAvailable&&S.token&&MU(S.status)===!1&&C(!0)}),{state:S,generate:T,cancelWhenScanned:w}}var Y$={},jE={};Object.defineProperty(jE,"__esModule",{value:!0});jE.default=void 0;var Vc={call:function(t,n,r){var i="";typeof n=="function"&&(r=n,n={});var a={data:n===void 0?null:n};if(typeof r=="function"){var o="dscb"+window.dscb++;window[o]=r,a._dscbstub=o}return a=JSON.stringify(a),window._dsbridge?i=_dsbridge.call(t,a):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(i=prompt("_dsbridge="+t,a)),JSON.parse(i||"{}").data},register:function(t,n,r){var i=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){Vc.call("_dsb.dsinit")},0)),typeof n=="object"?i._obs[t]=n:i[t]=n},registerAsyn:function(t,n){this.register(t,n,!0)},hasNativeMethod:function(t,n){return this.call("_dsb.hasNativeMethod",{name:t,type:n||"all"})},disableJavascriptDialogBlock:function(t){this.call("_dsb.disableJavascriptDialogBlock",{disable:t!==!1})}};(function(){if(!(window._dsbridge||window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)||window._dsf)return;const e=window.close;var t={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:Vc,close:function(){Vc.call("_dsb.closePage"),e()},_handleMessageFromNative:function(i){var a=JSON.parse(i.data),o={id:i.callbackId,complete:!0},s=this._dsf[i.method],l=this._dsaf[i.method],c=function($,D){o.data=$.apply(D,a),Vc.call("_dsb.returnValue",o)},u=function($,D){a.push(function(P,U){o.data=P,o.complete=U!==!1,Vc.call("_dsb.returnValue",o)}),$.apply(D,a)};if(s)c(s,this._dsf);else if(l)u(l,this._dsaf);else{var d=i.method.split(".");if(d.length<2)return;var p=d.pop(),m=d.join("."),y=this._dsf._obs,b=y[m]||{},_=b[p];if(_&&typeof _=="function"){c(_,b);return}if(y=this._dsaf._obs,b=y[m]||{},_=b[p],_&&typeof _=="function"){u(_,b);return}}}};for(var n in t)window[n]=t[n];Vc.register("_hasJavascriptMethod",function(r,i){var a=r.split(".");if(a.length<2)return!!(_dsf[a]||_dsaf[a]);var r=a.pop(),o=a.join("."),s=_dsf._obs[o]||_dsaf._obs[o];return s&&!!s[r]})})();jE.default=Vc;Object.defineProperty(Y$,"__esModule",{value:!0});var VE=Y$.default=void 0,Ds=eQe(jE);function eQe(e){return e&&e.__esModule?e:{default:e}}VE=Y$.default={call(){Ds.default.call(...arguments)},asyncCall(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise((r,i)=>{Ds.default.call(...t,a=>{try{const o=JSON.parse(a);if(o.code===0){const s=JSON.parse(o.data);r(s)}else i(new Error(o.error))}catch{r(a)}})})},shareMessage(e){const{content:t,imgUrl:n,success:r,fail:i}=e;if(!t&&!n){i("params error");return}Ds.default.call("arcShare",JSON.stringify({content:t,imgUrl:n}),a=>{const o=JSON.parse(a);o&&o.code===0?typeof r=="function"&&r(a):typeof i=="function"&&i(a)})},showLoading(){Ds.default.call("arcShowLoading")},hideLoading(){Ds.default.call("arcHideLoading")},showToast(e){e&&typeof e=="string"&&Ds.default.call("arcToast",e)},chooseImgs(e){const{limit:t,success:n,fail:r}=e;Ds.default.call("arcChooseImgs",JSON.stringify({limit:t}),i=>{const a=JSON.parse(i);a&&a.code===0?typeof n=="function"&&n(i):typeof r=="function"&&r(i)})},previewImgs(e){const{imgs:t}=e;!t||t.length===0||Ds.default.call("arcPreviewImgs",JSON.stringify(e))},isSetPWD(e){const{success:t,fail:n}=e;Ds.default.call("arcIsSetPWD","",r=>{const i=JSON.parse(r);i&&i.code===0?typeof t=="function"&&t(r):typeof n=="function"&&n(r)})},isCodeABOk(e){const{success:t,fail:n}=e;Ds.default.call("arcIsCodeABOk","",r=>{const i=JSON.parse(r);i&&i.code===0?typeof t=="function"&&t(r):typeof n=="function"&&n(r)})}};function Z$({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i,connectState:a}=pl(),o=r(i?"openDidConnect":"openInWallet"),s=Xt(()=>{if(!e.url)return"";const u=new URL(window.location.href);u.searchParams.set("tokenKey",e.token);const d=new URL(e.url);return d.searchParams.set("callback",encodeURIComponent(u)),d.searchParams.set("callback_delay",1500),d.searchParams.set("locale",t),d.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),l=Tt(()=>{VE.call("authAction",{action:"auth",deepLink:s})}),c={};return i||(c.component="a",c.href=s),eg(()=>{a.autoActiveWebview&&s&&(a.autoActiveWebview=!1,l())}),q.jsxs(uu,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:kt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...c,onClick:i?l:Hn,children:[q.jsxs(Et,{sx:{display:"flex",alignItems:"center",gap:1},children:[q.jsx(qp,{width:"24px",height:"24px"}),q.jsx(or,{sx:{fontSize:"14px",fontWeight:500},children:o})]}),q.jsx(Vn,{icon:NE,fontSize:"1.3rem",color:kt.primaryBase})]})}Z$.propTypes={tokenState:me.object.isRequired,locale:me.string,tokenKey:me.string};Z$.defaultProps={locale:"en",tokenKey:"_t_"};const tQe={width:24,height:24,body:'<path fill="currentColor" d="M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.7 0 3.113-.863t2.187-2.312q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20Z"/>'};function Dee({onRefresh:e,...t}){const n=r=>{r.stopPropagation(),e()};return q.jsx(Et,{...t,onClick:n,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.75)",cursor:"pointer",...t.sx},children:q.jsx(Et,{sx:{backgroundColor:kt.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:q.jsx(Vn,{icon:tQe,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}Dee.propTypes={onRefresh:me.func.isRequired};const bv=["scanned","succeed","error","busy"];function X$({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:a,checkTimeout:o,locale:s,tokenKey:l,encKey:c,baseUrl:u,autoConnect:d,forceConnected:p,saveConnect:m,useSocket:y,allowWallet:b,provider:_,webWalletUrl:S,onRecreateSession:$,onClose:D,messages:P,enabledConnectTypes:U}){var oe,ye,we;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const L=Z.useContext(Ih),{connectState:F,extraParams:G,staticState:ie,changeStatus:se,isWalletWebview:K,matchSmallScreen:B,t:E}=pl(),f=ig(),h=MT(),{setBaseUrl:T,oauthState:w,getOAuthConfigList:R}=b$(),I=Xt(()=>{var Te;return _||(G==null?void 0:G.provider)||((Te=L==null?void 0:L.session)==null?void 0:Te.provider)||"wallet"},[G==null?void 0:G.provider,(oe=L==null?void 0:L.session)==null?void 0:oe.provider]);Z.useEffect(()=>{T(u)},[u]);const{state:C,generate:x,cancelWhenScanned:v}=QXe({action:n,baseUrl:u,checkFn:i,checkInterval:a,checkTimeout:o,extraParams:G,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:c,autoConnect:d,forceConnected:p,saveConnect:m,useSocket:y,allowWallet:b,provider:I}),[k,ne]=Z.useState([]);dY(async()=>{const Te=await R({sourceAppPid:F==null?void 0:F.sourceAppPid});ne(Te)},[F==null?void 0:F.sourceAppPid]);const N=mY(F==null?void 0:F.sourceAppPid);Sf(()=>{Ki(N)||x()},[F==null?void 0:F.sourceAppPid]);const Y=Xt(()=>bv.includes(w.status)||bv.includes(C.status),[C.status,w.status]);Z.useEffect(()=>{bv.includes(w.status)?se(w.status):bv.includes(C.status)?se(C.status):se("created")},[se,C.status,w.status]);const re=Tt(()=>{$(),w.reset(),x(!1)}),le=Tt(()=>{$(),ie.current.cancelCount++,v()}),ge=Xt(()=>({confirm:P.confirm,success:P.success,error:C.error||w.error||""}),[P.confirm,P.success,C.error,w.error]),Se=Xt(()=>b&&U.includes("mobile")&&!K,[b,U,K]),j=BQ(S),M=Xt(()=>b&&U.includes("web")&&(j||h)&&(!f.mobile.any||h),[b,U,(ye=f==null?void 0:f.mobile)==null?void 0:ye.any]),z=Xt(()=>b&&U.includes("mobile")&&f.mobile.any&&!h,[b,U,(we=f==null?void 0:f.mobile)==null?void 0:we.any]),W=Xt(()=>{const Te=TYe(Object.keys(Js),U);return k.filter(Ve=>Te.includes(Ve.provider))},[k,U]),ee=Xt(()=>W.length>0&&["login","invite"].includes(C.action),[W]),ve=Xt(()=>{const Te=Se||M||z;let Ve=null;return ee&&(Ve=Te?q.jsxs(q.Fragment,{children:[q.jsx(C2,{sx:{color:kt.textMuted,width:B?"200px":"368px",opacity:.6,maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:kt.lineStep}},children:"OR"}),q.jsx(ab,{providerList:W,onSuccess:e,onError:t,tokenState:C,locale:s,type:"list"})]}):q.jsxs(q.Fragment,{children:[q.jsx(or,{variant:"body2",sx:{mt:1,textAlign:"center",color:kt.foregroundsFgSubtile},children:E("loginWithBelow")}),q.jsx(ab,{providerList:W,onSuccess:e,onError:t,tokenState:C,type:"list",locale:s})]})),q.jsxs(q.Fragment,{children:[C.status==="timeout"?q.jsx(Dee,{onRefresh:re,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,q.jsx(Et,{"data-did-auth-url":C.url,sx:{display:"none"}}),z&&q.jsx(Z$,{tokenState:C,locale:s,tokenKey:l}),Se&&q.jsx(J$,{tokenState:C,messages:P,locale:s}),M&&q.jsx(j$,{tokenState:C,webWalletUrl:S,locale:s}),Ve]})},[C,C.url,C.status,Se,M,z,W,ee,ee,e,t,s,l,P,S]);return Xt(()=>C.loading||w.loading||!C.token&&!C.error,[C.loading,w.loading])?q.jsx($$,{}):Y?q.jsxs(q.Fragment,{children:[q.jsx(Et,{"data-did-auth-url":C.url,sx:{display:"none"}}),q.jsx(UE,{status:w.status||C.status,nextWorkflow:C.nextWorkflow,mfaCode:C.mfaCode,onCancel:le,onRetry:re,onClose:D,messages:ge,locale:s,className:"auth-status"})]}):ve}X$.propTypes={onError:me.func,onSuccess:me.func.isRequired,action:me.string.isRequired,checkFn:me.func.isRequired,prefix:me.string,checkInterval:me.number,checkTimeout:me.number,locale:me.oneOf(["en","zh",""]),tokenKey:me.string,encKey:me.string,baseUrl:me.string,autoConnect:me.bool,forceConnected:me.oneOfType([me.bool,me.string]),saveConnect:me.bool,useSocket:me.bool,allowWallet:me.bool,provider:me.oneOf([Oi.WALLET,...Object.keys(Js),""]),webWalletUrl:me.string,onRecreateSession:me.func,onClose:me.func,messages:me.object,enabledConnectTypes:me.arrayOf(me.oneOf(["web","mobile",...Object.keys(Js)]))};X$.defaultProps={prefix:m$,onError:Hn,checkInterval:2*1e3,checkTimeout:LQ*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:MQ(),onRecreateSession:Hn,onClose:Hn,messages:{},enabledConnectTypes:["web","mobile",...Object.keys(Js)]};var N4=RK,nQe=KW,rQe=q$,iQe=1/0,aQe=N4&&1/rQe(new N4([,-0]))[1]==iQe?function(e){return new N4(e)}:nQe,oQe=aQe,sQe=U$,lQe=hee,uQe=mee,cQe=H$,fQe=oQe,dQe=q$,pQe=200;function hQe(e,t,n){var r=-1,i=lQe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=uQe;else if(a>=pQe){var c=t?null:fQe(e);if(c)return dQe(c);o=!1,i=cQe,l=new sQe}else l=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var Lee=hQe,mQe=s8,gQe=HE,yQe=Zm,vQe=Lee,BU=Qx,bQe=LK,TQe=yQe(function(e){var t=bQe(e);return BU(t)&&(t=void 0),vQe(mQe(e,1,BU,!0),gQe(t))}),EQe=TQe;const AQe=zt(EQe);var SQe=aK,wQe=Xm;function _Qe(e,t){return e&&SQe(e,t,wQe)}var CQe=_Qe,RQe=Nf;function xQe(e,t){return function(n,r){if(n==null)return n;if(!RQe(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var $Qe=xQe,IQe=CQe,kQe=$Qe,DQe=kQe(IQe),LQe=DQe,OQe=LQe,PQe=Nf;function MQe(e,t){var n=-1,r=PQe(e)?Array(e.length):[];return OQe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var BQe=MQe;function NQe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var FQe=NQe,NU=Um;function UQe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=NU(e),o=t!==void 0,s=t===null,l=t===t,c=NU(t);if(!s&&!c&&!a&&e>t||a&&o&&l&&!s&&!c||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var HQe=UQe,jQe=HQe;function VQe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=jQe(i[r],a[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var JQe=VQe,F4=uh,qQe=jm,GQe=HE,zQe=BQe,WQe=FQe,KQe=Km,YQe=JQe,ZQe=WT,XQe=Ia;function QQe(e,t,n){t.length?t=F4(t,function(a){return XQe(a)?function(o){return qQe(o,a.length===1?a[0]:a)}:a}):t=[ZQe];var r=-1;t=F4(t,KQe(GQe));var i=zQe(e,function(a,o,s){var l=F4(t,function(c){return c(a)});return{criteria:l,index:++r,value:a}});return WQe(i,function(a,o){return YQe(a,o,n)})}var eet=QQe,tet=s8,net=eet,ret=Zm,FU=TK,iet=ret(function(e,t){if(e==null)return[];var n=t.length;return n>1&&FU(e,t[0],t[1])?t=[]:n>2&&FU(t[0],t[1],t[2])&&(t=[t[0]]),net(e,tet(t,1),[])}),aet=iet;const Oee=zt(aet),oet=Cn(fi,"/api/user-session");function Pee({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/",fetchAll:a=!1}={}){const o=Tf(),s=Xt(()=>eu({baseURL:Cn(i,oet)},{lazy:!0,lazyTime:500}),[i]),l=Tt(async()=>{const{data:b=[]}=await s.get("",{params:{visitorId:o}}),_=al(),S=Ts();if(a&&_&&S){const{data:$}=await s.get(Cn(S.appUrl,fi,"/api/user-session"),{params:{visitorId:o}});return b.concat($||[])}return!_||!S?b.filter($=>{var D;return((D=$==null?void 0:$.user)==null?void 0:D.sourceAppPid)===null}):b}),c=Si({loaded:!1,loadingId:null}),u=xPe(l,{manual:!r,onFinally(){c.loaded=!0},refreshDeps:[i]}),d=async b=>{var S,$,D;const _=KT(b,["userDid","visitorId","passportId"]);try{c.loadingId=b.id;const P=Ts();if(al()&&P&&n!==b.appPid){const{data:L}=await s.post("login",{..._,appPid:n},{baseURL:Cn(P.appUrl,fi,"/api/user-session")});return L}const{data:U}=await s.post("login",{..._,appPid:n});return U}catch(P){const U=P.response?(($=(S=P.response)==null?void 0:S.data)==null?void 0:$.error)||((D=P.response)==null?void 0:D.data):P.message;throw zr.error(U),console.error("Quick login error",P),P}finally{c.loadingId=null}},p=Xt(()=>u.data?u.data.filter(b=>b.status!=="expired"):[],[u.data]),m=Xt(()=>{const b=new Date().getTime(),_=Oee(p,S=>b-new Date(S.updatedAt).getTime());return AQe(_,S=>[S.userDid].join("_"))},[p,t,e]),y=Xt(()=>!!(m&&m.length>0),[m]);return{loadingId:c.loadingId,userSessions:m,quickLoginEnabled:y,loginUserSession:d,loading:u.loading,loaded:u.loaded,refresh:u.refreshAsync}}const set={width:24,height:24,body:'<path fill="currentColor" d="M11.95 18q.525 0 .888-.363t.362-.887q0-.525-.362-.888t-.888-.362q-.525 0-.887.363t-.363.887q0 .525.363.888t.887.362Zm.05 4q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20Zm0-8Zm.1-4.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.938t.75-.787q.575-.55.988-1.2t.412-1.45q0-1.275-1.038-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.113.638t.338.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2Z"/>'},uet={width:24,height:24,body:'<path fill="currentColor" d="m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4L9.55 18Z"/>'};function Q$({appInfo:e,...t}){const[n,r]=Z.useState(!1);if(n||!(e.appUrl||e.appLogo))return q.jsx(Zl,{did:e.appPid,size:32});let i=e.appLogo||"";return BT(i)||(i=Cn(e.appUrl||"",i)),q.jsx(up,{src:i,alt:e.appName||"Blocklet Icon",width:32,height:32,...t,onError:()=>r(!0)})}Q$.propTypes={appInfo:me.object.isRequired};const cet=e=>e?e.split(":").pop():"";function JE({appInfo:e,active:t,appLogo:n}){return q.jsxs(Et,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:kt.textBase,"& .app-info-content":{paddingLeft:"8px",overflow:"hidden"},"& .app-info-name":{maxWidth:"100%",paddingRight:"32px",lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"},"& .app-info-did":{fontSize:0},"& .app-info-did .did-address-text":{color:kt.textMuted,fontSize:"12px"}},children:[n||q.jsx(Et,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:q.jsx(Q$,{appInfo:e})}),q.jsxs(Et,{className:"app-info-content",children:[q.jsx(Et,{className:"app-info-name",children:e.appName}),e.appPid&&q.jsx(om,{size:12,className:"app-info-did",copyable:!1,color:kt.textMuted,compact:!1,responsive:!1,children:cet(e.appPid)})]}),t?q.jsx(ou,{size:"small",color:"success",children:q.jsx(XCe,{icon:uet,color:"success"})}):null]})}JE.propTypes={appInfo:me.object.isRequired,active:me.bool,appLogo:me.node};JE.defaultProps={active:!1,appLogo:null};function lR({appInfo:e}){const t=Z.useRef(null),n=Si({hoverOnButton:!1,hoverOnPopover:!1}),r=Xt(()=>n.hoverOnButton||n.hoverOnPopover,[n.hoverOnButton,n.hoverOnPopover]);return q.jsxs(q.Fragment,{children:[q.jsx(Et,{component:"span",ref:t,sx:{color:kt.foregroundsFgInteractive,cursor:"help"},onClick:()=>{n.hoverOnButton=!0},onMouseEnter:()=>{n.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{n.hoverOnButton=!1},200)},children:e.appName}),q.jsx(qW,{open:r,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${kt.gray6}, 0px 0px 0px 1px ${kt.gray6}`,py:1,px:1.5,borderRadius:2,transform:"translateY(-6px) !important"}}},anchorEl:t.current,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{n.open=!1},disableRestoreFocus:!0,children:q.jsx(Et,{component:"span",sx:{pointerEvents:"auto"},onMouseEnter:()=>{n.hoverOnPopover=!0},onMouseLeave:()=>{n.hoverOnPopover=!1},children:q.jsx(JE,{appInfo:e,appLogo:q.jsx(Q$,{appInfo:e})})})})]})}lR.propTypes={appInfo:me.object.isRequired};function UU(){const{appInfoList:e,t,extraParams:n,connectState:r}=pl(),i=Z.useRef(null),a=Si({open:!1});return q.jsxs(q.Fragment,{children:[q.jsx(Et,{component:"span",ref:i,sx:{textTransform:"lowercase",color:kt.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{a.open=!0},children:t("switch")}),q.jsx(URe,{anchorEl:i.current,open:a.open,onClose:()=>{a.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${kt.gray6}, 0px 0px 0px 1px ${kt.gray6}`,borderRadius:2}}},children:e.map(o=>q.jsx(R2,{onClick:()=>{a.open=!1,r.sourceAppPid=o.sourceAppPid},children:q.jsx(JE,{appInfo:o,active:o.sourceAppPid===(n==null?void 0:n.sourceAppPid)})},o.appPid))})]})}function eI({locale:e,disableSwitchApp:t}){const{appInfoList:n,extraParams:r,connectState:i,blocklet:a}=pl(),o=Xt(()=>n.find(c=>pp.isUndefined(r==null?void 0:r.sourceAppPid)?!0:pp.isNull(c.sourceAppPid)?c.appPid===(a==null?void 0:a.appPid):c.sourceAppPid===(r==null?void 0:r.sourceAppPid)),[r==null?void 0:r.sourceAppPid,n]),s=!t&&n.length>1;eg(()=>{(a==null?void 0:a.appPid)===(o==null?void 0:o.appPid)?i.sourceAppPid=null:i.sourceAppPid=o==null?void 0:o.appPid});const l=Xt(()=>e==="zh"?q.jsxs(q.Fragment,{children:["您正在使用 ",q.jsx(lR,{appInfo:o,appInfoList:n})," 账户来连接站点",s?q.jsxs(q.Fragment,{children:[",点击",q.jsx(UU,{appInfoList:n})]}):null]}):q.jsxs(q.Fragment,{children:["You're using ",q.jsx(lR,{appInfo:o})," account for site access",s?q.jsxs(q.Fragment,{children:[". Click to ",q.jsx(UU,{appInfoList:n})]}):null]}),[e,o,n,s]);return pp.isEmpty(n)?null:q.jsxs(Et,{sx:{fontSize:"13px",color:kt.foregroundsFgSubtile,lineHeight:1.5},children:[l,s&&q.jsx(Et,{component:"span",sx:{display:"inline-block",ml:.5,fontSize:"13px",height:"16px",lineHeight:1,verticalAlign:"middle"},children:q.jsx(Et,{component:Vn,icon:set,sx:{verticalAlign:"middle"}})})]})}eI.propTypes={locale:me.string,disableSwitchApp:me.bool};eI.defaultProps={locale:"en",disableSwitchApp:!1};var tI={};Object.defineProperty(tI,"__esModule",{value:!0});var Mee=tI.default=void 0;fet(Z);var U4=q;function fet(e){return e&&e.__esModule?e:{default:e}}function HU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HU(Object(n),!0).forEach(function(r){det(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HU(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function det(e,t,n){return t=pet(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pet(e){var t=het(e,"string");return typeof t=="symbol"?t:String(t)}function het(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nI=function(t){return(0,U4.jsxs)("svg",jU(jU({},t),{},{children:[(0,U4.jsx)("path",{d:"M7.366.646L8.46 0h3.981v11.96H8.564a.381.381 0 0 1-.194-.053L4.18 9.431V2.53l.508-.3.893.528-.508.3v5.845L8.7 11.046h2.85V.914h-2.85l-.44.26-.893-.528z",fill:"color(display-p3 .4196 .7412 .9961)"}),(0,U4.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.868 8.903V3.057L4.242.915H1.393v10.132h2.85l.44-.26.893.527-1.095.647H.5V0h3.981l4.28 2.53v6.9l-.506.3-.893-.528.506-.299z",fill:"color(display-p3 .2706 .5961 .9804)"})]}))};nI.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};nI.displayName="did-logo-colorful";Mee=tI.default=nI;function met({...e}){return q.jsxs(Et,{...e,sx:{display:"flex",alignItems:"center",color:kt.foregroundsFgMuted,gap:.5,...e.sx},children:[q.jsx(Mee,{}),"Powered By",q.jsx(Et,{component:"a",href:"https://www.didconnect.io/",target:"_blank",rel:"noopener",sx:{color:kt.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"DID Connect"})]})}function rI({children:e,initHeight:t,slotProps:n}){var s;const[r,i]=Z.useState(t),a=Z.useRef(null),o=tg(a);return Z.useEffect(()=>{o!=null&&o.height&&i(o.height)},[o==null?void 0:o.height,r]),q.jsx(Et,{...n==null?void 0:n.root,sx:{height:r,overflow:"hidden",transition:"height 0.2s ease-in-out",...(s=n==null?void 0:n.root)==null?void 0:s.sx},children:q.jsx(Et,{...n==null?void 0:n.container,ref:a,children:e})})}rI.propTypes={initHeight:me.number,children:me.node.isRequired,slotProps:me.object};rI.defaultProps={initHeight:0,slotProps:{}};const Tv="did-connect",VU="quick-connect";function iI({mode:e,isFullScreen:t,hideCloseButton:n,...r}){var h;const i=Si({showTab:Tv}),{connectState:a,blocklet:o,appInfoList:s,extraParams:l}=pl(),{extraContent:c,onSuccess:u,action:d,onClose:p,options:m}=r,y=Xt(()=>s.find(T=>Ki(l==null?void 0:l.sourceAppPid)?!0:yU(T.sourceAppPid)?T.appPid===(o==null?void 0:o.appPid):T.sourceAppPid===(l==null?void 0:l.sourceAppPid)),[l==null?void 0:l.sourceAppPid,s]),b=Xt(()=>yU(a==null?void 0:a.sourceAppPid)?y==null?void 0:y.appPid:(a==null?void 0:a.sourceAppPid)||gZ(),[a==null?void 0:a.sourceAppPid]),{quickLoginEnabled:_,loading:S,userSessions:$,loginUserSession:D,refresh:P}=Pee({appPid:b,loginAppPid:o==null?void 0:o.appPid,sourceAppPid:a==null?void 0:a.sourceAppPid,autoFetch:["login"].includes(d),baseUrl:(y==null?void 0:y.appUrl)||""}),U=Xt(()=>{var T;return((T=r==null?void 0:r.messages)==null?void 0:T.title)||Kze},[(h=r==null?void 0:r.messages)==null?void 0:h.title]),L=Xt(()=>{if(d==="login"){const T=Ts(o),w=al(o);return l!=null&&l.forceConnected?$.filter(R=>R.userDid===(l==null?void 0:l.forceConnected)):!w||!T?$.filter(R=>{var I;return((I=R==null?void 0:R.user)==null?void 0:I.sourceAppPid)===null}):$.filter(R=>{var I;return b===o.appPid?((I=R.user)==null?void 0:I.sourceAppPid)===(l==null?void 0:l.sourceAppPid):!0})}return $},[l==null?void 0:l.forceConnected,d,$]),F=Tt(async(...T)=>{var C,x,v;const w=await D(...T),[R]=T,I={};R&&((C=R==null?void 0:R.user)!=null&&C.did&&(I.connected_did=R.user.did),(x=R==null?void 0:R.user)!=null&&x.pk&&(I.connected_pk=R.user.pk),(v=R==null?void 0:R.extra)!=null&&v.walletOS&&(I.connected_wallet_os=R.extra.walletOS),R!=null&&R.appPid&&(I.connected_app=R.appPid)),await u({...w,encrypted:!1},k=>k,I)});Z.useEffect(()=>{(m==null?void 0:m.showQuickConnect)!==!1&&!S&&_&&(i.showTab=VU)},[S,_,m==null?void 0:m.showQuickConnect]);const G=LPe(S,{wait:100}),ie=Tt(()=>{i.showTab=Tv}),se=Tt(()=>{i.showTab=VU}),K=Xt(()=>L.length===0?!0:i.showTab===Tv||!_,[i.showTab,_]),B=Xt(()=>{let T=!0;return(S||G)&&(T=!1),_||(T=!1),m.showQuickConnect===!1&&(T=!1),i.showTab!==Tv&&(T=!1),T},[_,i.showTab,S,G]),E=Xt(()=>q.jsx(Et,{onClick:p,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:kt.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:q.jsx(Vn,{icon:see})}),[p]);let f=null;return S||G?f=q.jsx($$,{}):K?f=q.jsx(X$,{...r,onClose:p}):f=q.jsx(F$,{userSessions:L,onLogin:F,onRetry:P,onClose:p,messages:r.messages,onLoginAnother:ie}),q.jsxs(d6e,{variant:"outlined",sx:{color:kt.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:kt.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[q.jsx(O6e,{title:q.jsxs(q.Fragment,{children:[B&&q.jsx(ou,{size:"small",disabled:a.status!=="created",onClick:se,disableRipple:!0,sx:{fontSize:"0.75em"},children:q.jsx(Vn,{icon:KWe,color:kt.textMuted})}),U]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:n?null:E,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),q.jsx(w6e,{sx:{borderTop:`1px solid ${kt.strokeBorderBase}`,borderBottom:`1px solid ${kt.strokeBorderBase}`,flex:1,verticalAlign:"middle",overflow:"auto",p:2.5,position:"relative","&::after":{content:'""',height:"100%",verticalAlign:"middle",display:"inline-block",width:0}},children:q.jsxs(rI,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[q.jsx(eI,{locale:r.locale,disableSwitchApp:r.disableSwitchApp}),f,c?q.jsx(Et,{children:c}):null]})}),q.jsx(v6e,{sx:{py:2,px:2.5,justifyContent:"center"},children:q.jsx(met,{sx:{fontSize:"12px"}})})]})}iI.propTypes={action:me.string.isRequired,onSuccess:me.func,onClose:me.func,messages:me.object,extraContent:me.any,disableSwitchApp:me.bool,mode:me.oneOf(["fullScreen","dialog","normal"]),isFullScreen:me.bool,options:me.object,hideCloseButton:me.bool,locale:me.string};iI.defaultProps={onSuccess:Hn,onClose:Hn,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function aI(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:a}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");return q.jsx(I$,{blocklet:r,action:i,locale:a,extraParams:n,sx:{position:"relative",width:"100%",height:"100%",lineHeight:1.2,fontFamily:"Inter",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:q.jsx(iI,{...e})})}aI.propTypes={checkFn:me.func.isRequired,extraParams:me.object,blocklet:me.object.isRequired,action:me.string.isRequired,locale:me.string};aI.defaultProps={extraParams:{},locale:"en"};const get=hKe(XWe(yKe(aI))),yet=Z.forwardRef((e,t)=>{const{api:n}=Z.useContext(Ih),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||Hn,messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},i=Si({show:!1,...lp(r)}),[a,o]=Z.useState({}),s=Tt(()=>{const d=lp(r);Object.keys(d).forEach(p=>{i[p]=d[p]})}),l=Tt(()=>{i.show=!1,s()}),c=Tt(d=>{const{containerEl:p,checkFn:m,popup:y,messages:b,..._}=lp(d);typeof m=="function"&&(i.checkFn=m),y!==void 0&&(i.popup=y),b!==void 0&&(i.messages=b),p!==void 0&&(i.containerEl=p),o(_),i.show=!0});Z.useImperativeHandle(t,()=>({open:c,close:l}),[c,l]);const u=q.jsx(get,{open:!0,popup:i.popup,messages:i.messages,checkFn:i.checkFn,...a});return i.containerEl?_m.createPortal(u,i.containerEl):i.show&&u});function vet(){const e=Z.useRef(null),t=Xt(()=>new WWe({concurrency:1})),n=Tt((...s)=>{var l;(l=e.current)==null||l.close(...s)}),r=Tt(({onSuccess:s,onClose:l,onEnd:c,...u},...d)=>{const p=()=>new Promise(m=>{typeof s=="function"?u.onSuccess=(...y)=>{s(...y),setTimeout(()=>{n(),m()},2e3)}:u.onSuccess=()=>{setTimeout(()=>{n(),m()},2e3)},typeof l=="function"?u.onClose=(...y)=>{l(...y),n(),m(),t.clear()}:u.onClose=()=>{n(),m(),t.clear()},setTimeout(()=>{var y;(y=e.current)==null||y.open(u,...d)})});t.add(p)}),i=Tt((s={},{baseUrl:l,locale:c="en",blocklet:u=globalThis==null?void 0:globalThis.blocklet}={})=>new Promise((d,p)=>{const m=()=>new Promise(y=>{(async()=>{var L;if(Ki(l)){const F=al(),G=Ts();l=F?G.appUrl:window.location.origin}const{onSuccess:_,onClose:S,onError:$,...D}=s;if(!((L=D==null?void 0:D.extraParams)!=null&&L.provider))throw Nu($)&&$("Must have extraParams.provider"),new Error("Must have extraParams.provider");D!=null&&D.prefix||(D.prefix=window.location.origin+Cn(u==null?void 0:u.prefix,m$));const P=new URLSearchParams;P.set("params",btoa(encodeURIComponent(JSON.stringify(D)))),P.set("appPid",u==null?void 0:u.appPid),P.set("locale",c);const U=jQ(Cn(l||"/",fi,`/connect?${P.toString()}`));try{const F=await VQ({popup:U,closeTimeout:2e3});g1({connected_app:dp(),...F==null?void 0:F.options},!0),Nu(_)?(_({...F.response,encrypted:!1}),n(),y()):(n(),y()),d({...F.response,encrypted:!1})}catch(F){throw F.message==="Popup closed"?Nu(S)?(S(),y(),t.clear()):(y(),t.clear()):Nu($)&&$(F),F}})().catch(_=>{y(),p(_)})});t.add(m)})),a=Xt(()=>q.jsx(yet,{ref:e})),o=Xt(()=>({open:r,close:n,openPopup:i,queue:t}));return{connectHolder:a,connectApi:o}}const Gr={LOGIN:Symbol("login"),CANCEL_LOGIN:Symbol("cancelLogin"),LOGOUT:Symbol("logout"),SWITCH_PROFILE:Symbol("switchProfile"),CANCEL_SWITCH_PROFILE:Symbol("cancelSwitchProfile"),SWITCH_PASSPORT:Symbol("switchPassport"),CANCEL_SWITCH_PASSPORT:Symbol("cancelSwitchPassport"),BIND_WALLET:Symbol("bindWallet"),CANCEL_BIND_WALLET:Symbol("cancelBindWallet"),CONNECT_TO_DID_SPACE_FOR_FULL_ACCESS:Symbol("connectToDidSpaceForFullAccess")},Dc={login:{en:{title:"Connect DID Wallet",scan:"Scan following qrcode to connect your DID Wallet",confirm:"Confirm connection in your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码完成连接",confirm:"在 DID 钱包中确认连接",success:"连接成功"}},"switch-specified-did":{en:{title:"Switch DID",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"你需要切换账号至 {did} 才能完成后续的操作",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-did":{en:{title:"Switch DID",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"请使用 DID 钱包扫码下面的二维码完成切换",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-profile":{en:{title:"Switch Profile",scan:"Scan following qrcode with DID Wallet to switch profile",confirm:"Select profile in your DID Wallet",success:"Profile updated"},zh:{title:"切换个人信息",scan:"请使用 DID 钱包扫码下面的二维码来切换个人信息",confirm:"在 DID 钱包中选择个人信息",success:"个人信息已经更新"}},"switch-passport":{en:{title:"Switch Passport",scan:"Scan following qrcode with DID Wallet to switch passport",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"切换通行证",scan:"请使用 DID 钱包扫码二维码来切换通行证",confirm:"在 DID 钱包中选择通行证",success:"通行证和会话已经更新"}},"connect-to-did-spaces-for-user":{en:{title:"Please authorize the application to connect to your DID Space",scan:"Please use your DID wallet to scan the QR code for authorization",confirm:"Select the DID Spaces NFT in your DID wallet",success:"Connection successful"},zh:{title:"请授权应用连接你的 DID Space",scan:"请使用 DID 钱包扫码二维码来完成授权",confirm:"在 DID 钱包中选择 DID Spaces NFT",success:"连接成功"}},"bind-wallet":{en:{title:"Connect DID Wallet for enhanced security",scan:"Scan following qrcode with DID Wallet to connect your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包获得更高的安全性",scan:"请使用 DID 钱包扫码二维码来连接您的 DID 钱包",success:"连接成功"}},exchangePassport:{en:{action:"Exchange Passport with NFT",tooltip:"Exchange passport if you owns any required NFT"},zh:{action:"兑换通行证",tooltip:"通过出示你持有的特定 NFT 来获取通行证"}},lostPassport:{en:{action:"Lost Passport"},zh:{action:"找回通行证"}},switchAccountDialog:{en:{confirm:"Switch",title:"Switch Account",description:"Please switch accounts to complete next action",currentAccount:"Current account",nextAccount:"Account to be switched"},zh:{confirm:"切换",title:"切换账号",description:"请切换账号来完成后续的操作",currentAccount:"当前登录的账户",nextAccount:"即将切换的账户"}}};var uR={exports:{}};const bet="2.0.0",Bee=256,Tet=Number.MAX_SAFE_INTEGER||9007199254740991,Eet=16,Aet=Bee-6,wet=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var qE={MAX_LENGTH:Bee,MAX_SAFE_COMPONENT_LENGTH:Eet,MAX_SAFE_BUILD_LENGTH:Aet,MAX_SAFE_INTEGER:Tet,RELEASE_TYPES:wet,SEMVER_SPEC_VERSION:bet,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},H4={};const _et=typeof on=="object"&&H4&&H4.NODE_DEBUG&&/\bsemver\b/i.test(H4.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var GE=_et;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=qE,a=GE;t=e.exports={};const o=t.re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[d,r]],m=b=>{for(const[_,S]of p)b=b.split(`${_}*`).join(`${_}{0,${S}}`).split(`${_}+`).join(`${_}{1,${S}}`);return b},y=(b,_,S)=>{const $=m(_),D=u++;a(b,D,_),c[b]=D,l[D]=_,o[D]=new RegExp(_,S?"g":void 0),s[D]=new RegExp($,S?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),y("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),y("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${d}+`),y("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),y("FULL",`^${l[c.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),y("LOOSE",`^${l[c.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),y("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),y("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?(?:${l[c.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",l[c.COERCE],!0),y("COERCERTLFULL",l[c.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(uR,uR.exports);var mg=uR.exports;const Cet=Object.freeze({loose:!0}),Ret=Object.freeze({}),xet=e=>e?typeof e!="object"?Cet:e:Ret;var oI=xet;const JU=/^[0-9]+$/,Nee=(e,t)=>{const n=JU.test(e),r=JU.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},$et=(e,t)=>Nee(t,e);var Fee={compareIdentifiers:Nee,rcompareIdentifiers:$et};const Ev=GE,{MAX_LENGTH:qU,MAX_SAFE_INTEGER:Av}=qE,{safeRe:GU,t:zU}=mg,Iet=oI,{compareIdentifiers:bd}=Fee;let ket=class Os{constructor(t,n){if(n=Iet(n),t instanceof Os){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>qU)throw new TypeError(`version is longer than ${qU} characters`);Ev("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?GU[zU.LOOSE]:GU[zU.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Av||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Av||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Av||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const a=+i;if(a>=0&&a<Av)return a}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Ev("SemVer.compare",this.version,this.options,t),!(t instanceof Os)){if(typeof t=="string"&&t===this.version)return 0;t=new Os(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof Os||(t=new Os(t,this.options)),bd(this.major,t.major)||bd(this.minor,t.minor)||bd(this.patch,t.patch)}comparePre(t){if(t instanceof Os||(t=new Os(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],i=t.prerelease[n];if(Ev("prerelease compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return bd(r,i)}while(++n)}compareBuild(t){t instanceof Os||(t=new Os(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Ev("build compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return bd(r,i)}while(++n)}inc(t,n,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const i=Number(r)?1:0;if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let a=[n,i];r===!1&&(a=[n]),bd(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var pa=ket;const WU=pa,Det=(e,t,n=!1)=>{if(e instanceof WU)return e;try{return new WU(e,t)}catch(r){if(!n)return null;throw r}};var kh=Det;const Let=kh,Oet=(e,t)=>{const n=Let(e,t);return n?n.version:null};var Pet=Oet;const Met=kh,Bet=(e,t)=>{const n=Met(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var Net=Bet;const KU=pa,Fet=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new KU(e instanceof KU?e.version:e,n).inc(t,r,i).version}catch{return null}};var Uet=Fet;const YU=kh,Het=(e,t)=>{const n=YU(e,null,!0),r=YU(t,null,!0),i=n.compare(r);if(i===0)return null;const a=i>0,o=a?n:r,s=a?r:n,l=!!o.prerelease.length;if(!!s.prerelease.length&&!l)return!s.patch&&!s.minor?"major":o.patch?"patch":o.minor?"minor":"major";const u=l?"pre":"";return n.major!==r.major?u+"major":n.minor!==r.minor?u+"minor":n.patch!==r.patch?u+"patch":"prerelease"};var jet=Het;const Vet=pa,Jet=(e,t)=>new Vet(e,t).major;var qet=Jet;const Get=pa,zet=(e,t)=>new Get(e,t).minor;var Wet=zet;const Ket=pa,Yet=(e,t)=>new Ket(e,t).patch;var Zet=Yet;const Xet=kh,Qet=(e,t)=>{const n=Xet(e,t);return n&&n.prerelease.length?n.prerelease:null};var ett=Qet;const ZU=pa,ttt=(e,t,n)=>new ZU(e,n).compare(new ZU(t,n));var _s=ttt;const ntt=_s,rtt=(e,t,n)=>ntt(t,e,n);var itt=rtt;const att=_s,ott=(e,t)=>att(e,t,!0);var stt=ott;const XU=pa,ltt=(e,t,n)=>{const r=new XU(e,n),i=new XU(t,n);return r.compare(i)||r.compareBuild(i)};var sI=ltt;const utt=sI,ctt=(e,t)=>e.sort((n,r)=>utt(n,r,t));var ftt=ctt;const dtt=sI,ptt=(e,t)=>e.sort((n,r)=>dtt(r,n,t));var htt=ptt;const mtt=_s,gtt=(e,t,n)=>mtt(e,t,n)>0;var zE=gtt;const ytt=_s,vtt=(e,t,n)=>ytt(e,t,n)<0;var lI=vtt;const btt=_s,Ttt=(e,t,n)=>btt(e,t,n)===0;var Uee=Ttt;const Ett=_s,Att=(e,t,n)=>Ett(e,t,n)!==0;var Hee=Att;const Stt=_s,wtt=(e,t,n)=>Stt(e,t,n)>=0;var uI=wtt;const _tt=_s,Ctt=(e,t,n)=>_tt(e,t,n)<=0;var cI=Ctt;const Rtt=Uee,xtt=Hee,$tt=zE,Itt=uI,ktt=lI,Dtt=cI,Ltt=(e,t,n,r)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return Rtt(e,n,r);case"!=":return xtt(e,n,r);case">":return $tt(e,n,r);case">=":return Itt(e,n,r);case"<":return ktt(e,n,r);case"<=":return Dtt(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var jee=Ltt;const Ott=pa,Ptt=kh,{safeRe:Sv,t:wv}=mg,Mtt=(e,t)=>{if(e instanceof Ott)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?Sv[wv.COERCEFULL]:Sv[wv.COERCE]);else{const l=t.includePrerelease?Sv[wv.COERCERTLFULL]:Sv[wv.COERCERTL];let c;for(;(c=l.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||c.index+c[0].length!==n.index+n[0].length)&&(n=c),l.lastIndex=c.index+c[1].length+c[2].length;l.lastIndex=-1}if(n===null)return null;const r=n[2],i=n[3]||"0",a=n[4]||"0",o=t.includePrerelease&&n[5]?`-${n[5]}`:"",s=t.includePrerelease&&n[6]?`+${n[6]}`:"";return Ptt(`${r}.${i}.${a}${o}${s}`,t)};var Btt=Mtt;class Ntt{constructor(){this.max=1e3,this.map=new Map}get(t){const n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(t,n)}return this}}var Ftt=Ntt,j4,QU;function Cs(){if(QU)return j4;QU=1;class e{constructor(f,h){if(h=r(h),f instanceof e)return f.loose===!!h.loose&&f.includePrerelease===!!h.includePrerelease?f:new e(f.raw,h);if(f instanceof i)return this.raw=f.value,this.set=[[f]],this.format(),this;if(this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease,this.raw=f.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(T=>this.parseRange(T.trim())).filter(T=>T.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const T=this.set[0];if(this.set=this.set.filter(w=>!y(w[0])),this.set.length===0)this.set=[T];else if(this.set.length>1){for(const w of this.set)if(w.length===1&&b(w[0])){this.set=[w];break}}}this.format()}format(){return this.range=this.set.map(f=>f.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(f){const T=((this.options.includePrerelease&&p)|(this.options.loose&&m))+":"+f,w=n.get(T);if(w)return w;const R=this.options.loose,I=R?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];f=f.replace(I,K(this.options.includePrerelease)),a("hyphen replace",f),f=f.replace(s[l.COMPARATORTRIM],c),a("comparator trim",f),f=f.replace(s[l.TILDETRIM],u),a("tilde trim",f),f=f.replace(s[l.CARETTRIM],d),a("caret trim",f);let C=f.split(" ").map(ne=>S(ne,this.options)).join(" ").split(/\s+/).map(ne=>se(ne,this.options));R&&(C=C.filter(ne=>(a("loose invalid filter",ne,this.options),!!ne.match(s[l.COMPARATORLOOSE])))),a("range list",C);const x=new Map,v=C.map(ne=>new i(ne,this.options));for(const ne of v){if(y(ne))return[ne];x.set(ne.value,ne)}x.size>1&&x.has("")&&x.delete("");const k=[...x.values()];return n.set(T,k),k}intersects(f,h){if(!(f instanceof e))throw new TypeError("a Range is required");return this.set.some(T=>_(T,h)&&f.set.some(w=>_(w,h)&&T.every(R=>w.every(I=>R.intersects(I,h)))))}test(f){if(!f)return!1;if(typeof f=="string")try{f=new o(f,this.options)}catch{return!1}for(let h=0;h<this.set.length;h++)if(B(this.set[h],f,this.options))return!0;return!1}}j4=e;const t=Ftt,n=new t,r=oI,i=WE(),a=GE,o=pa,{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=mg,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=qE,y=E=>E.value==="<0.0.0-0",b=E=>E.value==="",_=(E,f)=>{let h=!0;const T=E.slice();let w=T.pop();for(;h&&T.length;)h=T.every(R=>w.intersects(R,f)),w=T.pop();return h},S=(E,f)=>(a("comp",E,f),E=U(E,f),a("caret",E),E=D(E,f),a("tildes",E),E=F(E,f),a("xrange",E),E=ie(E,f),a("stars",E),E),$=E=>!E||E.toLowerCase()==="x"||E==="*",D=(E,f)=>E.trim().split(/\s+/).map(h=>P(h,f)).join(" "),P=(E,f)=>{const h=f.loose?s[l.TILDELOOSE]:s[l.TILDE];return E.replace(h,(T,w,R,I,C)=>{a("tilde",E,T,w,R,I,C);let x;return $(w)?x="":$(R)?x=`>=${w}.0.0 <${+w+1}.0.0-0`:$(I)?x=`>=${w}.${R}.0 <${w}.${+R+1}.0-0`:C?(a("replaceTilde pr",C),x=`>=${w}.${R}.${I}-${C} <${w}.${+R+1}.0-0`):x=`>=${w}.${R}.${I} <${w}.${+R+1}.0-0`,a("tilde return",x),x})},U=(E,f)=>E.trim().split(/\s+/).map(h=>L(h,f)).join(" "),L=(E,f)=>{a("caret",E,f);const h=f.loose?s[l.CARETLOOSE]:s[l.CARET],T=f.includePrerelease?"-0":"";return E.replace(h,(w,R,I,C,x)=>{a("caret",E,w,R,I,C,x);let v;return $(R)?v="":$(I)?v=`>=${R}.0.0${T} <${+R+1}.0.0-0`:$(C)?R==="0"?v=`>=${R}.${I}.0${T} <${R}.${+I+1}.0-0`:v=`>=${R}.${I}.0${T} <${+R+1}.0.0-0`:x?(a("replaceCaret pr",x),R==="0"?I==="0"?v=`>=${R}.${I}.${C}-${x} <${R}.${I}.${+C+1}-0`:v=`>=${R}.${I}.${C}-${x} <${R}.${+I+1}.0-0`:v=`>=${R}.${I}.${C}-${x} <${+R+1}.0.0-0`):(a("no pr"),R==="0"?I==="0"?v=`>=${R}.${I}.${C}${T} <${R}.${I}.${+C+1}-0`:v=`>=${R}.${I}.${C}${T} <${R}.${+I+1}.0-0`:v=`>=${R}.${I}.${C} <${+R+1}.0.0-0`),a("caret return",v),v})},F=(E,f)=>(a("replaceXRanges",E,f),E.split(/\s+/).map(h=>G(h,f)).join(" ")),G=(E,f)=>{E=E.trim();const h=f.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return E.replace(h,(T,w,R,I,C,x)=>{a("xRange",E,T,w,R,I,C,x);const v=$(R),k=v||$(I),ne=k||$(C),N=ne;return w==="="&&N&&(w=""),x=f.includePrerelease?"-0":"",v?w===">"||w==="<"?T="<0.0.0-0":T="*":w&&N?(k&&(I=0),C=0,w===">"?(w=">=",k?(R=+R+1,I=0,C=0):(I=+I+1,C=0)):w==="<="&&(w="<",k?R=+R+1:I=+I+1),w==="<"&&(x="-0"),T=`${w+R}.${I}.${C}${x}`):k?T=`>=${R}.0.0${x} <${+R+1}.0.0-0`:ne&&(T=`>=${R}.${I}.0${x} <${R}.${+I+1}.0-0`),a("xRange return",T),T})},ie=(E,f)=>(a("replaceStars",E,f),E.trim().replace(s[l.STAR],"")),se=(E,f)=>(a("replaceGTE0",E,f),E.trim().replace(s[f.includePrerelease?l.GTE0PRE:l.GTE0],"")),K=E=>(f,h,T,w,R,I,C,x,v,k,ne,N)=>($(T)?h="":$(w)?h=`>=${T}.0.0${E?"-0":""}`:$(R)?h=`>=${T}.${w}.0${E?"-0":""}`:I?h=`>=${h}`:h=`>=${h}${E?"-0":""}`,$(v)?x="":$(k)?x=`<${+v+1}.0.0-0`:$(ne)?x=`<${v}.${+k+1}.0-0`:N?x=`<=${v}.${k}.${ne}-${N}`:E?x=`<${v}.${k}.${+ne+1}-0`:x=`<=${x}`,`${h} ${x}`.trim()),B=(E,f,h)=>{for(let T=0;T<E.length;T++)if(!E[T].test(f))return!1;if(f.prerelease.length&&!h.includePrerelease){for(let T=0;T<E.length;T++)if(a(E[T].semver),E[T].semver!==i.ANY&&E[T].semver.prerelease.length>0){const w=E[T].semver;if(w.major===f.major&&w.minor===f.minor&&w.patch===f.patch)return!0}return!1}return!0};return j4}var V4,eH;function WE(){if(eH)return V4;eH=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(u,d){if(d=n(d),u instanceof t){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),o("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(u){const d=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],p=u.match(d);if(!p)throw new TypeError(`Invalid comparator: ${u}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new s(p[2],this.options.loose):this.semver=e}toString(){return this.value}test(u){if(o("Comparator.test",u,this.options.loose),this.semver===e||u===e)return!0;if(typeof u=="string")try{u=new s(u,this.options)}catch{return!1}return a(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,d).test(u.semver):(d=n(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||a(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||a(this.semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}V4=t;const n=oI,{safeRe:r,t:i}=mg,a=jee,o=GE,s=pa,l=Cs();return V4}const Utt=Cs(),Htt=(e,t,n)=>{try{t=new Utt(t,n)}catch{return!1}return t.test(e)};var KE=Htt;const jtt=Cs(),Vtt=(e,t)=>new jtt(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var Jtt=Vtt;const qtt=pa,Gtt=Cs(),ztt=(e,t,n)=>{let r=null,i=null,a=null;try{a=new Gtt(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new qtt(r,n))}),r};var Wtt=ztt;const Ktt=pa,Ytt=Cs(),Ztt=(e,t,n)=>{let r=null,i=null,a=null;try{a=new Ytt(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new Ktt(r,n))}),r};var Xtt=Ztt;const J4=pa,Qtt=Cs(),tH=zE,ent=(e,t)=>{e=new Qtt(e,t);let n=new J4("0.0.0");if(e.test(n)||(n=new J4("0.0.0-0"),e.test(n)))return n;n=null;for(let r=0;r<e.set.length;++r){const i=e.set[r];let a=null;i.forEach(o=>{const s=new J4(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||tH(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||tH(n,a))&&(n=a)}return n&&e.test(n)?n:null};var tnt=ent;const nnt=Cs(),rnt=(e,t)=>{try{return new nnt(e,t).range||"*"}catch{return null}};var int=rnt;const ant=pa,Vee=WE(),{ANY:ont}=Vee,snt=Cs(),lnt=KE,nH=zE,rH=lI,unt=cI,cnt=uI,fnt=(e,t,n,r)=>{e=new ant(e,r),t=new snt(t,r);let i,a,o,s,l;switch(n){case">":i=nH,a=unt,o=rH,s=">",l=">=";break;case"<":i=rH,a=cnt,o=nH,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lnt(e,t,r))return!1;for(let c=0;c<t.set.length;++c){const u=t.set[c];let d=null,p=null;if(u.forEach(m=>{m.semver===ont&&(m=new Vee(">=0.0.0")),d=d||m,p=p||m,i(m.semver,d.semver,r)?d=m:o(m.semver,p.semver,r)&&(p=m)}),d.operator===s||d.operator===l||(!p.operator||p.operator===s)&&a(e,p.semver))return!1;if(p.operator===l&&o(e,p.semver))return!1}return!0};var fI=fnt;const dnt=fI,pnt=(e,t,n)=>dnt(e,t,">",n);var hnt=pnt;const mnt=fI,gnt=(e,t,n)=>mnt(e,t,"<",n);var ynt=gnt;const iH=Cs(),vnt=(e,t,n)=>(e=new iH(e,n),t=new iH(t,n),e.intersects(t,n));var bnt=vnt;const Tnt=KE,Ent=_s;var Ant=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((u,d)=>Ent(u,d,n));for(const u of o)Tnt(u,t,n)?(a=u,i||(i=u)):(a&&r.push([i,a]),a=null,i=null);i&&r.push([i,null]);const s=[];for(const[u,d]of r)u===d?s.push(u):!d&&u===o[0]?s.push("*"):d?u===o[0]?s.push(`<=${d}`):s.push(`${u} - ${d}`):s.push(`>=${u}`);const l=s.join(" || "),c=typeof t.raw=="string"?t.raw:String(t);return l.length<c.length?l:t};const aH=Cs(),dI=WE(),{ANY:q4}=dI,D0=KE,pI=_s,Snt=(e,t,n={})=>{if(e===t)return!0;e=new aH(e,n),t=new aH(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=_nt(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},wnt=[new dI(">=0.0.0-0")],oH=[new dI(">=0.0.0")],_nt=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===q4){if(t.length===1&&t[0].semver===q4)return!0;n.includePrerelease?e=wnt:e=oH}if(t.length===1&&t[0].semver===q4){if(n.includePrerelease)return!0;t=oH}const r=new Set;let i,a;for(const m of e)m.operator===">"||m.operator===">="?i=sH(i,m,n):m.operator==="<"||m.operator==="<="?a=lH(a,m,n):r.add(m.semver);if(r.size>1)return null;let o;if(i&&a){if(o=pI(i.semver,a.semver,n),o>0)return null;if(o===0&&(i.operator!==">="||a.operator!=="<="))return null}for(const m of r){if(i&&!D0(m,String(i),n)||a&&!D0(m,String(a),n))return null;for(const y of t)if(!D0(m,String(y),n))return!1;return!0}let s,l,c,u,d=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;d&&d.prerelease.length===1&&a.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const m of t){if(u=u||m.operator===">"||m.operator===">=",c=c||m.operator==="<"||m.operator==="<=",i){if(p&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===p.major&&m.semver.minor===p.minor&&m.semver.patch===p.patch&&(p=!1),m.operator===">"||m.operator===">="){if(s=sH(i,m,n),s===m&&s!==i)return!1}else if(i.operator===">="&&!D0(i.semver,String(m),n))return!1}if(a){if(d&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===d.major&&m.semver.minor===d.minor&&m.semver.patch===d.patch&&(d=!1),m.operator==="<"||m.operator==="<="){if(l=lH(a,m,n),l===m&&l!==a)return!1}else if(a.operator==="<="&&!D0(a.semver,String(m),n))return!1}if(!m.operator&&(a||i)&&o!==0)return!1}return!(i&&c&&!a&&o!==0||a&&u&&!i&&o!==0||p||d)},sH=(e,t,n)=>{if(!e)return t;const r=pI(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},lH=(e,t,n)=>{if(!e)return t;const r=pI(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var Cnt=Snt;const G4=mg,uH=qE,Rnt=pa,cH=Fee,xnt=kh,$nt=Pet,Int=Net,knt=Uet,Dnt=jet,Lnt=qet,Ont=Wet,Pnt=Zet,Mnt=ett,Bnt=_s,Nnt=itt,Fnt=stt,Unt=sI,Hnt=ftt,jnt=htt,Vnt=zE,Jnt=lI,qnt=Uee,Gnt=Hee,znt=uI,Wnt=cI,Knt=jee,Ynt=Btt,Znt=WE(),Xnt=Cs(),Qnt=KE,ert=Jtt,trt=Wtt,nrt=Xtt,rrt=tnt,irt=int,art=fI,ort=hnt,srt=ynt,lrt=bnt,urt=Ant,crt=Cnt;var Jee={parse:xnt,valid:$nt,clean:Int,inc:knt,diff:Dnt,major:Lnt,minor:Ont,patch:Pnt,prerelease:Mnt,compare:Bnt,rcompare:Nnt,compareLoose:Fnt,compareBuild:Unt,sort:Hnt,rsort:jnt,gt:Vnt,lt:Jnt,eq:qnt,neq:Gnt,gte:znt,lte:Wnt,cmp:Knt,coerce:Ynt,Comparator:Znt,Range:Xnt,satisfies:Qnt,toComparators:ert,maxSatisfying:trt,minSatisfying:nrt,minVersion:rrt,validRange:irt,outside:art,gtr:ort,ltr:srt,intersects:lrt,simplifyRange:urt,subset:crt,SemVer:Rnt,re:G4.re,src:G4.src,tokens:G4.t,SEMVER_SPEC_VERSION:uH.SEMVER_SPEC_VERSION,RELEASE_TYPES:uH.RELEASE_TYPES,compareIdentifiers:cH.compareIdentifiers,rcompareIdentifiers:cH.rcompareIdentifiers};const fH=zt(Jee),frt=[`${fi}/connect`,`${fi}/login`,`${fi}/invite`,`${fi}/issue-passport`,`${fi}/oauth/*`],drt=frt.map(e=>ree(e,[]));async function prt(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(drt.some(s=>s.exec(t)))return null;const o=GQ();try{const s=`${window.location.origin}${fi}/api/user/loginByWallet`;return await VE.asyncCall("arcLogin",{target:s,chainType:r,appPid:i,componentId:n,apps:o.map(c=>{let u=c==null?void 0:c.appLogo;return BT(u)||(u=Cn(c.appUrl,u)),{appName:c.appName,appPid:c.appPid,appUrl:c.appUrl,appLogo:u,sourceAppPid:c.sourceAppPid}})})}catch(s){return console.error(s),null}}async function hrt(){return await VE.asyncCall("arcGetVisitorId")}function mrt({platform:e,version:t}={}){return!!(e==="ios"&&t&&fH.gte(t,"4.15.6")||e==="android"&&t&&fH.gte(t,"4.15.1"))}async function dH(e){var i;if((i=e==null?void 0:e.didSpace)!=null&&i.endpoint||!window.blocklet||window.self!==window.top)return!1;const t=T$(e);if(y$(t))return!1;const{componentMountPoints:n}=window.blocklet,[,r]=window.blocklet.componentId.split("/");return n.some(a=>{var o;return((o=a==null?void 0:a.capabilities)==null?void 0:o.didSpace)==="requiredOnConnect"&&r===a.did})}const{Provider:grt,Consumer:pH}=Ih,hH={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"},mH={en:"DID Connect is already opened, please wait for it to complete",zh:"DID Connect 已打开,请等待完成"};function yrt(e=zze,t="ls",n={},r={}){var c;let i="/";(c=globalThis==null?void 0:globalThis.blocklet)!=null&&c.prefix&&(i=globalThis.blocklet.prefix),typeof r=="boolean"&&(r={appendAuthServicePrefix:r,extraParams:{}}),w9e(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:Wze});const a=DB(e,t,n),o=DB(r.refreshTokenStorageKey,"ls");function s(u){var _e,$e;const{connectApi:d,connectHolder:p}=vet(),m=ig(),y=Si({extraParams:{},options:{},currentLocale:u.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof u.autoConnect=="boolean"?u.autoConnect:!!u.autoLogin},get prefix(){return r.appendAuthServicePrefix||u.appendAuthServicePrefix?Cn(fi,u.prefix):u.prefix}}),b=Si({action:u.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:""}),_=Xt(()=>u.locale||y.currentLocale||HQ(),[u.locale,y.currentLocale]),{confirmApi:S,confirmHolder:$}=iNe(),D=Tt(()=>{if(b.open){const Je=mH[_]||mH.en;throw zr.warning(Je),new Error(Je)}}),P=Xt(()=>new C9e,[]),U=Tt((Je,Be,Ne)=>{const st={login:[Gr.LOGIN,Gr.CANCEL_LOGIN],"bind-wallet":[Gr.BIND_WALLET,Gr.CANCEL_BIND_WALLET],"switch-passport":[Gr.SWITCH_PASSPORT,Gr.CANCEL_SWITCH_PASSPORT],"switch-profile":[Gr.SWITCH_PROFILE,Gr.CANCEL_SWITCH_PROFILE],"switch-did":[Gr.LOGIN,Gr.CANCEL_LOGIN]};if(!Object.keys(st).includes(Je))return;const Ye=async(...lt)=>{Nu(Be)&&await Be(...lt),P.emit(Je,...lt)};P.once(st[Je][0],Ye),P.once(st[Je][1],async(...lt)=>{Nu(Ye)&&P.off(st[Je][0],Ye),Nu(Ne)&&await Ne(...lt),P.emit(`cancel-${Je}`,...lt)})}),L=mY(b.initialized,(Je,Be)=>Je!==Be||Je===!0&&Be===!0),{handleRefreshUser:F,handleRefreshToken:G,renewToken:ie,clearSession:se,handleLoginResult:K,decrypt:B,service:E,getSessionToken:f,getRefreshToken:h,setRefreshToken:T,setSessionToken:w}=$We({state:b,pageState:y,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:u.serviceHost,apiOptions:u.apiOptions,lazyRefreshToken:u.lazyRefreshToken}),R=Tt((Je,Be={},Ne={})=>{D();const st=Je;typeof st=="object"&&(Je=st.onSuccess,Be=st.extraParams||{},Ne=st.options||{},Ne.origin=st.origin||""),(!b.user||Ne.origin==="switch-did")&&(Ne.origin==="switch-did"?U("switch-did",Je,st==null?void 0:st.onCancel):U("login",Je,st==null?void 0:st.onCancel),y.extraParams=Be,y.options=Ne,b.action="login",Fe())}),I=Tt(async(Je,Be={},Ne={})=>{var De;D();const st=Je;typeof st=="object"&&(Je=st.onSuccess,Be=st.extraParams||{},Ne=st.options||{});const{params:Ye}=await fU();if(Ki(Be==null?void 0:Be.forceConnected)&&(Ye!=null&&Ye.forceConnected)&&(Be.forceConnected=Ye.forceConnected,Ki(Ne.showQuickConnect)&&(Ne.showQuickConnect=!1)),Ki(Be==null?void 0:Be.sourceAppPid)&&!Ki(Ye==null?void 0:Ye.sourceAppPid)&&(Be.sourceAppPid=Ye.sourceAppPid),(Be==null?void 0:Be.openMode)==="redirect"){const it=(Be==null?void 0:Be.redirect)||"/",tt=new URL(`${fi}/login`,window.location.origin);tt.searchParams.set("redirect",it),Be!=null&&Be.forceConnected&&tt.searchParams.set("forceConnected",Be==null?void 0:Be.forceConnected),Ki(Be==null?void 0:Be.sourceAppPid)||tt.searchParams.set("sourceAppPid",Be==null?void 0:Be.sourceAppPid),Ne!=null&&Ne.origin&&tt.searchParams.set("origin",Ne.origin),window.location.href=tt.href;return}let lt=Be==null?void 0:Be.sourceAppPid;Ki(lt)&&Ve&&(lt=Ke.appPid),await $9e(()=>b.initialized),typeof Ne=="string"&&(Ne={origin:Ne});const Oe=lp(Be);y.allowWallet=void 0;const xe=(Oe==null?void 0:Oe.openMode)||((De=u==null?void 0:u.extraParams)==null?void 0:De.openMode);Ki(xe)?y.openMode="window":y.openMode=xe,lt?b.baseUrl=globalThis.blocklet.appUrl:b.baseUrl="",R(Je,Oe,Ne)}),C=Tf(),x=Tt(async Je=>{const Be=Cn(fi,"/api/user/logout");await fetch(Be,{method:"POST",body:JSON.stringify({visitorId:C}),headers:{"Content-Type":"application/json"}}),se(),Ae(),b.user=null,b.provider="",b.walletOS="",b.error="",b.loading=!1,P.emit("logout"),typeof Je=="function"&&Je()}),{userSessions:v,refresh:k,loaded:ne,loginUserSession:N}=Pee({appPid:gZ(b.user),loginAppPid:(_e=globalThis==null?void 0:globalThis.blocklet)==null?void 0:_e.appPid,sourceAppPid:($e=b==null?void 0:b.user)==null?void 0:$e.sourceAppPid,autoFetch:!1,fetchAll:!0}),Y=Tt(async()=>{b!=null&&b.user||await new Promise(Je=>{I(()=>{Je()})})}),re=Tt((Je,Be={},Ne={})=>{D();const st=Je;typeof st=="object"&&(Je=st.onSuccess,Be=st.extraParams||{},Ne=st.options||{}),typeof Ne=="string"&&(Ne={origin:Ne}),Ne!=null&&Ne.userSession?N(Ne.userSession).then(Ye=>{g1({connected_did:Ne.userSession.user.did,connected_pk:Ne.userSession.user.pk,connected_wallet_os:Ne.userSession.extra.walletOS,connected_app:dp()},!0),U("switch-did",Je),K({...Ye,encrypted:!1}),F(!0).then(async()=>{await kl(),P.emit(Gr.LOGIN,Ye,B,J.current),await z()})}):(Ki(Be==null?void 0:Be.forceConnected)&&(Be.forceConnected=!1),I(Je,Be,{...Ne,origin:"switch-did"}))}),le=Tt(async()=>{await new YZ().user.refreshProfile()}),ge=Tt(async(Je,Be={})=>{await Y(),D();const Ne=Je;typeof Ne=="object"&&(Je=Ne.onSuccess,Be=Ne.extraParams||{}),U("switch-profile",Je,Ne==null?void 0:Ne.onCancel),y.extraParams=Be,y.options={},b.action="switch-profile",Fe()}),Se=Tt(async(Je,Be={})=>{await Y(),D();const Ne=Je;typeof Ne=="object"&&(Je=Ne.onSuccess,Be=Ne.extraParams||{}),U("switch-passport",Je,Ne==null?void 0:Ne.onCancel),y.extraParams=Be,y.options={},b.action="switch-passport",Fe()}),j=Tt(async({extraParams:Je={},onSuccess:Be=()=>{},...Ne}={})=>{await Y(),D(),y.extraParams={referrer:window.location.href,purpose:"authorize-for-import",...Je},y.options={},b.action="connect-to-did-spaces-for-user",Fe({hideCloseButton:!0,onSuccess:Be,...Ne})}),M=Tt(async({extraParams:Je={},onSuccess:Be={}}={})=>{await Y(),j({extraParams:{purpose:"authorize-for-import",...Je},onSuccess:Be,hideCloseButton:!1})}),z=Tt(async({extraParams:Je={},onSuccess:Be={}}={})=>{await Y(),await dH(b==null?void 0:b.user)&&j({extraParams:{purpose:"authorize-for-full-access",...Je},onSuccess:Be})}),W=Tt(async(Je,Be={})=>{if(await Y(),T$(b.user)){Je({},B,J.current);return}D();const Ne=Je;typeof Ne=="object"&&(Je=Ne.onSuccess),U("bind-wallet",Je,Ne==null?void 0:Ne.onCancel),y.extraParams=Be,y.options={},b.action="bind-wallet",Fe()}),ee=Tt(Je=>{y.extraParams={},y.options={},K(Je),b.loading=!1,F(!0).then(async()=>{await kl(),b.action==="login"?(P.emit(Gr.LOGIN,Je,B,J.current),await z()):b.action==="switch-passport"&&P.emit(Gr.SWITCH_PASSPORT,Je,B,J.current)})}),ve=Tt(Je=>{y.extraParams={},y.options={},K(Je),b.loading=!1,F(!0).then(async()=>{await kl(),P.emit(Gr.BIND_WALLET,Je,B,J.current)})}),he=Tt(()=>{F(!0),P.emit(Gr.CONNECT_TO_DID_SPACE_FOR_FULL_ACCESS)}),oe=Tt(Je=>{y.extraParams={},y.options={},b.loading=!1,F(!0).then(async()=>{await kl(),P.emit(Gr.SWITCH_PROFILE,Je,B,J.current)})}),ye=Tt(Je=>{y.extraParams={},y.options={},Ae();const Be={login:Gr.CANCEL_LOGIN,"switch-profile":Gr.CANCEL_SWITCH_PROFILE,"switch-passport":Gr.CANCEL_SWITCH_PASSPORT,"bind-wallet":Gr.CANCEL_BIND_WALLET};P.emit(Be[Je])}),we=Tt((Je,...Be)=>{try{Ce[Je](...Be)}catch(Ne){console.error("Catch error in onSuccess",{action:Je,args:Be,err:Ne})}}),{federatedMaster:Te,federatedEnabled:Ve,master:Ke}=_We({locale:_,decrypt:B,login:R,logout:x,handleLoginResult:K,handleRefreshUser:F,setRefreshToken:T,setSessionToken:w}),{checkMatch:je}=UWe({protectedRoutes:u.protectedRoutes||[]}),Ge=Lp(v),pe=Tt(async()=>(ne||(await k(),await kl()),Ge.current)),Ae=Tt(()=>{b.open=!1,d.close()}),Fe=async(Je={})=>{var Oe,xe,De,it,tt,nt,wt;let Be=b.action;((Oe=y==null?void 0:y.options)==null?void 0:Oe.origin)==="switch-did"&&(Be=(xe=y==null?void 0:y.options)==null?void 0:xe.origin);const Ne=Dc[Be],st=Ne[_]||Ne.en,Ye={...r.extraParams,...u.extraParams,...y.extraParams,previousUserDid:(De=b==null?void 0:b.user)==null?void 0:De.did,email:(it=b==null?void 0:b.user)==null?void 0:it.email};if(Be==="switch-did"&&(Ye!=null&&Ye.forceConnected)){const et=(ze,Dt={})=>dc(Dc["switch-specified-did"],ze,_,"en",Dt);st.title=et("title"),st.scan=et("scan",{did:Ye.forceConnected}),st.confirm=et("confirm"),st.success=et("success")}Ye==null||delete Ye.openMode;const lt={action:b.action,locale:_,hideCloseButton:Je==null?void 0:Je.hideCloseButton,extraParams:Ye,options:{...u.options||{},...y.options},checkTimeout:u.timeout,webWalletUrl:u.webWalletUrl,messages:st,useSocket:u.useSocket,...kp(u,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...KT(y.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:y.prefix,allowWallet:Ki(y.allowWallet)?b.action!=="login"||(((tt=globalThis.blocklet)==null?void 0:tt.DID_CONNECT_ALLOW_WALLET)||"1")==="1":y.allowWallet,onSuccess:async(...et)=>{we(b.action,...et),Nu(Je==null?void 0:Je.onSuccess)&&await Je.onSuccess(...et),b.open=!1},onClose(...et){ye(b.action,...et)},onError(et){console.error(et)}};if(b.open=!0,["login"].includes(b.action)&&y.openMode==="window"&&!m.wallet)try{const et={...lt,baseUrl:window.location.origin};BT(y.prefix)||(et.prefix=Cn(window.location.origin,u.serviceHost==="/"?"":u.serviceHost,y.prefix)),(nt=et.extraParams)!=null&&nt.provider||(et.extraParams.provider=((wt=b==null?void 0:b.user)==null?void 0:wt.provider)||"wallet"),await d.openPopup(et,{locale:_})}catch(et){et instanceof PQ&&Ae(),et.message==="Timeout"?zr.error(hH[_]||hH.en):console.error(et)}else d.open(lt)},Re=Tt(async()=>{const{params:Je,url:Be}=await fU();if(Je){const{switchBehavior:Ne,forceConnected:st,sourceAppPid:Ye,showClose:lt}=Je;st===b.user.did?window.history.replaceState(null,"trim",Be):Ne==="required"?re(()=>{},{openMode:"redirect",redirect:Be,sourceAppPid:Ye,forceConnected:st}):Ne==="disabled"?window.history.replaceState(null,"trim",Be):S.open({title:Dc.switchAccountDialog[_].title,content:q.jsxs(q.Fragment,{children:[q.jsx(or,{variant:"body1",sx:{textAlign:"center",mb:2},children:Dc.switchAccountDialog[_].description}),q.jsxs(Et,{sx:{display:"flex",alignItems:"center",color:kt.foregroundsFgBase},children:[q.jsxs(Et,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1},children:[q.jsx(Zl,{did:b.user.did,shape:"circle",variant:"circle",size:80}),q.jsx(Bp,{did:b.user.did,showAvatar:!1,compact:!0,responsive:!1}),Dc.switchAccountDialog[_].currentAccount]}),q.jsx(Et,{sx:{display:"flex",justifyContent:"center",px:2},children:q.jsx(Et,{component:Vn,icon:KBe,fontSize:24,color:kt.foregroundsFgMuted,sx:{animation:"right 2.5s linear infinite","@keyframes right":{"0%":{transform:"translateX(-3px)",opacity:0},"60%":{transform:"translateX(3px)",opacity:1},"100%":{transform:"translateX(0px)",opacity:0}}}})}),q.jsxs(Et,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1,fontWeight:500},children:[q.jsx(Zl,{did:st,shape:"circle",variant:"circle",size:80}),q.jsx(Bp,{did:st,showAvatar:!1,compact:!0,responsive:!1}),Dc.switchAccountDialog[_].nextAccount]})]})]}),showCloseButton:lt,showCancelButton:!1,confirmButtonText:Dc.switchAccountDialog[_].confirm,async onConfirm(Oe){const De=(await pe()).find(it=>it.userDid===st);if(De){N(De).then(it=>{g1({connected_did:De.user.did,connected_pk:De.user.pk,connected_wallet_os:De.extra.walletOS,connected_app:dp()},!0),K({...it,encrypted:!1}),F(!0).then(async()=>{await kl(),P.emit(Gr.LOGIN,it,B,J.current),await z()})}),Oe();return}re(()=>{Oe(),window.location.replace(Be)},{sourceAppPid:Ye,forceConnected:st,enableSwitchApp:!1},{showQuickConnect:!0})}})}}),te=Tt(async(Je,Be)=>{const Ne=Object.assign({login:!0,bindWallet:!0,bindDidSpaces:!1},Be==null?void 0:Be.requirements),st=(Be==null?void 0:Be.openMode)||"popup";Ne.login&&await Y(),Ne.bindWallet&&await new Promise(Ye=>{W(()=>{Ye()})}),Ne.bindDidSpaces&&(await dH(b==null?void 0:b.user)||await new Promise(Ye=>{Ne.bindDidSpaces==="full"?z({onSuccess(){Ye()}}):Ne.bindDidSpaces==="read"&&M({onSuccess(){Ye()}})})),st==="window"?d.openPopup(Je,Be):st==="popup"&&d.open(Je)}),V={...b,loading:y.autoConnect&&!b.user||b.loading,openDidConnect:te,login:I,logout:x,switchDid:re,autoSwitchDid:Re,refreshProfile:le,switchProfile:ge,switchPassport:Se,connectToDidSpaceForImport:M,connectToDidSpaceForFullAccess:z,bindWallet:W,refresh:F,updateConnectedInfo:g1,federatedMaster:Te,useOAuth:b$,OAuthProvider:eb,OAuthConsumer:bWe,OAuthContext:v$,useDid:YQ,WrapDid:ZQ,getUserSessions:pe},J=Lp(V),ce={api:E,events:P,storage:a,connectApi:d,session:J.current},Ce={login:ee,"switch-profile":oe,"switch-passport":ee,"bind-wallet":ve,"connect-to-did-spaces-for-user":he};return Sf(()=>{if(b.initialized){const Je=!L;P.emit("change",{user:lp(b.user),isFirst:Je})}},[b.user,b.initialized,P]),Sf(()=>{b.initialized&&b.user&&Re()},[b.initialized]),eg(async()=>{const Je=Kr.get("connected_app"),Be=dp();if(u.autoDisconnect&&Je&&Be&&Je!==Be){se(),b.initialized=!0,y.autoConnect?Fe():Ae();return}const Ne=f();let st="web";if(m.mobile.apple.device?st="ios":m.mobile.android.device&&(st="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&m.wallet&&mrt({version:m.walletVersion,platform:st})){if(!C){const lt=await hrt();aW(lt)}if(!Ne)try{b.loading=!0;const lt=await prt();if(lt){b.initialized=!0,ee({sessionToken:lt.sessionToken,refreshToken:lt.refreshToken,encrypted:!1});return}}finally{b.loading=!1}}if(Ne){await F(!0),b.initialized=!0,await z();return}if(typeof window<"u"){const lt=new URL(window.location.href),Oe=lt.searchParams.get("loginToken");if(Oe){K({loginToken:Oe,encrypted:!1}),lt.searchParams.delete("loginToken"),window.history.replaceState({},window.title,lt.href);return}}if(h()){await G(!0),b.initialized=!0;return}try{}catch(lt){console.error("Federated: tryAutoLogin failed",lt)}finally{b.initialized=!0}y.autoConnect?Fe():Ae()}),je()&&!b.initialized?q.jsx(Cp,{children:q.jsx(Fm,{})}):q.jsx(grt,{value:ce,children:q.jsxs(eb,{locale:_,onSwitchPassport:({sessionToken:Je,refreshToken:Be})=>{ee({sessionToken:Je,refreshToken:Be,encrypted:!1})},onUnbindOAuth:()=>{F()},onBindOAuth:()=>{F()},children:[!b.open&&typeof u.children=="function"?u.children(b):u.children,p,$,r.rolling&&q.jsx(JQ,{callback:()=>ie()})]})})}s.propTypes={children:me.any.isRequired,serviceHost:me.string,action:me.string,prefix:me.string,appendAuthServicePrefix:me.bool,locale:me.string,timeout:me.number,autoConnect:me.bool,autoDisconnect:me.bool,useSocket:me.bool,extraParams:me.object,options:me.object,webWalletUrl:me.string,protectedRoutes:me.arrayOf(me.string),apiOptions:me.object,lazyRefreshToken:me.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:m$,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:LQ*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(u){return function(p){return q.jsx(x2,{children:q.jsx(pH,{children:m=>q.jsx(u,{...p,...m})})})}}return{SessionProvider:u=>q.jsx(x2,{children:q.jsx(s,{...u})}),SessionConsumer:pH,SessionContext:Ih,withSession:l}}let qee="/";window.env&&(qee=window.env.groupPathPrefix||window.env.pathPrefix||"/");function Gee(e,t){return[void 0,null,""].includes(e)?t:e/86400}var Qj,eV,tV;const vrt=Gee((tV=(eV=(Qj=window.blocklet)==null?void 0:Qj.settings)==null?void 0:eV.session)==null?void 0:tV.cacheTtl,Jt.SESSION_CACHE_TTL/86400);var nV,rV,iV;const brt=Gee((iV=(rV=(nV=window.blocklet)==null?void 0:nV.settings)==null?void 0:rV.session)==null?void 0:iV.ttl,Jt.SESSION_TTL/86400),{SessionProvider:Trt,SessionContext:Ert,SessionConsumer:r3t,withSession:i3t}=yrt("login_token","cookie",{returnDomain:!1,path:qee,expireInDays:vrt},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:brt});function zee(){return Z.useContext(Ert)}function Art({children:e}){const t=ez({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return q.jsx(z7,{injectFirst:!0,children:q.jsx(QG,{theme:t,children:q.jsx(hG,{theme:t,children:q.jsx(_x,{translations:wIe,fallbackLocale:"en",children:q.jsx(x2,{children:q.jsx(mI,{theme:t,children:e})})})})})})}const hI=new URL(window.location.href),Wee=hI.searchParams.get("mode")||"",Srt=hI.pathname.includes("embed")&&Wee==="dialog",wrt=hI.pathname.includes("embed")&&Wee!=="dialog";function mI({children:e,theme:t}){var i,a,o;const{locale:n}=Vm(),r=nu`
|
|
493
|
+
`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let i of this.reqs)i.abort();this.readyState=Hs.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,i){let a,o=()=>{this.reqs.delete(a),r()};a=ob.request(e,this.endpointURL(),t,n,this.timeout,o,s=>{this.reqs.delete(a),this.isActive()&&i(s)}),this.reqs.add(a)}},q0=class{constructor(e,t={}){let n=t.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,r=>{let{onJoin:i,onLeave:a,onSync:o}=this.caller;this.joinRef=this.channel.joinRef(),this.state=q0.syncState(this.state,r,i,a),this.pendingDiffs.forEach(s=>{this.state=q0.syncDiff(this.state,s,i,a)}),this.pendingDiffs=[],o()}),this.channel.on(n.diff,r=>{let{onJoin:i,onLeave:a,onSync:o}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(r):(this.state=q0.syncDiff(this.state,r,i,a),o())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return q0.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,n,r){let i=this.clone(e),a={},o={};return this.map(i,(s,l)=>{t[s]||(o[s]=l)}),this.map(t,(s,l)=>{let c=i[s];if(c){let u=l.metas.map(y=>y.phx_ref),d=c.metas.map(y=>y.phx_ref),p=l.metas.filter(y=>d.indexOf(y.phx_ref)<0),m=c.metas.filter(y=>u.indexOf(y.phx_ref)<0);p.length>0&&(a[s]=l,a[s].metas=p),m.length>0&&(o[s]=this.clone(c),o[s].metas=m)}else a[s]=l}),this.syncDiff(i,{joins:a,leaves:o},n,r)}static syncDiff(e,t,n,r){let{joins:i,leaves:a}=this.clone(t);return n||(n=function(){}),r||(r=function(){}),this.map(i,(o,s)=>{let l=e[o];if(e[o]=this.clone(s),l){let c=e[o].metas.map(d=>d.phx_ref),u=l.metas.filter(d=>c.indexOf(d.phx_ref)<0);e[o].metas.unshift(...u)}n(o,l,s)}),this.map(a,(o,s)=>{let l=e[o];if(!l)return;let c=s.metas.map(u=>u.phx_ref);l.metas=l.metas.filter(u=>c.indexOf(u.phx_ref)<0),r(o,l,s),l.metas.length===0&&delete e[o]}),e}static list(e,t){return t||(t=function(n,r){return r}),this.map(e,(n,r)=>t(n,r))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static clone(e){return JSON.parse(JSON.stringify(e))}},G0={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,i,a,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:i,event:a,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:i,payload:a}=e,o=this.META_LENGTH+t.length+n.length+i.length+r.length,s=new ArrayBuffer(this.HEADER_LENGTH+o),l=new DataView(s),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,t.length),l.setUint8(c++,n.length),l.setUint8(c++,i.length),l.setUint8(c++,r.length),Array.from(t,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(n,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(i,d=>l.setUint8(c++,d.charCodeAt(0))),Array.from(r,d=>l.setUint8(c++,d.charCodeAt(0)));var u=new Uint8Array(s.byteLength+a.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(a),s.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,s=n.decode(e.slice(o,o+r));o=o+r;let l=n.decode(e.slice(o,o+i));o=o+i;let c=n.decode(e.slice(o,o+a));o=o+a;let u=e.slice(o,e.byteLength);return{join_ref:s,ref:null,topic:l,event:c,payload:u}},decodeReply(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=t.getUint8(3),o=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(s,s+r));s=s+r;let c=n.decode(e.slice(s,s+i));s=s+i;let u=n.decode(e.slice(s,s+a));s=s+a;let d=n.decode(e.slice(s,s+o));s=s+o;let p=e.slice(s,e.byteLength),m={status:d,response:p};return{join_ref:l,ref:c,topic:u,event:$l.reply,payload:m}},decodeBroadcast(e,t,n){let r=t.getUint8(1),i=t.getUint8(2),a=this.HEADER_LENGTH+2,o=n.decode(e.slice(a,a+r));a=a+r;let s=n.decode(e.slice(a,a+i));a=a+i;let l=e.slice(a,e.byteLength);return{join_ref:null,ref:null,topic:o,event:s,payload:l}}},OXe=class{constructor(t,n={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=n.timeout||kXe,this.transport=n.transport||v1.WebSocket||D3,this.establishedConnections=0,this.defaultEncoder=G0.encode.bind(G0),this.defaultDecoder=G0.decode.bind(G0),this.closeWasClean=!1,this.binaryType=n.binaryType||"arraybuffer",this.connectClock=1,this.transport!==D3?(this.encode=n.encode||this.defaultEncoder,this.decode=n.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;J0&&J0.addEventListener&&(J0.addEventListener("pagehide",i=>{this.conn&&(this.disconnect(),r=this.connectClock)}),J0.addEventListener("pageshow",i=>{r===this.connectClock&&(r=null,this.connect())})),this.heartbeatIntervalMs=n.heartbeatIntervalMs||3e4,this.rejoinAfterMs=i=>n.rejoinAfterMs?n.rejoinAfterMs(i):[1e3,2e3,5e3][i-1]||1e4,this.reconnectAfterMs=i=>n.reconnectAfterMs?n.reconnectAfterMs(i):[10,50,100,150,200,250,500,1e3,2e3][i-1]||5e3,this.logger=n.logger||null,this.longpollerTimeout=n.longpollerTimeout||2e4,this.params=y1(n.params||{}),this.endPoint=`${t}/${oR.websocket}`,this.vsn=n.vsn||IXe,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new $ee(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return D3}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=ob.appendParams(ob.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,n,r){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,n,r)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=y1(t)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=n=>this.onConnError(n),this.conn.onmessage=n=>this.onConnMessage(n),this.conn.onclose=n=>this.onConnClose(n))}log(t,n,r){this.logger(t,n,r)}hasLogger(){return this.logger!==null}onOpen(t){let n=this.makeRef();return this.stateChangeCallbacks.open.push([n,t]),n}onClose(t){let n=this.makeRef();return this.stateChangeCallbacks.close.push([n,t]),n}onError(t){let n=this.makeRef();return this.stateChangeCallbacks.error.push([n,t]),n}onMessage(t){let n=this.makeRef();return this.stateChangeCallbacks.message.push([n,t]),n}ping(t){if(!this.isConnected())return!1;let n=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:n});let i=this.onMessage(a=>{a.ref===n&&(this.off([i]),t(Date.now()-r))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,t])=>t())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),DXe,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,n,r){if(!this.conn)return t&&t();this.waitForBufferDone(()=>{this.conn&&(n?this.conn.close(n,r||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,n=1){if(n===5||!this.conn||!this.conn.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(t,n+1)},150*n)}waitForSocketClosed(t,n=1){if(n===5||!this.conn||this.conn.readyState===Hs.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(t,n+1)},150*n)}onConnClose(t){let n=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&n!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,r])=>r(t))}onConnError(t){this.hasLogger()&&this.log("transport",t);let n=this.transport,r=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,i])=>{i(t,n,r)}),(n===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger($l.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Hs.connecting:return"connecting";case Hs.open:return"open";case Hs.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(n=>n.joinRef()!==t.joinRef())}off(t){for(let n in this.stateChangeCallbacks)this.stateChangeCallbacks[n]=this.stateChangeCallbacks[n].filter(([r])=>t.indexOf(r)===-1)}channel(t,n={}){let r=new Iee(t,n,this);return this.channels.push(r),r}push(t){if(this.hasLogger()){let{topic:n,event:r,payload:i,ref:a,join_ref:o}=t;this.log("push",`${n} ${r} (${o}, ${a})`,i)}this.isConnected()?this.encode(t,n=>this.conn.send(n)):this.sendBuffer.push(()=>this.encode(t,n=>this.conn.send(n)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:i,payload:a,ref:o,join_ref:s}=n;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${a.status||""} ${r} ${i} ${o&&"("+o+")"||""}`,a);for(let l=0;l<this.channels.length;l++){const c=this.channels[l];c.isMember(r,i,a,s)&&c.trigger(i,a,o,s)}for(let l=0;l<this.stateChangeCallbacks.message.length;l++){let[,c]=this.stateChangeCallbacks.message[l];c(n)}})}leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r.isJoined()||r.isJoining()));n&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),n.leave())}},sR={exports:{}},P4,OU;function PXe(){if(OU)return P4;OU=1;var e=1e3,t=e*60,n=t*60,r=n*24,i=r*7,a=r*365.25;P4=function(u,d){d=d||{};var p=typeof u;if(p==="string"&&u.length>0)return o(u);if(p==="number"&&isFinite(u))return d.long?l(u):s(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function o(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var p=parseFloat(d[1]),m=(d[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return p*a;case"weeks":case"week":case"w":return p*i;case"days":case"day":case"d":return p*r;case"hours":case"hour":case"hrs":case"hr":case"h":return p*n;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function s(u){var d=Math.abs(u);return d>=r?Math.round(u/r)+"d":d>=n?Math.round(u/n)+"h":d>=t?Math.round(u/t)+"m":d>=e?Math.round(u/e)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=r?c(u,d,r,"day"):d>=n?c(u,d,n,"hour"):d>=t?c(u,d,t,"minute"):d>=e?c(u,d,e,"second"):u+" ms"}function c(u,d,p,m){var y=d>=p*1.5;return Math.round(u/p)+" "+m+(y?"s":"")}return P4}function MXe(e){n.debug=n,n.default=n,n.coerce=l,n.disable=a,n.enable=i,n.enabled=o,n.humanize=PXe(),n.destroy=c,Object.keys(e).forEach(u=>{n[u]=e[u]}),n.names=[],n.skips=[],n.formatters={};function t(u){let d=0;for(let p=0;p<u.length;p++)d=(d<<5)-d+u.charCodeAt(p),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=t;function n(u){let d,p=null,m,y;function b(..._){if(!b.enabled)return;const S=b,$=Number(new Date),D=$-(d||$);S.diff=D,S.prev=d,S.curr=$,d=$,_[0]=n.coerce(_[0]),typeof _[0]!="string"&&_.unshift("%O");let P=0;_[0]=_[0].replace(/%([a-zA-Z%])/g,(L,F)=>{if(L==="%%")return"%";P++;const G=n.formatters[F];if(typeof G=="function"){const ie=_[P];L=G.call(S,ie),_.splice(P,1),P--}return L}),n.formatArgs.call(S,_),(S.log||n.log).apply(S,_)}return b.namespace=u,b.useColors=n.useColors(),b.color=n.selectColor(u),b.extend=r,b.destroy=n.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(m!==n.namespaces&&(m=n.namespaces,y=n.enabled(u)),y),set:_=>{p=_}}),typeof n.init=="function"&&n.init(b),b}function r(u,d){const p=n(this.namespace+(typeof d>"u"?":":d)+u);return p.log=this.log,p}function i(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];let d;const p=(typeof u=="string"?u:"").split(/[\s,]+/),m=p.length;for(d=0;d<m;d++)p[d]&&(u=p[d].replace(/\*/g,".*?"),u[0]==="-"?n.skips.push(new RegExp("^"+u.slice(1)+"$")):n.names.push(new RegExp("^"+u+"$")))}function a(){const u=[...n.names.map(s),...n.skips.map(s).map(d=>"-"+d)].join(",");return n.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let d,p;for(d=0,p=n.skips.length;d<p;d++)if(n.skips[d].test(u))return!1;for(d=0,p=n.names.length;d<p;d++)if(n.names[d].test(u))return!0;return!1}function s(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var BXe=MXe;(function(e,t){var n={};t.formatArgs=i,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;c.splice(1,0,u,"color: inherit");let d=0,p=0;c[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(d++,m==="%c"&&(p=d))}),c.splice(p,0,u)}t.log=console.debug||console.log||(()=>{});function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function o(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof on<"u"&&"env"in on&&(c=n.DEBUG),c}function s(){try{return localStorage}catch{}}e.exports=BXe(t);const{formatters:l}=e.exports;l.j=function(c){try{return JSON.stringify(c)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(sR,sR.exports);var W$=sR.exports;const NXe=W$;var FXe=(e,t=!1)=>{const n=NXe(["@arcblock/ws",e].join(":"));return{debug:n,warn:n,info:n,trace:t?n:console.error,error:t?n:console.error}};const UXe=FXe;var HXe=(e,t,n)=>class extends e{constructor(i,a={}){super(i,{transport:n,...a}),this._logger=UXe("client",a.silent),this.emitter=new t,this.onOpen(()=>{this._logger.debug("socket open",i)}),this.onClose(()=>{this._logger.debug("socket close",i)}),this.onError(o=>{this._logger.error("socket error",o.error)}),this.onMessage(o=>{this._logger.debug("socket message",o)})}on(i,a,o={}){this.ensureJoinChannel(i,o),this.emitter.on(i,a)}off(i,a){a?this.emitter.off(i,a):this.emitter.removeAllListeners(i),this.ensureLeaveChannel(i)}disconnect(i,a,o){this.emitter.eventNames().forEach(s=>{this.emitter.removeAllListeners(s)}),super.disconnect(i,a,o)}ensureJoinChannel(i,a={}){if(this.emitter.listenerCount(i)>0)return;const s=this.channel(i,a);s.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),s.on(i,({status:l,response:c})=>{l==="ok"?this.emitter.emit(i,c):this._logger.debug("response error",{topic:i,status:l,data:c})})}ensureLeaveChannel(i){if(this.emitter.listenerCount(i)>0)return;const o=this.channels.find(s=>s.topic===i);o&&(this.remove(o),o.leave().receive("ok",s=>{this._logger.debug("leave success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("leave error",{topic:i,err:s})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:i})}),o.off(i))}subscribe(i,a={}){let o=this.channels.find(s=>s.topic===i);return o||(o=this.channel(i,a),o.join().receive("ok",s=>{this._logger.debug("join success",{topic:i,message:s})}).receive("error",s=>{this._logger.error("join error",{topic:i,error:s})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),o)}unsubscribe(i){this.ensureLeaveChannel(i)}};const jXe=w$,{Socket:VXe}=xXe,JXe=HXe;var qXe=JXe(VXe,jXe);const GXe=qXe;var K$={WsClient:GXe};function zXe(e){const t=Z.useRef(e);Z.useEffect(()=>{t.current=e},[e]),Z.useEffect(()=>{const n=r=>{!document.hidden&&t.current&&t.current(r)};return document.addEventListener("visibilitychange",n),()=>{document.removeEventListener("visibilitychange",n)}},[])}function WXe(e){const t=e||window.location.href;return new URL(t).host}function z0(e){const t={},n=e||window.location.href;if(n){const{hostname:r,protocol:i,port:a}=new URL(n);t["x-real-hostname"]=r,t["x-real-port"]=a,t["x-real-protocol"]=i.endsWith(":")?i.substring(0,i.length-1):i}return t}const M4={};function KXe({action:e,prefix:t,checkFn:n,extraParams:r,baseUrl:i}){const a=`${t}/token?${H0(r)}`;return M4[a]||(M4[a]=async function(){var d,p;const s=+new Date,l=await n(a,{headers:z0(i)}),c=+new Date;if(c-s<500&&await kl(500-(c-s)),(d=l==null?void 0:l.data)!=null&&d.token)return l.data;if((p=l==null?void 0:l.data)!=null&&p.error)throw new Error(l.data.error);const u=BT(t)?t:`${i}${t}`;throw new Error(`Error generating ${e} qrcode from: ${u}`)}),M4[a]}const YXe=()=>{try{const t=new URL(window.location.href).searchParams.get("__connect_url__");if(!t)return null;const n=Qze(t);return{token:eWe(n),url:n}}catch(e){return{error:e}}},kee=()=>Wu(globalThis,"blocklet.appPid")||Wu(globalThis,"blocklet.appId")||Wu(globalThis,"env.appId")||"",ZXe=()=>(Wu(globalThis,"env.apiPrefix")||"/").replace(/\/$/,"").replace(OQ,""),B4=e=>`relay:${kee()}:${e}`,XXe=()=>window.location.protocol==="https:"?"wss:":"ws:",PU=e=>!e||new URL(e).origin===window.location.origin,MU=e=>["succeed","error","timeout","busy"].includes(e);function QXe({action:e,checkFn:t,checkInterval:n,checkTimeout:r,extraParams:i,locale:a,prefix:o,tokenKey:s,encKey:l,onError:c,onSuccess:u,baseUrl:d,autoConnect:p=!0,forceConnected:m=!0,saveConnect:y=!0,useSocket:b=!0,provider:_="wallet"}){const S=Si({checking:!1,loading:!1,token:"",url:"",store:null,status:"created",error:"",checkCount:0,mfaCode:0,appInfo:null,memberAppInfo:null,connectedDid:"",saveConnect:!1,inExistingSession:!1,nextWorkflow:"",baseUrl:d,prefix:`${o}/${e}`,extraParams:LU(i,m1),checkFn:t,results:{},action:e,provider:_}),$=Z.useRef(null),D=um[a]||um.en,P=Xt(()=>YXe(),[]),U=Math.ceil(r/n),L=Si({onSuccessCalled:!1,cancelWhenScannedCounter:0,isSocketAvailable:!1}),{encryptKey:F,decrypt:G}=vKe(),ie=ig(),se=Tf(),K=Z.useRef(null),B=Z.useRef(null),E={...S.extraParams,locale:a,[s]:S.token||(P==null?void 0:P.token),provider:S.provider},f=async()=>{if(!(P!=null&&P.token&&(P==null?void 0:P.token)===S.token)){try{E[s]&&S.status==="created"&&await S.checkFn(`${S.prefix}/timeout?${H0(E)}`,{headers:z0(S.baseUrl)})}catch{}try{S.token&&B.current&&(await K.current.unsubscribe(B4(S.token)),B.current=null)}catch{}}},h=Tt((...v)=>{const k={[l]:F,...S.extraParams,locale:a,forceConnected:m,autoConnect:p&&!ie.wallet&&!L.cancelWhenScannedCounter&&["ios","android"].includes(Kr.get("connected_wallet_os")),provider:S.provider};se&&(k.visitorId=se);const ne=kp($.current||{},["sourceAppPid","verbose"]);return Object.keys(ne).forEach(Y=>{(!k[Y]||Y===l&&ne[Y])&&(k[Y]=ne[Y])}),P!=null&&P.token&&!k.sourceToken&&(k.sourceToken=P==null?void 0:P.token),KXe({action:e,prefix:S.prefix,baseUrl:S.baseUrl,checkFn:S.checkFn,extraParams:k})(...v)}),T=Tt(async(v=!0)=>{v&&f();try{S.loading=!0,S.token="",S.url="",S.store=null,S.extraParams=LU(i,m1),await kl();const k=await h(),ne=k.extra||{};S.loading=!1,S.token=k.token,S.url=k.url,S.status="created",S.error="",S.checkCount=0,S.appInfo=k.appInfo,S.memberAppInfo=k.memberAppInfo,S.connectedDid=ne.connectedDid,S.saveConnect=ne.saveConnect}catch(k){S.loading=!1,S.status="error",S.error=`${D.generateError}: ${k.message}`}}),w=()=>{L.cancelWhenScannedCounter++};Z.useEffect(()=>{L.cancelWhenScannedCounter>0&&(i.nw?c(new Error(D.retryForbidden)):T())},[L.cancelWhenScannedCounter]),Z.useEffect(()=>(b&&PU(S.baseUrl)&&kee()?(!K.current||K.current.isConnected()===!1||K.current.baseUrl!==S.baseUrl)&&(K.current=new K$.WsClient(`${XXe()}//${WXe(S.baseUrl)}${ZXe()}${OQ}/relay`,{longpollerTimeout:5e3,heartbeatIntervalMs:30*1e3}),K.current.baseUrl=S.baseUrl,K.current.onOpen(()=>{L.isSocketAvailable=!0}),K.current.connect()):L.isSocketAvailable&&(L.isSocketAvailable=!1),()=>{K.current&&(K.current.disconnect(),K.current=null)}),[S.baseUrl]);const R=()=>!S.token||S.loading||MU(S.status)?null:n,I=Z.useRef(null);Z.useEffect(()=>{I.current={state:S,params:E}}),Z.useEffect(()=>()=>{const{state:v,params:k}=I.current;v.status==="created"&&k[s]&&v.checkFn(`${v.prefix}/timeout?${H0(k)}`,{headers:z0(v.baseUrl)})},[]);const C=async(v=!1)=>{var k;if(S.checking||(S.status==="created"&&S.checkCount++,L.isSocketAvailable&&!v))return null;try{S.checking=!0;const ne=await S.checkFn(`${S.prefix}/status?${H0(E)}`,{headers:z0(S.baseUrl)}),{status:N,error:Y,mfaCode:re=0}=ne.data;if(S.store=ne.data,S.mfaCode=re,S.checking=!1,S.status=N,N==="error"&&Y){const le=new Error(Y);throw le.response=ne,le}return ne.data}catch(ne){const{response:N}=ne;if(N!=null&&N.status){E[s]&&S.checkFn(`${S.prefix}/timeout?${H0(E)}`,{headers:z0(S.baseUrl)});const Y=(k=N==null?void 0:N.data)!=null&&k.error?N.data.error:ne.message,re=new Error(Y);re.code=N.status,S.status="error",S.checking=!1,S.error=Y,c(re,S==null?void 0:S.store,G)}else S.status="error",S.checking=!1,S.error=D.generateError}return null},x=async()=>{try{if(P.error)throw P.error;S.loading=!0,S.token=P.token,S.url=P.url,S.inExistingSession=!0;let v=await C();if((["scanned"].includes(v==null?void 0:v.status)||(v==null?void 0:v.sourceToken)===(P==null?void 0:P.token))&&(await T(!1),v=await C()),$.current=(v==null?void 0:v.extraParams)||null,v!=null&&v.status&&!["created"].includes(v==null?void 0:v.status))throw new Error(`${D.invalidSessionStatus} [${v.status}]`)}catch(v){S.status="error",S.error=v.message,c(v,S==null?void 0:S.store,G)}finally{S.loading=!1}};return Z.useEffect(()=>{var v;if(!S.token&&!S.store&&!S.loading&&!S.error)if(P)x();else{T(!1);return}if(S.status!=="timeout"&&S.checkCount>U){S.status="timeout",f();return}if(S.status==="succeed"&&!L.onSuccessCalled){const k=FQ({...S.store,appInfo:S.appInfo,memberAppInfo:S.memberAppInfo});if(PU(S.baseUrl)&&y&&S.saveConnect&&S.store.did&&g1(k,!0),S.store){const{nextWorkflow:ne}=S.store;if(ne)try{const N=cU(ne,s);S.nextWorkflow=(N==null?void 0:N.nextWorkflow)||ne,Object.assign(S,N),S.store=null,S.error="",S.url="",S.appInfo=null,S.memberAppInfo=null,S.checkCount=0,S.status="scanned",S.results={...S.results,[S.token]:S.store},S.checkFn=eu({baseURL:N.baseUrl,timeout:8e3}).get,C()}catch(N){console.error(`Invalid nextWorkflow: ${ne}`,N),S.status="error",S.error=`Invalid nextWorkflow: ${ne}: ${N.message}`}else if(S.nextWorkflow&&(S.nextWorkflow="",S.url=""),typeof u=="function"){const N=Object.values({...S.results,[S.token]:S.store});L.onSuccessCalled=!0;const Y=N.length>1?N:N[0],re=lp(Y);u(re,G,{sourceAppPid:i==null?void 0:i.sourceAppPid,...k})}}return}if((v=S.store)!=null&&v.nextWorkflow){const{nextWorkflow:k}=S.store;try{const ne=cU(k,s);S.nextWorkflow=(ne==null?void 0:ne.nextWorkflow)||k,Object.assign(S,ne),S.store=null,S.error="",S.url="",S.appInfo=null,S.memberAppInfo=null,S.checkCount=0,S.status="scanned",S.results={...S.results,[S.token]:S.store},S.checkFn=eu({baseURL:ne.baseUrl,timeout:8e3}).get,C()}catch(ne){console.error(`Invalid nextWorkflow: ${k}`,ne),S.status="error",S.error=`Invalid nextWorkflow: ${k}: ${ne.message}`}}}),Z.useEffect(()=>{if(S.token&&L.isSocketAvailable&&K.current){let v=!1;B.current?B.current.token!==S.token&&(K.current.unsubscribe(B4(B.current.token)),v=!0):v=!0,v&&(B.current=K.current.subscribe(B4(S.token)),B.current.token=S.token,B.current.on("updated",({response:k})=>{let{status:ne,error:N}=k;ne==="forbidden"&&(N=D.forbidden,ne="error"),S.status=ne,S.mfaCode=k.mfaCode||0,S.store=k,S.error=N,N&&c(new Error(N),S==null?void 0:S.store,G)}))}},[S.token,L.isSocketAvailable,K.current]),EXe(C,R()),zXe(()=>{L.isSocketAvailable&&S.token&&MU(S.status)===!1&&C(!0)}),{state:S,generate:T,cancelWhenScanned:w}}var Y$={},jE={};Object.defineProperty(jE,"__esModule",{value:!0});jE.default=void 0;var Vc={call:function(t,n,r){var i="";typeof n=="function"&&(r=n,n={});var a={data:n===void 0?null:n};if(typeof r=="function"){var o="dscb"+window.dscb++;window[o]=r,a._dscbstub=o}return a=JSON.stringify(a),window._dsbridge?i=_dsbridge.call(t,a):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(i=prompt("_dsbridge="+t,a)),JSON.parse(i||"{}").data},register:function(t,n,r){var i=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){Vc.call("_dsb.dsinit")},0)),typeof n=="object"?i._obs[t]=n:i[t]=n},registerAsyn:function(t,n){this.register(t,n,!0)},hasNativeMethod:function(t,n){return this.call("_dsb.hasNativeMethod",{name:t,type:n||"all"})},disableJavascriptDialogBlock:function(t){this.call("_dsb.disableJavascriptDialogBlock",{disable:t!==!1})}};(function(){if(!(window._dsbridge||window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)||window._dsf)return;const e=window.close;var t={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:Vc,close:function(){Vc.call("_dsb.closePage"),e()},_handleMessageFromNative:function(i){var a=JSON.parse(i.data),o={id:i.callbackId,complete:!0},s=this._dsf[i.method],l=this._dsaf[i.method],c=function($,D){o.data=$.apply(D,a),Vc.call("_dsb.returnValue",o)},u=function($,D){a.push(function(P,U){o.data=P,o.complete=U!==!1,Vc.call("_dsb.returnValue",o)}),$.apply(D,a)};if(s)c(s,this._dsf);else if(l)u(l,this._dsaf);else{var d=i.method.split(".");if(d.length<2)return;var p=d.pop(),m=d.join("."),y=this._dsf._obs,b=y[m]||{},_=b[p];if(_&&typeof _=="function"){c(_,b);return}if(y=this._dsaf._obs,b=y[m]||{},_=b[p],_&&typeof _=="function"){u(_,b);return}}}};for(var n in t)window[n]=t[n];Vc.register("_hasJavascriptMethod",function(r,i){var a=r.split(".");if(a.length<2)return!!(_dsf[a]||_dsaf[a]);var r=a.pop(),o=a.join("."),s=_dsf._obs[o]||_dsaf._obs[o];return s&&!!s[r]})})();jE.default=Vc;Object.defineProperty(Y$,"__esModule",{value:!0});var VE=Y$.default=void 0,Ds=eQe(jE);function eQe(e){return e&&e.__esModule?e:{default:e}}VE=Y$.default={call(){Ds.default.call(...arguments)},asyncCall(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise((r,i)=>{Ds.default.call(...t,a=>{try{const o=JSON.parse(a);if(o.code===0){const s=JSON.parse(o.data);r(s)}else i(new Error(o.error))}catch{r(a)}})})},shareMessage(e){const{content:t,imgUrl:n,success:r,fail:i}=e;if(!t&&!n){i("params error");return}Ds.default.call("arcShare",JSON.stringify({content:t,imgUrl:n}),a=>{const o=JSON.parse(a);o&&o.code===0?typeof r=="function"&&r(a):typeof i=="function"&&i(a)})},showLoading(){Ds.default.call("arcShowLoading")},hideLoading(){Ds.default.call("arcHideLoading")},showToast(e){e&&typeof e=="string"&&Ds.default.call("arcToast",e)},chooseImgs(e){const{limit:t,success:n,fail:r}=e;Ds.default.call("arcChooseImgs",JSON.stringify({limit:t}),i=>{const a=JSON.parse(i);a&&a.code===0?typeof n=="function"&&n(i):typeof r=="function"&&r(i)})},previewImgs(e){const{imgs:t}=e;!t||t.length===0||Ds.default.call("arcPreviewImgs",JSON.stringify(e))},isSetPWD(e){const{success:t,fail:n}=e;Ds.default.call("arcIsSetPWD","",r=>{const i=JSON.parse(r);i&&i.code===0?typeof t=="function"&&t(r):typeof n=="function"&&n(r)})},isCodeABOk(e){const{success:t,fail:n}=e;Ds.default.call("arcIsCodeABOk","",r=>{const i=JSON.parse(r);i&&i.code===0?typeof t=="function"&&t(r):typeof n=="function"&&n(r)})}};function Z$({tokenState:e,locale:t,tokenKey:n}){const{t:r,isWalletWebview:i,connectState:a}=pl(),o=r(i?"openDidConnect":"openInWallet"),s=Xt(()=>{if(!e.url)return"";const u=new URL(window.location.href);u.searchParams.set("tokenKey",e.token);const d=new URL(e.url);return d.searchParams.set("callback",encodeURIComponent(u)),d.searchParams.set("callback_delay",1500),d.searchParams.set("locale",t),d.href.replace(/^https?:\/\//,"abt://")},[n,e.token]),l=Tt(()=>{VE.call("authAction",{action:"auth",deepLink:s})}),c={};return i||(c.component="a",c.href=s),eg(()=>{a.autoActiveWebview&&s&&(a.autoActiveWebview=!1,l())}),q.jsxs(uu,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",backgroundColor:kt.surfacePrimarySubtitle,textDecoration:"none",color:"inherit"},...c,onClick:i?l:Hn,children:[q.jsxs(Et,{sx:{display:"flex",alignItems:"center",gap:1},children:[q.jsx(qp,{width:"24px",height:"24px"}),q.jsx(or,{sx:{fontSize:"14px",fontWeight:500},children:o})]}),q.jsx(Vn,{icon:NE,fontSize:"1.3rem",color:kt.primaryBase})]})}Z$.propTypes={tokenState:me.object.isRequired,locale:me.string,tokenKey:me.string};Z$.defaultProps={locale:"en",tokenKey:"_t_"};const tQe={width:24,height:24,body:'<path fill="currentColor" d="M12 20q-3.35 0-5.675-2.325T4 12q0-3.35 2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.713T19 4q.425 0 .713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.713-.288T13 10q0-.425.288-.713T14 9h3.2q-.8-1.4-2.188-2.2T12 6Q9.5 6 7.75 7.75T6 12q0 2.5 1.75 4.25T12 18q1.7 0 3.113-.863t2.187-2.312q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20Z"/>'};function Dee({onRefresh:e,...t}){const n=r=>{r.stopPropagation(),e()};return q.jsx(Et,{...t,onClick:n,sx:{position:"absolute",top:0,bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.75)",cursor:"pointer",...t.sx},children:q.jsx(Et,{sx:{backgroundColor:kt.foregroundsFgInteractive,borderRadius:"100%",fontSize:0},children:q.jsx(Vn,{icon:tQe,fontSize:52,style:{transform:"scale(0.7)",color:"white"}})})})}Dee.propTypes={onRefresh:me.func.isRequired};const bv=["scanned","succeed","error","busy"];function X$({onSuccess:e,onError:t,action:n,prefix:r,checkFn:i,checkInterval:a,checkTimeout:o,locale:s,tokenKey:l,encKey:c,baseUrl:u,autoConnect:d,forceConnected:p,saveConnect:m,useSocket:y,allowWallet:b,provider:_,webWalletUrl:S,onRecreateSession:$,onClose:D,messages:P,enabledConnectTypes:U}){var oe,ye,we;if(typeof i!="function")throw new Error("Cannot initialize did connect component without a fetchFn");const L=Z.useContext(Ih),{connectState:F,extraParams:G,staticState:ie,changeStatus:se,isWalletWebview:K,matchSmallScreen:B,t:E}=pl(),f=ig(),h=MT(),{setBaseUrl:T,oauthState:w,getOAuthConfigList:R}=b$(),I=Xt(()=>{var Te;return _||(G==null?void 0:G.provider)||((Te=L==null?void 0:L.session)==null?void 0:Te.provider)||"wallet"},[G==null?void 0:G.provider,(oe=L==null?void 0:L.session)==null?void 0:oe.provider]);Z.useEffect(()=>{T(u)},[u]);const{state:C,generate:x,cancelWhenScanned:v}=QXe({action:n,baseUrl:u,checkFn:i,checkInterval:a,checkTimeout:o,extraParams:G,prefix:r,onError:t,onSuccess:e,locale:s,tokenKey:l,encKey:c,autoConnect:d,forceConnected:p,saveConnect:m,useSocket:y,allowWallet:b,provider:I}),[k,ne]=Z.useState([]);dY(async()=>{const Te=await R({sourceAppPid:F==null?void 0:F.sourceAppPid});ne(Te)},[F==null?void 0:F.sourceAppPid]);const N=mY(F==null?void 0:F.sourceAppPid);Sf(()=>{Ki(N)||x()},[F==null?void 0:F.sourceAppPid]);const Y=Xt(()=>bv.includes(w.status)||bv.includes(C.status),[C.status,w.status]);Z.useEffect(()=>{bv.includes(w.status)?se(w.status):bv.includes(C.status)?se(C.status):se("created")},[se,C.status,w.status]);const re=Tt(()=>{$(),w.reset(),x(!1)}),le=Tt(()=>{$(),ie.current.cancelCount++,v()}),ge=Xt(()=>({confirm:P.confirm,success:P.success,error:C.error||w.error||""}),[P.confirm,P.success,C.error,w.error]),Se=Xt(()=>b&&U.includes("mobile")&&!K,[b,U,K]),j=BQ(S),M=Xt(()=>b&&U.includes("web")&&(j||h)&&(!f.mobile.any||h),[b,U,(ye=f==null?void 0:f.mobile)==null?void 0:ye.any]),z=Xt(()=>b&&U.includes("mobile")&&f.mobile.any&&!h,[b,U,(we=f==null?void 0:f.mobile)==null?void 0:we.any]),W=Xt(()=>{const Te=TYe(Object.keys(Js),U);return k.filter(Ve=>Te.includes(Ve.provider))},[k,U]),ee=Xt(()=>W.length>0&&["login","invite"].includes(C.action),[W]),ve=Xt(()=>{const Te=Se||M||z;let Ve=null;return ee&&(Ve=Te?q.jsxs(q.Fragment,{children:[q.jsx(C2,{sx:{color:kt.textMuted,width:B?"200px":"368px",opacity:.6,maxWidth:"90%",margin:"auto",fontSize:"14px",fontWeight:"bold","&:before, &:after":{borderColor:kt.lineStep}},children:"OR"}),q.jsx(ab,{providerList:W,onSuccess:e,onError:t,tokenState:C,locale:s,type:"list"})]}):q.jsxs(q.Fragment,{children:[q.jsx(or,{variant:"body2",sx:{mt:1,textAlign:"center",color:kt.foregroundsFgSubtile},children:E("loginWithBelow")}),q.jsx(ab,{providerList:W,onSuccess:e,onError:t,tokenState:C,type:"list",locale:s})]})),q.jsxs(q.Fragment,{children:[C.status==="timeout"?q.jsx(Dee,{onRefresh:re,sx:{zIndex:1,animation:"fadeIn 1s","@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}}}}):null,q.jsx(Et,{"data-did-auth-url":C.url,sx:{display:"none"}}),z&&q.jsx(Z$,{tokenState:C,locale:s,tokenKey:l}),Se&&q.jsx(J$,{tokenState:C,messages:P,locale:s}),M&&q.jsx(j$,{tokenState:C,webWalletUrl:S,locale:s}),Ve]})},[C,C.url,C.status,Se,M,z,W,ee,ee,e,t,s,l,P,S]);return Xt(()=>C.loading||w.loading||!C.token&&!C.error,[C.loading,w.loading])?q.jsx($$,{}):Y?q.jsxs(q.Fragment,{children:[q.jsx(Et,{"data-did-auth-url":C.url,sx:{display:"none"}}),q.jsx(UE,{status:w.status||C.status,nextWorkflow:C.nextWorkflow,mfaCode:C.mfaCode,onCancel:le,onRetry:re,onClose:D,messages:ge,locale:s,className:"auth-status"})]}):ve}X$.propTypes={onError:me.func,onSuccess:me.func.isRequired,action:me.string.isRequired,checkFn:me.func.isRequired,prefix:me.string,checkInterval:me.number,checkTimeout:me.number,locale:me.oneOf(["en","zh",""]),tokenKey:me.string,encKey:me.string,baseUrl:me.string,autoConnect:me.bool,forceConnected:me.oneOfType([me.bool,me.string]),saveConnect:me.bool,useSocket:me.bool,allowWallet:me.bool,provider:me.oneOf([Oi.WALLET,...Object.keys(Js),""]),webWalletUrl:me.string,onRecreateSession:me.func,onClose:me.func,messages:me.object,enabledConnectTypes:me.arrayOf(me.oneOf(["web","mobile",...Object.keys(Js)]))};X$.defaultProps={prefix:m$,onError:Hn,checkInterval:2*1e3,checkTimeout:LQ*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",autoConnect:!0,forceConnected:!0,saveConnect:!0,useSocket:!0,allowWallet:!0,provider:"",webWalletUrl:MQ(),onRecreateSession:Hn,onClose:Hn,messages:{},enabledConnectTypes:["web","mobile",...Object.keys(Js)]};var N4=RK,nQe=KW,rQe=q$,iQe=1/0,aQe=N4&&1/rQe(new N4([,-0]))[1]==iQe?function(e){return new N4(e)}:nQe,oQe=aQe,sQe=U$,lQe=hee,uQe=mee,cQe=H$,fQe=oQe,dQe=q$,pQe=200;function hQe(e,t,n){var r=-1,i=lQe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=uQe;else if(a>=pQe){var c=t?null:fQe(e);if(c)return dQe(c);o=!1,i=cQe,l=new sQe}else l=t?[]:s;e:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}var Lee=hQe,mQe=s8,gQe=HE,yQe=Zm,vQe=Lee,BU=Qx,bQe=LK,TQe=yQe(function(e){var t=bQe(e);return BU(t)&&(t=void 0),vQe(mQe(e,1,BU,!0),gQe(t))}),EQe=TQe;const AQe=zt(EQe);var SQe=aK,wQe=Xm;function _Qe(e,t){return e&&SQe(e,t,wQe)}var CQe=_Qe,RQe=Nf;function xQe(e,t){return function(n,r){if(n==null)return n;if(!RQe(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var $Qe=xQe,IQe=CQe,kQe=$Qe,DQe=kQe(IQe),LQe=DQe,OQe=LQe,PQe=Nf;function MQe(e,t){var n=-1,r=PQe(e)?Array(e.length):[];return OQe(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var BQe=MQe;function NQe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var FQe=NQe,NU=Um;function UQe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=NU(e),o=t!==void 0,s=t===null,l=t===t,c=NU(t);if(!s&&!c&&!a&&e>t||a&&o&&l&&!s&&!c||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var HQe=UQe,jQe=HQe;function VQe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=jQe(i[r],a[r]);if(l){if(r>=s)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var JQe=VQe,F4=uh,qQe=jm,GQe=HE,zQe=BQe,WQe=FQe,KQe=Km,YQe=JQe,ZQe=WT,XQe=Ia;function QQe(e,t,n){t.length?t=F4(t,function(a){return XQe(a)?function(o){return qQe(o,a.length===1?a[0]:a)}:a}):t=[ZQe];var r=-1;t=F4(t,KQe(GQe));var i=zQe(e,function(a,o,s){var l=F4(t,function(c){return c(a)});return{criteria:l,index:++r,value:a}});return WQe(i,function(a,o){return YQe(a,o,n)})}var eet=QQe,tet=s8,net=eet,ret=Zm,FU=TK,iet=ret(function(e,t){if(e==null)return[];var n=t.length;return n>1&&FU(e,t[0],t[1])?t=[]:n>2&&FU(t[0],t[1],t[2])&&(t=[t[0]]),net(e,tet(t,1),[])}),aet=iet;const Oee=zt(aet),oet=Cn(fi,"/api/user-session");function Pee({appPid:e,sourceAppPid:t,loginAppPid:n,autoFetch:r=!0,baseUrl:i="/",fetchAll:a=!1}={}){const o=Tf(),s=Xt(()=>eu({baseURL:Cn(i,oet)},{lazy:!0,lazyTime:500}),[i]),l=Tt(async()=>{const{data:b=[]}=await s.get("",{params:{visitorId:o}}),_=al(),S=Ts();if(a&&_&&S){const{data:$}=await s.get(Cn(S.appUrl,fi,"/api/user-session"),{params:{visitorId:o}});return b.concat($||[])}return!_||!S?b.filter($=>{var D;return((D=$==null?void 0:$.user)==null?void 0:D.sourceAppPid)===null}):b}),c=Si({loaded:!1,loadingId:null}),u=xPe(l,{manual:!r,onFinally(){c.loaded=!0},refreshDeps:[i]}),d=async b=>{var S,$,D;const _=KT(b,["userDid","visitorId","passportId"]);try{c.loadingId=b.id;const P=Ts();if(al()&&P&&n!==b.appPid){const{data:L}=await s.post("login",{..._,appPid:n},{baseURL:Cn(P.appUrl,fi,"/api/user-session")});return L}const{data:U}=await s.post("login",{..._,appPid:n});return U}catch(P){const U=P.response?(($=(S=P.response)==null?void 0:S.data)==null?void 0:$.error)||((D=P.response)==null?void 0:D.data):P.message;throw zr.error(U),console.error("Quick login error",P),P}finally{c.loadingId=null}},p=Xt(()=>u.data?u.data.filter(b=>b.status!=="expired"):[],[u.data]),m=Xt(()=>{const b=new Date().getTime(),_=Oee(p,S=>b-new Date(S.updatedAt).getTime());return AQe(_,S=>[S.userDid].join("_"))},[p,t,e]),y=Xt(()=>!!(m&&m.length>0),[m]);return{loadingId:c.loadingId,userSessions:m,quickLoginEnabled:y,loginUserSession:d,loading:u.loading,loaded:u.loaded,refresh:u.refreshAsync}}const set={width:24,height:24,body:'<path fill="currentColor" d="M11.95 18q.525 0 .888-.363t.362-.887q0-.525-.362-.888t-.888-.362q-.525 0-.887.363t-.363.887q0 .525.363.888t.887.362Zm.05 4q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Zm0-2q3.35 0 5.675-2.325T20 12q0-3.35-2.325-5.675T12 4Q8.65 4 6.325 6.325T4 12q0 3.35 2.325 5.675T12 20Zm0-8Zm.1-4.3q.625 0 1.088.4t.462 1q0 .55-.337.975t-.763.8q-.575.5-1.012 1.1t-.438 1.35q0 .35.263.588t.612.237q.375 0 .638-.25t.337-.625q.1-.525.45-.938t.75-.787q.575-.55.988-1.2t.412-1.45q0-1.275-1.038-2.087T12.1 6q-.95 0-1.812.4T8.975 7.625q-.175.3-.113.638t.338.512q.35.2.725.125t.625-.425q.275-.375.688-.575t.862-.2Z"/>'},uet={width:24,height:24,body:'<path fill="currentColor" d="m9.55 18l-5.7-5.7l1.425-1.425L9.55 15.15l9.175-9.175L20.15 7.4L9.55 18Z"/>'};function Q$({appInfo:e,...t}){const[n,r]=Z.useState(!1);if(n||!(e.appUrl||e.appLogo))return q.jsx(Zl,{did:e.appPid,size:32});let i=e.appLogo||"";return BT(i)||(i=Cn(e.appUrl||"",i)),q.jsx(up,{src:i,alt:e.appName||"Blocklet Icon",width:32,height:32,...t,onError:()=>r(!0)})}Q$.propTypes={appInfo:me.object.isRequired};const cet=e=>e?e.split(":").pop():"";function JE({appInfo:e,active:t,appLogo:n}){return q.jsxs(Et,{sx:{display:"flex",alignItems:"center",fontWeight:600,color:kt.textBase,"& .app-info-content":{paddingLeft:"8px",overflow:"hidden"},"& .app-info-name":{maxWidth:"100%",paddingRight:"32px",lineHeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"},"& .app-info-did":{fontSize:0},"& .app-info-did .did-address-text":{color:kt.textMuted,fontSize:"12px"}},children:[n||q.jsx(Et,{sx:{borderRadius:"8px",overflow:"hidden",fontSize:0},children:q.jsx(Q$,{appInfo:e})}),q.jsxs(Et,{className:"app-info-content",children:[q.jsx(Et,{className:"app-info-name",children:e.appName}),e.appPid&&q.jsx(om,{size:12,className:"app-info-did",copyable:!1,color:kt.textMuted,compact:!1,responsive:!1,children:cet(e.appPid)})]}),t?q.jsx(ou,{size:"small",color:"success",children:q.jsx(XCe,{icon:uet,color:"success"})}):null]})}JE.propTypes={appInfo:me.object.isRequired,active:me.bool,appLogo:me.node};JE.defaultProps={active:!1,appLogo:null};function lR({appInfo:e}){const t=Z.useRef(null),n=Si({hoverOnButton:!1,hoverOnPopover:!1}),r=Xt(()=>n.hoverOnButton||n.hoverOnPopover,[n.hoverOnButton,n.hoverOnPopover]);return q.jsxs(q.Fragment,{children:[q.jsx(Et,{component:"span",ref:t,sx:{color:kt.foregroundsFgInteractive,cursor:"help"},onClick:()=>{n.hoverOnButton=!0},onMouseEnter:()=>{n.hoverOnButton=!0},onMouseLeave:()=>{setTimeout(()=>{n.hoverOnButton=!1},200)},children:e.appName}),q.jsx(qW,{open:r,sx:{pointerEvents:"none"},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${kt.gray6}, 0px 0px 0px 1px ${kt.gray6}`,py:1,px:1.5,borderRadius:2,transform:"translateY(-6px) !important"}}},anchorEl:t.current,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{n.open=!1},disableRestoreFocus:!0,children:q.jsx(Et,{component:"span",sx:{pointerEvents:"auto"},onMouseEnter:()=>{n.hoverOnPopover=!0},onMouseLeave:()=>{n.hoverOnPopover=!1},children:q.jsx(JE,{appInfo:e,appLogo:q.jsx(Q$,{appInfo:e})})})})]})}lR.propTypes={appInfo:me.object.isRequired};function UU(){const{appInfoList:e,t,extraParams:n,connectState:r}=pl(),i=Z.useRef(null),a=Si({open:!1});return q.jsxs(q.Fragment,{children:[q.jsx(Et,{component:"span",ref:i,sx:{textTransform:"lowercase",color:kt.foregroundsFgInteractive,cursor:"pointer"},onClick:()=>{a.open=!0},children:t("switch")}),q.jsx(URe,{anchorEl:i.current,open:a.open,onClose:()=>{a.open=!1},slotProps:{paper:{variant:"outlined",sx:{border:0,boxShadow:`0px 4px 8px 0px ${kt.gray6}, 0px 0px 0px 1px ${kt.gray6}`,borderRadius:2}}},children:e.map(o=>q.jsx(R2,{onClick:()=>{a.open=!1,r.sourceAppPid=o.sourceAppPid},children:q.jsx(JE,{appInfo:o,active:o.sourceAppPid===(n==null?void 0:n.sourceAppPid)})},o.appPid))})]})}function eI({locale:e,disableSwitchApp:t}){const{appInfoList:n,extraParams:r,connectState:i,blocklet:a}=pl(),o=Xt(()=>n.find(c=>pp.isUndefined(r==null?void 0:r.sourceAppPid)?!0:pp.isNull(c.sourceAppPid)?c.appPid===(a==null?void 0:a.appPid):c.sourceAppPid===(r==null?void 0:r.sourceAppPid)),[r==null?void 0:r.sourceAppPid,n]),s=!t&&n.length>1;eg(()=>{(a==null?void 0:a.appPid)===(o==null?void 0:o.appPid)?i.sourceAppPid=null:i.sourceAppPid=o==null?void 0:o.appPid});const l=Xt(()=>e==="zh"?q.jsxs(q.Fragment,{children:["您正在使用 ",q.jsx(lR,{appInfo:o,appInfoList:n})," 账户来连接站点",s?q.jsxs(q.Fragment,{children:[",点击",q.jsx(UU,{appInfoList:n})]}):null]}):q.jsxs(q.Fragment,{children:["You're using ",q.jsx(lR,{appInfo:o})," account for site access",s?q.jsxs(q.Fragment,{children:[". Click to ",q.jsx(UU,{appInfoList:n})]}):null]}),[e,o,n,s]);return pp.isEmpty(n)?null:q.jsxs(Et,{sx:{fontSize:"13px",color:kt.foregroundsFgSubtile,lineHeight:1.5},children:[l,s&&q.jsx(Et,{component:"span",sx:{display:"inline-block",ml:.5,fontSize:"13px",height:"16px",lineHeight:1,verticalAlign:"middle"},children:q.jsx(Et,{component:Vn,icon:set,sx:{verticalAlign:"middle"}})})]})}eI.propTypes={locale:me.string,disableSwitchApp:me.bool};eI.defaultProps={locale:"en",disableSwitchApp:!1};var tI={};Object.defineProperty(tI,"__esModule",{value:!0});var Mee=tI.default=void 0;fet(Z);var U4=q;function fet(e){return e&&e.__esModule?e:{default:e}}function HU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HU(Object(n),!0).forEach(function(r){det(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HU(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function det(e,t,n){return t=pet(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pet(e){var t=het(e,"string");return typeof t=="symbol"?t:String(t)}function het(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nI=function(t){return(0,U4.jsxs)("svg",jU(jU({},t),{},{children:[(0,U4.jsx)("path",{d:"M7.366.646L8.46 0h3.981v11.96H8.564a.381.381 0 0 1-.194-.053L4.18 9.431V2.53l.508-.3.893.528-.508.3v5.845L8.7 11.046h2.85V.914h-2.85l-.44.26-.893-.528z",fill:"color(display-p3 .4196 .7412 .9961)"}),(0,U4.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.868 8.903V3.057L4.242.915H1.393v10.132h2.85l.44-.26.893.527-1.095.647H.5V0h3.981l4.28 2.53v6.9l-.506.3-.893-.528.506-.299z",fill:"color(display-p3 .2706 .5961 .9804)"})]}))};nI.defaultProps={xmlns:"http://www.w3.org/2000/svg",width:"13",height:"12",viewBox:"0 0 13 12",fill:"none"};nI.displayName="did-logo-colorful";Mee=tI.default=nI;function met({...e}){return q.jsxs(Et,{...e,sx:{display:"flex",alignItems:"center",color:kt.foregroundsFgMuted,gap:.5,...e.sx},children:[q.jsx(Mee,{}),"Powered By",q.jsx(Et,{component:"a",href:"https://www.didconnect.io/",target:"_blank",rel:"noopener",sx:{color:kt.foregroundsFgInteractive,textDecoration:"none","&:hover":{textDecoration:"underline"}},children:"DID Connect"})]})}function rI({children:e,initHeight:t,slotProps:n}){var s;const[r,i]=Z.useState(t),a=Z.useRef(null),o=tg(a);return Z.useEffect(()=>{o!=null&&o.height&&i(o.height)},[o==null?void 0:o.height,r]),q.jsx(Et,{...n==null?void 0:n.root,sx:{height:r,overflow:"hidden",transition:"height 0.2s ease-in-out",...(s=n==null?void 0:n.root)==null?void 0:s.sx},children:q.jsx(Et,{...n==null?void 0:n.container,ref:a,children:e})})}rI.propTypes={initHeight:me.number,children:me.node.isRequired,slotProps:me.object};rI.defaultProps={initHeight:0,slotProps:{}};const Tv="did-connect",VU="quick-connect";function iI({mode:e,isFullScreen:t,hideCloseButton:n,...r}){var h;const i=Si({showTab:Tv}),{connectState:a,blocklet:o,appInfoList:s,extraParams:l}=pl(),{extraContent:c,onSuccess:u,action:d,onClose:p,options:m}=r,y=Xt(()=>s.find(T=>Ki(l==null?void 0:l.sourceAppPid)?!0:yU(T.sourceAppPid)?T.appPid===(o==null?void 0:o.appPid):T.sourceAppPid===(l==null?void 0:l.sourceAppPid)),[l==null?void 0:l.sourceAppPid,s]),b=Xt(()=>yU(a==null?void 0:a.sourceAppPid)?y==null?void 0:y.appPid:(a==null?void 0:a.sourceAppPid)||gZ(),[a==null?void 0:a.sourceAppPid]),{quickLoginEnabled:_,loading:S,userSessions:$,loginUserSession:D,refresh:P}=Pee({appPid:b,loginAppPid:o==null?void 0:o.appPid,sourceAppPid:a==null?void 0:a.sourceAppPid,autoFetch:["login"].includes(d),baseUrl:(y==null?void 0:y.appUrl)||""}),U=Xt(()=>{var T;return((T=r==null?void 0:r.messages)==null?void 0:T.title)||Kze},[(h=r==null?void 0:r.messages)==null?void 0:h.title]),L=Xt(()=>{if(d==="login"){const T=Ts(o),w=al(o);return l!=null&&l.forceConnected?$.filter(R=>R.userDid===(l==null?void 0:l.forceConnected)):!w||!T?$.filter(R=>{var I;return((I=R==null?void 0:R.user)==null?void 0:I.sourceAppPid)===null}):$.filter(R=>{var I;return b===o.appPid?((I=R.user)==null?void 0:I.sourceAppPid)===(l==null?void 0:l.sourceAppPid):!0})}return $},[l==null?void 0:l.forceConnected,d,$]),F=Tt(async(...T)=>{var C,x,v;const w=await D(...T),[R]=T,I={};R&&((C=R==null?void 0:R.user)!=null&&C.did&&(I.connected_did=R.user.did),(x=R==null?void 0:R.user)!=null&&x.pk&&(I.connected_pk=R.user.pk),(v=R==null?void 0:R.extra)!=null&&v.walletOS&&(I.connected_wallet_os=R.extra.walletOS),R!=null&&R.appPid&&(I.connected_app=R.appPid)),await u({...w,encrypted:!1},k=>k,I)});Z.useEffect(()=>{(m==null?void 0:m.showQuickConnect)!==!1&&!S&&_&&(i.showTab=VU)},[S,_,m==null?void 0:m.showQuickConnect]);const G=LPe(S,{wait:100}),ie=Tt(()=>{i.showTab=Tv}),se=Tt(()=>{i.showTab=VU}),K=Xt(()=>L.length===0?!0:i.showTab===Tv||!_,[i.showTab,_]),B=Xt(()=>{let T=!0;return(S||G)&&(T=!1),_||(T=!1),m.showQuickConnect===!1&&(T=!1),i.showTab!==Tv&&(T=!1),T},[_,i.showTab,S,G]),E=Xt(()=>q.jsx(Et,{onClick:p,sx:{fontSize:"1.5rem",width:"1.5rem",height:"1.5rem",cursor:"pointer",color:kt.foregroundsFgSubtile,transition:"transform 0.2s ease-in-out","&:hover":{transform:"rotate(90deg)"}},children:q.jsx(Vn,{icon:see})}),[p]);let f=null;return S||G?f=q.jsx($$,{}):K?f=q.jsx(X$,{...r,onClose:p}):f=q.jsx(F$,{userSessions:L,onLogin:F,onRetry:P,onClose:p,messages:r.messages,onLoginAnother:ie}),q.jsxs(d6e,{variant:"outlined",sx:{color:kt.foregroundsFgBase,backgroundColor:"white",borderRadius:2,borderColor:kt.strokeBorderBase,height:"100%",display:"flex",flexDirection:"column"},children:[q.jsx(O6e,{title:q.jsxs(q.Fragment,{children:[B&&q.jsx(ou,{size:"small",disabled:a.status!=="created",onClick:se,disableRipple:!0,sx:{fontSize:"0.75em"},children:q.jsx(Vn,{icon:KWe,color:kt.textMuted})}),U]}),titleTypographyProps:{display:"flex",alignItems:"center",variant:"h6",lineHeight:"28px",fontWeight:600},action:n?null:E,sx:{px:2.5,".MuiCardHeader-action":{margin:0,alignSelf:"center"}}}),q.jsx(w6e,{sx:{borderTop:`1px solid ${kt.strokeBorderBase}`,borderBottom:`1px solid ${kt.strokeBorderBase}`,flex:1,verticalAlign:"middle",overflow:"auto",p:2.5,position:"relative","&::after":{content:'""',height:"100%",verticalAlign:"middle",display:"inline-block",width:0}},children:q.jsxs(rI,{slotProps:{root:{sx:{display:"inline-block",width:"100%",verticalAlign:"middle"}},container:{sx:{display:"flex",flexDirection:"column",gap:1}}},children:[q.jsx(eI,{locale:r.locale,disableSwitchApp:r.disableSwitchApp}),f,c?q.jsx(Et,{children:c}):null]})}),q.jsx(v6e,{sx:{py:2,px:2.5,justifyContent:"center"},children:q.jsx(met,{sx:{fontSize:"12px"}})})]})}iI.propTypes={action:me.string.isRequired,onSuccess:me.func,onClose:me.func,messages:me.object,extraContent:me.any,disableSwitchApp:me.bool,mode:me.oneOf(["fullScreen","dialog","normal"]),isFullScreen:me.bool,options:me.object,hideCloseButton:me.bool,locale:me.string};iI.defaultProps={onSuccess:Hn,onClose:Hn,mode:"normal",isFullScreen:!1,extraContent:null,disableSwitchApp:!1,messages:{},options:{},hideCloseButton:!0,locale:"en"};function aI(e){const{checkFn:t,extraParams:n,blocklet:r,action:i,locale:a}=e;if(typeof t!="function")throw new Error("Cannot initialize did connect component without a fetchFn");return q.jsx(I$,{blocklet:r,action:i,locale:a,extraParams:n,sx:{position:"relative",width:"100%",height:"100%",lineHeight:1.2,fontFamily:"Inter",color:"#334660","&, & *, & *:before, & *:after":{boxSizing:"border-box"}},children:q.jsx(iI,{...e})})}aI.propTypes={checkFn:me.func.isRequired,extraParams:me.object,blocklet:me.object.isRequired,action:me.string.isRequired,locale:me.string};aI.defaultProps={extraParams:{},locale:"en"};const get=hKe(XWe(yKe(aI))),yet=Z.forwardRef((e,t)=>{const{api:n}=Z.useContext(Ih),r={containerEl:null,popup:!0,checkFn:(n==null?void 0:n.get)||Hn,messages:{title:"DID Connect",scan:"Scan QR code to complete this action",confirm:"Confirm on your DID Wallet",success:"Success!"}},i=Si({show:!1,...lp(r)}),[a,o]=Z.useState({}),s=Tt(()=>{const d=lp(r);Object.keys(d).forEach(p=>{i[p]=d[p]})}),l=Tt(()=>{i.show=!1,s()}),c=Tt(d=>{const{containerEl:p,checkFn:m,popup:y,messages:b,..._}=lp(d);typeof m=="function"&&(i.checkFn=m),y!==void 0&&(i.popup=y),b!==void 0&&(i.messages=b),p!==void 0&&(i.containerEl=p),o(_),i.show=!0});Z.useImperativeHandle(t,()=>({open:c,close:l}),[c,l]);const u=q.jsx(get,{open:!0,popup:i.popup,messages:i.messages,checkFn:i.checkFn,...a});return i.containerEl?_m.createPortal(u,i.containerEl):i.show&&u});function vet(){const e=Z.useRef(null),t=Xt(()=>new WWe({concurrency:1})),n=Tt((...s)=>{var l;(l=e.current)==null||l.close(...s)}),r=Tt(({onSuccess:s,onClose:l,onEnd:c,...u},...d)=>{const p=()=>new Promise(m=>{typeof s=="function"?u.onSuccess=(...y)=>{s(...y),setTimeout(()=>{n(),m()},2e3)}:u.onSuccess=()=>{setTimeout(()=>{n(),m()},2e3)},typeof l=="function"?u.onClose=(...y)=>{l(...y),n(),m(),t.clear()}:u.onClose=()=>{n(),m(),t.clear()},setTimeout(()=>{var y;(y=e.current)==null||y.open(u,...d)})});t.add(p)}),i=Tt((s={},{baseUrl:l,locale:c="en",blocklet:u=globalThis==null?void 0:globalThis.blocklet}={})=>new Promise((d,p)=>{const m=()=>new Promise(y=>{(async()=>{var L;if(Ki(l)){const F=al(),G=Ts();l=F?G.appUrl:window.location.origin}const{onSuccess:_,onClose:S,onError:$,...D}=s;if(!((L=D==null?void 0:D.extraParams)!=null&&L.provider))throw Nu($)&&$("Must have extraParams.provider"),new Error("Must have extraParams.provider");D!=null&&D.prefix||(D.prefix=window.location.origin+Cn(u==null?void 0:u.prefix,m$));const P=new URLSearchParams;P.set("params",btoa(encodeURIComponent(JSON.stringify(D)))),P.set("appPid",u==null?void 0:u.appPid),P.set("locale",c);const U=jQ(Cn(l||"/",fi,`/connect?${P.toString()}`));try{const F=await VQ({popup:U,closeTimeout:2e3});g1({connected_app:dp(),...F==null?void 0:F.options},!0),Nu(_)?(_({...F.response,encrypted:!1}),n(),y()):(n(),y()),d({...F.response,encrypted:!1})}catch(F){throw F.message==="Popup closed"?Nu(S)?(S(),y(),t.clear()):(y(),t.clear()):Nu($)&&$(F),F}})().catch(_=>{y(),p(_)})});t.add(m)})),a=Xt(()=>q.jsx(yet,{ref:e})),o=Xt(()=>({open:r,close:n,openPopup:i,queue:t}));return{connectHolder:a,connectApi:o}}const Gr={LOGIN:Symbol("login"),CANCEL_LOGIN:Symbol("cancelLogin"),LOGOUT:Symbol("logout"),SWITCH_PROFILE:Symbol("switchProfile"),CANCEL_SWITCH_PROFILE:Symbol("cancelSwitchProfile"),SWITCH_PASSPORT:Symbol("switchPassport"),CANCEL_SWITCH_PASSPORT:Symbol("cancelSwitchPassport"),BIND_WALLET:Symbol("bindWallet"),CANCEL_BIND_WALLET:Symbol("cancelBindWallet"),CONNECT_TO_DID_SPACE_FOR_FULL_ACCESS:Symbol("connectToDidSpaceForFullAccess")},Dc={login:{en:{title:"Connect DID Wallet",scan:"Scan following qrcode to connect your DID Wallet",confirm:"Confirm connection in your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包",scan:"请使用 DID 钱包扫码下面的二维码完成连接",confirm:"在 DID 钱包中确认连接",success:"连接成功"}},"switch-specified-did":{en:{title:"Switch DID",scan:"You need switch DID to {did} to complete the following actions",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"你需要切换账号至 {did} 才能完成后续的操作",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-did":{en:{title:"Switch DID",scan:"Scan following qrcode to switch account",confirm:"Confirm switch in your DID Wallet",success:"Successfully switched"},zh:{title:"切换账号",scan:"请使用 DID 钱包扫码下面的二维码完成切换",confirm:"在 DID 钱包中确认切换",success:"切换成功"}},"switch-profile":{en:{title:"Switch Profile",scan:"Scan following qrcode with DID Wallet to switch profile",confirm:"Select profile in your DID Wallet",success:"Profile updated"},zh:{title:"切换个人信息",scan:"请使用 DID 钱包扫码下面的二维码来切换个人信息",confirm:"在 DID 钱包中选择个人信息",success:"个人信息已经更新"}},"switch-passport":{en:{title:"Switch Passport",scan:"Scan following qrcode with DID Wallet to switch passport",confirm:"Select passport in your DID Wallet",success:"Passport and session updated"},zh:{title:"切换通行证",scan:"请使用 DID 钱包扫码二维码来切换通行证",confirm:"在 DID 钱包中选择通行证",success:"通行证和会话已经更新"}},"connect-to-did-spaces-for-user":{en:{title:"Please authorize the application to connect to your DID Space",scan:"Please use your DID wallet to scan the QR code for authorization",confirm:"Select the DID Spaces NFT in your DID wallet",success:"Connection successful"},zh:{title:"请授权应用连接你的 DID Space",scan:"请使用 DID 钱包扫码二维码来完成授权",confirm:"在 DID 钱包中选择 DID Spaces NFT",success:"连接成功"}},"bind-wallet":{en:{title:"Connect DID Wallet for enhanced security",scan:"Scan following qrcode with DID Wallet to connect your DID Wallet",success:"Successfully connected"},zh:{title:"连接 DID 钱包获得更高的安全性",scan:"请使用 DID 钱包扫码二维码来连接您的 DID 钱包",success:"连接成功"}},exchangePassport:{en:{action:"Exchange Passport with NFT",tooltip:"Exchange passport if you owns any required NFT"},zh:{action:"兑换通行证",tooltip:"通过出示你持有的特定 NFT 来获取通行证"}},lostPassport:{en:{action:"Lost Passport"},zh:{action:"找回通行证"}},switchAccountDialog:{en:{confirm:"Switch",title:"Switch Account",description:"Please switch accounts to complete next action",currentAccount:"Current account",nextAccount:"Account to be switched"},zh:{confirm:"切换",title:"切换账号",description:"请切换账号来完成后续的操作",currentAccount:"当前登录的账户",nextAccount:"即将切换的账户"}}};var uR={exports:{}};const bet="2.0.0",Bee=256,Tet=Number.MAX_SAFE_INTEGER||9007199254740991,Eet=16,Aet=Bee-6,wet=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var qE={MAX_LENGTH:Bee,MAX_SAFE_COMPONENT_LENGTH:Eet,MAX_SAFE_BUILD_LENGTH:Aet,MAX_SAFE_INTEGER:Tet,RELEASE_TYPES:wet,SEMVER_SPEC_VERSION:bet,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},H4={};const _et=typeof on=="object"&&H4&&H4.NODE_DEBUG&&/\bsemver\b/i.test(H4.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var GE=_et;(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=qE,a=GE;t=e.exports={};const o=t.re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[d,r]],m=b=>{for(const[_,S]of p)b=b.split(`${_}*`).join(`${_}{0,${S}}`).split(`${_}+`).join(`${_}{1,${S}}`);return b},y=(b,_,S)=>{const $=m(_),D=u++;a(b,D,_),c[b]=D,l[D]=_,o[D]=new RegExp(_,S?"g":void 0),s[D]=new RegExp($,S?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),y("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),y("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${d}+`),y("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),y("FULL",`^${l[c.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),y("LOOSE",`^${l[c.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),y("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),y("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?(?:${l[c.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",l[c.COERCE],!0),y("COERCERTLFULL",l[c.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(uR,uR.exports);var mg=uR.exports;const Cet=Object.freeze({loose:!0}),Ret=Object.freeze({}),xet=e=>e?typeof e!="object"?Cet:e:Ret;var oI=xet;const JU=/^[0-9]+$/,Nee=(e,t)=>{const n=JU.test(e),r=JU.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1},$et=(e,t)=>Nee(t,e);var Fee={compareIdentifiers:Nee,rcompareIdentifiers:$et};const Ev=GE,{MAX_LENGTH:qU,MAX_SAFE_INTEGER:Av}=qE,{safeRe:GU,t:zU}=mg,Iet=oI,{compareIdentifiers:bd}=Fee;let ket=class Os{constructor(t,n){if(n=Iet(n),t instanceof Os){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>qU)throw new TypeError(`version is longer than ${qU} characters`);Ev("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?GU[zU.LOOSE]:GU[zU.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Av||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Av||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Av||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const a=+i;if(a>=0&&a<Av)return a}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Ev("SemVer.compare",this.version,this.options,t),!(t instanceof Os)){if(typeof t=="string"&&t===this.version)return 0;t=new Os(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof Os||(t=new Os(t,this.options)),bd(this.major,t.major)||bd(this.minor,t.minor)||bd(this.patch,t.patch)}comparePre(t){if(t instanceof Os||(t=new Os(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],i=t.prerelease[n];if(Ev("prerelease compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return bd(r,i)}while(++n)}compareBuild(t){t instanceof Os||(t=new Os(t,this.options));let n=0;do{const r=this.build[n],i=t.build[n];if(Ev("build compare",n,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return bd(r,i)}while(++n)}inc(t,n,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,r),this.inc("pre",n,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,r),this.inc("pre",n,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const i=Number(r)?1:0;if(!n&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let a=[n,i];r===!1&&(a=[n]),bd(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var pa=ket;const WU=pa,Det=(e,t,n=!1)=>{if(e instanceof WU)return e;try{return new WU(e,t)}catch(r){if(!n)return null;throw r}};var kh=Det;const Let=kh,Oet=(e,t)=>{const n=Let(e,t);return n?n.version:null};var Pet=Oet;const Met=kh,Bet=(e,t)=>{const n=Met(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};var Net=Bet;const KU=pa,Fet=(e,t,n,r,i)=>{typeof n=="string"&&(i=r,r=n,n=void 0);try{return new KU(e instanceof KU?e.version:e,n).inc(t,r,i).version}catch{return null}};var Uet=Fet;const YU=kh,Het=(e,t)=>{const n=YU(e,null,!0),r=YU(t,null,!0),i=n.compare(r);if(i===0)return null;const a=i>0,o=a?n:r,s=a?r:n,l=!!o.prerelease.length;if(!!s.prerelease.length&&!l)return!s.patch&&!s.minor?"major":o.patch?"patch":o.minor?"minor":"major";const u=l?"pre":"";return n.major!==r.major?u+"major":n.minor!==r.minor?u+"minor":n.patch!==r.patch?u+"patch":"prerelease"};var jet=Het;const Vet=pa,Jet=(e,t)=>new Vet(e,t).major;var qet=Jet;const Get=pa,zet=(e,t)=>new Get(e,t).minor;var Wet=zet;const Ket=pa,Yet=(e,t)=>new Ket(e,t).patch;var Zet=Yet;const Xet=kh,Qet=(e,t)=>{const n=Xet(e,t);return n&&n.prerelease.length?n.prerelease:null};var ett=Qet;const ZU=pa,ttt=(e,t,n)=>new ZU(e,n).compare(new ZU(t,n));var _s=ttt;const ntt=_s,rtt=(e,t,n)=>ntt(t,e,n);var itt=rtt;const att=_s,ott=(e,t)=>att(e,t,!0);var stt=ott;const XU=pa,ltt=(e,t,n)=>{const r=new XU(e,n),i=new XU(t,n);return r.compare(i)||r.compareBuild(i)};var sI=ltt;const utt=sI,ctt=(e,t)=>e.sort((n,r)=>utt(n,r,t));var ftt=ctt;const dtt=sI,ptt=(e,t)=>e.sort((n,r)=>dtt(r,n,t));var htt=ptt;const mtt=_s,gtt=(e,t,n)=>mtt(e,t,n)>0;var zE=gtt;const ytt=_s,vtt=(e,t,n)=>ytt(e,t,n)<0;var lI=vtt;const btt=_s,Ttt=(e,t,n)=>btt(e,t,n)===0;var Uee=Ttt;const Ett=_s,Att=(e,t,n)=>Ett(e,t,n)!==0;var Hee=Att;const Stt=_s,wtt=(e,t,n)=>Stt(e,t,n)>=0;var uI=wtt;const _tt=_s,Ctt=(e,t,n)=>_tt(e,t,n)<=0;var cI=Ctt;const Rtt=Uee,xtt=Hee,$tt=zE,Itt=uI,ktt=lI,Dtt=cI,Ltt=(e,t,n,r)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return Rtt(e,n,r);case"!=":return xtt(e,n,r);case">":return $tt(e,n,r);case">=":return Itt(e,n,r);case"<":return ktt(e,n,r);case"<=":return Dtt(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};var jee=Ltt;const Ott=pa,Ptt=kh,{safeRe:Sv,t:wv}=mg,Mtt=(e,t)=>{if(e instanceof Ott)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?Sv[wv.COERCEFULL]:Sv[wv.COERCE]);else{const l=t.includePrerelease?Sv[wv.COERCERTLFULL]:Sv[wv.COERCERTL];let c;for(;(c=l.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||c.index+c[0].length!==n.index+n[0].length)&&(n=c),l.lastIndex=c.index+c[1].length+c[2].length;l.lastIndex=-1}if(n===null)return null;const r=n[2],i=n[3]||"0",a=n[4]||"0",o=t.includePrerelease&&n[5]?`-${n[5]}`:"",s=t.includePrerelease&&n[6]?`+${n[6]}`:"";return Ptt(`${r}.${i}.${a}${o}${s}`,t)};var Btt=Mtt;class Ntt{constructor(){this.max=1e3,this.map=new Map}get(t){const n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){const i=this.map.keys().next().value;this.delete(i)}this.map.set(t,n)}return this}}var Ftt=Ntt,j4,QU;function Cs(){if(QU)return j4;QU=1;class e{constructor(f,h){if(h=r(h),f instanceof e)return f.loose===!!h.loose&&f.includePrerelease===!!h.includePrerelease?f:new e(f.raw,h);if(f instanceof i)return this.raw=f.value,this.set=[[f]],this.format(),this;if(this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease,this.raw=f.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(T=>this.parseRange(T.trim())).filter(T=>T.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const T=this.set[0];if(this.set=this.set.filter(w=>!y(w[0])),this.set.length===0)this.set=[T];else if(this.set.length>1){for(const w of this.set)if(w.length===1&&b(w[0])){this.set=[w];break}}}this.format()}format(){return this.range=this.set.map(f=>f.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(f){const T=((this.options.includePrerelease&&p)|(this.options.loose&&m))+":"+f,w=n.get(T);if(w)return w;const R=this.options.loose,I=R?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];f=f.replace(I,K(this.options.includePrerelease)),a("hyphen replace",f),f=f.replace(s[l.COMPARATORTRIM],c),a("comparator trim",f),f=f.replace(s[l.TILDETRIM],u),a("tilde trim",f),f=f.replace(s[l.CARETTRIM],d),a("caret trim",f);let C=f.split(" ").map(ne=>S(ne,this.options)).join(" ").split(/\s+/).map(ne=>se(ne,this.options));R&&(C=C.filter(ne=>(a("loose invalid filter",ne,this.options),!!ne.match(s[l.COMPARATORLOOSE])))),a("range list",C);const x=new Map,v=C.map(ne=>new i(ne,this.options));for(const ne of v){if(y(ne))return[ne];x.set(ne.value,ne)}x.size>1&&x.has("")&&x.delete("");const k=[...x.values()];return n.set(T,k),k}intersects(f,h){if(!(f instanceof e))throw new TypeError("a Range is required");return this.set.some(T=>_(T,h)&&f.set.some(w=>_(w,h)&&T.every(R=>w.every(I=>R.intersects(I,h)))))}test(f){if(!f)return!1;if(typeof f=="string")try{f=new o(f,this.options)}catch{return!1}for(let h=0;h<this.set.length;h++)if(B(this.set[h],f,this.options))return!0;return!1}}j4=e;const t=Ftt,n=new t,r=oI,i=WE(),a=GE,o=pa,{safeRe:s,t:l,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=mg,{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:m}=qE,y=E=>E.value==="<0.0.0-0",b=E=>E.value==="",_=(E,f)=>{let h=!0;const T=E.slice();let w=T.pop();for(;h&&T.length;)h=T.every(R=>w.intersects(R,f)),w=T.pop();return h},S=(E,f)=>(a("comp",E,f),E=U(E,f),a("caret",E),E=D(E,f),a("tildes",E),E=F(E,f),a("xrange",E),E=ie(E,f),a("stars",E),E),$=E=>!E||E.toLowerCase()==="x"||E==="*",D=(E,f)=>E.trim().split(/\s+/).map(h=>P(h,f)).join(" "),P=(E,f)=>{const h=f.loose?s[l.TILDELOOSE]:s[l.TILDE];return E.replace(h,(T,w,R,I,C)=>{a("tilde",E,T,w,R,I,C);let x;return $(w)?x="":$(R)?x=`>=${w}.0.0 <${+w+1}.0.0-0`:$(I)?x=`>=${w}.${R}.0 <${w}.${+R+1}.0-0`:C?(a("replaceTilde pr",C),x=`>=${w}.${R}.${I}-${C} <${w}.${+R+1}.0-0`):x=`>=${w}.${R}.${I} <${w}.${+R+1}.0-0`,a("tilde return",x),x})},U=(E,f)=>E.trim().split(/\s+/).map(h=>L(h,f)).join(" "),L=(E,f)=>{a("caret",E,f);const h=f.loose?s[l.CARETLOOSE]:s[l.CARET],T=f.includePrerelease?"-0":"";return E.replace(h,(w,R,I,C,x)=>{a("caret",E,w,R,I,C,x);let v;return $(R)?v="":$(I)?v=`>=${R}.0.0${T} <${+R+1}.0.0-0`:$(C)?R==="0"?v=`>=${R}.${I}.0${T} <${R}.${+I+1}.0-0`:v=`>=${R}.${I}.0${T} <${+R+1}.0.0-0`:x?(a("replaceCaret pr",x),R==="0"?I==="0"?v=`>=${R}.${I}.${C}-${x} <${R}.${I}.${+C+1}-0`:v=`>=${R}.${I}.${C}-${x} <${R}.${+I+1}.0-0`:v=`>=${R}.${I}.${C}-${x} <${+R+1}.0.0-0`):(a("no pr"),R==="0"?I==="0"?v=`>=${R}.${I}.${C}${T} <${R}.${I}.${+C+1}-0`:v=`>=${R}.${I}.${C}${T} <${R}.${+I+1}.0-0`:v=`>=${R}.${I}.${C} <${+R+1}.0.0-0`),a("caret return",v),v})},F=(E,f)=>(a("replaceXRanges",E,f),E.split(/\s+/).map(h=>G(h,f)).join(" ")),G=(E,f)=>{E=E.trim();const h=f.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return E.replace(h,(T,w,R,I,C,x)=>{a("xRange",E,T,w,R,I,C,x);const v=$(R),k=v||$(I),ne=k||$(C),N=ne;return w==="="&&N&&(w=""),x=f.includePrerelease?"-0":"",v?w===">"||w==="<"?T="<0.0.0-0":T="*":w&&N?(k&&(I=0),C=0,w===">"?(w=">=",k?(R=+R+1,I=0,C=0):(I=+I+1,C=0)):w==="<="&&(w="<",k?R=+R+1:I=+I+1),w==="<"&&(x="-0"),T=`${w+R}.${I}.${C}${x}`):k?T=`>=${R}.0.0${x} <${+R+1}.0.0-0`:ne&&(T=`>=${R}.${I}.0${x} <${R}.${+I+1}.0-0`),a("xRange return",T),T})},ie=(E,f)=>(a("replaceStars",E,f),E.trim().replace(s[l.STAR],"")),se=(E,f)=>(a("replaceGTE0",E,f),E.trim().replace(s[f.includePrerelease?l.GTE0PRE:l.GTE0],"")),K=E=>(f,h,T,w,R,I,C,x,v,k,ne,N)=>($(T)?h="":$(w)?h=`>=${T}.0.0${E?"-0":""}`:$(R)?h=`>=${T}.${w}.0${E?"-0":""}`:I?h=`>=${h}`:h=`>=${h}${E?"-0":""}`,$(v)?x="":$(k)?x=`<${+v+1}.0.0-0`:$(ne)?x=`<${v}.${+k+1}.0-0`:N?x=`<=${v}.${k}.${ne}-${N}`:E?x=`<${v}.${k}.${+ne+1}-0`:x=`<=${x}`,`${h} ${x}`.trim()),B=(E,f,h)=>{for(let T=0;T<E.length;T++)if(!E[T].test(f))return!1;if(f.prerelease.length&&!h.includePrerelease){for(let T=0;T<E.length;T++)if(a(E[T].semver),E[T].semver!==i.ANY&&E[T].semver.prerelease.length>0){const w=E[T].semver;if(w.major===f.major&&w.minor===f.minor&&w.patch===f.patch)return!0}return!1}return!0};return j4}var V4,eH;function WE(){if(eH)return V4;eH=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(u,d){if(d=n(d),u instanceof t){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),o("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===e?this.value="":this.value=this.operator+this.semver.version,o("comp",this)}parse(u){const d=this.options.loose?r[i.COMPARATORLOOSE]:r[i.COMPARATOR],p=u.match(d);if(!p)throw new TypeError(`Invalid comparator: ${u}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new s(p[2],this.options.loose):this.semver=e}toString(){return this.value}test(u){if(o("Comparator.test",u,this.options.loose),this.semver===e||u===e)return!0;if(typeof u=="string")try{u=new s(u,this.options)}catch{return!1}return a(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,d).test(u.semver):(d=n(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||a(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||a(this.semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}V4=t;const n=oI,{safeRe:r,t:i}=mg,a=jee,o=GE,s=pa,l=Cs();return V4}const Utt=Cs(),Htt=(e,t,n)=>{try{t=new Utt(t,n)}catch{return!1}return t.test(e)};var KE=Htt;const jtt=Cs(),Vtt=(e,t)=>new jtt(e,t).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));var Jtt=Vtt;const qtt=pa,Gtt=Cs(),ztt=(e,t,n)=>{let r=null,i=null,a=null;try{a=new Gtt(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new qtt(r,n))}),r};var Wtt=ztt;const Ktt=pa,Ytt=Cs(),Ztt=(e,t,n)=>{let r=null,i=null,a=null;try{a=new Ytt(t,n)}catch{return null}return e.forEach(o=>{a.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new Ktt(r,n))}),r};var Xtt=Ztt;const J4=pa,Qtt=Cs(),tH=zE,ent=(e,t)=>{e=new Qtt(e,t);let n=new J4("0.0.0");if(e.test(n)||(n=new J4("0.0.0-0"),e.test(n)))return n;n=null;for(let r=0;r<e.set.length;++r){const i=e.set[r];let a=null;i.forEach(o=>{const s=new J4(o.semver.version);switch(o.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!a||tH(s,a))&&(a=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),a&&(!n||tH(n,a))&&(n=a)}return n&&e.test(n)?n:null};var tnt=ent;const nnt=Cs(),rnt=(e,t)=>{try{return new nnt(e,t).range||"*"}catch{return null}};var int=rnt;const ant=pa,Vee=WE(),{ANY:ont}=Vee,snt=Cs(),lnt=KE,nH=zE,rH=lI,unt=cI,cnt=uI,fnt=(e,t,n,r)=>{e=new ant(e,r),t=new snt(t,r);let i,a,o,s,l;switch(n){case">":i=nH,a=unt,o=rH,s=">",l=">=";break;case"<":i=rH,a=cnt,o=nH,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lnt(e,t,r))return!1;for(let c=0;c<t.set.length;++c){const u=t.set[c];let d=null,p=null;if(u.forEach(m=>{m.semver===ont&&(m=new Vee(">=0.0.0")),d=d||m,p=p||m,i(m.semver,d.semver,r)?d=m:o(m.semver,p.semver,r)&&(p=m)}),d.operator===s||d.operator===l||(!p.operator||p.operator===s)&&a(e,p.semver))return!1;if(p.operator===l&&o(e,p.semver))return!1}return!0};var fI=fnt;const dnt=fI,pnt=(e,t,n)=>dnt(e,t,">",n);var hnt=pnt;const mnt=fI,gnt=(e,t,n)=>mnt(e,t,"<",n);var ynt=gnt;const iH=Cs(),vnt=(e,t,n)=>(e=new iH(e,n),t=new iH(t,n),e.intersects(t,n));var bnt=vnt;const Tnt=KE,Ent=_s;var Ant=(e,t,n)=>{const r=[];let i=null,a=null;const o=e.sort((u,d)=>Ent(u,d,n));for(const u of o)Tnt(u,t,n)?(a=u,i||(i=u)):(a&&r.push([i,a]),a=null,i=null);i&&r.push([i,null]);const s=[];for(const[u,d]of r)u===d?s.push(u):!d&&u===o[0]?s.push("*"):d?u===o[0]?s.push(`<=${d}`):s.push(`${u} - ${d}`):s.push(`>=${u}`);const l=s.join(" || "),c=typeof t.raw=="string"?t.raw:String(t);return l.length<c.length?l:t};const aH=Cs(),dI=WE(),{ANY:q4}=dI,D0=KE,pI=_s,Snt=(e,t,n={})=>{if(e===t)return!0;e=new aH(e,n),t=new aH(t,n);let r=!1;e:for(const i of e.set){for(const a of t.set){const o=_nt(i,a,n);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},wnt=[new dI(">=0.0.0-0")],oH=[new dI(">=0.0.0")],_nt=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===q4){if(t.length===1&&t[0].semver===q4)return!0;n.includePrerelease?e=wnt:e=oH}if(t.length===1&&t[0].semver===q4){if(n.includePrerelease)return!0;t=oH}const r=new Set;let i,a;for(const m of e)m.operator===">"||m.operator===">="?i=sH(i,m,n):m.operator==="<"||m.operator==="<="?a=lH(a,m,n):r.add(m.semver);if(r.size>1)return null;let o;if(i&&a){if(o=pI(i.semver,a.semver,n),o>0)return null;if(o===0&&(i.operator!==">="||a.operator!=="<="))return null}for(const m of r){if(i&&!D0(m,String(i),n)||a&&!D0(m,String(a),n))return null;for(const y of t)if(!D0(m,String(y),n))return!1;return!0}let s,l,c,u,d=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1;d&&d.prerelease.length===1&&a.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const m of t){if(u=u||m.operator===">"||m.operator===">=",c=c||m.operator==="<"||m.operator==="<=",i){if(p&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===p.major&&m.semver.minor===p.minor&&m.semver.patch===p.patch&&(p=!1),m.operator===">"||m.operator===">="){if(s=sH(i,m,n),s===m&&s!==i)return!1}else if(i.operator===">="&&!D0(i.semver,String(m),n))return!1}if(a){if(d&&m.semver.prerelease&&m.semver.prerelease.length&&m.semver.major===d.major&&m.semver.minor===d.minor&&m.semver.patch===d.patch&&(d=!1),m.operator==="<"||m.operator==="<="){if(l=lH(a,m,n),l===m&&l!==a)return!1}else if(a.operator==="<="&&!D0(a.semver,String(m),n))return!1}if(!m.operator&&(a||i)&&o!==0)return!1}return!(i&&c&&!a&&o!==0||a&&u&&!i&&o!==0||p||d)},sH=(e,t,n)=>{if(!e)return t;const r=pI(e.semver,t.semver,n);return r>0?e:r<0||t.operator===">"&&e.operator===">="?t:e},lH=(e,t,n)=>{if(!e)return t;const r=pI(e.semver,t.semver,n);return r<0?e:r>0||t.operator==="<"&&e.operator==="<="?t:e};var Cnt=Snt;const G4=mg,uH=qE,Rnt=pa,cH=Fee,xnt=kh,$nt=Pet,Int=Net,knt=Uet,Dnt=jet,Lnt=qet,Ont=Wet,Pnt=Zet,Mnt=ett,Bnt=_s,Nnt=itt,Fnt=stt,Unt=sI,Hnt=ftt,jnt=htt,Vnt=zE,Jnt=lI,qnt=Uee,Gnt=Hee,znt=uI,Wnt=cI,Knt=jee,Ynt=Btt,Znt=WE(),Xnt=Cs(),Qnt=KE,ert=Jtt,trt=Wtt,nrt=Xtt,rrt=tnt,irt=int,art=fI,ort=hnt,srt=ynt,lrt=bnt,urt=Ant,crt=Cnt;var Jee={parse:xnt,valid:$nt,clean:Int,inc:knt,diff:Dnt,major:Lnt,minor:Ont,patch:Pnt,prerelease:Mnt,compare:Bnt,rcompare:Nnt,compareLoose:Fnt,compareBuild:Unt,sort:Hnt,rsort:jnt,gt:Vnt,lt:Jnt,eq:qnt,neq:Gnt,gte:znt,lte:Wnt,cmp:Knt,coerce:Ynt,Comparator:Znt,Range:Xnt,satisfies:Qnt,toComparators:ert,maxSatisfying:trt,minSatisfying:nrt,minVersion:rrt,validRange:irt,outside:art,gtr:ort,ltr:srt,intersects:lrt,simplifyRange:urt,subset:crt,SemVer:Rnt,re:G4.re,src:G4.src,tokens:G4.t,SEMVER_SPEC_VERSION:uH.SEMVER_SPEC_VERSION,RELEASE_TYPES:uH.RELEASE_TYPES,compareIdentifiers:cH.compareIdentifiers,rcompareIdentifiers:cH.rcompareIdentifiers};const fH=zt(Jee),frt=[`${fi}/connect`,`${fi}/login`,`${fi}/invite`,`${fi}/issue-passport`,`${fi}/oauth/*`],drt=frt.map(e=>ree(e,[]));async function prt(){const e=(window==null?void 0:window.blocklet)||{},t=window.location.pathname,{componentId:n,CHAIN_TYPE:r="arcblock",appPid:i}=e;if(drt.some(s=>s.exec(t)))return null;const o=GQ();try{const s=`${window.location.origin}${fi}/api/user/loginByWallet`;return await VE.asyncCall("arcLogin",{target:s,chainType:r,appPid:i,componentId:n,apps:o.map(c=>{let u=c==null?void 0:c.appLogo;return BT(u)||(u=Cn(c.appUrl,u)),{appName:c.appName,appPid:c.appPid,appUrl:c.appUrl,appLogo:u,sourceAppPid:c.sourceAppPid}})})}catch(s){return console.error(s),null}}async function hrt(){return await VE.asyncCall("arcGetVisitorId")}function mrt({platform:e,version:t}={}){return!!(e==="ios"&&t&&fH.gte(t,"4.15.6")||e==="android"&&t&&fH.gte(t,"4.15.1"))}async function dH(e){var i;if((i=e==null?void 0:e.didSpace)!=null&&i.endpoint||!window.blocklet||window.self!==window.top)return!1;const t=T$(e);if(y$(t))return!1;const{componentMountPoints:n}=window.blocklet,[,r]=window.blocklet.componentId.split("/");return n.some(a=>{var o;return((o=a==null?void 0:a.capabilities)==null?void 0:o.didSpace)==="requiredOnConnect"&&r===a.did})}const{Provider:grt,Consumer:pH}=Ih,hH={en:"DID Connect timeout, please reopen DID Connect popup",zh:"DID Connect 超时, 请重新打开 DID Connect"},mH={en:"DID Connect is already opened, please wait for it to complete",zh:"DID Connect 已打开,请等待完成"};function yrt(e=zze,t="ls",n={},r={}){var c;let i="/";(c=globalThis==null?void 0:globalThis.blocklet)!=null&&c.prefix&&(i=globalThis.blocklet.prefix),typeof r=="boolean"&&(r={appendAuthServicePrefix:r,extraParams:{}}),w9e(r,{rolling:!0,appendAuthServicePrefix:!1,extraParams:{},refreshTokenStorageKey:Wze});const a=DB(e,t,n),o=DB(r.refreshTokenStorageKey,"ls");function s(u){var _e,$e;const{connectApi:d,connectHolder:p}=vet(),m=ig(),y=Si({extraParams:{},options:{},currentLocale:u.locale,allowWallet:void 0,openMode:"window",get autoConnect(){return typeof u.autoConnect=="boolean"?u.autoConnect:!!u.autoLogin},get prefix(){return r.appendAuthServicePrefix||u.appendAuthServicePrefix?Cn(fi,u.prefix):u.prefix}}),b=Si({action:u.action,error:"",initialized:!1,loading:!1,open:!1,user:null,provider:"",walletOS:"",baseUrl:""}),_=Xt(()=>u.locale||y.currentLocale||HQ(),[u.locale,y.currentLocale]),{confirmApi:S,confirmHolder:$}=iNe(),D=Tt(()=>{if(b.open){const Je=mH[_]||mH.en;throw zr.warning(Je),new Error(Je)}}),P=Xt(()=>new C9e,[]),U=Tt((Je,Be,Ne)=>{const st={login:[Gr.LOGIN,Gr.CANCEL_LOGIN],"bind-wallet":[Gr.BIND_WALLET,Gr.CANCEL_BIND_WALLET],"switch-passport":[Gr.SWITCH_PASSPORT,Gr.CANCEL_SWITCH_PASSPORT],"switch-profile":[Gr.SWITCH_PROFILE,Gr.CANCEL_SWITCH_PROFILE],"switch-did":[Gr.LOGIN,Gr.CANCEL_LOGIN]};if(!Object.keys(st).includes(Je))return;const Ye=async(...lt)=>{Nu(Be)&&await Be(...lt),P.emit(Je,...lt)};P.once(st[Je][0],Ye),P.once(st[Je][1],async(...lt)=>{Nu(Ye)&&P.off(st[Je][0],Ye),Nu(Ne)&&await Ne(...lt),P.emit(`cancel-${Je}`,...lt)})}),L=mY(b.initialized,(Je,Be)=>Je!==Be||Je===!0&&Be===!0),{handleRefreshUser:F,handleRefreshToken:G,renewToken:ie,clearSession:se,handleLoginResult:K,decrypt:B,service:E,getSessionToken:f,getRefreshToken:h,setRefreshToken:T,setSessionToken:w}=$We({state:b,pageState:y,sessionTokenStorage:a,refreshTokenStorage:o,serviceHost:u.serviceHost,apiOptions:u.apiOptions,lazyRefreshToken:u.lazyRefreshToken}),R=Tt((Je,Be={},Ne={})=>{D();const st=Je;typeof st=="object"&&(Je=st.onSuccess,Be=st.extraParams||{},Ne=st.options||{},Ne.origin=st.origin||""),(!b.user||Ne.origin==="switch-did")&&(Ne.origin==="switch-did"?U("switch-did",Je,st==null?void 0:st.onCancel):U("login",Je,st==null?void 0:st.onCancel),y.extraParams=Be,y.options=Ne,b.action="login",Fe())}),I=Tt(async(Je,Be={},Ne={})=>{var De;D();const st=Je;typeof st=="object"&&(Je=st.onSuccess,Be=st.extraParams||{},Ne=st.options||{});const{params:Ye}=await fU();if(Ki(Be==null?void 0:Be.forceConnected)&&(Ye!=null&&Ye.forceConnected)&&(Be.forceConnected=Ye.forceConnected,Ki(Ne.showQuickConnect)&&(Ne.showQuickConnect=!1)),Ki(Be==null?void 0:Be.sourceAppPid)&&!Ki(Ye==null?void 0:Ye.sourceAppPid)&&(Be.sourceAppPid=Ye.sourceAppPid),(Be==null?void 0:Be.openMode)==="redirect"){const it=(Be==null?void 0:Be.redirect)||"/",tt=new URL(`${fi}/login`,window.location.origin);tt.searchParams.set("redirect",it),Be!=null&&Be.forceConnected&&tt.searchParams.set("forceConnected",Be==null?void 0:Be.forceConnected),Ki(Be==null?void 0:Be.sourceAppPid)||tt.searchParams.set("sourceAppPid",Be==null?void 0:Be.sourceAppPid),Ne!=null&&Ne.origin&&tt.searchParams.set("origin",Ne.origin),window.location.href=tt.href;return}let lt=Be==null?void 0:Be.sourceAppPid;Ki(lt)&&Ve&&(lt=Ke.appPid),await $9e(()=>b.initialized),typeof Ne=="string"&&(Ne={origin:Ne});const Oe=lp(Be);y.allowWallet=void 0;const xe=(Oe==null?void 0:Oe.openMode)||((De=u==null?void 0:u.extraParams)==null?void 0:De.openMode);Ki(xe)?y.openMode="window":y.openMode=xe,lt?b.baseUrl=globalThis.blocklet.appUrl:b.baseUrl="",R(Je,Oe,Ne)}),C=Tf(),x=Tt(async Je=>{const Be=Cn(fi,"/api/user/logout");await fetch(Be,{method:"POST",body:JSON.stringify({visitorId:C}),headers:{"Content-Type":"application/json"}}),se(),Ae(),b.user=null,b.provider="",b.walletOS="",b.error="",b.loading=!1,P.emit("logout"),typeof Je=="function"&&Je()}),{userSessions:v,refresh:k,loaded:ne,loginUserSession:N}=Pee({appPid:gZ(b.user),loginAppPid:(_e=globalThis==null?void 0:globalThis.blocklet)==null?void 0:_e.appPid,sourceAppPid:($e=b==null?void 0:b.user)==null?void 0:$e.sourceAppPid,autoFetch:!1,fetchAll:!0}),Y=Tt(async()=>{b!=null&&b.user||await new Promise(Je=>{I(()=>{Je()})})}),re=Tt((Je,Be={},Ne={})=>{D();const st=Je;typeof st=="object"&&(Je=st.onSuccess,Be=st.extraParams||{},Ne=st.options||{}),typeof Ne=="string"&&(Ne={origin:Ne}),Ne!=null&&Ne.userSession?N(Ne.userSession).then(Ye=>{g1({connected_did:Ne.userSession.user.did,connected_pk:Ne.userSession.user.pk,connected_wallet_os:Ne.userSession.extra.walletOS,connected_app:dp()},!0),U("switch-did",Je),K({...Ye,encrypted:!1}),F(!0).then(async()=>{await kl(),P.emit(Gr.LOGIN,Ye,B,J.current),await z()})}):(Ki(Be==null?void 0:Be.forceConnected)&&(Be.forceConnected=!1),I(Je,Be,{...Ne,origin:"switch-did"}))}),le=Tt(async()=>{await new YZ().user.refreshProfile()}),ge=Tt(async(Je,Be={})=>{await Y(),D();const Ne=Je;typeof Ne=="object"&&(Je=Ne.onSuccess,Be=Ne.extraParams||{}),U("switch-profile",Je,Ne==null?void 0:Ne.onCancel),y.extraParams=Be,y.options={},b.action="switch-profile",Fe()}),Se=Tt(async(Je,Be={})=>{await Y(),D();const Ne=Je;typeof Ne=="object"&&(Je=Ne.onSuccess,Be=Ne.extraParams||{}),U("switch-passport",Je,Ne==null?void 0:Ne.onCancel),y.extraParams=Be,y.options={},b.action="switch-passport",Fe()}),j=Tt(async({extraParams:Je={},onSuccess:Be=()=>{},...Ne}={})=>{await Y(),D(),y.extraParams={referrer:window.location.href,purpose:"authorize-for-import",...Je},y.options={},b.action="connect-to-did-spaces-for-user",Fe({hideCloseButton:!0,onSuccess:Be,...Ne})}),M=Tt(async({extraParams:Je={},onSuccess:Be={}}={})=>{await Y(),j({extraParams:{purpose:"authorize-for-import",...Je},onSuccess:Be,hideCloseButton:!1})}),z=Tt(async({extraParams:Je={},onSuccess:Be={}}={})=>{await Y(),await dH(b==null?void 0:b.user)&&j({extraParams:{purpose:"authorize-for-full-access",...Je},onSuccess:Be})}),W=Tt(async(Je,Be={})=>{if(await Y(),T$(b.user)){Je({},B,J.current);return}D();const Ne=Je;typeof Ne=="object"&&(Je=Ne.onSuccess),U("bind-wallet",Je,Ne==null?void 0:Ne.onCancel),y.extraParams=Be,y.options={},b.action="bind-wallet",Fe()}),ee=Tt(Je=>{y.extraParams={},y.options={},K(Je),b.loading=!1,F(!0).then(async()=>{await kl(),b.action==="login"?(P.emit(Gr.LOGIN,Je,B,J.current),await z()):b.action==="switch-passport"&&P.emit(Gr.SWITCH_PASSPORT,Je,B,J.current)})}),ve=Tt(Je=>{y.extraParams={},y.options={},K(Je),b.loading=!1,F(!0).then(async()=>{await kl(),P.emit(Gr.BIND_WALLET,Je,B,J.current)})}),he=Tt(()=>{F(!0),P.emit(Gr.CONNECT_TO_DID_SPACE_FOR_FULL_ACCESS)}),oe=Tt(Je=>{y.extraParams={},y.options={},b.loading=!1,F(!0).then(async()=>{await kl(),P.emit(Gr.SWITCH_PROFILE,Je,B,J.current)})}),ye=Tt(Je=>{y.extraParams={},y.options={},Ae();const Be={login:Gr.CANCEL_LOGIN,"switch-profile":Gr.CANCEL_SWITCH_PROFILE,"switch-passport":Gr.CANCEL_SWITCH_PASSPORT,"bind-wallet":Gr.CANCEL_BIND_WALLET};P.emit(Be[Je])}),we=Tt((Je,...Be)=>{try{Ce[Je](...Be)}catch(Ne){console.error("Catch error in onSuccess",{action:Je,args:Be,err:Ne})}}),{federatedMaster:Te,federatedEnabled:Ve,master:Ke}=_We({locale:_,decrypt:B,login:R,logout:x,handleLoginResult:K,handleRefreshUser:F,setRefreshToken:T,setSessionToken:w}),{checkMatch:je}=UWe({protectedRoutes:u.protectedRoutes||[]}),Ge=Lp(v),pe=Tt(async()=>(ne||(await k(),await kl()),Ge.current)),Ae=Tt(()=>{b.open=!1,d.close()}),Fe=async(Je={})=>{var Oe,xe,De,it,tt,nt,wt;let Be=b.action;((Oe=y==null?void 0:y.options)==null?void 0:Oe.origin)==="switch-did"&&(Be=(xe=y==null?void 0:y.options)==null?void 0:xe.origin);const Ne=Dc[Be],st=Ne[_]||Ne.en,Ye={...r.extraParams,...u.extraParams,...y.extraParams,previousUserDid:(De=b==null?void 0:b.user)==null?void 0:De.did,email:(it=b==null?void 0:b.user)==null?void 0:it.email};if(Be==="switch-did"&&(Ye!=null&&Ye.forceConnected)){const et=(ze,Dt={})=>dc(Dc["switch-specified-did"],ze,_,"en",Dt);st.title=et("title"),st.scan=et("scan",{did:Ye.forceConnected}),st.confirm=et("confirm"),st.success=et("success")}Ye==null||delete Ye.openMode;const lt={action:b.action,locale:_,hideCloseButton:Je==null?void 0:Je.hideCloseButton,extraParams:Ye,options:{...u.options||{},...y.options},checkTimeout:u.timeout,webWalletUrl:u.webWalletUrl,messages:st,useSocket:u.useSocket,...kp(u,["action","locale","serviceHost","appendAuthServicePrefix","autoDisconnect","children","timeout","extraParams","options","webWalletUrl","messages","useSocket","lazyRefreshToken","apiOptions","protectedRoutes"]),...KT(y.extraParams||{},["autoConnect","forceConnected","saveConnect","useSocket"]),prefix:y.prefix,allowWallet:Ki(y.allowWallet)?b.action!=="login"||(((tt=globalThis.blocklet)==null?void 0:tt.DID_CONNECT_ALLOW_WALLET)||"1")==="1":y.allowWallet,onSuccess:async(...et)=>{we(b.action,...et),Nu(Je==null?void 0:Je.onSuccess)&&await Je.onSuccess(...et),b.open=!1},onClose(...et){ye(b.action,...et)},onError(et){console.error(et)}};if(b.open=!0,["login"].includes(b.action)&&y.openMode==="window"&&!m.wallet)try{const et={...lt,baseUrl:window.location.origin};BT(y.prefix)||(et.prefix=Cn(window.location.origin,u.serviceHost==="/"?"":u.serviceHost,y.prefix)),(nt=et.extraParams)!=null&&nt.provider||(et.extraParams.provider=((wt=b==null?void 0:b.user)==null?void 0:wt.provider)||"wallet"),await d.openPopup(et,{locale:_})}catch(et){et instanceof PQ&&Ae(),et.message==="Timeout"?zr.error(hH[_]||hH.en):console.error(et)}else d.open(lt)},Re=Tt(async()=>{const{params:Je,url:Be}=await fU();if(Je){const{switchBehavior:Ne,forceConnected:st,sourceAppPid:Ye,showClose:lt}=Je;st===b.user.did?window.history.replaceState(null,"trim",Be):Ne==="required"?re(()=>{},{openMode:"redirect",redirect:Be,sourceAppPid:Ye,forceConnected:st}):Ne==="disabled"?window.history.replaceState(null,"trim",Be):S.open({title:Dc.switchAccountDialog[_].title,content:q.jsxs(q.Fragment,{children:[q.jsx(or,{variant:"body1",sx:{textAlign:"center",mb:2},children:Dc.switchAccountDialog[_].description}),q.jsxs(Et,{sx:{display:"flex",alignItems:"center",color:kt.foregroundsFgBase},children:[q.jsxs(Et,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1},children:[q.jsx(Zl,{did:b.user.did,shape:"circle",variant:"circle",size:80}),q.jsx(Bp,{did:b.user.did,showAvatar:!1,compact:!0,responsive:!1}),Dc.switchAccountDialog[_].currentAccount]}),q.jsx(Et,{sx:{display:"flex",justifyContent:"center",px:2},children:q.jsx(Et,{component:Vn,icon:KBe,fontSize:24,color:kt.foregroundsFgMuted,sx:{animation:"right 2.5s linear infinite","@keyframes right":{"0%":{transform:"translateX(-3px)",opacity:0},"60%":{transform:"translateX(3px)",opacity:1},"100%":{transform:"translateX(0px)",opacity:0}}}})}),q.jsxs(Et,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,lineHeight:1,fontWeight:500},children:[q.jsx(Zl,{did:st,shape:"circle",variant:"circle",size:80}),q.jsx(Bp,{did:st,showAvatar:!1,compact:!0,responsive:!1}),Dc.switchAccountDialog[_].nextAccount]})]})]}),showCloseButton:lt,showCancelButton:!1,confirmButtonText:Dc.switchAccountDialog[_].confirm,async onConfirm(Oe){const De=(await pe()).find(it=>it.userDid===st);if(De){N(De).then(it=>{g1({connected_did:De.user.did,connected_pk:De.user.pk,connected_wallet_os:De.extra.walletOS,connected_app:dp()},!0),K({...it,encrypted:!1}),F(!0).then(async()=>{await kl(),P.emit(Gr.LOGIN,it,B,J.current),await z()})}),Oe();return}re(()=>{Oe(),window.location.replace(Be)},{sourceAppPid:Ye,forceConnected:st,enableSwitchApp:!1},{showQuickConnect:!0})}})}}),te=Tt(async(Je,Be)=>{const Ne=Object.assign({login:!0,bindWallet:!0,bindDidSpaces:!1},Be==null?void 0:Be.requirements),st=(Be==null?void 0:Be.openMode)||"popup";Ne.login&&await Y(),Ne.bindWallet&&await new Promise(Ye=>{W(()=>{Ye()})}),Ne.bindDidSpaces&&(await dH(b==null?void 0:b.user)||await new Promise(Ye=>{Ne.bindDidSpaces==="full"?z({onSuccess(){Ye()}}):Ne.bindDidSpaces==="read"&&M({onSuccess(){Ye()}})})),st==="window"?d.openPopup(Je,Be):st==="popup"&&d.open(Je)}),V={...b,loading:y.autoConnect&&!b.user||b.loading,openDidConnect:te,login:I,logout:x,switchDid:re,autoSwitchDid:Re,refreshProfile:le,switchProfile:ge,switchPassport:Se,connectToDidSpaceForImport:M,connectToDidSpaceForFullAccess:z,bindWallet:W,refresh:F,updateConnectedInfo:g1,federatedMaster:Te,useOAuth:b$,OAuthProvider:eb,OAuthConsumer:bWe,OAuthContext:v$,useDid:YQ,WrapDid:ZQ,getUserSessions:pe},J=Lp(V),ce={api:E,events:P,storage:a,connectApi:d,session:J.current},Ce={login:ee,"switch-profile":oe,"switch-passport":ee,"bind-wallet":ve,"connect-to-did-spaces-for-user":he};return Sf(()=>{if(b.initialized){const Je=!L;P.emit("change",{user:lp(b.user),isFirst:Je})}},[b.user,b.initialized,P]),Sf(()=>{b.initialized&&b.user&&Re()},[b.initialized]),eg(async()=>{const Je=Kr.get("connected_app"),Be=dp();if(u.autoDisconnect&&Je&&Be&&Je!==Be){se(),b.initialized=!0,y.autoConnect?Fe():Ae();return}const Ne=f();let st="web";if(m.mobile.apple.device?st="ios":m.mobile.android.device&&(st="android"),(window==null?void 0:window.self)===(window==null?void 0:window.parent)&&m.wallet&&mrt({version:m.walletVersion,platform:st})){if(!C){const lt=await hrt();aW(lt)}if(!Ne)try{b.loading=!0;const lt=await prt();if(lt){b.initialized=!0,ee({sessionToken:lt.sessionToken,refreshToken:lt.refreshToken,encrypted:!1});return}}finally{b.loading=!1}}if(Ne){await F(!0),b.initialized=!0,await z();return}if(typeof window<"u"){const lt=new URL(window.location.href),Oe=lt.searchParams.get("loginToken");if(Oe){K({loginToken:Oe,encrypted:!1}),lt.searchParams.delete("loginToken"),window.history.replaceState({},window.title,lt.href);return}}if(h()){await G(!0),b.initialized=!0;return}try{}catch(lt){console.error("Federated: tryAutoLogin failed",lt)}finally{b.initialized=!0}y.autoConnect?Fe():Ae()}),je()&&!b.initialized?q.jsx(Cp,{children:q.jsx(Fm,{})}):q.jsx(grt,{value:ce,children:q.jsxs(eb,{locale:_,onSwitchPassport:({sessionToken:Je,refreshToken:Be})=>{ee({sessionToken:Je,refreshToken:Be,encrypted:!1})},onUnbindOAuth:()=>{F()},onBindOAuth:()=>{F()},children:[!b.open&&typeof u.children=="function"?u.children(b):u.children,p,$,r.rolling&&q.jsx(JQ,{callback:()=>ie()})]})})}s.propTypes={children:me.any.isRequired,serviceHost:me.string,action:me.string,prefix:me.string,appendAuthServicePrefix:me.bool,locale:me.string,timeout:me.number,autoConnect:me.bool,autoDisconnect:me.bool,useSocket:me.bool,extraParams:me.object,options:me.object,webWalletUrl:me.string,protectedRoutes:me.arrayOf(me.string),apiOptions:me.object,lazyRefreshToken:me.bool},s.defaultProps={serviceHost:i,locale:"",action:"login",prefix:m$,appendAuthServicePrefix:!1,extraParams:{},options:{},autoConnect:!1,autoDisconnect:!0,useSocket:!0,timeout:LQ*1e3,webWalletUrl:"",protectedRoutes:["*"],apiOptions:{},lazyRefreshToken:!1};function l(u){return function(p){return q.jsx(x2,{children:q.jsx(pH,{children:m=>q.jsx(u,{...p,...m})})})}}return{SessionProvider:u=>q.jsx(x2,{children:q.jsx(s,{...u})}),SessionConsumer:pH,SessionContext:Ih,withSession:l}}let qee="/";window.env&&(qee=window.env.groupPathPrefix||window.env.pathPrefix||"/");function Gee(e,t){return[void 0,null,""].includes(e)?t:e/86400}var Qj,eV,tV;const vrt=Gee((tV=(eV=(Qj=window.blocklet)==null?void 0:Qj.settings)==null?void 0:eV.session)==null?void 0:tV.cacheTtl,Jt.SESSION_CACHE_TTL/86400);var nV,rV,iV;const brt=Gee((iV=(rV=(nV=window.blocklet)==null?void 0:nV.settings)==null?void 0:rV.session)==null?void 0:iV.ttl,Jt.SESSION_TTL/86400),{SessionProvider:Trt,SessionContext:Ert,SessionConsumer:r3t,withSession:i3t}=yrt("login_token","cookie",{returnDomain:!1,path:qee,expireInDays:vrt},{refreshTokenStorageKey:"refresh_token",refreshTokenExpireInDays:brt});function zee(){return Z.useContext(Ert)}function Art({children:e}){const t=ez({typography:{fontSize:14,button:{textTransform:"none"}},palette:{primary:{main:"#1DC1C7",contrastText:"#fff"}}});return q.jsx(z7,{injectFirst:!0,children:q.jsx(QG,{theme:t,children:q.jsx(hG,{theme:t,children:q.jsx(_x,{translations:wIe,fallbackLocale:"en",children:q.jsx(x2,{children:q.jsx(mI,{theme:t,children:e})})})})})})}const hI=new URL(window.location.href),Wee=hI.searchParams.get("mode")||"",Srt=hI.pathname.includes("embed")&&Wee==="dialog",wrt=hI.pathname.includes("embed")&&Wee!=="dialog";function mI({children:e,theme:t}){var i,a,o;const{locale:n}=Vm(),r=nu`
|
|
494
494
|
${Srt?"body { background-color: transparent }":""}
|
|
495
495
|
${wrt?".MuiModal-backdrop { background-color: transparent !important }":""}
|
|
496
496
|
a {
|
|
@@ -564,7 +564,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
564
564
|
`+t)+`
|
|
565
565
|
`+m+"}":"{"+y.join(",")+"}",t=m,d}}return e5=function(s,l,c){var u;if(t="",n="",typeof c=="number")for(u=0;u<c;u+=1)n+=" ";else typeof c=="string"&&(n=c);if(i=l,l&&typeof l!="function"&&(typeof l!="object"||typeof l.length!="number"))throw new Error("JSON.stringify");return o("",{"":s})},e5}var VH;function Vlt(){return VH||(VH=1,$v.parse=Hlt(),$v.stringify=jlt()),$v}var Jlt={}.toString,qlt=Array.isArray||function(e){return Jlt.call(e)=="[object Array]"},JH=Object.prototype.toString,pne=function(t){var n=JH.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&JH.call(t.callee)==="[object Function]"),r},t5,qH;function Glt(){if(qH)return t5;qH=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=pne,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(p){var m=p.constructor;return m&&m.prototype===p},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!c["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{l(window[p])}catch{return!0}}catch{return!0}return!1}(),d=function(p){if(typeof window>"u"||!u)return l(p);try{return l(p)}catch{return!1}};e=function(m){var y=m!==null&&typeof m=="object",b=n.call(m)==="[object Function]",_=r(m),S=y&&n.call(m)==="[object String]",$=[];if(!y&&!b&&!_)throw new TypeError("Object.keys called on a non-object");var D=o&&b;if(S&&m.length>0&&!t.call(m,0))for(var P=0;P<m.length;++P)$.push(String(P));if(_&&m.length>0)for(var U=0;U<m.length;++U)$.push(String(U));else for(var L in m)!(D&&L==="prototype")&&t.call(m,L)&&$.push(String(L));if(a)for(var F=d(m),G=0;G<s.length;++G)!(F&&s[G]==="constructor")&&t.call(m,s[G])&&$.push(s[G]);return $}}return t5=e,t5}var zlt=Array.prototype.slice,Wlt=pne,GH=Object.keys,P3=GH?function(t){return GH(t)}:Glt(),zH=Object.keys;P3.shim=function(){if(Object.keys){var t=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);t||(Object.keys=function(r){return Wlt(r)?zH(zlt.call(r)):zH(r)})}else Object.keys=P3;return Object.keys||P3};var Klt=P3,Iv=(typeof JSON<"u"?JSON:Vlt()).stringify,Ylt=qlt,Zlt=Klt,Xlt=q8,hne=G8,WH=hne("Array.prototype.join"),n5=hne("Array.prototype.push"),KH=function(t,n){for(var r="",i=0;i<t;i+=1)r+=n;return r},Qlt=function(e,t,n){return n},mne=function(t){var n=arguments.length>1?arguments[1]:void 0,r=n&&n.space||"";typeof r=="number"&&(r=KH(r," "));var i=!!n&&typeof n.cycles=="boolean"&&n.cycles,a=n&&n.replacer?Xlt(n.replacer):Qlt,o=typeof n=="function"?n:n&&n.cmp,s=o&&function(c){var u=o.length>2&&function(p){return c[p]};return function(d,p){return o({key:d,value:c[d]},{key:p,value:c[p]},u?{__proto__:null,get:u}:void 0)}},l=[];return function c(u,d,p,m){var y=r?`
|
|
566
566
|
`+KH(m,r):"",b=r?": ":":";if(p&&p.toJSON&&typeof p.toJSON=="function"&&(p=p.toJSON()),p=a(u,d,p),p!==void 0){if(typeof p!="object"||p===null)return Iv(p);if(Ylt(p)){for(var D=[],_=0;_<p.length;_++){var S=c(p,_,p[_],m+1)||Iv(null);n5(D,y+r+S)}return"["+WH(D,",")+y+"]"}if(l.indexOf(p)!==-1){if(i)return Iv("__cycle__");throw new TypeError("Converting circular structure to JSON")}else n5(l,p);for(var $=Zlt(p).sort(s&&s(p)),D=[],_=0;_<$.length;_++){var d=$[_],P=c(p,d,p[d],m+1);if(P){var U=Iv(d)+b+P;n5(D,y+r+U)}}return l.splice(l.indexOf(p),1),"{"+WH(D,",")+y+"}"}}({"":t},"",t,0)};const Q3t=zt(mne);var gne={},Oh={},cu={};Object.defineProperty(cu,"__esModule",{value:!0});cu.encode=void 0;const O0=di;function eut(e,t="hex"){return["hex","base16"].includes(t)?(0,O0.toHex)(e):t==="base58"?(0,O0.toBase58)(e):t==="base64"?(0,O0.toBase64)(e):t==="Uint8Array"?(0,O0.toUint8Array)(e):t==="buffer"?(0,O0.toBuffer)(e):e}cu.encode=eut;var bg={},yne={exports:{}};(function(e){(function(){var t="input is invalid type",n="finalize already called",r=typeof window=="object",i=r?window:{};i.JS_SHA3_NO_WINDOW&&(r=!1);var a=!r&&typeof self=="object",o=!i.JS_SHA3_NO_NODE_JS&&typeof on=="object"&&on.versions&&on.versions.node;o?i=ft:a&&(i=self);var s=!i.JS_SHA3_NO_COMMON_JS&&!0&&e.exports,l=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),u=[31,7936,2031616,520093696],d=[4,1024,262144,67108864],p=[1,256,65536,16777216],m=[6,1536,393216,100663296],y=[0,8,16,24],b=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],_=[224,256,384,512],S=[128,256],$=["hex","buffer","arrayBuffer","array","digest"],D={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(N){return Object.prototype.toString.call(N)==="[object Array]"}),l&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(N){return typeof N=="object"&&N.buffer&&N.buffer.constructor===ArrayBuffer});for(var P=function(N,Y,re){return function(le){return new v(N,Y,N).update(le)[re]()}},U=function(N,Y,re){return function(le,ge){return new v(N,Y,ge).update(le)[re]()}},L=function(N,Y,re){return function(le,ge,Se,j){return f["cshake"+N].update(le,ge,Se,j)[re]()}},F=function(N,Y,re){return function(le,ge,Se,j){return f["kmac"+N].update(le,ge,Se,j)[re]()}},G=function(N,Y,re,le){for(var ge=0;ge<$.length;++ge){var Se=$[ge];N[Se]=Y(re,le,Se)}return N},ie=function(N,Y){var re=P(N,Y,"hex");return re.create=function(){return new v(N,Y,N)},re.update=function(le){return re.create().update(le)},G(re,P,N,Y)},se=function(N,Y){var re=U(N,Y,"hex");return re.create=function(le){return new v(N,Y,le)},re.update=function(le,ge){return re.create(ge).update(le)},G(re,U,N,Y)},K=function(N,Y){var re=D[N],le=L(N,Y,"hex");return le.create=function(ge,Se,j){return!Se&&!j?f["shake"+N].create(ge):new v(N,Y,ge).bytepad([Se,j],re)},le.update=function(ge,Se,j,M){return le.create(Se,j,M).update(ge)},G(le,L,N,Y)},B=function(N,Y){var re=D[N],le=F(N,Y,"hex");return le.create=function(ge,Se,j){return new k(N,Y,Se).bytepad(["KMAC",j],re).bytepad([ge],re)},le.update=function(ge,Se,j,M){return le.create(ge,j,M).update(Se)},G(le,F,N,Y)},E=[{name:"keccak",padding:p,bits:_,createMethod:ie},{name:"sha3",padding:m,bits:_,createMethod:ie},{name:"shake",padding:u,bits:S,createMethod:se},{name:"cshake",padding:d,bits:S,createMethod:K},{name:"kmac",padding:d,bits:S,createMethod:B}],f={},h=[],T=0;T<E.length;++T)for(var w=E[T],R=w.bits,I=0;I<R.length;++I){var C=w.name+"_"+R[I];if(h.push(C),f[C]=w.createMethod(R[I],w.padding),w.name!=="sha3"){var x=w.name+R[I];h.push(x),f[x]=f[C]}}function v(N,Y,re){this.blocks=[],this.s=[],this.padding=Y,this.outputBits=re,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(N<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=re>>5,this.extraBytes=(re&31)>>3;for(var le=0;le<50;++le)this.s[le]=0}v.prototype.update=function(N){if(this.finalized)throw new Error(n);var Y,re=typeof N;if(re!=="string"){if(re==="object"){if(N===null)throw new Error(t);if(l&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!Array.isArray(N)&&(!l||!ArrayBuffer.isView(N)))throw new Error(t)}else throw new Error(t);Y=!0}for(var le=this.blocks,ge=this.byteCount,Se=N.length,j=this.blockCount,M=0,z=this.s,W,ee;M<Se;){if(this.reset)for(this.reset=!1,le[0]=this.block,W=1;W<j+1;++W)le[W]=0;if(Y)for(W=this.start;M<Se&&W<ge;++M)le[W>>2]|=N[M]<<y[W++&3];else for(W=this.start;M<Se&&W<ge;++M)ee=N.charCodeAt(M),ee<128?le[W>>2]|=ee<<y[W++&3]:ee<2048?(le[W>>2]|=(192|ee>>6)<<y[W++&3],le[W>>2]|=(128|ee&63)<<y[W++&3]):ee<55296||ee>=57344?(le[W>>2]|=(224|ee>>12)<<y[W++&3],le[W>>2]|=(128|ee>>6&63)<<y[W++&3],le[W>>2]|=(128|ee&63)<<y[W++&3]):(ee=65536+((ee&1023)<<10|N.charCodeAt(++M)&1023),le[W>>2]|=(240|ee>>18)<<y[W++&3],le[W>>2]|=(128|ee>>12&63)<<y[W++&3],le[W>>2]|=(128|ee>>6&63)<<y[W++&3],le[W>>2]|=(128|ee&63)<<y[W++&3]);if(this.lastByteIndex=W,W>=ge){for(this.start=W-ge,this.block=le[j],W=0;W<j;++W)z[W]^=le[W];ne(z),this.reset=!0}else this.start=W}return this},v.prototype.encode=function(N,Y){var re=N&255,le=1,ge=[re];for(N=N>>8,re=N&255;re>0;)ge.unshift(re),N=N>>8,re=N&255,++le;return Y?ge.push(le):ge.unshift(le),this.update(ge),ge.length},v.prototype.encodeString=function(N){var Y,re=typeof N;if(re!=="string"){if(re==="object"){if(N===null)throw new Error(t);if(l&&N.constructor===ArrayBuffer)N=new Uint8Array(N);else if(!Array.isArray(N)&&(!l||!ArrayBuffer.isView(N)))throw new Error(t)}else throw new Error(t);Y=!0}var le=0,ge=N.length;if(Y)le=ge;else for(var Se=0;Se<N.length;++Se){var j=N.charCodeAt(Se);j<128?le+=1:j<2048?le+=2:j<55296||j>=57344?le+=3:(j=65536+((j&1023)<<10|N.charCodeAt(++Se)&1023),le+=4)}return le+=this.encode(le*8),this.update(N),le},v.prototype.bytepad=function(N,Y){for(var re=this.encode(Y),le=0;le<N.length;++le)re+=this.encodeString(N[le]);var ge=Y-re%Y,Se=[];return Se.length=ge,this.update(Se),this},v.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var N=this.blocks,Y=this.lastByteIndex,re=this.blockCount,le=this.s;if(N[Y>>2]|=this.padding[Y&3],this.lastByteIndex===this.byteCount)for(N[0]=N[re],Y=1;Y<re+1;++Y)N[Y]=0;for(N[re-1]|=2147483648,Y=0;Y<re;++Y)le[Y]^=N[Y];ne(le)}},v.prototype.toString=v.prototype.hex=function(){this.finalize();for(var N=this.blockCount,Y=this.s,re=this.outputBlocks,le=this.extraBytes,ge=0,Se=0,j="",M;Se<re;){for(ge=0;ge<N&&Se<re;++ge,++Se)M=Y[ge],j+=c[M>>4&15]+c[M&15]+c[M>>12&15]+c[M>>8&15]+c[M>>20&15]+c[M>>16&15]+c[M>>28&15]+c[M>>24&15];Se%N===0&&(ne(Y),ge=0)}return le&&(M=Y[ge],j+=c[M>>4&15]+c[M&15],le>1&&(j+=c[M>>12&15]+c[M>>8&15]),le>2&&(j+=c[M>>20&15]+c[M>>16&15])),j},v.prototype.arrayBuffer=function(){this.finalize();var N=this.blockCount,Y=this.s,re=this.outputBlocks,le=this.extraBytes,ge=0,Se=0,j=this.outputBits>>3,M;le?M=new ArrayBuffer(re+1<<2):M=new ArrayBuffer(j);for(var z=new Uint32Array(M);Se<re;){for(ge=0;ge<N&&Se<re;++ge,++Se)z[Se]=Y[ge];Se%N===0&&ne(Y)}return le&&(z[ge]=Y[ge],M=M.slice(0,j)),M},v.prototype.buffer=v.prototype.arrayBuffer,v.prototype.digest=v.prototype.array=function(){this.finalize();for(var N=this.blockCount,Y=this.s,re=this.outputBlocks,le=this.extraBytes,ge=0,Se=0,j=[],M,z;Se<re;){for(ge=0;ge<N&&Se<re;++ge,++Se)M=Se<<2,z=Y[ge],j[M]=z&255,j[M+1]=z>>8&255,j[M+2]=z>>16&255,j[M+3]=z>>24&255;Se%N===0&&ne(Y)}return le&&(M=Se<<2,z=Y[ge],j[M]=z&255,le>1&&(j[M+1]=z>>8&255),le>2&&(j[M+2]=z>>16&255)),j};function k(N,Y,re){v.call(this,N,Y,re)}k.prototype=new v,k.prototype.finalize=function(){return this.encode(this.outputBits,!0),v.prototype.finalize.call(this)};var ne=function(N){var Y,re,le,ge,Se,j,M,z,W,ee,ve,he,oe,ye,we,Te,Ve,Ke,je,Ge,pe,Ae,Fe,Re,te,V,J,ce,Ce,_e,$e,Je,Be,Ne,st,Ye,lt,Oe,xe,De,it,tt,nt,wt,et,ze,Dt,Q,ae,fe,H,ue,Me,ke,Ue,ot,rt,Qe,Wt,At,vt,$t,Ut;for(le=0;le<48;le+=2)ge=N[0]^N[10]^N[20]^N[30]^N[40],Se=N[1]^N[11]^N[21]^N[31]^N[41],j=N[2]^N[12]^N[22]^N[32]^N[42],M=N[3]^N[13]^N[23]^N[33]^N[43],z=N[4]^N[14]^N[24]^N[34]^N[44],W=N[5]^N[15]^N[25]^N[35]^N[45],ee=N[6]^N[16]^N[26]^N[36]^N[46],ve=N[7]^N[17]^N[27]^N[37]^N[47],he=N[8]^N[18]^N[28]^N[38]^N[48],oe=N[9]^N[19]^N[29]^N[39]^N[49],Y=he^(j<<1|M>>>31),re=oe^(M<<1|j>>>31),N[0]^=Y,N[1]^=re,N[10]^=Y,N[11]^=re,N[20]^=Y,N[21]^=re,N[30]^=Y,N[31]^=re,N[40]^=Y,N[41]^=re,Y=ge^(z<<1|W>>>31),re=Se^(W<<1|z>>>31),N[2]^=Y,N[3]^=re,N[12]^=Y,N[13]^=re,N[22]^=Y,N[23]^=re,N[32]^=Y,N[33]^=re,N[42]^=Y,N[43]^=re,Y=j^(ee<<1|ve>>>31),re=M^(ve<<1|ee>>>31),N[4]^=Y,N[5]^=re,N[14]^=Y,N[15]^=re,N[24]^=Y,N[25]^=re,N[34]^=Y,N[35]^=re,N[44]^=Y,N[45]^=re,Y=z^(he<<1|oe>>>31),re=W^(oe<<1|he>>>31),N[6]^=Y,N[7]^=re,N[16]^=Y,N[17]^=re,N[26]^=Y,N[27]^=re,N[36]^=Y,N[37]^=re,N[46]^=Y,N[47]^=re,Y=ee^(ge<<1|Se>>>31),re=ve^(Se<<1|ge>>>31),N[8]^=Y,N[9]^=re,N[18]^=Y,N[19]^=re,N[28]^=Y,N[29]^=re,N[38]^=Y,N[39]^=re,N[48]^=Y,N[49]^=re,ye=N[0],we=N[1],ze=N[11]<<4|N[10]>>>28,Dt=N[10]<<4|N[11]>>>28,ce=N[20]<<3|N[21]>>>29,Ce=N[21]<<3|N[20]>>>29,At=N[31]<<9|N[30]>>>23,vt=N[30]<<9|N[31]>>>23,tt=N[40]<<18|N[41]>>>14,nt=N[41]<<18|N[40]>>>14,Ne=N[2]<<1|N[3]>>>31,st=N[3]<<1|N[2]>>>31,Te=N[13]<<12|N[12]>>>20,Ve=N[12]<<12|N[13]>>>20,Q=N[22]<<10|N[23]>>>22,ae=N[23]<<10|N[22]>>>22,_e=N[33]<<13|N[32]>>>19,$e=N[32]<<13|N[33]>>>19,$t=N[42]<<2|N[43]>>>30,Ut=N[43]<<2|N[42]>>>30,ke=N[5]<<30|N[4]>>>2,Ue=N[4]<<30|N[5]>>>2,Ye=N[14]<<6|N[15]>>>26,lt=N[15]<<6|N[14]>>>26,Ke=N[25]<<11|N[24]>>>21,je=N[24]<<11|N[25]>>>21,fe=N[34]<<15|N[35]>>>17,H=N[35]<<15|N[34]>>>17,Je=N[45]<<29|N[44]>>>3,Be=N[44]<<29|N[45]>>>3,Re=N[6]<<28|N[7]>>>4,te=N[7]<<28|N[6]>>>4,ot=N[17]<<23|N[16]>>>9,rt=N[16]<<23|N[17]>>>9,Oe=N[26]<<25|N[27]>>>7,xe=N[27]<<25|N[26]>>>7,Ge=N[36]<<21|N[37]>>>11,pe=N[37]<<21|N[36]>>>11,ue=N[47]<<24|N[46]>>>8,Me=N[46]<<24|N[47]>>>8,wt=N[8]<<27|N[9]>>>5,et=N[9]<<27|N[8]>>>5,V=N[18]<<20|N[19]>>>12,J=N[19]<<20|N[18]>>>12,Qe=N[29]<<7|N[28]>>>25,Wt=N[28]<<7|N[29]>>>25,De=N[38]<<8|N[39]>>>24,it=N[39]<<8|N[38]>>>24,Ae=N[48]<<14|N[49]>>>18,Fe=N[49]<<14|N[48]>>>18,N[0]=ye^~Te&Ke,N[1]=we^~Ve&je,N[10]=Re^~V&ce,N[11]=te^~J&Ce,N[20]=Ne^~Ye&Oe,N[21]=st^~lt&xe,N[30]=wt^~ze&Q,N[31]=et^~Dt&ae,N[40]=ke^~ot&Qe,N[41]=Ue^~rt&Wt,N[2]=Te^~Ke&Ge,N[3]=Ve^~je&pe,N[12]=V^~ce&_e,N[13]=J^~Ce&$e,N[22]=Ye^~Oe&De,N[23]=lt^~xe&it,N[32]=ze^~Q&fe,N[33]=Dt^~ae&H,N[42]=ot^~Qe&At,N[43]=rt^~Wt&vt,N[4]=Ke^~Ge&Ae,N[5]=je^~pe&Fe,N[14]=ce^~_e&Je,N[15]=Ce^~$e&Be,N[24]=Oe^~De&tt,N[25]=xe^~it&nt,N[34]=Q^~fe&ue,N[35]=ae^~H&Me,N[44]=Qe^~At&$t,N[45]=Wt^~vt&Ut,N[6]=Ge^~Ae&ye,N[7]=pe^~Fe&we,N[16]=_e^~Je&Re,N[17]=$e^~Be&te,N[26]=De^~tt&Ne,N[27]=it^~nt&st,N[36]=fe^~ue&wt,N[37]=H^~Me&et,N[46]=At^~$t&ke,N[47]=vt^~Ut&Ue,N[8]=Ae^~ye&Te,N[9]=Fe^~we&Ve,N[18]=Je^~Re&V,N[19]=Be^~te&J,N[28]=tt^~Ne&Ye,N[29]=nt^~st<,N[38]=ue^~wt&ze,N[39]=Me^~et&Dt,N[48]=$t^~ke&ot,N[49]=Ut^~Ue&rt,N[0]^=b[le],N[1]^=b[le+1]};if(s)e.exports=f;else for(T=0;T<h.length;++T)i[h[T]]=f[h[T]]})()})(yne);var vne=yne.exports,tut=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bg,"__esModule",{value:!0});bg.KeccakHasher=void 0;const nut=tut(vne),rut=di,iut=cu;class bne{constructor(){[224,256,384,512].forEach(t=>{const n=`hash${t}`,r=a=>nut.default[`keccak${t}`](a),i=(a,o)=>o===1?r(a):i(r(a),o-1);this[n]=(a,o=1,s="hex")=>{let l=a;try{l=(0,rut.toUint8Array)(a)}catch{}const c=i(l,o);return(0,iut.encode)(`0x${c}`,s)}})}}bg.KeccakHasher=bne;bg.default=new bne;var Tg={};Object.defineProperty(Tg,"__esModule",{value:!0});Tg.Sha2Hasher=void 0;const aut=di,kv=dg,out=cu,sut={sha224:kv.sha224,sha256:kv.sha256,sha384:kv.sha384,sha512:kv.sha512};class Tne{constructor(){[224,256,384,512].forEach(t=>{const n=`hash${t}`,r=sut[`sha${t}`],i=(a,o)=>{let s=a;try{s=(0,aut.toUint8Array)(a)}catch{}return o===1?`0x${r().update(s).digest("hex")}`:i(i(s,1),o-1)};this[n]=(a,o=2,s="hex")=>{const l=i(a,o);return(0,out.encode)(l,s)}})}}Tg.Sha2Hasher=Tne;Tg.default=new Tne;var Eg={},lut=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Eg,"__esModule",{value:!0});Eg.Sha3Hasher=void 0;const uut=lut(vne),cut=di,fut=cu;class Ene{constructor(){[224,256,384,512].forEach(t=>{const n=`hash${t}`,r=uut.default[`sha3_${t}`],i=(a,o)=>o===1?r(a):i(r(a),o-1);this[n]=(a,o=1,s="hex")=>{let l=a;try{l=(0,cut.toUint8Array)(a)}catch{}const c=i(l,o);return(0,fut.encode)(`0x${c}`,s)}})}}Eg.Sha3Hasher=Ene;Eg.default=new Ene;var Ag={},rA={};function vR(){var e=Array.prototype.slice.call(arguments);function t(){var n=this.constructor;if(n===t)throw new Error("Cannot create an instance of Interface");for(var r=Object.getPrototypeOf(this),i=[],a=0;a<e.length;a++)typeof r[e[a]]!="function"&&i.push(e[a]);if(i.length)throw new Error("The following function(s) need to be implemented for class "+n.name+": "+i.join(", "))}return t.isImplementedBy=function(n){for(var r=Object.getPrototypeOf(n),i=!0,a=0;a<e.length;a++)if(typeof r[e[a]]!="function"){i=!1;break}return i},t}vR.create=vR;var dut=vR,put=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rA,"__esModule",{value:!0});const hut=put(dut);rA.default=hut.default.create("genKeyPair","getPublicKey","sign","verify");var UI=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ag,"__esModule",{value:!0});Ag.Ed25519Signer=void 0;const mut=UI(wQ),gut=UI(lu),Lc=di,yut=UI(rA),Dv=cu,Lv=mut.default.sign;class Ane extends yut.default{constructor(){super()}genKeyPair(t="hex",n){const r=n?(0,Lc.toUint8Array)(n):new Uint8Array((0,gut.default)(32));if(r.byteLength!==32)throw new Error("Invalid seed to generate key pair");const i=Lv.keyPair.fromSeed(r);return i.publicKey=(0,Dv.encode)(i.publicKey,t),i.secretKey=(0,Dv.encode)(i.secretKey,t),i}getPublicKey(t,n="hex"){const r=(0,Lc.toUint8Array)(t),i=Lv.keyPair.fromSecretKey(r).publicKey;return(0,Dv.encode)(i,n)}sign(t,n,r="hex"){const i=(0,Lc.toUint8Array)(n),a=(0,Lc.toUint8Array)(t),o=Lv.detached(a,i);return(0,Dv.encode)(o,r)}verify(t,n,r){const i=(0,Lc.toUint8Array)(r),a=(0,Lc.toUint8Array)(t),o=(0,Lc.toUint8Array)(n);return Lv.detached.verify(a,o,i)}}Ag.Ed25519Signer=Ane;Ag.default=new Ane;var Sg={};const Oc=(e,t)=>parseInt(e.slice(t*2+2,t*2+4),16),vut=e=>{let t;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues)t=window.crypto.getRandomValues(new Uint8Array(e));else if(typeof JC<"u")t=JC("crypto").randomBytes(e);else throw"Safe random numbers not available.";let n="0x";for(let r=0;r<e;++r)n+=("00"+t[r].toString(16)).slice(-2);return n},HI=e=>(e.length-2)/2,but=e=>"0x"+e.reduce((t,n)=>t+n.slice(2),""),Tut=(e,t,n)=>"0x"+n.slice(e*2+2,t*2+2),Eut=e=>{let t="0x";for(let n=0,r=HI(e);n<r;++n)t+=e.slice((r-n)*2,(r-n+1)*2);return t},Sne=(e,t)=>t.length===e*2+2?t:Sne(e,"0x0"+t.slice(2)),wne=(e,t)=>t.length===e*2+2?t:wne(e,t+"0"),_ne=e=>{let t=[];for(let n=2,r=e.length;n<r;n+=2)t.push(parseInt(e.slice(n,n+2),16));return t},Cne=e=>{let t="0x";for(let n=0,r=e.length;n<r;++n){let i=e[n];t+=(i<16?"0":"")+i.toString(16)}return t},Aut=e=>new Uint8Array(_ne(e)),Sut=e=>Cne([].slice.call(e,0)),wut=e=>{let t=e.toString(16);return t.length%2===0?"0x"+t:"0x0"+t},_ut=e=>parseInt(e.slice(2),16),Cut=(e,t)=>e.concat(t.slice(2)),Rut=e=>e==="0x0"?"0x":e.length%2===0?e:"0x0"+e.slice(2),xut=e=>e[2]==="0"?"0x"+e.slice(3):e,$ut=e=>{let t="0x";for(let n=0;n<e.length;++n)t+=("00"+e.charCodeAt(n).toString(16)).slice(-2);return t},Iut=e=>{let t="";for(let n=2;n<e.length;n+=2)t+=String.fromCharCode(parseInt(e.slice(n,n+2),16));return t},kut=e=>{const t=r=>{const i=r.toString(16);return i.length<2?"0"+i:i};let n="0x";for(let r=0;r!=e.length;r++){let i=e.charCodeAt(r);if(i<128){n+=t(i);continue}if(i<2048)n+=t(i>>6|192);else{if(i>55295&&i<56320){if(++r==e.length)return null;let a=e.charCodeAt(r);if(a<56320||a>57343)return null;i=65536+((i&1023)<<10)+(a&1023),n+=t(i>>18|240),n+=t(i>>12&63|128)}else n+=t(i>>12|224);n+=t(i>>6&63|128)}n+=t(i&63|128)}return n},Dut=e=>{let t="",n=0,r=HI(e);for(;n<r;){let i=Oc(e,n++);if(i>127){if(i>191&&i<224){if(n>=r)return null;i=(i&31)<<6|Oc(e,n)&63}else if(i>223&&i<240){if(n+1>=r)return null;i=(i&15)<<12|(Oc(e,n)&63)<<6|Oc(e,++n)&63}else if(i>239&&i<248){if(n+2>=r)return null;i=(i&7)<<18|(Oc(e,n)&63)<<12|(Oc(e,++n)&63)<<6|Oc(e,++n)&63}else return null;++n}if(i<=65535)t+=String.fromCharCode(i);else if(i<=1114111)i-=65536,t+=String.fromCharCode(i>>10|55296),t+=String.fromCharCode(i&1023|56320);else return null}return t};var Rne={random:vut,length:HI,concat:Cut,flatten:but,slice:Tut,reverse:Eut,pad:Sne,padRight:wne,fromAscii:$ut,toAscii:Iut,fromString:kut,toString:Dut,fromNumber:wut,toNumber:_ut,fromNat:Rut,toNat:xut,fromArray:Cne,toArray:_ne,fromUint8Array:Sut,toUint8Array:Aut};const cb=gi(),Lut=Rne,Out=e=>"0x"+e.toString("hex"),fb=e=>new cb(e.slice(2),16),jI=e=>{const t="0x"+(e.slice(0,2)==="0x"?new cb(e.slice(2),16):new cb(e,10)).toString("hex");return t==="0x0"?"0x":t},Put=e=>$ne(kne(e,jI("10000000000")))/1e8,Mut=e=>Ine(xne(Math.floor(e*1e8)),jI("10000000000")),But=e=>fb(e).toString(10),xne=e=>typeof e=="string"?/^0x/.test(e)?e:"0x"+e:"0x"+new cb(e).toString("hex"),$ne=e=>fb(e).toNumber(),Nut=e=>Lut.pad(32,e),iA=e=>(t,n)=>Out(fb(t)[e](fb(n))),Fut=iA("add"),Ine=iA("mul"),kne=iA("div"),Uut=iA("sub");var Hut={toString:But,fromString:jI,toNumber:$ne,fromNumber:xne,toEther:Put,fromEther:Mut,toUint256:Nut,add:Fut,mul:Ine,div:kne,sub:Uut};const Cu="0123456789abcdef".split(""),jut=[1,256,65536,16777216],ts=[0,8,16,24],YH=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],Vut=e=>({blocks:[],reset:!0,block:0,start:0,blockCount:1600-(e<<1)>>5,outputBlocks:e>>5,s:(t=>[].concat(t,t,t,t,t))([0,0,0,0,0,0,0,0,0,0])}),Jut=(e,t)=>{for(var n=t.length,r=e.blocks,i=e.blockCount<<2,a=e.blockCount,o=e.outputBlocks,s=e.s,l=0,d,c;l<n;){if(e.reset)for(e.reset=!1,r[0]=e.block,d=1;d<a+1;++d)r[d]=0;if(typeof t!="string")for(d=e.start;l<n&&d<i;++l)r[d>>2]|=t[l]<<ts[d++&3];else for(d=e.start;l<n&&d<i;++l)c=t.charCodeAt(l),c<128?r[d>>2]|=c<<ts[d++&3]:c<2048?(r[d>>2]|=(192|c>>6)<<ts[d++&3],r[d>>2]|=(128|c&63)<<ts[d++&3]):c<55296||c>=57344?(r[d>>2]|=(224|c>>12)<<ts[d++&3],r[d>>2]|=(128|c>>6&63)<<ts[d++&3],r[d>>2]|=(128|c&63)<<ts[d++&3]):(c=65536+((c&1023)<<10|t.charCodeAt(++l)&1023),r[d>>2]|=(240|c>>18)<<ts[d++&3],r[d>>2]|=(128|c>>12&63)<<ts[d++&3],r[d>>2]|=(128|c>>6&63)<<ts[d++&3],r[d>>2]|=(128|c&63)<<ts[d++&3]);if(e.lastByteIndex=d,d>=i){for(e.start=d-i,e.block=r[a],d=0;d<a;++d)s[d]^=r[d];r5(s),e.reset=!0}else e.start=d}if(d=e.lastByteIndex,r[d>>2]|=jut[d&3],e.lastByteIndex===i)for(r[0]=r[a],d=1;d<a+1;++d)r[d]=0;for(r[a-1]|=2147483648,d=0;d<a;++d)s[d]^=r[d];r5(s);for(var u="",d=0,p=0,m;p<o;){for(d=0;d<a&&p<o;++d,++p)m=s[d],u+=Cu[m>>4&15]+Cu[m&15]+Cu[m>>12&15]+Cu[m>>8&15]+Cu[m>>20&15]+Cu[m>>16&15]+Cu[m>>28&15]+Cu[m>>24&15];p%a===0&&(r5(s),d=0)}return"0x"+u},r5=e=>{var t,n,r,i,a,o,s,l,c,u,d,p,m,y,b,_,S,$,D,P,U,L,F,G,ie,se,K,B,E,f,h,T,w,R,I,C,x,v,k,ne,N,Y,re,le,ge,Se,j,M,z,W,ee,ve,he,oe,ye,we,Te,Ve,Ke,je,Ge,pe,Ae;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],p=e[8]^e[18]^e[28]^e[38]^e[48],m=e[9]^e[19]^e[29]^e[39]^e[49],t=p^(o<<1|s>>>31),n=m^(s<<1|o>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|c>>>31),n=a^(c<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=o^(u<<1|d>>>31),n=s^(d<<1|u>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(p<<1|m>>>31),n=c^(m<<1|p>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=u^(i<<1|a>>>31),n=d^(a<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,y=e[0],b=e[1],Se=e[11]<<4|e[10]>>>28,j=e[10]<<4|e[11]>>>28,B=e[20]<<3|e[21]>>>29,E=e[21]<<3|e[20]>>>29,je=e[31]<<9|e[30]>>>23,Ge=e[30]<<9|e[31]>>>23,Y=e[40]<<18|e[41]>>>14,re=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,I=e[3]<<1|e[2]>>>31,_=e[13]<<12|e[12]>>>20,S=e[12]<<12|e[13]>>>20,M=e[22]<<10|e[23]>>>22,z=e[23]<<10|e[22]>>>22,f=e[33]<<13|e[32]>>>19,h=e[32]<<13|e[33]>>>19,pe=e[42]<<2|e[43]>>>30,Ae=e[43]<<2|e[42]>>>30,oe=e[5]<<30|e[4]>>>2,ye=e[4]<<30|e[5]>>>2,C=e[14]<<6|e[15]>>>26,x=e[15]<<6|e[14]>>>26,$=e[25]<<11|e[24]>>>21,D=e[24]<<11|e[25]>>>21,W=e[34]<<15|e[35]>>>17,ee=e[35]<<15|e[34]>>>17,T=e[45]<<29|e[44]>>>3,w=e[44]<<29|e[45]>>>3,G=e[6]<<28|e[7]>>>4,ie=e[7]<<28|e[6]>>>4,we=e[17]<<23|e[16]>>>9,Te=e[16]<<23|e[17]>>>9,v=e[26]<<25|e[27]>>>7,k=e[27]<<25|e[26]>>>7,P=e[36]<<21|e[37]>>>11,U=e[37]<<21|e[36]>>>11,ve=e[47]<<24|e[46]>>>8,he=e[46]<<24|e[47]>>>8,le=e[8]<<27|e[9]>>>5,ge=e[9]<<27|e[8]>>>5,se=e[18]<<20|e[19]>>>12,K=e[19]<<20|e[18]>>>12,Ve=e[29]<<7|e[28]>>>25,Ke=e[28]<<7|e[29]>>>25,ne=e[38]<<8|e[39]>>>24,N=e[39]<<8|e[38]>>>24,L=e[48]<<14|e[49]>>>18,F=e[49]<<14|e[48]>>>18,e[0]=y^~_&$,e[1]=b^~S&D,e[10]=G^~se&B,e[11]=ie^~K&E,e[20]=R^~C&v,e[21]=I^~x&k,e[30]=le^~Se&M,e[31]=ge^~j&z,e[40]=oe^~we&Ve,e[41]=ye^~Te&Ke,e[2]=_^~$&P,e[3]=S^~D&U,e[12]=se^~B&f,e[13]=K^~E&h,e[22]=C^~v&ne,e[23]=x^~k&N,e[32]=Se^~M&W,e[33]=j^~z&ee,e[42]=we^~Ve&je,e[43]=Te^~Ke&Ge,e[4]=$^~P&L,e[5]=D^~U&F,e[14]=B^~f&T,e[15]=E^~h&w,e[24]=v^~ne&Y,e[25]=k^~N&re,e[34]=M^~W&ve,e[35]=z^~ee&he,e[44]=Ve^~je&pe,e[45]=Ke^~Ge&Ae,e[6]=P^~L&y,e[7]=U^~F&b,e[16]=f^~T&G,e[17]=h^~w&ie,e[26]=ne^~Y&R,e[27]=N^~re&I,e[36]=W^~ve&le,e[37]=ee^~he&ge,e[46]=je^~pe&oe,e[47]=Ge^~Ae&ye,e[8]=L^~y&_,e[9]=F^~b&S,e[18]=T^~G&se,e[19]=w^~ie&K,e[28]=Y^~R&C,e[29]=re^~I&x,e[38]=ve^~le&Se,e[39]=he^~ge&j,e[48]=pe^~oe&we,e[49]=Ae^~ye&Te,e[0]^=YH[r],e[1]^=YH[r+1]},Ov=e=>t=>{var n;if(t.slice(0,2)==="0x"){n=[];for(var r=2,i=t.length;r<i;r+=2)n.push(parseInt(t.slice(r,r+2),16))}else n=t;return Jut(Vut(e),n)};var Dne={keccak256:Ov(256),keccak512:Ov(512),keccak256s:Ov(256),keccak512s:Ov(512)};const Ti=Rne,qut=Hut,Gut=hg(),VI=new Gut.ec("secp256k1"),{keccak256:db,keccak256s:zut}=Dne,Wut=e=>{const t=db(Ti.concat(Ti.random(32),e||Ti.random(32))),n=Ti.concat(Ti.concat(Ti.random(32),t),Ti.random(32)),r=db(n);return Lne(r)},JI=e=>{const t=zut(e.slice(2));let n="0x";for(let r=0;r<40;r++)n+=parseInt(t[r+2],16)>7?e[r+2].toUpperCase():e[r+2];return n},Lne=e=>{const t=new qt(e.slice(2),"hex"),r="0x"+VI.keyFromPrivate(t).getPublic(!1,"hex").slice(2),i=db(r);return{address:JI("0x"+i.slice(-40)),privateKey:e}},One=([e,t,n])=>Ti.flatten([t,n,e]),Pne=e=>[Ti.slice(64,Ti.length(e),e),Ti.slice(0,32,e),Ti.slice(32,64,e)],Mne=e=>(t,n)=>{const r=VI.keyFromPrivate(new qt(n.slice(2),"hex")).sign(new qt(t.slice(2),"hex"),{canonical:!0});return One([qut.fromString(Ti.fromNumber(e+r.recoveryParam)),Ti.pad(32,Ti.fromNat("0x"+r.r.toString(16))),Ti.pad(32,Ti.fromNat("0x"+r.s.toString(16)))])},Kut=Mne(27),Yut=(e,t)=>{const n=Pne(t),r={v:Ti.toNumber(n[0]),r:n[1].slice(2),s:n[2].slice(2)},a="0x"+VI.recoverPubKey(new qt(e.slice(2),"hex"),r,r.v<2?r.v:1-r.v%2).encode("hex",!1).slice(2),o=db(a);return JI("0x"+o.slice(-40))};var Zut={create:Wut,toChecksum:JI,fromPrivate:Lne,sign:Kut,makeSigner:Mne,recover:Yut,encodeSignature:One,decodeSignature:Pne},Ph={},qI=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ph,"__esModule",{value:!0});Ph.Secp256k1Signer=void 0;const Xut=qI(hg()),go=di,Qut=qI(lu),ect=qI(rA),Pv=cu,tct=Xut.default.ec,Mv=new tct("secp256k1");class Bne extends ect.default{constructor(){super(),this.pkHasFormatPrefix=!0,this.pkCompressed=!1}isValidSK(t){if(t.byteLength!==32)return!1;const n=new go.BN(t);return n.cmp(Mv.curve.n)<0&&!n.isZero()}genKeyPair(t="hex"){let n=null;do n=new Uint8Array((0,Qut.default)(32));while(!this.isValidSK(n));const r=this.getPublicKey((0,go.toHex)(n));return{secretKey:(0,Pv.encode)(n,t),publicKey:(0,Pv.encode)(r,t)}}getPublicKey(t,n="hex"){if(!this.isValidSK((0,go.toUint8Array)(t)))throw new Error("Invalid secret key");let r=Mv.keyFromPrivate((0,go.toBuffer)(t)).getPublic(this.pkCompressed,"hex");return this.pkHasFormatPrefix===!1&&(r=r.slice(2)),(0,Pv.encode)(`0x${r}`,n)}sign(t,n,r="hex"){let i=t;try{i=(0,go.toUint8Array)(t)}catch{}const a=Mv.keyFromPrivate((0,go.toBuffer)(n)).sign((0,go.stripHexPrefix)(i),{canonical:!0}).toDER("hex");return(0,Pv.encode)(`0x${a}`,r)}verify(t,n,r){let i=t;try{i=(0,go.toUint8Array)(t)}catch{}let a=(0,go.toBuffer)(r);return this.pkHasFormatPrefix===!1&&a[0]!==4&&a.byteLength===64&&(a=qt.concat([qt.from([4]),a])),Mv.keyFromPublic(a).verify((0,go.stripHexPrefix)(i),(0,go.stripHexPrefix)((0,go.toHex)(n)))}}Ph.Secp256k1Signer=Bne;Ph.default=new Bne;var Nne=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Sg,"__esModule",{value:!0});Sg.EthereumSigner=void 0;const ZH=Nne(Zut),nct=Nne(Dne),i5=di,rct=Ph;class Fne extends rct.Secp256k1Signer{constructor(){super(),this.pkHasFormatPrefix=!1}ethHash(t){const n=(0,i5.isHexStrict)(t)?t:(0,i5.utf8ToHex)(t),r=(0,i5.hexToBytes)(n),i=qt.from(r),a=`Ethereum Signed Message:
|
|
567
|
-
${r.length}`,o=qt.from(a),s=qt.concat([o,i]);return nct.default.keccak256s(s)}ethSign(t,n){return ZH.default.sign(t,n)}ethRecover(t,n){return ZH.default.recover(t,n)}}Sg.EthereumSigner=Fne;Sg.default=new Fne;(function(e){var t=ft&&ft.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.toTxHash=e.Hashers=e.Signers=e.getRandomBytes=e.getHasher=e.getSigner=e.types=e.Hasher=e.Signer=void 0;const n=t(lu),r=cu,i=t(bg),a=t(Tg),o=t(Eg),s=t(Ag),l=t(Sg),c=t(Ph);e.Signer={Ed25519:s.default,Secp256k1:c.default,Ethereum:l.default},e.Hasher={SHA2:a.default,SHA3:o.default,Keccak:i.default},e.types={KeyType:{ED25519:0,SECP256K1:1,ETHEREUM:2},HashType:{KECCAK:0,SHA3:1,KECCAK_384:2,SHA3_384:3,KECCAK_512:4,SHA3_512:5,SHA2:6},RoleType:{ROLE_ACCOUNT:0,ROLE_NODE:1,ROLE_DEVICE:2,ROLE_APPLICATION:3,ROLE_SMART_CONTRACT:4,ROLE_BOT:5,ROLE_ASSET:6,ROLE_STAKE:7,ROLE_VALIDATOR:8,ROLE_GROUP:9,ROLE_TX:10,ROLE_TETHER:11,ROLE_SWAP:12,ROLE_DELEGATION:13,ROLE_VC:14,ROLE_BLOCKLET:15,ROLE_STORE:16,ROLE_TOKEN:17,ROLE_FACTORY:18,ROLE_ROLLUP:19,ROLE_STORAGE:20,ROLE_ANY:63},EncodingType:{BASE16:0,BASE58:1}};function u(y){if(typeof e.Signers[y]>"u")throw new Error(`Unsupported signer type: ${y}`);return e.Signers[y]}e.getSigner=u;function d(y){if(typeof e.Hashers[y]>"u")throw new Error(`Unsupported hash type: ${y}`);return e.Hashers[y]}e.getHasher=d;function p(y=32,b="hex"){return(0,r.encode)((0,n.default)(y),b)}e.getRandomBytes=p,e.Signers=Object.freeze({[e.types.KeyType.ED25519]:e.Signer.Ed25519,[e.types.KeyType.SECP256K1]:e.Signer.Secp256k1,[e.types.KeyType.ETHEREUM]:e.Signer.Ethereum}),e.Hashers=Object.freeze({[e.types.HashType.KECCAK]:e.Hasher.Keccak.hash256,[e.types.HashType.KECCAK_384]:e.Hasher.Keccak.hash384,[e.types.HashType.KECCAK_512]:e.Hasher.Keccak.hash512,[e.types.HashType.SHA3]:e.Hasher.SHA3.hash256,[e.types.HashType.SHA3_384]:e.Hasher.SHA3.hash384,[e.types.HashType.SHA3_512]:e.Hasher.SHA3.hash512,[e.types.HashType.SHA2]:e.Hasher.SHA2.hash256});const m=y=>e.Hasher.SHA2.hash256(y,1,"hex").replace(/^0x/,"").toUpperCase();e.toTxHash=m})(Oh);var ei={},ict=G$;function act(e,t){return ict(e,t)}var Une=act;const e2t=zt(Une);var fs={},oct=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fs,"__esModule",{value:!0});fs.toStrictHex=fs.toBytes=fs.toBits=fs.DID_PREFIX=void 0;const Hne=oct(Vz),M3=di,jne="did:abt:";fs.DID_PREFIX=jne;const sct=e=>{try{if((0,M3.isHexStrict)(e))return qt.from((0,M3.stripHexPrefix)(e),"hex");let t=(0,M3.fromBase58)(e.replace(jne,""));for(;t.length<26;)t=qt.concat([qt.from([0]),t]);return t}catch(t){throw new Error(`Cannot convert DID string to byte array: ${t.message}`)}};fs.toBytes=sct;const lct=(e,t)=>(0,Hne.default)((0,M3.toBN)(e).toString(2),t,"0");fs.toBits=lct;const uct=(e,t)=>{const n=e.replace(/^0x/i,"");return typeof t=="number"&&t%2===0?(0,Hne.default)(e,t,"0"):n.length%2===0?n:`0${n}`};fs.toStrictHex=uct;var GI=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ei,"__esModule",{value:!0});ei.DidType=ei.toChecksumAddress=ei.isEthereumDid=ei.isEthereumType=ei.toTypeInfoStr=ei.toTypeInfo=ei.fromTypeInfo=ei.DID_TYPE_ETHEREUM=ei.DID_TYPE_ARCBLOCK=void 0;const mp=di,wg=GI(ZE),cct=GI(Une),XH=GI(l8),$r=Oh,nf=fs,_g={pk:"key",address:"encoding"},bR={role:$r.types.RoleType.ROLE_ACCOUNT,pk:$r.types.KeyType.ED25519,hash:$r.types.HashType.SHA3,address:$r.types.EncodingType.BASE58};ei.DID_TYPE_ARCBLOCK=bR;const aA={role:$r.types.RoleType.ROLE_ACCOUNT,pk:$r.types.KeyType.ETHEREUM,hash:$r.types.HashType.KECCAK,address:$r.types.EncodingType.BASE16};ei.DID_TYPE_ETHEREUM=aA;const Vne=e=>{const t=["pk","hash","address"];return(0,cct.default)((0,XH.default)(e,t),(0,XH.default)(aA,t))};ei.isEthereumType=Vne;const Jne=e=>{const t=(0,mp.toAddress)(e);return/^(0x)?[0-9a-f]{40}$/i.test(t)?/^(0x|0X)?[0-9a-f]{40}$/.test(t)||/^(0x|0X)?[0-9A-F]{40}$/.test(t)?!0:fct(t):!1};ei.isEthereumDid=Jne;const fct=e=>{const t=e.replace(/^0x/i,""),n=$r.Hasher.Keccak.hash256(t.toLowerCase()).replace(/^0x/i,"");for(let r=0;r<40;r++)if(parseInt(n[r],16)>7&&t[r].toUpperCase()!==t[r]||parseInt(n[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0},dct=e=>{if(typeof e>"u")return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(e))throw new Error(`Given address "${e}" is not a valid Ethereum address.`);const t=e.toLowerCase().replace(/^0x/i,""),n=$r.Hasher.Keccak.hash256(t).replace(/^0x/i,"");let r="0x";for(let i=0;i<t.length;i++)parseInt(n[i],16)>7?r+=t[i].toUpperCase():r+=t[i];return r};ei.toChecksumAddress=dct;function oA(e={}){let t={};["default","arcblock"].includes(e)?t=bR:["eth","ethereum"].includes(e)?t=aA:t={...bR,...e};const{role:n,pk:r,hash:i,address:a}=t;Object.keys(t).forEach(s=>{const l=(0,wg.default)(`${_g[s]||s}Type`);if(Object.values($r.types[l]).includes(t[s])===!1)throw new Error(`Unsupported ${s} type: ${t[s]}`)});const o={role:n,pk:r,hash:i,address:a};return Vne(o)===!1&&[$r.types.RoleType.ROLE_NODE,$r.types.RoleType.ROLE_VALIDATOR,$r.types.RoleType.ROLE_TETHER,$r.types.RoleType.ROLE_SWAP].includes(o.role)&&(o.hash=$r.types.HashType.SHA2),o}ei.DidType=oA;oA.toJSON=e=>Object.keys(e).reduce((t,n)=>{const r=(0,wg.default)(`${_g[n]||n}Type`),i=Object.keys($r.types[r]),a=Object.values($r.types[r]);return t[n]=i[a.indexOf(e[n])],t},{});oA.fromJSON=e=>Object.keys(e).reduce((t,n)=>{const r=(0,wg.default)(`${_g[n]||n}Type`),i=Object.keys($r.types[r]),a=Object.values($r.types[r]);return t[n]=a[i.indexOf(e[n])],t},{});const pct=e=>{const t=oA(e),n=(0,nf.toBits)(t.role,6),r=(0,nf.toBits)(t.pk,5),i=(0,nf.toBits)(t.hash,5),a=`${n}${r}${i}`,o=(0,mp.stripHexPrefix)((0,mp.numberToHex)(parseInt(a,2)));return(0,nf.toStrictHex)(o,4)};ei.fromTypeInfo=pct;const qne=e=>{let t={};try{if(Jne(e))t=aA;else{const r=(0,nf.toBytes)(e).slice(0,2),i=(0,nf.toStrictHex)(qt.from(r).toString("hex")),a=(0,nf.toBits)(new mp.BN(i,16),16),o=a.slice(0,6),s=a.slice(6,11),l=a.slice(11,16);t={role:parseInt(o,2),pk:parseInt(s,2),hash:parseInt(l,2),address:(0,mp.isHex)((0,mp.toAddress)(e))?$r.types.EncodingType.BASE16:$r.types.EncodingType.BASE58}}return Object.keys(t).forEach(n=>{Object.values($r.types[`${(0,wg.default)(_g[n]||n)}Type`]).includes(t[n])===!1&&delete t[n]}),t}catch{return t}};ei.toTypeInfo=qne;const hct=e=>{const t=qne(e);return Object.keys(t).reduce((n,r)=>{const i=$r.types[`${(0,wg.default)(_g[r]||r)}Type`];return n[r]=Object.keys(i).find(a=>i[a]===t[r]),n},{})};ei.toTypeInfoStr=hct;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DID_TYPE_ETHEREUM=e.DID_TYPE_ARCBLOCK=e.DID_PREFIX=e.DidType=e.fromTypeInfo=e.toTypeInfoStr=e.toTypeInfo=e.isEthereumType=e.isEthereumDid=e.isValid=e.isFromPublicKey=e.toDid=e.toAddress=e.fromHash=e.fromPublicKeyHash=e.fromPublicKey=e.fromSecretKey=e.toStrictHex=e.types=void 0;const t=Oh;Object.defineProperty(e,"types",{enumerable:!0,get:function(){return t.types}});const n=di;Object.defineProperty(e,"toAddress",{enumerable:!0,get:function(){return n.toAddress}}),Object.defineProperty(e,"toDid",{enumerable:!0,get:function(){return n.toDid}});const r=ei;Object.defineProperty(e,"DidType",{enumerable:!0,get:function(){return r.DidType}}),Object.defineProperty(e,"DID_TYPE_ARCBLOCK",{enumerable:!0,get:function(){return r.DID_TYPE_ARCBLOCK}}),Object.defineProperty(e,"DID_TYPE_ETHEREUM",{enumerable:!0,get:function(){return r.DID_TYPE_ETHEREUM}}),Object.defineProperty(e,"fromTypeInfo",{enumerable:!0,get:function(){return r.fromTypeInfo}}),Object.defineProperty(e,"isEthereumDid",{enumerable:!0,get:function(){return r.isEthereumDid}}),Object.defineProperty(e,"isEthereumType",{enumerable:!0,get:function(){return r.isEthereumType}}),Object.defineProperty(e,"toTypeInfo",{enumerable:!0,get:function(){return r.toTypeInfo}}),Object.defineProperty(e,"toTypeInfoStr",{enumerable:!0,get:function(){return r.toTypeInfoStr}});const i=fs;Object.defineProperty(e,"DID_PREFIX",{enumerable:!0,get:function(){return i.DID_PREFIX}}),Object.defineProperty(e,"toStrictHex",{enumerable:!0,get:function(){return i.toStrictHex}});const a=(d,p)=>{const m=(0,r.DidType)(p),y=(0,t.getSigner)(m.pk).getPublicKey(d);return o(y.indexOf("0x")===0?y:`0x${y}`,m)};e.fromSecretKey=a;const o=(d,p)=>{const m=(0,r.DidType)(p),b=(0,t.getHasher)(m.hash)(d,1);return s(b,m)};e.fromPublicKey=o;const s=(d,p)=>{const m=(0,r.DidType)(p),y=(0,n.stripHexPrefix)(d).slice(0,40),b=(0,t.getHasher)(m.hash),_=(0,r.fromTypeInfo)(m),S=(0,n.stripHexPrefix)(b(`0x${_}${y}`,1)).slice(0,8),$=`0x${_}${y}${S}`;return(0,r.isEthereumType)(m)?(0,r.toChecksumAddress)(`0x${d.slice(-40)}`):m.address===t.types.EncodingType.BASE58?(0,n.toBase58)($):$};e.fromPublicKeyHash=s;const l=(d,p=t.types.RoleType.ROLE_ACCOUNT)=>{const m=Object.keys(t.types.RoleType),y=Object.values(t.types.RoleType);if(y.indexOf(p)===-1)throw new Error(`Unsupported role type ${p} when gen ddi from hash`);const b=(0,r.DidType)({role:t.types.RoleType[m[y.indexOf(p)]]});return s(d,b)};e.fromHash=l;const c=(d,p)=>{if(u(d)===!1)return!1;const m=(0,r.toTypeInfo)(d),y=o(p,m),b=d.replace(i.DID_PREFIX,"");return y===b};e.isFromPublicKey=c;const u=d=>{if(!d)return!1;const p=(0,n.toAddress)(String(d)),{hash:m}=(0,r.toTypeInfo)(p);if(typeof m>"u")return!1;if((0,r.isEthereumDid)(p))return!0;const y=(0,t.getHasher)(m),b=(0,i.toBytes)(p),_=(0,i.toStrictHex)(qt.from(b.slice(0,22)).toString("hex")),S=(0,i.toStrictHex)(qt.from(b.slice(22,26)).toString("hex")),$=(0,n.stripHexPrefix)(y(`0x${_}`,1)).slice(0,8);return S===$};e.isValid=u})(gne);var zI=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zs,"__esModule",{value:!0});zs.verify=zs.decode=zs.signV2=zs.sign=void 0;const QH=zI(mne),pb=zI(Jee),Fu=di,T1=gne,ja=Oh,mct=zI(W$),bo=(0,mct.default)("@arcblock/jwt"),Gne="1.1.0",zne=ja.Hasher.SHA3.hash256;function Wne(e,t,n={},r=!0,i="1.0.0"){if((0,T1.isValid)(e)===!1)throw new Error("Cannot do sign with invalid signer");const a=(0,T1.toTypeInfo)(e),s={[ja.types.KeyType.SECP256K1]:{alg:"ES256K",type:"JWT"},[ja.types.KeyType.ED25519]:{alg:"Ed25519",type:"JWT"},[ja.types.KeyType.ETHEREUM]:{alg:"Ethereum",type:"JWT"}}[a.pk],l=(0,Fu.toBase64)((0,QH.default)(s)),c=Math.floor(Date.now()/1e3),u={iss:(0,T1.toDid)(e),iat:String(c),nbf:String(c),exp:String(c+5*60),version:i,...n||{}};Object.keys(u).forEach(_=>{(typeof u[_]>"u"||u[_]==null||u[_]==="")&&delete u[_]});const d=(0,Fu.toBase64)((0,QH.default)(u));if(bo("sign.body",u),!r)return`${l}.${d}`;const p=(0,Fu.toHex)(`${l}.${d}`),m=pb.default.gte(pb.default.coerce(i).version,Gne)?zne(p):p,y=(0,ja.getSigner)(a.pk).sign(m,t),b=(0,Fu.toBase64)(y);return[l,d,b].join(".")}zs.sign=Wne;function gct(e,t,n={}){return Wne(e,t,n,!!t,"1.1.0")}zs.signV2=gct;function Kne(e,t=!0){const[n,r,i]=e.split("."),a=JSON.parse((0,Fu.fromBase64)(n).toString()),o=JSON.parse((0,Fu.fromBase64)(r).toString()),s=qt.from((0,Fu.fromBase64)(i)).toString("hex");return t?o:{header:a,body:o,signature:`0x${(0,T1.toStrictHex)(s)}`}}zs.decode=Kne;function yct(e,t,n){const{tolerance:r,enforceTimestamp:i,signerKey:a}=Object.assign({tolerance:5,enforceTimestamp:!0,signerKey:"iss"},n);try{const[o,s]=e.split("."),{header:l,body:c,signature:u}=Kne(e,!1);if(!u)return bo("verify.error.emptySig"),!1;if(!l.alg)return bo("verify.error.emptyAlg"),!1;const d=c[a];if(!d)return bo("verify.error.emptySignerDid"),!1;if((0,T1.isFromPublicKey)(d,t)===!1)return bo("verify.error.signerDidAndPkNotMatch"),!1;if(i){const y=Math.ceil(Date.now()/1e3),b=Number(c.exp)||0,_=Number(c.iat)||0,S=Number(c.nbf)||0;if(bo("verify.enforceTimestamp",{now:y,exp:b,iat:_,nbf:S}),b&&b+r<y)return bo("verify.error.expired"),!1;if(_&&_>y&&_-y>r)return bo("verify.error.issuedAt"),!1;if(S&&S>y&&S-y>r)return bo("verify.error.notBefore"),!1}const p={secp256k1:(0,ja.getSigner)(ja.types.KeyType.SECP256K1),es256k:(0,ja.getSigner)(ja.types.KeyType.SECP256K1),ed25519:(0,ja.getSigner)(ja.types.KeyType.ED25519),ethereum:(0,ja.getSigner)(ja.types.KeyType.ETHEREUM)},m=l.alg.toLowerCase();if(p[m]){const y=(0,Fu.toHex)(`${o}.${s}`),b=c.version&&pb.default.coerce(c.version)?pb.default.coerce(c.version).version:"";return b&&b===Gne?p[m].verify(zne(y),u,t):p[m].verify(y,u,t)}return bo("verify.error.crypto"),!1}catch(o){return bo("verify.error.exception"),bo(o),!1}}zs.verify=yct;var TR={exports:{}};(function(e,t){var n=typeof self<"u"?self:ft,r=function(){function a(){this.fetch=!1,this.DOMException=n.DOMException}return a.prototype=n,new a}();(function(a){(function(o){var s={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function l(f){return f&&DataView.prototype.isPrototypeOf(f)}if(s.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(f){return f&&c.indexOf(Object.prototype.toString.call(f))>-1};function d(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(f))throw new TypeError("Invalid character in header field name");return f.toLowerCase()}function p(f){return typeof f!="string"&&(f=String(f)),f}function m(f){var h={next:function(){var T=f.shift();return{done:T===void 0,value:T}}};return s.iterable&&(h[Symbol.iterator]=function(){return h}),h}function y(f){this.map={},f instanceof y?f.forEach(function(h,T){this.append(T,h)},this):Array.isArray(f)?f.forEach(function(h){this.append(h[0],h[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(h){this.append(h,f[h])},this)}y.prototype.append=function(f,h){f=d(f),h=p(h);var T=this.map[f];this.map[f]=T?T+", "+h:h},y.prototype.delete=function(f){delete this.map[d(f)]},y.prototype.get=function(f){return f=d(f),this.has(f)?this.map[f]:null},y.prototype.has=function(f){return this.map.hasOwnProperty(d(f))},y.prototype.set=function(f,h){this.map[d(f)]=p(h)},y.prototype.forEach=function(f,h){for(var T in this.map)this.map.hasOwnProperty(T)&&f.call(h,this.map[T],T,this)},y.prototype.keys=function(){var f=[];return this.forEach(function(h,T){f.push(T)}),m(f)},y.prototype.values=function(){var f=[];return this.forEach(function(h){f.push(h)}),m(f)},y.prototype.entries=function(){var f=[];return this.forEach(function(h,T){f.push([T,h])}),m(f)},s.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function b(f){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}function _(f){return new Promise(function(h,T){f.onload=function(){h(f.result)},f.onerror=function(){T(f.error)}})}function S(f){var h=new FileReader,T=_(h);return h.readAsArrayBuffer(f),T}function $(f){var h=new FileReader,T=_(h);return h.readAsText(f),T}function D(f){for(var h=new Uint8Array(f),T=new Array(h.length),w=0;w<h.length;w++)T[w]=String.fromCharCode(h[w]);return T.join("")}function P(f){if(f.slice)return f.slice(0);var h=new Uint8Array(f.byteLength);return h.set(new Uint8Array(f)),h.buffer}function U(){return this.bodyUsed=!1,this._initBody=function(f){this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:s.blob&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:s.formData&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:s.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():s.arrayBuffer&&s.blob&&l(f)?(this._bodyArrayBuffer=P(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(f)||u(f))?this._bodyArrayBuffer=P(f):this._bodyText=f=Object.prototype.toString.call(f):this._bodyText="",this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):s.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s.blob&&(this.blob=function(){var f=b(this);if(f)return f;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?b(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(S)}),this.text=function(){var f=b(this);if(f)return f;if(this._bodyBlob)return $(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(D(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s.formData&&(this.formData=function(){return this.text().then(ie)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function F(f){var h=f.toUpperCase();return L.indexOf(h)>-1?h:f}function G(f,h){h=h||{};var T=h.body;if(f instanceof G){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,h.headers||(this.headers=new y(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!T&&f._bodyInit!=null&&(T=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=h.credentials||this.credentials||"same-origin",(h.headers||!this.headers)&&(this.headers=new y(h.headers)),this.method=F(h.method||this.method||"GET"),this.mode=h.mode||this.mode||null,this.signal=h.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&T)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(T)}G.prototype.clone=function(){return new G(this,{body:this._bodyInit})};function ie(f){var h=new FormData;return f.trim().split("&").forEach(function(T){if(T){var w=T.split("="),R=w.shift().replace(/\+/g," "),I=w.join("=").replace(/\+/g," ");h.append(decodeURIComponent(R),decodeURIComponent(I))}}),h}function se(f){var h=new y,T=f.replace(/\r?\n[\t ]+/g," ");return T.split(/\r?\n/).forEach(function(w){var R=w.split(":"),I=R.shift().trim();if(I){var C=R.join(":").trim();h.append(I,C)}}),h}U.call(G.prototype);function K(f,h){h||(h={}),this.type="default",this.status=h.status===void 0?200:h.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in h?h.statusText:"OK",this.headers=new y(h.headers),this.url=h.url||"",this._initBody(f)}U.call(K.prototype),K.prototype.clone=function(){return new K(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},K.error=function(){var f=new K(null,{status:0,statusText:""});return f.type="error",f};var B=[301,302,303,307,308];K.redirect=function(f,h){if(B.indexOf(h)===-1)throw new RangeError("Invalid status code");return new K(null,{status:h,headers:{location:f}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(h,T){this.message=h,this.name=T;var w=Error(h);this.stack=w.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function E(f,h){return new Promise(function(T,w){var R=new G(f,h);if(R.signal&&R.signal.aborted)return w(new o.DOMException("Aborted","AbortError"));var I=new XMLHttpRequest;function C(){I.abort()}I.onload=function(){var x={status:I.status,statusText:I.statusText,headers:se(I.getAllResponseHeaders()||"")};x.url="responseURL"in I?I.responseURL:x.headers.get("X-Request-URL");var v="response"in I?I.response:I.responseText;T(new K(v,x))},I.onerror=function(){w(new TypeError("Network request failed"))},I.ontimeout=function(){w(new TypeError("Network request failed"))},I.onabort=function(){w(new o.DOMException("Aborted","AbortError"))},I.open(R.method,R.url,!0),R.credentials==="include"?I.withCredentials=!0:R.credentials==="omit"&&(I.withCredentials=!1),"responseType"in I&&s.blob&&(I.responseType="blob"),R.headers.forEach(function(x,v){I.setRequestHeader(v,x)}),R.signal&&(R.signal.addEventListener("abort",C),I.onreadystatechange=function(){I.readyState===4&&R.signal.removeEventListener("abort",C)}),I.send(typeof R._bodyInit>"u"?null:R._bodyInit)})}return E.polyfill=!0,a.fetch||(a.fetch=E,a.Headers=y,a.Request=G,a.Response=K),o.Headers=y,o.Request=G,o.Response=K,o.fetch=E,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t})(TR,TR.exports);var vct=TR.exports,bct="Expected a function",Yne="__lodash_hash_undefined__",Zne=1/0,Tct=9007199254740991,Ect="[object Function]",Act="[object GeneratorFunction]",Sct="[object Symbol]",wct=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_ct=/^\w*$/,Cct=/^\./,Rct=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xct=/[\\^$.*+?()[\]{}|]/g,$ct=/\\(\\)?/g,Ict=/^\[object .+?Constructor\]$/,kct=/^(?:0|[1-9]\d*)$/,Dct=typeof ft=="object"&&ft&&ft.Object===Object&&ft,Lct=typeof self=="object"&&self&&self.Object===Object&&self,WI=Dct||Lct||Function("return this")();function Oct(e,t){return e==null?void 0:e[t]}function Pct(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Mct=Array.prototype,Bct=Function.prototype,Xne=Object.prototype,a5=WI["__core-js_shared__"],ej=function(){var e=/[^.]+$/.exec(a5&&a5.keys&&a5.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Qne=Bct.toString,sA=Xne.hasOwnProperty,ere=Xne.toString,Nct=RegExp("^"+Qne.call(sA).replace(xct,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tj=WI.Symbol,Fct=Mct.splice,Uct=tre(WI,"Map"),fm=tre(Object,"create"),nj=tj?tj.prototype:void 0,rj=nj?nj.toString:void 0;function Df(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hct(){this.__data__=fm?fm(null):{}}function jct(e){return this.has(e)&&delete this.__data__[e]}function Vct(e){var t=this.__data__;if(fm){var n=t[e];return n===Yne?void 0:n}return sA.call(t,e)?t[e]:void 0}function Jct(e){var t=this.__data__;return fm?t[e]!==void 0:sA.call(t,e)}function qct(e,t){var n=this.__data__;return n[e]=fm&&t===void 0?Yne:t,this}Df.prototype.clear=Hct;Df.prototype.delete=jct;Df.prototype.get=Vct;Df.prototype.has=Jct;Df.prototype.set=qct;function Mh(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gct(){this.__data__=[]}function zct(e){var t=this.__data__,n=lA(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Fct.call(t,n,1),!0}function Wct(e){var t=this.__data__,n=lA(t,e);return n<0?void 0:t[n][1]}function Kct(e){return lA(this.__data__,e)>-1}function Yct(e,t){var n=this.__data__,r=lA(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Mh.prototype.clear=Gct;Mh.prototype.delete=zct;Mh.prototype.get=Wct;Mh.prototype.has=Kct;Mh.prototype.set=Yct;function Hf(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zct(){this.__data__={hash:new Df,map:new(Uct||Mh),string:new Df}}function Xct(e){return uA(this,e).delete(e)}function Qct(e){return uA(this,e).get(e)}function eft(e){return uA(this,e).has(e)}function tft(e,t){return uA(this,e).set(e,t),this}Hf.prototype.clear=Zct;Hf.prototype.delete=Xct;Hf.prototype.get=Qct;Hf.prototype.has=eft;Hf.prototype.set=tft;function nft(e,t,n){var r=e[t];(!(sA.call(e,t)&&nre(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function lA(e,t){for(var n=e.length;n--;)if(nre(e[n][0],t))return n;return-1}function rft(e){if(!hb(e)||cft(e))return!1;var t=hft(e)||Pct(e)?Nct:Ict;return t.test(pft(e))}function ift(e,t,n,r){if(!hb(e))return e;t=lft(t,e)?[t]:oft(t);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=dft(t[i]),c=n;if(i!=o){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=hb(u)?u:sft(t[i+1])?[]:{})}nft(s,l,c),s=s[l]}return e}function aft(e){if(typeof e=="string")return e;if(YI(e))return rj?rj.call(e):"";var t=e+"";return t=="0"&&1/e==-Zne?"-0":t}function oft(e){return rre(e)?e:fft(e)}function uA(e,t){var n=e.__data__;return uft(t)?n[typeof t=="string"?"string":"hash"]:n.map}function tre(e,t){var n=Oct(e,t);return rft(n)?n:void 0}function sft(e,t){return t=t??Tct,!!t&&(typeof e=="number"||kct.test(e))&&e>-1&&e%1==0&&e<t}function lft(e,t){if(rre(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||YI(e)?!0:_ct.test(e)||!wct.test(e)||t!=null&&e in Object(t)}function uft(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cft(e){return!!ej&&ej in e}var fft=KI(function(e){e=gft(e);var t=[];return Cct.test(e)&&t.push(""),e.replace(Rct,function(n,r,i,a){t.push(i?a.replace($ct,"$1"):r||n)}),t});function dft(e){if(typeof e=="string"||YI(e))return e;var t=e+"";return t=="0"&&1/e==-Zne?"-0":t}function pft(e){if(e!=null){try{return Qne.call(e)}catch{}try{return e+""}catch{}}return""}function KI(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(bct);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(KI.Cache||Hf),n}KI.Cache=Hf;function nre(e,t){return e===t||e!==e&&t!==t}var rre=Array.isArray;function hft(e){var t=hb(e)?ere.call(e):"";return t==Ect||t==Act}function hb(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function mft(e){return!!e&&typeof e=="object"}function YI(e){return typeof e=="symbol"||mft(e)&&ere.call(e)==Sct}function gft(e){return e==null?"":aft(e)}function yft(e,t,n){return e==null?e:ift(e,t,n)}var vft=yft,bft="Expected a function",ire="__lodash_hash_undefined__",are=1/0,Tft="[object Function]",Eft="[object GeneratorFunction]",Aft="[object Symbol]",Sft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wft=/^\w*$/,_ft=/^\./,Cft=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rft=/[\\^$.*+?()[\]{}|]/g,xft=/\\(\\)?/g,$ft=/^\[object .+?Constructor\]$/,Ift=typeof ft=="object"&&ft&&ft.Object===Object&&ft,kft=typeof self=="object"&&self&&self.Object===Object&&self,ZI=Ift||kft||Function("return this")();function Dft(e,t){return e==null?void 0:e[t]}function Lft(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Oft=Array.prototype,Pft=Function.prototype,ore=Object.prototype,o5=ZI["__core-js_shared__"],ij=function(){var e=/[^.]+$/.exec(o5&&o5.keys&&o5.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),sre=Pft.toString,XI=ore.hasOwnProperty,lre=ore.toString,Mft=RegExp("^"+sre.call(XI).replace(Rft,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),aj=ZI.Symbol,Bft=Oft.splice,Nft=ure(ZI,"Map"),dm=ure(Object,"create"),oj=aj?aj.prototype:void 0,sj=oj?oj.toString:void 0;function Lf(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fft(){this.__data__=dm?dm(null):{}}function Uft(e){return this.has(e)&&delete this.__data__[e]}function Hft(e){var t=this.__data__;if(dm){var n=t[e];return n===ire?void 0:n}return XI.call(t,e)?t[e]:void 0}function jft(e){var t=this.__data__;return dm?t[e]!==void 0:XI.call(t,e)}function Vft(e,t){var n=this.__data__;return n[e]=dm&&t===void 0?ire:t,this}Lf.prototype.clear=Fft;Lf.prototype.delete=Uft;Lf.prototype.get=Hft;Lf.prototype.has=jft;Lf.prototype.set=Vft;function Bh(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Jft(){this.__data__=[]}function qft(e){var t=this.__data__,n=cA(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Bft.call(t,n,1),!0}function Gft(e){var t=this.__data__,n=cA(t,e);return n<0?void 0:t[n][1]}function zft(e){return cA(this.__data__,e)>-1}function Wft(e,t){var n=this.__data__,r=cA(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Bh.prototype.clear=Jft;Bh.prototype.delete=qft;Bh.prototype.get=Gft;Bh.prototype.has=zft;Bh.prototype.set=Wft;function jf(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kft(){this.__data__={hash:new Lf,map:new(Nft||Bh),string:new Lf}}function Yft(e){return fA(this,e).delete(e)}function Zft(e){return fA(this,e).get(e)}function Xft(e){return fA(this,e).has(e)}function Qft(e,t){return fA(this,e).set(e,t),this}jf.prototype.clear=Kft;jf.prototype.delete=Yft;jf.prototype.get=Zft;jf.prototype.has=Xft;jf.prototype.set=Qft;function cA(e,t){for(var n=e.length;n--;)if(cdt(e[n][0],t))return n;return-1}function edt(e,t){t=idt(t,e)?[t]:rdt(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ldt(t[n++])];return n&&n==r?e:void 0}function tdt(e){if(!fre(e)||odt(e))return!1;var t=fdt(e)||Lft(e)?Mft:$ft;return t.test(udt(e))}function ndt(e){if(typeof e=="string")return e;if(ek(e))return sj?sj.call(e):"";var t=e+"";return t=="0"&&1/e==-are?"-0":t}function rdt(e){return cre(e)?e:sdt(e)}function fA(e,t){var n=e.__data__;return adt(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ure(e,t){var n=Dft(e,t);return tdt(n)?n:void 0}function idt(e,t){if(cre(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ek(e)?!0:wft.test(e)||!Sft.test(e)||t!=null&&e in Object(t)}function adt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function odt(e){return!!ij&&ij in e}var sdt=QI(function(e){e=pdt(e);var t=[];return _ft.test(e)&&t.push(""),e.replace(Cft,function(n,r,i,a){t.push(i?a.replace(xft,"$1"):r||n)}),t});function ldt(e){if(typeof e=="string"||ek(e))return e;var t=e+"";return t=="0"&&1/e==-are?"-0":t}function udt(e){if(e!=null){try{return sre.call(e)}catch{}try{return e+""}catch{}}return""}function QI(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(bft);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(QI.Cache||jf),n}QI.Cache=jf;function cdt(e,t){return e===t||e!==e&&t!==t}var cre=Array.isArray;function fdt(e){var t=fre(e)?lre.call(e):"";return t==Tft||t==Eft}function fre(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ddt(e){return!!e&&typeof e=="object"}function ek(e){return typeof e=="symbol"||ddt(e)&&lre.call(e)==Aft}function pdt(e){return e==null?"":ndt(e)}function hdt(e,t,n){var r=e==null?void 0:edt(e,t);return r===void 0?n:r}var mdt=hdt;function gdt(e){return`"${e.replace(ydt,vdt)}"`}const ydt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function vdt(e){return bdt[e.charCodeAt(0)]}const bdt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Tdt=Object.freeze({});function Edt(e,t,n=ine){const r=new Map;for(const S of Object.values(sn))r.set(S,Adt(t,S));let i,a=Array.isArray(e),o=[e],s=-1,l=[],c=e,u,d;const p=[],m=[];do{s++;const S=s===o.length,$=S&&l.length!==0;if(S){if(u=m.length===0?void 0:p[p.length-1],c=d,d=m.pop(),$)if(a){c=c.slice();let P=0;for(const[U,L]of l){const F=U-P;L===null?(c.splice(F,1),P++):c[F]=L}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(const[P,U]of l)c[P]=U}s=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(d){if(u=a?s:o[s],c=d[u],c==null)continue;p.push(u)}let D;if(!Array.isArray(c)){var y,b;FH(c)||O3(!1,`Invalid AST Node: ${cne(c)}.`);const P=S?(y=r.get(c.kind))===null||y===void 0?void 0:y.leave:(b=r.get(c.kind))===null||b===void 0?void 0:b.enter;if(D=P==null?void 0:P.call(t,c,u,d,p,m),D===Tdt)break;if(D===!1){if(!S){p.pop();continue}}else if(D!==void 0&&(l.push([u,D]),!S))if(FH(D))c=D;else{p.pop();continue}}if(D===void 0&&$&&l.push([u,c]),S)p.pop();else{var _;i={inArray:a,index:s,keys:o,edits:l,prev:i},a=Array.isArray(c),o=a?c:(_=n[c.kind])!==null&&_!==void 0?_:[],s=-1,l=[],d&&m.push(d),d=c}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function Adt(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Sdt(e){return Edt(e,_dt)}const wdt=80,_dt={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Gt(e.definitions,`
|
|
567
|
+
${r.length}`,o=qt.from(a),s=qt.concat([o,i]);return nct.default.keccak256s(s)}ethSign(t,n){return ZH.default.sign(t,n)}ethRecover(t,n){return ZH.default.recover(t,n)}}Sg.EthereumSigner=Fne;Sg.default=new Fne;(function(e){var t=ft&&ft.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.toTxHash=e.Hashers=e.Signers=e.getRandomBytes=e.getHasher=e.getSigner=e.types=e.Hasher=e.Signer=void 0;const n=t(lu),r=cu,i=t(bg),a=t(Tg),o=t(Eg),s=t(Ag),l=t(Sg),c=t(Ph);e.Signer={Ed25519:s.default,Secp256k1:c.default,Ethereum:l.default},e.Hasher={SHA2:a.default,SHA3:o.default,Keccak:i.default},e.types={KeyType:{ED25519:0,SECP256K1:1,ETHEREUM:2},HashType:{KECCAK:0,SHA3:1,KECCAK_384:2,SHA3_384:3,KECCAK_512:4,SHA3_512:5,SHA2:6},RoleType:{ROLE_ACCOUNT:0,ROLE_NODE:1,ROLE_DEVICE:2,ROLE_APPLICATION:3,ROLE_SMART_CONTRACT:4,ROLE_BOT:5,ROLE_ASSET:6,ROLE_STAKE:7,ROLE_VALIDATOR:8,ROLE_GROUP:9,ROLE_TX:10,ROLE_TETHER:11,ROLE_SWAP:12,ROLE_DELEGATION:13,ROLE_VC:14,ROLE_BLOCKLET:15,ROLE_STORE:16,ROLE_TOKEN:17,ROLE_FACTORY:18,ROLE_ROLLUP:19,ROLE_STORAGE:20,ROLE_PROFILE:21,ROLE_ANY:63},EncodingType:{BASE16:0,BASE58:1}};function u(y){if(typeof e.Signers[y]>"u")throw new Error(`Unsupported signer type: ${y}`);return e.Signers[y]}e.getSigner=u;function d(y){if(typeof e.Hashers[y]>"u")throw new Error(`Unsupported hash type: ${y}`);return e.Hashers[y]}e.getHasher=d;function p(y=32,b="hex"){return(0,r.encode)((0,n.default)(y),b)}e.getRandomBytes=p,e.Signers=Object.freeze({[e.types.KeyType.ED25519]:e.Signer.Ed25519,[e.types.KeyType.SECP256K1]:e.Signer.Secp256k1,[e.types.KeyType.ETHEREUM]:e.Signer.Ethereum}),e.Hashers=Object.freeze({[e.types.HashType.KECCAK]:e.Hasher.Keccak.hash256,[e.types.HashType.KECCAK_384]:e.Hasher.Keccak.hash384,[e.types.HashType.KECCAK_512]:e.Hasher.Keccak.hash512,[e.types.HashType.SHA3]:e.Hasher.SHA3.hash256,[e.types.HashType.SHA3_384]:e.Hasher.SHA3.hash384,[e.types.HashType.SHA3_512]:e.Hasher.SHA3.hash512,[e.types.HashType.SHA2]:e.Hasher.SHA2.hash256});const m=y=>e.Hasher.SHA2.hash256(y,1,"hex").replace(/^0x/,"").toUpperCase();e.toTxHash=m})(Oh);var ei={},ict=G$;function act(e,t){return ict(e,t)}var Une=act;const e2t=zt(Une);var fs={},oct=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fs,"__esModule",{value:!0});fs.toStrictHex=fs.toBytes=fs.toBits=fs.DID_PREFIX=void 0;const Hne=oct(Vz),M3=di,jne="did:abt:";fs.DID_PREFIX=jne;const sct=e=>{try{if((0,M3.isHexStrict)(e))return qt.from((0,M3.stripHexPrefix)(e),"hex");let t=(0,M3.fromBase58)(e.replace(jne,""));for(;t.length<26;)t=qt.concat([qt.from([0]),t]);return t}catch(t){throw new Error(`Cannot convert DID string to byte array: ${t.message}`)}};fs.toBytes=sct;const lct=(e,t)=>(0,Hne.default)((0,M3.toBN)(e).toString(2),t,"0");fs.toBits=lct;const uct=(e,t)=>{const n=e.replace(/^0x/i,"");return typeof t=="number"&&t%2===0?(0,Hne.default)(e,t,"0"):n.length%2===0?n:`0${n}`};fs.toStrictHex=uct;var GI=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ei,"__esModule",{value:!0});ei.DidType=ei.toChecksumAddress=ei.isEthereumDid=ei.isEthereumType=ei.toTypeInfoStr=ei.toTypeInfo=ei.fromTypeInfo=ei.DID_TYPE_ETHEREUM=ei.DID_TYPE_ARCBLOCK=void 0;const mp=di,wg=GI(ZE),cct=GI(Une),XH=GI(l8),$r=Oh,nf=fs,_g={pk:"key",address:"encoding"},bR={role:$r.types.RoleType.ROLE_ACCOUNT,pk:$r.types.KeyType.ED25519,hash:$r.types.HashType.SHA3,address:$r.types.EncodingType.BASE58};ei.DID_TYPE_ARCBLOCK=bR;const aA={role:$r.types.RoleType.ROLE_ACCOUNT,pk:$r.types.KeyType.ETHEREUM,hash:$r.types.HashType.KECCAK,address:$r.types.EncodingType.BASE16};ei.DID_TYPE_ETHEREUM=aA;const Vne=e=>{const t=["pk","hash","address"];return(0,cct.default)((0,XH.default)(e,t),(0,XH.default)(aA,t))};ei.isEthereumType=Vne;const Jne=e=>{const t=(0,mp.toAddress)(e);return/^(0x)?[0-9a-f]{40}$/i.test(t)?/^(0x|0X)?[0-9a-f]{40}$/.test(t)||/^(0x|0X)?[0-9A-F]{40}$/.test(t)?!0:fct(t):!1};ei.isEthereumDid=Jne;const fct=e=>{const t=e.replace(/^0x/i,""),n=$r.Hasher.Keccak.hash256(t.toLowerCase()).replace(/^0x/i,"");for(let r=0;r<40;r++)if(parseInt(n[r],16)>7&&t[r].toUpperCase()!==t[r]||parseInt(n[r],16)<=7&&t[r].toLowerCase()!==t[r])return!1;return!0},dct=e=>{if(typeof e>"u")return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(e))throw new Error(`Given address "${e}" is not a valid Ethereum address.`);const t=e.toLowerCase().replace(/^0x/i,""),n=$r.Hasher.Keccak.hash256(t).replace(/^0x/i,"");let r="0x";for(let i=0;i<t.length;i++)parseInt(n[i],16)>7?r+=t[i].toUpperCase():r+=t[i];return r};ei.toChecksumAddress=dct;function oA(e={}){let t={};["default","arcblock"].includes(e)?t=bR:["eth","ethereum"].includes(e)?t=aA:t={...bR,...e};const{role:n,pk:r,hash:i,address:a}=t;Object.keys(t).forEach(s=>{const l=(0,wg.default)(`${_g[s]||s}Type`);if(Object.values($r.types[l]).includes(t[s])===!1)throw new Error(`Unsupported ${s} type: ${t[s]}`)});const o={role:n,pk:r,hash:i,address:a};return Vne(o)===!1&&[$r.types.RoleType.ROLE_NODE,$r.types.RoleType.ROLE_VALIDATOR,$r.types.RoleType.ROLE_TETHER,$r.types.RoleType.ROLE_SWAP].includes(o.role)&&(o.hash=$r.types.HashType.SHA2),o}ei.DidType=oA;oA.toJSON=e=>Object.keys(e).reduce((t,n)=>{const r=(0,wg.default)(`${_g[n]||n}Type`),i=Object.keys($r.types[r]),a=Object.values($r.types[r]);return t[n]=i[a.indexOf(e[n])],t},{});oA.fromJSON=e=>Object.keys(e).reduce((t,n)=>{const r=(0,wg.default)(`${_g[n]||n}Type`),i=Object.keys($r.types[r]),a=Object.values($r.types[r]);return t[n]=a[i.indexOf(e[n])],t},{});const pct=e=>{const t=oA(e),n=(0,nf.toBits)(t.role,6),r=(0,nf.toBits)(t.pk,5),i=(0,nf.toBits)(t.hash,5),a=`${n}${r}${i}`,o=(0,mp.stripHexPrefix)((0,mp.numberToHex)(parseInt(a,2)));return(0,nf.toStrictHex)(o,4)};ei.fromTypeInfo=pct;const qne=e=>{let t={};try{if(Jne(e))t=aA;else{const r=(0,nf.toBytes)(e).slice(0,2),i=(0,nf.toStrictHex)(qt.from(r).toString("hex")),a=(0,nf.toBits)(new mp.BN(i,16),16),o=a.slice(0,6),s=a.slice(6,11),l=a.slice(11,16);t={role:parseInt(o,2),pk:parseInt(s,2),hash:parseInt(l,2),address:(0,mp.isHex)((0,mp.toAddress)(e))?$r.types.EncodingType.BASE16:$r.types.EncodingType.BASE58}}return Object.keys(t).forEach(n=>{Object.values($r.types[`${(0,wg.default)(_g[n]||n)}Type`]).includes(t[n])===!1&&delete t[n]}),t}catch{return t}};ei.toTypeInfo=qne;const hct=e=>{const t=qne(e);return Object.keys(t).reduce((n,r)=>{const i=$r.types[`${(0,wg.default)(_g[r]||r)}Type`];return n[r]=Object.keys(i).find(a=>i[a]===t[r]),n},{})};ei.toTypeInfoStr=hct;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DID_TYPE_ETHEREUM=e.DID_TYPE_ARCBLOCK=e.DID_PREFIX=e.DidType=e.fromTypeInfo=e.toTypeInfoStr=e.toTypeInfo=e.isEthereumType=e.isEthereumDid=e.isValid=e.isFromPublicKey=e.toDid=e.toAddress=e.fromHash=e.fromPublicKeyHash=e.fromPublicKey=e.fromSecretKey=e.toStrictHex=e.types=void 0;const t=Oh;Object.defineProperty(e,"types",{enumerable:!0,get:function(){return t.types}});const n=di;Object.defineProperty(e,"toAddress",{enumerable:!0,get:function(){return n.toAddress}}),Object.defineProperty(e,"toDid",{enumerable:!0,get:function(){return n.toDid}});const r=ei;Object.defineProperty(e,"DidType",{enumerable:!0,get:function(){return r.DidType}}),Object.defineProperty(e,"DID_TYPE_ARCBLOCK",{enumerable:!0,get:function(){return r.DID_TYPE_ARCBLOCK}}),Object.defineProperty(e,"DID_TYPE_ETHEREUM",{enumerable:!0,get:function(){return r.DID_TYPE_ETHEREUM}}),Object.defineProperty(e,"fromTypeInfo",{enumerable:!0,get:function(){return r.fromTypeInfo}}),Object.defineProperty(e,"isEthereumDid",{enumerable:!0,get:function(){return r.isEthereumDid}}),Object.defineProperty(e,"isEthereumType",{enumerable:!0,get:function(){return r.isEthereumType}}),Object.defineProperty(e,"toTypeInfo",{enumerable:!0,get:function(){return r.toTypeInfo}}),Object.defineProperty(e,"toTypeInfoStr",{enumerable:!0,get:function(){return r.toTypeInfoStr}});const i=fs;Object.defineProperty(e,"DID_PREFIX",{enumerable:!0,get:function(){return i.DID_PREFIX}}),Object.defineProperty(e,"toStrictHex",{enumerable:!0,get:function(){return i.toStrictHex}});const a=(d,p)=>{const m=(0,r.DidType)(p),y=(0,t.getSigner)(m.pk).getPublicKey(d);return o(y.indexOf("0x")===0?y:`0x${y}`,m)};e.fromSecretKey=a;const o=(d,p)=>{const m=(0,r.DidType)(p),b=(0,t.getHasher)(m.hash)(d,1);return s(b,m)};e.fromPublicKey=o;const s=(d,p)=>{const m=(0,r.DidType)(p),y=(0,n.stripHexPrefix)(d).slice(0,40),b=(0,t.getHasher)(m.hash),_=(0,r.fromTypeInfo)(m),S=(0,n.stripHexPrefix)(b(`0x${_}${y}`,1)).slice(0,8),$=`0x${_}${y}${S}`;return(0,r.isEthereumType)(m)?(0,r.toChecksumAddress)(`0x${d.slice(-40)}`):m.address===t.types.EncodingType.BASE58?(0,n.toBase58)($):$};e.fromPublicKeyHash=s;const l=(d,p=t.types.RoleType.ROLE_ACCOUNT)=>{const m=Object.keys(t.types.RoleType),y=Object.values(t.types.RoleType);if(y.indexOf(p)===-1)throw new Error(`Unsupported role type ${p} when gen ddi from hash`);const b=(0,r.DidType)({role:t.types.RoleType[m[y.indexOf(p)]]});return s(d,b)};e.fromHash=l;const c=(d,p)=>{if(u(d)===!1)return!1;const m=(0,r.toTypeInfo)(d),y=o(p,m),b=d.replace(i.DID_PREFIX,"");return y===b};e.isFromPublicKey=c;const u=d=>{if(!d)return!1;const p=(0,n.toAddress)(String(d)),{hash:m}=(0,r.toTypeInfo)(p);if(typeof m>"u")return!1;if((0,r.isEthereumDid)(p))return!0;const y=(0,t.getHasher)(m),b=(0,i.toBytes)(p),_=(0,i.toStrictHex)(qt.from(b.slice(0,22)).toString("hex")),S=(0,i.toStrictHex)(qt.from(b.slice(22,26)).toString("hex")),$=(0,n.stripHexPrefix)(y(`0x${_}`,1)).slice(0,8);return S===$};e.isValid=u})(gne);var zI=ft&&ft.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zs,"__esModule",{value:!0});zs.verify=zs.decode=zs.signV2=zs.sign=void 0;const QH=zI(mne),pb=zI(Jee),Fu=di,T1=gne,ja=Oh,mct=zI(W$),bo=(0,mct.default)("@arcblock/jwt"),Gne="1.1.0",zne=ja.Hasher.SHA3.hash256;function Wne(e,t,n={},r=!0,i="1.0.0"){if((0,T1.isValid)(e)===!1)throw new Error("Cannot do sign with invalid signer");const a=(0,T1.toTypeInfo)(e),s={[ja.types.KeyType.SECP256K1]:{alg:"ES256K",type:"JWT"},[ja.types.KeyType.ED25519]:{alg:"Ed25519",type:"JWT"},[ja.types.KeyType.ETHEREUM]:{alg:"Ethereum",type:"JWT"}}[a.pk],l=(0,Fu.toBase64)((0,QH.default)(s)),c=Math.floor(Date.now()/1e3),u={iss:(0,T1.toDid)(e),iat:String(c),nbf:String(c),exp:String(c+5*60),version:i,...n||{}};Object.keys(u).forEach(_=>{(typeof u[_]>"u"||u[_]==null||u[_]==="")&&delete u[_]});const d=(0,Fu.toBase64)((0,QH.default)(u));if(bo("sign.body",u),!r)return`${l}.${d}`;const p=(0,Fu.toHex)(`${l}.${d}`),m=pb.default.gte(pb.default.coerce(i).version,Gne)?zne(p):p,y=(0,ja.getSigner)(a.pk).sign(m,t),b=(0,Fu.toBase64)(y);return[l,d,b].join(".")}zs.sign=Wne;function gct(e,t,n={}){return Wne(e,t,n,!!t,"1.1.0")}zs.signV2=gct;function Kne(e,t=!0){const[n,r,i]=e.split("."),a=JSON.parse((0,Fu.fromBase64)(n).toString()),o=JSON.parse((0,Fu.fromBase64)(r).toString()),s=qt.from((0,Fu.fromBase64)(i)).toString("hex");return t?o:{header:a,body:o,signature:`0x${(0,T1.toStrictHex)(s)}`}}zs.decode=Kne;function yct(e,t,n){const{tolerance:r,enforceTimestamp:i,signerKey:a}=Object.assign({tolerance:5,enforceTimestamp:!0,signerKey:"iss"},n);try{const[o,s]=e.split("."),{header:l,body:c,signature:u}=Kne(e,!1);if(!u)return bo("verify.error.emptySig"),!1;if(!l.alg)return bo("verify.error.emptyAlg"),!1;const d=c[a];if(!d)return bo("verify.error.emptySignerDid"),!1;if((0,T1.isFromPublicKey)(d,t)===!1)return bo("verify.error.signerDidAndPkNotMatch"),!1;if(i){const y=Math.ceil(Date.now()/1e3),b=Number(c.exp)||0,_=Number(c.iat)||0,S=Number(c.nbf)||0;if(bo("verify.enforceTimestamp",{now:y,exp:b,iat:_,nbf:S}),b&&b+r<y)return bo("verify.error.expired"),!1;if(_&&_>y&&_-y>r)return bo("verify.error.issuedAt"),!1;if(S&&S>y&&S-y>r)return bo("verify.error.notBefore"),!1}const p={secp256k1:(0,ja.getSigner)(ja.types.KeyType.SECP256K1),es256k:(0,ja.getSigner)(ja.types.KeyType.SECP256K1),ed25519:(0,ja.getSigner)(ja.types.KeyType.ED25519),ethereum:(0,ja.getSigner)(ja.types.KeyType.ETHEREUM)},m=l.alg.toLowerCase();if(p[m]){const y=(0,Fu.toHex)(`${o}.${s}`),b=c.version&&pb.default.coerce(c.version)?pb.default.coerce(c.version).version:"";return b&&b===Gne?p[m].verify(zne(y),u,t):p[m].verify(y,u,t)}return bo("verify.error.crypto"),!1}catch(o){return bo("verify.error.exception"),bo(o),!1}}zs.verify=yct;var TR={exports:{}};(function(e,t){var n=typeof self<"u"?self:ft,r=function(){function a(){this.fetch=!1,this.DOMException=n.DOMException}return a.prototype=n,new a}();(function(a){(function(o){var s={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function l(f){return f&&DataView.prototype.isPrototypeOf(f)}if(s.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(f){return f&&c.indexOf(Object.prototype.toString.call(f))>-1};function d(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(f))throw new TypeError("Invalid character in header field name");return f.toLowerCase()}function p(f){return typeof f!="string"&&(f=String(f)),f}function m(f){var h={next:function(){var T=f.shift();return{done:T===void 0,value:T}}};return s.iterable&&(h[Symbol.iterator]=function(){return h}),h}function y(f){this.map={},f instanceof y?f.forEach(function(h,T){this.append(T,h)},this):Array.isArray(f)?f.forEach(function(h){this.append(h[0],h[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(h){this.append(h,f[h])},this)}y.prototype.append=function(f,h){f=d(f),h=p(h);var T=this.map[f];this.map[f]=T?T+", "+h:h},y.prototype.delete=function(f){delete this.map[d(f)]},y.prototype.get=function(f){return f=d(f),this.has(f)?this.map[f]:null},y.prototype.has=function(f){return this.map.hasOwnProperty(d(f))},y.prototype.set=function(f,h){this.map[d(f)]=p(h)},y.prototype.forEach=function(f,h){for(var T in this.map)this.map.hasOwnProperty(T)&&f.call(h,this.map[T],T,this)},y.prototype.keys=function(){var f=[];return this.forEach(function(h,T){f.push(T)}),m(f)},y.prototype.values=function(){var f=[];return this.forEach(function(h){f.push(h)}),m(f)},y.prototype.entries=function(){var f=[];return this.forEach(function(h,T){f.push([T,h])}),m(f)},s.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function b(f){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}function _(f){return new Promise(function(h,T){f.onload=function(){h(f.result)},f.onerror=function(){T(f.error)}})}function S(f){var h=new FileReader,T=_(h);return h.readAsArrayBuffer(f),T}function $(f){var h=new FileReader,T=_(h);return h.readAsText(f),T}function D(f){for(var h=new Uint8Array(f),T=new Array(h.length),w=0;w<h.length;w++)T[w]=String.fromCharCode(h[w]);return T.join("")}function P(f){if(f.slice)return f.slice(0);var h=new Uint8Array(f.byteLength);return h.set(new Uint8Array(f)),h.buffer}function U(){return this.bodyUsed=!1,this._initBody=function(f){this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:s.blob&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:s.formData&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:s.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():s.arrayBuffer&&s.blob&&l(f)?(this._bodyArrayBuffer=P(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(f)||u(f))?this._bodyArrayBuffer=P(f):this._bodyText=f=Object.prototype.toString.call(f):this._bodyText="",this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):s.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s.blob&&(this.blob=function(){var f=b(this);if(f)return f;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?b(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(S)}),this.text=function(){var f=b(this);if(f)return f;if(this._bodyBlob)return $(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(D(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s.formData&&(this.formData=function(){return this.text().then(ie)}),this.json=function(){return this.text().then(JSON.parse)},this}var L=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function F(f){var h=f.toUpperCase();return L.indexOf(h)>-1?h:f}function G(f,h){h=h||{};var T=h.body;if(f instanceof G){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,h.headers||(this.headers=new y(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!T&&f._bodyInit!=null&&(T=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=h.credentials||this.credentials||"same-origin",(h.headers||!this.headers)&&(this.headers=new y(h.headers)),this.method=F(h.method||this.method||"GET"),this.mode=h.mode||this.mode||null,this.signal=h.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&T)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(T)}G.prototype.clone=function(){return new G(this,{body:this._bodyInit})};function ie(f){var h=new FormData;return f.trim().split("&").forEach(function(T){if(T){var w=T.split("="),R=w.shift().replace(/\+/g," "),I=w.join("=").replace(/\+/g," ");h.append(decodeURIComponent(R),decodeURIComponent(I))}}),h}function se(f){var h=new y,T=f.replace(/\r?\n[\t ]+/g," ");return T.split(/\r?\n/).forEach(function(w){var R=w.split(":"),I=R.shift().trim();if(I){var C=R.join(":").trim();h.append(I,C)}}),h}U.call(G.prototype);function K(f,h){h||(h={}),this.type="default",this.status=h.status===void 0?200:h.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in h?h.statusText:"OK",this.headers=new y(h.headers),this.url=h.url||"",this._initBody(f)}U.call(K.prototype),K.prototype.clone=function(){return new K(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},K.error=function(){var f=new K(null,{status:0,statusText:""});return f.type="error",f};var B=[301,302,303,307,308];K.redirect=function(f,h){if(B.indexOf(h)===-1)throw new RangeError("Invalid status code");return new K(null,{status:h,headers:{location:f}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(h,T){this.message=h,this.name=T;var w=Error(h);this.stack=w.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function E(f,h){return new Promise(function(T,w){var R=new G(f,h);if(R.signal&&R.signal.aborted)return w(new o.DOMException("Aborted","AbortError"));var I=new XMLHttpRequest;function C(){I.abort()}I.onload=function(){var x={status:I.status,statusText:I.statusText,headers:se(I.getAllResponseHeaders()||"")};x.url="responseURL"in I?I.responseURL:x.headers.get("X-Request-URL");var v="response"in I?I.response:I.responseText;T(new K(v,x))},I.onerror=function(){w(new TypeError("Network request failed"))},I.ontimeout=function(){w(new TypeError("Network request failed"))},I.onabort=function(){w(new o.DOMException("Aborted","AbortError"))},I.open(R.method,R.url,!0),R.credentials==="include"?I.withCredentials=!0:R.credentials==="omit"&&(I.withCredentials=!1),"responseType"in I&&s.blob&&(I.responseType="blob"),R.headers.forEach(function(x,v){I.setRequestHeader(v,x)}),R.signal&&(R.signal.addEventListener("abort",C),I.onreadystatechange=function(){I.readyState===4&&R.signal.removeEventListener("abort",C)}),I.send(typeof R._bodyInit>"u"?null:R._bodyInit)})}return E.polyfill=!0,a.fetch||(a.fetch=E,a.Headers=y,a.Request=G,a.Response=K),o.Headers=y,o.Request=G,o.Response=K,o.fetch=E,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t})(TR,TR.exports);var vct=TR.exports,bct="Expected a function",Yne="__lodash_hash_undefined__",Zne=1/0,Tct=9007199254740991,Ect="[object Function]",Act="[object GeneratorFunction]",Sct="[object Symbol]",wct=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_ct=/^\w*$/,Cct=/^\./,Rct=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xct=/[\\^$.*+?()[\]{}|]/g,$ct=/\\(\\)?/g,Ict=/^\[object .+?Constructor\]$/,kct=/^(?:0|[1-9]\d*)$/,Dct=typeof ft=="object"&&ft&&ft.Object===Object&&ft,Lct=typeof self=="object"&&self&&self.Object===Object&&self,WI=Dct||Lct||Function("return this")();function Oct(e,t){return e==null?void 0:e[t]}function Pct(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Mct=Array.prototype,Bct=Function.prototype,Xne=Object.prototype,a5=WI["__core-js_shared__"],ej=function(){var e=/[^.]+$/.exec(a5&&a5.keys&&a5.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Qne=Bct.toString,sA=Xne.hasOwnProperty,ere=Xne.toString,Nct=RegExp("^"+Qne.call(sA).replace(xct,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tj=WI.Symbol,Fct=Mct.splice,Uct=tre(WI,"Map"),fm=tre(Object,"create"),nj=tj?tj.prototype:void 0,rj=nj?nj.toString:void 0;function Df(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hct(){this.__data__=fm?fm(null):{}}function jct(e){return this.has(e)&&delete this.__data__[e]}function Vct(e){var t=this.__data__;if(fm){var n=t[e];return n===Yne?void 0:n}return sA.call(t,e)?t[e]:void 0}function Jct(e){var t=this.__data__;return fm?t[e]!==void 0:sA.call(t,e)}function qct(e,t){var n=this.__data__;return n[e]=fm&&t===void 0?Yne:t,this}Df.prototype.clear=Hct;Df.prototype.delete=jct;Df.prototype.get=Vct;Df.prototype.has=Jct;Df.prototype.set=qct;function Mh(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gct(){this.__data__=[]}function zct(e){var t=this.__data__,n=lA(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Fct.call(t,n,1),!0}function Wct(e){var t=this.__data__,n=lA(t,e);return n<0?void 0:t[n][1]}function Kct(e){return lA(this.__data__,e)>-1}function Yct(e,t){var n=this.__data__,r=lA(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Mh.prototype.clear=Gct;Mh.prototype.delete=zct;Mh.prototype.get=Wct;Mh.prototype.has=Kct;Mh.prototype.set=Yct;function Hf(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zct(){this.__data__={hash:new Df,map:new(Uct||Mh),string:new Df}}function Xct(e){return uA(this,e).delete(e)}function Qct(e){return uA(this,e).get(e)}function eft(e){return uA(this,e).has(e)}function tft(e,t){return uA(this,e).set(e,t),this}Hf.prototype.clear=Zct;Hf.prototype.delete=Xct;Hf.prototype.get=Qct;Hf.prototype.has=eft;Hf.prototype.set=tft;function nft(e,t,n){var r=e[t];(!(sA.call(e,t)&&nre(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function lA(e,t){for(var n=e.length;n--;)if(nre(e[n][0],t))return n;return-1}function rft(e){if(!hb(e)||cft(e))return!1;var t=hft(e)||Pct(e)?Nct:Ict;return t.test(pft(e))}function ift(e,t,n,r){if(!hb(e))return e;t=lft(t,e)?[t]:oft(t);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=dft(t[i]),c=n;if(i!=o){var u=s[l];c=r?r(u,l,s):void 0,c===void 0&&(c=hb(u)?u:sft(t[i+1])?[]:{})}nft(s,l,c),s=s[l]}return e}function aft(e){if(typeof e=="string")return e;if(YI(e))return rj?rj.call(e):"";var t=e+"";return t=="0"&&1/e==-Zne?"-0":t}function oft(e){return rre(e)?e:fft(e)}function uA(e,t){var n=e.__data__;return uft(t)?n[typeof t=="string"?"string":"hash"]:n.map}function tre(e,t){var n=Oct(e,t);return rft(n)?n:void 0}function sft(e,t){return t=t??Tct,!!t&&(typeof e=="number"||kct.test(e))&&e>-1&&e%1==0&&e<t}function lft(e,t){if(rre(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||YI(e)?!0:_ct.test(e)||!wct.test(e)||t!=null&&e in Object(t)}function uft(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function cft(e){return!!ej&&ej in e}var fft=KI(function(e){e=gft(e);var t=[];return Cct.test(e)&&t.push(""),e.replace(Rct,function(n,r,i,a){t.push(i?a.replace($ct,"$1"):r||n)}),t});function dft(e){if(typeof e=="string"||YI(e))return e;var t=e+"";return t=="0"&&1/e==-Zne?"-0":t}function pft(e){if(e!=null){try{return Qne.call(e)}catch{}try{return e+""}catch{}}return""}function KI(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(bct);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(KI.Cache||Hf),n}KI.Cache=Hf;function nre(e,t){return e===t||e!==e&&t!==t}var rre=Array.isArray;function hft(e){var t=hb(e)?ere.call(e):"";return t==Ect||t==Act}function hb(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function mft(e){return!!e&&typeof e=="object"}function YI(e){return typeof e=="symbol"||mft(e)&&ere.call(e)==Sct}function gft(e){return e==null?"":aft(e)}function yft(e,t,n){return e==null?e:ift(e,t,n)}var vft=yft,bft="Expected a function",ire="__lodash_hash_undefined__",are=1/0,Tft="[object Function]",Eft="[object GeneratorFunction]",Aft="[object Symbol]",Sft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wft=/^\w*$/,_ft=/^\./,Cft=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rft=/[\\^$.*+?()[\]{}|]/g,xft=/\\(\\)?/g,$ft=/^\[object .+?Constructor\]$/,Ift=typeof ft=="object"&&ft&&ft.Object===Object&&ft,kft=typeof self=="object"&&self&&self.Object===Object&&self,ZI=Ift||kft||Function("return this")();function Dft(e,t){return e==null?void 0:e[t]}function Lft(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Oft=Array.prototype,Pft=Function.prototype,ore=Object.prototype,o5=ZI["__core-js_shared__"],ij=function(){var e=/[^.]+$/.exec(o5&&o5.keys&&o5.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),sre=Pft.toString,XI=ore.hasOwnProperty,lre=ore.toString,Mft=RegExp("^"+sre.call(XI).replace(Rft,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),aj=ZI.Symbol,Bft=Oft.splice,Nft=ure(ZI,"Map"),dm=ure(Object,"create"),oj=aj?aj.prototype:void 0,sj=oj?oj.toString:void 0;function Lf(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fft(){this.__data__=dm?dm(null):{}}function Uft(e){return this.has(e)&&delete this.__data__[e]}function Hft(e){var t=this.__data__;if(dm){var n=t[e];return n===ire?void 0:n}return XI.call(t,e)?t[e]:void 0}function jft(e){var t=this.__data__;return dm?t[e]!==void 0:XI.call(t,e)}function Vft(e,t){var n=this.__data__;return n[e]=dm&&t===void 0?ire:t,this}Lf.prototype.clear=Fft;Lf.prototype.delete=Uft;Lf.prototype.get=Hft;Lf.prototype.has=jft;Lf.prototype.set=Vft;function Bh(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Jft(){this.__data__=[]}function qft(e){var t=this.__data__,n=cA(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Bft.call(t,n,1),!0}function Gft(e){var t=this.__data__,n=cA(t,e);return n<0?void 0:t[n][1]}function zft(e){return cA(this.__data__,e)>-1}function Wft(e,t){var n=this.__data__,r=cA(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Bh.prototype.clear=Jft;Bh.prototype.delete=qft;Bh.prototype.get=Gft;Bh.prototype.has=zft;Bh.prototype.set=Wft;function jf(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kft(){this.__data__={hash:new Lf,map:new(Nft||Bh),string:new Lf}}function Yft(e){return fA(this,e).delete(e)}function Zft(e){return fA(this,e).get(e)}function Xft(e){return fA(this,e).has(e)}function Qft(e,t){return fA(this,e).set(e,t),this}jf.prototype.clear=Kft;jf.prototype.delete=Yft;jf.prototype.get=Zft;jf.prototype.has=Xft;jf.prototype.set=Qft;function cA(e,t){for(var n=e.length;n--;)if(cdt(e[n][0],t))return n;return-1}function edt(e,t){t=idt(t,e)?[t]:rdt(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ldt(t[n++])];return n&&n==r?e:void 0}function tdt(e){if(!fre(e)||odt(e))return!1;var t=fdt(e)||Lft(e)?Mft:$ft;return t.test(udt(e))}function ndt(e){if(typeof e=="string")return e;if(ek(e))return sj?sj.call(e):"";var t=e+"";return t=="0"&&1/e==-are?"-0":t}function rdt(e){return cre(e)?e:sdt(e)}function fA(e,t){var n=e.__data__;return adt(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ure(e,t){var n=Dft(e,t);return tdt(n)?n:void 0}function idt(e,t){if(cre(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ek(e)?!0:wft.test(e)||!Sft.test(e)||t!=null&&e in Object(t)}function adt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function odt(e){return!!ij&&ij in e}var sdt=QI(function(e){e=pdt(e);var t=[];return _ft.test(e)&&t.push(""),e.replace(Cft,function(n,r,i,a){t.push(i?a.replace(xft,"$1"):r||n)}),t});function ldt(e){if(typeof e=="string"||ek(e))return e;var t=e+"";return t=="0"&&1/e==-are?"-0":t}function udt(e){if(e!=null){try{return sre.call(e)}catch{}try{return e+""}catch{}}return""}function QI(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(bft);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(QI.Cache||jf),n}QI.Cache=jf;function cdt(e,t){return e===t||e!==e&&t!==t}var cre=Array.isArray;function fdt(e){var t=fre(e)?lre.call(e):"";return t==Tft||t==Eft}function fre(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function ddt(e){return!!e&&typeof e=="object"}function ek(e){return typeof e=="symbol"||ddt(e)&&lre.call(e)==Aft}function pdt(e){return e==null?"":ndt(e)}function hdt(e,t,n){var r=e==null?void 0:edt(e,t);return r===void 0?n:r}var mdt=hdt;function gdt(e){return`"${e.replace(ydt,vdt)}"`}const ydt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function vdt(e){return bdt[e.charCodeAt(0)]}const bdt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Tdt=Object.freeze({});function Edt(e,t,n=ine){const r=new Map;for(const S of Object.values(sn))r.set(S,Adt(t,S));let i,a=Array.isArray(e),o=[e],s=-1,l=[],c=e,u,d;const p=[],m=[];do{s++;const S=s===o.length,$=S&&l.length!==0;if(S){if(u=m.length===0?void 0:p[p.length-1],c=d,d=m.pop(),$)if(a){c=c.slice();let P=0;for(const[U,L]of l){const F=U-P;L===null?(c.splice(F,1),P++):c[F]=L}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(const[P,U]of l)c[P]=U}s=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(d){if(u=a?s:o[s],c=d[u],c==null)continue;p.push(u)}let D;if(!Array.isArray(c)){var y,b;FH(c)||O3(!1,`Invalid AST Node: ${cne(c)}.`);const P=S?(y=r.get(c.kind))===null||y===void 0?void 0:y.leave:(b=r.get(c.kind))===null||b===void 0?void 0:b.enter;if(D=P==null?void 0:P.call(t,c,u,d,p,m),D===Tdt)break;if(D===!1){if(!S){p.pop();continue}}else if(D!==void 0&&(l.push([u,D]),!S))if(FH(D))c=D;else{p.pop();continue}}if(D===void 0&&$&&l.push([u,c]),S)p.pop();else{var _;i={inArray:a,index:s,keys:o,edits:l,prev:i},a=Array.isArray(c),o=a?c:(_=n[c.kind])!==null&&_!==void 0?_:[],s=-1,l=[],d&&m.push(d),d=c}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function Adt(e,t){const n=e[t];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Sdt(e){return Edt(e,_dt)}const wdt=80,_dt={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Gt(e.definitions,`
|
|
568
568
|
|
|
569
569
|
`)},OperationDefinition:{leave(e){const t=Bn("(",Gt(e.variableDefinitions,", "),")"),n=Gt([e.operation,Gt([e.name,t]),Gt(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Bn(" = ",n)+Bn(" ",Gt(r," "))},SelectionSet:{leave:({selections:e})=>ns(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const a=Bn("",e,": ")+t;let o=a+Bn("(",Gt(n,", "),")");return o.length>wdt&&(o=a+Bn(`(
|
|
570
570
|
`,B3(Gt(n,`
|
|
@@ -1287,4 +1287,4 @@ ${r.length}`,o=qt.from(a),s=qt.concat([o,i]);return nct.default.keccak256s(s)}et
|
|
|
1287
1287
|
`)&&e.flags==="s")}),wmt=no,_mt=to,Cmt=_mt.RegExp,Rmt=wmt(function(){var e=Cmt("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Zd=Vf,vA=ka,xmt=yA,$mt=Y1t,Imt=emt,kmt=lk,Dmt=bmt,Lmt=Jre.get,Omt=Smt,Pmt=Rmt,Mmt=kmt("native-string-replace",String.prototype.replace),bb=RegExp.prototype.exec,IR=bb,Bmt=vA("".charAt),Nmt=vA("".indexOf),Fmt=vA("".replace),R5=vA("".slice),kR=function(){var e=/a/,t=/b*/g;return Zd(bb,e,"a"),Zd(bb,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),tie=Imt.BROKEN_CARET,DR=/()??/.exec("")[1]!==void 0,Umt=kR||DR||tie||Omt||Pmt;Umt&&(IR=function(t){var n=this,r=Lmt(n),i=xmt(t),a=r.raw,o,s,l,c,u,d,p;if(a)return a.lastIndex=n.lastIndex,o=Zd(IR,a,i),n.lastIndex=a.lastIndex,o;var m=r.groups,y=tie&&n.sticky,b=Zd($mt,n),_=n.source,S=0,$=i;if(y&&(b=Fmt(b,"y",""),Nmt(b,"g")===-1&&(b+="g"),$=R5(i,n.lastIndex),n.lastIndex>0&&(!n.multiline||n.multiline&&Bmt(i,n.lastIndex-1)!==`
|
|
1288
1288
|
`)&&(_="(?: "+_+")",$=" "+$,S++),s=new RegExp("^(?:"+_+")",b)),DR&&(s=new RegExp("^"+_+"$(?!\\s)",b)),kR&&(l=n.lastIndex),c=Zd(bb,y?s:n,$),y?c?(c.input=R5(c.input,S),c[0]=R5(c[0],S),c.index=n.lastIndex,n.lastIndex+=c[0].length):n.lastIndex=0:kR&&c&&(n.lastIndex=n.global?c.index+c[0].length:l),DR&&c&&c.length>1&&Zd(Mmt,c[0],s,function(){for(u=1;u<arguments.length-2;u++)arguments[u]===void 0&&(c[u]=void 0)}),c&&m)for(c.groups=d=Dmt(null),u=0;u<m.length;u++)p=m[u],d[p[0]]=c[p[1]];return c});var vk=IR,Hmt=Yre,Bj=vk;Hmt({target:"RegExp",proto:!0,forced:/./.exec!==Bj},{exec:Bj});var jmt=Rg,Vmt=ka,Jmt=function(e){if(jmt(e)==="Function")return Vmt(e)},qmt=Nh,Gmt=Rg,zmt=qf,Wmt=zmt("match"),Kmt=function(e){var t;return qmt(e)&&((t=e[Wmt])!==void 0?!!t:Gmt(e)==="RegExp")},Ymt=Kmt,Zmt=TypeError,Xmt=function(e){if(Ymt(e))throw new Zmt("The method doesn't accept regular expressions");return e},Qmt=qf,egt=Qmt("match"),tgt=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[egt]=!1,"/./"[e](t)}catch{}}return!1},ngt=Yre,rgt=Jmt,igt=hA.f,agt=pk,Nj=yA,ogt=Xmt,sgt=xg,lgt=tgt,ugt=rgt("".slice),cgt=Math.min,nie=lgt("endsWith"),fgt=!nie&&!!function(){var e=igt(String.prototype,"endsWith");return e&&!e.writable}();ngt({target:"String",proto:!0,forced:!fgt&&!nie},{endsWith:function(t){var n=Nj(sgt(this));ogt(t);var r=arguments.length>1?arguments[1]:void 0,i=n.length,a=r===void 0?i:cgt(agt(r),i),o=Nj(t);return ugt(n,a-o.length,a)===o}});var dgt=rk,rie=Function.prototype,Fj=rie.apply,Uj=rie.call,pgt=typeof Reflect=="object"&&Reflect.apply||(dgt?Uj.bind(Fj):function(){return Uj.apply(Fj,arguments)}),Hj=Vf,jj=Gre,hgt=vk,Vj=no,iie=qf,mgt=uk,ggt=iie("species"),x5=RegExp.prototype,ygt=function(e,t,n,r){var i=iie(e),a=!Vj(function(){var c={};return c[i]=function(){return 7},""[e](c)!==7}),o=a&&!Vj(function(){var c=!1,u=/a/;return e==="split"&&(u={},u.constructor={},u.constructor[ggt]=function(){return u},u.flags="",u[i]=/./[i]),u.exec=function(){return c=!0,null},u[i](""),!c});if(!a||!o||n){var s=/./[i],l=t(i,""[e],function(c,u,d,p,m){var y=u.exec;return y===hgt||y===x5.exec?a&&!m?{done:!0,value:Hj(s,u,d,p)}:{done:!0,value:Hj(c,d,u,p)}:{done:!1}});jj(String.prototype,e,l[0]),jj(x5,i,l[1])}r&&mgt(x5[i],"sham",!0)},bk=ka,vgt=gA,bgt=yA,Tgt=xg,Egt=bk("".charAt),Jj=bk("".charCodeAt),Agt=bk("".slice),qj=function(e){return function(t,n){var r=bgt(Tgt(t)),i=vgt(n),a=r.length,o,s;return i<0||i>=a?e?"":void 0:(o=Jj(r,i),o<55296||o>56319||i+1===a||(s=Jj(r,i+1))<56320||s>57343?e?Egt(r,i):o:e?Agt(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},Sgt={codeAt:qj(!1),charAt:qj(!0)},wgt=Sgt.charAt,_gt=function(e,t,n){return t+(n?wgt(e,t).length:1)},Tk=ka,Cgt=Ore,Rgt=Math.floor,$5=Tk("".charAt),xgt=Tk("".replace),I5=Tk("".slice),$gt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Igt=/\$([$&'`]|\d{1,2})/g,kgt=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,l=Igt;return i!==void 0&&(i=Cgt(i),l=$gt),xgt(a,l,function(c,u){var d;switch($5(u,0)){case"$":return"$";case"&":return e;case"`":return I5(t,0,n);case"'":return I5(t,o);case"<":d=i[I5(u,1,-1)];break;default:var p=+u;if(p===0)return c;if(p>s){var m=Rgt(p/10);return m===0?c:m<=s?r[m-1]===void 0?$5(u,1):r[m-1]+$5(u,1):c}d=r[p-1]}return d===void 0?"":d})},Gj=Vf,Dgt=Gf,Lgt=ro,Ogt=Rg,Pgt=vk,Mgt=TypeError,Bgt=function(e,t){var n=e.exec;if(Lgt(n)){var r=Gj(n,e,t);return r!==null&&Dgt(r),r}if(Ogt(e)==="RegExp")return Gj(Pgt,e,t);throw new Mgt("RegExp#exec called on incompatible receiver")},Ngt=pgt,zj=Vf,bA=ka,Fgt=ygt,Ugt=no,Hgt=Gf,jgt=ro,Vgt=ik,Jgt=gA,qgt=pk,wd=yA,Ggt=xg,zgt=_gt,Wgt=Dre,Kgt=kgt,Ygt=Bgt,Zgt=qf,LR=Zgt("replace"),Xgt=Math.max,Qgt=Math.min,eyt=bA([].concat),k5=bA([].push),Wj=bA("".indexOf),Kj=bA("".slice),tyt=function(e){return e===void 0?e:String(e)},nyt=function(){return"a".replace(/./,"$0")==="$0"}(),Yj=function(){return/./[LR]?/./[LR]("a","$0")==="":!1}(),ryt=!Ugt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"});Fgt("replace",function(e,t,n){var r=Yj?"$":"$0";return[function(a,o){var s=Ggt(this),l=Vgt(a)?void 0:Wgt(a,LR);return l?zj(l,a,s,o):zj(t,wd(s),a,o)},function(i,a){var o=Hgt(this),s=wd(i);if(typeof a=="string"&&Wj(a,r)===-1&&Wj(a,"$<")===-1){var l=n(t,o,s,a);if(l.done)return l.value}var c=jgt(a);c||(a=wd(a));var u=o.global,d;u&&(d=o.unicode,o.lastIndex=0);for(var p=[],m;m=Ygt(o,s),!(m===null||(k5(p,m),!u));){var y=wd(m[0]);y===""&&(o.lastIndex=zgt(s,qgt(o.lastIndex),d))}for(var b="",_=0,S=0;S<p.length;S++){m=p[S];for(var $=wd(m[0]),D=Xgt(Qgt(Jgt(m.index),s.length),0),P=[],U,L=1;L<m.length;L++)k5(P,tyt(m[L]));var F=m.groups;if(c){var G=eyt([$],P,D,s);F!==void 0&&k5(G,F),U=wd(Ngt(a,void 0,G))}else U=Kgt($,s,D,P,F,a);D>=_&&(b+=Kj(s,_,D)+U,_=D+$.length)}return b+Kj(s,_)}]},!ryt||!nyt||Yj);const iyt={name:"Query"},ayt={name:"Mutation"},oyt=null,syt=[{kind:"SCALAR",name:"Any",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Bytes",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Float32",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Int32",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Int64",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Uint32",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Uint64",description:null,fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"AutoBackupInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"AutoCheckUpdateInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"BlockletStoreInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"logoUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"maintainer",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"cdnUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"protected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"SCALAR",name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConfigEntryInput",description:null,fields:null,inputFields:[{name:"key",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"value",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"required",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"validation",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"secure",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"custom",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"shared",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConfigNavigationInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"link",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"icon",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"section",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"component",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"parent",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"visible",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"from",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConnectedAccountInput",description:null,fields:null,inputFields:[{name:"provider",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"userInfo",description:null,type:{kind:"INPUT_OBJECT",name:"ConnectedAccountInfoInput",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"ConnectedAccountInfoInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"picture",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"emailVerified",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"sub",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extraData",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"DownloadTokenInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"token",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"HashFileInput",description:null,fields:null,inputFields:[{name:"file",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"hash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"IssuerInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"NodeInfoInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoUpgrade",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"enableWelcomePage",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"registerUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"webWalletUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletRegistryList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"BlockletStoreInput",ofType:null}}},defaultValue:null},{name:"diskAlertThreshold",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"enableBetaRelease",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"nftDomainUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"enableFileSystemIsolation",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"PagingInput",description:null,fields:null,inputFields:[{name:"total",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"pageSize",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"pageCount",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"page",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"PassportInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"issuer",description:null,type:{kind:"INPUT_OBJECT",name:"IssuerInput",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"issuanceDate",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"expirationDate",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"PermissionInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"isProtected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddBlockletSpaceGatewayInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"spaceGateway",description:null,type:{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddBlockletStoreInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddDomainAliasInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"domainAlias",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"force",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"nftDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"chainHost",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"inBlockletSetup",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddLetsEncryptCertInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"siteId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"inBlockletSetup",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddNginxHttpsCertInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"privateKey",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"certificate",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddRoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rule",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleInput",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAddRoutingSiteInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rules",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"RoutingRuleInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestAuditFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"memberPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBackupBlockletInput",description:null,fields:null,inputFields:[{name:"appDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"to",description:null,type:{kind:"ENUM",name:"BackupTo",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletDetailInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"attachRuntimeInfo",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"getOptionalComponents",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletDiffInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"hashFiles",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"HashFileInput",ofType:null}}},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletMetaInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletMetaFromUrlInput",description:null,fields:null,inputFields:[{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"checkPrice",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestBlockletRuntimeHistoryInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"hours",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCheckDomainsInput",description:null,fields:null,inputFields:[{name:"domains",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestClearCacheInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pattern",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestComponentsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDids",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigBlockletInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"configs",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConfigEntryInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigFederatedInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoLogin",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigNavigationsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"navigations",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConfigNavigationInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigNotificationInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"notification",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigOAuthInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"oauth",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigPassportIssuanceInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"enable",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigPublicToStoreInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"publicToStore",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigTrustedFactoriesInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"trustedFactories",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TrustedFactoryInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConfigTrustedPassportsInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"trustedPassports",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TrustedPassportInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConnectByStudioInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tenantScope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"messageId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestConnectToStoreInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateAccessKeyInput",description:null,fields:null,inputFields:[{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passport",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateInvitationInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sourceAppPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreatePassportIssuanceInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ownerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreatePermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateProjectInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"ENUM",name:"PublishType",ofType:null},defaultValue:null},{name:"blockletDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tenantScope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateReleaseInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletVersion",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletDescription",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletLogo",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletIntroduction",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletScreenshots",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"note",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletComponents",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"uploadedResource",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"childName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"permissions",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateTransferNodeInvitationInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestCreateWebHookInput",description:null,fields:null,inputFields:[{name:"type",description:null,type:{kind:"ENUM",name:"SenderType",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"params",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"WebHookParamInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteAccessKeyInput",description:null,fields:null,inputFields:[{name:"accessKeyId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"keepData",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletSpaceGatewayInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"spaceGatewayDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletStoreInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteComponentInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"keepData",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteDomainAliasInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"domainAlias",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteInvitationInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"inviteId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteNginxHttpsCertInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeletePermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ruleId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingSiteInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteTeamSessionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sessionId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDeleteWebHookInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDisbandFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestDisconnectFromStoreInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeScope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestEndSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestFindCertificateByDomainInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGatewayInput",description:null,fields:null,inputFields:[{name:"requestLimit",description:null,type:{kind:"INPUT_OBJECT",name:"RequestLimitInput",ofType:null},defaultValue:null},{name:"cacheEnabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetAuditLogsInput",description:null,fields:null,inputFields:[{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"scope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"category",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetAutoBackupInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetAutoCheckUpdateInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletBackupsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletNotificationsInput",description:null,fields:null,inputFields:[{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sender",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"read",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetBlockletsInput",description:null,fields:null,inputFields:[{name:"useCache",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetDynamicComponentsInput",description:null,fields:null,inputFields:[{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetLauncherSessionInput",description:null,fields:null,inputFields:[{name:"launcherSessionId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"launcherUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetNotificationsInput",description:null,fields:null,inputFields:[{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sender",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"read",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetPassportIssuancesInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ownerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetProjectsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tenantScope",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetReleasesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetRoutingSitesInput",description:null,fields:null,inputFields:[{name:"snapshotHash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetRoutingSnapshotsInput",description:null,fields:null,inputFields:[{name:"limit",description:null,type:{kind:"SCALAR",name:"Int32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetSelectedResourcesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetSnapshotSitesInput",description:null,fields:null,inputFields:[{name:"hash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGetTrafficInsightsInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"startDate",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"endDate",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestGrantPermissionForRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"roleName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"grantName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestHasPermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"permission",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestInstallComponentInput",description:null,fields:null,inputFields:[{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"mountPoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"file",description:null,type:{kind:"SCALAR",name:"Upload",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"diffVersion",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"deleteSet",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"configs",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConfigEntryInput",ofType:null}}},defaultValue:null},{name:"downloadTokenList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"DownloadTokenInput",ofType:null}}},defaultValue:null},{name:"skipNavigation",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"onlyRequired",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestIsDidDomainInput",description:null,fields:null,inputFields:[{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestIssuePassportToUserInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestJoinFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestLimitInput",description:null,fields:null,inputFields:[{name:"enabled",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"rate",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"ipHeader",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestLogoutUserInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"visitorId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestMigrateApplicationToStructV2Input",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appSk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestNodeRoutingInput",description:null,fields:null,inputFields:[{name:"provider",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"snapshotHash",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"forceRepopulate",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestNodeRuntimeHistoryInput",description:null,fields:null,inputFields:[{name:"hours",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestProjectInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"messageId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestPublishToStoreInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestQuitFederatedLoginInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestReadBlockletNotificationsInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestReadNotificationsInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestReleaseInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestResetNodeInput",description:null,fields:null,inputFields:[{name:"owner",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"blocklets",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"webhooks",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"certificates",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"accessKeys",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"blockletExtras",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"routingRules",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"users",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"invitations",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestRestoreBlockletInput",description:null,fields:null,inputFields:[{name:"endpoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"delegation",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"password",description:null,type:{kind:"SCALAR",name:"Bytes",ofType:null},defaultValue:null},{name:"wallet",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"from",description:null,type:{kind:"ENUM",name:"BackupTo",ofType:null},defaultValue:null},{name:"appPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestRevokePermissionFromRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"roleName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"grantName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passportId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSendEmailInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSendMsgInput",description:null,fields:null,inputFields:[{name:"webhookId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"message",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSendPushInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"receiver",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"notification",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestStartSessionInput",description:null,fields:null,inputFields:[{name:"data",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestSwitchProfileInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"profile",description:null,type:{kind:"INPUT_OBJECT",name:"UserProfileInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTagInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tag",description:null,type:{kind:"INPUT_OBJECT",name:"TagInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTagsInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTakeRoutingSnapshotInput",description:null,fields:null,inputFields:[{name:"dryRun",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"message",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamPermissionInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"permission",description:null,type:{kind:"INPUT_OBJECT",name:"PermissionInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"INPUT_OBJECT",name:"RoleUpdateInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"user",description:null,type:{kind:"INPUT_OBJECT",name:"UserInfoInput",ofType:null},defaultValue:null},{name:"options",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserOptionsInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestTeamUserOptionsInput",description:null,fields:null,inputFields:[{name:"enableConnectedAccount",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"includeTags",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAccessKeyInput",description:null,fields:null,inputFields:[{name:"accessKeyId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passport",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAppSessionConfigInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"config",description:null,type:{kind:"INPUT_OBJECT",name:"SessionConfigInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAutoBackupInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoBackup",description:null,type:{kind:"INPUT_OBJECT",name:"AutoBackupInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateAutoCheckUpdateInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoCheckUpdate",description:null,type:{kind:"INPUT_OBJECT",name:"AutoCheckUpdateInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletSpaceGatewayInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"where",description:null,type:{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",ofType:null},defaultValue:null},{name:"spaceGateway",description:null,type:{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateComponentMountPointInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"mountPoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateComponentTitleInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateComponentsInput",description:null,fields:null,inputFields:[{name:"updateId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rootDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"selectedComponents",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateNginxHttpsCertInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdatePermissionsForRoleInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"roleName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"grantNames",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateProjectInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletTitle",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletDescription",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"blockletIntroduction",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"autoUpload",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"possibleSameStore",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"rule",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleInput",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingSiteInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"corsAllowedOrigins",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"domain",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateSelectedResourcesInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"projectId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"releaseId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"resources",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"data",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateUserExtraInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateUserProfileInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"locale",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateUserTagsInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tags",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Uint32",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUpdateWhoCanAccessInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"whoCanAccess",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestUsersInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"query",description:null,type:{kind:"INPUT_OBJECT",name:"UserQueryInput",ofType:null},defaultValue:null},{name:"sort",description:null,type:{kind:"INPUT_OBJECT",name:"UserSortInput",ofType:null},defaultValue:null},{name:"paging",description:null,type:{kind:"INPUT_OBJECT",name:"PagingInput",ofType:null},defaultValue:null},{name:"dids",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RequestVersionedBlockletInput",description:null,fields:null,inputFields:[{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"storeUrl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"file",description:null,type:{kind:"SCALAR",name:"Upload",ofType:null},defaultValue:null},{name:"diffVersion",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"deleteSet",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"startImmediately",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"downloadTokenList",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"DownloadTokenInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoleUpdateInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"from",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleFromInput",ofType:null},defaultValue:null},{name:"to",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleToInput",ofType:null},defaultValue:null},{name:"isProtected",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleFromInput",description:null,fields:null,inputFields:[{name:"pathPrefix",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"header",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"RoutingRuleHeaderInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleHeaderInput",description:null,fields:null,inputFields:[{name:"key",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"value",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"ENUM",name:"HeaderMatchType",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleResponseInput",description:null,fields:null,inputFields:[{name:"status",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"contentType",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"body",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"RoutingRuleToInput",description:null,fields:null,inputFields:[{name:"port",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"ENUM",name:"BackendServiceType",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"redirectCode",description:null,type:{kind:"SCALAR",name:"Int32",ofType:null},defaultValue:null},{name:"interfaceName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"componentId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pageGroup",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"response",description:null,type:{kind:"INPUT_OBJECT",name:"RoutingRuleResponseInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"SessionConfigInput",description:null,fields:null,inputFields:[{name:"cacheTtl",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"ttl",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"SpaceGatewayInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"protected",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"endpoint",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TagInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"title",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"color",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TeamInput",description:null,fields:null,inputFields:[{name:"teamDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedFactoryInput",description:null,fields:null,inputFields:[{name:"holderDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"issuerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"factoryAddress",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passport",description:null,type:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingToInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportInput",description:null,fields:null,inputFields:[{name:"issuerDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"mappings",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingInput",ofType:null}}},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportMappingInput",description:null,fields:null,inputFields:[{name:"from",description:null,type:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingFromInput",ofType:null},defaultValue:null},{name:"to",description:null,type:{kind:"INPUT_OBJECT",name:"TrustedPassportMappingToInput",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportMappingFromInput",description:null,fields:null,inputFields:[{name:"passport",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"TrustedPassportMappingToInput",description:null,fields:null,inputFields:[{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ttl",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ttlPolicy",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserInfoInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"pk",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"avatar",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"fullName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"approved",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"locale",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passports",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"PassportInput",ofType:null}}},defaultValue:null},{name:"firstLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"remark",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginIp",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sourceProvider",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"sourceAppPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"connectedAccounts",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"ConnectedAccountInput",ofType:null}}},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"tags",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"TagInput",ofType:null}}},defaultValue:null},{name:"didSpace",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"userSessions",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"INPUT_OBJECT",name:"UserSessionInput",ofType:null}}},defaultValue:null},{name:"url",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserProfileInput",description:null,fields:null,inputFields:[{name:"did",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"avatar",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"fullName",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"email",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserQueryInput",description:null,fields:null,inputFields:[{name:"role",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"approved",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"search",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"connectedDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"tags",description:null,type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Uint32",ofType:null}}},defaultValue:null},{name:"includeTags",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"includeUserSessions",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserSessionInput",description:null,fields:null,inputFields:[{name:"id",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"visitorId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"appPid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"userDid",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"ua",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"passportId",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"status",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"lastLoginIp",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"extra",description:null,type:{kind:"SCALAR",name:"Any",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"UserSortInput",description:null,fields:null,inputFields:[{name:"updatedAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"createdAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null},{name:"lastLoginAt",description:null,type:{kind:"SCALAR",name:"Uint32",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"INPUT_OBJECT",name:"WebHookParamInput",description:null,fields:null,inputFields:[{name:"name",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"description",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"required",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:null},{name:"defaultValue",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"value",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null},{name:"type",description:null,type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:null}],interfaces:null,enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AccessKey",description:null,fields:[{name:"accessKeyId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessKeyPublic",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passport",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastUsedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdBy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedBy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLog",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"scope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"category",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"action",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"content",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"actor",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogActor",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"env",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogEnv",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ip",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ua",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLogActor",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fullName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLogEnv",description:null,fields:[{name:"browser",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogEnvItem",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"os",description:null,args:[],type:{kind:"OBJECT",name:"AuditLogEnvItem",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AuditLogEnvItem",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AutoBackup",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"AutoCheckUpdate",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Backup",description:null,fields:[{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"userDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"strategy",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sourceUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"target",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"targetName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"targetUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"message",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"progress",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletBackupState",description:null,fields:[{name:"appDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletCapabilities",description:null,fields:[{name:"clusterMode",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"component",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"navigation",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"didSpace",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resourceExportApi",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletController",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftOwner",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"chainHost",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expireDate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"consumedAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherSessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ownerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"OBJECT",name:"BlockletControllerStatus",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletControllerStatus",description:null,fields:[{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"reason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletDiff",description:null,fields:[{name:"hasBlocklet",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addSet",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"changeSet",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"deleteSet",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletDist",description:null,fields:[{name:"tarball",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"integrity",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletEngine",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"displayName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"available",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"visible",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletHistoryItem",description:null,fields:[{name:"date",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpu",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMeta",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"interfaces",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaInterface",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"author",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMetaPerson",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"main",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stats",description:null,args:[],type:{kind:"OBJECT",name:"BlockletStats",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"homepage",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"path",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"community",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"documentation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"support",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"screenshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"keywords",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"group",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dist",description:null,args:[],type:{kind:"OBJECT",name:"BlockletDist",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"maintainers",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaPerson",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"contributors",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaPerson",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"repository",description:null,args:[],type:{kind:"OBJECT",name:"BlockletRepository",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"payment",description:null,args:[],type:{kind:"OBJECT",name:"BlockletPayment",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftFactory",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastPublishedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"capabilities",description:null,args:[],type:{kind:"OBJECT",name:"BlockletCapabilities",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"components",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ChildConfig",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Environment",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"requirements",description:null,args:[],type:{kind:"OBJECT",name:"Requirement",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"navigation",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Any",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"resources",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"resource",description:null,args:[],type:{kind:"OBJECT",name:"BlockletResource",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"engine",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"owner",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMetaOwner",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaInterface",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"path",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"prefix",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"protocol",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"services",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMetaService",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"cacheable",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"pageGroups",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaOwner",description:null,fields:[{name:"avatar",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fullName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaPerson",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMetaService",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"config",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletMigrateRecord",description:null,fields:[{name:"appSk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"at",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPayment",description:null,fields:[{name:"price",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletPaymentPrice",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"share",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletPaymentShare",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPaymentPrice",description:null,fields:[{name:"address",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"symbol",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPaymentShare",description:null,fields:[{name:"address",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletPreUpdateInfo",description:null,fields:[{name:"updateId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"UpdateList",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletRepository",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletResource",description:null,fields:[{name:"exportApi",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"types",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletResourceType",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"bundles",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletResourceBundle",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletResourceBundle",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"public",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletResourceType",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletSettings",description:null,fields:[{name:"initialized",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enablePassportIssuance",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedPassports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"whoCanAccess",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"owner",description:null,args:[],type:{kind:"OBJECT",name:"WalletInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"children",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"SimpleBlockletState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"publicToStore",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"storeList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletStore",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"navigations",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigNavigation",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"oauth",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedFactories",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedFactory",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"notification",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"session",description:null,args:[],type:{kind:"OBJECT",name:"SessionConfig",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"federated",description:null,args:[],type:{kind:"OBJECT",name:"FederatedConfig",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletState",description:null,fields:[{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"BlockletStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"installedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pausedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stoppedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"configs",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"diskInfo",description:null,args:[],type:{kind:"OBJECT",name:"DiskInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"runtimeInfo",description:null,args:[],type:{kind:"OBJECT",name:"RuntimeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appRuntimeInfo",description:null,args:[],type:{kind:"OBJECT",name:"RuntimeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"source",description:null,args:[],type:{kind:"ENUM",name:"BlockletSource",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deployedFrom",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleSource",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"engine",description:null,args:[],type:{kind:"OBJECT",name:"BlockletEngine",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mode",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ports",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"children",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"optionalComponents",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"OptionalComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"trustedPassports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"trustedFactories",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedFactory",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enablePassportIssuance",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dynamic",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"settings",description:null,args:[],type:{kind:"OBJECT",name:"BlockletSettings",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"site",description:null,args:[],type:{kind:"OBJECT",name:"RoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"controller",description:null,args:[],type:{kind:"OBJECT",name:"BlockletController",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"migratedFrom",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletMigrateRecord",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalSk",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalSkSource",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"structVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletStats",description:null,fields:[{name:"downloads",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"star",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"purchases",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BlockletStore",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logoUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"maintainer",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cdnUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"protected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"scope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"BooleanResponse",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"result",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Certificate",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"CertificateMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"matchedSites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"MatchedSites",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"source",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"CertificateIssuer",description:null,fields:[{name:"countryName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"organizationName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"commonName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"CertificateMeta",description:null,fields:[{name:"issuer",description:null,args:[],type:{kind:"OBJECT",name:"CertificateIssuer",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sans",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"validFrom",description:null,args:[],type:{kind:"SCALAR",name:"Int64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validTo",description:null,args:[],type:{kind:"SCALAR",name:"Int64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fingerprintAlg",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fingerprint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validityPeriod",description:null,args:[],type:{kind:"SCALAR",name:"Int64",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ChildConfig",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ComponentState",description:null,fields:[{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"BlockletStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"installedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pausedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stoppedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"configs",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"diskInfo",description:null,args:[],type:{kind:"OBJECT",name:"DiskInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"runtimeInfo",description:null,args:[],type:{kind:"OBJECT",name:"RuntimeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"source",description:null,args:[],type:{kind:"ENUM",name:"BlockletSource",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deployedFrom",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleSource",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"engine",description:null,args:[],type:{kind:"OBJECT",name:"BlockletEngine",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mode",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ports",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"children",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"dynamic",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dependents",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Dependent",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConfigEntry",description:null,fields:[{name:"key",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"secure",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"custom",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"shared",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConfigNavigation",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"link",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"icon",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"section",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"component",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"parent",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"visible",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"from",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConnectedAccount",description:null,fields:[{name:"provider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"userInfo",description:null,args:[],type:{kind:"OBJECT",name:"ConnectedAccountInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConnectedAccountInfo",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"picture",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"emailVerified",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sub",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"extraData",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ConnectedStore",description:null,fields:[{name:"storeId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"storeName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"storeUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessToken",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"developerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"developerEmail",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"developerName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"scope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"CreateAccessKey",description:null,fields:[{name:"accessKeyId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"accessKeySecret",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passport",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastUsedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"DelegationState",description:null,fields:[{name:"delegated",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Dependent",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"DiskInfo",description:null,fields:[{name:"app",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"data",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"log",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cache",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blocklets",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Environment",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"default",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"secure",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"shared",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"FederatedConfig",description:null,fields:[{name:"config",description:null,args:[],type:{kind:"OBJECT",name:"FederatedConfigDetail",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"FederatedConfigSite",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"FederatedConfigDetail",description:null,fields:[{name:"appId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"delegation",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isMaster",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoLogin",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"FederatedConfigSite",description:null,fields:[{name:"appId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"aliasDid",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"appName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appDescription",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"aliasDomain",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"appLogo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appLogoRect",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"serverId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"serverVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appliedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isMaster",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Fuel",description:null,fields:[{name:"endpoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"address",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"reason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Gateway",description:null,fields:[{name:"requestLimit",description:null,args:[],type:{kind:"OBJECT",name:"RequestLimit",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cacheEnabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"GeneralResponse",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"IPInfo",description:null,fields:[{name:"internalV4",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalV4",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"internalV6",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"externalV6",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"InviteInfo",description:null,fields:[{name:"inviteId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expireDate",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inviter",description:null,args:[],type:{kind:"OBJECT",name:"UserInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"teamDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"interfaceName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Issuer",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"KeyValue",description:null,fields:[{name:"key",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"LauncherInfo",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"provider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tag",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"chainHost",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"MatchedSites",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeEnvInfo",description:null,fields:[{name:"ip",description:null,args:[],type:{kind:"OBJECT",name:"IPInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"os",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"location",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"docker",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"image",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletEngines",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletEngine",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"gitpod",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"disk",description:null,args:[],type:{kind:"OBJECT",name:"DiskInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeHistoryItem",description:null,fields:[{name:"date",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpu",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"daemonMem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"serviceMem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"hubMem",description:null,args:[],type:{kind:"SCALAR",name:"Uint64",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeRouting",description:null,fields:[{name:"provider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"snapshotHash",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"adminPath",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"requestLimit",description:null,args:[],type:{kind:"OBJECT",name:"RequestLimit",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cacheEnabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeRuntimeConfig",description:null,fields:[{name:"blockletMaxMemoryLimit",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"daemonMaxMemoryLimit",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"proxyMaxMemoryLimit",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"NodeState",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"initialized",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nodeOwner",description:null,args:[],type:{kind:"OBJECT",name:"WalletInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"initializedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mode",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"routing",description:null,args:[],type:{kind:"OBJECT",name:"NodeRouting",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"environments",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConfigEntry",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"uptime",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoUpgrade",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nextVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"upgradeSessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"registerUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enableWelcomePage",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"webWalletUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletRegistryList",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletStore",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"ownerNft",description:null,args:[],type:{kind:"OBJECT",name:"OwnerNft",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"diskAlertThreshold",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedPassports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"launcher",description:null,args:[],type:{kind:"OBJECT",name:"LauncherInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enablePassportIssuance",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"didRegistry",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"didDomain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"trustedFactories",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedFactory",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enableBetaRelease",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"runtimeConfig",description:null,args:[],type:{kind:"OBJECT",name:"NodeRuntimeConfig",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"nftDomainUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enableFileSystemIsolation",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Notification",description:null,fields:[{name:"sender",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"receiver",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"action",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"entityType",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"entityId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"read",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"severity",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"OptionalComponentState",description:null,fields:[{name:"logoUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"dependencies",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"OptionalDependencies",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"OptionalDependencies",description:null,fields:[{name:"parentDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"parentName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"parentTitle",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"OwnerNft",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"holder",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuer",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherSessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Paging",description:null,fields:[{name:"total",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pageSize",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pageCount",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"page",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Passport",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuer",description:null,args:[],type:{kind:"OBJECT",name:"Issuer",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"issuanceDate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expirationDate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"PassportIssuanceInfo",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"expireDate",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"teamDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ownerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Permission",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Project",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"ENUM",name:"PublishType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletTitle",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDescription",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletLogo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletIntroduction",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletScreenshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"componentDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastReleaseId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastReleaseFiles",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"connectedStores",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConnectedStore",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"tenantScope",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdBy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoUpload",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"possibleSameStore",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Release",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"projectId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletVersion",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletTitle",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDescription",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletLogo",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletIntroduction",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletScreenshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"note",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"files",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"ReleaseStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletComponents",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ReleaseComponent",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"publishedStoreIds",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"uploadedResource",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ReleaseComponent",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RequestLimit",description:null,fields:[{name:"enabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"rate",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ipHeader",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Requirement",description:null,fields:[{name:"server",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"os",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpu",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fuels",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Fuel",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseAccessKeys",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"AccessKey",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseAddLetsEncryptCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseAddNginxHttpsCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlocklet",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blocklet",description:null,args:[],type:{kind:"OBJECT",name:"BlockletState",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletDiff",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blockletDiff",description:null,args:[],type:{kind:"OBJECT",name:"BlockletDiff",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletMeta",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletMetaFromUrl",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isFree",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inStore",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"registryUrl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletRuntimeHistory",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"history",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletHistoryItem",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseBlockletsFromBackup",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"backups",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletBackupState",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCheckComponentsForUpdates",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"preUpdateInfo",description:null,args:[],type:{kind:"OBJECT",name:"BlockletPreUpdateInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCheckDomains",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCheckNodeVersion",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseClearCache",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"removed",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseConnectByStudio",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseConnectToStore",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateAccessKey",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"data",description:null,args:[],type:{kind:"OBJECT",name:"CreateAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateInvitation",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inviteInfo",description:null,args:[],type:{kind:"OBJECT",name:"InviteInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreatePassportIssuance",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"info",description:null,args:[],type:{kind:"OBJECT",name:"PassportIssuanceInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateTransferNodeInvitation",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"inviteInfo",description:null,args:[],type:{kind:"OBJECT",name:"InviteInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseCreateWebHook",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"webhook",description:null,args:[],type:{kind:"OBJECT",name:"WebHookSender",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDelegationState",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"state",description:null,args:[],type:{kind:"OBJECT",name:"DelegationState",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDeleteAccessKey",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDeleteNginxHttpsCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDeleteWebHook",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseDisconnectFromStore",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseFindCertificateByDomain",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cert",description:null,args:[],type:{kind:"OBJECT",name:"Certificate",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGateway",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"gateway",description:null,args:[],type:{kind:"OBJECT",name:"Gateway",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cacheEnabled",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetAuditLogs",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"AuditLog",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetAutoBackup",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoBackup",description:null,args:[],type:{kind:"OBJECT",name:"AutoBackup",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetAutoCheckUpdate",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"autoCheckUpdate",description:null,args:[],type:{kind:"OBJECT",name:"AutoCheckUpdate",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlockletBackups",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"backups",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Backup",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlockletNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Notification",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlockletSpaceGateways",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"spaceGateways",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"SpaceGateway",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetBlocklets",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"blocklets",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"BlockletState",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetCertificates",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"certificates",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Certificate",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetDynamicComponents",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"components",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ComponentState",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetInvitations",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"invitations",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"InviteInfo",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetLauncherSession",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"error",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"launcherSession",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetNodeEnv",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"info",description:null,args:[],type:{kind:"OBJECT",name:"NodeEnvInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetNodeInfo",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"info",description:null,args:[],type:{kind:"OBJECT",name:"NodeState",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Notification",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetPassportIssuances",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"PassportIssuanceInfo",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetProject",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"project",description:null,args:[],type:{kind:"OBJECT",name:"Project",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetProjects",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"projects",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Project",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRelease",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"release",description:null,args:[],type:{kind:"OBJECT",name:"Release",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetReleases",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"releases",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Release",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRoutingProviders",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"providers",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingProvider",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRoutingSites",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingSite",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetRoutingSnapshots",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"snapshots",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingSnapshot",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetSelectedResources",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resources",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetSession",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"session",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetSnapshotSites",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sites",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingSite",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetTrafficInsights",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"list",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrafficInsight",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetUsersCount",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"count",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseGetUsersCountPerRole",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"counts",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"KeyValue",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseIsDidDomain",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseNodeRuntimeHistory",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"history",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"NodeHistoryItem",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponsePermission",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"permission",description:null,args:[],type:{kind:"OBJECT",name:"Permission",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponsePermissions",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"permissions",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Permission",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseProject",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"project",description:null,args:[],type:{kind:"OBJECT",name:"Project",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponsePublishToStore",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseReadBlockletNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"numAffected",description:null,args:[],type:{kind:"SCALAR",name:"Int32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseReadNotifications",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"numAffected",description:null,args:[],type:{kind:"SCALAR",name:"Int32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRelease",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"release",description:null,args:[],type:{kind:"OBJECT",name:"Release",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseResetNode",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRestartServer",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRole",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"OBJECT",name:"Role",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRoles",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"roles",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Role",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseRoutingSite",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"site",description:null,args:[],type:{kind:"OBJECT",name:"RoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseSendMsg",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseSenderList",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"senders",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHookSender",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseTag",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tag",description:null,args:[],type:{kind:"OBJECT",name:"Tag",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseTags",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tags",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Tag",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseTakeRoutingSnapshot",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"hash",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUpdateAccessKey",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"data",description:null,args:[],type:{kind:"OBJECT",name:"AccessKey",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUpdateNginxHttpsCert",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUpgradeNodeVersion",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sessionId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUser",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"user",description:null,args:[],type:{kind:"OBJECT",name:"UserInfo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseUsers",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"users",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"UserInfo",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"paging",description:null,args:[],type:{kind:"OBJECT",name:"Paging",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"ResponseWebHooks",description:null,fields:[{name:"code",description:null,args:[],type:{kind:"ENUM",name:"StatusCode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"webhooks",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHook",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Role",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"grants",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingProvider",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"running",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"available",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"error",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRule",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"from",description:null,args:[],type:{kind:"OBJECT",name:"RoutingRuleFrom",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"to",description:null,args:[],type:{kind:"OBJECT",name:"RoutingRuleTo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleFrom",description:null,fields:[{name:"pathPrefix",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"header",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingRuleHeader",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleHeader",description:null,fields:[{name:"key",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"ENUM",name:"HeaderMatchType",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleResponse",description:null,fields:[{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"contentType",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"body",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingRuleTo",description:null,fields:[{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"ENUM",name:"BackendServiceType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"redirectCode",description:null,args:[],type:{kind:"SCALAR",name:"Int32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"interfaceName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"componentId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pageGroup",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"response",description:null,args:[],type:{kind:"OBJECT",name:"RoutingRuleResponse",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingSite",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domain",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"domainAliases",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Any",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"rules",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"RoutingRule",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"isProtected",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"corsAllowedOrigins",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RoutingSnapshot",description:null,fields:[{name:"hash",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tree",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"message",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"author",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"RuntimeInfo",description:null,fields:[{name:"pid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"port",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uptime",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"memoryUsage",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cpuUsage",description:null,args:[],type:{kind:"SCALAR",name:"Float32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SessionConfig",description:null,fields:[{name:"cacheTtl",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ttl",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SimpleBlockletMeta",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"version",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bundleName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SimpleBlockletState",description:null,fields:[{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"SimpleBlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"ENUM",name:"BlockletStatus",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deployedFrom",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mountPoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deletedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"SpaceGateway",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"protected",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"endpoint",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Tag",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"color",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrafficInsight",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"date",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"totalRequests",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"validRequests",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"failedRequests",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"generationTime",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueVisitors",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueFiles",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"excludedHits",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueReferrers",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueNotFound",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"uniqueStaticFiles",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logSize",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"bandwidth",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedFactory",description:null,fields:[{name:"holderDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"factoryAddress",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passport",description:null,args:[],type:{kind:"OBJECT",name:"TrustedPassportMappingTo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassport",description:null,fields:[{name:"issuerDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"mappings",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"TrustedPassportMapping",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassportMapping",description:null,fields:[{name:"from",description:null,args:[],type:{kind:"OBJECT",name:"TrustedPassportMappingFrom",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"to",description:null,args:[],type:{kind:"OBJECT",name:"TrustedPassportMappingTo",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassportMappingFrom",description:null,fields:[{name:"passport",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"TrustedPassportMappingTo",description:null,fields:[{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ttl",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ttlPolicy",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"UpdateList",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"meta",description:null,args:[],type:{kind:"OBJECT",name:"BlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"UserInfo",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"role",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"avatar",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fullName",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"email",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"approved",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"locale",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passports",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Passport",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"firstLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"remark",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginIp",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sourceProvider",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sourceAppPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"connectedAccounts",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"ConnectedAccount",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"tags",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"Tag",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"didSpace",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"userSessions",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"UserSession",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"url",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"UserSession",description:null,fields:[{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"visitorId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"appPid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"userDid",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"ua",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"passportId",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"status",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"lastLoginIp",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"extra",description:null,args:[],type:{kind:"SCALAR",name:"Any",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WalletInfo",description:null,fields:[{name:"did",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"pk",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WebHook",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"ENUM",name:"SenderType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"id",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"params",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHookParam",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"createdAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatedAt",description:null,args:[],type:{kind:"SCALAR",name:"Uint32",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WebHookParam",description:null,fields:[{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"required",description:null,args:[],type:{kind:"SCALAR",name:"Boolean",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"defaultValue",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"value",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"WebHookSender",description:null,fields:[{name:"type",description:null,args:[],type:{kind:"ENUM",name:"SenderType",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"title",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"params",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"WebHookParam",ofType:null}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"BackendServiceType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"daemon",description:null,isDeprecated:!1,deprecationReason:null},{name:"blocklet",description:null,isDeprecated:!1,deprecationReason:null},{name:"redirect",description:null,isDeprecated:!1,deprecationReason:null},{name:"none",description:null,isDeprecated:!1,deprecationReason:null},{name:"general_proxy",description:null,isDeprecated:!1,deprecationReason:null},{name:"direct_response",description:null,isDeprecated:!1,deprecationReason:null},{name:"rewrite",description:null,isDeprecated:!1,deprecationReason:null},{name:"component",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"BackupTo",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"spaces",description:null,isDeprecated:!1,deprecationReason:null},{name:"disk",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"BlockletSource",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"registry",description:null,isDeprecated:!1,deprecationReason:null},{name:"local",description:null,isDeprecated:!1,deprecationReason:null},{name:"upload",description:null,isDeprecated:!1,deprecationReason:null},{name:"url",description:null,isDeprecated:!1,deprecationReason:null},{name:"custom",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"BlockletStatus",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"added",description:null,isDeprecated:!1,deprecationReason:null},{name:"downloading",description:null,isDeprecated:!1,deprecationReason:null},{name:"downloaded",description:null,isDeprecated:!1,deprecationReason:null},{name:"installing",description:null,isDeprecated:!1,deprecationReason:null},{name:"installed",description:null,isDeprecated:!1,deprecationReason:null},{name:"starting",description:null,isDeprecated:!1,deprecationReason:null},{name:"running",description:null,isDeprecated:!1,deprecationReason:null},{name:"stopping",description:null,isDeprecated:!1,deprecationReason:null},{name:"stopped",description:null,isDeprecated:!1,deprecationReason:null},{name:"error",description:null,isDeprecated:!1,deprecationReason:null},{name:"upgrading",description:null,isDeprecated:!1,deprecationReason:null},{name:"restarting",description:null,isDeprecated:!1,deprecationReason:null},{name:"corrupted",description:null,isDeprecated:!1,deprecationReason:null},{name:"waiting",description:null,isDeprecated:!1,deprecationReason:null},{name:"deleted",description:null,isDeprecated:!1,deprecationReason:null},{name:"unknown",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"HeaderMatchType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"exact",description:null,isDeprecated:!1,deprecationReason:null},{name:"partial",description:null,isDeprecated:!1,deprecationReason:null},{name:"regexp",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"PublishType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"resource",description:null,isDeprecated:!1,deprecationReason:null},{name:"pack",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"ReleaseStatus",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"draft",description:null,isDeprecated:!1,deprecationReason:null},{name:"published",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"SenderType",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"slack",description:null,isDeprecated:!1,deprecationReason:null},{name:"api",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"ENUM",name:"StatusCode",description:null,fields:null,inputFields:null,interfaces:null,enumValues:[{name:"ok",description:null,isDeprecated:!1,deprecationReason:null},{name:"blocklet_not_found",description:null,isDeprecated:!1,deprecationReason:null},{name:"blocklet_not_purchased",description:null,isDeprecated:!1,deprecationReason:null},{name:"forbidden",description:null,isDeprecated:!1,deprecationReason:null},{name:"internal",description:null,isDeprecated:!1,deprecationReason:null},{name:"timeout",description:null,isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"SCALAR",name:"Upload",description:"The `Upload` scalar type represents a file upload.",fields:null,inputFields:null,interfaces:null,enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Mutation",description:null,fields:[{name:"installBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestVersionedBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"installComponent",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestInstallComponentInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"stopBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"reloadBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"restartBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteComponent",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteComponentInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"cancelDownloadBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"checkComponentsForUpdates",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCheckComponentsForUpdates",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"upgradeComponents",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configPublicToStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigPublicToStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configNavigations",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigNavigationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configOAuth",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigOAuthInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configNotification",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigNotificationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sendEmail",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSendEmailInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sendPush",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSendPushInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"joinFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestJoinFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"quitFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestQuitFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"disbandFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDisbandFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configFederated",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigFederatedInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"auditFederatedLogin",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAuditFederatedLoginInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateWhoCanAccess",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateWhoCanAccessInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAppSessionConfig",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAppSessionConfigInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateComponentTitle",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateComponentTitleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateComponentMountPoint",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateComponentMountPointInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"backupBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBackupBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"restoreBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRestoreBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"migrateApplicationToStructV2",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestMigrateApplicationToStructV2Input",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addBlockletSpaceGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddBlockletSpaceGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlockletSpaceGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletSpaceGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateBlockletSpaceGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateBlockletSpaceGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAutoBackup",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAutoBackupInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAutoCheckUpdate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAutoCheckUpdateInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateNodeInfo",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"NodeInfoInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateNodeRouting",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestNodeRoutingInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"upgradeNodeVersion",description:null,args:[],type:{kind:"OBJECT",name:"ResponseUpgradeNodeVersion",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"restartServer",description:null,args:[],type:{kind:"OBJECT",name:"ResponseRestartServer",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resetNode",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestResetNodeInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseResetNode",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateGateway",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGatewayInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGateway",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"clearCache",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestClearCacheInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseClearCache",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createMemberInvitation",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateInvitationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateInvitation",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createTransferInvitation",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateTransferNodeInvitationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateTransferNodeInvitation",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteInvitation",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteInvitationInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createPassportIssuance",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreatePassportIssuanceInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreatePassportIssuance",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deletePassportIssuance",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteTeamSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configTrustedPassports",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigTrustedPassportsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configTrustedFactories",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigTrustedFactoriesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"configPassportIssuance",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConfigPassportIssuanceInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"removeUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserTags",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateUserTagsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserProfile",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateUserProfileInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserExtra",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateUserExtraInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateUserApproval",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issuePassportToUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestIssuePassportToUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"revokeUserPassport",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"enableUserPassport",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"removeUserPassport",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokeUserPassportInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"switchProfile",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSwitchProfileInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createPermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreatePermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermission",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatePermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamPermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermission",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deletePermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeletePermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"grantPermissionForRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGrantPermissionForRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"revokePermissionFromRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestRevokePermissionFromRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updatePermissionsForRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdatePermissionsForRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"hasPermission",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestHasPermissionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"BooleanResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addBlockletStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddBlockletStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteBlockletStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteBlockletStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createTag",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTag",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateTag",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTag",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteTag",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTag",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"readNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"unreadNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"readBlockletNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadBlockletNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadBlockletNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"unreadBlockletNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReadBlockletNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseReadBlockletNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addRoutingSite",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddRoutingSiteInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addDomainAlias",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddDomainAliasInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteDomainAlias",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteDomainAliasInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRoutingSite",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingSiteInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateRoutingSite",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingSiteInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addRoutingRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddRoutingRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateRoutingRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateRoutingRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRoutingRule",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteRoutingRuleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoutingSite",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"takeRoutingSnapshot",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTakeRoutingSnapshotInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTakeRoutingSnapshot",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateCertificate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateNginxHttpsCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUpdateNginxHttpsCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"addCertificate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddNginxHttpsCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseAddNginxHttpsCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteCertificate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteNginxHttpsCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDeleteNginxHttpsCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"issueLetsEncryptCert",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestAddLetsEncryptCertInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseAddLetsEncryptCert",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createAccessKey",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateAccessKeyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateAccessKey",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateAccessKeyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUpdateAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteAccessKey",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteAccessKeyInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDeleteAccessKey",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createWebHook",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateWebHookInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCreateWebHook",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteWebHook",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDeleteWebHookInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDeleteWebHook",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"startSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestStartSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"endSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestEndSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseProject",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseProject",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"createRelease",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCreateReleaseInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRelease",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"deleteRelease",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReleaseInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"updateSelectedResources",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUpdateSelectedResourcesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"connectToStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConnectToStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseConnectToStore",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"disconnectFromStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestDisconnectFromStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseDisconnectFromStore",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"publishToStore",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestPublishToStoreInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePublishToStore",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"connectByStudio",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestConnectByStudioInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseConnectByStudio",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"Query",description:null,fields:[{name:"getBlocklet",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletDetailInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlocklet",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletMetaFromUrl",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletMetaFromUrlInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletMetaFromUrl",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletDiff",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletDiffInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletDiff",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlocklets",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlocklets",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletRuntimeHistory",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletRuntimeHistoryInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletRuntimeHistory",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletsFromBackup",description:null,args:[],type:{kind:"OBJECT",name:"ResponseBlockletsFromBackup",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getDynamicComponents",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetDynamicComponentsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetDynamicComponents",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNodeInfo",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"resetNodeStatus",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetNodeInfo",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNodeEnv",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetNodeEnv",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"checkNodeVersion",description:null,args:[],type:{kind:"OBJECT",name:"ResponseCheckNodeVersion",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getDelegationState",description:null,args:[],type:{kind:"OBJECT",name:"ResponseDelegationState",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNodeRuntimeHistory",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestNodeRuntimeHistoryInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseNodeRuntimeHistory",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletMeta",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletMetaInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseBlockletMeta",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletNotifications",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletNotificationsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlockletNotifications",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoutingSites",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetRoutingSitesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetRoutingSites",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoutingSnapshots",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetRoutingSnapshotsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetRoutingSnapshots",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getSnapshotSites",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetSnapshotSitesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSnapshotSites",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoutingProviders",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetRoutingProviders",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isDidDomain",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestIsDidDomainInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseIsDidDomain",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getCertificates",description:null,args:[],type:{kind:"OBJECT",name:"ResponseGetCertificates",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"checkDomains",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestCheckDomainsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseCheckDomains",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"findCertificateByDomain",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestFindCertificateByDomainInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseFindCertificateByDomain",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getAccessKeys",description:null,args:[],type:{kind:"OBJECT",name:"ResponseAccessKeys",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getWebHooks",description:null,args:[],type:{kind:"OBJECT",name:"ResponseWebHooks",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getWebhookSenders",description:null,args:[],type:{kind:"OBJECT",name:"ResponseSenderList",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"sendTestMessage",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestSendMsgInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseSendMsg",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRoles",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRoles",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getPermissions",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermissions",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getInvitations",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetInvitations",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUsers",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestUsersInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUsers",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUsersCount",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetUsersCount",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getUsersCountPerRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetUsersCountPerRole",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getOwner",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"TeamInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseUser",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getPermissionsByRole",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTeamRoleInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponsePermissions",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getPassportIssuances",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetPassportIssuancesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetPassportIssuances",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"logoutUser",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestLogoutUserInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"GeneralResponse",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getTags",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestTagsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseTags",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getAuditLogs",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetAuditLogsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetAuditLogs",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getLauncherSession",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetLauncherSessionInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetLauncherSession",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletBackups",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetBlockletBackupsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlockletBackups",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getBlockletSpaceGateways",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestBlockletInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetBlockletSpaceGateways",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getAutoBackup",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetAutoBackupInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetAutoBackup",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getAutoCheckUpdate",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetAutoCheckUpdateInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetAutoCheckUpdate",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getTrafficInsights",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetTrafficInsightsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetTrafficInsights",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getProjects",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetProjectsInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetProjects",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getProject",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestProjectInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetProject",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getReleases",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetReleasesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetReleases",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getRelease",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestReleaseInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetRelease",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"getSelectedResources",description:null,args:[{name:"input",description:null,type:{kind:"INPUT_OBJECT",name:"RequestGetSelectedResourcesInput",ofType:null},defaultValue:null}],type:{kind:"OBJECT",name:"ResponseGetSelectedResources",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:[{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"types",description:"A list of all types supported by this server.",args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"queryType",description:"The type that query operations will be rooted at.",args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"mutationType",description:"If this server supports mutation, the type that mutation operations will be rooted at.",args:[],type:{kind:"OBJECT",name:"__Type",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"subscriptionType",description:"If this server support subscription, the type that subscription operations will be rooted at.",args:[],type:{kind:"OBJECT",name:"__Type",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"directives",description:"A list of all directives supported by this server.",args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Directive",ofType:null}}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:[{name:"kind",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"ENUM",name:"__TypeKind",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"name",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"specifiedByURL",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"fields",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Field",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"interfaces",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"possibleTypes",description:null,args:[],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"enumValues",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__EnumValue",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"inputFields",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}},isDeprecated:!1,deprecationReason:null},{name:"ofType",description:null,args:[],type:{kind:"OBJECT",name:"__Type",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",fields:null,inputFields:null,interfaces:null,enumValues:[{name:"SCALAR",description:"Indicates this type is a scalar.",isDeprecated:!1,deprecationReason:null},{name:"OBJECT",description:"Indicates this type is an object. `fields` and `interfaces` are valid fields.",isDeprecated:!1,deprecationReason:null},{name:"INTERFACE",description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.",isDeprecated:!1,deprecationReason:null},{name:"UNION",description:"Indicates this type is a union. `possibleTypes` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"ENUM",description:"Indicates this type is an enum. `enumValues` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_OBJECT",description:"Indicates this type is an input object. `inputFields` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"LIST",description:"Indicates this type is a list. `ofType` is a valid field.",isDeprecated:!1,deprecationReason:null},{name:"NON_NULL",description:"Indicates this type is a non-null. `ofType` is a valid field.",isDeprecated:!1,deprecationReason:null}],possibleTypes:null},{kind:"OBJECT",name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"args",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"isDeprecated",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"deprecationReason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"type",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__Type",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"defaultValue",description:"A GraphQL-formatted string representing the default value for this input value.",args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isDeprecated",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"deprecationReason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isDeprecated",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"deprecationReason",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"OBJECT",name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
|
|
1289
1289
|
|
|
1290
|
-
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isRepeatable",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"locations",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"ENUM",name:"__DirectiveLocation",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"args",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",fields:null,inputFields:null,interfaces:null,enumValues:[{name:"QUERY",description:"Location adjacent to a query operation.",isDeprecated:!1,deprecationReason:null},{name:"MUTATION",description:"Location adjacent to a mutation operation.",isDeprecated:!1,deprecationReason:null},{name:"SUBSCRIPTION",description:"Location adjacent to a subscription operation.",isDeprecated:!1,deprecationReason:null},{name:"FIELD",description:"Location adjacent to a field.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_DEFINITION",description:"Location adjacent to a fragment definition.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_SPREAD",description:"Location adjacent to a fragment spread.",isDeprecated:!1,deprecationReason:null},{name:"INLINE_FRAGMENT",description:"Location adjacent to an inline fragment.",isDeprecated:!1,deprecationReason:null},{name:"VARIABLE_DEFINITION",description:"Location adjacent to a variable definition.",isDeprecated:!1,deprecationReason:null},{name:"SCHEMA",description:"Location adjacent to a schema definition.",isDeprecated:!1,deprecationReason:null},{name:"SCALAR",description:"Location adjacent to a scalar definition.",isDeprecated:!1,deprecationReason:null},{name:"OBJECT",description:"Location adjacent to an object type definition.",isDeprecated:!1,deprecationReason:null},{name:"FIELD_DEFINITION",description:"Location adjacent to a field definition.",isDeprecated:!1,deprecationReason:null},{name:"ARGUMENT_DEFINITION",description:"Location adjacent to an argument definition.",isDeprecated:!1,deprecationReason:null},{name:"INTERFACE",description:"Location adjacent to an interface definition.",isDeprecated:!1,deprecationReason:null},{name:"UNION",description:"Location adjacent to a union definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM",description:"Location adjacent to an enum definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM_VALUE",description:"Location adjacent to an enum value definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_OBJECT",description:"Location adjacent to an input object type definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_FIELD_DEFINITION",description:"Location adjacent to an input object field definition.",isDeprecated:!1,deprecationReason:null}],possibleTypes:null}],lyt=[{name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Included when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Skipped when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:["FIELD_DEFINITION","ARGUMENT_DEFINITION","INPUT_FIELD_DEFINITION","ENUM_VALUE"],args:[{name:"reason",description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:'"No longer supported"'}]},{name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:["SCALAR"],args:[{name:"url",description:"The URL that specifies the behavior of this scalar.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},defaultValue:null}]}],uyt={queryType:iyt,mutationType:ayt,subscriptionType:oyt,types:syt,directives:lyt},cyt=mre,fyt=uyt;let dyt=class extends cyt{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http://localhost:4000/api",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r={dataSource:"forge",httpEndpoint:t,socketEndpoint:()=>this._getSocketEndpoint(t),enableQuery:!0,enableSubscription:!0,enableMutation:!0,maxQueryDepth:6};super(r),this._endpoint=t,this._authToken=null,this._userAgent=n}setAuthToken(t){this._authToken=t}_getSocketEndpoint(t){let n=t.replace(/https?:\/\//,"ws://");return t.indexOf("https://")===0&&(n=n.replace("ws://","wss://")),"".concat(n,"/socket")}_getSchema(){return fyt}_getIgnoreFields(t){return[]}_getAuthHeaders(){const t={},n=this._authToken;if(n){const r=typeof n=="function"?n():n;t.Authorization="Bearer ".concat(encodeURIComponent(r))}if(typeof window<"u"&&typeof window.location<"u"){const{hostname:r,port:i,protocol:a}=window.location;t["x-real-hostname"]=r,t["x-real-port"]=i,t["x-real-protocol"]=a.endsWith(":")?a.substring(0,a.length-1):a}return this._userAgent&&(t["User-Agent"]=this._userAgent),t}};var pyt=dyt;const hyt=w$,myt=pyt;class gyt extends myt{_getSocketOptions(){return{}}_getEventImplementation(){return hyt}}var yyt=gyt;const vyt=zt(yyt),byt=(window.env?window.env.apiPrefix:"/")||"/",Ns=new vyt(()=>`${byt}/api/gql?locale=${X6()}`.replace(/\/+/g,"/").trim());function Tyt({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){Z.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let rf;function aie(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new K$.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:Kr.get("login_token")})})}function oie(){return rf||(rf=aie()),rf}const Ek=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=zee();!rf&&r.user&&(rf=oie(),rf.connect()),Tyt({wsClient:rf,event:e,cb:t,deps:n})};let D5=null;const Eyt=async()=>{try{return(await Cg.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},Ayt=()=>(D5||(D5=Eyt()),D5),{Provider:Syt,Consumer:f2t}=xI,wyt=e=>e&&Wu(e,"settings.publicToStore")?e.settings.publicToStore:!1,_yt=(e,t)=>{const n=/^{env\.(.+)}$/.exec(e);if(n&&n[1]){const r=((t==null?void 0:t.configs)||[]).find(i=>i.key===n[1]);return!r&&!r.value?"":r.value}return e},Cyt=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await yre(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:_d,appId:Ryt}=window.env;function E1({children:e,mode:t}){var T;const[n,r]=Z.useState(null),[i,a]=Z.useState(!1),[o,s]=Z.useState({}),[l,c]=Z.useState(),[u,d]=Z.useState(),[p,m]=Z.useState(),y=t==="setup",{loading:b,loadingRuntimeInfo:_,error:S,blocklet:$,recommendedDomain:D,runtimeHistory:P,actions:{refreshBlocklet:U,refreshDomainStatus:L,setBlocklet:F}}=ilt({did:_d,client:Ns,useSubscription:Ek,getIP:Ayt,useLocaleContext:Vm,getOptionalComponents:!0}),G=Z.useRef(void 0);G.current=(T=$==null?void 0:$.meta)==null?void 0:T.did;const ie=async()=>{try{a(!0),r(null);const{data:w}=await Cg.get("/blocklet/meta");s(w),a(!1)}catch(w){a(!1),r(w),zr.error(w.message)}},se=async({showError:w=!0}={})=>{var N,Y;if(!((Y=(N=o==null?void 0:o.requirements)==null?void 0:N.fuels)!=null&&Y.length))return null;const{endpoint:R,value:I,address:C}=o.requirements.fuels[0],x=_yt(R,$),v=I;let k=I;const ne={endpoint:x,symbol:"",need:v,current:0,owe:Number(v)>0};try{const re=yre(x),{config:le}=await Cyt(x),ge=JSON.parse(le).token;let Se=C;Se||(Se=ge.address),d({address:ge.address,symbol:ge.symbol,decimal:ge.decimal});const{getAccountState:{state:j},getTokenState:{state:M}}=await re.doBatchQuery({getAccountState:{address:Ryt},getTokenState:{address:Se}});M&&(ne.symbol=M.symbol);const z=((j==null?void 0:j.tokens)||[]).find(W=>W.address===Se);if(z){const W=di.fromTokenToUnit(v,z.decimal||18);ne.current=di.fromUnitToToken(z.value,z.decimal||18),ne.owe=W.gt(new di.BN(z.value)),k=Math.max(0,di.fromUnitToToken(W.sub(new di.BN(z.value)),z.decimal||18))}}catch(re){w&&zr.error(re.message)}return c({...ne,deficiency:k}),ne},K=async({configs:w,childDid:R})=>(await Ns.configBlocklet({input:{did:[_d].concat(R).filter(Boolean),configs:w}}),U()),B=async w=>{const{blocklet:R}=await Ns.updateWhoCanAccess({input:{did:[_d],whoCanAccess:w}});F(R)},E=async w=>{const{blocklet:R}=await Ns.configPublicToStore({input:{did:_d,publicToStore:w}});F(R)},f=async w=>{const{blocklet:R}=await Ns.configNavigations({input:{did:_d,navigations:w}});F(R)};Z.useEffect(()=>{y&&ie(),U({showError:!1})},[]),Z.useEffect(()=>{var w;(w=$==null?void 0:$.controller)!=null&&w.launcherSessionId&&Ns.getLauncherSession({input:{launcherSessionId:$.controller.launcherSessionId,launcherUrl:$.controller.launcherUrl}}).then(R=>{m(R.launcherSession)}).catch(R=>{console.error("get launcher session error",R)})},[$==null?void 0:$.appPid]);const h={loading:i||b,loadingRuntimeInfo:_,error:n||S,blocklet:$,launcherSession:p,did:_d,recommendedDomain:D,runtimeHistory:P,appIdList:$?df.getBlockletAppIdList($):[],env:window.blocklet||{},meta:o,gas:l,tokenInfo:u,getPublicInstance:wyt,client:Ns,mode:t,actions:{refreshBlocklet:U,refreshDomainStatus:L,setBlocklet:F,refreshMeta:ie,refreshFuel:se,configBlocklet:K,configWhoCanAccess:B,configPublicToStore:E,configNavigations:f}};return q.jsx(Syt,{value:h,children:e})}E1.propTypes={children:me.any,mode:me.oneOf(["dashboard","setup"]).isRequired};E1.defaultProps={children:null};function d2t(){return Z.useContext(xI)}const Ak=Z.createContext({});function p2t(){const{node:e}=Z.useContext(Ak);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:xyt,Consumer:h2t}=Ak,$yt=`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function Zj({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:Ns,restApi:Cg,prefix:Jt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:$yt,getSessionInHeader:()=>({}),ws:{getWsClient:oie,create:aie,useSubscription:Ek},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return q.jsx(xyt,{value:{node:s},children:e})}function m2t(){const{node:e}=Z.useContext(Ak);return e}const sie=Z.createContext({}),{Provider:Iyt,Consumer:g2t}=sie;function kyt({children:e}){const{did:t}=window.env,[n,r]=Z.useState([]),[i,a]=Z.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=Z.useState(!1),l=async({page:u=1}={})=>{if(!o){s(!0);try{const d=await Ns.getBlockletNotifications({input:{paging:{page:u},teamDid:t}});r(d.list),a(d.paging),s(!1)}catch(d){zr.error(d.message),s(!1)}}};Z.useEffect(()=>{l()},[]),Ek(Jt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,u=>{r(d=>[u,...d||[]])});const c={loading:o,refresh:l,data:n||[],paging:i,api:Ns};return q.jsx(Iyt,{value:{notifications:c},children:e})}function y2t(){const{notifications:e}=Z.useContext(sie);return e}const Dyt=Z.lazy(()=>ln(()=>import("./login-DL_cFDan.js"),__vite__mapDeps([0,1,2]))),Lyt=Z.lazy(()=>ln(()=>import("./login-oauth-callback-yPda069A.js"),__vite__mapDeps([3,4,5,6]))),Oyt=Z.lazy(()=>ln(()=>import("./connect-AwdnCiZM.js"),__vite__mapDeps([7,8,1,9,10]))),Pyt=Z.lazy(()=>ln(()=>import("./exchange-passport-C0GAsRNR.js"),__vite__mapDeps([11,9,10,12]))),Myt=Z.lazy(()=>ln(()=>import("./issue-passport-D2Q1-74y.js"),__vite__mapDeps([13,14,15,1,16,17,12]))),Byt=Z.lazy(()=>ln(()=>import("./lost-passport-Dv4pNp1C.js"),__vite__mapDeps([18,17,19,20,21,10,12,1,22,6,23]))),Nyt=Z.lazy(()=>ln(()=>import("./start-BhdnYJM5.js"),__vite__mapDeps([24,25,26,21,10,27,28,29,30]))),Fyt=Z.lazy(()=>ln(()=>import("./setup-ByUHGOc2.js"),__vite__mapDeps([31,32,33,8,34,35,36,37,28,29,30,27]))),Uyt=Z.lazy(()=>ln(()=>import("./invite-DGRTk7ZM.js"),__vite__mapDeps([38,14,15,1,16,17,12]))),Hyt=Z.lazy(()=>ln(()=>import("./transfer-BAjaassl.js"),__vite__mapDeps([39,17,28,29,30]))),jyt=Z.lazy(()=>ln(()=>import("./dashboard-B8uTlQlw.js").then(e=>e.m),__vite__mapDeps([40,41,42,43,44,45,5,6,46,25,47,48,49,50,51,52,22,16,53,54,55,10,56,4,57,58,37,59,29]))),Xj=Z.lazy(()=>ln(()=>import("./user-center-LIAN3Isw.js"),__vite__mapDeps([60,61,4,57,58,37,59,43,29,62,22,6,63,64,65,66,41,67,68,69,50,51,8,70,71,72,73,74,5,75,76,77,78,79,52,47,80,81,82,83,46]))),Vyt=Z.lazy(()=>ln(()=>import("./home-CV2SpOCA.js"),__vite__mapDeps([84,85,57,58,37,4]))),Jyt=Z.lazy(()=>ln(()=>import("./preferences-C-QiUc19.js"),__vite__mapDeps([86,87,85,57,58,37,4]))),qyt=Z.lazy(()=>ln(()=>import("./localization-CBBPUDcB.js"),__vite__mapDeps([88,85,57,58,37,4]))),Gyt=Z.lazy(()=>ln(()=>import("./add-resource-D_lXratj.js"),__vite__mapDeps([89,90,91,32,33,8,34,35,36,37,92,93,94,68,95,96,97,98,20,99,72,71,51,73,70,100,101,50,102,103,16,21,10,23,45,5,6,104,105,43,106,107,108,109,44,22,48,110,79,47,111,112,113,66,114,62,115,116,42,4,67,83,69,74,117,118]))),zyt=Z.lazy(()=>ln(()=>import("./publish-resource-C7-6c_gV.js"),__vite__mapDeps([119,120,105,121,46,26,76,77,78,79,50,51,71,52,73,47,70,72,41,80,58,81,82,83,67,43,55,44,45,5,6,16,21,10,122,22,109,123,30,56,96,124,34,8,62,65,125,107,104,106,20,108,48,110,116,74,69,100,101,126,23,49]))),Wyt=Z.lazy(()=>ln(()=>import("./index-Cx2hCC4T.js"),[])),Kyt=Z.lazy(()=>ln(()=>import("./unsubscribe-gdLy_PwD.js"),[])),Yyt=Z.lazy(()=>ln(()=>import("./open-window-DHayT3Px.js"),[]));function Zyt(){var r;const e=sl(),{t}=Vm();Z.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const n=q.jsx(Cp,{children:q.jsx(Fm,{})});return q.jsxs(q.Fragment,{children:[q.jsx(J6,{children:q.jsx("title",{children:t("pageTitle.dashboard")})}),q.jsx(Z.Suspense,{fallback:n,children:q.jsxs($6,{children:[q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window`,element:q.jsx(Yyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:q.jsx(Byt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:q.jsx(Myt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:q.jsx(Dyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/callback/:provider`,element:q.jsx(Lyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:q.jsx(Oyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:q.jsx(Pyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:q.jsx(Uyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:q.jsx(Hyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:q.jsx(Vyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:q.jsx(Jyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:q.jsx(qyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:q.jsx(Jc,{children:q.jsx(Nyt,{})})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:q.jsx(E1,{mode:"setup",children:q.jsx(Fyt,{})})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:q.jsx(Kyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:q.jsx(Jc,{roles:["*"],children:q.jsx(Xj,{})})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:q.jsx(Jc,{roles:["*"],children:q.jsx(Xj,{})})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:q.jsx(Zj,{children:q.jsx(kyt,{children:q.jsx(Jc,{roles:["owner","admin","member"],children:q.jsx(E1,{mode:"dashboard",children:q.jsx(jyt,{})})})})})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:q.jsx(Gq,{to:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:q.jsx(Zj,{children:q.jsx(Jc,{roles:((r=window.blocklet)==null?void 0:r.tenantMode)===la.BLOCKLET_TENANT_MODES.MULTIPLE?["owner","admin","guest"]:["owner","admin"],children:q.jsx(E1,{mode:"dashboard",children:q.jsxs($6,{children:[q.jsx(yr,{path:"add",element:q.jsx(Gyt,{})}),q.jsx(yr,{path:"publish/*",element:q.jsx(zyt,{})}),q.jsx(yr,{path:"*",element:q.jsx(Wyt,{})})]})})})})})]})})]})}function Xyt(){return q.jsx($0e,{basename:Tre,children:q.jsx(Art,{children:q.jsx(Zyt,{})})})}const Qyt=Tq(document.getElementById("app"));Qyt.render(q.jsx(Xyt,{}));const evt=Jt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await ln(()=>import("./index-DTEEl-sV.js"),[]);t(`${evt}/service-worker.js`.replace(/\/+/g,"/"),{registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(n){console.error("Error during service worker registration:",n)}})}e()}export{kG as $,Zl as A,Et as B,Cp as C,Bp as D,ivt as E,Jt as F,B6e as G,J6 as H,met as I,get as J,MQ as K,D0e as L,OSe as M,kt as N,Si as O,me as P,xPe as Q,u2t as R,Ert as S,or as T,N9e as U,Lp as V,Wl as W,Gm as X,Mf as Y,q1 as Z,xr as _,Yl as a,mee as a$,sW as a0,cB as a1,ln as a2,Nu as a3,Cg as a4,Ns as a5,V3t as a6,df as a7,G7 as a8,la as a9,CI as aA,zn as aB,Gn as aC,Zt as aD,Pt as aE,Zn as aF,en as aG,Ie as aH,vf as aI,tn as aJ,nr as aK,uC as aL,p2t as aM,E3t as aN,URe as aO,C2 as aP,R2 as aQ,Y3t as aR,f3t as aS,G3t as aT,T3t as aU,l3t as aV,Z3t as aW,U$ as aX,uh as aY,Km as aZ,hee as a_,l2t as aa,g3t as ab,up as ac,nu as ad,dh as ae,d2t as af,s2t as ag,o2t as ah,mpt as ai,Tre as aj,Zj as ak,$6 as al,yr as am,Gq as an,NT as ao,S8 as ap,YZ as aq,v3t as ar,p3t as as,h3t as at,bI as au,oa as av,AIe as aw,_x as ax,sl as ay,ou as az,PW as b,lp as b$,H$ as b0,s8 as b1,Lee as b2,Zm as b3,zt as b4,WIe as b5,LK as b6,Qx as b7,q7 as b8,Q1e as b9,Ih as bA,Hn as bB,Vn as bC,ite as bD,y$ as bE,dc as bF,Cvt as bG,L$ as bH,k$ as bI,_vt as bJ,uet as bK,see as bL,Kvt as bM,iNe as bN,Js as bO,Oi as bP,yee as bQ,vee as bR,bee as bS,KT as bT,dY as bU,QNe as bV,eFe as bW,jW as bX,$vt as bY,IMe as bZ,$9e as b_,Y1e as ba,j3t as bb,DW as bc,CT as bd,b3t as be,qW as bf,m3t as bg,ru as bh,yRe as bi,N3t as bj,jT as bk,jx as bl,y2t as bm,m2t as bn,hZ as bo,X3t as bp,li as bq,ul as br,Sx as bs,Ek as bt,oie as bu,Ghe as bv,tm as bw,Va as bx,vre as by,Ax as bz,Cn as c,Pm as c$,Sf as c0,Pr as c1,yh as c2,$o as c3,d6e as c4,O6e as c5,w6e as c6,v6e as c7,ZZ as c8,ld as c9,zl as cA,ll as cB,zve as cC,Rc as cD,pvt as cE,Y1 as cF,ax as cG,nc as cH,lx as cI,Gs as cJ,Ai as cK,Vge as cL,PG as cM,NG as cN,OCe as cO,Jx as cP,ECe as cQ,Vx as cR,Nvt as cS,JP as cT,Fvt as cU,X5e as cV,e6e as cW,ST as cX,N6 as cY,LG as cZ,ox as c_,qG as ca,GG as cb,iye as cc,rye as cd,hi as ce,U0 as cf,iT as cg,Er as ch,sx as ci,Ef as cj,Gx as ck,Rvt as cl,xvt as cm,H0e as cn,pp as co,JC as cp,Fi as cq,ft as cr,Wu as cs,dZ as ct,ez as cu,Avt as cv,z7 as cw,QG as cx,hG as cy,$G as cz,zee as d,mvt as d$,kge as d0,Gl as d1,cvt as d2,EG as d3,hs as d4,uvt as d5,ex as d6,Dge as d7,Lm as d8,MW as d9,on as dA,svt as dB,ovt as dC,avt as dD,lvt as dE,_m as dF,zx as dG,HE as dH,Nf as dI,Xm as dJ,JKe as dK,jz as dL,Oee as dM,ec as dN,mG as dO,gye as dP,_me as dQ,vG as dR,Nm as dS,yvt as dT,bvt as dU,vvt as dV,gvt as dW,Wye as dX,Om as dY,th as dZ,G9 as d_,FW as da,APe as db,ci as dc,tg as dd,Wx as de,rvt as df,U1 as dg,VT as dh,Ivt as di,SI as dj,wvt as dk,qvt as dl,t3e as dm,nz as dn,Wvt as dp,kp as dq,o3t as dr,Svt as ds,sC as dt,JW as du,RRe as dv,zP as dw,GP as dx,ARe as dy,Uvt as dz,Hb as e,D3t as e$,_p as e0,Sve as e1,Tvt as e2,Fge as e3,tc as e4,XG as e5,$ve as e6,Hge as e7,dvt as e8,B6 as e9,F3e as eA,Yt as eB,cT as eC,XT as eD,QT as eE,L2 as eF,LM as eG,qt as eH,XE as eI,Oh as eJ,di as eK,gne as eL,Gp as eM,u9e as eN,DT as eO,$3t as eP,O3t as eQ,z3t as eR,F3t as eS,eet as eT,Ia as eU,Q3t as eV,wf as eW,DPe as eX,Tq as eY,Pst as eZ,fH as e_,Mge as ea,Nge as eb,Uge as ec,Jye as ed,ET as ee,Xve as ef,fvt as eg,E_e as eh,Ovt as ei,V_e as ej,J_e as ek,K_e as el,Pvt as em,qn as en,I5e as eo,Fy as ep,K5e as eq,HRe as er,v0 as es,WRe as et,Pl as eu,xo as ev,O1e as ew,n3e as ex,Mve as ey,dx as ez,ig as f,x3t as f$,H3t as f0,m1 as f1,jvt as f2,Lst as f3,P3t as f4,M3t as f5,vNe as f6,hpt as f7,Sst as f8,Xte as f9,Tx as fA,fc as fB,w3t as fC,d3t as fD,jst as fE,Tst as fF,x8 as fG,_3t as fH,U3t as fI,q3t as fJ,G1 as fK,Kr as fL,Kte as fM,xKe as fN,fY as fO,nvt as fP,U8 as fQ,Pje as fR,Klt as fS,Oje as fT,q8 as fU,xn as fV,ug as fW,hg as fX,SQ as fY,Q8 as fZ,C3t as f_,s3t as fa,cE as fb,L3t as fc,lye as fd,WT as fe,CQe as ff,BQe as fg,DQ as fh,e8 as fi,wye as fj,Ix as fk,vW as fl,$8 as fm,hvt as fn,T_e as fo,Est as fp,A3t as fq,B3t as fr,vKe as fs,a2t as ft,LH as fu,pee as fv,yx as fw,UAe as fx,vx as fy,Got as fz,Tf as g,LQe as g$,n2t as g0,k3t as g1,yre as g2,S3t as g3,R3t as g4,e2t as g5,I3t as g6,Ost as g7,Mst as g8,uK as g9,XCe as gA,Evt as gB,Bve as gC,Lvt as gD,p_e as gE,G5e as gF,zCe as gG,Mvt as gH,QCe as gI,Bvt as gJ,$Re as gK,Hvt as gL,Sye as gM,R8 as gN,d_e as gO,K6e as gP,dw as gQ,Dvt as gR,_9 as gS,Ly as gT,est as gU,Jte as gV,o_e as gW,FT as gX,zT as gY,f3e as gZ,eA as g_,om as ga,uZ as gb,v2 as gc,DG as gd,MG as ge,uY as gf,KW as gg,y3t as gh,L1e as gi,Une as gj,l8 as gk,Eze as gl,xOe as gm,BI as gn,nm as go,Rze as gp,u3t as gq,zvt as gr,J3t as gs,LU as gt,L3e as gu,hY as gv,D2 as gw,Gvt as gx,eC as gy,c3t as gz,Xt as h,Kx as h0,Jvt as h1,Vvt as h2,cY as h3,Wi as h4,W3t as h5,LW as h6,Ki as i,q as j,Tt as k,eg as l,Fm as m,m$ as n,fi as o,Ts as p,al as q,Z as r,zr as s,r2t as t,Vm as u,i2t as v,Mp as w,aW as x,g1 as y,VE as z};
|
|
1290
|
+
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:[{name:"name",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"description",description:null,args:[],type:{kind:"SCALAR",name:"String",ofType:null},isDeprecated:!1,deprecationReason:null},{name:"isRepeatable",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},isDeprecated:!1,deprecationReason:null},{name:"locations",description:null,args:[],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"ENUM",name:"__DirectiveLocation",ofType:null}}}},isDeprecated:!1,deprecationReason:null},{name:"args",description:null,args:[{name:"includeDeprecated",description:null,type:{kind:"SCALAR",name:"Boolean",ofType:null},defaultValue:"false"}],type:{kind:"NON_NULL",name:null,ofType:{kind:"LIST",name:null,ofType:{kind:"NON_NULL",name:null,ofType:{kind:"OBJECT",name:"__InputValue",ofType:null}}}},isDeprecated:!1,deprecationReason:null}],inputFields:null,interfaces:[],enumValues:null,possibleTypes:null},{kind:"ENUM",name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",fields:null,inputFields:null,interfaces:null,enumValues:[{name:"QUERY",description:"Location adjacent to a query operation.",isDeprecated:!1,deprecationReason:null},{name:"MUTATION",description:"Location adjacent to a mutation operation.",isDeprecated:!1,deprecationReason:null},{name:"SUBSCRIPTION",description:"Location adjacent to a subscription operation.",isDeprecated:!1,deprecationReason:null},{name:"FIELD",description:"Location adjacent to a field.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_DEFINITION",description:"Location adjacent to a fragment definition.",isDeprecated:!1,deprecationReason:null},{name:"FRAGMENT_SPREAD",description:"Location adjacent to a fragment spread.",isDeprecated:!1,deprecationReason:null},{name:"INLINE_FRAGMENT",description:"Location adjacent to an inline fragment.",isDeprecated:!1,deprecationReason:null},{name:"VARIABLE_DEFINITION",description:"Location adjacent to a variable definition.",isDeprecated:!1,deprecationReason:null},{name:"SCHEMA",description:"Location adjacent to a schema definition.",isDeprecated:!1,deprecationReason:null},{name:"SCALAR",description:"Location adjacent to a scalar definition.",isDeprecated:!1,deprecationReason:null},{name:"OBJECT",description:"Location adjacent to an object type definition.",isDeprecated:!1,deprecationReason:null},{name:"FIELD_DEFINITION",description:"Location adjacent to a field definition.",isDeprecated:!1,deprecationReason:null},{name:"ARGUMENT_DEFINITION",description:"Location adjacent to an argument definition.",isDeprecated:!1,deprecationReason:null},{name:"INTERFACE",description:"Location adjacent to an interface definition.",isDeprecated:!1,deprecationReason:null},{name:"UNION",description:"Location adjacent to a union definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM",description:"Location adjacent to an enum definition.",isDeprecated:!1,deprecationReason:null},{name:"ENUM_VALUE",description:"Location adjacent to an enum value definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_OBJECT",description:"Location adjacent to an input object type definition.",isDeprecated:!1,deprecationReason:null},{name:"INPUT_FIELD_DEFINITION",description:"Location adjacent to an input object field definition.",isDeprecated:!1,deprecationReason:null}],possibleTypes:null}],lyt=[{name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Included when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:["FIELD","FRAGMENT_SPREAD","INLINE_FRAGMENT"],args:[{name:"if",description:"Skipped when true.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"Boolean",ofType:null}},defaultValue:null}]},{name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:["FIELD_DEFINITION","ARGUMENT_DEFINITION","INPUT_FIELD_DEFINITION","ENUM_VALUE"],args:[{name:"reason",description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",type:{kind:"SCALAR",name:"String",ofType:null},defaultValue:'"No longer supported"'}]},{name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:["SCALAR"],args:[{name:"url",description:"The URL that specifies the behavior of this scalar.",type:{kind:"NON_NULL",name:null,ofType:{kind:"SCALAR",name:"String",ofType:null}},defaultValue:null}]}],uyt={queryType:iyt,mutationType:ayt,subscriptionType:oyt,types:syt,directives:lyt},cyt=mre,fyt=uyt;let dyt=class extends cyt{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http://localhost:4000/api",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r={dataSource:"forge",httpEndpoint:t,socketEndpoint:()=>this._getSocketEndpoint(t),enableQuery:!0,enableSubscription:!0,enableMutation:!0,maxQueryDepth:6};super(r),this._endpoint=t,this._authToken=null,this._userAgent=n}setAuthToken(t){this._authToken=t}_getSocketEndpoint(t){let n=t.replace(/https?:\/\//,"ws://");return t.indexOf("https://")===0&&(n=n.replace("ws://","wss://")),"".concat(n,"/socket")}_getSchema(){return fyt}_getIgnoreFields(t){return[]}_getAuthHeaders(){const t={},n=this._authToken;if(n){const r=typeof n=="function"?n():n;t.Authorization="Bearer ".concat(encodeURIComponent(r))}if(typeof window<"u"&&typeof window.location<"u"){const{hostname:r,port:i,protocol:a}=window.location;t["x-real-hostname"]=r,t["x-real-port"]=i,t["x-real-protocol"]=a.endsWith(":")?a.substring(0,a.length-1):a}return this._userAgent&&(t["User-Agent"]=this._userAgent),t}};var pyt=dyt;const hyt=w$,myt=pyt;class gyt extends myt{_getSocketOptions(){return{}}_getEventImplementation(){return hyt}}var yyt=gyt;const vyt=zt(yyt),byt=(window.env?window.env.apiPrefix:"/")||"/",Ns=new vyt(()=>`${byt}/api/gql?locale=${X6()}`.replace(/\/+/g,"/").trim());function Tyt({wsClient:e,event:t,cb:n=()=>{},deps:r=[]}){Z.useEffect(()=>{const i=e&&(!r.length||r.every(Boolean));return i&&e.on(t,n),()=>{i&&e.off(t,n)}},r)}let rf;function aie(){const e=(window.env&&window.env.apiPrefix?window.env.apiPrefix:"/").replace(/\/$/,""),t=`//${window.location.host}${e}/admin`;return new K$.WsClient(t,{heartbeatIntervalMs:100*1e3,params:()=>({token:Kr.get("login_token")})})}function oie(){return rf||(rf=aie()),rf}const Ek=(e,t=()=>{},n=[])=>{e=`${window.blocklet.did}/${e}`;const{session:r}=zee();!rf&&r.user&&(rf=oie(),rf.connect()),Tyt({wsClient:rf,event:e,cb:t,deps:n})};let D5=null;const Eyt=async()=>{try{return(await Cg.get(`/dns-resolve?hostname=${window.location.hostname}`)).data.address}catch{return null}},Ayt=()=>(D5||(D5=Eyt()),D5),{Provider:Syt,Consumer:f2t}=xI,wyt=e=>e&&Wu(e,"settings.publicToStore")?e.settings.publicToStore:!1,_yt=(e,t)=>{const n=/^{env\.(.+)}$/.exec(e);if(n&&n[1]){const r=((t==null?void 0:t.configs)||[]).find(i=>i.key===n[1]);return!r&&!r.value?"":r.value}return e},Cyt=(()=>{const e={endpoint:"",data:{}};return async t=>{if(e.endpoint===t)return e.data;const r=await yre(t).getConfig();return e.endpoint=t,e.data=r,r}})(),{did:_d,appId:Ryt}=window.env;function E1({children:e,mode:t}){var T;const[n,r]=Z.useState(null),[i,a]=Z.useState(!1),[o,s]=Z.useState({}),[l,c]=Z.useState(),[u,d]=Z.useState(),[p,m]=Z.useState(),y=t==="setup",{loading:b,loadingRuntimeInfo:_,error:S,blocklet:$,recommendedDomain:D,runtimeHistory:P,actions:{refreshBlocklet:U,refreshDomainStatus:L,setBlocklet:F}}=ilt({did:_d,client:Ns,useSubscription:Ek,getIP:Ayt,useLocaleContext:Vm,getOptionalComponents:!0}),G=Z.useRef(void 0);G.current=(T=$==null?void 0:$.meta)==null?void 0:T.did;const ie=async()=>{try{a(!0),r(null);const{data:w}=await Cg.get("/blocklet/meta");s(w),a(!1)}catch(w){a(!1),r(w),zr.error(w.message)}},se=async({showError:w=!0}={})=>{var N,Y;if(!((Y=(N=o==null?void 0:o.requirements)==null?void 0:N.fuels)!=null&&Y.length))return null;const{endpoint:R,value:I,address:C}=o.requirements.fuels[0],x=_yt(R,$),v=I;let k=I;const ne={endpoint:x,symbol:"",need:v,current:0,owe:Number(v)>0};try{const re=yre(x),{config:le}=await Cyt(x),ge=JSON.parse(le).token;let Se=C;Se||(Se=ge.address),d({address:ge.address,symbol:ge.symbol,decimal:ge.decimal});const{getAccountState:{state:j},getTokenState:{state:M}}=await re.doBatchQuery({getAccountState:{address:Ryt},getTokenState:{address:Se}});M&&(ne.symbol=M.symbol);const z=((j==null?void 0:j.tokens)||[]).find(W=>W.address===Se);if(z){const W=di.fromTokenToUnit(v,z.decimal||18);ne.current=di.fromUnitToToken(z.value,z.decimal||18),ne.owe=W.gt(new di.BN(z.value)),k=Math.max(0,di.fromUnitToToken(W.sub(new di.BN(z.value)),z.decimal||18))}}catch(re){w&&zr.error(re.message)}return c({...ne,deficiency:k}),ne},K=async({configs:w,childDid:R})=>(await Ns.configBlocklet({input:{did:[_d].concat(R).filter(Boolean),configs:w}}),U()),B=async w=>{const{blocklet:R}=await Ns.updateWhoCanAccess({input:{did:[_d],whoCanAccess:w}});F(R)},E=async w=>{const{blocklet:R}=await Ns.configPublicToStore({input:{did:_d,publicToStore:w}});F(R)},f=async w=>{const{blocklet:R}=await Ns.configNavigations({input:{did:_d,navigations:w}});F(R)};Z.useEffect(()=>{y&&ie(),U({showError:!1})},[]),Z.useEffect(()=>{var w;(w=$==null?void 0:$.controller)!=null&&w.launcherSessionId&&Ns.getLauncherSession({input:{launcherSessionId:$.controller.launcherSessionId,launcherUrl:$.controller.launcherUrl}}).then(R=>{m(R.launcherSession)}).catch(R=>{console.error("get launcher session error",R)})},[$==null?void 0:$.appPid]);const h={loading:i||b,loadingRuntimeInfo:_,error:n||S,blocklet:$,launcherSession:p,did:_d,recommendedDomain:D,runtimeHistory:P,appIdList:$?df.getBlockletAppIdList($):[],env:window.blocklet||{},meta:o,gas:l,tokenInfo:u,getPublicInstance:wyt,client:Ns,mode:t,actions:{refreshBlocklet:U,refreshDomainStatus:L,setBlocklet:F,refreshMeta:ie,refreshFuel:se,configBlocklet:K,configWhoCanAccess:B,configPublicToStore:E,configNavigations:f}};return q.jsx(Syt,{value:h,children:e})}E1.propTypes={children:me.any,mode:me.oneOf(["dashboard","setup"]).isRequired};E1.defaultProps={children:null};function d2t(){return Z.useContext(xI)}const Ak=Z.createContext({});function p2t(){const{node:e}=Z.useContext(Ak);return{...e,inService:e.type==="service",inDaemon:e.type==="daemon"}}const{Provider:xyt,Consumer:h2t}=Ak,$yt=`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/static/images`;function Zj({children:e}){const{serverDid:t,serverVersion:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}=window.env,s={api:Ns,restApi:Cg,prefix:Jt.WELLKNOWN_SERVICE_PATH_PREFIX,imgPrefix:$yt,getSessionInHeader:()=>({}),ws:{getWsClient:oie,create:aie,useSubscription:Ek},type:"service",info:{did:t,version:n,mode:r,nftDomainUrl:i,ownerNft:a,launcher:o}};return q.jsx(xyt,{value:{node:s},children:e})}function m2t(){const{node:e}=Z.useContext(Ak);return e}const sie=Z.createContext({}),{Provider:Iyt,Consumer:g2t}=sie;function kyt({children:e}){const{did:t}=window.env,[n,r]=Z.useState([]),[i,a]=Z.useState({total:0,pageSize:10,pageCount:0,page:1}),[o,s]=Z.useState(!1),l=async({page:u=1}={})=>{if(!o){s(!0);try{const d=await Ns.getBlockletNotifications({input:{paging:{page:u},teamDid:t}});r(d.list),a(d.paging),s(!1)}catch(d){zr.error(d.message),s(!1)}}};Z.useEffect(()=>{l()},[]),Ek(Jt.EVENTS.NOTIFICATION_BLOCKLET_CREATE,u=>{r(d=>[u,...d||[]])});const c={loading:o,refresh:l,data:n||[],paging:i,api:Ns};return q.jsx(Iyt,{value:{notifications:c},children:e})}function y2t(){const{notifications:e}=Z.useContext(sie);return e}const Dyt=Z.lazy(()=>ln(()=>import("./login-GpOY32jR.js"),__vite__mapDeps([0,1,2]))),Lyt=Z.lazy(()=>ln(()=>import("./login-oauth-callback-BXcvvtNd.js"),__vite__mapDeps([3,4,5,6]))),Oyt=Z.lazy(()=>ln(()=>import("./connect-BhrLK1J8.js"),__vite__mapDeps([7,8,1,9,10]))),Pyt=Z.lazy(()=>ln(()=>import("./exchange-passport-B9V8uClk.js"),__vite__mapDeps([11,9,10,12]))),Myt=Z.lazy(()=>ln(()=>import("./issue-passport-BTra3aBA.js"),__vite__mapDeps([13,14,15,1,16,17,12]))),Byt=Z.lazy(()=>ln(()=>import("./lost-passport-D2dkzuxx.js"),__vite__mapDeps([18,17,19,20,21,10,12,1,22,6,23]))),Nyt=Z.lazy(()=>ln(()=>import("./start-DtUbBWzn.js"),__vite__mapDeps([24,25,26,21,10,27,28,29,30]))),Fyt=Z.lazy(()=>ln(()=>import("./setup-D22hA_X1.js"),__vite__mapDeps([31,32,33,8,34,35,36,37,28,29,30,27]))),Uyt=Z.lazy(()=>ln(()=>import("./invite-BzCeKHmV.js"),__vite__mapDeps([38,14,15,1,16,17,12]))),Hyt=Z.lazy(()=>ln(()=>import("./transfer-C9nVty2y.js"),__vite__mapDeps([39,17,28,29,30]))),jyt=Z.lazy(()=>ln(()=>import("./dashboard-DE7DJDSa.js").then(e=>e.m),__vite__mapDeps([40,41,42,43,44,45,5,6,46,25,47,48,49,50,51,52,22,16,53,54,55,10,56,4,57,58,37,59,29]))),Xj=Z.lazy(()=>ln(()=>import("./user-center-CspBKliV.js"),__vite__mapDeps([60,61,4,57,58,37,59,43,29,62,22,6,63,64,65,66,10,41,67,68,69,50,51,8,70,71,72,73,74,5,75,76,77,78,79,52,47,80,81,82,83,46]))),Vyt=Z.lazy(()=>ln(()=>import("./home-BVB6fRN1.js"),__vite__mapDeps([84,85,57,58,37,4]))),Jyt=Z.lazy(()=>ln(()=>import("./preferences-CTJS3peX.js"),__vite__mapDeps([86,87,85,57,58,37,4]))),qyt=Z.lazy(()=>ln(()=>import("./localization-CC3JYlLl.js"),__vite__mapDeps([88,85,57,58,37,4]))),Gyt=Z.lazy(()=>ln(()=>import("./add-resource-CViQYEiF.js"),__vite__mapDeps([89,90,91,32,33,8,34,35,36,37,92,93,94,68,95,96,97,98,20,99,72,71,51,73,70,100,101,50,102,103,16,21,10,23,45,5,6,104,105,43,106,107,108,109,44,22,48,110,79,47,111,112,113,66,114,62,115,116,42,4,67,83,69,74,117,118]))),zyt=Z.lazy(()=>ln(()=>import("./publish-resource-D4elIPww.js"),__vite__mapDeps([119,120,105,121,46,26,76,77,78,79,50,51,71,52,73,47,70,72,41,80,58,81,82,83,67,43,55,44,45,5,6,16,21,10,122,22,109,123,30,56,96,124,34,8,62,65,125,107,104,106,20,108,48,110,116,74,69,100,101,126,23,49]))),Wyt=Z.lazy(()=>ln(()=>import("./index-Daj4u33W.js"),[])),Kyt=Z.lazy(()=>ln(()=>import("./unsubscribe-CYrzKBcR.js"),[])),Yyt=Z.lazy(()=>ln(()=>import("./open-window-BV1JKQks.js"),[]));function Zyt(){var r;const e=sl(),{t}=Vm();Z.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${e.pathname}${e.search}`)},[e]);const n=q.jsx(Cp,{children:q.jsx(Fm,{})});return q.jsxs(q.Fragment,{children:[q.jsx(J6,{children:q.jsx("title",{children:t("pageTitle.dashboard")})}),q.jsx(Z.Suspense,{fallback:n,children:q.jsxs($6,{children:[q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window`,element:q.jsx(Yyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:q.jsx(Byt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:q.jsx(Myt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,element:q.jsx(Dyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/oauth/callback/:provider`,element:q.jsx(Lyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/connect`,element:q.jsx(Oyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:q.jsx(Pyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:q.jsx(Uyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/transfer`,element:q.jsx(Hyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/home`,element:q.jsx(Vyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,element:q.jsx(Jyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,element:q.jsx(qyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/start`,element:q.jsx(Jc,{children:q.jsx(Nyt,{})})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/setup/*`,element:q.jsx(E1,{mode:"setup",children:q.jsx(Fyt,{})})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/unsubscribe`,element:q.jsx(Kyt,{})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/user/:tab`,element:q.jsx(Jc,{roles:["*"],children:q.jsx(Xj,{})})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/user`,element:q.jsx(Jc,{roles:["*"],children:q.jsx(Xj,{})})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/:tab/*`,element:q.jsx(Zj,{children:q.jsx(kyt,{children:q.jsx(Jc,{roles:["owner","admin","member"],children:q.jsx(E1,{mode:"dashboard",children:q.jsx(jyt,{})})})})})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,element:q.jsx(Gq,{to:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/overview`,replace:!0})}),q.jsx(yr,{path:`${Jt.WELLKNOWN_SERVICE_PATH_PREFIX}/embed/resources/:componentDid/*`,element:q.jsx(Zj,{children:q.jsx(Jc,{roles:((r=window.blocklet)==null?void 0:r.tenantMode)===la.BLOCKLET_TENANT_MODES.MULTIPLE?["owner","admin","guest"]:["owner","admin"],children:q.jsx(E1,{mode:"dashboard",children:q.jsxs($6,{children:[q.jsx(yr,{path:"add",element:q.jsx(Gyt,{})}),q.jsx(yr,{path:"publish/*",element:q.jsx(zyt,{})}),q.jsx(yr,{path:"*",element:q.jsx(Wyt,{})})]})})})})})]})})]})}function Xyt(){return q.jsx($0e,{basename:Tre,children:q.jsx(Art,{children:q.jsx(Zyt,{})})})}const Qyt=Tq(document.getElementById("app"));Qyt.render(q.jsx(Xyt,{}));const evt=Jt.WELLKNOWN_SERVICE_PATH_PREFIX;{async function e(){const{register:t}=await ln(()=>import("./index-DTEEl-sV.js"),[]);t(`${evt}/service-worker.js`.replace(/\/+/g,"/"),{registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(n){console.error("Error during service worker registration:",n)}})}e()}export{kG as $,Zl as A,Et as B,Cp as C,Bp as D,ivt as E,Jt as F,B6e as G,J6 as H,met as I,get as J,MQ as K,D0e as L,OSe as M,kt as N,Si as O,me as P,xPe as Q,u2t as R,Ert as S,or as T,N9e as U,Lp as V,Wl as W,Gm as X,Mf as Y,q1 as Z,xr as _,Yl as a,mee as a$,sW as a0,cB as a1,ln as a2,Nu as a3,Cg as a4,Ns as a5,V3t as a6,df as a7,G7 as a8,la as a9,CI as aA,zn as aB,Gn as aC,Zt as aD,Pt as aE,Zn as aF,en as aG,Ie as aH,vf as aI,tn as aJ,nr as aK,uC as aL,p2t as aM,E3t as aN,URe as aO,C2 as aP,R2 as aQ,Y3t as aR,f3t as aS,G3t as aT,T3t as aU,l3t as aV,Z3t as aW,U$ as aX,uh as aY,Km as aZ,hee as a_,l2t as aa,g3t as ab,up as ac,nu as ad,dh as ae,d2t as af,s2t as ag,o2t as ah,mpt as ai,Tre as aj,Zj as ak,$6 as al,yr as am,Gq as an,NT as ao,S8 as ap,YZ as aq,v3t as ar,p3t as as,h3t as at,bI as au,oa as av,AIe as aw,_x as ax,sl as ay,ou as az,PW as b,lp as b$,H$ as b0,s8 as b1,Lee as b2,Zm as b3,zt as b4,WIe as b5,LK as b6,Qx as b7,q7 as b8,Q1e as b9,Ih as bA,Hn as bB,Vn as bC,ite as bD,y$ as bE,dc as bF,Cvt as bG,L$ as bH,k$ as bI,_vt as bJ,uet as bK,see as bL,Kvt as bM,iNe as bN,Js as bO,Oi as bP,yee as bQ,vee as bR,bee as bS,KT as bT,dY as bU,QNe as bV,eFe as bW,jW as bX,$vt as bY,IMe as bZ,$9e as b_,Y1e as ba,j3t as bb,DW as bc,CT as bd,b3t as be,qW as bf,m3t as bg,ru as bh,yRe as bi,N3t as bj,jT as bk,jx as bl,y2t as bm,m2t as bn,hZ as bo,X3t as bp,li as bq,ul as br,Sx as bs,Ek as bt,oie as bu,Ghe as bv,tm as bw,Va as bx,vre as by,Ax as bz,Cn as c,Pm as c$,Sf as c0,Pr as c1,yh as c2,$o as c3,d6e as c4,O6e as c5,w6e as c6,v6e as c7,ZZ as c8,ld as c9,zl as cA,ll as cB,zve as cC,Rc as cD,pvt as cE,Y1 as cF,ax as cG,nc as cH,lx as cI,Gs as cJ,Ai as cK,Vge as cL,PG as cM,NG as cN,OCe as cO,Jx as cP,ECe as cQ,Vx as cR,Nvt as cS,JP as cT,Fvt as cU,X5e as cV,e6e as cW,ST as cX,N6 as cY,LG as cZ,ox as c_,qG as ca,GG as cb,iye as cc,rye as cd,hi as ce,U0 as cf,iT as cg,Er as ch,sx as ci,Ef as cj,Gx as ck,Rvt as cl,xvt as cm,H0e as cn,pp as co,JC as cp,Fi as cq,ft as cr,Wu as cs,dZ as ct,ez as cu,Avt as cv,z7 as cw,QG as cx,hG as cy,$G as cz,zee as d,mvt as d$,kge as d0,Gl as d1,cvt as d2,EG as d3,hs as d4,uvt as d5,ex as d6,Dge as d7,Lm as d8,MW as d9,on as dA,svt as dB,ovt as dC,avt as dD,lvt as dE,_m as dF,zx as dG,HE as dH,Nf as dI,Xm as dJ,JKe as dK,jz as dL,Oee as dM,ec as dN,mG as dO,gye as dP,_me as dQ,vG as dR,Nm as dS,yvt as dT,bvt as dU,vvt as dV,gvt as dW,Wye as dX,Om as dY,th as dZ,G9 as d_,FW as da,APe as db,ci as dc,tg as dd,Wx as de,rvt as df,U1 as dg,VT as dh,Ivt as di,SI as dj,wvt as dk,qvt as dl,t3e as dm,nz as dn,Wvt as dp,kp as dq,o3t as dr,Svt as ds,sC as dt,JW as du,RRe as dv,zP as dw,GP as dx,ARe as dy,Uvt as dz,Hb as e,D3t as e$,_p as e0,Sve as e1,Tvt as e2,Fge as e3,tc as e4,XG as e5,$ve as e6,Hge as e7,dvt as e8,B6 as e9,F3e as eA,Yt as eB,cT as eC,XT as eD,QT as eE,L2 as eF,LM as eG,qt as eH,XE as eI,Oh as eJ,di as eK,gne as eL,Gp as eM,u9e as eN,DT as eO,$3t as eP,O3t as eQ,z3t as eR,F3t as eS,eet as eT,Ia as eU,Q3t as eV,wf as eW,DPe as eX,Tq as eY,Pst as eZ,fH as e_,Mge as ea,Nge as eb,Uge as ec,Jye as ed,ET as ee,Xve as ef,fvt as eg,E_e as eh,Ovt as ei,V_e as ej,J_e as ek,K_e as el,Pvt as em,qn as en,I5e as eo,Fy as ep,K5e as eq,HRe as er,v0 as es,WRe as et,Pl as eu,xo as ev,O1e as ew,n3e as ex,Mve as ey,dx as ez,ig as f,x3t as f$,H3t as f0,m1 as f1,jvt as f2,Lst as f3,P3t as f4,M3t as f5,vNe as f6,hpt as f7,Sst as f8,Xte as f9,Tx as fA,fc as fB,w3t as fC,d3t as fD,jst as fE,Tst as fF,x8 as fG,_3t as fH,U3t as fI,q3t as fJ,G1 as fK,Kr as fL,Kte as fM,xKe as fN,fY as fO,nvt as fP,U8 as fQ,Pje as fR,Klt as fS,Oje as fT,q8 as fU,xn as fV,ug as fW,hg as fX,SQ as fY,Q8 as fZ,C3t as f_,s3t as fa,cE as fb,L3t as fc,lye as fd,WT as fe,CQe as ff,BQe as fg,DQ as fh,e8 as fi,wye as fj,Ix as fk,vW as fl,$8 as fm,hvt as fn,T_e as fo,Est as fp,A3t as fq,B3t as fr,vKe as fs,a2t as ft,LH as fu,pee as fv,yx as fw,UAe as fx,vx as fy,Got as fz,Tf as g,LQe as g$,n2t as g0,k3t as g1,yre as g2,S3t as g3,R3t as g4,e2t as g5,I3t as g6,Ost as g7,Mst as g8,uK as g9,XCe as gA,Evt as gB,Bve as gC,Lvt as gD,p_e as gE,G5e as gF,zCe as gG,Mvt as gH,QCe as gI,Bvt as gJ,$Re as gK,Hvt as gL,Sye as gM,R8 as gN,d_e as gO,K6e as gP,dw as gQ,Dvt as gR,_9 as gS,Ly as gT,est as gU,Jte as gV,o_e as gW,FT as gX,zT as gY,f3e as gZ,eA as g_,om as ga,uZ as gb,v2 as gc,DG as gd,MG as ge,uY as gf,KW as gg,y3t as gh,L1e as gi,Une as gj,l8 as gk,Eze as gl,xOe as gm,BI as gn,nm as go,Rze as gp,u3t as gq,zvt as gr,J3t as gs,LU as gt,L3e as gu,hY as gv,D2 as gw,Gvt as gx,eC as gy,c3t as gz,Xt as h,Kx as h0,Jvt as h1,Vvt as h2,cY as h3,Wi as h4,W3t as h5,LW as h6,Ki as i,q as j,Tt as k,eg as l,Fm as m,m$ as n,fi as o,Ts as p,al as q,Z as r,zr as s,r2t as t,Vm as u,i2t as v,Mp as w,aW as x,g1 as y,VE as z};
|